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
___________________________________________________________________________________