"et al" in italic ?
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.
I am editing the harvard reference 1 style to fit my university's regulations on referencing. I have managed to make all of the changes except getting the et al in the in text citations. I am using csl 1.0 and can only get the citation to appear in italics if the name is not in the short form. I was wondering if anyone could give me more detail on how to do this.
Many thanks,
<citation
et-al-min="3"
et-al-use-first="1">
<layout>
<names variable="author">
<name form="short"/>
<et-al font-style="italic"/>
</names>
</layout>
</citation>
https://gist.github.com/
#
Error: Element sort from namespace http://purl.org/net/xbiblio/csl not allowed as child of element layout from namespace http://purl.org/net/xbiblio/csl in this context. (Suppressing further errors from this subtree.)
From line 217, column 1; to line 217, column 6
↩↩ <
#
Error: Attribute demote-non-dropping-particle not allowed on element bibliography from namespace http://purl.org/net/xbiblio/csl at this point.
From line 230, column 1; to line 230, column 110
tion>↩ ↩↩↩ ↩
I just translate my 0.8.1 CSL into 1.0 as explain here : http://citationstyles.org/downloads/upgrade-notes.html#using-upgrade-xsl
Now I try to get the new Et-al feature to work... My problem is that with firefox (chrome://zotero/content/tools/csledit.xul) everything seams to work.
For example I get this result :
Single Citations
(Bell et al., 2001)
Multi Citations (all with position "first")
(Bell et al., 2001)
Bibliography
Bell, J. G., J. McEvoy, D. R. Tocher, F. McGhee, P. J. Campbell et J. R. Sargent, 2001. Replacement of Fish Oil with Rapeseed Oil in Diets of Atlantic Salmon (Salmo salar) Affects Tissue Lipid Compositions and Hepatocyte Fatty Acid Metabolism. Journal of Nutrition 131:1535-1543.
But in OOo version 3.3.1 (build 9420) under Ubuntu 9.10 with Zotero plugin 3.5a1
I don't get my et al. italized...
Here my CSL style that I would like to publish when the et-al feature will be enabled :
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" default-locale="fr-FR" version="1.0" demote-non-dropping-particle="sort-only">
<info>
<title>ToCome</title>
<id>ToCome</id>
<link href="ToCome" rel="self"/>
<author>
<name>ToCome</name>
<email>richard_vezina@uqar.qc.ca</email>
<uri>http://www.uqar.ca/</uri>
</author>
<category citation-format="author-date"/>
<category field="biology"/>
<updated>2011-05-11T07:43:24+00:00</updated>
<rights>This work is licensed under a Creative Commons CC BY-NC-SA 3.0
</rights>
</info>
<macro name="container-contributors">
<choose>
<if type="chapter paper-conference" match="any">
<text term="in" prefix=" " suffix=" " font-style="italic"/>
<names variable="editor translator" delimiter=", " suffix=" ">
<name and="text" initialize-with=". " delimiter=", "/>
<label form="long" prefix=" (" suffix=")"/>
</names>
</if>
</choose>
</macro>
<macro name="secondary-contributors">
<choose>
<if type="chapter paper-conference" match="none">
<names variable="editor translator" delimiter=", " prefix=" (" suffix=")">
<name and="text" initialize-with=". " delimiter=", "/>
<label form="short" prefix=", " text-case="capitalize-first" suffix="." strip-periods="true"/>
</names>
</if>
</choose>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="first" and="text" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="never"/>
<label form="short" prefix=" (" suffix=".)" text-case="capitalize-first" strip-periods="true"/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="text" delimiter=" " initialize-with=". "/>
<et-al font-style="italic" prefix=" "/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<choose>
<if type="bill book graphic legal_case motion_picture report song" match="any">
<text variable="title" form="short" font-style="italic"/>
</if>
<else>
<text variable="title" form="short" quotes="true"/>
</else>
</choose>
</substitute>
</names>
</macro>
<macro name="publisher">
<text variable="genre" suffix=", "/>
<group delimiter=", ">
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</macro>
<macro name="event">
<text variable="event"/>
<text variable="event-place" prefix=", "/>
</macro>
<macro name="issued">
<choose>
<if variable="issued">
<group prefix=" " suffix=".">
<date variable="issued">
<date-part name="year"/>
</date>
<choose>
<if type="bill book graphic legal_case motion_picture report song article-journal chapter paper-conference" match="none">
<date variable="issued">
<date-part prefix=", " name="month"/>
<date-part prefix=" " name="day"/>
</date>
</if>
</choose>
</group>
</if>
<else>
<text prefix=" (" term="no date" suffix=")." form="short"/>
</else>
</choose>
</macro>
<macro name="issued-year">
<choose>
<if variable="issued">
<date variable="issued">
<date-part name="year"/>
</date>
</if>
<else>
<text term="no date" form="short"/>
</else>
</choose>
</macro>
<macro name="edition">
<choose>
<if type="bill book graphic legal_case motion_picture report song chapter paper-conference" match="any">
<choose>
<if is-numeric="edition">
<number variable="edition" form="ordinal" prefix=", "/>
<text term="edition" form="long" prefix=" " suffix=","/>
</if>
<else>
<text variable="edition" suffix=","/>
</else>
</choose>
</if>
</choose>
</macro>
<macro name="locators">
<choose>
<if type="article-journal article-magazine article-newspaper" match="any">
<text variable="container-title" prefix=". "/>
<text variable="volume" prefix=" "/>
<text variable="page" prefix=":"/>
</if>
<else-if type="bill book graphic legal_case motion_picture report song chapter paper-conference" match="any">
<text macro="container-contributors"/>
<text macro="secondary-contributors"/>
<text variable="container-title"/>
<group prefix=". " suffix=" " delimiter=" ">
<label variable="page" form="long" text-case="capitalize-first"/>
<text variable="page"/>
</group>
</else-if>
</choose>
</macro>
<macro name="citation-locator">
<group>
<label variable="locator" form="short"/>
<text variable="locator" prefix=" "/>
</group>
</macro>
<citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" collapse="year">
<sort>
<key macro="author"/>
<key variable="issued"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=", ">
<text macro="author-short"/>
<text macro="issued-year"/>
<text macro="citation-locator"/>
</group>
</layout>
</citation>
<bibliography hanging-indent="false" entry-spacing="0">
<sort>
<key macro="author"/>
<key variable="issued"/>
</sort>
<layout suffix=".">
<text macro="author" suffix=","/>
<text macro="issued" suffix=" "/>
<group suffix="">
<text variable="title"/>
<text macro="locators"/>
<text macro="edition"/>
</group>
<group delimiter=", ">
<text macro="publisher"/>
</group>
</layout>
</bibliography>
</style>
I put the et-al italic option into this block :
<macro name="author-short">
<names variable="author">
<name form="short" and="text" delimiter=" " initialize-with=". "/>
<et-al font-style="italic" prefix=" "/>
...
Thanks
Richard
Thanks
Richard
@cesium: Figure that this will be broken until the next release of Zotero comes out (version 2.1.7).
I wait you were on a short version schedule in the last update. Hope it gonna continue like this, so I will get the 2.1.7 soon.
Thanks for your help.
I will try what first propose fbennett and report, but as I wrote I would prefer to not have to redo the layout.
Richard
I am trying to italicize "et al" in an adapted version of the "Harvard - adapted for Leeds Met" style for use with my students (Oxford Brookes Business School).
I have tried to implement the suggestions in this thread, but wherever I put the italicization it appears to be overridden somehow.
I have tried it here (apologies for lack of blockquote - couldn't see how to do it):
<macro name="author-short">
<names variable="author">
<name form="short" and="symbol" delimiter=", " delimiter-precedes-last="never" initialize-with=". " />
<et-al font-style="italic" />
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
(nb: "et al" will only appear in citations not bibligraphy, so although there is a macro for "author" it wouldn't be required there)
I've also tried it in this section (everywhere there's a blank line):
<citation>
<option name="et-al-min" value="3"/>
<option name="et-al-use-first" value="1"/>
<option name="et-al-subsequent-min" value="3"/>
<option name="et-al-subsequent-use-first" value="1"/>
<option name="disambiguate-add-year-suffix" value="true"/>
<option name="disambiguate-add-names" value="true"/>
<option name="disambiguate-add-givenname" value="true"/>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=", ">
<text macro="author-short"/>
<text macro="year-date"/>
<group>
<label variable="locator" suffix="." form="short"/>
<text variable="locator"/>
</group>
</group>
</layout>
I'm not familiar with XML though I've managed to work out how to do most other formatting changes I need with the reference documents provided.
I am using the testing page at
chrome://zotero/content/tools/csledit.xul
TIA.
CSL 1.0 was the first CSL version to support "et al" italicization.
<names variable="author">
<name name-as-sort-order="all" initialize-with="." and="text" delimiter-precedes-last="always"/>
</names><code> for an author, then
<code><names variable="author">
<name name-as-sort-order="all" initialize-with="." and="text" delimiter-precedes-last="always"/>
<et-al font-style="italic"/>
</names>
Will put et al in italics.
It seems to work because there aren't any messge of error, but no modification in the preview.
So, I register the modification as "Cellmodified.csl" in my zotero files but I can't load it in my style gestionary.
Do you know what's happening here?
https://hastebin.com/abukuhimer.xml
I only put this supplementary line :