Skip to content

Instantly share code, notes, and snippets.

@volkancirik
volkancirik / matrix_box_notation.tex
Created Oct 5, 2020 — forked from MilesCranmer/matrix_box_notation.tex
Draw boxes for matrices in equation
View matrix_box_notation.tex
%Make sure to have \usepackage{tikz}
%https://tex.stackexchange.com/a/45815/140440 - for grid
%https://tex.stackexchange.com/a/381175/140440 - for alignment in equation
% This function draws a matrix.
\newcommand{\mat}[2]{% cols, rows
\vcenter{\hbox{ %Vertical alignment
\begin{tikzpicture}[scale=0.3, align=center]
@volkancirik
volkancirik / matrix_box_notation.tex
Created Oct 5, 2020 — forked from MilesCranmer/matrix_box_notation.tex
Draw boxes for matrices in equation
View matrix_box_notation.tex
%Make sure to have \usepackage{tikz}
%https://tex.stackexchange.com/a/45815/140440 - for grid
%https://tex.stackexchange.com/a/381175/140440 - for alignment in equation
% This function draws a matrix.
\newcommand{\mat}[2]{% cols, rows
\vcenter{\hbox{ %Vertical alignment
\begin{tikzpicture}[scale=0.3, align=center]
You can’t perform that action at this time.