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
0
votes
3 answers

How can I tell if AUCTeX is available?

I have a package which has various features that depend on AUCTeX. As it stands, it requires hand-configuration: (defvar AucTeX-used nil) (if AucTeX-used (progn (require 'tex-site) (require 'latex)) (require 'latex-mode) (setq…
Simon Wright
  • 25,108
  • 2
  • 35
  • 62
0
votes
0 answers

Showing AUCTeX command result buffer alongside current one in Emacs

I'm trying to get TeXcount to work inside Emacs with AUCTeX. According to the TeXCount website, it should be possible to use the following to run texcount on the current buffer: (require 'tex) (add-to-list 'TeX-command-list (list "TeXcount"…
heuristicus
  • 1,130
  • 12
  • 31
0
votes
1 answer

AUCTeX: insert reference / citation without macro

Is there a way to add a reference / citation format which inserts the reference / citation label directly into the buffer without enclosing it into a macro? To be clear: When I hit C-c ) AUCTeX prompts for a reference format, when I hit return it'll…
elemakil
  • 3,681
  • 28
  • 53
0
votes
1 answer

How to remove the directory .t2d on C-c C-c Clean / M-x TeX-clean?

I use the following code in .emacs to clean the working directory from unwanted files. (eval-after-load 'latex '(progn (setq LaTeX-clean-intermediate-suffixes (delete "\\.synctex\\.gz" LaTeX-clean-intermediate-suffixes)) (setq…
Marius Hofert
  • 6,546
  • 10
  • 48
  • 102
0
votes
0 answers

How can I use only PDF files in View of AUCTeX

I use Emacs on Mac, and I use AUCTeX to edit TeX files. I use auto-complete-auctex, too. If I use C-c C-v just after opening a TeX file, a PDF file opens.However, if I use C-c C-v after compiling, a DVI file opens. I want to use only PDF files to…
nohm
  • 101
  • 1
0
votes
3 answers

Set latex mode to default in .emacs when AUCTeX is installed

We have a server which has AUCTeX installed for writing latex in emacs. Currently it is set as the major mode. Is it possible to change the latex mode to the default one in .emacs so that users who don't want to use AUCTeX can use the default…
jyotesh
  • 330
  • 5
  • 17
0
votes
1 answer

bounds-of-thing-at-point and AUCTeX font locking

I use LaTeX with Emacs and want to be able to pass words of what I write to a shell command. (As example I use xargs echo.) For this purpose I defined an interactive elisp function: (defun echo () (interactive) (let ((bnds …
newtothis
  • 15
  • 2
0
votes
1 answer

loading auctex in xemacs

I'm having problem with auctex in xemacs (I think). I get this error when I run load *.tex file in xemacs: (1) (custom/warning) custom: widget custom-variable, option LaTeX-section-hook has no associated group Here's the part of my init.el that's…
user2926204
  • 111
  • 8
0
votes
1 answer

How do I font lock dollar signs (math mode delimiters) in AUCTeX buffer only outside comments?

I wrote the following code to highlight dollar signs in AUCTeX buffers in different colors, but then I found that it's even highlighting dollar signs in comments, which was unintended, but I am starting to like it. But now just for curiosity, I…
Jisang Yoo
  • 3,670
  • 20
  • 31
0
votes
1 answer

Regexp in Emacs progn

I have the following Emacs macro, which evaluates the AucTex command TeX-insert-macro on selected text: (eval-after-load "latex" '(progn (define-key LaTeX-mode-map (kbd "C-c (") (lambda () (interactive) (TeX-insert-macro…
Geremia
  • 4,745
  • 37
  • 43
0
votes
3 answers

How to define hide mode for tex \begin & \end in emacs auctex mode?

I recently write a lot of tables in my tex documents. I would like to hide the table block when I am editing otherwise it will be messy. here is the documents: \documentclass{article} \begin{document} \begin{table}[htbp] \centering …
Coeus Wang
  • 245
  • 2
  • 9
0
votes
0 answers

Escaping characters for text mode in AUCTeX

I have a problem with my text editor Aquamacs Emacs (GNU Emacs 23.4.1) when use it with \Sexpr to print inline the output from R functions. The problem results when the R command includes special characters such as $ and %. Even though Tex parses…
CptNemo
  • 6,455
  • 16
  • 58
  • 107
0
votes
2 answers

Change the format of a word in Emacs-AUCTeX without actually selecting it

One nice feature of modern word processors is that one can change the format (say, from roman to italic) of a word without actually selecting it; one just needs to place the text cursor within the word and tell the word processor (via a keyboard…
NVaughan
  • 1,595
  • 2
  • 9
  • 23
0
votes
1 answer

AUCTeX: Get list of files for current document

I'm working on some function which should help the user when working with (la)tex documents. In order to provide some additional information to the user I need to get a list of all (la)tex files that belong to the document (read: compiled document)…
elemakil
  • 3,681
  • 28
  • 53
0
votes
1 answer

AUCTeX: Delete all fonts

This feels very much like a problem that should have already been discussed somewhere, and I am probably only too stupid to find it :( I have defined myself a function \jf{} and want to delete all of it in the whole buffer at once. For example: bla…
panuffel
  • 624
  • 1
  • 8
  • 15
1 2 3
11
12