diff --git a/math_commands.tex b/math_commands.tex index 0668f93..e8aa92f 100644 --- a/math_commands.tex +++ b/math_commands.tex @@ -1,6 +1,6 @@ %%%%% NEW MATH DEFINITIONS %%%%% -\usepackage{amsmath,amsfonts,bm} +\usepackage{amsmath,amsfonts,bm,mathtools} % Mark sections of captions for referring to divisions of figures \newcommand{\figleft}{{\em (Left)}} @@ -55,8 +55,8 @@ \def\Partref#1{Part~\ref{#1}} \def\twopartref#1#2{parts \ref{#1} and \ref{#2}} -\def\ceil#1{\lceil #1 \rceil} -\def\floor#1{\lfloor #1 \rfloor} +\DeclarePairedDelimiter{\ceil}{\lceil}{\rceil} +\DeclarePairedDelimiter{\floor}{\lfloor}{\rfloor} \def\1{\bm{1}} \newcommand{\train}{\mathcal{D}} \newcommand{\valid}{\mathcal{D_{\mathrm{valid}}}}