latexrun icon indicating copy to clipboard operation
latexrun copied to clipboard

use -E to promote warning messages to error msgs

Open technicalguy opened this issue 6 years ago • 3 comments
trafficstars

Exit with a non-zero status code if Werrors occur.

e.g. to exit with non-zero failure status code when there are overfull lines/boxes:

latexrun -E "overfull" report.tex -o report.pdf

This supports the use-case of using continuous integration to check against overfull lines in latex projects.

(Currently this only allows promotion of warnings to error messages, but perhaps it should allow any message to be promoted to an error?)

technicalguy avatar Jul 25 '19 11:07 technicalguy

I realised it might actually be nicer to allow a "error-" prefix to the existing -W argument, rather than to add an -E argument.

technicalguy avatar Jul 25 '19 11:07 technicalguy

Any news on this?

Diti avatar Jan 28 '20 13:01 Diti

Sorry, I completely forgot about this, I can't remember if I finished it or not! latexrun is just a python script though, so you could use the version on this branch if you really want/need this feature.

technicalguy avatar Jan 28 '20 13:01 technicalguy