以下是一个符合“湖南理工大学参考文献(引用)标准”,适用于Zotero的CSL样式(Citation Style Language),重点特点如下:
- 按引用顺序编号,[序号] 放右上角(superscript)
- 各类文献类型对应不同的后缀标识[J], [M], [C], [N], [D], [P], [EB/OL], [S], [Z]
- 中文作者名与英文作者名格式处理:英文作者名首字母大写,中文作者姓后无空格,名字无空格,点“.”分隔。
- 参考文献最后均以“.”结束。
- 出版地、出版社、卷期页码格式符合示例。
- 条件判断区分不同文献类型的标注格式。
- 英文作者名字首字母大写,为此用cs:macro做处理。
请将此样式文件保存为hnust.csl,然后在Zotero中导入使用。
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0">
<info>
<title>湖南理工大学毕业论文参考文献标准</title>
<id>http://www.hnust.edu.cn/csl/hnust</id>
<link href="http://www.hnust.edu.cn" rel="self"/>
<author>
<name>ChatGPT</name>
</author>
<category citation-format="numeric"/>
<category field="generic-base"/>
<updated>2024-06-10T00:00:00+08:00</updated>
</info>
<!-- 定义用于英文作者姓名首字母大写的宏 -->
<macro name="given-initials">
<!-- 取given中的首字母并大写 -->
<text variable="given" form="short" text-case="capitalize-first"/>
</macro>
<!-- 标准处理作者名 -->
<macro name="author">
<names variable="author">
<name delimiter="," and="text" initialize-with="." initialize="true" name-as-sort-order="first" sort-separator=",">
<!--
中文作者完整显示:姓+名,中间不加空格,名字用“.”连接,类似“高曙明”
英文作者格式:姓, 名首字母大写,用“.”分隔
-->
<name-part name="family" form="short" text-case="none"/>
<text value="."/>
<choose>
<if type="person">
<choose>
<if match="language" is="zh">
<!-- 中文作者:given-name无初始化拼成名字 -->
<name-part name="given" text-case="none"/>
</if>
<else>
<!-- 英文作者:取given首字母,初始化大写 -->
<text macro="given-initials"/>
</else>
</choose>
</if>
<else>
<!-- 非人名,直接给出given -->
<name-part name="given" text-case="none"/>
</else>
</choose>
</name>
</names>
</macro>
<!-- 期刊文章 -->
<macro name="journal">
<text variable="container-title"/>
</macro>
<!-- 下标形式数字序号 -->
<citation>
<layout prefix="[" suffix="]" delimiter=",">
<text variable="citation-number" vertical-align="sup"/>
</layout>
</citation>
<bibliography>
<layout>
<text variable="citation-number" prefix="[" suffix="]" suffix-use="all" />
<text macro="author"/>
<text value="."/>
<!-- Title -->
<choose>
<!-- 期刊 -->
<if type="article-journal">
<text variable="title"/>
<text value=" [J]."/>
<text macro="journal"/>
<text value=","/>
<date variable="issued">
<date-part name="year"/>
</date>
<choose>
<if variable="volume">
<text value=","/>
<text variable="volume"/>
<choose>
<if variable="issue">
<text value="("/>
<text variable="issue"/>
<text value=")"/>
</if>
</choose>
</if>
</choose>
<choose>
<if variable="page">
<text value=":" />
<text variable="page"/>
</if>
</choose>
<text value="."/>
</if>
<!-- 专著 -->
<else-if type="book">
<text variable="title"/>
<text value=" [M]."/>
<choose>
<if variable="publisher-place">
<text variable="publisher-place"/>:
</if>
</choose>
<choose>
<if variable="publisher">
<text variable="publisher"/>
<text value=","/>
</if>
</choose>
<date variable="issued">
<date-part name="year"/>
</date>
<choose>
<if variable="page">
<text value="."/>
<text variable="page"/>
</if>
</choose>
<text value="."/>
</else-if>
<!-- 论文集中的文献 -->
<else-if type="chapter paper-conference paper-journal paper-magazine paper-newspaper">
<!-- 论文篇名 -->
<text variable="title"/>
<text value="—"/>
<text variable="container-title"/>
<text value=" [C]."/>
<choose>
<if variable="publisher-place">
<text variable="publisher-place"/>
<text value=":"/>
</if>
</choose>
<choose>
<if variable="publisher">
<text variable="publisher"/>
<text value=","/>
</if>
</choose>
<date variable="issued">
<date-part name="year"/>
</date>
<choose>
<if variable="page">
<text value="."/>
<text variable="page"/>
</if>
</choose>
<text value="."/>
</else-if>
<!-- 报纸 -->
<else-if type="newspaper-article">
<text variable="title"/>
<text value=" [N]."/>
<text variable="container-title"/>
<text value=","/>
<date variable="issued" date-parts="year month day">
<date-part name="year"/>
<text value="-"/>
<date-part name="month"/>
<text value="-"/>
<date-part name="day"/>
</date>
<choose>
<if variable="issue" match="any">
<text value="("/>
<text variable="issue"/>
<text value=")"/>
</if>
</choose>
<text value="."/>
</else-if>
<!-- 学位论文 -->
<else-if type="thesis">
<text variable="title"/>
<text value=" [D]."/>
<choose>
<if variable="publisher-place">
<text value="("/>
<text variable="publisher-place"/>
<text value=")"/>
</if>
</choose>
<choose>
<if variable="publisher">
<text variable="publisher"/>
<text value=""/>
</if>
</choose>
<text value="硕士学位论文."/>
<date variable="issued">
<date-part name="year"/>
</date>
<text value="."/>
</else-if>
<!-- 专利 -->
<else-if type="patent">
<choose>
<if variable="author">
<text macro="author"/>
</if>
<else>
<text variable="recipient"/>
</else>
</choose>
<text value="."/>
<text variable="title"/>
<text value=" [P]."/>
<choose>
<if variable="jurisdiction">
<text variable="jurisdiction"/>
<text value=":"/>
</if>
</choose>
<choose>
<if variable="number">
<text variable="number"/>
<text value=","/>
</if>
</choose>
<date variable="issued" date-parts="year month day">
<date-part name="year"/>
<text value="-"/>
<date-part name="month" prefix="0" suffix=""/>
<text value="-"/>
<date-part name="day" prefix="0" suffix=""/>
</date>
<text value="."/>
</else-if>
<!-- 电子文献 -->
<else-if type="webpage">
<text macro="author"/>
<text value="."/>
<text variable="title"/>
<text value=" [EB/OL]."/>
<text variable="URL"/>
<choose>
<if variable="issued">
<text value=","/>
<date variable="issued">
<date-part name="year"/>
<text value="-"/>
<date-part name="month" prefix="0" suffix=""/>
<text value="-"/>
<date-part name="day" prefix="0" suffix=""/>
</date>
</if>
</choose>
<text value="."/>
</else-if>
<!-- 国际、国家标准文献 -->
<else-if type="standard">
<text variable="number"/>
<text value=","/>
<text variable="title"/>
<text value=" [S]."/>
</else-if>
<!-- 其他未定义类型 -->
<else>
<text macro="author"/>
<text value="."/>
<text variable="title"/>
<text value=" [Z]."/>
<choose>
<if variable="publisher-place">
<text variable="publisher-place"/>
<text value=":"/>
</if>
</choose>
<choose>
<if variable="publisher">
<text variable="publisher"/>
<text value=","/>
</if>
</choose>
<date variable="issued">
<date-part name="year"/>
</date>
<text value="."/>
</else>
</choose>
</layout>
</bibliography>
</style>
说明:
- CSL 的type类型用来判定文献类别,部分类别需要根据需要调整;
- 作者名如果是中文Zotero元数据会给中文字符,直接输出。英文部分用
initialize-with="."初始化,即把英文名初始化成首字母大写并用“.”隔开;
- 顺序编号用superscript数字、方括号括起;
- 文献尾部都以中文句号“.”结束。
如需进一步定制,比如期刊卷期的括号样式、页码分割符、时间格式等,可以继续微调宏定义。