At 05:16 PM 3/4/2003 +0100, you wrote:
Hi all,

I'm using private macro for title of section:

\setuphead[section][command=\doTitle]

and if I typeset inside this \doTitle#1#2 something like (test code):

\vbox to 0pt{
  \hsize=3cm
  \hbox{\vtop{#1}\vtop{#2}}
  \hbox{\vtop{X} \vtop{The quick brown fox jumped over the lazy dog.}}
  \vss
}

I get two boxes -- the first (made from #1 and #2) NOT aligning the first
lines of vtop's (#1 is higher) and the second, which is aligned as I
expect -- both "X" and "The quick..." in the one "line".

So I traced data coming into #2 and content of \vtop filled with it and I
saw the #2 contains some vertical glue at the beginning.

What should I do to avoid this behaviour? (excluding splitting of the
resulting box using low level TeX primitives :-),

have a nice day and thanks,

\showstruts


\def\doTitle#1#2%
  {\ruledvbox
     {\forgetall \hsize=4cm
      \ruledhbox{\ruledvtop{#1}\ruledvtop{\noindent#2}}}}

try this with and without \noindent

The interfering factor is (are) a couple of write nodes needed for the list. I'll see if i can make a workaround (quite dangerous to path such code; has to do with timing, so i've now made \chardef\headtimingmode=1 for testing purposes)

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                       information: http://www.pragma-ade.com/roadmap.pdf
                    documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to