From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113846 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 back-to-back \autocite commands not working in ConTeXt-SBL? Date: Fri, 24 Dec 2021 09:43:19 -0500 Message-ID: References: <1841168518.669973.1640356618609.ref@mail.yahoo.com> <1841168518.669973.1640356618609@mail.yahoo.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7817804861560466438==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6513"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joey McCollum To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 24 15:46:21 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 1n0lps-0001W1-PV for gctc-ntg-context-518@m.gmane-mx.org; Fri, 24 Dec 2021 15:46:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CEE2A289097; Fri, 24 Dec 2021 15:45:59 +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 Qf9S5oiYgjvi; Fri, 24 Dec 2021 15:45:58 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CBCD2289012; Fri, 24 Dec 2021 15:45:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5B776289012 for ; Fri, 24 Dec 2021 15:45:57 +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 Srt4uGvU-AQA for ; Fri, 24 Dec 2021 15:45:56 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.51; helo=mail-io1-f51.google.com; envelope-from=jmccollum20140511@gmail.com; receiver= Original-Received: from mail-io1-f51.google.com (mail-io1-f51.google.com [209.85.166.51]) (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 1136C288FB8 for ; Fri, 24 Dec 2021 15:45:55 +0100 (CET) Original-Received: by mail-io1-f51.google.com with SMTP id 19so10550648ioz.4 for ; Fri, 24 Dec 2021 06:45:55 -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=nDoYCIgpYzSzD5om3/eSW7dZVKNQf4FO+azE0pvkcfg=; b=DWvArNR3mvZ3vuPlbbJshKJKXo6iTTJTgZwKH3itQtzOTnFBb9bwOuETPgke5CwYLh VZhW4JZm0RQKrQ+6JiJ/FH5hHX1xmn3N4SiJz9csb6UTXpQ1M2vL0nAzEUE7lvw5Pd3D aiJzdgLOaa2VMqTxDJ/2C2f0+iKgaZ2xfvk0g+j1Nav7h/MsmQD7w1trRM6HxmLoccD9 1q/6hJDQ4en9ddpZwThovoOPpHYHX8dIL7R+FY/rYBjZb0JWQ45LJShizgCBY0Ga+G/2 qKO4f8z+iyl3y6SJj7b+5SqOLkegoMaa7ru5kNpFaUvKnv/8Fv+sIIZnw7lNKGsr4kzd 8nGg== 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=nDoYCIgpYzSzD5om3/eSW7dZVKNQf4FO+azE0pvkcfg=; b=lwUNpeBJP9OtCRyMjoJ3ZgRr0NLpBJ/f3yrf/zuiZP9sBwT2spiyjwMevi/Fv6L2ZI x29+pxRB4/RBp+5CaZJW2oG9F/xnudB2ZVmM8v6SCqT2EDdKXC8XW0ild0t1cMbHSLrO pw/r7b0OTjUlr1criUWaXsOAY86ydcs4MVBtdfUNn0DwjjDTik33X2hlUogLqT09Wpj2 mYqZFgXrrKJ8L/6NVju9VbsPgkXWDJNrbE8zK4mR5Ie3EuWmk7RfKTdmnSoCQXDcwIPf G6Ob2mTafTpSz2TnHyeF0zbssDjE+ZaZkbK05NmSQ8Wyx3YKd2ldivlX9d4DkmNfqAzJ 6fPw== X-Gm-Message-State: AOAM532iuPS1UlZPhvshzLnIajp6nnN2QBi35AUT2Ls80W6ssvaXJt+9 5G8ioLlCYaINwfjJVhit+0KcUuBQh3IaxujgPJcI9+2l X-Google-Smtp-Source: ABdhPJwHaJXN7TGbEC8vrY16It2OXuFilVm349mNtegxt0TxFQ6ibmAUbA+g3UI6bhbXNhnly9AK7sNPOjX1flKloOk= X-Received: by 2002:a05:6638:ed4:: with SMTP id q20mr3441882jas.75.1640357154525; Fri, 24 Dec 2021 06:45:54 -0800 (PST) In-Reply-To: <1841168518.669973.1640356618609@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:113846 Archived-At: --===============7817804861560466438== Content-Type: multipart/alternative; boundary="0000000000008013fd05d3e569a5" --0000000000008013fd05d3e569a5 Content-Type: text/plain; charset="UTF-8" Joel, Thanks for mentioning this! I think I've run into the same issue before, but I wasn't sure how I should go about fixing it, so this might be a good place to get suggestions from others. The \autocite, \inlinecite, \parencite, and \footcite helper commands are intended to handle trailing punctuation intelligently (in order to do things like move punctuation after a footnote citation before the footnote marker), so they treat the next character after the command as a "hidden" parameter. This works as expected if the next character is a punctuation character or something like a \blank command, but if it's something like a \section command (or another \autocite command, as you've discovered), then this causes problems. That said, I think you should be able to get your ConTeXt to compile if you follow your \autocite command with punctuation or some form of whitespace (which is why a double newline works, as you've discovered, while a single newline does not). I'd like to keep the intelligent trailing punctuation adjustment feature if possible, but this problem definitely needs to be fixed. If anyone has any suggestions, I welcome them! My hope is that this can be resolved with a simple check. Joey On Fri, Dec 24, 2021 at 9:37 AM Joel via ntg-context wrote: > I am using the ConTeXt-SBL module to handle the citations in my article. > Using the plain \cite[na2006] command has worked fine. > > But there are some situations where I want the footnote to include page > number details. I tried using \cite[extra=2][na2006], but that doesn't seem > compatible with ConTeXt-SBL. I checked the documentation, and if I > understand correctly, I should use the autocite command to add page numbers > to my citation? Like this: > > \autocite[{\loc[2]}][]{na2006} > > This solution works in 95% of cases, but when I need to cite another book > immediately after that, it throws up errors: > > > This won't compile: > > \autocite[{\loc[2]}][]{na2006} > \autocite[{\loc[2]}][]{clark1989} > > This won't compile: > > \autocite[{\loc[2]}][]{na2006}% > % > \autocite[{\loc[2]}][]{clark1989} > > This also won't compile: > > \autocite[{\loc[2]}][]{na2006}\autocite[{\loc[2]}][]{clark1989} > > After much trial and error, I found this will compile: > > \autocite[{\loc[2]}][]{na2006} > > \autocite[{\loc[2]}][]{clark1989} > > The problem with this last example, is if my citations appear within the > paragraph, then I end up with a paragraph break in the wrong place! > > Here is my minimum working example, which won't compile unless I add a > blank line between the two citations. > > \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] > > \starttext > > \autocite[{\loc[2]}][]{na2006} > \autocite[{\loc[3]}][]{clark1989} > > > \startchapter[title=Bibliography] > \placelistofpublications > \stopchapter > > \stoptext > > Is the autocite command the wrong tool for what I need? How can I place > citations right next to each other, but also include page number > information with ConTeXt-SBL? > > --Joel > > > ___________________________________________________________________________________ > 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 > > ___________________________________________________________________________________ > --0000000000008013fd05d3e569a5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Joel,

Thanks for mentioning this! I thi= nk I've run into the same issue before, but I wasn't sure how I sho= uld go about fixing it, so this might be a good place to get suggestions fr= om others.

The \autocite, \inlinecite, \parencite, and \footcite hel= per commands are intended to handle trailing punctuation intelligently (in = order to do things like move punctuation after a footnote citation before t= he footnote marker), so they treat the next character after the command as = a "hidden" parameter. This works as expected if the next characte= r is a punctuation character or something like a \blank command, but if it&= #39;s something like a \section command (or another \autocite command, as y= ou've discovered), then this causes problems.

That said, I think= you should be able to get your ConTeXt to compile if you follow your \auto= cite command with punctuation or some form of whitespace (which is why a do= uble newline works, as you've discovered, while a single newline does n= ot).

I'd like to keep the intelligent trailing= punctuation adjustment feature if possible, but this problem definitely ne= eds to be fixed. If anyone has any suggestions, I welcome them! My hope is = that this can be resolved with a simple check.

Joe= y

On Fri, Dec 24, 2021 at 9:37 AM Joel via ntg-context <ntg-context@ntg.nl> wrote:
I am using the ConTeXt-SBL module to handle the citations in m= y article. Using the plain \cite[na2006] command has worked fine.

But there are some situations where= I want the footnote to include page number details. I tried using \cite[ex= tra=3D2][na2006], but that doesn't seem compatible with ConTeXt-SBL. I = checked the documentation, and if I understand correctly, I should use the = autocite command to add page numbers to my citation? Like this:

=C2=A0=C2=A0=C2=A0 \autocit= e[{\loc[2]}][]{na2006}

=
This solution works in 95% of cases, but when I need= to cite another book immediately after that, it throws up errors:


This won't compile:
=C2=A0
=C2=A0=C2=A0=C2= =A0 \autocite[{\loc[2]}][]{na2006}
=C2=A0=C2=A0=C2=A0 \autoc= ite[{\loc[2]}][]{clark1989}
=C2=A0=C2=A0=C2=A0
This won't compile:
=C2=A0
=C2=A0= =C2=A0=C2=A0 \autocite[{\loc[2]}][]{na2006}%
%=
=C2=A0=C2=A0 \aut= ocite[{\loc[2]}][]{clark1989}
=

This also won't compile:

=C2=A0=C2=A0=C2=A0 \autocite[{\loc[2]}][]{na2006}\autoc= ite[{\loc[2]}][]{clark1989}

After m= uch trial and error, I found this will compile:
<= div>
=C2=A0
=C2=A0=C2=A0=C2=A0 \autocite[{\loc[2]}][]{na2006}

=C2=A0=C2=A0=C2=A0 \autocite[{\loc[2]}= ][]{clark1989}

The problem with this last example, is if my citations appear with= in the paragraph, then I end up with a paragraph break in the wrong place!<= br>

Here is my minimum working= example, which won't compile unless I add a blank line between the two= citations.

\usemod= ule[publ-imp-sbl]
\startbuffer [bib]

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

@Book{clark1989,
author =3D {Clark, Wil= liam},
title =3D {Railroads \word{and} railroad towns \word{in} New Mexi= co},
publisher =3D {New Mexico Magazine},
year =3D {1989},
address= =3D {Albuquerque, New Mexico},
isbn =3D {9780937206126}
}

\st= opbuffer

\usebtxdataset[bib.buffer]

\setupbtx[dataset=3Ddefau= lt]
\usebtxdefinitions[sbl]
\setupbtx[sbl]

\starttext

= =C2=A0=C2=A0 =C2=A0\autocite[{\loc[2]}][]{na2006}
=C2=A0=C2=A0 =C2=A0\au= tocite[{\loc[3]}][]{clark1989}

=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

Is the autocite comm= and the wrong tool for what I need? How can I place citations right next to= each other, but also include page number information with ConTeXt-SBL?

--Joel
<= /span>

_________________= __________________________________________________________________
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
___________________________________________________________________________= ________
--0000000000008013fd05d3e569a5-- --===============7817804861560466438== 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== --===============7817804861560466438==--