I need some help with tikz. I have multiple nodes with labels and my problem is that the labels that are below a node are placed in such a way that their upper boundaries align. How can i change it such that the labels align at their baseline? Here a minimal example, the labels above the nodes look fine but the ones below are horrible.
\begin{tikzpicture}
\node[circle,fill,label=above:$n$] at (0,1) {};
\node[circle,fill,label=below:$n$] at (0,0) {};
\node[circle,fill,label=above:$n-1$] at (1,1) {};
\node[circle,fill,label=below:$n-1$] at (1,0) {};
\node[circle,fill,label=above:$c$] at (2,1) {};
\node[circle,fill,label=below:$c$] at (2,0) {};
\node[circle,fill,label=above:$d$] at (3,1) {};
\node[circle,fill,label=below:$d$] at (3,0) {};
\end{tikzpicture}




\vphantom{d1-}(or\strutor\mathstrut) too all or set a fixedtext heightfor all,text height={height("$d1-$"})to mimic the\vphantomsolution. See also Q107227 and related question. TikZ packs all text relatively tightly and uses the border of the text to place it. You will need to have all nodes the same vertical dimension to have them align properly. – Qrrbrbirlbel Feb 02 '23 at 10:43