From: Taco Hoekwater via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: "Taco Hoekwater" <taco@bittext.nl>,
"Idris Samawi Hamid ادريس سماوي حامد" <Idris.Hamid@colostate.edu>
Subject: Re: Can modes be used for content control?
Date: Wed, 17 Nov 2021 16:57:36 +0100 [thread overview]
Message-ID: <DA8ADCCB-D756-42CA-AFF2-D72574282E10@bittext.nl> (raw)
In-Reply-To: <op.1c0cckbdejo439@desktop-mt1m160>
Hi Idris,
I think Hans was trying to point you to the blocks mechanism. Blocks *do* nest:
\defineblock[sectionblock]
\defineblock[myblock]
\startmode[variantone]
\keepblocks[sectionblock]
\keepblocks[myblock]
\stopmode
\startmode[varianttwo]
\keepblocks[sectionblock]
\stopmode
\starttext
\beginsectionblock
\section{A to B}
\beginmyblock
A is for Amy, who fell down the stairs.
\endmyblock
\beginmyblock
B is for Basil, assaulted by bears.
\endmyblock
\endsectionblock
\stoptext
—
Taco Hoekwater E: taco@bittext.nl
genderfluid (all pronouns)
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2021-11-17 15:57 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-16 23:25 Idris Samawi Hamid ادريس سماوي حامد via ntg-context
2021-11-17 0:23 ` Aditya Mahajan via ntg-context
2021-11-17 3:06 ` Idris Samawi Hamid ادريس سماوي حامد via ntg-context
2021-11-17 11:32 ` Henning Hraban Ramm via ntg-context
2021-11-17 15:08 ` Idris Samawi Hamid ادريس سماوي حامد via ntg-context
2021-11-17 15:51 ` Henning Hraban Ramm via ntg-context
2021-11-17 19:52 ` Idris Samawi Hamid ادريس سماوي حامد via ntg-context
2021-11-17 15:57 ` Taco Hoekwater via ntg-context [this message]
2021-11-17 17:56 ` Aditya Mahajan via ntg-context
2021-11-17 18:54 ` Hans Hagen via ntg-context
2021-11-17 19:45 ` Idris Samawi Hamid ادريس سماوي حامد via ntg-context
2021-11-17 19:36 ` Idris Samawi Hamid ادريس سماوي حامد via ntg-context
2021-11-17 7:59 ` Hans Hagen via ntg-context
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=DA8ADCCB-D756-42CA-AFF2-D72574282E10@bittext.nl \
--to=ntg-context@ntg.nl \
--cc=Idris.Hamid@colostate.edu \
--cc=taco@bittext.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).