& al. instead of et al.
Hi,
I want to use the csl style for this journal: http://www.myrmecologicalnews.org/.
The problem here is that this style uses "& al." I saw that it was possible to use "and others" instead of "et al.", but apparently it is not possible to specify "& al." . I guess it shouldn't be hard to implement, as there is already an option to use "and others". Is it really not possible to specify & al. or did I miss something ? Is this changed planned in a near future ?
Another problem with this style is the use of hyphen instead of n-dash...
thanks for your help.
Tim
I want to use the csl style for this journal: http://www.myrmecologicalnews.org/.
The problem here is that this style uses "& al." I saw that it was possible to use "and others" instead of "et al.", but apparently it is not possible to specify "& al." . I guess it shouldn't be hard to implement, as there is already an option to use "and others". Is it really not possible to specify & al. or did I miss something ? Is this changed planned in a near future ?
Another problem with this style is the use of hyphen instead of n-dash...
thanks for your help.
Tim
<locale>
<terms>
<term name="page-range-delimiter">-</term>
<term name="et-al">& al.</term>
</terms>
</locale>
http://citationstyles.org/downloads/specification.html#locale
thanks for your reply. Unfortunately this command works fine for any command I tested except "& al." ! It seems there is a problem with the & character. When I test it, at least with Papers in Word, I get ERROR_TEXT_MESSAGE instead of the citation.
Edit: @zotero devs, interestingly, to get this to show up correctly, I had to use & amp;amp;amp; (minus the space). For whatever reason, the forum chews up one of the "amp;"s. It shows up as a double amp; in the ATOM feed. It would be quite confusing to tibr if it showed up as a double amp; in the email as well. Hopefully it doesn't.
There is still one more "problem": the author names are in capitals (as they should be), but the "AL." is also in capitals but il should not. eg: I have (SMITH & AL. 2008) but would like to have (SMITH & al. 2008). is there a way to have only the "al." not in capitals ?
thanks again !
Tim
http://citationstyles.org/downloads/specification.html#et-al
The "right way" is to use name-part subnodes. There is an example here:
http://citationstyles.org/downloads/specification.html#name-part-formatting
I'll try to add the style to the repository... : )
I tried the second one, but I'm not sure how to use it... I tried font-variant and font-style, but nothing seems to have any effect...Do I place it right ?
<macro name="author-short">
<names variable="author">
<name form="short" font-variant="small-caps" and="symbol" delimiter-precedes-last="never" et-al-min="3" et-al-use-first="1" initialize-with=". "/>
<name-part name="family" font-variant="normal"/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" font-variant="small-caps"
and="symbol" delimiter-precedes-last="never"
et-al-min="3" et-al-use-first="1" initialize-with=". ">
<name-part name="family" text-case="uppercase"/>
<name-part name="given" text-case="uppercase"/>
</name>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="anon"/>
</substitute>/>
</names>
</macro>
the only way to get exactly what I want is like this:
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with="." delimiter-precedes-last="never" delimiter=", "/>
<label form="short" prefix=" " suffix="." text-case="lowercase"/>
<substitute>
<names variable="editor"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" font-variant="small-caps" and="symbol" delimiter-precedes-last="never" et-al-min="3" et-al-use-first="1" initialize-with=". "/>
<et-al term="& al." />
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="anon"/>
</substitute>/>
</names>
</macro>
I guess it's ok even if it is not accepted in the repository... maybe I can still send it to the journal so that they can replace what they now have on their webpage, because it doesn't work properly...(http://www.myrmecologicalnews.org/cms/zotero/Myrmecological News.csl) at least other will be able to benefit from it, as it seems to work well...
(You really do want to be sure the style is valid CSL. Invalid code that works with my processor may break in a later version, or when run in other programs. If it's valid CSL, it will work everywhere.)
here it is: https://gist.github.com/tibr81/5481492
https://gist.github.com/adam3smith/5482092
your style had a good chunk of problems (i.e. it didn't validate), so I'm not surprised it did weird things
so, i re-tried fbennett's suggestion, to use
<name-part name="family" text-case="uppercase"/>
<name-part name="given" text-case="uppercase"/>
but all this does is putting author names in capitals (which I do not want, as I want "minicaps") and leaves the AL in minicaps, where I would want lowercase "& al."
Again the only way to make it work is to use this command : <et-al term="& al." />
but of course I tried to validate it (http://simonster.github.io/csl-validator.js/) and it doesn't work...
text-case="uppercase"
with:
font-variant="small-caps"
the command <name-part ...> will apparently change the author name, but not the "al"
the command <et-al term="& al." /> changes only the "&al." and works, but then it's not allowed for validation...
Your use case is not unusual, and CSL will satisfy your requirements. You just have to stay within the terms of the specification (linked above).
thanks again for your great help !
Tim
<name form="short" font-variant="small-caps" and="symbol" delimiter-precedes-last="never" et-al-min="3" et-al-use-first="1" initialize-with=". "/>
That's why it currently gets applied to et-all, too.
now, just one last thing before this style is 100% correct:
the journal requires a hyphen and not an n-dash, but the command you suggested before doesn't work:
<term name="page-range-delimiter">-</term>
I still get an n-dash when I test it...
I also tested it with text edit, but nothing changes... Whatever the sign I put in page-range delimiter, it always gives an n-dash...
Thanks again for your great help! That gave me a small introduction to csl, I'll try to get more into it and maybe contribute to other styles : )