
Al crear un diagrama de niveles de energía, utilicé esta respuesta para hacer que los círculos de los nodos tengan el mismo radio:¿Cómo establecer el radio exacto de un nodo?
\documentclass{report}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[circle,draw,blue,text width=0.3cm,text height=0.3cm] at (5,9) {$\uparrow$};% 4d
\node[circle,draw,blue,text width=0.3cm,text height=0.3cm] at (6,9) {$\uparrow$};% 4d
\node[circle,draw,blue,text width=0.3cm,text height=0.3cm] at (7,9) {};% 4d
\node[circle,draw,blue,text width=0.3cm,text height=0.3cm] at (8,9) {\phantom{6}};% 4d
\node[circle,draw,blue,text width=0.3cm,text height=0.3cm] at (9,9) {\quad};% 4d
\end{tikzpicture}
\end{document}
¡Pero los nodos vacíos son todavía un poco más pequeños que los llenos! Intenté incluir Phantom o Quad sin éxito.
¿Qué me estoy perdiendo?
Respuesta1
No es necesario utilizar fantasmas, etc. para controlar el tamaño de los círculos. Simplemente usa la opción para todos los círculos minimum size=<length>
, eligiendo un tamaño lo suficientemente grande, por ejemplo minimum size=0.7cm
. Configurar las cosas en a cir/.style
hace que el código sea más elegante.
\documentclass{report}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[cir/.style={circle,draw,blue,minimum size=0.7cm}]
\node[cir] at (5,9) {$\uparrow$};% 4d
\node[cir] at (6,9) {$\uparrow$};% 4d
\node[cir] at (7,9) {};% 4d
\node[cir] at (8,9) {};% 4d
\node[cir] at (9,9) {};% 4d
\end{tikzpicture}
\end{document}