Questions tagged [auctex]

Questions about the AUCTeX package for editing (La)TeX code/documents in Emacs.

The AUCTeX website is at https://www.gnu.org/software/auctex/.

Tex.SE also an auctex tag; the one here on SO is probably more appropriate if you expect the answer to your question to involve programming in lisp, whereas the one on tex.SE might be more appropriate if you expect it to involve tricky option settings, or if you would like to be told you should be using TeX package foo rather than trying to get your editor to deal with the verbosity of bar. (No biggie either way, though.)

171 questions
2
votes
2 answers

Using next-error and previous-error keybindings for grep under Auctex's LaTeX-mode

How can I navigate through text found by M-x grep using C-x ` and M-g p? These are normally bound to next-error and previous-error but in Auctex's LaTeX-mode they are re-bound to TeX-next-error and TeX-previous-error. I have tried using both…
Dan
  • 763
  • 3
  • 8
  • 13
2
votes
2 answers

AUCTeX: custom ‘fill-nobreak-predicate’ hook to respect braces

I use the following C-ish indentation/bracing style when writing LaTeX code: \foo{ blah blah... this line is getting too long and should be wrapped } whenever I need to re-wrap (technically, refill) a block/paragraph, according to fill-column…
sphakka
  • 457
  • 4
  • 11
2
votes
1 answer

How to change the default compilation command/shortcut in GNU Emacs-AUCTeX?

In GNU Emacs with AUCTeX enabled, C-C C-C is the default shortcut for running latex over the active buffer. How can I change this to also run dvips after the dvi output is generated by latex? Can I define a new shortcut, say C-C C-D, and assign it…
Ali
  • 177
  • 1
  • 8
2
votes
1 answer

If I open doc.foo file, I want emacs to look for and open doc.bar file in the same folder

Specifically this problem arises when working in LaTeX (auctex) for me, but I think it must have a general emacs solution. To every doc.tex file, I have an associated and oft-edited doc.sty file in the same folder. Is there a way that whenever I…
Awnani Maus
  • 159
  • 3
1
vote
1 answer

How can reftex-citation be made to recognize \subcaption?

With RefTeX C-c C-) invokes reftex-citation which first asks for type of label one wants to reference then asks one to select a reference from a list. The list is a list of labels in a document. For LaTeX figures the list includes the caption of…
N.N.
  • 8,336
  • 12
  • 54
  • 94
1
vote
2 answers

Activate Command on Region with Cua Bindings set to Ctrl+C for copy in Emacs

I was wondering how to implement a command on a region when highlighted if it starts with Ctrl+C when Cua bindings are on. For example, I want to highlight like four lines of text in LaTeX mode and run the command Ctrl+C Ctrl+f Ctrl+b which changes…
J Spen
  • 2,614
  • 4
  • 26
  • 41
1
vote
1 answer

Using reftex-citation with yasnippet

I'm trying to make a yasnippet with this function \cite{${1:label$(unless yas/modified-p (reftex-citation nil 'dont-insert))}}$0 work but when I run it I get [yas] elisp error! The strange thing is that I have equivalent snippets but with…
N.N.
  • 8,336
  • 12
  • 54
  • 94
1
vote
0 answers

Company RefTeX slow when searching for labels

I am writing on a large LaTeX Document using Emacs with AUCTeX, RefTeX and Company for autocompletion. RefTeX for citations is working fine and finds my bibliography entries really fast. However, when RefTeX searches for labels it has to scan every…
ls.ptr
  • 11
  • 2
1
vote
0 answers

how to configure the way of inserting double quote in auctex with smartparens

recently I updated emacs package and found double quotes were not inserted as regular double quotes (") any more. Instead, it insert pair of LaTeX double quotes `` and '' on ". On the second typing of ", it reverts to a single LaTeX double quote…
Seong
  • 556
  • 4
  • 18
1
vote
2 answers

Emacs: How to generate a wordlist for a document?

I would like to generate an index for a LaTex document with RefTex, following this advice from the RefTex manual: "...you might want to start from a word list of the document and remove all words which should not be indexed." (-> collecting phrases…
Thorsten
  • 3,451
  • 3
  • 20
  • 25
1
vote
0 answers

How to disable AUCTeX highlighting?

I'm trying to use GNU Emacs 26.3 + AUCTeX 12.2.3 and it seems to work, but the colors it shows in the source code are very annoying, specially in amsmath environment such as align, because it uses only one color for the whole block. I would like to…
shiran
  • 11
  • 1
1
vote
1 answer

guess-TeX-master bug?

I'm trying to use the guess-TeX-master function (from emacswiki auctex) but I get this error: Wrong type argument: stringp, nil My elisp knowledge is quite poor. Does somebody know the problem? [EDIT] This error was because I forgot do it the latex…
david villa
  • 384
  • 4
  • 9
1
vote
3 answers

How to use Auctex + preview-latex + orgmode in emacs

I use Emacs orgmode exclusively. I installed auctex from Melpa. My understanding is that preview-latex is packaged with auctex with no special setup required. I can't seem to summon preview-latex on any inline latex equations It seems like I have…
SeaDude
  • 3,725
  • 6
  • 31
  • 68
1
vote
0 answers

why is LaTex mode replaced by Fundamental mode?

Before I installed some packages and add some configurations in .emacs, the .tex file in Emacs is in LaTex mode. After I changes .emacs, the .tex file is opened in Fundamental mode. All the functionalities of Latex mode works well, like compile and…
Ladih
  • 791
  • 1
  • 12
  • 22
1
vote
1 answer

auctex master loads whole master?

I am using auctex with aquamacs and I have added the following lines at the ned of my latex file: %% Local Variables: %% mode: latex %% TeX-master: "book" %% End: However, when I latex the current file it processes the whole masterfile and not just…