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

learn more… | top users | synonyms

4
votes
0answers
279 views

TeX-run-Tex wrong type argument in emacs

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) ...
4
votes
2answers
268 views

Typeset directly in Spanish

I am typesetting in emacs with AucTeX. I generally write in English and Spanish, and, therefore, use the following in my preamble: \usepackage[english,spanish]{babel} \usepackage[utf8]{inputenc} ...
1
vote
0answers
351 views

Can't debug init.el [closed]

I get the following error when I open emacs in Mac OSX: Warning (initialization): An error occurred while loading `/Users/my-user-name/.emacs.d/init.el': Symbol's value as variable is void: Synctex ...
5
votes
4answers
2k views

How to change default compiler?

I have been using LaTeX for about a year now and I am fairly proficient in TextMate. I am currently experimenting with Emacs and AucTeX. I installed the starter kit that Keiran Healy has available. ...
0
votes
1answer
375 views

Auctex preview: How to suppress opening a new window?

I have emacs+gtk installed on Ubuntu11. I'm just new to Auctex but very interested in it. When completed my .tex document, command C-c,C-c compiles successfully. But repeating C-c,C-c yields option ...
2
votes
2answers
312 views

Strange behaviour debugging a document with AUCTeX-GNUEmacs in math mode

When I try to compile this document \documentclass{article} \usepackage{amsmath} \begin{document} A simple fraction with an error $\frac{a}{b$ \end{document} I obviously get an error because there ...
0
votes
1answer
390 views

Preview-latex background color

I'm using AUCTeX + preview-latex to preview math formulas. In addition, I'm using the zenburn color scheme, which has a dark background. Unfortunately, the rendered math previews have a white ...
33
votes
6answers
6k views

What is your favorite Emacs and/or AUCTeX command/trick?

What is your favorite Emacs and/or AUCTeX command/trick? The point here is that I don't know what I don't know. I'm an Emacs and AUCTeX user looking to improve my Emacs & AUCTeX use, especially ...
4
votes
4answers
957 views

SumatraPDF with AucTeX and Foxit Reader as the default viewer

I like to use Foxit Reader to view PDF's but it locks the file so i cannot use synctex with it. So I'd like to use SumatraPDF with AuCTeX when making my PDF's but still have Foxit Reader as my default ...
0
votes
0answers
104 views

Setup Synctex with Emacs in Windows with Sumatra PDF [duplicate]

Possible Duplicate: A simpleton's guide to (…)TeX workflow with emacs I want to setup SyncTeX in GNU Emacs 23.3.1 with Auctex 11.86 to work with Sumatra PDF 2.0.1. I use Windows ...
3
votes
2answers
289 views

AUCTeX: ` a inserts \alpha{}: How can one omit the curly braces to be inserted?

According to an AUCTeX reference card, ` a inserts \alpha{} and this works well in my setup. I just don't see any reason I ever used a greek letter with curly braces. This means I always have to ...
5
votes
3answers
393 views

Rebinding keys in AUCTeX

I'm trying to rebind a few keys in AUCTeX, mainly \textit and the like. So, as a test I've added to .emacs (add-hook 'LaTeX-mode-hook (lambda () (define-key LaTeX-mode-map (kbd "C-S-i") ...
2
votes
1answer
256 views

AUCTeX write only region file

Since I'm used to use latexmk -pvc I'd like to do the following: Run latexmk -pvc (externally) on the _region_.tex file Use AUCTeX to just write the region file instead of compiling. Is there a ...
0
votes
1answer
3k views

AUCTeX XeLaTeX preview fails: fontspec cannot-use-pdftex error

I am struggling setting up AUCTeX preview in a way that I can use it with XeLaTeX documents. When I try to generate the previews I get the following error cannot-use-pdftex generated by the ...
3
votes
2answers
346 views

Sluggish cursor movement in emacs LaTeX-mode

I'm editing a large (around 50k words) tex file in Emacs using AUCTeX and cursor movement is quite sluggish, especially when jumping by word. This isn't a problem in any other mode. Edit: I did some ...
4
votes
1answer
223 views

Permanent Highlighting in AUCTeX

I want to highlight text regions in my Emacs/AUCTeX/LaTeX document in a "textmarker style". Furthermore, the highlighting should save permanently. These features are provided by highlight.el and ...
4
votes
1answer
705 views

Adding custom macros to completion list with AUCTeX

I would like AUCTeX (that is, Emacs with auctex loaded) to suggest more LaTeX macros when using completion (M-Tab or C-Ret) than it does by default. I would like to have macros from packages I have ...
9
votes
1answer
581 views

Emacs and latex math delimiters

The forward-sexp command in EMACS can be used to find the $ that closes an inline equation: if the point is before the $ that opens the equation, then forward-sexp moves the point after the closing $. ...
7
votes
2answers
2k views

Setting up forward search between Emacs+AUCTeX and Evince

Did anyone succeed setting up forward search between Emacs+AUCTeX and evince? In order to establish inverse/forward search between Emacs+AUCTeX and evince, it is necessary to: install new TeX Live ...
4
votes
1answer
2k views

AucTeX (in Emacs) doesn't seem to find certain packages

I am using AucTeX in emacs v23 in PFD-mode. When invoking the pdflatex compiler through C-c C-c LaTeX I get a [...] file <some_package>.sty not found error for some particular packages. For ...
4
votes
1answer
497 views

Drag and drop in AUCTeX

I already asked this question on the AUCTeX mailing list via Gmane but can't find the question in the mailing list's archive. Therefore I ask here, too. Since I'm writing a document with many weird ...
3
votes
1answer
322 views

How can I change where preview latex stores its generated files?

I love preview-latex but it litters my directories with its temporary files. I've scanned the documentation of previewlatex, auctex, and the latex preview package but can't find a variable that lets ...
5
votes
1answer
373 views

Emacs LaTeX formatting paragraphs

I like the Format Paragraph function of Auctex/LaTeX in Emacs but it seems to move markup commands around. Is there any way I can format a buffer but only the plaintext sections of it so that it ends ...
4
votes
1answer
249 views

Fontifying certain commands using AUCTeX

One thing I've noticed when using AUCTeX recently is that sometimes some commands are not fontified by default such as \maketitle and the fontifying for something like \setlength{\droptitle}{-5em} is ...
1
vote
0answers
321 views

Preview mode of AucTeX fails on displayed equations but not on inline math [closed]

I'm trying to use the preview mode in AucTeX, but for some reason the rendering of equations are failing but inline math is rendering fine. When I look inside the directory with the preview images I ...
10
votes
1answer
940 views

How can I make AUCTeX spell check in the language specified by babel and csquotes macros?

It is possible to make AUCTeX load the spelling dictionary of the language which babel is loaded with. One further convenience would be for it to appropriately react to changes of language within a ...
9
votes
1answer
261 views

How can I make AUCTeX use the spelling dictionary in the same language as polyglossia is loaded with?

Is it possible to setup AUCTeX so that it loads the spelling dictionary in the same language as the language used by polyglossia? For example, is it possible to load the Danish ispell dictionary when ...
14
votes
1answer
849 views

How can I make AUCTeX use the spelling dictionary in the same language as babel is loaded with?

Is it possible to setup AUCTeX so that it loads the spelling dictionary in the same language as the language used by babel? For example, is it possible to load the Danish ispell dictionary when a ...
10
votes
1answer
355 views

AUCTeX's csquotes integration does not work together with babel

I use the AUCTeX feature to expand " into csquotes macros. To enable it I have put the following in my .emacs: ;; " expands into csquotes macros (setq LaTeX-csquotes-close-quote "}" ...
3
votes
4answers
2k views

Problem getting preview to work in Auctex on Windows 7

I'm trying to get preview of math formulas to work in AUCTeX. When running M-x preview-buffer on simple test document I get the following error: Preview-DviPS finished at Wed Dec 28 00:53:14 DviPS ...
5
votes
2answers
1k views

What Unicode Font is Best Suited for Math Symbols using Font-Locking under Emacs?

I recently installed Emacs + AucTeX on MS Windows using the pre-configured binary available from this CTAN webpage and everything works quite well with the latest MikTeX installation and Ghostscript 8 ...
1
vote
1answer
320 views

Compatible versions of AUCTeX and Ghostscript on Mac

When I run preview-at-point (in emacs), I get a minus (do not enter) sign rather than the figure. I followed the suggestion here and downloaded the development version of AucTeX. The problem remains. ...
5
votes
1answer
488 views

Configuring TEXINPUTS from AUCTeX?

I'm working on a collaborative (version controlled) LaTeX project. We have a bunch of custom .sty files in a subdirectory of our project named tex. We set TEXINPUTS=".:tex:" in the project Makefile ...
4
votes
3answers
791 views

RefTeX doesn't turn on automatically when loading AUCTeX after upgrade to TeX Live 2011

Has anyone had this issue? I can't sort out why this would occur but I didn't change anything in the setup. If I call it manually and turn on reftex-mode it works fine.
6
votes
2answers
486 views

how to highlight certain environments in emacs

For example, I want to highlight the theorem and lemma environments, but leave the proof environment unchanged. I tried to search the variables in font locking but no luck.
2
votes
1answer
494 views

Beamer to not output PDF automatically in presentation mode

I am using beamer with the wkbeamer theme in Emacs and I can't figure out how to get it to not output in presentation mode, which is quite annoying when creating the document. Every time I view it the ...
2
votes
1answer
2k views

AUCTeX can't find PDFLaTeX

I installed TeX Live 2011 from source in my Ubuntu. The AUCTeX module was also compiled and installed instead of pulling from Ubuntu's repository. However, when I opened a LaTeX file with Emacs, and ...
3
votes
1answer
1k views

Emacs + Auctex, Latex environment

I'm writing a document in LaTeX. The document is divided in .tex documents and compiled using a Makefile. My question is, could I see the dvi/PDF for the section of the document that I'm already ...
4
votes
3answers
1k views

preview-latex does not function

Preview-latex installs, but doesn't actually preview. When I generate the preview from the source, all I see is... the source. For example, the math equations are highlighted, but not rendered. Some ...
2
votes
1answer
4k views

Clean-up temporary files after PDF is generated [duplicate]

Possible Duplicate: Deleting external/auxiliary files? Is anyone aware of a way of how to cleanup temporary files generated by pdflatex during the generation of the PDF file? I came across ...
25
votes
8answers
7k views

Setup SyncTeX with Emacs

I want to setup SyncTeX with Emacs, or, more specifically, with AUCTeX, and Evince in Ubuntu. How can I do that? I would like both forward search (from source to output) and inverse search (from ...
1
vote
0answers
95 views

Setting auxiliary files path in Aquamacs [duplicate]

Possible Duplicate: Prevent pdflatex from writing a bunch of files. I use Aquamacs and TeX Live 2009 to edit my Latex files. Is there a way to define a default or project-based path where ...
7
votes
3answers
793 views

emacs auctex: how to get \frac{}{} and \bm{}?

How can I find out (in AUCTeX) if \frac{}{} and \bm{} have predefined keyboard shortcuts? I couldn't find these two.
6
votes
5answers
794 views

emacs/aquamacs + latex/auctex: how to define one's own environments or commands?

I work with Aquamacs (emacs on Mac OS X; latest version) to compile .tex documents. Although AUCTeX provides environments such as enumerate etc., I would like to define a shortcut/macro to get my own ...
3
votes
3answers
2k views

preview-latex in emacs auctex: empty boxes?

I originally posted this question directly on the Auctex mailing list but did not receive a response. I'll hopefully get more luck on the TeX Exchange. I was recently reminded by this post regarding ...
8
votes
2answers
762 views

Entering math mode in AUCTeX using \( and \)

As pointed out in this answer, using \( and \) in order to enter inline math mode in LaTeX is the recommended practice. However, this takes a bit longer if one compares it to $. Is there a way to ...
0
votes
2answers
477 views

AUCTeX region preview in Emacs

I've installed AUCTeX and passed the circ.tex preview, however, when I'm trying to add more elements (enumerate, tabular) to preview with \PreviewEnvironment{..} in the preamble, AUCTeX ignores these ...
5
votes
4answers
651 views

Auctex TOC with multifile document

I'm writing my PhD thesis with LaTeX-Sweave and I use EMACS with AucTex and ESS. I have a master file (master.tex) and some slave files and my question is about the use of the TOC in the slave files. ...
1
vote
0answers
145 views

Auctex indentation with xemacs [closed]

I'm running xemacs 21.4.22 and auctex 11.66 on a win7 PC. Althought I'm quite sure auctex is loaded (e.g. I got the LaTeX menu with some AUCTeX references). I cannot get indentification to work. ...
4
votes
1answer
634 views

Creating a Keyboard Shortcut in Emacs for a Command in Auctex

I have created a custom command in the command list in Auctex. I want to be able to set it to a key binding like the View command which is C-c C-v. I know how to set global key bindings in the .emacs. ...