\define in conflict with \startxtable[]

Dear List, Could anyone manage to typeset the following example? Here [] causes an error "Extra }, or forgotten \endgroup". \starttext \define\sample{ \startxtable[] \startxtablehead \startxrow \startxcell 123\stopxcell \stopxrow \stopxtablehead \stopxtable } \sample \stoptext Thanks in advance. Best, Sylvain

Sylvain Hubert schrieb am 08.11.2020 um 04:54:
Dear List,
Could anyone manage to typeset the following example? Here [] causes an error "Extra }, or forgotten \endgroup".
\starttext \define\sample{ \startxtable[] \startxtablehead \startxrow \startxcell 123\stopxcell \stopxrow \stopxtablehead \stopxtable } \sample \stoptext
\starttext \define\sample {\startembeddedxtable \startxrow \startxcell \unknown \stopxcell \stopxrow \stopembeddedxtable} \sample \stoptext or \starttext \startbuffer[sample] \startxtable \startxrow \startxcell \unknown \stopxcell \stopxrow \stopxtable \stopbuffer \getbuffer[sample] \stoptext Wolfgang
participants (2)
-
Sylvain Hubert
-
Wolfgang Schuster