How do I introduce a paired delimiter with \DeclarePairedDelimiter
from mathtools
, if the name that I want to use for the delimiter is already declared by some other package?
For example:
\documentclass{minimal}
\usepackage{mathtools}
\usepackage{physics}
\DeclarePairedDelimiter{\norm}{\lvert\lvert}{\rvert\rvert}
\begin{document}
I do not even need to use $\norm{v}$ to have an error.
\end{document}
Note that, unlike this question or this other question I am wondering about overriding an existing macro to make it a paired delimiter within the package mathttools
, and not how to make a \newcommand
with a name that has been already defined (in the latter case, I can, for example, \renewcommand
).
Note that the question is not about how should you typeset a norm operator.
The reason why one may want to redefine a command in physics
package as a mathtools
paired delimiter is that a paired delimiter can open and close on two different lines.
\let\norm\relax
prior to the declaration. But be wary of redeclaring standard symbols.