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
7
votes
1 answer

Emacs preview-latex minted package and -shell-escape

I'm trying to use emacs with preview-latex (C-c C-p C-b) to view my document. First a minimal example of my document: \documentclass {article} \usepackage{minted} \begin{document} \begin{listing}[H] \begin{minted}{sql} Select * from…
Kungi
  • 1,477
  • 1
  • 18
  • 34
7
votes
1 answer

Hide latex (auctex) output buffer

When I compile a (Xe)LaTeX file, emacs writes the output to the LaTeX output buffer and shows it. For pure LaTeX, this buffer is hidden. How do I hide a Latex compilation buffer?
Dervin Thunk
  • 19,515
  • 28
  • 127
  • 217
7
votes
2 answers

Autocompleting \cite{} with emacs + auctex gives "cite: no such database entry"

I am running Emacs 23.1.1 and AucTeX 11.85 in an Ubuntu 8.10 machine. After opening a tex file, the first time I try to use the autocompletion of the \cite{} command, I get "cite: info not available, use `C-c &' to get it." in the minibuffer. After…
Alejandro
  • 1,002
  • 8
  • 14
7
votes
2 answers

How can I customize LaTeX-item-list?

I use auctex to write linguistic texts with many examples using the exe-environment which looks like this: \begin{exe} \ex (some text, glossed examples, etc.) \end{exe} Now, i'd like to have LaTeX-insert-item, bound to M-RET, to automatically…
schmuu
  • 110
  • 5
7
votes
2 answers

Jump to next missing reference using auctex

I'm using emacs + auctex for all my TeXing needs and I'm very satisfied with the workflow. However, there's one thing bothering me. Whenver I compile a document (possible consisting of multiple files) and there's a missing reference auctex prints…
elemakil
  • 3,681
  • 28
  • 53
6
votes
1 answer

How to add a function (latexmk variant) to TeX-command-list in AUCTeX?

I use the following function from Latex, Emacs: automatically open *TeX Help* buffer on error and close it after correction of the error? to compile .tex documents via latexmk: (defun run-latexmk () (interactive) (let ((TeX-save-query nil) …
Marius Hofert
  • 6,546
  • 10
  • 48
  • 102
6
votes
3 answers

Setting relative Tex-Master file in Latex

I use Aquamacs and TeX Live 2009 to edit my LaTeX files. As my publications tend to get quite big, I want to structure the source folder containing all my LaTeX files. Like e.g. [bib] [images] [chapters] chapter1.tex chapter2.tex main.tex One…
Eric
  • 1,594
  • 1
  • 15
  • 29
6
votes
2 answers

Can't seem to get rid of Ctrl-x Ctrl-z Key Binding in Emacs for minimizing window ('suspend-frame)

I keep trying to get rid of this keybinding but setting it to nil or 'undo which would be fine with no luck. I am not sure why it even gets set to C-x C-z in the first place. I wouldn't even mind permanently removing the suspend-frame command if…
J Spen
  • 2,614
  • 4
  • 26
  • 41
6
votes
4 answers

How to disable auctex fontification, without losing color highlighting?

I like maximum syntax highlighting of AucTeX, but I don't like AucTeX messing with fonts. For example, if I use italics, it shows italicized letters in my emacs buffer, and shows subscripts and superscripts in small letters (slightly above or below…
sanjshakun
  • 535
  • 4
  • 13
6
votes
2 answers

Emacs/Auctex: Automatically enabling/disabling LaTeX-Math-mode

I'm using Emacs in conjunction with AucTeX (running Ubuntu 10.04, if that matters). Does anyone know if there is a way to automatically enable LaTeX-math-mode (a minor mode of AucTeX) if the point is in any maths environment (i.e. in a $...$, a…
phimuemue
  • 34,669
  • 9
  • 84
  • 115
6
votes
3 answers

emacs auctex commandto compile and view

I use EMACS/AucTeX. In order to compile I do C-c C-c, then it asks "Command: (default LaTeX)" I press RET and it is compiled. To view the compiled document I do C-c C-v. I would like to have a simple shortcut, like pressing F1 or some other key…
PinkCollins
  • 169
  • 2
  • 7
6
votes
1 answer

In AucTeX, new item in itemized list after comment results in commented next item

In AucTeX, when editing an itemized list: \begin{itemize} \item My item % note to self \end{itemize} when I do C-c C-j after 'self' I get: \begin{itemize} \item My item % note to self % \item \end{itemize} when I want: \begin{itemize} \item My…
stevejb
  • 2,414
  • 5
  • 26
  • 41
6
votes
1 answer

Centering display equations with org-latex-preview?

For some reason, org-mode is left-aligning my display equations when I run org-latex-preview (C-c C-x C-l). But the margin between each equation and its equation number is calculated, as if the equation was centered, which ruins the alignment…
Adam
  • 2,137
  • 16
  • 29
6
votes
1 answer

Emacs' org-mode: how to automatically "process to PDF" on save?

Org-mode's C-cep does export as LaTeX and process to PDF. How can C-cep be executed on each C-xs? Also, in all likelihood this probably isn't the optimal solution, so feel free to propose something better. As it is now, I have to do both C-cep and…
Blaz
  • 3,548
  • 5
  • 26
  • 40
6
votes
5 answers

Sync Emacs AUCTeX with Sumatra PDF

With these lines in my init.el I am able to sync the Emacs LaTeX buffer with Sumatra: (setq TeX-source-correlate-mode t) (setq TeX-source-correlate-method 'synctex) (setq TeX-view-program-list '(("Sumatra PDF"…
antonio
  • 10,629
  • 13
  • 68
  • 136
1
2
3
11 12