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 ___________________________________________________________________________________