I would like to make a blue square with corresponding subsection number.
For this I done:
\setsecnumformat{\csname #1secnumformat\endcsname}
\newcommand\subsectionsecnumformat{
\colorbox{MidnightBlue}{
\makebox[.7cm] {
\color{white}\thesubsection
}
}
\hspace{0.5cm}
}
This build fine but the height box change if I use alpha character as numbering. Indeed letter 'a' is smaller than 'b'. So I replaced makebox by minipage to control vertical space. As follow:
\setsecnumformat{\csname #1secnumformat\endcsname}
\newcommand\subsectionsecnumformat{
\colorbox{MidnightBlue}{
\begin{minipage}[c][0.7cm]{.7cm}
\color{white}\thesubsection
\end{minipage}
}
\hspace{0.5cm}
}
This do not build. Any help/suggestion are welcome.
Best regards