I'm trying to draw a KMap with the miniterms index in it like this;
The closest I am to this is the following code:
\begin{kvmap}
\kvlist{8}{4}{\phantom{0},\phantom{0},\phantom{0},\phantom{0},\phantom{0},\phantom{0},\phantom{0},\phantom{0},\phantom{0},1,1,\phantom{0},\phantom{0},\phantom{0},\phantom{0},\phantom{0},X,X,X,X,X,X,X,X,\phantom{0},\phantom{0},\phantom{0},\phantom{0},X,X,X,1}{Q_2,Q_1,Q_0,Q_4,Q_3}
\bundle[color=red]{1}{1}{2}{2}
\bundle[color=blue,reducespace=3pt]{4}{2}{7}{3}
\end{kvmap}
All I need is adding those mininumbers to the topright corner of each cell, forget about making the red and yellow boxes, I am okay with the implicant desing I have.

