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 want use the following TikZ example:

TikZ Example Intersecting arcs

However, the package tkz-2d has been superseeded by tkz-euclide. It produces numerous errors and the ouput is a little dot. Downloading an old version of tkz-2d didn't help either as it produced even more errors.

\documentclass{article}

\usepackage{tikz, tkz-euclide}

\usepackage[graphics,tightpage,active]{preview}
\setlength{\PreviewBorder}{3pt}
\PreviewEnvironment{tikzpicture}
\begin{document}

\begin{tikzpicture}
  % Initialize tkz-2d and set the range of x and y values
  \tkzInit[xmin=-4.1,xmax=5.2,ymin=-4.1,ymax=8]
  \tkzClip

  % Define two points using TikZ. Note TikZ coordinates can be given
  % in polar form.
  \coordinate (A) at (100:8);
  \coordinate (B) at (50:8);

  % Draw a circle. Note star form of \tkzPoint defines points but does
  % not draw them.
  \tkzPoint*(0,0){C} % center of circle
  \tkzPoint*(0,4){R} % radius of circle
  \tkzCircle(C,R)

  % Define the points that are tangent to the circle where the tangent
  % line passes through either A or B
  \tkzTgtFromP(C,C,R)(A){D}{E}
  \tkzTgtFromP(C,C,R)(B){F}{G}

  % Compute the distance between A and D (the result is stored in
  % \tkzmathLen)
  \tkzMathLength(A,D)

  % Fill and highlight the sector centered at A
  \tkzFillSector*[color=blue!80!black,opacity=0.5](A,\tkzmathLen pt)(D,E)
  \tkzArc*(A,A,D)(D,E)

  % Fill and highlight the sector centered at B
  \tkzMathLength(B,F)
  \tkzFillSector*[color=red!80!black,opacity=0.5](B,\tkzmathLen pt)(F,G)
  \tkzArc*(B,B,F)(F,G)

  % Find the intersection of the two arcs  
  \tkzInterCC(A,A,D)(B,B,F){H}{I}

  % Draw the intersection
  \tkzDrawPoint[pos=below left](I)
\end{tikzpicture}

\end{document}

Can someone help to get this working?

share|improve this question
2  
Just look at page 112 in tkz-euclide manual (texdoc tkz-euclide) and will find the code you want. –  Ignasi Sep 13 '13 at 7:23
    
Thanks, but using this: '\documentclass{article} \usepackage{tikz, tkz-euclide} \usepackage[graphics,tightpage,active]{preview} \setlength{\PreviewBorder}{3pt} \PreviewEnvironment{tikzpicture} \begin{document} ...' I get the error Undefined control sequence \tkzDrawSector –  FLW Sep 13 '13 at 8:20
    
Found the solution: \usetkzobj{all} –  FLW Sep 13 '13 at 8:39
add comment

1 Answer

Ignasi gave the correct answer: Page 112 in the tkz-euclide manual. Be sure to add \usetkzobj{all} to your header!

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.