Re: [NTG-context] How to prevent empty page after MPpage?

2009-07-13 Thread Vafa Khalighi
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). sometimes when you typeset a piece of text like poems, you actually want to go to

Re: [NTG-context] How to prevent empty page after MPpage?

2009-07-13 Thread Hans Hagen
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%

Re: [NTG-context] How to prevent empty page after MPpage?

2009-07-13 Thread Hans Hagen
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

Re: [NTG-context] How to prevent empty page after MPpage?

2009-07-13 Thread Hans Hagen
Vafa Khalighi wrote: 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). sometimes when you typeset a piece of text like poems, you

Re: [NTG-context] How to prevent empty page after MPpage?

2009-07-13 Thread Mojca Miklavec
On Mon, Jul 13, 2009 at 09:50, Hans Hagen wrote: Mojca Miklavec wrote: \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

Re: [NTG-context] How to prevent empty page after MPpage?

2009-07-13 Thread Hans Hagen
Mojca Miklavec wrote: The macro handles both MKII and MKIV and I had problem in MKII. Not all restrictions are gone now (I still get memory limit exceeded in MKIV) and even if MP handles long lines now ... I don't want to risk since the code is already there anyway. in mkiv you can use a

[NTG-context] How to prevent empty page after MPpage?

2009-07-12 Thread Mojca Miklavec
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%

Re: [NTG-context] How to prevent empty page after MPpage?

2009-07-12 Thread Hans Hagen
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}

Re: [NTG-context] How to prevent empty page after MPpage?

2009-07-12 Thread Mojca Miklavec
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%        

Re: [NTG-context] How to prevent empty page after MPpage?

2009-07-12 Thread Wolfgang Schuster
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? \def\startGNUPLOTpage

Re: [NTG-context] How to prevent empty page after MPpage?

2009-07-12 Thread Mojca Miklavec
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