Skip to main content

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.

Filter by
Sorted by
Tagged with
17 votes
1 answer
4k views

How to indent items in LaTeX/AUCTeX itemize environments?

Q: how can I get "proper" indentation of LaTeX itemize environments in auctex? Here's where I'd like to be with an item in an itemize environment: \item line is indented two spaces relative to the ...
Dan's user avatar
  • 33k
14 votes
2 answers
4k views

How can I preview TeX formulas inline in arbitrary modes?

How can I get TeX previews inside modes other than AUCTeX or org-mode? I'd love to see TeX equations in jabber, erc and markdown. If I ever switch to Emacs for email, I'd presumably like to see ...
Tikhon Jelvis's user avatar
13 votes
2 answers
8k views

How to call pdflatex under TeX-PDF-mode?

I am already in TeX-PDF-mode. When C-c C-c and type in pdflatex, it doesn't run. How can I run pdflatex in TeX-PDF-mode? Note: I don't change my emacs configuration file. Thanks.
Tim's user avatar
  • 5,007
13 votes
1 answer
368 views

Highlighting missing references

Is it possible for auctex to display missing references differently to ones which are in the bib file? Currently, all references look identical so it's impossible to tell at a glance which citation ...
cazgp's user avatar
  • 231
12 votes
3 answers
1k views

How to delete a LaTeX macro while preserving its text content?

In TeXStudio by hitting ALT+DEL in a LaTeX macro like this \macroname{content} while the cursor stands just before the first { will result in deleting all that except its content (as shown below). ...
doctorate's user avatar
  • 1,829
12 votes
3 answers
9k views

How to make auto-complete work in AucTeX mode?

I want auto-complete (ac) to work when I am inside AucTeX mode. I get all packages from MELPA by package installation. This is my relevant code in init.el file: (require 'package) (package-...
doctorate's user avatar
  • 1,829
12 votes
1 answer
9k views

How to let AUCTeX open PDF with pdf-tools

Some TeX/LaTeX editor has support for embedding PDF viewer, and forward/backward search support. I want to configure AUCTeX and pdf-tools to this result. I found a discussion in mailing list. https:...
stardiviner's user avatar
  • 1,928
12 votes
2 answers
1k views

Aligning multi-lined equations and tables in latex-mode

Let's say I'm editing a latex in Auctex's latex-mode, and I have the following equation. This is just indented with indent-region. \begin{align} \phi & = a + b + c + d \\ & = a + ...
Malabarba's user avatar
  • 23.2k
12 votes
1 answer
1k views

how to detect if inside a LaTeX math environment?

Q: is there a way to detect if point is inside a LaTeX math environment? How would one detect whether point is or is not inside a LaTeX math environment, whether delineated inline by $...$ or by ...
Dan's user avatar
  • 33k
12 votes
1 answer
326 views

Auto-Indenting \if statements with AUCTeX

The current AUCTeX behaviour for primitive tex code involving if-like statements is to indent the conditional statement at the same level as the surrounding condition. I.e. code such as \if@...
elemakil's user avatar
  • 2,527
11 votes
2 answers
1k views

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's user avatar
  • 1,541
11 votes
1 answer
760 views

changing the role of the underline and the minus-sign just in LateX-mode

During the work with tex files with auctex+emacs (LateX-mode), I use more frequently _ (underline) instead of - (minus sign). The same as ^ instead of 6. The inconvenience is that I should press more ...
Name's user avatar
  • 7,869
11 votes
2 answers
998 views

RefTex searching for multiple articles with Helm

I recently started using Helm and am really enjoying it. However, I use emacs to write a lot of LaTeX. When I cite articles, I often need to cite several in the same cite macro - I could search my ...
user2178117's user avatar
11 votes
1 answer
651 views

Arara integration in Emacs?

Is there a way to integrate Arara as a way to automate the building process of a LaTeX document in Emacs/AUCTex?
Francis's user avatar
  • 113
11 votes
1 answer
283 views

Gradually learning the keybindings provided by AUCTeX

If I do M-x forward-char, Emacs gives a very useful message You can run the command "forward-char" with C-f. Considering the fact that Emacs can find all LaTeX keybindings in the file latex.el ...
Name's user avatar
  • 7,869
10 votes
3 answers
713 views

Indentation in square brackets

Yet another question about indentation in AUCTeX... I would like to be able to indent content inside square brackets [...]. It would be useful for tikz option lists, for example, or trees drawn using ...
T. Verron's user avatar
  • 4,283
10 votes
1 answer
156 views

Speed up TeX-insert-macro on \input

In latex-mode when I use TeX-insert-macro to type a \input{...} macro, Auctex conveniently offers filename completion, which is great. However, it seems to search a lot of places to compile the ...
Malabarba's user avatar
  • 23.2k
10 votes
0 answers
257 views

How to investigate "color bleeding"?

I frequently have color-bleed issues in emacs, most often with AUCTeX: all of a sudden and for no apparent reason, the line I'm writing will be fontified as math. First things first: no, I do not ...
T. Verron's user avatar
  • 4,283
9 votes
1 answer
649 views

Overriding fill-paragraph in LaTeX mode

I would like to change the behavior of fill-paragraph in certain modes (e.g. LaTeX-mode provided by AucTeX). I could just rebind the key M-q, but I am also using evil-mode whose implementation of ...
Kevin's user avatar
  • 576
9 votes
2 answers
325 views

Call emacsclient from a program called by Emacs

I've run into a problem viewing pdf documentation files with AucTex. I use pdf-tools to view PDF files from within Emacs, and I've set emacsclient -n as my default pdf-viewer (via xdg-mime on Debian ...
Tyler's user avatar
  • 22.3k
9 votes
1 answer
915 views

Is it possible to have word-wrap as standard but truncate some lines in a buffer at the same time?

I'm working with large LaTeX tables in AucTEX and it would be helpful to display them in truncated lines, like here: The red marks are the "&" characters which separate the columns of the table. ...
MostlyHarmless's user avatar
8 votes
2 answers
150 views

Auto-inserting last used sub-/superscript values in math formulae

I use AUCTeX for type-setting mathematical texts. Often I have to type equations with sums, integrals etc. which all have the same sub- or superscripts. I'd like to autofill the current sub-/...
Jens Kubieziel's user avatar
8 votes
3 answers
870 views

Search and replace through a multifile project in AUCTeX?

I am about to adopt Emacs to be the only editor I use in all what I am writing including LaTeX documents. I came from WYSIWYG editor which served that purpose fairly nice, namely TexStudio or TXS for ...
doctorate's user avatar
  • 1,829
8 votes
1 answer
4k views

How to use AUCTeX and outline-minor-mode together for folding? [duplicate]

I'd like to easily hide or show the text below individual headings in a large Latex document. I thought this should be possible with outline-minor-mode, however I can not get it to work. I can ...
MostlyHarmless's user avatar
8 votes
1 answer
4k views

Emacs setup for LaTeX after (use-package) verse

How to make this configuration file work with use-package with regard to AucTeX, RefTeX and LaTeX. I usually write latex rahter than pure tex documents. Current Working Emacs Configuration (load "...
doctorate's user avatar
  • 1,829
8 votes
1 answer
409 views

Formatting of usepackage commands in LaTeX document

I'm trying to use AUCTeX edit LaTeX files. The beginning of the document I just wanted to edit looks like this: It's not neatly organized, inconsistent in many ways, and I should probably change it ...
UTF-8's user avatar
  • 915
8 votes
1 answer
4k views

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 "...
kidmose's user avatar
  • 243
7 votes
1 answer
1k views

Select images in auctex with preview

If I insert an image into a latex file (via \includegraphics) auctex lets me select the file and inserts the filename. However using this dialogue, I can only choose the filename and cannot see ...
student's user avatar
  • 1,109
7 votes
1 answer
848 views

Multiple major modes in one buffer (e.g., python-mode & LaTeX-mode)

Using the LaTeX-package pythontex I one can insert python code into the latex document which is executed (and printed to your latex file if you want) if you run latex. I use auctex for editing latex ...
student's user avatar
  • 1,109
7 votes
1 answer
287 views

How does AucTeX display superscripts?

latex-mode is has a nice display of superscripts and subscripts. Not only are they reduced in size, but they are respectively raised and lowered a bit relative to the current line. Q: How can I make ...
Malabarba's user avatar
  • 23.2k
7 votes
1 answer
578 views

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. ...
student's user avatar
  • 1,109
7 votes
1 answer
685 views

LaTeX Mode and Listings with $-signs?

I am using LaTeX-Mode and need to include some listings which contain dollar-signs: \begin{lstlisting}[caption=Meteor Server: Bereitstellen einer entfernten Prozedur,label=lst:meteor-server-publish-...
Marcus Riemer's user avatar
7 votes
1 answer
364 views

How can I disable quail input methods in LaTeX formulas?

If you set an input method (for example via M-x set-input-method RET cyrillic-translit RET) you can type Cyrillic characters using a US keyboard: Emacs will use transliteration rules to convert Roman ...
Name's user avatar
  • 7,869
7 votes
1 answer
1k views

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's user avatar
7 votes
0 answers
509 views

Symbol menu in auctex math mode

in AucTex math mode several symbold are already defined. Fom latex.el: (defconst LaTeX-math-default '((?a "alpha" "Greek Lowercase" 945) ;; #X03B1 (?b "beta" "Greek Lowercase" 946) ;; #X03B2 (?g "...
Honigmelone's user avatar
7 votes
0 answers
725 views

Is it possible to preview TeX formulas automatically on auctex-mode?

In auctex mode, whenever I write a new formula I have to type C-c C-p C-p to render it as an inline image. I'm wondering if it's possible to automatically render the formula or equations as I write ...
Sibi's user avatar
  • 3,693
6 votes
3 answers
758 views

A comprehensive list of shortcuts provided by AUCTeX

Is there a document (pdf if any) that contains a comprehensive list of all shortcuts provided by AUCTeX? I mean a kind of AUCTEX Reference Card but for all shortcuts. This question is related to my ...
Name's user avatar
  • 7,869
6 votes
4 answers
657 views

Don't switch to math-mode when entering `$` in a `minted` environment

I am using AUCTeX to edit Latex files and use the minted package to highlight source-code within documents. Unfortunately the character $ is still recognized as a delimiter for a math-mode even though ...
Simon Fromme's user avatar
6 votes
1 answer
206 views

Surprisingly persistent local variable

A local variable keeps coming back, and I know not whence. In a certain buffer, TeX-command-extra-options is "--synctex=1", even after I have removed this from my init.el and restarted Emacs. I tried ...
Toothrot's user avatar
  • 3,264
6 votes
1 answer
1k views

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 ...
Evan Aad's user avatar
  • 1,541
6 votes
1 answer
422 views

AucTeX: can I hide comments?

Is there a setting in auctex that can hide (fold) comments (paragraphs which start with %)?
MostlyHarmless's user avatar
6 votes
1 answer
141 views

How to create a small bibtex file from a bigger one?

Q: how do I create a stripped-down bibtex file based on the citations used in a given paper? I have a single, master bibtex file that contains thousands of entries. For most papers, I only ever use ...
Dan's user avatar
  • 33k
6 votes
1 answer
61 views

How to check with regular expressions or another way if some package is used in a LaTeX document?

How to check if a specific package is used by a LaTeX document. For example in the below document (intentionally written in an ugly but technically correct format), the packages fontenc, inputenc, ...
Name's user avatar
  • 7,869
6 votes
2 answers
724 views

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]{...
Antal Spector-Zabusky's user avatar
6 votes
1 answer
250 views

delete-selection-mode and $

Using Aquamacs 3.2 on Mac OSX Yosemite. I run with delete-selection-mode set, and it mostly works as advertised. However, if I'm in TeX mode (AucTeX), make a selection, and then type $, the selection ...
rogerl's user avatar
  • 205
6 votes
1 answer
483 views

Close latex compilation window when successful

I like having TeX-show-compilation in LaTeX for large documents. However, if the compilation completed successfully, I would like the windows to be reverted or the compilation buffer to be killed. I ...
Shaun's user avatar
  • 63
6 votes
1 answer
185 views

How can I fontify a symbol by regexp match group (as in a naming convention)?

I want to add better support for expl3 to AUCTeX. I have regular expressions that properly group according to the naming conventions for: functions (\\(?:__)?[a-z]+_)([a-z_]+)(:[nNpTFwcVvxof]*), ...
Sean Allred's user avatar
  • 6,921
6 votes
1 answer
478 views

Make AUCTeX compile each \include to a separate file

In LaTeX it is customary to put the content of different chapters into different files which are then pulled into a master file using \include{FILENAME} statements. One can then use the \includeonly{...
elemakil's user avatar
  • 2,527
6 votes
1 answer
500 views

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 ...
xuhdev's user avatar
  • 1,899
5 votes
1 answer
476 views

Can I mark a local variable as safe for a single file only?

I have a LaTeX-file (thesis.tex) which I edit daily. Some LaTeX-package I use requires me to compile the file with --shell-escape, so I added the file-local variable %%% TeX-command-extra-options: &...
red_trumpet's user avatar

1
2 3 4 5
11