Skip to main content

Questions tagged [auctex]

AUCTeX is a package for writing (La)TeX, ConTeXt, docTeX and TeXinfo in GNU Emacs.

Filter by
Sorted by
Tagged with
1 vote
1 answer
38 views

How to force `reftex-label` function to insert a more environment-dependent label?

By invoking reftex-label or by the hotkey C-c ( a label is automatically inserted in the document. For the section environment, the label is fine. But for an environment like theorem or thm a label ...
Name's user avatar
  • 2,858
1 vote
2 answers
80 views

AUCTeX preview renders tikzpicture wrong

I have the following latex document: \documentclass{article} \usepackage{tikz} \usetikzlibrary{angles} \usetikzlibrary{calc} \usetikzlibrary{quotes} \begin{document} \begin{tikzpicture} \coordinate (...
Stefan Ollinger's user avatar
0 votes
1 answer
63 views

Stop preview-latex from overwriting file

Is there a way to prevent preview-latex (on emacs through AucTex) from overwriting the main pdf when I preview the whole document with C-c C-p C-d? Edit: So, for example, if I use C-c C-p C-d, the ...
user2472071's user avatar
1 vote
0 answers
86 views

Auctex preview broken due to Preview-Ghostscript problems

I got the following error when I was running Auctex-preview. Tex Output exited as expected with code 1 at Wed Nov 29 21:31:55 Running `Preview-PDF2DSC' with ``pdf2dsc _region_.pdf _region_.prv/...
Patrick Nicodemus's user avatar
1 vote
1 answer
99 views

Circuitikz - Partway modifiers behave differently in Emacs Preview mode

This simplified version of my source code produces different results when simply run through LaTeX and when viewed using Emacs/Auctex Preview mode. My question is how to get around this problem with ...
Charles B. Cameron's user avatar
1 vote
1 answer
67 views

Using Latex-preview in Emacs with siunitx

Is there any way to get preview.el to display graphics for units expressed using the macros of siunitx? I have succeeded in getting equations and tikz drawings displayed in preview-latex, convincing ...
Charles B. Cameron's user avatar
0 votes
1 answer
73 views

Preview latex size not changing

I have found that the equation preview sizes with preview-latex don't work, despite changing preview-scale-function with the following, for example: (custom-set-variables '(preview-scale-function 2.0))...
user2472071's user avatar
1 vote
2 answers
151 views

Loading xparse explicitly required for syntax coloring in emacs?

I was surprised to discover that it is necessary to put \usepackage{xparse} in the preamble in order for syntax coloring to work for LaTeX3 macros in emacs -- or a package that loads xparse such as ...
sgmoye's user avatar
  • 8,901
10 votes
2 answers
987 views

Looking for a good Emacs/AUCTeX setup for LaTeX3

I'm trying to switch my editor from vscodium (telemetry free VS Code) to Emacs. So far, I've installed AUCTeX and tried some things in a testdocument. For regular LaTeX code everything is fine. But ...
lukeflo's user avatar
  • 1,597
0 votes
0 answers
42 views

AUCTeX Multifile Document with csquotes undetected

I am using AUCTeX 13.2.1 in emacs 28.1 and I have a multifile document setup where my master file is called these.tex and an included file is called chapter_01.tex in a subdirectory. In the preamble ...
Tetro's user avatar
  • 1
0 votes
0 answers
149 views

AUCTeX does not autocomplete environment commands of packages loaded in TeX-master

I am encountering a similar problem to this very old question, in that AUCTeX is not autocompleting commands outside the TeX-master file. I have the following files: main.tex: % arara: pdflatex % ...
Johannes Nauta's user avatar
1 vote
2 answers
131 views

How can I streamline insertion of math fonts in AucTeX?

This is essentially a modified question of 1 but with math fonts instead. What I want is an AucTex command to add to my .emacs to do the following: If I'm outside a math environment like equation or ...
Zero's user avatar
  • 627
1 vote
1 answer
58 views

AUCTeX auto style files for .dtx and .tex with the same base name

In a LaTeX package using DocStrip with pretty standard structure one could have the following files: mypackage-code.tex mypackage.dtx mypackage.ins mypackage.tex mypackage.dtx is the main file where ...
gusbrs's user avatar
  • 14k
0 votes
1 answer
83 views

Including mutiple citations in single \cite command using RefTeX, AUCTeX

I am trying to generate citations that include multiple references to different works, e.g. \cite{A,B} giving [A,B] in the text. I cannot seem to figure out how to use RefTeX+AUCTeX (in Emacs 27.1) to ...
Johannes Nauta's user avatar
1 vote
1 answer
110 views

AUCTeX indenting after ampersands

I don't know what AUCTeX thinks it's doing here, but I don't like it: \begin{align} a &= b + c \end{align} I can sort of see that maybe it thinks the +c should "go with" the = b....
Mike Shulman's user avatar
  • 1,567
0 votes
1 answer
92 views

How can I change style of algrenewcommand?

When I use \algrenewcommand{\algorithmiccomment}[1]{\hfill// #1} it has following comment style: Instead can I have following //, if you look closely end of line there is is half circle and its has ...
alper's user avatar
  • 1,505
1 vote
1 answer
133 views

auctex+reftex doesn't insert labels for tcbcolorbox environments

Until yesterday, it was all well, but today auctex+reftex doesn't insert automatically the keyval style labels. I have, as part of custom-set-variables '(reftex-label-alist '( (nil 97 nil &...
Máté Wierdl's user avatar
0 votes
1 answer
87 views

auctex inconsistent behavior: tex vs latex

I have a fresh install of miktex+emacs+auctex on my windows 10 computer. Emacs shows a Latex icon which does pdflatex when my file1.tex is loaded and it shows a tex icon which does pdftex when my ...
Adam's user avatar
  • 791
0 votes
1 answer
1k views

In Emacs AUCTex how can I change the pdf output viewer to use the doc-view-mode inside Emacs?

I am using Debian 11 and would really like to be able to use a internal to Emacs PDF viewer, as it seems it can be acomplished with doc-view-mode inside Emacs, there are some posts about this from ...
Felipe Dilho Alves's user avatar
2 votes
0 answers
218 views

math syntax highlighting with auctex in emacs

I am using emacs and the package auctex to write my latex documents. I would like to improve syntax highlighting (or font locking in emacs' jargon) for mathematics. For example, at the moment ...
vap's user avatar
  • 225
0 votes
0 answers
463 views

Unable to compile Latex file with AUCTeX on Emacs

I am using Emacs with AUCTex. The Emacs configuration, based on was working fine, but now it started complaining. I am trying to compile a test file 'test.tex' with the following contents. Any ...
AulwTheo's user avatar
0 votes
1 answer
267 views

On the content of LaTeX-environment in AucTeX

When inserting environments using LaTeX-environment in AucTeX, the candidate environment list varies from time to time. For example, I often insert the equation* environment. Sometimes this ...
xiangsheng's user avatar
0 votes
0 answers
117 views

\printbibliography is not working. How can I make it work at emacs with AUCTEX?

Using overleaf actually works, but when using emacs, the \printbibliography prints nothing. I'm also using C-c C-c and Latex, C-c C-c Biber and C-c C-c Latex again, and it does nothing. My document is ...
Jesus Armando Peña Lucero's user avatar
1 vote
1 answer
126 views

AUCTeX - Specify full path on View command (alternative to %o)

I'm trying to change the View command in AUCTeX to use my own PDF viewer. However, my PDF viewer requires the full path of the .pdf file. By default, all solutions proposed on the Internet uses the ...
marolafm's user avatar
  • 111
2 votes
1 answer
353 views

How do I tell AUCteX about custom macros AND included packages?

Similar questions have been asked before so this post may be a duplicate of: How to properly set up AUCTeX to parse macros from my own *.sty files? auctex does not parse own style file Adding custom ...
Hermann von Westerholt's user avatar
2 votes
1 answer
84 views

How to define combined shortcuts followed by the grave accent ` (backtik) in Emacs auctex?

I know how to define a new shortcut for grave accent followed by a single key. For example the below code assign the shortcut `8 for inserting \times in a latex document. (add-to-list 'LaTeX-math-list ...
Name's user avatar
  • 2,858
1 vote
1 answer
170 views

How can I vertical align of & cells in emacs auctex if a line ends with \hline?

I am using following answer for formatting a table emacs auctex tabular vertical alignment of & cells. It works like a magic as its function name iw/tabular-magic. As a minor difference I want a ...
alper's user avatar
  • 1,505
1 vote
1 answer
202 views

AUCTeX: TeX-PDF-from-DVI is always "Dvips" and file is compiled to DVI instead of PDF

I have a weird behavior of the TeX-PDF-from-DVI variable from AUCTeX: it keeps being set to "Dvips", and Emacs keeps calling latex instead of pdflatex. I start with a minimal file test.tex. \...
Evgeny Makarov's user avatar
1 vote
1 answer
137 views

How can I convince emacs/auctex to parse precompiled header files?

AUCTeX automatically parses my headers and determines what packages I use, making adjustments accordingly. For example, it knows when I've used cleveref and changes the available types of references ...
tgkolda's user avatar
  • 748
1 vote
1 answer
163 views

AUCTeX: Making new environments available for completion after C-c C-e

I have defined a new environment, argument. I would now like to include "argument" as one of the possible completions after hitting C-c C-e, and upon selecting it, be prompted for an ...
Bernhard's user avatar
  • 1,278
3 votes
1 answer
343 views

AUCTex: Math mode started with ‘\[’ cannot be closed with dollar in cases*

I have the following code: \[ \begin{cases*} 1& if \end{cases*} ... after the if, I want to type a dollar sign but get the error message "Math mode started with '\[' cannot be ...
extremeaxe5's user avatar
0 votes
0 answers
265 views

How to set Zathura as your pdf viewer with AUCTeX [duplicate]

I have been trying to set Zathura has my pdf viewer with AUCTeX in Doom Emacs. I added (setq TeX-view-program-list '(("zathura" "zathura --page=%(outpage) %o"))) to my ~/.doom.d/...
bonsoir's user avatar
1 vote
0 answers
83 views

Refreshing pdf with AucTeX doesn't work

I'm running Emacs 27.1 on OSX. C-c C-a builds my xelatex source just fine. However, when I make incremental changes to my sources and re-run C-c C-a, the generated pdf does not display these changes. ...
linuxfan's user avatar
  • 447
2 votes
1 answer
79 views

Redefine commands / Remove left spacing for equations in LaTeX Preview (also in Emacs AUCTeX)

When I run \documentclass{article} \usepackage{amsmath} \usepackage[active, tightpage, displaymath]{preview} \begin{document} \begin{equation*} 1+2 = 3 \end{equation*} \end{document} I get the ...
HBS's user avatar
  • 551
0 votes
1 answer
182 views

Forward search from Emacs (AUCTeX) to Okular with \include not working

Forward search from Emacs (AUCTeX) to Okular with \include is not working. My OS: OS: Debian bullseye (testing) Emacs: 26.3 Okular: 1.11.1 AUCTeX: 12.2.4 .emacs (Emacs settings): (custom-set-...
Evren's user avatar
  • 21
3 votes
1 answer
228 views

show list of slides in AucTeX

While editing beamer in Emacs with AUCTeX and RefTeX, how can I make the C-c = command list the frames instead the sections? Is it possible to customize the outline command?
Alexandre Rademaker's user avatar
1 vote
1 answer
133 views

Xypic compiling error with auctex

I have a problem with the following piece of code: $\xymatrix{ {X_{2}} \ar@<0.6ex>[r]^-{p_{0}} \ar@<-0.6ex>[r]_-{p_{1}} & {X_{1}} }$ is made into a LaTeX macro as: \newcommand{\arrp}[...
Partha Pratim Ghosh's user avatar
4 votes
1 answer
881 views

emacs auctex tabular vertical alignment of & cells

is there an emacs auctex macro or extension that auto-aligns vertically cells in a tabular? I am thinking of one where I put my cursor anywhere into this table \begin{tabular}{lll} x & 123456789 &...
ivo Welch's user avatar
  • 3,788
1 vote
0 answers
272 views

Error when generating latex previews on Windows 10

I recently went back to using preview LaTeX (previously used a while back when it was standalone and not part of AucTeX)...but see the following Postscript error when clicking on stop sign: c\:/Users/...
ash's user avatar
  • 11
1 vote
0 answers
133 views

Default preamble for AUCTeX latex-preview (like in LaTeXTools in Sublime Text)

I have a question: I've started using Emacs+AUCTeX for writing LaTeX documents. And I want to know whether there is any possibility for latex-preview to use some predefined preamble like LaTeXTools ...
Vadim's user avatar
  • 11
3 votes
2 answers
219 views

Inverse search on AUCTeX opens file in new Emacs window instead of main Emacs window - how to avoid that?

I am using Emacs+auctex+evince on Debian. Suppose I have a latex document main.tex which includessections/sec1.tex. When compiling with C-c C-a from within main.tex and using backwards search in ...
Benedikt Ahrens's user avatar
0 votes
2 answers
174 views

How to change the level of the sections with autex? [closed]

I have a document that I want to change the section to subsection, does a key combination from AUCTeX/Emacs commands to do that exists ?
Arnold Fernández's user avatar
0 votes
0 answers
154 views

AUCTex coloring

How would you configure your .emacs file to get more coloring options in Emacs+AucTeX? My .emacs configuration returns this result:
Arnold Fernández's user avatar
1 vote
1 answer
64 views

auctex preview-latex does not take into account newcommands

I have slightly complex symbols that I do not want to re-type in latex so I define \newcommands that abbreviate them. For example \begin{document} blah blah \newcommand{\ds}[1]{\Delta\{#1\}} \[ \{...
fakedrake's user avatar
  • 123
1 vote
1 answer
157 views

AUCTeX: Format URLs with percent sign

How I can bring AUCTeX not to format percent sign within \url{}? The document will be set fine, but if some of such URLs are in a document, the source code does not look so good.
Micha's user avatar
  • 2,869
0 votes
0 answers
852 views

xdvipdfmx:fatal: File ended prematurely Error 256 (driver return code) generating output

I try to set up auctex. It basically works now and I can compile and view simple files from within emacs. But there is one file working with includes that gives me: xdvipdfmx:fatal: File ended ...
Stefan Müller's user avatar
3 votes
0 answers
748 views

Emacs-AucTex - Preview-PDF2DSC exited abnormally with code 127 - I can't see preview-latex

Context: I am a Newbee on Emacs and AucTex. I just get started several days ago and installed some packages as some tutorials go along. I installed some packages: company, swiper, auctec, auto-...
Yuchen Zhang's user avatar
6 votes
1 answer
3k views

ghostscript: mactex conflicts with homebrew

I am using auctex and previewing equations in emacs does not work for me. It seems that the problem is related to ghostscript. I tried to reinstall ghostscript using brew, but got the following error. ...
bobsacameno's user avatar
4 votes
1 answer
295 views

TikZ and AUCTeX: Different results

Consider the following MWE: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[thick,fill=yellow!50] (0,0) circle (3); \draw[thick,fill=orange!50] (0,0) ...
Philipp Imhof's user avatar
0 votes
3 answers
257 views

Extend synctex with emacs to support multiple open pdfs?

Using this answer I've been able to get emacs, syntex, and evince to work together almost perfectly to support forward search (tex file -> pdf) and reverse search (pdf -> tex file). The one thing ...
ttb's user avatar
  • 111

1
2 3 4 5
12