% use [nosolutions] flag to hide solutions.
% use [solutions] flag to show solutions.
\documentclass[
	solutions
]{../../../lib/tex/ormc_handout}
\usepackage{../../../lib/tex/macros}


\usepackage{pdfpages}
\usepackage{sliderule}
\usepackage{changepage}

% Args:
% x, top scale y, label
\newcommand{\slideruleind}[3]{
	\draw[
		line width=1mm,
		draw=black,
		opacity=0.3,
		text opacity=1
	]
		({#1}, {#2 + 1})
		--
		({#1}, {#2 - 1.1})
		node [below] {#3};
}


\uptitlel{Intermediate 2}
\uptitler{\smallurl{}}
\title{Slide Rules}
\subtitle{Prepared by Mark on \today}

\begin{document}

	\maketitle


	\begin{center}
	\begin{minipage}{6cm}
		Dad says that anyone who can't use
		a slide rule is a cultural illiterate
		and should not be allowed to vote.

		\vspace{1ex}

		\textit{Have Space Suit --- Will Travel, 1958}
	\end{minipage}
	\end{center}
	\hfill

	\input{parts/0 logarithms.tex}
	\input{parts/1 intro.tex}
	\input{parts/2 multiplication.tex}
	\input{parts/3 division.tex}
	\input{parts/4 squares.tex}
	\input{parts/5 inverses.tex}
	\input{parts/6 log.tex}

	% Make sure the slide rule is on an odd page,
	% so that double-sided printing won't require
	% students to tear off problems.
	\checkoddpage
	\ifoddpage\else
		\vspace*{\fill}
		\begin{center}
		{
			\Large
			\textbf{This page unintentionally left blank.}
		}
		\end{center}
		\vspace{\fill}
		\pagebreak
	\fi

	\includepdf[
		pages=1,
		fitpaper=true
	]{resources/rule.pdf}

\end{document}