commit b83dd8aa998bb7eb61aea3b6b9351081e32e29b9
parent 50497260193854935662ba2fa149e6096df120a3
Author: David Kaplan <David.Kaplan@ird.fr>
Date: Fri, 23 May 2008 09:58:33 +0000
Making several minor changes to agu.csl to remove extra spaces that
were being added to references. I think these should work with most
references, but I haven't checked with all possible reference types
(for example books).
Also added a sort key for the bibliography based on the publication
year, but it is really hard to know if this is correct as sorting of
bibliographies in OpenOffice with the plugin seems to have bugs.
Also, added a sort by authors then year to the citation format. I
believe this is correctly done and testing with the openoffice plugin
suggests that it is having some effect, though it isn't working quite
right (sometimes doesn't sort authors correctly - it seems to have
problems with et al. citations).
Diffstat:
1 file changed, 14 insertions(+), 9 deletions(-)
diff --git a/csl/agu.csl b/csl/agu.csl
@@ -16,7 +16,7 @@
</info>
<macro name="editor">
<names variable="editor" delimiter=", ">
- <label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
+ <label form="verb" text-case="lowercase" suffix=" "/>
<name and="text" initialize-with=". " delimiter=", " name-as-sort-order="all"/>
</names>
</macro>
@@ -145,6 +145,10 @@
<option name="disambiguate-add-names" value="false"/>
<option name="disambiguate-add-givenname" value="false"/>
<option name="collapse" value="year"/>
+ <sort>
+ <key macro="author"/>
+ <key macro="year-date"/>
+ </sort>
<layout prefix="[" suffix="]" delimiter="; ">
<group delimiter=", ">
<group delimiter=", ">
@@ -161,16 +165,17 @@
<option name="et-al-use-first" value="1"/>
<sort>
<key macro="author"/>
+ <key macro="year-date"/>
<key variable="title"/>
</sort>
<layout>
- <group delimiter=" " suffix=", ">
+ <group delimiter=" " suffix=",">
<text macro="author" />
<text macro="year-date" prefix="(" suffix=")"/>
</group>
<choose>
<if type="book">
- <group delimiter=", " suffix=".">
+ <group delimiter=", " prefix=" " suffix=".">
<text macro="title"/>
<text macro="edition"/>
<text macro="editor" />
@@ -179,17 +184,17 @@
</group>
</if>
<else-if type="chapter">
- <group delimiter=", " suffix=".">
- <text macro="title" prefix=" "/>
+ <group delimiter=", " prefix=" " suffix=".">
+ <text macro="title"/>
<text macro="container"/>
<text macro="refpages"/>
- <text macro="publisher" prefix=" "/>
+ <text macro="publisher"/>
</group>
</else-if>
<else>
- <group suffix=",">
- <text macro="title" prefix=" " />
- <text macro="editor" prefix=" "/>
+ <group delimiter=", " suffix="," prefix=" ">
+ <text macro="title"/>
+ <text macro="editor"/>
</group>
<group class="container" prefix=" " suffix=".">
<text variable="container-title" font-style="italic"/>