lukew3 / mathgenerator

A math problem generator, created for the purpose of giving self-studying students and teaching organizations the means to easily get access to high-quality, generated math problems to suit their needs.
https://lukew3.github.io/mathgenerator
MIT License
680 stars 175 forks source link

Default to latex output #387

Open lukew3 opened 1 year ago

lukew3 commented 1 year ago

Funcs should generate latex output by default, but can be converted to asciimath or other with kwarg. Conversion can be handled by the Generator class using a LaTeX to asciimath library. This must be done so that output doesn't have to be written for seperate outputs inside of each func. LaTeX should be able to easily convert to asciimath but not the other way around. May be more appropriate to call output "tex" instead of "latex" since we are only interested in styling, not building entire documents.

Checkpoints:

fredguth commented 1 year ago

I believe that MathJax and pandoc can do that conversion. Is it ok to use external libs or you want the parsers being part of your lib and everything in Python?