There seems to be a typo in anch-pgr.mkII which prevents textbackgrounds from working:
line 654 '\enableparposition' should probably read '\enableparpositions'.
If you copy the following lines into your environment it should work:
\def\initializeparbackgrounds
{\ifcase\totalnofparbackgrounds\else
\enableparpositions
\fi}
Regards
Thomas
________________________________
From: ntg-context-bounces@ntg.nl [mailto:ntg-context-bounces@ntg.nl] On Behalf Of Kevin D. Robbins
Sent: Tuesday, August 04, 2009 8:03 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Problem with metapost textbackgrounds on Windows
Thanks, Mojca.
Also, a further bit of investigation on Windows shows that building the example (saved in foo.tex) with "context foo.tex" or "texexec --lua foo.tex" produces the results I reported. But, building without lua using "texexec foo.tex" gives a different error but does produce the expected gray background behind the \startC ... \stopC block. Here is the error when building with "texexec foo.tex":
! Undefined control sequence.
\initializeparbackgrounds ...e \enableparposition
\fi
<inserted text> ...page \initializeparbackgrounds
\loadctxpreplist \checkref...
\doateverystarttext ->\the \everystarttext
\global \everystarttext \emptytoks
\starttext ->\doateverystarttext
\ifcase \textlevel \registerfileinfo [begin...
l.36 \starttext
Continuing the run just by hitting enter completes the build with the correct background drawn.
Kevin
On Tue, Aug 4, 2009 at 11:48 AM, Mojca Miklavec