使用 xlop 改进加法工作表

使用 xlop 改进加法工作表

我有以下工作表,

\documentclass{article}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{enumitem}
\usepackage{tikz}
\usepackage{xlop}
    
\newcommand*{\DifficultyOne}{999}%
\newcommand*{\DifficultyTwo}{99}%

\newcounter{RandSeed}       
\setcounter{RandSeed}{6} % choose an integer random seed for this build of problems and answers <<<<<   

%%  \OneXLine{<true or false>}{<result color>}  
\newcommand{\OneXline}[2]{% one line of 8 problems, workings or answers
\hspace*{\fill}
\opadd[carryadd=#1, voperator=bottom, resultstyle=\color{#2}]{\AddOnea} {\AddTwoa} \hfill
\opadd[carryadd=#1, voperator=bottom, resultstyle=\color{#2}]{\AddOneb}{\AddTwob} 
\hspace*{\fill}\\
}

\newcommand{\GenerateRandom}{%  %   \GenerateRandom
\pgfmathtruncatemacro{\AddOnea}{random(\DifficultyOne)}%
\pgfmathtruncatemacro{\AddTwoa}{random(\DifficultyTwo)}
\pgfmathtruncatemacro{\AddOneb}{random(\DifficultyOne)}%
\pgfmathtruncatemacro{\AddTwob}{random(\DifficultyTwo)}
}
    
%---------------------------------------% 
\newcommand{\AddQuestion}[1]{%

    \foreach \i in {1,...,#1}{% 
        \pgfmathsetseed{\i+\value{RandSeed}}
        \GenerateRandom
        \OneXline{false}{white}
        ~\newline
        ~\newline
    }
    
    \newpage% added <<<<<<<<<<      
    
    \foreach \i in {1,...,#1}{%
        \pgfmathsetseed{\i+\value{RandSeed}}
        \GenerateRandom
        \OneXline{true}{white}  
        ~\newline
    }
    \newpage% added <<<<<<<<<<          
    
    \foreach \i in {1,...,#1}{%
        \pgfmathsetseed{\i+\value{RandSeed}}
        \GenerateRandom
        \OneXline{true}{black}
        ~\newline
    }%
}%

\begin{document}
    \AddQuestion{1}     % number of lines of problems
\end{document}

是否可以使用 xlop 在第二页显示中间步骤?第二页不仅可以显示进位,还可以给出第一次加法和进位的答案,然后在第三页中显示总和?

相关内容