From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11189 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Using command in section Date: Tue, 04 Mar 2003 23:12:58 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <5.1.0.14.1.20030304231105.0242c518@remote-1> References: <004001c2e269$60ff4220$2197fac3@mii.cz> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1046854208 8453 80.91.224.249 (5 Mar 2003 08:50:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2003 08:50:08 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Mar 05 09:50:03 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18qUbD-0002C4-00 for ; Wed, 05 Mar 2003 09:50:03 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 2665010B20; Wed, 5 Mar 2003 09:50:30 +0100 (MET) Original-Received: from mail.solcon.nl (mail.solcon.nl [212.45.33.11]) by ref.ntg.nl (Postfix) with ESMTP id D07B110AF1 for ; Wed, 5 Mar 2003 09:48:12 +0100 (MET) Original-Received: from server-1.pragma-net.nl (wc-58016.solcon.nl [212.45.58.16]) by mail.solcon.nl (8.12.5/pre1.0-MySQL/8.12.5) with ESMTP id h258m820017096 for ; Wed, 5 Mar 2003 09:48:09 +0100 Original-Received: from LAPTOP-3.wxs.nl (laptop-3 [10.100.1.191]) by server-1.pragma-net.nl (8.12.3/8.12.2) with ESMTP id h258mAaW013806 for ; Wed, 5 Mar 2003 09:48:10 +0100 X-Sender: hagen-mail@server-1 (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: ntg-context@ntg.nl In-Reply-To: <004001c2e269$60ff4220$2197fac3@mii.cz> X-RAVMilter-Version: 8.4.1(snapshot 20020919) (mail.solcon.nl) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:11189 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11189 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 | pragma@wxs.nl 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 -------------------------------------------------------------------------