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 Class of 2009, Duke University Box 96332 Durham, NC 27708 Phone: 919-943-6302 helin.gai at gmail.com hg9 at duke.edu
2007/3/13, Helin Gai
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
Helin Gai wrote:
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?
you need to make sure that the second box has the same height \hbox to\hsize{ \setupframed[frame=off]% \switchtobodyfont[20pt]% \vtop{chapter \switchtobodyfont[20pt] 1}\quad \vtop{\inframed[width=6cm,align=right]{Test}} } or \hbox to\hsize{ \setupframed[frame=off]% \setbox0=\vtop{chapter \switchtobodyfont[20pt] 1} \setbox2=\vtop{\inframed[width=6cm,align=right]{Test}} \ht2=\ht0 \box0\quad\box2 } \inframed does the lowering ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Helin Gai
-
Wolfgang Schuster