Known extensions to AUCTeX are controlled by the variable TeX-file-extensions: TeX-file-extensions is a variable defined in ”. Its value is. When you, for example, ask AUCTeX to run a command on the master file, it has no way of knowing the name of the master file. By default, it will assume that the. AUCTeX Starting a Command on a Document or Region. C-c C-a) Compile the current document until an error occurs or it is finished.

Author: Gardak Mirr
Country: Cuba
Language: English (Spanish)
Genre: Medical
Published (Last): 13 January 2012
Pages: 259
PDF File Size: 4.62 Mb
ePub File Size: 15.28 Mb
ISBN: 310-1-12414-449-6
Downloads: 9604
Price: Free* [*Free Regsitration Required]
Uploader: Mazugami

If that works, then you can create a custom function linking that custom function to the f5 key. Actually kbd computes the internal Emacs key representation try C-h f kdb. Would you turn your comment into an answer, I would happily accept!


Sign up using Facebook. C-c C-a Compile fompile current document until an error occurs or it is finished. To view the compiled document I do C-c C-v.

Balazs Strenner 1 6.

Everything worked as you described. It doesn’t work when there is no masterfile. In order to compile I do C-c C-c, then it asks “Command: AUCTeX will allow one process for each document, plus one process for the region file to be active at the same time. Customize TeX-file-extensions and add “ins” to it, that should do the trick. Use C-h k followed by a keypress to find the right string to pass into kbd.


If you fix the current region with C-c C-t C-rthen it will get used for more commands even though mark and point may change. At least is it possible to simply compile without having to confirm the latex command? It is also possible to compile automatically the whole document until it is ready with a single command: I would like to have a simple shortcut, like pressing F1 or some other key combination to compile and then view the document.

Hi Aaron, thanks for this.

Email Required, but never shown. Sign up using Email and Password. Post as a guest Name.

You should set this variable to match the name of all files, for which it is a good idea to append a TeX-master file variable entry automatically. If AUCTeX finds the line indicating the end of the header in a master file TeX-header-endit can figure out for itself that this is aucrex master file.

AUCTeX View and Compile commands in Emacs – TeX – LaTeX Stack Exchange

When AUCTeX adds the name of the master file as a file variable, it does not need to ask next time you edit the file. Sign up or log in Sign up using Google.

Without it, the files in the document will not know anything about each other, except for the name of the master file. If the last process you started was on the region, the commands described in Debugging and Control will work on that process, otherwise they will work on the process associated with the current document. Here is a quote from auctex manual Once you started the command selection with C-c C-c, C-c C-s or C-c C-b you will be prompted for the type of command. This clmpile more keystrokes than I prefer.


This function shall give you the possibility to insert compule variable manually. You may wish to spread a document over many files as you are likely to do if there are multiple authors, or if you have not yet discovered the power of the outline commands see Outline.

Vompile clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

An explicitly activated mark, however, will always define a new region when calling TeX-command-region. Sign up or log in Sign up using Google. A special case of running TeX on a region is TeX-command-buffer which differs from TeX-command-master if the current buffer is not its own master file.

Posted in Sex