Questions tagged [auctex]

is for AUCTeX package that extends basic `tex-mode` Emacs provides for editing TeX files. AUCTeX integrates many built-in and external macro packages for creating, editing, printing, publishing, and managing multilingual TeX documents. AUCTeX works with several TeX compilers, extensions, and dialects of TeX and LaTeX. AUCTeX supports customizable bibliographies, indexes, and tables of content.

Filter by
Sorted by
Tagged with
2
votes
2answers
1k views

How to create a new TeX document with a `TeX-master` file-variable set to `t`?

When creating a new TeX document, AUCTeX asks what the master file should be, for instance: The value specified is written into the file as an Emacs file variable (see here). For example, choosing ...
1
vote
1answer
122 views

Stop AUCTeX asking how much space I want to insert between rows in tables

I'd like to avoid being asked how much vertical space I want to insert at the end of a row in tables and have C-c C-j behave like C-u C-c C-j.
3
votes
1answer
934 views

preview-latex with LuaLaTeX

I'm trying to configure AUCTeX for LuaLaTeX, and compiling works fine with this additions in my .emacs: (defun my-latex () "Latex mode customizations" (auto-fill-mode t) (reftex-mode t) (TeX-...
3
votes
1answer
238 views

Make glossary with `C-c C-c`

I have many documents with glossaries which I used to build using this script: pdflatex "$documentname.tex" makeglossaries "$documentname" pdflatex "$documentname.tex" pdflatex "$documentname.tex" ...
3
votes
1answer
825 views

How to get rid of the auto folder with .el files?

I'm using Emacs 25.1, and I use it primarily for LaTeX with AucTeX. Some time ago in the directories of my .tex files, there started to appear a folder named "auto" with .el files in it. The .el files ...
2
votes
1answer
784 views

AUCTeX doesn't run bibtex even though .emacs file is set up appropriately

I created a simple BibTeX file as well as a simple LaTeX file that references said BibTeX file. However, when I printed out the LaTex file in pdf format by running C-c C-a (which, according to the ...
0
votes
1answer
590 views

How to activate AUCTeX support for beamer without preamble?

Usually, AUCTeX activates beamer-specific settings (e.g. syntax highlighting) depending on \documentclass. In my LaTeX templates, however, I have separated the preamble from the rest of the document ...
1
vote
0answers
157 views

How to highlight in the mode-line that a compilation process is running in AUCTeX?

As compiling LaTeX documents can take a while, I would like to be able to quickly and effortlessly check whether the compilation process is still runing. How can I achieve this with AUCTeX? I know I ...
0
votes
1answer
1k views

AUCTeX cannot find a working TeX distribution

I tried to compile, this error message appears. ERROR: AUCTeX cannot find a working TeX distribution. Make sure you have one and that TeX binaries are in PATH environment variable I have installed ...
1
vote
0answers
52 views

What is the cause of this inconsistent behaviour of TeX-command-buffer when narrowing?

When editing medium sized .tex files, I often find it convenient to make use of the narrow command C-x n n (narrow-to-region), usually in combination with the mark section command C-c * (LaTeX-mark-...
2
votes
0answers
50 views

Make helm-find-files work with `\input{file}` in latex files

If the cursor is on file of a line \input{file} in a latex file, helm-find-files doesn't recognize that I want to open file.tex, however calling ffap does. If I write \input{file.tex} it also works ...
2
votes
1answer
84 views

DocStrip support in AUCTeX

Right now, I am documenting a larger LaTeX package project by converting the files into DocStrip files. Therefore I am currently creating a lot of .ins and .dtx-files in Emacs. Actually I am using ...
0
votes
4answers
2k views

error message when previewing latex snippet in .org file

I am a brand new emacs user and I want to be able to view snippets of LaTeX in my .org file. My OS is Ubuntu 16.04, I have installed texlive-full, and I have installed AucTex and org using the Emacs ...
2
votes
1answer
88 views

How to insert a docstrip tag environment in AUCTeX

I am working on literate programming in LaTeX. Actually, I am coding a lot of dtx files, which contain both the code and its documentation. When working in Emacs, it uses AUCTeX and switches into ...
2
votes
1answer
889 views

AucTeX doesn't seem to be aware of my TeX-view-program-list

I wanted to set up auctex to use mupdf as the pdf viewer it ran when I do C-c C-v. So I customize-variable on TeX-view-program-list to include a line for MuPDF and customize-variable on TeX-view-...
2
votes
1answer
144 views

Don't fill minted environments in AUCTex

When running M-x LaTeX-fill-environment I don't want code in a minted environments to be formatted. I tried adding minted to LaTeX-fill-excluded-macros but that didn't have any effect on the filling. ...
0
votes
0answers
107 views

Cannot install auto-complete-auctex

I just installed auto-complete-auctex from melpa repository. At package documentation says to enable by putting in my .init file the following command (require 'auto-complete-auctex) However, when ...
3
votes
1answer
339 views

AUCTeX: how to compile a file, which does end in '.ins'

I am playing around with some LaTeX's DocStrip package. (For those interested: it is a LaTeX package, to create documented code, in order to write e.g. a style file and incorporate the ...
2
votes
0answers
91 views

auctex failing to render formula previews

I am trying to get auctex on emacs to preview formulas but it doesnt seem to work and when I click preview, it produces the following error: PDF2DSC sentinel: Wrong type argument: arrayp, nil I have ...
5
votes
2answers
347 views

Don't switch to math-mode when entering `$` in a `minted` environment

I am using AUCTeX to edit Latex files and use the minted package to highlight source-code within documents. Unfortunately the character $ is still recognized as a delimiter for a math-mode even though ...
1
vote
0answers
342 views

AUCTeX/LaTeX - ERROR: Undefined control sequence. documentclass

I am using AUCTeX with the following configuration. (require 'tex) (setq TeX-auto-save t) (setq TeX-parse-self t) (setq-default TeX-master "main") (setq latex-run-command "pdflatex") Trying to build ...
4
votes
1answer
292 views

How can I type simple underline “_” in Auctex

I am using Auctex in Aquamacs. Everytime I type underline "_", it will show as $_{}$ automatically which is very annoying. I am wondering how could I turn off this function. Thanks.
0
votes
2answers
840 views

AUCTeX and package minted

On TeX.SE arouse some questions, on how to add the -excape-shell option to the actual TeX processor (LaTeX, luaLaTeX, ...). One offered solution would be, to use a %%% Local Variables section at the ...
5
votes
1answer
129 views

Define a new key binding for font (Auctex)

I want to create a key binding like C-c C-f C-c to get \mathscr{} inside math environment. This is because there is no default key binding for getting \mathscr. How to do this? Remember that C-c C-f C-...
9
votes
2answers
232 views

Call emacsclient from a program called by Emacs

I've run into a problem viewing pdf documentation files with AucTex. I use pdf-tools to view PDF files from within Emacs, and I've set emacsclient -n as my default pdf-viewer (via xdg-mime on Debian ...
0
votes
2answers
181 views

Org-mode radio table orgtbl-to-latex :fmt wont accept float

I'd like to embed org-mode tables in my latex files and have org mode take care of formatting floating point numbers. Based on A.6.2 of the org-mode manual (http://orgmode.org/org.pdf) I expected this ...
1
vote
1answer
139 views

How to add Beamer `\frametitle` to `imenu`?

I know that there is RefTeX with its TOC, and I know how to include \frametitle there (see here). Nevertheless, I would like to see \frametitle also appear in imenu. What would be the minimal way to ...
6
votes
1answer
1k views

Setting MUpdf as default viewer in AUCTeX

How can I set MUPDF as the default viewer in AUCTeX (I mean setting it in the variable Tex-view-program-selection)? Many thanks
0
votes
0answers
186 views

Emacs takes a very long time to open a TeX file

After a fresh install of Emacs (GNU Emacs 25.1.1 (i686-w64-mingw32) of 2016-09-18) and AUCTeX (last version from ELPA) on Windows Vista, when I open a TeX file, Emacs takes an extremely long time to ...
2
votes
1answer
174 views

Fix indentation of LaTeX code without wrapping lines

If I select everything in LaTeX-mode (AUCTeX) and auto-fill the region, the indentation of all lines is corrected. This is the part I like. However, it also breaks all long lines (which I think is ...
7
votes
1answer
271 views

Formatting of usepackage commands in LaTeX document

I'm trying to use AUCTeX edit LaTeX files. The beginning of the document I just wanted to edit looks like this: It's not neatly organized, inconsistent in many ways, and I should probably change it ...
3
votes
1answer
194 views

AUCTeX: Turn on syntax highlighting for natbib commmands under BibLaTeX

I'm using natbib commands like \citep and \citealt under BibLaTeX thanks to the option natbib=true. Yet AUCTeX won't highlight them the way it highlights, for example, \cite (or \parencite, which is ...
1
vote
0answers
66 views

Auctex silent compilation

When I compile a file with pdflatex from Auctex one of the buffers that I have opened shows the output of this operation. How to stop this behavior and keep the previously opened buffers?
3
votes
1answer
346 views

Prompt for inserting label when using theorem style environments in latex

When inserting the environment equation (by C-c C-e equation) in latex-mode, emacs shows a prompt to insert a label. It is desirable to have the same prompt for a theorem-style environment like lem ...
0
votes
1answer
312 views

configuring and using ispell [duplicate]

I have been able to install Emacs 25.1 and AUCTeX 11.89.6 (this is the number that I have after installing it with MELPA directly from Emacs) that I am using on a Windows 7 machine. I am trying to ...
6
votes
1answer
322 views

Use AucTeX with “latexmk -pvc”: jump to errors

Currently, I edit LaTeX files by running latexmk -pvc in the background to generate PDF automatically upon change to be previewed in Evince. However, when there is a syntax error, AucTeX is not able ...
2
votes
1answer
109 views

Narrow and move between latex environments

When writing LaTeX presentations with the beamer class in emacs+auctex I would like to have a function (and keybinding) that does the following three things: narrow to the next frame environment if ...
1
vote
1answer
217 views

Close error list automatically after latex compiled successfully

If I compile my latex document in auctex, an overview window of the errors pops up where I can select specific errors and jump to that source code position. However after fixing the errors and ...
2
votes
1answer
302 views

How do I configure my own shortcuts in Auctex (Emacs)?

I have a problem that I could not solve with the help of google. a) How do I have to adjust the .emacs file in order to use the Windows-Key (Super-Key) for shortcuts. I am working on a Linux system ...
3
votes
1answer
137 views

How to debug seemingly random crashes of AucTeX?

My Emacs crashes seemingly randomly. Is there a way to view the Messages buffer after it crashed? Or is there another standard way of approaching this problem? I'd like to see an error message so that ...
2
votes
0answers
1k views

preview math formula in org-mode

I would to include and preview some math formula inside an org-mode buffer, but can't find any way. I've read about auctex but how can I enable it in a non tex-mode ? Don't know really from where to ...
2
votes
1answer
81 views

Ways to automatically insert a space after a LaTeX command (inserted by an AucTeX shortcut, e.g. `g) if the next keystroke is a letter

With AucTeX, one can insert many LaTeX commands using shortcuts. For example in a math environment (e.g., between $ $), the shortcut `g insert \gamma. Normally right after \gamma if I would like to ...
0
votes
1answer
137 views

Restrict available command options in AuCTeX

I'm using AuCTeX (v.11.89.6 with Emacs 25.1). I have no problems with it, just a small nuisance. Whenever I use TeX-insert-macro (C-c C-m) I get many options I never use. For instance, when I wish to ...
1
vote
1answer
117 views

auctex beamer, set all characters to a fixed size

I am starting to use emacs guy (precisely this https://emacsformacosx.com) and I am not always getting monospaced charters as I get in emacs when using terminal. I have tried putting this in my .emacs ...
2
votes
1answer
86 views

Taking action depending on the presence of particular message in the echo area

I have my proper function to run latex, say my-tex. Sometimes one should run latex two times to get references right. A message like below in the echo area appears to tell this. How to identify ...
2
votes
1answer
882 views

Spacemacs Latex: how to make view command tile vertically with emacs window?

I'm using Spacemacs Latex layer, which uses Auctex. If press space m v for the first time, the document viewer opens up in full screen over my emacs window. After, it only updates the window and keeps ...
0
votes
1answer
158 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 ...
1
vote
1answer
1k views

How to set PATH variable to latex, so that I can use latex layer? [closed]

I installed the latest version of MacTex, and I am sure the latex is in the Libray/TeX/texbin/, I just don't know how to set the PATH variable, also I cannot install the AUCtex, I assume these two are ...
1
vote
1answer
129 views

Debugging erratic error

The following error appears every other time that a .tex file is opened: Wrong number of arguments, setq, 3 Enabling toggle-debug-on-error gives this backtrace. How to go about debugging this? I've ...
2
votes
0answers
54 views

Can I reuse Org's syntax highlighting in LaTeX mode?

Org-mode has a magical org-src-fontify-natively setting. With this on, org highlights each code snippet using the corresponding mode's font-locking support. Can I use this in LaTeX-mode? It would ...

1
3 4
5
6 7
9