auctex

How to call latexmk in emacs, and jump to next-error

夙愿已清 提交于 2019-11-28 17:29:23
问题 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

Emacs latexmk function throws me into an empty buffer

ε祈祈猫儿з 提交于 2019-11-27 03:23:14
问题 This is a follow up to How do I bind latexmk to one key in Emacs and have it show errors if there are any. I'm using a function in Emacs to compile LaTeX documents with latexmk but it does not behave exactly as I want. The function I use is one Jouni K. Seppänen came up with: (defun run-latexmk () (interactive) (let ((TeX-save-query nil) (TeX-process-asynchronous nil) (master-file (TeX-master-file))) (TeX-save-document "") (TeX-run-TeX "latexmk" "latexmk" master-file) (if (plist-get TeX-error