![添加阀杆、夹具和螺母](https://linux22.com/image/430876/%E6%B7%BB%E5%8A%A0%E9%98%80%E6%9D%86%E3%80%81%E5%A4%B9%E5%85%B7%E5%92%8C%E8%9E%BA%E6%AF%8D.png)
我开始使用 pst-labo 软件包制作化学图表。我理解了原理,很容易理解,可以追踪它们。我想通过添加杆、螺母和夹子来装饰组件:我该怎么做?
谢谢您的帮助
\documentclass{article}
\usepackage{pst-labo}
\begin{document}
\psset{ unit =0.5cm}
\psgrid[subgriddiv=1,griddots=10, gridlabels=5pt, gridwidth=0.5pt](0,0)(20,20)
\pstBallon[ refrigerantBoulles ,glassType=ballon]
\end{document}
答案1
您可以像本例一样绘制自己的。然后可以使用命令\rput
将其移动到所需位置。
\documentclass{article}
\usepackage{pst-labo}
\newcommand{\pstClamp}{
\colorlet{myfill}{brown!60}
% potence
\psframe[fillstyle=solid, fillcolor=myfill](-.5,-2.625)(-.25,13)
\psframe[fillstyle=solid, fillcolor=myfill](-1,8)(1.75,7.75)
\psframe[fillstyle=solid, fillcolor=myfill](-1,8.25)(-.75,7.5)
\pscircle[fillstyle=solid, fillcolor=myfill](-.375,7.875){.2}
\psframe[fillstyle=solid, fillcolor=myfill](1.5,8.15)(3,7.6)
\psframe[fillstyle=solid, fillcolor=myfill](-1,4)(1.75,3.75)
\psframe[fillstyle=solid, fillcolor=myfill](-1,4.25)(-.75,3.5)
\pscircle[fillstyle=solid, fillcolor=myfill](-.375,3.875){.2}
\psframe[fillstyle=solid, fillcolor=myfill](1.5,4.15)(3,3.6)
% support elevateur
\pspolygon[fillstyle=solid, fillcolor=myfill, linearc=.05](.25,-.25)(3.25,-1.25)(.25,-2.25)(1.25,-2.25)(4.25,-1.25)(1.25,-.25)
\pspolygon[fillstyle=solid, fillcolor=myfill, linearc=.05](4.25,-.25)(1.25,-1.25)(4.25,-2.25)(3.25,-2.25)(.25,-1.25)(3.25,-.25)
\psline(.25,-1.25)(4.5,-1.25)
\psframe[fillstyle=solid, fillcolor=myfill](4.5,-1)(4.75,-1.5)
\psframe[fillstyle=solid, fillcolor=myfill](0,0)(4.5,-.25)
\psframe[fillstyle=solid, fillcolor=myfill](0,-2.25)(4.5,-2.5)
% base
\psframe[fillstyle=solid, fillcolor=myfill](-1,-2.5)(5,-2.75)
}
\begin{document}
\psset{unit=0.5cm}
\psgrid[subgriddiv=1, griddots=10, gridlabels=5pt, gridwidth=0.5pt](0,0)(20,20)
\pstBallon[refrigerantBoulles, glassType=ballon]
\pstClamp
\rput{0}(8,8){\pstClamp}
\end{document}