Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to draw an arc between two points, centered at a third. I thought the following example should work

\documentclass{article}
\usepackage{tikz}
\usepackage{tkz-euclide}
\usetikzlibrary{calc}
\begin{document}

\begin{tikzpicture}[scale=1.5]
  \tkzDefPoint(0,0){O}
  \tkzDefPoint(2,-1){A}
  \tkzDefPoint(1,1){B}
  \tkzDrawArc[color=blue](O,A)(B)
  \tkzDrawArc[color=Maroon](O,B)(A)
  \tkzDrawArc(O,B)(A)
  \tkzDrawLines[add = 0 and .5](O,A O,B)
  \tkzDrawPoints(O,A,B)
  \tkzLabelPoints[below](O,A,B)
\end{tikzpicture}

\end{document}

instead I get an error message that \tkzDrawArc is an undefined control sequence.

share|improve this question
add comment

1 Answer 1

up vote 5 down vote accepted

You need to add the line

\usetkzobj{all}

to your preamble straight after \usepackage{tkz-euclide}. From the README in the CTAN entry for tkz-euclide:

To use the package tkz-euclide, place the following lines in the preamble of your LaTeX document.

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

\usepackage{tkz-euclide} loads tkz-base and TikZ. \usetkzobj{all} loads all objects used by tkz-euclide.

You’ll get a second error from the Maroon colour which isn’t defined yet; add the line

\usepackage[usenames, dvipsnames]{xcolor}

before you load tkz-euclide to get that colour.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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