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?
Add a comment
|
3 Answers
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
-
Is there a variable that sets how high/low a subscript is placed? Jan 17, 2014 at 7:17
-
-
@karlkoeller Can it be done without mathtools and/or pairedDelimiter? Because those don't work for me.– cgssNov 5, 2020 at 15:02
-
The MWE does not work for me (MiKTeX, mathtools 1.29): both subscripts are the same height.– PHPirateSep 15, 2022 at 13:02
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}
-
1