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

learn more… | top users | synonyms

10
votes
1answer
1k views

How to make `latexmk` run the appropriate amount of times

System: Ubuntu 13.04, Texlive2012, Emacs 24.something, I run Emacs from the terminal and not the GUI, and I have server mode on in Emacs. When compiling my latex documents, I use AucTeX in emacs to ...
4
votes
1answer
168 views

AucTeX PDF syncing in Emacs, multiple windows problem

I have enabled Tex-source-correlate-mode with synctex as the syncing method. When I have a single Emacs window open, it works fine. But if I have multiple Emacs windows open, whenever I press ...
5
votes
1answer
265 views

AUCTeX: global pdf mode stop working after typesetting error occurs

Update: I've tested the problem in detail, and the results are appended at the end of the question. I guess now the problem becomes: How to avoid stupid diagnostic of AUCTeX when curly braces ...
4
votes
1answer
236 views

font-lock defining keywords containing special characters and whole-words

I found the reference to "\\" on line 283 of font-latex.el of auctex-11.86, and I'd like to remove it as a warning (which is easy enough to delete manually). I have not figured out a way to define ...
3
votes
1answer
599 views

Emacs / AUCTeX — Customization of keyword highlight syntax

font-lock-keyword-face is used by AUCTeX for all keywords, and I have not been able to find a way to create a new keyword that is a different color. I have defined the foreground of ...
12
votes
3answers
393 views

Click on macro name to jump to its definition?

Encouraged by a super response to my previous question on a similar topic, I shall persevere with a similar line of inquiry. I think it would be super if, in my LaTeX editor, I could click on a macro ...
26
votes
2answers
511 views

Click on package name to open corresponding style file?

I think it would be super if, in my LaTeX editor, I could click on the name of package... \usepackage{blob} ... and the corresponding style file, blob.sty, would be opened. Do any LaTeX editors ...
5
votes
1answer
197 views

Emacs/AucTeX: can LaTeX-math-list read a macro that requires input?

I wanted to make a macro that inserts \left \right delimiters, but I wanted to write it only once and have different bindings pass different delimiters. To wit, I wanted to add the following code: ...
1
vote
2answers
704 views

AUCTeX -output-directory + copy *.pdf to working directory

Part I: Could someone please give me an example of how to configure AUCTeX to use the -output-directory option? I've tried inserting -output-directory="/tmp" in a variety of ways at different ...
5
votes
1answer
496 views

Preview TikZ figure in AUCTeX?

I am using AUCTeX on Emacs. Recently I began to draw pics using TikZ, but the problem is AUCTeX doesn't generate preview of this environment. (However, it does generate preview for the general figure ...
4
votes
1answer
483 views

Compilation of main tex file from a chapter file with AucTeX

I have a main LaTeX file that has multiple chapter files included using \input command. For compiling them in emacs/auctex, I have to open main LaTeX and ^C^C. How can I compile the main LaTeX from ...
15
votes
2answers
344 views

How to make AUCTeX ignore syntax highlighting within environment

I have a problem with syntax highlighting in the Emacs editor using AUCTeX. The problem occurs in particular with the Verbatim environment from the fancyvrb package. Consider the following code: ...
7
votes
1answer
497 views

AUCTeX preview font size too small

I have Emacs 24 and AUCTex on a Windows 7 machine, however the preview font size is just way too small. Is there a way to make them bigger?
7
votes
1answer
2k views

Change view-command in Emacs and AUCTeX (pdf mode)

My version of Emacs and AUCTeX[1] uses TeX-evince-sync-view for viewing pdf. This command is not working for some reason. Evince is launched but Emacs freezes and I have an error Couldn't find ...
0
votes
1answer
261 views

how to reload pdf and preserve same position file (in emacs)?

I would like to view pdf files in emacs, and when I reload them from disk I want to be at, more or less, the same position in the new file as I was in the old one. I am viewing these with the bundled ...
4
votes
1answer
263 views

Can't turn off fontified subscripts in Emacs 24

Under Emacs 24.3 and Auctex, the sub/superscript fontification is occurring outside math modes. This appears in either Beamer or normal LaTeX docs. Per this question, I've included the following ...
2
votes
1answer
122 views

Narrow to Environment in AUCTeX

I'd like to be able to use some org-mode-like features inside of AUCTeX. In org-mode, you can narrow the buffer to a node or you can flatout send the node to a separate buffer for editing. How can ...
1
vote
1answer
192 views

How to specify self-installed fonts to XeLaTeX?

I successfully installed the font (*.tfm, *.pfb and *.vf files) of my university, I'm now struggling to use them with XeLaTeX. About my specifications: I am running TeXLive 2011 using AucTex 11.86. ...
0
votes
0answers
58 views

Follow-up question: include entire command with emacs/auctex

This is a Follow-Up question to auctex does not parse own sty file I can use C-c C-m to use mytext from this MWE \documentclass{article} \newcommand{\mytext}{This is a simple text.} \begin{document} ...
2
votes
0answers
193 views

auctex does not parse own sty file

a own sty file is not parsed to find commands, it means they can not use with C-c C-m I use the following .emacs (load "auctex.el" nil t t) (load "preview-latex.el" nil t t) (require 'tex-site) ...
6
votes
1answer
2k views

Problems with AucTeX and Emacs24

I download AucTeX from ELPA and put nothing in my .emacs file. However, the commands auctex and preview-latex do not seem to be there (when I try M-x auctex or M-x preview-latex, Emacs cannot find ...
2
votes
2answers
416 views

AUCTeX preview-latex previews are ugly (too narrow)

Is there a way to fix Emacs AUCTeX's preview-latex to make the previews look less ugly? Specifically, they are squashed vertically to a height of exactly one line of text. I have screenshots to show ...
6
votes
1answer
419 views

Compile a region in auctex with import package

Consider the three following (see below) files: test.tex is in the main directory, test1.tex is in the subdirectory ./test1/ and test11.tex is in the subsubdirectory ./test1/test11/ (see the directory ...
1
vote
0answers
59 views

Multifile and dvi output from the 'master.tex'

I have a report composed of multiple files where I name the master file as 'master.tex' and set (setq-default TeX-master "master") in my .emacs file. I compile the master file and try to click the ...
1
vote
2answers
69 views

C-c C-r to see the effect of a change in equation

I am recently experimenting with Auctex and preview-latex, I read the quick-start part of Auctex documentation. I have a question on C-c C-r, I created a simple test document and therein I am ...
7
votes
1answer
222 views

AUCTeX changes name of pdf file when compiling with LuaTeX

I'm using AUCTeX with emacs 24.1 on Ubuntu 11.10. I have the TeX Command set to compile using LuaTeX and to produce pdfs. Everything works except that the name of the pdf changes from the file name ...
2
votes
1answer
177 views

No support for Asymptote in AUCTeX

I got a problem with my Emacs/AUCTeX setup. I'm using a lot of Asymptote graphics in my TeX documents, but there is a big problem to compile such documents inside of Emacs with AUCTeX. However I can ...
0
votes
0answers
154 views

Passing aux directory option to AUCTeX

I use Emacs and MikTeX. With the latter comes a PDFLaTeX option to move clutter in a temp-dir directory: -aux-directory temp-dir. I am tentatively trying to pass it to AUCTeX with: (setq ...
4
votes
1answer
193 views

How can I tell AUCTeX to turn off math mode for the argument of shortintertext?

I would like to have AUCTeX turn off math mode for the argument of the shortintertext command from the mathtools package. I customized the variable texmathp-tex-command to add the following line to my ...
3
votes
1answer
148 views

auctex, hooking into wrapping specific environment

I do a lot of editing using Emacs and auctex, some of this involve wrapping certain parts of the manus with a certain environment. This is quite easy using transient-mark-mode and C-c C-e. But I'd ...
4
votes
1answer
831 views

How can I get my LaTeX set up on Emacs/AUCTeX to use the -file-line-error option when calling pdfTeX

I have been puzzling over this for the past few hours and can't quite figure it out. I am using AUCTeX 11.87 and MiKTeX 2.9 on Emacs 24.2 (obtained from Vincent Goulet with AUCTeX pre-packaged): I ...
6
votes
1answer
540 views

Customizing preview-latex command to use LaTeX when in TeX-Pdf mode

In short: Is there a way to tell preview-latex to NOT use pdflatex instead of just toggling TeX-Pdf mode every time I want to re-generate previews? I have a somewhat odd setup. AucTeX + GNU Emacs 24 ...
4
votes
1answer
194 views

Renaming label names in AucTex to recover ordered sequence

By rearranging (copy-and-pasting) math environments the automatically RefTeX generated label numbers \begin{align} \label{eq:5} ... \end{align} texttexttext... \begin{align} \label{eq:3} ...
2
votes
1answer
133 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
301 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
974 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
342 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
109 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
141 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
150 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
328 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
283 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
224 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
169 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
239 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
221 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
151 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 ...
5
votes
1answer
1k 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
1k 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
106 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 ...