On 1/11/2017 11:08 PM, Sergey Slyusarev wrote:
Hi, i found the following bug (likely) some time ago:
When \textext (or any other text generating thing like btex etex etc.) is present inside \*MPinclusions and \*MPinclusions are followed by \*MPcode ConTeXt returns error: Equation cannot be performed (color=vacuous).
Minimal example would be:
\startMPinclusions picture p; p := image( draw textext("Foo"); ); \stopMPinclusions \startMPcode \stopMPcode
tested on http://live.contextgarden.net/
you can use \startMPinitializations \stopMPinitializations as these are expanded each graphic run action pass 1 pass 2 definitions yes extensions yes inclusions yes begin figure yes initializations yes yes metapost code yes yes end figure yes yes Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------