From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87055 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: Unwanted whitespace for tables and enumerations after \inmargin headings Date: Fri, 18 Apr 2014 20:11:08 -0400 Message-ID: <5351BF1C.7000302@rik.users.panix.com> 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 1397866299 13348 80.91.229.3 (19 Apr 2014 00:11:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Apr 2014 00:11:39 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 19 02:11:35 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 1WbIsW-0002eW-1w for gctc-ntg-context-518@m.gmane.org; Sat, 19 Apr 2014 02:11:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4D49E1020A for ; Sat, 19 Apr 2014 02:11:31 +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 WxB0xH76hYKP for ; Sat, 19 Apr 2014 02:11:31 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8C3631025C for ; Sat, 19 Apr 2014 02:11:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E27E7101E7 for ; Sat, 19 Apr 2014 02:11: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 pDMRFdAH4yuG for ; Sat, 19 Apr 2014 02:11:20 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 77515101E3 for ; Sat, 19 Apr 2014 02:11:12 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s3J0BAQ8022839 for ; Sat, 19 Apr 2014 02:11:11 +0200 Original-Received: from [192.168.9.129] (pool-173-56-235-45.nycmny.fios.verizon.net [173.56.235.45]) by mailbackend.panix.com (Postfix) with ESMTP id EF8E92E6DE for ; Fri, 18 Apr 2014 20:11:09 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=166.84.1.89; country=US; region=New York; city=Richmond Hill; latitude=40.7005; longitude=-73.8345; http://maps.google.com/maps?q=40.7005,-73.8345&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WLPAbbIU - f174c368b02c - 20140419 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:87055 Archived-At: On 2014-04-18 17:36, Aditya Mahajan wrote: > 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 Pretty ugly, but thank you for that, Aditya. Is there a similar kludge for tabulate? (That was part of my original problem, removed in the subsequent simplification of the example.) -- Rik ___________________________________________________________________________________ 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 ___________________________________________________________________________________