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
0
votes
0answers
9 views

TeX-view replaces current buffer

I am encountering an issue since I switched to dev-branch: when I run the TeX-view command with only one active buffer (my .tex file), instead of opening a new side-window and displaying the PDF there,...
0
votes
1answer
50 views

Trying to install auctex via package-install

I am trying to install auctex via M-x package-install RET auctex. Unfortunately after a brief splash of Contacting host: elpa.gnu.org:443, I end up with the message https://elpa.gnu.org/packages/...
0
votes
0answers
13 views

AucTeX'sTeX-next-error not catching any errors in ConTeXt

AucTeX's TeX-next-error doesn't display any of the errors listed in the output buffer, only "No more errors". MWE: \starttext \Hello \stoptext % Local Variables: % ConTeXt-Mark-version: "IV" % End: ...
0
votes
0answers
20 views

running pytontex script in auctex

When using the pythonTeX package I need to compile my latex files in three steps: run latex <mylatexfile> run pytontex <mylatexfile> run again latex <mylatexfile> How to ...
0
votes
0answers
44 views

AUCTeX no longer using pdf-tools after using :bind and :map from use-package to define keybindings for PDFView mode

I'd like to define a Hydra for PDFView mode and bind a key for it in pdf-view-mode-map. However, it seems that if I try to bind any keys for pdf-view-mode-map using :bind and :map of use-package, ...
4
votes
1answer
79 views

AUCTeX command for Make and View

I sometimes use Makefiles with LaTeX documents, and so I'd like to define a command that does something similar to AUCTeX's C-c C-a (TeX-command-run-all) but using make. I tried creating a function ...
5
votes
1answer
297 views

What is “override advice”?

When I execute describe-mode from within a .texi file, I see: Texinfo/P mode defined in `texinfo.el' (`texinfo-mode'): :override advice: ‘TeX-texinfo-mode’ What happens is that AUCTeX takes over the ...
1
vote
0answers
38 views

use-package do not bind in latex-mode-map

this is a part of my init file (use-package tex-site :ensure auctex :mode ("\\.tex\\'" . latex-mode) :bind (:map LaTeX-mode-map ("<f5> <f5>" . TeX-command-save-buffer-and-...
0
votes
0answers
37 views

Why AUCTeX/pdflatex show me help in Japanese?

I had this error message displayed to me by AUCTeX (already corrected using \ddot{\boldsymbol x}) ERROR: Extra }, or forgotten $. --- TeX said --- <recently read> } l.51 \[ \boldsymbol M\ddot\...
3
votes
2answers
59 views

AUCTeX, caching document classes over an Emacs restart

The first time I create a new LaTeX document* in a new instance of Emacs AUCTeX scans my TeXLive installation to find all the available document classes . This scanning, due to the complexity and ...
0
votes
0answers
35 views

Preview LaTeX doesn't work when I delete the _region_.prv folder

Suppose I create a latex document in ~/junk/text.tex with the following conent: \documentclass{article} \begin{document} $x$ \end{document} %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% ...
0
votes
0answers
19 views

How to setup Emacs for live editing of ConTeXt documents?

I haven't found anything on how to set this up, such that latex-preview-pane works as expected, and I also couldn't find how to get the preview-latex working. It's mentioned in online docs but there's ...
6
votes
1answer
112 views

Surprisingly persistent local variable

A local variable keeps coming back, and I know not whence. In a certain buffer, TeX-command-extra-options is "--synctex=1", even after I have removed this from my init.el and restarted Emacs. I tried ...
0
votes
1answer
60 views

Preventing `TeX-command-run-all` from shifting focus

It seems that TeX-command-run-all shifts focus to the pdf window, which is quite annoying. Is there a way to prevent that?
1
vote
0answers
54 views

AUCTeX: 'reftex-cleveref-cref' inserts '\eqref' instead of '\cref' for equations

When I run 'reftex-cleveref-cref', which is supposed to insert a '\cref' command in my LaTeX file, I get the expected behaviour for figures and sections, but not for equations: I get the '\eqref' ...
0
votes
0answers
44 views

AucTeX - Previewing Errors

I'm using Ubuntu 19.04 and Emacs 26.1. Whenever I try to use inline preview (with any region, section, or environment that has inline math), I get the following error: ... TeX Output exited as ...
0
votes
1answer
33 views

AUCTeX: Command 'reftex-cleveref-cref' not recognized before 'reftex-reference' is run

I have a strange behavior in AUCTeX with RefTeX: the command 'reftex-reference' (C-c )) needs to be run before the command 'reftex-cleveref-cref' gets recognized, on a newly-started emacs session. In ...
0
votes
0answers
38 views

Auctex doesn't show the preview pictures, while no error output

When using the preview command in the auctex editor on a latex file, no pictures are actually displayed, and no error output in the log. I checked that there does exists the "_region_.pdf" file, ...
0
votes
0answers
99 views

Auctex preview reportes to run as excepted but shows error preview pictures

The auctex in emacs has worked well before, but recently whenever I run a preview command such as C-c C-p C-b, it shows "Preview-Ghostscript finished at XXX" without any error notice in the log, but ...
3
votes
1answer
56 views

Automatically replace “$” by “\(” in latex-mode

In latex mode, using \( ... \) is preferred over $ ... $, so in my configuration I have the following (sp-local-pair modes "$" nil :actions :rem) (sp-local-pair modes "\\(" "\\)" :trigger "$") This ...
0
votes
0answers
35 views

Why does AucTeX say I need to run LaTeX again, when in fact I don't need to do so?

I've used the solution suggested in this answer to automize the compilation of my LaTeX document using Arara upon entering C-c C-a. The resulting output is perfect, but the following erroneous message ...
2
votes
2answers
38 views

Shortcut to put the selected region in an ordinary LaTeX environment (not with begin-end style) using auctex

In auctex if one has a selected region and then apply the command c-c c-e (LaTeX-environment) then by selecting an environment, the selected region will be folded between that environment. Is there a ...
0
votes
0answers
26 views

How to prevent preview-latex to manipulate and delete the pdf created by latex

Running latex-preview manipulates and then deletes the pdf created by latex. If skim is open as pdf-viewer the pdf gets sliced into the images created by latex-preview. Running latex again doesn't ...
1
vote
2answers
102 views

How to enable company-mode for some buffers only?

I would like company mode to lead automatically for some buffers like AucTex for example but not on other buffers like Org-mode global-company-mode Enables comapny mode everywhere and I only want ...
1
vote
0answers
61 views

Auctex autocomplete and physics.sty

I have autocomplete successfully working in auctex. It also works for included packages, so if I, for example, have \usepackage{url} in my preamble, I will get autocompletion while typing \url. ...
0
votes
0answers
34 views

TeX-evince-sync-view locking up with this file

This file when I compile it with AUCTeX, and then try to view it, using TeX-evince-sync-view, shows that one page has been compiled, but then shows a blank view. After I kill it, TeX-evince-sync-view ...
2
votes
1answer
93 views

AucTeX multiple files parsing not working

I have not been using LaTeX for quite some while, so I might be missing something obvious. I have a multiple file document and want to make AUCTeX aware of the master file. The minimal example looks ...
2
votes
1answer
30 views

Add expressions to LaTeX-electric-left-right-brace

I would want to "electrically" insert | or \right| when typing | or \left| in AucTeX and can't quite figure out how to add characters to AucTex-electric. A list of already defined completions can be ...
2
votes
1answer
105 views

How to customize the sequence of commands executed by the C-c C-a shortcut (`TeX-command-run-all`)?

How do I need to set up Emacs/AucTeX, so that when I type C-c, C-a, the following sequence of commands will be run? (Note: the LaTeX file name is test.tex.) lualatex test makeglossaries test ...
1
vote
0answers
25 views

LaTeX glossary doesn't typeset (AucTeX)

Consider the following LaTeX file (named test.tex) demonstrating the use of the glossaries-extra package. \documentclass{article} \usepackage[automake]{glossaries-extra} \newglossaryentry{potato}{...
1
vote
1answer
48 views

Compile Latex without Saving, and without Query

I know that I can disable the save query that comes after running TeX-run-TeX with LaTeX, TeX or actually probably any other NAME parameter (this is what happens when you invoke TeX-command-master, ...
2
votes
0answers
70 views

How to Add Document Class to AucTeX

I have a .cls LaTex template I would like to use regularly. Where/how should I save it so that AucTeX is aware of it? How does one set up LaTeX templates in Emacs/Spacemacs in general? I find very few ...
2
votes
0answers
144 views

AUCTeX is obsolete on GNU ELPA?

I got this warning when installing AUCTeX from GNU ELPA. The package is installed, but I don't want to use obsolete packages for obvious reasons. I have check the official website of AUCTeX, and it ...
0
votes
1answer
92 views

How do you do a clean install of emacs+auctex?

It was established here there is a problem with my installation of emacs. So I did $ sudo apt-get --purge autoremove emacs and remove all in $ locate emacs | grep conf I reinstalled emacs from ...
0
votes
0answers
57 views

Spacemacs keeps installing and uninstalling auctex-latexmk

Running spacemacs 0.200.13. Everytime I start spacemacs, it either installs auctex-latexmk or deletes it saying that it is an orphan package. Here is some more information: I have latex layer ...
1
vote
1answer
128 views

AUCTeX with Sumatra PDF

I am syncing AUCTeX with Sumatra PDF on MSWindows. I used the instructions in https://www.barik.net/archive/2012/07/18/154432/ (I write here the setqs instead of customization) (setq TeX-source-...
1
vote
0answers
71 views

AucTeX Plain TeX view refresh

I write *TeX in emacs with AucTeX, using pdf-tools as the viewer. When I compile a LaTeX document in AucTeX with C-c C-c the viewer in the other window automatically refreshes, but this does not ...
2
votes
1answer
80 views

How to set backslash character “\” to be a word constituent in LaTeX-mode syntax tables

In LaTeX-mode (AUCTeX) buffers, the backslash "\" is treated as an escape character. I'd like it to be treated as word constituent (syntax class "w") instead, but only in LaTeX-mode buffers. The main ...
1
vote
1answer
32 views

Trying to bind keystrokes to a menu item

I have a menu item added to AucTex's Command Menu, Latexindent. This calls an external process and is added in mu .emacs file by the following: (with-eval-after-load "tex" (add-to-list 'TeX-...
1
vote
1answer
44 views

disable view prompt in AUCtex [closed]

I have been attempting to disable a prompt by auctex when pressing C-c C-c to view the document for close to the entire day. As I am a noob to emacs, I attempted to simply modify the auctex ...
0
votes
0answers
41 views

How do I turn off electric “double-dollar” insert under auctex?

Inserting a $ symbol in a latex document (in AucTex mode) automatically inserts 2 $s in a row (and then hitting "delete" immediately deletes both). I can confirm that the variable TeX-electric-math is ...
1
vote
1answer
86 views

Auto-completion in Auctex automatically introduces dollar signs

My auto-completion all of a sudden changed its behavior, and I have no clue why. When I auto-complete a mathematical expression, like \subseteq, say, it will introduce dollar signs in front and at the ...
1
vote
1answer
77 views

Strange toolbar icon in AUCTeX mode (on Mac)

I notice there is a strange box-shaped icon in the toolbar in the AUCTeX mode (circled in the picture below). It should be a toolbar separator (for example, on Linux): I am using GNU Emacs 26.1 with ...
0
votes
2answers
96 views

How do I set latex face attributes in init.el?

When I try to put (set-face-attribute 'font-latex-italic-face nil :foreground green) (set-face-attribute 'font-latex-math-face nil :foreground orange) (set-face-attribute 'font-latex-script-char-...
3
votes
1answer
38 views

how to find the detail of auctex startup?

when i open a .tex files, i always see Applying style hooks...done Sorting environment...done Removing duplicates...done yes, i use (load "auctex.el" nil t t) (load "preview-latex.el" nil t t) in ...
0
votes
1answer
210 views

Windows: org not exporting pdf

I am trying to get emacs org-mode to export to pdf. To this end I've installed tex-live and added the path to the bin folder to my emacs path. I've added the tex-live folder to my OS $PATH. When I try ...
1
vote
1answer
52 views

Custom call to `makeindex` using Auctex

Following one of the answers from here for managing two distinct indexes, I need to call makeindex -t mydoc.plg -o mydoc.pnd mydoc.pdx makeindex -t mydoc.slg -o mydoc.snd mydoc.sdx when I want to ...
1
vote
1answer
238 views

AUCTeX not loading its TeX-latex-mode

I have emacs 25.2.2 and installed through M-x list-packages AUCTeX 12.1.1. Opening any LaTeX file gives the native latex mode, so it seems through C-h m: LaTeX/P mode defined in ‘tex-mode.el’: :...
2
votes
0answers
34 views

Redfining autoloaded function

I discovered that auctex's texmathp-match-switch does not check whether or not dollar signs are commented out or not, therefore i get wrong results when i all M-x `texmathp' in very specific contexts. ...
0
votes
0answers
21 views

Finding a fold face

Enter TeX-mode (AUCTeX), type \emph{test} and then C-c C-o C-b. This will 'fold' the macro and show only test in a 'fontified' manner. For me this means blue, italic, and bold. But I am unable ...