From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87044 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Unwanted whitespace for tables and enumerations after \inmargin headings Date: Thu, 17 Apr 2014 19:19:46 -0400 Message-ID: <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: multipart/mixed; boundary="===============0316005411==" X-Trace: ger.gmane.org 1397776826 15099 80.91.229.3 (17 Apr 2014 23:20:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Apr 2014 23:20:26 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 18 01:20:22 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 1WavbQ-0008Fg-Td for gctc-ntg-context-518@m.gmane.org; Fri, 18 Apr 2014 01:20:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 233241025B for ; Fri, 18 Apr 2014 01:20:18 +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 cydpyTglmwuN for ; Fri, 18 Apr 2014 01:20:18 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 803211020C for ; Fri, 18 Apr 2014 01:20:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2EFB9101E7 for ; Fri, 18 Apr 2014 01:20:05 +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 67cbZ2qaEprC for ; Fri, 18 Apr 2014 01:20:02 +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 F0862101E3 for ; Fri, 18 Apr 2014 01:19:53 +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 s3HNJpaK001792 for ; Fri, 18 Apr 2014 01:19:51 +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 667D22E9F2 for ; Thu, 17 Apr 2014 19:19:50 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 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: 0WLPbjPgz - f3bcf560c8ac - 20140418 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:87044 Archived-At: This is a multi-part message in MIME format. --===============0316005411== Content-Type: multipart/alternative; boundary="------------050607020405030509090600" This is a multi-part message in MIME format. --------------050607020405030509090600 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit (This appears to be the same issue which was raised by Alexandros Frantzis in October 2008; see the thread at http://www.mail-archive.com/ntg-context%40ntg.nl/msg32125.html. No resolution was proposed at that time, and the problem still exists.) Extra whitespace occurs before itemizations and tabulations (and quite possibly other structures) which appear immediately following an in-margin heading. The following example illustrates this. \setuplayout [backspace=7cm,leftmargin=6cm] \setuphead [chapter][] \setuphead [subsection] [alternative=normal,command=,distance=1em] \setuphead [subsubsection] [alternative=normal,command=,distance=1em] \setuphead [section][distance=0pt, alternative=text, command=\MarginHead] \define[2]\MarginHead{\inmargin{#1 #2}} \startbuffer[Item] \startitemize \item Item \item Idem \stopitemize \stopbuffer \startbuffer[Table] \starttabulate[|l|l|] \FL\NC Entry \NC one \NC\NR \NC Entry \NC two \NC\NR\LL \stoptabulate \stopbuffer \starttext \chapter{Itemize} \section{No extra whitespace} With text here there is no extra whitespace before the itemization. \getbuffer[Item] \subsection{No extra whitespace} With text here there is no extra whitespace before the itemization. \getbuffer[Item] \section{Extra whitespace} \getbuffer[Item] With no text before the itemization there is extra space after the heading. \subsection{No extra whitespace} \getbuffer[Item] With no text before the itemization there is extra space after the heading. \chapter{Tabulate} \section{No extra whitespace} With text here there is no extra whitespace before the table. \getbuffer[Table] \subsection{No extra whitespace} With text here there is no extra whitespace before the table. \getbuffer[Table] \section{Extra whitespace} \getbuffer[Table] With no text before the table there is extra space after the heading. \subsection{No extra whitespace} \getbuffer[Table] With no text before the table there is extra space after the heading. \stoptext Is this unresolvable? Like Alexandros, I have tried many of the options that looked appropriate, but nothing seems to work. -- Rik Kabel --------------050607020405030509090600 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit (This appears to be the same issue which was raised by Alexandros Frantzis in October 2008; see the thread at http://www.mail-archive.com/ntg-context%40ntg.nl/msg32125.html. No resolution was proposed at that time, and the problem still exists.)

Extra whitespace occurs before itemizations and tabulations (and quite possibly other structures) which appear immediately following an in-margin heading. The following example illustrates this.

\setuplayout [backspace=7cm,leftmargin=6cm]

\setuphead   [chapter][]

\setuphead   [subsection]
             [alternative=normal,command=,distance=1em]

\setuphead   [subsubsection]
             [alternative=normal,command=,distance=1em]

\setuphead   [section][distance=0pt,
              alternative=text,
              command=\MarginHead]

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

\startbuffer[Item]
  \startitemize
    \item Item
    \item Idem
  \stopitemize
\stopbuffer
\startbuffer[Table]
  \starttabulate[|l|l|]
    \FL\NC Entry \NC one \NC\NR
       \NC Entry \NC two \NC\NR\LL
  \stoptabulate
\stopbuffer

\starttext

\chapter{Itemize}

\section{No extra whitespace}
With text here there is no extra whitespace before the itemization.
\getbuffer[Item]

\subsection{No extra whitespace}
With text here there is no extra whitespace before the itemization.
\getbuffer[Item]

\section{Extra whitespace}
\getbuffer[Item]
With no text before the itemization there is extra space after the heading.

\subsection{No extra whitespace}
\getbuffer[Item]
With no text before the itemization there is extra space after the heading.

\chapter{Tabulate}

\section{No extra whitespace}
With text here there is no extra whitespace before the table.
\getbuffer[Table]

\subsection{No extra whitespace}
With text here there is no extra whitespace before the table.
\getbuffer[Table]

\section{Extra whitespace}
\getbuffer[Table]
With no text before the table there is extra space after the heading.

\subsection{No extra whitespace}
\getbuffer[Table]
With no text before the table there is extra space after the heading.

\stoptext

Is this unresolvable? Like Alexandros, I have tried many of the options that looked appropriate, but nothing seems to work.

--
Rik Kabel
--------------050607020405030509090600-- --===============0316005411== 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 ___________________________________________________________________________________ --===============0316005411==--