
Criando um diagrama de nível de energia, usei esta resposta para tornar os círculos dos nós com raio igual:Como definir o raio exato para um nó?
\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}
Mas os nós vazios ainda são ligeiramente menores que os preenchidos! Tentei incluir fantasma ou quad sem sucesso.
o que estou perdendo?
Responder1
Você não precisa usar fantasmas, etc., para controlar o tamanho dos círculos. Basta usar a opção para todos os círculos minimum size=<length>
, escolhendo um tamanho grande o suficiente, por exemplo minimum size=0.7cm
. Definir as coisas em a cir/.style
torna o código mais 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}