[metapost] mpto 1.000 bug? spurious space before etex

Hartmut Henkel hartmut_henkel at gmx.de
Tue Jun 5 22:41:43 CEST 2007


On Tue, 5 Jun 2007, Hartmut Henkel wrote:

> in the example below mpto produces a space after bar, but not after foo.
>
> beginfig(1)
> image(btex foo etex);
> image(btex bar
> etex);
> endfig;
> end

ooops, this wasn't even working mpost code, sorry. Here is an example
that shows the problem:

input boxes;
beginfig(1)
defaultdx:=defaultdy:=0pt;
boxit.a(btex foo etex);
boxit.b(btex bar
etex);
a.sw=origin;
b.sw=a.nw + up*2pt;
drawboxed(a,b);
endfig;
end

> The old mptotex from the CTAN-CD 10/2002 ignored the spaces in either
> case, but at least from 0.901 on it's not the case anymore.
>
> I guess mpto should ignore any spacer, including CR and LF.

Regards, Hartmut


More information about the metapost mailing list