Guest User

My weird citation style v2

a guest
May 30th, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 10.16 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" and="text" demote-non-dropping-particle="display-and-sort" default-locale="en-US">
  3.   <info>
  4.     <title>My weird style</title>
  5.     <id>http://www.zotero.org/styles/my-temporary-style</id>
  6.     <link href="http://www.zotero.org/styles/my-temporary-style" rel="self"/>
  7.     <link href="http://www.zotero.org/styles/elsevier-harvard" rel="template"/>
  8.     <link href="http://www.elsevier.com/journals/biosensors-and-bioelectronics/0956-5663/guide-for-authors#68000" rel="documentation"/>
  9.     <author>
  10.       <name>Stephan Burkhardt</name>
  11.       <email>[email protected]</email>
  12.     </author>
  13.     <contributor>
  14.       <name>Thomas Hisch</name>
  15.       <email>[email protected]</email>
  16.     </contributor>
  17.     <contributor>
  18.       <name>David Kaplan</name>
  19.       <email>[email protected]</email>
  20.     </contributor>
  21.     <contributor>
  22.       <name>Simon Kornblith</name>
  23.       <email>[email protected]</email>
  24.     </contributor>
  25.     <contributor>
  26.       <name>Bruce D'Arcus</name>
  27.     </contributor>
  28.     <contributor>
  29.       <name>Curtis M. Humphrey</name>
  30.     </contributor>
  31.     <contributor>
  32.       <name>Richard Karnesky</name>
  33.       <email>[email protected]</email>
  34.       <uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri>
  35.     </contributor>
  36.     <contributor>
  37.       <name>Sebastian Karcher</name>
  38.     </contributor>
  39.     <category citation-format="author-date"/>
  40.     <category field="physics"/>
  41.     <category field="generic-base"/>
  42.     <summary>This style is based on the elsevier-harvard style by
  43.     David Kaplan ([email protected]). It is modified to comply with
  44.     the specific requirements of some very specific documents.
  45.     </summary>
  46.     <updated>2016-05-30T15:06:59+00:00</updated>
  47.     <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
  48.   </info>
  49.   <macro name="container">
  50.     <choose>
  51.       <if type="chapter paper-conference" match="any">
  52.         <text term="in" prefix=", " suffix=": "/>
  53.         <names variable="editor translator" delimiter=", " suffix=", ">
  54.           <name name-as-sort-order="all" sort-separator=", " initialize-with="." delimiter=", " delimiter-precedes-last="always"/>
  55.           <label form="short" text-case="capitalize-first" prefix=" (" suffix=")"/>
  56.         </names>
  57.         <group delimiter=", ">
  58.           <text variable="container-title" text-case="title"/>
  59.           <text variable="collection-title" text-case="title"/>
  60.         </group>
  61.       </if>
  62.       <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
  63.         <group prefix=", " delimiter=", ">
  64.           <text variable="container-title"/>
  65.           <text variable="collection-title"/>
  66.         </group>
  67.       </else-if>
  68.       <else-if type="article-journal article-magazine article-newspaper" match="none">
  69.         <group prefix=". " delimiter=", ">
  70.           <text variable="container-title" form="short"/>
  71.           <text variable="collection-title"/>
  72.         </group>
  73.       </else-if>
  74.       <else>
  75.         <group delimiter=", ">
  76.           <text variable="container-title" form="short"/>
  77.           <text variable="collection-title"/>
  78.         </group>
  79.       </else>
  80.     </choose>
  81.   </macro>
  82.   <macro name="author">
  83.     <names variable="author">
  84.       <name and="text" delimiter-precedes-last="always" et-al-min="5" et-al-use-first="5" initialize-with="."/>
  85.       <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
  86.       <substitute>
  87.         <names variable="editor"/>
  88.         <names variable="translator"/>
  89.         <text macro="title"/>
  90.       </substitute>
  91.     </names>
  92.   </macro>
  93.   <macro name="author-short">
  94.     <names variable="author">
  95.       <name form="short" and="text" delimiter=", " initialize-with=". "/>
  96.       <substitute>
  97.         <names variable="editor"/>
  98.         <names variable="translator"/>
  99.         <choose>
  100.           <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
  101.             <text variable="title" form="short" font-style="italic"/>
  102.           </if>
  103.           <else>
  104.             <text variable="title" form="short" quotes="true"/>
  105.           </else>
  106.         </choose>
  107.       </substitute>
  108.     </names>
  109.   </macro>
  110.   <macro name="access">
  111.     <choose>
  112.       <if type="webpage">
  113.         <group delimiter=" ">
  114.           <text value="URL"/>
  115.           <text variable="URL"/>
  116.           <group prefix="(" suffix=").">
  117.             <text term="accessed" suffix=" "/>
  118.             <date variable="accessed">
  119.               <date-part name="month" form="numeric" suffix="."/>
  120.               <date-part name="day" suffix="."/>
  121.               <date-part name="year" form="short"/>
  122.             </date>
  123.           </group>
  124.         </group>
  125.       </if>
  126.     </choose>
  127.   </macro>
  128.   <macro name="title">
  129.     <choose>
  130.       <if type="report thesis" match="any">
  131.         <text variable="title"/>
  132.         <group prefix=" (" suffix=")">
  133.           <text variable="genre"/>
  134.           <text variable="number" prefix=" No. "/>
  135.         </group>
  136.       </if>
  137.       <else-if type="bill book graphic legal_case legislation motion_picture report song speech" match="any">
  138.         <text variable="title"/>
  139.         <text macro="edition" prefix=", "/>
  140.       </else-if>
  141.       <else-if type="webpage">
  142.         <text variable="title"/>
  143.         <text value="WWW Document" prefix=" [" suffix="]"/>
  144.       </else-if>
  145.       <else-if type="article-journal article-magazine article-newspaper" match="none">
  146.         <text variable="title"/>
  147.       </else-if>
  148.     </choose>
  149.   </macro>
  150.   <macro name="publisher">
  151.     <group delimiter=", ">
  152.       <text variable="publisher"/>
  153.       <text variable="publisher-place" prefix="(" suffix=")"/>
  154.     </group>
  155.   </macro>
  156.   <macro name="event">
  157.     <choose>
  158.       <if variable="event">
  159.         <text term="presented at" text-case="capitalize-first" suffix=" "/>
  160.         <text variable="event"/>
  161.       </if>
  162.     </choose>
  163.   </macro>
  164.   <macro name="issued">
  165.     <choose>
  166.       <if variable="issued">
  167.         <date variable="issued">
  168.           <date-part name="year"/>
  169.         </date>
  170.       </if>
  171.       <else>
  172.         <text term="no date" form="short"/>
  173.       </else>
  174.     </choose>
  175.   </macro>
  176.   <macro name="edition">
  177.     <group delimiter=" ">
  178.       <choose>
  179.         <if is-numeric="edition">
  180.           <number variable="edition" form="ordinal"/>
  181.         </if>
  182.         <else>
  183.           <text variable="edition" suffix="."/>
  184.         </else>
  185.       </choose>
  186.       <text value="ed"/>
  187.     </group>
  188.   </macro>
  189.   <macro name="locators">
  190.     <choose>
  191.       <if type="article-journal article-magazine article-newspaper" match="any">
  192.         <group prefix=" " delimiter=", ">
  193.           <group>
  194.             <text variable="volume" font-weight="bold"/>
  195.           </group>
  196.           <text variable="page"/>
  197.         </group>
  198.       </if>
  199.       <else-if type="bill book graphic legal_case legislation motion_picture report song thesis" match="any">
  200.         <group delimiter=", ">
  201.           <text macro="event"/>
  202.           <text macro="publisher"/>
  203.         </group>
  204.       </else-if>
  205.       <else-if type="chapter paper-conference" match="any">
  206.         <group delimiter=", " prefix=". ">
  207.           <text macro="event"/>
  208.           <text macro="publisher"/>
  209.           <group>
  210.             <label variable="page" form="short" suffix=" "/>
  211.             <text variable="page"/>
  212.           </group>
  213.         </group>
  214.       </else-if>
  215.       <else-if type="patent">
  216.         <text variable="number" prefix=". "/>
  217.       </else-if>
  218.     </choose>
  219.   </macro>
  220.   <macro name="author-special">
  221.     <names variable="author">
  222.       <name form="short" delimiter=" " et-al-min="2" et-al-use-first="1" initialize-with="" sort-separator="">
  223.         <name-part name="family" text-case="capitalize-first"/>
  224.       </name>
  225.       <substitute>
  226.         <names variable="editor"/>
  227.         <names variable="translator"/>
  228.         <choose>
  229.           <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
  230.             <text variable="title" form="short" font-style="italic"/>
  231.           </if>
  232.           <else>
  233.             <text variable="title" form="short" quotes="true"/>
  234.           </else>
  235.         </choose>
  236.       </substitute>
  237.       <et-al term="and others"/>
  238.     </names>
  239.   </macro>
  240.   <macro name="author-special2">
  241.     <names variable="author">
  242.       <name and="text" et-al-min="1" et-al-use-first="1" initialize-with="."/>
  243.     </names>
  244.   </macro>
  245.   <citation et-al-min="3" et-al-use-first="1" disambiguate-add-givenname="true" disambiguate-add-year-suffix="true">
  246.     <sort>
  247.       <key macro="author"/>
  248.       <key macro="issued" sort="descending"/>
  249.     </sort>
  250.     <layout delimiter=";" prefix="[" suffix="]">
  251.       <group>
  252.         <text macro="author-special"/>
  253.         <date date-parts="year" form="numeric" variable="issued">
  254.           <date-part name="year" form="short"/>
  255.         </date>
  256.         <group delimiter=" ">
  257.           <label variable="locator" form="short"/>
  258.           <text variable="locator"/>
  259.         </group>
  260.       </group>
  261.     </layout>
  262.   </citation>
  263.   <bibliography subsequent-author-substitute-rule="complete-each" entry-spacing="0" hanging-indent="true">
  264.     <sort>
  265.       <key macro="author"/>
  266.       <key macro="issued" sort="ascending"/>
  267.     </sort>
  268.     <layout>
  269.       <group prefix="[" suffix="]">
  270.         <text macro="author-special"/>
  271.         <date date-parts="year" form="text" variable="issued">
  272.           <date-part name="year" form="short"/>
  273.         </date>
  274.       </group>
  275.       <text value=" "/>
  276.       <group suffix=".">
  277.         <text macro="author" suffix=","/>
  278.         <group prefix=" ">
  279.           <text macro="container"/>
  280.           <text macro="locators"/>
  281.         </group>
  282.         <text macro="issued" prefix=" (" suffix=")"/>
  283.       </group>
  284.       <text macro="access" prefix=". "/>
  285.     </layout>
  286.   </bibliography>
  287.   <locale xml:lang="en">
  288.     <terms>
  289.       <term name="and others"></term>
  290.     </terms>
  291.   </locale>
  292. </style>
Advertisement
Add Comment
Please, Sign In to add comment