This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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] |