I am creating worksheets for young children in which they'll be doing single digit operations vertically. How do I set them up vertically so that there is:
- An exercise worksheet with no answers.
- A solutions worksheet with the answers.
The package xlop only seems to be able to create the solutions worksheet. [See below.] I don't think there is a way to have it exclude the sums.
Or is there?
Or is there some other approach I should take?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{pgf}
\usepackage{pgffor}
\usepackage{xlop}
\setlength\parindent{0pt}
\newcommand{\InitVariables}
{%
\pgfmathsetmacro{\A}{int(random(0,9)))}
\pgfmathsetmacro{\B}{int(random(0,9)))}
}
\newcommand{\VAdd}
{%
\InitVariables
\opadd[carryadd=false]{\A}{\B}}
\newcommand{\ManyVAdd}[1]
{%
\foreach \x in {1,...,#1}{\VAdd \hspace{2cm}
}}
\begin{document}
\ManyVAdd{5}
\end{document}





solutions=trueor whatever), then you don't want them to be randomised again else the answers will not be correct at all. But you can do it without this in a single run if you wish. See edit. – cfr Jan 14 '17 at 23:42