I am a programmer who is used to using command line tools to compile source code. One of the must-have features of these compilers is the ability to tell programmers where their errors are so they can find and fix them. Latex technically does this, but the output and log files can be hundreds of lines long, which makes it tedious and time consuming to find the one line that tells you where your error is. Is there any way to make latexmk
output only compiler-style error messages to the console?
The command I use to build my tex project:
latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" -use-make file.tex
grep
? I mean, you don't really go through it yourself to find them in hundreds of lines, surely? There is alsotexloganalyser
, of course.-file-line-error
? It enables error messages of the formfile:line:message
. They are printed additionally to the default messages.