Questions tagged [auctex]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 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 ...
user avatar
  • 205
0 votes
0 answers
49 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 ...
user avatar
0 votes
1 answer
43 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 ...
user avatar
0 votes
0 answers
35 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 ...
user avatar
1 vote
1 answer
62 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 ...
user avatar
  • 111
2 votes
1 answer
127 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 ...
user avatar
2 votes
1 answer
59 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 ...
user avatar
  • 2,604
1 vote
1 answer
61 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 ...
user avatar
  • 400
0 votes
1 answer
63 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. \...
user avatar
1 vote
1 answer
86 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 ...
user avatar
  • 631
1 vote
1 answer
126 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 ...
user avatar
  • 1,144
2 votes
1 answer
193 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 ...
user avatar
0 votes
0 answers
239 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/...
user avatar
1 vote
0 answers
74 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. ...
user avatar
  • 377
2 votes
1 answer
51 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 ...
user avatar
  • 531
0 votes
1 answer
93 views

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

OS: Debian bullseye (testing) Emacs: 26.3 Okular: 1.11.1 AUCTeX: 12.2.4 .emacs (Emacs settings): (custom-set-variables ...
user avatar
  • 1
1 vote
1 answer
129 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?
user avatar
1 vote
1 answer
84 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}[...
user avatar
3 votes
1 answer
459 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 &...
user avatar
  • 3,261
1 vote
0 answers
190 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/...
user avatar
  • 11
1 vote
0 answers
73 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 ...
user avatar
  • 11
2 votes
2 answers
115 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 ...
user avatar
0 votes
2 answers
105 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 ?
user avatar
0 votes
0 answers
104 views

AUCTex coloring

How would you configure your .emacs file to get more coloring options in Emacs+AucTeX? My .emacs configuration returns this result:
user avatar
1 vote
1 answer
50 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\}} \[ \{...
user avatar
  • 123
1 vote
1 answer
142 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.
user avatar
  • 2,679
0 votes
0 answers
294 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 ...
user avatar
3 votes
0 answers
406 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-...
user avatar
2 votes
1 answer
2k 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. ...
user avatar
4 votes
1 answer
217 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) ...
user avatar
0 votes
3 answers
136 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 ...
user avatar
  • 111
4 votes
2 answers
723 views

AUCTeX not compiling: Returning "Master file already set"

I'm writing a thesis with AUCTeX. I have one main document (master.tex) and several chapter files (chapter1.tex, chapter2.tex, etc.) that are included in the master file using the \include command. ...
user avatar
3 votes
0 answers
147 views

Multiple Emacs/Auctex + Okular instances

Working in Ubuntu with Emacs/Auctex, I switched to Okular because it has a night-mode with less contrast than simply inverting colors. I added the following lines in my .emacs file following this ...
user avatar
  • 499
5 votes
1 answer
183 views

Custom font specifiers in AUCTeX

I would like to add a new font specifier, so that I can for example use C-c C-f C-a to insert \textcolour{blue}{*} Is this possible?
user avatar
  • 173
0 votes
0 answers
93 views

reftex-toc freezes emacs

Precisely as stated. I have tried both C-c = and C-u C-c = but in each case, it says that *toc* has been successfully built, and then all of emacs freezes before anything else is displayed. Has ...
user avatar
1 vote
2 answers
971 views

Disable preview-latex

Just started using Emacs for editing my .tex documents after a long time away. I am rusty. I installed auctex and setup my environment nicely. Most things are working, but the fly in the ointment is ...
user avatar
  • 1,030
2 votes
2 answers
762 views

How to set up Emacs/AUCTeX/RefTeX to use BibLaTeX by default

In previous years I used to rely on good old (tm) BibTeX for my bibliography files. But nowadays, one should use BibLaTeX with biber as replacement for BibTeX. Hence, I would love to convince my ...
user avatar
  • 5,050
3 votes
1 answer
120 views

AUCTeX environment templates not working with nonstandard document classes

In AUCTeX the environment template (LaTeX-environment, bound to C-c C-e) tool is very useful, but it seems to not work with many (possibly all?) non-standard document classes - for me it doesn't work ...
user avatar
1 vote
1 answer
339 views

AUCTeX fails to generate previews

I am trying to generate previews using AUCTeX on Emacs GUI in my tex buffer but I get a "stop" sign error everywhere. See example below: When I click on the stop sign and select "View Error" I get ...
user avatar
3 votes
0 answers
69 views

Have two different master files compiled with AucTeX

I use a template for exercises where I have a ex environnement, and then a sol environnement. Theses files are included in one master file called for instance AF1920_serie4.tex, and in another file ...
user avatar
2 votes
0 answers
113 views

Appropriate way to skip spell-checking certain macros in AUCTeX

I want to skip checking inside the macro \acrshort (also \acrlong and \acrfull) from the glossaries package. I tried the following from the post, where I had some successes in the \cite... macros (...
user avatar
  • 925
3 votes
1 answer
156 views

AUCTeX toggle math modes

I use $ ... $ for inline math and \[ ... \] for display math. I'd like to be able to toggle between the two by selecting the text and calling TeX-insert-dollar. However, as I understand it, this ...
user avatar
0 votes
0 answers
62 views

AucTeX'sTeX-next-error not catching any errors in ConTeXt

AucTeX's TeX-next-error doesn't display any of the errors listed in the output buffer, only "No more errors". MWE: \starttext \Hello \stoptext % Local Variables: % ConTeXt-Mark-version: "IV" % End: ...
user avatar
  • 899
4 votes
2 answers
496 views

How to let AUCTeX launch automatically pythontex.py script

I need to use the pythontex package that I find very useful if someone has to do some calculation before inserting the results in LaTeX. So Here is an example: \documentclass{article} \usepackage{...
user avatar
0 votes
1 answer
126 views

itemize/enumerate are throwing a TeX-deactivate-mark issue in Aquamacs

I am using Aquamacs 3.4 in macOS 10.14.3, and have been using Aquamacs for years. When I insert an itemize or enumerate environment into a LaTeX document using C-c C-e, I get the expected prompt: (...
user avatar
  • 11
2 votes
1 answer
722 views

Math symbols insertion in AUCTeX

I've been facing some trouble with math symbol insertion in AUCTeX and I'm probably missing something from the available structure and options. But as I'm struggling for a while, I might as well ask. ...
user avatar
  • 11.1k
3 votes
1 answer
209 views

AUCTeX does not recognize cleveref labels

I use the cleveref package, which allows annotating \label commands with an optional argument. Unfortunately, this prevents the various functions in latex.el from detecting those labels. My guess is ...
user avatar
1 vote
0 answers
368 views

Emacs LaTeX compiling : error occurs then no more error [closed]

When I compile my file with Emacs with C-c C-c, I got this message: LaTeX errors in ‘*~/path/to/myfile output*’. Use C-c ` to display. Then, when I check the error with C-c `, I get this : No more ...
user avatar
  • 111
1 vote
0 answers
162 views

Emacs AUCTeX keeping focus to the source buffer after runinng TeX-command-run-all

I am using Emacs AUCTeX with pdf-tools. When I compile my tex file with C-c C-a, i.e., run TeX-command-run-all command. When it is finished, my cursor moves to the generated pdf file. I would like my ...
user avatar
  • 45
2 votes
0 answers
275 views

AucTeX - Previewing Errors

I'm using the latest version of MikTeX, Ubuntu 19.04 and Emacs 26.1. Whenever I try to use inline preview (with any region, section, or environment that has inline math), I get the following error: .....
user avatar

1
2 3 4 5
12