From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87045 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Unwanted whitespace with \startsection and in-margin headings Date: Thu, 17 Apr 2014 23:37:38 -0400 Message-ID: <53509E02.3000806@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="===============1255267640==" X-Trace: ger.gmane.org 1397792289 10358 80.91.229.3 (18 Apr 2014 03:38:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Apr 2014 03:38:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 18 05:38:04 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 1Wazcp-0005nt-Q0 for gctc-ntg-context-518@m.gmane.org; Fri, 18 Apr 2014 05:38:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5272D1026F for ; Fri, 18 Apr 2014 05:38:03 +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 cL01GAiDI5D8 for ; Fri, 18 Apr 2014 05:38:03 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8702310211 for ; Fri, 18 Apr 2014 05:37:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AD733101E7 for ; Fri, 18 Apr 2014 05:37:54 +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 Rj+w7chzacX4 for ; Fri, 18 Apr 2014 05:37:53 +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 1901D101E3 for ; Fri, 18 Apr 2014 05:37:44 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s3I3bgCK014921 for ; Fri, 18 Apr 2014 05:37:43 +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 402F72E665 for ; Thu, 17 Apr 2014 23:37:42 -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: 0TLPfBHSi - 9c1af0f4f2e0 - 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:87045 Archived-At: This is a multi-part message in MIME format. --===============1255267640== Content-Type: multipart/alternative; boundary="------------090101000705080601080302" This is a multi-part message in MIME format. --------------090101000705080601080302 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Following up on a related whitespace problem with descriptions and tables following in-margin headings -- I notice that \startsection behaves differently from \section when it comes to following whitespace for in-margin headings. This example demonstrates this: \setuplayout [backspace=6cm,leftmargin=6cm,rightmargin=1cm,cutspace=1cm] \setuphead [chapter][page=no] \setuphead [section][distance=0pt, alternative=text, command=\MarginHead] \define[2]\MarginHead{\inmargin{#1 #2}} \starttext \chapter{Traditional} There is no extra white space when using the traditional sectioning commands when the heading is placed in the margin. \section{No blank line} This text follows the section heading with no intervening space. No extra space has been added. \section{Blank line} This text follows the section heading with one intervening blank line. No extra space has been added. \startchapter[title={Startsection}] The newer sectioning commands are sensitive to the whitespace which follows when the heading is placed in the margin. \startsection[title={No blank line}] This text follows the section heading with no intervening space. No extra space has been added. \stopsection \startsection[title={Blank line ?}] This text follows the section heading with one intervening blank line. It shows the problem with startsection. \stopsection \stopchapter \stoptext What can be done with the header setup to prevent this? -- Rik Kabel --------------090101000705080601080302 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Following up on a related whitespace problem with descriptions and tables following in-margin headings --

I notice that \startsection behaves differently from \section when it comes to following whitespace for in-margin headings. This example demonstrates this:
\setuplayout [backspace=6cm,leftmargin=6cm,rightmargin=1cm,cutspace=1cm]

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

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

\starttext

\chapter{Traditional}

There is no extra white space when using the traditional
sectioning commands when the heading is placed in the margin.

\section{No blank line}
This text follows the section heading with no intervening space.
No extra space has been added.

\section{Blank line}

This text follows the section heading with one intervening blank
line. No extra space has been added.

\startchapter[title={Startsection}]

The newer sectioning commands are sensitive to the whitespace which
follows when the heading is placed in the margin.

\startsection[title={No blank line}]
This text follows the section heading with no intervening space.
No extra space has been added.

\stopsection
\startsection[title={Blank line →}]

This text follows the section heading with one intervening blank
line. It shows the problem with startsection.

\stopsection
\stopchapter
\stoptext
What can be done with the header setup to prevent this?

--
Rik Kabel
--------------090101000705080601080302-- --===============1255267640== 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 ___________________________________________________________________________________ --===============1255267640==--