Edit: @js bibra pointed me to How do I mark an angle with multiple arcs?
It seems like my question is kind of a duplicate, but there is still the matter of whether it makes sense and how to nest pics, -and how is the calling syntax from angle is achieved?
I want to define my own pic that create a double angle like this:
Optimally the new double angle pic, dangle should work like the normal angle. My attempt is to create a new pic, where the angle is drawn twice:
\documentclass[tikz, border = 0.5 cm]{standalone}
\usetikzlibrary {angles}
\tikzset{
pics/dangle/.style args={#1--#2--#3}{
code={
\coordinate (AA) at #1;
\coordinate (BB) at #2;
\coordinate (CC) at #3;
% \draw pic [draw, angle radius=6 mm] {angle = AA--BB--CC}; %not ok
% \draw pic [draw, angle radius=7 mm] {angle = AA--BB--CC}; %not ok
\draw[red] (AA)--(CC); %just for testing
}
}
}
\begin{document}
\begin{tikzpicture}
\coordinate (A) at (5,0);
\coordinate (B) at (0,0);
\coordinate (C) at (2,3);
\draw pic [draw, green] {angle = A--B--C};
\draw pic {dangle={(A)--(B)--(C)}} ;
\draw[thick] (A) node[right]{A} -- (B) node[left]{B} -- (C) node[right]{C};
\end{tikzpicture}
\end{document}
I can not use angle within my own pic. Is it possible to nest pics? How? I created the temp coordinates (AA), (BB) and (CC) because this is written in the manual:
The three points ⟨A⟩, ⟨B⟩, and ⟨C⟩ must be the names of nodes or coordinates; you cannot use direct coordinates like “(1,1)” here.
-but I can still not make it work!
An other thing is that the calling syntax is not the same angle = A--B--C vs dangle={(A)--(B)--(C)}. Can someone explain why it is that way or how to correct it?






