[NTG-context] xtables in custom macros

Wolfgang Schuster schuster.wolfgang at googlemail.com
Thu Nov 3 20:44:57 CET 2011


Am 03.11.2011 um 20:37 schrieb Stefan Müller:

> Hi list,
> 
> I just played a bit with the nice new xtables.  It seems as if "\stopxtable" does not work if used inside a custom macro.  I get a "Runaway argument" error with the current standalone if I uncomment "\Doesnt" in the following example.
> 
> \define\Works{\startxtable \startxrow \startxcell works \stopxcell \stopxrow}
> \define\Doesnt{\startxtable \startxrow \startxcell does not work \stopxcell \stopxrow \stopxtable}
> 
> \starttext
> \Works \stopxtable
> %\Doesnt
> \stoptext
> 
> Did I miss something or is this a bug?

The stable environment stores the content in a buffer and you can’t
put the start and stop commands of a buffer in different commands.

Wolfgang


More information about the ntg-context mailing list