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 drew a circle and wanted to add text $T_1$ inside it:

\draw (0,0) circle [radius=0.3] {$T_1$};

Why does this not work, and how can I fix it?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Use a node to add the label

\draw (0,0) circle [radius=0.3] node {$T_1$};

or use a \node with circle shape:

\documentclass{article}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}
\draw (-2,-2) grid (3,3);
\draw (0,0) circle [radius=0.3] node {$T_1$};
\node[draw,circle,minimum size=1cm,inner sep=0pt] at (2,0) {$T_1$};
\end{tikzpicture}

\end{document}

enter image description here

share|improve this answer

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.