This has been driving me crazy for months. Suppose I have the following MWE:
\documentclass[tikz]{standalone}
\usepackage{tkz-euclide}
\begin{document}
\begin{tikzpicture}
\tkzDefPoints{0/0/A,3/0/B,0/5/C}
\tkzMarkRightAngle(B,A,C)
\tkzMarkAngle(C,B,A)
\tkzDrawPolygon(A,B,C)
\tkzLabelPoints[below](A,B)
\tkzLabelPoints[above](C)
\end{tikzpicture}
\end{document}
This produces the following image.
I want to make it so that all instances of \tkzMarkRightAngle
, \tkzMarkRightAngles
, \tkzMarkAngle
, and , \tkzMarkAngles
draw in magenta for their lines/arcs and not the default black. I can do this individually by using the option \tkzMarkAngle[magenta]
or \tkzMarkAngle[color = magenta]
. Doing such individually on each angle will produce what I want:
However, I want to set this globally. I know that I can do many other things globally, such as set up arc and line colors via
\tkzSetUpArc[color=magenta]
\tkzSetUpLine[color=magenta]
or that I can also change certain aspects of the right angle via
\tikzset{/tkzrightangle/size=0.5}
but I just cannot figure out how to set the color of all angles globally. Would anyone know of a way to accomplish this?
\newcommand*\myMarkAngle[1][]{\tkzMarkAngle[{magenta,#1}]}
and use that instead. Thetkz
packages don't offer many helpful styles that can be used here.\newcommand*\myMarkAngle[1][]{\tkzMarkAngle[{every mark angle,#1}]}
and\pgfkeys{/tkzmkangle/every mark angle/.style=magenta}
. Then you only need to change theevery mark angle
instead of four commands.