我正在尝试在 LaTeX 中使用 PSTricks 绘制一些几何形状。我对 PSTricks 很陌生,但我用 LaTeX 做了一些项目。我发现包 pst-eucl 非常有用。它有一些有用的宏来处理三角形等。
但是,我不知道如何在一条线上绘制小箭头以将两条线标记为平行。pst-eucl 中有一些宏会在线条上绘制哈希标记以标记相等长度的段,但不会标记平行线。有没有人用 PSTricks 画过这样的简单几何图?必须有一个简单的方法来做到这一点。
如果对我的风格有任何建议,或者简化我正在做的事情的方法,请告诉我。
这是到目前为止图片的 PSTricks 标记:
\begin{pspicture}(-6,0)(8,8)
% use dots to represent points
\psset{PointSymbol=*}
% draw original triangle in black
\pstTriangle[](1,3){A}(6,0){B}(0,0){C}
% draw points E and F
\pstGeonode[PosAngle={180,0}](-5,0){E}(8,6.5){F}
% create invisible point A' that extends the segment BA
\pstGeonode[PointName=none,PointSymbol=none](-4,6){A'}
% draw dashed line from A to A'
\pstLineAB[linestyle=dashed]{A}{A'}
% draw line the bisects angle A'AC - this isn't exact
\pstLineAB[linecolor=red]{A}{E}
% draw line CE
\pstLineAB[linecolor=red]{C}{E}
% draw line BF parallel to AC
\pstLineAB[linecolor=blue]{B}{F}
% draw line AF
\pstLineAB[linecolor=blue]{A}{F}
% mark two line segments of equal length - not exact
\pstSegmentMark[]{A}{B}
\pstSegmentMark[linecolor=blue]{F}{B}
% mark four angles alpha of equal measure
\pstMarkAngle[]{E}{A}{C}{$\alpha$}
\pstMarkAngle[]{A'}{A}{E}{$\alpha$}
\pstMarkAngle[]{B}{A}{F}{$\alpha$}
\pstMarkAngle[]{A}{F}{B}{$\alpha$}
% mark two more angles Beta with equal length
\pstMarkAngle[]{A}{C}{E}{$\beta$}
\pstMarkAngle[]{F}{B}{C}{$\beta$}
% only thing missing is some way to mark parallel segments AC and FB
\end{pspicture}