Too many commas appearing after author names in bibliography

Hi

I am having a bit of trouble with a custom style I developed for my thesis.

Where I have references with three or more authors, all but the last two authors have an extra comma after their name in the bibliography.

For example, the citation (Abrahamse, Steg, Vlek and Rothengatter, 2007) produces the following list of authors in the bibliography:

Abrahamse, W.,, Steg, L.,, Vlek, C., and Rothengatter, T., 2007.

Please note the double commas after W. and L.

I am not sure what part of the code to examine to find out where it has gone wrong so any help would be most welcome.

Please also let me know if I can provide you with any further details.

Thanks
Alex
  • edited August 20, 2015
    we'd like to see the whole code. Please don't paste it here.
    Copy&paste to gist.github.com --> Create public gist and post the URL here. You won't need to register for a github account if you don't want to.
  • Hi, thanks again, you have been really helpful.

    I looked at line 38 and found it had a delimiter but not a suffix so I decided to remove the suffix from line 26.

    However I would like to understand where I went wrong and I am having trouble with this. As far as I understand it:
    * Line 26 puts a suffix after all but the last two authors when there are three or more authors, the suffix is a comma
    * The delimiter goes between all but the last author name

    I had a read of a couple of csl websites but I still cannot get my head round where I went wrong, if you have a spare moment please could you point me in the right direction?

    Thanks
  • My link was to line 26, sorry if that caused confusion.

    you basically never want to use a suffix on cs:name
    What it does is, it adds the suffix after each listed name. So this:
    Line 26 puts a suffix after all but the last two authors when there are three or more authors, the suffix is a comma
    is incorrect. None of these qualifiers apply: it's a comma after every name. And since your description of what the delimiter does is correct, that means, in total, you get 2 commas after each but the last two authors.
  • That is great, thank you for clearing that up for me, I really appreciate it.
Sign In or Register to comment.