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
1
vote
1answer
40 views

emacs auctex tabular vertical alignment of & cells

is there an emacs auctex macro or extension that auto-aligns vertically cells in a tabular? I am thinking of one where I put my cursor anywhere into this table \begin{tabular}{lll} x & 123456789 &...
1
vote
1answer
73 views

Error when generating latex previews on Windows 10

I recently went back to using preview LaTeX (previously used a while back when it was standalone and not part of AucTeX)...but see the following Postscript error when clicking on stop sign: c\:/Users/...
1
vote
0answers
25 views

Default preamble for AUCTeX latex-preview (like in LaTeXTools in Sublime Text)

I have a question: I've started using Emacs+AUCTeX for writing LaTeX documents. And I want to know whether there is any possibility for latex-preview to use some predefined preamble like LaTeXTools ...
1
vote
1answer
39 views

Inverse search on AUCTeX opens file in new Emacs window instead of main Emacs window - how to avoid that?

I am using Emacs+auctex+evince on Debian. Suppose I have a latex document main.tex which includessections/sec1.tex. When compiling with C-c C-a from within main.tex and using backwards search in ...
0
votes
1answer
27 views

AuCTeX does not work if file name has numbers?

I created a simple Hello World file with the name plan_6000.tex. The file compiles perfectly using terminal commands. However, AuCTeX throws an error saying Undefined control sequence at line 1. ...
1
vote
2answers
56 views

How to change the level of the sections with autex? [closed]

I have a document that I want to change the section to subsection, does a key combination from AUCTeX/Emacs commands to do that exists ?
0
votes
0answers
48 views

AUCTex coloring

How would you configure your .emacs file to get more coloring options in Emacs+AucTeX? My .emacs configuration returns this result:
1
vote
1answer
33 views

auctex preview-latex does not take into account newcommands

I have slightly complex symbols that I do not want to re-type in latex so I define \newcommands that abbreviate them. For example \begin{document} blah blah \newcommand{\ds}[1]{\Delta\{#1\}} \[ \{...
1
vote
1answer
112 views

AUCTeX: Format URLs with percent sign

How I can bring AUCTeX not to format percent sign within \url{}? The document will be set fine, but if some of such URLs are in a document, the source code does not look so good.
0
votes
0answers
55 views

xdvipdfmx:fatal: File ended prematurely Error 256 (driver return code) generating output

I try to set up auctex. It basically works now and I can compile and view simple files from within emacs. But there is one file working with includes that gives me: xdvipdfmx:fatal: File ended ...
1
vote
0answers
89 views

Emacs-AucTex - Preview-PDF2DSC exited abnormally with code 127 - I can't see preview-latex

Context: I am a Newbee on Emacs and AucTex. I just get started several days ago and installed some packages as some tutorials go along. I installed some packages: company, swiper, auctec, auto-...
0
votes
0answers
193 views

ghostscript: mactex conflicts with homebrew

I am using auctex and previewing equations in emacs does not work for me. It seems that the problem is related to ghostscript. I tried to reinstall ghostscript using brew, but got the following error. ...
0
votes
0answers
20 views

Cannot make preview-latex work after reopening the document

I have a problem trying to make preview-latex work on my emacs. I was writing some random text on emacs and preview-latex was working, I added some equations, in the equation environment, and use ...
3
votes
1answer
125 views

TikZ and AUCTeX: Different results

Consider the following MWE: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[thick,fill=yellow!50] (0,0) circle (3); \draw[thick,fill=orange!50] (0,0) ...
0
votes
0answers
36 views

Open PDF to Edit Spot in AucTex

I'm running emacs 26.3 on a fresh Manjaro install with AucTex installed for writing my LaTeX code. Thus, I am wondering how to make it such that, when I compile and view the LaTeX PDF, the PDF opens ...
0
votes
1answer
33 views

Extend synctex with emacs to support multiple open pdfs?

Using this answer I've been able to get emacs, syntex, and evince to work together almost perfectly to support forward search (tex file -> pdf) and reverse search (pdf -> tex file). The one thing ...
1
vote
2answers
131 views

AUCTeX not compiling: Returning “Master file already set”

I'm writing a thesis with AUCTeX. I have one main document (master.tex) and several chapter files (chapter1.tex, chapter2.tex, etc.) that are included in the master file using the \include command. ...
2
votes
0answers
53 views

Multiple Emacs/Auctex + Okular instances

Working in Ubuntu with Emacs/Auctex, I switched to Okular because it has a night-mode with less contrast than simply inverting colors. I added the following lines in my .emacs file following this ...
0
votes
0answers
54 views

How to set up AUCTeX/Emacs automatically to tile TeX file, overview and TeX errors?

I am trying to set up Emacs and AUCTeX to show error information buffers in a way like the following, automatically, tiling the TeX file, overview and error windows: The screenshot comes from How to ...
4
votes
1answer
112 views

Custom font specifiers in AUCTeX

I would like to add a new font specifier, so that I can for example use C-c C-f C-a to insert \textcolour{blue}{*} Is this possible?
0
votes
0answers
83 views

reftex-toc freezes emacs

Precisely as stated. I have tried both C-c = and C-u C-c = but in each case, it says that *toc* has been successfully built, and then all of emacs freezes before anything else is displayed. Has ...
1
vote
2answers
237 views

Disable preview-latex

Just started using Emacs for editing my .tex documents after a long time away. I am rusty. I installed auctex and setup my environment nicely. Most things are working, but the fly in the ointment is ...
2
votes
2answers
229 views

How to set up Emacs/AUCTeX/RefTeX to use BibLaTeX by default

In previous years I used to rely on good old (tm) BibTeX for my bibliography files. But nowadays, one should use BibLaTeX with biber as replacement for BibTeX. Hence, I would love to convince my ...
3
votes
1answer
102 views

AUCTeX environment templates not working with nonstandard document classes

In AUCTeX the environment template (LaTeX-environment, bound to C-c C-e) tool is very useful, but it seems to not work with many (possibly all?) non-standard document classes - for me it doesn't work ...
1
vote
1answer
171 views

AUCTeX fails to generate previews

I am trying to generate previews using AUCTeX on Emacs GUI in my tex buffer but I get a "stop" sign error everywhere. See example below: When I click on the stop sign and select "View Error" I get ...
0
votes
0answers
100 views

Change the color of Auctex preview images

In the customize group "Preview Appearance", I click on "Preview Face" and set "Foreground" to "red". To the right, I see the word "sample" displayed in red. Then I select "Save for Future Sessions."...
2
votes
0answers
42 views

Have two different master files compiled with AucTeX

I use a template for exercises where I have a ex environnement, and then a sol environnement. Theses files are included in one master file called for instance AF1920_serie4.tex, and in another file ...
0
votes
0answers
57 views

query-replace on multifile document does not work

In a multifile project, I turned on reftex and I can do incremental search through all the subfiles, as is alluded to in this post quite a while back, by the following (add-hook 'TeX-mode-hook (...
2
votes
0answers
48 views

Appropriate way to skip spell-checking certain macros in AUCTeX

I want to skip checking inside the macro \acrshort (also \acrlong and \acrfull) from the glossaries package. I tried the following from the post, where I had some successes in the \cite... macros (...
2
votes
1answer
84 views

AUCTeX toggle math modes

I use $ ... $ for inline math and \[ ... \] for display math. I'd like to be able to toggle between the two by selecting the text and calling TeX-insert-dollar. However, as I understand it, this ...
0
votes
0answers
51 views

AucTeX'sTeX-next-error not catching any errors in ConTeXt

AucTeX's TeX-next-error doesn't display any of the errors listed in the output buffer, only "No more errors". MWE: \starttext \Hello \stoptext % Local Variables: % ConTeXt-Mark-version: "IV" % End: ...
3
votes
2answers
315 views

How to let AUCTeX launch automatically pythontex.py script

I need to use the pythontex package that I find very useful if someone has to do some calculation before inserting the results in LaTeX. So Here is an example: \documentclass{article} \usepackage{...
0
votes
1answer
111 views

itemize/enumerate are throwing a TeX-deactivate-mark issue in Aquamacs

I am using Aquamacs 3.4 in macOS 10.14.3, and have been using Aquamacs for years. When I insert an itemize or enumerate environment into a LaTeX document using C-c C-e, I get the expected prompt: (...
2
votes
1answer
415 views

Math symbols insertion in AUCTeX

I've been facing some trouble with math symbol insertion in AUCTeX and I'm probably missing something from the available structure and options. But as I'm struggling for a while, I might as well ask. ...
3
votes
1answer
152 views

AUCTeX does not recognize cleveref labels

I use the cleveref package, which allows annotating \label commands with an optional argument. Unfortunately, this prevents the various functions in latex.el from detecting those labels. My guess is ...
1
vote
0answers
163 views

Emacs LaTeX compiling : error occurs then no more error [closed]

When I compile my file with Emacs with C-c C-c, I got this message: LaTeX errors in ‘*~/path/to/myfile output*’. Use C-c ` to display. Then, when I check the error with C-c `, I get this : No more ...
1
vote
0answers
88 views

Emacs AUCTeX keeping focus to the source buffer after runinng TeX-command-run-all

I am using Emacs AUCTeX with pdf-tools. When I compile my tex file with C-c C-a, i.e., run TeX-command-run-all command. When it is finished, my cursor moves to the generated pdf file. I would like my ...
1
vote
0answers
149 views

AucTeX - Previewing Errors

I'm using the latest version of MikTeX, Ubuntu 19.04 and Emacs 26.1. Whenever I try to use inline preview (with any region, section, or environment that has inline math), I get the following error: .....
2
votes
0answers
42 views

AUCTeX inverse search with region or buffer compilation

I have inverse search working great with single-file documents with Zathura. Unfortunately, things break down when I try to do inverse search when viewing a region of my document, or a buffer in the ...
0
votes
0answers
123 views

TeX instead of Preview, LaTeX and Command menus after upgrade of AucTeX

I upgraded AucTeX to 12.1.2, hoping that it would fix a problem with the displaying of verbatim environments. This caused a range of problems which I am trying to track down step by step. One is ...
2
votes
1answer
260 views

TeX-complete-symbol doesn't work in math mode

I can't get AUCTeX to complete user-defined commands in math mode. As an example, TeX-complete-symbol works outside of math mode in the document below, but it stops working if I prepend a dollar sign ...
0
votes
0answers
144 views

How do I remote compile a Latex file using a local Emacs with an Auctex module installed and Latex compiler on a different machine?

How do I remote compile a Latex file using a local Emacs with an Auctex module installed and Latex compiler on a different machine? My latex is too big for my workstation so I need to move the Latex ...
2
votes
2answers
472 views

Configuring Emacs/AucTeX in Windows 10 to use Sumatra PDF?

This is surely easy-ish to do, but all the advice I can find is either several years old (2012), or not helpful - the Emacs Wiki claims that "Unfortunately, configuration can be tricky to get right, ...
3
votes
1answer
166 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 ...
2
votes
2answers
112 views

AUCTeX/RefTeX with import package in emacs, known problem from 2013 but is there a fix now?

I realized this issue with import in AUCTeX/RefTeX mode today which was also mentioned in the below thread from some years ago: AUCTeX/RefTeX, the `import` package and cross reference RefTeX ...
1
vote
1answer
151 views

AUCTeX fails to put auxilary files in a certain directory

I'm using Emacs + Auctex to edit and compile file .tex with xelatex at present. I want put those auxiliary files(created during compile) in another directory, e.g. /tmp. So I have the following code ...
2
votes
0answers
277 views

Highlighting forward search in Okular

I have a functional setup that does bidirectional search between emacs (auctex) and okular but lacks the highlighting of the position in pdf. In "conventional" editors, e.g. texstudio, when doing ...
1
vote
1answer
96 views

Problems with referencing in Emacs/RefTeX

I have problems referencing a table (see Example below) using GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) on Windows Pro X64 and AUCTeX with RefTeX. If I set a label, and reference it, the reference ...
1
vote
1answer
219 views

How to make AuCTeX aware of the class in the master file?

When I divide a document between a master file and other buffers, I don't get hints from AucTeX to complete environments and macros. I set the master file with: %%% TeX-master: "mymasterfile" ...
6
votes
1answer
573 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 ...

1
2 3 4 5
11