I am facing an issue with previewing which seems to be triggered if all of
the following is true:
1) using luatex
2) preamble cache enabled
3) using tikz.sty
Note that everything is fine if one of the above statements is false.
This is how I can reproduce this issue:
* emacs -Q
* Evaluate:
(package-initialize)
(setq TeX-engine 'luatex
preview-auto-cache-preamble t)
* Run (preview-buffer) on the following file:
\documentclass{article}
\usepackage{tikz}
\begin{document}
$a$
\end{document}
* The error message I get is:
PDF2DSC sentinel: Opening input file: No such file or directory,
/home/andreas/test/_region_.prv/tmpxUxcGc/preview.dsc
Cheers,
Andreas
ps: Here is the complete info of (preview-report-bug):
Emacs : GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.33, cairo version 1.16.0)
of 2023-10-23
Package: 13.2.2
Run buffer contents:
Running `Preview-LaTeX' on `test' with ``lualatex -ini
-interaction=nonstopmode "" prv_test.ini
"\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}"
"\input" "\detokenize{" test.tex "}"''
This is LuaHBTeX, Version 1.17.0 (TeX Live 2023) (INITEX)
restricted system commands enabled.
(./prv_test.ini
LaTeX2e <2023-11-01>
L3 programming layer <2023-11-01>
(/home/andreas/.local/texlive/2023/texmf-dist/tex/latex/mylatex/mylatex.ltx))
(/home/andreas/.local/texlive/2023/texmf-dist/tex/latex/tools/.tex File
ignored)
No auxiliary output files.
(./test.tex
(/home/andreas/.local/texlive/2023/texmf-dist/tex/latex/base/article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class
(/home/andreas/.local/texlive/2023/texmf-dist/tex/latex/base/size10.clo))
(/home/andreas/.local/texlive/2023/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty
(/home/andreas/.local/texlive/2023/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty
(/home/andreas/.local/texlive/2023/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty
(/home/andreas/.local/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex)
(/home/andreas/.local/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def)
(/home/andreas/.local/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex
(/home/andreas/.local/texlive/2023/texmf-dist/tex/generic/pgf/pgf.revision.tex)))
(/home/andreas/.local/texlive/2023/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty
(/home/andreas/.local/texlive/2023/texmf-dist/tex/latex/graphics/graphicx.sty
(/home/andreas/.local/texlive/2023/texmf-dist/tex/latex/graphics/keyval.sty)
(/home/andreas/.local/texlive/2023/texmf-dist/tex/latex/graphics/graphics.sty
(/home/andreas/.local/texlive/2023/texmf-dist/tex/latex/graphics/trig.sty)
(/home/andreas/.local/texlive/2023/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/home/andreas/.local/texlive/2023/texmf-dist/tex/latex/graphics-def/luatex.def)))
(/home/andreas/.local/texlive/2023/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty
(/home/andreas/.local/texlive/2023/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex
(/home/andreas/.local/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
(/home/andreas/.local/texlive/2023/texmf-dist/tex/generic/pgf/utilities/pgfkeyslibraryfiltered.code.tex))
(/home/andreas/.local/texli...
[...]
...as/.local/texlive/2023/texmf-dist/tex/latex/base/ts1cmr.fd)
(/home/andreas/.local/texlive/2023/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)
(/home/andreas/.local/texlive/2023/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
(/home/andreas/.local/texlive/2023/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
(/home/andreas/.config/emacs/elpa/auctex-13.2.2/latex/preview.sty
(/home/andreas/.local/texlive/2023/texmf-dist/tex/generic/luatex85/luatex85.sty)
(/home/andreas/.config/emacs/elpa/auctex-13.2.2/latex/prtightpage.def)
(/home/andreas/.config/emacs/elpa/auctex-13.2.2/latex/prauctex.def
No auxiliary output files.
(/home/andreas/.config/emacs/elpa/auctex-13.2.2/latex/prauctex.cfg))
(/home/andreas/.config/emacs/elpa/auctex-13.2.2/latex/prfootnotes.def)
Preview: Fontsize 10pt
Preview: PDFoutput 1
) !name(test.tex) !offset(-3)
./_region_.tex:7: Preview: Snippet 1 started.
<-><->
l.7 $
a$
Preview: Tightpage -32891 -32891 32891 32891
./_region_.tex:7: Preview: Snippet 1 ended.(282168+0x346416).
<-><->
l.7 $a$
[1{/home/andreas/.local/texlive/2023/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
./_region_.tex:8: error: (pdf backend): referenced object has wrong type
others; should be obj
./_region_.tex:8: ==> Fatal error occurred, no output PDF file produced!
TeX Output exited as expected with code 1 at Sat Nov 11 18:26:58
Running `Preview-PDF2DSC' with ``pdf2dsc _region_.pdf
_region_.prv/tmpxUxcGc/preview.dsc''
Error: /undefinedfilename in --file--
Operand stack: