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
2
votes
1answer
751 views

AUCTeX can't find file when there is an umlaut in its name (on Mac OS X)

I'm using AUCTeX for Emacs. I've got a LaTeX document that compiles fine outside of AUCTeX (so the file itself is fine). However, when I try to compile it from inside Emacs using Ctrl-C Ctrl C, I get ...
0
votes
1answer
43 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 ...
13
votes
3answers
2k views

How can I tell AUCTeX that breqn is a math environment?

I have recently been trying to use the breqn package to automatically break up my equations. However, I use emacs (and/or Aquamacs, depending on the machine I'm on) with Auctex, and it does not ...
1
vote
1answer
68 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?
1
vote
1answer
95 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 ...
2
votes
1answer
82 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 ...
2
votes
2answers
127 views

AUCTeX/RefTeX with import package in emacs, known problem from 2013 but is there a fix now?

I realized this issue with import in AUCTeX/RefTeX mode today which was also mentioned in the below thread from some years ago: AUCTeX/RefTeX, the `import` package and cross reference RefTeX ...
1
vote
0answers
125 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/...
0
votes
0answers
11 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/...
2
votes
1answer
751 views

AUCTeX failing to compile LaTeX source file to PDF

I am trying to compile a LaTeX source file within Emacs (26.1) using AUCTeX and view the resulting PDF output within an Emacs buffer. I'm using the Windows 10 OS and have downloaded the latest ...
1
vote
0answers
63 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. ...
0
votes
1answer
229 views

Soft filling (wrap) in Auctex

Auctex has a nice feature that fills the paragraph (LaTeX-fill-paragraph) based on emacs' fill-column. This as you know extends to environments as well (C-c C-q C-e). This works fine for me when I ...
0
votes
1answer
32 views

AuCTeX does not work if file name has numbers?

I created a simple Hello World file with the name plan_6000.tex. The file compiles perfectly using terminal commands. However, AuCTeX throws an error saying Undefined control sequence at line 1. ...
2
votes
1answer
26 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 ...
39
votes
5answers
11k views

RefTeX won't find my .bib file in local library tree

RefTeX gives out the following error when trying to insert a citation: No valid bibliography in this document, and no default available I keep a master .bib file in ~/Library/texmf/bibtex/bib/...
1
vote
1answer
592 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. ...
2
votes
2answers
60 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 ...
1
vote
2answers
374 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. ...
15
votes
3answers
10k views

Launching an external PDF viewer from Emacs/AUCTeX on a Mac OSX fails

I am trying to set Emacs/AUCTeX to invoke an external PDF viewer so I can view the document output, preferably with source correlation via SyncTeX. AUCTeX, by default, suggested evince file.pdf; ...
1
vote
1answer
183 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 &...
1
vote
1answer
43 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}[...
3
votes
3answers
340 views

Is there a shortcut in AUCTEX/emacs that generates these escape parentheses shorthand for the math environment:

Is there a shortcut in AUCTEX/emacs that generates these escape parenthesis: shorthand for "inline math environment" \( <cursor here> \) That puts the cursor in the middle of this &...
1
vote
0answers
46 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 ...
4
votes
2answers
2k views

Can't turn off fontified subscripts in Emacs 24

Under Emacs 24.3 and Auctex, the sub/superscript fontification is occurring outside math modes. This appears in either Beamer or normal LaTeX docs. Per this question, I've included the following ...
0
votes
2answers
2k views

Emacs/AUCTeX/LaTeXmk: Default compilation command only on first run?

When I hit C-c C-c to compile a document, my system is set up such that LaTeXmk is default typesetting option, and I just hit Enter to run it. The next time I do C-c C-c (without any changes in the ...
0
votes
2answers
64 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 ?
0
votes
0answers
76 views

AUCTex coloring

How would you configure your .emacs file to get more coloring options in Emacs+AucTeX? My .emacs configuration returns this result:
1
vote
1answer
41 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\}} \[ \{...
1
vote
1answer
118 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.
0
votes
0answers
111 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 ...
1
vote
0answers
194 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-...
12
votes
2answers
3k views

AUCTeX preview font size too small

I have Emacs 24 and AUCTex on a Windows 7 machine, however the preview font size is just way too small. Is there a way to make them bigger?
0
votes
0answers
28 views

Cannot make preview-latex work after reopening the document

I have a problem trying to make preview-latex work on my emacs. I was writing some random text on emacs and preview-latex was working, I added some equations, in the equation environment, and use ...
3
votes
1answer
141 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) ...
0
votes
1answer
42 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 ...
0
votes
0answers
39 views

Open PDF to Edit Spot in AucTex

I'm running emacs 26.3 on a fresh Manjaro install with AucTex installed for writing my LaTeX code. Thus, I am wondering how to make it such that, when I compile and view the LaTeX PDF, the PDF opens ...
1
vote
1answer
545 views

How to have AucTeX auto-complete `\left[ \right]`, `\left( \right)` in custom math environment?

Note: This is probably a duplicate, but I can't figure out the right search terms. If you can post the link to the original question and close this one, it would be greatly appreciated. I followed ...
26
votes
2answers
1k views

Folding braces in Emacs/AucTeX

I have some code looking like this: 142 \newcommand*\john[2]{ 143 blah blah blah blah 144 blah blah 145 blah blah blah 146 blah 147 } 148 149 \newcommand*\peter[3]{ 150 blah blah ...
3
votes
1answer
110 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 ...
2
votes
0answers
79 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 ...
1
vote
2answers
465 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 ...
4
votes
1answer
126 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?
2
votes
1answer
107 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 ...
0
votes
0answers
84 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 ...
2
votes
2answers
416 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 ...
1
vote
2answers
755 views

AUCTeX+RefTeX compile bibliography without explicitly providing bib file path

I'm using AUCTeX along with RefTeX in Emacs 25.1.1. My question is how to make AUCTeX to compile Bibliography without having to explicitly provide \bibliographystyle and \bibliography in every file. ...
1
vote
1answer
233 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 ...
3
votes
0answers
50 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 ...
2
votes
0answers
55 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 (...
2
votes
2answers
806 views

Configuring Emacs/AucTeX in Windows 10 to use Sumatra PDF?

This is surely easy-ish to do, but all the advice I can find is either several years old (2012), or not helpful - the Emacs Wiki claims that "Unfortunately, configuration can be tricky to get right, ...

1
2 3 4 5
12