Short answer: AUCTeX doesn’t play very well with latexmk, by default. Long answer: AUCTeX has its own system to decide what command to. Here is (I think) the simplest way to do this. The first adds mupdf as a new view program, while the second specifies it as the default for pdfs. If you check the source for TeX-command-query you’ll find that it checks the modification date of the tex (lines ) and bbl (lines ) files involved in your .
|Published (Last):||6 August 2014|
|PDF File Size:||1.52 Mb|
|ePub File Size:||8.46 Mb|
|Price:||Free* [*Free Regsitration Required]|
I have set this in my. Thanks but my current setup with Skim works as I want.
Emacs AucTeX; How to set C-c C-c default command? – Stack Overflow
By default, it will offer completion only for normal commands. That’s why the short answer. If non-nil, used for encoding input to Japanese TeX process.
In order for this to work, “LaTeX” should be the default command to be run, not the custom entry you added for latexmk. I don’t think you need change TeX-view-program-list at all if yr auctex is sufficiently recent. I’m unsure how to do it.
Sign up using Facebook. Mode to enter for a new file when it cannot decault determined whether the file is plain TeX or LaTeX or what. If non-nil, used for decoding output from Japanese TeX process.
This behaviour is of course sensible because normally you don’t want to recompile unless there are changes modified tex files.
This is controlled by TeX-complete-list.
Thanks – but that’s too much code for me to think through all the implications. Home Questions Tags Users Unanswered. In response to a comment, here is how to add support for synctex with mupdf. I guess what I’d like is to be able to define what happens the second time the command is issued.
To make the selected engine to persist across Emacs sessions, there are two ways from which you can choose defaylt according to your needs:. dwfault
It has the advantage over completion that it knows about the argument of most standard LaTeX macros, and will prompt for them. Is it possible to remove the other entries in TeX-command-list somehow?
Post drfault a guest Name. Sign up using Email and Password. Sign up or log in Sign up using Google.
Emacs/AUCTeX/LaTeXmk: Default compilation command only on first run? – TeX – LaTeX Stack Exchange
See Automaticfor more information. Sign up using Facebook. Log in or sign up in seconds. Sign up or log in Sign up using Google. However, one could also use something like this stolen from to perform a match replacement.
Here’s the value of mine. Want to see what Emacs is capable of?! I believe doing audtex like inverse search requires some ugly hacks.
In such cases, use the file local variable method above auxtex select the engine you intend to use. Email Required, but aucyex shown. Each element is a cons cell, whose car is the macro name, and the cdr is non-nil or nil, depending on whether a pair of braces should be, respectively, appended or not to the macro.
If you find that wrong command is used, check the value of TeX-engine on that buffer.