On Tue, Jul 3, 2012 at 5:27 PM, Alan BRASLAU <alan.bras...@cea.fr> wrote:
> On Tue, 3 Jul 2012 15:48:43 +0200
> Hans Hagen <pra...@wxs.nl> wrote:
>
>> It's a rather (old) low level boxing macro ...
>>
>> \start
>>      \showboxes
>>      \centerbox width 10cm height 3cm {Alan is surprised}
>> \stop
>
> My TeX culture remains, alas, always limited (even if I have the
> TeXbook on my office bookshelf, indeed \centerbox does not appear in
> plain TeX). Nothing in the ConTeXt manual, either. Of course, a
> leisurely browsing of the source code would reveal many such treasures!
There is also \vcenter

\starttext
xxxxxxxxxxg\ruledvbox{\hsize=5cm\vcenter to 3cm{Alan is
surprised}}gxxxxxxxxx \type{\vcenter}\par
xxxxxxxxxxg\ruledvbox{\centerbox width5cm height3cm{Alan is
surprised}}gxxxxxxxxx \type{\centerbox}\par
xxxxxxxxxxg\ruledvbox{\vcenter{\centerbox width5cm height3cm{Alan is
surprised}}}gxxxxxxxxx\type{\centerbox+\vcenter}\par
\stoptext

(\vcenter is a TeX primitive)


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

Reply via email to