From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/99860 Path: news.gmane.org!.POSTED!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: Labels and Enumerations Date: Mon, 15 Jan 2018 16:15:09 -0500 Message-ID: <96d19dd4-8d77-255d-d937-7f1f13244fac@rik.users.panix.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2319589228299999853==" X-Trace: blaine.gmane.org 1516050831 13730 195.159.176.226 (15 Jan 2018 21:13:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Jan 2018 21:13:51 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 15 22:13:47 2018 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 1ebC4e-00035s-Ko for gctc-ntg-context-518@m.gmane.org; Mon, 15 Jan 2018 22:13:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8703B8A1C25; Mon, 15 Jan 2018 22:15:25 +0100 (CET) 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 GOc4ypQJvE1g; Mon, 15 Jan 2018 22:15:24 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 116B88A1C15; Mon, 15 Jan 2018 22:15:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1DD768A1C15 for ; Mon, 15 Jan 2018 22:15:23 +0100 (CET) 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 sxaUm2sruNrM for ; Mon, 15 Jan 2018 22:15:22 +0100 (CET) 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 3B1B88A1C13 for ; Mon, 15 Jan 2018 22:15:12 +0100 (CET) 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 DFD0335E1C for ; Mon, 15 Jan 2018 16:15:10 -0500 (EST) In-Reply-To: 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:99860 Archived-At: This is a multi-part message in MIME format. --===============2319589228299999853== Content-Type: multipart/alternative; boundary="------------ECB803CC72B73C07AC6FC641" Content-Language: en-US This is a multi-part message in MIME format. --------------ECB803CC72B73C07AC6FC641 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hans, Even with the local scope, I cannot get multiple enumerations in a paragraph at the same time as I get inright labels in footnotes. The footnote enumerations appear only with display=yes, but that causes paragraph breaks after each enumeration. The default alignment works, but I need marginal indices. Labels seem to me a bit more flexible here since they do not require paragraph semantics for termination. I am not looking for a taggable mark, simply a visible reference index to which reference can be applied. So, with enumerations providing no benefit and introducing additional problems, is it unreasonable to request that labels be officially supported in MKIV and not marked as MKII relicts? Here is my latest test harness. \defineconstructionalternative   [mylabel]   [renderingsetup=constructionrenderings:mylabel,    width=] \startsetups[constructionrenderings:mylabel]   \dontleavehmode   \inright[scope=local]{\flushconstructionheadbox} \stopsetups %% constructionrenderings testing alternatives % \inright[scope=local]{\flushconstructionheadbox} % \flushconstructionheadbox % \inright{\flushconstructionheadbox} \defineenumeration   [Enu]   [alternative=mylabel,    display=no,    before=,    after=] \definelabel   [Lab]   [alternative=mylabel,    before=,    after=] \definenote   [endnote] \setupnotation   [endnote]   [way=bytext,    location=none,    conversion=numbers] \definenote   [footnote] \setupnotation   [footnote]   [way=bypage,    numberconversion=set 2] \define\testTextOne{\quotation{\startEnu\input ward \stopEnu}                     And the rest of the paragraph.} \define\testTextTwo{\startEnu\input jojomayer \stopEnu                     \quotation{\startEnu\input ward \stopEnu}                     And the rest of the paragraph.} \define\testTextThree{\Lab\input jojomayer                       \quotation{\Lab\input ward }                       And the rest of the paragraph.} \setupwhitespace[small] \starttext     \startchapter[title=bar]         Paragraph with one enumeration: \testTextOne\ A footnote with         one enumeration\footnote{\testTextOne} and an endnote with one         enumeration.\endnote{\testTextOne}         Paragraph with two enumerations: \testTextTwo\ A footnote with         two enumerations\footnote{\testTextTwo} and an endnote with two         enumeration.\endnote{\testTextTwo}         Paragraph with two labels: \testTextThree\ A footnote with         two labels\footnote{\testTextThree} and an endnote with two         labels.\endnote{\testTextThree}     \stopchapter     \startchapter[title=notes]         \placenotes[endnote]     \stopchapter \stoptext -- Rik --------------ECB803CC72B73C07AC6FC641 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Hans,

Even with the local scope, I cannot get multiple enumerations in a paragraph at the same time as I get inright labels in footnotes. The footnote enumerations appear only with display=yes, but that causes paragraph breaks after each enumeration. The default alignment works, but I need marginal indices.

Labels seem to me a bit more flexible here since they do not require paragraph semantics for termination. I am not looking for a taggable mark, simply a visible reference index to which reference can be applied.

So, with enumerations providing no benefit and introducing additional problems, is it unreasonable to request that labels be officially supported in MKIV and not marked as MKII relicts?

Here is my latest test harness.

\defineconstructionalternative
  [mylabel]
  [renderingsetup=constructionrenderings:mylabel,
   width=]

\startsetups[constructionrenderings:mylabel]
  \dontleavehmode
  \inright[scope=local]{\flushconstructionheadbox}
\stopsetups
%% constructionrenderings testing alternatives
% \inright[scope=local]{\flushconstructionheadbox}
% \flushconstructionheadbox
% \inright{\flushconstructionheadbox}

\defineenumeration
  [Enu]
  [alternative=mylabel,
   display=no,
   before=,
   after=]

\definelabel
  [Lab]
  [alternative=mylabel,
   before=,
   after=]

\definenote
  [endnote]
\setupnotation
  [endnote]
  [way=bytext,
   location=none,
   conversion=numbers]

\definenote
  [footnote]
\setupnotation
  [footnote]
  [way=bypage,
   numberconversion=set 2]

\define\testTextOne{\quotation{\startEnu\input ward \stopEnu}
                    And the rest of the paragraph.}

\define\testTextTwo{\startEnu\input jojomayer \stopEnu
                    \quotation{\startEnu\input ward \stopEnu}
                    And the rest of the paragraph.}

\define\testTextThree{\Lab\input jojomayer
                      \quotation{\Lab\input ward }
                      And the rest of the paragraph.}

\setupwhitespace[small]

\starttext

    \startchapter[title=bar]

        Paragraph with one enumeration: \testTextOne\ A footnote with
        one enumeration\footnote{\testTextOne} and an endnote with one
        enumeration.\endnote{\testTextOne}

        Paragraph with two enumerations: \testTextTwo\ A footnote with
        two enumerations\footnote{\testTextTwo} and an endnote with two
        enumeration.\endnote{\testTextTwo}

        Paragraph with two labels: \testTextThree\ A footnote with
        two labels\footnote{\testTextThree} and an endnote with two
        labels.\endnote{\testTextThree}

    \stopchapter

    \startchapter[title=notes]

        \placenotes[endnote]

    \stopchapter

\stoptext

--
Rik

--------------ECB803CC72B73C07AC6FC641-- --===============2319589228299999853== 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 --===============2319589228299999853==--