I'm looking to strikethrough a cross-reference generated with \cref
. I thought a basic example like the following would work:
\documentclass{article}
\usepackage{cleveref}
\usepackage{soul}
\begin{document}
Consider
\begin{equation}\label{eq:int}
\int_a^bf(t)dt=0
\end{equation}
Then \st{Ignore \cref{eq:int}.}
\end{document}
However, I get an error message about one-too-many }
symbols. To clarify, I would like the cross-reference to still be present (and blue, but I don't think that's important to this example), but have the strikethrough on top of it.
Any help would be appreciated.
\st{Ignore \mbox{\cref{eq:int}}.}