Skip to content
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

"et al."ing the third-nth author after the first in text citation not working #488

Closed
TaymAlsalti opened this issue Nov 12, 2021 · 6 comments

Comments

@TaymAlsalti
Copy link

According to the APA 7th edition manual, works with 3 or more authors should be cited as "First author et al." in-text. Papaja implemented the 6th edition but the rule in that edition saying that the second and subsequent in-text citations should look like ""First author et al." also doesn't seem to work: Two subsequent in-text citations).

@crsh
Copy link
Owner

crsh commented Nov 12, 2021

Hi there, thanks for reaching out.

First, support for the 7th edition is forthcoming. If you are interested see #342. In the meantime, you can achieve 7th-edition citations and references by adding the following to the YAML front matter:

csl: "`r system.file('rmd', 'apa7.csl', package = 'papaja')`"

Second, generally et-al-ing works (it's done by the pandoc filter citeproc, not by papaja). I'm not sure what the issue seems to be in your case, but I'd be happy to take a look at it, if you can provide a minimal reproducible example.

@TaymAlsalti
Copy link
Author

Ah, damn it. I closed it by mistake. One second.

@TaymAlsalti TaymAlsalti reopened this Nov 12, 2021
@TaymAlsalti
Copy link
Author

Thank you so much for the quick reply! Unfortunately the references don't work at all with this csl line. You can find an .rmd file containaing two identical in-text citations as well as the reference .bib file in this OneDrive folder. Is this fine? I'm new to this repro thing.

@crsh crsh added the unrelated label Nov 12, 2021
@crsh
Copy link
Owner

crsh commented Nov 12, 2021

Sorry, I was probably unclear. For 7th edition to work, you need use the development version (remotes::install_github("crsh/papaja@devel")).

Regarding et al: I can indeed reproduce the problem but as I have noted elsewhere it seems to be unrelated to papaja. The same problem occurs even if papaja is not involved at all:

---
title             : "Title"

references:
- type: chapter
  id: veveaPublicationBias2019
  author:
  - family: Vevea
    given: Jack L.
  - family: Coburn
    given: Kathleen
  - family: Sutton
    given: Alexander
  editor:
  - family: Cooper
    given: Harris
  - family: Hedges
    given: Larry V.
  - family: Valentine
    given: Jeffrey C.
  issued:
    date-parts:
    - - 2019
  title: Publication Bias
  container-title: The Handbook of Research Synthesis and Meta-Analysis
  page: 383-430
  publisher: Russell Sage Foundation
  doi: 10.7758/9781610448864.21
  language: en-GB

csl: "https://www.zotero.org/styles/apa-6th-edition?source=1"
output: pdf_document
---

First in-text citation: [@veveaPublicationBias2019].

Second in-text citation: [@veveaPublicationBias2019].

This tells me that it's either a problem with the apa6.csl or, and this seems more likely to me, with citeproc. I will open an issue over at that repository. In the meantime you could try switching to biblatex like so:

bibliography      : references.bib
biblio-style      : "apa"

output:
  papaja::apa6_pdf:
    citation_package: biblatex

@crsh
Copy link
Owner

crsh commented Nov 12, 2021

Okay, so it turns out this has already been reported and fixed. So, we will either have to wait until RStudio ships the new version of citeproc or, for those not willing to wait, install pandoc and citeproc independently of RStudio.

@crsh crsh closed this as completed Nov 12, 2021
@TaymAlsalti
Copy link
Author

Thanks again! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants