当前位置:网站首页>Custom reference formats used by Zotero

Custom reference formats used by Zotero

2022-06-26 06:22:00 Rong_ Gong

Zotero Custom reference format used

zotero You may customize the reference format in , You can write your own csl The file implements the customization of the reference format .
The main records in this paper conform to the national standard GBT7714-2015 Customization of bilingual references .zotero You can also refer to the website for custom reference format :
https://github.com/redleafnew/Chinese-std-GB-T-7714-related-csl
https://citationstyles.org/
https://zhuanlan.zhihu.com/p/31326415
https://blog.csdn.net/qq_24915933/article/details/123667916
https://editor.citationstyles.org/about/( A website for online editing of reference formats )
https://www.zotero.org/styles
Be careful :csl The file is actually the same as xml The syntax of the file is similar . So I know xml Grammar format and students with a certain programming foundation can easily modify the format they need . This article is used to record a format .

<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" class="in-text" default-locale="zh-CN" delimiter-precedes-last="always" demote-non-dropping-particle="never" initialize-with=" " name-delimiter=", " names-delimiter=". " name-as-sort-order="all" sort-separator=" ">
  <!-- This style was edited with the Visual CSL Editor (https://editor.citationstyles.org/visualEditor/) -->
  <info>
    <title>GXMZU-GB/T7714-2015-numeric-AuLower-BiLan</title>
    <title-short>GB/T 7714-2015</title-short>
    <id>http://www.zotero.org/styles/china-national-standard-gb-t-7714-2015-numeric-aulower-bilan</id>
    <link href="http://www.zotero.org/styles/china-national-standard-gb-t-7714-2015-numeric-aulower-bilan" rel="self"/>
    <author>
      <name>RongGong</name>
      <email>[email protected]</email>
    </author>
    <category citation-format="numeric"/>
    <category field="generic-base"/>
    <summary>The Chinese GB/T7714-2015 numeric style</summary>
    <updated>2022-05-29T23:56:46+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>
  <locale xml:lang="zh-CN">
    <terms>
      <term name="anonymous"> anonymous </term>
      <term name="edition"> edition </term>
      <term name="page" form="short">
        <single>p.</single>
        <multiple>pp.</multiple>
      </term>
    </terms>
  </locale>
  <macro name="accessed-date">
    <date variable="accessed" delimiter="–" prefix="[" suffix="]">
      <date-part name="year"/>
      <date-part name="month" form="numeric-leading-zeros"/>
      <date-part name="day" form="numeric-leading-zeros"/>
    </date>
  </macro>
  <!-- author -->
  <macro name="author">
    <choose>
      <if variable="author">
        <names variable="author">
          <name>
            <name-part name="family" text-case="capitalize-all"/>
            <name-part name="given" text-case="capitalize-all"/>
          </name>
        </names>
      </if>
      <else>
        <text term="anonymous"/>
      </else>
    </choose>
  </macro>
  <macro name="container-author">
    <names variable="container-author">
      <name>
        <name-part name="family" text-case="uppercase"/>
        <name-part name="given"/>
      </name>
    </names>
  </macro>
  <macro name="edition">
    <choose>
      <if variable="edition">
        <group delimiter=" ">
          <text variable="edition"/>
          <text term="edition"/>
        </group>
      </if>
    </choose>
  </macro>
  <macro name="editor">
    <names variable="editor translator">
      <name>
        <name-part name="family" text-case="capitalize-all"/>
        <name-part name="given"/>
      </name>
      <label form="short" prefix=", "/>
    </names>
  </macro>
  <macro name="issued-date">
    <choose>
      <if variable="issued">
        <date variable="issued" delimiter="–">
          <date-part name="year"/>
          <date-part name="month" form="numeric-leading-zeros"/>
          <date-part name="day" form="numeric-leading-zeros"/>
        </date>
      </if>
      <else>
        <text term="no date" prefix="[" suffix="]"/>
      </else>
    </choose>
  </macro>
  <macro name="issue-date-year">
    <choose>
      <if variable="issued">
        <date variable="issued" date-parts="year" form="numeric"/>
      </if>
      <else>
        <text term="no date" prefix="[" suffix="]"/>
      </else>
    </choose>
  </macro>
  <macro name="publishing">
    <choose>
      <if variable="publisher">
        <group delimiter=": ">
          <text variable="publisher-place"/>
          <group delimiter=", ">
            <text variable="publisher"/>
            <text macro="issue-date-year"/>
          </group>
        </group>
        <text variable="page" prefix=": "/>
      </if>
    </choose>
  </macro>
  <macro name="serial-information">
	<!-- Determine whether there is a network launch -->
	<if type="article-journal article-magazine" match="any">
		<!--  If there is no volume and issue , Think it's the first network launch , The document type is J/OL -->
		<choose>
			<if variable="volume issue" match='none'>
				<text value=""/>
			</if>
			<else>
				<group delimiter=", " prefix=", ">
				  <text macro="issue-date-year"/>
				  <text variable="volume"/>
				</group>
			</else>
		</choose>
        
    </if>
	<!-- Determine whether there is a network launch end-->
    <text variable="issue" prefix="(" suffix=")"/>
    <text variable="page" prefix=": "/>
  </macro>
  <macro name="type-code">
    <choose>
	  <!-- article-journal article-magazine  The magazine  -->
      <if type="article-journal article-magazine" match="any">
		<!--  If there is no volume and issue , Think it's the first network launch , The document type is J/OL -->
		<choose>
			<if variable="volume issue" match='none'>
				<text value="J/OL"/>
			</if>
			<else>
				<text value="J"/>
			</else>
		</choose>
        
      </if>
      <else-if type="article-newspaper">
        <text value="N"/>
      </else-if>
      <else-if type="bill legislation" match="any">
        <text value="S"/>
      </else-if>
      <else-if type="book">
        <text value="M"/>
      </else-if>
      <else-if type="chapter">
        <text value="M"/>
      </else-if>
      <else-if type="dataset">
        <text value="DS"/>
      </else-if>
      <else-if type="paper-conference">
        <text value="C"/>
      </else-if>
      <else-if type="patent">
        <text value="P"/>
      </else-if>
      <else-if type="post-weblog webpage" match="any">
        <text value="EB/OL"/>
      </else-if>
      <else-if type="report">
        <text value="R"/>
      </else-if>
      <else-if type="thesis">
        <text value="D"/>
      </else-if>
      <else>
        <text value="Z"/>
      </else>
    </choose>
  </macro>
  <macro name="title">
    <text variable="title" text-case="sentence"/>
    <text variable="number" prefix=": "/>
    <group delimiter="/" prefix="[" suffix="]">
      <text macro="type-code"/>
	  <!--
      <choose>
        <if variable="URL">
          <text value="OL"/>
        </if>
      </choose>
	  --><!-- Delete the document type plus OL-->
	  
    </group>
  </macro>
  <citation collapse="citation-number" after-collapse-delimiter=",">
    <sort>
      <key variable="citation-number" sort="ascending"/>
    </sort>
    <layout vertical-align="sup" delimiter="," prefix="[" suffix="]">
      <text variable="citation-number"/>
      <group prefix="(" suffix=")">
        <label variable="locator" suffix=". " form="short" strip-periods="true"/>
        <text variable="locator"/>
      </group>
    </layout>
  </citation>
  <bibliography entry-spacing="0" et-al-min="4" et-al-use-first="3" line-spacing="1" second-field-align="flush">
    <layout suffix="." locale="en">
      <text variable="citation-number" prefix="[" suffix="]"/>
      <text macro="author" suffix=". "/>
      <text macro="title" text-case="title"/>
      <choose>
        <if type="book bill chapter legislation paper-conference report thesis" match="any">
          <text macro="editor" prefix=". "/>
          <choose>
            <if variable="container-title">
              <text value="//"/>
              <text macro="container-author" suffix=". "/>
              <text variable="container-title" suffix=". " text-case="title"/>
            </if>
            <else>
              <text value=". "/>
            </else>
          </choose>
          <text macro="edition" suffix=". "/>
          <text macro="publishing"/>
        </if>
        <else-if type="article-journal article-magazine article-newspaper" match="any">
          <group prefix=". ">
            <choose>
              <if variable="container-title">
                <text variable="container-title" text-case="title"/>
                <text macro="serial-information" />
              </if>
              <else>
                <text macro="serial-information" suffix=". "/>
                <text macro="publishing"/>
              </else>
            </choose>
          </group>
        </else-if>
        <else-if type="patent">
          <text macro="issued-date" prefix=". "/>
        </else-if>
        <else>
          <text macro="publishing" prefix=". "/>
          <text macro="issued-date" prefix="(" suffix=")"/>
        </else>
      </choose>
      <!--<text macro="accessed-date"/>-->
      <group delimiter=". " prefix=". ">
      </group>
    </layout>
    <layout suffix=".">
      <text variable="citation-number" prefix="[" suffix="]"/>
      <text macro="author" suffix=". "/>
      <text macro="title"/>
      <choose>
        <if type="book bill chapter legislation paper-conference report thesis" match="any">
          <text macro="editor" prefix=". "/>
          <choose>
            <if variable="container-title">
              <text value="//"/>
              <text macro="container-author" suffix=". "/>
              <text variable="container-title" suffix=". " text-case="title"/>
            </if>
            <else>
              <text value=". "/>
            </else>
          </choose>
          <text macro="edition" suffix=". "/>
          <text macro="publishing"/>
        </if>
        <else-if type="article-journal article-magazine article-newspaper" match="any">
          <group prefix=". ">
            <choose>
              <if variable="container-title">
                <text variable="container-title" text-case="title"/>
                <text macro="serial-information" />
				<!--  Judge whether it is the network starter start-->
				<choose>
					<!-- Judge whether it is the network starter according to the issue and volume -->
					<if variable="volume issue" match='none'>
						<!-- If there is a date, add ( Date of visit )-->
                        <text macro="accessed-date"/>
						<choose>
							<if variable="URL">
								<text variable="URL" prefix=". " />
							</if>
						</choose><!-- If you have a web address, add -->
					</if>
				</choose>
				<!--  Judge whether it is the network starter end-->
              </if>
              <else>
                <text macro="serial-information" suffix=". "/>
                <text macro="publishing"/>
              </else>
            </choose>
          </group>
        </else-if>
        <else-if type="patent">
          <text macro="issued-date" prefix=". "/>
        </else-if>
        <else>
          <text macro="publishing" prefix=". "/>
          <text macro="issued-date" prefix="(" suffix=")"/>
        </else>
      </choose>
      <!--<text macro="accessed-date"/>-->
      <group delimiter=". " prefix=". ">
      </group>
    </layout>
  </bibliography>
</style>

原网站

版权声明
本文为[Rong_ Gong]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206260606350645.html