Skip to content

Instantly share code, notes, and snippets.

@quantixed
Created August 8, 2022 08:11
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 quantixed/274557d07367dbed046e6c726fa2ee57 to your computer and use it in GitHub Desktop.
Save quantixed/274557d07367dbed046e6c726fa2ee57 to your computer and use it in GitHub Desktop.
An alternative citation style layout for UKRI grant proposals, for when you have a bit more space
<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-GB">
<info>
<title>Optimal style for grant proposals</title>
<!--<id>http://csl.mendeley.com/styles/20448741/minimal-grant-proposals</id>-->
<id>http://www.zotero.org/styles/optimal-grant-proposals</id>
<link href="http://www.zotero.org/styles/optimal-grant-proposals" rel="self"/>
<author>
<name>Anton Crombach</name>
<email>anton.crombach@gmail.com</email>
</author>
<contributor>
<name>Anton Crombach</name>
<uri>http://anton.cromba.ch/</uri>
</contributor>
<category citation-format="numeric"/>
<category field="science"/>
<category field="generic-base"/>
<updated>2021-06-08T11:17:00+00:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<macro name="title">
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text variable="title" font-style="italic"/>
</if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="author">
<names variable="author">
<name and="symbol" delimiter-precedes-last="never" initialize-with=". " name-as-sort-order="all"/>
<label form="short" prefix=", "/>
<et-al font-style="italic"/>
</names>
</macro>
<macro name="issuance">
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song thesis chapter paper-conference" match="any">
<group delimiter=", " prefix="(" suffix=")">
<text variable="publisher" form="short"/>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</if>
<else>
<date variable="issued" prefix="(" suffix=")">
<date-part name="year"/>
</date>
</else>
</choose>
</macro>
<macro name="container-title">
<choose>
<if type="article-journal">
<text variable="container-title" font-style="italic" form="short"/>
</if>
<else>
<text variable="container-title" font-style="italic"/>
</else>
</choose>
</macro>
<macro name="editor">
<choose>
<if type="chapter paper-conference" match="any">
<names variable="editor" prefix="(" suffix=")">
<label form="short" suffix=" "/>
<name and="symbol" delimiter-precedes-last="never" initialize-with=". " name-as-sort-order="all"/>
</names>
</if>
</choose>
</macro>
<citation collapse="citation-number">
<sort>
<key variable="citation-number"/>
</sort>
<layout prefix="[" suffix="]" delimiter=", ">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography et-al-min="2" et-al-use-first="1" entry-spacing="0">
<layout>
<text variable="citation-number" suffix=". "/>
<group delimiter=" ">
<text macro="author" suffix="."/>
<text macro="issuance"/>
<text macro="title" suffix="."/>
<choose>
<if type="chapter paper-conference" match="any">
<text term="in"/>
</if>
</choose>
<text macro="container-title" suffix=","/>
<text macro="editor"/>
<text variable="volume" form="short" font-weight="normal" suffix=","/>
<text variable="page" form="short" suffix="."/>
</group>
</layout>
</bibliography>
</style>
@quantixed
Copy link
Author

This is a branch of my fork from https://gist.github.com/antoncrombach/aba3782c016a11a69a2fbb407a1eacf8 In that gist (and fork) there is a minimal citation style for grant proposals - for when space is really tight. The idea was to make an optimal (i.e. not maximal) citation style for when you have a tiny bit more space....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment