I want to make a rectangle and then want to split it. My MWE is below:
\documentclass[tikz]{standalone}
\usetikzlibrary{shapes.multipart}
\begin{document}
\begin{tikzpicture}[
my shape/.style={
rectangle split
, rectangle split parts=#1
, draw
, anchor=center
}
]
\node [my shape=1, rectangle split horizontal] at (0, 0) (R1A1) {};
\node[above of=R1A1]{Test};
\node [my shape=5, rectangle split horizontal] at (0, 0)
{a \nodepart{two}b \nodepart{three}c \nodepart{four}d \nodepart{five}e};
\end{tikzpicture}
\end{document}
This code is not working as desired. Any help will be highly appreciated. Thanks

