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
23 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
25 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
55 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
30 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
36 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
41 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
45 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
84 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
22 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
88 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
19 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
34 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
29 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
43 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
95 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 ...
0
votes
0answers
301 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
22 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
32 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
56 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
56 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
37 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
67 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
40 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
99 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
46 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
147 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
58 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
170 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 ...
0
votes
0answers
45 views

ispell dictionary in .dir-locals.el

Aim: I am writing papers in different languages mostly in multifile latex projects. Thats why I would like to set the ispell dictionary in the directory local variables. Problem: Flyspell is not using ...
0
votes
0answers
18 views

Correctly indent whole buffer in auctex wihtout filling

When using AUCTeX to edit LaTeX files you can call LaTeX-fill-buffer to fill the whole buffer and additionally indent everything correctly. However if I am using visual-line-mode (together with ...
1
vote
2answers
111 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
56 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?
0
votes
0answers
56 views

Spacemacs: “Wrong type argument: stringp, nil” Auctex error when building tex file

following a recent update, Auctex now refuses to build. Throwing a wrong type argument: stringp, nil error. The full debug text: Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-...
1
vote
1answer
80 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
60 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
60 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
86 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 ...
0
votes
0answers
24 views

Changing current math mode (e.g. inline to display)

Is there a built-in or at least ready-made way to change which math mode I'm in? For example if I'm writing in inline math mode (which in my case would mean my cursor is between single dollar signs) ...
2
votes
1answer
47 views

Promote a major mode kbd to a higher priority than the same ones used by a minor mode

I am using emacs to write LaTeX documents with AucTeX and cdlatex. Both of them have the same feature of automatically closing parens and dollar sign symbols. However, AucTeX obviously did a better ...
2
votes
1answer
64 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
42 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
167 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
42 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 ...
1
vote
1answer
43 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 "$"))) ...

1
2 3 4 5
9