Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- % DOCUMENT CLASS & PACKAGES
- %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- \documentclass[a4paper, 11pt]{article}
- \usepackage{markolsonworksheet}
- \usepackage{markolsoncolorsthlm}
- \usepackage{markolsonmath}
- \usepackage{markolsontikz}
- \usepackage{xlop}
- \newcommand\hole[1]{\texttt{\_}}
- %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- % BEGIN DOCUMENT
- %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- \begin{document}
- \maketitle % Print the title section
- \setlength{\parskip}{0pt plus \smallskipamount}
- %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- % SAGE SILENT
- %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- \begin{sagesilent}
- t=ZZ.random_element(999999)
- set_random_seed(t)
- a=[ZZ.random_element(100,1000) for i in range(24)]
- b=[ZZ.random_element(100,1000) for i in range(len(a))]
- qoutput=""
- aoutput=""
- for i in range(len(a)):
- qoutput +=r"\item \quad \parbox{1\textheight}{\opmul[resultstyle=\gobble,intermediarystyle=\hole]{%s}{%s}}" %(a[i],b[i])
- for i in range(len(a)):
- aoutput +=r"\item \quad \parbox{1\textheight}{\cRed{\opmul{%s}{%s}}}" %(a[i],b[i])
- \end{sagesilent}
- %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- % WORKSHEET INSTRUCTIONS
- %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- \centering{Find the following products}\\
- \vspace{1cm}
- %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- % WORKSHEET LAYOUT
- %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- \begin{multicols}{4}
- \begin{enumerate}
- \sagestr{qoutput}
- \end{enumerate}
- \end{multicols}
- \customfoot
- \newpage
- \answers
- \vspace{1cm}
- \begin{multicols}{4}
- \begin{enumerate}
- \sagestr{aoutput}
- \end{enumerate}
- \end{multicols}
- \customfoot
- \end{document}
Add Comment
Please, Sign In to add comment