Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [auctex]

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

7
votes
3answers
734 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 ...
35
votes
4answers
10k views

RefTeX won't find my .bib file in local library tree

RefTeX gives out the following error when trying to insert a citation: No valid bibliography in this document, and no default available I keep a master .bib file in ~/Library/texmf/bibtex/bib/...
1
vote
1answer
57 views

AUCTeX/RefTeX with import package in emacs, known problem from 2013 but is there a fix now?

I realized this issue with import in AUCTeX/RefTeX mode today which was also mentioned in the below thread from some years ago: AUCTeX/RefTeX, the `import` package and cross reference RefTeX ...
0
votes
0answers
51 views

TeX instead of Preview, LaTeX and Command menus after upgrade of AucTeX

I upgraded AucTeX to 12.1.2, hoping that it would fix a problem with the displaying of verbatim environments. This caused a range of problems which I am trying to track down step by step. One is ...
10
votes
2answers
3k views

get emacs to automatically use biber instead of bibtex

I was reading the question titled Customizing emacs to use biblatex-biber instead of bibtex. In that question, user @PLK mentions that as of auctex 11.87, auctex should automatically check if you are ...
2
votes
1answer
169 views

TeX-complete-symbol doesn't work in math mode

I can't get AUCTeX to complete user-defined commands in math mode. As an example, TeX-complete-symbol works outside of math mode in the document below, but it stops working if I prepend a dollar sign ...
2
votes
1answer
96 views

Configuring Emacs/AucTeX in Windows 10 to use Sumatra PDF?

This is surely easy-ish to do, but all the advice I can find is either several years old (2012), or not helpful - the Emacs Wiki claims that "Unfortunately, configuration can be tricky to get right, ...
0
votes
0answers
38 views

How do I remote compile a Latex file using a local Emacs with an Auctex module installed and Latex compiler on a different machine?

How do I remote compile a Latex file using a local Emacs with an Auctex module installed and Latex compiler on a different machine? My latex is too big for my workstation so I need to move the Latex ...
2
votes
2answers
1k views

AUCTeX preview-latex previews are ugly (too narrow)

Is there a way to fix Emacs AUCTeX's preview-latex to make the previews look less ugly? Specifically, they are squashed vertically to a height of exactly one line of text. I have screenshots to show ...
3
votes
1answer
82 views

Emacs+AUCTeX: improve emacs support on cls and sty file

Considering the well-polished work on the support of tex file in Emacs by AUCTeX, it is quite confusing the support on .cls and .sty files is rather weak. For example, the \if statement is never ...
1
vote
1answer
30 views

AUCTeX fails to put auxilary files in a certain directory

I'm using Emacs + Auctex to edit and compile file .tex with xelatex at present. I want put those auxiliary files(created during compile) in another directory, e.g. /tmp. So I have the following code ...
2
votes
0answers
77 views

Highlighting forward search in Okular

I have a functional setup that does bidirectional search between emacs (auctex) and okular but lacks the highlighting of the position in pdf. In "conventional" editors, e.g. texstudio, when doing ...
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.
1
vote
1answer
63 views

Problems with referencing in Emacs/RefTeX

I have problems referencing a table (see Example below) using GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) on Windows Pro X64 and AUCTeX with RefTeX. If I set a label, and reference it, the reference ...
1
vote
1answer
104 views

How to make AuCTeX aware of the class in the master file?

When I divide a document between a master file and other buffers, I don't get hints from AucTeX to complete environments and macros. I set the master file with: %%% TeX-master: "mymasterfile" ...
3
votes
1answer
164 views

AUCTeX: turn off autoindent

This isn't TeX, per se, but it is about writing TeX, so perhaps it is appropriate. I find that AUCTeX's autoindent works in a way that runs counter to how I work. In case I am not clear, for ...
5
votes
1answer
196 views

AucTeX mistakes Tikz warning as error

AucTeX 11.90 (Emacs 25.2) gives the following error instead of a warning when using Tikz Externalize: ! Package tikz Warning: The key 'up to date check=md5' is impossible, there is no macro to ...
2
votes
1answer
179 views

AUCTeX/RefTeX: How do I handle labels that use `label={name}` syntax instead of `\label{name}`?

The tcolorbox package uses a different label syntax from the usual \label{name} one: it uses label={name}. Can I tell AUCTeX/RefTeX to enter labels for the tcolorbox environments with this new ...
1
vote
1answer
99 views

Default Color for User Defined Macros in Emacs

When writing tex documents, I often create and include a file that contains a number of user defined macros, e.g., \newcommand{\pstar}{\ensuremath{\mathcal{P}^\star}}. I'd like to set up emacs syntax ...
1
vote
0answers
75 views

C-c C-c does not start a viewer

I'm on a recent install of Ubuntu 18.04, with emacs 25.2.2, and auctex installed via the package manager. When I type C-c C-c to view a recently latex'ed document, Emacs launches the command TeX-...
1
vote
2answers
131 views

AucTeX issue with BVerbatim in newenvironment

I have the following newenvironment command: \newenvironment{code} { \VerbatimEnvironment \begin{mdframed}[ backgroundcolor=black!70, leftmargin=1, rightmargin=1, innerleftmargin=4, ...
3
votes
1answer
139 views

Get Emacs' electric quote mode to work with AUCTeX and BibTeX mode

I've grown fond of electric-quote-mode in Emacs as a convenient way to get curved quotes in my documents. However, I can't seem to get it to work with either AUCTeX or BibTeX mode. I'm aware AUCTeX ...
1
vote
0answers
86 views

Auctex previews with dark theme [duplicate]

I am using auctex (last version from repositories) with emacs in a ubuntu 18.04 machine. I would like to customize emacs with a dark theme to reduce eye strain. When I do that, latex previews are ...
0
votes
1answer
124 views

How to use outline-minor-mode to hide some exam class exercises in AUCTeX

I use the exam document class in AUCTeX to write exams for my students. I want to use the features provided by the outline-minor-mode to hide all the exercises I have finished and only show the one I ...
0
votes
1answer
171 views

RefTeX: How to modify the “select a reference format” menu?

I use Emacs + RefTeX + AUCTeX to write .tex files. I use the handy keyboard macro C-c ) for cross-references. This shows a menu named SELECT A REFERENCE FORMAT and I can choose between a number of ...
2
votes
1answer
257 views

AUCTeX failing to compile LaTeX source file to PDF

I am trying to compile a LaTeX source file within Emacs (26.1) using AUCTeX and view the resulting PDF output within an Emacs buffer. I'm using the Windows 10 OS and have downloaded the latest ...
1
vote
2answers
137 views

AUCTeX - Compile a document multiple times

I am working on a document that requires multiple compilations as it has a TOC, page numbers and fancy headers with section titles in header. How do I do this using AUCTeX? I am running spacemacs. ...
5
votes
1answer
853 views

Auctex support for building using makefile in subdirectory?

I am editing my PhD thesis using Emacs & Auctex, but my elisp is quite weak. Additionally, I build my thesis in a subdirectory, using makefiles generated by CMake and the UseLATEX CMake package, ...
3
votes
1answer
157 views

Auctex: Prompt for required arguments when Auctex inserts a theorem environment?

So I have defined a theorem environment/style in a separate structure.tex file, and I want to add this theorem environment to the set of Auctex environments when using C-c C-e. However, I also want ...
0
votes
2answers
156 views

AUCTeX prompting for optional arguments

My general question: is there a way to get AUCTeX to prompt me automatically for an optional argument of a command when I invoke it with TeX-insert-macro (i.e. C-cRET)? (like it does when you invoke, ...
10
votes
3answers
12k views

Emacs AUCTeX View command

I need help using the View command in AUCTeX running in Emacs. This is essential for viewing PDFs and without it I can not make TeX documents. In my .emacs file I have the following (which was created ...
5
votes
1answer
2k views

Preview TikZ figure in AUCTeX?

I am using AUCTeX on Emacs. When invoking preview.el with e.g. C-c C-p C-p I obtain previews of external figures (figure environment with .ps files), but not of TikZ pictures. Is it possible to ...
0
votes
1answer
206 views

How to have AucTeX auto-complete `\left[ \right]`, `\left( \right)` in custom math environment?

Note: This is probably a duplicate, but I can't figure out the right search terms. If you can post the link to the original question and close this one, it would be greatly appreciated. I followed ...
0
votes
1answer
216 views

Cannot load preview-latex despite AUCTEX already installed

I have installed AUCTEX from inside emacs (i.e. M-x list-packages) and according to preview-latex manual, the installation of it is already included when installing AUCTEX. But when I tried to load ...
14
votes
2answers
6k views

Adding an option to the PDFLaTeX call from AUCTeX

In my .emacs I have '(TeX-PDF-mode t) set. So I'm using PDFLaTeX. I'm not sure why this is not the default these days. I had also set '(LaTeX-command "latex -shell-escape") In hindsight this was ...
0
votes
0answers
109 views

ConTeXt fontifying in emacs auctex

I use emacs + auctex to typeset ConTeXt documents. There are some features in the LaTeX mode that do not transpose into ConTeXt mode, and I would like to make some minor changes. Problem is, I am not ...
1
vote
1answer
571 views

Installing AUCTeX on Windows 10

I am following the detailed instructions on how to install AUCTeX on Windows found here After all prerequisites are installed the instructions state to "start some shell (typically Bash) capable of ...
0
votes
1answer
58 views

Recovering tex file using tex~ file

I use Emacs AUCTEX to handle tex files. I accidentally overwrote the content of a tex file and the old content is gone. Let's say the file is file.tex. I do have the file.tex~ which was modified ...
0
votes
1answer
329 views

Using AUCTEX inside orgmode

Is it possible to use AUCTEX inside orgmode? Orgmode is fantastic but writing LaTeX code is not so easy. Is it possible to combine these two worlds?
3
votes
1answer
571 views

auctex does not parse own sty file

a own sty file is not parsed to find commands, it means they can not use with C-c C-m I use the following .emacs (load "auctex.el" nil t t) (load "preview-latex.el" nil t t) (require 'tex-site) (...
0
votes
0answers
59 views

AUCTeX fold mode: How to fold all environments

In AUCTeX fold mode, C-c C-o C-e folds the environment where the cursor is. How can I fold all environments (not macros) in a buffer?
0
votes
0answers
80 views

Soft filling (wrap) in Auctex

Auctex has a nice feature that fills the paragraph (LaTeX-fill-paragraph) based on emacs' fill-column. This as you know extends to environments as well (C-c C-q C-e). This works fine for me when I ...
1
vote
3answers
157 views

Auctex: replacing quotation marks with proper TeX ones

I'm LaTeX-ifiying a document produced by exporting an MS Word document into plain text. I'm wondering if there's some automatic method for replacing all the double quotes, so that "quoted text" is ...
0
votes
0answers
77 views

SyncTeX stops working in a large document

I'm currently writing on a large document, using AucTeX, and pdf-tools as my pdf viewer. Today, SyncTeX stopped working correctly. Forward search is fine, but backward search doesn't work. Whenever I ...
3
votes
1answer
159 views

use beamer auctex'hooks with class file derived from beamer

I have written my own beamer-derived .cls file to avoid copying and pasting my usual preamble. A MWE would be \NeedsTeXFormat{LaTeX2e}[1995/12/01]% \ProvidesClass{own_beamer}[2018/06/19 my own slides ...
0
votes
1answer
74 views

Can compile with luatex in the command line but not in AUCTEX in emacs

As stated in the title, my document compiles successfully with lualatex file.tex in the command line but not when in emacs using AUCTEX, executing C-c C-c. I'm using a Mac; Tex Live; and auctex v12.1....
113
votes
7answers
45k views

Useful shortcuts or key bindings or predefined commands for emacs+AUCTeX

One of the problems I've encountered with emacs in general, and with the defaults key bindings in particular, is the diversity. There are simply so many of them that sometimes, at the end of the day, ...
3
votes
1answer
449 views

Automatically replace input with accents by their safe code for accents

I was checking this: Automatically replace open quote with accent, and it is actually similar to what I want. Since I'm starting with Emacs, and everything seems admissible to be automatized. Because ...
2
votes
1answer
58 views

I have right letters in PDF but when i trying to parse it into text i have wrong encoded text

This picture explain actually the whole problem. I compile pdf file in AUCTeX with UTF-8-dos. And this creates another problem when I'm trying to convert this PDF into DOCX i get exactly this wrong ...
1
vote
1answer
234 views

AUCTeX Custom Command broken in new version?

I like to have the auxiliary files in a separate directory, using the following customisation for emacs/AUCTeX: \documentclass{article} \begin{document} Hello world! \end{document} %%% Local ...