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 ...

2
votes
1answer
22 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 ...
1
vote
2answers
22 views

Advertise a binding for TeX-next-error in AucTeX

How can I advertise a binding for TeX-next-error in AucTeX?I There are several bindings for next-error, normally C-x `, M-g n, M-g M-n. With (put 'next-error :advertised-binding "\M-gn") I will see ...
0
votes
1answer
23 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
36 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
79 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
29 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
15 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
67 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
22 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
35 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
70 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
0answers
34 views

LaTeX code in org mode does not fontify correctly

AUCTeX has very nice font lock, I like font-latex-fontify-script most, which makes that scripts are raised or lowered. Here is an example. And I also enabled prettify-symbol-mode which make the ...
0
votes
1answer
74 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
32 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
14 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
92 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
77 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
34 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
71 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
41 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
41 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
42 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
29 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
37 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
36 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
71 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
179 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
88 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
44 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
54 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
71 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
85 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
268 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
120 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
107 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
82 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
51 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
39 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
153 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
30 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
65 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
157 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 ...
0
votes
0answers
63 views

preview-latex not working for remote files

When I run 'C-c C-p C-b' on local machine everything compiles, and I can see preview of my pics, tables and equations. Then I try to compile the same project on my remote machine using local emacs in ...
2
votes
1answer
154 views

AUCTeX error “Symbol’s function definition is void: texmathp”

From time to time I am having trouble using auctex properly. That means, after typing-in C-c C-f C-e I receive the following error message: Symbol’s function definition is void: texmathp Sometimes ...
0
votes
1answer
66 views

How to automatically install Auctex if certain package is unable to be activated on startup?

every time I git clone my configuration of Emacs into a new machine and start Emacs, there will be error message in Emacs: error: Unable to activate package 'company-auctex'. Required package 'auctex-...