Is it intentional that \MakeLinkTarget without hyperref does not set \@currentHref using the current counter?
#1660
Unanswered
mbertucci47
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This stems from a discussion in latex3/tagging-project#796.
It was my understanding that
\stepcounter{<counter>}\MakeLinkTarget{<counter>}should be equivalent to\refstepcounter{<counter>}. When hyperref is loaded, this is true insofar as\@currentHrefis the same. But when hyperref is not loaded,\MakeLinkTargetalways sets\@currentHreftotarget*.<current counter>. Here are two examples showing the difference.This prints
mycount.1.This prints
target*.1.Why the different behavior? It probably doesn't matter much since I don't think anything except hyperref uses
\@currentHref, but it seems to me like an unnecessary inconsistency.Beta Was this translation helpful? Give feedback.
All reactions