-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TeX conversion failure without any indication of _what_ actually caused the failure. #6715
Comments
You don't say what you're trying to convert this to. What is your output format and what command line, exactly, are you using? It looks as if you're targeting HTML, but using the default math processing option of "trying to fake it with unicode." This fails if you have things like fractions. If you have any kind of complex math, you need to use |
Ah, apologies, this was a straight up (specifically, for plain text comments in the source for https://pomax.github.io/bezierinfo as well as "what to show in case someone is weird enough to use Lynx") I tried CADDVI, Tex2mail, Tex4ht, and ASCIITeX, and they're all pretty much terrible. Someone recommended giving pandoc a try, so I did. I google for the error it generates but every page I find with questions for this error also show that pandoc's pointing out where the error is (using the classic |
Pandoc will do a decent job of converting math to plain text, as long as the math doesn't contain things that are really hard to represent in plain text (mostly things that require vertical as well as horizontal arrangement, like fractions or matrices). If you have complex equations, targeting plain text is probably an impossible goal. |
Story of my life. I've written plenty of things to make the impossible possible, although at this point I really don't want to have to do this myself anymore... Thanks for the back-and-forth, I'll probably just cop out and embed the original LaTeX as comments/content instead =P |
I tried running pandoc 2.5 on Ubuntu 20 against the following maths tex:
And get the following output:
However, this output does not identify which instruction is causing the conversion to fail. How do I force pandoc to tell me where things actually went wrong?
Note that dropping running
latex test.tex
or even dropping the equation into https://www.codecogs.com/latex/eqneditor.php works, so there's nothing that immediately jumps out as "this is probably what's wrong", so pandoc's help in actually identifying the problem would be greatly appreciated.Also, on a secondary note,
$$
as both start and end marker for maths mode is the legacy pure TeX syntax for maths mode, and isn't actually supported by LaTeX (and never has). Instead, the syntax is\[
at the start and\]
at the end, so rewriting\[ ... \]
to$$ ... $$
is pretty odd, and worth keeping\[ ... \]
.(also see http://ctan.mirror.rafal.ca/info/l2tabu/english/l2tabuen.pdf, section 1.6 for this)
The text was updated successfully, but these errors were encountered: