[OS X Emacs] How to set default LaTeX command to latexmk?

Hofert Jan Marius marius.hofert at math.ethz.ch
Wed Sep 14 10:48:08 EDT 2011


Dear all,

every time I compile a LaTeX document with C-c C-c, I am asked to confirm "Command: (default LaTeX)". Since I would like to use latexmk, I have to type that in. How can I set latexmk as default so that C-c C-c directly executes that or at least says "Command: (default latexmk)", so that I just have to hit return? 

I tried to set LaTeX -> Customize AUCTeX -> Browse Options -> TeX Command -> Latex Command. In there, it says "latex" and I changed it to latexmk. But then I received the error

Running `LaTeX' on `test' with ``pdflatexmk --synctex=1 -interaction=nonstopmode "\input" test.tex''

Cheers,

Marius


More information about the MacOSX-Emacs mailing list