From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113853 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 12:50:23 -0500 Message-ID: References: <1841168518.669973.1640356618609.ref@mail.yahoo.com> <1841168518.669973.1640356618609@mail.yahoo.com> <1318784157.472799.1640358874292@office.mailbox.org> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0740967930094187897==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29250"; 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 18:53:32 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 1n0ol0-0007Q7-O9 for gctc-ntg-context-518@m.gmane-mx.org; Fri, 24 Dec 2021 18:53:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E5C4F289016; Fri, 24 Dec 2021 18:53:06 +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 s0B1E7akMD07; Fri, 24 Dec 2021 18:53:04 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B8B72280F9C; Fri, 24 Dec 2021 18:53:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CBF07287467 for ; Fri, 24 Dec 2021 18:53:01 +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 eEI9yFDJZFGX for ; Fri, 24 Dec 2021 18:53:00 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.46; helo=mail-io1-f46.google.com; envelope-from=jmccollum20140511@gmail.com; receiver= Original-Received: from mail-io1-f46.google.com (mail-io1-f46.google.com [209.85.166.46]) (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 4F84A288F68 for ; Fri, 24 Dec 2021 18:53:00 +0100 (CET) Original-Received: by mail-io1-f46.google.com with SMTP id y11so6370005iod.6 for ; Fri, 24 Dec 2021 09:53:00 -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=+XM6Mxe/88TdNLO/X1W3v6qDas3H+n504d8LHS1/nag=; b=Nhu1CK0FlQbCjIdghnPoXKY90Yi4WXoB56kOaiP/lNr2eNhAhfUuVuPB9RKcVMOv4x HbygOjNV0Q6LnGUpPleBL3AtSce0KWSMl7+trQPlvjs1uGLy8pLGbc+IgoHv8rTfAeZw 7xaEWdE+x69+SRcdJfFpbRpC/oOIZSfg805Da7YZ6Ic8skhTmzBXIFxakFOPGHEnfgCN jIL2JtGHdV7MmRTjcwH8NCNUGIqT9XwW2Kbcefh9Nf7u7+0x4B9sxzuONaDMtk7ivwBP EyHXy5R4K8hFviGDh1xtfXXCQh4iVfrtGsSJrBirjOASjcYFEGLLShO2BSTqgi1f1GSy mZnA== 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=+XM6Mxe/88TdNLO/X1W3v6qDas3H+n504d8LHS1/nag=; b=BEx+jbkC7wsSNgfGP6tL6zNg2GJmU8MHd8N/thXO7M666wAb5vrnpFDQjkjxhgQmHD T2jC2tCcRO2KRkBAOgnTf8JQYN3zVJPfSgk+BCO9I89QfNLybdsyxeTn/3xkuMoPiUrz BhLX2rKsNuFWlSQmpYNiNF9mplPVgrchl9JPOOQuKvuAMb2SetZYOF8WI6912pVDDQpt L1Yr6R9yEVlil58ALWHuW8y/YaAalH6WZj95S6p94VfAugcdnvGG/oOYnaQ1AiKYo+IF FWs80Ht9bmhJ2DHkx1V0IG4Eo/io+sZhVby35psoXo6GHq0RK/I6UkqPCQAy+GYbihyK dBNA== X-Gm-Message-State: AOAM532IZXl0OlgMmQwTJH8rrt8Os9bROKg8hBvg/P/n+iVk0R+uTvPO I4IZ5pdnUA9C5oYzEfh4OyZKSAM4DsN5RADKpVCzSwkDcKc= X-Google-Smtp-Source: ABdhPJzJWnB6DR9JdocqQqY/Ycyu9bQPPEI1aUqJyJbsD4tQwNT2Wb7FCspSeN/ze/a0XdSS+MyQUzCuZ6lGC0P6ygw= X-Received: by 2002:a05:6638:204c:: with SMTP id t12mr3567291jaj.169.1640368378847; Fri, 24 Dec 2021 09:52:58 -0800 (PST) In-Reply-To: <1318784157.472799.1640358874292@office.mailbox.org> 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:113853 Archived-At: --===============0740967930094187897== Content-Type: multipart/alternative; boundary="00000000000085a8ad05d3e8064f" --00000000000085a8ad05d3e8064f Content-Type: text/plain; charset="UTF-8" That may work with something like ``` \cite[loctext={{2},{2}}][{na2006,clark1989}] ``` or ``` \autocite[{{\loc[2]},{\loc[2]}}]{{na2006,clark1989}} ``` (I know that the ConTeXt \cite command supports multicites with comma-separated entries, but I forget exactly what the expected syntax looks like.) Joey On Fri, Dec 24, 2021 at 10:14 AM Denis Maier via ntg-context < ntg-context@ntg.nl> wrote: > biblatex has special multicite commands=> e.g. autocites. could that be > used in that case? > > Denis > > Joey McCollum via ntg-context hat am 24.12.2021 > 15:43 geschrieben: > > > 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 > ___________________________________________________________________________________ > > > ___________________________________________________________________________________ > > 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 > ___________________________________________________________________________________ > > > > ___________________________________________________________________________________ > 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 > > ___________________________________________________________________________________ > --00000000000085a8ad05d3e8064f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That may work with something like

```
\cite[loct= ext=3D{{2},{2}}][{na2006,clark1989}]
```

or=C2=A0

```
\= autocite[{{\loc[2]},{\loc[2]}}]{{na2006,clark1989}}
```

(I know t= hat the ConTeXt \cite command supports multicites=C2=A0with comma-separated= entries, but I forget exactly what the expected syntax looks like.)=C2=A0<= div>
Joey

On Fri, Dec 24, 2021 at 10:14 AM Denis Maier = via ntg-context <ntg-context@ntg.n= l> wrote:
=20 =20 =20
biblatex has special multicite commands=3D> e.g. autocites. could tha= t be used in that case?

Denis
Joey McCollum via ntg-context <ntg-context@ntg.nl> hat am 24.12.2021 15:43 gesch= rieben:


Joel,

Thanks for mentioning this! I think I've run into the same issue b= efore, 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 comma= nds are intended to handle trailing punctuation intelligently (in order to = do things like move punctuation after a footnote citation before the footno= te marker), so they treat the next character after the command as a "h= idden" parameter. This works as expected if the next character is a pu= nctuation character or something like a \blank command, but if it's som= ething 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 compi= le if you follow your \autocite command with punctuation or some form of wh= itespace (which is why a double newline works, as you've discovered, wh= ile a single newline does not).

I'd like to keep the intelligent trailing punctuation adjustment f= eature if possible, but this problem definitely needs to be fixed. If anyon= e 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 handle the citations in my art= icle. 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 compatible with ConTeXt-SBL. I checked the documentation, and i= f I understand correctly, I should use the autocite command to add page num= bers to my citation? Like this:

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

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


This won't compile:

=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't compile:

=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]}][]{na2006}\autocite[{= \loc[2]}][]{clark1989}

After much trial and error, I found this will compile:

=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 pl= ace!

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

\usemodule[publ-imp-sbl]
\startbuffer [bib]

@Article{na2006,
title=3D{Volcanoes \word{of} New Mexico},
year=3D{2006},
journal=3D{New Mexico 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, William},
title =3D {Railroads \word{and} railroad towns \word{in} New= Mexico},
publisher =3D {New Mexico Magazine},
year =3D {1989},
address =3D {Albuquerque, New Mexico},
isbn =3D {9780937206126}
}

\stopbuffer

\usebtxdataset[bib.buffer]

\setupbtx[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 \placelistofpubli= cations
=C2=A0=C2=A0=C2=A0 \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 in= formation with ConTeXt-SBL?

--Joel

________________________________________________________________= ___________________
If your question is of interest to others as well, please add an e= ntry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.nt= g.nl/mailman/listinfo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.ne= t
archive=C2=A0 : https://bitbucket.org/phg/co= ntext-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
__________________________________________________________________= _________________
__________________________________________________________________= _________________
If your question is of interest to others as well, please add an ent= ry to the Wiki!

maillist : n= tg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage :
htt= p://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http:/= /contextgarden.net
____________________________________________________________________= _______________
___________________________________________________________________________= ________
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
___________________________________________________________________________= ________
--00000000000085a8ad05d3e8064f-- --===============0740967930094187897== 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== --===============0740967930094187897==--