[metapost] Why only the contents of the 1st quadrant left?
hartmut_henkel at gmx.de
Tue Jun 19 22:50:43 CEST 2007
On Wed, 20 Jun 2007, Song Xiaodong wrote:
> I have made a figure using metapost and inserted it into a latex
> document. When previewed in dvi format, nothing abnormality, but when
> the document changed from dvi to pdf (using dvitopdf), the contents of
> the left part of Y axis and the below part of X axis all missed. Why?
this seems to be a bug in old dvipdfm 0.13.2c. My mpost testfile is
a := 150;
draw unitsquare scaled a;
draw origin --(a,a);
draw (0,a) --(a,0mm);
The latex testfile is:
then do latex and dvipdfm. And the /BBox of the image is /BBox [0 0 2384
3370], which is wrong, as the pen moves to 0 0 so half of the line is
negative and therefore clipped. In dvi still everything is ok.
Ha, and with dvipdfmx-20061211 it's fine! The /BBox is correct. This is
part of TeX Live 2007. Just use dvipdfmx, and you will be happy...
More information about the metapost