I would like to create an list with some tuples (sectionname, property) so I can add them automatically to a table.
Say I have:
\magictablecommand
\section{Test}
\property{Blup}
\section{Plop}
\property{Slup}
Then magictablecommand should expand as:
\begin{table}...
\begin{tabular}...
Test & Blup \\
Plop & Slup \\
I need some command, which on the first pass gather section, property pairs. And on the second pass expands magictablecommand (in the first pass it doesn't expand, I don't care really as long as it doesn't emit errors.).
The biggest trouble I have is in determine how to gather the section, property pairs. The rest I can probably figure out.
I would be quite happy with some kind of pointer.