4

I recently upgraded tkz-euclide to the newest version and I noticed a different behaviour of \tkzMarkAngle with respect to the past. Now a single mark is added to angles even when the command mark=| is not specified. Is it possible to tell tkz-euclide in the preamble to use the option mark=none as default with \tkzMarkAngle?

For example in a document like this

% !Mode:: "TeX:UTF-8"
%
%---------------------------------------------------
\documentclass[a4paper,12pt]{book}

\usepackage{fontspec}

\usepackage{amsmath,empheq}
\usepackage{mathtools}
\usepackage{amscd}
\usepackage{amsxtra}
\usepackage{amsthm}
\usepackage{unicode-math}

\usepackage{tikz}
\tikzset{x=1cm,y=1cm,z=1cm}
\usepackage{tkz-euclide}

\begin{document}

\begin{figure}[htbp]
\centering
\begin{tikzpicture}[scale=1.5]
\tkzDefPoint(0,0){A}
\tkzDefPoint(2,0){B}
\tkzDefPoint(0,3){C}
\tkzDrawPolygon(A,B,C)
\tkzMarkAngle[size=0.5cm,color=red,thick,mark=|](B,A,C)
\tkzMarkAngle[size=0.5cm,color=blue,thick](C,B,A)
\end{tikzpicture}
\caption{}
\label{}
\end{figure}

\end{document} 

The angle in red should have the mark but the angle in blue should not.

6

Seeing as the manual says the default mark is none, there is a mistake in either the manual or the code. I'll report it on GitHub later.

But you can set the default with \tikzset{/tkzmkangle/mark=none}.

enter image description here

\documentclass[border=5mm]{standalone}
\usepackage{tkz-euclide}
\tikzset{
 x=1cm,y=1cm,z=1cm,
 /tkzmkangle/mark=none %<-- add this
 }
\begin{document}
\begin{tikzpicture}
\tkzDefPoint(0,0){A}
\tkzDefPoint(2,0){B}
\tkzDefPoint(0,3){C}
\tkzDrawPolygon(A,B,C)
\tkzMarkAngle[size=0.5cm,color=red,thick,mark=|](B,A,C)
\tkzMarkAngle[size=0.5cm,color=blue,thick](C,B,A)
\end{tikzpicture}
\end{document} 
| improve this answer | |
  • 2
    It’s a mistake in the manual. But I don’t know why I made this choice. I think « none » is the good default. I will change that in the next version. – Alain Matthes May 17 at 10:57
  • Thank you very much to you and to Alain. – Emmet May 17 at 11:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.