Stack Exchange Network

Stack Exchange network consists of 174 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
1answer
23 views

disable view prompt in AUCtex

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
19 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
34 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
50 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
1answer
22 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
29 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
38 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
40 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
89 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
30 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
16 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
70 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
29 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
43 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
73 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
98 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

Having trouble previewing LaTex on Emacs in Windows

I am having a similar issue to this question. However, I am using Windows 10. The answer to that question said to add the following to the init: (setq preview-gs-command "/usr/local/bin/gs") Is ...
0
votes
0answers
31 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
27 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
120 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
78 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
37 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
0answers
19 views

ConTeXt fontifying with AucTeX

I use Emacs + Auctex to typeset ConTeXt documents. There are some features in the LaTeX mode that do not transpose into ConTeXt mode, and I would like to make some minor changes. Problem is, I am not ...
0
votes
1answer
99 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
45 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.
0
votes
0answers
47 views

AucTeX and PDF-Tools: Use SyncTex across emacsclients connected to the same daemon

Assume I open two emacsclients connected to the same daemon, the first showing a .tex file and the second the corresponding .pdf file, like in this screenshot: Is there a way to use SyncTex across ...
2
votes
0answers
44 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
45 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
49 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
40 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
75 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 ...
0
votes
1answer
210 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
96 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 ...
0
votes
0answers
59 views

Strange behavior with terminal emulator

My system is Arch Linux with Openbox. The problem I encounter is quite complicated to explain. I am a ConTeXt user. In a terminal (Xterm), the following file compiles perfectly. With the inferior ...
4
votes
1answer
48 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
49 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 ...
0
votes
1answer
60 views

flyspell overrides company key bindings

I have the following in my init file. ;; ======= Company mode set up ============ (use-package company :ensure t :defer t :init (add-hook 'after-init-hook 'global-company-mode) :config (use-...
1
vote
1answer
76 views

aux problem compiling latex

Exporting latex from org-mode (using C-c C-e l o) ".tex" file is fine generated but i can't generate ".pdf" from that. Same problem even using auctex (C-c C-c latex) from ".tex" generated from org. ...
1
vote
1answer
90 views

How can I bring tex-mode's sexp navigation to AucTeX?

I generally prefer AucTeX over the built-in tex-mode, but one thing that is much better in tex-mode is navigation by s-expression. Namely, in tex-mode, forward-sexp (C-M-f) treats LaTeX environments ...
2
votes
1answer
324 views

automatic latex-preview-pane with auctex and or-mode latex export

To enable automatic latex-preview-pane-mode with AUCTex I bound it to a hook: (add-hook 'LaTeX-mode-hook 'latex-preview-pane-mode) This works. When I open a *.tex file, then latex-preview-pane-mode ...
0
votes
1answer
138 views

My emacs does not use the LaTeX-includegraphics-extensions option in my .emacs file

I tried to customize my .emacs file adding the options to the macro command \includegraphics. I use Emacs 25.3.1 on MacOS. My .emacsfile is as follows: (package-initialize) (custom-set-variables '(...
1
vote
1answer
115 views

Electric behavior of dollar sign using AUCTeX

I'm trying to turn $...$ into an electric pair, just as say (...). So I tried this solution, and it works fine on my older machine, running Emacs 24.3.1 and AUCTeX 11.87. However, on a newer ...
2
votes
1answer
95 views

TeX-folding creates visual newlines (AucTeX)

I rarely find myself asking questions since about everything has already been answered somewhere; not this one though. I use Emacs 25.3.2 with AucTeX 12.1.1 on Ubuntu 16.04 and for a while now, ...
1
vote
0answers
57 views

View command does not open pdf while in AUCTeX mode

Sometimes, after havin applied latex to my .tex file, instead of executing okular --unique my.pdf emacs tried to execute okular --unique my.pdf#src:332#("/folderToMyTex/my.tex" 0 61 (org-attr nil)) ...
2
votes
1answer
40 views

Run command on region AucTeX

I would like to run force-compile (see Run TeX-command-run-all when there are no changes in .tex-file) on a region of my LaTeX document. (defun force-compile () "Set the file modification times on ...
0
votes
0answers
163 views

AUCTeX on Windows: LaTeX found no preview images

I realize questions along this line have been answered before, but I couldn't an answer that worked for me. My setup: Windows 7 emacs 25.3 - the GNU windows build (not Xwindows, not cygwin) cygwin ...
0
votes
1answer
34 views

AUCTeX's TeX-complete-symbol with flyspell

I'm trying to make use of the autocomplete facilities of AUCTeX using M-TAB (actually, through the equivalent binding C-M-i), but apparently, when using flyspell-mode alongside with LaTeX-mode the ...
4
votes
2answers
69 views

Forbidding variable font sizes

In LaTeX mode, the content of \frametitle{...} gets a bigger font size. How can I prevent that from happening? And is there a general to prevent /all/ variation in font size? (I wish emacs would ...
1
vote
1answer
181 views

DBus error when running TeX-evince-sync-view

I am trying to get my LaTeX View command to work properly in Emacs, but for some reason I just can make it happen. Whenever I hit C-CC-C and enter the View command, Emacs automatically suggests TeX-...
1
vote
1answer
95 views

Weird TeX syntax highlighting issue

I running Emacs 25 on Debian 9.0 stretch. The version is 25.1+1-4+deb9u1. I have a local copy of AUCTeX installed via Melpa. The relevant line in M-x list-packages is: auctex 11.88.3 ...