Hi Hans, hi all, with the most recent ConTeXt (This is LuaTeX, Version beta-0.75.0-2013021110 (rev 4576) ConTeXt ver: 2013.02.05 22:32 MKIV fmt: 2013.2.11 int: english/english) there is an alignment problem with labels using textext. Labels without textext work ok. Small example showing the problem: --------------------------------- \starttext \startMPpage pickup pencircle scaled 1mm ; path p ; p := fullcircle scaled 3cm ; draw p withcolor .625yellow ; label.rt (textext("right") , point 0 of p) ; label.top (textext("top") , point 2 of p) ; label.lft (textext("left") , point 4 of p) ; label.bot (textext("bottom") , point 6 of p) ; \stopMPpage \startMPpage pickup pencircle scaled 1mm ; path p ; p := fullcircle scaled 3cm ; draw p withcolor .625yellow ; label.rt ("right" , point 0 of p) ; label.top ("top" , point 2 of p) ; label.lft ("left" , point 4 of p) ; label.bot ("bottom" , point 6 of p) ; \stopMPpage \stoptext --------------------------------- Greetings Lutz
On Wed, 13 Feb 2013 06:54:18 +0100
Lutz Haseloff
Hi Hans, hi all,
with the most recent ConTeXt (This is LuaTeX, Version beta-0.75.0-2013021110 (rev 4576) ConTeXt ver: 2013.02.05 22:32 MKIV fmt: 2013.2.11 int: english/english) there is an alignment problem with labels using textext. Labels without textext work ok.
Small example showing the problem:
--------------------------------- \starttext \startMPpage pickup pencircle scaled 1mm ; path p ; p := fullcircle scaled 3cm ; draw p withcolor .625yellow ; label.rt (textext("right") , point 0 of p) ; label.top (textext("top") , point 2 of p) ; label.lft (textext("left") , point 4 of p) ; label.bot (textext("bottom") , point 6 of p) ; \stopMPpage \startMPpage pickup pencircle scaled 1mm ; path p ; p := fullcircle scaled 3cm ; draw p withcolor .625yellow ; label.rt ("right" , point 0 of p) ; label.top ("top" , point 2 of p) ; label.lft ("left" , point 4 of p) ; label.bot ("bottom" , point 6 of p) ; \stopMPpage \stoptext ---------------------------------
Greetings
Lutz
Looks OK with ConTeXt ver: 2013.02.05 22:32 MKIV fmt: 2013.2.12 int: english/english
Hi Lutz,
With
This is LuaTeX, Version beta-0.74.0-2012122517 (rev 4541)
ConTeXt ver: 2013.02.05 22:32 MKIV fmt: 2013.2.9 int: english/english
Things look fine. Actually, without textext the left and right seem to be aligned
on the baseline. Where with textext it is aligned in the middle of the text, which
I find to be the correct way.
regards
Keith
Am 13.02.2013 um 06:54 schrieb Lutz Haseloff
Hi Hans, hi all,
with the most recent ConTeXt (This is LuaTeX, Version beta-0.75.0-2013021110 (rev 4576) ConTeXt ver: 2013.02.05 22:32 MKIV fmt: 2013.2.11 int: english/english) there is an alignment problem with labels using textext. Labels without textext work ok.
Small example showing the problem:
--------------------------------- \starttext \startMPpage pickup pencircle scaled 1mm ; path p ; p := fullcircle scaled 3cm ; draw p withcolor .625yellow ; label.rt (textext("right") , point 0 of p) ; label.top (textext("top") , point 2 of p) ; label.lft (textext("left") , point 4 of p) ; label.bot (textext("bottom") , point 6 of p) ; \stopMPpage \startMPpage pickup pencircle scaled 1mm ; path p ; p := fullcircle scaled 3cm ; draw p withcolor .625yellow ; label.rt ("right" , point 0 of p) ; label.top ("top" , point 2 of p) ; label.lft ("left" , point 4 of p) ; label.bot ("bottom" , point 6 of p) ; \stopMPpage \stoptext ---------------------------------
Greetings
Lutz ___________________________________________________________________________________ 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 ___________________________________________________________________________________
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 try to add the problematic mkiv pdf.
Greetings Lutz
2013/2/13 Keith J. Schultz
Hi Lutz,
With This is LuaTeX, Version beta-0.74.0-2012122517 (rev 4541) ConTeXt ver: 2013.02.05 22:32 MKIV fmt: 2013.2.9 int: english/english
Things look fine. Actually, without textext the left and right seem to be aligned on the baseline. Where with textext it is aligned in the middle of the text, which I find to be the correct way.
regards Keith
On Wed, 13 Feb 2013 11:11:23 +0100
Lutz Haseloff
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
Hi Lutz,
Just updated, to make sure I have the latest.
I see the problems.
top & bottom labels are not centered correctly
bottom label not low enough
left and right labels are not aligned at the same height
Sorry, no ansers.
regards
Keith.
Am 13.02.2013 um 11:11 schrieb Lutz Haseloff
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 try to add the problematic mkiv pdf.
Greetings Lutz
2013/2/13 Keith J. Schultz
Hi Lutz, With This is LuaTeX, Version beta-0.74.0-2012122517 (rev 4541) ConTeXt ver: 2013.02.05 22:32 MKIV fmt: 2013.2.9 int: english/english
Things look fine. Actually, without textext the left and right seem to be aligned on the baseline. Where with textext it is aligned in the middle of the text, which I find to be the correct way.
regards Keith
It seems to me, that the label.xx mechanism is completely broken.
the results of label, label.rt and label.lft are exactly the same if i set
labeloffset := 0bp ;
(default is 3bp)
2013/2/13 Keith J. Schultz
Hi Lutz,
Just updated, to make sure I have the latest.
I see the problems. top & bottom labels are not centered correctly bottom label not low enough left and right labels are not aligned at the same height
Sorry, no ansers.
regards Keith.
Am 13.02.2013 um 11:11 schrieb Lutz Haseloff
: 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 try to add the problematic mkiv pdf.
Greetings Lutz
2013/2/13 Keith J. Schultz
Hi Lutz,
With This is LuaTeX, Version beta-0.74.0-2012122517 (rev 4541) ConTeXt ver: 2013.02.05 22:32 MKIV fmt: 2013.2.9 int: english/english
Things look fine. Actually, without textext the left and right seem to be aligned on the baseline. Where with textext it is aligned in the middle of the text, which I find to be the correct way.
regards Keith
___________________________________________________________________________________ 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
___________________________________________________________________________________
It seems, that my ConTeXt installation was broken in this point.
A complete new installation of the standalone heped.
Sorry for the noise.
2013/2/13 Lutz Haseloff
It seems to me, that the label.xx mechanism is completely broken. the results of label, label.rt and label.lft are exactly the same if i set labeloffset := 0bp ; (default is 3bp)
2013/2/13 Keith J. Schultz
Hi Lutz,
Just updated, to make sure I have the latest.
I see the problems. top & bottom labels are not centered correctly bottom label not low enough left and right labels are not aligned at the same height
Sorry, no ansers.
regards Keith.
Am 13.02.2013 um 11:11 schrieb Lutz Haseloff
: 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 try to add the problematic mkiv pdf.
Greetings Lutz
2013/2/13 Keith J. Schultz
Hi Lutz,
With This is LuaTeX, Version beta-0.74.0-2012122517 (rev 4541) ConTeXt ver: 2013.02.05 22:32 MKIV fmt: 2013.2.9 int: english/english
Things look fine. Actually, without textext the left and right seem to be aligned on the baseline. Where with textext it is aligned in the middle of the text, which I find to be the correct way.
regards Keith
___________________________________________________________________________________ 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
___________________________________________________________________________________
participants (3)
-
Alan BRASLAU
-
Keith J. Schultz
-
Lutz Haseloff