On Sun, 17 Dec 2023, Wolfgang Schuster wrote:
> Peter Münster schrieb am 17.12.2023 um 10:09:
> > On Sat, Dec 16 2023, Hans Hagen via ntg-context wrote:
> >
> >> \usemodule[abbreviations-logos]
> >> \defineblock [H] [before=\startcolor[blue],after=\stopcolor]
> >> \keepblocks[H]
> > Thanks for this solution.
> >
> > Is there also something for inline-mode? Example:
> >
> > test \beginH TEST\endH test
>
> You can create different versions of your environment and let context choose
> one whether the mode is enabled or disabled.
>
> %\enablemode[H]
>
> \startmode [H]
> \definestartstop [H] [color=blue]
> \stopmode
>
> \startnotmode [H]
> \define\startH{\ignoreupto\stopH}
> \stopnotmode
>
> \starttext
>
> xxx \startH yyy \stopH zzz
>
> \stoptext
I do something similar:
\definebuffer[H]
\startmode[H]
\definestartstop[H][color=blue]
\stopmode
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________