Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
44 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 ...
user avatar
0 votes
2 answers
65 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 ...
user avatar
1 vote
1 answer
39 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'...
user avatar
  • 1,112
0 votes
1 answer
27 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 ...
user avatar
1 vote
0 answers
99 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 ...
user avatar
  • 11
0 votes
1 answer
24 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 ...
user avatar
0 votes
1 answer
32 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 , ...
user avatar
  • 1,112
0 votes
1 answer
28 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.
user avatar
  • 11
0 votes
0 answers
37 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 ...
user avatar
  • 123
0 votes
1 answer
31 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-...
user avatar
  • 1,112
0 votes
0 answers
15 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 ...
user avatar
  • 105
0 votes
0 answers
15 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 ...
user avatar
  • 11
5 votes
1 answer
91 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 ...
user avatar
  • 2,889
0 votes
1 answer
47 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 ...
user avatar
0 votes
1 answer
37 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} \...
user avatar
  • 1,680
0 votes
0 answers
35 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 ...
user avatar
2 votes
1 answer
48 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 ...
user avatar
  • 21
0 votes
0 answers
30 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 ...
user avatar
  • 21
1 vote
3 answers
126 views

How can I align indents for condition statements in AucTex algorithm section?

If possible, I want to align condition statements like: \If, \Else, \For statements in between \begin{algorithmic} ... \end{algorithmic} section. example: \begin{algorithmic}[1] \For{a for statement} ...
user avatar
  • 1,112
0 votes
0 answers
41 views

Why the same font size for different latex sections with Auctex when `font-latex-fontify-sectioning` is a float?

As far as I understand, setting font-latex-fontify-sectioning to a number larger than 1.0 should make it so that the titles of sections of different levels have different sizes. However, even though I ...
user avatar
  • 103
1 vote
1 answer
30 views

How do I prevent Auctex from inserting the initial `\item` in an item-like environment?

Is there a way to customize Auctex, and in particular LaTeX-env-item so that it does not automatically insert the first \item, but still have working LaTeX-insert-item so that C-c C-j works? Looking ...
user avatar
0 votes
1 answer
66 views

How can I make `font-latex-sedate-face` have precedence over `font-latex-math-face`?

In LaTeX mode, the face font-latex-sedate-face highlights commands of the form \foo which are not known by AUCTeX. I'd like commands of the form \foo which appear inside a math environment such as \(\...
user avatar
  • 11
0 votes
1 answer
55 views

reftex does not recognize references even though default bibliography file is defined

reftex-citep does not suggest any possible completions, even though the variable reftex-default-bibliography is set to the correct bibtex file. What else do I need to do to get reftex to detect the ...
user avatar
  • 103
0 votes
0 answers
52 views

pdf-tools auctex question with split buffer (vertically split)

A related question to a previously answered question: pdf-tools now has a nice continuous scroll mode, unfortunately, horizontal split buffers dont work nicely for continuous scroll pdf preview. So, ...
user avatar
  • 193
0 votes
1 answer
66 views

How to deal with "No TeX trees available; configure ‘TeX-tree-roots’" error?

When I open a new tex file and hit C-c C-e <RET> to create document environment, the message buffer shows TeX-search-files-by-type: No TeX trees available; configure ‘TeX-tree-roots’. It will ...
user avatar
  • 23
0 votes
0 answers
30 views

How to highlight certain symbols only inside math environment?

I'd like to have certain math symbols highlighted. I checked AUCTeX manual but there does not seem to be a built-in way to do that. They are not folded forms or anything, but the real glyphs, which I ...
user avatar
  • 11
1 vote
1 answer
30 views

Project specific customization: where to put font-latex-match-reference-keywords?

In a project of mine I defined a new LaTeX command \emphix{...}, similar to \emph{...} and I want its argument to be similarly italicized in my AUCTeX/emacs buffer. To this purpose I defined (setq ...
user avatar
0 votes
1 answer
41 views

Changing the file name of the pdf generated by emacs in Latex/AUCTeX mode

I'm using AUCTeX mode in emacs, and I want the generated pdf (after I run C-c C-c) to be in the parent directory instead of the current one. In other words, I want to be able to change the filename of ...
user avatar
0 votes
0 answers
39 views

Automatically fold LaTeX environments with TeX-fold-buffer

I would like to automatically fold all LaTeX environments when I open a .tex file, so I added (add-hook 'LaTeX-mode-hook (lambda () (TeX-fold-mode 1))) (add-hook 'find-...
user avatar
2 votes
0 answers
54 views

custom labels of environment in auctex

I want to customize label of an environment I've created. I use Emacs/AucTex/Reftex. I've customized my .emacs file and it works well so far to automatically create a label when inserting my ...
user avatar
1 vote
1 answer
66 views

How to use labels inserted in .dtx files?

I wonder if there is a way to have reftex print and use labels inserted in a .dtx file from the TOC menu. As every line in a .dtx file begins with %, reftex seems unable to display labels. For ...
user avatar
0 votes
0 answers
23 views

How to add a toolbar button in AUCTEX

I have added this "stanza" on emacs 27.1 using custom.el '((arara :image "~/.emacs.d/arara.xpm" :command (progn (TeX-save-document #'TeX-...
user avatar
0 votes
0 answers
34 views

TeX-electric-macro not working in math mode

I feel like I must be very dumb, but here goes. I have TeX-electric-escape (from auctex) set in order to use TeX-electric-macro, which works fine while entering text. It autocompletes predefined ...
user avatar
0 votes
0 answers
26 views

Integrating a shell script with Emacs + aucTeX

I use git to track changes in my LaTeX documents. Emacs is my IDE of choice (20+ years and counting). A very common use case is the use of latexdiff to examine changes in the document between ...
user avatar
0 votes
0 answers
38 views

Using latex-preview in auctex for large file

I am working on my thesis, and each chapter is put in a separate .tex file. The main manuscript looks something like %main.tex \documentclass{article} \usepackage{graphicx} ... \usepackage{subcaption} ...
user avatar
0 votes
0 answers
62 views

Inserting tilde before \eqref and \cite in cdlatex

In cdlatex mode of auctex, typing ref followed by using the Tab key yields \eqref{}, where I can specify the appropriate equation label. But I would like to generate ~\eqref{} instead of \eqref{} when ...
user avatar
  • 193
1 vote
1 answer
60 views

Using multiple keys in AUCTeX LaTeX-math-list

LaTeX-math-mode in AUCTeX is very convenient for shorcuts. For example, I define the following in my .emacs file: (defconst LaTeX-math-list '(?f "frac"))) Then if I type `f the Emacs buffer ...
user avatar
  • 193
2 votes
0 answers
34 views

Custom folding citations in AUCTeX

By default, only \cite is folded by AUCTeX. If you want other citation commands to be folded as well, you have to add them to LaTeX-fold-macro-spec-list manually. For example, with (push '("[nc]&...
user avatar
1 vote
0 answers
22 views

Automatically TeX-fold paragraph after "}" + SPC

I have defined the following smartparens pair: (sp-pair "\\textit\{" "\}" :trigger "ital " :wrap "C-S-k") Now, when I write &...
user avatar
2 votes
1 answer
73 views

Flyspell: Ignore comments in LaTeX-documents

Whenever I run flyspell-buffer (using hunspell) in a LaTeX-document, my comments marked with % are spell-checked aswell, although I don't want them to be spell-checked. The simplest solution (setq ...
user avatar
0 votes
0 answers
32 views

Flyspell won't show suggestions in LaTeX [process ispell not running]

I have decided to use aspell as a spell-checker and installed it via msys2 (Windows). The command flyspell-buffer works without a problem for all file types. The weird thing is, though, that I only ...
user avatar
0 votes
0 answers
62 views

Unable to activate expl3 syntax highlighting for LaTeX mode

I have read that expl3 highlighting is already integrated in AUCTeX (see here), but I haven't been able to make it effective. Being fairly new to emacs, after browsing the web for solutions I still ...
user avatar
  • 101
2 votes
1 answer
87 views

Display LaTeX-Quotation marks as unicode characters

When quoting in auctex, I use the strings "` and "' to typeset „ and “, respectively. Now, I want emacs to display the corresponding unicode characters to these strings. I've tried it with ...
user avatar
0 votes
0 answers
23 views

multiple previews of the same equation

I'm using auctex with texlab as a language server for latex, the problem i have is that i get multiple previews of the same equation my question is how to get only one preview?
user avatar
0 votes
0 answers
27 views

C stackoverflow in my Prelude when edit .tex files

It occasionally happens to me that I get the notorious error message Re-entering top level after C stack overflow when I edit my .tex files. I checked whether it occurs with emacs -q and it does not. ...
user avatar
  • 746
0 votes
1 answer
35 views

Auctex change default comment style for latex-mode

I want a double %% to start my comments in latex documents. I'have found two solutions suggested ;; solution 1 (add-hook 'latex-mode-hook '(lambda() (setq comment-start "%% "))) ;; ...
user avatar
1 vote
0 answers
61 views

AUCTeX preview breaks if monitor orientation isn't normal or inverted

When I use AUCTeX's preview feature on a monitor who's orientation is normal or inverted (i.e. rotated either 0 or 180 degrees) then everything works perfectly and the png files from the resulting ...
user avatar
  • 61
0 votes
0 answers
38 views

query-replace within LaTeX/Math

The answer below was taken from https://stackoverflow.com/a/44913296. This is the most upvoted answer there. Unfortunately, after running the code (for example by replacing q with \theta) one ...
user avatar
  • 7,284
1 vote
1 answer
56 views

How to make Auctex TeX-command-Show do nothing?

When I use C-a to compile a source tex file, its final step is to call Evince to display the pdf (through xdg-open, I believe). However, in my computer this makes Emacs freeze for many seconds and ...
user avatar
2 votes
2 answers
68 views

Add `tikzpicture` environment to the list of choices for AUCTex's environment insertion shortcut?

I use AUCTex for all my Latex needs, and it works great. However, I wanted to insert a tikzpicture environment in my document, and I pushed the key C-c C-e for environments, but tikzpicture is not ...
user avatar
  • 509

1
2 3 4 5
10