I am looking to produce a matrix multiplication where one of the matrices consists of coloured blocks. Much like:
Is there any way to produce something like this in Latex?
matrices
I am looking to produce a matrix multiplication where one of the matrices consists of coloured blocks. Much like:
Is there any way to produce something like this in Latex?
Best Answer
I did this with stacks. Unfortunately, there is some tailoring that one must do, depending on the arrangement of boxes, so each particular image must be thought through. The
\colblock[color]{rows}{content}
is the basic unit.\belowbaseline[length]{}
is used in\colblock
to align boxes at their top. That and\belowbaseline[length]{}
can be used in the code to shift/align boxes. Passing either of them a multiple of\baselineskip
would allow some staggering in the vertical box placement.If the
\colblock
s are allowed to be rectangular (I assumed square), let me know so that I may correct the answer.