Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
2answers
24 views

Shortcut to put the selected region in an ordinary LaTeX environment (not with begin-end style) using auctex

In auctex if one has a selected region and then apply the command c-c c-e (LaTeX-environment) then by selecting an environment, the selected region will be folded between that environment. Is there a ...
0
votes
0answers
19 views

How to prevent preview-latex to manipulate and delete the pdf created by latex

Running latex-preview manipulates and then deletes the pdf created by latex. If skim is open as pdf-viewer the pdf gets sliced into the images created by latex-preview. Running latex again doesn't ...
0
votes
1answer
25 views

How to enable company-mode for some buffers only?

I would like company mode to lead automatically for some buffers like AucTex for example but not on other buffers like Org-mode global-company-mode Enables comapny mode everywhere and I only want ...
1
vote
0answers
47 views

Auctex autocomplete and physics.sty

I have autocomplete successfully working in auctex. It also works for included packages, so if I, for example, have \usepackage{url} in my preamble, I will get autocompletion while typing \url. ...
0
votes
0answers
20 views

TeX-evince-sync-view locking up with this file

This file when I compile it with AUCTeX, and then try to view it, using TeX-evince-sync-view, shows that one page has been compiled, but then shows a blank view. After I kill it, TeX-evince-sync-view ...
2
votes
1answer
69 views

AucTeX multiple files parsing not working

I have not been using LaTeX for quite some while, so I might be missing something obvious. I have a multiple file document and want to make AUCTeX aware of the master file. The minimal example looks ...
2
votes
1answer
21 views

Add expressions to LaTeX-electric-left-right-brace

I would want to "electrically" insert | or \right| when typing | or \left| in AucTeX and can't quite figure out how to add characters to AucTex-electric. A list of already defined completions can be ...
1
vote
0answers
71 views

How to customize the sequence of commands executed by the C-c C-a shortcut (`TeX-command-run-all`)?

How do I need to set up Emacs/AucTeX, so that when I type C-c, C-a, the following sequence of commands will be run? (Note: the LaTeX file name is test.tex.) lualatex test makeglossaries test ...
1
vote
0answers
24 views

LaTeX glossary doesn't typeset (AucTeX)

Consider the following LaTeX file (named test.tex) demonstrating the use of the glossaries-extra package. \documentclass{article} \usepackage[automake]{glossaries-extra} \newglossaryentry{potato}{...
1
vote
1answer
39 views

Compile Latex without Saving, and without Query

I know that I can disable the save query that comes after running TeX-run-TeX with LaTeX, TeX or actually probably any other NAME parameter (this is what happens when you invoke TeX-command-master, ...
2
votes
0answers
59 views

How to Add Document Class to AucTeX

I have a .cls LaTex template I would like to use regularly. Where/how should I save it so that AucTeX is aware of it? How does one set up LaTeX templates in Emacs/Spacemacs in general? I find very few ...
2
votes
0answers
82 views

AUCTeX is obsolete on GNU ELPA?

I got this warning when installing AUCTeX from GNU ELPA. The package is installed, but I don't want to use obsolete packages for obvious reasons. I have check the official website of AUCTeX, and it ...
0
votes
1answer
49 views

How do you do a clean install of emacs+auctex?

It was established here there is a problem with my installation of emacs. So I did $ sudo apt-get --purge autoremove emacs and remove all in $ locate emacs | grep conf I reinstalled emacs from ...
0
votes
0answers
30 views

Spacemacs keeps installing and uninstalling auctex-latexmk

Running spacemacs 0.200.13. Everytime I start spacemacs, it either installs auctex-latexmk or deletes it saying that it is an orphan package. Here is some more information: I have latex layer ...
1
vote
1answer
85 views

AUCTeX with Sumatra PDF

I am syncing AUCTeX with Sumatra PDF on MSWindows. I used the instructions in https://www.barik.net/archive/2012/07/18/154432/ (I write here the setqs instead of customization) (setq TeX-source-...
1
vote
0answers
47 views

AucTeX Plain TeX view refresh

I write *TeX in emacs with AucTeX, using pdf-tools as the viewer. When I compile a LaTeX document in AucTeX with C-c C-c the viewer in the other window automatically refreshes, but this does not ...
2
votes
1answer
70 views

How to set backslash character “\” to be a word constituent in LaTeX-mode syntax tables

In LaTeX-mode (AUCTeX) buffers, the backslash "\" is treated as an escape character. I'd like it to be treated as word constituent (syntax class "w") instead, but only in LaTeX-mode buffers. The main ...
1
vote
1answer
26 views

Trying to bind keystrokes to a menu item

I have a menu item added to AucTex's Command Menu, Latexindent. This calls an external process and is added in mu .emacs file by the following: (with-eval-after-load "tex" (add-to-list 'TeX-...
1
vote
1answer
36 views

disable view prompt in AUCtex [closed]

I have been attempting to disable a prompt by auctex when pressing C-c C-c to view the document for close to the entire day. As I am a noob to emacs, I attempted to simply modify the auctex ...
0
votes
0answers
26 views

How do I turn off electric “double-dollar” insert under auctex?

Inserting a $ symbol in a latex document (in AucTex mode) automatically inserts 2 $s in a row (and then hitting "delete" immediately deletes both). I can confirm that the variable TeX-electric-math is ...
1
vote
1answer
58 views

Auto-completion in Auctex automatically introduces dollar signs

My auto-completion all of a sudden changed its behavior, and I have no clue why. When I auto-complete a mathematical expression, like \subseteq, say, it will introduce dollar signs in front and at the ...
1
vote
1answer
60 views

Strange toolbar icon in AUCTeX mode (on Mac)

I notice there is a strange box-shaped icon in the toolbar in the AUCTeX mode (circled in the picture below). It should be a toolbar separator (for example, on Linux): I am using GNU Emacs 26.1 with ...
0
votes
2answers
59 views

How do I set latex face attributes in init.el?

When I try to put (set-face-attribute 'font-latex-italic-face nil :foreground green) (set-face-attribute 'font-latex-math-face nil :foreground orange) (set-face-attribute 'font-latex-script-char-...
3
votes
1answer
30 views

how to find the detail of auctex startup?

when i open a .tex files, i always see Applying style hooks...done Sorting environment...done Removing duplicates...done yes, i use (load "auctex.el" nil t t) (load "preview-latex.el" nil t t) in ...
0
votes
1answer
112 views

Windows: org not exporting pdf

I am trying to get emacs org-mode to export to pdf. To this end I've installed tex-live and added the path to the bin folder to my emacs path. I've added the tex-live folder to my OS $PATH. When I try ...
1
vote
1answer
46 views

Custom call to `makeindex` using Auctex

Following one of the answers from here for managing two distinct indexes, I need to call makeindex -t mydoc.plg -o mydoc.pnd mydoc.pdx makeindex -t mydoc.slg -o mydoc.snd mydoc.sdx when I want to ...
1
vote
1answer
132 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’: :...
2
votes
0answers
33 views

Redfining autoloaded function

I discovered that auctex's texmathp-match-switch does not check whether or not dollar signs are commented out or not, therefore i get wrong results when i all M-x `texmathp' in very specific contexts. ...
0
votes
0answers
19 views

Finding a fold face

Enter TeX-mode (AUCTeX), type \emph{test} and then C-c C-o C-b. This will 'fold' the macro and show only test in a 'fontified' manner. For me this means blue, italic, and bold. But I am unable ...
0
votes
1answer
77 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
0answers
40 views

file-local variables vs directory-local variables in Auctex

I have a file with the following content, let's call it tmp.tex \emph{Hello} %%% Local Variables: %%% mode: latex %%% TeX-master: "main" %%% End: and another file main.tex that includes the ...
1
vote
1answer
49 views

Adding an argument to compile mode from “Local Variables”

I have the following code in my .emacs file (push '("Latexmk" "latexmk -interaction=nonstopmode -pdflatex='pdflatex -synctex=1 -file-line-error' -pdf %t" TeX-run-TeX nil t :help "Run Latexmk ...
1
vote
1answer
84 views

What is the difference or functionality between the available tex packages enumrated below

sorry to disturb you. I am trying to migrate all the workflow of writing tex files and managing citations into emacs but I'm completely lost by the overwhelmed plethora of packages and I'm not sure ...
0
votes
1answer
176 views

How to auto-compile LaTeX source file and auto-revert PDF output buffer

I am creating and editing latex source files using AUCTeX. When I use the associated command for compiling the source file (C-c C-a) the file is successfully compiled and the resulting PDF output is ...
0
votes
0answers
33 views

Hard return to soft return of a .tex file

I have tons of LaTeX files with hard returns at column 80 like the test file below: \documentclass{article} \begin{document} Foo bar foobar Foo bar foobar Foo bar foobar Foo bar foobar Foo bar ...
0
votes
0answers
41 views

latex-preview-pane with ESS Rnw mode

I would like to configure my init.el file to work with latex-preview-pane mode in ESS Rnw mode. For example, when I knitr/Sweave Rnw file and compile it to pdf the latex-preview-pane should open. I'm ...
-1
votes
1answer
265 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 ...
0
votes
1answer
82 views

Change the template used by the function LaTeX-section (C-c C-s)

In a document using LaTeX-mode (i.e., AUCTeX), the command LaTeX-section (C-c C-s) inserts a small template corresponding to a LaTeX sectioning element. How can these inserted templates be modified? ...
0
votes
1answer
49 views

Is there a way to avoid appending AUCTeX variables in the file when working with multiple files?

When editing multiple files, AucTeX keeps track of the master file by appending the following to each file: %%% Local Variables: %%% mode: latex %%% TeX-master: "../document" %%% End: I'm editing a ...
0
votes
1answer
156 views

Emacs Latex/Auctex: Error message about using `Tex-command-list` command to set `Make` as a compile option

I have a setting in my Spacemacs dotfile that adds Make as a compile option for a latex document. The actual command is below. (add-to-list 'TeX-command-list '("Make" "make" TeX-run-...
1
vote
0answers
52 views

smartparens with LaTeX to deal with \begin \end environment and markup commands

How can I configure smartparens to treat \begin ...\end environments, and commands, e.g., \textbf, delimiters so that I can navigate them, e.g., using sp-forward-sexp.
2
votes
0answers
46 views

Environment default attributes

When I want to insert an environment in latex, I usually call LaTeX-environment by hitting C-C C-e. However, some environment requires extra parameters, like 'aligned' requires a position or 'proof' ...
0
votes
0answers
53 views

Jump to equation by label in auctex

While writing latex I sometimes have to reference an equation. I do that using reftex-reference (bound to C-c ( by default). However, I sometimes want to copy some text from the equation text I just ...
2
votes
0answers
72 views

AUCTeX View PDF Evince SyncTeX subdirectory

I use LatexMK to output resulting files (including the .pdf and .synctex.gz) in the subdiretory out. But I also want to view the pdf and use SyncTex via Emacs and Evince. One solution (see here) ...
0
votes
2answers
47 views

Commands or shortcuts to put a selected region between parentheses or brackets in auctex

If some region is selected region, then applying a command (such as the commands which insert an environment) provided by auctex results in putting the region in the corresponding environment. Is ...
3
votes
1answer
97 views

Indentation with cdlatex

I am using Emacs 25.1.1 on Windows 10 OS with auctex, and cdlatex minor mode. Cdlatex has a very useful feature of command input, which is typing a shortcut followed by TAB. for instance: When I ...
1
vote
1answer
295 views

AUCTeX cannot find a working Tex distribution and don't know how to install exec-path-from-shell

When I was trying to export the pdf file. It notifies me this. And then I searched on Google. People suggest me check the method in the link below. https://github.com/purcell/exec-path-from-shell ...
0
votes
1answer
131 views

Setting up Emacs/AUCTeX viewer

I have installed AUCTeX, it compiled a test file OK, but I can't view the output. I get " Cannot get Evince viewer ...". Xviewer, should be the analogue in my distro, I think (I have not way to check ...
4
votes
1answer
63 views

Auctex: Fold all environments of a specific type in a buffer

With auctex I can run TeX-fold-env the environment on which point currently is located. How can I fold all environments foo (\begin{foo}... \end{foo}) in my buffer at once? And how to unfold all ...
0
votes
0answers
61 views

How to refactor/rename LaTeX labels?

Q: how do I refactor LaTeX labels? I have a long LaTeX document with lots of figures and tables. Each of them has a long and convoluted label. Each label is referenced in a number of places in the ...