<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 2014-06-01 12:52, Hans Hagen wrote:<br>
    </div>
    <blockquote cite="mid:538B5A42.4050709@wxs.nl" type="cite">On
      6/1/2014 5:40 PM, Rik wrote: <br>
      <br>
      <blockquote type="cite">Is this also the cause of problems I noted
        with heading placed into the
        <br>
        margin, as in the example below?
        <br>
      </blockquote>
      <br>
      no, unrelated, try this: <br>
      <br>
      \setuphead <br>
        [section] <br>
        [after={\strut\blank[-2*line,samepage,disable]}, <br>
         command=\SectionCommand, <br>
         distance=0pt] <br>
      <br>
      \define[2]\SectionCommand{\inleft{XXXXXX}} <br>
    </blockquote>
    <br>
    That was fine until it ran into \setupwhitespace with a non-zero
    value. Fiddling with the after key \blank does not appear to help.<br>
    <blockquote><tt>\define[2]\MarginHead{\inmargin{#1\\#2}}</tt><br>
      <tt>\setuphead    [section]</tt><br>
      <tt>              [command=\MarginHead,</tt><br>
      <tt>               distance=0pt,</tt><br>
      <tt>               after={\strut\blank[-2*line,samepage,disable]}]</tt><br>
      <tt>%% With no \setupwhitespace, or any \setupwhitespace setting
        that</tt><br>
      <tt>%%   results in zero interparagraph whitespace, all is well.</tt><br>
      <tt>%setupwhitespace      [none]%    okay</tt><br>
      <tt>%setupwhitespace      [fix]%     okay</tt><br>
      <tt>%% With non-zero interparagraph whitespace, the heading
        separates</tt><br>
      <tt>%%   from the text</tt><br>
      <tt>\setupwhitespace      [line]%    bad</tt><br>
      <tt>\starttext</tt><br>
      <tt>\startchapter[title={Weisman}]</tt><br>
      <tt> \input weisman\par</tt><br>
      <tt> \input weisman</tt><br>
      <tt>\startsection[title={Thuan}]</tt><br>
      <tt> \input thuan\par</tt><br>
      <tt> \input thuan</tt><br>
      <tt>\stopsection</tt><br>
      <tt>\stopchapter</tt><br>
      <tt>\stoptext</tt><br>
    </blockquote>
    -- <br>
    Rik Kabel<br>
  </body>
</html>