环境 \pspicture 仅适用于 beamer 中的单张幻灯片吗?

环境 \pspicture 仅适用于 beamer 中的单张幻灯片吗?

我正在尝试在 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.

相关内容