Known extensions to AUCTeX are controlled by the variable TeX-file-extensions: TeX-file-extensions is a variable defined in ”. Its value is. 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. Actually, there is another command which comes in handy to compile documents: type C-c C-a (TeX-command-run-all) and AUCTeX will compile the document.

Author: Akinorg Voodoolrajas
Country: Nicaragua
Language: English (Spanish)
Genre: Personal Growth
Published (Last): 7 May 2009
Pages: 53
PDF File Size: 20.67 Mb
ePub File Size: 16.37 Mb
ISBN: 450-3-23228-267-6
Downloads: 81061
Price: Free* [*Free Regsitration Required]
Uploader: Gokazahn

In particular, I’m not sure what it will do if there is no master file set, and it will recompile even if it doesn’t need to. I want to be able, to use the normal C-c C-c key, to start this compilation. 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. Sign up using Email and Password.


These eventually set the variable TeX-engine which you can also modify directly. It can be set globally using customization interface or on a per-file basis, by specifying it as a file variable. By using our site, you acknowledge that you have read compkle understand our Cookie PolicyPrivacy Policyand our Terms of Service.

Log in or sign up in seconds. I’m not sure why this is the case, since this says AUCTeX should query you for a master file if it’s not already set, and this command does no querying even in that case. The third is the command to be used for plain TeX. Thus, if you want a PDF aucetx in the end you can either use XeTeX engine, see below for information about how to set engines, or compile the document with tex and then convert to PDF with too — ps2pdf before viewing it.


Usually it has the file extension. I don’t think there’s anything that will work out of the box, and the naive approach of just calling the two commands in sequence won’t work because you need auctes compilation process cojpile finish before you can view the output.

I agree that C-c C-c is faster than f5; however, I want to be able to save before running the command. The command is then actually run on the region file.

Looking at the loading messages, there is a report that tex-site could not be found. Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have autcex our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

You can customize TeX-interactive-mode to give it a different default.

AUCTeX Modes and Hooks

If there are multiple levels of nesting, specify the top level file. 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 a cpmpile file.

AUCTeX will not ask for a master file when it encounters existing files. If the file being edited is actually included from another file, then you can tell AUCTeX the name of the master file by setting this variable. Submit a new text post. Aucex entry is a list with a maximum of five elements.

C-c C-b Query the user for a command, compipe apply it to the contents of the current buffer. How would I go about binding a key ideally F5 to this sequence? AUCTeX keeps track of macros, environments, labels, and style files that are used in a given 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 clmpile type of command.


The name of the region file is controlled auctrx the variable TeX-region. Balazs Strenner 1 6. A sub-reddit for the timeless and infinitely powerful editor. The available commands are controlled by the variable TeX-command-list. C-c C-a Compile the current document until an error occurs or it is finished.

For this to work with multifile documents, AUCTeX has to have a place to put the information about the files in the document.

You can also insert the file variable yourself, by putting the following text at the end of your files. Some LaTeX packages requires the document to be compiled with a specific engine. Do you have one of these in your LaTeX-mode-hook?: Sign up using Facebook. Note that most of the time you don’t need to type latex or view or whatever you want to dobecause C-c C-c is smart about the command it suggests.

The first element is a symbol used to identify the engine. Values currently supported are:. The value should be one of the symbols defined in TeX-engine-alist-builtin or TeX-engine-alist.

Subscribe US Now