lvjr / tabularray

Typeset tabulars and arrays with LaTeX3
https://ctan.org/pkg/tabularray
247 stars 22 forks source link

Multiple enumerates from enumitem with series/resume within tblr mess up counters #415

Open luxzeitlos opened 12 months ago

luxzeitlos commented 12 months ago

A minimal example:

\begin{enumerate}[series=foobar]
        \item x
    \end{enumerate}
    \begin{tblr}{
        measure=vbox,
        stretch=-1, rows={ht=\baselineskip},
    }
        A &
        \begin{enumerate}[series=foobar]
            \item one
            \item two
            \item three
        \end{enumerate} \\
        B &
        \begin{enumerate}[resume=foobar]
            \item four
            \item five
            \item six
            \item seven
        \end{enumerate} \\
        C &
        \begin{enumerate}[resume=foobar]
            \item eight
        \end{enumerate} \\
    \end{tblr}

results in a messed up numbering: image

And \UseTblrLibrary{counter} does not fix the problem.