Questions tagged [auctex]

is for AUCTeX package that extends basic tex-mode Emacs provides for editing TeX files. AUCTeX integrates many built-in and external macro packages for creating, editing, printing, publishing, and managing multilingual TeX documents. AUCTeX works with several TeX compilers, extensions, and dialects of TeX and LaTeX. AUCTeX supports customizable bibliographies, indexes, and tables of content.

Use the tag as a generic tag for many issues:

  • for AMS-TeX, ConTeXt, and other TeX dialects.
  • for LuaTeX, Omega, and XeTeX engines.
  • for other file types besides .tex, such as .aux, .dtx, .idx, .ind, and so on, which are part of AUCTeX's normal handling of TeX files.

Use additional tags, such as or , when appropriate.

Besides augmenting with the right tags, include the name of tool pertinent to the question using the tool's commonly known spelling: for example, bibtex, xindy, ps2pdf, RefTeX, dvips, , makeindex, etc.

Useful Links:

539 questions
11
votes
2 answers

How to find out what my AUCTeX version is?

How can I find out what my AUCTeX version is? I have Googled this question to no avail.
Evan Aad
  • 1,541
  • 1
  • 14
  • 30
8
votes
1 answer

Auctex doesn't run bibtex

I'm using using AUCTeX to write a IEEEtrans LaTeX document with a seperate BibTeX file. As I recall I used to simply hit C-c C-c (currently bound to TeX-command-master) repeatedly until it said "view" in the minibuffer, and then AUCTeX would have…
kidmose
  • 243
  • 2
  • 7
7
votes
1 answer

Setting MUpdf as default viewer in AUCTeX

How can I set MUPDF as the default viewer in AUCTeX (I mean setting it in the variable Tex-view-program-selection)? Many thanks
gabrielpdp1979
  • 335
  • 1
  • 7
6
votes
1 answer

How to pass flags to the LaTeX compiler with AUCTeX?

Consider the following two excerpts. The imakeidx package's user manual states (version v1.3e, 2016/10/15, Section 1 Introduction, p. 2): depending on the distribution and the shell editor that is being used to work on a specific document, it is…
Evan Aad
  • 1,541
  • 1
  • 14
  • 30
6
votes
1 answer

Use AucTeX with "latexmk -pvc": jump to errors

Currently, I edit LaTeX files by running latexmk -pvc in the background to generate PDF automatically upon change to be previewed in Evince. However, when there is a syntax error, AucTeX is not able to show it. How can I complete this integration by…
xuhdev
  • 1,899
  • 14
  • 31
6
votes
2 answers

AUCTeX isn't loading local per-package style files, is ignoring `TeX-auto-local`

My AUCTeX setup isn't loading any local per-package auto-generated style files. Suppose I have a simple package doc-preamble.sty % doc-preamble.sty \usepackage{cleveref} \newcommand*{\mycmd}[1]{Hello, #1!} and I use that in doc-main.tex (in the…
6
votes
1 answer

How can I prevent auctex to indent a new environment inside another environment?

Suppose I enter the following code using LaTeX-environment \begin{tikzpicture} \begin{pycode} a = 2 \end{pycode} \end{tikzpicture} Then auctex automatically indents as shown above. This is not desired since it will bring error…
student
  • 1,099
  • 9
  • 29
5
votes
1 answer

AUCTeX automatic extraction: beyond regexps

In my custom style support file, I would like to add custom code to parse an environment. That is, my LaTeX code looks like this \begin{foobar} some complex stuff \end{foobar} and I don't want to capture some complex stuff in a regexp, it's too…
4
votes
1 answer

How to determine the AUCTex TeX engine?

How can I find out which TeX engine my AUCTeX uses? How can I change the TeX engine my AUCTeX uses (specifically, (a) to LuaTeX, (b) to XeTeX)? Following this post, I tried to inspect the value of the variable TeX-engine, however this variable isn't…
Evan Aad
  • 1,541
  • 1
  • 14
  • 30
4
votes
1 answer

Weird behavior of LaTeX-section-label for chapter

The default value of LaTeX-section-label is: (("part" . "part:") ("chapter" . "chap:") ("section" . "sec:") ("subsection" . "sec:") ("subsubsection" . "sec:")) However, for chapter, when typing C-c C-s, we get cha instead of…
FunkyBaby
  • 797
  • 1
  • 4
  • 10
4
votes
1 answer

AUCTeX - delete 'other' files like .out, .aux, .log on successful compilation

I do not want to keep the miscellenous files created during compilation of my .tex files if the compilation is successful. I tried setting Latex-clean-output-suffixes by adding these extensions but that did not help. How do I achieve that?
deshmukh
  • 1,912
  • 14
  • 31
4
votes
1 answer

AucTeX - insert environment menu command

I have a big LaTeX project divided in many files; the \documentclass statement and the preamble are in the main file, that in turn includes many (~20) other files, one for every chapter. One of the statements in the main file is…
3
votes
1 answer

AUCteX and LaTeX3 optional arguments

LaTeX3 allows for some flexibility in specifying optional arguments to create commands and environments. For example you could specify \NewDocumentCommand{\foo}{d<>m}{...} and this would be used as \foo{something required} -- d<>…
sgmoye
  • 179
  • 1
  • 8
3
votes
2 answers

AUCTeX, caching document classes over an Emacs restart

The first time I create a new LaTeX document* in a new instance of Emacs AUCTeX scans my TeXLive installation to find all the available document classes . This scanning, due to the complexity and dimensions of a typical TeXLive, takes (much less…
gboffi
  • 614
  • 4
  • 20
3
votes
1 answer

how to find the detail of auctex startup?

when i open a .tex files, i always see Applying style hooks...done Sorting environment...done Removing duplicates...done yes, i use (load "auctex.el" nil t t) (load "preview-latex.el" nil t t) in .emacs now, i want to know: which "duplicates"…
Zeno Shuai
  • 131
  • 1
1
2 3 4 5 6 7