I'm about to use this diagram to make computing 3×3 determinants clear and easy for my students. I tried to add this picture to my lecture but it's blurred due to the bad quality of the picture. So i want to create exactly the same figure using latex.
I've searched and read a few topics about highlighting elements and diagonals in matrix but it does not work in this case. I want to add plus signs and minus signs as in the picture, and highlight elements in the matrice with elements outside the matrice.
I appreciate all your help and your advice. Thank you in advance !
[Tex/LaTex] How to highlight elements in a matrix
highlightingmatrices
Best Answer
An alternative "pure" TikZ solution:
If you like to have different colors, you can defined similarly as this do @MyUserlsThis in his/her answer.
Edit: I wasn't aware for this answer, @egreg thank you for point it. Considered it, the solutions is more simple (and beautiful):
which gives:
Edit (2): Regarding to comment of @BarbaraBenton: signs + and - can be moved nearly line width reducing distance between the first and second row. This and also lookout, when strips is rectangular one can obtain with next MWE (where also colors are interchanged):
Of course, there is still place to make fine adjustment. For example smaller signs + and -, or different positioning, or etc, but something should be left to OP (if he will accept the answer).
Edit (3): For use with document class
beamer
, here is complete and many time tested MWE (with recent Beamer: version 3.36):