\documentclass{article}
\begin{document}
Table \ref{tab:1} contains an overview.\footnote{outer note}
\begin{table}
\caption{Caption text.\protect\footnotemark}
\label{tab:1}
Table content
\end{table}
\footnotetext{text of in-caption footnote.}
\end{document}
The \ref should fill in as 1 and point to the ltx:table element in the XML.
Instead, latexml adds the label to the ltx:note and references it.
There is a second bug worth noticing - a note added to a caption will get its mark bumped up twice,
once when added to ltx:caption and once more when added to ltx:toccaption.
Instead, maybe notes shouldn't be added at all to a toccaption?
This was encountered when converting a published journal article, during some contract work.
Here is the current XML:
```xml
Table contains an overview.11footnote 1outer note
Table 11Table 11Caption text.22footnote 2
Table 1Caption text.33footnote 3text of in-caption footnote.
In the minimal example:
The
\ref
should fill in as1
and point to theltx:table
element in the XML. Instead, latexml adds the label to theltx:note
and references it.There is a second bug worth noticing - a note added to a caption will get its mark bumped up twice, once when added to
ltx:caption
and once more when added toltx:toccaption
. Instead, maybe notes shouldn't be added at all to a toccaption?This was encountered when converting a published journal article, during some contract work.
Here is the current XML:
Table contains an overview.
1
1
footnote 1
outer note
Table content