[NTG-context] metafun & \sometxt: should black be "black" or "textcolor"?

Mojca Miklavec mojca.miklavec.lists at gmail.com
Sun Aug 6 13:26:04 CEST 2006


On 8/6/06, Taco Hoekwater wrote:
> Mojca Miklavec wrote:
> > Hello,
> >
> > Does anyone have any idea about what's going on here? I get blue text,
> > but a black square, although both are supposed to come out black (I
> > wouldn't mind so much, but the problem is that some text is blue and
> > some is black - I have some other testcases where this happens, but I
> > have to create a minimal example first).
>
> use \textext. \sometxt will use the text color, because it never
> reaches metapost (I assume it would be possible to intercept
> drawing options like withcolor, but that doesn't happen at the
> moment).

But the other \sometxt was indeed red - withcolor seems to work, but
only conditionally. And I have some weird examples of two texts one
after another. In some cases (if something else is drawn inbetween and
a color changed twice), then the second text will be black. But it's
quite unpredictable (that one might even be bug in my code, so I don't
want to complain before I have an example).

I while ago I also posted an interesting example with colored table
(withcolor colored only some of the cells), but that is alredy a very
complex example.

And I can't afford to use \textext. It's was too slow (approximately
factor 10) and it runs out of TeX memmory after 10 or 12 plots on
average.

Thanks,
    Mojca

A question for you or Hans: can please someone explain me in a few
words what's the main strategy/philosophy behind \sometxt. I don't
understand exactly how TeX processes it (and metapost
shrinks/expands/shifts/colors) it inline.


More information about the ntg-context mailing list