Help with writing new CSL style
I'm trying to write a new CSL style for the journal Animal.
http://www.animal-journal.eu/instructions_to_authors.htm
Currently have 3 problems...
A) Sorting of references in the bibiliography:
As per instructions to authors:
"Literature cited should be listed in alphabetical order of authors, and not numbered.
For a same first author, the rank of references will be
i) publications with one author ranked by year;
ii) publications with two authors ranked by year;
iii) publications with more than two authors ranked by year
then, if necessary, by alphabetical order of the second author."
My thinking about how to do this:
* make a new macro (author-first) that just pulls out the first author.
* make a new macro (author-count) that counts the number of authors. I
Constrain author-count to max of 3.
* Sort on macro author-first
* Sort on macro author-count
* Sort on issue
* Sort on author
Is that approach possible/sensible for CSL?
B) Formatting collapse value="year" for citation
As per instructions to authors:
"Multiple references should be as follows:
Wright et al., 1993 and 1994; Wright et al., 1993a and 1993b"
Currently I get:
Wright et al., 1993, 1994; Wright et al., 1993a, 1993b
I think I need something like:
<citation>
...
<option name="collapse" value="year" and="text" />
...
</citation>
but that doesn't work. Any other ideas?
C) The example citations in the instructions to authors all use italicized "et al."s
Looking through the forum, this has come up at least 2 other times number of times.
Is there any light at the end of this tunnel?
Thanks for any pointers.
http://www.animal-journal.eu/instructions_to_authors.htm
Currently have 3 problems...
A) Sorting of references in the bibiliography:
As per instructions to authors:
"Literature cited should be listed in alphabetical order of authors, and not numbered.
For a same first author, the rank of references will be
i) publications with one author ranked by year;
ii) publications with two authors ranked by year;
iii) publications with more than two authors ranked by year
then, if necessary, by alphabetical order of the second author."
My thinking about how to do this:
* make a new macro (author-first) that just pulls out the first author.
* make a new macro (author-count) that counts the number of authors. I
Constrain author-count to max of 3.
* Sort on macro author-first
* Sort on macro author-count
* Sort on issue
* Sort on author
Is that approach possible/sensible for CSL?
B) Formatting collapse value="year" for citation
As per instructions to authors:
"Multiple references should be as follows:
Wright et al., 1993 and 1994; Wright et al., 1993a and 1993b"
Currently I get:
Wright et al., 1993, 1994; Wright et al., 1993a, 1993b
I think I need something like:
<citation>
...
<option name="collapse" value="year" and="text" />
...
</citation>
but that doesn't work. Any other ideas?
C) The example citations in the instructions to authors all use italicized "et al."s
Looking through the forum, this has come up at least 2 other times number of times.
Is there any light at the end of this tunnel?
Thanks for any pointers.
This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage
Thanks to Rintze for the news on italicized "et al."s.
http://forums.zotero.org/discussion/5584/authors-and-et-al-formatting/#Item_4
Good to know that it is in the works.
http://sourceforge.net/mailarchive/forum.php?forum_name=xbiblio-devel
Your example under B) is tricky though. What happens when three papers are referenced by the same author? I guess it should become something like
"Wright et al., 1992, 1993 and 1994"
instead of
"Wright et al., 1992 and 1993 and 1994"
"Wright et al., 1992, 1993 and 1994"
although that is not specified explicitly in the instructions to authors. This would mirror the behaviour for listing authors so perhaps some of the specification logic used there could be re-used in this instance.
Thanks yes I see there is discussion there on both A) and B).
From the thread on Counting Authors I wasn't clear whether any of the talk about counting authors was currently possible or not. Can you clear that up for me?
http://sourceforge.net/mailarchive/forum.php?thread_name=53208a5f0904060821x53a12429gfaffd3dd36d5adca%40mail.gmail.com&forum_name=xbiblio-devel
Do you have any idea of what sort of time frames are usually at work here? (Not being pushy - just want to know what to expect!)
But it's good to bring up these issues as they can help steer development somewhat.