Questions tagged [auctex]

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

auctex
Filter by
Sorted by
Tagged with
10 votes
2 answers
6k views

Emacs latexmk function throws me into an empty buffer

This is a follow up to How do I bind latexmk to one key in Emacs and have it show errors if there are any. I'm using a function in Emacs to compile LaTeX documents with latexmk but it does not behave ...
N.N.'s user avatar
  • 8,402
26 votes
3 answers
8k views

How to call latexmk in emacs, and jump to next-error

I would like to use latexmk to compile my LaTeX documents in Emacs. Especially I need the Emacs functionality next-error, which is typically called with C-x `, and jumps to the next LaTeX error in the ...
Frank's user avatar
  • 65.3k
16 votes
4 answers
3k views

How do I bind latexmk to one key in Emacs and have it show errors if there are any

I'm using AUCTeX and I would like to bind a key, e.g. C-0, that does the following: Saves the active file without prompting me. Runs latexmk on the active file without prompting me. Shows me errors ...
N.N.'s user avatar
  • 8,402
15 votes
1 answer
6k views

Code folding for LaTeX in Emacs

Is there an Emacs minor-mode (or piece of elisp code) that lets you selectively hide/show environments while in LaTeX mode? For instance, I would like to move to the beginning of a long \begin{figure} ...
ShreevatsaR's user avatar
  • 38.7k
4 votes
1 answer
623 views

yasnippets with % ending the line after $0 acts strange when used with AUCTeX

Yasnippet snippets that has a percent sign, %, ending a line with the last point of the snippet, $0, before the percent sign acts strange in that the cursor gets placed after the percent sign and not ...
N.N.'s user avatar
  • 8,402
3 votes
6 answers
1k views

Emacs/AUCTeX prefix arguments

In LaTeX mode C-c C-c is bound to: (TeX-command-master &optional OVERRIDE-CONFIRM) Normally this interactive function runs a command, perhaps a LaTeX compilation, asking for confirmation. In ...
antonio's user avatar
  • 10.8k
15 votes
5 answers
6k views

Suggestion for \cite in Emacs with AUCTeX

I would like to know how can I get the suggestion when I do a \cite in Emacs-AUCTeX. The minibuffer tells me when I do C-c [ that: No valid bibliography in this document, and no default available ...
mjsr's user avatar
  • 7,510
14 votes
4 answers
5k views

Using minted (source code LaTeX package) with emacs/auctex

As is explained in here, I find minted package is pretty cool for source code listing. My question is how to use minted package with AucTeX/emacs? For command line I can use pdflatex -shell-escape ...
prosseek's user avatar
  • 187k
13 votes
2 answers
3k views

Run TeX-command-master without querying in emacs

The key combination C-c C-c in Emacs/AucTeX runs the function TeX-command-masterwhich decides what command should be run (latex, bibtex, view, or others) and then asks the user for confirmation before ...
Malabarba's user avatar
  • 4,493
6 votes
2 answers
1k views

FlySpell in Org-Mode recognize latex syntax like auctex

Original Response: I was trying to figure out how in auctex mode latex doesn't seem to highlight any latex functions with flyspell turned on. Is this a custom dictionary file or how is this ...
J Spen's user avatar
  • 2,644
6 votes
5 answers
6k views

Sync Emacs AUCTeX with Sumatra PDF

With these lines in my init.el I am able to sync the Emacs LaTeX buffer with Sumatra: (setq TeX-source-correlate-mode t) (setq TeX-source-correlate-method 'synctex) (setq TeX-view-program-list '(("...
antonio's user avatar
  • 10.8k
6 votes
2 answers
2k views

Emacs Auctex custom syntax highlight

I'd like to highlight a new command I created in LaTeX: \newcommand{\conceito}[3]{ \subsection{#1} (Original: \textit{#2} #3). } I use this code in this way: \conceito{Foo}{Bar}{Bla} I followed ...
msampaio's user avatar
  • 3,424
4 votes
1 answer
958 views

emacs AUCTeX macros fontification

I recently started using the excellent package xargs that provides \newcommandx. It shares a syntax similar to the default \newcommand. I would like font-lock to reflect this. I did (custom-set-...
abo-abo's user avatar
  • 20.2k
3 votes
1 answer
906 views

Add a TeX symbol in the Emacs init file

I am trying to add the following code to my .emacs init file: (TeX-add-symbols '("eqref" TeX-arg-ref)) But I cannot get it to work. I get the following error when running emacs t.tex (t.tex is here ...
Håkon Hægland's user avatar
2 votes
1 answer
145 views

If I open doc.foo file, I want emacs to look for and open doc.bar file in the same folder

Specifically this problem arises when working in LaTeX (auctex) for me, but I think it must have a general emacs solution. To every doc.tex file, I have an associated and oft-edited doc.sty file in ...
Awnani Maus's user avatar