From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113883 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joey McCollum via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Why are endnotes not working with ConTeXt-SBL? Date: Sat, 25 Dec 2021 13:11:52 -0500 Message-ID: References: <1791655590.770843.1640455439313.ref@mail.yahoo.com> <1791655590.770843.1640455439313@mail.yahoo.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7505012656461063153==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13147"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joey McCollum To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 25 19:14:57 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n1BZI-0003EX-QF for gctc-ntg-context-518@m.gmane-mx.org; Sat, 25 Dec 2021 19:14:56 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 736D1288FB8; Sat, 25 Dec 2021 19:14:36 +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 zwl2z5iiDcyS; Sat, 25 Dec 2021 19:14:34 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EE526285966; Sat, 25 Dec 2021 19:14:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1F9C1285966 for ; Sat, 25 Dec 2021 19:14:32 +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 SGKAiJwafrlQ for ; Sat, 25 Dec 2021 19:14:30 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.170; helo=mail-il1-f170.google.com; envelope-from=jmccollum20140511@gmail.com; receiver= Original-Received: from mail-il1-f170.google.com (mail-il1-f170.google.com [209.85.166.170]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 9E78E280AE2 for ; Sat, 25 Dec 2021 19:14:30 +0100 (CET) Original-Received: by mail-il1-f170.google.com with SMTP id v10so8865948ilj.3 for ; Sat, 25 Dec 2021 10:14:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sq88MDVxBDimoPdKeR6Ozhi4kKeI1bDI6ChrnX8UCAE=; b=PZT38Nma3Ckh/zscPSOBxbG5AsZSi7nejwMR2/KgHUHapbCbiGyf4yNDjdC4sgPwj1 ZkqsyZeFWNY1qzkDfShdll2mSjUIUxN9qsXFIJAtS9HP+1ekwgCVrBUgU3tVRb3lc+Fz GbAdPW3xfYVj+iILeuzcv4b0/g454Frevg3FJ9prCeD7URZXmFxKvvbst/8v7AJBdN5K kz7kPc+UrzzfYakKuOhXwFTmFfsPCIyRFdExg5pRuF6BJ24CFxHzaZ4ImHrPJNbgfD6i AGHfNQK58dv0R0u7pqL7N7oZHG/YhDftkWqakaPqBtOISAtvbZ5LeQDzqKcbFvy+m4T6 be7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sq88MDVxBDimoPdKeR6Ozhi4kKeI1bDI6ChrnX8UCAE=; b=6E+bPus5A7usmwWP9RBUmNBDcqlmdNKj4uJwjoqf9Feze5WLSgLXQGLSaODe89d/M8 0Y/2ertHwoDg4VxH6ZszZZrAvTlGYguWuDujEHuJLC81IGXaRhB3+ydn/GE5ZmsLGzaF QfCWAojW0v7i5qa39uZpTXKMaelvqOmQgI7wHUOOWit496srPFXkvTjhfQDSFhUxmfRP rZwGJY9HP/S1m9l4vR4O5L2ezw+0+UAXZ3VXhSAdLr+9MHlH8n02TmpsitPPp9lfW153 hj5TMjr/NiUSfJeN7GCpJVf4LZcdvQ68dUbVSggtV0uesEGEHDCy3eKOrE6C3XlHcfyF Sidg== X-Gm-Message-State: AOAM533CzJNyiFwTDyogWS2MPny0OXYxp7qP+fg6QVq8c9O2yr1JDV8l uuLTVy24xGA6yeMHu5ckYEgfTEBnTuWFHp4IkJmYR03n6yQ= X-Google-Smtp-Source: ABdhPJyjEf1dXMGHrpPtUnk0AqXJrTbgCJLVQCpSHN8i0aApAUjRLig3SwP0ZB5UnueqBs6BG4fAC6eHlSmd7tt0rSM= X-Received: by 2002:a92:d150:: with SMTP id t16mr4905676ilg.96.1640456069002; Sat, 25 Dec 2021 10:14:29 -0800 (PST) In-Reply-To: <1791655590.770843.1640455439313@mail.yahoo.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:113883 Archived-At: --===============7505012656461063153== Content-Type: multipart/alternative; boundary="000000000000433b1e05d3fc7118" --000000000000433b1e05d3fc7118 Content-Type: text/plain; charset="UTF-8" Joel, You may not have done anything wrong; this may be an issue with ConTeXt-SBL. In my code for the btx:sbl:cite:footnote setup in publ-imp-sbl.mkvi, I added a comment to this effect: ``` \startsetups btx:sbl:cite:footnote \removeunwantedspaces \doifinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}} \begingroup \letbtxparameter{punct}\empty % don't pass the trailing punctuation down to the inline setup \let\doifendswithpunctelse\btx_sbl_doifendswithpunctelse % why is this necessary? For some reason, \btx_sbl_doifendswithpunctelse is not recognized within the footnote environment... \startfootnote \Word{\fastsetup{btx:sbl:cite:inline}}% capitalize the first word in the footnote (needed to render "Ibid." and "Idem" correctly) % Add a closing period, unless the righttext ends with punctuation \doifendswithpunctelse{\btxparameter{righttext}} { \removeunwantedspaces } { \removeunwantedspaces \btxperiod } \stopfootnote \endgroup \doifnotinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}} \stopsetups ``` I define the \btx_sbl_doifendswithpunctelse macro earlier in the module. Initially, when I tried to invoke this macro within the \startfootnote ... \stopfootnote environment (to conditionally add a period at the end of a footnote citation if it does not have a righttext ending with punctuation), I got the same error you got, but for \btx_sbl_doifendswithpunctelse. I wasn't sure why this was happening, so I tried defining a new \doifendswithpunctelse macro. Unfortunately, based on your e-mail, it looks like this doesn't actually fix the problem. Any help from other developers would be appreciated here! Unfortunately, I don't have a MWE replicating the problem on hand at the moment. Joey On Sat, Dec 25, 2021 at 1:04 PM Joel via ntg-context wrote: > I am using the ConTeXt-SBL package for citations. I need to move my > footnotes to the end of each article. > > According to the manual, I can suppress the placement of footnotes using > two lines of code. I've added these to my minimal working code, placing \setupnote[footnote][location=none] > in the header and \placenotes[footnote] where I want the endnotes to > appear. It complains this error: > > "Undefined control sequence \doifendswithpunctelse" > > What did I do wrong? > > --Joel > > Code follows: > > \usemodule[publ-imp-sbl] > \startbuffer [bib] > > @Article{na2006, > title={Volcanoes \word{of} New Mexico}, > year={2006}, > journal={New Mexico Earth Matters}, > publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral > Resources}, > volume={6}, > number={1}, > location={Socorro, New Mexico} > } > > @Book{clark1989, > author = {Clark, William}, > title = {Railroads \word{and} railroad towns \word{in} New Mexico}, > publisher = {New Mexico Magazine}, > year = {1989}, > address = {Albuquerque, New Mexico}, > isbn = {9780937206126} > } > > \stopbuffer > > \usebtxdataset[bib.buffer] > > \setupbtx[dataset=default] > \usebtxdefinitions[sbl] > \setupbtx[sbl] > > \setupnote[footnote][location=none] > > \starttext > > \input knuth > \cite[clark1989] > > \placenotes[footnote] > > > \startchapter[title=Bibliography] > \placelistofpublications > \stopchapter > > \stoptext > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > --000000000000433b1e05d3fc7118 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Joel,

You may not have done anything wr= ong; this may be an issue with ConTeXt-SBL. In my code for the=C2=A0btx:sbl= :cite:footnote setup in publ-imp-sbl.mkvi, I added a comment to this effect= :

```
\startsetups btx:sbl:cite:footnote
=C2=A0 \removeunwante= dspaces
=C2=A0 \doifinstring{\btxparameter{punct}}{\btxparameter{autopun= ctuation}}{\btxparameter{punct}}
=C2=A0 \begingroup
=C2=A0 \letbtxpar= ameter{punct}\empty % don't pass the trailing punctuation down to the i= nline setup
=C2=A0 \let\doifendswithpunctelse\btx_sbl_doifendswithpuncte= lse % why is this necessary? For some reason, \btx_sbl_doifendswithpunctels= e is not recognized within the footnote environment...
=C2=A0 \startfoot= note
=C2=A0 =C2=A0 \Word{\fastsetup{btx:sbl:cite:inline}}% capitalize th= e first word in the footnote (needed to render "Ibid." and "= Idem" correctly)
=C2=A0 =C2=A0 % Add a closing period, unless the r= ighttext ends with punctuation
=C2=A0 =C2=A0 \doifendswithpunctelse{\btx= parameter{righttext}} {
=C2=A0 =C2=A0 =C2=A0 \removeunwantedspaces
= =C2=A0 =C2=A0 } {
=C2=A0 =C2=A0 =C2=A0 \removeunwantedspaces
=C2=A0 = =C2=A0 =C2=A0 \btxperiod
=C2=A0 =C2=A0 }
=C2=A0 \stopfootnote
=C2= =A0 \endgroup
=C2=A0 \doifnotinstring{\btxparameter{punct}}{\btxparamete= r{autopunctuation}}{\btxparameter{punct}}
\stopsetups
```
<= br>
I define the \btx_sbl_doifendswithpunctelse macro earlier in = the module. Initially, when I tried to invoke this macro within the \startf= ootnote ... \stopfootnote=C2=A0environment (to conditionally add a period a= t the end of a footnote citation if it does not have a righttext ending wit= h punctuation), I got the same error you got, but for \btx_sbl_doifendswith= punctelse. I wasn't sure why this was happening, so I tried defining a = new \doifendswithpunctelse macro. Unfortunately, based on your e-mail, it l= ooks like this doesn't actually fix the problem.

Any help from o= ther developers would be appreciated here! Unfortunately, I don't have = a MWE replicating the problem on hand at the moment.

Joey

On Sat, Dec 25, 2021 at 1:04 PM Joel via ntg-context <ntg-context@ntg.nl> wrote:
I am using the ConTeXt-SBL package for citations. I need= to move my footnotes to the end of each article.

According to the manual, I can suppress the pla= cement of footnotes using two lines of code. I've added these to my min= imal working code, placing \setupnote[footnote][location=3Dnone] in t= he header and \placenotes[footnote] where I want the endnotes to app= ear. It complains this error:

"Undefin= ed control sequence \doifendswithpunctelse"
=

What did I do wrong?
<= div dir=3D"ltr">
--Joel

<= span>Code follows:
\usemodule[publ-imp-sbl]
\startbuffer [bib]=

@Article{na2006,
title=3D{Volcanoes \word{of} New Mexico},
ye= ar=3D{2006},
journal=3D{New Mexico Earth Matters},
publisher=3D{New M= exico Bureau \word{of} Geology \word{and} Mineral Resources},
volume=3D{= 6},
number=3D{1},
location=3D{Socorro, New Mexico}
}

@Book{= clark1989,
author =3D {Clark, William},
title =3D {Railroads \word{an= d} railroad towns \word{in} New Mexico},
publisher =3D {New Mexico Magaz= ine},
year =3D {1989},
address =3D {Albuquerque, New Mexico},
isbn= =3D {9780937206126}
}

\stopbuffer

\usebtxdataset[bib.buff= er]

\setupbtx[dataset=3Ddefault]
\usebtxdefinitions[sbl]
\setu= pbtx[sbl]

\setupnote[footnote][location=3Dnone]

\starttext
=C2=A0=C2=A0 \input knuth
=C2=A0=C2=A0 =C2=A0\cite[clark1989]
=C2=A0=C2=A0=C2=A0 \placenotes[footnote]

=C2=A0=C2=A0 =C2=A0
= =C2=A0=C2=A0=C2=A0 \startchapter[title=3DBibliography]
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 \placelistofpublications
=C2=A0=C2=A0=C2=A0 = \stopchapter

\stoptext

_______= ___________________________________________________________________________= _
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000433b1e05d3fc7118-- --===============7505012656461063153== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============7505012656461063153==--