Hi everyone. Thanks so much for your help. I am a math teacher and am also learning how to code. I used Microsoft Excel to create a bunch of worksheet generators so that I can press a button (Fn + F9) and generate a new worksheet with the same layout but different numbers. The numbers are not simply random - I typically use code so that the numbers in a problem work out right (for example, if students are practicing adding fractions with unlike denominators then I may want one denominator to be a multiple of the other). However, Excel does not allow me to use code for an exponent so I cannot, as an example, create a worksheet generator for multiplying terms such as x^a and x^b where new values for a and b are generated each time. I think there should be a way to do this by combining Python and Latex but I'm not sure how (and am still new to both). Any advice would be appreciated. Thanks again!
What I have tried:
So far, the following two videos have come closest to providing me with a solution...
1. https://www.youtube.com/watch?v=JH_V68-RhRw&list=LL&index=1&t=16s
This teacher has found a way to generate worksheets. However, the worksheet he creates in the video does not have any special math characters (exponents, fractions, subscripts, etc.) so I don't know if following his approach is a good idea. If there were some way to combine his approach with Latex for special characters, that would be great (his finished worksheet can be seen at 22:45).
2. https://www.youtube.com/watch?v=LufMPezEN6Y
The person in this video has successfully combined Python and Latex. However, I ran into some technical problems when I tried to follow his approach and as a novice coder it would take me a long time to figure out exactly what’s going wrong. Before I start troubleshooting, I wanted to share the video with the wonderful folks here at codeproject and see if you think this approach is worth emulating (could I tweak this method to create worksheet generators?) or if there is a better way.