9

I'm defining \norm by \|#\|. However, when I type \norm{x}_{M}, the M comes out at exactly the same height as if one typed x_M. The problem is really noticeable with upper-case subscripts. Is there a way to modify the \norm definition so that the subscript M is lowered slightly below \| and truly appears as its subscript?

Chrystomath
  • 207
  • 1
  • 6

3 Answers3

9

If you want to define it yourself, it is better with the help of \DeclarePairedDelimiter from mathtools:

\DeclarePairedDelimiter{\norm}{\lVert}{\rVert}

MWE

\documentclass{article}
\usepackage{mathtools}
\DeclarePairedDelimiter{\norm}{\lVert}{\rVert}
\begin{document}
$\norm{x}_Mx_M$
\end{document} 

Output

enter image description here

karlkoeller
  • 124,410
3

I hate re-inventing (Because I am lazy). With physics package:

\documentclass{article}
\usepackage{physics}
\begin{document}
  \[
  a\norm{x}_{M}a
  \]
  \[
  a\abs{x}_{M}a
  \]
\end{document}

enter image description here

1

Is this what you want?

\newcommand{\norm}[1]{\left\|#1\right\|} 

a$\norm{x}_Mx_M$a

enter image description here

Sigur
  • 37,330