daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  2. %   DOCUMENT CLASS & PACKAGES
  3. %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  4.  
  5. \documentclass[a4paper, 11pt]{article}
  6. \usepackage{markolsonworksheet}
  7. \usepackage{markolsoncolorsthlm}
  8. \usepackage{markolsonmath}
  9. \usepackage{markolsontikz}
  10. \usepackage{xlop}
  11.  
  12. \newcommand\hole[1]{\texttt{\_}}
  13.  
  14. %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  15. %   BEGIN DOCUMENT
  16. %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  17.  
  18. \begin{document}
  19.  
  20. \maketitle % Print the title section
  21.  
  22. \setlength{\parskip}{0pt plus \smallskipamount}
  23.  
  24. %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  25. %   SAGE SILENT
  26. %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  27.  
  28. \begin{sagesilent}
  29. t=ZZ.random_element(999999)
  30. set_random_seed(t)
  31. a=[ZZ.random_element(100,1000) for i in range(24)]
  32. b=[ZZ.random_element(100,1000) for i in range(len(a))]
  33. qoutput=""
  34. aoutput=""
  35.  
  36. for i in range(len(a)):
  37.   qoutput +=r"\item \quad \parbox{1\textheight}{\opmul[resultstyle=\gobble,intermediarystyle=\hole]{%s}{%s}}" %(a[i],b[i])
  38.  
  39. for i in range(len(a)):
  40.   aoutput +=r"\item \quad \parbox{1\textheight}{\cRed{\opmul{%s}{%s}}}" %(a[i],b[i])
  41. \end{sagesilent}
  42.  
  43. %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  44. %   WORKSHEET INSTRUCTIONS
  45. %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  46. \centering{Find the following products}\\
  47. \vspace{1cm}
  48.  
  49. %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  50. %   WORKSHEET LAYOUT
  51. %-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  52.  
  53. \begin{multicols}{4}
  54.  
  55. \begin{enumerate}
  56. \sagestr{qoutput}
  57. \end{enumerate}
  58.  
  59. \end{multicols}
  60.  
  61. \customfoot
  62.  
  63. \newpage
  64. \answers
  65.  
  66. \vspace{1cm}
  67. \begin{multicols}{4}
  68.  
  69. \begin{enumerate}
  70. \sagestr{aoutput}
  71. \end{enumerate}
  72.  
  73. \end{multicols}
  74.  
  75. \customfoot
  76. \end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top