From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/111524 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: BibTeX inproceedings entries not rendered correctly in APA style Date: Mon, 24 May 2021 17:53:49 -0400 Message-ID: <85ca4ca9-e7ee-d15d-34d4-e0aa282a9b8e@rik.users.panix.com> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6785946317526537983==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31013"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.10.2 To: ntg-context@ntg.nl, nvitacolonna@gmail.com Original-X-From: ntg-context-bounces@ntg.nl Mon May 24 23:54:29 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 1llIWr-0007q6-2l for gctc-ntg-context-518@m.gmane-mx.org; Mon, 24 May 2021 23:54:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9F097283C6B; Mon, 24 May 2021 23:54:00 +0200 (CEST) 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 iqGFWT22hTqC; Mon, 24 May 2021 23:53:57 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 56103283C70; Mon, 24 May 2021 23:53:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4A8E5283C70 for ; Mon, 24 May 2021 23:53:56 +0200 (CEST) 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 uof4zjrsAHOq for ; Mon, 24 May 2021 23:53:54 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=166.84.1.89; helo=mailbackend.panix.com; envelope-from=context@rik.users.panix.com; receiver= Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 18FC8283C6B for ; Mon, 24 May 2021 23:53:53 +0200 (CEST) Original-Received: from [192.168.1.106] (cpe-69-204-137-117.nycap.res.rr.com [69.204.137.117]) by mailbackend.panix.com (Postfix) with ESMTPSA id 4FprZR3HRtzJSM; Mon, 24 May 2021 17:53:51 -0400 (EDT) In-Reply-To: Content-Language: en-US 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:111524 Archived-At: This is a multi-part message in MIME format. --===============6785946317526537983== Content-Type: multipart/alternative; boundary="------------6E3E79A016BD76891A0A6CC8" Content-Language: en-US This is a multi-part message in MIME format. --------------6E3E79A016BD76891A0A6CC8 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 5/24/2021 16:28, Nicola wrote: > I don't know if this is restricted to inproceedings entries, but > consider the following test.bib: > > @inproceedings{Foo:1983, > author = {Foo, Bar}, > booktitle = {Booktitle}, > pages = {34--39}, > title = {Title of the paper}, > year = {1983} > } > > When this is typeset: > > \usebtxdataset[test.bib] > \usebtxdefinitions[apa] > \starttext > \cite[Foo:1983] > \placelistofpublications > \stoptext > > the result is: > > (Foo, 1983) > Foo, B. (1983). Title of the paper. In Title of the paper., Booktitle. Author. > > I would expect: > > (Foo, 1983) > Foo, B. (1983). Title of the paper. In Booktitle, p. 34–39. > > or something similar. > > I can reproduce it with ConTeXt from TeX Live 2021 and the current LMTX. > Is it a bug? > > Nicola This is intended. Or rather, it is a side-effect of the intended behavior. If you add an editor ("editor={Baz, Bar}") you will get something like: Foo, B. (1983). Title of the paper. In B. Baz (Ed.), /Booktitle/. Author. And if you then add a publisher ("publisher={Paymefirst}") you will get: Foo, B. (1983). Title of the paper. In B. Bar (Ed.), Booktitle. Paymefirst. The APA presumes that you have both an editor and a publisher for pieces contained in other works. It calls for the use of the author as publisher if no publisher is present. It is silent about what to do if you have no editor. The editor and publisher fields are described as required in mkiv-publications.pdf (page 85), however, you should be able to define your own customized btx handling (see chapter 6) to override this, removing both the editor and the publisher as requirements. Just a little coding. (I have previously suggested that repeating the title in the case of a missing editor should not be done. The behavior has not been changed in last the two years.) You should take careful note of the following from page 29 of that manual: /A note on the APA style: /We get the strong impression that the APA bibliography style standard was made with the implicit assumption that manual intervention would be involved in the editing and production process; It has been an arduous task to create a system capable of fully conforming to these specifications. I will add that there is still quite a bit of work to do for APA and pretty much any other published style. Manual tuning (or editorial leniency) is required to conform in all but the most basic cases. --------------6E3E79A016BD76891A0A6CC8 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 5/24/2021 16:28, Nicola wrote:
   I don't know if this is restricted to inproceedings entries, but
consider the following test.bib:

    @inproceedings{Foo:1983,
      author = {Foo, Bar},
      booktitle = {Booktitle},
      pages = {34--39},
      title = {Title of the paper},
      year = {1983}
    }

When this is typeset:

    \usebtxdataset[test.bib]
    \usebtxdefinitions[apa]
    \starttext
      \cite[Foo:1983]
      \placelistofpublications
    \stoptext

the result is:

(Foo, 1983)
Foo, B. (1983). Title of the paper. In Title of the paper., Booktitle. Author.

I would expect:

(Foo, 1983)
Foo, B. (1983). Title of the paper. In Booktitle, p. 34–39.

or something similar.

I can reproduce it with ConTeXt from TeX Live 2021 and the current LMTX.
Is it a bug?

Nicola

This is intended. Or rather, it is a side-effect of the intended behavior.

If you add an editor ("editor={Baz, Bar}") you will get something like:

Foo, B. (1983). Title of the paper. In B. Baz (Ed.), Booktitle. Author.

And if you then add a publisher ("publisher={Paymefirst}") you will get:

Foo, B. (1983). Title of the paper. In B. Bar (Ed.), Booktitle. Paymefirst.

The APA presumes that you have both an editor and a publisher for pieces contained in other works. It calls for the use of the author as publisher if no publisher is present. It is silent about what to do if you have no editor.

The editor and publisher fields are described as required in mkiv-publications.pdf (page 85), however, you should be able to define your own customized btx handling (see chapter 6) to override this, removing both the editor and the publisher as requirements. Just a little coding.

(I have previously suggested that repeating the title in the case of a missing editor should not be done. The behavior has not been changed in last the two years.)

You should take careful note of the following from page 29 of that manual:

A note on the APA style: We get the strong impression that the APA bibliography style standard was made with the implicit assumption that manual intervention would be involved in the editing and production process; It has been an arduous task to create a system capable of fully conforming to these specifications.
I will add that there is still quite a bit of work to do for APA and pretty much any other published style. Manual tuning (or editorial leniency) is required to conform in all but the most basic cases.


  


--------------6E3E79A016BD76891A0A6CC8--

--===============6785946317526537983==
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==

--===============6785946317526537983==--