I am using the hyperref package in my document for links and ntheorem for theorems. I want to use the "break" theoremstyle that gives a line break after the theorem label. But then using references in the first line of my theorem will cause hyperref to overdraw the red box.
MWE:
\documentclass[]{report}
\usepackage[pdftex]{hyperref}
\usepackage[hyperref]{ntheorem}
\newtheorem{theorem}{Theorem}
\theoremstyle{break}
\newtheorem{lemma}{Lemma}
\begin{document}
\begin{lemma}\label{lem}
An interesting lemma!
\end{lemma}
\begin{lemma}[Some description]
Here we refer to lemma \ref{lem}. This causes the red box to overdraw.
\end{lemma}
\begin{theorem}
Here, we need some more space to get into the second line, but then the link to our lemma \ref{lem} does not pose a problem.
\end{theorem}
\end{document}
Does anyone know how to fix this? Thank you!



hyperrefafterntheorem? – TeXnician Feb 26 '17 at 17:50\mbox{\ref{lem}}instead of the reference. – TeXnician Feb 26 '17 at 17:54