2007/3/13, Helin Gai <helin.gai@gmail.com>:
Hi all,

I have some difficulty lining up the baselines of two frames... Here's
what I did:

\hbox to\hsize{%
\setupframed[frame=off]%
\vtop{chapter \switchtobodyfont[20pt] 1}\quad%
\vtop{\framed[width=6cm,align=right]{Test}}

Any idea what's going wrong here?

Thanks a lot!

Helin

--
Helin (Colin) Gai
 
Hi Helin,
 
if you want to make your own chapter layout, use the command option
in the \setuphead setup.
 
To get a frame that is lined up with the current baseline use the \inframed
command instead of the normal \framed command.
 

\showgrid

\starttext

\line
  {\setupframed[frame=off]%
   \vtop{chapter \switchtobodyfont[20pt] 1}\quad%
   \llap{\inframed[width=6cm,align=right]{Test}}}

\stoptext

Wolfgang