From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/99824 Path: news.gmane.org!.POSTED!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: Label problems with \definelabel and \defineenumeration, in and out of footnotes Date: Fri, 12 Jan 2018 12:58:58 -0500 Message-ID: References: <55CA42CA.5000908@rik.users.panix.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3775531700935970639==" X-Trace: blaine.gmane.org 1515779849 27061 195.159.176.226 (12 Jan 2018 17:57:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Jan 2018 17:57:29 +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 Fri Jan 12 18:57:25 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 1ea3a0-0006ki-Qo for gctc-ntg-context-518@m.gmane.org; Fri, 12 Jan 2018 18:57:24 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2509C8A0B21; Fri, 12 Jan 2018 18:59:14 +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 PNmjyiw5iN4d; Fri, 12 Jan 2018 18:59:13 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 63B8B8A1A4F; Fri, 12 Jan 2018 18:59:13 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2C2EE8A1A4D for ; Fri, 12 Jan 2018 18:59:12 +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 p_PpY6xIvJTt for ; Fri, 12 Jan 2018 18:59:11 +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 85E6B8A0B21 for ; Fri, 12 Jan 2018 18:59:01 +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 82D1B3273A for ; Fri, 12 Jan 2018 12:59:00 -0500 (EST) In-Reply-To: <55CA42CA.5000908@rik.users.panix.com> 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:99824 Archived-At: This is a multi-part message in MIME format. --===============3775531700935970639== Content-Type: multipart/alternative; boundary="------------5C8A3C2FC6D510513DBADF21" Content-Language: en-US This is a multi-part message in MIME format. --------------5C8A3C2FC6D510513DBADF21 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Bump. On 2015-08-11 14:45, Rik Kabel wrote: > The example below documents the problems. In short, \definelabel > suppresses paragraph indent when the label is at the beginning of a > paragraph and fails to print the label or generate references with > alternative=inmargin (or inright, or inleft) when in a footnote. > > \defineenumeration fails to work in a footnote. > > > \setupindenting[yes,small] > \definelabel   [ID][ > %\defineenumeration[ID][ >    text=, >    after=, >    before=, >    headcolor=red, >    alternative=inright, >   ] > \starttext > \starttitle[title={Label testing}] > \startsubject[title={Problems with \tex{definelabel}}] > >   This is a test. It is only a test. > >   \ID[id1]This paragraph should be indented, with an ID number >     in the margin. When \tex{ID} is placed at the beginning of the >     paragraph, as it is here, the paragraph is not indented. > >   This paragraph has a footnote.\footnote{% >       \ID[id2]The ID number is not printed in the margin with >         {\tt alternative=inright}, {\tt alternative=inmargin}, >         or {\tt alternative=inleft}. Without any {\tt >         alternative} the ID number is printed where the macro >         appears. The positioning is unsatisfactory using {\tt >         alternative=right}.% >     } The footnote has an ID number which should be printed in the >     right margin. > >   This \ID[id3]paragraph has an ID, but it is not at the beginning >     of the paragraph and the paragraph is properly indented. The >     value of the ID number indicates that \tex{ID} in the footnote >     of the previous paragraph incremented the associated counter, >     but the failure of the references (\tex{in} and \tex{at}) to id2 >     suggests that there are other problems. > >   \dorecurse{3}{ >     ID id#1 is \in[id#1] and is on page \at[id#1].\par} > >   References for footnotes are generated without \tt{alternative=}. > > \stopsubject > \startsubject[title={Problems with \tex{defineenumeration}}] > >   When \tex{definelabel} is changed to \tex{defineenumeration}, >     the example fails to compile. It does not properly handle >     the \tex{ID} in the footnote, complaining of an extra \} or >     forgotten \tex{endgroup}. > > \stopsubject > \stoptitle > \stoptext > > -- > Rik --------------5C8A3C2FC6D510513DBADF21 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
Bump.

On 2015-08-11 14:45, Rik Kabel wrote:
The example below documents the problems. In short, \definelabel suppresses paragraph indent when the label is at the beginning of a paragraph and fails to print the label or generate references with alternative=inmargin (or inright, or inleft) when in a footnote.

\defineenumeration fails to work in a footnote.


\setupindenting[yes,small]
\definelabel   [ID][
%\defineenumeration[ID][
   text=,
   after=,
   before=,
   headcolor=red,
   alternative=inright,
  ]
\starttext
\starttitle[title={Label testing}]
\startsubject[title={Problems with \tex{definelabel}}]

  This is a test. It is only a test.

  \ID[id1]This paragraph should be indented, with an ID number
    in the margin. When \tex{ID} is placed at the beginning of the
    paragraph, as it is here, the paragraph is not indented.

  This paragraph has a footnote.\footnote{%
      \ID[id2]The ID number is not printed in the margin with
        {\tt alternative=inright}, {\tt alternative=inmargin},
        or {\tt alternative=inleft}. Without any {\tt
        alternative} the ID number is printed where the macro
        appears. The positioning is unsatisfactory using {\tt
        alternative=right}.%
    } The footnote has an ID number which should be printed in the
    right margin.

  This \ID[id3]paragraph has an ID, but it is not at the beginning
    of the paragraph and the paragraph is properly indented. The
    value of the ID number indicates that \tex{ID} in the footnote
    of the previous paragraph incremented the associated counter,
    but the failure of the references (\tex{in} and \tex{at}) to id2
    suggests that there are other problems.

  \dorecurse{3}{
    ID id#1 is \in[id#1] and is on page \at[id#1].\par}

  References for footnotes are generated without \tt{alternative=}.

\stopsubject
\startsubject[title={Problems with \tex{defineenumeration}}]

  When \tex{definelabel} is changed to \tex{defineenumeration},
    the example fails to compile. It does not properly handle
    the \tex{ID} in the footnote, complaining of an extra \} or
    forgotten \tex{endgroup}.

\stopsubject
\stoptitle
\stoptext
--
Rik


--------------5C8A3C2FC6D510513DBADF21-- --===============3775531700935970639== 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 --===============3775531700935970639==--