看起来并不是pst-optexp
绘制与绘图相关的图形,只是绘制其中的文本。以下是示例:
\documentclass{article}
\usepackage{filecontents}
\usepackage{pstricks}
\usepackage{pst-optexp}
\usepackage{physics}
\usepackage{amssymb}
\usepackage{bm}
\usepackage{tikz}
\begin{document}
\begin{pspicture}(-0.3,0)(2,3.7)
\psset{labeloffset=1, optboxwidth=1, arrowscale=1.5, arrowinset=0}
\optbox[position=end, labelangle=90](1,1)(1,2){Box}
\beamsplitter[labelangle=-90](1,2)(1,1)(2,1){BS}
\drawbeam[arrows=->]{1}{2}(2,1)
\end{pspicture}
\end{document}
显示内容如下:
我在 Windows 上的 TexWorks 中使用 MikTex,并使用 XeLatex+MakeIndex+BibText 进行编译。
答案1
\listfiles
\documentclass{article}
\usepackage{pst-optexp}
\begin{document}
\begin{pspicture}(-0.3,0)(2,3.7)
\psset{labeloffset=1, optboxwidth=1, arrowscale=1.5, arrowinset=0}
\optbox[position=end, labelangle=90](1,1)(1,2){Box}
\beamsplitter[labelangle=-90](1,2)(1,1)(2,1){BS}
\drawbeam[arrows=->]{1}{2}(2,1)
\end{pspicture}
\end{document}
以及位于日志文件末尾的文件列表:
This is XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017) (preloaded format=xelatex 2017.11.27) 28 NOV 2017 08:39
[...]
*File List*
article.cls 2014/09/29 v1.4h Standard LaTeX document class
size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
pst-optexp.sty 2014/11/26 v5.2 Optical experimental setups with PSTricks
ifthen.sty 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
pstricks.sty 2017/11/27 v0.66 LaTeX wrapper for `PSTricks' (RN,HV)
iftex.sty 2013/04/04 v0.2 Provides if(tex) conditional for PDFTeX, XeTeX,
and LuaTeX
shellesc.sty 2016/06/07 v0.02a unified shell escape interface for LaTeX
xcolor.sty 2016/05/11 v2.12 LaTeX color extensions (UK)
color.cfg 2016/01/02 v1.6 sample color configuration
xetex.def 2017/06/24 v5.0h Graphics/color driver for xetex
pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
xkeyval.sty 2014/12/03 v2.7a package option processing (HA)
xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
pstricks.tex 2017/11/27 v2.79 `PSTricks' (tvz,hv)
pst-fp.tex 2017/11/27 v2.79 `PST-fp' (hv)
pstricks.pro 2017/09/18 v. 1.27, PostScript prologue file (hv)
pst-algparser.pro 2011/10/31 v. 0.04, PostScript prologue file (hv)
pst-tools.pro 2013/10/26 v 0.04, PostScript prologue file
pst-dots.pro 2006/12/19 v. 2.00, PostScript prologue file (hv)
pst-xkey.sty 2005/11/25 v1.6 package wrapper for pst-xkey.tex (HA)
pst-node.sty 2010/04/22 package wrapper for pst-node.tex
pst-node.tex 2017/01/20 1.39 `pst-node' (tvz,hv)
pst-node.pro 2011/09/18 v. 1.14, PostScript prologue file (hv)
pst-plot.sty 2011/04/13 package wrapper for pst-plot.tex (hv)
multido.sty 2004/05/17 package wrapper for PSTricks `multido.tex', (HV/RN)
multido.tex 2010/05/14 v1.42 `multido' (tvz,hv)
pst-plot.tex 2017/11/16 1.86 `pst-plot' (tvz,hv)
pst-eucl.sty 2014/05/17 package wrapper for PSTricks pst-eucl.tex
pst-tools.sty 2012/01/01 package wrapper for pst-tools.tex (hv)
pst-tools.tex 2017/11/16 v1.86 `PST-tools' (hv)
pst-tools.pro 2013/10/26 v 0.04, PostScript prologue file
pst-eucl.tex 2017/04/18 v1.56 `PST-eucl' (dr,hv)
pst-eucl.pro 2012/09/21 v. 1.01, PostScript prologue file (hv)
pst-intersect.sty 2014/03/16 v0.4 package wrapper for pst-intersect.tex
pst-func.sty 2017/08/17 package wrapper for pst-func.tex (hv)
pst-math.sty 2014/07/30 package wrapper for PSTricks pst-math.tex
pst-math.pro 2014/07/30 v. 0.63, PostScript prologue file (hv)
pstricks-add.sty 2010/02/11 v. 0.14 package wrapper for pstricks-add.tex (hv
)
pst-3d.sty 2009/07/28 package wrapper for pst-3d.tex (hv)
pst-3d.tex 2017/04/18 v1.56 `PST-3d' (hv)
pst-3d.pro 2010/01/01 v. 0.01, PostScript prologue file (hv)
pstricks-add.tex 2017/04/18 v1.56 `PSTricks-add' (hv)
pstricks-add.pro 2009/12/17 v. 0.23, PostScript prologue file (hv)
pst-func.tex 2017/08/24 v0.88 `PST-func' (hv)
pst-func.pro 2014/05/07 v. 0.16, PostScript prologue file (hv)
pst-intersect.tex
environ.sty 2014/05/04 v0.3 A new way to define environments
trimspaces.sty 2009/09/17 v1.1 Trim spaces around a token list
pst-optexp.pro