自定義citationstyles(cls)文獻引用模板

最近須要用國內某期刊的模板來寫東西。因此須要自定義模板。國內的期刊主要遵循GB7714-2005的文獻格式。對於常常使用Zotero、mendeley等免費的知識管理工具的同窗,能夠從這裏獲取cls模板:
GB7714-2005 中文編輯器

其它模板:Zotero Style Repository 工具

可是,在有了上述模板以後,咱們還須要在進行必定的修改。cls文件自己是xml格式,因此用文本編輯器打開修改便可。字體

具體的:url

語言

若是是須要英文模板,則須要定製其中的locale。將其中的 locale該文"en"code

<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="zh-CN">

改成xml

<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en">

此外,模板中的中文對應的須要改爲英文ci

et-al字體

et-al指的是看成者數超過必定時,只顯示前幾個,其它的用et al省略。可是若是須要將et al斜體。則在author域下,添加<et-al term="et-al" font-style="italic"/>get

<macro name="author">
    <names variable="author">
      <name initialize-with=" " name-as-sort-order="all" sort-separator=" " delimiter=", " delimiter-precedes-last="always">
        <name-part name="family" text-case="uppercase"/>
    <et-al term="et-al" font-style="italic"/>
      </name>
    </names>
  </macro>

其中term對應的內容,也能夠改成and others,也能夠去掉term="et-al"it

引用序號的上角標

部分文獻中,須要在文獻引用處將引用序號標爲上角標,此時則須要在Citation域中的layout屬性裏設置vertical-align。不設置是不做爲角標,設置爲sup則爲上角標出現。以下爲上角標形式:io

<citation collapse="citation-number">
    <sort>
      <key variable="citation-number" sort="ascending"/>
    </sort>
    <layout vertical-align="sup" prefix="[" suffix="]" delimiter=",">
      <text variable="citation-number"/>
    </layout>
  </citation>
相關文章
相關標籤/搜索