Created
July 10, 2016 12:45
-
-
Save lauraBaakman/d246afff8e70566cbbdc9c3bbccb0c61 to your computer and use it in GitHub Desktop.
Fix the abs and norm delimiters in LaTeX.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\usepackage{mathtools} | |
\DeclarePairedDelimiter\abs{\lvert}{\rvert}% | |
\DeclarePairedDelimiter\norm{\lVert}{\rVert} | |
\makeatletter | |
\let\oldabs\abs | |
\def\abs{\@ifstar{\oldabs}{\oldabs*}} | |
\let\oldnorm\norm | |
\def\norm{\@ifstar{\oldnorm}{\oldnorm*}} | |
\makeatother |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment