latex3 / tagging-project

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

enumerate doesn't work correctly with nested description or itemize environments #730

Closed FrankMittelbach closed 2 weeks ago

FrankMittelbach commented 1 month ago

The inner unnumbered environment picks up the outer counter and sets and increments it

\DocumentMetadata{pdfversion = 2.0, testphase = {phase-III,math,title,table,firstaid}, lang = en}
\documentclass[a4paper,12pt]{article}

\begin{document}

\begin{enumerate}
\item foo
      \begin{description}
        \item xxx
        \item xxx
        \item xxx
       \end{description}
  \item
    bar
      \begin{itemize}
        \item xxx
        \item xxx
        \item xxx
        \item xxx
        \item xxx
       \end{itemize}
 \item
    baz
      \begin{enumerate}
        \item ok
        \item ok
       \end{enumerate}
 \item
    ok
\end{enumerate}
\end{document}

A clear case of incorrectly implemented legacy support ...