On Sun, Jul 12, 2009 at 23:02, Wolfgang Schuster wrote:
Am 12.07.2009 um 22:49 schrieb Mojca Miklavec:
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.
Why don't you use grouping then?
I guess because I don't understand what's going on in the first place :)
\def\startGNUPLOTpage {\begingroup\obeyMPlines\dostartGNUPLOTpage}
\long\def\dostartGNUPLOTpage#1\stopGNUPLOTpage {\endgroup\startMPpage#1\stopMPpage}
Thanks a lot!!! The magic apparently works. I don't understand what exactly the "obeylines" macro does (it seems that it just makes sure that none of line endings get lost, not even inside definition itself). I had enough problems convincing the macro itself to work (metapost was complaining about too long lines otherwise), but I would definitely not come to the idea of ending the group even before the real macro starts :) Thanks again, Mojca