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

learn more… | top users | synonyms

14
votes
2answers
133 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 ...
2
votes
2answers
41 views

`a, `b etc not giving \alpha, \beta etc in auctex

I am using Auctex in Emacs for typing mathematical documents. I am very new to emacs and tex in general. I heard it from a friend that `a will expand as \alpha and so on in auctex, but this is not ...
0
votes
0answers
21 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
2answers
55 views

Adding math behavior to custom macro in AUCTeX

I have defined a custom macro for my equations, to simplify and decrease the amount of code I write \newcommand{\eqn}[1]{ \begin{equation} #1 \end{equation} } \eqn{\alpha + \beta = \gamma} ...
0
votes
0answers
34 views

How to change text direction from Right to Left in Emacs24 and write Hindi numbers?

I use GNU Emacs 24.3.1. I want to write Arabic text with and without English text in one buffer. when I write the Arabic letters do appear (I use Consolas font) but what I miss is the direction of ...
0
votes
1answer
75 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 ...
1
vote
0answers
50 views

Emacs + Skim + Live Preview?

I have been using Latexian for a while, but some of its limitations and my natural tendency to use emacs, is prompting me to take a look at my work environment again (OSX 10.9.2). I have seen some ...
3
votes
0answers
65 views

AUCTeX folding and square brackets in math mode

I want to use the folding functionality of AUCTeX, mainly to replace math macros with the corresponding symbols. But at the same time I want to continue to use square or curly brackets additionally to ...
4
votes
1answer
54 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 ...
1
vote
0answers
11 views

Auctex go to corresponding block between pdf and tex file

Texshop's CMD+Click can take you to the location of the current texts on its pdf/tex file. I am wondering how to do this in emacs/auctex?
1
vote
1answer
29 views

Issue with forward search (single PDF but multiple tex files) Emacs + SyncTex + Evince

I have a single master file and several other .tex files are included in this master file. TeX-source-correlate mode is enabled for forward search. For the master file forward search is working ...
2
votes
0answers
46 views

skim cannot reload file after auctex preview-latex

I am using emacs+skim to preview latex on macs, and I use auctex preview-latex from time to time. the problem is, after I run C-c C-p C-d in emacs to preview entire document, the pdf file is now ...
4
votes
1answer
86 views

How to add braces automatically after \hat (or \tilde, \bar) in emacs auctex math mode

When typing operators in quantum mechanics, there is a lot of stuff like "\hat{...}" going on. But in math mode, typing apostrophe+^ only gives \hat inside math environment. How can I modify the ...
4
votes
1answer
105 views

How to increase (relevant) verbosity of compilation errors with Emacs+AucTeX?

I often debug LaTeX files and Emacs+AUCTeX does not show many informations about errors. I always have the following message in the minibuffer: LaTeX errors in `*~/my/file output*'. Use C-c ` to ...
2
votes
2answers
52 views

How to force emacs with AUCTeX to show compilation in new buffer

So I am using AUCTeX with xetex in emacs and each time after I compile the file I get a split window showing the compilation process. I don't want to completely hide this since I find it useful for ...
1
vote
0answers
26 views

The hyperref package breaks AUCTeX preview with two different journal style files

The following LaTeX MWE compiles, but AUCTeX preview does not work. This file tests for two different journal style files. One is Bayesian Analysis, the other is Oxford Bioinformatics (links are to ...
2
votes
0answers
52 views

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

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: ...
1
vote
0answers
26 views

How can I follow input links in auctex [duplicate]

Is it possible to do the following with AucTeX: Suppose you have a master file (master.tex) like: \documentclass{minimal} \begin{document} \input{fileA} \input{fileB} \end{document} and for ...
1
vote
0answers
26 views

eqref in reftex [closed]

I'm using Emacs + AUCTeX + refTeX. I've added (setq reftex-plug-into-AUCTeX t) to my init.elfile and everything seems to work fine except for one thing. When I choose to reference a label using C-c ) ...
0
votes
1answer
42 views

Cannot get Skim to open on C-x C-v

I have been trying to get Skim to start from emacs. I always get no "matching viewer found". Here are the settings of my .emacs and I am sure something is wrong here, but cannot figure it out. Any ...
0
votes
0answers
56 views

AUCTeX can't find file when there is an umlaut in its name (on Mac OS X)

I'm using AUCTeX for Emacs. I've got a LaTeX document that compiles fine outside of AUCTeX (so the file itself is fine). However, when I try to compile it from inside Emacs using Ctrl-C Ctrl C, I get ...
3
votes
0answers
52 views

Edit Tabular-like Environment using Emacs+AUCTeX

I am using Emacs+AUCTeX to write all my LaTeX files. So far so good except every time when I need to edit some tabular-like environment. I need some tricks or key bindings to take advantage of Emacs ...
1
vote
1answer
41 views

AUCTeX/ RefTeX: ignore files by extension

I'm writing a very long document with dozens of figures that are all generated with matplotlib and exported as pgf files. Each figure environment then looks something like \begin{figure} ...
3
votes
1answer
130 views

My PDF is not shown in Skim unless the application is already running

I have my Emacs/AucTeX/Skim development environment all set up and working perfectly ... almost. My only problem is that when I select to view my PDF, then if Skim is running, the PDF will be shown ...
2
votes
1answer
43 views

AucTeX - Turning inline mode into displaymath and vice versa

Usually, when redacting math stuff, I deal many times with the following situation : I have written some formula in a displaymath environment and, when compiling, realize it should look better inline ...
4
votes
1answer
35 views

How to call \enquote by pressing only one time " key in Emacs?

I'm using \enquote command of csquotes package to handle (multilingual) quotations. With Emacs+AUCTeX, I use the three following lines (in .emacs) to be able to call \enquote command by pressing to " ...
0
votes
0answers
30 views

How can I change the color of a \enquote quotation inside Emacs?

When I paste a text inside quotation marks into Emacs+AUCTeX, AUCTeX formats it with a soft red color (see the screenshot below at the first line). I like this color. However, I'm using csquotes ...
3
votes
2answers
130 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 ...
3
votes
2answers
104 views

Compile with emacs and update the view in docview

I'm using Emacs with AUCTeX under Ubuntu 14.04. My frame is splitted into two windows like this: ------------------------------ | | | | | | | ...
2
votes
1answer
54 views

How can I have titles with normal font size with AUCTeX+Emacs?

I'm wondering how to modify the way AUCTeX show titles. By defaut, the titles are too big for me and they take too much place in my screen. (ignore the red underlining created by flyspell set with ...
3
votes
1answer
63 views

How can I set RefTex default reference format?

I'm using RefTex and cleveref. When I want to add a cross-reference I need to enter C-c ) C <SPC> to select the uppercase (\Cref) reference format and show all label types. I use this method to ...
3
votes
1answer
77 views

Installing the latest AUCTeX from within Emacs

Emacs 24+ comes with a package manager (M-x list-packages). This allows the user to install (and upgrade packages) by simply pressing I on the selected packages, with Emacs pulling from the right ...
2
votes
0answers
38 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 ...
1
vote
1answer
39 views

Inserting Custom Commands with Emacs+AucTeX

I would like Emacs or AucTeX to do the following: here's some SELECTED TEXT for testing Then, I could hit a key stroke and convert the highlighted text "SELECTED TEXT" to here's some ...
0
votes
0answers
70 views

No pdf output in Auctex

I reinstall texlive but I auctex don't produce the pdf output. I tried texwork and its works fine. I'm on fedora 19 I'm asking a question following this one, Local font installation problems. I ...
0
votes
0answers
16 views

problem running Tex on os 10.9.2 [duplicate]

After installing OS 10.9.2 on my computer I can no longer use LaTeX. Every time I try to typeset a document I get an error message: The program 'pdftex' was not found. Searched in directories: ...
3
votes
0answers
39 views

XeLaTeX crashing only in AUCTeX

I'm running xelatex installed from TeXLive 2013 running on Cygwin, and it works fine compiling from the commandline with xelatex input.tex or latexmk, but for some reason running the same file through ...
1
vote
1answer
119 views

Synctex between Emacs and Evince, which would move focus for backward search

There is a great way to make Emacs, Evince and Synctex work together. However it has a minor caveat: when you do backward search, focus is not moved to Emacs (so you have to do that using mouse or ...
5
votes
1answer
80 views

Add own macros to “.emacs”

I'm using KOMA-script, which offers the use of letter-class-options, which can be stored in a file: *.lco. One command I define in a "zrp.lco" is very simple: \newcommand{\Beweis}[1]{Beweis: #1} ...
4
votes
1answer
82 views

How can I fix AucTeX's syntax highlighting for the lstlisting environment when using optional arguments?

The title really says it all, so I'll provide an example and a screenshot: \documentclass{article} \usepackage{listings} \begin{document} For example, if we wished to create a predicate to ...
1
vote
0answers
99 views

AucTeX: run latexmk + viewer in one command

Question 1: I would like to have a single key combo (C-c C-a) which compiles the file (with latexmk) and displays it. This answer solves the first part. I tried adapting the answer to also call ...
8
votes
1answer
136 views

Making AUCTeX aware of the TeX engine set in master file

Is there a way to make AUCTeX aware of the TeX engine local variable set in a master file when I compile from other files? master.tex: \documentclass{minimal} \usepackage{fontspec} \begin{document} ...
4
votes
2answers
183 views

Changing language of flyspell (Emacs) with a shortcut

I'm using the following code to launch flyspell when I edit LaTeX files with Emacs+AUCTeX. (if (file-exists-p "/usr/bin/hunspell") (progn (setq ispell-program-name "hunspell") ...
3
votes
2answers
62 views

Impossible to select text and, then, autoformat it with Emacs+AUCtex

With Emacs+AUCTeX, I was able to select text (with the shortcut CTRL+SPACE) and, then, format this text. For example, it was possible to select a sentence (the text is highlighted) and to press C-c ...
4
votes
1answer
42 views

Turning off line-wrapping in auctex for smooth transition with ess in same file

I sometimes use auctex + ess for Sweave/knitr documents. Every time I switch from auctex to ess and vice versa, there is a pause/jolt while the auctex lines re-wrap themselves. Previously, I also ...
2
votes
1answer
58 views

How to get AucTex to prompt me for a name, when inserting an environment using Ctrl-C, Ctrl-E?

I'm using emacs auctex. I've defined an environment template, as follows. \documentclass{article} \newtheorem{definition}{Definition}[section] \begin{document} \end{document} I insert instances ...
3
votes
1answer
137 views

Auto convert LaTeX escape codes to UTF-8 characters?

How do I—e.g., with AucTeX—automatically convert escaped characters like \~n to ñ for use with \usepackage[utf8]{inputenc}? I could do something like this: sed \ -e "s/\\'a/á/" \ -e ...
1
vote
0answers
217 views

LaTeX file compiles on two computers but not on the third [closed]

I have tried to troubleshoot a problem for several days and cannot solve it. I have a LaTeX document that compiles on two computers but not on a third computer. (Other documents have compiled fine on ...
1
vote
2answers
65 views

Run viewer command works only from master tex But not from child tex file

i am using Auctex under emacs 24.3.1 on mac. I am making master .tex file and many what i call it child .tex files. Run Latex and Run bibtex commands are working nicely from either the master ...
4
votes
0answers
170 views

Maths without paper sheet

I would like to know if it is possible to write Maths on latex without having to write a first draft on paper? As far as I'm concerned latex writing seems to demand a separation between the thinking ...