A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
7
votes
1answer
527 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 ...
14
votes
2answers
2k 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 ...
12
votes
1answer
543 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 ...
17
votes
1answer
2k 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 ...
11
votes
1answer
5k 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:...
8
votes
3answers
580 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 ...
12
votes
1answer
545 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 ...
2
votes
1answer
132 views

How to customize the sequence of commands executed by the C-c C-a shortcut (`TeX-command-run-all`)?

How do I need to set up Emacs/AucTeX, so that when I type C-c, C-a, the following sequence of commands will be run? (Note: the LaTeX file name is test.tex.) lualatex test makeglossaries test ...
4
votes
1answer
861 views

how to modify default command for TeX-command-master (ie, C-c C-c)?

Q: how can I get TeX-command-master (C-c C-c) to default to LaTeX rather than View? TeX-command-master dispatches to various commands, such as LaTeX, BibTeX, View, etc., almost none of which I use ...
4
votes
1answer
221 views

How can I configure AUCTeX to use tab characters for leading indentation?

I configure indent-tabs-mode to t so that tab characters are used for indentation by default. AUCTeX apparently changes the value of indent-tabs-mode to nil and uses some other system for handling ...
8
votes
1answer
346 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. ...
4
votes
2answers
480 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]{...
7
votes
1answer
3k 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 ...
3
votes
2answers
647 views

Detect whether a package (AUCTeX) is installed from .emacs

In my .emacs, I distinguish between two scenarios: AUCTeX is not available. Then I load my customizations for the basic TeX mode — let's call that (my-tex-mode-customizations). AUCTeX is available. ...
0
votes
1answer
69 views

AUCTeX's TeX-complete-symbol with flyspell

I'm trying to make use of the autocomplete facilities of AUCTeX using M-TAB (actually, through the equivalent binding C-M-i), but apparently, when using flyspell-mode alongside with LaTeX-mode the ...
4
votes
2answers
5k views

How to install Auctex

This is how I attempted to install the package: I ran the command list-packages and then tried to install the auctex package in package mode. This was the line showing auctex entry in package mode: ...
7
votes
1answer
745 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 ...
2
votes
1answer
250 views

Make reftex-toc work with multiple files

I'm using Emacs 24.5 with AUCTeX and RefTex to edit a multi-file project. It consists of one main file with %%% TeX-master: t to mark as master. The 'slave' files all have %%% TeX-master: main to link ...
10
votes
1answer
375 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?
6
votes
1answer
3k 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 "...
5
votes
1answer
294 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. ...
5
votes
2answers
258 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 ...
5
votes
1answer
2k views

AUCTeX/Preview PDF2DSC sentinel error

I normally use OS X, and have recently decided to start using Emacs, and specifically AUCTeX based on myriad recommendations. I downloaded the current version for OS X and tried to preview a very ...
3
votes
1answer
99 views

Indenting specific environment deeper in AUCTeX

Is it possible to encourage AUCTeX to indent specific environment contents deeper than other environments? My specific case is getting the following indentation for chorus: \begin{song} \begin{verse} ...
1
vote
0answers
241 views

How to disable DocView as default command in AUCTeX?

When I'm writing a .tex file on emacs, I like to compile with pdflatex and then see the result on an external pdf viewer. The emacs manual says that I can use C-c C-c to launch any compilation method ...
1
vote
3answers
1k views

Making pdf-tools work after successful compiling on mac os x

After installing the required dependencies with homebrew, I was able to compile pdf-tools . But I cannot make it work (I cannot see the pdf on emacs after compiling) I would like to know if somebody ...
6
votes
1answer
142 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 ...
5
votes
1answer
457 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-...
4
votes
1answer
242 views

How can I type simple underline “_” in Auctex

I am using Auctex in Aquamacs. Everytime I type underline "_", it will show as $_{}$ automatically which is very annoying. I am wondering how could I turn off this function. Thanks.
3
votes
1answer
152 views

cycling through latex math mode and equation

Is there a way to cycle through \( x=1 \), \[ x=1\] and \begin{equation} x=1 \end{equation} in any latex package? I find this function practical but I didn't know how to implement using elisp or ...
3
votes
1answer
320 views

Installing Auctex from Package Manager: Scan error

When install auctex from the Package manager using GNU Archive, I get this error: forward-sexp: Scan error: "Unbalanced parentheses", 18984, 38451 This always happens to me when I install it using ...
3
votes
1answer
141 views

Is there a shortcut for \mathrm in AUCTeX?

Is there a build-in shortcut for inserting \mathrm{} and putting the cursor between {} in AUCTeX?
3
votes
1answer
77 views

Change overlaid text of an outline header?

Q: how do I add a new outline header regexp but change the overlaid text? I often write presentations with Beamer in LaTeX. As such, there are a lot of frame (ie, "slide") environments: \begin{...
3
votes
2answers
213 views

How does AUCTeX determine the documentclass?

It's clear that AUCTeX has some way of determining the documentclass, since some functions behave differently depending on which documentclass is selected. For example, LaTeX-insert-item behaves ...
2
votes
0answers
515 views

How to disable doc-view in AUCTex

I'm using Emacs 24.3.1 on Ubuntu 14.04 with AUCTex for LaTeX editing. The command C-c C-c allows me to easily compile the document with pdflatex. However, the second time I'm running C-c C-c, instead ...
2
votes
2answers
114 views

Modifying AucTeX bracket indentation locally

I am currently using songs package, which via some TeX trickery uses escaped brackets to mark chords (for example \[G] is G-major, while \[a] is a-minor). This causes problems with indentation, for ...
2
votes
1answer
51 views

detect if inside a LaTeX footnote and get its bounds?

Q: how do I get the bounds of a LaTeX footnote? I'd like to be able to detect, programmatically, if point is inside a LaTeX footnote environment. Ideally, I'd like to be able to extract the ...
2
votes
1answer
84 views

DocStrip support in AUCTeX

Right now, I am documenting a larger LaTeX package project by converting the files into DocStrip files. Therefore I am currently creating a lot of .ins and .dtx-files in Emacs. Actually I am using ...
2
votes
2answers
240 views

Keeping track of a pdf viewer spawned via AUCTeX?

When using AUCTeX with pdflatex, one can run C-c C-c (TeX-command-master) or C-c C-v (TeX-view) to spawn a PDF viewer. I use Evince on Debian Wheezy, in case it's relevant. This might sound a ...
1
vote
1answer
95 views

How to hide frame environment in outline minor mode?

I am using AUCTex and outline-minor-mode to produce Latex presentations with beamer. I wonder how I could tell the outline-minor-mode to hide the content of a frame. I am not into LISP by now, so ...
1
vote
1answer
275 views

Run TeX-command-run-all when there are no changes in .tex-file

When editing .eps- or .tikz-files I want to run TeX-command-run-all using the binding C-c C-a but since the LaTeX-file did not change (I only edited the .eps for example) I have to run my LaTeX ...
1
vote
1answer
43 views

Change escape behavior when inside LaTeX equations

I recently wrote a function which could cycle through LaTeX math delimiters. It relies on the texmathp function, built into AucTeX, which will return t if the point is inside an equation region. In ...
1
vote
1answer
90 views

Detection inside general LaTeX (not necessarily Math) commands

This question is related to how to detect if inside a LaTeX math environment?. How to do the correct settings in .emacs in such a way that the variable texmathp takes the value t (like in math ...
1
vote
1answer
336 views

After upgrading AUCTeX, (La)TeX mode is unusable (invalid-function TeX-auto-add-type)

I installed AUCTeX through the package interface. This pulled version 11.89 from ELPA. Before that, I was running a version of AUCTeX provided by my operating system (Ubuntu 12.04), which is 11.87. ...
1
vote
2answers
533 views

How can I set a key binding to run two other key bindings?

Specifically, I want the binding 'C-x C-a' to do 'C-x C-s' then 'C-c C-a'. (Context: I'd like to save my TeX document, then have AUCTeX render it.) How can I do this? I don't want to map 'C-x C-a' to ...
0
votes
1answer
293 views

png image support and pdftools

I have pdftools install and wish to use it with auctex. However, I cannot view the pdf as I get the error: PNG image supported not compiled into Emacs Output is simply the raw pdf. I am using emacs ...
0
votes
0answers
93 views

AUCTeX installation error in Windows

I have followed the instructions here, in a nutshell: download/unpack AUCTeX in a directory for installation download install cygwin download/install Emacs (that was already done) download/install ...