Click here to Skip to main content
15,890,947 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

1 solution

I create problems/questions in excel and transfer the questions to MS Word. I use MathType for Word. For nice math expressions I write the expression in Excel in Latex and copy and paste to Word. The you can "toggle" all Latex code and MathType makes it pretty.
 
Share this answer
 
Comments
Richard Deeming 19-Apr-24 3:40am    
None of which answers the question. Was it really worth resurrecting a question from 2½ years ago to post a "solution" that isn't actually a solution?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900