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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to