[NTG-context] [startstop]

Jairo A. del Rio jairoadelrio6 at gmail.com
Fri Jan 22 20:04:02 CET 2021


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 at 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 at 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
>
> ___________________________________________________________________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210122/f963a341/attachment.htm>


More information about the ntg-context mailing list