On Wed, 13 Feb 2013 11:11:23 +0100
Lutz Haseloff <lutz.hasel...@gmail.com> wrote:

> Hi Keith,
> 
> following testfile perhaps describes my problem better:
> 
> \starttext
> \startMPpage
> drawdot (origin);
> label.rt (textext("right") , origin) ;
> label.top (textext("top") , origin) ;
> label.lft (textext("left") , origin) ;
> label.bot (textext("bottom") , origin) ;
> \stopMPpage
> \stoptext
> 
> If i run it by texexec(mkii), all is ok, with context(mkiv) the labels
> overlap.

I do not know what you expect exactly.
Each textext() label has a bounding box.
This bounding box is then aligned in the case of rt, top, lft, bot
with its appropriate edge centered at the origin.
The lft and rt text thus will not have their baselines aligned, unless you add 
a \strut.

(This is an issue with the chemical macros.)

Try label.rt (texttext("\strut right"), origin) ;

By the way, you can use:
        draw textext.rt ("\strut right") ;
        draw textext.top("\strut top") ;
        draw textext.lft("\strut left") ;
        draw textext.bot("\strut bottom") ;
which gives a tighter fit than label().



Alan

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to