ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Using command in section
@ 2003-03-04 16:16 Martin Kolařík
  2003-03-04 22:12 ` Hans Hagen
  2003-03-05  7:29 ` Guy Worthington
  0 siblings, 2 replies; 6+ messages in thread
From: Martin Kolařík @ 2003-03-04 16:16 UTC (permalink / raw)


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,

Martin

--------
Martin Kolarik
Moravske Pristroje, a.s., Masarykova 1148, Zlin 76302
tel. +420 603 498 498, fax +420 577 107 171
web: http://www.mii.cz
--------
e-mail: kolarik@mii.cz
e-mail: kolarik@click.cz
tel. +420 603 535 593

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-03-05  9:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-04 16:16 Using command in section Martin Kolařík
2003-03-04 22:12 ` Hans Hagen
2003-03-05  9:19   ` Martin Kolarík
2003-03-05  7:29 ` Guy Worthington
2003-03-05  7:40   ` Martin Kolarík
2003-03-05  8:52   ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).