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

learn more… | top users | synonyms

2
votes
1answer
147 views

Hide/show individual chapters/sections/… in the RefTeX TOC buffer

RefTeX/AucTeX allow to display the maximum level of toc entries displayed in the ‘toc’ buffer. Is it also possible to hide(collapse)/show(expand) individual chapters and sections in the ‘toc’ buffer? ...
4
votes
2answers
351 views

AUCTeX: how to jump to PDF (with synctex) without recompile when inline preview has been created?

I'm using Aquamacs 2.4 on MacOS X 10.6.8 with pdflatex (TeXLive 2011). My problem: I can create inline previews of formulas, figures etc. in the source code with AUCTeX which is very helpful - e. ...
7
votes
2answers
1k views

Folding entire section in AUCTeX?

I'm new to AUCTeX and I wonder: is it possible to fold entire sections or subsections of a LaTeX document for a better overview, so that they are only represented by their headline (kind of a tree ...
4
votes
1answer
414 views

AUCTeX: How can I add syntax highlighting for custom cite commands?

I'm new to Emacs and AUCTeX and I want to have consistent syntax highlighting. Besides the "normal" \cite command, I'm also using commands like \citeauthor or \Citeauthoror self defined commands like ...
3
votes
1answer
115 views

Access from included files to environments in AUCtex [duplicate]

When I am writing slides, I usually use one master file and several dependent files; as a macro package I use beamer. I would like to access the environments defined by the beamer package also in the ...
6
votes
2answers
151 views

Prevent a tex file from being compiled

I'm writing my thesis, and there's a overall file overall.tex together with several section files, which are \inputed in the overall.tex. Could I write something in the section files to prevent them ...
3
votes
1answer
164 views

AUCTeX: How to edit enviroment templates

With (C-c C-e) AUCTeX allows to insert arbitrary environments. In my case I want to change the default aling-environemnt from \begin{align} \label{eq:145} \end{align} to insert comments in order ...
9
votes
1answer
366 views

AUCTeX – new commands recognized as such

Many non-base commands, quite used today, are not recognized as such by AUCTeX. This is understandable as not everyone will use them, and not every time. I'm thinking about commands like ...
1
vote
0answers
296 views

Beamer .sty files not recognized in Auctex emacs [closed]

I'm trying to create a beamer presentation through Auctex in emacs. In the process I have to include several style packages (subfigure.sty, stmaryrd.sty) in the tex file. However the problem is that ...
3
votes
2answers
245 views

Add -shell-escape option to the LaTeX invocation of preview-latex in AUCTeX

I need preview-latex to use the -shell-escape option when it invokes PDFLaTeX, which is required by the minted package for syntax highlighting, as it invokes python. How can I do that?
1
vote
1answer
180 views

Auctex previews

I am using PSTricks and trying to generate an inline preview with auctex for part of a document. This works fine if I surround the whole thing in $ signs like $ \begin{pspicture} ... ...
4
votes
1answer
267 views

How to use the standalone package with emacs

This is a follow-up question from A simpleton's guide to (...)TeX workflow with emacs. The main answer stated that it is possible to use emacs together with standalone: the question is how? The ...
2
votes
2answers
265 views

Auctex block indent

Is there a way to block indent whole paragraphs in emacs + auctex? I'm thinking in that functionality in such editors as WinEdt. I've search in different fora, and in the available documentation, ...
8
votes
0answers
154 views

Pronunciation of “AUCTeX” [closed]

I'd like to give a tutorial on AUCTeX to my colleagues but it occurs to me that I've never heard the name of this package pronounced. It seems the first three letters could be pronounced individually ...
6
votes
1answer
2k views

AUCTeX, preview-latex, and Ghostscript (Emacs)

I'll keep this short and sweet; Emacs can't find gs, which has been installed via brew and works fine. Error PDF2DSC sentinel: Searching for program: No such file or directory, gs MWE ...
1
vote
1answer
2k views

Problems installing AucTeX over Emacs 24 (OSX)

http://pastebin.com/fbzXTdCU Above is a terminal log for those who would make sense of it, but basically I have done the following things in order to get the lovely promises of Emacs' screenshots: ...
1
vote
0answers
116 views

Indenting listings in Auctex [closed]

I'm using the listings package to typeset some Python code. I don't seem to be able use the tab key in Auctex mode to indent my code within listings. I'm new to both Emacs and Auctex, but the only ...
1
vote
1answer
205 views

Display content in separate buffer in Emacs+AUCTeX

Is there a way to display something like table of content of my current latex file in separate buffer, where all sections, subsections, figures and tables are listed interactively? So I could ...
0
votes
1answer
279 views

Selecting text between parenthesis in Emacs+AUCTeX

I am looking for a way to select text inside surrounding nearest parenthesis. For example if I am working with a string (text \textit{text2 $a^2=b$} text3) this command selects whole string in ...
0
votes
1answer
182 views

Selecting environment with double click in Emacs+AUCTeX

I want to select whole environment by just double clicking on \begin{environment} or \end{environment}. Maybe someone already did this? Also how can I change definition of a word that double clicking ...
8
votes
1answer
802 views

Delete comments in tex file with Emacs+Auctex

I am working with other people LaTeX files and sometimes they look very messed up. I am looking for a way to delete all comments without changing the code. The problem is that I want to preserve all ...
1
vote
2answers
429 views

Setup SyncTeX with Emacs on debian stable (squeeze)

Is it possible to setup SyncTeX with Emacs on debian stable (squeeze)? Emacs24 is available from http://emacs.naquadah.org/ but squeeze is at its end of cycle and most other tools are outdated. $ ...
1
vote
0answers
419 views

How to display non-printable Unicode characters in Emacs/AucTeX? [closed]

I would like to see the non-printable Unicode bidi characters PDF (202C), LRO (202D), RLO (202E) in the emacs editor (but not the pdf output). How can i do this? EDIT: Here's a minimal working ...
3
votes
0answers
51 views

how to launch skim from auctex on mac os? [duplicate]

Possible Duplicate: Launching an external PDF viewer from Emacs/AUCTeX on a Mac OSX fails. I am using emacs 24.2.1 with mac os (Mountain Lion). I am using auctex to edit my latex document. ...
5
votes
1answer
196 views

Emacs+AUCTeX lost highlighting

Adding additional highlighted keywords in Emacs+AUCTeX messes up conventional highlighting. My code: (defvar my-new-face (make-face 'my-new-face)) (defvar my-another-new-face (make-face ...
4
votes
1answer
189 views

Making AUCTeX aware of SageTeX

When you compile a file with AUCTeX, it will prompt you to re-run LaTeX and BibTeX as necessary. Is there a way to get it to also run sage when using SageTeX?
2
votes
0answers
164 views

Highlight keywords in math mode? [duplicate]

I am using Emacs+Auctex. I need additional highlighting in math mode. How can I force Emacs to highlight braces and some commands (like \quad) inside math mode with different color?
3
votes
0answers
603 views

Installing AUCTeX on Windows from package-install [closed]

I have Emacs 24 and MikTeX on Windows 7 professional and I have recently installed AUCTeX 11.86 from package-install. The installation seems to have completed successfully, I even succeeded at ...
8
votes
1answer
2k views

auctex 11.86 in emacs 24: Don't know how to compile nil

I run emacs 24.2.50.1 and auctex 11.86 on debian stable. When i open a tex file with $ emacs text.tex Emacs shows the following line 38 times in the Compile-Log buffer ...
1
vote
1answer
195 views

Preview in auctex on debian stable works in dvi mode, but fails on pdf mode

My auctex renders preview images on my debian stable system (6.0.6) if I set it to dvi mode, but it fails if I set auctex to pdf mode. I assume there is either a mistake in my emacs configuration ...
9
votes
4answers
734 views

Auctex: how to cause math mode dollars to be closed automatically with electric-pair

I use electric-pair mode to cause brackets to be automatically closed for me, so that when I enter (, { or [, the closing bracket is automatically also entered into the buffer and the cursor is placed ...
9
votes
2answers
367 views

Matching the delimiters \{ and \} in AUCTeX

I'm using AUCTeX and would like the delimiters \{ and \} to be matched. How can I (permanently) achieve matching of these delimiters? The link I provided indicates that I should edit a syntax table, ...
1
vote
0answers
190 views

How align columns in a tabular environment? [closed]

I want to align the source .tex file in order to reflect final table. Here is the result of calling align-current on my tabular's content. \begin{tabular}{|c|c|} \hline & {\em Execution ...
5
votes
2answers
2k views

How do you use MacVim for LaTeX?

I'm a long-time Emacs+AUCTeX user (I even once wrote a short tutorial for it!), but for a couple of different reasons (problems maintaining my Emacs configuration, the beauty of Drew Neil's voice, and ...
2
votes
2answers
229 views

Sweave, how to suppress opening new instance of a pdf when running pdflatex

Since I have setup SumatraPDF to automatically refresh PDFs when they change, how can I suppress "view" (resulting in opening a new instance of the pdf) when using the shortcut M-n P (running ...
4
votes
1answer
267 views

AUCTeX style for siunitx

Is there any AUCTeX style for siunitx? If not are there any simple tricks which make it more easy to type siunitx commands in emacs. For example if I type C-c C-m SI it inserts just \SI{} with one ...
1
vote
1answer
276 views

How to show tabular environment in a fixed-width font in AUCTeX?

I would like Emacs/AUCTeX to show the contents of tabular environments in a fixed-width font, so table boundaries line up. Is it possible to set the font face of specific environments like this? The ...
9
votes
2answers
608 views

More fine grained syntax highlighting in Emacs/AUCTeX

I'm using Emacs with AUCTeX to do all my LaTeX. When it comes to syntax highlighting it seems that all mathematics is by default just orange. Do you know of a mode or package that adds some more fine ...
6
votes
1answer
290 views

Why is aucTeX compiling my file like pdflatex “input” foo.tex rather than just pdflatex foo.tex?

When I compile a file using Emacs AucTeX with C-c C-c (which runs TeX-command-master which runs TeX-run-TeX) the top line of the log output looks like this: Running `LaTeX' on `mwe' with ``pdflatex ...
3
votes
1answer
376 views

AUCTeX: How to enable auto expansion of sub and superscript in custom math environment

With help from the question How to add custom math-environments I taught AUCTeX that IEEEeqnarray and its starred counterpart are math environments. I added the following to my .emacs ;; teach auctex ...
1
vote
0answers
140 views

Emacs (AUCTeX) not writing to vc.tex file when using VC bundle in LaTeX document [closed]

I'm using GNU Emacs 24.1 for Mac OS X on Lion with the latest version of AUCTeX and the VC bundle to print version information in a footer on my LaTeX documents. The problem is that when I typeset my ...
6
votes
1answer
633 views

Defining a new key combination in emacs to run Latex

I want to define a new key combination in my .emacs such that it will directly run the latex command, unlike C-c C-c Ret which gives me different options every time (like view). I am using xdvik for ...
3
votes
2answers
5k views

How to change AUCTeX latex compile command? (using Emacs 23)

I'd like to configure AUCTeX to compile without stopping on errors. I can do it from a terminal with pdflatex -interaction=nonstopmode filename.tex but AUCTeX apparently does pdflatex ...
6
votes
1answer
487 views

I want to disable auto-fill-mode when editing equations

How can I disable auto-fill-mode when editing equations? I like auto-fill-mode in general, but I'd like to turn it off in specific situations, e.g. between a \begin{equation} and \end{equation} or ...
6
votes
1answer
351 views

AUCTeX detecting modified files using different output directory

I'm using AUCTeX in Emacs, and would like to store all output files (.aux, .log, .pdf etc) in a sub-directory "output" rather than directly in the current working directory. To achieve this, I have ...
3
votes
1answer
212 views

limiting align-current in LaTeX-mode

When working on a LaTeX document in Emacs align-current aligns & and \\, but does so for entire sections at a time. Anyone have any idea as to how one limits its range (in a new macro) to say the ...
2
votes
0answers
108 views

AUCTeX, preview-latex and Xelatex [duplicate]

Possible Duplicate: AUCTeX and Xetex sometimes I have to edit tex files with xelatex. Those files can be successfully compiled from the console. Auctex work fine with regular tex files and ...
5
votes
1answer
149 views

Open images from AUCTeX with your favourite image editor

Suppose I edit a LaTeX-file with AUCTeX and the point is on a \includgraphics{myimage.jpg} line. Is there a possibility in AUCTeX to open myimage.jpg with my favourite image editor, say gimp by just ...
3
votes
1answer
130 views

Running AUCTeX on Windows - problem writing files

I love AUCTeX, and use it on an Ubuntu machine all the time. Right now, however, I am stuck with a Windows machine and would like some help getting around a problem. Whenever I try to compile my .tex ...
16
votes
3answers
4k views

Does AucTeX Autocomplete?

The quick start guide for AUCTeX says As nearly everywhere in AUCTeX, you can use the TAB or SPC key to get a list of available level names, and to auto-complete what you started typing. Which ...