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
2 answers
811 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’: :...
0 votes
0 answers
21 views

Interacting with Okular (backward search)

I use Auctex to edit my LaTeX files. I've configured Auctex to use Okular as my PDF viewer, and I've configured Okular to use Emacs (emacsclient) as its editor. When I compile a source file with C-c C-...
1 vote
2 answers
90 views

emacs with auctex on win 10: Preview pdflatex fails

First of all, I'm a beginner to emacs, who has just begun the tutorial and reading the manuals. Therefore kindly bear with me if the given details may be somewhat lacking. On win 10, I have installed ...
3 votes
2 answers
441 views

Indentation with cdlatex

I am using Emacs 25.1.1 on Windows 10 OS with AUCTeX and the CDLaTeX minor mode. CDLaTeX has a very useful feature of command input, which is typing a shortcut followed by TAB to expand that shortcut. ...
9 votes
1 answer
915 views

Is it possible to have word-wrap as standard but truncate some lines in a buffer at the same time?

I'm working with large LaTeX tables in AucTEX and it would be helpful to display them in truncated lines, like here: The red marks are the "&" characters which separate the columns of the table. ...
5 votes
1 answer
473 views

Can I mark a local variable as safe for a single file only?

I have a LaTeX-file (thesis.tex) which I edit daily. Some LaTeX-package I use requires me to compile the file with --shell-escape, so I added the file-local variable %%% TeX-command-extra-options: &...
1 vote
1 answer
124 views

Call of LaTeX via AucTeX 14.0.3 freezes emacs 27.1

Since today, I've been experiencing freezes of my emacs/AucTeX config. I'm using Ubuntu 22.04 with emacs 27.1 (if important, i3 and fizsh as defaults). The freeze happens when I press C-c C-c Enter (...
0 votes
1 answer
369 views

flyspell overrides company key bindings

I have the following in my init file. ;; ======= Company mode set up ============ (use-package company :ensure t :defer t :init (add-hook 'after-init-hook 'global-company-mode) :config (use-...
1 vote
3 answers
2k views

Making pdf-tools work after successful compiling on mac os x

After installing the required dependencies with homebrew, I was able to compile pdf-tools . But I cannot make it work (I cannot see the pdf on emacs after compiling) I would like to know if somebody ...
2 votes
2 answers
256 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 ...
0 votes
1 answer
56 views

AUCTeX cannot find a working TeX distribution (again)

This is DIFFERENT from many other questions about "AUCTeX cannot find a working TeX distribution" because the TeXlive binaries ARE in my Emacs' "PATH" environment variable. I have ...
0 votes
1 answer
40 views

Aquamacs + Auctex fontification issue

I use Aquamacs to edit tex files on two different Mac machines. I really like some of Auctex's features, notably the way it formats in math mode to make things a bit easier to read. A few weeks ago ...
0 votes
1 answer
217 views

Custom verbatim environments/macros in AucTeX

Here's my MWE: \documentclass{article} \newenvironment{tscode}{}{} \def\tscode|#1|{} \begin{document} \tsinline|efwe| \begin{tscode} efihw$feiw$ \end{tscode} \end{document} % Local Variables: % ...
0 votes
0 answers
57 views

Auctex changes when inserting items

I am using AucTex 13.2-1, and I have noticed some changes in the insert-item functionality. Previously, when used C-c C-e, I was prompted for the environment type and, when choosing itemize, the ...
6 votes
4 answers
657 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 ...
0 votes
1 answer
98 views

AppleScript wrapper for pdf viewer fails to complete

My setup is 2020 MacBook Pro M1 (Apple silicon), Big Sur 11.2.2, MacPorts, emacs-mac-app, AucTeX, and PDF Expert. I am trying to get C-c C-c (View) to open PDF Expert at the right page. I'm almost ...
3 votes
1 answer
146 views

AUCtex buttons not working

I am assuming this is my error, I just cannot figure out what it is. I have a project76 meerkat running Ubuntu 22.04. I have installed latex using sudo apt install texlive-latex-extra and emacs ...
3 votes
1 answer
115 views

Change overlaid text of an outline header?

Q: how do I add a new outline header regexp but change the overlaid text? I often write presentations with Beamer in LaTeX. As such, there are a lot of frame (ie, "slide") environments: \begin{...
0 votes
0 answers
51 views

Debugging preview-latex

Running preview-latex in Emacs 25 on Ubuntu 18.04 once worked for me, but now inserts warning icons instead of rendered images of the formular snippets. A minimal example, which doesn't work is: \...
2 votes
1 answer
82 views

RefTeX reftex-citation not showing all entries and takes preceding word as argument

After initial setting up emacs with AuCTeX and RefTeX everything worked fine. may not be the problem, see edit below Now, for a porject I tried setting up RefTeX to work with markdown-mode with this ...
0 votes
2 answers
57 views

AucTeX: Keybinding for compiling document

Is there a command, for which I can set a keybind for compiling the document? The command (TeX-command-master, bound to C-c C-c) gives you a list of options but it's rather inefficient. I'm looking ...
2 votes
2 answers
141 views

LaTeX equation numbers with Emacs

Equation labels in the .tex document are \label{eq:3}, e.g., which is (7) on the output pdf-document (say); \eqref{eq:3} references this equation. Typing <C-x-o> at point (| in the following ...
0 votes
1 answer
44 views

How to set keybindings to jump to next/previous latex math environment?

In vim (I think with vimtex) one can jump to the next or previous math zone (inline or display mode) with a keybinding. Using auctex or org mode (preferably org mode), how could one do that in emacs ? ...
1 vote
2 answers
313 views

How can I bring tex-mode's sexp navigation to AucTeX?

I generally prefer AucTeX over the built-in tex-mode, but one thing that is much better in tex-mode is navigation by s-expression. Namely, in tex-mode, forward-sexp (C-M-f) treats LaTeX environments ...
0 votes
0 answers
58 views

Color bleeding and polymode

I sometimes experience "color bleeding" in auctex, and wasn't able to find the source of the problem for a long time. In particular because I wasn't able to reproduce the issue. I also can't ...
0 votes
0 answers
97 views

Emacs/aucTeX ignores local variables

I am using emacs 29.2 (installed via brew) and auctex (14.04) on a Mac (12.7.4). My .emacs file shows: '(enable-local-variables :t) I have the following at the end of a TeX file: %%% Local Variables: ...
2 votes
1 answer
396 views

AUCTeX Preview rung error

I'm new to emacs and AUCTeX and I'm having a problem with document preview (C-c C-p C-d). My LaTeX file is the following \documentclass[11pt, a4paper]{report} \usepackage{cite} \begin{document} \...
1 vote
1 answer
96 views

Left-align equation previews (Auctex)

I would like to left-align equations in Auctex's preview's generated by preview-latex. I imagine that this would involve putting fleqn in the documentclass options in whatever latex file things are ...
0 votes
1 answer
152 views

Change latexmkrc by setting file local variable

How can I specify inside a latex file (for example as a local variable) that compiling with latexmk should use a latexmkrc file with a specific path say /path/to/latexmkrc and not the default one and ...
0 votes
0 answers
28 views

Installing and Managing texmathp.el Independently from AUCTeX in Emacs

I'm interested in using texmathp.el, a file provided by the AUCTeX package, without having to install the entire AUCTeX package. Is there a way to install texmathp.el through Emacs' package manager ...
1 vote
1 answer
85 views

Distinction between inline and display math instead of default behavior of texmathp

The default behavior of texmathp gives true regardless of wheter the cursor is inside an inline or display math environment. Is there a way for texmathp to display true only if the cursor is inside an ...
1 vote
2 answers
178 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 ...
3 votes
2 answers
133 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)? ...
4 votes
1 answer
414 views

How to perform a search for a string inside math environments in a tex/latex document

I have a long tex document and I would like to perform a search for finding some string inside math environments. Is there a search function already provided by auctex to do this? Other solutions are ...
1 vote
1 answer
158 views

Auctex 14.0.2 returns errors on (wrong-type-argument number-or-marker-p nil) in run-hooks when opening tex files

Similarly to this thread since upgrading to AUCTeX 14.0.2 there are errors when I open TeX files. This seems to be a different issue though, since the AUCTeX version is different and the toggle-debug-...
1 vote
2 answers
112 views

Determining AUCTeX Activation in Emacs Buffer: Major Mode Detection Issue

I recently upgraded to Emacs 29.1 (from Emacs 26). While using latex-mode, I encountered a fontification issue for which I found a patch (Latex mode: tex-verbatim face has priority on font-lock-...
0 votes
1 answer
88 views

inludegraphics macro does not ask for width etc. but only for llx, lly

Using GNU Emacs 26.3, I have a tex file with \usepackage{graphicx} and AUCTeX enabled. However, inserting a includegraphics macro does not prompt for the optional arguments defined in graphicx.el ...
2 votes
2 answers
237 views

How to install AUCTeX on Emacs without automatic activation for LaTeX (.tex) files?

I am interested in installing AUCTeX on Emacs to support writing LaTeX documents. However, I would prefer to avoid the automatic activation of AUCTeX when opening LaTeX documents and only activate it ...
1 vote
1 answer
28 views

Make auctex ask me only for position and width when inserting a minipage environment

If I insert a minipage environment using auctex LaTeX-environment it asks me for "Position", "Height", "Inner Position" and "Width". However I only want to be ...
3 votes
1 answer
724 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-...
0 votes
1 answer
45 views

Compiling .tex files seem to be tied to a username?

I'm working on multiple computers and compiling LaTeX document through AUCTeX. I've set up Evince as my external viewer and the synctex and back referencing work perfectly... ...as long as I've ...
3 votes
1 answer
2k views

How to get live preview in real time while editing latex source code using AUCTeX?

I'm using Emacs (26.1, build 1, i686-w64-mingw32) on the latest version of Windows 10. Im looking to turn my Emacs into a LaTeX IDE that has a 'live preview' functionality. Ideally I would like my ...
5 votes
1 answer
69 views

AUCTeX automatic extraction: beyond regexps

In my custom style support file, I would like to add custom code to parse an environment. That is, my LaTeX code looks like this \begin{foobar} some complex stuff \end{foobar} and I don't want to ...
1 vote
1 answer
110 views

Add parsing of latex-style .el file to LaTeX-hook using AUCTeX

I did some online research (e.g. here) but couldn't figure out how to solve the following problem so far (of course, I might have overlooked something since the whole emacs community is new to me). ...
2 votes
1 answer
79 views

Stop AUCTeX from automatically adding style based on filename

If I try to create a LaTeX file named notes.tex, AUCTeX automatically adds the style "notes" and runs the style hook for "notes". This creates a bunch of environments in LaTeX-...
0 votes
1 answer
52 views

Org-mode LaTeX export set AUCTeX local variables

I have an org-mode document, say #+TITLE: My Title * Section My first section and I want to export it to LaTeX with org-latex-export-to-latex. This generates a .tex file that I can now compile. ...
1 vote
1 answer
74 views

Making cleveref insertions globally available

I keep all my commonly used latex packages in one custom package, including the referencing package cleveref. However, reftex is configured to only provide insertion of cleveref referencing commands ...
0 votes
1 answer
635 views

Fit window to pdf upon loading

Question: I'm running auctex and pdf-tools to view pdf's within emacs. My problem is that I'd like to scale the pdf's buffer window horizontally after running C-c C-c. So far, I've created a hook to ...
2 votes
1 answer
71 views

AUCTeX: Some general macros/command missing from auto-completion/macro insertion

While further trying to set up a Latex environment in emacs I stumbled over a "problem" with macro-completion which I don't understand right now. When writing Latex code the usual way to ...
1 vote
1 answer
63 views

How can I make AUCTeX recognise this macro?

I'm writing a custom helper command for my beamer presentation: \newcommand{\sectionfigure}[1]{ \begin{tikzpicture}[overlay, remember picture] \node at ([shift={(0, 0.27925\paperheight)}] foot....

1
2 3 4 5
11