0

I have a TikZ figure where a node contains text in both normal and script size.

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
  \node [draw, align=center, text width=2cm, minimum width=2.32cm, minimum height=2cm]
    {\textbf{Big}\\\textbf{stuff}\\{\scriptsize Some, small, stuff}};
  \end{tikzpicture}
\end{document}

The distance between the third and fourth line looks too large.

node image

Am I switching correctly to script size?

  • Are you sure that you want to say "too small" rather than "too large"? – user121799 Apr 3 '18 at 16:45
  • Wrongly spelled and the opposite what I meant. Yes, too large. I am sorry. Original description updated. – tucuxi Apr 4 '18 at 15:59
3

enter image description here

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
  \node [draw, align=center, text width=2cm, minimum height=2cm,
  font=\bfseries\scriptsize]
    {\normalsize
     big\\ stuff\\[1ex]
     \normalfont\scriptsize
     Some, small, stuff
     };
  \end{tikzpicture}
\end{document}
| improve this answer | |
  • Much better. Thanks, also for guessing what I meant and did not write. – tucuxi Apr 4 '18 at 16:05

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.