ignoring duplicate destination with the name 'table.2.0'
Closed this issue · 9 comments
Thank you so much for providing a package to remedy the longtable/tabularx problem. Really appreciate it.
There is a small issue, however: In our use case, we have a script that generates many tables. These tables do not need a caption. From what I understood of xltabular.sty
a captionless table doesn't increase the counter, which -- when using hyperref with LuaLaTeX -- leads to the following warning:
(pdf backend): ignoring duplicate destination with the name 'table.2.0'
I don't know who or what adds table.2.0
, but it's a bit annoying. This doesn't happen when we use plain longtable environments. Do you have an idea what causes this and how to fix it? Thanks!
Thanks for the quick reply. Unfortunately, loading hyperref with
\usepackage[plainpages,unicode]{hyperref}
didn't change the warning.
In my example it worked. Please provide a short and complete example which shows the behaviour
Here's a mwe that reproduces the problem, albeit the warning is "table.0.0" instead of the text in the original post.
Just found out that running the example with pdflatex
does not produce the warning. lualatex
, on the other hand, prints the warning. I'm using a recently updated TeXLive 2018 for this, btw.
next try: Write before the first xltabular
which has no caption:
\makeatletter
\let\longtable\ORIG@longtable
\makeatother
That did it! I'll apply this patch to the original document and see if it works in the larger context. For now, we can close the issue. Thanks a lot for the quick help!
It is only a workaround and works only if there are no more tabulars with a caption after that definition.
We have rewritten the parts for supporting hyperref (version 0.2.a). Hopefully the interaction is now more robust. Please try it. Thank you for the bug report.
Works well! Thank you!