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

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

1
vote
1answer
46 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
27 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
0answers
14 views

AucTeX switches to TeX from LaTeX

sometimes when I do C-c` to see the buffer containing errors, the engine is switched from LaTeX to TeX. How do I prevent/correct that? Using GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)...
0
votes
1answer
39 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
23 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
26 views

Preview-LaTeX erronously calls Preview-DviPS for pdf mode, but corrects itself in the second run

Problem Description I have AucTeX 12.1 with emacs 24.5.1 installed in Ubuntu LTS 16.04. The preview-latex stopped working properly. In the following minimal working example, \documentclass{...
0
votes
0answers
30 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
7 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 ...
0
votes
1answer
48 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
64 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
31 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
11 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
33 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
38 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
36 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
39 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
23 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
20 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
0answers
22 views

Reftex inhibits file local variables on windows machine

I am trying to load file local variables for my *.tex documents. Everything works fine on my linux machine. However when I open the same file with the same emacs configuration on a windows machine, ...
0
votes
2answers
30 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
64 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
103 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
68 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
58 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 ...
2
votes
1answer
37 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
38 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
43 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
63 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
79 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
171 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
104 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
96 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 ...
1
vote
1answer
68 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
46 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
38 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
126 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
28 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
61 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
108 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
90 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
53 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
132 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
56 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-...
1
vote
1answer
69 views

Replacing autoref command format specification in auctex's font-latex-match-reference-keywords-local

With some help I have redefined the autoref command to take an optional argument, see https://tex.stackexchange.com/questions/428229/autoref-with-optional-argument-text-in-generated-link Now I am ...
0
votes
0answers
36 views

Auctex: flyspell checks all the libraries used during compilation

I'm using in my (Auc)Tex configuration the great flyspell mode. When a new tex file is opened, I would like to highlight all the spelling errors in the text. So for now, I do it by running flyspell-...
2
votes
1answer
34 views

Using a custom TeX .fmt file is Emacs/Auctex

I am attempting to use a plain TeX format, say, foo.fmt (which is findable with kpsewhich), with Emacs/AUCTeX (actually Aquamacs with built-in AUCTeX). I'm unable to get AUCTeX to recognize the custom ...
0
votes
0answers
45 views

File mode specification error with AucTeX

Whenever I try to open a LaTeX-file, I am getting the following error message: File mode specification error: (wrong-number-of-arguments #[de app &rest options) ... This error just appeared out ...
1
vote
1answer
107 views

Run TeX-command-run-all when there are no changes in .tex-file

When editing .eps- or .tikz-files I want to run TeX-command-run-all using the binding C-c C-a but since the LaTeX-file did not change (I only edited the .eps for example) I have to run my LaTeX ...
1
vote
0answers
152 views

Set up auctex with emacs to use latex(not pdflatex) but generate a pdf at the end

I asked the question on setting up auctex with emacs on tex list but I still could not find the end solution, unfortunately. Here is the link to my original question: https://tex.stackexchange.com/...
1
vote
1answer
73 views

Prompts for equation label information

When inserting an equation with C-c C-e it prompts if a label is wanted, if the label is wanted it inserts \label{eq:1}. Is it possible to modify this prompt to allow me to enter the label name ...