I was wondering if it's possible to somehow create similar structures in LyX:

enter image description here

The colors does not mean to me, but to know how to create the cool structures will be great.

Tried to find similar threads but without any success. Also tried to read the tikz documentation to see if its possible to achieve it.

  • 1
    And what has your reading of the TikZ documentation shown? Actually that's quite a basic task…
    – TeXnician
    Feb 24, 2019 at 12:45
  • You don't need a hammersledge like TikZ for that.A simple tabular with colortbl will do.
    – Bernard
    Feb 24, 2019 at 12:50

2 Answers 2


Very short approximation:



        \fill[#1!40] (0,0) rectangle ({#2*\xstep},\ystep);
        \draw[#1,xstep=\xstep,ystep=\ystep] (0,0) grid ({8*\xstep},\ystep);

    short num: \xoutofeight{2}

    char* str: \xoutofeight{8}

    short num: \xoutofeight[green!80!black]{2}

Simple tabulars with xcolor and array can do that:

\usepackage[table, svgnames]{xcolor}


  \rowcolor{WhiteSmoke!60!Lavender}& & & & & & &\rule{0pt}{1.5cm} \\
\end{tabular}\vskip 1cm

  & & & & & & &\rule{0pt}{1.5cm} \\
\end{tabular} \end{center}


enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .