The following simple adaption of the Springer Nature template causes an error. I can't write [x| or |\zeta|, for example, without causing an error. What is the cause of that error and how can it be fixed?

The Springer Nature template can be found here: Springer Nature Template

I am aware of a similar unanswered question on this site, where some comments suggest replacing | by \vert. I don't think I should accommodate such bizarre behavior unless there is a good reason why writing | is inherently wrong.

\title[Article Title]{Article Title}
\author*[1,2]{\fnm{First} \sur{Author}}\email{[email protected]}
\author[2,3]{\fnm{Second} \sur{Author}}\email{[email protected]}
\equalcont{These authors contributed equally to this work.}
\author[1,2]{\fnm{Third} \sur{Author}}\email{[email protected]}
\equalcont{These authors contributed equally to this work.}
\affil*[1]{\orgdiv{Department}, \orgname{Organization}, \orgaddress{\street{Street}, \city{City}, \postcode{100190}, \state{State}, \country{Country}}}
\affil[2]{\orgdiv{Department}, \orgname{Organization}, \orgaddress{\street{Street}, \city{City}, \postcode{10587}, \state{State}, \country{Country}}}
\affil[3]{\orgdiv{Department}, \orgname{Organization}, \orgaddress{\street{Street}, \city{City}, \postcode{610101}, \state{State}, \country{Country}}}
\abstract{Nothing to abstract here.}
\keywords{keyword1, Keyword2, Keyword3, Keyword4}
\section{This works well}





\section{Those lines cause errors}


  • 3
    Please cite the exact error message. Actually, neither | or \vert is the proper symbol to use for absolute values (try $|-1|$ and compare it to $\lvert - 1\rvert$).
    – daleif
    Oct 17, 2021 at 10:49
  • @daleif: There is everything to reproduce the error. Maybe my latex distribution is corrupted, then it's good to know if others cannot reproduce the error.
    – shuhalo
    Oct 18, 2021 at 8:17
  • 1
    @daleif Thank you for pointing out \lvert -1 \rvert I was not aware of this.
    – shuhalo
    Oct 18, 2021 at 8:20
  • Not many people do. It might was to check the mathtools package, it has better facilities to build a \abs macro (disclaimer, I maintain it)
    – daleif
    Oct 18, 2021 at 8:58

2 Answers 2


The class includes the program package which makes some unfortunate choices including globally making | active, it provides a command


which you can issue in the preamble then | only gets the special meaning inside program environments.


I faced the same error.

For |X| use $\lvert X \vert$

  • 1
    Welcome to TeX.SE!
    – Mensch
    Oct 31, 2021 at 12:04

You must log in to answer this question.

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