exsheets
. Here is Part I and Part II.Now, I'm trying to figure out how to keep the answer spacing consistent for longer answers across both the worksheets and the solution pages. It didn't work in this MWE: depending on whether the printing is set to
\SetUpExsheets{solution/print\true
or \SetUpExsheets{solution/print\false
, the answer spacing varies. It may have had something to do with my use of the \phantom
in both of the "false" arguments.(I also don't know why the last line is orange, btw...)
Code: Select all
\documentclass[12pt,letterpaper]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{exsheets}
\usepackage{tikz}
\colorlet{answercolor}{orange}
% uncomment to get answers printed:
\SetupExSheets{solution/print=true}
\begin{document}
\begin{question}
Show \(\frac{5}{4}+\frac{3}{4}=2\) using a number line.
\end{question}
\PrintSolutionsTF
{
\vspace{1.5cm}
\begin{tikzpicture}[xscale=3,answercolor]
\draw(0,0)--(3,0);
\draw[-latex] (0,0.4)--(5/4,0.4);
\draw[-latex] (5/4,0.4)--(8/4,0.4);
\foreach \x in {0,1,2,3}
\node[below] at (\x,-0.3) {\x};
\foreach \x in {0,...,12}
\draw (\x/4,-0.2)--(\x/4,0.2);
\end{tikzpicture}
\vspace{1.5cm}
}
{
\phantom
{
\vspace{1.5cm}
\begin{tikzpicture}[xscale=3,answercolor]
\draw(0,0)--(3,0);
\draw[-latex] (0,0.4)--(5/4,0.4);
\draw[-latex] (5/4,0.4)--(8/4,0.4);
\foreach \x in {0,1,2,3}
\node[below] at (\x,-0.3) {\x};
\foreach \x in {0,...,12}
\draw (\x/4,-0.2)--(\x/4,0.2);
\end{tikzpicture}
\vspace{1.5cm}
}
}
\begin{question}
What is the mathematical purpose of fractions?
\end{question}
\PrintSolutionsTF
{\color{answercolor}{Fractions allow for equal sharing when ``normal" division would either produce remainders e.g. \(11\div3\) or be impossible, e.g. \(3\div4\). The second purpose of fractions is to be the numbers in between whole numbers.}\vspace{2cm}}
{\phantom{Fractions allow for equal sharing when ``normal" division would either produce remainders e.g. \(11\div3\) or be impossible, e.g. \(3\div4\). The second purpose of fractions is to be the numbers in between whole numbers.}\vspace{2cm}}
\begin{question}
Just to see the spacing below Exercise 2... Not sure why this is orange, though...
\end{question}
\end{document}