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
1answer
25 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 ...
0
votes
0answers
23 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, ...
0
votes
0answers
20 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 ...
0
votes
0answers
23 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 ...
1
vote
1answer
24 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 ...
0
votes
1answer
27 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 ...
0
votes
0answers
24 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-...
2
votes
0answers
41 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 ...
0
votes
0answers
21 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 ...
0
votes
0answers
18 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-...
0
votes
0answers
26 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 ...
0
votes
0answers
21 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 ...
0
votes
0answers
31 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} ...
0
votes
0answers
44 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 ...
1
vote
1answer
57 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 ...
0
votes
0answers
26 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]&...
1
vote
0answers
17 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 &...
2
votes
1answer
52 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 ...
0
votes
0answers
12 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 ...
0
votes
0answers
58 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 ...
2
votes
1answer
83 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 ...
0
votes
0answers
20 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?
0
votes
0answers
25 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. ...
0
votes
1answer
31 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 "%% "))) ;; ...
1
vote
0answers
59 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 ...
0
votes
0answers
36 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 ...
1
vote
1answer
46 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 ...
0
votes
0answers
86 views

elpa.gnu.org:443 has a running process;kill it? message at install AUCTeX package on emacs 27.1 on windows 10

Trying to install AUCTeX on emacs 27.1 on Windows 10, when install AUC TeX through manage emacs packages when press install while the process work appears this mesage Buffer "*http elpa.gnu.org:...
2
votes
2answers
56 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 ...
2
votes
1answer
94 views

AUCteX and LaTeX3 optional arguments

LaTeX3 allows for some flexibility in specifying optional arguments to create commands and environments. For example you could specify \NewDocumentCommand{\foo}{d<>m}{...} and this would be used ...
0
votes
1answer
37 views

AppleScript wrapper for pdf viewer fails to complete

My setup is 2020 MacBook Pro M1 (Apple silicon), Big Sur 11.2.2, MacPorts, emacs-mac-app, AucTeX, and PDF Expert. I am trying to get C-c C-c (View) to open PDF Expert at the right page. I'm almost ...
0
votes
0answers
94 views

Autoload "amsmath" style hook

How do I autoload the "amsmath" style hook with all my .tex files? Currently, it is triggered only when I add \usepackage{amsmath} to my .tex file; there are other packages and classes that ...
0
votes
1answer
32 views

Left-align equation previews (Auctex)

I would like to left-align equations in Auctex's preview's generated by preview-latex. I imagine that this would involve putting fleqn in the documentclass options in whatever latex file things are ...
0
votes
1answer
49 views

How can I go back to Texinfo native mode

I have a early-init.el file with: (add-to-list 'load-path "~/.emacs.d/el-get/el-get") (unless (require 'el-get nil 'noerror) (require 'package) (add-to-list 'package-archives ...
0
votes
1answer
35 views

fontify autoref and nameref in latex-mode buffers

When I'm in a .tex file, press M-: and run (font-latex-add-keywords '(("autoref" "*{") ("Autoref" "{") ("nameref" "*{")) ...
0
votes
1answer
47 views

inludegraphics macro does not ask for width etc. but only for llx, lly

Using GNU Emacs 26.3, I have a tex file with \usepackage{graphicx} and AUCTeX enabled. However, inserting a includegraphics macro does not prompt for the optional arguments defined in graphicx.el ...
0
votes
0answers
268 views

Good resources for turning Emacs into a LaTeX IDE?

I am learning Emacs thanks to awesome resources like this or this. However, I can't find a good tutorial for setting up AucTeX in order to turn Emacs into a LaTeX IDE. I am trying to set it up with ...
3
votes
0answers
567 views

`wrong type argument: number-or-marker-p, nil` after upgrading auctex

After upgrading to auctex-13.0.1 I am getting the error wrong type argument: number-or-marker-p, nil whenever I try to compile a latex document in emacs. Activating toggle-debug-on-error and issuing C-...
0
votes
0answers
25 views

Flycheck gutter reporting of LaTeX compiler errors

I'm wondering if it's possible to have Flycheck report LaTeX compile errors the way it reports linting errors. For example, if I have: \documentclass[12pt]{article} \begin{documen} %ERROR Hello world! ...
0
votes
0answers
38 views

Melpa packages auto updating makes then incompat

I did some work on my machine that should not have affected my current HD (installed an OS on a secondary disk; ran update-grub). When I booted to my primary working HD I find that nearly all my ...
0
votes
0answers
63 views

AUCTeX pairing large parenthesis for `\left(`

I'd like to automatically close \left( with \right) in LaTeX via AUCTeX in Emacs 27. The following should work: (add-hook 'LaTeX-mode-hook (lambda () (set (make-local-variable 'TeX-...
1
vote
1answer
81 views

Why can't I type a dollar sign in this latex equation?

Consider the following latex document. \documentclass{article} \usepackage{tikz} \begin{document} Consider the following picture. \[ \begin{tikzpicture} \node (X) {X}; % this X should be ...
1
vote
0answers
53 views

Mode-line always shows [Compiling] after compile a tex file with typos

For some special tex with typos, mode-line always shows [Compiling] even if we correct all typos. To reproduce First compile the following correct tex by C-c C-a \documentclass{article} \usepackage{...
0
votes
1answer
105 views

How to Configure AucTeX to Preview .pdf File Generated by XeLaTeX?

How can I achieve this by adding something to ~/.emacs This is my .emacs OS: Ubuntu20.04LTS (WSL) Emacs: 26.3 XeLaTeX: 6.3.2
1
vote
1answer
110 views

(Sudden) Weird behavior of M-q in auctex

I very much enjoying using the auto fill functionality that the key binding M-q provides. However, starting recently, I am experiencing a small (but annoying) change in its behavior when in LaTeX mode....
0
votes
1answer
79 views

Run latexmk inside z shell instead of shell

Problem I am using latexkm to compile .tex documents, and recently I got this error while compiling: Running `latexmk' on `AF2021_serie5' with ``latexmk -bibtex-cond -pdf -synctex=1 AF2021_serie5'' Rc ...
0
votes
0answers
31 views

AucTeX with emacs28.0.50 [duplicate]

I want to compile my LaTeX files with emacs28.0.50. I was receiving the same error that is described in this question. I followed the instructions given in the accepted answer and now my init.el file ...
0
votes
0answers
21 views

No info file for Auctex when installed manually

I just installed Auctex manually. Auctex seems to work but there is no Info 'chapter' when I type C-h i m auctex. There is no .info file in the auctex directory. So my question is where do I get the ...
1
vote
0answers
190 views

Emacs warning after package updates

After running updates using list-packages, emacs keeps popping out the following messages when I open a tex file. I tried to reinstall the packages and commented out all settings related to auctex, ...
0
votes
0answers
125 views

Fit window to pdf upon loading

Question: I'm running auctex and pdf-tools to view pdf's within emacs. My problem is that I'd like to scale the pdf window horizontally after running C-c C-c. So far, I've created a hook to execute ...

1
2 3 4 5
10