From: Gerben Wierda <Gerben.Wierda@rna.nl>
To: ntg-context@ntg.nl
Subject: \doifmodeselse?
Date: Thu, 2 Apr 2009 18:01:02 +0200 [thread overview]
Message-ID: <342291F7-F682-41DA-81B3-B219E8F39381@rna.nl> (raw)
Using --mode or --modes with texexec sets up modes which can be used
in the files to parse different parts.
For that I use \doifmodeelse{}{}{}
But combining various modes in one \doiffmodeelse would be handy.
e.g. (pseudocode)
if mode is workinprogress or test
or the other way around
if mode is all or editor
So I would like something like
\doifmodeselse{all,editor)
or even better booleans
\doiffmodeselse{not test or editor}
so I do not need to build a large setup of nested \ifmodeelse
This is not in ConTeXt currently. Would it be easy to program such a
multiple modes selector?
G
___________________________________________________________________________________
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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2009-04-02 16:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-02 16:01 Gerben Wierda [this message]
2009-04-02 16:28 ` \doifmodeselse? Alan Stone
2009-04-02 16:42 ` \doifmodeselse? Alan Stone
2009-04-02 16:34 ` \doifmodeselse? Hans Hagen
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=342291F7-F682-41DA-81B3-B219E8F39381@rna.nl \
--to=gerben.wierda@rna.nl \
--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).