Problems creating a CSL style: name first author multiple times in biography entry
I am currently trying to generate a CSL style that adheres to a somewhat weird format I need to follow in a document:
In general it is a author-year style citation format. The specifics are:
Inline citations are of the form:
[Accadia12] or [Accadia12;Ahlquist68] for multiple references. So first authors family name followed by the truncated year.
Bibliography should be of the form:
[Accadia12] T. Accadia, F. Acernese, M. Alshourbagy, P. Amico, F. Antonucci, S. Aoudia, et al., J. Instrum. 7, P03012–P03012 (2012).
So it is a repetition of the inline citation form, followed by authors etc.
I used the Elsevier Harvard Style by David Kaplan as a basis and almost got everything working. However, there is a slight problem
* I can create the first author family name by creating a Names field with author name (with only name-part family) and setting et-al-min as well as et-al-use-first both to "1"
* This works great for the inline citations. However, when I do this in the bibliography, I run into a problem:
The first author (who is already named in repetition of the the inline citation) is omitted from the next Names field that contains the authors. The result is:
[Accadia12] F. Acernese, M. Alshourbagy, P. Amico, F. Antonucci, S. Aoudia, et al., J. Instrum. 7, P03012–P03012 (2012).
Instead of what I want:
[Accadia12] T. Accadia, F. Acernese, M. Alshourbagy, P. Amico, F. Antonucci, S. Aoudia, et al., J. Instrum. 7, P03012–P03012 (2012).
You can find a copy of the style where I have this problem here: http://pastebin.com/UnkF1p5i
Does anyone know how I can force the first author to appear once again?
If I add another names field with authors afterwards, all authors are named (it seems the stack of author names is only reset once it is emptied?). I did not find anything regarding this in the CSL documentation.
Thanks in advance, this really confuses me,
Stephan
In general it is a author-year style citation format. The specifics are:
Inline citations are of the form:
[Accadia12] or [Accadia12;Ahlquist68] for multiple references. So first authors family name followed by the truncated year.
Bibliography should be of the form:
[Accadia12] T. Accadia, F. Acernese, M. Alshourbagy, P. Amico, F. Antonucci, S. Aoudia, et al., J. Instrum. 7, P03012–P03012 (2012).
So it is a repetition of the inline citation form, followed by authors etc.
I used the Elsevier Harvard Style by David Kaplan as a basis and almost got everything working. However, there is a slight problem
* I can create the first author family name by creating a Names field with author name (with only name-part family) and setting et-al-min as well as et-al-use-first both to "1"
* This works great for the inline citations. However, when I do this in the bibliography, I run into a problem:
The first author (who is already named in repetition of the the inline citation) is omitted from the next Names field that contains the authors. The result is:
[Accadia12] F. Acernese, M. Alshourbagy, P. Amico, F. Antonucci, S. Aoudia, et al., J. Instrum. 7, P03012–P03012 (2012).
Instead of what I want:
[Accadia12] T. Accadia, F. Acernese, M. Alshourbagy, P. Amico, F. Antonucci, S. Aoudia, et al., J. Instrum. 7, P03012–P03012 (2012).
You can find a copy of the style where I have this problem here: http://pastebin.com/UnkF1p5i
Does anyone know how I can force the first author to appear once again?
If I add another names field with authors afterwards, all authors are named (it seems the stack of author names is only reset once it is emptied?). I did not find anything regarding this in the CSL documentation.
Thanks in advance, this really confuses me,
Stephan
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage
However, it works without problems for works by a single author. I fear I will just need to clean up the bibliography by hand afterwards.
This is the first time I work with CSL files and while editing them is certainly more straightforward than working with bibtex style files (the preview in the visual editor is great!), working with these kind of unintuitive and hardly documented features feels frustrating and I would wish for the language to be a bit more powerful.
The passage on it in the CSL Specification is here.
This only depends the one line where command it to use "and others" instead of "et-al":
<names variable="author">
<et-al term="and others" font-style="italic"/> % <!--This line-->
<!-- more code -->
</names>
If I leave this part out, Zotero does not throw an error. Is this due to a malformed part somewhere else in my CSL file or is this option simply not supported by Zotero?
Thanks to you guys for the help by the way, you have been much more help to me than my digging through the CSL reference.
Weirdly, a colleague managed to set up the visual CSL editor with the version 1.1.101 of citeproc-js and it did not throw any errors on the CSL file, while Zotero still does.
Anyways, I am just happy it works (and at this point, I could have written all the citations and the bibliography by hand and it would have been faster than my adventures in CSL wonderland :)
If anyone is interested in my weird style file or runs into similar problems, I have uploaded the last version of the file here:
http://pastebin.com/Gn0XAwru
https://gist.github.com/adam3smith/f9e9959286b4a72d5aebd2cdf079872e
Your placement of the term is invalid, note the "which must follow the cs:name element (if present)" part here: http://docs.citationstyles.org/en/stable/specification.html#et-al
You have it after cs:substitute
The visual editor doesn't actually validate, and the behavior of the processor for non-validating styles may occasionally change.
Thank you both for your time! And sorry if I sounded a bit harsh about what I now realize is your software, fbennett. I think that a great point of CSL is, that it is really easy to write the citation style you need for almost every journal with it (especially if you start with a template and use the visual editor). I still wonder whether implementing a more complete language would not make it much easier to handle these very specific cases (it's always the last 5% of all users that need a million special cases and flags to mold your software to their very specific needs). But then, I think you have probably thought about this much more, longer and with more experience of the problem domain than I did, so my view does probably not add a lot.