Is there a command, for which I can set a keybind for compiling the document? The command (TeX-command-master, bound to C-c C-c) gives you a list of options but it's rather inefficient. I'm looking for a way to just directly invoke LaTeX.

While searching around, I came across Auctex key-bindings for easy saving, compilation and viewing., however that command also opens the PDF viewer after it is finished compiling, which I do not want.


1 Answer 1


After looking an the source for TeX-command-master, I think binding this code to a key should do the trick:

(TeX-command "LaTeX" 'TeX-master-file)
  • Thank you, this worked.
    – AmberWing
    Sep 16 at 0:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.