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.

Filter by
Sorted by
Tagged with
2
votes
1answer
57 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
362 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
69 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
116 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 ...
2
votes
1answer
409 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
162 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 ...
2
votes
1answer
309 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
158 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
128 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 ...
2
votes
1answer
40 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 ...
1
vote
1answer
274 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
324 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/...
2
votes
1answer
175 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 ...
1
vote
1answer
79 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
532 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 ...
1
vote
1answer
95 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
67 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
111 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 ...
2
votes
0answers
54 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
292 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
238 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
1answer
105 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
273 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} \...
1
vote
0answers
62 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
114 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 ...
1
vote
2answers
149 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 ...
5
votes
1answer
200 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 ...
2
votes
2answers
165 views

font-lock for \left and \big in auctex

I am trying to replicate http://endlessparentheses.com/improving-latex-equations-with-font-lock.html with no success, I get a "defface for ‘endless/unimportant-latex-face’ fails to specify containing ...
2
votes
0answers
46 views

Aquamacs banner for Latex got ugly — how to get the default back?

I was setting up Aquamacs as my LaTeX editor on a new laptop (been using it for 4 years on prior machine). My one problem is that the beautiful header I was expecting: Was replaced by this ugly mess:...
1
vote
1answer
144 views

What is the easiest way to detect if an `\includegraphics{*.eps}` has been used in a `TeX` document?

What is the easiest way to detect if one has used an \includegraphics{*.eps} in a tex document? (motivation: When I have used this I would like to not use pdflatex and instead use the combination of ...
0
votes
1answer
325 views

Add custom code snippets with AUCTeX

I have started using Emacs a couple weeks ago and so far I got it to do pretty much everything I wanted. Recently, I started using Emacs and AUCTeX to write a GUI specification document. For each GUI ...
1
vote
1answer
154 views

Basic AUCTeX Setup Issue in macOS and Linux

I'm trying to get AUCTeX up and running in macOS and linux and have followed the steps here. (The site has a separate guide for GNU/Linux.) My problem remains invariant between OSes, so I'm asking ...
1
vote
0answers
112 views

indent items in auctex

What I would like to achieve is a deeper indentation of lines in items in Auctex. \begin{itemize} \item This is what I would like to achieve. The beginning of the second line aligns with ...
4
votes
1answer
398 views

AUCTeX - delete 'other' files like .out, .aux, .log on successful compilation

I do not want to keep the miscellenous files created during compilation of my .tex files if the compilation is successful. I tried setting Latex-clean-output-suffixes by adding these extensions but ...
2
votes
2answers
529 views

AUCTeX does not recognize texlive installation

I am running Emacs 25 on Kubuntu 17.10. I have a texlive installation in: /home/user/texlive/2017/bin/x86_64-linux echo $PATH produces: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/...
2
votes
1answer
185 views

Change contents within {}

I am using Auctex. I found several useful shortcuts starting with C-c. But I could not find the keyboard shortcut to change content within {} if the cursor is within. So, I am editing (| indicaties ...
0
votes
0answers
89 views

lose reftex-isearch-minor-mode after refresh

I want to activate reftex-isearch-minor-mode and tried the solution in this post offered by giordano, (add-hook 'TeX-mode-hook (lambda () (reftex-isearch-minor-mode))) ; for AUCTeX it works when I ...
1
vote
1answer
207 views

outline mode: Fold everything when loading file (specifically LaTeX mode)

I am using outline minor mode for LaTeX mode and would like emacs to automatically hide all section environments when opening a .tex file. How could I do that?
6
votes
1answer
117 views

How to create a small bibtex file from a bigger one?

Q: how do I create a stripped-down bibtex file based on the citations used in a given paper? I have a single, master bibtex file that contains thousands of entries. For most papers, I only ever use ...
1
vote
0answers
50 views

AUCTeX folding: don't display error

Here is a common beamer slide: \begin{frame} \frametitle{Test} \begin{itemize} \item \textbf<1>{Item one} \item \textbf<2>{Item two} \end{itemize} \end{frame} This is what it ...
0
votes
1answer
115 views

AUCTeX set LaTeX-default-tabular-environment back to “tabular”

When I use the package tabularx in a tex file, if I insert table environment, the inner environment will be given as tabularx instead of tabular when the package tabularx is not used. Normally this ...
2
votes
1answer
109 views

improve AUCTeX macros like `\frac` and `\stackrel`

While using AUCTeX, the macro \frac is quite intelligent that when I just type C-c C-m frac RET, it will put the cursor in the first pair of braces, as \frac{(cursor here)}{} However, when I have ...
2
votes
2answers
136 views

Auctex imenu add frames to list?

I use imenu in auctex. For beamer slides, it only offers me the \section-commands as entry points. How can I teach imenu to also offer all frames? (Which is an environment: \begin{frame}....\end{frame}...
0
votes
3answers
564 views

How to make Emacs start using the Xetex engine as default

I am using Emacs to edit all the stuff I'm writing. As I make extensive use of fontspec, I would like to configure my Emacs (running within OpenSuse Linux)so as to start using the xetex-engine without ...
2
votes
1answer
30 views

Prevent AucTeX from changing font within some tags

When I'm using AucTex, I tend to have problems with how the package formats the fonts I use within tags such as \textit{}. It appears that AucTeX wants to display an italicized version of the buffer's ...
0
votes
1answer
209 views

I Have Installed Emacs and AUCTeX, What Else?

I have a Macbook. I just installed Emacs and AUCTeX. I then installed MacTeX. When I open a .tex file, and try to compile it into pdf, it gives an error message of "AUCTeX cannot find a working TeX ...
-1
votes
1answer
74 views

How to install AUCTeX on a reformatted Macbook and set up to create PDF?

I just reformatted my Macbook. How can I install Emacs with AUCTeX on it, and set it up to compile to PDF?
1
vote
1answer
287 views

Is there a simple way to create a custom LaTeX environment template?

I'm writing lots of LaTeX beamer slides with AUCTeX. Each slide starts as follows: \begin{frame} \frametitle{\secname} \framesubtitle{\subsecname} \end{frame} Is there a simple way to bind this ...
3
votes
1answer
113 views

disable strange comment behavior in AUCTeX

When I have a commented line in my TeX file, eg some text that is not commented |%% here is a comment followed by more uncommented text (the | represents point), and I hit RET, point is moved past ...
3
votes
0answers
95 views

AUCTeX auto parse class file in same directory as TeX file

I have a class file hmcpset.cls which defines some macros and environments. If I have it in the same directory as a TeX file, which uses \documentclass{hmcpset}, I would like AUCTeX to parse the ...