pst-eucl 对称性

pst-eucl 对称性

我正在尝试使用对称标签绘制对角线,但我真的不明白参数的含义以及如何使线条变长以适合图形。对于此来源,我只能使用包pst-eucl。我确实在这里搜索了类似的东西,但可能这个包并不常用。我希望有人可以向我解释或帮助我编写代码。

图片是我想要达到的结果:

在此处输入图片描述

\begin{pspicture}(0,0)(3,3)
\pstGeonode[PosAngle=-100,PointSymbol=none](0,0){A}
\psset{CodeFig=true}
\pstGeonode[PointSymbol=none,PosAngle=-100](4.4,0){B}
\pstGeonode[PosAngle=90,PointSymbol=none](7,3.4){C}
\pstGeonode[PosAngle=90,PointSymbol=none](2.6,3.4){D}
\pspolygon(A)(B)(C)(D)
\pstMarkAngle[]{C}{A}{D}{$\alpha /2$}
\pstMarkAngle[]{B}{A}{C}{$\alpha /2$}
\pstLineAB[linestyle=dashed]{A}{C}
\pstLineAB[linestyle=dashed]{B}{D}
\pstInterLL[PointSymbol=+,PosAngle=60]{A}{C}{B}{D}{O}
\pstRightAngle[PointSymbol=none,linecolor=black,RightAngleType=german]{A}{O}{B}
\pstGeonode[PointSymbol=none,PosAngle=-100](3.5,0){P}
\pstLineAB[linestyle=solid]{O}{P}
\pstRightAngle[PointSymbol=none,linecolor=black,RightAngleType=german,CodeFigColor=black,RightAngleSize=.3]{O}{P}{A}
\pstGeonode[PointSymbol=none,PosAngle=-100](2.6,0){M}
\pstLineAB[linestyle=solid]{D}{M}
\pstRightAngle[PointSymbol=none,linecolor=black,RightAngleType=german,CodeFigColor=black,RightAngleSize=.3]{D}{M}{A}
\pstGeonode[PointSymbol=none,PosAngle=100](3.5,3.4){Q}
\pstLineAB[linestyle=solid]{O}{Q}
\pstRightAngle[PointSymbol=none,linecolor=black,RightAngleType=german,CodeFigColor=black,RightAngleSize=.3]{D}{Q}{O}
\pstCircleOA[linecolor=black, DistCoef=3. 3 div, Radius=\pstDistAB{O}{P}]{O}{}
\pstGeonode[PointSymbol=none,PointNameSep=0.3em](5,3.6){a}
\pstGeonode[PointSymbol=none,PointNameSep=0.3em](1.3,2.3){a}
\pstGeonode[PointSymbol=none,PointNameSep=0.3em](2.8,2){2r}
\pstGeonode[PointSymbol=none,PointNameSep=0.3em](3.6,2.5){r}
\end{pspicture}

好吧,如果有人感兴趣的话,我想这可能是代码。如果你能提供一些建议,告诉我如何做得更好,我会很高兴。

答案1

据我所知,左下角注释是您的代码与您提供的图像之间的唯一区别。因此,添加一些选项可以解决该问题:

\documentclass[12pt]{article}
\usepackage{pstricks,pst-node,pst-eucl}

\begin{document}

\begin{pspicture}(0,0)(3,3)
\pstGeonode[PosAngle=-100,PointSymbol=none](0,0){A}
\psset{CodeFig=true}
\pstGeonode[PointSymbol=none,PosAngle=-100](4.4,0){B}
\pstGeonode[PosAngle=90,PointSymbol=none](7,3.4){C}
\pstGeonode[PosAngle=90,PointSymbol=none](2.6,3.4){D}
\pspolygon(A)(B)(C)(D)
\pstMarkAngle[LabelSep=1.3,MarkAngleRadius=1]{C}{A}{D}{$\scriptstyle\alpha /2$}
\pstMarkAngle[MarkAngleRadius=0.7]{B}{A}{C}{$\scriptstyle\alpha /2$}
\pstLineAB[linestyle=dashed]{A}{C}
\pstLineAB[linestyle=dashed]{B}{D}
\pstInterLL[PointSymbol=+,PosAngle=60]{A}{C}{B}{D}{O}
\pstRightAngle[PointSymbol=none,linecolor=black,RightAngleType=german]{A}{O}{B}
\pstGeonode[PointSymbol=none,PosAngle=-100](3.5,0){P}
\pstLineAB[linestyle=solid]{O}{P}
\pstRightAngle[PointSymbol=none,linecolor=black,RightAngleType=german,CodeFigColor=black,RightAngleSize=.3]{O}{P}{A}
\pstGeonode[PointSymbol=none,PosAngle=-100](2.6,0){M}
\pstLineAB[linestyle=solid]{D}{M}
\pstRightAngle[PointSymbol=none,linecolor=black,RightAngleType=german,CodeFigColor=black,RightAngleSize=.3]{D}{M}{A}
\pstGeonode[PointSymbol=none,PosAngle=100](3.5,3.4){Q}
\pstLineAB[linestyle=solid]{O}{Q}
\pstRightAngle[PointSymbol=none,linecolor=black,RightAngleType=german,CodeFigColor=black,RightAngleSize=.3]{D}{Q}{O}
\pstCircleOA[linecolor=black, DistCoef=3. 3 div, Radius=\pstDistAB{O}{P}]{O}{}
\pstGeonode[PointSymbol=none,PointNameSep=0.3em](5,3.6){a}
\pstGeonode[PointSymbol=none,PointNameSep=0.3em](1.3,2.3){a}
\pstGeonode[PointSymbol=none,PointNameSep=0.3em](2.8,2){2r}
\pstGeonode[PointSymbol=none,PointNameSep=0.3em](3.6,2.5){r}
\end{pspicture}

\end{document}

在此处输入图片描述

相关内容