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
119 views

How to create a small bibtex file from a bigger one?

Q: how do I create a stripped-down bibtex file based on the citations used in a given paper? I have a single, master bibtex file that contains thousands of entries. For most papers, I only ever use ...
1
vote
0answers
52 views

AUCTeX folding: don't display error

Here is a common beamer slide: \begin{frame} \frametitle{Test} \begin{itemize} \item \textbf<1>{Item one} \item \textbf<2>{Item two} \end{itemize} \end{frame} This is what it ...
0
votes
1answer
115 views

AUCTeX set LaTeX-default-tabular-environment back to “tabular”

When I use the package tabularx in a tex file, if I insert table environment, the inner environment will be given as tabularx instead of tabular when the package tabularx is not used. Normally this ...
2
votes
1answer
110 views

improve AUCTeX macros like `\frac` and `\stackrel`

While using AUCTeX, the macro \frac is quite intelligent that when I just type C-c C-m frac RET, it will put the cursor in the first pair of braces, as \frac{(cursor here)}{} However, when I have ...
2
votes
3answers
153 views

Auctex imenu add frames to list?

I use imenu in auctex. For beamer slides, it only offers me the \section-commands as entry points. How can I teach imenu to also offer all frames? (Which is an environment: \begin{frame}....\end{frame}...
1
vote
3answers
611 views

How to make Emacs start using the Xetex engine as default

I am using Emacs to edit all the stuff I'm writing. As I make extensive use of fontspec, I would like to configure my Emacs (running within OpenSuse Linux)so as to start using the xetex-engine without ...
2
votes
1answer
30 views

Prevent AucTeX from changing font within some tags

When I'm using AucTex, I tend to have problems with how the package formats the fonts I use within tags such as \textit{}. It appears that AucTeX wants to display an italicized version of the buffer's ...
0
votes
1answer
216 views

I Have Installed Emacs and AUCTeX, What Else?

I have a Macbook. I just installed Emacs and AUCTeX. I then installed MacTeX. When I open a .tex file, and try to compile it into pdf, it gives an error message of "AUCTeX cannot find a working TeX ...
-1
votes
1answer
75 views

How to install AUCTeX on a reformatted Macbook and set up to create PDF?

I just reformatted my Macbook. How can I install Emacs with AUCTeX on it, and set it up to compile to PDF?
1
vote
1answer
296 views

Is there a simple way to create a custom LaTeX environment template?

I'm writing lots of LaTeX beamer slides with AUCTeX. Each slide starts as follows: \begin{frame} \frametitle{\secname} \framesubtitle{\subsecname} \end{frame} Is there a simple way to bind this ...
3
votes
1answer
115 views

disable strange comment behavior in AUCTeX

When I have a commented line in my TeX file, eg some text that is not commented |%% here is a comment followed by more uncommented text (the | represents point), and I hit RET, point is moved past ...
3
votes
0answers
96 views

AUCTeX auto parse class file in same directory as TeX file

I have a class file hmcpset.cls which defines some macros and environments. If I have it in the same directory as a TeX file, which uses \documentclass{hmcpset}, I would like AUCTeX to parse the ...
3
votes
1answer
119 views

How to tell Emacs to keep indentation in algorithmic environment?

I frequently find myself typesetting algorithms, and I choose the algorithmicx/algpseudocode package for that. I like the package, it is simple to use and has everything I typically need. The problem ...
2
votes
1answer
223 views

Fontification of custom LaTeX macro

I have defined a macro \mpunct{...} which I would like to be displayed in the same face as \mbox{...} is (i.e. green, not red as the rest of the text in math mode). I don't know if it matters, anyway,...
2
votes
1answer
45 views

Query-replace in multiple LaTeX environments, narrowing each in turn

I am trying to come up with a Elisp function that narrows a buffer to a certain LaTeX enviroment (table, figures, ...), does some query-replace-regexp inside the narrowing, then searches for the next ...
1
vote
1answer
210 views

Use RefTeX to manage a global bib database

I would like to have the following workflow. First, I create a global bib file, which contains all bibliography entries that I may use across all projects. Then, for each project, I can create an ...
0
votes
1answer
69 views

Explain the usage of C-c C-s in AUCTeX

AUCTeX manual says Command: LaTeX-section arg (C-c C-s) Insert a sectioning command. • If arg is a list (selected by C-u), go downward one level. What does it mean? I've tried C-u <...
1
vote
1answer
345 views

Making AUCTeX use tabs for leading indentation doesn't work

This answer says how to make AUCTeX use tabs for leading indentation. However, it doesn't work for me and I don't understand why it doesn't. After adding the code to my init file, LaTeX-mode just ...
0
votes
1answer
366 views

AUCTEX won't create dsc file

I'm using Emacs24 on windows with AUCTEX for Latex. When I try to toggle preview it doesn't show, insteed there is a little "not working" picture on each equation and I get an error Running `...
2
votes
1answer
241 views

C-c C-v to not switch focus to Evince?

Whenever I run C-c C-v to view the corresponding part of the PDF of the point, the focus switches to the PDF viewer (evince in my case). Is it possible to make the focus stay in Emacs?
0
votes
1answer
116 views

fr<TAB> is not inserting \frac{}{} in CDLaTeX

I typed fr<TAB> as is written in the manual but got only a fr and a tab. The \frac{}{} is not correctly inserted and so does sq. Why is this happening?
1
vote
0answers
463 views

TeXLive 2017 generates “LaTeX: problems after <n> pages”

I just upgraded to TeXLive 2017 as I needed one of the package updates. Now, whenever I process a file, I get the message above (I'm on Mac OS Sierra). It appears that the file processes correctly and ...
8
votes
1answer
2k views

Emacs setup for LaTeX after (use-package) verse

How to make this configuration file work with use-package with regard to AucTeX, RefTeX and LaTeX. I usually write latex rahter than pure tex documents. Current Working Emacs Configuration (load "...
2
votes
1answer
367 views

how to make smartparens insert “` and ”' instead of ``'' in latex-modes

Smartparens is quite useful, but I just do not understand its documentation. How do I make smartparens insert "` and "' instead of `` and '' when pressing " in latex-mode? Remark (because formating ...
1
vote
0answers
28 views

Use all the codes in the existed equations as the backend for autocompletion when type new equation

I find that I often have to suffer typing some similar latex codes many times in different equations or the same equation. So it will be convenient that all the codes in the existed equations in the ...
2
votes
1answer
328 views

Auto-completion of round bracket in Auctex

When using Auctex to type tex files, round bracket ( can't auto-complete for me. But [ and { can do. How can I fix it? According to introduction of LaTeX-electric-left-right-brace, this variable is ...
0
votes
2answers
1k views

Spelling check in Emacs 25.2 on Mac OS Sierra

I am new to Emacs and I have a hard time to have spelling check when I use Emacs+AUCTex. Here is a list of what I have done so far: I read on a post saying that I should not install Flyspell. So I ...
1
vote
0answers
151 views

How to debug a(n) .emacs that doesn't work correctly, but also doesn't throw any errors? [closed]

I currently have an Emacs/AucTeX setup where emacs --debug-init doesn't throw any errors, but things still don't work as expected. This being the case, I don't really know how to debug my .emacs file ...
1
vote
1answer
30 views

Where does the output of the `\showthe` command go to under AUCTeX?

Consider the following LaTeX document. \documentclass{article} \begin{document} \showthe\parindent \end{document} According to p. 215 of Donald Knuth's The TeXbook, 20th revised printing (Addison-...
2
votes
1answer
97 views

In Auctex, how could I fold acronyms?

Auctex comes with a folding mode that already folds most of the uninteresting things. However, acronym macros are not folded. How can I instruct Auctex to fold acronym macros (e.g., \ac, \acp, \acf, ...
2
votes
1answer
235 views

Fold entire preamble in AUCTeX

Can AUCTeX be configured to fold the entire LaTeX preamble (i.e., hide everything before \begin{document})? For example, it would be nice if the the following document: \documentclass[letter,11pt]{...
1
vote
1answer
316 views

SumatraPDF.exe as default PDF viewer

I'm using emacs (GNU Emacs 25.1.1 (x86_64-w64-mingw32) of 2016-09-17), and trying to define SumatraPDF as my default PDF-viewer for LaTeX. After some trials, nothing happens, and I have no idea why... ...
5
votes
1answer
678 views

How to pass flags to the LaTeX compiler with AUCTeX?

Consider the following two excerpts. The imakeidx package's user manual states (version v1.3e, 2016/10/15, Section 1 Introduction, p. 2): depending on the distribution and the shell editor that is ...
0
votes
1answer
252 views

How to get AUCTeX to automatically generate a`TeX-engine:luatex` file-variable directive upon creating a new .tex document?

Is there a way to cause AUCTeX to automatically generate the line %%% TeX-engine: luatex in a new .tex document as it does with other file-variables, such as TeX-master?
2
votes
2answers
1k views

How to create a new TeX document with a `TeX-master` file-variable set to `t`?

When creating a new TeX document, AUCTeX asks what the master file should be, for instance: The value specified is written into the file as an Emacs file variable (see here). For example, choosing ...
1
vote
1answer
120 views

Stop AUCTeX asking how much space I want to insert between rows in tables

I'd like to avoid being asked how much vertical space I want to insert at the end of a row in tables and have C-c C-j behave like C-u C-c C-j.
3
votes
1answer
871 views

preview-latex with LuaLaTeX

I'm trying to configure AUCTeX for LuaLaTeX, and compiling works fine with this additions in my .emacs: (defun my-latex () "Latex mode customizations" (auto-fill-mode t) (reftex-mode t) (TeX-...
3
votes
1answer
217 views

Make glossary with `C-c C-c`

I have many documents with glossaries which I used to build using this script: pdflatex "$documentname.tex" makeglossaries "$documentname" pdflatex "$documentname.tex" pdflatex "$documentname.tex" ...
3
votes
1answer
748 views

How to get rid of the auto folder with .el files?

I'm using Emacs 25.1, and I use it primarily for LaTeX with AucTeX. Some time ago in the directories of my .tex files, there started to appear a folder named "auto" with .el files in it. The .el files ...
1
vote
1answer
647 views

AUCTeX doesn't run bibtex even though .emacs file is set up appropriately

I created a simple BibTeX file as well as a simple LaTeX file that references said BibTeX file. However, when I printed out the LaTex file in pdf format by running C-c C-a (which, according to the ...
0
votes
1answer
541 views

How to activate AUCTeX support for beamer without preamble?

Usually, AUCTeX activates beamer-specific settings (e.g. syntax highlighting) depending on \documentclass. In my LaTeX templates, however, I have separated the preamble from the rest of the document ...
1
vote
0answers
147 views

How to highlight in the mode-line that a compilation process is running in AUCTeX?

As compiling LaTeX documents can take a while, I would like to be able to quickly and effortlessly check whether the compilation process is still runing. How can I achieve this with AUCTeX? I know I ...
0
votes
1answer
1k views

AUCTeX cannot find a working TeX distribution

I tried to compile, this error message appears. ERROR: AUCTeX cannot find a working TeX distribution. Make sure you have one and that TeX binaries are in PATH environment variable I have installed ...
1
vote
0answers
49 views

What is the cause of this inconsistent behaviour of TeX-command-buffer when narrowing?

When editing medium sized .tex files, I often find it convenient to make use of the narrow command C-x n n (narrow-to-region), usually in combination with the mark section command C-c * (LaTeX-mark-...
2
votes
0answers
49 views

Make helm-find-files work with `\input{file}` in latex files

If the cursor is on file of a line \input{file} in a latex file, helm-find-files doesn't recognize that I want to open file.tex, however calling ffap does. If I write \input{file.tex} it also works ...
2
votes
1answer
84 views

DocStrip support in AUCTeX

Right now, I am documenting a larger LaTeX package project by converting the files into DocStrip files. Therefore I am currently creating a lot of .ins and .dtx-files in Emacs. Actually I am using ...
0
votes
3answers
1k views

error message when previewing latex snippet in .org file

I am a brand new emacs user and I want to be able to view snippets of LaTeX in my .org file. My OS is Ubuntu 16.04, I have installed texlive-full, and I have installed AucTex and org using the Emacs ...
2
votes
1answer
88 views

How to insert a docstrip tag environment in AUCTeX

I am working on literate programming in LaTeX. Actually, I am coding a lot of dtx files, which contain both the code and its documentation. When working in Emacs, it uses AUCTeX and switches into ...
2
votes
1answer
791 views

AucTeX doesn't seem to be aware of my TeX-view-program-list

I wanted to set up auctex to use mupdf as the pdf viewer it ran when I do C-c C-v. So I customize-variable on TeX-view-program-list to include a line for MuPDF and customize-variable on TeX-view-...
1
vote
1answer
124 views

Don't fill minted environments in AUCTex

When running M-x LaTeX-fill-environment I don't want code in a minted environments to be formatted. I tried adding minted to LaTeX-fill-excluded-macros but that didn't have any effect on the filling. ...

1 2 3 4 5 9