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
0answers
41 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 ...
0
votes
0answers
38 views

How to set up AUCTeX/Emacs automatically to tile TeX file, overview and TeX errors?

I am trying to set up Emacs and AUCTeX to show error information buffers in a way like the following, automatically, tiling the TeX file, overview and error windows: The screenshot comes from How to ...
4
votes
1answer
92 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?
0
votes
0answers
76 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 ...
1
vote
2answers
80 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 ...
1
vote
2answers
97 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 ...
3
votes
1answer
88 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 ...
1
vote
1answer
110 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 ...
0
votes
0answers
54 views

Change the color of Auctex preview images

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
0answers
37 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 ...
0
votes
0answers
54 views

query-replace on multifile document does not work

In a multifile project, I turned on reftex and I can do incremental search through all the subfiles, as is alluded to in this post quite a while back, by the following (add-hook 'TeX-mode-hook (...
2
votes
0answers
43 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
1answer
64 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
47 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: ...
3
votes
2answers
258 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{...
0
votes
1answer
106 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: (...
1
vote
1answer
259 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. ...
3
votes
1answer
130 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 ...
1
vote
0answers
114 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 ...
1
vote
0answers
58 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 ...
1
vote
0answers
113 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: .....
2
votes
0answers
35 views

AUCTeX inverse search with region or buffer compilation

I have inverse search working great with single-file documents with Zathura. Unfortunately, things break down when I try to do inverse search when viewing a region of my document, or a buffer in the ...
0
votes
0answers
23 views

AUCTeX and --output-directory [duplicate]

Does AUCTeX simply assume that --output-directory is not used? I have compiled with --output-directory=out, and AUCTeX doesn't find the PDF: it assumes it is file.pdf when in fact it is out/file.pdf.
0
votes
0answers
108 views

TeX instead of Preview, LaTeX and Command menus after upgrade of AucTeX

I upgraded AucTeX to 12.1.2, hoping that it would fix a problem with the displaying of verbatim environments. This caused a range of problems which I am trying to track down step by step. One is ...
2
votes
1answer
238 views

TeX-complete-symbol doesn't work in math mode

I can't get AUCTeX to complete user-defined commands in math mode. As an example, TeX-complete-symbol works outside of math mode in the document below, but it stops working if I prepend a dollar sign ...
0
votes
0answers
90 views

How do I remote compile a Latex file using a local Emacs with an Auctex module installed and Latex compiler on a different machine?

How do I remote compile a Latex file using a local Emacs with an Auctex module installed and Latex compiler on a different machine? My latex is too big for my workstation so I need to move the Latex ...
2
votes
2answers
235 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, ...
3
votes
1answer
139 views

Emacs+AUCTeX: improve emacs support on cls and sty file

Considering the well-polished work on the support of tex file in Emacs by AUCTeX, it is quite confusing the support on .cls and .sty files is rather weak. For example, the \if statement is never ...
1
vote
1answer
87 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
1answer
86 views

AUCTeX fails to put auxilary files in a certain directory

I'm using Emacs + Auctex to edit and compile file .tex with xelatex at present. I want put those auxiliary files(created during compile) in another directory, e.g. /tmp. So I have the following code ...
2
votes
0answers
207 views

Highlighting forward search in Okular

I have a functional setup that does bidirectional search between emacs (auctex) and okular but lacks the highlighting of the position in pdf. In "conventional" editors, e.g. texstudio, when doing ...
1
vote
1answer
88 views

Problems with referencing in Emacs/RefTeX

I have problems referencing a table (see Example below) using GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) on Windows Pro X64 and AUCTeX with RefTeX. If I set a label, and reference it, the reference ...
1
vote
1answer
178 views

How to make AuCTeX aware of the class in the master file?

When I divide a document between a master file and other buffers, I don't get hints from AucTeX to complete environments and macros. I set the master file with: %%% TeX-master: "mymasterfile" ...
4
votes
1answer
343 views

AUCTeX: turn off autoindent

This isn't TeX, per se, but it is about writing TeX, so perhaps it is appropriate. I find that AUCTeX's autoindent works in a way that runs counter to how I work. In case I am not clear, for ...
2
votes
1answer
276 views

AUCTeX/RefTeX: How do I handle labels that use `label={name}` syntax instead of `\label{name}`?

The tcolorbox package uses a different label syntax from the usual \label{name} one: it uses label={name}. Can I tell AUCTeX/RefTeX to enter labels for the tcolorbox environments with this new ...
1
vote
0answers
86 views

C-c C-c does not start a viewer

I'm on a recent install of Ubuntu 18.04, with emacs 25.2.2, and auctex installed via the package manager. When I type C-c C-c to view a recently latex'ed document, Emacs launches the command TeX-...
1
vote
2answers
135 views

AucTeX issue with BVerbatim in newenvironment

I have the following newenvironment command: \newenvironment{code} { \VerbatimEnvironment \begin{mdframed}[ backgroundcolor=black!70, leftmargin=1, rightmargin=1, innerleftmargin=4, ...
2
votes
0answers
252 views

Auctex previews with dark theme [duplicate]

I am using auctex (last version from repositories) with emacs in a ubuntu 18.04 machine. I would like to customize emacs with a dark theme to reduce eye strain. When I do that, latex previews are ...
3
votes
1answer
174 views

Get Emacs' electric quote mode to work with AUCTeX and BibTeX mode

I've grown fond of electric-quote-mode in Emacs as a convenient way to get curved quotes in my documents. However, I can't seem to get it to work with either AUCTeX or BibTeX mode. I'm aware AUCTeX ...
2
votes
1answer
485 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 ...
2
votes
2answers
263 views

AUCTeX - Compile a document multiple times

I am working on a document that requires multiple compilations as it has a TOC, page numbers and fancy headers with section titles in header. How do I do this using AUCTeX? I am running spacemacs. ...
3
votes
1answer
204 views

Auctex: Prompt for required arguments when Auctex inserts a theorem environment?

So I have defined a theorem environment/style in a separate structure.tex file, and I want to add this theorem environment to the set of Auctex environments when using C-c C-e. However, I also want ...
0
votes
1answer
323 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 ...
0
votes
2answers
195 views

AUCTeX prompting for optional arguments

My general question: is there a way to get AUCTeX to prompt me automatically for an optional argument of a command when I invoke it with TeX-insert-macro (i.e. C-cRET)? (like it does when you invoke, ...
0
votes
1answer
460 views

Cannot load preview-latex despite AUCTEX already installed

I have installed AUCTEX from inside emacs (i.e. M-x list-packages) and according to preview-latex manual, the installation of it is already included when installing AUCTEX. But when I tried to load ...
0
votes
0answers
162 views

ConTeXt fontifying in emacs auctex

I use emacs + auctex to typeset ConTeXt documents. There are some features in the LaTeX mode that do not transpose into ConTeXt mode, and I would like to make some minor changes. Problem is, I am not ...
2
votes
1answer
1k views

Installing AUCTeX on Windows 10

I am following the detailed instructions on how to install AUCTeX on Windows found here After all prerequisites are installed the instructions state to "start some shell (typically Bash) capable of ...
1
vote
1answer
110 views

Default Color for User Defined Macros in Emacs

When writing tex documents, I often create and include a file that contains a number of user defined macros, e.g., \newcommand{\pstar}{\ensuremath{\mathcal{P}^\star}}. I'd like to set up emacs syntax ...
0
votes
1answer
60 views

Recovering tex file using tex~ file

I use Emacs AUCTEX to handle tex files. I accidentally overwrote the content of a tex file and the old content is gone. Let's say the file is file.tex. I do have the file.tex~ which was modified ...
0
votes
1answer
238 views

RefTeX: How to modify the “select a reference format” menu?

I use Emacs + RefTeX + AUCTeX to write .tex files. I use the handy keyboard macro C-c ) for cross-references. This shows a menu named SELECT A REFERENCE FORMAT and I can choose between a number of ...

1 2 3 4 5 11