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
11 views

AucTex and PDF Tools Not Working

For the past few days I have been trying to get Emacs to update and display my PDF when I press C-c C-a, once saved. I save with C-x C-s. But everything I have tried fails, including every other ...
1
vote
1answer
28 views

How to perform incremental search inside math environments in tex/latex documents

Is there a way to perform incremental search that filters out all non-math environments (i.e., only searches within $...$, $$...$$, and if possible other relevant \begin{..}..\end{..} environments)? ...
1
vote
0answers
26 views

Overleaf like compilation check in emacs

When I am writing in latex in emacs I have to press C-c C-l to see the compilation log or use M-x TeX-error-overview to see the errors. Overleaf does have a handy feature, which lets the symbol turn ...
3
votes
2answers
91 views

How to prevent LaTeX verbatim environments to be subject to LaTeX-fill-region

With LaTeX-verbatim-environments-local, it is possible to declare environments that AUCTeX should consider as verbatim ones. \documentclass{article} \begin{document} \begin{myverbatimenv} First ...
4
votes
1answer
36 views

Weird behavior of LaTeX-section-label for chapter

The default value of LaTeX-section-label is: (("part" . "part:") ("chapter" . "chap:") ("section" . "sec:") ("subsection" . "sec:") ("subsubsection" . "sec:")) However, for chapter, when typing ...
0
votes
0answers
44 views

run pdf-tools and evince simultaneously with auctex

Is it possible to run pdf-tools and evince simultaneously with auctex, with forward search? That is, if I press C-click on the latex, the forward search should jump to the corresponding pdfs in both ...
1
vote
1answer
34 views

Matching pairs for character bound to a keystroke

I am using smartparens with AucTeX and it works great. I wanted to map a keystroke for the dollar sign, so I did it as follows - (global-set-key (kbd "s-m") (lambda () (interactive) (insert "$"))) ...
2
votes
1answer
77 views

AUCTeX: only use monospace for rendering macros?

I've been using the fontify features of AUCTeX, as well as magic-latex-buffer, to display my TeX code in a more readable way. But I'm wondering if I can crank this up to 11: is there a way to render ...
0
votes
0answers
29 views

Syncing tex source with `savebox`

I realize this is quite an edge case, but I am wondering if anyone can help me. I have source correlation set up in emacs as follows (setq TeX-source-correlate-start-server t TeX-source-...
0
votes
1answer
142 views

'pdflatex' is not recognized as an internal or external command, operable program or batch file

came across on windows 10 the following error message Running `LaTeX' on `test_latex' with ``pdflatex -file-line-error -interaction=nonstopmode "test_latex.tex"'' **'pdflatex' is not recognized as ...
0
votes
1answer
36 views

auctex and pdf-tools reverse search change keybinding

Inverse search from pdf-tools to auctex uses Ctrl-click on the pdf file to go to the corresponding part of latex file. Is it possible to also assign Alt-click to do inverse search? I am using ubuntu ...
1
vote
1answer
46 views

auctex pdf-tools split buffers in separate frames

This is an extension of my previous question auctex and pdf-tools in 2 separate frames which was nicely answered by Tobias. I use auctex in one frame and pdftools in another frame. Forward and inverse ...
0
votes
0answers
15 views

AUCTeX: inconsistent behaviour when compling (probably becuase of what I'm doing)

I cannot get AUCTeX to preview updates to multifile documents. I have the following config: (use-package tex :ensure auctex :config (setq-default TeX-master nil) (setq TeX-source-...
2
votes
1answer
69 views

auctex and pdf-tools in 2 separate frames for dual monitor setup

For auctex with pdftools it is convenient for me (eyesight problems) to have the emacs latex frame on my laptop close to my eyes, and the corresponding pdf (in pdftools) on a separate frame on the ...
0
votes
0answers
27 views

auctex + evince split buffers

This is similar to a question I asked recently involving pdf-tools and auctex. I split a latex source buffer into a top and bottom buffer, call them buffer A and buffer B. I then open evince for each ...
5
votes
1answer
60 views

pdf-tools auctex question with split buffers

I run auctex with the latex source on the left half buffer and corresponding pdf on the right half (using C-x 3 to split the buffer). I then split the left half buffer into 2 so as two work on ...
3
votes
2answers
72 views

What are the main differences between latexmk and C-c C-a from Auctex?

I was wondering if anyone knows if C-c C-a in AucTeX is using behind the scenes latexmk or not? I've tried looking into the source files for both C-c C-c and C-c C-a but I couldn't find in any those ...
3
votes
1answer
133 views

pdf-tools Emacs with auctex

I have setup Emacs pdf-tools with auctex on ubuntu and the forward and reverse search work fine. But in the forward search (latex file to corresponding position in pdf document), it is difficult to ...
1
vote
1answer
40 views

Change buffer background color on LaTeX compile error, or highlight errors more prominently?

I am using Emacs+Auctex to write LaTeX code. When compiling a document that contains an error, Emacs writes LaTeX errors in ‘*~/doc output*’. Use C-c ` to display. to the Messages buffer (and ...
2
votes
1answer
118 views

AUCTeX does not compile if the local variable is already set

I'm basically want to ask the question that was asked in Tex Stackexchange but was considered off-topic there (this is the link to the question). When I am trying to compile (using the command C-c C-...
2
votes
0answers
48 views

Indenting LaTeX code for \if \else \fi statements

This is related to this Emacs.SE question. I use the code from the answer: (setq LaTeX-begin-regexp "\\(?:begin\\|if@\\)\\b") (setq LaTeX-end-regexp "\\(?:end\\|else\\|fi\\)\\b") (defun LaTeX-indent-...
1
vote
2answers
50 views

Omit ~ before the \ref command (with RefTeX+AUCTeX)

The default behaviour of C-c ) is to insert \ref and prefix it with~. I don't need the tilde after \S (i.e. I need the output to look like \S\ref{label}, rather than \S~\ref{label}). Is there a short ...
1
vote
1answer
38 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
68 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
54 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
52 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
66 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
50 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
41 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
49 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
79 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
33 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
63 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
87 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
38 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
68 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 ...
1
vote
1answer
149 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
284 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
70 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
83 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
77 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
20 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
288 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
17 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
26 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
106 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
176 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
362 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
63 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
65 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\...

1
2 3 4 5
9