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

Using latex-preview in auctex for large file

I am working on my thesis, and each chapter is put in a separate .tex file. The main manuscript looks something like %main.tex \documentclass{article} \usepackage{graphicx} ... \usepackage{subcaption} ...
0
votes
0answers
29 views

Inserting tilde before \eqref and \cite in cdlatex

In cdlatex mode of auctex, typing ref followed by using the Tab key yields \eqref{}, where I can specify the appropriate equation label. But I would like to generate ~\eqref{} instead of \eqref{} when ...
1
vote
1answer
52 views

Using multiple keys in AUCTeX LaTeX-math-list

LaTeX-math-mode in AUCTeX is very convenient for shorcuts. For example, I define the following in my .emacs file: (defconst LaTeX-math-list '(?f "frac"))) Then if I type `f the Emacs buffer ...
0
votes
0answers
16 views

Custom folding citations in AUCTeX

By default, only \cite is folded by AUCTeX. If you want other citation commands to be folded as well, you have to add them to LaTeX-fold-macro-spec-list manually. For example, with (push '("[nc]&...
1
vote
0answers
14 views

Automatically TeX-fold paragraph after “}” + SPC

I have defined the following smartparens pair: (sp-pair "\\textit\{" "\}" :trigger "ital " :wrap "C-S-k") Now, when I write &...
2
votes
1answer
40 views

Flyspell: Ignore comments in LaTeX-documents

Whenever I run flyspell-buffer (using hunspell) in a LaTeX-document, my comments marked with % are spell-checked aswell, although I don't want them to be spell-checked. The simplest solution (setq ...
0
votes
0answers
11 views

Flyspell won't show suggestions in LaTeX [process ispell not running]

I have decided to use aspell as a spell-checker and installed it via msys2 (Windows). The command flyspell-buffer works without a problem for all file types. The weird thing is, though, that I only ...
0
votes
0answers
52 views

Unable to activate expl3 syntax highlighting for LaTeX mode

I have read that expl3 highlighting is already integrated in AUCTeX (see here), but I haven't been able to make it effective. Being fairly new to emacs, after browsing the web for solutions I still ...
2
votes
1answer
83 views

Display LaTeX-Quotation marks as unicode characters

When quoting in auctex, I use the strings "` and "' to typeset „ and “, respectively. Now, I want emacs to display the corresponding unicode characters to these strings. I've tried it with ...
0
votes
0answers
20 views

multiple previews of the same equation

I'm using auctex with texlab as a language server for latex, the problem i have is that i get multiple previews of the same equation my question is how to get only one preview?
0
votes
0answers
24 views

C stackoverflow in my Prelude when edit .tex files

It occasionally happens to me that I get the notorious error message Re-entering top level after C stack overflow when I edit my .tex files. I checked whether it occurs with emacs -q and it does not. ...
0
votes
1answer
28 views

Auctex change default comment style for latex-mode

I want a double %% to start my comments in latex documents. I'have found two solutions suggested ;; solution 1 (add-hook 'latex-mode-hook '(lambda() (setq comment-start "%% "))) ;; ...
1
vote
0answers
56 views

AUCTeX preview breaks if monitor orientation isn't normal or inverted

When I use AUCTeX's preview feature on a monitor who's orientation is normal or inverted (i.e. rotated either 0 or 180 degrees) then everything works perfectly and the png files from the resulting ...
0
votes
0answers
34 views

query-replace within LaTeX/Math

The answer below was taken from https://stackoverflow.com/a/44913296. This is the most upvoted answer there. Unfortunately, after running the code (for example by replacing q with \theta) one ...
1
vote
1answer
39 views

How to make Auctex TeX-command-Show do nothing?

When I use C-a to compile a source tex file, its final step is to call Evince to display the pdf (through xdg-open, I believe). However, in my computer this makes Emacs freeze for many seconds and ...
0
votes
0answers
65 views

elpa.gnu.org:443 has a running process;kill it? message at install AUCTeX package on emacs 27.1 on windows 10

Trying to install AUCTeX on emacs 27.1 on Windows 10, when install AUC TeX through manage emacs packages when press install while the process work appears this mesage Buffer "*http elpa.gnu.org:...
2
votes
2answers
50 views

Add `tikzpicture` environment to the list of choices for AUCTex's environment insertion shortcut?

I use AUCTex for all my Latex needs, and it works great. However, I wanted to insert a tikzpicture environment in my document, and I pushed the key C-c C-e for environments, but tikzpicture is not ...
2
votes
1answer
89 views

AUCteX and LaTeX3 optional arguments

LaTeX3 allows for some flexibility in specifying optional arguments to create commands and environments. For example you could specify \NewDocumentCommand{\foo}{d<>m}{...} and this would be used ...
0
votes
1answer
30 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 ...
0
votes
0answers
92 views

Autoload “amsmath” style hook

How do I autoload the "amsmath" style hook with all my .tex files? Currently, it is triggered only when I add \usepackage{amsmath} to my .tex file; there are other packages and classes that ...
0
votes
1answer
24 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
1answer
41 views

How can I go back to Texinfo native mode

I have a early-init.el file with: (add-to-list 'load-path "~/.emacs.d/el-get/el-get") (unless (require 'el-get nil 'noerror) (require 'package) (add-to-list 'package-archives ...
0
votes
1answer
30 views

fontify autoref and nameref in latex-mode buffers

When I'm in a .tex file, press M-: and run (font-latex-add-keywords '(("autoref" "*{") ("Autoref" "{") ("nameref" "*{")) ...
0
votes
1answer
45 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 ...
0
votes
0answers
150 views

Good resources for turning Emacs into a LaTeX IDE?

I am learning Emacs thanks to awesome resources like this or this. However, I can't find a good tutorial for setting up AucTeX in order to turn Emacs into a LaTeX IDE. I am trying to set it up with ...
1
vote
0answers
414 views

`wrong type argument: number-or-marker-p, nil` after upgrading auctex

After upgrading to auctex-13.0.1 I am getting the error wrong type argument: number-or-marker-p, nil whenever I try to compile a latex document in emacs. Activating toggle-debug-on-error and issuing C-...
0
votes
0answers
23 views

Flycheck gutter reporting of LaTeX compiler errors

I'm wondering if it's possible to have Flycheck report LaTeX compile errors the way it reports linting errors. For example, if I have: \documentclass[12pt]{article} \begin{documen} %ERROR Hello world! ...
0
votes
0answers
37 views

Melpa packages auto updating makes then incompat

I did some work on my machine that should not have affected my current HD (installed an OS on a secondary disk; ran update-grub). When I booted to my primary working HD I find that nearly all my ...
0
votes
0answers
60 views

AUCTeX pairing large parenthesis for `\left(`

I'd like to automatically close \left( with \right) in LaTeX via AUCTeX in Emacs 27. The following should work: (add-hook 'LaTeX-mode-hook (lambda () (set (make-local-variable 'TeX-...
0
votes
1answer
63 views

Why can't I type a dollar sign in this latex equation?

Consider the following latex document. \documentclass{article} \usepackage{tikz} \begin{document} Consider the following picture. \[ \begin{tikzpicture} \node (X) {X}; % this X should be ...
0
votes
1answer
38 views

Mode-line always shows [Compiling] after compile a tex file with typos

For some special tex with typos, mode-line always shows [Compiling] even if we correct all typos. To reproduce First compile the following correct tex by C-c C-a \documentclass{article} \usepackage{...
0
votes
1answer
82 views

How to Configure AucTeX to Preview .pdf File Generated by XeLaTeX?

How can I achieve this by adding something to ~/.emacs This is my .emacs OS: Ubuntu20.04LTS (WSL) Emacs: 26.3 XeLaTeX: 6.3.2
0
votes
0answers
34 views

How can I visualize files inside of a folders to create multiplefile documents using auctex?

I'm creating a multiple-file document with auctex/LaTeX using emacs with the next file's structures: ├── chapters │   ├── diffusion.tex │   └── resis.tex ├── configuration.tex ├── figures │   └── ...
0
votes
0answers
53 views

AucTex with periodic compilation and DocView

Fairly new to Emacs. I am trying to set up periodic compilation of LaTeX document so that I don't have to manually compile it. I figured I needed to use the function TeX-command-run-all, and since it ...
1
vote
1answer
103 views

(Sudden) Weird behavior of M-q in auctex

I very much enjoying using the auto fill functionality that the key binding M-q provides. However, starting recently, I am experiencing a small (but annoying) change in its behavior when in LaTeX mode....
0
votes
1answer
59 views

Run latexmk inside z shell instead of shell

Problem I am using latexkm to compile .tex documents, and recently I got this error while compiling: Running `latexmk' on `AF2021_serie5' with ``latexmk -bibtex-cond -pdf -synctex=1 AF2021_serie5'' Rc ...
0
votes
0answers
31 views

AucTeX with emacs28.0.50 [duplicate]

I want to compile my LaTeX files with emacs28.0.50. I was receiving the same error that is described in this question. I followed the instructions given in the accepted answer and now my init.el file ...
0
votes
0answers
21 views

No info file for Auctex when installed manually

I just installed Auctex manually. Auctex seems to work but there is no Info 'chapter' when I type C-h i m auctex. There is no .info file in the auctex directory. So my question is where do I get the ...
0
votes
0answers
160 views

Emacs warning after package updates

After running updates using list-packages, emacs keeps popping out the following messages when I open a tex file. I tried to reinstall the packages and commented out all settings related to auctex, ...
0
votes
0answers
80 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 window horizontally after running C-c C-c. So far, I've created a hook to execute ...
0
votes
1answer
185 views

AUCTeX LaTeX-math-mode outside a mathematical environment

Using AUCTeX with LaTeX-math-mode enabled, if I type (say) ` a inside a mathematical environment, it inserts \alpha, as I want. But if I do it outside a mathematical environment, it inserts \alpha{}. ...
0
votes
0answers
51 views

LaTeX pstricks pdf compilation without any specific configuration

I changed the auctex style file pstricks.el (from lines 779-784) (TeX-add-style-hook "pstricks" (lambda () (unless (or (member "pst-pdf" TeX-active-styles) (eq TeX-engine ...
1
vote
2answers
148 views

Removing alignment in LaTeX align environment

I want to write a very long equation (3-4 lines) in LaTeX. For this equation I want to use align environment. What I don't like is how Emacs formats the LaTeX code: it adds a lot of unnecessary space, ...
1
vote
1answer
57 views

How to make C-c C-e to not add a new line at the end in AUCTeX

I do not like how a newline is added when I add a new environment using C-c C-e in AUCTeX. This is especially annoying when I use C-c C-e to insert an environment within math mode (e.g. cases ...
0
votes
0answers
22 views

AUCTeX highlight contents of comment environment as a comment

I sometimes use comment environment in my LaTeX documents. Is there a way to make AUCTeX display contents of this environment as a comment?
1
vote
1answer
84 views

Is it possible to have different color in between a specific patterns?

I am using \begin{comment} hello world \end{comment} in order to comment out text in AucTex mode. In general I am using different color for comments but when I use \begin{comment} [text] \end{comment}...
0
votes
1answer
33 views

In auctex, to insert citation, how to display all the search results

In emacs, auctex, when I use C-c [, I only get a list of my previous searches When I start typing a search term such as sengul, it highlights my previous search sengul2013 and when I press return, I ...
1
vote
0answers
68 views

flycheck & auctex: Hide an specific warning

When using Auctex with Flycheck (Chktex) I get hundreds of warnings of the kind some.tex 321 8 warning 3 You should enclose the previous parenthesis with `{}'. (tex-chktex) How I can disable ...
0
votes
0answers
72 views

auctex preview at point shows equations for the entire document

I am using the latex-layer (auctex) in spacemacs. When I use preview-at-point it renders all of the equations in the document. Is there a way to really make it render on the equation at the cursor? ...
2
votes
1answer
88 views

AUCTeX: Is it possible to allow any value in k=v options?

Suppose a LaTeX command such as: \Person[<opt>]{<arg>} where <arg> may be any last name and [<opt>] may take several 'named arguments' like so: \Person[function={President of ...

1
2 3 4 5
10