On Wed, 3 Aug 2011, Wolfgang Schuster wrote:
Am 03.08.2011 um 13:25 schrieb Cecil Westerhof:
I have the following code:
[…]
When I put a \stoptabulate after \StopWorkTable it compiles as expected. But why does the \stoptabulate in \StopWorkTable not work?
This is a limitation of the way how tabulate is written. When you want to put a table in macros use \starttable or \bTABLE.
An alternative is to capture the content in tokens: \newtoks\WorkTableToks \define[2]\StartWorkTable{ \myblank[2*big] \WorkTableToks {\starttabulate[|w(.1\textwidth)|p(.9\textwidth)|] \HL \NC #1 \NC #2 \NC\NR \HL \NC \NC {\bf Gedaan} \NC\NR} } \define[1]\ActivityWorkTable{ \appendtoks \NC \NC \bullet\space #1 \NC\NR \to\WorkTableToks } \define\StopWorkTable{ \appendtoks \HL \stoptabulate \to\WorkTableToks \the\WorkTableToks }