[OS X Emacs] Re: How to set default LaTeX command to latexmk?
Hofert Jan Marius
marius.hofert at math.ethz.ch
Thu Sep 15 12:04:15 EDT 2011
okay, I found the solution here: http://tex.stackexchange.com/questions/13620/aquamacs-auctex-inline-preview
(add-hook 'TeX-mode-hook '(lambda () (setq TeX-command-default "latexmk")))
On 2011-09-14, at 16:48 , wrote:
> 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''
More information about the MacOSX-Emacs