-
Notifications
You must be signed in to change notification settings - Fork 35
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
nameref: not working for float labels defined via \caption{...\label{...}} #162
Comments
well nameref basically doesn't work with captions at all. It contains a patch for I don't see an easy way to extend the nameref patch (and I would be wary to do it anyway, imho patching external packages isn't the right way to handle this). But you could perhaps ask the caption author. He seemed to have extended standard captions to work with nameref, so he could perhaps improve the longtable caption too. |
Sorry the comment about standard captions was nonsense, my local version of nameref is faulty. |
Though I personally don't like the syntax where a label is placed into the argument of |
Getting nameref to work for a label only requires to define The problem with longtable is that standard pretocmd/apptocmd-patches don't work here: As the caption is using Imho the best would be if longtable would change its caption command to define
|
@FrankMittelbach Well yes, but shouldn't we be thinking like ConTeXt and have the label as an argument to something? |
@josephwright my comment this is purely about existing (or in this case not existing) 2e functionality/syntax (not any future interface that may exist one day). One can, of course, take the position that nameref doesn't support that historic syntax and longtable requires it |
@FrankMittelbach it is easy to add the extra code to save the nameref data to longtable's caption I should probably aim to add this in longtable 4.14 (currently in a branch in the latex2e git) something like ths (from @u-fischer )
|
@davidcarlisle well not completly easy, as I missed the optional argument, so \caption[abc]{long} should store the abc, which it doesn't yet. |
@u-fischer sure, that's just details:-) The harder part are usual issues of then checking we don't break |
true, but this suggest that that new longtable version sitting in some branch for a long time should be soon moved to develop so that there are several months in which any adjustments necessary could be sorted well before the spring release, no? |
@FrankMittelbach yes I hope to move lt 4.14 to tools-dev before end of year |
The manuals of the longtable and xltabular packages specify that labels for tables should be defined in the form
\caption{...\label{...}}
. This seems not to work with nameref. For a MWE, see Ri-Ga/keyvaltable#2 (comment).The text was updated successfully, but these errors were encountered: