I'd like to remove hyphenation at the end of a line on words like 'section', 'Table', 'Figure' etc. when using the \cref command with the Cleveref package. My current solution is the following:
\crefname{table}{\mbox{Table}}{Tables}
But I'm not sure if this is the best way to do it, since I'd have to repeat this command for figures, equations, etc.
I tried the following but believe that there is an infinite recursion issue:
\renewcommand{\cref}[1]{\cref{#1}}
So tried this, but to the same issue:
\newcommand{\crefboxed}[1]{\mbox{\cref{#1}}}
\renewcommand{\cref}[1]{\crefboxed{#1}}
Any insight?