I'm learning how to use TikZ/PGF. I want to draw this picture :
Here's how I began :
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[frenchb]{babel}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric,arrows,positioning,fit,calc,}
\begin{document}
\begin{tikzpicture}
\node (sun) at (0,0) [circle, fill=yellow, radius=0.3cm]{};
\node (sunlabel) [above=0.08 of sun]{Sun};
\node (root) at (0,0) [draw, circle, radius=3cm]{};
\end{tikzpicture}
\end{document}
The problem is that the second circle is not drawn. I don't know what's the problem. This syntax work but I don't know how to give a name to the circles and how to fill a circle with a color.
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[frenchb]{babel}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric,arrows,positioning,fit,calc,}
\begin{document}
\begin{tikzpicture}
\draw (0,0) circle [radius=.3cm, fill=yellow];
\draw (0,0) circle [radius=2cm];
\path[
%rotate=-15.2,
postaction={
decoration={
text along path,
text={%
OORT CLOUD
},
text align=center,
reverse path
},
decorate
}
]
(-27:2.2cm) arc (-27:210:2.2cm);
\end{tikzpicture}
\end{document}
Best Answer
You will need to put the accented characters in braces in the
circle label
because PGF will split the string into tokens and will therefore split the accents from the characters, which leads to weird errors.I translated the labels to french to emphasize the behaviour (I don't speak french, so I hope I didn't make too many mistakes).