答案1
一种临时的可能性是使用angles
库,然后double
对于双线,只需添加单个圆弧即可获得三线。
\documentclass[tikz,border=3.14mm]{standalone}
\usetikzlibrary{angles}
\begin{document}
\begin{tikzpicture}[double arc/.style={double,double distance=2pt},
triple arc/.style={double distance=4pt,
pic actions/.append code=\tikzset{postaction={draw}}}]
\draw
(2,0) coordinate (A) -- (0,0) coordinate (B)
-- (1,1) coordinate (C)
pic [draw,double arc,angle radius=1cm] {angle=A--B--C};
\begin{scope}[xshift=4cm]
\draw
(2,0) coordinate (A) -- (0,0) coordinate (B)
-- (1,1) coordinate (C)
pic [draw,triple arc,angle radius=1cm] {angle=A--B--C};
\end{scope}
\end{tikzpicture}
\end{document}
答案2
可以使用包\tkzMarkAngle
的宏tkz-euclide
。手册是用法语写的,没有记录这一点,但通过查看资料,.../tex/latex/tkz-euclide
我们发现了这一点:
% \tkzMarkAngle(B, A, C)
%
% Angle mark
% arc of circle (single/double/triple) and equality mark.
%
% By default:
% arc = simple
% length = 1cm (arc radius)
% style solid lines
% position: 0.5 (mark position)
% mark nothing at all (ignored if type is used)
%
% Parameters (optional)
% arc: l, ll, lll
% length: 1cm
% gap : 2pt
% style: type of lines
% type : none, |, ||, |||, z, s, x, o, oo
% position: 0.5
% mark : none, |, ||, |||, z, s, x, o, oo but all
% % % tikz symbols are allowed
我必须说,我并没有完全理解所有参数的用法。以下是代码示例:
\documentclass{article}
\usepackage{tkz-euclide}
\usetkzobj{all}
\begin{document}
\begin{tikzpicture}[scale=2]
\tkzDefPoint(0,0){O}
\tkzDefPoint(2,-1){A}
\tkzDefPoint(2,2){B}
\tkzDefPointsBy[symmetry=center O](B,A){}
\tkzDrawLine(A,A')
\tkzDrawLine(B,B')
\tkzDrawPoints(O,A,B,A',B')
\tkzLabelPoints[below](O)
\tkzLabelPoints(B,B')
\tkzLabelPoints[below left](A,A')
\tkzMarkAngle[mark=s,arc=l,type=||,size=2 cm,mkcolor=red](A,O,B)
\tkzMarkAngle[mark=||,arc=ll,size=1.5 cm,mkcolor=red](B,O,A')
\tkzMarkAngle[mark=s,arc=l,type=||,size=2 cm,mkcolor=red](A',O,B')
\tkzMarkAngle[mark=||,arc=ll,size=1.5 cm,mkcolor=red](B',O,A)
\end{tikzpicture}
\end{document}
结果如下: