JabRef / jabref

Graphical Java application for managing BibTeX and biblatex (.bib) databases
https://devdocs.jabref.org
MIT License
3.58k stars 2.5k forks source link

et al formatting in group citation #3723

Closed vanukalla closed 6 months ago

vanukalla commented 6 years ago

I added some stylefiles in the jstyle section on github (as issue) and am working on another one. For this one I need author-year citations with the et al in italics - like this:

(Nader et al, 1983; Rueffer et al, 2001; Di Bisceglie et al, 2013)

What I do get is: (Nader et al, 1983; Rueffer et al, 2001; Di Bisceglie et al, 2013)

The first et al is in italics, the rest not. If the citations are added separately, they are put separately and the et al string is italic in both:

(Yang et al, 2011) (Campo et al, 2011)

In the stylefile, the citation arguments are defined like this: CITATION AuthorField=author/editor YearField="year" MaxAuthors=2 AuthorSeparator=", " AuthorLastSeparator=" & " EtAlString=" et al" ItalicEtAl="true" CitationSeparator="; " MultiCiteChronological=true BracketBefore="(" BracketAfter=")" CitationCharacterFormat="Default Style" FormatCitations="true" UniquefierSeparator=", " InTextYearSeparator=" " YearSeparator=", "

So according to documentaion, the et al should be in italics. Why is, in a group, only the first et al formatted and not the rest?

lenhard commented 6 years ago

Thanks for reporting!

This is not really down to JabRef, as far as I know. We just use citeproc-java for processing the style files and formatting the output. We don't do any customization here. So, you should probably report the issue there.

Siedlerchr commented 6 years ago

@lenhard In this case it is part of JabRef. JStyle files are the files JabRef uses for formatting citations in OpenOffice/LibreOffice. That's our custom things. In the future we should get rid of our custom thing and use CSL #2146

lenhard commented 6 years ago

Darn... Sorry for the confusion and thanks for correcting me @Siedlerchr

subhramit commented 6 months ago

Is this issue solved now?

koppor commented 6 months ago

@subhramit I don't think so. Could be a good issue to dive into the OO/LO code of JabRef.

subhramit commented 6 months ago

Could someone see if they can reproduce this? I tried, and for some reason it works alright in mine:

image

(I used the same stylefile as in the PR description, with CitationCharacterFormat="Default Style" removed as it was giving some trouble, could that have affected anything?)

vanukalla commented 6 months ago

I`ll be happy to test this but earliest on Tuesday.

vanukalla commented 6 months ago

You are absolutely right - it is working for me, too! And I used my original style file which gave the issue at the time when I observed this issue.

citation

Might as well have been some problem with the LO version at that time. I consider this issue as solved. Thanks for testing, subhramit!

subhramit commented 6 months ago

You are absolutely right - it is working for me, too! And I used my original style file which gave the issue at the time when I observed this issue.

citation

Might as well have been some problem with the LO version at that time. I consider this issue as solved. Thanks for testing, subhramit!

No issues, thank you for confirming! :)