1

I have the following code which generates a little circle of circular images using TikZ. How could text be placed at different points with respect to this circle? Specifically,

  • how could some text be placed at the centre of the circle?
  • how could a caption be placed beneath each circular image?

\documentclass{article}
\usepackage{tikz}

\tikzset{%
    image 1/.initial=test.png,
    image 2/.initial=test.png,
    image 3/.initial=test.png,
    image 4/.initial=test.png,
    image 5/.initial=test.png,
    image 6/.initial=test.png,
    path image/.style={path picture={%
        \edef\imagename{\pgfkeysvalueof{/tikz/image #1}}%
        \node at (path picture bounding box.center){
            \includegraphics[height=1cm]{\imagename}
        };
    }}
}

\begin{document}

\begin{tikzpicture}
\foreach \i in {1,...,6}
    \draw [path image=\i] (\i * 60 + 30:2) circle [radius=0.5cm];
\end{tikzpicture}

\end{document}

\begin{document}
3

You'll have to find your own images...

\documentclass[tikz,border=5]{standalone}
\renewcommand\familydefault\sfdefault
\tikzset{%
  team/.cd,
    image/.store in=\imagefile, name/.store in=\imagenamed,
  member 1/.style={image=pugh1,    name=Pugh},
  member 2/.style={image=pugh2,    name=Pugh},
  member 3/.style={image=barney,   name=Barney McGrew},
  member 4/.style={image=cuthbert, name=Cuthbert},
  member 5/.style={image=dibble,   name=Dibble},
  member 6/.style={image=grub,     name=Grub},
  /tikz/pics/team member/.style={code={
\tikzset{team/.cd, member #1/.try}%
  \draw [path picture={%
    \node at (path picture bounding box.center) 
       {\includegraphics[width=1cm]{\imagefile}};}]
  circle [radius=0.5];
\node [below, font=\small, text width=4em, align=center] 
  at (0,-.5) {\imagenamed};
  }}
}
\begin{document}
\begin{tikzpicture}
\foreach \i in {1,...,6}
  \pic at (\i*60+30:2) {team member=\i};
\node [align=center] {Trumpton\\fire brigade};
\end{tikzpicture}
\end{document}

enter image description here

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.