Stack Exchange Network

Stack Exchange network consists of 175 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]

AUCTeX is a package for writing (La)TeX, ConTeXt, docTeX and TeXinfo in Emacs and XEmacs.

7
votes
0answers
3k views

Getting SyncTeX to work with Emacs, AucTeX and Skim (OS X El Capitan)

I'm attempting to set up LaTeX to work with Emacs on my Mac, running OS X El Capitan 10.11.5. I can compile everything all right, but I'm unable to use forward/inverse searches with Skim. From ...
4
votes
0answers
413 views

error: PDF2DSC sentinel: Wrong type argument: arrayp, nil

I am trying to get AUCTeX on Emacs to preview formulas but it doesn't seem to work and when I click preview, it produces the following error: PDF2DSC sentinel: Wrong type argument: arrayp, nil I ...
3
votes
0answers
54 views

AUCTeX: changing BiBTeX templates

when creating bibliographies (i.e., bib-files) with AUCTeX, one can use pre-formatted templates (e.g, for @Book, @InCollection etc.). When printing such a template a problem I have is, that it comes ...
3
votes
0answers
247 views

Preview-latex images wrong locations. (offset by 1)

I've been writing some results with various equations in align blocks using latex. I've recently begun using AUCTeX with its preview functionality, which is really cool. Things start out great, but as ...
3
votes
0answers
1k views

Emacs + Skim + Live Preview?

I have been using Latexian for a while, but some of its limitations and my natural tendency to use emacs, is prompting me to take a look at my work environment again (OSX 10.9.2). I have seen some ...
3
votes
0answers
501 views

How can I change the color of a \enquote quotation inside Emacs?

When I paste a text inside quotation marks into Emacs+AUCTeX, AUCTeX formats it with a soft red color (see the screenshot below at the first line). I like this color. However, I'm using csquotes ...
3
votes
0answers
171 views

How can I 'uniquify' RefTeX label defaults?

When you create a new section within AUCTeX (using C-c C-s) and give the section a name, RefTeX will prompt you for a title, insert the section, and then prompt you for a label. This label is auto-...
3
votes
0answers
178 views

AUCTeX/RefTeX, the `import` package and cross reference

Today I switched to the import package with the hope that it will simplify the management of the files of my text. It surely did that, but.... It broke RefTex in emacs. Now, I cannot lookup my labels ...
2
votes
0answers
88 views

Highlighting forward search in Okular

I have a functional setup that does bidirectional search between emacs (auctex) and okular but lacks the highlighting of the position in pdf. In "conventional" editors, e.g. texstudio, when doing ...
2
votes
0answers
348 views

Error adding new value to LaTeX-math-list with custom function

I am using Auctex with math mode enabled. One of my favorite features is insert \mathcal with the key sequence "[backtick] c". I decided to try and customize the variable LaTeX-math-list so I can do ...
2
votes
0answers
266 views

AUCTeX folding and square brackets in math mode

I want to use the folding functionality of AUCTeX, mainly to replace math macros with the corresponding symbols. But at the same time I want to continue to use square or curly brackets additionally to ...
2
votes
0answers
565 views

AucTeX turn off line breaks

In AucTeX I do not want line breaks to appear when I open the .tex with a different editor e.g. on writeLaTeX. I want lines to appear as if they are broken, so I can see everything in the default 80 ...
2
votes
0answers
187 views

PreviewMacro for todonotes

I like auctex with Preview and would like my todonote \todo's shown in my emacs browser. However, this will either not show at all or consist of the \tikzpicture building blocks, namely each line ...
2
votes
0answers
1k views

Emacs 24 with AUCTeX in Ubuntu 13.10

I installed AUCTeX from the Emacs package manager. Then I configured it by typing ./configure OPTIONS. It doesn't complain and I typed make and make install. I tried to open a simple LaTeX document. ...
2
votes
0answers
79 views

Are AUCTeX forward search and inverse search meant to work with C-c C-r and C-c C-b too?

Background: C-c C-r is like C-c C-c except it's for compiling & viewing just a fixed portion (specified by the user) of a TeX buffer. C-c C-b is like C-c C-c except it's for compiling & ...
2
votes
0answers
480 views

Passing aux directory option to AUCTeX

I use Emacs and MikTeX. With the latter comes a PDFLaTeX option to move clutter in a temp-dir directory: -aux-directory temp-dir. I am tentatively trying to pass it to AUCTeX with: (setq tex-start-...
1
vote
0answers
61 views

Math symbols insertion in AUCTeX

I've been facing some trouble with math symbol insertion in AUCTeX and I'm probably missing something from the available structure and options. But as I'm struggling for a while, I might as well ask. ...
1
vote
0answers
25 views

AucTeX - Previewing Errors

I'm using the latest version of MikTeX, Ubuntu 19.04 and Emacs 26.1. Whenever I try to use inline preview (with any region, section, or environment that has inline math), I get the following error: .....
1
vote
0answers
21 views

AUCTeX inverse search with region or buffer compilation

I have inverse search working great with single-file documents with Zathura. Unfortunately, things break down when I try to do inverse search when viewing a region of my document, or a buffer in the ...
1
vote
0answers
78 views

C-c C-c does not start a viewer

I'm on a recent install of Ubuntu 18.04, with emacs 25.2.2, and auctex installed via the package manager. When I type C-c C-c to view a recently latex'ed document, Emacs launches the command TeX-...
1
vote
0answers
99 views

automatic tilde(~) before \cite in reftex

The question is the same as in this other post, that I want C-c [ to insert ~\cite instead of just \cite. However, the solution given therein as follows (setq reftex-cite-format '((?\C-m . "~\\cite{...
1
vote
0answers
233 views

AUCTeX opens unwanted compilation buffer

I followed this other post to set up some nomenclature command and ensure command afterwards etc. Everything works perfect except when I type C-c C-c Nomenclature, a compilation buffer will pop up and ...
1
vote
0answers
369 views

How to verify that AUCTeX works with latest (2017) TeXLive (actually, MacTeX)?

Last year I installed MacTeX 2016. Today I've installed MacTeX 2017. I did not delete the 2016 version, nor did I take any explicit steps to switch to the 2017 version except running the MacTeX 2017 ...
1
vote
0answers
250 views

Editing the list of environment autocompletion in AUCTeX

In Emacs the command C-c C-e prompts for an environment to insert. After pressing TAB I'd like to type just two letters eq and get equation or equation*, which I use most of the times. Unfortunately, ...
1
vote
0answers
356 views

AucTeX fails to generate previews on Mac OS X

When I try to generate the previews for the document on my Mac I get the following error on the preview: /usr/texbin/rungs -dOutputFile\=\(review.prv/tmp7722b0S/pr1-27.png\) -q -dDELAYSAFER -dNOPAUSE ...
1
vote
0answers
288 views

Problem with Reftex - how to get it to index bib for all files?

edit : here's a screencast of the problem for me : https://vid.me/uBHN I have cloned this project : https://github.com/vermiculus/smppaper I have then created a new file in the sections directory ...
1
vote
0answers
392 views

How to tell AUCTeX to not indent an environment?

I'm using the comment package for the comment environment. This environment cannot be indented, just like the verbatim environment. How can I configure AUCTeX to not indent this environment? Thanks in ...
1
vote
0answers
444 views

Cygwin Emacs+Auctex+Evince?

I am trying to get emacs, auctex and evince working together on Cygwin. The forward search works, but not the reverse search (Evince->Emacs). I tried in vain to find out if the emacs bundled with ...
1
vote
0answers
114 views

How to use AucTeX error handing

I can't figure out how to use it. Here's what happens if I process a LaTeX file that has multiple errors: C-c C-c (process LaTeX) [errors found] C-c ` (goto first error) fix errors in ...
1
vote
0answers
906 views

Auctex preview for included documents

I've two *.tex documents, a main one and another one included in main. main.tex: \documentclass{article} \begin{document} \section{Hello} \begin{equation} \label{eq:1} \frac{1}{9000} \end{...
1
vote
0answers
318 views

Two installations of texlive

I installed TeXLive 2014 complete from a DVD on Fedora 21. I have set the PATH as per the instructions to /usr/local/texlive/2014/bin/x86_64-linux and it is working correctly. While installing auctex ...
1
vote
0answers
57 views

Do I use preview-latex correctly?

I open a LaTeX file in Emacs, and press C-c C-p C-b (M-x preview-buffer) to generate math/graphics previews for the entire buffer. I find that a pdf file is generated with each page containg a math ...
1
vote
0answers
599 views

How to disable inline preview in certain parts of document while editing?

I'm using AUCTeX+emacs, and have inline preview enabled (although it could apply to other preview enabled editor like TeXstudio). My document has a TiKZ plot generated using gnuplot, and it has lots ...
1
vote
0answers
73 views

Auctex go to corresponding block between pdf and tex file

Texshop's CMD+Click can take you to the location of the current texts on its pdf/tex file. I am wondering how to do this in emacs/auctex?
1
vote
0answers
544 views

skim cannot reload file after auctex preview-latex

I am using emacs+skim to preview latex on macs, and I use auctex preview-latex from time to time. the problem is, after I run C-c C-p C-d in emacs to preview entire document, the pdf file is now ...
1
vote
0answers
846 views

AucTeX: run latexmk + viewer in one command

Question 1: I would like to have a single key combo (C-c C-a) which compiles the file (with latexmk) and displays it. This answer solves the first part. I tried adapting the answer to also call TeX-...
1
vote
0answers
116 views

How to disable Emacs+AUCTex formating for a particular chapter

Emacs+AUCTeX formats automatically the titles (section, part, ...) by increasing the font and changing the color. I would like to disable this behavior for one (and only one) chapter. This chapter is ...
1
vote
0answers
342 views

Emacs' Preview LaTeX: Using different background colors depending on environment

In Emacs' Preview LaTeX, I would like included graphics (e.g., what's inside \includegraphics) to look different than all other previewed environments. Otherwise, graphics that have black lines ...
1
vote
0answers
255 views

auctex output in shell

How to redirect the AUCTeX output to the shell buffer (M-x shell) of emacs? (= use a shell buffer instead of the AUCTeX output buffer). This way one could seamlessly combine (LaTeX) shell commands and ...
0
votes
0answers
36 views

Emacs AUCTeX keeping focus to the source buffer after runinng TeX-command-run-all

I am using Emacs AUCTeX with pdf-tools. When I compile my tex file with C-c C-a, i.e., run TeX-command-run-all command. When it is finished, my cursor moves to the generated pdf file. I would like my ...
0
votes
0answers
58 views

TeX instead of Preview, LaTeX and Command menus after upgrade of AucTeX

I upgraded AucTeX to 12.1.2, hoping that it would fix a problem with the displaying of verbatim environments. This caused a range of problems which I am trying to track down step by step. One is ...
0
votes
0answers
41 views

How do I remote compile a Latex file using a local Emacs with an Auctex module installed and Latex compiler on a different machine?

How do I remote compile a Latex file using a local Emacs with an Auctex module installed and Latex compiler on a different machine? My latex is too big for my workstation so I need to move the Latex ...
0
votes
0answers
118 views

ConTeXt fontifying in emacs 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
0answers
67 views

AUCTeX fold mode: How to fold all environments

In AUCTeX fold mode, C-c C-o C-e folds the environment where the cursor is. How can I fold all environments (not macros) in a buffer?
0
votes
0answers
85 views

Soft filling (wrap) in Auctex

Auctex has a nice feature that fills the paragraph (LaTeX-fill-paragraph) based on emacs' fill-column. This as you know extends to environments as well (C-c C-q C-e). This works fine for me when I ...
0
votes
0answers
83 views

SyncTeX stops working in a large document

I'm currently writing on a large document, using AucTeX, and pdf-tools as my pdf viewer. Today, SyncTeX stopped working correctly. Forward search is fine, but backward search doesn't work. Whenever I ...
0
votes
0answers
111 views

AUCTeX and XeTeX hiding PDF output

I'm running AUCTeX 11.88 and TexLive 2014 (I should upgrade), and have so far been using pdfLaTeX exclusively. My AUCTeX have been set up to output PDF files. My MWE example \documentclass[]{...
0
votes
0answers
75 views

AUCTeX doesn't find errors with chemmacros and tables

When I run the following code, if I type C-c C-backtick after being notified of the presence of errors, AUCTeX says no more errors and it doesn't point me to the & in excess. The log file shows ...
0
votes
0answers
291 views

Emacs AUCTex pdf view show current page

I am new to Emacs AUCTex. I've been using Texstudio and Texshop before. I find two functions in Texstudio and Texshop very useful but I do not know how to do it in Emacs AUCTex. In Texstudio and ...
0
votes
0answers
102 views

Where is AUCTeX's 'circ.tex' file located?

According to this page a sample document `circ.tex' is included in the distribution (meaning the AUCTeX distribution.) Where is this file located? My operating system's 'search' facility doesn't ...