Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
LaTeXML hanging with TIKZ example #784
I've got a simple example that causes LaTeXML to hang (uncomment marked line). Hopefully it'll be a simple fix.
Inn case it's useful, here is error after I manually kill it (via CTRL-C):
NOTE: I'm using latest LaTeXML (via latexml-daily PPA on Ubuntu).
Alas, it's not so easy; there's some kind of rounding error going on in ``\pgfmathdivide@@` that ends up in an infinite loop, but it's not clear exactly where LaTeXML's error started.
Incidentally, this might be a good place to point to an interesting thing. I'd long thought that there could be a huge speedup implementing the math in perl --- but possibly lots of new rounding differences. I found that there are special bindings for luatex in
Well, it took way to long to sort it out, but developing a binding for pgfmath (which is a pgf package supporting math expressions and floating point) works around the inconsistencies between ptf's math model, and also provides a non-trivial speedup to most tikz/pgf!
Your example shouldn't hang now. Thanks for the report!