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: Kajiran Jugami
Country: Bolivia
Language: English (Spanish)
Genre: Personal Growth
Published (Last): 10 November 2016
Pages: 332
PDF File Size: 9.62 Mb
ePub File Size: 15.35 Mb
ISBN: 388-3-87849-364-1
Downloads: 64302
Price: Free* [*Free Regsitration Required]
Uploader: Kenris

A sub-reddit for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?! This is more keystrokes than I prefer. Co,pile would I go about binding a key ideally F5 to this sequence? I found how to add shortcuts to simpler commands, but I’m not sure how to chain commands or enter the latex part.

I have the following code in my. If that works, then you can create aucrex custom function linking that custom function to the f5 key. If you touch-type, you should really give C-c C-c another chance.


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.

For me, that’s quicker than something like F5, because Auvtex can type it without moving my hands from the touch-type position and without looking at the keyboard.

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

I agree that C-c C-c is faster than f5 ; however, I want to be able to save before running the command, and I find f5 to be much more ergonomic. Also, I generally have the pdf I’m working on open in a separate buffer, so I never want to run the view. I agree that C-c C-c is faster than f5; however, I want to be able to save before running the command. If you set TeX-save-query to nilC-c C-c will save the file automatically.

Is that what you mean? Use C-h k followed by a aucctex to find the right string to pass into kbd.


AUCTeX Options for TeX Processors

Since AuCTeX provides this feature, my code does this: Actually kbd computes the internal Emacs key representation try C-h f kdb. Using eval-after-load is a good practice.

In my case, the define-key is inside a use-package call, to achieve the same purpose. Ccompile of this site constitutes acceptance of our User Agreement and Privacy Policy.


Log in or sign up in seconds. Submit a new link.

Submit a new text post. Welcome to Reddit, the front page of the internet.

Become a Redditor and subscribe to one of thousands of communities. Want to add to the discussion? I ended up using your latex-compile function. Thank you for your input though!