| 1 | <b>Date of last change: 2026/04/11 v1.1w</b> |
| 2 | |
| 3 | |
| 4 | |
| 5 | # biblatex-gb7714-2015: a biblatex style package |
| 6 | --------------------------------------------------------- |
| 7 | [使用入门](#jumptotutorial) |==| [说明文档](biblatex-gb7714-2015.pdf) |==| [WIKI](https://github.com/hushidong/biblatex-gb7714-2015/wiki) |
| 8 | |
| 9 | |
| 10 | ## Introduction |
| 11 | |
| 12 | Maintainer: huzhenzhen <[email protected]> |
| 13 | |
| 14 | Homepage: <https://github.com/hushidong/biblatex-gb7714-2015>, <https://github.com/hushidong/biblatex-gb7714-2025> |
| 15 | |
| 16 | ctan-pkg: <https://www.ctan.org/pkg/biblatex-gb7714-2015> |
| 17 | |
| 18 | License: LaTeX Project Public License 1.3c or later |
| 19 | |
| 20 | |
| 21 | A biblatex implementation of the `GB/T 7714` series bibliography styles for Chinese users |
| 22 | |
| 23 | The biblatex-gb7714-2015 package provides the implementation of bibliography styles for the `GB/T 7714` series standards, such as GB/T 7714-1987, GB/T 7714-2005, GB/T 7714-2015, GB/T 7714-2025. This package also provides several liberal arts bibliography styles, such as chinese-erj, chinese-css, chinese-jmw, and so on. These styles can be used simply by loading biblatex with the appropriate option. |
| 24 | |
| 25 | |
| 26 | biblatex-gb7714-2015 宏包是 `GB/T 7714` 系列中文参考文献著录/标注标准的 biblatex 实现。它本质上是一个样式包,在 tex 文档中配合 biblatex 宏包使用,以生成满足《GB/T 7714-2015/2025 信息与文献 参考文献著录规则》要求的参考文献。 |
| 27 | 宏包主要提供两类编制样式: 一、顺序编码制;二、著者-出版年制,能够精确实现1987、2005、2015、2025 版本国标提出的著录和标注格式(gb7714-1987/gb7714-1987ay、 gb7714-2005/gb7714-2005ay、gb7714-2015/gb7714-2015ay、gb7714-2025/gb7714-2025ay)。另外提供: 两个特殊样式(一个文献表内中英文格式不同的gb7714-2015ms、 一个文档内顺序编码和作者年制混用的gb7714-2015mx); 五个典型文科期刊样式(经济学研究的chinese-erj、社会科学的chinese-css、管理世界的chinese-jmw、人文和社科综合学术期刊的chinese-cajhss/chinese-cajhssay、法学引注手册的chinese-molc); 以及几个明显有别于国标的特殊学位论文样式(西北农林的gb7714-NWAFU、华中师范的gb7714-CCNU、东南大学的gb7714-SEU)等。 |
| 28 | 宏包除了具备 biblatex 提供的不同于传统基于 bibtex 的参考文献解决方案外,还具有如下特点: |
| 29 | |
| 30 | * 较强的兼容性。能够兼容 biblatex v2.8 以上版本;能够兼容国标样式的一些常用条目类型、数据域。 |
| 31 | |
| 32 | * 较高的易用性。标注/著录格式完全由样式实现,不必为排序、多语言等问题手动处理 bib 文件;提供了丰富的标注(引用)命令,包括一些中文中习惯的命令;提供了多语言对照,多语言文献表等功能。 |
| 33 | |
| 34 | * 较大的灵活性。提供丰富的选项来帮助用户进行排序调整、著录项(姓名、出版项、文献标识符、标题超链接)格式调整、文献表格式(标签对齐、标签格式、条目格式、字体、段落格式)调整、编码兼容。 |
| 35 | |
| 36 | * 较好的维护性。样式代码主要是在标准样式基础上提供的中文国标解决方案,保持与标准样式一致的结构、风格和习惯,并提供详尽的注释,用户可轻松理解,并可在其基础上进一步修改以实现其它要求的样式,比如宏包附带的chinese-erj样式,就是基于本样式实现的经济学研究期刊的参考文献样式。 |
| 37 | |
| 38 | 简单使用说明见:[使用入门](#jumptotutorial) |
| 39 | |
| 40 | --------------------------------------------------------- |
| 41 | |
| 42 | ## Need to do: |
| 43 | |
| 44 | > [!Note] |
| 45 | > **注意**: ms.bbx 样式引入内容时需要特别注意空格的引入。 |
| 46 | > mx.cbx 样式没有更新一些新的设置(比如 2 篇文献就压缩等),若有需要可以参考 15.cbx 和 15ay.cbx 修改。 |
| 47 | > 应该说经过这些年的使用,很多 corner case 已经处理过了,但还是可能会存在一些,特别是 ms 和 mx 两个样式使用的少。 |
| 48 | > 一些未做的事,包括:special characters in all fields? |
| 49 | > entry without author: the delimiter between title and year? |
| 50 | > TEST FOR texlive 2015,2016,2017? |
| 51 | > 标注中包围符号的定义[]、()、圆圈、方框等,有些命令没有去修改。 |
| 52 | |
| 53 | |
| 54 | ## Star History: |
| 55 | |
| 56 | |
| 57 | [](https://starchart.cc/hushidong/biblatex-gb7714-2015) |
| 58 | |
| 59 | |
| 60 | |
| 61 | ## Applications |
| 62 | * [BIThesis(bachelor graduation thesis for Dept. of Undergraduate Academic Affairs of Beijing Institute of Technology.)](https://github.com/BITNP/BIThesis) |
| 63 | * [CAUTemplate (中国农业大学课程论文模板)](https://github.com/Cdmium/CAUTemplate) |
| 64 | * [CSUThesis (中南大学论文 LaTeX 模板 )](https://github.com/disc0ver-csu/csu-thesis) |
| 65 | * [ElegantBook](https://github.com/ElegantLaTeX/ElegantBook) |
| 66 | * [ECNU-Undergraduate-LaTeX(华东师范大学本科毕业论文模板)](https://github.com/YijunYuan/ECNU-Undergraduate-LaTeX) |
| 67 | * [fduthesis (复旦大学论文模板)](https://github.com/Stone-Zeng/fduthesis) |
| 68 | * [GZHU_Thesis_Latex_Template(广州大学本科毕业论文 LaTeX 模板)](https://github.com/Tangent-90C/Tangent-90C-GZHU_Thesis_Latex_Template) |
| 69 | * [hustthesis (华中科技大学 LaTeX 学位论文文档类)](https://github.com/hust-latex/hustthesis) |
| 70 | * [LaTeX-SWUFE-Bachelor-Thesis(西南财经大学本科毕业论文 LaTeX 模板)](https://github.com/sukanka/LaTeX-SWUFE-Bachelor-Thesis) |
| 71 | * [LZUthesis(兰州大学本科毕业论文 LaTeX 模板)](https://github.com/szsdk/LZUthesis) |
| 72 | * [neuthesis (东北大学博士学位论文 LaTeX 模板)](https://github.com/mervin0502/neuthesis) |
| 73 | * [NJU Thesis: 南京大学学位论文 LaTeX 模板](https://github.com/nju-lug/NJUThesis) |
| 74 | * [NJU-thesis-esz(南京大学学位论文-微调整后适用于人文社科)](https://github.com/EdwardSaidZhou/NJU-thesis-esz) |
| 75 | * NKThesis(南开大学硕/博模板)[Template1](https://github.com/procuteboy/NKThesis) [Template2](https://github.com/NewFuture/NKThesis) |
| 76 | * [NKUBachelorThesis(南开大学本科生毕业论文(毕业设计) LaTeX 模板)](https://github.com/NKcqx/NKUBachelorThesis) |
| 77 | * [nputhesis(NPU 博士、硕士学位论文 LaTeX 模板)](https://github.com/NPUSCG/nputhesis) |
| 78 | * [nuaa-thesis(南京航空航天大学本科、硕士和博士学位论文的样式模板)](https://github.com/nuaa803/nuaa-thesis) |
| 79 | * [nudtpaper(nudt 学位论文模板)](https://github.com/liubenyuan/nudtpaper) |
| 80 | * [shtthesis (ShangHaiTech university THESIS)](https://github.com/lirundong/shtthesis) |
| 81 | * [SHMTUThesis(上海海事大学 LaTeX 学位论文模板)](https://github.com/hellckt/SHMTUThesis) |
| 82 | * [SJTUThesis(上海交通大学学位论文模板)](https://github.com/sjtug/SJTUThesis) (母校的论文模板,不得不说缘分真的很神奇,16年一出来就用上) |
| 83 | * [sustechthesis(Southern University of Science and Technology Thesis Template LaTeX Template)](https://github.com/Iydon/sustechthesis) |
| 84 | * [SwufeTeX(西南财经大学学位论文 LaTeX 模板)](https://github.com/OopsYao/swufethesis) |
| 85 | * [sysuthesis(中山大学毕业论文/设计 LaTeX 模板(本科/研究生))](https://github.com/1FCENdoge/sysuthesis) |
| 86 | * [sysu-thesis(中山大学 LaTeX 论文项目模板(本科))](https://github.com/SYSU-SCC/sysu-thesis) |
| 87 | * [Thesis-Template-for-XJTU (西安交大毕业设计模板)](https://github.com/DXie123/Thesis-Template-for-XJTU) |
| 88 | * [ThuThesis(LaTeX Thesis Template for Tsinghua University )](https://github.com/tuna/thuthesis) |
| 89 | * [TongjiThesis(同济大学硕博士论文 LaTeX 模板)](https://github.com/marquistj13/TongjiThesis) |
| 90 | * [UCASthesis(中国科学院大学学位论文模板**国科大新版标准**)](https://github.com/xiaoyao9933/UCASthesis) |
| 91 | * [UCASthesis(ucasthesis 国科大学位论文 LaTeX 模板 [最新样式])](https://github.com/mohuangrui/ucasthesis) |
| 92 | * [ustcthesis(中国科学技术大学学位论文 LaTeX 模板)](https://github.com/ustctug/ustcthesis) |
| 93 | * [WUTthesis(武汉理工大学研究生学位论文的 LaTeX 模板)](https://github.com/Jiayin-Gu/WUTthesis) |
| 94 | * [whu-thesis(武汉大学毕业论文 LaTeX 模板)](https://github.com/whutug/whu-thesis) |
| 95 | * [WHUT-Bachelor(武汉理工大学本科生毕业设计(论文)LaTeX 模板)](https://github.com/huangyxi/WHUT-Bachelor) |
| 96 | * [Yet anoter BUPT Thesis LaTeX class (北邮研究生学位设计的 LaTeX 文档类)](https://github.com/qcts33/BUPTthesis-ctex) |
| 97 | * [Zhejiang University thesis(浙江大学毕业设计/论文模板)](https://github.com/TheNetAdmin/zjuthesis) |
| 98 | * [《经济研究》杂志 LaTeX 论文模板)](https://github.com/EthanDeng/Chinese-ERJ) |
| 99 | * [LaTeX学习笔记(Study-LaTeX)](https://github.com/Zousiyu/Study-LaTeX) |
| 100 | * [...] |
| 101 | |
| 102 | |
| 103 | ## Related Links |
| 104 | |
| 105 | * [Biblatex 宏包](https://github.com/plk/biblatex) |
| 106 | * [Beamer 文档类](https://github.com/josephwright/beamer) |
| 107 | * [biblatex 宏包中文手册 ](https://github.com/hushidong/biblatex-zh-cn) |
| 108 | * [biblatex 简明使用手册](https://github.com/hushidong/biblatex-solution-to-latex-bibliography) |
| 109 | * [biblatex-tutorial 摘译](https://github.com/hushidong/biblatex-tutorial-cn) |
| 110 | * [bibmap bib 文件批量修改工具](https://github.com/hushidong/biblatex-map/) |
| 111 | * [biblatex-check bib 文件检查工具](https://github.com/Pezmc/BibLatex-Check) |
| 112 | * [biblatex-caspervector: caspervector 设计的中文参考文献样式](https://github.com/CasperVector/biblatex-caspervector) |
| 113 | * [gbt7714-bibtex-style: GB/T7714-2015 标准的 bst 实现版本](https://github.com/CTeX-org/gbt7714-bibtex-style) |
| 114 | * [LaTeX 学习网站](http://www.latexstudio.net/) |
| 115 | * [LaTeX 交流论坛](http://www.ctex.org/) |
| 116 | |
| 117 | --------------------------------------------------------- |
| 118 | |
| 119 | <h2 id="jumptotutorial">Tutorial/使用入门</h2> |
| 120 | [//]: # "这里这种方式不适合可能主要是因为标题所导致,因此用上面的方式进行处理" |
| 121 | |
| 122 | |
| 123 | <h3 id="jumptopkgload">0. Package Usage/宏包加载方式</h3> |
| 124 | 样式包配合 biblatex 使用,即在 biblatex 调用时加载样式包: |
| 125 | |
| 126 | * 顺序编码制样式 (gb7714-2015): |
| 127 | |
| 128 | ```tex |
| 129 | \usepackage[backend=biber,style=gb7714-2015]{biblatex} |
| 130 | ``` |
| 131 | |
| 132 | * 著者-出版年制样式 (gb7714-2015ay): |
| 133 | |
| 134 | ```tex |
| 135 | \usepackage[backend=biber,style=gb7714-2015ay]{biblatex} |
| 136 | ``` |
| 137 | |
| 138 | * 同一文献表中不同语言区分不同著录格式的样式 (gb7714-2015ms): |
| 139 | |
| 140 | ```tex |
| 141 | % 设置 gbstyle=false,中文文献使用 GB/T 7714-2015 著录格式,而其它语言文献使用 biblatex 标准样式 |
| 142 | \usepackage[backend=biber,style=gb7714-2015ms,gbstyle=false]{biblatex} |
| 143 | ``` |
| 144 | |
| 145 | * 同一文档中不同文献分节区分不同著录格式的样式 (gb7714-2015mx): |
| 146 | |
| 147 | ```tex |
| 148 | % gb7714-2015mx 默认使用顺序编码制样式 |
| 149 | \usepackage[backend=biber,style=gb7714-2015mx]{biblatex} |
| 150 | % 如需在某一参考文件分节使用著者年份制样式,比如第 2 个 refsection 中使用时,则在导言区设置: |
| 151 | \setaystylesection{2} |
| 152 | ``` |
| 153 | |
| 154 | * 标注(引用)样式和著录样式区分使用: |
| 155 | ```tex |
| 156 | \usepackage[backend=biber,citestyle=gb7714-2015,bibstyle=gb7714-2015ay]{biblatex} |
| 157 | ``` |
| 158 | 或(类似的方式均可) |
| 159 | ```tex |
| 160 | \usepackage[backend=biber,citestyle=gb7714-2015ay,bibstyle=gb7714-2015]{biblatex} |
| 161 | ``` |
| 162 | |
| 163 | * 宏包选项的使用: |
| 164 | |
| 165 | ```tex |
| 166 | % 设置 gbalign 选项以改变文献表序号标签对齐方式, |
| 167 | % 设置 gbpub=false 取消缺省出版项自填补信息,比如: |
| 168 | \usepackage[backend=biber,style=gb7714-2015,gbalign=gb7714-2015,gbpub=false]{biblatex} |
| 169 | ``` |
| 170 | |
| 171 | 更多宏包选项的说明见:[biblatex-gb7714-2015.pdf](biblatex-gb7714-2015.pdf) |
| 172 | |
| 173 | 宏包加载的完整文档示例见:[tex 文档一般结构](#jumptotexsrcf) |
| 174 | |
| 175 | <h3 id="jumptotexsrcf">1. TeX source file/tex文档一般结构</h3> |
| 176 | 注意其中加载 biblatex 宏包的代码: |
| 177 | |
| 178 | ```tex |
| 179 | \documentclass{article} % 文档类 |
| 180 | % 导言区开始: |
| 181 | \usepackage{ctex} % 加载 ctex 宏包,中文支持 |
| 182 | |
| 183 | \usepackage{geometry} % 加载 geometry 宏包,定义版面 |
| 184 | |
| 185 | \usepackage[colorlinks=true,pdfstartview=FitH,% |
| 186 | linkcolor=blue,anchorcolor=violet,citecolor=magenta]{hyperref} % 加载 hyperref 宏包,使用超链接 |
| 187 | |
| 188 | \usepackage[backend=biber,bibstyle=gb7714-2015,%nature,% 加载 biblatex 宏包,使用参考文献 |
| 189 | citestyle=gb7714-2015%,backref=true % 其中后端 backend 使用 biber |
| 190 | ]{biblatex} % 标注(引用)样式 citestyle,著录样式 bibstyle 都采用 gb7714-2015 样式 |
| 191 | |
| 192 | \usepackage{filecontents} |
| 193 | \begin{filecontents}{egbibdata.bib} |
| 194 | @Book{Peebles2001-100-100, |
| 195 | Title = {Probability, random variable, and random signal Principles and \LaTeX{}}, |
| 196 | Address = {New York}, |
| 197 | Author = {von Peebles, Jr., P. Z.}, |
| 198 | Edition = {4}, |
| 199 | Pages = {100}, |
| 200 | Publisher = {McGraw-Hill}, |
| 201 | Year = {2001} |
| 202 | } |
| 203 | |
| 204 | @Book{蔡敏2006--, |
| 205 | Title = {UML基础和Rose建模教程}, |
| 206 | Address = {北京}, |
| 207 | Author = {蔡敏 and 徐慧慧 and 黄柄强}, |
| 208 | Publisher = {人民邮电出版社}, |
| 209 | Year = {2006}, |
| 210 | Month = {1} |
| 211 | } |
| 212 | \end{filecontents} |
| 213 | |
| 214 | \addbibresource[location=local]{egbibdata.bib}%biblatex宏包的参考文献数据源加载方式 |
| 215 | |
| 216 | \begin{document} % 正文区开始: |
| 217 | |
| 218 | % 正文内容,引用参考文献 |
| 219 | |
| 220 | 一、基本用法 |
| 221 | |
| 222 | 见文献\cite{Peebles2001-100-100}\\ |
| 223 | 见文献\parencite{Peebles2001-100-100}\\ |
| 224 | 见文献\citet{Peebles2001-100-100}\\ |
| 225 | 见文献\citep{Peebles2001-100-100}\\ |
| 226 | |
| 227 | |
| 228 | 二、详细用法 |
| 229 | |
| 230 | 1. 不带页码的引用(顺序编码制上标,方括号包围;作者年制行内,括号包围):\\ |
| 231 | 见文献\cite{Peebles2001-100-100}\\ |
| 232 | 见文献\upcite{Peebles2001-100-100}\\ |
| 233 | 见文献\supercite{Peebles2001-100-100} |
| 234 | |
| 235 | 2. 不带页码的引用(顺序编码制非上标,方括号包围;作者年制行内,括号包围):\\ |
| 236 | 见文献\parencite{Peebles2001-100-100}\\ |
| 237 | 见文献\citep{Peebles2001-100-100} |
| 238 | |
| 239 | 3. 带页码的引用(标准命令,默认样式; 增加命令,GB/T 7714-2015样式):\\ |
| 240 | 见文献\cite[见][49页]{蔡敏2006--}\\ |
| 241 | 见文献\parencite[见][49页]{Peebles2001-100-100}\\ |
| 242 | 见文献\pagescite{Peebles2001-100-100}\\ |
| 243 | 见文献\pagescite[201-301]{Peebles2001-100-100} |
| 244 | |
| 245 | 4. 顺序编码制中同时输出作者和顺序编码标签,比如:\\ |
| 246 | 见\citet{蔡敏2006--}(顺序编码标签上标)\\ |
| 247 | 见\authornumcite{蔡敏2006--}\\ |
| 248 | 见\textcite{蔡敏2006--} (顺序编码标签不上标) |
| 249 | 见\citeauthor{蔡敏2006--}\cite{蔡敏2006--}\\ |
| 250 | |
| 251 | 5. 作者年制文中已有作者还需要年份和页码(顺序编码制与pagescite作用相同,作者年制年份行内页码上标):\\ |
| 252 | 见蔡敏\yearpagescite[][205]{蔡敏2006--}和Peebles\yearpagescite[][15]{Peebles2001-100-100} |
| 253 | |
| 254 | 6. 作者年制文中已有作者只需要年份(顺序编码制与pagescite作用相同,作者年制年份行内):\\ |
| 255 | 见赵耀东\yearcite{蔡敏2006--}\\ |
| 256 | 见赵耀东(\cite*{蔡敏2006--})\\ |
| 257 | 见赵耀东(\citeyear{蔡敏2006--}) |
| 258 | |
| 259 | 7. 作者年制中由标注命令给出作者年份信息,作者以主语方式作为正文内容:\\ |
| 260 | 见\cite{蔡敏2006--}\\ |
| 261 | 见\parencite{蔡敏2006--}\\ |
| 262 | 见\textcite{蔡敏2006--}\\ |
| 263 | 见\citet{蔡敏2006--}\\ |
| 264 | 见\citep{蔡敏2006--}\\ |
| 265 | |
| 266 | 8. 在页脚中引用和打印文献表:\\ |
| 267 | 见文献\footnote{在脚注中引用\footcite{蔡敏2006--}}\\ |
| 268 | 见文献\footfullcite{蔡敏2006--} |
| 269 | |
| 270 | |
| 271 | % 打印参考文献表 |
| 272 | \printbibliography[heading=bibliography,title=参考文献] |
| 273 | \end{document} |
| 274 | ``` |
| 275 | |
| 276 | ### 2. Compile method/文档编译方式 |
| 277 | |
| 278 | ```sh |
| 279 | xelatex jobname.tex |
| 280 | biber jobname |
| 281 | xelatex jobname.tex |
| 282 | xelatex jobname.tex |
| 283 | ``` |
| 284 | |
| 285 | 或者 |
| 286 | |
| 287 | ```sh |
| 288 | latexmk -xelatex jobname.tex |
| 289 | ``` |
| 290 | |
| 291 | 编译引擎使用 lualatex 也是可以的,只要该引擎编译时 ctex 宏包能够正确支持中文。 |
| 292 | |
| 293 | |
| 294 | ### 3. Recommended Environment/推荐使用环境 |
| 295 | |
| 296 | - TeX Live + WinEdt |
| 297 | - TeX Live + TeXstudio |
| 298 | - TeX Live 及其它发行版安装见[安装指南](https://github.com/sjtug/SJTUThesis/wiki/%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97) |
| 299 | |
| 300 | |
| 301 | ### 4. Common Questions/常见问题 |
| 302 | |
| 303 | #### 4.1 Installation and Use/安装和使用 |
| 304 | |
| 305 | * <b>怎么利用biblatex生成国标GB/T 7714-2015格式的参考文献表?</b> |
| 306 | |
| 307 | (1)在导言区加载biblatex宏包,并使用gb7714-2015样式: |
| 308 | |
| 309 | ```tex |
| 310 | \usepackage[backend=biber,style=gb7714-2015]{biblatex} |
| 311 | ``` |
| 312 | |
| 313 | (2)正文中引用参考文献: |
| 314 | |
| 315 | ```tex |
| 316 | 见文献 \cite{referencbibtexkey} |
| 317 | ``` |
| 318 | |
| 319 | (3)在需要的地方打印参考文献表: |
| 320 | |
| 321 | ```tex |
| 322 | \printbibliography |
| 323 | ``` |
| 324 | 更直接的例子见前述的 [tex 源文档](#jumptotexsrcf) |
| 325 | |
| 326 | |
| 327 | |
| 328 | |
| 329 | * <b>请问我应该怎么安装和更新 biblatex-gb7714-2015 宏包?</b> |
| 330 | |
| 331 | |
| 332 | biblatex-gb7714-2015 宏包是基于 biblatex 的样式宏包,目前 TeX Live,MiKTeX都已收录,因此可以直接使用,一般不需要安装。 |
| 333 | |
| 334 | 如果使用时,系统提示找不 gb7714-2015.bbx 或 gb7714-2015ay.bbx 文件的错误,说明当前 TeX 系统未安装 biblatex-gb7714-2015 样式包,这时需要安装它。 |
| 335 | |
| 336 | 最简单的方法是从本项目源码中下载 gb7714-2015.bbx、gb7714-2015ay.bbx、gb7714-2015.cbx、gb7714-2015ay.cbx 四个文件放到你要编译的主文档所在目录,如果需要使用 gbk 编码,则还需复制 gb7714-2015-gbk.def 文件。对于已经安装的用户需要更新到最新版,也可以下载这些文件替换系统已经安装的文件。 |
| 337 | |
| 338 | |
| 339 | |
| 340 | * <b>请问使用时 biblatex-gb7714-2015 宏包时出现错误“ Package xkeyval Error: gb****** ' undefined in families blx@opt@pre'. [\blx@processoptions] ”?</b> |
| 341 | |
| 342 | |
| 343 | |
| 344 | 因为宏包的功能不断增加和完善,当在 tex 源文档中,使用新版中的一些选项时,而系统中的 biblatex-gb7714-2015 宏包是旧版时,就会出现`gb****`选项未定义的错误。解决方法就是更新 biblatex-gb7714-2015 宏包。更新方法见上一个问题。 |
| 345 | |
| 346 | |
| 347 | |
| 348 | * <b>为什么我之前使用样式`style=caspervector`进行编译没有问题,换成`style=gb7714-2015`后,编译就出现错误?</b> |
| 349 | |
| 350 | 可能有三个原因: |
| 351 | |
| 352 | (1) 辅助文件没有清理导致,当采用 caspervector 样式时编译产生的辅助文件中可能带有该样式的一些特有信息,由此产生一些不兼容。因此需要的操作是,清除辅助文件,然后再进行编译。清除命令为 (下面的命令是 Windows 下的,linux 下的是类似的只需把删除命令换成`rm -f`): |
| 353 | |
| 354 | ```del /q *.aux *.bbl *.blg *.log *.out *.toc *.bcf *.xml *.synctex *.nlo *.nls *.bak *.ind *.idx *.ilg *.lof *.lot *.ent-x *.tmp *.ltx *.los *.lol *.loc *.listing *.gz *.synctex(busy) *.nav *.snm *.vrb *.fls *.xdv *.fdb_latexmk``` |
| 355 | |
| 356 | (2) biblatex-gb7714-2015 版本过于陈旧,旧版本对于一些特殊情况可能考虑不全面。因此需要的操作是更新 biblatex-gb7714-2015,方法见上一个问题。 |
| 357 | |
| 358 | (3) 编译命令问题,通常情况下 tex 文档和 bib 文档是 utf8 编码的,因此最好采用 xelatex 编译,而不用 pdflatex。因此如果编译时用 pdflatex 出现错误,请换成 xelatex。 |
| 359 | |
| 360 | |
| 361 | * <b>为什么我编译文档后没有出现参考文献表?</b> |
| 362 | |
| 363 | 当编译过程出现错误时,那么检查错误的原因,并解决它。 |
| 364 | 当编译过程没有出现错误,那么很有可能是没有采用正确的命令进行文献编译,比如采用了传统的 bibtex 而不是 biber。那么采用正确的编译命令重新编译即可: |
| 365 | ```sh |
| 366 | xelatex jobname.tex |
| 367 | biber jobname |
| 368 | xelatex jobname.tex |
| 369 | ``` |
| 370 | |
| 371 | * <b>使用 biblatex 时运行简单示例也出现错误,查看 biber 输出结果似乎不正常,这种情况怎么解决?</b> |
| 372 | |
| 373 | 由于 biber 在第一次运行时会在缓存文件夹下创建一些二进制运行文件,如果这些文件被破坏,那么 biber 运行结果会出现莫名其妙的错误。比如: |
| 374 | biber 运行一半就结束了,log 信息如下所示: |
| 375 | |
| 376 | ``` |
| 377 | INFO - This is Biber 2.16 |
| 378 | INFO - Logfile is 'thuthesis-example.blg' |
| 379 | INFO - Reading 'thuthesis-example.bcf' |
| 380 | INFO - Found 34 citekeys in bib section 0 |
| 381 | INFO - Processing section 0 |
| 382 | INFO - Looking for bibtex format file 'ref/refs.bib' for section 0 |
| 383 | INFO - LaTeX decoding ... |
| 384 | INFO - Found BibTeX data source 'ref/refs.bib' |
| 385 | ``` |
| 386 | 这次运行中只是找到了 bib 文件,并没有下一步的处理,显然是存在问题的。 |
| 387 | |
| 388 | 因此如果出现这种情况,可以手动删除缓存文件夹,让 biber 重新创建。这些缓存文件夹名字通常为: |
| 389 | |
| 390 | ``` |
| 391 | par-<hex_encoded_username>/cache-* |
| 392 | par-<hex_encoded_username>\cache-* |
| 393 | ``` |
| 394 | |
| 395 | 在不同的系统下面,缓存文件夹的位置是不同的,可能的位置包括: |
| 396 | |
| 397 | ``` |
| 398 | /var/folders/*/*/*/ (OSX, local GUI login shell) |
| 399 | /var/tmp/ (OSX (remote ssh login shell), Unix) |
| 400 | /tmp/ (Linux) |
| 401 | C:\Documents and Settings\<username>\Local Settings\Temp (Windows XP/Cyg- win) |
| 402 | C:\Windows\Temp (Windows) |
| 403 | C:\Users\<username>\AppData\Local\Temp (Windows 7/8) |
| 404 | ``` |
| 405 | |
| 406 | 也可以从运行得到的 `.blg` 文件或者命令 `biber --cache` 来找到缓存文件夹。 |
| 407 | |
| 408 | 删除缓存文件夹操作,在 Linux 和 Mac 下可以使用如下命令操作: |
| 409 | ```sh |
| 410 | rm -rf `biber --cache` |
| 411 | ``` |
| 412 | |
| 413 | 在 Windows 下,那么其实随便用个清理软件把临时文件夹清理一下就行。直接点就是找到`par-<hex_encoded_username>/cache-*`缓存文件夹然后删除它。 |
| 414 | |
| 415 | |
| 416 | * <b>为什么利用 ctex2.9 套装进行编译时,出现错误?</b> |
| 417 | |
| 418 | |
| 419 | 由于 ctex2.9 套装多年未更新,其中的 biblatex 宏包过于陈旧,所以需要更新 biblatex。 |
| 420 | |
| 421 | |
| 422 | |
| 423 | * <b>请问除了利用 xelatex 进行编译外,能不能用 pdflatex 进行编译?</b> |
| 424 | |
| 425 | |
| 426 | 能用 pdflatex 进行编译。但要注意的是因为某些样式比如 authoryear 等使用了 xstring 宏包中的一些命令,所以会产生错误,但 numeric 类样式通常没有问题。这一问题在 biblatex 更新到 3.12 版本后取消 xstring 宏包后得以解决。 |
| 427 | |
| 428 | 中文用户需要注意一些编码的问题: |
| 429 | |
| 430 | utf-8 编码的文档,采用 xelatex 编译没有任何注意事项,但使用 pdflatex 编译时,需要给 ctex 宏包加载 UTF8 选项,比如 `\usepackage[UTF8]{ctex}` 或者在文档类加载时给出也可以比如`\documentclass[[UTF8]{article}`,同时引用文献时使用的引用关键词应使用英文。 |
| 431 | |
| 432 | 当文档使用其他编码时,xelatex 编译通常需要指定一个文档编码,比如 Windows 环境下的 GB2312 编码的文档需要指定 `\XeTeXinputencoding "GBK"`,否则显示乱码。使用 pdflatex 进行编译,如果 biblatex 不能正确的处理编码问题,那么需要为其明确的指定 texencoding 和 bibencoding 选项。比如 Windows 环境下的 GB2312 编码的文档,需要指定 `\usepackge[texencoding=GBK]{biblatex}`。 |
| 433 | |
| 434 | |
| 435 | * <b>请问要给 biblatex-gb7714-2015 设置一些选项,但模板已经将 biblatex 调用写死且不方便修改,该如何处理?</b> |
| 436 | |
| 437 | 可以使用 `\PassOptionsToPackage` 命令来实现。,比如将 `gbnamefmt=lowercase` 选项传递给 biblatex,那么可以使用如下命令: |
| 438 | ```tex |
| 439 | \PassOptionsToPackage{gbnamefmt=lowercase}{biblatex} |
| 440 | ``` |
| 441 | 需要注意的是要使该命令生效,这条命令需要在调用 biblatex 之前出现,可以放到导言区调用 biblatex 之前,也可以放到文档类调用之前 (即 `\documentclass` 命令之前),比如: |
| 442 | |
| 443 | ```tex |
| 444 | \PassOptionsToPackage{gbpub=false}{biblatex} |
| 445 | |
| 446 | \documentclass[twoside]{article} |
| 447 | \usepackage{ctex} |
| 448 | \usepackage[backend=biber,style=gb7714-2015,gbalign=center]{biblatex} |
| 449 | ``` |
| 450 | |
| 451 | |
| 452 | |
| 453 | * <b>请问使用 `backref=true` 选项后,某个反向超链接总是链接到封面页是怎么回事?</b> |
| 454 | |
| 455 | |
| 456 | 对页码进行正确超链接需要一个前提是,当前链接的页码是唯一的。当有两页具有相同的页码时,超链接总是链接到第一各具有该页码的页面上。比如封面页页码是 1,正文第一页页码也是 1,那么到正文第一页的反向超链接总会链接到封面页上。解决该问题就是要解决页码的唯一性问题。当页码的表示形式不是同一种时,那么也会得到正确的区分。比如封面页用罗马字母I表示,而正文第一页用阿拉伯数字1表示,那么就能得到正确的反向超链接。类似于: |
| 457 | |
| 458 | ```tex |
| 459 | \pagenumbering{roman} |
| 460 | \title{title} |
| 461 | \maketitle |
| 462 | \clearpage |
| 463 | |
| 464 | \pagenumbering{arabic} |
| 465 | \section{文献表} |
| 466 | ``` |
| 467 | |
| 468 | |
| 469 | * <b>我希望参考文献表中的文献不是按引用顺序而是以文献作者的字母顺序排序,怎么实现?</b> |
| 470 | |
| 471 | |
| 472 | 一般情况下文献表是按引用顺序进行排列,标签是顺序的数字,这种方式称为顺序编码制。 |
| 473 | 如果要以文献作者字母顺序排列,那么可以换一种编制方式,称为作者年制: |
| 474 | |
| 475 | ```tex |
| 476 | \usepackage[backend=biber,style=gb7714-2015ay]{biblatex} |
| 477 | ``` |
| 478 | |
| 479 | 如果要求使用顺序编码制文献表,又要以文献作者字母顺序排列,那么可以增加排序选项 `sorting=nyt`,意为按照姓名、年份、标题的字母顺序进行排序: |
| 480 | |
| 481 | ```tex |
| 482 | \usepackage[backend=biber,style=gb7714-2015,sorting=nyt]{biblatex} |
| 483 | ``` |
| 484 | |
| 485 | * <b>作者年制中英文文献能按字母顺序排列,那么中文文献能否以拼音或者笔画进行排序呢?</b> |
| 486 | |
| 487 | |
| 488 | 能,有两种方式实现: |
| 489 | |
| 490 | (1)通过编译时给 biber 设置选项来实现: |
| 491 | |
| 492 | ```sh |
| 493 | % 按拼音排序,biber 命令 |
| 494 | biber -l zh__pinyin jobname |
| 495 | % 按笔画排序,biber 命令 |
| 496 | biber -l zh__stroke jobname |
| 497 | ``` |
| 498 | |
| 499 | (2)通过增加 biblatex 选项来实现(此时 biber 编译无需另加选项),比如: |
| 500 | |
| 501 | ```tex |
| 502 | \usepackage[backend=biber,style=gb7714-2015ay,sortlocale=zh__pinyin]{biblatex} |
| 503 | ``` |
| 504 | |
| 505 | * <b>作者年制参考文献表目前的排序时升序排列,能不能改成降序排序?</b> |
| 506 | |
| 507 | |
| 508 | 能,通过修改 sorting 选项实现: |
| 509 | |
| 510 | |
| 511 | ```tex |
| 512 | \usepackage[backend=biber,style=gb7714-2015ay,sorting=gbnytd]{biblatex} |
| 513 | ``` |
| 514 | |
| 515 | 可用的选项值包括: |
| 516 | ``` |
| 517 | nty 按照姓名、标题、年份排序。 |
| 518 | nyt 按照姓名、年份、标题排序。 |
| 519 | nyvt 按照姓名、年份、卷数、标题排序。 |
| 520 | anyt 按照字母标签、姓名、年份、标题排序。 |
| 521 | anyvt 按照字母标签、姓名、年份、卷数、标题排序。 |
| 522 | ynt 按照年份、姓名、标题排序。 |
| 523 | ydnt 按照年份(降序)、姓名、标题排序。 |
| 524 | none 不进行排序。所有的条目按照引用顺序处理。 |
| 525 | gb7714-2015 以语言、作者、年份、标题、升序排列 |
| 526 | gbnytd 以语言、作者、年份、标题、降序排列 |
| 527 | gbynta 以语言、年份、作者、标题、升序排列 |
| 528 | gbyntd 以语言、年份、作者、标题、降序排列 |
| 529 | ``` |
| 530 | |
| 531 | * <b>如果我还希望顺序编码的文献著录表以拼音排序,请问该怎么操作?</b> |
| 532 | |
| 533 | 顺序编码文献著录表默认是按引用顺序排序,但可以通过设置 sorting 选项进行调整,比如 sorting=nyt 表示按作者姓名年份以及文献标题进行排序。要使中文能按拼音排序,可以设置本地化排序调整方案,即 sortlocale 选项,比如: |
| 534 | |
| 535 | ```tex |
| 536 | \usepackage[backend=biber,citestyle=gb7714-2015ay,bibstyle=gb7714-2015,sorting=nyt,sortlocale=zh__pinyin]{biblatex} |
| 537 | ``` |
| 538 | |
| 539 | * <b>我希望文献表以阿拉伯数字编号,而正文中的引用标签使用作者和年份标注而不是数字,请问我该如何处理?</b> |
| 540 | |
| 541 | 可以设置不同的标注和著录样式,比如标注样式用作者年制,而著录样式用顺序编码制,比如: |
| 542 | |
| 543 | ```tex |
| 544 | \usepackage[backend=biber,citestyle=gb7714-2015ay,bibstyle=gb7714-2015]{biblatex} |
| 545 | ``` |
| 546 | |
| 547 | 但这种情况下,文献表中的年份信息是在出版项里面的,如果要提前到作者后面,可以使用如下方式: |
| 548 | |
| 549 | ```tex |
| 550 | \usepackage[backend=biber,style=gb7714-2015ay,gbgalign=right]{biblatex} |
| 551 | ``` |
| 552 | |
| 553 | 如果要让年份信息既出现在作者后面又出现在出版项里面,那么还可以增加 mergedate 选项进行控制: |
| 554 | |
| 555 | ```tex |
| 556 | \usepackage[backend=biber,style=gb7714-2015ay,gbgalign=right,mergedate=false]{biblatex} |
| 557 | ``` |
| 558 | |
| 559 | 这种情况下,直接用 gb7714-2015ay 下的 gbgalign 选项来生成数字标签的文献表,而且可以使用 right/left/center/gb7714-2015 等不同的选项值来实现不同对齐形式的标签。 |
| 560 | |
| 561 | 反过来如果要在文中引用是数字标签,而文献表是无数字标签的样式,那么也可以使用下面两种方式: |
| 562 | |
| 563 | ```tex |
| 564 | \usepackage[backend=biber,style=gb7714-2015,gbalign=gb7714-2015ay]{biblatex} |
| 565 | ``` |
| 566 | |
| 567 | 这种情况下,文献表中的年份信息是在出版项里面的,如果要提前到作者后面,则使用: |
| 568 | |
| 569 | ```tex |
| 570 | \usepackage[backend=biber,citestyle=gb7714-2015,bibstyle=gb7714-2015ay]{biblatex} |
| 571 | ``` |
| 572 | |
| 573 | 类似的也可以使用 mergedate 选项来控制年份的显示情况: |
| 574 | |
| 575 | ```tex |
| 576 | \usepackage[backend=biber,citestyle=gb7714-2015,bibstyle=gb7714-2015ay,mergedate=false]{biblatex} |
| 577 | ``` |
| 578 | |
| 579 | 参见 [issue: 参考文献的顺序](https://github.com/sjtug/SJTUThesis/issues/300), |
| 580 | [issue90](https://github.com/hushidong/biblatex-gb7714-2015/issues/90) |
| 581 | |
| 582 | |
| 583 | |
| 584 | |
| 585 | |
| 586 | |
| 587 | |
| 588 | * <b>请问如果参考文献中存在一些特殊字符比如 `&` 或者一些特殊命令比如 `\LaTeX{}` 等,是不是会出现问题?</b> |
| 589 | |
| 590 | |
| 591 | 通常不会出现问题,直接输入即可,当出现问题时可以手动调整比如修改为 `\&` 和 `{\LaTeX{}}` |
| 592 | |
| 593 | |
| 594 | |
| 595 | * <b>如果希望在参考文献中直接使用一些 unicode 字符比如希腊字母等而不想用数学环境中的命令,请问该怎么处理?</b> |
| 596 | |
| 597 | |
| 598 | 直接显示希腊字母等 unicode 字符需要字体的支持,比如 CMU Serif 等,可以在整个文档全局使用该字体,也可以仅在文献表中使用该字体,比如: |
| 599 | |
| 600 | ```tex |
| 601 | { |
| 602 | \newcommand{\ftcmu}{\fontspec{CMU Serif}\selectfont} |
| 603 | \renewcommand{\bibfont}{\ftcmu} % 设置英文字体不影响中文字体 |
| 604 | \printbibliography |
| 605 | } |
| 606 | ``` |
| 607 | |
| 608 | 当然字体设置需要 fontspec 宏包的支持。 |
| 609 | |
| 610 | |
| 611 | |
| 612 | * <b>如何修改参考文献文献表的垂直间距(竖直间距)?</b> |
| 613 | |
| 614 | 设置如下尺寸即可 |
| 615 | |
| 616 | ```tex |
| 617 | % 间距的控制 |
| 618 | \setlength{\bibitemsep}{0ex} |
| 619 | \setlength{\bibnamesep}{0ex} |
| 620 | \setlength{\bibinitsep}{0ex} |
| 621 | |
| 622 | ``` |
| 623 | 其中 itemsep 设置各条文献之间的间隔,一般够用,后面两个常在西文中使用。具体意义参考 biblatex-zh-cn |
| 624 | |
| 625 | |
| 626 | |
| 627 | * <b>如何修参考文献表的缩进?</b> |
| 628 | |
| 629 | 对于著者-出版年制文献表,设置如下尺寸即可: |
| 630 | ```tex |
| 631 | % 文献表中各条文献的缩进控制 |
| 632 | \setlength{\bibitemindent}{0em} % bibitemindent 表示一条文献中第一行相对后面各行的缩进 |
| 633 | \setlength{\bibhang}{0pt} % 著者-出版年制中 bibhang 表示的各行起始位置到页边的距离 |
| 634 | ``` |
| 635 | |
| 636 | 对于顺序编码制文献表,可以采用如下方法: |
| 637 | |
| 638 | 由于顺序编码制存在数字标签,且其宽度与参考文献数量相关的,在 biblatex 中这个宽度是一个动态变量,不是提前设定的,而是在文献表生成时给出,所以设定缩进需要更复杂的操作。 |
| 639 | |
| 640 | 对于采用 list 环境的文献表,即设置 gbalign=left、right、center 时,那么需要修改文献表环境来设定缩进,比如: |
| 641 | |
| 642 | ```tex |
| 643 | % 调整顺序标签与文献内容的间距 |
| 644 | \setlength{\biblabelsep}{2mm} |
| 645 | % 修改对齐环境-使不缩进 |
| 646 | \defbibenvironment{bibliography} |
| 647 | {\list |
| 648 | {\printtext[labelnumberwidth]{% |
| 649 | \printfield{labelprefix}% |
| 650 | \printfield{labelnumber}}} |
| 651 | {% 这里是所做的调整,通过设置 \bibitemindent,\bibhang 调整缩进 |
| 652 | \addtolength{\bibitemindent}{\labelnumberwidth}% |
| 653 | \addtolength{\bibitemindent}{\biblabelsep}% |
| 654 | \addtolength{\bibhang}{-\labelnumberwidth} % |
| 655 | \addtolength{\bibhang}{-\biblabelsep}% |
| 656 | % 以下是默认的设置 |
| 657 | \setlength{\labelwidth}{\labelnumberwidth}% |
| 658 | \setlength{\labelsep}{\biblabelsep}% |
| 659 | \setlength{\leftmargin}{\bibhang}% |
| 660 | \addtolength{\leftmargin}{\labelnumberwidth}% |
| 661 | \setlength{\itemindent}{\bibitemindent}% |
| 662 | \setlength{\itemsep}{\bibitemsep}% |
| 663 | \setlength{\parsep}{\bibparsep}}% |
| 664 | \renewcommand*{\makelabel}[1]{\hss##1}} |
| 665 | {\endlist} |
| 666 | {\item} |
| 667 | ``` |
| 668 | |
| 669 | 对于不采用 list 环境的文献表,即设置 `gbalign=gb7714-2015` 时,可以采用如下设定: |
| 670 | |
| 671 | ```tex |
| 672 | % 调整顺序标签与文献内容的间距 |
| 673 | \setlength{\biblabelsep}{2mm} |
| 674 | % 修改对齐环境-使不缩进 |
| 675 | \renewcommand{\itemcmd}{% |
| 676 | \settowidth{\lengthid}{\mkgbnumlabel{\printfield{labelnumber}}} |
| 677 | %% 这里是所做的调整,以下两句通过调整 \lengthid 来调整缩进 |
| 678 | \setlength{\lengthid}{0pt} |
| 679 | \addtolength{\lengthid}{-\biblabelsep} |
| 680 | % 如下是默认设置 |
| 681 | \addtolength{\lengthid}{\biblabelsep} |
| 682 | \setlength{\lengthlw}{\textwidth} |
| 683 | \addtolength{\lengthlw}{-\lengthid} |
| 684 | \addvspace{\bibitemsep} % 恢复 \bibitemsep 的作用 |
| 685 | %\parshape 2 0em \textwidth \lengthid \lengthlw |
| 686 | \hangindent\lengthid |
| 687 | \mkgbnumlabel{\printfield{labelnumber}}% |
| 688 | \hspace{\biblabelsep}} |
| 689 | ``` |
| 690 | |
| 691 | 示例见:[issue](https://github.com/hushidong/biblatex-gb7714-2015/issues/62) |
| 692 | |
| 693 | |
| 694 | |
| 695 | |
| 696 | * <b>如何修改参考文献表的字体字号?</b> |
| 697 | |
| 698 | 通过修改如下命令实现 |
| 699 | |
| 700 | ```tex |
| 701 | % 字体的控制: \textit, sl, emph-楷体, \textbf, sf-黑体, \texttt-仿宋, \textsc, md, up-宋体 |
| 702 | % 全局字体 |
| 703 | \renewcommand{\bibfont}{\zihao{-5}}%\fangsong |
| 704 | % 题名字体 |
| 705 | \renewcommand{\bibauthorfont}{\bfseries\color{teal}}% |
| 706 | \renewcommand{\bibtitlefont}{\ttfamily\color{blue}}% |
| 707 | \renewcommand{\bibpubfont}{\itshape\color{violet}}% |
| 708 | % url 和 doi 字体 |
| 709 | \def\UrlFont{\ttfamily} %\urlstyle{sf} %\def\UrlFont{\bfseries} |
| 710 | ``` |
| 711 | |
| 712 | |
| 713 | * <b>我习惯用传统的 bst 文件来生成参考文献,有没有 GB/T 7714-2015 标准的实现版本?</b> |
| 714 | |
| 715 | |
| 716 | GB/T 7714-2015 标准实现的 bst 版本,已经由 [zepinglee](https://github.com/CTeX-org/gbt7714-bibtex-style) 开发完毕,直接使用即可。 |
| 717 | |
| 718 | |
| 719 | |
| 720 | * <b>我在使用过程中遇到了一些无法理解和无法解决的问题,怎么办?</b> |
| 721 | |
| 722 | |
| 723 | 请邮件联系 [email protected] 或在项目内发 issue 提问即可。 |
| 724 | |
| 725 | |
| 726 | * <b>注意帮助的文档的查询顺序?</b> |
| 727 | |
| 728 | 一般用户的话查:biblatex-gb7714-2015.pdf,biblatex-solution-to-latex-bibliography.pdf,biblatex-zh-cn.PDF。 |
| 729 | 宏包作者的话查:gb7714-2015*.C/BBX,biblatex.PDF,numeric/authoryear.c/BBX,standard.bbx,biblatex.def,biblatex.sty,english.lbx |
| 730 | 注意别忘了 lbx 文件。 |
| 731 | |
| 732 | |
| 733 | #### 4.2 Bibliography Format/文献表著录格式 |
| 734 | |
| 735 | * <b>请问可以在参考文献表中实现类似于 word 那样的与文献内容等间距的标签对齐格式么?</b> |
| 736 | |
| 737 | |
| 738 | 可以,latex 的列表通常用 list 来实现,因此一般列表的内容都是对齐的, |
| 739 | 此时如果标签右对齐的,那么标签和内容等间距,但标签左侧是不对齐的,此时对应的选项为:`gbalign=right`。 |
| 740 | 如果标签是左对齐的,那么标签和内容的间距不相等,此时对应的选项为:`gbalign=left`。 |
| 741 | 如果标签是中间对齐的,那么标签的两侧的[]是对齐的,数字标签处于其中间,此时对应的选项为:`gbalign=center`。 |
| 742 | 如果要求标签左侧对齐,且标签与内容等间距,则必须放弃使用list,这种方式在本宏包中称为项对齐,对应选项为 `gbalign=gb7714-2015`, |
| 743 | 这是 biblatex-7714-2015 的顺序编码制样式为项对齐设计了专门环境达成的,其使用方式很简单,加上响应的选项即可: |
| 744 | |
| 745 | ```tex |
| 746 | \usepackage[backend=biber,bibstyle=gb7714-2015,gbalign=gb7714-2015]{biblatex} |
| 747 | ``` |
| 748 | |
| 749 | * <b>如果不希望在参考文献表中出现类似“出版地不详”“出版者不详”等信息时,请问该怎么处理?</b> |
| 750 | |
| 751 | |
| 752 | 设置选项 `gbpub` 可以实现,当 `gbpub=false` 时,biblatex-gb7714-2015 宏包会放弃国标的要求,不使用“出版地不详”等补充信息: |
| 753 | |
| 754 | ```tex |
| 755 | \usepackage[backend=biber,bibstyle=gb7714-2015,gbpub=false]{biblatex} |
| 756 | ``` |
| 757 | |
| 758 | * <b>我觉得文献表中英文作者全部用大写不好看,请问能换一种大小写方式么?</b> |
| 759 | |
| 760 | |
| 761 | 能,通过设置 `gbnamefmt` 可以实现,默认情况下 `gbnamefmt=uppercase`,作者姓名字母全部大写。 |
| 762 | 当设置 `gbnamefmt=lowercase` 时,biblatex-gb7714-2015 宏包对于 bib 文件中的作者姓名的大小写不做改变, |
| 763 | 这时可以在 bib 文件中手动设置想要的大小写方式。 |
| 764 | 当要实现类似 ZHAO Yu-xin 这样的拼音方式,则可以设置 `gbnamefmt=pinyin`: |
| 765 | |
| 766 | ```tex |
| 767 | \usepackage[backend=biber,bibstyle=gb7714-2015,gbnamefmt=lowercase]{biblatex} |
| 768 | ``` |
| 769 | |
| 770 | * <b>如果不希望在参考文献表中出现类似“[M]”“[J]”等文献类型标识符时,请问该怎么处理?</b> |
| 771 | |
| 772 | |
| 773 | 可通过设置选项 `gbtype=false` 实现: |
| 774 | |
| 775 | ```tex |
| 776 | \usepackage[backend=biber,bibstyle=gb7714-2015,gbtype=false]{biblatex} |
| 777 | ``` |
| 778 | |
| 779 | |
| 780 | * <b>如果不希望在参考文献表中出现网址信息时,请问该怎么处理?</b> |
| 781 | |
| 782 | |
| 783 | 可通过设置选项 `url=false` 实现: |
| 784 | |
| 785 | ```tex |
| 786 | \usepackage[backend=biber,bibstyle=gb7714-2015,url=false]{biblatex} |
| 787 | ``` |
| 788 | |
| 789 | |
| 790 | * <b>如果不希望在参考文献表中出现 DOI 信息时,请问该怎么处理?</b> |
| 791 | |
| 792 | |
| 793 | 可通过设置选项 `doi=false` 实现: |
| 794 | |
| 795 | ```tex |
| 796 | \usepackage[backend=biber,bibstyle=gb7714-2015,doi=false]{biblatex} |
| 797 | ``` |
| 798 | |
| 799 | * <b>如果对当前文献中的 url 或 doi 显示效果(包括间距和断行)不满意,能否进行调整?</b> |
| 800 | |
| 801 | |
| 802 | 能,可以通过设置三个计数器的值来调整,取值范围 0 到 9999,计数器的值越大则越容易在相应的内容后断行: |
| 803 | |
| 804 | ```tex |
| 805 | \setcounter{biburlnumpenalty}{100} % 大于 0 允许在数字后面断行 |
| 806 | \setcounter{biburlucpenalty}{100} % 大于 0 允许在大写字母后面断行 |
| 807 | \setcounter{biburllcpenalty}{100} % 大于 0 允许在小写字母后面断行 |
| 808 | ``` |
| 809 | |
| 810 | * <b>中英文混排,有些英文断行不佳,导致行溢出,怎么解决?</b> |
| 811 | |
| 812 | |
| 813 | biblatex 的参考文献表的换行是由 tex 的断行机制决定的,处理行(盒子)溢出就要用 tex 的方式处理: |
| 814 | |
| 815 | 直接使用 `\sloppy` 命令 |
| 816 | |
| 817 | ```tex |
| 818 | { |
| 819 | \sloppy |
| 820 | \printbibliography[heading=subbibintoc,title=【参考文献】] |
| 821 | } |
| 822 | ``` |
| 823 | 或者自己设置具体断行相关的参数 |
| 824 | ```tex |
| 825 | { |
| 826 | %\hyphenation{Proce-edings} |
| 827 | \hyphenpenalty=5000 % 断词阈值, 值越大越不容易出现断词 |
| 828 | \tolerance=500 % 丑度, 10000 为最大无溢出盒子, 参考 the TeXbook 第 6 章 |
| 829 | \hbadness=100 % 如果丑度超过 hbadness 这一阀值, 那么就会发出警告 |
| 830 | \printbibliography[heading=subbibintoc,title=【参考文献】] |
| 831 | } |
| 832 | ``` |
| 833 | |
| 834 | 当然如果不想这么设置,可以手动的修改参考文献条目的内容,在需要换行的内容前加上-符号。 |
| 835 | 见:https://github.com/hushidong/biblatex-gb7714-2015/issues/89 |
| 836 | |
| 837 | |
| 838 | * <b>参考文献表的每一页的页面底部不对齐,怎么处理?</b> |
| 839 | |
| 840 | 通常是由一条参考文献内部不分页导致的,默认情况下希望一条参考文献条件放在一个页面内,所以在页面底部的文献可能由于放不下跑到下一页。 |
| 841 | 这种情况可以通过调整段内的分页阈值改变,即使得一条参考文献(即一个段内)更容易分页即可: |
| 842 | |
| 843 | ```tex |
| 844 | { |
| 845 | \interlinepenalty=5000 % 分页阈值,越小越容易分页 |
| 846 | \printbibliography[heading=subbibintoc,title=【参考文献】] |
| 847 | } |
| 848 | ``` |
| 849 | |
| 850 | * <b>当参考文献没有作者时,希望用佚名或Anon代替作者时,请问该怎么处理?</b> |
| 851 | |
| 852 | |
| 853 | 可通过设置选项 `gbnoauthor=true` 实现,注意该处理主要用在作者年制中: |
| 854 | |
| 855 | ```tex |
| 856 | \usepackage[backend=biber,bibstyle=gb7714-2015,gbnoauthor=true]{biblatex} |
| 857 | ``` |
| 858 | |
| 859 | * <b>如果希望参考文献表中文献作者数量超过国标规定的 3 个时,请问该怎么处理?</b> |
| 860 | |
| 861 | |
| 862 | 可通过设置选项 `maxbibnames`,`minbibnames` 实现,比如下面的设置用于显示 5 个作者: |
| 863 | |
| 864 | ```tex |
| 865 | \usepackage[backend=biber,bibstyle=gb7714-2015,maxbibnames=5,minbibnames=5]{biblatex} |
| 866 | ``` |
| 867 | |
| 868 | |
| 869 | * <b>请问如何将作者之间的分隔符调整为 and 而不是用逗号?</b> |
| 870 | |
| 871 | |
| 872 | 可以通过重设两个分隔符来实现,分别是 multinamedelim 和 finalnamedelim。低版本的 biblatex 直接重定义命令 `\multinamedelim` 和 `\finalnamedelim`,高版本的 biblatex 可以使用分隔符环境,这样可以在标注、文献表等不同位置直接使用不同的分隔符,而不像低版本 biblatex 那样只能在不同的位置修改局部定义。比如: |
| 873 | |
| 874 | ```tex |
| 875 | \DeclareDelimFormat[bib]{multinamedelim}{\addspace and \addspace} |
| 876 | \DeclareDelimFormat[bib]{finalnamedelim}{\addspace and \addspace} |
| 877 | \DeclareDelimFormat[cite]{multinamedelim}{\addcomma\addspace} |
| 878 | \DeclareDelimFormat[cite]{finalnamedelim}{\addcomma\addspace} |
| 879 | ``` |
| 880 | |
| 881 | |
| 882 | |
| 883 | * <b>请问如何使文献表中文献标题的是句首字母大写而其它所有字母均小写?</b> |
| 884 | |
| 885 | |
| 886 | 默认情况下,biblatex-gb7714-2015 仅对标题首字母做调整,使其变成为大写,而其他字母大小写不做处理,因此要得到想要的字母大小写格式,需要在 bib 文件输入参考文献信息时给出需要的除首字母外的其它字母的大小写格式。 |
| 887 | |
| 888 | 若有特殊情况,需要首字母为小写,可采用如下两种方法: |
| 889 | |
| 890 | (1)根据字符大小写更换命令比如 |
| 891 | |
| 892 | `{\MakeLowercase i}FogSim title contents` |
| 893 | |
| 894 | (2)修改 titlecase 域格式,即将如下命令放到导言区中,放在 biblatex 宏包加载命令后面 |
| 895 | |
| 896 | ```tex |
| 897 | \DeclareFieldFormat{titlecase}{\iftoggle{bbx:titlelink}{% |
| 898 | \iffieldundef{url}{#1}{% |
| 899 | \href{\thefield{url}}{#1}}}{#1}}%重设标题格式,将去除首字母大写 |
| 900 | ``` |
| 901 | |
| 902 | 注意:v1.1g 版本后不再默认修改标题的字母大小写,若需要修改可以手动修改 bib 文件,若需要批量修改,可以使用 [bibmap](https://github.com/hushidong/biblatex-map/) 工具。 |
| 903 | |
| 904 | |
| 905 | |
| 906 | * <b>请问如何使文献表中的期刊名是单词首字母大写的?</b> |
| 907 | |
| 908 | |
| 909 | 默认情况下,biblatex-gb7714-2015 不对期刊名的字母大小写做处理, |
| 910 | 因此需要在 bib 文件输入参考文献信息时给出需要的大小写格式。 |
| 911 | |
| 912 | |
| 913 | |
| 914 | * <b>我想得到中英文对照的双语参考文献,请问该如何处理?</b> |
| 915 | |
| 916 | |
| 917 | biblatex-gb7714-2015 设计了两种多语言对照参考文献的实现方式, |
| 918 | 一种是利用条目集的概念,另一种是利用关联条目的概念。 |
| 919 | 因此有两种方法: |
| 920 | |
| 921 | (1)方法一,动态定义条目集: |
| 922 | 在导言区或正文中定义: |
| 923 | ```tex |
| 924 | \defbibentryset{易仕和,等,2013}{易仕和2013--,Yi2013--} |
| 925 | ``` |
| 926 | |
| 927 | 在正文中引用: |
| 928 | ```tex |
| 929 | 双语文献引用\cite{易仕和,等,2013} |
| 930 | ``` |
| 931 | |
| 932 | (2)方法二,动态定义关联条目: |
| 933 | 在导言区定义: |
| 934 | ```tex |
| 935 | \defdoublelangentry{易仕和2013--}{Yi2013--} |
| 936 | ``` |
| 937 | |
| 938 | 在正文中引用: |
| 939 | ```tex |
| 940 | 双语文献引用\cite{易仕和2013--} |
| 941 | ``` |
| 942 | |
| 943 | |
| 944 | |
| 945 | |
| 946 | * <b>我想修改文献条目的日期项诸如格式,请问该如何处理?</b> |
| 947 | |
| 948 | 参考文献中日期格式主要有四种修改方式: |
| 949 | (1) 利用 biblatex 选项全局的修改日期格式 |
| 950 | (2) 修改日期输出宏,使根据条目类型输出不同的日期格式 |
| 951 | (3) 修改日期输出宏,使根据具体条目输出不同的日期格式 |
| 952 | (4) 修改参考文献信息,使当前条目原样输出需要的格式 |
| 953 | |
| 954 | 具体示例见:[biblatex 中如何修改参考文献中日期的著录格式](https://blog.csdn.net/xenonhu/article/details/86933525) |
| 955 | |
| 956 | |
| 957 | * <b>我希望将文献表中期刊文献的卷和期使用加粗格式,请问该如何处理?</b> |
| 958 | |
| 959 | 调整其域格式输出即可,比如: |
| 960 | |
| 961 | ```tex |
| 962 | \DeclareFieldFormat[article,periodical]{volume}{\textbf{#1}} |
| 963 | \DeclareFieldFormat[article,periodical]{number}{\textbf{#1}} |
| 964 | ``` |
| 965 | |
| 966 | 见:[issue](https://github.com/sjtug/SJTUThesis/issues/580) |
| 967 | |
| 968 | |
| 969 | #### 4.3 Citation Format/正文引用的标注格式 |
| 970 | |
| 971 | * <b>我希望在正文中同时使用上标和非上标的引用标签,请问该怎么操作?</b> |
| 972 | |
| 973 | |
| 974 | 可以使用不同的命令来实现上标和非上标的标签, |
| 975 | 上标标签的命令为 `\cite{bibtexkey}` ,非上标标签的命令为 `\parencite{bibtexkey}`。 |
| 976 | 当希望上标的标签也给出国标要求的页码时,则可以使用 `\cite[50-55]{bibtexkey}`、`\pagescite[50-55]{bibtexkey}` 给出指定页码 或者 `\pagescite{bibtexkey}` 直接使用 bib 文件中的页码。 |
| 977 | |
| 978 | |
| 979 | |
| 980 | * <b>我在引用文献时已经给出作者信息,希望引用标签仅包含年份和页码信息或者仅包含年份信息时,该怎么操作?</b> |
| 981 | |
| 982 | |
| 983 | 需要给出年份的标签是作者年制的标签,可以使用命令 `\yearpagescite{bibtexkey}` 给出包含年份和页码信息的标签, |
| 984 | 使用命令 `\yearcite{bibtexkey}` 给出仅包含年份的标签。 |
| 985 | |
| 986 | |
| 987 | * <b>中文文档中,引用标注标签在一个句子中时,标签的 `]` 后面与中文字符之间存在一个空格,怎么消除?</b> |
| 988 | |
| 989 | |
| 990 | 在引用命令后面加一个没有长度的空白即可,比如: |
| 991 | ```tex |
| 992 | 中文字符\cite{sally_history_1985}\mbox{}中文字符 |
| 993 | |
| 994 | 中文字符\cite{sally_history_1985}\hbox{}中文字符 |
| 995 | |
| 996 | 中文字符\cite{sally_history_1985}\makebox{}中文字符 |
| 997 | |
| 998 | 中文字符\cite{sally_history_1985}\hspace{0pt}中文字符 |
| 999 | ``` |
| 1000 | |
| 1001 | |
| 1002 | * <b>在使用作者年制时,我希望文献表是按作者年份标题排序,而正文某处一个 `\cite` 命令引用多个参考文献,且这些文献的标签是按年份作者标题排序,该怎么操作?</b> |
| 1003 | |
| 1004 | 有两种方法: |
| 1005 | |
| 1006 | (1) 一是自动排序 |
| 1007 | |
| 1008 | 宏包加载时使用: |
| 1009 | |
| 1010 | ```tex |
| 1011 | \usepackage[backend=biber,style=gb7714-2015ay,sortcites,sorting=ynt]{biblatex} |
| 1012 | ``` |
| 1013 | |
| 1014 | 正文中引用: |
| 1015 | |
| 1016 | ```tex |
| 1017 | \cite{refa2010,refb2008,refc2009} |
| 1018 | ``` |
| 1019 | |
| 1020 | 然后在文献打印前加 |
| 1021 | |
| 1022 | ```tex |
| 1023 | \newrefcontext[sorting=gb7714-2015] |
| 1024 | ``` |
| 1025 | |
| 1026 | (2) 二是手动给出排序 |
| 1027 | |
| 1028 | 宏包加载时使用 |
| 1029 | |
| 1030 | ```tex |
| 1031 | \usepackage[backend=biber,style=gb7714-2015ay,sortcites=false]{biblatex} |
| 1032 | ``` |
| 1033 | |
| 1034 | 引用多个文献时按照年份顺序给出引用关键字,即正文中引用: |
| 1035 | |
| 1036 | ```tex |
| 1037 | \cite{refb2008,refc2009,refa2010} |
| 1038 | ``` |
| 1039 | |
| 1040 | 参考 [issue: citation 的顺序和 bibliography 的顺序如何不关联](https://github.com/hushidong/biblatex-gb7714-2015/issues/30) |
| 1041 | |
| 1042 | |
| 1043 | |
| 1044 | * <b>在使用作者年制时,我希望文献表同一位置引用同一作者的不同的文献实现作者姓名的压缩,该怎么操作?</b> |
| 1045 | |
| 1046 | 可以通过将 gb7714-2015ay.cbx 中的引用的基础样式 authoryear 更换成 authoryear-comp。 |
| 1047 | |
| 1048 | |
| 1049 | |
| 1050 | * <b>请问希望正文中作者年制的标注(引用)标签中作者数量超过国标规定的 1 个时,该怎么处理?</b> |
| 1051 | |
| 1052 | |
| 1053 | 可通过设置选项 maxcitenames,mincitenames 实现,比如下面的设置用于显示 5 个作者: |
| 1054 | |
| 1055 | ```tex |
| 1056 | \usepackage[backend=biber,style=gb7714-2015ay,maxcitenames=5,mincitenames=5]{biblatex} |
| 1057 | ``` |
| 1058 | |
| 1059 | |
| 1060 | * <b>请问希望正文中作者年制的标注(引用)标签中作者数量只能是 1 个,而不管是否存在歧义时,该怎么处理?</b> |
| 1061 | |
| 1062 | |
| 1063 | 可通过设置选项 `uniquelist=false` 实现,该设置标签中的作者只会是指定的 1 个: |
| 1064 | |
| 1065 | ```tex |
| 1066 | \usepackage[backend=biber,style=gb7714-2015ay,uniquelist=false]{biblatex} |
| 1067 | ``` |
| 1068 | |
| 1069 | * <b>请问希望正文中作者年制的标注(引用)标签希望作者给出 3 个,而且最后一个作者的前面用和及 & 符号链接,该怎么处理?</b> |
| 1070 | |
| 1071 | |
| 1072 | 首先设置标注标签中的作者的最大数量为 3 个: |
| 1073 | |
| 1074 | ```tex |
| 1075 | \usepackage[backend=biber,style=gb7714-2015ay,maxcitenames=3]{biblatex} |
| 1076 | ``` |
| 1077 | |
| 1078 | 然后修改标注中的本地化字符串: |
| 1079 | |
| 1080 | ```tex |
| 1081 | \DefineBibliographyStrings{english}{ |
| 1082 | andincitecn = {\str@andcn},% 将标注中的分开,便于与文献表中的区分 |
| 1083 | andincite = {\&}} |
| 1084 | ``` |
| 1085 | |
| 1086 | 最后重新定义 `\finalandcomma` 标点,注意这里与语言相关的标点,需要用 `\DefineBibliographyExtras` 命令定义。 |
| 1087 | |
| 1088 | ```tex |
| 1089 | \DefineBibliographyExtras{english}{\def\finalandcomma{}}% |
| 1090 | ``` |
| 1091 | |
| 1092 | |
| 1093 | * <b>请问希望正文中作者年制的标注(引用)标签中作者数量只能是 1 个,且只用其作者的姓而不管是否存在歧义时,该怎么处理?</b> |
| 1094 | |
| 1095 | |
| 1096 | 可通过设置选项 `uniquelist=false`, `uniquename=false` 实现,该设置标签中的作者只会是指定的 1 个且只用该作者的姓: |
| 1097 | |
| 1098 | ```tex |
| 1099 | \usepackage[backend=biber,style=gb7714-2015ay,uniquelist=false,uniquename=false]{biblatex} |
| 1100 | ``` |
| 1101 | |
| 1102 | |
| 1103 | * <b>请问上标的标注(引用)标签过长导致行溢出,该怎么处理?</b> |
| 1104 | |
| 1105 | |
| 1106 | 上标的标注与行内的标注不一样,因此采用了上标的处理,所以上标的标注无法自动断行,因此在页边附近的长标注很有可能会溢出。由于上标标注的断行国标中并没有什么明确要求和说明,因此只能按照自己的方式进行处理,通常是将一个长标注手动分成两个短的标注,比如将: |
| 1107 | |
| 1108 | ```tex |
| 1109 | \cite{key1,key2,key3,key4,key5,key6,key7} |
| 1110 | ``` |
| 1111 | |
| 1112 | 变换成: |
| 1113 | |
| 1114 | ```tex |
| 1115 | \cite{key1,key2,key3}\linebreak\cite{key4,key5,key6,key7} |
| 1116 | ``` |
| 1117 | |
| 1118 | 如果两个 cite 之间还需要增加一个上标的逗号,那么可以手动处理比如增加 `\textsuperscript{,}` |
| 1119 | |
| 1120 | |
| 1121 | |
| 1122 | * <b>在顺序编码制标签中,希望数字编码从两个连续编码就开始压缩,比如 [1,2] 压缩成 [1-2],该怎么处理?</b> |
| 1123 | |
| 1124 | |
| 1125 | biblatex 中处理顺序数字编码压缩的代码默认从 3 个连续编码开始压缩,比如 [1,2,3] 压缩成 [1-3]。 |
| 1126 | 但biblatex-gb7714-2015 已将其修改为默认从2个连续编码开始。 |
| 1127 | 若需要修改,只需要做一个很简单的修改即可: |
| 1128 | |
| 1129 | ```tex |
| 1130 | \setcounter{gbrefcompress}{3} %表示连续3篇文献开始 |
| 1131 | %\setcounter{gbrefcompress}{2} %表示连续2篇文献开始 |
| 1132 | ``` |
| 1133 | |
| 1134 | 对于老版本的可以直接修改宏(注意其中的注释): |
| 1135 | |
| 1136 | ```tex |
| 1137 | % 该宏的目的是抛弃压缩内部的编号,而仅输出最后一个编号,主要通过 cbx@tempcnta 来控制 |
| 1138 | % 一般情况下 cbx@tempcnta 为 0,所以该宏不输出任何内容。当 cbx@tempcnta在cite:comp:comp 宏中更改变大后 |
| 1139 | % 说明开始进入需要压缩的范围,当到压缩终点时,cbx@tempcnta 必然大于 1,则输出内容。 |
| 1140 | % 修改第二行的数字 1 为 0 即可将默认的 3 个开始压缩变为 2 个开始压缩。 |
| 1141 | \renewbibmacro*{cite:dump}{ |
| 1142 | \ifnumgreater{\value{cbx@tempcnta}}{0} |
| 1143 | {\ifnumgreater{\value{cbx@tempcnta}}{1} % 1 改为 0,可以将压缩起始 3 个编号改为 2 个编号 |
| 1144 | {\bibrangedash} |
| 1145 | {\multicitedelim}% |
| 1146 | \bibhyperref[\cbx@lastkey]{% |
| 1147 | \ifdef\cbx@lastprefix |
| 1148 | {\printtext[labelprefix]{\cbx@lastprefix}} |
| 1149 | {}% |
| 1150 | \printtext[labelnumber]{\cbx@lastnumber}}} |
| 1151 | {}% |
| 1152 | \setcounter{cbx@tempcnta}{0}% |
| 1153 | \global\undef\cbx@lastprefix} |
| 1154 | ``` |
| 1155 | |
| 1156 | 反之,从两个开始压缩改成 3 个连续压缩,方法是类似的,就是将中的 0 改回 1。 |
| 1157 | |
| 1158 | |
| 1159 | * <b>在顺序编码制标签中,希望修改编码压缩之间的符号,比如 [1-2] 变为 [1~2],该怎么处理?</b> |
| 1160 | |
| 1161 | 使用最新版本的 biblatex (v3.15 以后)可以直接定义如下标点: |
| 1162 | ```tex |
| 1163 | \renewcommand{\multiciterangedelim}{$\sim$} |
| 1164 | ``` |
| 1165 | |
| 1166 | 对于老版本可以修改宏,注意其中的注释 |
| 1167 | ```tex |
| 1168 | \renewbibmacro*{cite:dump}{ |
| 1169 | \ifnumgreater{\value{cbx@tempcnta}}{0} |
| 1170 | {\ifnumgreater{\value{cbx@tempcnta}}{1} % 1 改为 0,可以将压缩起始 3 个编号改为 2 个编号 |
| 1171 | {$\sim$}% 压缩的链接标点修改 \bibrangedash |
| 1172 | {\multicitedelim}% |
| 1173 | \bibhyperref[\cbx@lastkey]{% |
| 1174 | \ifdef\cbx@lastprefix |
| 1175 | {\printtext[labelprefix]{\cbx@lastprefix}} |
| 1176 | {}% |
| 1177 | \printtext[labelnumber]{\cbx@lastnumber}}} |
| 1178 | {}% |
| 1179 | \setcounter{cbx@tempcnta}{0}% |
| 1180 | \global\undef\cbx@lastprefix} |
| 1181 | ``` |
| 1182 | |
| 1183 | |
| 1184 | |
| 1185 | * <b>在正文中的某一部分,希望取消顺序编码标签中的压缩,而其他部分保持这种压缩,该怎么处理?</b> |
| 1186 | |
| 1187 | |
| 1188 | 顺序数字编码压缩的代码,主要有 cite:comp:comp 宏控制,因此需要局部取消压缩,可以局部的修改该宏。修改很简单,只需要注释掉其中的一行,在需要取消压缩的环境中,重定义该宏,比如: |
| 1189 | |
| 1190 | ```tex |
| 1191 | \renewbibmacro*{cite:comp:comp}{% |
| 1192 | \ifboolexpr{ |
| 1193 | ( test {\iffieldundef{labelprefix}} and test {\ifundef\cbx@lastprefix} ) |
| 1194 | or |
| 1195 | test {\iffieldequals{labelprefix}{\cbx@lastprefix}} |
| 1196 | } |
| 1197 | {\ifnumequal{\thefield{labelnumber}}{\value{cbx@tempcntb}} |
| 1198 | {\savefield{entrykey}{\cbx@lastkey}% |
| 1199 | \savefield{labelnumber}{\cbx@lastnumber}% |
| 1200 | \addtocounter{cbx@tempcnta}{1}} |
| 1201 | {\ifnumequal{\thefield{labelnumber}}{\value{cbx@tempcntb}-1} |
| 1202 | {} |
| 1203 | {\usebibmacro{cite:dump}% |
| 1204 | \ifnumgreater{\value{cbx@tempcntb}}{-1} |
| 1205 | {\multicitedelim} |
| 1206 | {}% |
| 1207 | \printtext[bibhyperref]{% |
| 1208 | \printfield{labelprefix}% |
| 1209 | \printfield{labelnumber}}}}} |
| 1210 | {\usebibmacro{cite:comp:end}}% |
| 1211 | %\setcounter{cbx@tempcntb}{\thefield{labelnumber}}% 注释该行,以取消压缩 |
| 1212 | \savefield{labelprefix}{\cbx@lastprefix}} |
| 1213 | ``` |
| 1214 | |
| 1215 | |
| 1216 | |
| 1217 | ### 5. Examples/著录和标注结果示例 |
| 1218 | |
| 1219 | + 标注样式示例 |
| 1220 | |
| 1221 | * 顺序编码制 |
| 1222 | |
| 1223 |  |
| 1224 | |
| 1225 | 代码见:, |
| 1226 | |
| 1227 | * 作者年制 |
| 1228 | |
| 1229 |  |
| 1230 | |
| 1231 | 代码见:, |
| 1232 | , |
| 1233 | |
| 1234 | 具体代码见:egfigure 文件夹下的各个文件。 |
| 1235 | |
| 1236 | 命令说明见:biblatex-gb7714-2015.pdf文档。 |
| 1237 | |
| 1238 | + 著录样式示例 |
| 1239 | |
| 1240 | 国标文档的完整复现: |
| 1241 | |
| 1242 | * 顺序编码制 |
| 1243 | |
| 1244 | 代码见: |
| 1245 | |
| 1246 | * 作者年制 |
| 1247 | |
| 1248 | 代码见: |
| 1249 | |
| 1250 | * 国标附录 |
| 1251 | |
| 1252 | 代码见: |
| 1253 | |
| 1254 | + 姓名的格式更改示例 |
| 1255 | |
| 1256 | 代码见: , |
| 1257 | |
| 1258 | 对于bib文件中的如下条目,有: |
| 1259 | |
| 1260 | ``` |
| 1261 | @Article{Zhang2007-500-503, |
| 1262 | Title = {The design and experimental investigations of supersonic length shorted nozzle}, |
| 1263 | Author = {Zhang, Min-li and Yi, Shi-he and Zhao, Yu-xin}, |
| 1264 | Journal = {ACTA AERODYNAMICA SINICA}, |
| 1265 | Number = {4}, |
| 1266 | Pages = {500-503}, |
| 1267 | Volume = {25}, |
| 1268 | Year = {2007} |
| 1269 | } |
| 1270 | |
| 1271 | @Book{Yi2013--, |
| 1272 | Title = {Supersonic and hypersonic nozzle design}, |
| 1273 | Address = {Beijing}, |
| 1274 | Author = {Yi, Shi he and Zhao, Yu xin and He, Lin and Zhang, Min li}, |
| 1275 | Publisher = {National Defense Industry Press}, |
| 1276 | Year = {2013} |
| 1277 | } |
| 1278 | |
| 1279 | @Book{LIAO2012--, |
| 1280 | Title = {Electronic countermeasure techniques for missile penetration}, |
| 1281 | Address = {Beijing}, |
| 1282 | Author = {LIAO, ping and JIANG, qin bo}, |
| 1283 | Publisher = {National Defense Industry Press}, |
| 1284 | Year = {2013} |
| 1285 | } |
| 1286 | |
| 1287 | @Book{LIU2003--, |
| 1288 | Title = {Introduction of Ballistic Misille Techniques}, |
| 1289 | Address = {Beijing}, |
| 1290 | Author = {LIU, shi Qiu}, |
| 1291 | Publisher = {China Astronautic Publishing House}, |
| 1292 | Year = {2003} |
| 1293 | } |
| 1294 | ``` |
| 1295 |  |
| 1296 | |
| 1297 | |
| 1298 | |
| 1299 | ### 6. 测试文件说明 |
| 1300 | |
| 1301 | + egfigure |
| 1302 | -  测试gb7714-2015ay的标注样式,是否满足GB要求 |
| 1303 | -  测试gb7714-2015ay的标注样式,绘制成表用于biblatex-gb7714-2015.pdf |
| 1304 | -  测试gb7714-2015ay使用natbib的常用标注命令 |
| 1305 | -  测试gb7714-2015的标注样式,是否满足GB要求 |
| 1306 | -  测试gb7714-2015使用natbib的常用标注命令 |
| 1307 | -  测试gb7714-2015的标注样式,绘制成表用于biblatex-gb7714-2015.pdf |
| 1308 | -  测试gb7714-2015ay使用复数形式的命令 |
| 1309 | -  测试gb7714-2015使用复数形式的命令 |
| 1310 | -  测试gb7714-2015样式选项gbnamefmt=givenahead,gbbiblabel=dot,gbtitlelink=true |
| 1311 | -  测试gb7714-2015ms样式选项gbnamefmt=lowercase,gbstyle=false,sorting=nyt |
| 1312 | -  测试gb7714-2015ay样式选项maxcitenames=2,mincitenames=1,sorting=gbynta(UCAS-资环类) |
| 1313 | -  测试gb7714-2015样式实现的双语对照文献表,关联条目方法 |
| 1314 | -  测试gb7714-2015样式实现的双语对照文献表,关联条目方法,(gbnamefmt=pinyin 国内某期刊) |
| 1315 | -  测试gb7714-2015样式实现国标要求的脚注文献表 |
| 1316 | -  测试gb7714-2015样式一般的脚注文献表 |
| 1317 | -  测试gb7714-2015ms样式在一篇文档中使用两种格式设置,中文:GB,英文:biblatex标准样式 |
| 1318 | -  测试gb7714-2015mx样式在不同的参考文献分节中使用顺序编码和作者年制两种不同样式 |
| 1319 | -  测试gb7714-2015样式实现的多语言混合的文献表 |
| 1320 | -  测试gb7714-2015样式最小示例,用于biblatex-gb7714-2015.PDF |
| 1321 | -  测试gb7714-2015样式文献表段落格式设置,包括缩进,颜色,字体,间距等 |
| 1322 | -  实现GB/T 7714-2015 标准的附录的文献表示例(gb7714-2015样式) |
| 1323 | -  实现GB/T 7714-2015 标准的附录的文献表示例(gb7714-2015ms样式) |
| 1324 | -  实现GB/T 7714-2015 标准2-10节给出的顺序编码制示例(gb7714-2015样式) |
| 1325 | -  实现GB/T 7714-2015 标准2-10节给出的顺序编码制示例(gb7714-2015ms样式) |
| 1326 | -  实现GB/T 7714-2015 标准2-10节给出的著者年份制示例(gb7714-2015ay样式) |
| 1327 | -  实现GB/T 7714-2015 标准2-10节给出的著者年份制示例(gb7714-2015ay样式,nohashothers=true) |
| 1328 | + egphoto |
| 1329 | -  测试citexref=false选项 |
| 1330 | -  测试citexref=true选项 |
| 1331 | -  测试gbalign=center选项 |
| 1332 | -  测试gbalign=gb7714-2015选项 |
| 1333 | -  测试gbalign=left选项 |
| 1334 | -  测试gbalign=right选项 |
| 1335 | -  测试gbannote=false选项 |
| 1336 | -  测试gbannote=true选项 |
| 1337 | -  测试gbannote=true选项 |
| 1338 | -  测试gbbiblabel=box选项 |
| 1339 | -  测试gbbiblabel=bracket选项 |
| 1340 | -  测试gbbiblabel=parens选项 |
| 1341 | -  测试gbbiblabel=dot选项 |
| 1342 | -  测试gbbiblabel=plain选项 |
| 1343 | -  测试gbbiblabel=circle选项 |
| 1344 | -  测试gbnoauthor=false选项 |
| 1345 | -  测试gbnoauthor=true选项 |
| 1346 | -  测试gbpub=false选项 |
| 1347 | -  测试gbpub=true选项 |
| 1348 | -  测试gbpunctin=false选项 |
| 1349 | -  测试gbpunctin=true选项 |
| 1350 | -  测试gbtitlelink=false选项 |
| 1351 | -  测试gbtitlelink=true选项 |
| 1352 | -  测试gbtype=false选项 |
| 1353 | -  测试gbtype=true选项 |
| 1354 | -  测试mergedate默认选项(gb7714-2015ay) |
| 1355 | -  测试mergedate=true选项(gb7714-2015ay) |
| 1356 | -  测试mergedate=false选项(gb7714-2015ay) |
| 1357 | -  测试mergedate=none选项(gb7714-2015ay) |
| 1358 | + egthesis |
| 1359 | -  |
| 1360 | -  |
| 1361 | -  |
| 1362 | -  |
| 1363 | -  测试西北农林科技大学(可以参考:特殊的ay样式调整) |
| 1364 | -  测试东南大学(可以参考:gb7714-2015样式调整) |
| 1365 | -  |
| 1366 | -  |
| 1367 | -  |
| 1368 | -  |
| 1369 | -  测试中科院大学(可以参考:ay样式调整) |
| 1370 | -  |
| 1371 | -  测试对外经贸大学(可以参考:中文标点、卷期格式;中英文不同) |
| 1372 | -  测试中科大(可以参考:一文中使用两种样式) |
| 1373 | -  |
| 1374 | -  |
| 1375 | -  |
| 1376 | -  |
| 1377 | -  |
| 1378 | + example |
| 1379 | -  测试beamer中的使用(gb7714-2015样式) |
| 1380 | -  测试beamer中的使用(gb7714-2015ay样式) |
| 1381 | -  测试gb7714-2015、ay样式,对于GBK编码文档的兼容性 |
| 1382 | -  测试chinese-erj样式 |
| 1383 | -  测试chinese-css样式 |
| 1384 | -  测试chinese-css样式 |
| 1385 | -  测试chinese-jmw样式 |
| 1386 | -  测试gb7714-2015ms样式一篇文档中中英文两种格式设置,多语言对照,多语言混合文献表 |
| 1387 | -  测试全面的类型、格式 |
| 1388 | -  测试示例 |
| 1389 | -  测试多语言混合的文献表,各语言不同的本地化字符串 |
| 1390 | -  测试多语言混合的文献表 |
| 1391 | -  测试ay样式 |
| 1392 | -  测试双语对照文献-两种方法(条目集、关联条目) |
| 1393 | -  测试gbalign选项 |
| 1394 | -  测试gbalign选项 |
| 1395 | -  测试gbalign选项 |
| 1396 | -  测试gbannote选项,在文献表中加上附加信息用以说明三大索引情况 |
| 1397 | -  测试gbbiblabel选项 |
| 1398 | -  测试gbctexset选项,使可以利用ctex的设置对文献表的标题进行修改 |
| 1399 | -  测试gbfiledstd选项,著录格式还原为biblatex标准样式的格式 |
| 1400 | -  测试实现国标要求的脚注文献表 |
| 1401 | -  测试文献表排序,中文在前 |
| 1402 | -  测试文献表排序,英文在前 |
| 1403 | -  测试文献表排序,自定义顺序 |
| 1404 | -  测试多语言混合文献表排序 |
| 1405 | -  测试本地化字符串设置(引用标注标签、文献表) |
| 1406 | -  测试本地化字符串设置(多种方法局部调整) |
| 1407 | -  测试本地化字符串设置(多种语言的局部调整) |
| 1408 | -  测试研究成果、学术成果(文献表)的局部化格式调整 |
| 1409 | -  测试gbnamefmt对于作者姓名格式的控制 |
| 1410 | -  测试gbnamefmt对于作者姓名格式的控制 |
| 1411 | -  测试gbnamefmt对于作者姓名格式的控制 |
| 1412 | -  测试给指定的文献设定nameformat域 |
| 1413 | -  测试gbnoauthor选项 |
| 1414 | -  测试gbnoauthor选项 |
| 1415 | -  测试gbpub选项 |
| 1416 | -  测试gbpunctin选项 |
| 1417 | -  测试gbtitlelink选项 |
| 1418 | -  测试gbtype选项 |
| 1419 | -  测试backrref选项,反向超链接 |
| 1420 | -  测试译著的其它语言的译者格式 |
| 1421 | -  测试删除标注后因为xeCJK加入的空格 |
| 1422 | -  测试不同域中存在的特殊字符处理 |
| 1423 | -  测试GB/T7714-1987标准的样式 |
| 1424 | -  测试GB/T7714-2005标准的样式 |
| 1425 | -  测试标点中英文切换 |
| 1426 | -  测试著者-出版年制联机网络文献的“出版年” |
| 1427 | -  测试著者-出版年制期刊析出文献出版年与卷和期之间的间隔符,特别当某些项缺失时 |
| 1428 | |
| 1429 | |
| 1430 | |
| 1431 | |
| 1432 | |
| 1433 | --------------------------------------------------------- |
| 1434 | |
| 1435 | |
| 1436 | ## Usage |
| 1437 | * for numerical sequence style: gb7714-2015 |
| 1438 | |
| 1439 | `\usepackage[backend=biber,style=gb7714-2015]{biblatex}` |
| 1440 | |
| 1441 | - add an option `gbalign` to control the align style of the numerical label: |
| 1442 | |
| 1443 | `gbalign=right` for the label ragged left in a list environment, this is the default setting. |
| 1444 | |
| 1445 | `gbalign=center` for the same width label in a list environment with the number centered in a wrapper like bracket [] |
| 1446 | |
| 1447 | `gbalign=left` for the label ragged right in list environment |
| 1448 | |
| 1449 | `gbalign=gb7714-2015` for the label in paragraph with same separation space between label and content of the reference entry |
| 1450 | |
| 1451 | `\usepackage[backend=biber,style=gb7714-2015,gbalign=gb7714-2015]{biblatex}` |
| 1452 | |
| 1453 | - add an option `gbpub` for dealing publishing items (This option is also for author-year style): |
| 1454 | |
| 1455 | `gbpub = true` for gb7714 style, to print `[出版者不详]` and the like when publisher or address is absent, this is the default setting. |
| 1456 | |
| 1457 | `gbpub = false` for standard style, not to print the additional infomation. |
| 1458 | |
| 1459 | `\usepackage[backend=biber,style=gb7714-2015,gbpub=true]{biblatex}` |
| 1460 | |
| 1461 | - add an option `gbnamefmt` for dealing author name's letter case (This option is also for author-year style): |
| 1462 | |
| 1463 | `gbnamefmt = uppercase` for gb7714 style, to capitalize all the letters of the name, like: ZHANG M L, this is the default setting. |
| 1464 | |
| 1465 | `gbnamefmt = lowercase` for gb7714 style, do no case switch of the name, like: Zhang M L |
| 1466 | |
| 1467 | `gbnamefmt = givenahead` for standard style, given-family style, like: M. L. Zhang as the ieee style |
| 1468 | |
| 1469 | `gbnamefmt = familyahead` for standard style, family-given style, like: Zhang, M. L. as the apa style. |
| 1470 | |
| 1471 | `gbnamefmt = pinyin` for a common Chinese style, like: ZHANG Min-li, YI Shi-he and so on. |
| 1472 | |
| 1473 | `gbnamefmt = reserveorder` for standard style:family-given/given-family style |
| 1474 | |
| 1475 | the name format can be set per-entry using a field `nameformat`, add this field like `nameformat={pinyin}` to an entry in the bib file to set the entry's name format. |
| 1476 | |
| 1477 | `\usepackage[backend=biber,style=gb7714-2015,gbnamefmt=uppercase]{biblatex}` |
| 1478 | |
| 1479 | - add an option `gbbiblabel` to control the format of the numerical label: |
| 1480 | |
| 1481 | `gbbiblabel=bracket` for the numerical number in the label wrapped by bracket, like: [1], this is the default setting. |
| 1482 | |
| 1483 | `gbbiblabel=parens` for the numerical number in the label wrapped by parenthesis, like: (1) |
| 1484 | |
| 1485 | `gbbiblabel=plain` for the numerical number in the label wrapped by nothing, like: 1 |
| 1486 | |
| 1487 | `gbbiblabel=dot` for the numerical number in the label followed with dot, like: 1. |
| 1488 | |
| 1489 | `gbbiblabel=box` for the numerical number in the label wrapped by box which generated by `\framebox` |
| 1490 | |
| 1491 | `gbbiblabel=circle` for the numerical number in the label wrapped by circle which generated by `\textcircled` |
| 1492 | |
| 1493 | `\usepackage[backend=biber,style=gb7714-2015,gbbiblabel=bracket]{biblatex}` |
| 1494 | |
| 1495 | - add an option `gbtype` to control the output of the reference type and carrier identifier like [J/OL] (This option is also for author year style): |
| 1496 | |
| 1497 | `gbtype = true` for gb7714 style, print a title with the identifier, like: `an on-line article [J/OL]`, this is the default setting. |
| 1498 | |
| 1499 | `gbtype = false` for none identifier, print a title without identifier, like: `an on-line article` |
| 1500 | |
| 1501 | `\usepackage[backend=biber,style=gb7714-2015,gbtype=true]{biblatex}` |
| 1502 | |
| 1503 | - add an option `gbfieldtype` to control the output of field type: |
| 1504 | |
| 1505 | `gbfieldtype = true` to print type field, like the thesis type: `PHD thesis` or `博士学位论文`。please use `\DefineBibliographyStrings{english}{mathesis={str you want}}`,`\DefineBibliographyStrings{english}{phdthesis={str you want}}`, |
| 1506 | `\DefineBibliographyStrings{english}{mathesiscn={str you want}}`,`\DefineBibliographyStrings{english}{phdthesiscn={str you want}}` to |
| 1507 | define the output string, or set it in bibfile like: `type={str you want},` |
| 1508 | |
| 1509 | `gbfieldtype = false` not to print type field. |
| 1510 | |
| 1511 | `\usepackage[backend=biber,style=gb7714-2015,gbfieldtype=true]{biblatex}` |
| 1512 | |
| 1513 | - add an option `gbpunctin` to control the output of `//` before bookauthor for entrytypes like inbook/incollection/inproceedings(This option is also for author year style): |
| 1514 | |
| 1515 | `gbpunctin=true` for gb7714 style, to output `//`, this is the default setting |
| 1516 | |
| 1517 | `gbpunctin=false` for standard style, to output a bibstring, for English it is `IN:`, If you want to eliminate it at all, please redefine the bibstring like `\DefineBibliographyStrings{english}{in={}}` and `\DefineBibliographyStrings{english}{incn={}}`in the preamble. |
| 1518 | |
| 1519 | `\usepackage[backend=biber,style=gb7714-2015,gbpunctin=true]{biblatex}` |
| 1520 | |
| 1521 | - add an option `gbctexset` to control the bibliography heading's setting method (This option is also for author year style): |
| 1522 | |
| 1523 | `gbctexset=true` , the bibliography heading can be set by `\bibname` or `\refname`, this is the default setting. |
| 1524 | |
| 1525 | `gbpunctin=false`, the heading can be set by bibstring like `\DefineBibliographyStrings{english}{bibliography={title you want}}` or `\DefineBibliographyStrings{english}{references={title you want}}` |
| 1526 | |
| 1527 | or alternatively, it can also be set through the printbibliography option `title`, like `printbibliography[title=title you want]`. |
| 1528 | |
| 1529 | `\usepackage[backend=biber,style=gb7714-2015,gbctexset=true]{biblatex}` |
| 1530 | |
| 1531 | - add an option `gbcodegbk` to deal the tex source file encoded with GBK (This option is also for author year style): |
| 1532 | |
| 1533 | `gbcodegbk=true` , if you want to compile the GBK encoded source file with pdflatex or latex |
| 1534 | |
| 1535 | `gbcodegbk=false`, if you want to compile the utf-8 endcoded source file with xelatex, this is the default setting. |
| 1536 | |
| 1537 | `\usepackage[backend=biber,style=gb7714-2015,gbcodegbk=true]{biblatex}` |
| 1538 | |
| 1539 | - add an option `gbtitlelink` to control the hyperlink of title field (This option is also for author year style): |
| 1540 | |
| 1541 | `gbtitlelink = false` not to add hyperlink, this is the default setting. |
| 1542 | |
| 1543 | `gbtitlelink = true` to set the title as a hyperlink. |
| 1544 | |
| 1545 | `\usepackage[backend=biber,style=gb7714-2015,gbtitlelink=true]{biblatex}` |
| 1546 | |
| 1547 | - add an option `gbfootbib` to control the bibliography in footnote (This option is also for author year style): |
| 1548 | |
| 1549 | `gbfootbib = true` make patches to match the standard, this is the default setting. |
| 1550 | |
| 1551 | `gbfootbib = false` not to patch. |
| 1552 | |
| 1553 | `\usepackage[backend=biber,style=gb7714-2015,gbtitlelink=true]{biblatex}` |
| 1554 | |
| 1555 | - add options `gbcitelocal` `gbbiblocal` to control the local strings in citation and bibliography respectively, the `gblocal` set the both options (These options are also for author year style): |
| 1556 | |
| 1557 | `gbcitelocal = gb7714-2015` to output local strings according to the reference's language, this is the default setting. |
| 1558 | |
| 1559 | `gbcitelocal = chinese` to output local strings with chinese language word like "等". |
| 1560 | |
| 1561 | `gbcitelocal = english` to output local strings with western language word like "et al.". |
| 1562 | |
| 1563 | `\usepackage[backend=biber,style=gb7714-2015,gbcitelocal = chinese]{biblatex}` |
| 1564 | |
| 1565 | - add an option `gbstrict` to control the output of some unnecessary fields for GB/T7714-2015 (This option is also for author year style). |
| 1566 | |
| 1567 | `gbstrict=true`, not to print those fields such as language, eprint, this is the default setting. |
| 1568 | |
| 1569 | `gbstrict=false`, to output them as the standard style |
| 1570 | |
| 1571 | `\usepackage[backend=biber,style=gb7714-2015,gbstrict=true]{biblatex}` |
| 1572 | |
| 1573 | - add an option `gbfieldstd` to control the format of some fields such as title, url and pages (This option is also for author year style): |
| 1574 | |
| 1575 | `gbfieldstd = false` for gb7714 style, format of the fields follows the GB/T7714-2015 standard, this is the default setting. |
| 1576 | |
| 1577 | `gbfieldstd = true` for standard style. |
| 1578 | |
| 1579 | `\usepackage[backend=biber,style=gb7714-2015,gbfieldstd=true]{biblatex}` |
| 1580 | |
| 1581 | |
| 1582 | * for multi-style: gb7714-2015ms |
| 1583 | |
| 1584 | In order to use two styles in a tex file, add a style gb7714-2015ms. option `gbstyle` is added to control the using mode. `gbstyle=true` means all references are printed with GB/T7714-2015 style, and `gbstyle=false` means the chinese references are printed with GB/T7714-2015 style while the other references are printed with standard style shipped by biblatex, and `gbstyle=true` is the default set. all the options for numerical sequence style gb7714-2015 can also be used in gb7714-2015ms. |
| 1585 | |
| 1586 | |
| 1587 | `\usepackage[backend=biber,style=gb7714-2015ms,gbstyle=false]{biblatex}` |
| 1588 | |
| 1589 | * for author year style: gb7714-2015ay |
| 1590 | |
| 1591 | `\usepackage[backend=biber,style=gb7714-2015ay,gbpub=true]{biblatex}` |
| 1592 | |
| 1593 | - add an option `gbnoauthor` for dealing undefined author: |
| 1594 | |
| 1595 | `gbnoauthor = true` for gb7714 style, to print `佚名` or `Anon` when the author of the entry is absent. |
| 1596 | |
| 1597 | `gbnoauthor = false` for standard style, not to pring anything, this is the default setting. |
| 1598 | |
| 1599 | `\usepackage[backend=biber,style=gb7714-2015ay,gbnoauthor=true]{biblatex}` |
| 1600 | |
| 1601 | - add an option value `mergedate=none` to control the date in bibliography: |
| 1602 | |
| 1603 | `mergedate=true` to output date only after author,like:LAMPORT L, (1986). Document Preparation System[M]. [S.l.]: Addison-Wesley Reading, MA. |
| 1604 | |
| 1605 | `mergedate=false` to output date after author and in publish items,like:LAMPORT L, (1986). Document Preparation System[M]. [S.l.]: Addison-Wesley Reading, MA, 1986. |
| 1606 | |
| 1607 | `mergedate=none` to output date only in publish items,like:LAMPORT L. Document Preparation System[M]. [S.l.]: Addison-Wesley Reading, MA, 1986. |
| 1608 | |
| 1609 | do not set mergedate output like:LAMPORT L, 1986. Document Preparation System[M]. [S.l.]: Addison-Wesley Reading, MA. |
| 1610 | |
| 1611 | `\usepackage[backend=biber,style=gb7714-2015ay,mergedate=none]{biblatex}` |
| 1612 | |
| 1613 | - add an option `gblanorder` to control sequence of reference groups of different languagesin the bibliography: |
| 1614 | |
| 1615 | `gblanorder=chineseahead` to set the sequence as: cn;jp;kr;en;fr;ru |
| 1616 | |
| 1617 | `gblanorder=englishahead` to set the sequence as: en;fr;ru;cn;jp;kr |
| 1618 | |
| 1619 | `gblanorder=user defined string like: cn;en;jp;kr;fr;ru` to set the sequence as: cn;en;jp;kr;fr;ru. |
| 1620 | |
| 1621 | `\usepackage[backend=biber,style=gb7714-2015ay,gblanorder=cn;en;jp;fr;kr;ru]{biblatex}` |
| 1622 | |
| 1623 | * for perl script transformation tool(only for the numerical style) |
| 1624 | |
| 1625 | `perl gb7714texttobib.pl in=textfilename out=bibfilename` |
| 1626 | |
| 1627 | A demonstration database is provided to show how to format input for the style. The biblatex-gb7714-2015 style works with texlive2014, texlive2015, texlive2016, texlive2017 , texlive2018 and so on. |
| 1628 | |
| 1629 | please see the file 'biblatex-gb7714-2015.pdf' for further information! |
| 1630 | |
| 1631 | |
| 1632 | |
| 1633 | |
| 1634 | --------------------------------------------------------- |
| 1635 | ## Update history: |
| 1636 | |
| 1637 | [update: tex](example/updatehistory.tex) |
| 1638 | |
| 1639 | [update: tex](example/updatehistoryold.tex) |
| 1640 | |
| 1641 | |
| 1642 | |
| 1643 | |
| 1644 | ## Version history: |
| 1645 | |
| 1646 | * 2016/05/20 v1.0 |
| 1647 | * 2016/10/23 v1.0a |
| 1648 | * 2016/11/11 v1.0b |
| 1649 | * 2016/11/14 v1.0c |
| 1650 | * 2016/11/24 v1.0d |
| 1651 | * 2016/12/07 v1.0e |
| 1652 | * 2017/02/26 v1.0g |
| 1653 | * 2017/04/11 v1.0h |
| 1654 | * 2017/11/21 v1.0i |
| 1655 | * 2018/01/20 v1.0j |
| 1656 | * 2018/04/03 v1.0k |
| 1657 | * 2018/06/01 v1.0l |
| 1658 | * 2018/08/14 v1.0m,CTAN |
| 1659 | * 2018/11/04 v1.0n |
| 1660 | * 2018/12/22 v1.0o |
| 1661 | * 2019/01/19 v1.0p |
| 1662 | * 2019/02/11 v1.0q |
| 1663 | * 2019/03/28 v1.0r |
| 1664 | * 2019/03/29 v1.0rm,rename erj to chinese-erj,ctan |
| 1665 | * 2019/08/28 v1.0s |
| 1666 | * 2020/03/04 v1.0t,ctan |
| 1667 | * 2020/03/30 v1.0u |
| 1668 | * 2020/07/21 v1.0v,ctan |
| 1669 | * 2021/01/19 v1.0w,ctan |
| 1670 | * 2021/04/03 v1.0x,ctan |
| 1671 | * 2021/05/06 v1.0y,ctan |
| 1672 | * 2021/08/19 v1.0z,ctan |
| 1673 | * 2021/09/11 v1.1a,ctan |
| 1674 | * 2021/12/11 v1.1b,ctan |
| 1675 | * 2022/01/24 v1.1c,ctan |
| 1676 | * 2022/02/22 v1.1d,ctan,github |
| 1677 | * 2022/03/07 v1.1e,ctan,github |
| 1678 | * 2022/03/13 v1.1f,ctan,github |
| 1679 | * 2022/04/03 v1.1g,ctan,github |
| 1680 | * 2022/04/16 v1.1h,ctan,github |
| 1681 | * 2022/05/17 v1.1i,ctan,github |
| 1682 | * 2022/08/29 v1.1j,ctan,github |
| 1683 | * 2022/11/07 v1.1k,ctan,github |
| 1684 | * 2023/03/31 v1.1l,ctan,github |
| 1685 | * 2023/04/24 v1.1m,ctan,github |
| 1686 | * 2023/05/24 v1.1n,ctan,github |
| 1687 | * 2023/09/10 v1.1o,ctan,github |
| 1688 | * 2024/02/10 v1.1p,ctan,github |
| 1689 | * 2024/03/27 v1.1q,ctan,github |
| 1690 | * 2024/05/15 v1.1r,ctan,github |
| 1691 | * 2024/11/15 v1.1s,ctan,github |
| 1692 | * 2025/03/03 v1.1t,ctan,github |
| 1693 | * 2025/05/22 v1.1u,ctan,github |
| 1694 | * 2025/06/10 v1.1v,ctan,github |
| 1695 | * 2026/04/11 v1.1w,ctan,github |
| 1696 | |
| 1697 | |
| 1698 |