在 tkz-euclide 中用类似 ditto 的符号显示三角形边的相等长度

在 tkz-euclide 中用类似 ditto 的符号显示三角形边的相等长度

我怎样才能通过画两条垂直于和的红色线段来表示两边AC和相等?A'C'ACA'C'

在此处输入图片描述

     \documentclass[11pt,a4paper]{article}
     \usepackage{blindtext}
     \usepackage{tikz}
     \usepackage{tkz-euclide}
     \usetkzobj{all}
      \usepackage{color}
 \begin{document}
 \begin{tikzpicture}
 \tkzDefPoint(0,0){A}
 \tkzDefPoint(5,0){B}
\tkzDrawSegment(A,B)
\tkzDefPoint(3,6){C}
\tkzDrawSegment(A,C)
\tkzDrawSegment(B,C)
\tkzLabelPoints[xshift=-10pt](A)
\tkzLabelPoints[xshift=-10pt](B)
\tkzLabelPoints[above](C)
\tkzDefPoint(2.5,0.5){M}
\tkzDefPoint(2.5,-0.5){L}
\tkzDrawSegment[red](M,L)
\tkzMarkAngle[size=1 cm, draw=blue, fill=blue!40](B,A,C)
\end{tikzpicture}
 \begin{tikzpicture}
 \tkzDefPoint(0,0){A^{'}}
\tkzDefPoint(5,0){B^{'}}
\tkzDrawSegment(A^{'},B^{'})
\tkzDefPoint(3,6){C^{'}}
\tkzDrawSegment(A^{'},C^{'})
\tkzDrawSegment(B,C)
\tkzLabelPoints[xshift=-10pt](A^{'})
\tkzLabelPoints[xshift=-10pt](B^{'})
\tkzLabelPoints[above](C^{'})
\tkzDefPoint(2.5,0.5){M}
\tkzDefPoint(2.5,-0.5){L}
\tkzDrawSegment[red](M,L)
\tkzMarkAngle[size=1 cm, draw=blue, fill=blue!40](B,A,C)
\end{tikzpicture}
\end{document}

答案1

您可以使用

\tkzMarkSegment[color=green,pos=0.5,mark=|||](B,C)

代码:

     \documentclass[11pt,a4paper]{article}
     \usepackage{blindtext}
     \usepackage{tikz}
     \usepackage{tkz-euclide}
     \usetkzobj{all}
      \usepackage{color}
 \begin{document}
 \begin{tikzpicture}
 \tkzDefPoint(0,0){A}
 \tkzDefPoint(5,0){B}
\tkzDrawSegment(A,B)
\tkzMarkSegment[color=red,pos=0.5,mark=|](A,B)
\tkzDefPoint(3,6){C}
\tkzDrawSegment(A,C)
\tkzMarkSegment[color=blue,pos=0.5,mark=||](A,C)
\tkzDrawSegment(B,C)
\tkzMarkSegment[color=green,pos=0.5,mark=|||](B,C)
\tkzLabelPoints[xshift=-10pt](A)
\tkzLabelPoints[xshift=-10pt](B)
\tkzLabelPoints[above](C)
%\tkzDefPoint(2.5,0.5){M}
%\tkzDefPoint(2.5,-0.5){L}
%\tkzDrawSegment[red](M,L)
\tkzMarkAngle[size=1 cm, draw=blue, fill=blue!40](B,A,C)
\end{tikzpicture}
 \begin{tikzpicture}
 \tkzDefPoint(0,0){A'}
\tkzDefPoint(5,0){B'}
\tkzDrawSegment(A',B')
\tkzMarkSegment[color=red,pos=0.5,mark=|](A',B')
\tkzDefPoint(3,6){C'}
\tkzDrawSegment(A',C')
\tkzMarkSegment[color=blue,pos=0.5,mark=||](A',C')
\tkzDrawSegment(B,C)
\tkzMarkSegment[color=green,pos=0.5,mark=|||](B,C)
\tkzLabelPoints[xshift=-10pt](A')
\tkzLabelPoints[xshift=-10pt](B')
\tkzLabelPoints[above](C')
%\tkzDefPoint(2.5,0.5){M}
%\tkzDefPoint(2.5,-0.5){L}
%\tkzDrawSegment[red](M,L)
\tkzMarkAngle[size=1 cm, draw=blue, fill=blue!40](B,A,C)
\end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容