我的第一个包裹停止工作了!

我的第一个包裹停止工作了!

几年前,我编写了一个简单的包 PSBao.sty。两年前我停止使用它,现在它不再起作用了。我找不到原因。有人能帮我吗?不幸的是,这是我第一次也是最后一次尝试编写包,所以它有点像意大利面条,我无法添加 MWE。抱歉!

补充:我忘了说我使用 TexStudio 和 MikTex,并用 PDFLaTex 运行它。再次抱歉!

\DocumentMetadata{}
\documentclass{scrbook}
\usepackage{psbao}
\begin{document}
\centering
\setbaounit{.4cm}
\initbao[0,%
4,3,5,1,1,1,5,0,%
4,4,1,2,0,0,0,0,%
0,0,0,3,5,8,4,1,%
2,2,1,1,1,2,3,0,%
0]
\begin{showbaoboard}
\end{showbaoboard}
\end{document}

感谢@user187802 提供的 MWE!

添加包裹自动 pst pdf, 这后记按照@user187802 向 MWE 和命令所建议的环境 pdflatex.exe -synctex=1 -interaction=nonstopmode -shell-escape %.tex 我得到了正确的mwe-自动pp.pdf韋萊.pdf以及以下警告:

runsystem(echo " ")...executed.

runsystem(echo "-------------------------------------------------")...executed.

runsystem(echo "auto-pst-pdf: Auxiliary LaTeX compilation")...executed.

runsystem(echo "-------------------------------------------------")...executed.

runsystem(del "mwe-autopp.log")...executed.

runsystem(del "mwe-autopp.dvi")...executed.

runsystem(del "mwe-autopp.ps")...executed.

runsystem(del "mwe-autopp.pdf")...executed.

runsystem(latex -disable-write18 -jobname="mwe-autopp" -interaction=batchmode  
"\let \APPmakepictures \empty \input  mwe.tex")...executed.

runsystem(dvips -Ppdf -o "mwe-autopp.ps" "mwe-autopp.dvi")...executed.

runsystem(ps2pdf  "mwe-autopp.ps" "mwe-autopp.pdf")...executed.

runsystem(pdfcrop  "mwe-autopp.pdf" "mwe-pics.pdf")...executed.


Package auto-pst-pdf Warning: 
    Creation of mwe-pics.pdf failed.
This warning occured on input line 128.


Package auto-pst-pdf Warning: 
    Could not create mwe-pics.pdf. Auxiliary files not deleted.
This warning occured on input line 128.

runsystem(echo "-------------------------------------------------")...executed.

runsystem(echo "auto-pst-pdf: End auxiliary LaTeX compilation")...executed.

runsystem(echo "-------------------------------------------------")...executed.

Package pst-pdf Warning: File `mwe-pics.pdf' not found. 

答案1

运行它lualatex,你的包就会起作用:

\DocumentMetadata{}
\documentclass{scrbook}
\usepackage{psbao}
\begin{document}
\centering
\setbaounit{.4cm}
\initbao[0,%
4,3,5,1,1,1,5,0,%
4,4,1,2,0,0,0,0,%
0,0,0,3,5,8,4,1,%
2,2,1,1,1,2,3,0,%
0]
\begin{showbaoboard}
\end{showbaoboard}
\end{document}

在此处输入图片描述

它也适用于latex->drips->pspdf 和 以及 和pdflatexauto-pst-pdfpostscript环境。以下适用于pdflatex --shell-escape ...

\documentclass{scrbook}
\usepackage[pspdf=-dALLOWPSTRANSPARENCY]{auto-pst-pdf} 
\usepackage{psbao}
\begin{document}
\centering
\begin{postscript}
\setbaounit{.4cm}
\initbao[0,%
4,3,5,1,1,1,5,0,%
4,4,1,2,0,0,0,0,%
0,0,0,3,5,8,4,1,%
2,2,1,1,1,2,3,0,%
0]
\begin{showbaoboard}
\end{showbaoboard}
\end{postscript}
\end{document}

相关内容