First author not repeated after citation in bibliogrophy

I am having an issue creating a style. I want my citations to appear as [Author00], and in the bibliography they should be listed with the citations as follows:

[FirstAuthor00] First Author, Second Author, Third Author, other stuff...

[SomeGuy12] Some Guy, Second Author, ...

and so on. The problem I'm having is that the first value of the name used inside the brackets doesn't get repeated in the author list, so I get:

[FirstAuthor00] Second Author, Third Author, other stuff...

It's even weirder when there are lots of authors because then I get:

[FirstAuthor00] Second Author et al., other stuff....

Does anyone know why this is happening or how I can fix it? My bibliography section looks like:
<layout>
<text macro="cite"/>
<text macro="author"/>
and so on, where author is all the authors (or should be) and cite is just the first one with brackets and year.

Thanks!
  • Do you have et-al-min="1" and et-al-use-first="1"? If so, try setting et-al-min to 2; it will have the same effect, and you won't lose the first author's name.
  • Thanks for your help! I did have it set that way, and changing it to 2 fixes the problem of losing one of the authors names, but it puts et al. in my citations which I don't want. So for example now I get:

    [FirstAuthor00 et al.] First Author, Second Author, Third Author, other stuff...

    I tried setting term="" in the et-al element, but this doesn't compile. From reading the spec the only valid options are "et-al" or "and others"?
  • you can specify the et-al term (and the "and others" term) to be whatever you want in the terms section of the style, as described here:
    http://citationstyles.org/downloads/specification.html#locale

    so one option would be to use "and others" for the lable in brackets and set it to an empty string and then still have et-al (if you need it) for the regular author list.
  • You shouldn't be getting the et al. term on a citation label, and I'm unable to reproduce that behaviour. Could you paste the code of your style to http://gist.github.com, save it as a Public Gist and post the URL back here?
  • This worked perfectly! Thanks.
  • Looks like I misunderstood. The bracketed author is just the full author name?
  • edited November 19, 2012
    I'm not sure if you're still interested in this given that adamsmith's solution worked, but if you are I put my code (without the <locale> fix) here:
    https://gist.github.com/4114424

    edit- The bracketed author is just the last name, so I used form="short". I guess that wasn't clear from my examples.
  • Right, got it. I just misunderstood the formatting you were after.
Sign In or Register to comment.