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
1 answer
20 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}. ...
  • 305
0 votes
0 answers
64 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 ...
1 vote
1 answer
34 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 ...
  • 1,114
0 votes
0 answers
15 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. ...
  • 117
0 votes
0 answers
31 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 ...
0 votes
0 answers
15 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 ...
  • 101
0 votes
2 answers
33 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 ...
  • 113
0 votes
0 answers
60 views

Why is this Yasnippet snippet breaking? AUCTeX+CDLaTeX+Yasnippet

I've been meaning to accelerate my LaTeX note taking on Doom Emacs, following this guide, and it has been working quite well so far. However, for some reason, any snippet that has Elisp code will not ...
1 vote
1 answer
38 views

Auto-completion of \lvert in AucTex

I wish to "electrically" insert \rvert or \Bigr\rvert when typing \lvert or \Bigl\lvert in AucTeX.
  • 113
0 votes
1 answer
30 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 ...
  • 1,114
1 vote
2 answers
76 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: \( ... $ ... \) \(...
  • 1,114
0 votes
0 answers
24 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 ...
1 vote
0 answers
108 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 ...
1 vote
3 answers
99 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: \...
  • 1,114
1 vote
0 answers
17 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 ...
2 votes
1 answer
53 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, ...
0 votes
1 answer
14 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 ...
  • 117
1 vote
1 answer
127 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 ` ...
  • 117
0 votes
1 answer
23 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 ...
  • 117
0 votes
1 answer
85 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 ...
0 votes
2 answers
87 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 ...
0 votes
2 answers
39 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 ...
1 vote
1 answer
94 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 ...
0 votes
1 answer
80 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 ...
  • 123
0 votes
0 answers
34 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 ...
  • 1
0 votes
0 answers
69 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 ...
1 vote
2 answers
54 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 ...
0 votes
3 answers
84 views

Can environments be easily wrapped with AUCTeX?

I want to quickly wrap certain environments my cursor is within with text. In my specific situation, I want to wrap the frame environment with the text \makeatletter \gdef\beamer@currentmode{beamer} \...
2 votes
3 answers
182 views

How can I run additonal linux commands after compiling a latex file

I want to run the following commands when emacs compiles a latex file. FILE="main.tex" # currently opened buffer in the emacs pdflatex -shell-escape -shell-escape -jobname=main_temp $FILE ...
  • 1,114
0 votes
0 answers
108 views

How can I suppress "LaTeX: problems after [0] pages" message?

What I you try to do: I am trying to compile a latex file (opened buffer) with the following command in order to suppress its compilation logs: pdflatex -shell-escape -interaction=batchmode ...
  • 1,114
0 votes
1 answer
50 views

AUCTeX error 127

I'm trying to call AUCTeX from Emacs and I'm now getting the following error (quote marks changed slightly to get code block below to work): Running 'TeX' on 'simple' with ''pdf/Users/myname/bin/...
  • 103
0 votes
1 answer
130 views

How can I prevent `pdflatex` logs to created?

Following solution is used as base to compile current buffer that is a LaTeX file: (defun my-run-latex () "Save all buffers and run LaTeX on the current master." (interactive) (let* ((...
  • 1,114
3 votes
1 answer
66 views

How to debug reftex not working with multiple files

I am using reftex and auctex with emacs 27.1 on Ubuntu 21.10 to write a large latex document that consists of many .tex files in a single directory. Between various weekly Ubuntu updates and editing ...
0 votes
2 answers
209 views

Tell AUCTeX to open .PDFs with pdf-tools

I am trying to set pdf-tools as my default pdf viewer when using AUCTeX. I found some guidance elsewhere on StackExchange but it doesn't get me to a solution. As per the thread highlighted, I have the ...
  • 23
1 vote
1 answer
48 views

How can I disable font-latex-math-face?

In AUCTex there is font-latex-math-face which makes color of string in between $ and $ as green. Example output: or: Is is possible to disable/delete font-latex-math-face, where the green color won'...
  • 1,114
0 votes
1 answer
38 views

How to tell emacs how to find TeX compiler?

I am trying to compile a .tex file using AUCTeX on Emacs 27.2. When I run the LaTeX command (via the menu bar) I get the following message: TeX-command: ERROR: AUCTeX cannot find a working TeX ...
  • 23
1 vote
0 answers
298 views

Broken Latex Layer in Spacemacs

I write LaTeX using Spacemacs, and suddenly (I think ever since is updated all of my packages) running latex/build fails with: TeX-command-expand: Wrong type argument: stringp, nil Below is the ...
  • 11
0 votes
1 answer
58 views

AucTex: Output PDF Buffer Location

When hitting C-c C-a to display a PDF, the buffer opens automatically below the TeX source code. How can I force it to open on the right side? I am currently using shackle to manually control the ...
0 votes
1 answer
91 views

How can I ignore chktex warnings based on their number?

I keep getting following warning message: Wrong length of dash may have been used. [8] from chktex. How can I ignore this warning message that has number 8. From command call: I can do chktex -n8 , ...
  • 1,114
0 votes
1 answer
32 views

don't insert curly braces in latex-math-mode

In latex-math-mode, when using any macro, curly braces are inserted. for example using `-g inserts \gamma{}. I would like it to produce only \gamma. I couln't find a way to do this.
  • 11
0 votes
0 answers
64 views

Disable header and footer in latex previews

When I write latex to be included in org mode it includes the header styling which is to be applied to the pdf export only. This makes it difficult to use org mode with latex previews. Is there any ...
  • 123
0 votes
1 answer
65 views

How can I compile current LaTeX buffer without showing `Master file:` line in the minibuffer

Following solution is used to compile current buffer that is a LaTeX file: (defun my-run-latex () "Save all buffers and run LaTeX on the current master." (interactive) (let* ((inhibit-...
  • 1,114
0 votes
0 answers
28 views

AucTeX + Skim, forward search now highlights in black instead of yellow

I use AucTeX in Emacs, linked with Skim, so that I can use forward search. In the past, when I hit C-c C-a from within the latex file, the file is compiled and the pdf file in Skim highlights the ...
  • 105
0 votes
0 answers
26 views

How to make TeX-fold-mode use the correct font face for folded macro argument when inside a tex environment in a org file?

Enabling TeX-fold-mode while using Org-mode produces great results in general. I do so because I have many folding settings for latex files and would like to see my org document folded in the same way ...
  • 31
5 votes
1 answer
121 views

Looking for a way to have LaTeX source code and its real-time rendering in side-by-side Emacs windows

I am looking for a way to use Emacs as a LaTeX editor that couples a persistent LaTeX source window with an adjacent real-time rendered view of the LaTeX-encoded content, similar to what is available ...
  • 3,063
1 vote
1 answer
63 views

Toggle TeX-fold-mode using a key binding

How can I toggle the auctex facility TeX-fold-mode using C-c +? I have (add-hook 'tex-mode-hook (lambda () (local-set-key (kbd "C-c +") 'TeX-fold-mode))) But this is ...
0 votes
1 answer
64 views

LaTeX code output by Calc wrong

If I enable calc-embedded mode (C-x * e) in a LaTeX document (latex mode by default) when the point is in the math environment of the document below: \documentclass{article} \usepackage{amsmath} \...
  • 1,950
0 votes
0 answers
36 views

AucTex C-c KEY-combo no longer works

Solved: I found another Emacs user who have had the same exact same issue. The solution is to remove the installed AucTex and reinstall it. This has fixed the issue. I have changed my Emacs ...
3 votes
1 answer
101 views

AUCTeX + CDLaTeX pair insertion

I think CDLaTeX might be causing problems with this. If I disable electric-pair-mode and use AUCteX’s built-in completion, auto-completion of pairs such as \[\] works as expected unless I have CDLaTeX ...
  • 31
0 votes
0 answers
34 views

AUCTeX deleting pairs

I'm trying to get deletion of pairs (e.g. (), [], \(\), \left(\right), etc.) to work more automatically, but I'm running into problems with each. If I have electric-pair-mode enabled, I can press ...
  • 31

1
2 3 4 5
11