Tamas Papp <[email protected]> writes:

> Thanks for the quick response!

You're welcome.

> Indeed the preamble was a problem, I had a
>
> (setq preview-auto-cache-preamble t)
>
> in my config, now it is set to nil.

preview-latex uses mylatex in order to generate the preamble format;
maybe it's an issue with mylatex and LuaLaTeX? 

> 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.

Yes, this part:

  Last OS error: Permission denied

tells something like that.  Yes, please report back once you have this
resolved for others facing the same issue.  Good luck.

Best, Arash

Reply via email to