PSTricks:图形的某些部分仅具有特定的颜色和线宽

PSTricks:图形的某些部分仅具有特定的颜色和线宽

考虑以下非 MWE。

\documentclass{article}

\usepackage{pst-eucl}

\begin{document}

\begin{pspicture}(-1.5,0)(6,3.1)
  \pnodes(0,0){A}(0,3.1){B}(6,0){C}
  \pspolygon(A)(B)(C)
  \pstMediatorAB[
    linewidth = 2\pslinewidth,
    linecolor = red,
    PointName = none,
    PointSymbol = none,
    CodeFig,
    CodeFigColor = red,
    SegmentSymbol = none,
    nodesepA = -1.5
  ]{B}{A}{C'}{MC}
\end{pspicture}

\end{document}

输出

我只想用红色和双倍线宽标记垂直角平分线;而不是线段或直角标记。

我怎样才能做到这一点?

答案1

这似乎是不可能的,所以这里有一个解决方法,手动标记正确的角度:

\documentclass{article}
\usepackage{pst-eucl}

\usepackage{auto-pst-pdf}

\begin{document}

\begin{pspicture}(-1.5,0)(6,3.1)
  \pnodes(0,0){A}(0,3.1){B}(6,0){C}
  \pspolygon(A)(B)(C)
  \psset{
 linewidth = 2\pslinewidth,
 PointName = none,
 PointSymbol = none,
 SegmentSymbol = none,
 nodesepA = -1.5,
 }
 \pstMediatorAB[linecolor = red]{B}{A}{I}{MC}
 \pstRightAngle[linewidth = 0.6pt]{A}{I}{MC}
 \pstMediatorAB[linecolor = red]{B}{A}{I}{MC}
\end{pspicture}

\end{document}

在此处输入图片描述

相关内容