ivangiangreco / basilea-latex

Latex Template for Bachelor and Master thesis (University of Basel, Department of Mathematics and Computer Science)
MIT License
36 stars 22 forks source link

offset in subfigure references #7

Closed mpas97 closed 4 years ago

mpas97 commented 4 years ago

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).

grafik grafik
ivangiangreco commented 4 years ago

This is strange, as \ref{fig:tm:tm1} (or cref) produces the correct result with me:

Screenshot 2020-07-01 at 08 26 03

I have adjusted the exemplary text to make it clearer.

mpas97 commented 4 years ago

@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.

ivangiangreco commented 4 years ago

Have you tried updating your Latex installation and all the packages?

mpas97 commented 4 years ago

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.

grafik

I will check for Latex / package updates, but I don't think there are some or that they will fix this little something.

mpas97 commented 4 years ago

There where indeed some Latex and package updates. After having upgraded everything, the problem remains exactly the same though :/

mpas97 commented 4 years ago

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.

grafik

Can you please check if this works for you too? If yes, we could use that so it works for more people ;)

ivangiangreco commented 4 years ago

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!