5 ms·
Ask HN: Why are LaTeX error messages so baffling?
- shakna 8y agoLaTeX errors are 'well defined', i.e. they have a set way they appear, so they can be parsed by a machine. They aren't really meant for you, as a user, but rather for whatever is calling LaTeX as a library. It's one of the reasons that an IDE is recommended rather than a text editor. You can see a good breakdown here. [0] [0] https://en.wikibooks.org/wiki/LaTeX/Errors_and_Warnings https://en.wikibooks.org/wiki/LaTeX/Errors_and_Warnings
- ISL 8y agoOne could make a similar argument for compilers, too, but can they not have great error messages?
- shakna 8y agoThe error messages from LaTeX are intended to be parsed by a machine. They aren't meant to be the first stop. If we want to compare it to other compilers, LaTeX outputs similar error messages to C++, that is, it gives you the error tree, not an error message. It's output isn't meant to be the final stop for the user. It's one stop short.
- ISL 8y agoIs there a LaTeX wrapper that gives comprehensible error messages? ("Sure looks like you left off a } on line 30")
- vfulco2 8y agoGreat question, glad I am not the only one. So much great stuff you can do with Rmarkdown but inevitably you have to dig deep into LaTeX if you are going to customize/standardize docs to your business.
- wcoenen 8y agoLaTeX looks a bit like semantic markup, but is implemented as layers of macros on top of TeX primitives. Some errors may only be detected in the later stages of processing, making it difficult to relate them to the original LaTeX.
- deleted 8y ago[deleted]
- adiusmus 8y agoOut of cheese error.