Given some latex code like
\section{the first section}
some text
\section{the second section}
some text
\section{the third section}
some text
\section{the fourth section}
some text
I want to create a TOC as a three-column table, like so:
-------------------------------------------------
| 1. the first | 2. the second | 3. the third |
| section | section | section |
-------------------------------------------------
| 4. the fourth | | |
| section | | |
-------------------------------------------------
It is okay if I use a completely custom command instead of section
, as long as the numbering in the document body matches the numbering in the table.
How can I approach this problem?
Best Answer