Don't make me manually abort a LaTeX compile when there's an error

前端 未结 4 751
既然无缘
既然无缘 2021-01-29 20:24

As suggested here, latexmk is a handy way to continually compile your document whenever the source changes. But often when you\'re working on a document you\'ll en

4条回答
  •  时光取名叫无心
    2021-01-29 20:59

    With MikTeX, pdflatex has this command-line option:

      -interaction=MODE               Set the interaction mode; MODE must be one
                                      of: batchmode, nonstopmode, scrollmode,
                                      errorstopmode.
    

    Edit suggested by @9999years:

    Those values are equivalent to a set of LaTeX \commands that provide the same functionality.

    From TeX usage tips:

    The modes make TeX behave in the following way:

    • errorstopmode stops on all errors, whether they are about errors in the source code or non-existent files.

    • scrollmode doesn't stop on errors in the source but requests input when a more serious error like like a missing file occurs.

    • In the somewhat misnamed nonstopmode, TeX does not request input after serious errors but stops altogether.

    • batchmode prevents all output in addition to that (intended for use in automated scripts). In all cases, all errors are written to the log file (yourtexfile.log).

提交回复
热议问题