Search code examples
latexpython-sphinxlatexmk

Make sphinx build latex PDF in nonstopmode


i am using sphinx to build my latex document but everytime i run the make latexpdf command, latex stops the build and asks for user input -- latex is not running with nonstopmode. In the past i was able to put the nonstopmode in a makefile and use "-use-make" with latexmk to compile everything. Did some digging on Sphinx and can't really find what i am looking for.


Solution

  • The -interaction=nonstopmode option can be provided via the LATEXMKOPTS Makefile variable:

    make latexpdf LATEXMKOPTS="-interaction=nonstopmode"
    

    See https://www.sphinx-doc.org/en/master/usage/builders/index.html#sphinx.builders.latex.LaTeXBuilder.