\newcommand{\mat}[2][cccccccccccccccccccccccccccccccccccc]{
  \left[
    \begin{array}{#1}
      #2
    \end{array}
  \right]
}

\newcommand{\determinant}[2][cccccccccccccccccccccccccccccccccccc]{
  \left|
    \begin{array}{#1}
      #2
    \end{array}
  \right|
}

\def\matrix{\mat}


\def\R{\mathbb{R}}
\def\C{\mathbb{C}}
\def\N{\mathbb{N}}
\def\Q{\mathbb{Q}}
\def\Z{\mathbb{Z}}
\def\H{\mathbb{H}}
\def\D{\mathbb{D}}




\def\pd{\partial}

\def\adj{\text{adj}}
\def\det{\text{det}}
\def\tr{\text{tr}}

\def\E{E}

% \newcommand{cmd}[args][opt]{def}
\newcommand{\tensorlu}[3]{
  #1_{#2}^{\phantom{#2}#3}
}
\newcommand{\tensorul}[3]{
  #1^{#2}_{\phantom{#2}#3}
}

% dreams2.tex
\def\bitwiseand{\text{ AND }}
\def\bitwiseor{\text{ OR }}

\def\nf{\underline{n}}
\def\W{\widetilde{W}}

\def\GF{\text{GF}}
\def\GL{\text{GL}}

\def\NN{\mathbb{N}}
\def\ZZ{\mathbb{Z}}
\def\RR{\mathbb{R}}
\def\CC{\mathbb{C}}

\def\G{\mathcal{G}}
\def\F{\mathcal{F}}
\def\R{\mathcal{R}}

\def\MM{\mathcal{M}}

% 8bit.tex

\def\0{\square}
\def\1{\blacksquare}


% dreams.tex

\def\t{\tensorlu}
\def\gauss{e^{t^2 \over 2\sigma^2}}
\def\dt{\delta \over \delta t}
\def\dx{\delta \over \delta x}
\def\d2x{\delta^2 \over \delta x^2}
\def\notindex{\underbrace{\ldots}}

\def\p{\oplus}
\def\m{\ominus}
\def\SO{\text{SO}}
\def\I{\widetilde{I}}
\def\RRR{\widetilde{R}}
\def\L{\widetilde{L}}
\def\x{\widetilde{x}}
\def\y{\widetilde{y}}
\def\b{\widetilde{b}}

% dws.tex
\def\difft{{\frac{\diff}{\diff t}}}
\def\diff{\mathrm{d}}
\def\pdifft{\frac{\delta}{\delta t}}
