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.

1
vote
1answer
42 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
81 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
124 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
136 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
68 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
128 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
69 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
121 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
163 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
84 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
149 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
129 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
151 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
97 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
77 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
323 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
92 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
54 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
43 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
146 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
63 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
225 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
115 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
67 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
133 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
55 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
55 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
198 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
273 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
73 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
328 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
78 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{...
0
votes
0answers
398 views

AUCTeX on Windows 10 not working

I recently got GNU Emacs 25.3 installed on my computer at work, which runs on Windows 10. Then I immediately installed AUCTeX using ELPA. But AUCTeX ignores any text file giving me instead the ...
2
votes
1answer
310 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
495 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
329 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 ...
0
votes
0answers
423 views

How to use pdf-tools with AucTeX to jump between source and PDF?

Question: How to use pdf-tools with AucTeX to jump between source and PDF? What I have tried so far: This page and this page claim that one should be able to use pdf-tools along with AucTeX to jump ...
1
vote
3answers
137 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
130 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
297 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
92 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[]{...
2
votes
1answer
283 views

AUCTeX's C-c C-c gives multiple of latexmk options

I am using Emacs 25.3 on OS X El capitan. When I do C-c C-c to compile the .tex document I get the following prompt. Every one of these options actually run latexmk but somehow it bothers me that ...
4
votes
1answer
144 views

biblatex-chicago does not run biber automatically in Emacs

I'm using AUCTeX (version 11.90.2)+RefTeX on Emacs (version 24.5.2). While I'm using the biblatex package, if I do C-c C-c, it would suggest biber as default. However, if I use the package biblatex-...
1
vote
0answers
89 views

automatic tilde(~) before \cite in reftex

The question is the same as in this other post, that I want C-c [ to insert ~\cite instead of just \cite. However, the solution given therein as follows (setq reftex-cite-format '((?\C-m . "~\\cite{...
1
vote
2answers
316 views

AUCTeX: Custom biber command in local variables

I would like to set a custom biber command via AuCTeX's local variables. Consider the following example: \documentclass{article} \begin{document} hello world \end{document} %%% Local ...
0
votes
1answer
124 views

Adding extra options to BibTeX (Emacs+AuCTeX)

I am trying to customize manually my init file so that, when running BibTeX, the option --min-crossrefs=1 is automatically added. Can this be done just by changing the BibTeX command without ...
4
votes
2answers
807 views

Can not generate Preview by AUCTeX

I try to generate preview by AUCTeX (on Emacs GUI), but it displays I click on the red sign, choose View error and get /usr/bin/rungs -dOutputFile\=\(_region_.prv/tmp5971SJc/pr1-5.png\) -q -...
1
vote
0answers
193 views

AUCTeX opens unwanted compilation buffer

I followed this other post to set up some nomenclature command and ensure command afterwards etc. Everything works perfect except when I type C-c C-c Nomenclature, a compilation buffer will pop up and ...
0
votes
1answer
62 views

How do I rebind AUCTeX C-c ` to display errors?

AUCTeX provides shortcut C-c ` to display compilation errors. This is particularly annoying on my keyboard. How can I tell AUCTeX that I want to use say C-c + instead?
0
votes
0answers
72 views

AUCTeX doesn't find errors with chemmacros and tables

When I run the following code, if I type C-c C-backtick after being notified of the presence of errors, AUCTeX says no more errors and it doesn't point me to the & in excess. The log file shows ...