You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I typeset the example file below, I get unwanted spaces at the locations where I place the \label and before the footnote sign. This happens since I updated the macro packages with TeX Live Utility on my Mac at the beginning of November 2024.
As a work around, I enter \kern-0.31em at these places, but that can cause problems at line breaks.
Any better solution is appreciated.
\begin{document}
\begin{exercise}[\label{LabelOfExercise}A long
title of this exercise so that the label can't be placed
after it for a good link back to the beginning of
it.\footnote{Make sure you typeset at least twice.}]
Details of this exercise $\ldots$
\end{exercise}
A link back to \cref{LabelOfExercise}.
\end{document}
The text was updated successfully, but these errors were encountered:
\documentclass{book}
\usepackage{amsthm}
\usepackage{hyperref}
\usepackage{cleveref}
\usepackage{footnotebackref}
\RemoveFromHook{label}[firstaid/cleveref]
\makeatletter
\AddToHook{label}[firstaid/cleveref]
{\ifx
\@currentcounter\@empty
\else
\firstaid@cref@updatelabeldata{\@currentcounter}%<--- was missing
\fi}
\makeatother
\theoremstyle{definition}
\newtheorem{exercise}{Exercise}
\begin{document}
\begin{exercise}[\label{LabelOfExercise}A long
title of this exercise so that the label can't be placed
after it for a good link back to the beginning of
it.\footnote{Make sure you typeset at least twice.}]
Details of this exercise $\ldots$
\end{exercise}
A link back to \cref{LabelOfExercise}.
\end{document}
By the end of Nov. 2024, it works again automatically. My thanks to everyone developing and maintaining the hyperref package! I consider the issue as closed.
When I typeset the example file below, I get unwanted spaces at the locations where I place the \label and before the footnote sign. This happens since I updated the macro packages with TeX Live Utility on my Mac at the beginning of November 2024.
As a work around, I enter \kern-0.31em at these places, but that can cause problems at line breaks.
Any better solution is appreciated.
\documentclass{book}
\usepackage{amsthm}
\usepackage{hyperref}
\usepackage{cleveref}
\usepackage{footnotebackref}
\theoremstyle{definition}
\newtheorem{exercise}{Exercise}
\begin{document}$\ldots$
\begin{exercise}[\label{LabelOfExercise}A long
title of this exercise so that the label can't be placed
after it for a good link back to the beginning of
it.\footnote{Make sure you typeset at least twice.}]
Details of this exercise
\end{exercise}
A link back to \cref{LabelOfExercise}.
\end{document}
The text was updated successfully, but these errors were encountered: