似乎透射光栅尚未在 中实现pst-optexp
。有人知道是否存在解决方法吗?
答案1
该软件包的 4.4 版pst-optexp
包括\transmissiongrating
:
\documentclass[pstricks, margin=5pt]{standalone}
\usepackage{pst-optexp}
\begin{document}
\begin{pspicture}(4.1,1.6)
\pnodes(0,1){A}(2,1){B}(4,0.5){C}
\transmissiongrating[reverse, gratingcount=9](A)(B)(C){TG}
\optplane[angle=-10](C)
\addtopsstyle{Beam}{ArrowInside=->, ArrowInsidePos=0.8, arrowinset=0, arrowscale=1.5}
\drawbeam[linecolor=black](A){1}
\addtopsstyle{Beam}{loadbeam, savebeam=false}
\drawbeam[linecolor=green]{1-2}
\drawbeam[linecolor=red, beamangle=5]{1-2}
\drawbeam[linecolor=blue, beamangle=-5]{1-2}
\end{pspicture}
\end{document}