Normally in LaTeX I find it very annoying to read and edit paired delimiters such as \lvert x \rvert
, so I would \usepackage{physics}
that provides \abs
and \norm
or write my own such as with \DeclarePairedDelimiter\abs{\lvert}{\rvert}
, so I can write the much nicer \abs{x}
and \norm{x}
. The only way I've found to get this to work with MathJax is by inserting \newcommand{\abs}[1]{\lvert #1 \rvert}
somewhere in math mode. Can special macros be defined globally for these commonly used delimiters?
(While we're at it, add \DeclareMathOperator{\E}{E}
and \DeclareMathOperator{\Var}{Var}
for probability use.)