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

learn more… | top users | synonyms

3
votes
2answers
307 views

How to replace AUCTeX's “LaTeX” command with latex->dvips->ps2pdf chain?

What is the proper way of solving this problem with respect to AUCTeX's design - I mean, how to do that in a way that it will still recognize the errors, display log on demand, make "View" command ...
5
votes
1answer
148 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 ...
0
votes
1answer
97 views

Problem setting master file to current file with Emacs/AucTeX

I have a tex file containing these few lines at the end: %%% Local Variables: %%% mode: latex ...
2
votes
1answer
239 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) ...
0
votes
1answer
49 views

Add key binding to emacs in AucTeX does not fully work

Based on the discussion in these questions (1, 2, 3), I created the following key bindings for AucTeX in emacs. (defun AucTeX-LaTeX-beginendgroup () (local-set-key (kbd "C-{") "\\begingroup ") ...
4
votes
1answer
53 views

auctex 11.88 bug(?) on LaTeX-env-label, cannot automatically insert label

I have recently been trying auctex 11.88 on emacs 24.4(win7+mac). it's great so far! I used to have the following in my .emacs emacs file when I was using auctex11.87 (I bumped into it on ...
1
vote
0answers
27 views

Call GNU Make from AucTeX [duplicate]

In most Emacs major modes targetting compiled programming languages, C-c C-c invokes make. In AucTeX, it lets me choose between any of BibTeX Biber Check ChkTeX Clean Clean All File Index ...
2
votes
2answers
31 views

Emacs + AUCtex on Windows 8.1

I tried to install Emacs and AUCtex on Windows 8.1 without success (at least, it does not seem to work to me). With the risk of being pedantic, here are the steps I followed: 1) Extracted the most ...
4
votes
1answer
195 views

Cross-ref an equation using RefTeX, AUCTeX and cleveref

After an updated of AUCTeX (to 11.87) the solution that worked wonderful from this answer stopped working. In particular, I got the following error: reftex-reference: Wrong number of arguments: ...
2
votes
1answer
39 views

How do I use AUCTeX to perform forward search/synchronization in an included document?

I’m trying to sync my .tex file with the .pdf output with a forward search on OS X using Emacs + AUCTeX and Skim.app. I have added the following code to my Emacs configuration: (setq TeX-auto-save t) ...
3
votes
1answer
28 views

TeX error: “Error occurred after last TeX file closed” How to fix this with emacs? [duplicate]

I have recently started to use Emacs editor to type latex documents. For a while everything was going smooth and fine but one good day I got this annoying error message while compiling my document. It ...
2
votes
1answer
474 views

How to fix in ConTeXt problems after pages and warning 'no GlyphToUnicode entry has been inserted yet!'

Is the warning no GlyphToUnicode entry has been inserted yet! exclusive of texexec or is it caused by patches loaded by mkii or by using 'cont-sys.rme' instead of cont-sys.tex? The funny thing is, ...
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 ...
20
votes
4answers
4k 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 ...
5
votes
3answers
595 views

Indentation in AUCTEX and algorithmic package

When working with EMACS+AUCTEX I encountered the problem of proper indentation when using the algorithmic package. In this MWE: \documentclass[12pt]{article} \usepackage{algorithmic} ...
4
votes
1answer
431 views

What is the best side-by-side preview method for Emacs24 AUCTeX?

I am new to the Emacs world. I did this transition from one of the best latex editors and despite of the complexity of Emacs at every turn, I can still see there is future in learning it on the long ...
4
votes
2answers
355 views

Auctex, how to use doc-view-mode?

Newbie here. I have just installed emacs/auctex on my mac. I don't like xdvi to view the dvis, I like to use emacs' builtin pdf viewer to view pdf on its own split window on the right. It used to be ...
2
votes
1answer
434 views

Adding an option to the PDFLaTeX call from AUCTeX

In my .emacs I have '(TeX-PDF-mode t) set. So I'm using PDFLaTeX. I'm not sure why this is not the default these days. I had also set '(LaTeX-command "latex -shell-escape") In hindsight this ...
1
vote
1answer
39 views

ams math + AUCTeX + refTeX causing label references to always be \eqref not the desired \vref

As stated on the reftex documentation “Note that this is automatically done by the ‘amsmath.el’ style file of AUCTEX, see Section 7.8.2, page 38 – so if you use AUCTEX, this configuration will not be ...
3
votes
0answers
42 views

Cannot get TeX-command-extra-options to work in AucTeX 11.88

I am using the minted package, which requires "-shell-escape" to function. I use XeLateX as my command. I updated auctex using ELPA in emacs 24.3.1, which has 11.88. According to this question, I can ...
3
votes
1answer
66 views

Auctex support for building using makefile in subdirectory?

I am editing my PhD thesis using Emacs & Auctex, but my elisp is quite weak. Additionally, I build my thesis in a subdirectory, using makefiles generated by CMake and the UseLATEX CMake package, ...
7
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 ...
7
votes
1answer
55 views

Emacs / AUCTeX search/replace in multifile documents

Is there a way to let emacs automatically search and replace strings/regex in all files that are part of a multifile document? With C-s or M-% only the current buffer is included in the search, even ...
5
votes
1answer
364 views

AUCTeX View and Compile commands in Emacs 24.4

With Emacs 24.3 on Mac OS X, I have used the method described in the answer by CodeKingPlusPlus at Emacs AUCTeX View command to use C-c C-v to open compiled latex PDFs using Preview.app. After ...
3
votes
0answers
74 views

How to set up forward/inverse searches with AUCTeX and Zathura

I haven't been able to find much on how to set up Zathura to work with AUCTeX/Emacs in terms of forward/inverse-searching. Has anyone been successful in this?
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 ...
3
votes
1answer
145 views

latex preview in emacs unable to run ghostscript

So, on Windows 8, emacs, trying to use preview-latex. Each time I get the same error: Preview-PDF2DSC finished at Mon Oct 13 12:55:42 PDF2DSC sentinel: Searching for program: permission denied, ...
16
votes
6answers
19k views

Mavericks upgrade screwed up my pdflatex (command not found)

so everything was working fine ... until i upgraded to os x mavericks (version 10.9.2) a couple days ago. using emacs version 24.3 (9.0) auctex version 11.87.3 after upgrade, tried to compile and ...
2
votes
0answers
46 views

Auctex and beamer: TeX-error: Error occured after last TeX file closed

I use Auctex to create a beamer document. Frequently I run into this rather uninformative error message: TeX-error: Error occured after last TeX file closed I found a similar thread here and ...
0
votes
1answer
30 views

AUCTeX error with utf8 package recognizing “ \%CW”

I'm in AUCTeX in a 32-bit Win7 machine. When compiling the master file with pdflatex I'm getting the error msg given below. Can you help me understand the error and correct it? ERROR: Package ...
10
votes
1answer
2k views

How to configure Emacs and AUCTeX to perform Forward and Inverse Search

I have emacs23 and AucTeX installed on my Ubuntu system. I would like to change the default pdf viewer in emacs and enable forward and inverse search. How do I do it? I would like to share my ...
4
votes
1answer
495 views

Disabling the “select reference format” menu in reftex

I'm not sure if this is the right place to ask this question, so if not, please let me know where it would be more appropriate. Since upgrading to Ubuntu 13.10, something seems to have gone wonky ...
4
votes
0answers
88 views

AuCTeX Preview “Finds No Preview Images”

I am currently trying to set up AuCTeX in emacs, but I'm encountering difficulty in getting the preview feature to work. For reference, I'm using Windows 7 64-bit, GNU Emacs 24.3.1, AuCTeX 11.87.7 ...
0
votes
0answers
50 views

AucTex minted package not finding pygmentize

I am trying to compile a latex document with the minted package. I can do this quite happily from the terminal (I'm using texlive on os x) with the following code: xelatex --shell-escape demo.tex ...
0
votes
0answers
59 views

Emacs not rendering PDF correctly

I'm using AUCTeX, preview-latex and latex-preview-pane to compile and preview documents written in LaTeX. However, whenever I compile my document and it is shown in the preview pane, it is not ...
1
vote
0answers
34 views

Do I use preview-latex correctly?

I open a LaTeX file in Emacs, and press C-c C-p C-b (M-x preview-buffer) to generate math/graphics previews for the entire buffer. I find that a pdf file is generated with each page containg a math ...
0
votes
0answers
18 views

Strange interaction between emacs (auctex) and hyperref [duplicate]

I just upgraded from Precise Pangolin to Trusty Tahr (Ubuntu) and found that both the new emacs24 and the older emacs23 are now not able to locate compile errors when I use the hyperref package. This ...
9
votes
4answers
994 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.
2
votes
0answers
55 views

Error adding new value to LaTeX-math-list with custom function

I am using Auctex with math mode enabled. One of my favorite features is insert \mathcal with the key sequence "[backtick] c". I decided to try and customize the variable LaTeX-math-list so I can do ...
5
votes
1answer
58 views

Tex-shell in AUCTeX

Whenever I compile a file in AUCTeX (e.g. C-c C-c and then choosing an option) , it creates a buffer tex-shell where I can see the output of the compilation command. Once the compilation finishes this ...
8
votes
1answer
801 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 ...
2
votes
0answers
205 views

How to change (Mac)Vim's syntax highlighting rules for (La)TeX files? [closed]

I'm a long-time AUCTeX/Emacs user that switched to Vim/LaTeX-Box recently. I got everything working the way I want and grew pretty fond of Vim, but there's still one unusual thing that bothers me: ...
6
votes
2answers
121 views

Automatic indentation with AucTeX within \[…\] environment

AucTex works fine automatically indenting most environments, for example \begin{displaymath} \cos x \end{displaymath} but doesn't indent when I use \[ and \], and automatically takes away any ...
3
votes
1answer
94 views

AucTeX insert-environment C-c C-e (no label prompt)?

Does anybody know how to configure Emacs or Auctex such that when you insert an environment for example with C-c C-e equation RET? Avoid having to type RET for (Optional) What label? question? Or ...
4
votes
0answers
45 views

Disabling input method inside a math formula in Emacs with AUCTeX

I am typing a math document in Russian using Emacs 24.3.1 and AUCTeX 11.87. I am using the russian-computer input method to type Russian. It would be very convenient to disable this input method ...
1
vote
0answers
48 views

How to disable inline preview in certain parts of document while editing?

I'm using AUCTeX+emacs, and have inline preview enabled (although it could apply to other preview enabled editor like TeXstudio). My document has a TiKZ plot generated using gnuplot, and it has lots ...
0
votes
0answers
75 views

Auctex and Skim - basics

I am new to Emacs and Auctex. For a couple of days I've been experimenting with the programms adding codes from the internet to my init.el, sadly most of the codes are very complicated to understand ...
12
votes
1answer
1k 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 ...
4
votes
2answers
201 views

Double-quote produces guillemets in emacs

I am having a totally bizarre problem with typing quote marks in tex documents in emacs. I work as an editor, so I receive tex source files from a publisher and I work on them. I work in emacs 24.3.1 ...
15
votes
2answers
188 views

How can I avoid AUCTeX wrongly inferring the language of a document?

A colleague using a class I wrote reports that AUCTeX is inserting guillemets when he hits the double-quote key. Investigation showed that TeX-language-fr-hook is being called even though the document ...