From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87054 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Unwanted whitespace for tables and enumerations after \inmargin headings Date: Fri, 18 Apr 2014 17:36:55 -0400 (EDT) Message-ID: References: <53506192.4040109@rik.users.panix.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1397857049 31428 80.91.229.3 (18 Apr 2014 21:37:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Apr 2014 21:37:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 18 23:37:25 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WbGTK-0005si-12 for gctc-ntg-context-518@m.gmane.org; Fri, 18 Apr 2014 23:37:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 741E11020E for ; Fri, 18 Apr 2014 23:37:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id TvbHFiy8aLb6 for ; Fri, 18 Apr 2014 23:37:21 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 58B3B10215 for ; Fri, 18 Apr 2014 23:37:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CB49C101E7 for ; Fri, 18 Apr 2014 23:37:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wtuVBJmK-oxh for ; Fri, 18 Apr 2014 23:37:11 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 0B9BE101E3 for ; Fri, 18 Apr 2014 23:37:11 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s3ILaxu5025083 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 18 Apr 2014 23:37:09 +0200 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By tombraider.mr.itd.umich.edu ID 53519AF8.CD579.636 ; Authuser adityam; 18 Apr 2014 17:36:56 EDT In-Reply-To: User-Agent: Alpine 2.03 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=Michigan; city=Ann Arbor; latitude=42.2734; longitude=-83.7133; http://maps.google.com/maps?q=42.2734,-83.7133&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TLPxB0rt - 767920ad4612 - 20140418 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:87054 Archived-At: On Fri, 18 Apr 2014, Thangalin wrote: > Hi Rik, > > The example isn't quite as minimal as it could be... Here is a > simplified version demonstrating the problem: > > \setuplayout[backspace=4cm] > > \define[2]\MarginHead{\inmargin{#1 #2}} > > \setuphead[section][ > alternative=text, > command=\MarginHead, > ] > > \defineitemgroup[itemz] > \setupitemgroup[itemz][each][joinedup] > > \startbuffer[Item] > \startitemz > \item Item > \item Item > \stopitemz > \stopbuffer > > \starttext > \section{No Whitespace} > No extra whitespace before items. > \getbuffer[Item] > > \section{Extra Whitespace} > \getbuffer[Item] > Unexpected extra whitespace before items. > \stoptext Here is one way to get rid of the extra white-space. I could not figure out a clean way of adding this signal to the setup. \setuplayout[backspace=6cm, leftmargin=5.5cm] \define[2]\MarginHead{\inmargin{#1 #2}} \setuphead[section] [ command=\MarginHead, alternative=text, distance=\zeropoint, ] \unprotect \def\SIGNAL{\hskip\d_strc_itemgroups_signal} \protect \defineitemgroup[itemz] \setupitemgroup[itemz][each][joinedup] \startbuffer[Item] \startitemz \item Item \item Item \stopitemz \stopbuffer \starttext \section{No Whitespace} No extra whitespace before items. \getbuffer[Item] \section{Extra Whitespace} \SIGNAL \getbuffer[Item] Unexpected extra whitespace before items. \stoptext ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________