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

learn more… | top users | synonyms

1
vote
0answers
153 views

auctex output in shell

How to redirect the AUCTeX output to the shell buffer (M-x shell) of emacs? (= use a shell buffer instead of the AUCTeX output buffer). This way one could seamlessly combine (LaTeX) shell commands and ...
3
votes
1answer
152 views

Can I specify an output file name/path in AUCTeX?

I know I can use C-u C-c C-c LaTeX to edit the command before it is run, but is there any way I can generically specify an output file name without editing the command manually?
0
votes
2answers
152 views

auctex, direct speech highlighting

How can I achieve a proper highlighting in auctex/emacs? I use the german guillemets (chevrons), but the highlighting is just revers as I would use the real (french) guillemets. He says: »Who are ...
4
votes
2answers
294 views

Disable fontlock (syntax highlighting) for \newcommand

The syntax highlighting for \newcommand in my editor (Aquamacs/AucTeX) looks like this: I don't like it because everything inside the definition has the same light blue colour. By contrast, if I ...
0
votes
1answer
166 views

Automatically replace open quote with accent

Shaloha, My Emacs/AUCTeX combination used to automatically replace a single open quote ' with an accent `, as is required by LaTeX. Many machines and .emacs files later, it doesn't do that anymore. I ...
7
votes
3answers
4k views

Emacs AUCTeX View command

I need help using the View command in AUCTeX running in Emacs. This is essential for viewing PDFs and without it I can not make TeX documents. In my .emacs file I have the following (which was created ...
0
votes
1answer
357 views

Beamer.el not loaded

from what I have learnt from my research so far, auctex should load beamer.el automatically once a *.tex file with \documentclass{beamer} is loaded. However, this is not the case here and I find the ...
7
votes
1answer
573 views

Cleveref: AUCTeX and RefTeX set-up

How can I set up cleveref to work with AUCTeX and RefTeX? I have tried the advice on Emacs, RefTeX and Cleveref – can they work together? but it didn't work. Additionally, when I hit enter, \ref{} ...
1
vote
0answers
638 views

configuring auctex in emacs [closed]

I need help with configuring auctex in emacs. I have downloaded and installed auctex but I cannot get anything to work. I am running MAC OS X 10.8.4 and am running emacs through the terminal. If I use ...
6
votes
1answer
125 views

Cross-references: managing references when there are 1000+ across 100 pages

I am using Emacs with AUCTeX in case that matters. I have many \labeled items and was wondering if there is a way to bring up a list of them? I hate having to scroll through to the document to find ...
7
votes
3answers
137 views

emacs+auctex: prevent region filling when inserting itemize

When inserting an itemize environment around some text (using C-c C-e) AucTeX insists on doing paragraph-filling on said text, which messes up my layout. Is there a simple way to prevent that ? ...
2
votes
1answer
359 views

Using \eqref with RefTeX

How can I open the equation selection buffer in RefTeX automatically when entering \eqref in Emacs? I have the following line in my .emacs file (setq reftex-label-alist '((nil ?e nil "~\\eqref{%s}" ...
13
votes
1answer
276 views

Skip spelling in Emacs for the content of a user macro

In Emacs, in order to skip spelling for the arguments of a user macro, one appends an entry to the ispell-tex-skip-alists variable. For example, to skip parsing the argument of \mycommad, one adds ...
1
vote
2answers
61 views

How do I provide/trigger the special support for letters in AUCTeX?

As you probably know, the letter document class has quite a few pieces of metadata that go along with it, e.g. name, address, signature, etc. It would be really nice if all of this was put into the ...
24
votes
1answer
543 views

Folding braces in Emacs/AucTeX

I have some code looking like this: 142 \newcommand*\john[2]{ 143 blah blah blah blah 144 blah blah 145 blah blah blah 146 blah 147 } 148 149 \newcommand*\peter[3]{ 150 blah blah ...
9
votes
3answers
851 views

Forward Search in Emacs for Okular not working

On Emacs, I am trying to get forward search with Okular. Right now, I have the following command: okular --unique %o#src:%n`pwd`/./%b But, this does not take me to the right line, as I'd expect. ...
2
votes
1answer
189 views

Smart Quotes Control in AucTeX

If I have the statement \usepackage{ngerman} in my source-code AucTeX recognizes this and inserts correct german quotation marks if I press " twice. For example "`a german quote"' How can I make ...
7
votes
1answer
412 views

void-variable latex-mode-abbrev-table

I'm using auctex + Emacs(OSX) Problem: If I open an LaTeX file, it works right. But if I open an plain tex file, it complains. Debugger entered--Lisp error: (void-variable latex-mode-abbrev-table) ...
11
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
174 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
328 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
284 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 ...
4
votes
1answer
723 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
410 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
542 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
229 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
809 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
608 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
759 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
448 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
664 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?
8
votes
2answers
3k 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
348 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
317 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
146 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
197 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
62 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
1answer
240 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
3k 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
518 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
500 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
64 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
71 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
245 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
193 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
182 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
222 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
155 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 ...
6
votes
3answers
1k views

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

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
587 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 ...