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):||28 August 2006|
|PDF File Size:||13.88 Mb|
|ePub File Size:||14.66 Mb|
|Price:||Free* [*Free Regsitration Required]|
Users of the wonderful ispell mode know and love the ispell-complete-word command from that package. In order to use TeX-complete-symbolyou should write a backslash and the start of the macro.
This is controlled by TeX-complete-list. More recent Emacs versions have a new completion mechanism.
Modern completion UIs like company-mode support this completion-at-point facility. It has the advantage over completion that it knows about the argument of most standard LaTeX macros, and will prompt for them.
Some examples are listed below.
As a default selection, AUCTeX will suggest the macro last inserted or, as the first choice the value of the variable TeX-default-macro. If set to the symbol show-optional-argsTeX-insert-macro asks for optional arguments of TeX marcos, unless the previous optional argument has been rejected.
If set to show-all-optional-argsTeX-insert-macro asks for all optional arguments. Note that for some macros, there are special mechanisms, e. This can be done by setting the variable TeX-electric-escape.
The difference between TeX-insert-macro and TeX-electric-macro is that space will complete and exit from the minibuffer in TeX-electric-macro.
Auctec will complete and exit. This variable is an alist.
Each element is a cons cell, whose car is the macro name, and the cdr is non-nil or nil, detault on whether a pair of braces should be, respectively, appended or not to the macro. If a macro has an element in this variable, TeX-parse-macro will use its value to decided what to do, whatever the value of the variable TeX-insert-braces. See Automaticfor more information.
emacs – Changing the default latex generate command in AucTeX – Super User
AUCTeX distinguishes normal and expert macros. By default, it will offer completion only for normal commands.
This behavior can be controlled using the user option TeX-complete-expert-commands. For this kind of completion to work, parsing must be enabled as described in see Parsing Files.