From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44695 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Extra space before itemize Date: Sat, 11 Oct 2008 15:44:10 -0400 (EDT) Message-ID: References: <48F08F5E.2030704@wxs.nl> 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 1223754372 4757 80.91.229.12 (11 Oct 2008 19:46:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Oct 2008 19:46:12 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Oct 11 21:47:10 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 1KokQX-0008Kc-Qp for gctc-ntg-context-518@m.gmane.org; Sat, 11 Oct 2008 21:47:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 483FC1FB72; Sat, 11 Oct 2008 21:45:55 +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 11402-03-3; Sat, 11 Oct 2008 21:44:49 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CAD061FB39; Sat, 11 Oct 2008 21:44:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F07E51FB38 for ; Sat, 11 Oct 2008 21:44: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 11402-03-2 for ; Sat, 11 Oct 2008 21:44:13 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with ESMTP id 4E7701FADB for ; Sat, 11 Oct 2008 21:44:13 +0200 (CEST) Original-Received: FROM adi-laptop.local (c-71-234-195-113.hsd1.ct.comcast.net [71.234.195.113]) BY hackers.mr.itd.umich.edu ID 48F1020B.89960.15792 ; 11 Oct 2008 15:44:11 -0400 In-Reply-To: <48F08F5E.2030704@wxs.nl> User-Agent: Alpine 1.00 (DEB 882 2007-12-20) 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:44695 Archived-At: On Sat, 11 Oct 2008, Hans Hagen wrote: > 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] Thanks. I think that in this case it will be cleaner to not use heads in this case and implement color, style, align interface by hand. I will wikify your answer. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________