From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87056 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Unwanted whitespace for tables and enumerations after \inmargin headings Date: Sat, 19 Apr 2014 10:55:58 +0200 Message-ID: <158630D1-490E-4485-A2D5-DBE3D24C575B@gmail.com> References: <53506192.4040109@rik.users.panix.com> <5351BF1C.7000302@rik.users.panix.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: multipart/mixed; boundary="===============0239847966==" X-Trace: ger.gmane.org 1397897786 2798 80.91.229.3 (19 Apr 2014 08:56:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Apr 2014 08:56:26 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 19 10:56:21 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 1WbR4P-0001Pb-Kp for gctc-ntg-context-518@m.gmane.org; Sat, 19 Apr 2014 10:56:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0FD241027C for ; Sat, 19 Apr 2014 10:56: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 Lgu+tDk1-LW9 for ; Sat, 19 Apr 2014 10:56:20 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 523991025F for ; Sat, 19 Apr 2014 10:56:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2BB25101E7 for ; Sat, 19 Apr 2014 10:56: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 qICs1BWVU6FU for ; Sat, 19 Apr 2014 10:56:10 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 9D544101E3 for ; Sat, 19 Apr 2014 10:56:02 +0200 (CEST) Original-Received: from mail-ee0-x229.google.com (mail-ee0-x229.google.com [IPv6:2a00:1450:4013:c00::229]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s3J8u1A9023144 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 19 Apr 2014 10:56:01 +0200 Original-Received: by mail-ee0-f41.google.com with SMTP id t10so2237670eei.14 for ; Sat, 19 Apr 2014 01:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=axiJGFS2lJPDVYeMdQOJfIe3ZR2UjLH//EY8XCfZoWg=; b=WJngHXfMirtsiO/QXGB0IHh6n680bhzPm9w7FTLMuyLRCt27QiTosO3qzV8r6LhQhK X45667ot62I2w0U134jJ2pbY8wBNrJL1l5HriZu0aKmjxp15yVZDVDVcSr9pnVpviw9r 9IT0nQl8j1iLMkLdI9xo19dtBxpOZ4O0HKqjIc/Ojpu5+nIH32DBroCJkJ624Kx33kN9 6h5RZE8unN+S4czbYb4ixHSTVqKkiAO4QYcAFEzVrUT4xhWKJ7zts0tzxMy3bTGBJwH4 dt5q3QMjEGosQLefravSYeayTFuQPVlJLkpz3t+sYwNEtMfpyfpseRqLuvPzeN1UpfE9 4Pwg== X-Received: by 10.14.214.68 with SMTP id b44mr29500100eep.0.1397897761651; Sat, 19 Apr 2014 01:56:01 -0700 (PDT) Original-Received: from keima.localdomain (x2f33805.dyn.telefonica.de. [2.243.56.5]) by mx.google.com with ESMTPSA id y7sm83893682eev.5.2014.04.19.01.55.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 19 Apr 2014 01:55:59 -0700 (PDT) In-Reply-To: <5351BF1C.7000302@rik.users.panix.com> X-Mailer: Apple Mail (2.1874) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c00::229; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03LPIU1lE - 44bb22f5633d - 20140419 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:87056 Archived-At: --===============0239847966== Content-Type: multipart/alternative; boundary="Apple-Mail=_B94AA119-0CA2-4C2B-9DE2-32F3AB4E8610" --Apple-Mail=_B94AA119-0CA2-4C2B-9DE2-32F3AB4E8610 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 19.04.2014 um 02:11 schrieb Rik Kabel : > On 2014-04-18 17:36, Aditya Mahajan wrote: >> On Fri, 18 Apr 2014, Thangalin wrote: >>=20 >>> Hi Rik, >>>=20 >>> The example isn't quite as minimal as it could be... Here is a >>> simplified version demonstrating the problem: >>>=20 >>> \setuplayout[backspace=3D4cm] >>>=20 >>> \define[2]\MarginHead{\inmargin{#1 #2}} >>>=20 >>> \setuphead[section][ >>> alternative=3Dtext, >>> command=3D\MarginHead, >>> ] >>>=20 >>> \defineitemgroup[itemz] >>> \setupitemgroup[itemz][each][joinedup] >>>=20 >>> \startbuffer[Item] >>> \startitemz >>> \item Item >>> \item Item >>> \stopitemz >>> \stopbuffer >>>=20 >>> \starttext >>> \section{No Whitespace} >>> No extra whitespace before items. >>> \getbuffer[Item] >>>=20 >>> \section{Extra Whitespace} >>> \getbuffer[Item] >>> Unexpected extra whitespace before items. >>> \stoptext >>=20 >> 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. >>=20 >> \setuplayout[backspace=3D6cm, leftmargin=3D5.5cm] >>=20 >> \define[2]\MarginHead{\inmargin{#1 #2}} >>=20 >> \setuphead[section] >> [ >> command=3D\MarginHead, >> alternative=3Dtext, >> distance=3D\zeropoint, >> ] >>=20 >> \unprotect >> \def\SIGNAL{\hskip\d_strc_itemgroups_signal} >> \protect >> \defineitemgroup[itemz] >> \setupitemgroup[itemz][each][joinedup] >>=20 >> \startbuffer[Item] >> \startitemz >> \item Item >> \item Item >> \stopitemz >> \stopbuffer >>=20 >> \starttext >> \section{No Whitespace} >> No extra whitespace before items. >> \getbuffer[Item] >>=20 >> \section{Extra Whitespace} \SIGNAL >> \getbuffer[Item] >> Unexpected extra whitespace before items. >> \stoptext >=20 > Pretty ugly, but thank you for that, Aditya. >=20 > Is there a similar kludge for tabulate? (That was part of my original = problem, removed in the subsequent simplification of the example.) \setuphead [section] [alternative=3Dtext, command=3D\SectionCommand, distance=3D0pt, insidesection=3D{\blank[overlay]}] \define[2]\SectionCommand {\inmargin{#1 =96 #2}} \setuplayout[backspace=3D4cm] \starttext \startsection[title=3D{First}] \input ward \stopsection \startsection[title=3D{Second}] \startitemize \item One \item Two \stopitemize \stopsection \startsection[title=3D{Third}] \starttabulate \NC Knuth \NC \input{knuth} \NC\NR \NC Tufte \NC \input{tufte} \NC\NR \stoptabulate \stopsection \stoptext Wolfgang= --Apple-Mail=_B94AA119-0CA2-4C2B-9DE2-32F3AB4E8610 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
Am 19.04.2014 um 02:11 schrieb Rik = Kabel <context@rik.users.panix.com>:

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=3D4cm]

\define[2]\MarginHead= {\inmargin{#1 = #2}}

\setuphead[section][
alternative=3Dtext,
command=3D\Marg= inHead,
]

\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=3D6cm, = leftmargin=3D5.5cm]

\define[2]\MarginHead{\inmargin{#1 = #2}}

\setuphead[section]
 [
   command=3D= \MarginHead,
   alternative=3Dtext,
   = ;distance=3D\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
 \sectio= n{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.)

\setuphead
&= nbsp; [section]
  [alternative=3Dtext,
  =  command=3D\SectionCommand,
  =  distance=3D0pt,
  =  insidesection=3D{\blank[overlay]}]

\define[= 2]\SectionCommand
  {\inmargin{#1 =96 = #2}}

\setuplayout[backspace=3D4cm]

=
\starttext

\startsection[title=3D{Firs= t}]

\input = ward

\stopsection

\start= section[title=3D{Second}]

\startitemize
\item One
\item = Two
\stopitemize

\stopsection

\startsection[title=3D{Third}]

\s= tarttabulate
\NC Knuth \NC \input{knuth} \NC\NR
\NC = Tufte \NC \input{tufte} = \NC\NR
\stoptabulate

\stopsection
=

\stoptext

Wolfgang= --Apple-Mail=_B94AA119-0CA2-4C2B-9DE2-32F3AB4E8610-- --===============0239847966== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0239847966==--