Hi, I have a problem with the postscript output of a MP graphic. The (attached) ps file contains a single blank line, which breaks the conversion by mptopdf. [..] [MP to PDF] (./test-mpgraph.1 Runaway argument? ! Paragraph ended before \handleMPsequence was complete. <to be read again> \par l.19 ? The file is converted by mptopdf, if I remove that blank line. Here is a minimal example. \setupoutput[pdftex] \setuppagenumber[state=stop] \startreusableMPgraphic{foo} draw unitsquare xyscaled(4cm,4cm) withpen pencircle scaled 1pt shifted(1cm,1cm) ; \stopreusableMPgraphic \starttext \null \useMPgraphic{foo} \stoptext I've tested it on context live, but the versions of pdftex and metapost are too old (but work without errors) for any comparison. Used versions: pdftex 1.40.1, metapost 0.933, context 18.01.2007 Any hints welcome. Peter
Peter Rolf wrote:
I've tested it on context live, but the versions of pdftex and metapost are too old (but work without errors) for any comparison. Used versions: pdftex 1.40.1, metapost 0.933, context 18.01.2007
Any hints welcome.
looks like a problem in the metapost beta (context depends on metapost not generating empty lines). Taco
Taco Hoekwater wrote:
Peter Rolf wrote:
I've tested it on context live, but the versions of pdftex and metapost are too old (but work without errors) for any comparison. Used versions: pdftex 1.40.1, metapost 0.933, context 18.01.2007
Any hints welcome.
looks like a problem in the metapost beta (context depends on metapost not generating empty lines).
Thanks for the info. I have "wasted" five hours on this, but I couldn't find the place, where the line is inserted.
Taco _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Peter Rolf wrote:
Taco Hoekwater wrote:
Peter Rolf wrote:
I've tested it on context live, but the versions of pdftex and metapost are too old (but work without errors) for any comparison. Used versions: pdftex 1.40.1, metapost 0.933, context 18.01.2007
Any hints welcome. looks like a problem in the metapost beta (context depends on metapost not generating empty lines).
Thanks for the info. I have "wasted" five hours on this, but I couldn't find the place, where the line is inserted.
I'll look this up in the weekend. Taco
Taco Hoekwater wrote:
Peter Rolf wrote:
Taco Hoekwater wrote:
Peter Rolf wrote:
I've tested it on context live, but the versions of pdftex and metapost are too old (but work without errors) for any comparison. Used versions: pdftex 1.40.1, metapost 0.933, context 18.01.2007
Any hints welcome. looks like a problem in the metapost beta (context depends on metapost not generating empty lines).
Thanks for the info. I have "wasted" five hours on this, but I couldn't find the place, where the line is inserted.
I'll look this up in the weekend.
Hi Taco. Any news about it? Peter
Taco _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
On 2/2/07, Peter Rolf wrote:
Taco Hoekwater wrote:
Peter Rolf wrote:
Taco Hoekwater wrote:
Peter Rolf wrote:
I've tested it on context live, but the versions of pdftex and metapost are too old (but work without errors) for any comparison. Used versions: pdftex 1.40.1, metapost 0.933, context 18.01.2007
Any hints welcome. looks like a problem in the metapost beta (context depends on metapost not generating empty lines).
Thanks for the info. I have "wasted" five hours on this, but I couldn't find the place, where the line is inserted.
I'll look this up in the weekend.
Hi Taco. Any news about it?
Although it probably isn't the answer you were looking for: yes, there are news, the metapost & pdfTeX versions in the garden are updated ;) Mojca
Peter Rolf wrote:
looks like a problem in the metapost beta (context depends on metapost not generating empty lines).
Thanks for the info. I have "wasted" five hours on this, but I couldn't find the place, where the line is inserted.
I'll look this up in the weekend.
Hi Taco. Any news about it?
Found it. There will be a new metapost beta somewhere in the coming week, with the fix added. In case anyone is interested right now, the diff is: Index: src/texk/web2c/psout.ch =================================================================== --- src/texk/web2c/psout.ch (revision 128) +++ src/texk/web2c/psout.ch (working copy) @@ -494,7 +494,7 @@ @x begin print_nl("gsave "); @y - begin print_ln; print_cmd("gsave ","q "); + begin print_nl(""); print_cmd("gsave ","q "); @z @x
Taco Hoekwater wrote:
Peter Rolf wrote:
looks like a problem in the metapost beta (context depends on metapost not generating empty lines).
Thanks for the info. I have "wasted" five hours on this, but I couldn't find the place, where the line is inserted. I'll look this up in the weekend.
Hi Taco. Any news about it?
Found it. There will be a new metapost beta somewhere in the coming week, with the fix added.
Many thanks from my side. I can't wait to test the new beta. :) Best, Peter
In case anyone is interested right now, the diff is:
Index: src/texk/web2c/psout.ch =================================================================== --- src/texk/web2c/psout.ch (revision 128) +++ src/texk/web2c/psout.ch (working copy) @@ -494,7 +494,7 @@ @x begin print_nl("gsave "); @y - begin print_ln; print_cmd("gsave ","q "); + begin print_nl(""); print_cmd("gsave ","q "); @z
@x
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
participants (3)
-
Mojca Miklavec
-
Peter Rolf
-
Taco Hoekwater