我怎样才能通过画两条垂直于和的红色线段来表示两边AC
和相等?A'C'
AC
A'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}