[NTG-context] Labels and Enumerations

Rik Kabel context at rik.users.panix.com
Mon Jan 15 22:15:09 CET 2018


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180115/a9b3ea45/attachment.html>


More information about the ntg-context mailing list