Questions tagged [auctex]

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

Filter by
Sorted by
Tagged with
9
votes
1answer
2k views

auctex 11.86 in emacs 24: Don't know how to compile nil

I run emacs 24.2.50.1 and auctex 11.86 on debian stable. When i open a tex file with $ emacs text.tex Emacs shows the following line 38 times in the Compile-Log buffer ../../../../.emacs.d/elpa/...
9
votes
1answer
2k views

How can I streamline insertion of LaTeX-math-mode symbols in AUCTeX?

In AUCTeX, you can enable a minor mode called LaTeX-math-mode that instructs the prefix character ` to insert various common macros. For example, ` t inserts \tau@ when you are in a math environment (...
9
votes
2answers
11k 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 the ...
9
votes
1answer
702 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 ...
9
votes
1answer
6k views

Installing new packages from ctan through command line or AUCTeX on Mac OS?

I've needed a few new packages for some macros to draw diagrams that I'm working with. I've heard that some LaTeX editors can automatically download the correct packages from CTAN when they're not ...
9
votes
1answer
484 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 ...
9
votes
1answer
682 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) ...
9
votes
1answer
2k views

I want to disable auto-fill-mode when editing equations

How can I disable auto-fill-mode when editing equations? I like auto-fill-mode in general, but I'd like to turn it off in specific situations, e.g. between a \begin{equation} and \end{equation} or \...
9
votes
1answer
923 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 $. ...
9
votes
2answers
744 views

Unable to reference new environments with RefTeX

I was trying to add new environments to AUCTeX doing what the RefTeX's manual says, so I added the following to my .emacs: (add-hook 'LaTeX-mode-hook 'turn-on-reftex) (setq reftex-label-alist '(("...
9
votes
0answers
204 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 ...
8
votes
2answers
3k 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?
8
votes
3answers
1k 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") 'find-...
8
votes
5answers
1k 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 ...
8
votes
4answers
4k views

Customizing pdfLaTeX for a particular file with AUCTeX?

I'm trying to use the TikZ 'external' library, available as of PGF 2.10. This requires running pdfLaTeX with the option -shell-escape. I usually run pdfLaTeX from AUCTeX with the option (TeX-PDF-...
8
votes
2answers
1k views

how to make (TeX-command-run-all) save automatically without asking?

I have just upgraded to AUCTeX 11.89.1 in emacs and find the new command (TeX-command-run-all) quite convenient. One problem is that after modifying the file and typing C-c C-a, confirmation is needed ...
8
votes
2answers
6k views

How to use Auctex in MacOS El Capitan?

I'm using GNU Emacs from emacsformacos.com After Migration to OSX 10.11 "El Capitan", Auctex can't run the *tex utilities anymore: Running `LaTeX' on `poisson' with ``pdflatex -file-line-error -...
8
votes
1answer
5k 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 ...
8
votes
1answer
6k 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 ...
8
votes
1answer
8k 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 ...
8
votes
1answer
3k 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 ...
8
votes
1answer
1k views

Auctex not compiling on C-c C-c, “TeX-master-file-ask: Master file already set” [closed]

I recently started using Emacs/Auctex on windows 10. I am trying to compile a latex document using the command C-c C-c and it does not compile and instead just reports "TeX-master-file-ask: Master ...
7
votes
4answers
5k 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. ...
7
votes
2answers
2k views

Getting Emacs to choose between LaTeX/ConTeXt mode depending on file?

I have lots of LaTeX files, and my AucTeX has been set up to automatically open up all *.tex files in LaTeX-mode. But more recently I've started using ConTeXt, and for those files (which also end in ....
7
votes
1answer
1k views

What does 'Tex-master' mean?

I use AUCTeX. AUCTeX has inserted a comment at the end of my test4.tex file that reads: %%% TeX-master: "test3" What does it mean? When I try to compile and pdf-print test4.tex, the document that ...
7
votes
3answers
755 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 use ...
7
votes
1answer
2k 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{} ...
7
votes
1answer
419 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 ...
7
votes
1answer
2k views

Defining a new key combination in emacs to run Latex

I want to define a new key combination in my .emacs such that it will directly run the latex command, unlike C-c C-c Ret which gives me different options every time (like view). I am using xdvik for ...
7
votes
1answer
4k 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") (eval-...
7
votes
1answer
291 views

Emacs AUCTeX & TL 2018 - Problems with non ASCII characters in the file name

My recent update to TeX Live 2018 has led to a curious problem. I can no longer compile files whose names have non ASCII characters with Emacs + AUCTeX. That is curious because nothing on the side of ...
7
votes
1answer
1k views

Changing AUCTeX processor in the file itself

I'm using AUCTeX 11.86 in Emacs 23.3.1, under Linux (Ubuntu 12.04.1). Some of my files I compile with LaTeX, a few with XeLaTeX. I'd just like to be able to enter C-c C-c to compile, and have the file ...
7
votes
1answer
1k 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 ...
7
votes
1answer
335 views

Emacs+AUCTeX: Improve ConTeXt mode indentation

I’m using Emacs with AUCTeX in ConTeXt-mode to compose my ConTeXt documents. However, indentation is a little bit inconvenient for me. Consider the following snippet: \setuphead [section] [...
7
votes
1answer
1k 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 a ...
7
votes
1answer
7k 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 ...
7
votes
2answers
962 views

Best way to use multi-lingual quotes using csquotes package in AUCTeX Emacs

When I write in Arabic (Rt-to-Lt) language I get the quotation marks reversed (the right instaed of left and vice versa) if I want to keep font-locking of AUCTeX setup. Emacs editor using AUCTeX Font-...
7
votes
1answer
1k 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 ...
7
votes
2answers
3k 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 ...
7
votes
2answers
1k 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.
7
votes
4answers
1k views

How to make auctex not prompt me on C-c C-c

The C-c C-c bind runs TeX-command-master. It always asks me "is this what you want to do?" and I'm always hitting return to do it. I'd like a version of this command which just does it without asking.
7
votes
1answer
984 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 ...
7
votes
1answer
156 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
1answer
1k views

AUCTeX/Emacs not recognizing correct commands automatically

On my previous OS install, Debian Squeeze with FluxBox, my workflow was as follows: With *.bib file open, I enter C-c C-c. The BibTeX command was recognized as necessary and ret executed it. Then I ...
7
votes
1answer
1k 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 ...
7
votes
0answers
3k views

Getting SyncTeX to work with Emacs, AucTeX and Skim (OS X El Capitan)

I'm attempting to set up LaTeX to work with Emacs on my Mac, running OS X El Capitan 10.11.5. I can compile everything all right, but I'm unable to use forward/inverse searches with Skim. From ...
6
votes
3answers
3k 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
3answers
3k views

emacs / AuCTeX and itemize

I am having an issue with my newline's within itemized lists in AucTex mode of Emacs. If I do, C-c C-e RET itemize RET, I expect the following \begin{itemize} \item \end{itemize} but instead get ...
6
votes
2answers
795 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} ...
6
votes
2answers
11k views

How to change AUCTeX latex compile command? (using Emacs 23)

I'd like to configure AUCTeX to compile without stopping on errors. I can do it from a terminal with pdflatex -interaction=nonstopmode filename.tex but AUCTeX apparently does pdflatex filename.tex ...