-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Question] zref-clever and cousins as replacement for cleveref #9
Comments
I'd expect it not to be a bad idea at all. Indeed,
I'm actually very glad to hear your experience with it went so smoothly. :-) But a comment/recommendation in that regard. It is indeed not a good idea to simply
Curious that you mention not needing But there are other user facing features that There are also things that
Unfortunately, this is a little hard. The difference is either stated quite trivially, or quite technically. The trivial version is that the standard referencing system only allows for a hard-coded number of "fields" to be stored in a label, originally two, extended to five by But well, you ask me, if Regarding "robustness" and "living in the shadow", But, back to what I think is your main concern. Whether you should change to using
That said, I do hope |
Ah, nice! I somehow expected things to be more delicate, so to speak. 😄
I hope this didn't come over as something like ‘I'm surprised this works, at all’. I think I just misinterpreted the warning to mean that it might not be a good idea to use the package specifically as a drop-in replacement, yet.
Okay, it seems I was a bit misinformed, then. I somehow also thought that using By the way, do you have a reference for the
:D I guess I thought about something else when I wrote ‘additional functionality’, like absolute page numbers, and so on (which I don't really have a use case for, yet). The issue you describe seemed more like a bug fix to me. I'm also not really sure what my problem was, exactly. I don't think I'm using any active characters in my labels (I think this usually happens with
Yeah, I bet there are a bunch of things that would be useful for me. I've just been using my current set of packages with all their limitations for so long, that a lot of things just don't come to mind. I'm probably not going to use much German in my document, but the features you mention might still come in handy at some point. 👍 I also think that
Thanks for the write-up! To me as a non-programmer, whenever I read the documentations of (and the occasional
The ‘living in the shadow’ part was actually aimed more at utilisation by users (or the [perceived?] lack thereof), not so much at the quality of the package. I was actually very surprised when I first stumbled upon the package (by chance!), not only by how old it already was, who its author is, but also that you basically never see it mentioned anywhere (at least I don't). But maybe that's just a kind of core LaTeX problem. Users often seem to lack behind a lot when it comes to adopting new stuff and changing their ways. Case in point: you often still see people use
Thanks again for your detailed response! I'm pretty sure now that I'm going to switch to I'll try to report any problems I encounter in the future! And I'm very sorry for the late response! |
Not at all, I really meant it.
No, \newcommand*\zlabel{%
\ifx\label\ltx@gobble
\expandafter\ltx@gobble
\else
\expandafter\zref@wrapper@babel\expandafter\zref@label
\fi
}% What is actually going on there is Oberdiek being smart. There are several places in the "ecosystem" in which
From What You have info about this in
It's really "the only way to do it". If you look at
Welcome! 😄
That's my view too. It should be reasonably safe and straightforward, as long as the user is competent enough (and willing) to handle these kinds of adjustments. Which, as you certainly know, is not always the case, and it is these whom the warning is really meant to safeguard.
Please do! |
Sorry that this is a very soft question, probably better suited as an e-mail or message, but I haven't found a better way to do this, so here goes:
How bad of an idea is it to just take my existing LaTeX project (PhD thesis) that uses hyperref, bookmark, nameref, and cleveref, and
\label
s with\zlabel
, all\cref
with\zcref
,\lcnamecref
with\zlabel[noref]
, etc.?I just tried this out (I originally thought about redefining
\label
to\zlabel
, etc., to save some work, but this would probably be a terrible idea, so did some searching & replacing, instead [EDIT: usingzref-user
seems to do just that, so maybe the idea wasn't that bad, after all…]) in a new git-branch, and to my great surprise, despite your warning in the documentation: not a single issue (after I fixed some incorrect usage of\zcref
on my part).I probably don't need any of the additional functionality that zref provides, but changing over resolved a bug with a
\label
that didn't work with pdfTeX and cleveref (but did with luaTeX and cleveref, so probably some weird encoding issue in a label name, or something), so it seems that zref is more robust, somehow… 🤔I also have a bit of a hard time in general finding a non-technical write-up about the usage of zref vs the traditional system (advantages, disadvantages, etc., especially for users as opposed to developers), and zref seems to live in the shadow somewhat, so I hope you have some insight into this.
The text was updated successfully, but these errors were encountered: