hutchresearch / latex2speech

TeX2Speech is an application that turns LaTeX documents into spoken audio.
https://tex2speech-website.vercel.app/
MIT License
12 stars 5 forks source link

Mathmode - Infinite Loop #93

Open willsower opened 3 years ago

willsower commented 3 years ago
$\gcd(n, r) r$

Causes an infinite while loop in the _convert function from sympytossml.py. Going through pre processing the actual function given to sympytossml.py is the following

r*gcd(n*r)
WalkerJH commented 3 years ago

added assert to prevent infinite loop

willsower commented 3 years ago

Current code no longer errors at $\gcd(n, r) r$ but still errors at $\gcd(C) := \gcd(T_1, \dotsc, T_k)$