ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Martin Kolařík" <martin@mii.cz>
Subject: Using command in section
Date: Tue, 4 Mar 2003 17:16:14 +0100	[thread overview]
Message-ID: <004001c2e269$60ff4220$2197fac3@mii.cz> (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

             reply	other threads:[~2003-03-04 16:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-04 16:16 Martin Kolařík [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004001c2e269$60ff4220$2197fac3@mii.cz' \
    --to=martin@mii.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).