latex3 / tagging-project

Issues related to the tagging project
https://latex3.github.io/tagging-project/
LaTeX Project Public License v1.3c
35 stars 14 forks source link

tagging order with figcaps is wrong #643

Open mbertucci47 opened 1 month ago

mbertucci47 commented 1 month ago

With the figcaps package, the order of tags in the ending <Sect>s is logically wrong. It lists all captions first, then all figure/table contents. Here's an example:

\DocumentMetadata
  {
    lang=en-US,
    pdfversion=2.0,
    pdfstandard=ua-2,
    testphase={phase-III,title,math,table,firstaid}
  }
\documentclass{article}
\usepackage{longtable}
\usepackage{figcaps}

\title{figcaps tagging test}

\printfigures
\figmarkon

\begin{document}

text
\begin{figure}\centering
First figure
\caption{This is the first figure}
\end{figure}
\begin{longtable}{cc}
\caption{A not-so-long table}\\
A & B \\
C & D
\end{longtable}
\begin{figure}\centering
Second figure
\caption{This is the second figure}
\end{figure}
\begin{table}\centering
Some table
\caption{This is a table}
\end{table}
\begin{figure}\centering
Third figure
\caption{This is the third figure}
\end{figure}
\begin{table}\centering
Some other table
\caption{This is another table}
\end{table}

\end{document}