# Equations in section heading/title

For reasons that are beyond me, the following MWE

\documentclass{scrreprt}
\usepackage{classicthesis-ldpkg}
\usepackage{bm}
\usepackage{amsmath}

\begin{document}

\section{The values of $\beta$ for which $\omega_i \mid \bm{\omega} \mid^{-\beta}$ is defined at the origin}

\end{document}


fails to compile with the following error:

! TeX capacity exceeded, sorry [input stack size=5000].
<to be read again>
\HyPsd@@LetCommand

-
That doesn't work for me: it creates a blank entry in the table of contents, instead of the title of the indicated section. –  Benjamin McKay Mar 9 at 13:48
It also doesn't create a section heading, and instead treats the protected text as just part of the running text of the paper, not as a title of a section. –  Benjamin McKay Mar 9 at 13:49