Problems with et al
Hi guys,
I hope someone can help. I edited an existing style for my own needs, and everything is working 100%, except for et al. My citation style (a form of Harvard) demands that et al should be italicized. I manage it quite ok, except that whenever et al is used in an in-line citation, the date and page number are also italicized, i.e. (I added <i>...</i> to show which part appears in italics in my documents)
(Waltke <i>et al., 2014:80)</i>
It should only be
(Waltke <i>et al.</i>, 2014:80)
Here is a snippet from my author-sort macro:
<macro name="author-short">
<names variable="author" font-style="normal">
<name form="short" font-style="normal" and="symbol" initialize-with=". "/>
<et-al font-style="italic"/>
<substitute>
<names variable="editor" font-style="normal"/>
<names variable="translator"/>
<choose>
<if type="report">
<text variable="publisher"/>
<text variable="title" form="short" font-style="italic"/>
</if>
<else-if type="legal_case">
<text variable="title" font-style="italic"/>
</else-if>
<else-if type="bill book graphic legislation motion_picture song" match="any">
<text variable="title" form="short" font-style="italic"/>
</else-if>
<else>
<text variable="title" form="short" quotes="true"/>
</else>
</choose>
</substitute>
</names>
</macro>
Is there a way to prevent the Italics of et-al bleeding into my date and page number text?
Thanks
I hope someone can help. I edited an existing style for my own needs, and everything is working 100%, except for et al. My citation style (a form of Harvard) demands that et al should be italicized. I manage it quite ok, except that whenever et al is used in an in-line citation, the date and page number are also italicized, i.e. (I added <i>...</i> to show which part appears in italics in my documents)
(Waltke <i>et al., 2014:80)</i>
It should only be
(Waltke <i>et al.</i>, 2014:80)
Here is a snippet from my author-sort macro:
<macro name="author-short">
<names variable="author" font-style="normal">
<name form="short" font-style="normal" and="symbol" initialize-with=". "/>
<et-al font-style="italic"/>
<substitute>
<names variable="editor" font-style="normal"/>
<names variable="translator"/>
<choose>
<if type="report">
<text variable="publisher"/>
<text variable="title" form="short" font-style="italic"/>
</if>
<else-if type="legal_case">
<text variable="title" font-style="italic"/>
</else-if>
<else-if type="bill book graphic legislation motion_picture song" match="any">
<text variable="title" form="short" font-style="italic"/>
</else-if>
<else>
<text variable="title" form="short" quotes="true"/>
</else>
</choose>
</substitute>
</names>
</macro>
Is there a way to prevent the Italics of et-al bleeding into my date and page number text?
Thanks
https://gist.github.com/anonymous/10af3dec2a20a6c2556b
(Note, there are two small erros in your style, which you might want to correct...)
:-D
If you install this patch plugin, the problem should go away. You will want to disable or remove the plugin at the next Zotero release (after 4.0.27).
So if I remove the "unnecessary" font styles, the problem should resolve without the patch?
Any advice on how to remove the other two errors you picked up. I am not well versed in CSL syntax.
Thanks again for all your help.
It has to be from this list:
http://docs.citationstyles.org/en/latest/specification.html#appendix-i-categories
(this won't actually break anything, but we wouldn't accept it to the repository & Zotero will tell you it's invalid when you install).
2) line 375 is missing variable="locator"
I made the necessary changes and now my code pass the Validation.