From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Willi Egger <w.egger@boede.nl>
Subject: Re: Problem with PocketDiary
Date: Mon, 24 Sep 2012 20:04:01 +0200 [thread overview]
Message-ID: <574EDCF7-F6E1-40DC-9BA3-7819FE4C0596@gmail.com> (raw)
In-Reply-To: <20120924152158.4ea70445@aga-netbook>
Am 24.09.2012 um 15:21 schrieb Marcin Borkowski <mbork@wmi.amu.edu.pl>:
> Dnia 2012-09-23, o godz. 10:42:08
> Wolfgang Schuster <wolfgang.schuster@gmail.com> napisał(a):
>
>> It’s a bug in the pocketdiayry code when the \color command is used.
>>
>> This snippet from the code shows two problems.
>>
>> context.bTD({style="red"})context(d) context("~")
>> context.labeltext(n) context("~\\color[black]") context.labeltext(f)
>> context.eTD()
>>
>> 1. The color for the table cell is set with “style=red” but the
>> correct setting is “color=red”. Even though it’s wrong the output is
>> correct because context has a \red command which colors the content
>> of the current group red.
>>
>> 2. The \color command takes a argument, e.g.
>> \color[<colorname>]{<text>} but here it’s used like a color switch
>> (e.g. \red) which is active till the end of the group. Changing this
>> will make the error message disappear.
>
> Thanks a lot!
>
> I changed the above line to
>
> context.bTD({color="red"})context(d) context("~") context.labeltext(n)
> context("~\\color[black]{") context.labeltext(f) context("}")
> context.eTD()
>
> and it seems to work. May I ask for changing it in the "official" source, too?
I would go with
context.color( {"black"}, function() context.labeltext(f) end )
or another method which is described in the CLD manual.
Wolfgang
___________________________________________________________________________________
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-09-24 18:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-22 14:30 Marcin Borkowski
2012-09-23 8:42 ` Wolfgang Schuster
2012-09-24 13:21 ` Marcin Borkowski
2012-09-24 18:04 ` Wolfgang Schuster [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=574EDCF7-F6E1-40DC-9BA3-7819FE4C0596@gmail.com \
--to=wolfgang.schuster@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=w.egger@boede.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).