On Tue, Jul 07 2026, Arash Esbati wrote:

> Tamas Papp <[email protected]> writes:
>
>> I am using AUCTeX 14.1.2.2026-07-05_10:47:23 (via the straight mirror),
>> in Emacs 30.2.
>>
>> I ran into Ghostscript giving an /invalidaccess error, so I added
>> -DNOSAFER to the options.
>>
>> Now I am running into the following:
>>
>> ...f-dist/tex/luatex/lua-uni-algos/lua-uni-stage-tables.lua:141: attempt
>> to perform arithmetic on a string value (local 'key')
>>
>> I attach the LaTeX file and the logs.
>
> I can't reproduce this.  I tried it with this file:
>
> --8<---------------cut here---------------start------------->8---
> \documentclass[12pt,a4paper]{article}
>
> \begin{document}
>
> \begin{equation}
>   a + a = 2a
> \end{equation}
>
> \end{document}
>
> %%% Local Variables:
> %%% mode: LaTeX
> %%% TeX-master: t
> %%% TeX-engine: luatex
> %%% End:
> --8<---------------cut here---------------end--------------->8---
>
> and this is what I see when activating preview-latex:
>
> x
>
>
> The only difference I see (I think) is that you probably said YES when
> preview asked if you want to cache the preamble.  I said NO.  Can you
> try that?  I don't use straight, but do you have the chance to start
> Emacs as 'emacs -Q' and activate AUCTeX in a clean state, without your
> customizations?

Thanks for the quick response!

Indeed the preamble was a problem, I had a

(setq preview-auto-cache-preamble t)

in my config, now it is set to nil.

But then I am running into another problem, which I have narrowed down
to pdf2dsc being unable to write files within my home directory:

tamas@tamas-laptop ~ % pdf2dsc x.pdf x.prv/tmpSNVDcD/preview.dsc
Error: /invalidfileaccess in --file--
Operand stack:
   DSCfile   (x.prv/tmpSNVDcD/preview.dsc)   (w)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push   1804   1   3   %oparray_pop   
1803   1   3   %oparray_pop   1788   1   3   %oparray_pop   1659   1   3   
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   
--nostringval--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:755/1123(ro)(G)--   --dict:0/20(G)--   --dict:86/200(L)--
Current allocation mode is local
Last OS error: Permission denied
Current file position is 2594
GPL Ghostscript 10.06.0: Unrecoverable error, exit code 
1preview-auto-cache-preamble nil

tamas@tamas-laptop ~ % ll x.prv/tmpSNVDcD
total 0

My understanding is that this is not a problem with preview-latex, so I
will follow up on the Ghostscript mailing lists; I am posting here in
case someone else runs into this and finds it helpful, or has a
suggestion.

best

Tamas

Reply via email to