![lensGlass=false 似乎在 pst-optic 中不起作用](https://linux22.com/image/337293/lensGlass%3Dfalse%20%E4%BC%BC%E4%B9%8E%E5%9C%A8%20pst-optic%20%E4%B8%AD%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
请考虑以下示例:
%%xelatex
\documentclass[pstricks,crop]{standalone}
\usepackage{pst-optic}
\usepackage{pstricks-add,pst-text}
\begin{document}
\begin{pspicture}(-8.5,-3)(8.5,3)
\rput(0,0){\lens[focus=3.333,OA=-10,AB=2,XO=2,xLeft=-8.5,xRight=8.5,rayColor=red,lensGlass=false]}
\end{pspicture}
\end{document}
该选项lensGlass=false
用灰色矩形替换镜头。我该如何配置让镜头完全不显示?
答案1
使用此版本的pstricks.tex
。它知道可选参数onlyrays
:
\documentclass[pstricks,crop]{standalone}
\usepackage{pst-optic}
\begin{document}
\begin{pspicture}(-8.5,-3)(8.5,3)
\rput(0,0){\lens[focus=3.333,OA=-10,AB=2,XO=2,xLeft=-8.5,xRight=8.5,
rayColor=red,onlyrays]}
\end{pspicture}
\end{document}