From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44692 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Extra space before itemize Date: Sat, 11 Oct 2008 13:34:54 +0200 Message-ID: <48F08F5E.2030704@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223724962 8335 80.91.229.12 (11 Oct 2008 11:36:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Oct 2008 11:36:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Oct 11 13:36:58 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KocmE-0003LE-DT for gctc-ntg-context-518@m.gmane.org; Sat, 11 Oct 2008 13:36:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7E5291FC01; Sat, 11 Oct 2008 13:35:47 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11349-06-4; Sat, 11 Oct 2008 13:35:03 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 368021FBD0; Sat, 11 Oct 2008 13:35:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D30301FA2B for ; Sat, 11 Oct 2008 13:35:01 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04502-04-17 for ; Sat, 11 Oct 2008 13:34:53 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id DA8CC1FBD0 for ; Sat, 11 Oct 2008 13:34:53 +0200 (CEST) Original-Received: from [10.100.1.112] (unverified [10.100.1.11]) by controller-1 (SurgeMail 3.9e) with ESMTP id 834-1840426 for ; Sat, 11 Oct 2008 13:34:53 +0200 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) In-Reply-To: X-Originating-IP: 10.100.1.11 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:44692 Archived-At: Aditya Mahajan wrote: > Hi, > > I am setting up a head which simply puts its contents in a layer, so that > I can control where to place the head. If the head is followed by an > itemize, I get spurious white space. See the following test file. Page 1 > is head followed by text, which is OK. Page 2 is head followed by itemize, > which has extra space. page 3 is just itemize which is ok. > > \definelayer[test] > [width=\paperwidth, > height=\paperheight, > x=5cm,y=1cm] > > \def\mylayer#1#2{\setlayer[test]{#1#2}} > > \definehead[testhead][subject] > > \setuphead[testhead] > [before=, > after=, > alternative=text, > command=\mylayer] > > \setupbackgrounds[page][background=test] > > \showframe > \showboxes > > \starttext > > \testhead{First} > > \input knuth > > \page > > \testhead{Hello} > > \startitemize > \item A > \item B > \stopitemize > > \page > > \startitemize > \item A > \item B > \stopitemize > > > \stoptext > > > How do I get rid of the extra space? hack \def\mylayer#1#2{\startnointerference\setlayer[test]{#1#2}\stopnointerference} \definehead[testhead][subject] \setuphead[testhead] [page=, before=, after={\topskipcorrection\vskip-\topskip \blank[disable]}, alternative=normal, command=\mylayer] ----------------------------------------------------------------- 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 ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________