[NTG-context] color in textext
Hans Hagen
pragma at wxs.nl
Wed Dec 28 15:46:45 CET 2005
Hans van der Meer wrote:
> I'm trying to play with colors in textext inclusions:
>
> \setupcolors[state=start]
> \setupMPpage[offset=2mm]
> \startuseMPgraphic{test}
> label(textext("\color[green]{XYZ}"), (0,0));
> \stopuseMPgraphic
> \starttext
> \forceMPTEXgraphictrue
> \startMPpage
> \includeMPgraphic{test}
> \stopMPpage
> \stoptext
>
> This label does not appear in green, although the intermediate files
> contain:
> % figure 1 : texpictures[1] := btex \color [green]{XYZ} etex ;
>
> Is it possible that \setupcolors[state=start] is not communicated?
indeed,
\startMPenvironment
\setupcolors[state=start]
\stopMPenvironment
if you want to share settings between the tex and mp runs:
\startMPenvironment[global]
\setupcolors[state=start]
\stopMPenvironment
Hans
More information about the ntg-context
mailing list