hayagriva icon indicating copy to clipboard operation
hayagriva copied to clipboard

Et-al handling in `ieee` citation style

Open drupol opened this issue 1 year ago • 7 comments

Description

Hello,

In the reference guide of the ieee citation style, I noticed the following in page 4:

NOTE: Use “et al.” when three or more names are given for a reference cited in the text.

The et al. replacement doesn't work in Typst. To illustrate that, I've created a simple page listing all the citation styles at : https://typst.app/project/pQH6zuFPPL_G4NlIOLx9K-

We can notice that in the IEEE style where there's more than 3 authors, the et al. is not displayed. Here's a screenshot:

image

Reproduction URL

https://typst.app/project/pQH6zuFPPL_G4NlIOLx9K-

Operating system

Linux

Typst version

  • [X] I am using the latest version of Typst

drupol avatar Mar 29 '24 14:03 drupol

I suspect this may be the same issue as https://github.com/typst/typst/issues/3699

Edit: It may also be that the official CSL style hasn't been updated to reflect changes to the IEEE guidelines

Enivex avatar Mar 29 '24 14:03 Enivex

While I was editing a CSL file, I had the impression that this might be caused by the fact that the author format uses the style defined in the bibliography element and not the one in the citation element.

So, if you have

  <bibliography et-al-min="4" et-al-use-first="1">
    ...
  </bibligraphy>

“et al.” is set for cited entries with more than three authors, but

  <citation et-al-min="4" et-al-use-first="1">
    ...
  </citation>

is ignored. Therefore, this could actually be a relatively simple fix.

JKRhb avatar Apr 05 '24 08:04 JKRhb

for a quick fix find and replace et-al-min="7" to et-al-min="3" in ieee.csl. Fixes the inline refs but bibliography references also changes to et al after 3 authors.

notPlancha avatar Oct 22 '24 11:10 notPlancha

for a quick fix find and replace et-al-min="7" to et-al-min="3" in ieee.csl. Fixes the inline refs but bibliography references also changes to et al after 3 authors.

You can set separate styles for the bibliography and citations

Enivex avatar Oct 22 '24 13:10 Enivex

You can set separate styles for the bibliography and citations

How?

notPlancha avatar Oct 30 '24 13:10 notPlancha

You can set separate styles for the bibliography and citations

How?

Cite and bibliography both have a style argument

Enivex avatar Oct 30 '24 13:10 Enivex

Oh yea, thanks. For anyone passing by, you can do

#set cite(style: "modified-ieee.csl")

and call the bibliography with

#bibliography("refs.bib", style: "ieee")

notPlancha avatar Oct 31 '24 17:10 notPlancha