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
26 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
80 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
75 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
48 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
  • 13.2k
0 votes
1 answer
63 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
93 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,527
0 votes
0 answers
81 views

reftex insert \eqref for \part in exam documentclass

In the exam document class, in emacs I can use C-c C-) to insert \ref{...} for labels for \part, I want to default it to \eqref{...}. I tried a bit using the following lines, but it works for \item in ...
davyjones's user avatar
  • 935
0 votes
0 answers
32 views

Natbib with multiple bibliographies not working under auctex

I am trying to compile this template locally using auctex, but when I run BibTex there are three errors: Running `BibTeX' on `epsrc' with ``bibtex epsrc'' This is BibTeX, Version 0.99d (TeX Live 2022/...
Ajned's user avatar
  • 101
0 votes
0 answers
27 views

Referencing line and page numbers of .tex file in org-mode exported file

Scenario: I am reviewing a paper using auctex, paper.tex file and writing the corresponding review report using org-mode. The final report for the reviewers will be exported into a review_report.docx ...
Ajned's user avatar
  • 101
0 votes
1 answer
65 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,311
1 vote
1 answer
122 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
74 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
  • 779
0 votes
1 answer
704 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
155 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
321 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
186 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
97 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
98 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
251 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
76 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,796
1 vote
1 answer
137 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,311
1 vote
1 answer
165 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
120 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
  • 692
1 vote
1 answer
152 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,184
3 votes
1 answer
315 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
260 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
81 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
  • 437
2 votes
1 answer
71 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
  • 541
0 votes
1 answer
165 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
2 votes
1 answer
207 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
112 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
713 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,643
1 vote
0 answers
248 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
114 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
194 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
153 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
138 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
57 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
154 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,849
0 votes
0 answers
680 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
621 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
274 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
227 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
4 votes
2 answers
997 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. ...
onomatopoeia's user avatar
3 votes
0 answers
228 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 ...
jpb's user avatar
  • 501
6 votes
2 answers
371 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?
SuperNano's user avatar
  • 183
0 votes
0 answers
114 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 ...
bashfuloctopus's user avatar
1 vote
2 answers
1k 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 ...
user2751530's user avatar
  • 1,102
2 votes
2 answers
1k 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 ...
Jan's user avatar
  • 5,224

1
2 3 4 5
12