auctex
[Top][All Lists]

## Re: Why does a standalone document set TeX-PDF-from-DVI?

 From: Maximilian Wuttke Subject: Re: Why does a standalone document set TeX-PDF-from-DVI? Date: Thu, 14 Jan 2021 00:32:03 +0100 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0

Hi,

On 13/01/2021 22:48, Arash Esbati wrote:
> I can't reproduce this either.  AUCTeX doesn't have a style for
> standalone package, hence the problem must be somewhere else.  Can you
> please start Emacs with the minimal config you described in your other
> message, load the .tex file and hit immediately C-h e'?  Check the
> files AUCTeX loads, maybe that gives you an idea where to look.

AUCTeX immediately loads the file ~/.emacs.d/auctex/standalone.el,
which apparently was (auto)created on Apr 13 2018. I've attached it to
the mail, for reference. The file just adds some hooks for (presumably)
other packages that the standalone style requires. As a result, the
file /src/to/auctex/styles/pstricks.el is loaded. In another mail,
I've quoted the part of this file where it sets the variable.

In fact, this old file ~/.emacs.d/auctex/standalone.el was the
problem! I didn't notice that it was so old until now. I have no idea
how or why it was created though. I had 4280 files in this directory;
all of them were created on the same day in 2018. After moving this
directory away and restoring my .emacs file, the mysterious directory
hasn't been recreated.

So maybe this was just a very weird regression. After all, I didn't even
use the pstricks package. However, I still have the same behaviour
when I open the following file:

> \documentclass{article}
> \usepackage{pstricks}
>
> \begin{document}
>
> \begin{pspicture}(1,2)
> \end{pspicture}
>
> \end{document}

Thanks
Maximilian

Below is the complete list of loaded files, mostly the old files from 2018:

`