From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87058 Path: news.gmane.org!not-for-mail From: Rik Newsgroups: gmane.comp.tex.context Subject: Re: Unwanted whitespace for tables and enumerations after \inmargin headings Date: Sat, 19 Apr 2014 11:46:35 -0400 Message-ID: <53529A5B.2080100@panix.com> References: <53506192.4040109@rik.users.panix.com> <5351BF1C.7000302@rik.users.panix.com> <158630D1-490E-4485-A2D5-DBE3D24C575B@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0147671482==" X-Trace: ger.gmane.org 1397922432 8006 80.91.229.3 (19 Apr 2014 15:47:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Apr 2014 15:47:12 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 19 17:47:07 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 1WbXTv-0007J3-1o for gctc-ntg-context-518@m.gmane.org; Sat, 19 Apr 2014 17:47:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6B6801024A for ; Sat, 19 Apr 2014 17:47:06 +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 0NTZnFbE4hSd for ; Sat, 19 Apr 2014 17:47:06 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4972010258 for ; Sat, 19 Apr 2014 17:47:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D7509101E7 for ; Sat, 19 Apr 2014 17:46:58 +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 TDlIg1Nn6KTS for ; Sat, 19 Apr 2014 17:46:48 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 6DF8B101E3 for ; Sat, 19 Apr 2014 17:46:40 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s3JFkcuU001227 for ; Sat, 19 Apr 2014 17:46:38 +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 710B52E293 for ; Sat, 19 Apr 2014 11:46:37 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: <158630D1-490E-4485-A2D5-DBE3D24C575B@gmail.com> 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: 0VLPPKCmL - 606fcd4db435 - 20140419 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:87058 Archived-At: This is a multi-part message in MIME format. --===============0147671482== Content-Type: multipart/alternative; boundary="------------070108010104050208080309" This is a multi-part message in MIME format. --------------070108010104050208080309 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2014-04-19 04:55, Wolfgang Schuster wrote: > \setuphead > [section] > [alternative=text, > command=\SectionCommand, > distance=0pt, > insidesection={\blank[overlay]}] > > \define[2]\SectionCommand > {\inmargin{#1 -- #2}} > > \setuplayout[backspace=4cm] > > \starttext > > \startsection[title={First}] > > \input ward > > \stopsection > > \startsection[title={Second}] > > \startitemize > \item One > \item Two > \stopitemize > > \stopsection > > \startsection[title={Third}] > > \starttabulate > \NC Knuth \NC \input{knuth} \NC\NR > \NC Tufte \NC \input{tufte} \NC\NR > \stoptabulate > > \stopsection > > \stoptext > > Wolfgang Thank you, Wolfgang. This works mostly, but not completely, for start/stop sectioning (not for classic sectioning). I do notice that there is still a problem with tabulations if you add a horizontal line (\HL or \FL) to the beginning of the table. New example, building on yours: \setuphead [section] [alternative=text, command=\SectionCommand, distance=0pt, insidesection={\blank[overlay]}] \define[2]\SectionCommand {\inmargin{#1 -- #2}} \setuplayout[backspace=4cm] \starttext \startsection[title={Okay with text here}] Text here \starttabulate \FL \NC Knuth \NC \input{knuth} \NC\NR \NC Tufte \NC \input{tufte} \NC\NR \stoptabulate \stopsection \startsection[title={Fails with no text}] \starttabulate \FL \NC Knuth \NC \input{knuth} \NC\NR \NC Tufte \NC \input{tufte} \NC\NR \stoptabulate \stopsection \stoptext -- RIk Kabel --------------070108010104050208080309 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 2014-04-19 04:55, Wolfgang Schuster wrote:
\setuphead
  [section]
  [alternative=text,
   command=\SectionCommand,
   distance=0pt,
   insidesection={\blank[overlay]}]

\define[2]\SectionCommand
  {\inmargin{#1 – #2}}

\setuplayout[backspace=4cm]

\starttext

\startsection[title={First}]

\input ward

\stopsection

\startsection[title={Second}]

\startitemize
\item One
\item Two
\stopitemize

\stopsection

\startsection[title={Third}]

\starttabulate
\NC Knuth \NC \input{knuth} \NC\NR
\NC Tufte \NC \input{tufte} \NC\NR
\stoptabulate

\stopsection

\stoptext

Wolfgang

Thank you, Wolfgang. This works mostly, but not completely, for start/stop sectioning (not for classic sectioning).

I do notice that there is still a problem with tabulations if you add a horizontal line (\HL or \FL) to the beginning of the table. New example, building on yours:
\setuphead
  [section]
  [alternative=text,
   command=\SectionCommand,
   distance=0pt,
   insidesection={\blank[overlay]}]

\define[2]\SectionCommand
  {\inmargin{#1 – #2}}

\setuplayout[backspace=4cm]

\starttext

\startsection[title={Okay with text here}]

Text here
\starttabulate
\FL \NC Knuth \NC \input{knuth} \NC\NR
\NC Tufte \NC \input{tufte} \NC\NR
\stoptabulate

\stopsection

\startsection[title={Fails with no text}]

\starttabulate
\FL \NC Knuth \NC \input{knuth} \NC\NR
\NC Tufte \NC \input{tufte} \NC\NR
\stoptabulate

\stopsection

\stoptext

--
RIk Kabel

--------------070108010104050208080309-- --===============0147671482== 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 ___________________________________________________________________________________ --===============0147671482==--