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