From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: error with definestartstop and startmode
Date: Sun, 17 Dec 2023 10:31:56 +0100 [thread overview]
Message-ID: <afb5539f-2b1c-11c7-3480-a98057283a08@gmail.com> (raw)
In-Reply-To: <87ttoh6vrh.fsf@a16n.net>
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
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
___________________________________________________________________________________
next prev parent reply other threads:[~2023-12-17 11:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-16 8:17 [NTG-context] " Peter Münster
2023-12-16 18:33 ` [NTG-context] " Hans Hagen via ntg-context
2023-12-17 9:09 ` Peter Münster
2023-12-17 9:31 ` Wolfgang Schuster [this message]
2023-12-18 8:11 ` Aditya Mahajan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=afb5539f-2b1c-11c7-3480-a98057283a08@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).