* Label alignment in descriptions
@ 2009-05-19 19:05 Tim Wraight
2009-05-19 21:00 ` Oliver Buerschaper
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Tim Wraight @ 2009-05-19 19:05 UTC (permalink / raw)
To: ntg-context
Hello,
I can't get the 'align' parameter to have any effect on label text in
definitions. Here is a simple test case:
\setuplayout[backspace=40mm]
\definedescription
[test]
[location=inleft,
width=25mm,
align=left,
margin=standard]
\starttext
\test{Hello} World! \par
\test{Misaligned} Labels
\stoptext
Changing the value of 'align' to 'middle' or 'right' does nothing. I'm
using ConTeXt ver: 2009.04.28 08:46 MKIV fmt: 2009.5.9 int: english/
english, and LuaTeX, Version beta-0.40.0-2009042219 luatex.web >= v2344
Any help much appreciated, and congratulations to all those who have
helped make ConTeXt such an excellent tool.
Tim Wraight
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Label alignment in descriptions
2009-05-19 19:05 Label alignment in descriptions Tim Wraight
@ 2009-05-19 21:00 ` Oliver Buerschaper
2009-05-19 21:15 ` Oliver Buerschaper
2009-05-20 9:11 ` Wolfgang Schuster
2 siblings, 0 replies; 7+ messages in thread
From: Oliver Buerschaper @ 2009-05-19 21:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
I'm already having problems with the following minimal test:
---
\definedescription[test]
\starttext
\test{Hello} world!
\stoptext
---
TeX complains that the file ended while it was scanning \dodowithpar.
For TeX this is probably not surprising, and a new line before
\stoptext solves the problem.
Is it possible to make ConTeXt insensitive to new lines in the above
situation (and similar ones)?
Oliver
> Hello,
>
> I can't get the 'align' parameter to have any effect on label text
> in definitions. Here is a simple test case:
>
>
> \setuplayout[backspace=40mm]
> \definedescription
> [test]
> [location=inleft,
> width=25mm,
> align=left,
> margin=standard]
> \starttext
> \test{Hello} World! \par
> \test{Misaligned} Labels
> \stoptext
>
>
> Changing the value of 'align' to 'middle' or 'right' does nothing.
> I'm using ConTeXt ver: 2009.04.28 08:46 MKIV fmt: 2009.5.9 int:
> english/english, and LuaTeX, Version beta-0.40.0-2009042219
> luatex.web >= v2344
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Label alignment in descriptions
2009-05-19 19:05 Label alignment in descriptions Tim Wraight
2009-05-19 21:00 ` Oliver Buerschaper
@ 2009-05-19 21:15 ` Oliver Buerschaper
2009-05-19 21:48 ` Hans Hagen
2009-05-20 9:11 ` Wolfgang Schuster
2 siblings, 1 reply; 7+ messages in thread
From: Oliver Buerschaper @ 2009-05-19 21:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
> Hello,
>
> I can't get the 'align' parameter to have any effect on label text
> in definitions. Here is a simple test case:
>
>
> \setuplayout[backspace=40mm]
> \definedescription
> [test]
> [location=inleft,
> width=25mm,
> align=left,
> margin=standard]
> \starttext
> \test{Hello} World! \par
> \test{Misaligned} Labels
> \stoptext
>
>
> Changing the value of 'align' to 'middle' or 'right' does nothing.
> I'm using ConTeXt ver: 2009.04.28 08:46 MKIV fmt: 2009.5.9 int:
> english/english, and LuaTeX, Version beta-0.40.0-2009042219
> luatex.web >= v2344
Confirmed on 2009.05.14 16:44 if a new line is inserted just before
\stoptext:
---
\setuplayout[backspace=40mm]
\definedescription
[test]
[location=inleft,
width=25mm,
align=left,
margin=standard]
\starttext
\test{Hello} World! \par
\test{Misaligned} Labels
\stoptext
---
Best,
Oliver
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Label alignment in descriptions
2009-05-19 21:15 ` Oliver Buerschaper
@ 2009-05-19 21:48 ` Hans Hagen
2009-05-20 7:31 ` Tim Wraight
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2009-05-19 21:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
Oliver Buerschaper wrote:
>> Hello,
>>
>> I can't get the 'align' parameter to have any effect on label text in
>> definitions. Here is a simple test case:
>>
>>
>> \setuplayout[backspace=40mm]
>> \definedescription
>> [test]
>> [location=inleft,
>> width=25mm,
>> align=left,
>> margin=standard]
>> \starttext
>> \test{Hello} World! \par
>> \test{Misaligned} Labels
>> \stoptext
>>
>>
>> Changing the value of 'align' to 'middle' or 'right' does nothing. I'm
>> using ConTeXt ver: 2009.04.28 08:46 MKIV fmt: 2009.5.9 int:
>> english/english, and LuaTeX, Version beta-0.40.0-2009042219 luatex.web
>> >= v2344
>
> Confirmed on 2009.05.14 16:44 if a new line is inserted just before
> \stoptext:
>
> ---
> \setuplayout[backspace=40mm]
> \definedescription
> [test]
> [location=inleft,
> width=25mm,
> align=left,
> margin=standard]
> \starttext
> \test{Hello} World! \par
> \test{Misaligned} Labels
>
> \stoptext
descriptions (and a few more commands) expect a \par (or empty line)
best use
\starttest{Hello} World! \stoptest
\starttest{Misaligned} Labels \stoptest
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Label alignment in descriptions
2009-05-19 21:48 ` Hans Hagen
@ 2009-05-20 7:31 ` Tim Wraight
0 siblings, 0 replies; 7+ messages in thread
From: Tim Wraight @ 2009-05-20 7:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 19 May 2009, at 22:48, Hans Hagen wrote:
> Oliver Buerschaper wrote:
>>> Hello,
>>>
>>> I can't get the 'align' parameter to have any effect on label text
>>> in definitions. Here is a simple test case:
>>>
>>>
>>> \setuplayout[backspace=40mm]
>>> \definedescription
>>> [test]
>>> [location=inleft,
>>> width=25mm,
>>> align=left,
>>> margin=standard]
>>> \starttext
>>> \test{Hello} World! \par
>>> \test{Misaligned} Labels
>>> \stoptext
>>>
>>>
>>> Changing the value of 'align' to 'middle' or 'right' does nothing.
>>> I'm using ConTeXt ver: 2009.04.28 08:46 MKIV fmt: 2009.5.9 int:
>>> english/english, and LuaTeX, Version beta-0.40.0-2009042219
>>> luatex.web >= v2344
>> Confirmed on 2009.05.14 16:44 if a new line is inserted just before
>> \stoptext:
>> ---
>> \setuplayout[backspace=40mm]
>> \definedescription
>> [test]
>> [location=inleft,
>> width=25mm,
>> align=left,
>> margin=standard]
>> \starttext
>> \test{Hello} World! \par
>> \test{Misaligned} Labels
>> \stoptext
>
> descriptions (and a few more commands) expect a \par (or empty line)
>
> best use
>
> \starttest{Hello} World! \stoptest
> \starttest{Misaligned} Labels \stoptest
In that case, perhaps there's a simper way to achieve my aim: I'm
doing dialogue, and want to have the speakers' names right-aligned
(ie. ragged left) in the margin. Is there a better way to do this than
descriptions?
for example:
Jim: Isn't ConteXt fun?
John: Sure. When you know what you're doing.
>
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
> | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> 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 : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Label alignment in descriptions
2009-05-19 19:05 Label alignment in descriptions Tim Wraight
2009-05-19 21:00 ` Oliver Buerschaper
2009-05-19 21:15 ` Oliver Buerschaper
@ 2009-05-20 9:11 ` Wolfgang Schuster
2009-05-20 9:29 ` Tim Wraight
2 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2009-05-20 9:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
http://archive.contextgarden.net/message/20080130.152108.77e74a14.en.html
http://archive.contextgarden.net/message/20090305.193628.ebaae6c2.en.html
Wolfgang
Am 19.05.2009 um 21:05 schrieb Tim Wraight:
> Hello,
>
> I can't get the 'align' parameter to have any effect on label text
> in definitions. Here is a simple test case:
>
>
> \setuplayout[backspace=40mm]
> \definedescription
> [test]
> [location=inleft,
> width=25mm,
> align=left,
> margin=standard]
> \starttext
> \test{Hello} World! \par
> \test{Misaligned} Labels
> \stoptext
>
>
> Changing the value of 'align' to 'middle' or 'right' does nothing.
> I'm using ConTeXt ver: 2009.04.28 08:46 MKIV fmt: 2009.5.9 int:
> english/english, and LuaTeX, Version beta-0.40.0-2009042219
> luatex.web >= v2344
>
> Any help much appreciated, and congratulations to all those who have
> helped make ConTeXt such an excellent tool.
>
> Tim Wraight
>
> ___________________________________________________________________________________
> 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 : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Label alignment in descriptions
2009-05-20 9:11 ` Wolfgang Schuster
@ 2009-05-20 9:29 ` Tim Wraight
0 siblings, 0 replies; 7+ messages in thread
From: Tim Wraight @ 2009-05-20 9:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 20 May 2009, at 10:11, Wolfgang Schuster wrote:
> http://archive.contextgarden.net/message/20080130.152108.77e74a14.en.html
> http://archive.contextgarden.net/message/20090305.193628.ebaae6c2.en.html
>
Thanks Wolfgang, that's very helpful. If I understand correctly,
headeralign has not yet been implemented, but for now we can use text=
\hfill to give the same result. It certainly seems to work fine for me.
Cheers,
Tim
> Wolfgang
>
> Am 19.05.2009 um 21:05 schrieb Tim Wraight:
>
>> Hello,
>>
>> I can't get the 'align' parameter to have any effect on label text
>> in definitions. Here is a simple test case:
>>
>>
>> \setuplayout[backspace=40mm]
>> \definedescription
>> [test]
>> [location=inleft,
>> width=25mm,
>> align=left,
>> margin=standard]
>> \starttext
>> \test{Hello} World! \par
>> \test{Misaligned} Labels
>> \stoptext
>>
>>
>> Changing the value of 'align' to 'middle' or 'right' does nothing.
>> I'm using ConTeXt ver: 2009.04.28 08:46 MKIV fmt: 2009.5.9 int:
>> english/english, and LuaTeX, Version beta-0.40.0-2009042219
>> luatex.web >= v2344
>>
>> Any help much appreciated, and congratulations to all those who
>> have helped make ConTeXt such an excellent tool.
>>
>> Tim Wraight
>>
>> ___________________________________________________________________________________
>> 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 : https://foundry.supelec.fr/projects/contextrev/
>> wiki : http://contextgarden.net
>> ___________________________________________________________________________________
>
> ___________________________________________________________________________________
> 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 : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-05-20 9:29 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-19 19:05 Label alignment in descriptions Tim Wraight
2009-05-19 21:00 ` Oliver Buerschaper
2009-05-19 21:15 ` Oliver Buerschaper
2009-05-19 21:48 ` Hans Hagen
2009-05-20 7:31 ` Tim Wraight
2009-05-20 9:11 ` Wolfgang Schuster
2009-05-20 9:29 ` Tim Wraight
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).