-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue vs Number APA 7th edition; Number and Issue not shown under certain conditions #5827
Comments
If you are writing with CSL styles (eg, with Zotero or Markdown), you want to store your data in CSL JSON or CSL YAML, not BibTeX or BibLaTeX. This is what Zotero uses in the Word plugin and what you should export to if using Markdown. Markdown/pandoc needs to convert .bib back to CSL anyway, and as adamsmith notes, this is a lossy conversion (because .bib is less concretely specified than CSL). In Zotero, you can specify the article number for a journal article by entering The APA CSL style does print the article number if there are no page numbers, in accordance with the APA manual. |
I think the main context here is JabRef, which is bib(la)Tex native and supports CSL, which is great, of course. |
Thank you all for the fast replies :-) I was feeling a little overwhelmed as both you at CSL and Michel from citeproc both claimed that the code should be alright. Yes, indeed the context is mainly Jabref, which is bib(la)Tex native so i was not sure how to troubleshoot with original CSL metadata. Your comments were very helpful though. Turns out, me and all the others in the discussion at Jabref were not aware of this:
I did some more testing and found that the following is Jabref's current behaviour relative to including and excluding page-ranges:
=
=
=
=
= Seems alright then! I don't have the original APA manual of style at hand (the issue was not raised by me), so i can't cross-check, but, if what was mentioned here is correct, then this would conform to APA 7th edition and there are no conversion issues in this regard when using https://github.com/michel-kraemer/citeproc-java. Great! The problem was no problem, unless proven otherwise. |
Yes, those all look right to me, thanks for checking |
So, after a period of learning, discussions and thinking, I was working on a pull-request for JabRef using the following mapping:
Finally, I came to the conclusion that there are indeed some inconsistencies in the CSL style files.
Inspecting and trying to understand CSL style files of APA 7th edition and IEEE, I think I have found the inconsistency: APA 7th edition (2022-07-26 18:07:54):
IEEE (2022-02-06 02:19:36):
As far as I understand it, IEEE looks at variable="number" first, then looks at variable="page". APA ONLY looks at variable="page" then tries to detect number within. |
Proposed solution: Change APA 7th edition to detect CSL Maybe roughly something like this?
Sorry, my first attempt at coding in CSL :D |
Thanks -- we're planning on changing the handling of article numbers in APA anyway, I believe that should take care of your concern -- re-opening this open to track that issue (CC @bwiernik ) |
Problem description:
Initial problem description, discussion and how to reproduce can be found in this thread: JabRef/jabref#8372
Short summary: What we found out so far is that in Jabref, the number field is not shown under certain conditions and that in Zotero, the issue field is not shown under different conditions. The tests were done with Zotero and Jabref.
How to reproduce:
When using Zotero,
create bibliography from items
.The following will be the output:
Foo, B. (n.d.-a). Issue. Bib(La)TeX Journal, 9issue, 45–67.
Correct.Foo, B. (n.d.-b). Issue + number. Bib(La)TeX Journal, 3number, 45–67.
Issue missing.Foo, B. (n.d.-c). Number. Bib(La)TeX Journal, 3number, 45–67.
CorrectFoo, B. (n.d.-d). Volume. Bib(La)TeX Journal, 1, 45–67.
CorrectFoo, B. (n.d.-e). Volume + issue. Bib(La)TeX Journal, 1(9issue), 45–67.
CorrectFoo, B. (n.d.-f). Volume + issue + number. Bib(La)TeX Journal, 1(3number), 45–67.
Issue missingWhen using Jabref (v5.4):
options>preferences>entry preview
The following will be the output:
Foo, B. (n.d.). volume + issue + number. Bib(La)TeX Journal, 1(9issue), 45–67.
Number missingFoo, B. (n.d.). volume + issue. Bib(La)TeX Journal, 1(9issue), 45–67.
CorrectFoo, B. (n.d.). volume. Bib(La)TeX Journal, 1, 45–67.
CorrectFoo, B. (n.d.). number. Bib(La)TeX Journal, 45–67.
Number missingFoo, B. (n.d.). issue. Bib(La)TeX Journal, 9issue, 45–67.
Correct.Foo, B. (n.d.). issue + number. Bib(La)TeX Journal, 9issue, 45–67.
Number missingDesired outcome:
Fix the situations in which either the number or issue are missing from the rendered text
To my knowledge, the APA Style dictates to change the format in the following way:
Therefore, it is not a question of
issue
ORnumber
, but it should be taken into account that issue and number are two different things and should not be replaced with each other. This logic follows CSL and Biblatex form and definition, whereissue
andnumber
both exist and this apparently is incompatible with the very old definition provided by Bibtex, where only thenumber
field is present. Converting from CSL/Biblatex to Bibtex is possible, but converting from Bibtex to CSL/Biblatex mixes up issue and number.I would suggest to change the APA citation-style code in such a way that it
issue
andnumber
issue
andnumber
in such a way that one of the two gets replaced by the other.How:
I don't know.
Additional Info:
number
andissue
in CSL: https://docs.citationstyles.org/en/stable/specification.html#number-variablesnumber
andissue
in biblatex (p. 22 and 23): https://packages.oth-regensburg.de/ctan/macros/latex/contrib/biblatex/doc/biblatex.pdfnumber
in bibtex (p. 10): https://mirror.informatik.hs-fulda.de/tex-archive/biblio/bibtex/base/btxdoc.pdfThe text was updated successfully, but these errors were encountered: