![环境 \pspicture 仅适用于 beamer 中的单张幻灯片吗?](https://linux22.com/image/319602/%E7%8E%AF%E5%A2%83%20%5Cpspicture%20%E4%BB%85%E9%80%82%E7%94%A8%E4%BA%8E%20beamer%20%E4%B8%AD%E7%9A%84%E5%8D%95%E5%BC%A0%E5%B9%BB%E7%81%AF%E7%89%87%E5%90%97%EF%BC%9F.png)
我正在尝试在 beamer 中使用 pstricks,需要使用 pdflatex 进行编译。奇怪的是,当我只有一个框架时,代码可以工作(参见下面的 MWE),但一旦我添加第二个框架(即取消注释第 4 行),我的 Ghostscript 似乎就疯了。这是为什么?
\documentclass{beamer}
\usepackage{pstricks,auto-pst-pdf}
\begin{document}
%\frame{frame1}
\frame{
\begin{pspicture}(0,0)(1,1)
\psdot(.4,.3)
\end{pspicture}
}
\end{document}
控制台输出示例:
Last OS error: Invalid argument
Current file position is 116155
GPL Ghostscript 9.10: Unrecoverable error, exit code 1
PDFCROP 1.38, 2012/11/02 - Copyright (c) 2002-2012 by Heiko Oberdiek.
!!! Warning: Empty Bounding Box is returned by Ghostscript!
!!! Page 1: 0 0 0 0
!!! Either there is a problem with the page or with Ghostscript.
!!! Recovery is tried by embedding the page in its original size.