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

learn more… | top users | synonyms

6
votes
2answers
149 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
163 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
358 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
241 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
178 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
262 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
255 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
153 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
114 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
200 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
276 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
179 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
775 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
425 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
405 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
192 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
187 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
593 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
193 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
709 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
365 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
226 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
266 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
264 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
598 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
373 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
138 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
625 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
480 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
350 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
210 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
137 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 ...
1
vote
2answers
859 views

Error when trying to open pdf file from AUCTeX

I'm new to Emacs and AUCTeX. On my home computer (with Windows XP) I can successfully compile .tex files and then, using C-c C-c again, launch a pdf viewer (Adobe Reader or Sumatra) to view the file. ...
8
votes
2answers
447 views

Unable to reference new environments with RefTeX

I was trying to add new environments to AUCTeX doing what the RefTeX's manual says, so I added the following to my .emacs: (add-hook 'LaTeX-mode-hook 'turn-on-reftex) (setq reftex-label-alist ...
12
votes
3answers
808 views

Open included files in emacs+AUCTeX

When working with emacs+AUCTeX I would like to consider a project with one main.tex in which you have many include's. Is it possible somehow to open the included files from within the buffer where ...
19
votes
4answers
3k views

RefTeX won't find my .bib file in local library tree

RefTeX gives out the following error when trying to insert a citation: No valid bibliography in this document, and no default available I keep a master .bib file in ...
4
votes
0answers
351 views

TeX-run-Tex wrong type argument in emacs [closed]

I use such a function for compiling LaTeX in emacs (AUCTeX) taken from here (accepted answer by Jouni K. Seppänen): (defun run-latexmkk () (interactive) (let ((TeX-save-query nil) ...