From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Exceptions to assignment syntax [was: Re: labeltext assignment]
Date: Mon, 18 Jun 2012 11:46:47 +0200 [thread overview]
Message-ID: <4FDEF907.5080809@wxs.nl> (raw)
In-Reply-To: <20120616131937.GA979@phlegethon>
On 16-6-2012 15:19, Philipp Gesang wrote:
> Hi Hans!
>
> ···<date: 2012-06-12, Tuesday>···<from: Hans Hagen>···
>
>> On 12-6-2012 16:41, Philipp Gesang wrote:
>>
>>> I’ll be collecting candidates for the wiki page until saturday
>>> and then write up a draft, maybe submit it to the list for review
>>> first. I can draw up a preliminary list first so you can have a
>>> look at it.
>>
>> next week is ok
>
> Here’s some pre-alpha draft version with some links I collected:
> https://gist.github.com/2941284
> (The gist is auto-converted; use the “raw” or “edit” buttons to
> view the code. The content of <texcode> is messed up in the
> output.)
>
> Unfortunately I won’t be able to complete it this weekend as I
> planned to, because Reality™ demands that I spend my time on
> paperwork instead.
palets ... the trailing comma is actually an error but anyway we can have:
\def\colo_palets_define_one#1#2% get rid of { }
{\doifassignmentelse{#2} % catch empty entries
{\colo_palets_define_two{#1}[#2]}
{\colo_palets_define_three{#1}{#2}}}
\def\colo_palets_define_three#1#2%
{\ifcsname\??colorpaletspecification#2\endcsname
\processcommacommand[\csname\??colorpaletspecification#2\endcsname]{\colo_palets_define_one{#1}}%
\fi}
which then also supports:
\setupcolors [x11]
\definepalet [colorful] [primary=green]
\definepalet [bleak] [primary=darkgray,colorful]
\starttext
\setuppalet [colorful]
\color[primary]{Ain’t I a colorful entity?}
\setuppalet [bleak]
\color[primary]{Ain’t I a colorful entity?}
\stoptext
i.e. a hidden feature of referencing to already defined palets.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2012-06-18 9:46 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-11 8:01 labeltext assignment Philipp Gesang
2012-06-11 9:03 ` Hans Hagen
2012-06-11 19:06 ` Philipp Gesang
2012-06-11 19:27 ` Wolfgang Schuster
2012-06-11 21:33 ` Exceptions to assignment syntax [was: Re: labeltext assignment] Philipp Gesang
2012-06-11 22:15 ` Aditya Mahajan
2012-06-11 22:22 ` Aditya Mahajan
2012-06-11 22:34 ` Philipp Gesang
2012-06-12 10:24 ` Wolfgang Schuster
2012-06-11 22:27 ` Philipp Gesang
2012-06-12 11:42 ` Marco
2012-06-12 13:58 ` Hans Hagen
2012-06-12 14:24 ` Marco
2012-06-12 14:33 ` Hans Hagen
2012-06-12 14:41 ` Philipp Gesang
2012-06-12 17:13 ` Hans Hagen
2012-06-16 13:19 ` Philipp Gesang
2012-06-18 9:46 ` Hans Hagen [this message]
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=4FDEF907.5080809@wxs.nl \
--to=pragma@wxs.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).