Closed dg3gfs closed 5 years ago
I hope I have found the reason. The call of \refstepcounter
occur inside a group. The result (in this case \cref@currentlabel
) must be additionally assigned as global. Please test the new version 0.2b. Thanks for the bug report.
Thanks for the prompt reaction and the new version.
It works fine as long as cleveref
is loaded before xltabular
. Otherwise the problem stays the same.
I changed the code again. The order of the two packages is now hopefully indifferent. Please test again.
Thanks for the prompt reaction and the second version.
It works fine now for both sequences of cleveref
and xltabular
.
Thank you so much for this package.
There is a strange behaviour in combination with celveref, however: While \ref gives the correct numbering of the references, but \cref gives
Tabellen 1.0 und 1.1
instead ofTabellen 1.1 und 1.2
with my texlive-full version 2017.20180305-1. It is the same with PdfLaTexx and LuaLaTeX. Using the xltabular.sty from github \cref givesKapitel 1
instead ofTabellen 1.1 und 1.2
. The source code and the results are shown below. The same happens when usinglongtable
with\usepackage{longtable,xltabular}
while giving correct results using only\usepackage{longtable}
.I don't know what is the reason for this strange behaviour. Do you have an idea what causes this and how to fix it? Thanks!
source code:
output with texlive-full version 2017.20180305-1 of xltabular.sty'
output with github version of xltabular.sty'