61 lines
1.8 KiB
TeX
61 lines
1.8 KiB
TeX
\documentclass[fleqn]{article}
|
|
\usepackage{amsmath,amssymb}
|
|
\usepackage[margin=0.25in]{geometry}
|
|
\usepackage{enumitem}
|
|
\usepackage{systeme}
|
|
\usepackage{mathtools}
|
|
|
|
\date{}
|
|
\author{}
|
|
|
|
\newcommand{\paren}[1]{\left(#1\right)}
|
|
\renewcommand{\Re}[1]{\operatorname{\mathbb{R}e}\paren{#1}}
|
|
\renewcommand{\Im}[1]{\operatorname{\mathbb{{I}}m}\paren{#1}}
|
|
\newcommand{\C}{\mathbb{C}}
|
|
\newcommand{\N}{\mathbb{N}}
|
|
\newcommand{\Z}{\mathbb{Z}}
|
|
\newcommand{\Q}{\mathbb{Q}}
|
|
\newcommand{\R}{\mathbb{R}}
|
|
\newcommand{\conj}[1]{\overline{#1}}
|
|
\renewcommand{\mod}[1]{\left|#1\right|}
|
|
\newcommand{\abs}[1]{\left|#1\right|}
|
|
\newcommand{\polar}[2]{#1\paren{\cos{\paren{#2}} + i\sin{\paren{#2}}}}
|
|
\newcommand{\adj}[1]{\operatorname{adj}#1}
|
|
\newcommand{\card}[1]{\left|#1\right|}
|
|
|
|
\makeatletter
|
|
\renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{%
|
|
\hskip -\arraycolsep
|
|
\let\@ifnextchar\new@ifnextchar
|
|
\array{#1}}
|
|
\makeatother
|
|
|
|
|
|
% https://gitlab.com/jim.hefferon/linear-algebra/-/blob/master/src/sty/linalgjh.sty
|
|
\newlength{\grsteplength}
|
|
\setlength{\grsteplength}{1.5ex plus .1ex minus .1ex}
|
|
|
|
\newcommand{\grstep}[2][\relax]{%
|
|
\ensuremath{\mathrel{
|
|
\hspace{\grsteplength}\mathop{\longrightarrow}\limits^{#2\mathstrut}_{
|
|
\begin{subarray}{l} #1 \end{subarray}}\hspace{\grsteplength}}}}
|
|
\newcommand{\repeatedgrstep}[2][\relax]{\hspace{-\grsteplength}\grstep[#1]{#2}}
|
|
|
|
\newcommand{\swap}{\leftrightarrow}
|
|
|
|
% https://tex.stackexchange.com/a/198806
|
|
\makeatletter
|
|
\newcommand{\subalign}[1]{%
|
|
\vcenter{%
|
|
\Let@ \restore@math@cr \default@tag
|
|
\baselineskip\fontdimen10 \scriptfont\tw@
|
|
\advance\baselineskip\fontdimen12 \scriptfont\tw@
|
|
\lineskip\thr@@\fontdimen8 \scriptfont\thr@@
|
|
\lineskiplimit\lineskip
|
|
\ialign{\hfil$\m@th\scriptstyle##$&$\m@th\scriptstyle{}##$\hfil\crcr
|
|
#1\crcr
|
|
}%
|
|
}%
|
|
}
|
|
\makeatother
|