Skip to content

Instantly share code, notes, and snippets.

@Demonstrandum
Last active April 17, 2024 17:38
Show Gist options
  • Save Demonstrandum/dfc5582bac4514cd804a7a745e2dc98d to your computer and use it in GitHub Desktop.
Save Demonstrandum/dfc5582bac4514cd804a7a745e2dc98d to your computer and use it in GitHub Desktop.
Basic macros.
\newcommand{\cat}[1]{\mathscr{#1}}
\newcommand{\fcat}[1]{\mathbf{#1}}
\newcommand{\FF}{\mathbb{F}}
\newcommand{\CC}{\mathbb{C}}
\newcommand{\RR}{\mathbb{R}}
\newcommand{\QQ}{\mathbb{Q}}
\newcommand{\ZZ}{\mathbb{Z}}
\newcommand{\NN}{\mathbb{N}}
\newcommand{\II}{\mathbb{I}}
\newcommand{\C}{\cat{C}}
\newcommand{\Cop}{\cat{C}^\op}
\newcommand{\D}{\cat{D}}
\newcommand{\Dop}{\cat{D}^\op}
\newcommand{\LinId}{\mathmybb{1}}
\newcommand{\eps}{\varepsilon}
\newcommand{\inj}{\hookrightarrow}
\newcommand{\sur}{\twoheadrightarrow}
\DeclareMathOperator{\det}{det}
\DeclareMathOperator{\unit}{\mathbb{1}}
\DeclareMathOperator{\Succ}{succ}
\DeclareMathOperator{\Card}{card}
\DeclareMathOperator{\Id}{Id}
\DeclareMathOperator{\Ob}{Ob}
\DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\Mor}{Mor}
\DeclareMathOperator{\power}{\mathcal{P}}
\DeclareMathOperator{\dom}{dom}
\DeclareMathOperator{\cod}{cod}
\DeclareMathOperator{\ran}{ran}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\Sk}{Sk}
\DeclareMathOperator*{\argmax}{argmax}
\DeclareMathOperator*{\argmin}{argmin}
\DeclareMathOperator*{\colim}{colim}
\newcommand{\cross}{\times}
\newcommand{\defeq}{:=}
\newcommand{\union}{\cup}
\newcommand{\intersect}{\cap}
\newcommand{\disjoint}{\sqcup}
\newcommand{\comp}{\mathbin{\circ}}
\newcommand{\op}{{\rm op}}
\newcommand{\stimes}{\mathbin{\boxtimes}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment