From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87667 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Margin heading problem, was Re: sections Date: Sun, 01 Jun 2014 21:44:19 -0400 Message-ID: <538BD6F3.1030907@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="===============0253112372==" X-Trace: ger.gmane.org 1401673506 22393 80.91.229.3 (2 Jun 2014 01:45:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2014 01:45:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 02 03:45:00 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 1WrHJ5-0007Wd-4O for gctc-ntg-context-518@m.gmane.org; Mon, 02 Jun 2014 03:44:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7C63F1022D for ; Mon, 2 Jun 2014 03:44: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 i5kfWoS7RZCP for ; Mon, 2 Jun 2014 03:44:58 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8017110205 for ; Mon, 2 Jun 2014 03:44:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 46D65101E3 for ; Mon, 2 Jun 2014 03:44:41 +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 wteHt582xzrk for ; Mon, 2 Jun 2014 03:44:39 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 23BC1101E2 for ; Mon, 2 Jun 2014 03:44:33 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s521iVik014496 for ; Mon, 2 Jun 2014 03:44:32 +0200 Original-Received: from [192.168.201.179] (cpe-67-240-55-150.nycap.res.rr.com [67.240.55.150]) by mailbackend.panix.com (Postfix) with ESMTP id 5A5403562E for ; Sun, 1 Jun 2014 21:44:23 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.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: 0RM9dIwbg - d04d52d3606d - 20140602 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:87667 Archived-At: This is a multi-part message in MIME format. --===============0253112372== Content-Type: multipart/alternative; boundary="------------000103010904040000040303" This is a multi-part message in MIME format. --------------000103010904040000040303 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2014-06-01 12:52, Hans Hagen wrote: > On 6/1/2014 5:40 PM, Rik wrote: > >> Is this also the cause of problems I noted with heading placed into the >> margin, as in the example below? > > no, unrelated, try this: > > \setuphead > [section] > [after={\strut\blank[-2*line,samepage,disable]}, > command=\SectionCommand, > distance=0pt] > > \define[2]\SectionCommand{\inleft{XXXXXX}} That was fine until it ran into \setupwhitespace with a non-zero value. Fiddling with the after key \blank does not appear to help. \define[2]\MarginHead{\inmargin{#1\\#2}} \setuphead [section] [command=\MarginHead, distance=0pt, after={\strut\blank[-2*line,samepage,disable]}] %% With no \setupwhitespace, or any \setupwhitespace setting that %% results in zero interparagraph whitespace, all is well. %setupwhitespace [none]% okay %setupwhitespace [fix]% okay %% With non-zero interparagraph whitespace, the heading separates %% from the text \setupwhitespace [line]% bad \starttext \startchapter[title={Weisman}] \input weisman\par \input weisman \startsection[title={Thuan}] \input thuan\par \input thuan \stopsection \stopchapter \stoptext -- Rik Kabel --------------000103010904040000040303 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 2014-06-01 12:52, Hans Hagen wrote:
On 6/1/2014 5:40 PM, Rik wrote:

Is this also the cause of problems I noted with heading placed into the
margin, as in the example below?

no, unrelated, try this:

\setuphead
  [section]
  [after={\strut\blank[-2*line,samepage,disable]},
   command=\SectionCommand,
   distance=0pt]

\define[2]\SectionCommand{\inleft{XXXXXX}}

That was fine until it ran into \setupwhitespace with a non-zero value. Fiddling with the after key \blank does not appear to help.
\define[2]\MarginHead{\inmargin{#1\\#2}}
\setuphead    [section]
              [command=\MarginHead,
               distance=0pt,
               after={\strut\blank[-2*line,samepage,disable]}]
%% With no \setupwhitespace, or any \setupwhitespace setting that
%%   results in zero interparagraph whitespace, all is well.
%setupwhitespace      [none]%    okay
%setupwhitespace      [fix]%     okay
%% With non-zero interparagraph whitespace, the heading separates
%%   from the text
\setupwhitespace      [line]%    bad
\starttext
\startchapter[title={Weisman}]
 \input weisman\par
 \input weisman
\startsection[title={Thuan}]
 \input thuan\par
 \input thuan
\stopsection
\stopchapter
\stoptext
--
Rik Kabel
--------------000103010904040000040303-- --===============0253112372== 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 ___________________________________________________________________________________ --===============0253112372==--