Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [auctex]

AUCTeX is a package for writing (La)TeX, ConTeXt, docTeX and TeXinfo in Emacs and XEmacs.

6
votes
2answers
770 views

AUCTeX: ` a inserts \alpha{}: How can one omit the curly braces to be inserted?

According to an AUCTeX reference card, ` a inserts \alpha{} and this works well in my setup. I just don't see any reason I ever used a greek letter with curly braces. This means I always have to ...
6
votes
1answer
4k views

AUCTeX View and Compile commands in Emacs 24.4

With Emacs 24.3 on Mac OS X, I have used the method described in the answer by CodeKingPlusPlus at Emacs AUCTeX View command to use C-c C-v to open compiled latex PDFs using Preview.app. After ...
6
votes
1answer
1k views

How to increase (relevant) verbosity of compilation errors with Emacs+AucTeX?

I often debug LaTeX files and Emacs+AUCTeX does not show many informations about errors. I always have the following message in the minibuffer: LaTeX errors in `*~/my/file output*'. Use C-c ` to ...
6
votes
1answer
834 views

Display content in separate buffer in Emacs+AUCTeX

Is there a way to display something like table of content of my current latex file in separate buffer, where all sections, subsections, figures and tables are listed interactively? So I could ...
6
votes
2answers
250 views

Prevent a tex file from being compiled

I'm writing my thesis, and there's a overall file overall.tex together with several section files, which are \inputed in the overall.tex. Could I write something in the section files to prevent them ...
6
votes
1answer
4k views

AucTeX (in Emacs) doesn't seem to find certain packages

I am using AucTeX in emacs v23 in PFD-mode. When invoking the pdflatex compiler through C-c C-c LaTeX I get a [...] file <some_package>.sty not found error for some particular packages. For ...
6
votes
2answers
703 views

Automatic indentation with AucTeX within \[…\] environment

AucTex works fine automatically indenting most environments, for example \begin{displaymath} \cos x \end{displaymath} but doesn't indent when I use \[ and \], and automatically takes away any ...
6
votes
1answer
2k views

Adding custom macros to completion list with AUCTeX

I would like AUCTeX (that is, Emacs with auctex loaded) to suggest more LaTeX macros when using completion (M-Tab or C-Ret) than it does by default. I would like to have macros from packages I have ...
6
votes
1answer
925 views

AUCTeX: global pdf mode stop working after typesetting error occurs

Update: I've tested the problem in detail, and the results are appended at the end of the question. I guess now the problem becomes: How to avoid stupid diagnostic of AUCTeX when curly braces ...
6
votes
3answers
3k views

How can I get my LaTeX set up on Emacs/AUCTeX to use the -file-line-error option when calling pdfTeX [duplicate]

I have been puzzling over this for the past few hours and can't quite figure it out. I am using AUCTeX 11.87 and MiKTeX 2.9 on Emacs 24.2 (obtained from Vincent Goulet with AUCTeX pre-packaged): I ...
6
votes
1answer
4k views

Emacs and latexmk setup for --shell-escape

If I want --shell-escape, do I just need to add it to my .latexmkrc file as $pdf_mode = 1; $pdflatex = 'pdflatex --shell-escape -interaction=nonstopmode %O %S -file-line-error -synctex=1'; ...
6
votes
1answer
431 views

Why is aucTeX compiling my file like pdflatex “input” foo.tex rather than just pdflatex foo.tex?

When I compile a file using Emacs AucTeX with C-c C-c (which runs TeX-command-master which runs TeX-run-TeX) the top line of the log output looks like this: Running `LaTeX' on `mwe' with ``pdflatex -...
6
votes
1answer
1k views

Multiple bibliography/addbibresource in reftex

It seems that reftex only scans the file associated with the first bibliography/addbibresource command: \usepackage[backend=biber,bibencoding=utf8,url=false, isbn=false, doi=false, ...
6
votes
1answer
3k views

AUCTeX, preview-latex, and Ghostscript (Emacs)

I'll keep this short and sweet; Emacs can't find gs, which has been installed via brew and works fine. Error PDF2DSC sentinel: Searching for program: No such file or directory, gs MWE \...
6
votes
1answer
418 views

Emacs+AUCTeX lost highlighting

Adding additional highlighted keywords in Emacs+AUCTeX messes up conventional highlighting. My code: (defvar my-new-face (make-face 'my-new-face)) (defvar my-another-new-face (make-face 'my-another-...
6
votes
1answer
205 views

Open images from AUCTeX with your favourite image editor

Suppose I edit a LaTeX-file with AUCTeX and the point is on a \includgraphics{myimage.jpg} line. Is there a possibility in AUCTeX to open myimage.jpg with my favourite image editor, say gimp by just ...
6
votes
1answer
789 views

AUCTeX detecting modified files using different output directory

I'm using AUCTeX in Emacs, and would like to store all output files (.aux, .log, .pdf etc) in a sub-directory "output" rather than directly in the current working directory. To achieve this, I have ...
6
votes
0answers
2k views

AuCTeX Preview “Finds No Preview Images” [closed]

I am currently trying to set up AuCTeX in emacs, but I'm encountering difficulty in getting the preview feature to work. For reference, I'm using Windows 7 64-bit, GNU Emacs 24.3.1, AuCTeX 11.87.7 (...
6
votes
0answers
178 views

“Standardizing” LaTeX code? [duplicate]

Is there a program for LaTeX code akin to HTML Tidy that "standardizes" or "canonically" formats (automatically indents, spaces, etc.) LaTeX code? AucTex formats code, but it doesn't appear to create ...
5
votes
2answers
1k views

Force different TeX engine for specific files

I use Emacs and AucTeX as my writing environment. Pleasantly, I can pick an engine (PDFTeX, LuaTeX, XeTeX) and have it execute as default for all my compilations. However, I have one project where I ...
5
votes
1answer
693 views

Renaming label names in AucTex to recover ordered sequence

By rearranging (copy-and-pasting) math environments the automatically RefTeX generated label numbers \begin{align} \label{eq:5} ... \end{align} texttexttext... \begin{align} \label{eq:3} ...
5
votes
2answers
774 views

Double-quote produces guillemets in emacs

I am having a totally bizarre problem with typing quote marks in tex documents in emacs. I work as an editor, so I receive tex source files from a publisher and I work on them. I work in emacs 24.3.1 ...
5
votes
2answers
4k views

What is the \name macro?

Is anyone familiar with the macro \name{}? The AucTeX configuration uses it to avoid spell-checking people names, but it does not seem to be defined. Is it just a mock macro, or it has some real ...
5
votes
1answer
870 views

Auctex support for building using makefile in subdirectory?

I am editing my PhD thesis using Emacs & Auctex, but my elisp is quite weak. Additionally, I build my thesis in a subdirectory, using makefiles generated by CMake and the UseLATEX CMake package, ...
5
votes
2answers
688 views

How can I fix AucTeX's syntax highlighting for the lstlisting environment when using optional arguments?

The title really says it all, so I'll provide an example and a screenshot: \documentclass{article} \usepackage{listings} \begin{document} For example, if we wished to create a predicate to ...
5
votes
1answer
2k views

Preview TikZ figure in AUCTeX?

I am using AUCTeX on Emacs. When invoking preview.el with e.g. C-c C-p C-p I obtain previews of external figures (figure environment with .ps files), but not of TikZ pictures. Is it possible to ...
5
votes
1answer
547 views

auctex 11.88 bug(?) on LaTeX-env-label, cannot automatically insert label

I have recently been trying auctex 11.88 on emacs 24.4(win7+mac). it's great so far! I used to have the following in my .emacs emacs file when I was using auctex11.87 (I bumped into it on ...
5
votes
2answers
709 views

Cannot get TeX-command-extra-options to work in AUCTeX 11.88

I am using the minted package, which requires option -shell-escape to be handed over to the processor. I use XeLateX as my processor. I updated AUCTeX using ELPA in emacs 24.3.1; AUCTeX is now version ...
5
votes
1answer
126 views

Why does AUCTeX have \autocite taking two arguments?

Obviously, compiling this just yields A sample citation: [1, p. 1]arg two?no arg three. so \autocite itself definitely isn't using the argument. Why is this so, and how can it be fixed? Note the ...
5
votes
3answers
24k views

BibTex doesn't create .bbl file (Using Emacs/AUCTEX)

I am having a real issue with compiling BibTeX (has previously worked fine). When I compile LaTeX, an aux file is created. Here is my test.aux \relax \citation{carron2013big} \bibdata{rhian} \...
5
votes
1answer
2k views

Emacs / AUCTeX — Customization of keyword highlight syntax

font-lock-keyword-face is used by AUCTeX for all keywords, and I have not been able to find a way to create a new keyword that is a different color. I have defined the foreground of font-lock-keyword-...
5
votes
1answer
476 views

Emacs/AucTeX: can LaTeX-math-list read a macro that requires input?

I wanted to make a macro that inserts \left \right delimiters, but I wanted to write it only once and have different bindings pass different delimiters. To wit, I wanted to add the following code: (...
5
votes
2answers
4k views

How do you use MacVim for LaTeX?

I'm a long-time Emacs+AUCTeX user (I even once wrote a short tutorial for it!), but for a couple of different reasons (problems maintaining my Emacs configuration, the beauty of Drew Neil's voice, and ...
5
votes
4answers
1k views

Auctex TOC with multifile document

I'm writing my PhD thesis with LaTeX-Sweave and I use EMACS with AucTex and ESS. I have a master file (master.tex) and some slave files and my question is about the use of the TOC in the slave files. ...
5
votes
3answers
981 views

Indentation in AUCTEX and algorithmic package

When working with EMACS+AUCTEX I encountered the problem of proper indentation when using the algorithmic package. In this MWE: \documentclass[12pt]{article} \usepackage{algorithmic} \begin{...
5
votes
3answers
5k views

Aquamac, AUCTeX should open PDF in external viewer, not render it in Emacs buffer

I use AUCTeX in my Mac Emacs, which is Aquamac 23.1. Typically in AUCTeX, when I type C-c C-c it runs pdflatex, then C-c C-c again and it opens it in a PDF viewer. But in this Aquamac emacs version, ...
5
votes
1answer
200 views

AucTeX mistakes Tikz warning as error

AucTeX 11.90 (Emacs 25.2) gives the following error instead of a warning when using Tikz Externalize: ! Package tikz Warning: The key 'up to date check=md5' is impossible, there is no macro to ...
5
votes
1answer
155 views

How to conditionally load `tikz` and draw a TikZ diagram when `preview` is not loaded

How can I conditionally load tikz and draw a TikZ diagram only when preview is not loaded, i.e., AUCTeX is not generating images for other things (e.g., mathematical formulas)? MWE: \documentclass{...
5
votes
1answer
615 views

Indentation of tabular-like environments in AUCTeX 11.88

AUCTeX 11.88 introduced a new style of indentation for tabular-like environments. I understand this is implemented in LaTeX-indent-tabular. Is there an easy way to revert to the old style?
5
votes
1answer
2k views

Emacs Indentation Problem

I started using Emacs/AUCTeX for writing my LaTeX documents. I now have an \begin{inparaenum}[(1)] \item An Item \item an other Item \item this is an item, too ! \end{inparaenum} environment....
5
votes
1answer
754 views

Can I specify an output file name/path in AUCTeX?

I know I can use C-u C-c C-c LaTeX to edit the command before it is run, but is there any way I can generically specify an output file name without editing the command manually?
5
votes
2answers
817 views

AUCTeX: how to jump to PDF (with synctex) without recompile when inline preview has been created?

I'm using Aquamacs 2.4 on MacOS X 10.6.8 with pdflatex (TeXLive 2011). My problem: I can create inline previews of formulas, figures etc. in the source code with AUCTeX which is very helpful - e. g....
5
votes
4answers
3k views

Problem getting preview to work in Auctex on Windows 7

I'm trying to get preview of math formulas to work in AUCTeX. When running M-x preview-buffer on simple test document I get the following error: Preview-DviPS finished at Wed Dec 28 00:53:14 DviPS ...
5
votes
2answers
3k views

What Unicode Font is Best Suited for Math Symbols using Font-Locking under Emacs?

I recently installed Emacs + AucTeX on MS Windows using the pre-configured binary available from this CTAN webpage and everything works quite well with the latest MikTeX installation and Ghostscript 8 ...
5
votes
3answers
1k views

In emacs AucTeX mode, why is C-c C-j not working

I am having an issue with my newline's within itemized lists in AucTeX mode of Emacs. If I do, C-c C-e RET itemize RET, I expect the following \begin{itemize} \item \end{itemize} but instead get ...
5
votes
1answer
444 views

Efficiently highlight known math macros in AucTeX

I am using AucTeX to write LaTeX and I have fontification enabled. The highlighting of marcos works but while macros like \begin are highlighted using font-lock-keyword-face all math macros (\sum, \...
5
votes
1answer
187 views

How to call \enquote by pressing only one time " key in Emacs?

I'm using \enquote command of csquotes package to handle (multilingual) quotations. With Emacs+AUCTeX, I use the three following lines (in .emacs) to be able to call \enquote command by pressing to " ...
5
votes
1answer
85 views

All lines itemized when mark is active

In AUCTeX I would like the behaviour of LaTeX-environment and/or LaTeX-insert-item to create multiple items for every line when called with mark active.
5
votes
1answer
811 views

Emacs LaTeX formatting paragraphs

I like the Format Paragraph function of Auctex/LaTeX in Emacs but it seems to move markup commands around. Is there any way I can format a buffer but only the plaintext sections of it so that it ends ...
5
votes
1answer
1k views

How can I change the colors AUCTeX set for some keywords?

I am using emacs + AUCTeX to edit my documents. AUCTeX seems to override many colors, which are annoyingly high contrast. It made keywords stand out so much more than the contents, which is not what ...