From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92330 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Label problems with \definelabel and \defineenumeration, in and out of footnotes Date: Tue, 11 Aug 2015 14:45:30 -0400 Message-ID: <55CA42CA.5000908@rik.users.panix.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1401665959==" X-Trace: ger.gmane.org 1439318786 4062 80.91.229.3 (11 Aug 2015 18:46:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2015 18:46:26 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 11 20:46:13 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZPEYv-0004j8-3W for gctc-ntg-context-518@m.gmane.org; Tue, 11 Aug 2015 20:46:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 33B9D1022E for ; Tue, 11 Aug 2015 20:46:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id U_-8ScP3in9i for ; Tue, 11 Aug 2015 20:46:11 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id EEEA9101F9 for ; Tue, 11 Aug 2015 20:45:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 55A3E101F9 for ; Tue, 11 Aug 2015 20:45:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9T_S0DS-ji6T for ; Tue, 11 Aug 2015 20:45:38 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id EE66D101E6 for ; Tue, 11 Aug 2015 20:45:37 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t7BIjZkY023561 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 11 Aug 2015 20:45:36 +0200 Original-Received: from [192.168.9.13] (pool-71-183-246-38.nycmny.fios.verizon.net [71.183.246.38]) by mailbackend.panix.com (Postfix) with ESMTPSA id F3EB8177B0 for ; Tue, 11 Aug 2015 14:45:34 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=166.84.1.89; country=US; region=New York; city=New York; latitude=40.7553; longitude=-73.9924; http://maps.google.com/maps?q=40.7553,-73.9924&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07P3uJAJh - 93d43d64bee0 - 20150811 (trained as not-spam) Received-SPF: pass (filter1-utr.mf.surf.net: domain of context@rik.users.panix.com designates 166.84.1.89 as permitted sender) receiver=filter1-utr.mf.surf.net; client-ip=166.84.1.89; envelope-from=; helo=mailbackend.panix.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) 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:92330 Archived-At: This is a multi-part message in MIME format. --===============1401665959== Content-Type: multipart/alternative; boundary="------------020704060300060000070008" This is a multi-part message in MIME format. --------------020704060300060000070008 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------020704060300060000070008 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=3Dinmargin (or inright, or inleft) when in a footnote.
\defineenumeration fails to work in a footnote.


\setupindenting[yes,small]
\definelabel=C2=A0=C2=A0 [ID][
%\defineenumeration[ID][
=C2=A0=C2=A0 text=3D,
=C2=A0=C2=A0 after=3D,
=C2=A0=C2=A0 before=3D,
=C2=A0=C2=A0 headcolor=3Dred,
=C2=A0=C2=A0 alternative=3Dinright,
=C2=A0 ]
\starttext
\starttitle[title=3D{Label testing}]
\startsubject[title=3D{Problems with \tex{definelabel}}]

=C2=A0 This is a test. It is only a test.

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

=C2=A0 This paragraph has a footnote.\footnote{%<= br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \ID[id2]The ID number is no= t printed in the margin with
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 {\tt alternativ= e=3Dinright}, {\tt alternative=3Dinmargin},
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 or {\tt alterna= tive=3Dinleft}. Without any {\tt
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 alternative} th= e ID number is printed where the macro
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 appears. The po= sitioning is unsatisfactory using {\tt
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 alternative=3Dr= ight}.%
=C2=A0=C2=A0=C2=A0 } The footnote has an ID number which s= hould be printed in the
=C2=A0=C2=A0=C2=A0 right margin.

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

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

=C2=A0 References for footnotes are generated without \tt{alternative=3D}.

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

=C2=A0 When \tex{definelabel} is changed to \tex{defineenumeration},
=C2=A0=C2=A0=C2=A0 the example fails to compile. It does n= ot properly handle
=C2=A0=C2=A0=C2=A0 the \tex{ID} in the footnote, complaini= ng of an extra \} or
=C2=A0=C2=A0=C2=A0 forgotten \tex{endgroup}.

\stopsubject
\stoptitle
\stoptext
--
Rik
--------------020704060300060000070008-- --===============1401665959== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1401665959==--