Open jimhshen opened 3 years ago
Looking in the chicago style CSL file, it looks like this line causes the duplication problem:
<bibliography hanging-indent="true" et-al-min="11" et-al-use-first="7" subsequent-author-substitute="———" entry-spacing="0">
Deleting subsequent-author-substitute="———" prevents it from generating a duplicate entry. Unclear why it also doesn't seem to actually work to suppress the author names for the single author entries.
I don't think that's the root cause. I think this is another bookdown-chapter-bib issue. Create a MWE with no chapter-bib to see if it is truly the issue. If it is bookdown, send the MWE with chapter-bib to Yihue.
Looks like you're right, just by looking at the references that's auto generated at the end of the book. Everything works properly there.
For now, it is fine to
but keep the issue open for later, to fix it.
-- Lars Vilhuber, Economist Cornell University, Executive Director, Labor Dynamics Institute and ILR School - Department of Economics American Economic Association - Data Editor Journal of Privacy and Confidentiality - Managing Editor
lars.vilhuber@cornell.edu | http://lars.vilhuber.com/ p: +1.607-330-5743 | https://twitter.com/larsvil
Assistant: ldi@cornell.edu | +1.607-255-2744
From: jimhshen notifications@github.com Sent: Tuesday, September 22, 2020 16:07 To: admindatahandbook/book book@noreply.github.com Cc: Lars Vilhuber lars.vilhuber@cornell.edu; Assign assign@noreply.github.com Subject: Re: [admindatahandbook/book] Pandoc breaks bibliography when same author team publishes across multiple years (#38)
Looks like you're right, just by looking at the references that's auto generated at the end of the book. Everything works properly there.
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://github.com/admindatahandbook/book/issues/38#issuecomment-696951072, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABVSQ6FZAMI5J2Y33SCCPBLSHD7XTANCNFSM4RWDQNTQ.
https://jimhshen.github.io/citationfootnotes/chapter-bib-issues.html
If Hawley went by Joshua Hawley instead of Joshua D. Hawley (and therefore didn't have a period in his name) we wouldn't have noticed this.
Opened bookdown issue here https://github.com/rstudio/bookdown/issues/952
In the Hawley chapter, the bibliography breaks when there are two entries with the same author team across different years. The default behavior and when using the chicago style CSL file suppresses the author names from the second item (correct), but generates a duplicate entry of the first item (not correct). The output is duplicated below:
The duplication issue does not seem to occur when its a single author, as seen in the output in below in the OLDA chapter and the NB-IRDT chapter where the government of canada (single author) has multiple entries, but also does not suppress the author name for the subsequent entry.
The entries in the bib files and the pandoc command from R are below.