How to call latexmk in emacs, and jump to next-error
问题 I would like to use latexmk to compile my LaTeX documents in Emacs. Especially I need the Emacs functionality next-error , which is typically called with C-x `, and jumps to the next LaTeX error in the document. I would like to call latexmk either using C-x compile or the AUCTeX C-c C-c . First, I set latexmk to use $pdflatex = 'pdflatex -interaction=nonstopmode'; Option 1: C-x compile I press C-x compile and type latexmk -pdf foo , which runs pdflatex . But next-error will not jump to the