Questions tagged [auctex]
Questions about the AUCTeX package for editing (La)TeX code/documents in Emacs.
171
questions
0
votes
0
answers
15
views
how to configure the way of inserting double quote in auctex with smartparens
recently I updated emacs package and found double quotes were not inserted as regular double quotes (") any more.
Instead, it insert pair of LaTeX double quotes `` and '' on ". On the second ...
0
votes
1
answer
87
views
AUCTeX can't find MiKTeX
I've installed AUCTeX in my copy of Emacs but AUCTeX can't find MiKTeX (which I've already installed). I get the following error when I do C-c C-c RET:
ERROR: AUCTeX cannot find a working TeX ...
0
votes
0
answers
34
views
Revert AUCTeX version
A recent change in how AUCTeX detects modes and indents LaTeX code has made it hard for me to work. I'm currently using version 13.1.2. I'd like to revert to 12.x, or in fact any version of AUCTeX ...
1
vote
0
answers
86
views
emacs-auctex refuses to open .tex-files
After installing emacs 28.1 and auctex 13.1 I can't open .tex-files any longer.
If I enter in emacs Ctrl-x -f Blau-2022-03-20.tex I get
Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
...
0
votes
1
answer
168
views
AUCtex missing from the emacs package list
I'm trying to install Auctex on a Mac using the emacs package manager. AUCtex is available through GNU ELPA. My .emacs file is as follows:
(add-to-list 'package-archives
'("melpa" . ...
1
vote
0
answers
53
views
How to disable AUCTeX highlighting?
I'm trying to use GNU Emacs 26.3 + AUCTeX 12.2.3 and it seems to work, but the colors it shows in the source code are very annoying, specially in amsmath environment such as align, because it uses ...
0
votes
0
answers
26
views
Using C-c C-f C-<x> in AucTeX randomly inserts font commands in old TeX style ({\sc xxx}) or modern one (\tesxtsc{xxx})
I'm using AucTeX for years now...
I'm using emacs "26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.11)" and AucTeX 12.2.0 (installed from MELPA) on XUbuntu 19.10.
According to doc[1] (and ...
3
votes
0
answers
193
views
low resolution of preview-latex in emacs in latex mode on mac with retina display
if I am running latex preview within emacs on mac with retina display, unfortunately I am not getting the proper resolution but rather some fuzzy looking (I guess half the resolution) images. Still, ...
2
votes
1
answer
782
views
File name encoding in Emacs latex mode
I use auctex plugin for emacs and texlive on both my OSsgnu/linux` and windows. On gnu/linux it works like magic when i try to compile a pdf from a *tex file. On windows (ver. 8.1) if i use cyrillic ...
0
votes
0
answers
136
views
auctex with sumatra pdf
I am syncing AUCTeX with Sumatra PDF on MSWindows.
I used the instructions in Sync Emacs AUCTeX with Sumatra PDF (modulo the fact that I use customization instead of writing the setq in the init file, ...
0
votes
1
answer
161
views
Emacs, AUCTeX and indentation of custom commands
I'm preparing a document that contains colored tables (using colortbl) and to correct the thin white lines that appear in those tables I'm using a custom new line macro to compensate for that. However,...
2
votes
1
answer
73
views
Reftex-toc prevent vsplit on goto
I am currently using spacemacs with auctex. When I use reftex-toc and goto an item then it performs a vsplit and shows the content in the right window. How do I prevent this splitting behaviour? I ...
0
votes
1
answer
338
views
auxtex "problems after {1} page"
Recently, I'm not exactly sure when, AucTeX has started giving me trouble by reporting "Problems after {n} pages." for any document generating n pages.
For example, the file
\documentclass{article}
...
1
vote
3
answers
2k
views
How to use Auctex + preview-latex + orgmode in emacs
I use Emacs orgmode exclusively. I installed auctex from Melpa. My understanding is that preview-latex is packaged with auctex with no special setup required.
I can't seem to summon preview-latex on ...
2
votes
1
answer
1k
views
Emacs + AUCTex + Skim embbed pdf preview support
My configuration as below:
OS: MacOSX Sierra v10.12
Emacs: GNU Emacs 25.2.
AucTex: auctex-11.90.0
TexLive: 2016
Skim: Version 1.4.28 (102)
I use below emacs configuration:
;; AucTeX
(setq TeX-auto-...
1
vote
0
answers
607
views
why is LaTex mode replaced by Fundamental mode?
Before I installed some packages and add some configurations in .emacs, the .tex file in Emacs is in LaTex mode. After I changes .emacs, the .tex file is opened in Fundamental mode. All the ...
0
votes
1
answer
1k
views
BasicTex on Mac OS X: How do I install IEEEtrantools.sty?
I've searched everywhere, and it doesn't look like this particular issue is well covered. I'm new to LaTeX so please forgive my naivety.
I installed BasicTex using homebrew (I didn't want to ...
2
votes
0
answers
189
views
Spacemacs - Auctex freezes if text in math mode or latex comment exceeds column 80
I have the following issue:
I use Spacemacs to write reports for uni in RNW documents using ESS and Auctex.
Spacemacs automatically wraps lines after column 80 and that works like a charm with plain ...
0
votes
1
answer
478
views
pdf2dsc error: invalidaccess --.locksafe--
This is a problem I encountered in preview-latex from AUCTeX. However I believe the problem should be caused by ghostscript, especially the pdf2dsc tool.
The command executed in shell environment
...
0
votes
0
answers
401
views
TeX-PDF-mode not working always in Emacs.
I’m using Emacs (Aquamacs) on Mac for my LaTex files.
I always want to use LaTex (not Tex) and always produce a PDF file.
The .emacs File contains
(setq TeX-PDF-mode t)
besides some other stuff....
1
vote
1
answer
50
views
auctex master loads whole master?
I am using auctex with aquamacs and I have added the following lines at the ned of my latex file:
%% Local Variables:
%% mode: latex
%% TeX-master: "book"
%% End:
However, when I latex the current ...
0
votes
1
answer
2k
views
Auctex cannot find a working TeX distribution on spacemacs with Osx ElCapitan
I get the following error when I try to build latex from spacemacs text editor :
TeX-command: Error : Auctex cannot find a working TeX distribution.
Make sure you have one and that Tex binaries ...
2
votes
1
answer
2k
views
AUCTeX package missing in emacs
In my emacs 24.3, I can't find the AUCTeX package.
If I enter PACKAGE-LIST-PACKAGE,
I find various packages for AUCTeX like "auctex-lua" or
"auto-complete for auctex". However, there is no auctex ...
11
votes
1
answer
522
views
Emacs auctex inserts line breaks after inline math in an ugly way
I got problems with emacs/auctex fill paragraph which insert linebreaks after each $blabla$ block, resulting in a poorly readable code. For exemple, hitting M-q on the following long line:
a $1$ b $2$...
0
votes
1
answer
161
views
Macos always change the command "TeX-view-program-list" into ""open %o" in emacs
In custom.el I set as follows.
'(TeX-source-correlate-method (quote synctex))
'(TeX-source-correlate-mode t)
'(TeX-source-correlate-start-server t)
'(TeX-view-program-list (quote (("Okular" "...
6
votes
3
answers
4k
views
emacs auctex commandto compile and view
I use EMACS/AucTeX. In order to compile I do C-c C-c, then it asks
"Command: (default LaTeX)"
I press RET and it is compiled. To view the compiled document I do C-c C-v.
I would like to have a ...
2
votes
0
answers
141
views
ESS/Auctex/knitr How to cite from bibliography in knitr child document
I am curently using emacs with ESS, Auxtex, R and knitr.
I would like to be able to cite from my bibliography in my child documents.
My master.Rnw looks rougly as follows:
\documentclass{article}
\...
0
votes
1
answer
89
views
Strange behaviour when compiling auctex from MELPA in Emacs (w32 version) in Cygwin
I tried to compile the auctex from Emacs MELPA. The version is: 11.88.4
When I first open a .tex file, compile AUCTEX, and change to "TeX-latex-mode", Emacs will work properly, the menu bar also ...
2
votes
1
answer
497
views
AUCTeX and master file by means of *.latexmain file, such as in vim-latex
I am thinking to switch from vim + latex-vim module to emacs + evil + auctex,etc modules for editing latex files. I am completely new for emacs.
I have a lot of latex projects written for vim-latex ...
5
votes
1
answer
1k
views
Emacs: dbus-related error when trying to switch to latex mode
since I began using dbus with Emacs some days ago (meaning I recompiled with dbus-support), when I open a latex-file or try to switch manually to latex-mode, I get
File mode specification error: (...
2
votes
0
answers
124
views
Emacs / AUCTeX slow to start
When I run emacs test.ltx, it takes about 5 seconds for the buffer to open. The problem exists even when my init file and test.ltx are empty. M-x emacs-init-time returns 0.1 seconds. *Messages* says ...
5
votes
1
answer
526
views
emacs auctex 11.88: Symbol's value as variable is void: LaTeX-dialect
I have a problem in using auctex 11.88 with emacs:
Whenever I try to open a .tex-File the following error message appears:
Loading /home/schmidt/.emacs.d/elpa/auctex-11.88.2/style/wrapfig.elc...
...
1
vote
0
answers
149
views
Emacs/auctex not asking for prompting label anymore
I know that the default mode of Auctex is that prompting c-c c-e equation RET is supposed to ask me to prompt a label, unless I modify purposely the reftex-plug-into-AUCTeX value.
I find myself in a ...
2
votes
0
answers
160
views
How to change brace indentation style in Emacs/ AUCTeX
I would like to use something like the Allman or BSD style for LaTeX. For example, I would indent the following code like this:
\iflanguage{english}{
\begin{otherlanguage}{brazilian}
}{
\...
2
votes
1
answer
332
views
Extending list in .emacs init file
I'm using Emacs with AUCTeX and I want to add a command to the TeX-command-list, namely makeglossaries.
I refered to the manual and got this far:
(eval-after-load "tex"
'(add-to-list 'TeX-command-...
2
votes
1
answer
809
views
Connecting to DBus from emacs daemon
I recently tried to set up AucTeX SyncTeX with evince under GNU Emacs 24.4. From an ordinary emacs session it work oput of the box after activating TeX-source-correlate-mode, but under my standard ...
0
votes
0
answers
86
views
Showing AUCTeX command result buffer alongside current one in Emacs
I'm trying to get TeXcount to work inside Emacs with AUCTeX. According to the TeXCount website, it should be possible to use the following to run texcount on the current buffer:
(require 'tex)
(add-...
3
votes
1
answer
2k
views
Emacs AucTeX; How to set C-c C-c default command?
I have set this in my .emacs file:
(add-hook 'TeX-mode-hook
(lambda ()
(setq TeX-command-default "LaTeX"))
(add-hook 'LaTeX-mode-hook
(lambda ()
(setq TeX-command-...
5
votes
1
answer
3k
views
Centering display equations with org-latex-preview?
For some reason, org-mode is left-aligning my display equations when I run org-latex-preview (C-c C-x C-l). But the margin between each equation and its equation number is calculated, as if the ...
0
votes
1
answer
751
views
AUCTeX: insert reference / citation without macro
Is there a way to add a reference / citation format which inserts the reference / citation label directly into the buffer without enclosing it into a macro?
To be clear: When I hit C-c ) AUCTeX ...
2
votes
1
answer
258
views
Disabling input method inside a math formula in Emacs with AUCTeX
I am typing a math document in Russian using Emacs 24.3.1 and AUCTeX 11.87. I am using the russian-computer input method to type Russian. It would be very convenient to disable this input method ...
4
votes
2
answers
1k
views
How to add a reftex-default-bibliography to latex as a local variable?
I have a main reftex-default-bibliography but I want to use a sepecific bib file in my tex file. I am using Emacs-AucTeX-RefTeX.
At the end of my Tex file I wrote:
%%% Local Variables:
%%% reftex-...
4
votes
2
answers
759
views
Have Emacs to automatically latex your Rnw file after knitting
I would like to start a LaTeX after knitting an .Rnw file. The meta code shoudl be something like:
(defun knit ()
(interactive)
(setq rproc (ess-get-process ess-current-process-name))
(setq c "...
5
votes
1
answer
2k
views
Insert regular double quotes in LaTeX mode with AUCTeX
How do I rebind the double quote key to simply insert a double quote in a LaTeX buffer with AUCTex enabled?
I tried redefining TeX open and close quote, but that didn't seem to work.
(add-hook '...
0
votes
1
answer
175
views
How to remove the directory .t2d on C-c C-c Clean / M-x TeX-clean?
I use the following code in .emacs to clean the working directory from
unwanted files.
(eval-after-load 'latex
'(progn
(setq LaTeX-clean-intermediate-suffixes (delete "\\.synctex\\.gz" LaTeX-...
2
votes
1
answer
395
views
Redefine paragraph-start and paragraph-separate in Emacs bibtex-mode
I'm looking for an easy way to move quickly up or down by a single BibTeX entry when in bibtex-mode. Of course I could write a function that searches for the relevant lines, but it seems more ...
4
votes
1
answer
394
views
AUCTeX TeX-doc & texdoc
As far as I can tell from the manual, running C-c ? in AUCTeX ought to run texdoc %s on the package name specified. For the vast majority of packages it does, however some just aren't found - M-! ...
5
votes
1
answer
464
views
Force AUCTeX to parse the whole document
I'm using AUCTeX 11.87 along with emacs 24.3 for writing my LaTeX documents. This is working nicely with one exception: The parsing.
My document structure is as follows:
./
Master.tex
Chapter_1.tex
...
0
votes
0
answers
1k
views
How can I use only PDF files in View of AUCTeX
I use Emacs on Mac, and I use AUCTeX to edit TeX files. I use auto-complete-auctex, too.
If I use C-c C-v just after opening a TeX file, a PDF file opens.However, if I use C-c C-v after compiling, a ...
2
votes
2
answers
2k
views
Setting up AUCTeX: LaTeX-mode-hook does not work
I have a strange problem. When I set up my AUCTeX configuration for Latex like this
(require 'tex)
(TeX-global-PDF-mode t)
it works for me.
But when I alter the code by putting in a lambda function ...