Skip to content

Instantly share code, notes, and snippets.

@tom-newhall
Created December 11, 2023 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tom-newhall/0fed949bae85456d69c6b3fabca246b3 to your computer and use it in GitHub Desktop.
Save tom-newhall/0fed949bae85456d69c6b3fabca246b3 to your computer and use it in GitHub Desktop.
JSON CSL demo
```json
{
"id": "otani-2016",
"author": [{ "family": "Ōtani", "given": "Yūka 大谷由香" }],
"citation-key": "otani-2016",
"container-title": "Nihon Bukkyō sōgō kenkyū 日本仏教綜合研究",
"DOI": "10.20588/nbs.14.0_105",
"ISSN": "1348-4850",
"issued": { "date-parts": [["2016"]] },
"language": "jpn",
"note": "cjk-title: 日本仏教綜合研究",
"page": "105–132",
"publisher": "日本仏教綜合研究学会",
"source": "search.library.ucla.edu",
"title": "(Ronbun) Nissōsō Shunjō wo hattan toshita nissōkan 'Enshū kaitai' ronsō[論文]入宋僧俊芿を発端とした日宋間「円宗戒体」論争",
"type": "article-journal",
"volume": "14"
}
```
And here is the part of the CSL file that I think is relevant: This is based on the Chicago 17e author-date style.
``````
< /macro>
<macro name="container-title">
<choose>
<if type="chapter entry-dictionary entry-encyclopedia paper-conference" match="any">
<text macro="container-prefix" suffix=" "/>
</if>
</choose>
<choose>
<if type="webpage">
<text variable="container-title" text-case="title"/>
</if>
<else-if type="legal_case" match="none">
<group delimiter=" ">
<text variable="container-title" text-case="title" font-style="italic"/>
<choose>
<if variable="note">
<text variable="note"/>
</if>
</choose>
</group>
</else-if>
</choose>
</macro>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment