Questions tagged [auctex]

Questions about the AUCTeX package for editing (La)TeX code/documents in Emacs.

The AUCTeX website is at https://www.gnu.org/software/auctex/.

Tex.SE also an auctex tag; the one here on SO is probably more appropriate if you expect the answer to your question to involve programming in lisp, whereas the one on tex.SE might be more appropriate if you expect it to involve tricky option settings, or if you would like to be told you should be using TeX package foo rather than trying to get your editor to deal with the verbosity of bar. (No biggie either way, though.)

171 questions
1
vote
0 answers

Emacs/auctex not asking for prompting label anymore

I know that the default mode of Auctex is that prompting c-c c-e equation RET is supposed to ask me to prompt a label, unless I modify purposely the reftex-plug-into-AUCTeX value. I find myself in a situation where, after installing the last…
picop
  • 111
  • 2
1
vote
1 answer

Autoloading failed to define function latex-mode

When I open some .tex files with emacs, I get the following message: File mode specification error: (error "Autoloading failed to define function latex-mode") and emacs is not is latex mode. The latex part of my init.el file is the…
mookid
  • 1,132
  • 11
  • 19
1
vote
2 answers

LaTeX-mode hooks not loading in emacs (24.3.50) with AUCTeX (11.87.3)

Since I updated to emacs 24 I cannot get AUCTeX to load the LaTeX-mode hooks, e.g. (add-hook 'LaTeX-mode-hook 'visual-line-mode) despite: C-h m tells me that my major mode is Major mode in AUCTeX for editing LaTeX files. the AUCTeX mode help…
user3383232
1
vote
1 answer

How to add auctex's autocompleting function in markdown mode?

My emacs version is 24.3.1, and I need to input many latex code (e.g. math formula) in the markdown mode. So I want to use the autocompleting function provided by auctex. But markdown and latex are two major modes, and I can't use them in a same…
why_math
  • 13
  • 2
1
vote
1 answer

How to add \Sexpr{} to Emacs/AUCTeX verbatim environment

I have the very same problem detailed here caused by the '$'-included in the \Sexpr command-breaking the syntax highlighting of Emacs. Unfortunately no definitive solution has been proposed yet. Now I read a solution for a similar problem here that…
CptNemo
  • 6,455
  • 16
  • 58
  • 107
1
vote
0 answers

Adding commands to TeX-command-list not working on OS X

In my .emacs file, I added a few commands to the TeX-command-list, which works fine on my Ubuntu and Debian laptops. On my wife's Macbook however, when invoking the TeX-command-list (C-c C-c) it appears to be empty. I use emacs 23 in Debian, and…
WJahn
  • 113
  • 4
1
vote
2 answers

AUCTeX: Run Compile Command n-times

I'd like to have a function that asks for a number n and executes the default compile command n-times afterwards. That is to say unlike C-c C-c (i.e. TeX-command-master) I don't want to be asked which command to run, it should select the default…
elemakil
  • 3,681
  • 28
  • 53
1
vote
1 answer

emacs, auctex, noweb-mode - how to keep screen from recentering around point?

When in auctex and noweb-mode (using Sweave in emacs), I find it distracting when the screen recenters itself as I use next-line, previous-line, etc. (C-n, C-p, and mouse-1). Does anyone know how to turn it off? Thanks much!
hatmatrix
  • 42,883
  • 45
  • 137
  • 231
1
vote
1 answer

Auto Completion with auto-complete OR predictive based on mode

I'm using emacs-snapshot (24.2.50) on Xubuntu 12.10. For completion I am currently using auto-complete (v1.4). I have a pretty nice setup of auto-complete with various sources, including the semantic source for code completion of my c++…
elemakil
  • 3,681
  • 28
  • 53
1
vote
1 answer

AUCTeX Info Files in OS X

I have Emacs installed from http://emacsformacosx.com/ and AUCTeX installed from homebrew. I used the option --with-emacs=/Applications/Emacs.app/Contents/MacOS/Emacs while installing AUCTeX. I am able to successfully load auctex.el and…
Varun Vats
  • 489
  • 1
  • 4
  • 14
1
vote
1 answer

Open pdf viewer at a certain line (forward-search) from within an .Rnw (Sweave) file

I am working with Ubuntu 12.04, Emacs 24, and the (pdf) viewer Okular 0.14. I would like to be able to open Okular (and jump to a specific line) from an .Rnw (Sweave) file. By using (setq TeX-view-program-list '(("Okular" "okular --unique…
Marius Hofert
  • 6,546
  • 10
  • 48
  • 102
1
vote
0 answers

Emacs (AUCTex) not writing to vc.tex file when using VC bundle in LaTeX document

I'm using GNU Emacs 24.1 for Mac OS X on Lion with the latest version of AUCTeX and the VC bundle to print version information in a footer on my LaTeX documents. The problem is that when I typeset my LaTeX document, it runs the suggested shell…
ajp11
  • 11
  • 1
1
vote
0 answers

TAB key does not work for auto-completing in Auctex

I am using Emacs 24.1 on windows XP/7. TAB/RET key works for auto-completing in elisp mode, scratch and even ESS mode. When I write tex file using Auctex, hitting TAB key jumps to the next line and doesn't auto-complete the input. C-i could…
JeffXu
  • 11
  • 2
1
vote
2 answers

How can I reference an external LaTeX chapter using reftex in Emacs?

I'm editing a chapter that is part of a larger LaTeX project that includes multiple chapters, and I'm trying to use C-c ) to put in a cross reference, but reftex finds only the labels in the current buffer (chapter). According to the reftex manual,…
Chad
  • 1,434
  • 1
  • 15
  • 30
0
votes
2 answers

Make C-M-RET insert \item[]

In AUCTeX M-RET is bound to (LaTeX-insert-item) which makes a new properly indented line and inserts \item and a space after which the cursor is placed. I would like to extend this feature so that C-M-RET has similar functionality but for…
N.N.
  • 8,336
  • 12
  • 54
  • 94