[NTG-context] Exceptions to assignment syntax [was: Re: labeltext assignment]

Hans Hagen pragma at wxs.nl
Mon Jun 18 11:46:47 CEST 2012

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


which then also supports:

\setupcolors [x11]

\definepalet [colorful] [primary=green]

\definepalet [bleak] [primary=darkgray,colorful]

     \setuppalet [colorful]
     \color[primary]{Ain’t I a colorful entity?}
     \setuppalet [bleak]
     \color[primary]{Ain’t I a colorful entity?}

i.e. a hidden feature of referencing to already defined palets.


                                           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

More information about the ntg-context mailing list