0

I have this code:

\documentclass[table,dvipsnames,svgnames]{beamer}

\usepackage{tikz}

\begin{document}
    \begin{tikzpicture}
       \node[red] at (6.6, 2.7) {\textbullet};
    \end{tikzpicture}
\end{document}

which will produce a text-bullet. How to label that bullet?

I tried with:

\node[red] at (6.6, 2.7) {\textbullet}\q;

but got a compilation error. If I just do {q}, then I just get a red q.

  • Do you want to add text next to or below to the \textbullet? If yes, did you try \node[red] at (6.6, 2.7) {\textbullet Your text goes here}? – Stefan Braun Jun 25 '16 at 21:59
  • Oh that works, didn't think of that syntax. If possible @StefanBraun, I would like it to lay below the point. :) – gsamaras Jun 25 '16 at 22:02
4

Two solutions for you, the first one uses a line break, the second the positioning library of tikz.

\documentclass{standalone}


\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}
    \begin{tikzpicture}
       \node[red,align=center] at (6.6, 2.7) {\textbullet \\ Your Text is here};
    \end{tikzpicture}
    \begin{tikzpicture}
       \node[red](dot) at (6.6, 2.7) {\textbullet};
       \node[below=0cm of dot]  {Your Text is here};
    \end{tikzpicture}
\end{document}

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.