Taco Hoekwater wrote:
> Peter M�nster wrote:
>   
>> Hello,
>> such things are really easy and straightforward with LaTeX (parbox and
>> minipage), but with ConTeXt I have still a lot of difficulties. This is
>> what I do to align some typing in the middle:
>>
>> \starttext
>> \input tufte
>>
>> \setuptyping[before=\vskip-\lineheight,after=\vskip-0.13\lineheight]
>> \startalignment[middle]
>> \dontleavehmode
>> \framed[align=lohi,frame=off]{%
>> \starttyping
>> bla bla bla
>> bla bla bla bla bla bla bla bla bla
>> \stoptyping
>> }
>> \stopalignment
>> \input tufte
>> \stoptext
>>
>> The result is correct, but can't this be done much easier?
>>     
>
> I've been staring at this for a while now. I would have expected
> this to work:
>
>   \setuptyping
>      [before={\startframedtext
>                 [width=fit,align=lohi,frame=off,location=middle]},
>       after={\stopframedtext}]
>   \starttyping
>   bla bla bla
>   bla bla bla bla bla bla bla bla bla
>   \stoptyping
>
> but it doesn't.
>   
you mean that you want centered verbatim? 

-----------------------------------------------------------------
                                          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
-----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to