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
2 votes
1 answer
65 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
30 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
32 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
49 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
52 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
52 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
73 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
49 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
24 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
1 answer
45 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
28 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
33 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
19 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,007
1 vote
0 answers
24 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
76 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
31 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
79 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,007
1 vote
1 answer
35 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
0 votes
0 answers
9 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
36 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
33 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
  • 83
0 votes
1 answer
24 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
  • 129
0 votes
0 answers
154 views

'pdflatex'is not recognized as an internal or external command - windows 10

I tried all the hints I found until now to install Emacs with auctex, miktex and sumatraPDF on windows 10. I actually used to have a functional setup until recently where I got strange errors ...
Florin's user avatar
  • 1
0 votes
0 answers
70 views

Auctex TeX-pdf-tools-sync-view opens pdf in current frame and instead of using another frame with pdf is already open

My question is related to this old question on tex.stackexchange, but the solution which apparently worked for LyteFM does not work for me. I've set up Auctex to use pdf-tools via (pdf-tools-install) ...
jpb's user avatar
  • 101
0 votes
1 answer
35 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
  • 327
0 votes
0 answers
75 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
38 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,300
0 votes
0 answers
22 views

Can AUCTeX indicate a duplicate of already loaded package?

Is it possible to make AUCTeX to indicate already included packages? For instance, REFTeX has a function reftex-find-duplicate-labels and I thought AUCTeX would have something similar for packages. ...
Celdor's user avatar
  • 129
0 votes
0 answers
42 views

AUCTeX preview generation not working

I'm having trouble getting the AUCTeX preview generation working on Emacs 28.2 (9.0) on MacOS 13. AUCTeX is installed from straight.el, but the issue appears if I install AUCTeX from Elpa as well. The ...
Tambarskjelve's user avatar
0 votes
0 answers
25 views

Remove preview latex icon

When using preview-latex, there is little icon with the text τέχ before the math block when the cursor is on the source code. At beginnings of lines, it moves one line above, which confuses me. How ...
HDB's user avatar
  • 101
0 votes
2 answers
60 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
  • 113
1 vote
1 answer
53 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
47 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,300
1 vote
2 answers
78 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,300
0 votes
0 answers
63 views

Stop AuCTeX from asking for a master file everytime I compile for the first time after reopening Emacs

Since I work with multifile-documents, I put (setq-default TeX-master 'nil) in my init.el. Everytime I compile for the first time in a new Emacs-session, I get queried for the master file. The first ...
Sinthoras's user avatar
1 vote
0 answers
117 views

Unable to achieve advertised "word-level" accuracy using SyncTeX with PDF Tools

From the AucTeX Changelog (v. 11.89): To open the PDF output file you can now also use PDF Tools, a document viewer for Emacs. With it, as a plus, forward and backward search is accurate at word ...
StackExchanger's user avatar
1 vote
3 answers
123 views

How can I avoid switching into font-latex-math-face in tikzpicture environment?

When I have text inside \begin{equation} ... \end{equation}, font-latex-math-face face is applied. If I have atikzpicture block inside equation, font-latex-math-face face is applied to it as well: \...
alper's user avatar
  • 1,300
1 vote
0 answers
18 views

The arrow in the PDF-Tools viewer disappears too quickly when using the 'pdf-sync-forward-search' command in a LaTeX document

Occasionally the arrow does persist long enough to see it in the PDF output, but usually it flashes by too quickly to even detect it. Any thoughts on how to troubleshoot this? It took me several hours ...
StackExchanger's user avatar
2 votes
1 answer
57 views

Condition which checks, whether one is in the argument of a Latex function

Auctex provides the variable texmathp which indicates, whether one is inside math mode. This is extremely useful, because many things in Latex-editing depend on this. Is there a good way to check, ...
Sinthoras's user avatar
0 votes
1 answer
60 views

Toggle enabled/disabled electric-pair-local-mode on LaTeX-math-mode-hook

I expected the following code would toggle electric-pair-local-mode every time I toggle LaTeX-math-mode (CTRL+C ~ in LaTeX-mode). It only works one way meaning it does turn on the electric pair mode ...
Celdor's user avatar
  • 129
1 vote
1 answer
151 views

AUCTeX does not display custom symbols added to LaTeX-math-list

This is a follow up from this question, where the previous problem was solved. I am trying to employ AUCTeX to produce certain sequences, not exactly symbols, when I press key combinations: ` C-w or ` ...
Celdor's user avatar
  • 129
0 votes
1 answer
25 views

Error adding a new sequence to LaTeX-math-list

Could someone help me to figure out what the template to add a new symbol to LaTeX-math-list is? I am trying to extend the available list with two sequences, not exactly symbols; I am not sure if this ...
Celdor's user avatar
  • 129
1 vote
1 answer
149 views

How to make Org writing similar to AUCTeX?

I'm deciding whether to use AUCTeX or Org to write my Master's thesis. I tried Org mode with the new Org-cite + Citar package, and I'm very happy about it. Then, trying AUCTeX, I found its RefTeX ...
Alessandro Bertulli's user avatar
0 votes
2 answers
351 views

How to have a consistent use of CDLaTeX between Org and AUCTeX?

I'm trying to evaluate the differences of writing in Org and LaTeX for my Master's thesis. A feature I find very useful in Org is CDLaTeX. To have a unique workflow between the two, I'd like to use ...
Alessandro Bertulli's user avatar
0 votes
2 answers
65 views

How do I "escape" a subscript or superscript in Auctex?

Let's say I write a subscript inside a math environment like \(a_p\). Auctex conveniently, and by default creates a pair {} and puts the cursor inside of it so I don't have to bother putting them ...
園田海未's user avatar
1 vote
1 answer
98 views

How to let AUCTeX automatically detect tcolorbox-environments

When I create a new environment via the \newenvironment-Command, AUCTeX automatically detects it and when I type C-c C-e the new environment is suggested and when I chose it, it asks for the right ...
Sinthoras's user avatar
2 votes
1 answer
96 views

Don't replace " in LaTeX Mode

In LaTeX mode, when I type \" (to produce a Umlaut like ö, ä or ü in the resulting PDF) emacs replaces it by ''\` (two single quotation marks, a backslash, and a backtick) which does not work for ...
M0M0's user avatar
  • 143
0 votes
0 answers
59 views

Auctex preview does not adjust line color of fractions

I am using auctex to preview latex fragments (in the normal latex mode as well as in org-mode using texfrag). I am using a dark theme, so I rely on auctex to convert the foreground color from black to ...
frasel's user avatar
  • 1
0 votes
0 answers
111 views

AUCTex in WSL cannot find TeX Live in Win

When trying to compile/ pdf-preview a tex-file, minibuffer spits out: ERROR: AUCTeX cannot find a working TeX distribution. Make sure you have one and that TeX binaries are in PATH environment ...
user0815's user avatar
1 vote
2 answers
65 views

emacs with auctex on win 10: Preview pdflatex fails

First of all, I'm a beginner to emacs, who has just begun the tutorial and reading the manuals. Therefore kindly bear with me if the given details may be somewhat lacking. On win 10, I have installed ...
user0815's user avatar

1
2 3 4 5
11