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?

0

3 Answers 3

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

4
  • Is there a variable that sets how high/low a subscript is placed? Jan 17, 2014 at 7:17
  • @Chrystomath Not that I know Jan 17, 2014 at 7:35
  • @karlkoeller Can it be done without mathtools and/or pairedDelimiter? Because those don't work for me.
    – cgss
    Nov 5, 2020 at 15:02
  • The MWE does not work for me (MiKTeX, mathtools 1.29): both subscripts are the same height.
    – PHPirate
    Sep 15, 2022 at 13:02
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
  • 1
    Nice to meet you. I'm a mathematician.
    – Sigur
    Jan 16, 2014 at 14:09
1

Is this what you want?

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

a$\norm{x}_Mx_M$a

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .