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.
444
questions
0
votes
0answers
11 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
57 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
15 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
27 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
28 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
71 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
148 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
18 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
30 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
51 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
48 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
29 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
62 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
29 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
95 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
33 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
119 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
45 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
151 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
50 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
40 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
96 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
39 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
76 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
31 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
52 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
53 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?
...
0
votes
0answers
22 views
auctex preview-latex of image inside beamer
I have small issue with preview in a beamer presentation when I have images included.
I followed: AUCTeX previews are not displayed correctly with beamer
This helped a lot, but unfortunately there is ...
0
votes
0answers
10 views
AUCTeX window management (Mac OS X/Aquamacs)
Currently, when I TeX a file, the preview comes up in Skim in a separate window. This works well, except when there is a TeX error: then the log file comes up in the lower half of the TeX buffer ...
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
44 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 ...
0
votes
0answers
335 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 ...
2
votes
1answer
62 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
41 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
154 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
42 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
97 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 ...
1
vote
0answers
40 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-...
0
votes
1answer
2k 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
92 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
100 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 ...