Skip to main content
22 votes
Accepted

AUCTeX says "LaTeX: problems after {1} page"

AUCTeX parses the output buffer in order to report errors and warnings, and if there is none of them, it looks for a line like LaTeX2e <date> However, since April 2017, the date format of ...
giordano's user avatar
  • 8,526
15 votes
Accepted

What does 'Tex-master' mean?

The tex master tells emacs which document to pass to latex. So you can have a section or even just a single equation in a file that is \input into your master document, and when you use C-c C-c or ...
David Carlisle's user avatar
9 votes
Accepted

Emacs/AUCTeX/LaTeXmk: Default compilation command only on first run?

Short answer: AUCTeX doesn't play very well with latexmk, by default. Long answer: AUCTeX has its own system to decide what command to run next, when building a document. This is based on reading ...
giordano's user avatar
  • 8,526
8 votes
Accepted

Emacs+AUCTeX: Improve ConTeXt mode indentation

Note: this question led to the inclusion of the following fix in AUCTeX. It'll be available in the ELPA version 11.90.3 and the stable version 11.91. Warning: this answer does almost what you asked. ...
giordano's user avatar
  • 8,526
8 votes
Accepted

Emacs AUCTeX & TL 2018 - Problems with non ASCII characters in the file name

We (for some definition of "we") will sort something out, but for now you can customize the latex command as follows (thanks jfbu) customize TeX-command-list to contain ("LaTeX" "%`%l%(mode)%' \\\\...
David Carlisle's user avatar
8 votes
Accepted

Custom font specifiers in AUCTeX

Customize the variable LaTeX-font-list with M-x customize-variable RET LaTeX-font-list RET. Note that C-a is already preset. You can either change that entry or pick another key for your command. ...
Arash Esbati's user avatar
  • 7,491
7 votes
Accepted

Redefining keymaps of math symbol in AUCTEX

When else fails, read the documentation: The variable LaTeX-math-list allows you to add your own mappings. User Option: LaTeX-math-list A list containing user-defined keys and commands to ...
giordano's user avatar
  • 8,526
7 votes
Accepted

Emacs + auctex freezes when compiling with lualatex

With the "Local Variables" settings, you may declare the 'engine' that Emacs will call. Usually your choice will be one of default¹ luatex, or xetex. The mode, conversely will name the format you are ...
jon's user avatar
  • 22.4k
7 votes
Accepted

how to compile tex file with -shell-escape in AucTeX using C-c C-c on ubuntu

You have to put it into a Local Variables block. \documentclass{article} \begin{document} \end{document} %%% Local Variables: %%% TeX-command-extra-options: "-shell-escape" %%% End: When I open ...
Henri Menke's user avatar
7 votes
Accepted

emacs auctex tabular vertical alignment of & cells

You can use the function align-regexp from align.el library supplied by Emacs itself. With cursor in the table, hit C-c . to mark the environment. Now hit C-u M-x align-regexp RET and append & ...
Arash Esbati's user avatar
  • 7,491
6 votes

Adding an option to the PDFLaTeX call from AUCTeX

To summarize the answer by @giordano for use by an Elisp beginner, you should add this to the bottom of your TeX document: % Local Variables: % TeX-command-extra-options: "-shell-escape" % End: And ...
Resigned June 2023's user avatar
6 votes
Accepted

automatic formatting of reference label

This behavior is controlled by the variable reftex-label-alist-builtin in reftex-vars.el, you find an entry there saying: (LaTeX "LaTeX default environments" ;; ... ("equation" ?e "eq:" ...
Arash Esbati's user avatar
  • 7,491
6 votes
Accepted

use beamer auctex'hooks with class file derived from beamer

Using M-x TeX-auto-generate in the simplest way The simplest way is, I think: Inside Emacs, in a buffer using AUCTeX, do C-h v TeX-auto-private and create the directory corresponding to the variable'...
frougon's user avatar
  • 24.5k
6 votes

Configuring Emacs/AucTeX in Windows 10 to use Sumatra PDF?

AUCTeX's built-in support for SumatraPDF was improved with the release of version 11.90. So make sure you have the latest version installed, which can be easily done from ELPA. You need to touch ...
Arash Esbati's user avatar
  • 7,491
5 votes

Efficiently highlight known math macros in AucTeX

AUCTeX has built-in facilities for custom fontification. Check the documentation, section User-defined keyword classes. You have to set the variable font-latex-user-keyword-classes. I did this in ...
Arash Esbati's user avatar
  • 7,491
5 votes

Entering math mode in AUCTeX using \( and \)

As described in its documentation, AUCTeX provides the function TeX-insert-dollar which inserts the two strings of TeX-electric-math and adjusts point position to between those strings when "$" is ...
lafrenierejm's user avatar
5 votes
Accepted

AUCTeX: How to toggle between \( \) and \[ \]

Select a region that isn't in math mode, and press $: the first time you'll wrap it with inline math delimiters (e.g. \(...\)or $...$), the second time it'll be replaced by display math delimiters (e....
giordano's user avatar
  • 8,526
5 votes
Accepted

AucTeX mistakes Tikz warning as error

Exclamation marks are usually employed to denote errors, rather than warnings. Consider for example this document: \documentclass{article} \usepackage{does-not-exist} \begin{document} Hello world! \...
giordano's user avatar
  • 8,526
5 votes
Accepted

Can not generate Preview by AUCTeX

Moderators, please don't remove this answer, I am aware that I should comment rather than answer, but I cannot comment as I don't have sufficient reputation. My Stack Overflow reputation doesn't carry ...
Ken Sharp's user avatar
5 votes
Accepted

Unexpected behaviour when typing quotes with babel

This behavior is actually expected and documented in AUCTeX manual: 5.4.1.2 Style Files for Different Languages AUCTeX supports style files for several languages. Each style file may modify ...
Arash Esbati's user avatar
  • 7,491
5 votes
Accepted

AUCTeX Custom Command broken in new version?

I don't think it is much in the AUCTeX spirit to tune LaTeX-command in order to specify that you want to use pdflatex. AUCTeX knows about TeX engines and how to activate DVI or PDF mode depending on ...
frougon's user avatar
  • 24.5k
5 votes

Installing AUCTeX on Windows 10

As well as posting the question here I also contacted the developers of AUCTeX directly. I received a reply stating that the AUCTeX installation instructions for Windows provided on the GNU website ...
John Doyle's user avatar
5 votes

Looking for a good Emacs/AUCTeX setup for LaTeX3

I have looked (admittedly, not very hard), and like you, didn't find much. As a result, I currently use a self-written (in elisp) LaTeX3-mode, which is an extension of the basic latex-mode (not AucTeX)...
enkorvaks's user avatar
  • 479
4 votes

Indentation inside align environment in Emacs + AUCTeX

Customize LaTeX-indent-environment-list: M-x customize-variable RET LaTeX-indent-environment-list RET and uncheck align and align*
pavel's user avatar
  • 861
4 votes
Accepted

how to deactivate eqnarray environment in AUCTeX

You would have to edit latex.el, but as you said, not the best choice. Not heavily tested, but putting this into your init file should do the trick: (defun dj/remove-eqnarray () "Remove eqnarray*? ...
Arash Esbati's user avatar
  • 7,491
4 votes

Exporting .org files to LaTeX - Error

Not exactly an Ubuntu answer, but I came to this page looking for a solution for the same error on a Mac. I believe my MacOS-specific answer can be adapted to other OSes. For me, installing the ...
vitaly's user avatar
  • 141
4 votes
Accepted

AUCTeX problem when splitting documents

Issue C-u C-c C-n (or from menu LaTeX → Multifile/Parsing → Reset AUCTeX) in preamble.tex's and then in document.tex's buffer, in this order. Please note that the TeX-master-file variable is wrongly ...
giordano's user avatar
  • 8,526
4 votes

For a absolute beginner, how to start to learn Emacs and AucTeX?

I advise against learning LaTeX and Emacs from scratch together. In the beginning you'll never know where to look for the error. Emacs is a real beast. There are many possibilities to cause errors on ...
Keks Dose's user avatar
  • 31.5k
4 votes
Accepted

How to set syntax highlighting for \citep as same as \cite in AUCTeX?

There are 2 solutions for your question. Prerequisite Update AUCTeX to latest version 11.90. I suggest you do it via ELPA as described in the manual. If you do so, please also read Quick Start. ...
Arash Esbati's user avatar
  • 7,491
4 votes

Invoke complete compilation chain in AUCTex with C-C C-a

There are a few issues here on the AUCTeX's side. The first, most important, is that AUCTeX doesn't handle the case in which the TeX file and the bibliography file share the same base name (e.g., the ...
giordano's user avatar
  • 8,526

Only top scored, non community-wiki answers of a minimum length are eligible