Skip to content

Simplest etoc with a tabular causes there is no mc to end and raises there is no open structure on the stack error at end document #24

@jfbu

Description

@jfbu
\DocumentMetadata{
 uncompress,
 pdfversion=1.7,
 lang=en-US,
 testphase=phase-III
}
\documentclass{article}
\usepackage{etoc}
\usepackage{hyperref}
\usepackage{array}

\begin{document}
    

\begingroup
\etocglobaldefs % necessary for \etocname etc... to survive to & closing groups

\etocsetlinestyle{section}
  {}
  {\\\etocnumber&\etocname &\etocpage }
  {}
  {}

\etocsettocstyle{\begin{tabular}{ccc}number&name&page}{\end{tabular}}

\tableofcontents

\endgroup

\section{One}

\section{Two}

\section{Three}

\section{Four}

\end{document}

This looks as being in the same area as #20.

Metadata

Metadata

Assignees

No one assigned

    Labels

    at-2024-01-122024-01-12 has the issuetaggingRelative to support of the `LaTeX tagged PDF` project

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions