Like this? \usemodule[annotation] %Thanks for this module, Wolfgang \defineannotation[zzz] \define[2]\AnnotationCommand {\doifelse{\placeannotationtitle}{}{}{\hrule\bf\placeannotationtitle\par}#2\blank[10mm]} \setupannotation[zzz] [alternative=command, command=\AnnotationCommand, text=] \starttext \startzzz{a} Hola \stopzzz \startzzz{b} Chao \stopzzz \startzzz Hola de nuevo \stopzzz \stoptext Jairo El vie, 22 de ene. de 2021 a la(s) 12:51, Floris van Manen (vm@klankschap.nl) escribió:
I'd like to create a start/stop command with a parameter
\startzzz[a] one two three \stopzzz
\startzzz[b] one two three \stopzzz
How do i define/pass the tag parameter in the definition? This does not work (obviously)
\definestartstop[zzz][ before={\hrule\bf tag\blank}, after={\blank[10mm]} ]
I cannot find it in the documentation
.F
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
___________________________________________________________________________________