Bug#421577: texlive-metapost: latexMP gets bounding box wrong

2007-04-30 Thread Dylan Thurston
Package: texlive-metapost
Version: 2007-5
Severity: normal

latexMP will in some cases get the bounding box wrong, particularly
when there is a minus sign.  In the example below, the two labels come
out with different bounding boxes: the second one goes about .9pt
below the baseline, for some strange reason.  (Possibly this is a
problem with the font rather than latexMP.)

##
input latexmp;
setupLaTeXMP(class=amsart,
 fontencoding=T1,
 textextlabel=enable);

beginfig(0);
  label.top(textext($1$), (0,0));
  label.top(textext($-1$), (10pt,0));
endfig;

end



##
other files


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (50, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.18
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages texlive-metapost depends on:
ii  libc6 2.5-4  GNU C Library: Shared libraries
ii  texlive-base  2007-4 TeX Live: Essential programs and f
ii  texlive-common2007-4 TeX Live: Base component

Versions of packages texlive-metapost recommends:
ii  feynmf1.08-3 set of LaTeX macros for creating F

Versions of packages tex-common depends on:
ii  debconf   1.5.13 Debian configuration management sy
ii  ucf   2.0021 Update Configuration File: preserv

Versions of packages texlive-metapost is related to:
pn  tetex-basenone (no description available)
ii  tetex-bin 2007-4 TeX Live: teTeX transitional packa
pn  tetex-extra   none (no description available)

-- debconf information:
  tex-common/check_texmf_wrong:
  tex-common/check_texmf_missing:
  tex-common/singleuser: false


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#421577: texlive-metapost: latexMP gets bounding box wrong

2007-04-30 Thread Ralf Stubner
Dylan Thurston wrote:
 Package: texlive-metapost
 Version: 2007-5
 Severity: normal

 latexMP will in some cases get the bounding box wrong, particularly
 when there is a minus sign.  In the example below, the two labels come
 out with different bounding boxes: the second one goes about .9pt
 below the baseline, for some strange reason.  (Possibly this is a
 problem with the font rather than latexMP.)

Do you get the same bounding box for $+1$ as for $-1$? If yes, then this
is indeed a font issue. For TeX '-' and '+' have the same height and
depth. This is important so that $\sqrt{x+y}$ and $\sqrt{x-y}$ are
rendered with identical square-root signs. As a work around, you could try
something like $\smash{-}1$ (sorry not tested).

cheerio
ralf