[NTG-context] framed and align=no
Hans Hagen
pragma at wxs.nl
Thu Jun 29 13:53:55 CEST 2006
Hans van der Meer wrote:
> On Jun 28, 2006, at 17:45, Taco Hoekwater wrote:
>
>> Hans van der Meer wrote:
>>
>>> I get the impression that although "align=no", there still is a
>>> \hfil
>>> put in at the right.
>>>
>> Yes, but it is an implied fil, from \parfillskip. Because you limited
>> the width of the \framed, it is processed in vertical mode, so
>> \parfillskip is added to the end of the paragraph.
>>
>> This should help:
>>
>> \unprotect
>> % for core-spa.tex
>> \setvalue{\@@ragged@@command\v!disable}%
>> {\appendtoks \raggedright \parfillskip\zeropoint
>> \to\everyraggedcommand}
>> \protect
>>
>> \starttext
>> \framed[width=4cm,align=disable] {\hfil xyz}
>> \stoptext
>>
>
> Thanks. I installed it and it works. Witness the examples below.
> Will this be installed in next ConTeXt versions? I would be grateful.
> One question of naming:
> I think "none" is a better descriptive name then "disable"
>
other keywords are already taken
Hans
--
-----------------------------------------------------------------
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
-----------------------------------------------------------------
More information about the ntg-context
mailing list