我想找到以下变体,
\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pst-eucl}
\addtopsstyle{gridstyle}{gridlabels=0pt,griddots=0}
\begin{document}
\begin{pspicture}[showgrid](-2,-2)(2,2)
\pstGeonode[PosAngle={180,45,-90}]
(-1.5,-1){A}
(1.5,1){B}
(1.5,-1){C}
\pstRightAngle[RightAngleSize=0.2,fillstyle=solid,fillcolor=green!50]{A}{C}{B}
\pstArcOAB[arcsepB=-1,arcsepA=-2.5]{A}{B}{B}
\pstCurvAbsNode[CurvAbsNeg=true,PointName=none]{A}{B}{D}{\pstDistVal{.75}}
\psline[linestyle=dashed](A)(D)(D|C)(C)
\psset{shortput=nab,labelsep=-3pt}
\ncline{A}{B}^{$g$}
\ncline{B}{C}^{$a$}
\ncline{C}{A}^{$b$}
\end{pspicture}
\end{document}
通过计算与操作员的距离Pyth2
。
以下是我的尝试。
\documentclass[pstricks,border={12pt 12pt 2cm 12pt}]{standalone}
\usepackage{pst-eucl}
\addtopsstyle{gridstyle}{gridlabels=0pt,griddots=0}
\psset{saveNodeCoors}
\begin{document}
\begin{pspicture}[showgrid](-2,-2)(2,2)
\pstGeonode[PosAngle={180,45,-90}]
(-1.5,-1){A}
(1.5,1){B}
(1.5,-1){C}
\pstRightAngle[RightAngleSize=0.2,fillstyle=solid,fillcolor=green!50]{A}{C}{B}
\pstVerb{/Dist {N-A.x N-A.y N-B.x N-B.y Pyth2} def}%
\pnode(!Dist 10 PtoC){D}
\psarc[arcsepB=-1,arcsepA=-2.5](A){!Dist}{(D)}{(B)}
\psline[linestyle=dashed](A)(D)(D|C)(C)
\psset{shortput=nab,labelsep=-3pt}
\ncline{A}{B}^{$g$}
\ncline{B}{C}^{$a$}
\ncline{C}{A}^{$b$}
\end{pspicture}
\end{document}
并且其下面的输出与上面显示的第一个版本不同。
你能找出故障吗?
答案1
A不是坐标系的原点!
\pnode[A](!Dist 10 PtoC ){D}
设置相对于 A 的节点