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
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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Taco Hoekwater