ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bug in mptopdf
@ 2005-07-08  8:12 Taco Hoekwater
  2005-07-08  9:44 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Taco Hoekwater @ 2005-07-08  8:12 UTC (permalink / raw)


Hi Hans,

I am afraid there is a bug in the latest mptopdf. It presents
itself by spurious spaces in the output for long postscript
strings. Here is an example:

% uncomment next two lines for viewing in gv(1)
%defaultfont := "Times-Roman";
%prologues := 1;
beginfig(1);
   label ("This string wraps to a second line"&
          " in the metapost output",(origin));
endfig;
end.

The created pdf document has a space after the p in metapost.
The output contains:

(This\040string\040wraps\040to\040a\040second\040line\040in\040the\040metap\
ost\040output) cmr10 9.96265 fshow

Greetings, Taco

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: bug in mptopdf
  2005-07-08  8:12 bug in mptopdf Taco Hoekwater
@ 2005-07-08  9:44 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2005-07-08  9:44 UTC (permalink / raw)


Taco Hoekwater wrote:
> Hi Hans,
> 
> I am afraid there is a bug in the latest mptopdf. It presents
> itself by spurious spaces in the output for long postscript
> strings. Here is an example:
> 
> % uncomment next two lines for viewing in gv(1)
> %defaultfont := "Times-Roman";
> %prologues := 1;
> beginfig(1);
>   label ("This string wraps to a second line"&
>          " in the metapost output",(origin));
> endfig;
> end.
> 
> The created pdf document has a space after the p in metapost.
> The output contains:
> 
> (This\040string\040wraps\040to\040a\040second\040line\040in\040the\040metap\ 
> 
> ost\040output) cmr10 9.96265 fshow

This works ok here:

\starttext

\startMPpage
   label ("This string wraps to a second line"&
          " in the metapost output",(origin));
\stopMPpage

\stoptext

i wonder where your metap\<newline>ost comes from, is that something in your 
local mp? what happens if you set the line length in mp larger?

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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-08  9:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-08  8:12 bug in mptopdf Taco Hoekwater
2005-07-08  9:44 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).