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
6
votes
1answer
901 views

Setting MUpdf as default viewer in AUCTeX

How can I set MUPDF as the default viewer in AUCTeX (I mean setting it in the variable Tex-view-program-selection)? Many thanks
0
votes
0answers
177 views

Emacs takes a very long time to open a TeX file

After a fresh install of Emacs (GNU Emacs 25.1.1 (i686-w64-mingw32) of 2016-09-18) and AUCTeX (last version from ELPA) on Windows Vista, when I open a TeX file, Emacs takes an extremely long time to ...
2
votes
1answer
167 views

Fix indentation of LaTeX code without wrapping lines

If I select everything in LaTeX-mode (AUCTeX) and auto-fill the region, the indentation of all lines is corrected. This is the part I like. However, it also breaks all long lines (which I think is ...
6
votes
1answer
255 views

Formatting of usepackage commands in LaTeX document

I'm trying to use AUCTeX edit LaTeX files. The beginning of the document I just wanted to edit looks like this: It's not neatly organized, inconsistent in many ways, and I should probably change it ...
3
votes
1answer
180 views

AUCTeX: Turn on syntax highlighting for natbib commmands under BibLaTeX

I'm using natbib commands like \citep and \citealt under BibLaTeX thanks to the option natbib=true. Yet AUCTeX won't highlight them the way it highlights, for example, \cite (or \parencite, which is ...
1
vote
0answers
61 views

Auctex silent compilation

When I compile a file with pdflatex from Auctex one of the buffers that I have opened shows the output of this operation. How to stop this behavior and keep the previously opened buffers?
3
votes
1answer
295 views

Prompt for inserting label when using theorem style environments in latex

When inserting the environment equation (by C-c C-e equation) in latex-mode, emacs shows a prompt to insert a label. It is desirable to have the same prompt for a theorem-style environment like lem ...
0
votes
1answer
263 views

configuring and using ispell [duplicate]

I have been able to install Emacs 25.1 and AUCTeX 11.89.6 (this is the number that I have after installing it with MELPA directly from Emacs) that I am using on a Windows 7 machine. I am trying to ...
6
votes
1answer
281 views

Use AucTeX with “latexmk -pvc”: jump to errors

Currently, I edit LaTeX files by running latexmk -pvc in the background to generate PDF automatically upon change to be previewed in Evince. However, when there is a syntax error, AucTeX is not able ...
2
votes
1answer
96 views

Narrow and move between latex environments

When writing LaTeX presentations with the beamer class in emacs+auctex I would like to have a function (and keybinding) that does the following three things: narrow to the next frame environment if ...
1
vote
1answer
185 views

Close error list automatically after latex compiled successfully

If I compile my latex document in auctex, an overview window of the errors pops up where I can select specific errors and jump to that source code position. However after fixing the errors and ...
2
votes
1answer
273 views

How do I configure my own shortcuts in Auctex (Emacs)?

I have a problem that I could not solve with the help of google. a) How do I have to adjust the .emacs file in order to use the Windows-Key (Super-Key) for shortcuts. I am working on a Linux system ...
2
votes
1answer
136 views

How to debug seemingly random crashes of AucTeX?

My Emacs crashes seemingly randomly. Is there a way to view the Messages buffer after it crashed? Or is there another standard way of approaching this problem? I'd like to see an error message so that ...
2
votes
0answers
955 views

preview math formula in org-mode

I would to include and preview some math formula inside an org-mode buffer, but can't find any way. I've read about auctex but how can I enable it in a non tex-mode ? Don't know really from where to ...
2
votes
1answer
77 views

Ways to automatically insert a space after a LaTeX command (inserted by an AucTeX shortcut, e.g. `g) if the next keystroke is a letter

With AucTeX, one can insert many LaTeX commands using shortcuts. For example in a math environment (e.g., between $ $), the shortcut `g insert \gamma. Normally right after \gamma if I would like to ...
0
votes
1answer
126 views

Restrict available command options in AuCTeX

I'm using AuCTeX (v.11.89.6 with Emacs 25.1). I have no problems with it, just a small nuisance. Whenever I use TeX-insert-macro (C-c C-m) I get many options I never use. For instance, when I wish to ...
1
vote
1answer
105 views

auctex beamer, set all characters to a fixed size

I am starting to use emacs guy (precisely this https://emacsformacosx.com) and I am not always getting monospaced charters as I get in emacs when using terminal. I have tried putting this in my .emacs ...
2
votes
1answer
83 views

Taking action depending on the presence of particular message in the echo area

I have my proper function to run latex, say my-tex. Sometimes one should run latex two times to get references right. A message like below in the echo area appears to tell this. How to identify ...
1
vote
0answers
834 views

Spacemacs Latex: how to make view command tile vertically with emacs window?

I'm using Spacemacs Latex layer, which uses Auctex. If press space m v for the first time, the document viewer opens up in full screen over my emacs window. After, it only updates the window and keeps ...
0
votes
1answer
139 views

How to use outline-minor-mode to hide some exam class exercises in auctex

I use the exam document class in auctex to write exams for my students. I want to use the features provided by the outline-minor-mode to hide all the exercises I have finished and only show the one I ...
1
vote
1answer
839 views

How to set PATH variable to latex, so that I can use latex layer? [closed]

I installed the latest version of MacTex, and I am sure the latex is in the Libray/TeX/texbin/, I just don't know how to set the PATH variable, also I cannot install the AUCtex, I assume these two are ...
1
vote
1answer
122 views

Debugging erratic error

The following error appears every other time that a .tex file is opened: Wrong number of arguments, setq, 3 Enabling toggle-debug-on-error gives this backtrace. How to go about debugging this? I've ...
2
votes
0answers
51 views

Can I reuse Org's syntax highlighting in LaTeX mode?

Org-mode has a magical org-src-fontify-natively setting. With this on, org highlights each code snippet using the corresponding mode's font-locking support. Can I use this in LaTeX-mode? It would ...
2
votes
1answer
266 views

AucteX Citation Color

When inserting a reference in a LaTeX document (using Auctex) I normally type: \cite{joebob_2010} where "\cite" shows up in blue font, while "joebob_2010" shows up reddish/purple. I like this ...
1
vote
1answer
197 views

How to perform a search for a string inside math environments in a tex/latex document

I have a long tex document and I would like to perform a search for finding some string inside math environments. Is there a search function already provided by auctex to do this? Other solutions are ...
0
votes
1answer
95 views

Image tooltips doesn't work in other buffers

Consider the following content of a file called image-tooltips.el which I source into my .emacs file via load-file. Displaying the image tooltip works if I put a ;\includegraphics{myfile.jpg} into ...
0
votes
0answers
176 views

Opening a .tex file on Windows emacs 25.1

When I try and open a .tex file on emacs 25.1 under Windows I now get this error: File mode specification error: (dbus-error No connection to bus :session) And cannot typeset anything using the ...
3
votes
0answers
401 views

prettify-symbols-mode not working in auctex

In my .emacs file, I have (global-prettify-symbols-mode), and if I visit a .el document, I see the lambda character instead of lambda. My understanding is that in a .tex file I should see the beta ...
3
votes
1answer
128 views

“Post compile hook” in auctex

How can I make emacs execute a script every time when a latex-compilation (via auctex and latexmk) finished successfully? In particular I want to send a SIGHUP signal to mupdf to make it reload my pdf ...
2
votes
1answer
715 views

How can I automatically add some local variables info to a C-x C-f new (.tex) file?

I use auctex to edit my .tex files. Each time I create a new file .tex file via C-x C-f, I want to insert two local variables informations: % Local Variables: % coding: utf-8-unix % TeX-engine: ...
0
votes
1answer
330 views

electric pair of any length, using AUCTex

According to https://www.emacswiki.org/emacs/AutoPairs the package smartparens supports an electric pair of any length for example \{. My question about the possibility that the built-in electric-...
1
vote
0answers
193 views

How to indent a tex file like org-mode?

When I'm editing a org-mode file, the structure of mine is like this(you may need configuration in init.el): * A section This is the content of the section #+BEGIN_SRC lang code here #+...
2
votes
2answers
235 views

Disable pop-up compilation buffer in AucTex

How can I set AucTex to either (a) not pop up that annoying compilation buffer every time I C-c C-c or (b) only pop it up if compilation is not successful? (b) is preferable, but if it's too hard then ...
1
vote
0answers
33 views

Line break and indentation in AucTeX [duplicate]

I am using AucTeX in combination with visual-line-mode but sometimes I find it somewhat confusing that a broken line does not follow the "current indentation" which makes it harder to see environments....
1
vote
0answers
69 views

Good way to match symmetric delimiters

I am trying to match $$ resp $ pairs to switch into latex-mode via polymode in a markdown file. $$ is the delimiter for displayed math in this case and $ for inline math. I know that this is not a ...
1
vote
1answer
657 views

compiling bibliography doesn't work with emacs (missing file *.bbl and its log file *.blg). Works on command line

without emacs i have this doc.tex file: \documentclass{article} \usepackage{fontspec} \usepackage[backend=biber]{biblatex} \usepackage{csquotes} \title{} \date{} \author{} \bibliography{...
2
votes
1answer
233 views

How to go to the previous error in latex document

After compiling a LaTeX document with errors I can go to the first error via TeX-next-error to the second one by executing this macro again etc. After the last error pressing it once more results in ...
0
votes
1answer
42 views

Can I remove the indentation in {reftex-toc}?

I am new user of auctex/reftex and the reftex-toc-function is brilliant. However, on my small screen a lot of space is wasted when I have a document with only chapters, or even sections. (I put the ...
1
vote
0answers
149 views

How can I get the Latex compilation report by using AUCTeX in spacemacs

How can I get the compilation report by using AUCTeX in spacemacs? For example, when I use WinEdt in Windows, i can obtain the following compilation report: LaTeX Compilation Report (Pages:14) ...
7
votes
0answers
350 views

Symbol menu in auctex math mode

in AucTex math mode several symbold are already defined. Fom latex.el: (defconst LaTeX-math-default '((?a "alpha" "Greek Lowercase" 945) ;; #X03B1 (?b "beta" "Greek Lowercase" 946) ;; #X03B2 (?g "...
2
votes
0answers
74 views

Fixed indentation for sectioning commands

I'm looking for a particular LaTeX indentation feature regarding sections, subsections etc. Specifically, I would like to start the text within a section (assuming \section is the highest sectioning ...
0
votes
1answer
236 views

AUCTeX previews are not displayed correctly with beamer

I am working on a beamer presentation with AUCTeX on OS X. When I use preview (C-c C-p C-b) on the following document the equation is displayed right after \end{frame} and not in the line of the ...
1
vote
1answer
374 views

Why can't AucTeX see my TeXLive binaries? (Cygwin on Windows 7 x64)

I have installed the TeXLive distribution. From emacs running in cygwin mintty, the LaTeX binaries are visible from my PATH environment variable. I installed AucTeX using the built in Emacs package ...
5
votes
1answer
129 views

Inform AucTeX about index style file

I am currently working on a document for which I use a custom index style file. When I type C-c C-c to compile my document, Emacs/AucTeX offers to run its Index command (which I assume runs makeindex)....
3
votes
1answer
870 views

Installing AUCTeX, GNU Emacs 24.5.1

I'm very new to Emacs. I've installed AUCTeX version 11.89.4 using package manager (list-packages, select auctex, install it). It works, at least it shows compiled pdf result from test .tex file in ...
2
votes
1answer
313 views

Run TeX-command on current buffer

I have bound TeX-command to a key f7 to compile my document with latexmk. When I press it, and it needs to be compiled, it compiles it without asking. If not, views it, without asking (that's because ...
1
vote
0answers
50 views

Reftex compatibility with newclude

I want to use RefTex with newclude. In particular I want Reftex to recognize \include* as a legitimate include file command. I've already added include* in Reftex include file command but it doesn't ...
0
votes
1answer
51 views

Auctex's siunitx macro absorbs a backslash

If I insert \SI{50}{\m} into a latex file with auctex and LaTeX-environment doesn't insert the backslash before m, i.e. \SI{50}{m} instead of \SI{50}{\m}. However the backslash is required such that ...
4
votes
2answers
481 views

AUCTeX isn't loading local per-package style files, is ignoring `TeX-auto-local`

My AUCTeX setup isn't loading any local per-package auto-generated style files. Suppose I have a simple package doc-preamble.sty % doc-preamble.sty \usepackage{cleveref} \newcommand*{\mycmd}[1]{...
1
vote
1answer
82 views

Can I combine natbib syntax and export as RTF?

I generally use auctex to generate PDF documents. However, I now need to generate an RTF file to integrate my contribution into a collaborative Word document. Using org-mode, I would like to use ...