Closed mpas97 closed 4 years ago
This is strange, as \ref{fig:tm:tm1}
(or cref
) produces the correct result with me:
I have adjusted the exemplary text to make it clearer.
@ivangiangreco so what should and can I do? It happened in my thesis file already (on all figures with subfigures, so its not an exception case), and for the example above I've cloned the repo again (to have a clean setup), added the few references and it happens exactly the same.
Have you tried updating your Latex installation and all the packages?
Somethig goes really wrong. Using the newest 1:1 the repo clone without changes (so there is now this cref), references to the whole section instead of the subfigure only.
I will check for Latex / package updates, but I don't think there are some or that they will fix this little something.
There where indeed some Latex and package updates. After having upgraded everything, the problem remains exactly the same though :/
I just searched for subbottom references. As we can see in the example the labels come earlier in the commands. Now \ref and \cref are working fine for me too.
Can you please check if this works for you too? If yes, we could use that so it works for more people ;)
Oh, yes, that's a very good point. Depending on which Typesetter I use, I get difference results. Your suggestion definitely seems to work. Please find it in commit a40a613. Thanks a lot for the feedback!
References to subfigures have an offset of one.
E.g., having tm1, tm2, tm3, tm4 and referenceing to them results in (), (a), (b), (c) instead of (a), (b), (c), (d).