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
1
vote
1answer
28 views

make AucTeX structure aware?

TeXStudio seems to be aware of the interdependencies of files and internal structure (e.g., blocks for beamer posters shown in example below). For instance, the left column panel in TeXStudio shows ...
0
votes
0answers
61 views

Text and backround colour with auctex has the same colour, how to change

In LaTeX mode with Auctex, I have a problem with \textbf and that is that the text inside the {} has the same colour as the background of the textbf field, as illustrated here: This is only a problem ...
1
vote
0answers
35 views

Automatic preview generation with AUCTeX

Right now, when using AUCTeX's preview feature, I have to manually refresh the previews after I change existing sources or write new text. I have to run preview-document every time, which is both ...
2
votes
1answer
44 views

AUCTeX fontification for any command: overkill?

Reading the AUCTeX manual I see that it is possible to add expressions to those one wants to highlight in a .tex file. There are also many specific suggestions around for how to add specific commands ...
0
votes
0answers
34 views

Semantic linefeeds (one sentence per line) in Emacs

I'm trying to get Emacs to insert a line break at the end of each sentence as I type. (Why? Makes for easier version control of tex files.) Looking around I found a few places with some suggestions ...
0
votes
0answers
27 views

Is it possible to use AUCTeX preview-latex in emacs terminal?

I was wondering if it is possible to have latex preview working in emacs terminal. This is somehow related to this question. But 3 years have passed and I'm wondering if anything has changed? For ...
0
votes
0answers
34 views

Flyspell Not Working in AucTeX

A while back flyspell stopped working for me in AucTeX. I've been cleaning out my init.el file to see if I could fix the problem. I can still do M-x flyspell-mode when in a .tex file. But, I still ...
0
votes
0answers
31 views

Automatic detection of master files not working in AUCTeX

I have the following two questions: 1) Is it still recommended these days to use the guess-TeX-master snippet from AUCTeX wiki? 2) If yes, could someone provide some hints on why it doesn't work in ...
1
vote
1answer
48 views

What is causing this AUCTeX preview fatal error, or how can I find that out?

This is a minimal test file: \documentclass{article} \begin{document} \[1+1=2\] \end{document} The content of texput.log is the following: This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live ...
0
votes
0answers
22 views

Change color of preview expressions in Auctex

In the customize group "Preview Appearance", I click on "Preview Face" and set "Foreground" to "red". To the right, I see the word "sample" displayed in red. Then I select "Save for Future Sessions." ...
3
votes
1answer
54 views

Change AUCTeX behavior inside an environment

I am using the LaTeX markdown package to insert quick notes in my document. I would like Emacs to switch to markdown mode inside the markdown environment so it for example won't automatically re-...
0
votes
1answer
84 views

Why does emacs not apply some config settings when editing tex files?

I'm facing a rather peculiar situation where my emacs settings seem to be lost every time that I open a .tex file. That's doesn't happen when I'm editing .el or .py files. Heres some examples with ...
1
vote
0answers
25 views

What is the meaning of the entry `(“%T” file t t nil t)` defined in the AucTeX variable `TeX-expand-list-builtin`

AucTeX uses the two variables TeX-expand-list and TeX-expand-list-builtin when processing (La)TeX buffers. According to the documentation of the variable TeX-expand-list ... Each entry is a ...
0
votes
0answers
48 views

How can I get Tex-latex-mode style inline math fontification in Org mode?

I enjoy the inline math fontification that the AucTeX TeX-latex-mode provides – both the theme-responsive coloring and visual indication for sub- and super-scripted math. I have worked in plain ...
0
votes
1answer
99 views

Cannot generate previews with latex-preview

I am trying to use preview-latex but, when I generate previews, these are not loaded in Emacs gtk buffer, even though previews are correctly produced in the .pdf output file. The error produced is ...
0
votes
1answer
120 views

company-mode doesn't work on latex environment

I've installed the company package in order to get an auto-completion functionality. It works well in my ESS environment, but no in latex. In fact, no completions are showed in latex buffers when I ...
1
vote
1answer
63 views

How to perform query-replace inside mathematical expressions in latex

Inspired by this answer, I have written the following function to perform a query-replace inside a math environment, but it does not work. Edit. If you execute the function, the query-search tries to ...
0
votes
0answers
59 views

Proper way to use use-package and hooks on Auctex package

I'm learning how to use use-package, and I've some troubles to make it work with the Auctex packages (all the other packages are fine). I made my own function configure-viewer that basically adds a ...
1
vote
1answer
61 views

AucTeX not loading beamer class

When trying to use the LaTeX document class beamer with AucTeX it does not load the template. Emacs reports Symbol’s value as variable is void: LaTeX-hyperref-package-options-list after loading ...
0
votes
0answers
19 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,...
4
votes
1answer
154 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
15 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
22 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
61 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
100 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
314 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
49 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
44 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
60 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
46 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
22 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
123 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
69 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
83 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
60 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
40 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
56 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
184 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
63 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
37 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
27 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
224 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
54 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
108 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
37 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
123 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
27 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
54 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, ...