latex3 / tagging-project

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

confusing tag structure with `\eqref` #155

Closed mbertucci47 closed 3 months ago

mbertucci47 commented 3 months ago

Consider the following example.

% !TeX program = lualatex --synctex=1 --interaction=nonstopmode %.tex | txs:///view-pdf
\DocumentMetadata
  {
    lang=en-US,
    pdfversion=2.0,
    pdfstandard=ua-2,
    testphase={phase-III,math,title,table,firstaid}
  }
\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{equation}
a=a \label{eq:a}
\end{equation}
This should refer to the equation containing $a=a$: \ref{eq:a}.
Then a switch of tag forms.

\begin{equation}
b=b \label{eq:b}
\end{equation}
This should refer to the equation containing $b=b$: \eqref{eq:b}.
Then a switch of tag forms.

\end{document}
confusing_label_struc

In the second example with \eqref, the content after \eqref is captured under \<Lbl>. This seems incorrect to me but please feel free to correct me.

mbertucci47 commented 3 months ago

Sorry I am misreading the tag tree. Closing