diff --git a/test_issues/gh24_simplest_tabular.tex b/test_issues/gh24_simplest_tabular.tex new file mode 100644 index 0000000..0e6e399 --- /dev/null +++ b/test_issues/gh24_simplest_tabular.tex @@ -0,0 +1,34 @@ +\DocumentMetadata{ + uncompress, + pdfversion=1.7, + lang=en-US, + testphase=phase-III +} +\documentclass{article} +\usepackage{etoc} +\usepackage{hyperref} +\usepackage{array} + +\begin{document} + +\etocglobaldefs % necessary for \etocname etc... to survive to & (or \\) closing groups + +\etocsetlinestyle{section} + {} + {\\\etocnumber} + {} + {} + +\etocsettocstyle{\begin{tabular}{c}number}{\end{tabular}} + +\tableofcontents + +\section{One} + +\section{Two} + +\section{Three} + +\section{Four} + +\end{document}