This question already has an answer here:
- Highlight elements in the matrix 11 answers
In the document I have to describe a series of transformations, made with a matrix. Each transformation works only on 2x2 or 1x1 block, so I want to visually select this block in the matrix like this:
I can type the matrix using the pmatrix environment, but I don't know, how to draw the rectangle. What is the best way to achieve this?