Mojca Miklavec wrote:
On Sun, Jul 12, 2009 at 22:45, Hans Hagen wrote:
Mojca Miklavec wrote:
Hello,
The following code works OK in mkiv, but in mkii it generates a spurious empty page at the end. How can I get rid of it? (I think that it used to work OK a while ago.)
\def\startGNUPLOTpage% {\obeyMPlines\dostartGNUPLOTpage} \long\def\dostartGNUPLOTpage#1\stopGNUPLOTpage% {\startMPpage#1\stopMPpage}
\starttext \startGNUPLOTpage draw fullcircle scaled 3cm; \stopGNUPLOTpage \stoptext
do you reset the color afterwards?
What color(s)? (I'm not sure that I understood the question.)
This is a complete minimal example (no need for any external package). It seems that \obeyMPlines or something related introduces a space somewhere, and that generates an empty page.
there is a node ending up on a page on its own, could be some skip or a special/literal (e.g. color related) how does \def\startGNUPLOTpage {\begingroup \obeyMPlines \dostartGNUPLOTpage} \long\def\dostartGNUPLOTpage#1\stopGNUPLOTpage {\endgroup \startMPpage#1\stopMPpage} perform? do you really need the \obeyMPlines? ----------------------------------------------------------------- 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 -----------------------------------------------------------------