From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98504 Path: news.gmane.org!.POSTED!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Problems with headers using margintext alternative Date: Sun, 23 Jul 2017 15:48:13 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1729536869193926862==" X-Trace: blaine.gmane.org 1500839332 24904 195.159.176.226 (23 Jul 2017 19:48:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 23 Jul 2017 19:48:52 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 23 21:48:43 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZMro-0005u3-ML for gctc-ntg-context-518@m.gmane.org; Sun, 23 Jul 2017 21:48:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E51A1104B65; Sun, 23 Jul 2017 21:48:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6ppBJNLgc86i; Sun, 23 Jul 2017 21:48:29 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 279B2104B56; Sun, 23 Jul 2017 21:48:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 79A55104B56 for ; Sun, 23 Jul 2017 21:48:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EPY9QyI8H7bE for ; Sun, 23 Jul 2017 21:48:27 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 610E6104B53 for ; Sun, 23 Jul 2017 21:48:17 +0200 (CEST) Original-Received: from [192.168.201.10] (cpe-24-194-22-135.nycap.res.rr.com [24.194.22.135]) by mailbackend.panix.com (Postfix) with ESMTPSA id B0B4710E93 for ; Sun, 23 Jul 2017 15:48:15 -0400 (EDT) Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:98504 Archived-At: This is a multi-part message in MIME format. --===============1729536869193926862== Content-Type: multipart/alternative; boundary="------------FD09DDE6773FCB51EE213860" Content-Language: en-US This is a multi-part message in MIME format. --------------FD09DDE6773FCB51EE213860 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit The following example demonstrates two problems with alternative=margintext in \setuphead: 1. When used with start/stop sectioning, text following the title may be set on the wrong line. 2. Without regard to the type of sectioning, margintext titles may spill over the left edge of the margin and beyond the page frame. \setuppapersize [letter] [letter,oversized] \setuplayout [location={middle,middle}] \showframe \setuphead [chapter] [number=no, alternative=inmargin] \setuphead [section] [ alternative=margintext, insidesection={\blank[-line]}, ] \starttext \starttitle [title={Problem description}] \bgroup \setupwhitespace[medium] \startparagraph This demonstrates two problems with \type{alternative=margintext} in \tex{setuphead}: \startitemize[packed,n] \startitem When used with start/stop sectioning, text following the title may be set on the wrong line. \stopitem \startitem Without regard to the type of sectioning, \type{margintext} titles may spill over the left edge of the margin and beyond the page frame. (Oddly, \tex{paperwidth} is less than the sum of \tex{makeupwidth} and the margin widths and distances for both letter and A4 paper.) \stopitem \stopitemize \stopparagraph \startparagraph With start/stop sectioning, the text following the section title may begin one line below the start of the title. That can be remedied if there is no whitespace between paragraphs with \type{insidesection={\blank[-line]}}, but the remedy fails when there is whitespace, and increasing the correction has no effect. With traditional sectioning, the text appears baseline|-|aligned with the heading, as expected. The the correction has no effect in any case with traditional sectioning. \stopparagraph \startparagraph It makes no difference in any test how the paragraphs are delimited—blank lines, \tex{bpar}/\tex{epar}, \tex{startparagraph}/\tex{stopparagraph}, or \tex{par}. \stopparagraph \startparagraph Tested with standalone beta 2017.07.17 00:20. \stopparagraph \egroup \page \startchapter [title={Start/stop sectioning}] \startsection[title={Mis\-cel\-la\-neous quo\-ta\-tions}] \startparagraph \input jojomayer \stopparagraph \startparagraph \input carrol \wordright{No indent no whitespace.} \stopparagraph \stopsection \bgroup \setupwhitespace[medium] \startsection[title={Miscellaneous quotations}] \startparagraph \input jojomayer \stopparagraph \startparagraph \input carrol \wordright{No indent medium whitespace.} \stopparagraph \stopsection \egroup \bgroup \setupindenting[yes,small] \startsection[title={Miscellaneous quotations}] \startparagraph \input jojomayer \stopparagraph \startparagraph \input carrol \wordright{Small indent no whitespace.} \stopparagraph \stopsection \egroup \bgroup \setupwhitespace[medium] \setupindenting[yes,small] \startsection[title={Miscellaneous quotations}] \startparagraph \input jojomayer \stopparagraph \startparagraph \input carrol \wordright{Small indent medium whitespace.} \stopparagraph \stopsection \egroup \stopchapter \chapter{Traditional sectioning} \section{Mis\-cel\-la\-neous quo\-ta\-tions} \input jojomayer \par \input carrol \wordright{No indent no whitespace.} \par No indent no whitespace. \par \bgroup \setupwhitespace[medium] \section{Miscellaneous quotations} \input jojomayer \par \input carrol \wordright{No indent medium whitespace.} \par \egroup \bgroup \setupindenting[yes,small] \section{Miscellaneous quotations} \input jojomayer \par \input carrol \wordright{Small indent no whitespace.} \par \egroup \bgroup \setupwhitespace[medium] \setupindenting[yes,small] \section{Miscellaneous quotations} \input jojomayer \par \input carrol \wordright{Small indent medium whitespace.} \par \egroup \showlayout \stoptext -- Rik --------------FD09DDE6773FCB51EE213860 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

The following example demonstrates two problems with alternative=margintext in \setuphead:

  1. When used with start/stop sectioning, text following the title may be set on the wrong line.
  2. Without regard to the type of sectioning, margintext titles may spill over the left edge of the margin and beyond the page frame.
\setuppapersize
    [letter]
    [letter,oversized]
\setuplayout
    [location={middle,middle}]
\showframe
\setuphead
    [chapter]
    [number=no,
     alternative=inmargin]
\setuphead
    [section]
    [
     alternative=margintext,
     insidesection={\blank[-line]},
    ]
\starttext
  \starttitle
      [title={Problem description}]
  \bgroup
  \setupwhitespace[medium]
  \startparagraph
      This demonstrates two problems with
      \type{alternative=margintext} in \tex{setuphead}:
      \startitemize[packed,n]
      \startitem
        When used with start/stop sectioning, text following the
        title may be set on the wrong line.
      \stopitem
      \startitem
        Without regard to the type of sectioning, \type{margintext}
        titles may spill over the left edge of the margin and beyond
        the page frame. (Oddly, \tex{paperwidth} is less than the
        sum of \tex{makeupwidth} and the margin widths and
        distances for both letter and A4 paper.)

      \stopitem
      \stopitemize
  \stopparagraph
  \startparagraph
      With start/stop sectioning, the text following the section
      title may begin one line below the start of the title. That
      can be remedied if there is no whitespace between paragraphs
      with \type{insidesection={\blank[-line]}}, but the remedy
      fails when there is whitespace, and increasing the correction
      has no effect. With traditional sectioning, the text appears
      baseline|-|aligned with the heading, as expected. The
      the correction has no effect in any case with traditional
      sectioning.
  \stopparagraph
  \startparagraph
      It makes no difference in any test how the paragraphs are
      delimited—blank lines, \tex{bpar}/\tex{epar},
      \tex{startparagraph}/\tex{stopparagraph}, or \tex{par}.
  \stopparagraph
  \startparagraph
      Tested with standalone beta 2017.07.17 00:20.
  \stopparagraph
  \egroup
  \page
  \startchapter
      [title={Start/stop sectioning}]
  \startsection[title={Mis\-cel\-la\-neous quo\-ta\-tions}]
  \startparagraph
      \input jojomayer
  \stopparagraph
  \startparagraph
      \input carrol \wordright{No indent no whitespace.}
  \stopparagraph
  \stopsection
  \bgroup
  \setupwhitespace[medium]
  \startsection[title={Miscellaneous quotations}]
  \startparagraph
      \input jojomayer
  \stopparagraph
  \startparagraph
      \input carrol \wordright{No indent medium whitespace.}
  \stopparagraph
  \stopsection
  \egroup
  \bgroup
  \setupindenting[yes,small]
  \startsection[title={Miscellaneous quotations}]
  \startparagraph
      \input jojomayer
  \stopparagraph
  \startparagraph
      \input carrol \wordright{Small indent no whitespace.}
  \stopparagraph
  \stopsection
  \egroup
  \bgroup
  \setupwhitespace[medium]
  \setupindenting[yes,small]
  \startsection[title={Miscellaneous quotations}]
  \startparagraph
      \input jojomayer
  \stopparagraph
  \startparagraph
      \input carrol \wordright{Small indent medium whitespace.}
  \stopparagraph
  \stopsection
  \egroup
  \stopchapter
  \chapter{Traditional sectioning}
  \section{Mis\-cel\-la\-neous quo\-ta\-tions}
      \input jojomayer \par
      \input carrol  \wordright{No indent no whitespace.} \par
      No indent no whitespace. \par
  \bgroup
  \setupwhitespace[medium]
  \section{Miscellaneous quotations}
      \input jojomayer \par
      \input carrol \wordright{No indent medium whitespace.} \par
  \egroup
  \bgroup
  \setupindenting[yes,small]
  \section{Miscellaneous quotations}
      \input jojomayer \par
      \input carrol \wordright{Small indent no whitespace.} \par
  \egroup
  \bgroup
  \setupwhitespace[medium]
  \setupindenting[yes,small]
  \section{Miscellaneous quotations}
      \input jojomayer \par
      \input carrol \wordright{Small indent medium whitespace.} \par
  \egroup
\showlayout
\stoptext

--
Rik
--------------FD09DDE6773FCB51EE213860-- --===============1729536869193926862== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============1729536869193926862==--