4

I wanted to draw a circle with text and arrow like the one on this picture. enter image description here

But I don't know how to do that using tkz-euclide.

I already did something like this

\documentclass[10pt]{standalone}
\usepackage{tkz-euclide}

\begin{document}
\begin{tikzpicture}
\tkzDefPoint(0,0){O}
\tkzDefPoint(150:2){A}
\tkzDefPoint(330:2){B}
\tkzDefPoint(20:2){C}

\tkzDefPoint(268:2){D}

\tkzDefMidPoint(A,C)    \tkzGetPoint{e}
\tkzDefMidPoint(B,D)    \tkzGetPoint{f}

\tkzDrawSegments(A,B O,D O,C B,D O,e O,f)
\tkzMarkRightAngles(O,e,A O,f,D)

\tkzDrawSector[fill=gray!20](O,B)(C)

\tkzDrawCircle[R](O,2cm)
\filldraw[fill=gray!10] 
     (150:2cm)
  -- (20:2cm)  
  arc[start angle=20, end angle=150, radius=2cm] 
  -- cycle;

\end{tikzpicture}
\end{document}

enter image description here

How do I add text with arrow pointing to the things on that circle?

3
  • You could just use tikz directly: For example \draw [thick, red, latex-] (80:1.5) -- (80:2.5) node [above] {tembereng};. Adjust the coordinates as desired. Jan 15 at 0:37
  • @masrosid please have a look athe answer below if it suits the requirement
    – js bibra
    Jan 15 at 1:16
  • oke. I"ll try that.
    – masrosid
    Jan 15 at 1:45
3

something like this --to remove the box around the text delete the draw option in

\draw[{Latex}-] ($(O)!0.5!(f)$)--++(0:2cm)node[draw, right, fill=orange!30, font =\tiny]{\begin{tabular}{@{}p{2cm}@{}}
        some text added here\\
\end{tabular}};

enter image description here

    \documentclass[10pt]{standalone}
\usepackage{tkz-euclide}

\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\tkzDefPoint(0,0){O}
\tkzDefPoint(150:2){A}
\tkzDefPoint(330:2){B}
\tkzDefPoint(20:2){C}

\tkzDefPoint(268:2){D}

\tkzDefMidPoint(A,C)    \tkzGetPoint{e}
\tkzDefMidPoint(B,D)    \tkzGetPoint{f}

\tkzDrawSegments(A,B O,D O,C B,D O,e O,f)
\tkzMarkRightAngles(O,e,A O,f,D)

\tkzDrawSector[fill=gray!20](O,B)(C)

\tkzDrawCircle[R](O,2cm)
\filldraw[fill=gray!10] 
     (150:2cm)
  -- (20:2cm)  
  arc[start angle=20, end angle=150, radius=2cm] 
  -- cycle;
%\tkzLabelPoints(A,B,C,D,e,f,O)
\draw[{Latex}-] ($(O)!0.5!(f)$)--++(0:2cm)node[draw, right, fill=orange!30, font =\tiny]{\begin{tabular}{@{}p{2cm}@{}}
        some text added here\\
\end{tabular}};
\draw[{Latex}-] ($(A)!0.5!(e)$)--++(45:2cm)--++(2,0cm)node[draw, right, fill=orange!30, font =\tiny]{\begin{tabular}{@{}p{2cm}@{}}
        some text added here\\
\end{tabular}};
\draw[{Latex}-] ($(C)!0.5!(B)$)--++(45:1cm)--++(4pt,0cm)node[draw, right, fill=orange!30, font =\tiny]{\begin{tabular}{@{}p{2cm}@{}}
        some text added here\\
\end{tabular}};
\end{tikzpicture}
\end{document}
1
  • thank you. I will try that.
    – masrosid
    Jan 15 at 1:45
-1

You can use tikz directly: For example, \draw [thick, red, latex-] (80:1.5) - (80:2.5) node [above] {tembereng};. Adjust the coordinates as needed.

1
  • 1
    Hello and welcome to TeX.SE. This was already suggested by @Peter Grill.
    – Roland
    May 20 at 8:29

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.