Questions tagged [auctex]

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

4
votes
1answer
1k views

AUCTex indentation settings

I don't really like how AUCTeX indents latex code, and overall I find it pretty unpredictable (I guess I'm not used to the way it works). Some modes just bind the tab key to "move the current line so ...
4
votes
1answer
367 views

Permanent Highlighting in AUCTeX

I want to highlight text regions in my Emacs/AUCTeX/LaTeX document in a "textmarker style". Furthermore, the highlighting should save permanently. These features are provided by highlight.el and ...
4
votes
1answer
708 views

Drag and drop in AUCTeX

I already asked this question on the AUCTeX mailing list via Gmane but can't find the question in the mailing list's archive. Therefore I ask here, too. Since I'm writing a document with many weird ...
4
votes
0answers
415 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 ...
4
votes
0answers
296 views

Maths without paper sheet [closed]

I would like to know if it is possible to write Maths on latex without having to write a first draft on paper? As far as I'm concerned latex writing seems to demand a separation between the thinking ...
4
votes
0answers
133 views

how to launch skim from auctex on mac os? [duplicate]

Possible Duplicate: Launching an external PDF viewer from Emacs/AUCTeX on a Mac OSX fails. I am using emacs 24.2.1 with mac os (Mountain Lion). I am using auctex to edit my latex document. I do ...
3
votes
1answer
1k views

AUCTex Installation

I installed Emacs with AUCTex using the following code in Ubuntu 13.10: sudo apt-get install texlive-base emacs23 auctex preview-latex I followed these instructions, but the Code that should be ...
3
votes
1answer
267 views

Redefining keymaps of math symbol in AUCTEX

I am a newbie here. I want to redefine keymaps of math symbol in auctex I wanted 'I to be \int and '8 to be \infty, so I changed LaTeX-math-default in auctex-11.89.4/latex.el as follows (?I "infty" "...
3
votes
2answers
202 views

Impossible to select text and, then, autoformat it with Emacs+AUCtex

With Emacs+AUCTeX, I was able to select text (with the shortcut CTRL+SPACE) and, then, format this text. For example, it was possible to select a sentence (the text is highlighted) and to press C-c C-...
3
votes
3answers
5k views

Problem with AUCTeX, graphicx, pdfTeX and \pdfoutput not equaling 1

I've been using Emacs + AUCTeX for several years now, and all of a sudden I started getting the follow error on all documents that have compiled fine before: ERROR: Package pdftex.def Error: PDF mode ...
3
votes
2answers
255 views

replacing texexec with context when compiling from auctex

When I launch the ConTeXt command from AucTEX Command menu (or with C-c C-c), AucTEX calls for texexec and compilation fails since texexec relies on ruby dependencies that are not installed under my ...
3
votes
1answer
243 views

AUCTeX: How to toggle between \( \) and \[ \]

I have TeX-electric-math[1] set to replace $ with \( and \) for inline equations. In the documentation[2] it claims that repeatedly pressing $ while in the active math region, you can toggle between ...
3
votes
1answer
694 views

AucTeX - Turning inline mode into displaymath and vice versa

Usually, when redacting math stuff, I deal many times with the following situation : I have written some formula in a displaymath environment and, when compiling, realize it should look better inline ;...
3
votes
1answer
677 views

In Emacs (with AUCTeX), if i use <C-c '> to see errors, it copies the command <C-c %>

I don't know why, but since recently my Emacs is behaving strangely. As usual I compiled using C-c C-c to call LaTeX, then there were errors and it asked me to type (as usual) C-c '. but when I did it ...
3
votes
1answer
255 views

auctex, hooking into wrapping specific environment

I do a lot of editing using Emacs and auctex, some of this involve wrapping certain parts of the manus with a certain environment. This is quite easy using transient-mark-mode and C-c C-e. But I'd ...
3
votes
2answers
475 views

Add -shell-escape option to the LaTeX invocation of preview-latex in AUCTeX

I need preview-latex to use the -shell-escape option when it invokes PDFLaTeX, which is required by the minted package for syntax highlighting, as it invokes python. How can I do that?
3
votes
3answers
1k views

error catching in AUCTeX

When working with AUCTeX, I experience an unexpected behavior regarding error catching. In particular, when I hit C-c C-c, and there are errors, then C-c ` does two things: Splits the window and ...
3
votes
1answer
164 views

use beamer auctex'hooks with class file derived from beamer

I have written my own beamer-derived .cls file to avoid copying and pasting my usual preamble. A MWE would be \NeedsTeXFormat{LaTeX2e}[1995/12/01]% \ProvidesClass{own_beamer}[2018/06/19 my own slides ...
3
votes
1answer
264 views

automatic formatting of reference label

I am using emacs and AUCTeX and would like to change one particular behaviour: When I insert a reference using C-c ), if the target reference is an equation, the reference is automatically included in ...
3
votes
2answers
343 views

Insert unicode character in auctex math mode

I use emacs with auctex to run lualatex. Is there a way to modify the math input of auctex, e.g. modify LaTeX-math-zeta, bound to the keystroke <`z>, so the unicode character ζ instead of \zeta is ...
3
votes
1answer
200 views

Make Emacs ignore “mismatched” \index parentheses

I'm indexing a LaTeX document using Emacs and AUCTeX and RefTeX. One thing that makes it harder to match delimiters in the document (or to spot mismatched ones) is the propensity of Emacs (or maybe ...
3
votes
1answer
393 views

Running latex (pdf) interactively in AucTeX

When I am Running latex interactively, as I like, emacs is opening a new buffer-window with output from the LaTeX compiling process. Fine! -- I like to see the processing outut. BUT I am used to that ...
3
votes
1answer
5k views

How to uninstall TeX Live on Mac which is installed through command “sudo port install texlive +full”?

At the beginning, my purpose is to set up AUCTeX with Emacs. I just do like below Download AUCTeX, then cd to the directory, make and sudo make install. It works well when the .tex file only ...
3
votes
1answer
185 views

AUCTeX: turn off autoindent

This isn't TeX, per se, but it is about writing TeX, so perhaps it is appropriate. I find that AUCTeX's autoindent works in a way that runs counter to how I work. In case I am not clear, for ...
3
votes
1answer
161 views

Auctex: Prompt for required arguments when Auctex inserts a theorem environment?

So I have defined a theorem environment/style in a separate structure.tex file, and I want to add this theorem environment to the set of Auctex environments when using C-c C-e. However, I also want ...
3
votes
1answer
209 views

expl3 syntax highlight in emacs

AucTeX is not highlighting properly the expl3 code; not in the .dtx file, not in the derived .sty file. The macros are not highlighted after the first occurrence of _. Should I some how manually load ...
3
votes
1answer
279 views

Invoke complete compilation chain in AUCTex with C-C C-a

I'm trying to use AUCTeX's C-c C-a (TeX-command-run-all) to invoke the complete compilation chain (includind calling biber) for building the following MWE: \documentclass{article} \usepackage{...
3
votes
1answer
96 views

AUCTeX calls makeindex without file extension

I note that AUCTeX calls makeindex without file extension, e.g., makeindex tmp instead of makeindex tmp.idx. It means if there is a subdirectory with the same name as the first part of the file name ...
3
votes
2answers
2k views

Exporting .org files to LaTeX - Error

I'm new to EMACS (on Ubuntu) and I have started using the org mode to begin with. I tried to convert my .org files into LaTeX only to see an error saying pdf was not produced Upon checking the error ...
3
votes
1answer
247 views

AuCTeX startup is slow

I have Emacs 24.4 with AuCTeX 11.88, running on windows 8.1, on a strong computer. Any time I run emacs, opening the first tex file takes 6 seconds, even if the tex file empty. This happens either ...
3
votes
1answer
1k views

LaTeX error for siunitx in a longtable environment

I've been working on a large document which makes frequent use of \include{}ed longtable environments and siunitx. Recently, longer expressions using siunitx have been causing compile errors which I ...
3
votes
1answer
875 views

TeX error: “Error occurred after last TeX file closed” How to fix this with emacs? [duplicate]

I have recently started to use Emacs editor to type latex documents. For a while everything was going smooth and fine but one good day I got this annoying error message while compiling my document. It ...
3
votes
1answer
690 views

How do I use AUCTeX to perform forward search/synchronization in an included document?

I’m trying to sync my .tex file with the .pdf output with a forward search on OS X using Emacs + AUCTeX and Skim.app. I have added the following code to my Emacs configuration: (setq TeX-auto-save t) ...
3
votes
1answer
1k views

latex preview in emacs unable to run ghostscript

So, on Windows 8, emacs, trying to use preview-latex. Each time I get the same error: Preview-PDF2DSC finished at Mon Oct 13 12:55:42 PDF2DSC sentinel: Searching for program: permission denied, ...
3
votes
1answer
388 views

AUCTeX: How to edit environment templates

With (C-c C-e) AUCTeX allows to insert arbitrary environments. In my case I want to change the default aling-environment from \begin{align} \label{eq:145} \end{align} to insert comments in order ...
3
votes
1answer
157 views

Running AUCTeX on Windows - problem writing files

I love AUCTeX, and use it on an Ubuntu machine all the time. Right now, however, I am stuck with a Windows machine and would like some help getting around a problem. Whenever I try to compile my .tex ...
3
votes
1answer
2k views

Emacs + Auctex, Latex environment

I'm writing a document in LaTeX. The document is divided in .tex documents and compiled using a Makefile. My question is, could I see the dvi/PDF for the section of the document that I'm already ...
3
votes
3answers
3k views

Aquamacs + AUCTeX inline preview

I tried to search for the solution, but I couldn't even find references to this problem. I'm trying to use Aquamacs+AUCTeX as my LaTeX editor. One of the major features available in this setting is ...
3
votes
1answer
406 views

Emacs, AUCTeX, RefTeX and biblatex's multicite commands

I've been giving a chance to Emacs (with AUCTeX and RefTeX), but I'm still stumbling quite a lot. I've gotten the hang (and appreciated) the RefTeX way to add a citation (as described in, e.g. how to ...
3
votes
1answer
456 views

Automatically replace input with accents by their safe code for accents

I was checking this: Automatically replace open quote with accent, and it is actually similar to what I want. Since I'm starting with Emacs, and everything seems admissible to be automatized. Because ...
3
votes
1answer
350 views

Turn off AUCTeX's changing double quotes to single quotes

I use Emacs, with AUCTeX. When I type a double quote character " AUCTeX changes it to a pair of single quotes, either `` or ''. I often need double quotes in this document; how can I turn that ...
3
votes
1answer
943 views

Configuring auctex for pdf viewer

I'm on Ubuntu 13.10, Emacs 24.3.50.1, TeX Live 2013, AucTeX 11.87.2 (from ELPA). I've followed the instructions given by this page on enabling Okular (I'd rather use Evince, though), but this doesn't ...
3
votes
1answer
141 views

Maintain display of arguments for certain folded environments with AUCTeX

When working with some environments (function and friends from l3doc prompted this), it is desirable to have the environment's arguments visible at all times: Some text that, in reality, shouldn't be ...
3
votes
2answers
1k views

Xdvi to Emacs inverse search not working in Emacs 24.3.1 / AucTeX-11.87 in Ubuntu 12.04

I'm trying to use AUCTeX to write my LaTeX documents. However I'm having issues with performing inverse search from Xdvi to Emacs. Software Specifications I currently use Emacs 24.3.1 / AUCTeX-11.87 ...
3
votes
1answer
968 views

Using \eqref with RefTeX

How can I open the equation selection buffer in RefTeX automatically when entering \eqref in Emacs? I have the following line in my .emacs file (setq reftex-label-alist '((nil ?e nil "~\\eqref{%s}" ...
3
votes
1answer
331 views

Narrow to Environment in AUCTeX

I'd like to be able to use some org-mode-like features inside of AUCTeX. In org-mode, you can narrow the buffer to a node or you can flatout send the node to a separate buffer for editing. How can ...
3
votes
1answer
575 views

auctex does not parse own sty file

a own sty file is not parsed to find commands, it means they can not use with C-c C-m I use the following .emacs (load "auctex.el" nil t t) (load "preview-latex.el" nil t t) (require 'tex-site) (...
3
votes
1answer
540 views

limiting align-current in LaTeX-mode

When working on a LaTeX document in Emacs align-current aligns & and \\, but does so for entire sections at a time. Anyone have any idea as to how one limits its range (in a new macro) to say the ...
3
votes
1answer
90 views

Emacs+AUCTeX: improve emacs support on cls and sty file

Considering the well-polished work on the support of tex file in Emacs by AUCTeX, it is quite confusing the support on .cls and .sty files is rather weak. For example, the \if statement is never ...
3
votes
1answer
222 views

Handling left-to-right inside right-to-left paragraphs using Emacs and AUCTeX [closed]

I'm using Emacs to typeset a document which has English as its main language but which will use Hebrew and Greek as well. You can see on my screenshot how the \footnote command shows two open ...