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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

0
votes
0answers
18 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
24 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 ...
2
votes
1answer
52 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
39 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
40 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
54 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 ...
1
vote
1answer
32 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
33 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
29 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
58 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
61 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
53 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
80 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
74 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
58 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
36 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
35 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
76 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
25 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
53 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
63 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
72 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
41 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 ...
1
vote
1answer
109 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
45 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
67 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
27 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
29 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
81 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
125 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
57 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 ...
0
votes
1answer
46 views

What is the significance of “(k=v)”?

When one uses C-c C-e to insert an environment such as enumerate in AUCTeX , one is presented with the prompt (Optional) Options (k=v): in the minibuffer. I know that this is asking for options for ...
1
vote
0answers
77 views

AucTeX preview-latex not working

When i'm working in a LaTeX-File everything works as expected. Compilation and completion via company-auctex are working perfectly. However when i want to make use of any preview-functionality inside ...
0
votes
1answer
41 views

How to hide frame environment in outline minor mode?

I am using AUCTex and outline-minor-mode to produce Latex presentations with beamer. I wonder how I could tell the outline-minor-mode to hide the content of a frame. I am not into LISP by now, so ...
0
votes
0answers
47 views

C-c C-v to center focus in Evince

When running C-c C-v to view the corresponding part of the PDF at hand, the corresponding line is marked red but not centered. The marked line usually appears at the bottom or the top of the PDF. Is ...
0
votes
0answers
47 views

Synchronous run of `preview-document'

For replacing org-html-format-latex with auctex preview (or more correctly texfrag) it would be nice to run auctex preview synchronously. The code of auctex preview contains several alternatives ...
0
votes
0answers
62 views

Make adaptive-wrap tab aware

I am switching to AUCTeX as my LaTeX editor and need tab-aware automatic line wrapping. From this question on stackoverflow I gathered that adaptive-wrap is basically what I need. How can I make ...
1
vote
0answers
24 views

smartparen-latex with delete-selection-mode

In my emacs setup, if I have smartparens-mode enabled with smartparens-latex and I open a latex document, type some text then select it and type any latex special command (such as $, ", \{, etc...) ...
0
votes
1answer
72 views

png image support and pdftools

I have pdftools install and wish to use it with auctex. However, I cannot view the pdf as I get the error: PNG image supported not compiled into Emacs Output is simply the raw pdf. I am using emacs ...
0
votes
0answers
91 views

Auctex not displaying pdf correctly using pdftools

I am using pdftools with AUCTEX so that I can display output within emacs. I am using a windows system with emacs 25.3. However after compilation I get the following: %PDF-1.5 % 3 0 obj << /...
0
votes
0answers
13 views

AUCTeX and character substitution

I'm using a custom keyboard mapping in which I have Greek letters and various mathematical symbols that I frequently use (∫,∂, ecc). Of course I know the possibility to insert them directly in tex ...
0
votes
1answer
47 views

How to get list of chktex warnings?

I am using emacs with auctex and chktex lint. How do I display a list of warning that chktex detects in my document? Or how do I go to the next warning?
2
votes
1answer
98 views

AUCTeX Preview rung error

I'm new to emacs and AUCTeX and I'm having a problem with document preview (C-c C-p C-d). My LaTeX file is the following \documentclass[11pt, a4paper]{report} \usepackage{cite} \begin{document} \...
0
votes
0answers
35 views

how to treat underscore as part of word in auctex? [duplicate]

I'm using auctex, and trying to make underscores count as part of a word. There are numerous answers to this question, and I've tried the following (modify-syntax-entry ?_ "w") (modify-syntax-entry ?...
1
vote
1answer
83 views

Replace parenthesis by command

In my emacs/AUCTeX setup, when I write (, \left( or \( a corresponding ), \right), or \) is inserted automatically. Is there a way to override this so that inserting ( produces instead something like ...
0
votes
0answers
52 views

Error loading auctex on fresh emacs cygwin install

I have a fresh install on emacs on Cygwin, including the (Cygwin, not emacs) package emacs-auctex. My . emacs file is (load "auctex.el" nil t t) On opening a .tex file, I get the error File mode ...
1
vote
2answers
106 views

AUCTeX: Disable newline when electric-pairing braces in math mode

I am using AUCTeX for editing in LaTeX, with LaTeX-electric-left-right-brace enabled, so that when I press for example C-c C-m \left in a math environment, the right brace is also automatically put in ...
0
votes
0answers
23 views

AucTeX error log without 'region' file

Setting: I am currently running a fresh Emacs 25.3.2 with the Emacs Prelude distribution installed. For my LaTeX-writing I wanted to use the AucTeX-package. In particular, I installed it with the ...
6
votes
1answer
70 views

Close latex compilation window when successful

I like having TeX-show-compilation in LaTeX for large documents. However, if the compilation completed successfully, I would like the windows to be reverted or the compilation buffer to be killed. I ...