Skip to main content

Questions tagged [auctex]

is for AUCTeX package that extends basic `tex-mode` Emacs provides for editing TeX files. AUCTeX integrates many built-in and external macro packages for creating, editing, printing, publishing, and managing multilingual TeX documents. AUCTeX works with several TeX compilers, extensions, and dialects of TeX and LaTeX. AUCTeX supports customizable bibliographies, indexes, and tables of content.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

Generate a list of compound labels (\cmpd{}) in auctex

Let's say I have a LaTeX document where I am using the chemnum package to keep automatic numbering of chemical compounds: MWE \documentclass{article} \usepackage{chemnum} \begin{document} Compound \...
Alejandro Méndez's user avatar
1 vote
1 answer
79 views

Adding labels to items in enumerate environments in AucTeX

I'm trying to use the official AucTeX insertion mechanism to insert environments, it being official and all, but I'm having a really hard time getting into it. For instance, AucTeX automatically ...
Alexander Praehauser's user avatar
1 vote
1 answer
62 views

AUCTeX: Add "\Clause[optionlist]" to section commands, if package contract is loaded

There is a new LaTeX package: "contract". Inside a contract environment there are two new sectioning commands: \Clause[optionlist] \SubClause[optionlist] The section command of Clause is on ...
Keks Dose's user avatar
  • 528
2 votes
1 answer
33 views

Making \includegraphics interact with \graphicspath in AUCTeX

Can I make \includegraphics aware of \graphicspath arguments when prompted for a graphics file? I have \usepackage{graphicx} \graphicspath{{./images}} in the preamble. With C-c C-m \includegraphics I ...
makalakat's user avatar
0 votes
1 answer
49 views

How to do an ordinary forward-paragraph in latex-mode?

Is there an easy way to perform an ordinary forward-paragraph in latex mode? When the point is at a after running the command forward-paragraph the point goes before the first \. I just want to go ...
Name's user avatar
  • 7,935
0 votes
0 answers
80 views

Interacting with Okular (backward search)

I use Auctex to edit my LaTeX files. I've configured Auctex to use Okular as my PDF viewer, and I've configured Okular to use Emacs (emacsclient) as its editor. When I compile a source file with C-c C-...
gboffi's user avatar
  • 614
5 votes
1 answer
501 views

Can I mark a local variable as safe for a single file only?

I have a LaTeX-file (thesis.tex) which I edit daily. Some LaTeX-package I use requires me to compile the file with --shell-escape, so I added the file-local variable %%% TeX-command-extra-options: &...
red_trumpet's user avatar
0 votes
1 answer
81 views

AUCTeX cannot find a working TeX distribution (again)

This is DIFFERENT from many other questions about "AUCTeX cannot find a working TeX distribution" because the TeXlive binaries ARE in my Emacs' "PATH" environment variable. I have ...
gboffi's user avatar
  • 614
0 votes
0 answers
72 views

Auctex changes when inserting items

I am using AucTex 13.2-1, and I have noticed some changes in the insert-item functionality. Previously, when used C-c C-e, I was prompted for the environment type and, when choosing itemize, the ...
Moritz's user avatar
  • 1
0 votes
0 answers
55 views

Debugging preview-latex

Running preview-latex in Emacs 25 on Ubuntu 18.04 once worked for me, but now inserts warning icons instead of rendered images of the formular snippets. A minimal example, which doesn't work is: \...
NicolasBourbaki's user avatar
0 votes
0 answers
63 views

Color bleeding and polymode

I sometimes experience "color bleeding" in auctex, and wasn't able to find the source of the problem for a long time. In particular because I wasn't able to reproduce the issue. I also can't ...
student's user avatar
  • 1,119
0 votes
0 answers
104 views

Emacs/aucTeX ignores local variables

I am using emacs 29.2 (installed via brew) and auctex (14.04) on a Mac (12.7.4). My .emacs file shows: '(enable-local-variables :t) I have the following at the end of a TeX file: %%% Local Variables: ...
sgmoye's user avatar
  • 179
0 votes
1 answer
47 views

How to set keybindings to jump to next/previous latex math environment?

In vim (I think with vimtex) one can jump to the next or previous math zone (inline or display mode) with a keybinding. Using auctex or org mode (preferably org mode), how could one do that in emacs ? ...
userrandrand's user avatar
0 votes
1 answer
40 views

Installing and Managing texmathp.el Independently from AUCTeX in Emacs

I'm interested in using texmathp.el, a file provided by the AUCTeX package, without having to install the entire AUCTeX package. Is there a way to install texmathp.el through Emacs' package manager ...
Gabriele's user avatar
  • 1,660
1 vote
1 answer
156 views

Call of LaTeX via AucTeX 14.0.3 freezes emacs 27.1

Since today, I've been experiencing freezes of my emacs/AucTeX config. I'm using Ubuntu 22.04 with emacs 27.1 (if important, i3 and fizsh as defaults). The freeze happens when I press C-c C-c Enter (...
mfg's user avatar
  • 161
1 vote
1 answer
96 views

Distinction between inline and display math instead of default behavior of texmathp

The default behavior of texmathp gives true regardless of wheter the cursor is inside an inline or display math environment. Is there a way for texmathp to display true only if the cursor is inside an ...
userrandrand's user avatar
3 votes
1 answer
182 views

AUCtex buttons not working

I am assuming this is my error, I just cannot figure out what it is. I have a project76 meerkat running Ubuntu 22.04. I have installed latex using sudo apt install texlive-latex-extra and emacs ...
Kurt Lewis's user avatar
2 votes
1 answer
200 views

Auctex 14.0.2 returns errors on (wrong-type-argument number-or-marker-p nil) in run-hooks when opening tex files

Similarly to this thread since upgrading to AUCTeX 14.0.2 there are errors when I open TeX files. This seems to be a different issue though, since the AUCTeX version is different and the toggle-debug-...
Ajned's user avatar
  • 764
1 vote
2 answers
127 views

Determining AUCTeX Activation in Emacs Buffer: Major Mode Detection Issue

I recently upgraded to Emacs 29.1 (from Emacs 26). While using latex-mode, I encountered a fontification issue for which I found a patch (Latex mode: tex-verbatim face has priority on font-lock-...
Gabriele's user avatar
  • 1,660
2 votes
2 answers
288 views

How to install AUCTeX on Emacs without automatic activation for LaTeX (.tex) files?

I am interested in installing AUCTeX on Emacs to support writing LaTeX documents. However, I would prefer to avoid the automatic activation of AUCTeX when opening LaTeX documents and only activate it ...
Gabriele's user avatar
  • 1,660
2 votes
2 answers
152 views

LaTeX equation numbers with Emacs

Equation labels in the .tex document are \label{eq:3}, e.g., which is (7) on the output pdf-document (say); \eqref{eq:3} references this equation. Typing <C-x-o> at point (| in the following ...
Alois Pichler's user avatar
2 votes
1 answer
82 views

Stop AUCTeX from automatically adding style based on filename

If I try to create a LaTeX file named notes.tex, AUCTeX automatically adds the style "notes" and runs the style hook for "notes". This creates a bunch of environments in LaTeX-...
Janet's user avatar
  • 165
0 votes
1 answer
57 views

Org-mode LaTeX export set AUCTeX local variables

I have an org-mode document, say #+TITLE: My Title * Section My first section and I want to export it to LaTeX with org-latex-export-to-latex. This generates a .tex file that I can now compile. ...
burek's user avatar
  • 35
0 votes
1 answer
41 views

Aquamacs + Auctex fontification issue

I use Aquamacs to edit tex files on two different Mac machines. I really like some of Auctex's features, notably the way it formats in math mode to make things a bit easier to read. A few weeks ago ...
user41864's user avatar
1 vote
1 answer
81 views

Making cleveref insertions globally available

I keep all my commonly used latex packages in one custom package, including the referencing package cleveref. However, reftex is configured to only provide insertion of cleveref referencing commands ...
Alexander Praehauser's user avatar
2 votes
1 answer
107 views

RefTeX reftex-citation not showing all entries and takes preceding word as argument

After initial setting up emacs with AuCTeX and RefTeX everything worked fine. may not be the problem, see edit below Now, for a porject I tried setting up RefTeX to work with markdown-mode with this ...
lukeflo's user avatar
  • 195
2 votes
1 answer
88 views

AUCTeX: Some general macros/command missing from auto-completion/macro insertion

While further trying to set up a Latex environment in emacs I stumbled over a "problem" with macro-completion which I don't understand right now. When writing Latex code the usual way to ...
lukeflo's user avatar
  • 195
1 vote
1 answer
132 views

Add parsing of latex-style .el file to LaTeX-hook using AUCTeX

I did some online research (e.g. here) but couldn't figure out how to solve the following problem so far (of course, I might have overlooked something since the whole emacs community is new to me). ...
lukeflo's user avatar
  • 195
1 vote
1 answer
67 views

How can I make AUCTeX recognise this macro?

I'm writing a custom helper command for my beamer presentation: \newcommand{\sectionfigure}[1]{ \begin{tikzpicture}[overlay, remember picture] \node at ([shift={(0, 0.27925\paperheight)}] foot....
Alessandro Bertulli's user avatar
0 votes
0 answers
32 views

How can I make `fill-paragraph` on selected text respect indentation in AUCTeX?

Using fill-paragraph in AUCTeX normally respects the given indentation. However, if I use fill-paragraph on a selection, only the first line will be indented, the other lines won't. Is there a way to ...
red_trumpet's user avatar
0 votes
2 answers
66 views

AucTeX: Keybinding for compiling document

Is there a command, for which I can set a keybind for compiling the document? The command (TeX-command-master, bound to C-c C-c) gives you a list of options but it's rather inefficient. I'm looking ...
AmberWing's user avatar
0 votes
0 answers
50 views

Save LaTeX/AucTeX generated auxiliary files to a separate directory EXCEPT for the PDF file

I am using AucTex in Emacs to compile my LaTeX files. Is there a way to keep just the PDF file in the current directory and send all the other auxiliary files to a separate folder? I have set TeX-...
sm10's user avatar
  • 31
1 vote
1 answer
61 views

Unexpected auto indentation by 8 spaces with AucTeX

It's currently hitting the standard list-like environments and comments but I can't quite figure when exactly it happens, as it looks non-deterministic: sometimes in a big document I actually get a ...
Artem Pelenitsyn's user avatar
1 vote
1 answer
35 views

Make auctex ask me only for position and width when inserting a minipage environment

If I insert a minipage environment using auctex LaTeX-environment it asks me for "Position", "Height", "Inner Position" and "Width". However I only want to be ...
student's user avatar
  • 1,119
1 vote
0 answers
26 views

CDLaTeX: No such modifier ‘t’ outside math mode

I'm trying out CDLaTeX, but I'm running into the problem that when typing e.g. "don't" in text mode, I get: cdlatex-math-modify: No such modifier ‘t’ outside math mode I have a similar ...
TSG's user avatar
  • 123
0 votes
0 answers
118 views

AucTeX doesn't start properly

I just moved to an M2 Mac and simultaneously abandoned AquaMacs for Emacs 28.2. Everything more or less works, except that after installing AucTeX, it fails to start properly, giving me internal--...
rogerl's user avatar
  • 205
0 votes
1 answer
39 views

transient mark mode highlighting not visible inside preview latex

I am using preview latex in auctex. When you are inside an equation there is a blue background around the latex you are previewing, which means I cannot see the highlighing from transient mark mode. ...
Progamer's user avatar
0 votes
1 answer
169 views

Change latexmkrc by setting file local variable

How can I specify inside a latex file (for example as a local variable) that compiling with latexmk should use a latexmkrc file with a specific path say /path/to/latexmkrc and not the default one and ...
student's user avatar
  • 1,119
1 vote
1 answer
45 views

Always replace " with \enquote{ or }

You can configure AuCTeX to automatically replace " with \enquote{ or }, if the package csquotes is loaded, which is great. But when I am using my own custom class, where csquotes is loaded in ...
Sinthoras's user avatar
1 vote
0 answers
19 views

Auctex: when an error occurs, I get moved to a .vrb file instead of the main file

If I write a LaTeX document with beamer and fragile slides with an error, like: \documentclass{beamer} \begin{document} \begin{frame}[fragile]{Test} Page 1\eia \end{frame} \end{document} and ...
tobiasBora's user avatar
0 votes
1 answer
51 views

Compiling .tex files seem to be tied to a username?

I'm working on multiple computers and compiling LaTeX document through AUCTeX. I've set up Evince as my external viewer and the synctex and back referencing work perfectly... ...as long as I've ...
Ink blot's user avatar
  • 101
0 votes
0 answers
54 views

Orgmode : do not switch to latex/MPS mode when entering math environment

With a recent emacs-master and up-to-date packages, I noticed that the major mode of an org file switches from org mode to latex/MPS (as it appears on the modeline) whenever I enter in a math ...
deb2014's user avatar
  • 183
0 votes
1 answer
49 views

How to make AUCTeX aware of my custom sty files in an inner folder

Is it possible to point AUCTeX to extra *.sty files I load from an inner folder? Currently, I don't have access to environments defined e.g. in amsmath. I realise the problem is AUCTeX does not seem ...
Celdor's user avatar
  • 130
0 votes
1 answer
46 views

reftex customizing tags for cleveref

Is it possible to customize reftex so that for an equation (when I type "e" after invoking reftex) I get \eqref{eq:blah} but for anything else (theorem, lemma) I want to get \vref{thm:abc}. ...
Vikram's user avatar
  • 337
0 votes
0 answers
85 views

How to instruct AUCTeX to ignore a specific character when indenting?

I'm writing a document with AUCTeX using the songs package. It all works well, but it requires to input chords like in the sequence \[La]. The problem is, AUCTeX ignores the first bracket (since it is ...
Alessandro Bertulli's user avatar
1 vote
1 answer
40 views

How can I prevent inner-indent after `\begin{frame}` in auctex?

In auctex, there is \begin{frame} block in beamer. After this coming text starts with a indent. Is it possible to prevent this? file.tex \section{MySection} hello world ^ |__[TAB] => nothing ...
alper's user avatar
  • 1,420
0 votes
2 answers
86 views

Open pdf of citation in auctex

One can currently open a pdf of a citation in a latex document via the following steps: open a latex document in emacs with installed packages auctex, reftex, ivy-bibtex, and pdf-tools move cursor ...
HRSE's user avatar
  • 123
1 vote
1 answer
59 views

Auto-completion of \lvert in AucTex

I wish to "electrically" insert \rvert or \Bigr\rvert when typing \lvert or \Bigl\lvert in AucTeX.
Eskil's user avatar
  • 113
0 votes
1 answer
77 views

How can I change color of dollar sign different than font-latex-math-face in auctex?

In AUCTex, my font-latex-math-face has green color that also colors $ $ or \( \) into green as well. Here I just want to have different color for dollar sign than font-latex-math-face's Is it ...
alper's user avatar
  • 1,420
1 vote
2 answers
83 views

How can I catch `unexpected $ after open inline math \(` in auctex?

Overleaf generates following warning message for tex files: unexpected $ after open inline math \(. Is it possible to catch this warning message in AUCTex as well? Example would be: \( ... $ ... \) \(...
alper's user avatar
  • 1,420

1
2 3 4 5
11