[Tex/LaTex] Undefined control sequence \tkzDrawArc

tikz-pgftkz-euclide

I'm trying to follow an example of arc drawing from one tex.stackexchange question:

\begin{tikzpicture}
    \tkzDefPoint(0,0){O}
    \tkzDefPoint(2,-2){A}
    \tkzDefPoint(60:2){B}
    \tkzDrawLines[add = 0 and .5](O,A O,B)
    \tkzDrawArc[rotate,color=red](O,A)(180)
    \tkzDrawPoints(O,A,B)
    \tkzLabelPoints[below](O,A,B)
\end{tikzpicture}

And I keep getting this error message

Undefined control sequence.
\tkzDrawArc
[rotate,color=red](O,A)(180)
?

I'm using the following packages:

\usepackage{fullpage,amsfonts,amsmath,amssymb}
\usepackage{txfonts}
\usepackage{tikz}
\usepackage{tkz-euclide}
\usepackage[margin=0.5in]{geometry}
\usepackage{yhmath}

What am I missing?

Best Answer

Probably you are missing

\usetkzobj{all}

Example:

\documentclass{article}

\usepackage{tikz}
\usepackage{tkz-euclide}
\usetkzobj{all}

\begin{document}
\begin{tikzpicture}
    \tkzDefPoint(0,0){O}
    \tkzDefPoint(2,-2){A}
    \tkzDefPoint(60:2){B}
    \tkzDrawLines[add = 0 and .5](O,A O,B)
    \tkzDrawArc[rotate,color=red](O,A)(180)
    \tkzDrawPoints(O,A,B)
    \tkzLabelPoints[below](O,A,B)
\end{tikzpicture}
\end{document}

Result

Related Question