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: | Vujas Zuzuru |
| Country: | Indonesia |
| Language: | English (Spanish) |
| Genre: | Business |
| Published (Last): | 17 April 2016 |
| Pages: | 467 |
| PDF File Size: | 5.6 Mb |
| ePub File Size: | 13.21 Mb |
| ISBN: | 458-3-39282-986-1 |
| Downloads: | 30555 |
| Price: | Free* [*Free Regsitration Required] |
| Uploader: | Arami |
Customize TeX-file-extensions and add “ins” to it, that should do the trick.
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. By default, it will assume that the current file is the master file. If you want to extract the style file or any other packageyou have to run LaTeX on your “Makefile”, that is latex sample. See above for details.
AUCTeX will try to guess which command is appropriate in the given situation and propose it as default. Actually kbd computes the internal Emacs key representation try C-h f kdb. If the last process you started was on the region, the commands described in Debugging and Ayctex will work on that process, otherwise they will work on the process associated with the current document.
If you want to extract the style file or any other packageyou have to run LaTeX on your “Makefile”, that is. The solution for me was to remove auctex and reinstall it. This is more keystrokes than I prefer. Sign up using Facebook. Thank you for your input though! Want to add to the discussion? Become a Redditor and subscribe to one compjle thousands of communities.
Here’s a quick and dirty solution that might work for you: If you set TeX-save-query to nilC-c C-c will save the file automatically. The given numeric prefix arg is added to vompile current value of LaTeX-command-section-level. I had auctex installed via the package system and used that for these operations. Sign up using Email and Password. You still will be prompted and have to press RET after F1.

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.
After some tinkering, it looks like everything runs fine without a master file, so long as you have this line in your. ckmpile

Sign up using Email and Password. Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
MODERATORS
I ended up using your latex-compile function. Any help with getting Preview to open and making compiling easier would be much appreciated. Use C-h k followed by a keypress to find the right string to pass into kbd. You can set the viewer, how often latexmk checks if your. The buffer contents are written into the region auvtex, after extracting the header and trailer from the master file.
compilation – AUCTeX: how to compile a file, which does end in ‘.ins’ – Emacs Stack Exchange
Sign up using Email and Password. 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. For me, that’s quicker than something like F5, because I can type it without moving my hands from the touch-type position and without looking at the keyboard.
Since you are tired of those C-c C-c, you should try latexmk. If not, perhaps you could try one of those. The command is then actually run on the region file. The available commands are controlled by the variable TeX-command-list.

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 the compilation process to finish before you can view the output. I want to be able, aucctex use the normal C-c C-c key, to start this compilation.
