* Alignment problem with labels and textext
@ 2013-02-13 5:54 Lutz Haseloff
2013-02-13 9:03 ` Alan BRASLAU
2013-02-13 9:47 ` Keith J. Schultz
0 siblings, 2 replies; 9+ messages in thread
From: Lutz Haseloff @ 2013-02-13 5:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 985 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1526 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alignment problem with labels and textext
2013-02-13 5:54 Alignment problem with labels and textext Lutz Haseloff
@ 2013-02-13 9:03 ` Alan BRASLAU
2013-02-13 9:47 ` Keith J. Schultz
1 sibling, 0 replies; 9+ messages in thread
From: Alan BRASLAU @ 2013-02-13 9:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, 13 Feb 2013 06:54:18 +0100
Lutz Haseloff <lutz.haseloff@gmail.com> wrote:
> 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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alignment problem with labels and textext
2013-02-13 5:54 Alignment problem with labels and textext Lutz Haseloff
2013-02-13 9:03 ` Alan BRASLAU
@ 2013-02-13 9:47 ` Keith J. Schultz
2013-02-13 10:11 ` Lutz Haseloff
1 sibling, 1 reply; 9+ messages in thread
From: Keith J. Schultz @ 2013-02-13 9:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2059 bytes --]
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 <lutz.haseloff@gmail.com>:
> 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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 3952 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alignment problem with labels and textext
2013-02-13 9:47 ` Keith J. Schultz
@ 2013-02-13 10:11 ` Lutz Haseloff
2013-02-13 10:28 ` Alan BRASLAU
2013-02-13 10:46 ` Keith J. Schultz
0 siblings, 2 replies; 9+ messages in thread
From: Lutz Haseloff @ 2013-02-13 10:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 865 bytes --]
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 <keithjschultz@web.de>
> 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
>
>
[-- Attachment #1.2: Type: text/html, Size: 2116 bytes --]
[-- Attachment #2: mkiv.pdf --]
[-- Type: application/pdf, Size: 6304 bytes --]
[-- Attachment #3: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alignment problem with labels and textext
2013-02-13 10:11 ` Lutz Haseloff
@ 2013-02-13 10:28 ` Alan BRASLAU
2013-02-13 10:46 ` Keith J. Schultz
1 sibling, 0 replies; 9+ messages in thread
From: Alan BRASLAU @ 2013-02-13 10:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, 13 Feb 2013 11:11:23 +0100
Lutz Haseloff <lutz.haseloff@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alignment problem with labels and textext
2013-02-13 10:11 ` Lutz Haseloff
2013-02-13 10:28 ` Alan BRASLAU
@ 2013-02-13 10:46 ` Keith J. Schultz
2013-02-13 11:32 ` Lutz Haseloff
1 sibling, 1 reply; 9+ messages in thread
From: Keith J. Schultz @ 2013-02-13 10:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1286 bytes --]
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 <lutz.haseloff@gmail.com>:
> 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 <keithjschultz@web.de>
> 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
>
[-- Attachment #1.2: Type: text/html, Size: 3094 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alignment problem with labels and textext
2013-02-13 10:46 ` Keith J. Schultz
@ 2013-02-13 11:32 ` Lutz Haseloff
2013-02-14 6:02 ` Lutz Haseloff
0 siblings, 1 reply; 9+ messages in thread
From: Lutz Haseloff @ 2013-02-13 11:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2010 bytes --]
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 <keithjschultz@web.de>
> 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 <lutz.haseloff@gmail.com>:
>
> 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 <keithjschultz@web.de>
>
>> 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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 4395 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alignment problem with labels and textext
2013-02-13 11:32 ` Lutz Haseloff
@ 2013-02-14 6:02 ` Lutz Haseloff
0 siblings, 0 replies; 9+ messages in thread
From: Lutz Haseloff @ 2013-02-14 6:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2290 bytes --]
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 <lutz.haseloff@gmail.com>
> 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 <keithjschultz@web.de>
>
>> 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 <lutz.haseloff@gmail.com>:
>>
>> 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 <keithjschultz@web.de>
>>
>>> 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
>>
>> ___________________________________________________________________________________
>>
>
>
[-- Attachment #1.2: Type: text/html, Size: 5041 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Alignment problem with labels and textext
@ 2013-02-12 5:26 Lutz Haseloff
0 siblings, 0 replies; 9+ messages in thread
From: Lutz Haseloff @ 2013-02-12 5:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 985 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1356 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-02-14 6:02 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-13 5:54 Alignment problem with labels and textext Lutz Haseloff
2013-02-13 9:03 ` Alan BRASLAU
2013-02-13 9:47 ` Keith J. Schultz
2013-02-13 10:11 ` Lutz Haseloff
2013-02-13 10:28 ` Alan BRASLAU
2013-02-13 10:46 ` Keith J. Schultz
2013-02-13 11:32 ` Lutz Haseloff
2013-02-14 6:02 ` Lutz Haseloff
-- strict thread matches above, loose matches on Subject: below --
2013-02-12 5:26 Lutz Haseloff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).