Skip to content

Instantly share code, notes, and snippets.

@bdarcus
Created June 17, 2011 01:35
Show Gist options
  • Select an option

  • Save bdarcus/1030700 to your computer and use it in GitHub Desktop.

Select an option

Save bdarcus/1030700 to your computer and use it in GitHub Desktop.
>>===== MODE =====>>
bibliography
<<===== MODE =====<<
>>===== RESULT =====>>
Doe, J. and S. Jones, 1999a
Doe, J. and S. Jones, 1999b
Doe, J. and S. Smith, 1999a
Doe, J. and S. Smith, 1999b
<<===== RESULT =====<<
>>===== CSL =====>>
<style
xmlns="http://purl.org/net/xbiblio/csl"
class="in-text"
version="1.0">
<info>
<id />
<title />
<updated>2011-06-10T04:49:00+09:00</updated>
</info>
<macro name="date">
<date variable="issued">
<date-part name="year" />
</date>
<text variable="year-suffix" />
</macro>
<macro name="author">
<names variable="author">
<name delimiter=", " initialize-with=". " and="text"/>
</names>
</macro>
<citation
disambiguate-add-year-suffix="true">
<!-- don't need this, so ...?? -->
</citation>
<bibliography>
<sort>
<key macro="author"/>
<key variable="date" />
</sort>
<layout>
<key macro="author" suffix=", "/>
<key macro="date"/>
</layout>
</bibliography>
</style>
<<===== CSL =====<<
>>===== INPUT =====>>
[
{
"author": [
{
"family": "Asthma",
"given": "Albert",
"static-ordering": false
},
{
"family": "Bronchitis",
"given": "Bosworth",
"static-ordering": false
}
],
"id": "suffix1",
"issued": {
"date-parts": [
[
"1999"
]
]
},
"title": "Book A",
"type": "book"
},
{
"author": [
{
"family": "Asthma",
"given": "Albert",
"static-ordering": false
},
{
"family": "Bronchitis",
"given": "Bosworth",
"static-ordering": false
}
],
"id": "suffix2",
"issued": {
"date-parts": [
[
"1999"
]
]
},
"title": "Book B",
"type": "book"
},
{
"author": [
{
"family": "Asthma",
"given": "Albert",
"static-ordering": false
},
{
"family": "Flu",
"given": "Smith",
"static-ordering": false
}
],
"id": "suffix3",
"issued": {
"date-parts": [
[
"1999"
]
]
},
"title": "Book C",
"type": "book"
},
{
"author": [
{
"family": "Asthma",
"given": "Albert",
"static-ordering": false
},
{
"family": "Flu",
"given": "Smith",
"static-ordering": false
}
],
"id": "suffix4",
"issued": {
"date-parts": [
[
"1999"
]
]
},
"title": "Book D",
"type": "book"
}
]
<<===== INPUT =====<<
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment