Mojca Miklavec wrote:
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?
ah .. wolfgang was ahead of me -)
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).
it is not relevant here i think; there was a time when mp could not handle long lines so mkii has the option to split the source into lines (after a ;) which then makes mp happy that restriction is no longer there
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 :)
oh? how old is your mp? can't you set the buffer to 200K in texmf.cnf? Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------