I know I can manually vertical align text in nodes via the text height
/text depth
keys. I know also I can set the total height to be the same with the same two keys.
But what if I want both effects at the same time? See my examples:
\documentclass{scrartcl}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\matrix[every node/.style={draw,rectangle,text width=4em}]{
\node {arr}; & \node {KMUX}; & \node {rather long text}; \\
};
\end{tikzpicture}
\begin{tikzpicture}
\matrix[every node/.style={draw,rectangle,text width=4em, text height=1.5ex, text depth=6ex, text centered}]{
\node {arr}; & \node {KMUX}; & \node {rather long text}; \\
};
\end{tikzpicture}
\end{document}
So I think it's obvious that the problem with the first one is that the boxes doesn't have the same height. Now when trying to fix that, I set the height/depth manually. But now the three nodes aren't vertically centered in their boxes (text centered
apparently only configures horizontal centering).
Any ideas on this? (I know there are many questions out there on similar issues, but I can't find one tackling this issue)