\sometxt{broken} withcolor \MPcolor{currentcolor}
![](https://secure.gravatar.com/avatar/6114858d84b0f40cf715f12237ab67a1.jpg?s=120&d=mm&r=g)
Hello Hans, the following code doesn't work any more: \setupcolors[state=start] \starttext \startMPcode draw \sometxt{abc} withcolor \MPcolor{currentcolor}; \stopMPcode \stoptext If I say \color[red]{\startMPcode ... \stopMPcode} then it's OK, but the "default" isn't. Thanks a lot, Mojca ! Argument of \execcolorRCSP has an extra }. <inserted text> \par <to be read again> } \doTeXtext ... \scantokens {#3}\stopcurrentcolor } \global \settrue \TeXtextd... \dodofiltersometxt ...er \TeXtext \txtcounter {#1} \expandafter \filtersometx... <argument> draw \sometxt {abc} wi thcolor \MPcolor {currentcolor}; \flushTeXtexts ...llectedmptexts \filtersometxt #1 \sometxt {}\empty \relax \... ... l.7 \stopMPcode ? ! Emergency stop. <inserted text> \par <to be read again> } \doTeXtext ... \scantokens {#3}\stopcurrentcolor } \global \settrue \TeXtextd... \dodofiltersometxt ...er \TeXtext \txtcounter {#1} \expandafter \filtersometx... <argument> draw \sometxt {abc} wi thcolor \MPcolor {currentcolor}; \flushTeXtexts ...llectedmptexts \filtersometxt #1 \sometxt {}\empty \relax \... ... l.7 \stopMPcode
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Mojca Miklavec wrote:
Hello Hans,
the following code doesn't work any more:
\setupcolors[state=start]
\starttext \startMPcode draw \sometxt{abc} withcolor \MPcolor{currentcolor}; \stopMPcode \stoptext
If I say \color[red]{\startMPcode ... \stopMPcode} then it's OK, but the "default" isn't.
Thanks a lot,
mojca proof: (colo-ini): \letvalue{\??cl*\s!black}\s!black \def\currentcolorname {\csname \ifcsname\@@currentcolorname\endcsname \expandafter\ifx\csname\@@currentcolorname\endcsname\empty \??cl*\s!black \else \@@currentcolorname \fi \else \??cl*\s!black \fi \endcsname} -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Mojca Miklavec