dan-weiss / apa7-latex-cls-source

Source code for apa7 class
LaTeX Project Public License v1.3c
49 stars 13 forks source link

Order of years in parenthetical citations of different articles by same authors #42

Closed pablobernabeu closed 2 years ago

pablobernabeu commented 2 years ago

Hello,

Thank you for this very helpful package.

I would like to report a minor bug. The years of publication are not ordered chronologically in parenthetical citations showing the same authors. For instance,

(Günther et al., 2021, 2018)

instead of

(Günther et al., 2018, 2021)

The bug does not seem to be affected by any of the following factors: reference tags used, order of reference tags in the Rmd, order of references in the .bib file.

I'm using the following configuration in the papaja manuscript:

csl:                apa.csl
documentclass:      apa7
classoption:        man

The bug can be reproduced using, for instance, the following references

Thank you very much for your attention

dan-weiss commented 2 years ago

The citations and references are not handled by the apa7 class but rather the biblatex-apa class. When I use the \parencite{} command with these two references, I get

(Gunther et al., 2018; Gunther et al., 2021)

I'm not sure why it doesn't collapse them together (I did a test, and it will if the whole author list is the same). You can reach out to the authors of the biblatex-apa class and see if they can help.

pablobernabeu commented 2 years ago

Thanks a lot for all the information

I've now submitted an issue here: https://github.com/plk/biblatex-apa/issues/152

pablobernabeu commented 2 years ago

Hi @dan-weiss,

A patch has now been created in biblatex-apa: https://github.com/plk/biblatex-apa/issues/152#issuecomment-1046285491