I tend to run latexmk externally with -pvc mode Of course then I cannot use C-` to jump to error, but that is usually not that much of a problem.
With -pvc you just save, and latexmk takes over. It can be an idea to reconfigure it with $pdflatex = "pdflatex -synctex=1 -halt-on-error %O %S"; such that when it detects an error then it stops and it go back to looking for file changes. /Lars Madsen Institut for Matematik / Department of Mathematics Aarhus Universitet / Aarhus University Mere info: http://au.dk/daleif@imf / More information: http://au.dk/en/daleif@imf ________________________________________ From: [email protected] [[email protected]] on behalf of Tassilo Horn [[email protected]] Sent: 17 October 2014 11:51 To: [email protected] Subject: Re: [AUCTeX] auto compile for auctex? Thorsten Grothe <[email protected]> writes: Hi Thorsten, > before I started using auctex I used vim with atp-latex plugin see > here: > > http://atp-vim.sourceforge.net/ > > ATP has a very nice feauture, called auto compile. When you leave vims > insert mode the document is automatically compiled by latexmk, this is > very convenient and I loved this feature. Is something similar > possible with auctex and for example latexmk? Flymake can do that, although that's not muli-file-document aware and will run texify instead of latexmk. But by overriding its tex hook with this function (defun flymake-get-tex-args (file-name) (list "latexmk" (list (TeX-master-file file-name)))) it'll probably work ok, e.g., recompile your document once you've saved any of its files. Bye, Tassilo _______________________________________________ auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex _______________________________________________ auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex
