Questions tagged [auctex]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
439 views

How to configure the sync between latex and resulting pdf in AUCTeX?

I am running AUCTeX in Emacs 25 (latest version) on arch linux. I have searched some configuration online, but they don't work. Here is the relevant configuration: (setq TeX-view-program-selection ...
0
votes
1answer
841 views

Emacs/AUCTeX/LaTeXmk: Default compilation command only on first run?

When I hit C-c C-c to compile a document, my system is set up such that LaTeXmk is default typesetting option, and I just hit Enter to run it. The next time I do C-c C-c (without any changes in the ...
2
votes
1answer
473 views

latex and auctex, how to set up latex->dvips->ps2pdf

I am using psfrag for figures quite often and generating my figures in eps format. I would like to set up my AUCTeX to use latex->dvips->ps2pdf automatically. And at the end view the pdf file ...
1
vote
3answers
160 views

Macro for inserting subsection using AucTeX?

C-c C-s produces a dialog hook which says Level: (default section). The manual says that the code for subsection is supposed to be 3. But if one types 3 RET, after completing the remaining dialogs ...
2
votes
1answer
149 views

Unexpected behaviour when typing quotes with babel

Using AUCTeX, with \documentclass[italian]{article} and babel, when I type quotes i get "< or ">: \documentclass[italian]{article} \usepackage{babel} \begin{document} "<bla"> \end{...
2
votes
1answer
421 views

How to properly set up AUCTeX to parse macros from my own *.sty files?

I am on Windows. Here is the code I have in my .emacs file to enable AUCTeX to recognize macros I have defined in my own style files: (setq TeX-parse-self t) ; Enable parse on load. (setq TeX-auto-...
0
votes
0answers
121 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[]{...
2
votes
1answer
337 views

AUCTeX's C-c C-c gives multiple of latexmk options

I am using Emacs 25.3 on OS X El capitan. When I do C-c C-c to compile the .tex document I get the following prompt. Every one of these options actually run latexmk but somehow it bothers me that ...
4
votes
1answer
177 views

biblatex-chicago does not run biber automatically in Emacs

I'm using AUCTeX (version 11.90.2)+RefTeX on Emacs (version 24.5.2). While I'm using the biblatex package, if I do C-c C-c, it would suggest biber as default. However, if I use the package biblatex-...
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
2answers
418 views

AUCTeX: Custom biber command in local variables

I would like to set a custom biber command via AuCTeX's local variables. Consider the following example: \documentclass{article} \begin{document} hello world \end{document} %%% Local ...
0
votes
1answer
135 views

Adding extra options to BibTeX (Emacs+AuCTeX)

I am trying to customize manually my init file so that, when running BibTeX, the option --min-crossrefs=1 is automatically added. Can this be done just by changing the BibTeX command without ...
4
votes
2answers
1k views

Can not generate Preview by AUCTeX

I try to generate preview by AUCTeX (on Emacs GUI), but it displays I click on the red sign, choose View error and get /usr/bin/rungs -dOutputFile\=\(_region_.prv/tmp5971SJc/pr1-5.png\) -q -...
1
vote
0answers
249 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 ...
0
votes
1answer
70 views

How do I rebind AUCTeX C-c ` to display errors?

AUCTeX provides shortcut C-c ` to display compilation errors. This is particularly annoying on my keyboard. How can I tell AUCTeX that I want to use say C-c + instead?
0
votes
0answers
85 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 ...
2
votes
1answer
567 views

Arrowheads not showing up when drawing with tikz's automata library [closed]

I am trying to draw a state diagram for a DFA in LaTeX using the automata library from the tikz package but am having trouble drawing some of the edges: Whenever the edge goes diagonally between two ...
0
votes
1answer
162 views

How to cross-reference to a specific label with RefTeX

In LaTeX, the labels are defined as \label{eq:1}. When you want to reference to that equation, you could easily search all \label in the document by C-c ) and that command insert reference to that ...
1
vote
1answer
362 views

newcommand for creating shortcut?

I use newcommand in my preambles for creating shortcuts. For every sentence/complicated-technical-long-word, I create a newcommand such as: \newcommand{\e}{some very long technical term\xspace} And ...
1
vote
1answer
475 views

I want auto labeling with auctex+reftex

So first, i define new environment (or new theorem) like \newtheorem{cor}{Corollary} For convenience, I want C-c C-e cor RET then it display \begin{cor} \label{cor:*document name*:number} \...
1
vote
1answer
110 views

How to perform a two part “action” in AUCTeX?

I have been reading the pgf & tikz manual and I want too generate svg directly from my tex file. The manual says I need to run: lualatex --output-format=dvi example dvisvgm example I would like ...
3
votes
1answer
216 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
2answers
268 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 ...
1
vote
1answer
93 views

emacs does not detect \begin{comment} environment

In the comment and verbatim packages, there is an environment called comment, such that \begin{comment} things \end{comment} comments out things. On macos, neither emacs nor aquamacs seem to ...
2
votes
3answers
193 views

Is there a shortcut in AUCTEX/emacs that generates these escape parentheses shorthand for the math environment:

Is there a shortcut in AUCTEX/emacs that generates these escape parenthesis: shorthand for "inline math environment" \( <cursor here> \) That puts the cursor in the middle of this "mini-...
0
votes
1answer
170 views

How to use AUCTeX to create a PNG file of a TikZ picture using the 'standalone' package (macOS)?

I would like to use AUCTeX to create a PNG image of a TikZ picture using the standalone package. I use macOS Sierra. According to the standalone documentation v1.2-2015/07/15 (section 4.6 Conversion ...
1
vote
0answers
373 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 ...
5
votes
1answer
205 views

AucTeX mistakes Tikz warning as error

AucTeX 11.90 (Emacs 25.2) gives the following error instead of a warning when using Tikz Externalize: ! Package tikz Warning: The key 'up to date check=md5' is impossible, there is no macro to ...
1
vote
1answer
573 views

How to quit preview mode in the editor?

I'm using AucTex on emacs and when I hit C-c C-p C-e I am then unable to quite the preview mode. Is there any way to do so ?
0
votes
1answer
957 views

How is \documentclass an “Undefined control sequence”?

I'm using AUCTeX 11.90 on emacs (recently upgraded from elpa packages) running on Windows 7. I've created a tex file and for some reason only this one particular file gives error msgs when I compile ...
3
votes
1answer
289 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{...
1
vote
1answer
95 views

xindy with AUCTeX

Is there a way to seamlessly integrate xindy with AUCTeX so that if I execute C-c C-c repeatedly (or alternatively if I execute C-c C-a once) the AUCTex engine will know the sequence of commands ...
7
votes
1answer
1k views

What does 'Tex-master' mean?

I use AUCTeX. AUCTeX has inserted a comment at the end of my test4.tex file that reads: %%% TeX-master: "test3" What does it mean? When I try to compile and pdf-print test4.tex, the document that ...
1
vote
0answers
219 views

BibTeX bibliography doesn't display when compiling using AUCTeX [closed]

I created a simple BibTeX file as well as a simple LaTeX file that references said BibTeX file. When I compile document in AUCTeX using C-c C-a, the bibliography section doesn't appear and the ...
15
votes
1answer
2k views

AUCTeX says “LaTeX: problems after {1} page”

After upgrading from Windows 8 to Windows 10, I installed the latest version of MiKTeX (2.9.6300, 64 bit). When I use AUCTeX to typeset a document, the PDF file appears to be produced correctly, but I ...
3
votes
0answers
390 views

AucTeX/emacs unable to find a package [closed]

In my current LaTeX document I am using the "classico" package, which sets the classico font for a document (this means I can use plain LaTeX instead of xeTeX). I can compile the document with ...
0
votes
0answers
296 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 ...
3
votes
1answer
247 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 ...
2
votes
1answer
278 views

How to set syntax highlighting for \citep as same as \cite in AUCTeX?

It would be better to have uniform syntax highlighting for both \citep and \cite as it appears quite a lot in my manuscript. I tried to implement what was suggested in here like so (setq font-latex-...
1
vote
1answer
480 views

AUCTeX+RefTeX compile bibliography without explicitly providing bib file path

I'm using AUCTeX along with RefTeX in Emacs 25.1.1. My question is how to make AUCTeX to compile Bibliography without having to explicitly provide \bibliographystyle and \bibliography in every file. ...
0
votes
0answers
106 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 ...
1
vote
0answers
255 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
1answer
182 views

Rebinding key in AUCTeX which takes other argument

In AucTeX there are two useful commands: C-c C-e for inserting the environment and C-u C-c C-e for changing the environment at the point to another one. For me the latter command is quite inconvenient,...
4
votes
1answer
620 views

Emacs + auctex freezes when compiling with lualatex

Trying to compile the following using C-c C-c in emacs + auctex freezes emacs: \documentclass{article} \begin{document} asdf \end{document} %%% Local Variables: %%% TeX-engine: lualatex %%% TeX-...
0
votes
0answers
108 views

Cannot load RefTex

I try to automatically load RefTeX for all my LaTeX files. However, when I launch Emacs I get the following error: Error loading autoloads: (void-function defstruct) What this error mean and how ...
4
votes
0answers
425 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 ...
1
vote
1answer
165 views

tufte handout document class not recognized when compiled in Emacs

I don't understand why tufte handout is not recognized when I compile it in Emacs. The standard tex engine there is xetex. I understand that this might be the key problem but I was unable to figure ...
1
vote
0answers
84 views

I have an auctex file in emacs. How do I now turn it into a PDF? [closed]

I have an Auctex file open in Emacs. How do I now turn it into a PDF? Thank-you P.S.: I know this is a vague question, I simply want to produce a PDF of the "Hello World!" type example I have...
7
votes
1answer
344 views

Emacs+AUCTeX: Improve ConTeXt mode indentation

I’m using Emacs with AUCTeX in ConTeXt-mode to compose my ConTeXt documents. However, indentation is a little bit inconvenient for me. Consider the following snippet: \setuphead [section] [...
1
vote
1answer
320 views

Auctex sub/superscript formatting of single macros with arguments

E.g. in emacs 25.1 with Auctex 11.90.0 $a_\mathrm{b}$ only lowers the \mathrm and the {b} is left unmoved. Obviously I can add braces e.g. $a_{\mathrm{b}}, but I'm editing existing documents and don'...