3 ms·
LaTeX indeed mostly works. But, I do think it could be a lot better. For example, today while writing a paper, I ran into a compilation issue that gave me the f
by y7 6y ago
LaTeX indeed mostly works. But, I do think it could be a lot better. For example, today while writing a paper, I ran into a compilation issue that gave me the following error message:
! Undefined control sequence.
<write> ...\protect \numberline {\plist@algorithm
1}{\ignorespaces $\protect...
l.350 \end{theorem}
None of these commands (except \end{theorem}) were in my paper, they were all in an included package. I later found out the issue was nowhere near line 350 or inside of the theorem environment. There just doesn't seem to be a good way to debug LaTeX errors. The best method I found was to use some sort of binary search, removing parts of the document to see if the error persists — which is ridiculously time consuming.
https://tex.stackexchange.com/questions/309010/teach-me-to-debug https://tex.stackexchange.com/questions/309010/teach-me-to-d...