2017年6月4日日曜日

引用文献リストの編集 cslファイルの編集

  • 事前準備
引用文献リストを自作する前に,
xml編集ソフト(Windowsメモ帳をこよなく愛している人以外は何かしらのエディタをダウンロードして下さい.
例えば,
XMLEDITOR.NET(http://www.vector.co.jp/soft/win95/net/se357469.html)
など.
  • 引用文献リストのフォーマット
cslファイルは, <bibliography>以下で引用文献リストのフォーマットを指定している.
たとえばAgcontName.cslの場合376行目から
<bibliography hanging-indent="true" et-al-min="10" et-al-use-first="9" entry-spacing="0" line-spacing="2">
    <!--よみがな順で-->
    <sort>
      <key macro="author-yomi" />
      <!--      <key macro="author" />-->
      <key macro="issued-year" sort="ascending" />
    </sort>
    <layout>
      <group suffix=".">
        <!--著者名最後 , or  .  -->
        <text macro="author" suffix="," />
        <text macro="issued" />
        <group delimiter=". ">
          <text macro="title" prefix=" " />
          <group>
            <text macro="container-contributors" />
            <text macro="secondary-contributors" />
            <group delimiter=", ">
              <text variable="container-title" font-style="" form="long" />
              <!--雑誌タイトルshort or long フォント-->
              <text variable="collection-title" />
            </group>
          </group>
        </group>
        <text macro="locators" />
        <group delimiter=", " prefix=". ">
          <text macro="event" />
          <!--          <text macro="publisher" /> -->
          <!--出版社-->
        </group>
      </group>
      <text macro="access" prefix=" " />
    </layout>
  </bibliography>

編集方法
コメント文
<!--これはコメント文-->

区切り文字の指定
<group delimiter="">
</group>

前付け,後ろ付け文字の指定
<group prefix="suffix=",">
</group>
prefix=""で前付け,suffix=""で後ろにつける文字の指定.
たとえば発行年を()で囲みたいときは,
<text macro="issued" prefix="(" suffix=")" />
  • 本文中引用のスタイル
<!-- 本文中引用 -->
   <citation et-al-min="3" et-al-use-first="1" disambiguate-add-givenname="true" disambiguate-add-year-suffix="true" collapse="year" cite-group-delimiter=", ">
    <sort>
      <key macro="author" />
      <key macro="issued-year" />
    </sort>
    <layout prefix="(" suffix=")" delimiter="; ">
      <group delimiter=", ">
        <text macro="author-short" />
        <text macro="issued-year" />
        <text macro="citation-locator" />
      </group>
    </layout>
  </citation>
  • 文中引用,引用文献リストの各箇所の編集
  <macro name="author-short">
    <names variable="author">
      <name form="short" and="text" delimiter=", " initialize-with=". ">
        <!--本文and &   and="text" or and="symbol"-->
        <et-al font-style="italic" />
        <!--本文etal. 斜体-->
      </name>
      <substitute>
        <names variable="editor" />
        <names variable="translator" />
        <choose>
          <if type="report">
            <text variable="publisher" />
            <text variable="title" form="long" font-style="" />
          </if>
          <else-if type="bill book graphic legal_case motion_picture song" match="any">
            <text variable="title" form="long" font-style="" />
          </else-if>
          <else>
            <text variable="title" form="long" quotes="true" />
          </else>
        </choose>
      </substitute>
    </names>
  </macro>

2名の著者名をNAME & NAMEにするか andにするか.
      <name form="short" and="text" delimiter="" initialize-with="">
andにする場合and="text"
&にする場合and="symbol"

フォント指定
太字
font-style="bold" 
斜体(イタリック体)
font-style="italic" 
下線
text-decoration="underline"

etalは斜体
<et-al font-style="italic" />

著者名は太文字
<text macro="authorfont-style="bold"  suffix="," />

雑誌名は斜体
<text variable="container-title" font-style="italic" form="long" />


詳しくは以下の70ページくらいをみながら編集する.85ページの対応表も必見.
http://library.k.tsukuba-tech.ac.jp/ori/Mendeley.pdf

また,cslファイルは基本的にxmlなので,
http://www.htmq.com/style/font.shtml
http://www.htmq.com/html/font.shtml
あたりをみながら編集すると良い.


0 件のコメント:

コメントを投稿