-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hyperref
makes varioref
's \vrefformat
no-op
#225
Comments
yes it is wrong, but looking at it I think it would be better if the support for links would be done by varioref directly and hyperref would stop to patch (and break) it. @FrankMittelbach ? |
yes the right place is in varioref to offer support for hyperref not the other way around, but that requires sync of the two (which was more or less impossible in the past with hyperref just patching all over the place. :-)). We can do this now, now that we control both sides ... you have write acces to varioref too ... we should put that on the agenda for a change in the not too distant future. |
I can easily directly surround all the hyperref (and nameref) code with some test that disables it under some condition that varioref can then activate, |
historical? if i remember correctly |
Currently,
hyperref
makesvarioref
's user customization option\vrefformat
no-op, as shown in the MWE below:Renders:
Commenting
hyperref
out of the above document renders:This happens because
hyperref
redefines\vr@f
and\vref@star
(I haven't tested, but I presume the same problem occurs with\Vref
for the same reason). And does so without using\vrefformat
(and\Vrefformat
), but hard-coding the formats in the redefinitions it makes.As far as I can tell, this is done at:
hyperref/hyperref.dtx
Lines 13027 to 13058 in c25f44c
I don't know if there's a reason for this that I've missed, but it seems possible, at first glance, to use
\vrefformat
instead of hard-coding it (maybe redefining\vrefdefaultformat
for this). And thus not override this user option fromvarioref
.Edit: Besides what was already mentioned, the above also means that
\usepackage[japanese]{varioref}
won't work withhyperref
(well, theoretically at least, I don't actually know how to set up a document in Japanese).The text was updated successfully, but these errors were encountered: