From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113847 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:46:32 -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="===============3880060870093441311==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22297"; 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:49:40 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 1n0lt6-0005Tt-R3 for gctc-ntg-context-518@m.gmane-mx.org; Fri, 24 Dec 2021 15:49:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B49D8288F8C; Fri, 24 Dec 2021 15:49: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 BSz9TX2cpQmW; Fri, 24 Dec 2021 15:49:11 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AD772289012; Fri, 24 Dec 2021 15:49:11 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5D293289012 for ; Fri, 24 Dec 2021 15:49:09 +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 7MnUOJlOIqq1 for ; Fri, 24 Dec 2021 15:49:08 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.172; helo=mail-il1-f172.google.com; envelope-from=jmccollum20140511@gmail.com; receiver= Original-Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) (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 29D41288F8C for ; Fri, 24 Dec 2021 15:49:08 +0100 (CET) Original-Received: by mail-il1-f172.google.com with SMTP id b1so6736653ilj.2 for ; Fri, 24 Dec 2021 06:49:08 -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=NTnHSNzF3L7t6+rDc3obY0PBkQnQJj6ka57Eo0l09p8=; b=UU1JGWBXcU4o5k73MQpWjtbIlMqvK06yU2o3inRz2auoyQB8u2RSDTXhc3WTARSN4u dTa+1KWtggsktvxRZJegerrU4qb2t4HJFsM6L8GdIwyGPQwuldvAC4vBd6HqIFvt5NFn +kcdqfEHb7cFoHM3Ln8fcnvGmysF4VzdTp+4PMLc/vaZHYGRzdw8Wvf1c+WJ4cJuzeLF NTjfJ2VjIyBsptkRwIrndpWKZOY+nm3p/D1hGBivuih6xSW9PXtrSzDY8R29lLJkRe1T LZWc6xnBtP1xMnpbe02T2ac9LPEeAky/XRQQBVQm//yRbfq8N+QPT1ZQYvgXQV2HUWrF bVLg== 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=NTnHSNzF3L7t6+rDc3obY0PBkQnQJj6ka57Eo0l09p8=; b=2QpMbNPHCROSLw2AWHRh48rrXd1qghAulzJZye1ewgob2HtBotxet2tCufpnWl3aK+ q7eJXgflgSGOYzQKZ5RG2cnXOyukwOChdz6d2wIphozWMauk2EGPOwrbigW9oG0BeR+T ogRlovSneRTz0KSKZh8tPvwBiZFiQIi+k0hqT9N4PsFz+uTP9XIcJc+TR8kjUeGAea0p 4aWhqC1gUIFPnfh1u3u3KWng9qZHLootJfUAFd4sBOwcW/baW9W/AhFlfdPYKayRXW0W 4f2O+rkSZREp4AhId8gi0cbi7kPo4iGHizdoAj7lw+r3cJsHn5pni0nHI4yJT+NzmpoB P1eg== X-Gm-Message-State: AOAM531Th8kkQ10ToHcBBj9MO6LQfSXq/eWhfJnkVqk+HCYZWsTiSPLJ beRnNqb5K6x2s0AlOgwNHdkovnT5cwAiav4OM418zIF8yiQ= X-Google-Smtp-Source: ABdhPJzRPs7tGmpO16QnvRfytol7YLbauXmb3Y7snlFVpKV+EUJXJMjm/RvyVjnoQtvaZXQnAQuWXAgTgVLblZYuyw4= X-Received: by 2002:a05:6e02:1bc8:: with SMTP id x8mr973617ilv.54.1640357346776; Fri, 24 Dec 2021 06:49:06 -0800 (PST) In-Reply-To: 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:113847 Archived-At: --===============3880060870093441311== Content-Type: multipart/alternative; boundary="000000000000f59a7105d3e57408" --000000000000f59a7105d3e57408 Content-Type: text/plain; charset="UTF-8" Additionally, if you want to cite page numbers, the key to use in ConTeXt-SBL is "loctext". (I was not aware of an "extra" key when I was developing the module.) So, you should be able to make the ConTeXt-style \cite command work as follows: ``` \cite[loctext=2][na2006] ``` I hope this helps, too! Joey On Fri, Dec 24, 2021 at 9:43 AM Joey McCollum wrote: > 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 >> >> ___________________________________________________________________________________ >> > --000000000000f59a7105d3e57408 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Additionally, if you want to cite page numbers, the key to= use in ConTeXt-SBL is "loctext". (I was not aware of an "ex= tra" key when I was developing the module.) So, you should be able to = make the ConTeXt-style \cite command work as follows:

```
\cite[l= octext=3D2][na2006]
```

I hope this helps, too!
=

Joey

On Fri, Dec 24, 2021 at 9:43 AM Joey McCollum= <jmccollum20140511@gmail= .com> wrote:
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 suggestion= s 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 befo= re the footnote marker), so they treat the next character after the command= as a "hidden" parameter. This works as expected if the next char= acter 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 t= hink 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 do= es not).

I'd like to keep the intelligent trai= ling punctuation adjustment feature if possible, but this problem definitel= y 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 <ntg-context@ntg.nl>= wrote:
I am using the ConTeXt-SBL module to han= dle 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=3D2][na2006], but that doesn't seem compatibl= e with ConTeXt-SBL. I checked the documentation, and if I understand correc= tly, I should use the autocite command to add page numbers to my citation? = Like this:

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

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


This won't= compile:
=C2=A0
=C2=A0=C2=A0=C2=A0 \autocite[{\loc[2]}][]{na2006}
=C2=A0= =C2=A0=C2=A0 \autocite[{\loc[2]}][]{clark1989}
=C2=A0=C2=A0=C2=A0
This won&#= 39;t compile:
=C2=A0
=C2=A0=C2=A0=C2=A0 \autocite[{\loc[2]}][]{na2006}%
%
= =C2=A0=C2=A0 \autocite[{\loc[2]}][]{clark1989= }
=

This also won't compile:

=C2=A0=C2=A0=C2=A0 \autocite[{\loc[2]}][]{na2= 006}\autocite[{\loc[2]}][]{clark1989<= /span>}

<= div dir=3D"ltr">After much 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 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]

@Articl= e{na2006,
title=3D{Volcanoes \word{of} New Mexico},
year=3D{2006},journal=3D{New Mexico Earth Matters},
publisher=3D{New Mexico Bureau \w= ord{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{and} railroad t= owns \word{in} New Mexico},
publisher =3D {New Mexico Magazine},
year= =3D {1989},
address =3D {Albuquerque, New Mexico},
isbn =3D {9780937= 206126}
}

\stopbuffer

\usebtxdataset[bib.buffer]

\s= etupbtx[dataset=3Ddefault]
\usebtxdefinitions[sbl]
\setupbtx[sbl]
=
\starttext

=C2=A0=C2=A0 =C2=A0\autocite[{\loc[2]}][]{na2006}
= =C2=A0=C2=A0 =C2=A0\autocite[{\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 command the wrong tool for what I need? How can I place c= itations right next to each other, but also include page number information= with ConTeXt-SBL?

--Joel<= br>

<= /div>______________________________________________________________________= _____________
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
___________________________________________________________________________= ________
--000000000000f59a7105d3e57408-- --===============3880060870093441311== 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== --===============3880060870093441311==--