2

I'd like to draw some circles with text inside. I can increase the radius, but the text naturally always stays the same. I know \Huge, which I tried to use, but it seems not to work in math-mode. How can the textsize of T_1 to T_4 below be controlled/increased?

MCVE:

\documentclass[tikz,border=1cm]{standalone}
\usetikzlibrary{calc}

\begin{document}
\begin{tikzpicture}[>=latex,line cap=round,line 
join=round,scale=2]

  \coordinate (A) at (0,0,0);
  \draw ($(A)+(0,2,4)$) circle [radius=2] node {$T_1$};
  \draw ($(A)+(0,-0.5,4)$) circle [radius=2] node {$T_2$};
  \draw ($(A)+(0,-2,4)$) circle [radius=2] node {$T_3$};
  \draw ($(A)+(0,0,2)$) circle [radius=2] node {${\Huge T_4}$};

\end{tikzpicture}
\end{document}
3

1 Answer 1

4

You can use the node option font:

\documentclass[tikz,border=1cm]{standalone}
\usetikzlibrary{calc}

\begin{document}
\begin{tikzpicture}[>=latex,line cap=round,line 
join=round,scale=2]

  \coordinate (A) at (0,0,0);
  \draw ($(A)+(0,2,4)$) circle [radius=2] node[font=\Huge] {$T_1$};
  \draw ($(A)+(0,-0.5,4)$) circle [radius=2] node[font=\Huge] {$T_2$};
  \draw ($(A)+(0,-2,4)$) circle [radius=2] node[font=\Huge] {$T_3$};
  \draw ($(A)+(0,0,2)$) circle [radius=2] node[font=\Huge] {$T_4$};

\end{tikzpicture}
\end{document}

enter image description here

If your node should be all with font=\Huge, you can put this option as parameter of your tikzpicture environment.

\documentclass[tikz,border=1cm]{standalone}
\usetikzlibrary{calc}

\begin{document}
\begin{tikzpicture}[>=latex,line cap=round,line 
join=round,scale=2, font=\Huge]

  \coordinate (A) at (0,0,0);
  \draw ($(A)+(0,2,4)$) circle [radius=2] node {$T_1$};
  \draw ($(A)+(0,-0.5,4)$) circle [radius=2] node {$T_2$};
  \draw ($(A)+(0,-2,4)$) circle [radius=2] node {$T_3$};
  \draw ($(A)+(0,0,2)$) circle [radius=2] node {$T_4$};

\end{tikzpicture}
\end{document}
2
  • Awesome, thanks! I think also the scale solution @leandriis posted in the comment above will work.
    – avermaet
    Nov 1, 2019 at 22:19
  • @avermaet Thank you! Of course, scale works, I used font because you mention \Huge in your question.
    – CarLaTeX
    Nov 1, 2019 at 22:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .