[Tex/LaTex] \DeclarePairedDelimiter with \left & \right no longer works

mathtools

The following MWE worked in December 2015 based on the archived PDF. But, it does not work today. Any idea?

\documentclass{article}
\usepackage{mathtools}

\DeclarePairedDelimiter{\eceil}{\left\lceil}{\right\rceil}

\begin{document}
$\eceil{\cdot}$
\end{document}

Best Answer

You should not use left and right in the DeclarePairedDelimiter definition. Those are automatically used when you use the command defined there.

You would use the starred version for autoscaling, i.e. \left and \right like

So

\documentclass{article}
\usepackage{mathtools}

\DeclarePairedDelimiter{\eceil}{\lceil}{\rceil}

\begin{document}
$\eceil{\cdot}$\\[3ex]

$\eceil*{\frac{\frac{a}{c}}{\frac{b}{d}}}$
\end{document}

Should work fine and produce

enter image description here

Related Question