I want to have same height for the splitted rectangle's rows. Their height changes based on the character inside each section, for example .
is much smaller than having larger characters like f
.
my code:
\documentclass[5p,times]{elsarticle}
\usepackage{tikz}
\usetikzlibrary{
chains,
positioning,
shapes.geometric,
shapes
}
\begin{document}
\section{Example}
\noindent
\begin{tikzpicture}[
data/.style={
draw,
rectangle split,
rectangle split parts=4,
text centered,
font=\scriptsize
}
]
\node [data,label=below:{test}] (n1) {
GOOGLE
\nodepart{second} IPFS
\nodepart{third} ipfs
\nodepart{fourth} .
};
\end{tikzpicture}
\end{document}
output:
Here all the sections have different height, for example forth row is much smaller. Is it possible to make all rows same height?
Could be related to: How to set rectangle split with the same size (width and height)?
every part/.style
?every part/.style
. Additionally, it seems not to be possible to setminimum height
to the node parts, at least not in vertical orientation: "When split vertically, the rectangle split will meet any minimum width requirements, but any minimum height will be ignored" (page 820, TikZ manual).nicematrix
andtabularray
should be good for this kind of diagram.