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
7
votes
0answers
359 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
240 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
380 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
132 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
883 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
321 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
53 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
491 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
83 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 ...
4
votes
0answers
51 views

AUCTeX automatic extraction: beyond regexps

In my custom style support file, I would like to add custom code to parse an environment. That is, my LaTeX code looks like this \begin{foobar} some complex stuff \end{foobar} and I don't want to ...
2
votes
1answer
45 views

Declaring custom completions to AUCTeX

How do I declare custom completions for command arguments to AUCTeX? I have a LaTeX package that defines a number of macros. I'm writing the Elisp style support manually as some of the TeX code is ...
2
votes
0answers
62 views

How can I keep the TeX-error-overview buffer automatically being updated in particular frame in AUCTeX?

TeX-error-overview provides a nice overview of errors when compiling a TeX document, however the buffer does not get reused when calling it a second time. Moreover, it would be nice if it would ...
2
votes
1answer
3k views

Use PDFView as default AucTex PDF Viewer

I'd like to use PDFView mode as the default PDF reader when editing LaTeX code in AucTeX, using Emacs 24. For example, after compiling with C-c C-c, redoing this command would open the PDF file in a ...
1
vote
2answers
549 views

How can I set a key binding to run two other key bindings?

Specifically, I want the binding 'C-x C-a' to do 'C-x C-s' then 'C-c C-a'. (Context: I'd like to save my TeX document, then have AUCTeX render it.) How can I do this? I don't want to map 'C-x C-a' to ...
0
votes
0answers
141 views

Changing AUCTeX viewer results in errors claiming TeX-engine is wrongly set, although it is set correctly

This question was completely rewritten, see the previous version. I have this XeLaTeX file: \documentclass{article} \usepackage{fontspec} \begin{document} \thispagestyle{empty} \pagestyle{empty} ...
2
votes
2answers
378 views

Error in process sentinel: No error or warning to show

I am receiving the above error when trying to compile a LaTeX document in emacs 24.5, using auctex 11.89.3. Previously, I would get either "Run LaTeX again", or "Compiled successfully". This happened ...
2
votes
1answer
928 views

Set latex-preview-pane-mode as default pdf-viewer for acutex

Basically, i want my emacs to run latex-preview-pane-mode (which is a emacs function, provided by this package) instead of executing the external application evince. After reading the acutex docs ...
0
votes
1answer
567 views

How to configure Auctex to automatically use pdflatex for all Latex files?

I mean by adding an entry to the .emacs file.
6
votes
1answer
146 views

delete-selection-mode and $

Using Aquamacs 3.2 on Mac OSX Yosemite. I run with delete-selection-mode set, and it mostly works as advertised. However, if I'm in TeX mode (AucTeX), make a selection, and then type $, the selection ...
1
vote
0answers
92 views

Running emacs server via systemd prevents inverse search and nice view

Background: I am using systemd to run my emacs server and my usual workflow always involves invoking emacsclient. Both server and client are on the same computer running Debian Jessie. The method is ...
0
votes
2answers
50 views

Query replace and commenting out

I want to comment out all environments say myenv in a tex-file. I can find them with the regexp: \\begin{myenv}\(.\|\n\).*?\\end{myenv} (instead of \n I had do type C-q C-j). But what would be the ...
1
vote
3answers
1k views

Making pdf-tools work after successful compiling on mac os x

After installing the required dependencies with homebrew, I was able to compile pdf-tools . But I cannot make it work (I cannot see the pdf on emacs after compiling) I would like to know if somebody ...
3
votes
2answers
657 views

Detect whether a package (AUCTeX) is installed from .emacs

In my .emacs, I distinguish between two scenarios: AUCTeX is not available. Then I load my customizations for the basic TeX mode — let's call that (my-tex-mode-customizations). AUCTeX is available. ...
1
vote
0answers
18 views

Overlapping table of figure (and tables) label when running auctex from a non master file

The problem is: When I run C-c C-a (TeX-command-run-all) from the master file it goes well and produce the following output, but then, when I edit other .tex file (abstract.tex for instance) and run ...
4
votes
1answer
95 views

AUCTeX - removing an environment from auto-complete list

I use the auto-complete feature of LaTeX-environment often. I'd like to be able to remove entries from the auto-complete list. I usually need to use the packages amsmath and amsthm, which introduce ...
4
votes
0answers
98 views

AUCTeX indenting after \newcommand

If I use a command that begin a new block (according to AUCTeX), e.g.: \newcommand\Test{\begin{abstract}} And then I start my document: \begin{document} AUCTeX will indent my code as if I typed: \...
2
votes
1answer
87 views

`^ is giving \uparrow instead of \hat in AUCTeX with CDLaTeX

I am very new to Emacs using AUCTeX + the minor mode CDLaTeX to type math documents. According to what I read in Auctex reference card the keybinding `^ should give me \hat but this is giving \uparrow ...
5
votes
0answers
69 views

How to investigate “color bleeding”?

I frequently have color-bleed issues in emacs, most often with AUCTeX: all of a sudden and for no apparent reason, the line I'm writing will be fontified as math. First things first: no, I do not ...
3
votes
1answer
51 views

AUCTeX parsing question

I have a problem with AUCTeX loading the correct hooks with a Beamer file. If my file contains line breaks in the documentclass line, the style hooks are not loaded. (Thus I have no frames in my ...
0
votes
1answer
76 views

Function call inside mode hook has no effect but manual execution of function from buffer works

I use AucTeX as my latex major mode. I have been trying to setup the minor mode latex-pretty-symbols which is available from melpa. I did: ;; Install from package-list-packages (require 'latex-pretty-...
1
vote
1answer
339 views

After upgrading AUCTeX, (La)TeX mode is unusable (invalid-function TeX-auto-add-type)

I installed AUCTeX through the package interface. This pulled version 11.89 from ELPA. Before that, I was running a version of AUCTeX provided by my operating system (Ubuntu 12.04), which is 11.87. ...
3
votes
1answer
239 views

Ignore specific warnings in AUCTeX

I'm going through a LaTeX document fixing a bunch of broken references. I use AUCTeX. I ran TeX-toggle-debug-warnings to make TeX-next-error jump to warnings about references. However, my document ...
3
votes
1answer
548 views

Run flyspell-buffer automatically after emacs loads a (tex)-file

I want to load flyspell-mode and execute flyspell-buffer automatically after emacs loaded a tex file. I tried the following which loads flyspell-mode but doesn't seem to execute flyspell-buffer. What ...
4
votes
1answer
213 views

AucTeX - insert environment menu command

I have a big LaTeX project divided in many files; the \documentclass statement and the preamble are in the main file, that in turn includes many (~20) other files, one for every chapter. One of the ...
5
votes
1answer
305 views

How can I prevent auctex to indent a new environment inside another environment?

Suppose I enter the following code using LaTeX-environment \begin{tikzpicture} \begin{pycode} a = 2 \end{pycode} \end{tikzpicture} Then auctex automatically indents as shown above. ...
7
votes
1answer
535 views

Multiple major modes in one buffer (e.g., python-mode & LaTeX-mode)

Using the LaTeX-package pythontex I one can insert python code into the latex document which is executed (and printed to your latex file if you want) if you run latex. I use auctex for editing latex ...
2
votes
1answer
258 views

Make reftex-toc work with multiple files

I'm using Emacs 24.5 with AUCTeX and RefTex to edit a multi-file project. It consists of one main file with %%% TeX-master: t to mark as master. The 'slave' files all have %%% TeX-master: main to link ...
0
votes
1answer
339 views

Run latexmk with luatex or pdflatex depending on the local variable

I want to run Latexmk automatically with the correct TeX-engine as set in the local file variable at the end of the file, for example: %% Local Variables: %% TeX-engine: luatex %% End: In my .emacs ...
0
votes
1answer
62 views

How to use .ltx as extension for LaTeX documents?

Usually I name my LaTeX files using the extension .ltx like file.ltx. How can I configure Emacs+AUCTeX in a way that it recognizes those files and load AUCTeX?
2
votes
0answers
95 views

A part of my .emacs sometimes takes effect, sometimes doesn't [closed]

A use Emacs 24 on an Ubuntu computer. The following are parts of my .emacs file. This is for activating flyspell: (autoload 'flyspell-mode "flyspell" "On-the-fly spelling checker." t) (autoload '...
5
votes
1answer
250 views

Handling left-to-right inside right-to-left paragraphs using Emacs and AUCTeX

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 ...
3
votes
1answer
168 views

Type single quotes in AucTeX

When type " in AucTeX, either `` or '' is typed. How do I do similar action with single quotes? Typing ' won't give me ` or '. EDIT I'm not asking about the double quotes---I agree with what double ...
1
vote
2answers
857 views

Unable to locate preview-latex.el after installing the AucTeX package in Emacs24

I've installed AucTex as per the official instructions with package-list-packages, however there is no trace of preview-latex. Helm displays no results for M-x auctex. After installing Auctex with ...
11
votes
1answer
5k views

How to let AUCTeX open PDF with pdf-tools

Some TeX/LaTeX editor has support for embedding PDF viewer, and forward/backward search support. I want to configure AUCTeX and pdf-tools to this result. I found a discussion in mailing list. https:...
1
vote
3answers
1k views

Org-mode does not load Latex previews at startup

In org-mode, Latex previews are not loaded at startup when using #+STARTUP: latexpreview. I've also tried customizing org-startup-with-latex-preview with no effect. Only way to preview latex fragment ...
1
vote
0answers
144 views

Auctex & Ghostscript config

I have a problem with my Auctex + Emacs in LateX Preview functions. They are located in my USB together TexLive packages, Sumatra pdf-reader & all Ghostscript tools. Where can I include ...
5
votes
1answer
463 views

LaTeX Mode and Listings with $-signs?

I am using LaTeX-Mode and need to include some listings which contain dollar-signs: \begin{lstlisting}[caption=Meteor Server: Bereitstellen einer entfernten Prozedur,label=lst:meteor-server-publish-...
13
votes
1answer
235 views

Highlighting missing references

Is it possible for auctex to display missing references differently to ones which are in the bib file? Currently, all references look identical so it's impossible to tell at a glance which citation ...

1 5 6 7 8 9