Am Freitag, 28. Juni 2024, 11:59:19 MESZ schrieb Wolfgang Schuster:
Gerion Entrup schrieb am 28.06.2024 um 11:40:
Do you know, why the groupedcommand solution does not work?
The command and the environment which are created by \definestartstop can't be interchanged when you use the before/after and left/right keys.
%%%% begin example \usemodule[visual]
\definestartstop [Example] [before={\par\leftaligned{\tttf [before]}\par}, after={\par\leftaligned{\tttf [after]}\par}, left={{\tttf [left]}}, right={{\tttf [right]}}]
\starttext
\fakewords{10}{20} \startExample \fakewords{10}{20} \stopExample \fakewords{10}{20}
\blank
\fakewords{3}{5} \Example{\fakewords{3}{5}} \fakewords{3}{5}
\stoptext %%%% end example
Wolfgang
Ok, thanks for the explanation (I have added the example to the wiki). Gerion