pst-optic宏包使用

发布于 2021-08-16 19:15:03

请问如何配置pst-optic宏包?
我用

\documentclass{article}
\usepackage{pst-optic}
\begin{document}
    \begin{pspicture}[showgrid=true](-5,-2.2)(7,4)
    \rput(1.5,1.5){%                    
        \lens[lensType=DVG,lensGlass,lensWidth=0.5,rayColor=red,
        focus=-2,AB=2,spotAi=270,spotBi=90]}
    \end{pspicture}
\end{document}

会报错undefined control sequence,而上面document内的部分是我在宏包说明文档直接复制的。
texlive2020+TeXstudio windows10

查看更多

关注者
0
被浏览
1.2k
寄存器
寄存器 2021-08-17
这家伙很懒,什么也没写!

与编译引擎有关,而且还相对复杂,可以在其主页Welcome to the PSTricks web site看到具体说明:
image.png

我当前工作的是TeXLive2021+Ubuntu20.04,能用pdflatex --shell-escape main.tex一次性编译通过。
image.png

2 个回答
LaTeXStudio
LaTeXStudio 2021-08-16
这家伙很懒,什么也没写!

我这里 texlive 编译毫无问题,如下图:
image.png

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览