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.
146
questions with no upvoted or accepted answers
10
votes
0
answers
263
views
How to investigate "color bleeding"?
I frequently have color-bleed issues in emacs, most often with AUCTeX: all of a sudden and for no apparent reason, the line I'm writing will be fontified as math.
First things first: no, I do not ...
10
votes
1
answer
937
views
Is it possible to have word-wrap as standard but truncate some lines in a buffer at the same time?
I'm working with large LaTeX tables in AucTEX and it would be helpful to display them in truncated lines, like here:
The red marks are the "&" characters which separate the columns of the table. ...
7
votes
0
answers
518
views
Symbol menu in auctex math mode
in AucTex math mode several symbold are already defined. Fom latex.el:
(defconst LaTeX-math-default
'((?a "alpha" "Greek Lowercase" 945) ;; #X03B1
(?b "beta" "Greek Lowercase" 946) ;; #X03B2
(?g "...
7
votes
0
answers
727
views
Is it possible to preview TeX formulas automatically on auctex-mode?
In auctex mode, whenever I write a new formula I have to type C-c C-p C-p to render it as an inline image.
I'm wondering if it's possible to automatically render the formula or equations as I write ...
5
votes
0
answers
2k
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-...
4
votes
0
answers
702
views
prettify-symbols-mode not working in auctex
In my .emacs file, I have (global-prettify-symbols-mode), and if I visit a .el document, I see the lambda character instead of lambda.
My understanding is that in a .tex file I should see the beta ...
4
votes
0
answers
122
views
AUCTeX indenting after \newcommand
If I use a command that begin a new block (according to AUCTeX), e.g.:
\newcommand\Test{\begin{abstract}}
And then I start my document:
\begin{document}
AUCTeX will indent my code as if I typed:
\...
4
votes
0
answers
164
views
LaTeX-aware sentence endings?
Q: how do I define sentence endings to be LaTeX macro-aware?
I'd like backward-sentence and forward-sentence to be smarter about LaTeX macros -- particularly \footnote -- when working in LaTeX ...
3
votes
1
answer
209
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 ...
3
votes
1
answer
768
views
AUCTeX does not compile if the local variable is already set
I'm basically want to ask the question that was asked in Tex Stackexchange but was considered off-topic there (this is the link to the question).
When I am trying to compile (using the command C-c C-...
3
votes
0
answers
657
views
AUCTeX is obsolete on GNU ELPA?
I got this warning when installing AUCTeX from GNU ELPA. The package is installed, but I don't want to use obsolete packages for obvious reasons. I have check the official website of AUCTeX, and it ...
3
votes
1
answer
3k
views
How to get live preview in real time while editing latex source code using AUCTeX?
I'm using Emacs (26.1, build 1, i686-w64-mingw32) on the latest version of Windows 10. Im looking to turn my Emacs into a LaTeX IDE that has a 'live preview' functionality.
Ideally I would like my ...
3
votes
2
answers
460
views
Indentation with cdlatex
I am using Emacs 25.1.1 on Windows 10 OS with AUCTeX and the CDLaTeX minor mode.
CDLaTeX has a very useful feature of command input, which is typing a shortcut followed by TAB to expand that shortcut. ...
3
votes
0
answers
163
views
smartparen-latex with delete-selection-mode
In my emacs setup, if I have smartparens-mode enabled with smartparens-latex and I open a latex document, type some text then select it and type any latex special command (such as $, ", \{, etc...) ...
3
votes
0
answers
129
views
AUCTeX auto parse class file in same directory as TeX file
I have a class file hmcpset.cls which defines some macros and environments.
If I have it in the same directory as a TeX file, which uses \documentclass{hmcpset}, I would like AUCTeX to parse the ...
3
votes
0
answers
2k
views
preview math formula in org-mode
I would to include and preview some math formula inside an org-mode buffer, but can't find any way.
I've read about auctex but how can I enable it in a non tex-mode ?
Don't know really from where to ...
3
votes
0
answers
124
views
Highlighting the changed line in the source file in the resulting pdf using auctex and pdf-tools?
Is it possible to highlight the changed line in the resulting pdf using auctex and pdf-tools. I have this feature enabled in Skim with the following lines in my setup.
(add-hook 'LaTeX-mode-hook (...
3
votes
1
answer
121
views
Change overlaid text of an outline header?
Q: how do I add a new outline header regexp but change the overlaid text?
I often write presentations with Beamer in LaTeX. As such, there are a lot of frame (ie, "slide") environments:
\begin{...
3
votes
1
answer
1k
views
Installing AUCTeX, GNU Emacs 24.5.1
I'm very new to Emacs. I've installed AUCTeX version 11.89.4 using package manager (list-packages, select auctex, install it). It works, at least it shows compiled pdf result from test .tex file in ...
2
votes
1
answer
120
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 ...
2
votes
0
answers
103
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 ...
2
votes
0
answers
104
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]&...
2
votes
0
answers
263
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, ...
2
votes
0
answers
210
views
Change color of preview expressions in Auctex
In the customize group "Preview Appearance", I click on "Preview Face" and set "Foreground" to "red". To the right, I see the word "sample" displayed in red. Then I select "Save for Future Sessions." ...
2
votes
0
answers
167
views
AUCTeX: 'reftex-cleveref-cref' inserts '\eqref' instead of '\cref' for equations
When I run 'reftex-cleveref-cref', which is supposed to insert a '\cref' command in my LaTeX file, I get the expected behaviour for figures and sections, but not for equations: I get the '\eqref' ...
2
votes
0
answers
181
views
How to Add Document Class to AucTeX
I have a .cls LaTex template I would like to use regularly. Where/how should I save it so that AucTeX is aware of it? How does one set up LaTeX templates in Emacs/Spacemacs in general? I find very few ...
2
votes
0
answers
44
views
Redfining autoloaded function
I discovered that auctex's texmathp-match-switch does not check whether or not dollar signs are commented out or not, therefore i get wrong results when i all M-x `texmathp' in very specific contexts. ...
2
votes
0
answers
120
views
smartparens with LaTeX to deal with \begin \end environment and markup commands
How can I configure smartparens to treat \begin ...\end environments, and commands, e.g., \textbf, delimiters so that I can navigate them, e.g., using sp-forward-sexp.
2
votes
0
answers
64
views
Environment default attributes
When I want to insert an environment in latex, I usually call LaTeX-environment by hitting C-C C-e. However, some environment requires extra parameters, like 'aligned' requires a position or 'proof' ...
2
votes
0
answers
244
views
AUCTeX View PDF Evince SyncTeX subdirectory
I use LatexMK to output resulting files (including the .pdf and .synctex.gz) in the subdiretory out. But I also want to view the pdf and use SyncTex via Emacs and Evince.
One solution (see here) ...
2
votes
1
answer
398
views
AUCTeX Preview rung error
I'm new to emacs and AUCTeX and I'm having a problem with document preview (C-c C-p C-d). My LaTeX file is the following
\documentclass[11pt, a4paper]{report}
\usepackage{cite}
\begin{document}
\...
2
votes
0
answers
56
views
Aquamacs banner for Latex got ugly — how to get the default back?
I was setting up Aquamacs as my LaTeX editor on a new laptop (been using it for 4 years on prior machine).
My one problem is that the beautiful header I was expecting:
Was replaced by this ugly mess:...
2
votes
0
answers
194
views
indent items in auctex
What I would like to achieve is a deeper indentation of lines in items in Auctex.
\begin{itemize}
\item This is what I would like to achieve. The beginning of the
second line aligns with ...
2
votes
0
answers
62
views
Make helm-find-files work with `\input{file}` in latex files
If the cursor is on file of a line \input{file} in a latex file, helm-find-files doesn't recognize that I want to open file.tex, however calling ffap does. If I write \input{file.tex} it also works ...
2
votes
0
answers
108
views
auctex failing to render formula previews
I am trying to get auctex on emacs to preview formulas but it doesnt seem to work and when I click preview, it produces the following error:
PDF2DSC sentinel: Wrong type argument: arrayp, nil
I have ...
2
votes
2
answers
264
views
Restrict available command options in AUCTeX
I'm using AUCTeX (v.11.89.6 with Emacs 25.1). I have no problems with it, just a small nuisance. Whenever I use TeX-insert-macro (C-c C-m) I get many options I never use. For instance, when I wish to ...
2
votes
0
answers
86
views
Can I reuse Org's syntax highlighting in LaTeX mode?
Org-mode has a magical org-src-fontify-natively setting. With this on, org highlights each code snippet using the corresponding mode's font-locking support.
Can I use this in LaTeX-mode? It would ...
2
votes
0
answers
382
views
How to indent a tex file like org-mode?
When I'm editing a org-mode file, the structure of mine is like this(you may need configuration in init.el):
* A section
This is the content of the section
#+BEGIN_SRC lang
code here
#+...
2
votes
0
answers
83
views
Fixed indentation for sectioning commands
I'm looking for a particular LaTeX indentation feature regarding sections, subsections etc. Specifically, I would like to start the text within a section (assuming \section is the highest sectioning ...
2
votes
0
answers
82
views
How can I keep the TeX-error-overview buffer automatically being updated in particular frame in AUCTeX?
TeX-error-overview provides a nice overview of errors when compiling a TeX document, however the buffer does not get reused when calling it a second time. Moreover, it would be nice if it would ...
2
votes
0
answers
770
views
How to disable doc-view in AUCTex
I'm using Emacs 24.3.1 on Ubuntu 14.04 with AUCTex for LaTeX editing. The command C-c C-c allows me to easily compile the document with pdflatex. However, the second time I'm running C-c C-c, instead ...
2
votes
0
answers
612
views
Make \includegraphics and TEXINPUTS setting for images work together
In my .profile-file I have a setting like:
export TEXINPUTS=$TEXINPUTS:/home/myuser/projects/images//
If I try to include an image by using (TeX-insert-macro "includegraphics"), auctex is in the ...
1
vote
0
answers
28
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 ...
1
vote
0
answers
21
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 ...
1
vote
0
answers
127
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
0
answers
21
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 ...
1
vote
0
answers
89
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
vote
2
answers
117
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 ...
1
vote
0
answers
440
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 ...
1
vote
0
answers
42
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 &...