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
27 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
23 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
83 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
23 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
67 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
38 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
121 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
47 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
34 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
15 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
65 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
51 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
20 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
28 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
70 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
30 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
40 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
39 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
16 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
9 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
83 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
22 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
201 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
54 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
35 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
141 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
41 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
65 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
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
89 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
39 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
1k 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
69 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
91 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
21 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
135 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
37 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
159 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
76 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
340 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
51 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 ...
3
votes
1answer
260 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
62 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
66 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
47 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
75 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
82 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 ...

1
2 3 4 5
9