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
4
votes
2answers
118 views

Optional argument in AuCTeX definition of environment

I want to create a style file for the tcolorbox environment. I have the following: (add-hook 'LaTeX-mode-hook (lambda () (LaTeX-add-environments '("tcolorbox") )) ...
2
votes
1answer
216 views

Inserting electric braces in AUCTeX

This is a question a friend of mine had; figured posting here might give quick responses. Old version in new language, après Name How do I define the mapping ^ |--> ^ while ^^ |--> ^{}. ...
11
votes
1answer
226 views

Gradually learning the keybindings provided by AUCTeX

If I do M-x forward-char, Emacs gives a very useful message You can run the command "forward-char" with C-f. Considering the fact that Emacs can find all LaTeX keybindings in the file latex.el ...
1
vote
1answer
108 views

Regexp not working

I messed up my latex code; I need to replace \cite[42]{source}. with .\cite[42]{source} and \cite{source}. with .\cite{source}. I tried \\cite\(.*\)\}\. -> .\\cite\1\} but I got an error: Invalid ...
1
vote
1answer
437 views

Detection of a LaTeX math syntax error at Emacs level

Assume that I have mistakenly written $\signa$ instead of $\sigma$ in a TeX file. Considering the fact that all correct math commands are stored in the file latex.el under LaTeX-math-default constants,...
1
vote
1answer
101 views

Disable auto overlay prompt in AUCTeX?

Is there any way of disabling AUCTeX from auto-promping for optional overlay options in a Beamer document? I use global overlay options, and the prompting for local ones can be annoying when writing ...
1
vote
1answer
90 views

Detection inside general LaTeX (not necessarily Math) commands

This question is related to how to detect if inside a LaTeX math environment?. How to do the correct settings in .emacs in such a way that the variable texmathp takes the value t (like in math ...
0
votes
1answer
263 views

How to define custom compile commands in auctex?

I'm using TeXLive 2014 on MacOS X 10.6 and I'm currently working with Aquamacs 2.5. I'm currently using two different shell scripts for compiling my LaTeX document (thesis), which are located in ~/...
0
votes
1answer
117 views

AUCTeX's pdf viewer doesn't open when Hebrew is the default polyglossia language

Consider the following LaTeX document. \documentclass{article} \usepackage{libertine} \usepackage{fontspec} \usepackage{polyglossia} \iffalse \setdefaultlanguage{hebrew} \fi \begin{document} ...
4
votes
1answer
635 views

How to determine the AUCTex TeX engine?

How can I find out which TeX engine my AUCTeX uses? How can I change the TeX engine my AUCTeX uses (specifically, (a) to LuaTeX, (b) to XeTeX)? Following this post, I tried to inspect the value of the ...
9
votes
2answers
963 views

How to find out what my AUCTeX version is?

How can I find out what my AUCTeX version is? I have Googled this question to no avail.
11
votes
3answers
804 views

How to delete a LaTeX macro while preserving its text content?

In TeXStudio by hitting ALT+DEL in a LaTeX macro like this \macroname{content} while the cursor stands just before the first { will result in deleting all that except its content (as shown below). ...
8
votes
3answers
579 views

Search and replace through a multifile project in AUCTeX?

I am about to adopt Emacs to be the only editor I use in all what I am writing including LaTeX documents. I came from WYSIWYG editor which served that purpose fairly nice, namely TexStudio or TXS for ...
11
votes
3answers
7k views

How to make auto-complete work in AucTeX mode?

I want auto-complete (ac) to work when I am inside AucTeX mode. I get all packages from MELPA by package installation. This is my relevant code in init.el file: (require 'package) (package-...
4
votes
1answer
1k views

multiple files in LaTeX?

I currently use emacs to write and compile LaTeX files using the key combo: C-c C-f. Now this is all well and good, but now I'm working on a much bigger project that is divided into many chapters. ...
2
votes
2answers
240 views

Keeping track of a pdf viewer spawned via AUCTeX?

When using AUCTeX with pdflatex, one can run C-c C-c (TeX-command-master) or C-c C-v (TeX-view) to spawn a PDF viewer. I use Evince on Debian Wheezy, in case it's relevant. This might sound a ...
1
vote
1answer
314 views

How to force the variable 'bidi-paragraph-direction' taking the value 'left-to-right' in a math environment in LaTeX-mode

One of the great features of Emacs is its ability to handle bidirectional support for the right-to-left languages (like Hebrew, Arabic and Persian). Note that even in these languages mathematical ...
1
vote
1answer
522 views

How to prevent ispell from checking inside mathematical formulae

By invoking M-x ispell, ispell says that 'ij' in the following formula is incorrect. How to permanently prevent ispell from this behavior. $\phi_{ij}$
3
votes
4answers
843 views

Autocomplete environments like in TeXStudio

TeXStudio autocompletes environments. How can I get AUCTeX to do the same? I can begin typing an environment name (say myenvironment) and, after entering a part of it (my, myenv, etc.), I hit ...
0
votes
1answer
75 views

increasing the time of search-forward using sumatra-forward.el

sumatra-forward.el allows to do a forward-search from a place in a tex file to the corresponding place in its compiled pdf file viewed by SumatraPDF. The command to do the job is M-x sumatra-jump-to-...
12
votes
1answer
207 views

Auto-Indenting \if statements with AUCTeX

The current AUCTeX behaviour for primitive tex code involving if-like statements is to indent the conditional statement at the same level as the surrounding condition. I.e. code such as \if@...
7
votes
1answer
198 views

How can I disable quail input methods in LaTeX formulas?

If you set an input method (for example via M-x set-input-method RET cyrillic-translit RET) you can type Cyrillic characters using a US keyboard: Emacs will use transliteration rules to convert Roman ...
5
votes
1answer
177 views

Recompile tex file without modification

I \input{b.tex} in a.tex. I made changes to b.tex, and tried to recompile a.tex by C-c C-c in AUCTeX, but it didn't work since a.tex hadn't been changed. How can I recompile then?
3
votes
2answers
92 views

Make siunitx.el automatically recognize values and unit of unformatted text

I use siunitx to typeset units in LaTeX. This is quite painless when typesetting it directly because of Emacs's siunitx.el (see below). However, sometimes I copy exercises or solutions containing ...
2
votes
1answer
865 views

How to define backslash as keybinding in AUCTeX

I have inserted the following code in my init file. This code insert a space+\ (ie, " \") when typing \ in a buffer. Despite the fact that the function ddd works without problem in any buffer, the ...
7
votes
1answer
184 views

How does AucTeX display superscripts?

latex-mode is has a nice display of superscripts and subscripts. Not only are they reduced in size, but they are respectively raised and lowered a bit relative to the current line. Q: How can I make ...
5
votes
1answer
289 views

AucTeX: can I hide comments?

Is there a setting in auctex that can hide (fold) comments (paragraphs which start with %)?
3
votes
1answer
54 views

Do not auto-capitalize when editing an equation in AUCTeX or org-mode

I would like the auto-capitalize minor mode not to capitalize mathematical text in AUCTeX and org-mode. To avoid this, when running in either of these modes, auto-capitalize should only capitalize ...
3
votes
1answer
297 views

Yasnippet prompt when using commands interactively?

How can I use yasnippet to invoke LaTeX commands interactively? If I use auctex to insert \usepackage it starts a minibuffer which lets me select the desired package (including tab completion). ...
7
votes
1answer
743 views

Select images in auctex with preview

If I insert an image into a latex file (via \includegraphics) auctex lets me select the file and inserts the filename. However using this dialogue, I can only choose the filename and cannot see ...
4
votes
1answer
117 views

shortcut for \neq in AUCTeX

I cannot find a shortcut for the command \neq (not equal) in AUCTeX by the answers provided to my previous question A comprehensive list of shortcuts provided by AUCTeX I would be great if it would ...
12
votes
1answer
543 views

changing the role of the underline and the minus-sign just in LateX-mode

During the work with tex files with auctex+emacs (LateX-mode), I use more frequently _ (underline) instead of - (minus sign). The same as ^ instead of 6. The inconvenience is that I should press more ...
5
votes
2answers
257 views

A comprehensive list of shortcuts provided by AUCTeX

Is there a document (pdf if any) that contains a comprehensive list of all shortcuts provided by AUCTeX? I mean a kind of AUCTEX Reference Card but for all shortcuts. This question is related to my ...
3
votes
1answer
141 views

Is there a shortcut for \mathrm in AUCTeX?

Is there a build-in shortcut for inserting \mathrm{} and putting the cursor between {} in AUCTeX?
5
votes
1answer
169 views

Recognize LaTeX partial files (with no preamble) as LaTeX

I installed auto-complete and also auto-complete-latex so to be able to use it with LaTeX files. Because in a document I use an external file with the preamble commands in it, Emacs recognises only ...
1
vote
0answers
64 views

Suppress new buffer when running typeset command (C-c C-c) in AUCTeX

When running C-c C-c to typeset/compile the LaTeX code in the current buffer, a second buffer pops up to show the compilation -- is there a way to suppress this buffer if there are no errors?
17
votes
1answer
2k views

How to indent items in LaTeX/AUCTeX itemize environments?

Q: how can I get "proper" indentation of LaTeX itemize environments in auctex? Here's where I'd like to be with an item in an itemize environment: \item line is indented two spaces relative to the ...
7
votes
1answer
3k views

How to use AUCTeX and outline-minor-mode together for folding? [duplicate]

I'd like to easily hide or show the text below individual headings in a large Latex document. I thought this should be possible with outline-minor-mode, however I can not get it to work. I can ...
8
votes
2answers
128 views

Auto-inserting last used sub-/superscript values in math formulae

I use AUCTeX for type-setting mathematical texts. Often I have to type equations with sums, integrals etc. which all have the same sub- or superscripts. I'd like to autofill the current sub-/...
1
vote
0answers
58 views

TeX-doc doesn't recognize most symbols and packages

When running TeX-doc on this buffer (with ? indicating point) \documentclass{article} \usepackage{geo?metry} \begin{document} \end{document} not only is geometry not the default (there is no ...
6
votes
1answer
278 views

Make AUCTeX compile each \include to a separate file

In LaTeX it is customary to put the content of different chapters into different files which are then pulled into a master file using \include{FILENAME} statements. One can then use the \includeonly{...
12
votes
1answer
543 views

how to detect if inside a LaTeX math environment?

Q: is there a way to detect if point is inside a LaTeX math environment? How would one detect whether point is or is not inside a LaTeX math environment, whether delineated inline by $...$ or by ...
5
votes
3answers
441 views

See LaTeX code and math preview at the same time with preview-latex

With AUCTeX and preview-latex, I can see the preview of math equations with C-c C-p C-p. But I can't see its LaTeX code. I wonder how can I see both the code and preview of math equations at the same ...
3
votes
1answer
807 views

Why does preview-latex not show some equations?

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 containing a math ...
3
votes
1answer
81 views

What is catdvi used for in AucTeX?

In Ubuntu, AucTeX has an addon called catdvi. What is its use by AucTeX? Some other questions I have include: How can I invoke catdvi in my gnome-terminal? C-c C-c will invoke a GUI viewer. For TeX-...
11
votes
2answers
4k views

How to call pdflatex under TeX-PDF-mode?

I am already in TeX-PDF-mode. When C-c C-c and type in pdflatex, it doesn't run. How can I run pdflatex in TeX-PDF-mode? Note: I don't change my emacs configuration file. Thanks.
12
votes
2answers
918 views

Aligning multi-lined equations and tables in latex-mode

Let's say I'm editing a latex in Auctex's latex-mode, and I have the following equation. This is just indented with indent-region. \begin{align} \phi & = a + b + c + d \\ & = a + ...
10
votes
1answer
92 views

Speed up TeX-insert-macro on \input

In latex-mode when I use TeX-insert-macro to type a \input{...} macro, Auctex conveniently offers filename completion, which is great. However, it seems to search a lot of places to compile the ...
14
votes
2answers
2k views

How can I preview TeX formulas inline in arbitrary modes?

How can I get TeX previews inside modes other than AUCTeX or org-mode? I'd love to see TeX equations in jabber, erc and markdown. If I ever switch to Emacs for email, I'd presumably like to see ...
9
votes
1answer
485 views

Overriding fill-paragraph in LaTeX mode

I would like to change the behavior of fill-paragraph in certain modes (e.g. LaTeX-mode provided by AucTeX). I could just rebind the key M-q, but I am also using evil-mode whose implementation of ...