Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [auctex]

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

0
votes
0answers
12 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: .....
1
vote
0answers
14 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
12 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
52 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
170 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
39 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
1answer
97 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
82 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
57 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
30 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
79 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
63 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
105 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" ...
3
votes
1answer
167 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
181 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
77 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
131 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, ...
1
vote
0answers
87 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
139 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
260 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
2answers
140 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
158 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
208 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
156 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
228 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
110 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 ...
1
vote
1answer
573 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
99 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
58 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
0answers
60 views

AUCTeX fold mode: How to fold all environments

In AUCTeX fold mode, C-c C-o C-e folds the environment where the cursor is. How can I fold all environments (not macros) in a buffer?
0
votes
1answer
173 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 ...
0
votes
0answers
80 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
333 views

Using AUCTEX inside orgmode

Is it possible to use AUCTEX inside orgmode? Orgmode is fantastic but writing LaTeX code is not so easy. Is it possible to combine these two worlds?
1
vote
3answers
158 views

Auctex: replacing quotation marks with proper TeX ones

I'm LaTeX-ifiying a document produced by exporting an MS Word document into plain text. I'm wondering if there's some automatic method for replacing all the double quotes, so that "quoted text" is ...
0
votes
0answers
77 views

SyncTeX stops working in a large document

I'm currently writing on a large document, using AucTeX, and pdf-tools as my pdf viewer. Today, SyncTeX stopped working correctly. Forward search is fine, but backward search doesn't work. Whenever I ...
3
votes
1answer
159 views

use beamer auctex'hooks with class file derived from beamer

I have written my own beamer-derived .cls file to avoid copying and pasting my usual preamble. A MWE would be \NeedsTeXFormat{LaTeX2e}[1995/12/01]% \ProvidesClass{own_beamer}[2018/06/19 my own slides ...
0
votes
1answer
74 views

Can compile with luatex in the command line but not in AUCTEX in emacs

As stated in the title, my document compiles successfully with lualatex file.tex in the command line but not when in emacs using AUCTEX, executing C-c C-c. I'm using a Mac; Tex Live; and auctex v12.1....
2
votes
1answer
58 views

I have right letters in PDF but when i trying to parse it into text i have wrong encoded text

This picture explain actually the whole problem. I compile pdf file in AUCTeX with UTF-8-dos. And this creates another problem when I'm trying to convert this PDF into DOCX i get exactly this wrong ...
1
vote
1answer
234 views

AUCTeX Custom Command broken in new version?

I like to have the auxiliary files in a separate directory, using the following customisation for emacs/AUCTeX: \documentclass{article} \begin{document} Hello world! \end{document} %%% Local ...
7
votes
1answer
283 views

Emacs AUCTeX & TL 2018 - Problems with non ASCII characters in the file name

My recent update to TeX Live 2018 has led to a curious problem. I can no longer compile files whose names have non ASCII characters with Emacs + AUCTeX. That is curious because nothing on the side of ...
1
vote
1answer
76 views

Using a custom .fmt with Emacs/AUCTeX

I am attempting to use a plain TeX format, say, foo.fmt (based on XeTeX), with Emacs/AUCTeX (actually Aquamacs with built-in AUCTeX). I'm unable to get AUCTeX to recognize the custom format. In ...
3
votes
1answer
381 views

Emacs, AUCTeX, RefTeX and biblatex's multicite commands

I've been giving a chance to Emacs (with AUCTeX and RefTeX), but I'm still stumbling quite a lot. I've gotten the hang (and appreciated) the RefTeX way to add a citation (as described in, e.g. how to ...
0
votes
1answer
81 views

Adding a Line Between \begin{enumerate} and \item in AUCTeX

I am using Emacs with AUCTeX as my editor. Right now, if I use C-c C-e and create an enumerate environment, it will give me \begin{enumerate} \item \end{enmerate} What I'd like is \begin{...
2
votes
1answer
373 views

How to configure the sync between latex and resulting pdf in AUCTeX?

I am running AUCTeX in Emacs 25 (latest version) on arch linux. I have searched some configuration online, but they don't work. Here is the relevant configuration: (setq TeX-view-program-selection ...
0
votes
1answer
677 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 ...
2
votes
1answer
409 views

latex and auctex, how to set up latex->dvips->ps2pdf

I am using psfrag for figures quite often and generating my figures in eps format. I would like to set up my AUCTeX to use latex->dvips->ps2pdf automatically. And at the end view the pdf file ...
1
vote
3answers
144 views

Macro for inserting subsection using AucTeX?

C-c C-s produces a dialog hook which says Level: (default section). The manual says that the code for subsection is supposed to be 3. But if one types 3 RET, after completing the remaining dialogs ...
2
votes
1answer
140 views

Unexpected behaviour when typing quotes with babel

Using AUCTeX, with \documentclass[italian]{article} and babel, when I type quotes i get "< or ">: \documentclass[italian]{article} \usepackage{babel} \begin{document} "<bla"> \end{...
2
votes
1answer
354 views

How to properly set up AUCTeX to parse macros from my own *.sty files?

I am on Windows. Here is the code I have in my .emacs file to enable AUCTeX to recognize macros I have defined in my own style files: (setq TeX-parse-self t) ; Enable parse on load. (setq TeX-auto-...
0
votes
0answers
108 views

AUCTeX and XeTeX hiding PDF output

I'm running AUCTeX 11.88 and TexLive 2014 (I should upgrade), and have so far been using pdfLaTeX exclusively. My AUCTeX have been set up to output PDF files. My MWE example \documentclass[]{...