pst-optic 示例为 Ghostscript 造成不可恢复的错误

pst-optic 示例为 Ghostscript 造成不可恢复的错误

我尝试重现 pst-optic 文档中的一个示例(图 8),但它为 Ghostscript(版本 9.02)创建了一个不可恢复的错误。这是在使用 TeXShop 的 Mac 上。我已将 pst-optic 更新为 TeXlive 的最新版本。

以下是示例:

\documentclass[11pt]{article}

\usepackage{pst-optic}
\usepackage{auto-pst-pdf}

\begin{document}

\begin{pspicture*}(-7.5,-2.75)(7.5,3) 
\rput(0,0){\lens[lensScale=0.6,XO=-4,nameF=F_1,nameA=A_1,nameB=B_1,
nameFi=F’_1,nameAi={ },nameBi={},nameO=O_1,focus=1,OA=-2,lensGlass=true, lensWidth =0.5]}
\pspolygon[style=rayuresJaunes,linestyle=none](B)(I)(B’)(I’)(B) 
\Transform 
\rput(0,0){\lens[lensScale=1.2,XO=2,focus=2,nameA=A’_1,spotA=90,nameB=B’_1,spotB=270,
nameO=O_2,nameAi=A’_2,spotAi=270,nameBi=B’_2,spotBi=90,nameF=F_2,nameFi=F’_2,
lensTwo=true,lensGlass=true,lensWidth=0.5]} 
\pspolygon[style=rayuresJaunes,linestyle=none](B)(I)(B’)(I’)(B) 
\end{pspicture*}

\end{document}  

任何帮助或指示都将不胜感激。(请注意,我本来想将 pst-optic 作为标签添加到此问题中,但没有声誉这样做。)

答案1

它不是要点的重音,而是单引号:

\pspolygon[style=rayuresJaunes,linestyle=none](B)(I)(B')(I') 

多边形总是封闭的,所以不需要在末端再次找到第一个点。

在此处输入图片描述

相关内容