I am looking to create a template where I can quickly generate pages of basic math equations. LaTeX seems like a good place to start typesetting math equations but I am completely stumped with the syntax.
My thoughts are to first build a template, use python to generate the template code with random numbers, convert to PDF, then print. here is an example of what I have come up with so far, but trying to nest this within another table created issues.
\halign{\hfil # & # \hfil \cr 4\cr \underline{+2}\cr}
This produces .
Are there any other languages or tools that I could use to meet my goals? I'm all ears.