summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-04-04 03:01:17 +0000
committerNorbert Preining <norbert@preining.info>2021-04-04 03:01:17 +0000
commit6c7f24a5336de85c7db50c5037772288964c607b (patch)
tree4196d85bcd0f8af6f97d8f1dc8cbd6f6f075fe58
parent76cf94c130ce042b2d2f2fd67258ba5815976abe (diff)
CTAN sync 202104040301
-rw-r--r--FILES.byname807
-rw-r--r--FILES.byname.gzbin2304818 -> 2304973 bytes
-rw-r--r--FILES.last07days692
-rw-r--r--fonts/xcharter/README6
-rw-r--r--fonts/xcharter/tex/XCharter.sty6
-rw-r--r--indexing/upmendex/README.md6
-rw-r--r--indexing/upmendex/source/ChangeLog25
-rw-r--r--indexing/upmendex/source/Makefile.am7
-rw-r--r--indexing/upmendex/source/Makefile.in32
-rw-r--r--indexing/upmendex/source/aclocal.m450
-rwxr-xr-xindexing/upmendex/source/configure35
-rw-r--r--indexing/upmendex/source/configure.ac2
-rw-r--r--indexing/upmendex/source/convert.c23
-rw-r--r--indexing/upmendex/source/fread.c20
-rw-r--r--indexing/upmendex/source/main.c6
-rw-r--r--indexing/upmendex/source/tests/pprec0.ist11
-rw-r--r--indexing/upmendex/source/tests/pprec1.ist11
-rw-r--r--indexing/upmendex/source/tests/pprec2.ist11
-rw-r--r--indexing/upmendex/source/tests/pprecA-0.ind5
-rw-r--r--indexing/upmendex/source/tests/pprecA-1.ind5
-rw-r--r--indexing/upmendex/source/tests/pprecA-2.ind5
-rw-r--r--indexing/upmendex/source/tests/pprecA.idx9
-rwxr-xr-xindexing/upmendex/source/tests/upmendex.test12
-rw-r--r--indexing/upmendex/source/version.h2
-rw-r--r--indexing/xindy/contrib/xindy-persian/README9
-rw-r--r--indexing/xindy/contrib/xindy-persian/doc/variant1-utf8-doc.tex88
-rw-r--r--indexing/xindy/contrib/xindy-persian/doc/variant2-utf8-doc.tex88
-rw-r--r--indexing/xindy/contrib/xindy-persian/doc/variant3-utf8-doc.tex88
-rw-r--r--indexing/xindy/contrib/xindy-persian/persian/variant1-utf8-lang.xdy (renamed from indexing/xindy/contrib/xindy-persian/variant1-utf8-lang.xdy)0
-rw-r--r--indexing/xindy/contrib/xindy-persian/persian/variant1-utf8-test.xdy (renamed from indexing/xindy/contrib/xindy-persian/variant1-utf8-test.xdy)0
-rw-r--r--indexing/xindy/contrib/xindy-persian/persian/variant1-utf8.xdy (renamed from indexing/xindy/contrib/xindy-persian/variant1-utf8.xdy)740
-rw-r--r--indexing/xindy/contrib/xindy-persian/persian/variant2-utf8-lang.xdy (renamed from indexing/xindy/contrib/xindy-persian/variant2-utf8-lang.xdy)0
-rw-r--r--indexing/xindy/contrib/xindy-persian/persian/variant2-utf8-test.xdy (renamed from indexing/xindy/contrib/xindy-persian/variant2-utf8-test.xdy)0
-rw-r--r--indexing/xindy/contrib/xindy-persian/persian/variant2-utf8.xdy (renamed from indexing/xindy/contrib/xindy-persian/variant2-utf8.xdy)732
-rw-r--r--indexing/xindy/contrib/xindy-persian/persian/variant3-utf8-lang.xdy (renamed from indexing/xindy/contrib/xindy-persian/variant3-utf8-lang.xdy)0
-rw-r--r--indexing/xindy/contrib/xindy-persian/persian/variant3-utf8-test.xdy (renamed from indexing/xindy/contrib/xindy-persian/variant3-utf8-test.xdy)0
-rw-r--r--indexing/xindy/contrib/xindy-persian/persian/variant3-utf8.xdy (renamed from indexing/xindy/contrib/xindy-persian/variant3-utf8.xdy)744
-rw-r--r--indexing/xindy/contrib/xindy-persian/source/make-rules.pl269
-rw-r--r--indexing/xindy/contrib/xindy-persian/source/test.xdy82
-rw-r--r--indexing/xindy/contrib/xindy-persian/source/variant1-utf8.pl.in181
-rw-r--r--indexing/xindy/contrib/xindy-persian/source/variant2-utf8.pl.in181
-rw-r--r--indexing/xindy/contrib/xindy-persian/source/variant3-utf8.pl.in181
-rw-r--r--indexing/xindy/contrib/xindy-persian/variant1-utf8.pl.in82
-rw-r--r--indexing/xindy/contrib/xindy-persian/variant2-utf8.pl.in82
-rw-r--r--indexing/xindy/contrib/xindy-persian/variant3-utf8.pl.in82
-rw-r--r--language/japanese/gckanbun/README.md4
-rw-r--r--language/japanese/gckanbun/gckanbun.pdfbin73689 -> 75281 bytes
-rw-r--r--language/japanese/gckanbun/gckanbun.sty15
-rw-r--r--language/japanese/gckanbun/gckanbun.tex22
-rw-r--r--language/japanese/gckanbun/test-gckanbun.tex2
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/README.md2639
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015-preamble.tex862
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015.pdfbin1886456 -> 1911308 bytes
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015.tex5421
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/chinese-erj.bbx474
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/chinese-erj.cbx302
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/example.bib7676
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015-gbk.def56
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.bbx7934
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.cbx804
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.bbx7807
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.cbx858
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ms.bbx5495
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ms.cbx390
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015mx.bbx6703
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015mx.cbx940
-rw-r--r--macros/latex/contrib/conferences/sugconf/README179
-rw-r--r--macros/latex/contrib/conferences/sugconf/SUGI-paper-example.txt86
-rw-r--r--macros/latex/contrib/conferences/sugconf/article-example.bat1
-rw-r--r--macros/latex/contrib/conferences/sugconf/article-example.pdfbin39591 -> 0 bytes
-rw-r--r--macros/latex/contrib/conferences/sugconf/article-example.tex118
-rw-r--r--macros/latex/contrib/conferences/sugconf/banner-sgf-2021.pngbin0 -> 13698 bytes
-rw-r--r--macros/latex/contrib/conferences/sugconf/sugconf-example.bat1
-rw-r--r--macros/latex/contrib/conferences/sugconf/sugconf-example.pdfbin63226 -> 0 bytes
-rw-r--r--macros/latex/contrib/conferences/sugconf/sugconf-example.tex193
-rw-r--r--macros/latex/contrib/conferences/sugconf/sugconf-skeleton.pdfbin0 -> 31585 bytes
-rw-r--r--macros/latex/contrib/conferences/sugconf/sugconf-skeleton.tex23
-rw-r--r--macros/latex/contrib/conferences/sugconf/sugconf-template.pdfbin0 -> 50664 bytes
-rw-r--r--macros/latex/contrib/conferences/sugconf/sugconf-template.tex73
-rw-r--r--macros/latex/contrib/conferences/sugconf/sugconf.cls288
-rw-r--r--macros/latex/contrib/easybook/doc/easybook-demo.pdfbin262407 -> 262400 bytes
-rw-r--r--macros/latex/contrib/easybook/doc/easybook-demo.tex2
-rw-r--r--macros/latex/contrib/easybook/doc/easybook.pdfbin260079 -> 420345 bytes
-rw-r--r--macros/latex/contrib/easybook/easybook.dtx48
-rw-r--r--macros/latex/contrib/thuthesis/CHANGELOG.md15
-rw-r--r--macros/latex/contrib/thuthesis/data/chap02.tex48
-rw-r--r--macros/latex/contrib/thuthesis/ref/refs.bib1
-rw-r--r--macros/latex/contrib/thuthesis/spine.pdfbin24008 -> 23815 bytes
-rw-r--r--macros/latex/contrib/thuthesis/thusetup.tex4
-rw-r--r--macros/latex/contrib/thuthesis/thuthesis-author-year.bbx2
-rw-r--r--macros/latex/contrib/thuthesis/thuthesis-author-year.bst81
-rw-r--r--macros/latex/contrib/thuthesis/thuthesis-bachelor.bst77
-rw-r--r--macros/latex/contrib/thuthesis/thuthesis-bachelor.cbx8
-rw-r--r--macros/latex/contrib/thuthesis/thuthesis-example.pdfbin399314 -> 405628 bytes
-rw-r--r--macros/latex/contrib/thuthesis/thuthesis-numeric.bbx2
-rw-r--r--macros/latex/contrib/thuthesis/thuthesis-numeric.bst79
-rw-r--r--macros/latex/contrib/thuthesis/thuthesis-numeric.cbx8
-rw-r--r--macros/latex/contrib/thuthesis/thuthesis.dtx248
-rw-r--r--macros/latex/contrib/thuthesis/thuthesis.pdfbin1139361 -> 1144457 bytes
-rw-r--r--macros/luatex/latex/unitipa/README.txt6
-rw-r--r--macros/luatex/latex/unitipa/unitipa.dtx29
-rw-r--r--macros/luatex/latex/unitipa/unitipa.ins4
-rw-r--r--macros/luatex/latex/unitipa/unitipa.pdfbin191050 -> 191655 bytes
-rw-r--r--systems/texlive/tlnet/tlpkg/TeXLive/TLCrypto.pm8
-rw-r--r--systems/texlive/tlnet/tlpkg/installer/ctan-mirrors.pl4
-rw-r--r--systems/texlive/tlnet/tlpkg/texlive.tlpdb40
-rw-r--r--systems/texlive/tlnet/tlpkg/texlive.tlpdb.md52
-rw-r--r--systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha5122
-rw-r--r--systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc14
-rw-r--r--systems/texlive/tlnet/tlpkg/texlive.tlpdb.xzbin2293232 -> 2293152 bytes
-rw-r--r--systems/win32/miktex/tm/packages/next/pr.ini8
-rw-r--r--systems/win32/miktex/tm/packages/pr.ini8
-rw-r--r--timestamp2
113 files changed, 28526 insertions, 27007 deletions
diff --git a/FILES.byname b/FILES.byname
index 3d9af6e115..1985651d34 100644
--- a/FILES.byname
+++ b/FILES.byname
@@ -5087,7 +5087,7 @@
1990/10/02 | 5440 | dviware/vutex/vaxvms.hlp
1990/10/02 | 812 | dviware/vutex/vaxvms.ins
1990/10/02 | 127576 | dviware/vutex/vutex.web
-2021/04/02 | 112329 | FILES.last07days
+2021/04/03 | 115661 | FILES.last07days
2020/08/14 | 104065 | fonts/academicons/academicons.pdf
2020/08/14 | 17247 | fonts/academicons/academicons.sty
2020/08/14 | 6546 | fonts/academicons/academicons.tex
@@ -133795,7 +133795,7 @@
2020/11/12 | 120536 | fonts/xcharter/opentype/XCharter-Italic.otf
2020/11/12 | 146676 | fonts/xcharter/opentype/XCharter-Roman.otf
2020/11/12 | 130552 | fonts/xcharter/opentype/XCharter-Slanted.otf
-2021/04/01 | 12409 | fonts/xcharter/README
+2021/04/03 | 12534 | fonts/xcharter/README
2017/06/27 | 1248 | fonts/xcharter/tex/LY1XCharter-Dnom.fd
2017/06/27 | 1226 | fonts/xcharter/tex/LY1XCharter-Inf.fd
2017/06/27 | 1247 | fonts/xcharter/tex/LY1XCharter-Numr.fd
@@ -133828,7 +133828,7 @@
2020/08/06 | 1410 | fonts/xcharter/tex/TS1XCharter-TLF.fd
2020/08/06 | 1425 | fonts/xcharter/tex/TS1XCharter-TOsF.fd
2017/06/16 | 311 | fonts/xcharter/tex/XCharter.fontspec
-2020/11/26 | 7574 | fonts/xcharter/tex/XCharter.sty
+2021/04/03 | 7596 | fonts/xcharter/tex/XCharter.sty
2021/04/01 | 1852 | fonts/xcharter/tfm/XCharter1-BoldItalic-tosf-ly1--base.tfm
2021/04/01 | 25424 | fonts/xcharter/tfm/XCharter1-BoldItalic-tosf-ly1.tfm
2021/04/01 | 6832 | fonts/xcharter/tfm/XCharter1-BoldItalic-tosf-ot1.tfm
@@ -134549,7 +134549,7 @@
2021/03/23 | 2060 | fonts/xcharter/vf/zchmia-fromvf.vf
2021/03/23 | 2304 | fonts/xcharter/vf/zchmia.vf
2021/03/23 | 2360 | fonts/xcharter/vf/zchmi.vf
-2021/04/01 | 4549103 | fonts/xcharter.zip
+2021/04/03 | 4549171 | fonts/xcharter.zip
2020/07/02 | 9550 | fonts/xits/FONTLOG.txt
2020/07/02 | 4998 | fonts/xits/OFL.txt
2020/07/02 | 652 | fonts/xits/README.txt
@@ -148288,88 +148288,96 @@
2006/07/18 | 22933 | indexing/texindex/texindex.pdf
1991/07/08 | 1930 | indexing/texindex/texindex.tex
2006/07/18 | 21351 | indexing/texindex.zip
-2020/02/22 | 1464 | indexing/upmendex/COPYRIGHT
-2020/02/22 | 1992 | indexing/upmendex/doc/samples/alphabet/alpha_es.idx
-2020/02/22 | 4039 | indexing/upmendex/doc/samples/alphabet/alpha_zh.idx
-2020/02/22 | 1891 | indexing/upmendex/doc/samples/alphabet/alpha_zhp.idx
-2020/02/22 | 4485 | indexing/upmendex/doc/samples/alphabet/alpha_zhr.idx
-2020/02/22 | 1200 | indexing/upmendex/doc/samples/alphabet/alpha_zhs.idx
-2020/02/22 | 2144 | indexing/upmendex/doc/samples/alphabet/alpha_zhz.idx
-2020/02/22 | 986 | indexing/upmendex/doc/samples/alphabet/Makefile
-2020/02/22 | 300 | indexing/upmendex/doc/samples/alphabet/mdxsty_es11.ist
-2020/02/22 | 301 | indexing/upmendex/doc/samples/alphabet/mdxsty_es12.ist
-2020/02/22 | 300 | indexing/upmendex/doc/samples/alphabet/mdxsty_es13.ist
-2020/02/22 | 278 | indexing/upmendex/doc/samples/alphabet/mdxsty_es1.ist
-2020/02/22 | 295 | indexing/upmendex/doc/samples/alphabet/mdxsty_es21.ist
-2020/02/22 | 296 | indexing/upmendex/doc/samples/alphabet/mdxsty_es22.ist
-2020/02/22 | 295 | indexing/upmendex/doc/samples/alphabet/mdxsty_es23.ist
-2020/02/22 | 279 | indexing/upmendex/doc/samples/alphabet/mdxsty_es2.ist
-2020/02/22 | 295 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh11.ist
-2020/02/22 | 1807 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh12.ist
-2020/02/22 | 1807 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh13.ist
-2020/02/22 | 1807 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh14.ist
-2020/02/22 | 278 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh1.ist
-2020/02/22 | 295 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh21.ist
-2020/02/22 | 521 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh22.ist
-2020/02/22 | 279 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh2.ist
-2020/02/22 | 295 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh31.ist
-2020/02/22 | 435 | indexing/upmendex/doc/samples/french.idx
-2020/02/22 | 463 | indexing/upmendex/doc/samples/german.idx
-2020/02/22 | 340 | indexing/upmendex/doc/samples/greek.idx
-2020/02/22 | 1477 | indexing/upmendex/doc/samples/korean.idx
-2020/02/22 | 371 | indexing/upmendex/doc/samples/Makefile
-2020/02/22 | 260 | indexing/upmendex/doc/samples/mdxsty00.ist
-2020/02/22 | 289 | indexing/upmendex/doc/samples/mdxsty01.ist
-2020/02/22 | 552 | indexing/upmendex/doc/samples/mdxsty02.ist
-2020/02/22 | 326 | indexing/upmendex/doc/samples/multi.idx
-2020/02/22 | 1095 | indexing/upmendex/doc/samples/option/attri1.idx
-2020/02/22 | 872 | indexing/upmendex/doc/samples/option/japanese.idx
-2020/02/22 | 749 | indexing/upmendex/doc/samples/option/Makefile
-2020/02/22 | 271 | indexing/upmendex/doc/samples/option/mdxsty_j00.ist
-2020/02/22 | 271 | indexing/upmendex/doc/samples/option/mdxsty_j01.ist
-2020/02/22 | 285 | indexing/upmendex/doc/samples/option/mdxsty_j02.ist
-2020/02/22 | 334 | indexing/upmendex/doc/samples/option/mdxsty_rule0.ist
-2020/02/22 | 614 | indexing/upmendex/doc/samples/russian.idx
-2020/02/22 | 16668 | indexing/upmendex/doc/upmendex.ja.txt
-2020/02/22 | 16358 | indexing/upmendex/man/upmendex.1
-2020/02/22 | 311434 | indexing/upmendex/man/upmendex.man1.pdf
-2020/02/22 | 2977 | indexing/upmendex/README.md
-2020/02/22 | 43971 | indexing/upmendex/source/aclocal.m4
-2020/02/22 | 337 | indexing/upmendex/source/ac/withenable.ac
-2020/02/22 | 4908 | indexing/upmendex/source/c-auto.in
-2020/02/22 | 4393 | indexing/upmendex/source/ChangeLog
-2020/02/22 | 700167 | indexing/upmendex/source/configure
-2020/02/22 | 2318 | indexing/upmendex/source/configure.ac
-2020/02/22 | 9288 | indexing/upmendex/source/convert.c
-2020/02/22 | 412 | indexing/upmendex/source/exhanzi.h
-2020/02/22 | 729 | indexing/upmendex/source/exkana.h
-2020/02/22 | 1291 | indexing/upmendex/source/exvar.h
-2020/02/22 | 12966 | indexing/upmendex/source/fread.c
-2020/02/22 | 27948 | indexing/upmendex/source/fwrite.c
-2020/02/22 | 19515 | indexing/upmendex/source/hanzi.h
-2020/02/22 | 333 | indexing/upmendex/source/indexsty
-2020/02/22 | 3891 | indexing/upmendex/source/kana.h
-2020/02/22 | 1190 | indexing/upmendex/source/kp.c
-2020/02/22 | 406 | indexing/upmendex/source/kp.h
-2020/02/22 | 1842 | indexing/upmendex/source/ktable.h
-2020/02/22 | 7492 | indexing/upmendex/source/main.c
-2020/02/22 | 1173 | indexing/upmendex/source/Makefile.am
-2020/02/22 | 46330 | indexing/upmendex/source/Makefile.in
-2020/02/22 | 2329 | indexing/upmendex/source/mendex.h
-2020/02/22 | 1052 | indexing/upmendex/source/pageread.c
-2020/02/22 | 5842 | indexing/upmendex/source/qsort.c
-2020/02/22 | 400 | indexing/upmendex/source/qsort.h
-2020/02/22 | 13004 | indexing/upmendex/source/sort.c
-2020/02/22 | 10083 | indexing/upmendex/source/styfile.c
-2020/02/22 | 68 | indexing/upmendex/source/tests/foo.idx
-2020/02/22 | 58 | indexing/upmendex/source/tests/foo.ind
-2020/02/22 | 64 | indexing/upmendex/source/tests/uni.dict
-2020/02/22 | 435 | indexing/upmendex/source/tests/uni.idx
-2020/02/22 | 766 | indexing/upmendex/source/tests/uni.ind
-2020/02/22 | 272 | indexing/upmendex/source/tests/uni.ist
-2020/02/22 | 800 | indexing/upmendex/source/tests/upmendex.test
-2020/02/22 | 2105 | indexing/upmendex/source/var.h
-2020/02/22 | 509316 | indexing/upmendex.zip
+2021/04/03 | 1464 | indexing/upmendex/COPYRIGHT
+2021/04/03 | 1992 | indexing/upmendex/doc/samples/alphabet/alpha_es.idx
+2021/04/03 | 4039 | indexing/upmendex/doc/samples/alphabet/alpha_zh.idx
+2021/04/03 | 1891 | indexing/upmendex/doc/samples/alphabet/alpha_zhp.idx
+2021/04/03 | 4485 | indexing/upmendex/doc/samples/alphabet/alpha_zhr.idx
+2021/04/03 | 1200 | indexing/upmendex/doc/samples/alphabet/alpha_zhs.idx
+2021/04/03 | 2144 | indexing/upmendex/doc/samples/alphabet/alpha_zhz.idx
+2021/04/03 | 986 | indexing/upmendex/doc/samples/alphabet/Makefile
+2021/04/03 | 300 | indexing/upmendex/doc/samples/alphabet/mdxsty_es11.ist
+2021/04/03 | 301 | indexing/upmendex/doc/samples/alphabet/mdxsty_es12.ist
+2021/04/03 | 300 | indexing/upmendex/doc/samples/alphabet/mdxsty_es13.ist
+2021/04/03 | 278 | indexing/upmendex/doc/samples/alphabet/mdxsty_es1.ist
+2021/04/03 | 295 | indexing/upmendex/doc/samples/alphabet/mdxsty_es21.ist
+2021/04/03 | 296 | indexing/upmendex/doc/samples/alphabet/mdxsty_es22.ist
+2021/04/03 | 295 | indexing/upmendex/doc/samples/alphabet/mdxsty_es23.ist
+2021/04/03 | 279 | indexing/upmendex/doc/samples/alphabet/mdxsty_es2.ist
+2021/04/03 | 295 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh11.ist
+2021/04/03 | 1807 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh12.ist
+2021/04/03 | 1807 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh13.ist
+2021/04/03 | 1807 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh14.ist
+2021/04/03 | 278 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh1.ist
+2021/04/03 | 295 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh21.ist
+2021/04/03 | 521 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh22.ist
+2021/04/03 | 279 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh2.ist
+2021/04/03 | 295 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh31.ist
+2021/04/03 | 435 | indexing/upmendex/doc/samples/french.idx
+2021/04/03 | 463 | indexing/upmendex/doc/samples/german.idx
+2021/04/03 | 340 | indexing/upmendex/doc/samples/greek.idx
+2021/04/03 | 1477 | indexing/upmendex/doc/samples/korean.idx
+2021/04/03 | 371 | indexing/upmendex/doc/samples/Makefile
+2021/04/03 | 260 | indexing/upmendex/doc/samples/mdxsty00.ist
+2021/04/03 | 289 | indexing/upmendex/doc/samples/mdxsty01.ist
+2021/04/03 | 552 | indexing/upmendex/doc/samples/mdxsty02.ist
+2021/04/03 | 326 | indexing/upmendex/doc/samples/multi.idx
+2021/04/03 | 1095 | indexing/upmendex/doc/samples/option/attri1.idx
+2021/04/03 | 872 | indexing/upmendex/doc/samples/option/japanese.idx
+2021/04/03 | 749 | indexing/upmendex/doc/samples/option/Makefile
+2021/04/03 | 271 | indexing/upmendex/doc/samples/option/mdxsty_j00.ist
+2021/04/03 | 271 | indexing/upmendex/doc/samples/option/mdxsty_j01.ist
+2021/04/03 | 285 | indexing/upmendex/doc/samples/option/mdxsty_j02.ist
+2021/04/03 | 334 | indexing/upmendex/doc/samples/option/mdxsty_rule0.ist
+2021/04/03 | 614 | indexing/upmendex/doc/samples/russian.idx
+2021/04/03 | 16668 | indexing/upmendex/doc/upmendex.ja.txt
+2021/04/03 | 16358 | indexing/upmendex/man/upmendex.1
+2021/04/03 | 311434 | indexing/upmendex/man/upmendex.man1.pdf
+2021/04/03 | 2977 | indexing/upmendex/README.md
+2021/04/03 | 44106 | indexing/upmendex/source/aclocal.m4
+2021/04/03 | 337 | indexing/upmendex/source/ac/withenable.ac
+2021/04/03 | 4908 | indexing/upmendex/source/c-auto.in
+2021/04/03 | 5058 | indexing/upmendex/source/ChangeLog
+2021/04/03 | 700201 | indexing/upmendex/source/configure
+2021/04/03 | 2318 | indexing/upmendex/source/configure.ac
+2021/04/03 | 9434 | indexing/upmendex/source/convert.c
+2021/04/03 | 412 | indexing/upmendex/source/exhanzi.h
+2021/04/03 | 729 | indexing/upmendex/source/exkana.h
+2021/04/03 | 1291 | indexing/upmendex/source/exvar.h
+2021/04/03 | 13316 | indexing/upmendex/source/fread.c
+2021/04/03 | 27948 | indexing/upmendex/source/fwrite.c
+2021/04/03 | 19515 | indexing/upmendex/source/hanzi.h
+2021/04/03 | 333 | indexing/upmendex/source/indexsty
+2021/04/03 | 3891 | indexing/upmendex/source/kana.h
+2021/04/03 | 1190 | indexing/upmendex/source/kp.c
+2021/04/03 | 406 | indexing/upmendex/source/kp.h
+2021/04/03 | 1842 | indexing/upmendex/source/ktable.h
+2021/04/03 | 7546 | indexing/upmendex/source/main.c
+2021/04/03 | 1326 | indexing/upmendex/source/Makefile.am
+2021/04/03 | 46876 | indexing/upmendex/source/Makefile.in
+2021/04/03 | 2329 | indexing/upmendex/source/mendex.h
+2021/04/03 | 1052 | indexing/upmendex/source/pageread.c
+2021/04/03 | 5842 | indexing/upmendex/source/qsort.c
+2021/04/03 | 400 | indexing/upmendex/source/qsort.h
+2021/04/03 | 13004 | indexing/upmendex/source/sort.c
+2021/04/03 | 10083 | indexing/upmendex/source/styfile.c
+2021/04/03 | 68 | indexing/upmendex/source/tests/foo.idx
+2021/04/03 | 58 | indexing/upmendex/source/tests/foo.ind
+2021/04/03 | 182 | indexing/upmendex/source/tests/pprec0.ist
+2021/04/03 | 179 | indexing/upmendex/source/tests/pprec1.ist
+2021/04/03 | 179 | indexing/upmendex/source/tests/pprec2.ist
+2021/04/03 | 96 | indexing/upmendex/source/tests/pprecA-0.ind
+2021/04/03 | 96 | indexing/upmendex/source/tests/pprecA-1.ind
+2021/04/03 | 96 | indexing/upmendex/source/tests/pprecA-2.ind
+2021/04/03 | 213 | indexing/upmendex/source/tests/pprecA.idx
+2021/04/03 | 64 | indexing/upmendex/source/tests/uni.dict
+2021/04/03 | 435 | indexing/upmendex/source/tests/uni.idx
+2021/04/03 | 766 | indexing/upmendex/source/tests/uni.ind
+2021/04/03 | 272 | indexing/upmendex/source/tests/uni.ist
+2021/04/03 | 1322 | indexing/upmendex/source/tests/upmendex.test
+2021/04/03 | 2105 | indexing/upmendex/source/var.h
+2021/04/03 | 98 | indexing/upmendex/source/version.h
+2021/04/03 | 511775 | indexing/upmendex.zip
2020/09/08 | 1703 | indexing/xindex/CHANGELOG
2019/10/31 | 1232 | indexing/xindex/doc/Makefile
2018/10/09 | 32092 | indexing/xindex/doc/tests/buch.idx
@@ -148428,20 +148436,25 @@
2014/09/15 | 517641 | indexing/xindy/base/xindy-2.5.1.tar.gz
2009/03/26 | 139231 | indexing/xindy/base/xindy-kernel-3.0.tar.gz
2004/01/13 | 284178 | indexing/xindy/base/xindy-make-rules-0.2.tar.gz
-2015/12/19 | 1366 | indexing/xindy/contrib/xindy-persian/README
-2015/12/19 | 414 | indexing/xindy/contrib/xindy-persian/variant1-utf8-lang.xdy
-2015/12/19 | 1623 | indexing/xindy/contrib/xindy-persian/variant1-utf8.pl.in
-2015/12/19 | 2655 | indexing/xindy/contrib/xindy-persian/variant1-utf8-test.xdy
-2015/12/19 | 18475 | indexing/xindy/contrib/xindy-persian/variant1-utf8.xdy
-2015/12/19 | 414 | indexing/xindy/contrib/xindy-persian/variant2-utf8-lang.xdy
-2015/12/19 | 1623 | indexing/xindy/contrib/xindy-persian/variant2-utf8.pl.in
-2015/12/19 | 2655 | indexing/xindy/contrib/xindy-persian/variant2-utf8-test.xdy
-2015/12/19 | 18526 | indexing/xindy/contrib/xindy-persian/variant2-utf8.xdy
-2015/12/19 | 414 | indexing/xindy/contrib/xindy-persian/variant3-utf8-lang.xdy
-2015/12/19 | 1637 | indexing/xindy/contrib/xindy-persian/variant3-utf8.pl.in
-2015/12/19 | 2655 | indexing/xindy/contrib/xindy-persian/variant3-utf8-test.xdy
-2015/12/19 | 18483 | indexing/xindy/contrib/xindy-persian/variant3-utf8.xdy
-2015/12/20 | 14970 | indexing/xindy/contrib/xindy-persian.zip
+2021/04/03 | 1522 | indexing/xindy/contrib/xindy-persian/doc/variant1-utf8-doc.tex
+2021/04/03 | 1522 | indexing/xindy/contrib/xindy-persian/doc/variant2-utf8-doc.tex
+2021/04/03 | 1524 | indexing/xindy/contrib/xindy-persian/doc/variant3-utf8-doc.tex
+2020/05/20 | 414 | indexing/xindy/contrib/xindy-persian/persian/variant1-utf8-lang.xdy
+2020/05/20 | 2655 | indexing/xindy/contrib/xindy-persian/persian/variant1-utf8-test.xdy
+2021/04/03 | 18618 | indexing/xindy/contrib/xindy-persian/persian/variant1-utf8.xdy
+2020/05/20 | 414 | indexing/xindy/contrib/xindy-persian/persian/variant2-utf8-lang.xdy
+2020/05/20 | 2655 | indexing/xindy/contrib/xindy-persian/persian/variant2-utf8-test.xdy
+2021/04/03 | 18669 | indexing/xindy/contrib/xindy-persian/persian/variant2-utf8.xdy
+2020/05/20 | 414 | indexing/xindy/contrib/xindy-persian/persian/variant3-utf8-lang.xdy
+2020/05/20 | 2655 | indexing/xindy/contrib/xindy-persian/persian/variant3-utf8-test.xdy
+2021/04/03 | 18626 | indexing/xindy/contrib/xindy-persian/persian/variant3-utf8.xdy
+2021/04/03 | 1344 | indexing/xindy/contrib/xindy-persian/README
+2014/05/14 | 6751 | indexing/xindy/contrib/xindy-persian/source/make-rules.pl
+2014/05/14 | 2241 | indexing/xindy/contrib/xindy-persian/source/test.xdy
+2021/04/03 | 6720 | indexing/xindy/contrib/xindy-persian/source/variant1-utf8.pl.in
+2021/04/03 | 6720 | indexing/xindy/contrib/xindy-persian/source/variant2-utf8.pl.in
+2021/04/03 | 6734 | indexing/xindy/contrib/xindy-persian/source/variant3-utf8.pl.in
+2021/04/03 | 23692 | indexing/xindy/contrib/xindy-persian.zip
2018/04/11 | 9068160 | indexing/zhmakeindex/bin/darwin_x64/zhmakeindex
2018/04/11 | 6993868 | indexing/zhmakeindex/bin/darwin_x86/zhmakeindex
2018/04/11 | 9119654 | indexing/zhmakeindex/bin/linux_x64/zhmakeindex
@@ -172600,7 +172613,7 @@
2019/07/31 | 453685 | install/macros/latex/contrib/thalie.tds.zip
2013/01/06 | 389729 | install/macros/latex/contrib/threadcol.tds.zip
2014/03/09 | 752162 | install/macros/latex/contrib/thumbs.tds.zip
-2021/03/21 | 1698006 | install/macros/latex/contrib/thuthesis.tds.zip
+2021/04/03 | 1709687 | install/macros/latex/contrib/thuthesis.tds.zip
2009/09/04 | 196291 | install/macros/latex/contrib/titling.tds.zip
2010/10/13 | 327240 | install/macros/latex/contrib/tocbibind.tds.zip
2014/03/10 | 311835 | install/macros/latex/contrib/tocvsec2.tds.zip
@@ -177157,13 +177170,13 @@
2018/05/13 | 656 | language/japanese/endnotesj/Makefile
2018/05/13 | 503 | language/japanese/endnotesj/README.md
2018/05/13 | 157604 | language/japanese/endnotesj.zip
-2021/03/25 | 73689 | language/japanese/gckanbun/gckanbun.pdf
-2021/03/25 | 6141 | language/japanese/gckanbun/gckanbun.sty
-2021/03/25 | 3661 | language/japanese/gckanbun/gckanbun.tex
-2021/03/25 | 1150 | language/japanese/gckanbun/LICENSE
-2021/03/25 | 523 | language/japanese/gckanbun/README.md
-2021/03/25 | 6238 | language/japanese/gckanbun/test-gckanbun.tex
-2021/03/25 | 77427 | language/japanese/gckanbun.zip
+2021/03/26 | 75281 | language/japanese/gckanbun/gckanbun.pdf
+2021/03/26 | 6217 | language/japanese/gckanbun/gckanbun.sty
+2021/03/26 | 3843 | language/japanese/gckanbun/gckanbun.tex
+2021/03/26 | 1150 | language/japanese/gckanbun/LICENSE
+2021/03/26 | 527 | language/japanese/gckanbun/README.md
+2021/03/26 | 6248 | language/japanese/gckanbun/test-gckanbun.tex
+2021/04/03 | 79118 | language/japanese/gckanbun.zip
2020/11/14 | 5720 | language/japanese/japanese-otf/basepl/base0-h.pl
2020/11/14 | 1295 | language/japanese/japanese-otf/basepl/base2-h.pl
2020/11/14 | 6120 | language/japanese/japanese-otf/basepl/base2-v.pl
@@ -192119,23 +192132,23 @@
2017/11/21 | 1662 | macros/latex/contrib/biblatex-contrib/biblatex-fiwi/latex/dbx/fiwi.dbx
2017/11/21 | 2941 | macros/latex/contrib/biblatex-contrib/biblatex-fiwi/README
2017/11/21 | 793984 | macros/latex/contrib/biblatex-contrib/biblatex-fiwi.zip
-2021/01/19 | 1886456 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015.pdf
-2021/01/03 | 17643 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015-preamble.tex
-2021/01/19 | 190596 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015.tex
-2021/01/03 | 9505 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/chinese-erj.bbx
-2021/01/03 | 5332 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/chinese-erj.cbx
-2021/01/04 | 135634 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/example.bib
-2021/01/19 | 157816 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.bbx
-2021/01/19 | 14715 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.cbx
-2021/01/19 | 162209 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.bbx
-2021/01/19 | 12686 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.cbx
-2021/01/03 | 952 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015-gbk.def
-2021/01/19 | 116503 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ms.bbx
-2021/01/19 | 5747 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ms.cbx
-2021/01/19 | 136053 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015mx.bbx
-2021/01/19 | 15593 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015mx.cbx
-2021/01/19 | 53411 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/README.md
-2021/01/19 | 1881620 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015.zip
+2021/04/01 | 1911308 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015.pdf
+2021/01/03 | 17212 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015-preamble.tex
+2021/03/21 | 189659 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015.tex
+2021/01/03 | 9268 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/chinese-erj.bbx
+2021/01/03 | 5181 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/chinese-erj.cbx
+2021/01/04 | 131796 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/example.bib
+2021/04/03 | 159219 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.bbx
+2021/04/03 | 14286 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.cbx
+2021/04/03 | 164151 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.bbx
+2021/04/03 | 14176 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.cbx
+2021/01/03 | 924 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015-gbk.def
+2021/04/03 | 115105 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ms.bbx
+2021/04/03 | 5946 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ms.cbx
+2021/04/03 | 133754 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015mx.bbx
+2021/04/03 | 15514 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015mx.cbx
+2021/04/03 | 68662 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/README.md
+2021/04/03 | 1929866 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015.zip
2020/11/15 | 162517 | macros/latex/contrib/biblatex-contrib/biblatex-german-legal/biblatex-german-legal.pdf
2020/11/15 | 15845 | macros/latex/contrib/biblatex-contrib/biblatex-german-legal/biblatex-german-legal.tex
2020/11/15 | 8950 | macros/latex/contrib/biblatex-contrib/biblatex-german-legal/german-legal-book.bbx
@@ -195068,16 +195081,14 @@
2008/05/21 | 228973 | macros/latex/contrib/conferences/icsv/icsv.pdf
2008/05/21 | 396 | macros/latex/contrib/conferences/icsv/README
2008/05/21 | 221383 | macros/latex/contrib/conferences/icsv.zip
-2006/08/03 | 24 | macros/latex/contrib/conferences/sugconf/article-example.bat
-2006/08/04 | 39591 | macros/latex/contrib/conferences/sugconf/article-example.pdf
-2006/08/04 | 3902 | macros/latex/contrib/conferences/sugconf/article-example.tex
-2006/08/10 | 3572 | macros/latex/contrib/conferences/sugconf/README
-2006/08/10 | 6893 | macros/latex/contrib/conferences/sugconf/sugconf.cls
-2006/08/04 | 24 | macros/latex/contrib/conferences/sugconf/sugconf-example.bat
-2006/08/04 | 63226 | macros/latex/contrib/conferences/sugconf/sugconf-example.pdf
-2006/08/10 | 7000 | macros/latex/contrib/conferences/sugconf/sugconf-example.tex
-2006/08/10 | 2436 | macros/latex/contrib/conferences/sugconf/SUGI-paper-example.txt
-2006/08/10 | 97794 | macros/latex/contrib/conferences/sugconf.zip
+2021/03/20 | 13698 | macros/latex/contrib/conferences/sugconf/banner-sgf-2021.png
+2021/04/02 | 2984 | macros/latex/contrib/conferences/sugconf/README
+2021/04/02 | 5332 | macros/latex/contrib/conferences/sugconf/sugconf.cls
+2021/04/02 | 31585 | macros/latex/contrib/conferences/sugconf/sugconf-skeleton.pdf
+2021/04/01 | 837 | macros/latex/contrib/conferences/sugconf/sugconf-skeleton.tex
+2021/04/02 | 50664 | macros/latex/contrib/conferences/sugconf/sugconf-template.pdf
+2021/04/01 | 2504 | macros/latex/contrib/conferences/sugconf/sugconf-template.tex
+2021/04/03 | 97733 | macros/latex/contrib/conferences/sugconf.zip
2008/03/30 | 22539 | macros/latex/contrib/constants/constants.dtx
2008/03/30 | 567 | macros/latex/contrib/constants/constants.ins
2008/03/30 | 117068 | macros/latex/contrib/constants/constants.pdf
@@ -196864,14 +196875,14 @@
2021/03/15 | 99 | macros/latex/contrib/easybook/doc/appendix.tex
2021/03/24 | 4150 | macros/latex/contrib/easybook/doc/chapter1.tex
2021/03/25 | 3872 | macros/latex/contrib/easybook/doc/chapter2.tex
-2021/03/21 | 2539 | macros/latex/contrib/easybook/doc/chapter3.tex
-2021/04/01 | 262407 | macros/latex/contrib/easybook/doc/easybook-demo.pdf
-2021/04/01 | 2587 | macros/latex/contrib/easybook/doc/easybook-demo.tex
-2021/04/01 | 260079 | macros/latex/contrib/easybook/doc/easybook.pdf
+2021/04/03 | 2539 | macros/latex/contrib/easybook/doc/chapter3.tex
+2021/04/03 | 262400 | macros/latex/contrib/easybook/doc/easybook-demo.pdf
+2021/04/03 | 2587 | macros/latex/contrib/easybook/doc/easybook-demo.tex
+2021/04/03 | 420345 | macros/latex/contrib/easybook/doc/easybook.pdf
2021/02/23 | 830 | macros/latex/contrib/easybook/doc/refs.bib
-2021/04/01 | 88537 | macros/latex/contrib/easybook/easybook.dtx
+2021/04/03 | 89342 | macros/latex/contrib/easybook/easybook.dtx
2021/04/01 | 2497 | macros/latex/contrib/easybook/README.md
-2021/04/01 | 545296 | macros/latex/contrib/easybook.zip
+2021/04/03 | 706549 | macros/latex/contrib/easybook.zip
2009/06/17 | 82589 | macros/latex/contrib/easy/doc/docbib.pdf
2009/06/17 | 78378 | macros/latex/contrib/easy/doc/docbmat.pdf
2009/06/17 | 99132 | macros/latex/contrib/easy/doc/doceqn.pdf
@@ -213529,47 +213540,47 @@
2010/01/15 | 10230 | macros/latex/contrib/thumby/thumby.sty
2010/01/15 | 162336 | macros/latex/contrib/thumby.zip
2005/06/21 | 207846 | macros/latex/contrib/thumb.zip
-2021/03/21 | 33609 | macros/latex/contrib/thuthesis/CHANGELOG.md
-2021/03/21 | 2286 | macros/latex/contrib/thuthesis/data/abstract.tex
-2021/03/21 | 548 | macros/latex/contrib/thuthesis/data/acknowledgements.tex
-2021/03/21 | 1719 | macros/latex/contrib/thuthesis/data/appendix-survey.tex
-2021/03/21 | 1479 | macros/latex/contrib/thuthesis/data/appendix.tex
-2021/03/21 | 1787 | macros/latex/contrib/thuthesis/data/appendix-translation.tex
-2021/03/21 | 4656 | macros/latex/contrib/thuthesis/data/chap01.tex
-2021/03/21 | 4868 | macros/latex/contrib/thuthesis/data/chap02.tex
-2021/03/21 | 4158 | macros/latex/contrib/thuthesis/data/chap03.tex
-2021/03/21 | 2954 | macros/latex/contrib/thuthesis/data/chap04.tex
-2021/03/21 | 285 | macros/latex/contrib/thuthesis/data/comments.tex
-2021/03/21 | 1664 | macros/latex/contrib/thuthesis/data/committee.tex
-2021/03/21 | 5438 | macros/latex/contrib/thuthesis/data/denotation.tex
-2021/03/21 | 462 | macros/latex/contrib/thuthesis/data/resolution.tex
-2021/03/21 | 1452 | macros/latex/contrib/thuthesis/data/resume.tex
-2021/03/21 | 490 | macros/latex/contrib/thuthesis/latexmkrc
-2021/03/21 | 19106 | macros/latex/contrib/thuthesis/LICENSE
-2021/03/21 | 2024 | macros/latex/contrib/thuthesis/Makefile
-2021/03/21 | 6913 | macros/latex/contrib/thuthesis/README.md
-2021/03/21 | 428 | macros/latex/contrib/thuthesis/ref/appendix.bib
-2021/03/21 | 9990 | macros/latex/contrib/thuthesis/ref/refs.bib
-2021/03/21 | 24008 | macros/latex/contrib/thuthesis/spine.pdf
-2021/03/21 | 307 | macros/latex/contrib/thuthesis/spine.tex
-2021/03/21 | 4794 | macros/latex/contrib/thuthesis/thusetup.tex
-2021/03/21 | 535 | macros/latex/contrib/thuthesis/thuthesis-author-year.bbx
-2021/03/21 | 47424 | macros/latex/contrib/thuthesis/thuthesis-author-year.bst
-2021/03/21 | 132 | macros/latex/contrib/thuthesis/thuthesis-author-year.cbx
-2021/03/21 | 778 | macros/latex/contrib/thuthesis/thuthesis-bachelor.bbx
-2021/03/21 | 44579 | macros/latex/contrib/thuthesis/thuthesis-bachelor.bst
-2021/03/21 | 127 | macros/latex/contrib/thuthesis/thuthesis-bachelor.cbx
-2021/03/21 | 200106 | macros/latex/contrib/thuthesis/thuthesis.dtx
-2021/03/21 | 399314 | macros/latex/contrib/thuthesis/thuthesis-example.pdf
-2021/03/21 | 2355 | macros/latex/contrib/thuthesis/thuthesis-example.tex
-2021/03/21 | 421 | macros/latex/contrib/thuthesis/thuthesis-inline.cbx
-2021/03/21 | 1387 | macros/latex/contrib/thuthesis/thuthesis.ins
-2021/03/21 | 845 | macros/latex/contrib/thuthesis/thuthesis-numeric.bbx
-2021/03/21 | 44575 | macros/latex/contrib/thuthesis/thuthesis-numeric.bst
-2021/03/21 | 126 | macros/latex/contrib/thuthesis/thuthesis-numeric.cbx
-2021/03/21 | 1139361 | macros/latex/contrib/thuthesis/thuthesis.pdf
-2021/03/21 | 14186 | macros/latex/contrib/thuthesis/tsinghua-name-bachelor.pdf
-2021/03/21 | 1672950 | macros/latex/contrib/thuthesis.zip
+2021/04/03 | 34324 | macros/latex/contrib/thuthesis/CHANGELOG.md
+2021/04/03 | 2286 | macros/latex/contrib/thuthesis/data/abstract.tex
+2021/04/03 | 548 | macros/latex/contrib/thuthesis/data/acknowledgements.tex
+2021/04/03 | 1719 | macros/latex/contrib/thuthesis/data/appendix-survey.tex
+2021/04/03 | 1479 | macros/latex/contrib/thuthesis/data/appendix.tex
+2021/04/03 | 1787 | macros/latex/contrib/thuthesis/data/appendix-translation.tex
+2021/04/03 | 4656 | macros/latex/contrib/thuthesis/data/chap01.tex
+2021/04/03 | 5551 | macros/latex/contrib/thuthesis/data/chap02.tex
+2021/04/03 | 4158 | macros/latex/contrib/thuthesis/data/chap03.tex
+2021/04/03 | 2954 | macros/latex/contrib/thuthesis/data/chap04.tex
+2021/04/03 | 285 | macros/latex/contrib/thuthesis/data/comments.tex
+2021/04/03 | 1664 | macros/latex/contrib/thuthesis/data/committee.tex
+2021/04/03 | 5438 | macros/latex/contrib/thuthesis/data/denotation.tex
+2021/04/03 | 462 | macros/latex/contrib/thuthesis/data/resolution.tex
+2021/04/03 | 1452 | macros/latex/contrib/thuthesis/data/resume.tex
+2021/04/03 | 490 | macros/latex/contrib/thuthesis/latexmkrc
+2021/04/03 | 19106 | macros/latex/contrib/thuthesis/LICENSE
+2021/04/03 | 2024 | macros/latex/contrib/thuthesis/Makefile
+2021/04/03 | 6913 | macros/latex/contrib/thuthesis/README.md
+2021/04/03 | 428 | macros/latex/contrib/thuthesis/ref/appendix.bib
+2021/04/03 | 9967 | macros/latex/contrib/thuthesis/ref/refs.bib
+2021/04/03 | 23815 | macros/latex/contrib/thuthesis/spine.pdf
+2021/04/03 | 307 | macros/latex/contrib/thuthesis/spine.tex
+2021/04/03 | 4852 | macros/latex/contrib/thuthesis/thusetup.tex
+2021/04/03 | 479 | macros/latex/contrib/thuthesis/thuthesis-author-year.bbx
+2021/04/03 | 47154 | macros/latex/contrib/thuthesis/thuthesis-author-year.bst
+2021/04/03 | 132 | macros/latex/contrib/thuthesis/thuthesis-author-year.cbx
+2021/04/03 | 778 | macros/latex/contrib/thuthesis/thuthesis-bachelor.bbx
+2021/04/03 | 44309 | macros/latex/contrib/thuthesis/thuthesis-bachelor.bst
+2021/04/03 | 366 | macros/latex/contrib/thuthesis/thuthesis-bachelor.cbx
+2021/04/03 | 201119 | macros/latex/contrib/thuthesis/thuthesis.dtx
+2021/04/03 | 405628 | macros/latex/contrib/thuthesis/thuthesis-example.pdf
+2021/04/03 | 2355 | macros/latex/contrib/thuthesis/thuthesis-example.tex
+2021/04/03 | 421 | macros/latex/contrib/thuthesis/thuthesis-inline.cbx
+2021/04/03 | 1387 | macros/latex/contrib/thuthesis/thuthesis.ins
+2021/04/03 | 802 | macros/latex/contrib/thuthesis/thuthesis-numeric.bbx
+2021/04/03 | 44305 | macros/latex/contrib/thuthesis/thuthesis-numeric.bst
+2021/04/03 | 365 | macros/latex/contrib/thuthesis/thuthesis-numeric.cbx
+2021/04/03 | 1144457 | macros/latex/contrib/thuthesis/thuthesis.pdf
+2021/04/03 | 14186 | macros/latex/contrib/thuthesis/tsinghua-name-bachelor.pdf
+2021/04/03 | 1684540 | macros/latex/contrib/thuthesis.zip
2016/10/11 | 347 | macros/latex/contrib/ticket/comment
2016/09/07 | 42607 | macros/latex/contrib/ticket/doc/ex_file.pdf
2016/09/07 | 1294 | macros/latex/contrib/ticket/doc/ex_file.tex
@@ -222959,11 +222970,11 @@
2020/05/07 | 3848 | macros/luatex/latex/unitconv/latex/unitconv.sty
2020/05/07 | 540 | macros/luatex/latex/unitconv/README.md
2020/05/07 | 70979 | macros/luatex/latex/unitconv.zip
-2021/03/14 | 477 | macros/luatex/latex/unitipa/README.txt
-2021/03/14 | 17117 | macros/luatex/latex/unitipa/unitipa.dtx
-2021/03/14 | 1352 | macros/luatex/latex/unitipa/unitipa.ins
-2021/03/14 | 191050 | macros/luatex/latex/unitipa/unitipa.pdf
-2021/03/14 | 190589 | macros/luatex/latex/unitipa.zip
+2021/04/03 | 452 | macros/luatex/latex/unitipa/README.txt
+2021/04/03 | 17061 | macros/luatex/latex/unitipa/unitipa.dtx
+2021/04/03 | 1328 | macros/luatex/latex/unitipa/unitipa.ins
+2021/04/03 | 191655 | macros/luatex/latex/unitipa/unitipa.pdf
+2021/04/03 | 191222 | macros/luatex/latex/unitipa.zip
2017/10/21 | 5399 | macros/luatex/latex/wallcalendar/doc/auto/wallcalendar-code.el
2017/10/21 | 1846 | macros/luatex/latex/wallcalendar/doc/auto/wallcalendar.el
2017/10/21 | 444 | macros/luatex/latex/wallcalendar/doc/doc-setup.org
@@ -262602,11 +262613,11 @@
2019/10/13 | 9071 | systems/doc/luatex/luatex-introduction.tex
2020/03/28 | 47983 | systems/doc/luatex/luatex-languages.tex
2019/10/13 | 444 | systems/doc/luatex/luatex-logos.tex
-2021/02/15 | 34333 | systems/doc/luatex/luatex-lua.tex
+2021/04/02 | 34339 | systems/doc/luatex/luatex-lua.tex
2021/02/15 | 69942 | systems/doc/luatex/luatex-math.tex
2021/02/15 | 48312 | systems/doc/luatex/luatex-modifications.tex
2020/03/29 | 97669 | systems/doc/luatex/luatex-nodes.tex
-2021/03/18 | 1763334 | systems/doc/luatex/luatex.pdf
+2021/04/02 | 1763342 | systems/doc/luatex/luatex.pdf
2020/03/14 | 5012 | systems/doc/luatex/luatex-preamble.tex
2019/10/13 | 1118 | systems/doc/luatex/luatex-registers.tex
2019/10/13 | 242 | systems/doc/luatex/luatex-statistics.tex
@@ -262614,7 +262625,7 @@
2021/02/15 | 3639 | systems/doc/luatex/luatex.tex
2021/03/18 | 98272 | systems/doc/luatex/luatex-tex.tex
2019/10/13 | 1313 | systems/doc/luatex/luatex-titlepage.tex
-2021/03/19 | 2043372 | systems/doc/luatex.zip
+2021/04/03 | 2043421 | systems/doc/luatex.zip
2015/04/30 | 66584 | systems/doc/metapost/CHANGES
2009/05/30 | 7430 | systems/doc/metapost/grdemo-doc.pdf
2009/05/30 | 3044 | systems/doc/metapost/grdemo.pdf
@@ -265307,7 +265318,7 @@
2020/04/22 | 5992 | systems/texlive/tlnet/archive/bearwear.source.r54826.tar.xz
2021/03/19 | 275784 | systems/texlive/tlnet/archive/beaulivre.doc.r58503.tar.xz
2021/03/19 | 3024 | systems/texlive/tlnet/archive/beaulivre.r58503.tar.xz
-2021/03/22 | 875216 | systems/texlive/tlnet/archive/beebe.r58605.tar.xz
+2021/04/03 | 875280 | systems/texlive/tlnet/archive/beebe.r58697.tar.xz
2019/02/28 | 709916 | systems/texlive/tlnet/archive/begingreek.doc.r36294.tar.xz
2019/02/28 | 1664 | systems/texlive/tlnet/archive/begingreek.r36294.tar.xz
2019/02/28 | 7448 | systems/texlive/tlnet/archive/begingreek.source.r36294.tar.xz
@@ -271140,7 +271151,7 @@
2019/11/07 | 263752 | systems/texlive/tlnet/archive/luatexbase.doc.r52663.tar.xz
2019/11/07 | 3508 | systems/texlive/tlnet/archive/luatexbase.r52663.tar.xz
2019/11/07 | 8444 | systems/texlive/tlnet/archive/luatexbase.source.r52663.tar.xz
-2021/03/19 | 1880128 | systems/texlive/tlnet/archive/luatex.doc.r58499.tar.xz
+2021/04/03 | 1880344 | systems/texlive/tlnet/archive/luatex.doc.r58702.tar.xz
2021/03/19 | 1742600 | systems/texlive/tlnet/archive/luatex.i386-cygwin.r58498.tar.xz
2021/03/19 | 1695724 | systems/texlive/tlnet/archive/luatex.i386-freebsd.r58501.tar.xz
2021/03/20 | 1847700 | systems/texlive/tlnet/archive/luatex.i386-linux.r58535.tar.xz
@@ -271151,7 +271162,7 @@
2021/03/20 | 83292 | systems/texlive/tlnet/archive/luatexja.source.r58542.tar.xz
2021/03/04 | 337828 | systems/texlive/tlnet/archive/luatexko.doc.r58085.tar.xz
2021/03/04 | 21980 | systems/texlive/tlnet/archive/luatexko.r58085.tar.xz
-2021/03/19 | 12908 | systems/texlive/tlnet/archive/luatex.r58499.tar.xz
+2021/04/03 | 12908 | systems/texlive/tlnet/archive/luatex.r58702.tar.xz
2019/02/28 | 317312 | systems/texlive/tlnet/archive/luatextra.doc.r20747.tar.xz
2019/02/28 | 1056 | systems/texlive/tlnet/archive/luatextra.r20747.tar.xz
2019/02/28 | 3492 | systems/texlive/tlnet/archive/luatextra.source.r20747.tar.xz
@@ -276667,8 +276678,8 @@
2020/01/19 | 364224 | systems/texlive/tlnet/archive/xbmks.doc.r53448.tar.xz
2020/01/19 | 4124 | systems/texlive/tlnet/archive/xbmks.r53448.tar.xz
2020/01/19 | 8024 | systems/texlive/tlnet/archive/xbmks.source.r53448.tar.xz
-2020/11/27 | 463404 | systems/texlive/tlnet/archive/xcharter.doc.r57009.tar.xz
-2020/11/27 | 2034264 | systems/texlive/tlnet/archive/xcharter.r57009.tar.xz
+2021/04/03 | 465796 | systems/texlive/tlnet/archive/xcharter.doc.r58704.tar.xz
+2021/04/03 | 2067796 | systems/texlive/tlnet/archive/xcharter.r58704.tar.xz
2020/01/22 | 159256 | systems/texlive/tlnet/archive/xcite.doc.r53486.tar.xz
2020/01/22 | 1048 | systems/texlive/tlnet/archive/xcite.r53486.tar.xz
2020/01/22 | 1664 | systems/texlive/tlnet/archive/xcite.source.r53486.tar.xz
@@ -277090,16 +277101,16 @@
2020/07/18 | 47816 | systems/texlive/tlnet/archive/zztex.doc.r55862.tar.xz
2020/07/18 | 101724 | systems/texlive/tlnet/archive/zztex.r55862.tar.xz
2021/03/24 | 105293 | systems/texlive/tlnet/install-tl
-2021/04/02 | 6190022 | systems/texlive/tlnet/install-tl-unx.tar.gz
-2021/04/02 | 152 | systems/texlive/tlnet/install-tl-unx.tar.gz.sha512
-2021/04/02 | 455 | systems/texlive/tlnet/install-tl-unx.tar.gz.sha512.asc
+2021/04/03 | 6190174 | systems/texlive/tlnet/install-tl-unx.tar.gz
+2021/04/03 | 152 | systems/texlive/tlnet/install-tl-unx.tar.gz.sha512
+2021/04/03 | 455 | systems/texlive/tlnet/install-tl-unx.tar.gz.sha512.asc
2020/08/23 | 4889 | systems/texlive/tlnet/install-tl-windows.bat
-2021/04/02 | 20130234 | systems/texlive/tlnet/install-tl-windows.exe
-2021/04/02 | 153 | systems/texlive/tlnet/install-tl-windows.exe.sha512
-2021/04/02 | 455 | systems/texlive/tlnet/install-tl-windows.exe.sha512.asc
-2021/04/02 | 24961924 | systems/texlive/tlnet/install-tl.zip
-2021/04/02 | 145 | systems/texlive/tlnet/install-tl.zip.sha512
-2021/04/02 | 455 | systems/texlive/tlnet/install-tl.zip.sha512.asc
+2021/04/03 | 20130221 | systems/texlive/tlnet/install-tl-windows.exe
+2021/04/03 | 153 | systems/texlive/tlnet/install-tl-windows.exe.sha512
+2021/04/03 | 455 | systems/texlive/tlnet/install-tl-windows.exe.sha512.asc
+2021/04/03 | 24961924 | systems/texlive/tlnet/install-tl.zip
+2021/04/03 | 145 | systems/texlive/tlnet/install-tl.zip.sha512
+2021/04/03 | 455 | systems/texlive/tlnet/install-tl.zip.sha512.asc
2021/04/01 | 1229 | systems/texlive/tlnet/README.md
2021/04/01 | 0 | systems/texlive/tlnet/TEXLIVE_2021
2021/03/15 | 6571 | systems/texlive/tlnet/tlpkg/gpg/pubring.gpg
@@ -277152,12 +277163,12 @@
2020/05/17 | 20322 | systems/texlive/tlnet/tlpkg/TeXLive/TLCrypto.pm
2021/02/20 | 5400 | systems/texlive/tlnet/tlpkg/TeXLive/TLDownload.pm
2020/09/22 | 27563 | systems/texlive/tlnet/tlpkg/TeXLive/TLPaper.pm
-2021/04/02 | 17161433 | systems/texlive/tlnet/tlpkg/texlive.tlpdb
-2021/04/02 | 48 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5
+2021/04/03 | 17169686 | systems/texlive/tlnet/tlpkg/texlive.tlpdb
+2021/04/03 | 48 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5
2020/05/13 | 86417 | systems/texlive/tlnet/tlpkg/TeXLive/TLPDB.pm
-2021/04/02 | 144 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512
-2021/04/02 | 455 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
-2021/04/02 | 2293920 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz
+2021/04/03 | 144 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512
+2021/04/03 | 455 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
+2021/04/03 | 2293232 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz
2021/03/15 | 58775 | systems/texlive/tlnet/tlpkg/TeXLive/TLPOBJ.pm
2021/03/17 | 42077 | systems/texlive/tlnet/tlpkg/TeXLive/TLPSRC.pm
2020/05/11 | 15010 | systems/texlive/tlnet/tlpkg/TeXLive/TLTREE.pm
@@ -281833,7 +281844,7 @@
2020/10/03 | 318630 | systems/win32/miktex/tm/packages/filehook.tar.lzma
2012/12/04 | 924573 | systems/win32/miktex/tm/packages/fileinfo.tar.lzma
2011/09/21 | 281409 | systems/win32/miktex/tm/packages/filemod.tar.lzma
-2021/04/02 | 574351 | systems/win32/miktex/tm/packages/files.csv.lzma
+2021/04/03 | 574351 | systems/win32/miktex/tm/packages/files.csv.lzma
2001/05/14 | 5617 | systems/win32/miktex/tm/packages/finbib.tar.lzma
2015/10/20 | 44379 | systems/win32/miktex/tm/packages/findhyph.tar.lzma
2011/10/21 | 89323 | systems/win32/miktex/tm/packages/fink.tar.lzma
@@ -283029,9 +283040,9 @@
2018/01/12 | 157226 | systems/win32/miktex/tm/packages/miktex-zip-bin-x64.tar.lzma
2021/03/15 | 39247 | systems/win32/miktex/tm/packages/miktex-zlib-bin-2.9.tar.lzma
2021/03/15 | 43386 | systems/win32/miktex/tm/packages/miktex-zlib-bin-x64-2.9.tar.lzma
-2021/04/02 | 208446 | systems/win32/miktex/tm/packages/miktex-zzdb1-2.9.tar.lzma
-2021/04/02 | 1265206 | systems/win32/miktex/tm/packages/miktex-zzdb2-2.9.tar.lzma
-2021/04/02 | 1180973 | systems/win32/miktex/tm/packages/miktex-zzdb3-2.9.tar.lzma
+2021/04/03 | 208485 | systems/win32/miktex/tm/packages/miktex-zzdb1-2.9.tar.lzma
+2021/04/03 | 1265387 | systems/win32/miktex/tm/packages/miktex-zzdb2-2.9.tar.lzma
+2021/04/03 | 1181087 | systems/win32/miktex/tm/packages/miktex-zzdb3-2.9.tar.lzma
2021/03/15 | 13447 | systems/win32/miktex/tm/packages/miktex-zzip-bin-2.9.tar.lzma
2021/03/15 | 14320 | systems/win32/miktex/tm/packages/miktex-zzip-bin-x64-2.9.tar.lzma
2016/07/15 | 35914 | systems/win32/miktex/tm/packages/mil3.tar.lzma
@@ -283192,190 +283203,190 @@
2018/04/09 | 400132 | systems/win32/miktex/tm/packages/newunicodechar.tar.lzma
2011/09/19 | 101312 | systems/win32/miktex/tm/packages/newvbtm.tar.lzma
2021/03/17 | 232249 | systems/win32/miktex/tm/packages/newverbs.tar.lzma
-2021/04/02 | 574491 | systems/win32/miktex/tm/packages/next/files.csv.lzma
-2021/04/02 | 50848 | systems/win32/miktex/tm/packages/next/miktex-arctrl-bin-2.9.tar.lzma
-2021/04/02 | 56458 | systems/win32/miktex/tm/packages/next/miktex-arctrl-bin-x64-2.9.tar.lzma
-2021/04/02 | 968700 | systems/win32/miktex/tm/packages/next/miktex-asymptote-bin-2.9.tar.lzma
-2021/04/02 | 1078878 | systems/win32/miktex/tm/packages/next/miktex-asymptote-bin-x64-2.9.tar.lzma
-2021/04/02 | 29054 | systems/win32/miktex/tm/packages/next/miktex-autosp-bin-2.9.tar.lzma
-2021/04/02 | 31345 | systems/win32/miktex/tm/packages/next/miktex-autosp-bin-x64-2.9.tar.lzma
-2021/04/02 | 29869 | systems/win32/miktex/tm/packages/next/miktex-axohelp-bin-2.9.tar.lzma
-2021/04/02 | 34635 | systems/win32/miktex/tm/packages/next/miktex-axohelp-bin-x64-2.9.tar.lzma
-2021/04/02 | 49972 | systems/win32/miktex/tm/packages/next/miktex-bibarts-bin-2.9.tar.lzma
-2021/04/02 | 57598 | systems/win32/miktex/tm/packages/next/miktex-bibarts-bin-x64-2.9.tar.lzma
-2021/04/02 | 84775 | systems/win32/miktex/tm/packages/next/miktex-bibtex8bit-bin-2.9.tar.lzma
-2021/04/02 | 94737 | systems/win32/miktex/tm/packages/next/miktex-bibtex8bit-bin-x64-2.9.tar.lzma
-2021/04/02 | 67679 | systems/win32/miktex/tm/packages/next/miktex-bibtex-bin-2.9.tar.lzma
-2021/04/02 | 75418 | systems/win32/miktex/tm/packages/next/miktex-bibtex-bin-x64-2.9.tar.lzma
-2021/04/02 | 27183 | systems/win32/miktex/tm/packages/next/miktex-bzip2-bin-2.9.tar.lzma
-2021/04/02 | 30886 | systems/win32/miktex/tm/packages/next/miktex-bzip2-bin-x64-2.9.tar.lzma
-2021/04/02 | 330233 | systems/win32/miktex/tm/packages/next/miktex-cairo-bin-2.9.tar.lzma
-2021/04/02 | 392597 | systems/win32/miktex/tm/packages/next/miktex-cairo-bin-x64-2.9.tar.lzma
-2021/04/02 | 32745 | systems/win32/miktex/tm/packages/next/miktex-chktex-bin-2.9.tar.lzma
-2021/04/02 | 36679 | systems/win32/miktex/tm/packages/next/miktex-chktex-bin-x64-2.9.tar.lzma
-2021/04/02 | 51432 | systems/win32/miktex/tm/packages/next/miktex-cjkutils-bin-2.9.tar.lzma
-2021/04/02 | 56718 | systems/win32/miktex/tm/packages/next/miktex-cjkutils-bin-x64-2.9.tar.lzma
-2021/04/02 | 4707 | systems/win32/miktex/tm/packages/next/miktex-config-2.9.tar.lzma
-2021/04/02 | 239479 | systems/win32/miktex/tm/packages/next/miktex-console-bin-2.9.tar.lzma
-2021/04/02 | 261963 | systems/win32/miktex/tm/packages/next/miktex-console-bin-x64-2.9.tar.lzma
-2021/04/02 | 179378 | systems/win32/miktex/tm/packages/next/miktex-curl-bin-2.9.tar.lzma
-2021/04/02 | 195666 | systems/win32/miktex/tm/packages/next/miktex-curl-bin-x64-2.9.tar.lzma
-2021/04/02 | 52475 | systems/win32/miktex/tm/packages/next/miktex-cweb-bin-2.9.tar.lzma
-2021/04/02 | 59147 | systems/win32/miktex/tm/packages/next/miktex-cweb-bin-x64-2.9.tar.lzma
-2021/04/02 | 21128 | systems/win32/miktex/tm/packages/next/miktex-devnag-bin-2.9.tar.lzma
-2021/04/02 | 23290 | systems/win32/miktex/tm/packages/next/miktex-devnag-bin-x64-2.9.tar.lzma
-2021/04/02 | 461399 | systems/win32/miktex/tm/packages/next/miktex-doc.tar.lzma
-2021/04/02 | 45649 | systems/win32/miktex/tm/packages/next/miktex-dvicopy-bin-2.9.tar.lzma
-2021/04/02 | 51160 | systems/win32/miktex/tm/packages/next/miktex-dvicopy-bin-x64-2.9.tar.lzma
-2021/04/02 | 282105 | systems/win32/miktex/tm/packages/next/miktex-dvipdfmx-bin-2.9.tar.lzma
-2021/04/02 | 321896 | systems/win32/miktex/tm/packages/next/miktex-dvipdfmx-bin-x64-2.9.tar.lzma
-2021/04/02 | 41103 | systems/win32/miktex/tm/packages/next/miktex-dvipng-bin-2.9.tar.lzma
-2021/04/02 | 45277 | systems/win32/miktex/tm/packages/next/miktex-dvipng-bin-x64-2.9.tar.lzma
-2021/04/02 | 116930 | systems/win32/miktex/tm/packages/next/miktex-dvips-bin-2.9.tar.lzma
-2021/04/02 | 131490 | systems/win32/miktex/tm/packages/next/miktex-dvips-bin-x64-2.9.tar.lzma
-2021/04/02 | 1281105 | systems/win32/miktex/tm/packages/next/miktex-dvisvgm-bin-2.9.tar.lzma
-2021/04/02 | 1425980 | systems/win32/miktex/tm/packages/next/miktex-dvisvgm-bin-x64-2.9.tar.lzma
-2021/04/02 | 87637 | systems/win32/miktex/tm/packages/next/miktex-epstopdf-bin-2.9.tar.lzma
-2021/04/02 | 99605 | systems/win32/miktex/tm/packages/next/miktex-epstopdf-bin-x64-2.9.tar.lzma
-2021/04/02 | 43057 | systems/win32/miktex/tm/packages/next/miktex-expat-bin-2.9.tar.lzma
-2021/04/02 | 47877 | systems/win32/miktex/tm/packages/next/miktex-expat-bin-x64-2.9.tar.lzma
-2021/04/02 | 25156 | systems/win32/miktex/tm/packages/next/miktex-findtexmf-bin-2.9.tar.lzma
-2021/04/02 | 28009 | systems/win32/miktex/tm/packages/next/miktex-findtexmf-bin-x64-2.9.tar.lzma
-2021/04/02 | 55822 | systems/win32/miktex/tm/packages/next/miktex-fmt-bin-2.9.tar.lzma
-2021/04/02 | 62801 | systems/win32/miktex/tm/packages/next/miktex-fmt-bin-x64-2.9.tar.lzma
-2021/04/02 | 135005 | systems/win32/miktex/tm/packages/next/miktex-fontconfig-bin-2.9.tar.lzma
-2021/04/02 | 152762 | systems/win32/miktex/tm/packages/next/miktex-fontconfig-bin-x64-2.9.tar.lzma
-2021/04/02 | 73182 | systems/win32/miktex/tm/packages/next/miktex-fonts-bin-2.9.tar.lzma
-2021/04/02 | 77859 | systems/win32/miktex/tm/packages/next/miktex-fonts-bin-x64-2.9.tar.lzma
-2021/04/02 | 71568 | systems/win32/miktex/tm/packages/next/miktex-freeglut-bin-2.9.tar.lzma
-2021/04/02 | 80658 | systems/win32/miktex/tm/packages/next/miktex-freeglut-bin-x64-2.9.tar.lzma
-2021/04/02 | 258666 | systems/win32/miktex/tm/packages/next/miktex-freetype2-bin-2.9.tar.lzma
-2021/04/02 | 295554 | systems/win32/miktex/tm/packages/next/miktex-freetype2-bin-x64-2.9.tar.lzma
-2021/04/02 | 22040 | systems/win32/miktex/tm/packages/next/miktex-fribidixetex-bin-2.9.tar.lzma
-2021/04/02 | 25002 | systems/win32/miktex/tm/packages/next/miktex-fribidixetex-bin-x64-2.9.tar.lzma
-2021/04/02 | 97491 | systems/win32/miktex/tm/packages/next/miktex-gd-bin-2.9.tar.lzma
-2021/04/02 | 112253 | systems/win32/miktex/tm/packages/next/miktex-gd-bin-x64-2.9.tar.lzma
-2021/04/02 | 63836 | systems/win32/miktex/tm/packages/next/miktex-graphite2-bin-2.9.tar.lzma
-2021/04/02 | 72860 | systems/win32/miktex/tm/packages/next/miktex-graphite2-bin-x64-2.9.tar.lzma
-2021/04/02 | 96146 | systems/win32/miktex/tm/packages/next/miktex-gregorio-bin-2.9.tar.lzma
-2021/04/02 | 115469 | systems/win32/miktex/tm/packages/next/miktex-gregorio-bin-x64-2.9.tar.lzma
-2021/04/02 | 38070 | systems/win32/miktex/tm/packages/next/miktex-gsf2pk-bin-2.9.tar.lzma
-2021/04/02 | 42627 | systems/win32/miktex/tm/packages/next/miktex-gsf2pk-bin-x64-2.9.tar.lzma
-2021/04/02 | 484054 | systems/win32/miktex/tm/packages/next/miktex-harfbuzz-bin-2.9.tar.lzma
-2021/04/02 | 567627 | systems/win32/miktex/tm/packages/next/miktex-harfbuzz-bin-x64-2.9.tar.lzma
-2021/04/02 | 147138 | systems/win32/miktex/tm/packages/next/miktex-hunspell-bin-2.9.tar.lzma
-2021/04/02 | 159969 | systems/win32/miktex/tm/packages/next/miktex-hunspell-bin-x64-2.9.tar.lzma
-2021/04/02 | 94802 | systems/win32/miktex/tm/packages/next/miktex-jpeg-bin-2.9.tar.lzma
-2021/04/02 | 109276 | systems/win32/miktex/tm/packages/next/miktex-jpeg-bin-x64-2.9.tar.lzma
-2021/04/02 | 16328 | systems/win32/miktex/tm/packages/next/miktex-kpathsea-bin-2.9.tar.lzma
-2021/04/02 | 17958 | systems/win32/miktex/tm/packages/next/miktex-kpathsea-bin-x64-2.9.tar.lzma
-2021/04/02 | 28121 | systems/win32/miktex/tm/packages/next/miktex-lacheck-bin-2.9.tar.lzma
-2021/04/02 | 30038 | systems/win32/miktex/tm/packages/next/miktex-lacheck-bin-x64-2.9.tar.lzma
-2021/04/02 | 625283 | systems/win32/miktex/tm/packages/next/miktex-lcdf-typetools-bin-2.9.tar.lzma
-2021/04/02 | 680049 | systems/win32/miktex/tm/packages/next/miktex-lcdf-typetools-bin-x64-2.9.tar.lzma
-2021/04/02 | 532041 | systems/win32/miktex/tm/packages/next/miktex-libressl-bin-2.9.tar.lzma
-2021/04/02 | 594870 | systems/win32/miktex/tm/packages/next/miktex-libressl-bin-x64-2.9.tar.lzma
-2021/04/02 | 475937 | systems/win32/miktex/tm/packages/next/miktex-log4cxx-bin-2.9.tar.lzma
-2021/04/02 | 511634 | systems/win32/miktex/tm/packages/next/miktex-log4cxx-bin-x64-2.9.tar.lzma
-2021/04/02 | 94269 | systems/win32/miktex/tm/packages/next/miktex-lua53-bin-2.9.tar.lzma
-2021/04/02 | 103323 | systems/win32/miktex/tm/packages/next/miktex-lua53-bin-x64-2.9.tar.lzma
-2021/04/02 | 1725544 | systems/win32/miktex/tm/packages/next/miktex-luatex-bin-2.9.tar.lzma
-2021/04/02 | 2009491 | systems/win32/miktex/tm/packages/next/miktex-luatex-bin-x64-2.9.tar.lzma
-2021/04/02 | 67649 | systems/win32/miktex/tm/packages/next/miktex-lzma-bin-2.9.tar.lzma
-2021/04/02 | 74165 | systems/win32/miktex/tm/packages/next/miktex-lzma-bin-x64-2.9.tar.lzma
-2021/04/02 | 27362 | systems/win32/miktex/tm/packages/next/miktex-makeindex-bin-2.9.tar.lzma
-2021/04/02 | 31594 | systems/win32/miktex/tm/packages/next/miktex-makeindex-bin-x64-2.9.tar.lzma
-2021/04/02 | 7747 | systems/win32/miktex/tm/packages/next/miktex-md5-bin-2.9.tar.lzma
-2021/04/02 | 8774 | systems/win32/miktex/tm/packages/next/miktex-md5-bin-x64-2.9.tar.lzma
-2021/04/02 | 195567 | systems/win32/miktex/tm/packages/next/miktex-metafont-bin-2.9.tar.lzma
-2021/04/02 | 214105 | systems/win32/miktex/tm/packages/next/miktex-metafont-bin-x64-2.9.tar.lzma
-2021/04/02 | 250212 | systems/win32/miktex/tm/packages/next/miktex-metapost-bin-2.9.tar.lzma
-2021/04/02 | 283978 | systems/win32/miktex/tm/packages/next/miktex-metapost-bin-x64-2.9.tar.lzma
-2021/04/02 | 97134 | systems/win32/miktex/tm/packages/next/miktex-mfware-bin-2.9.tar.lzma
-2021/04/02 | 101762 | systems/win32/miktex/tm/packages/next/miktex-mfware-bin-x64-2.9.tar.lzma
-2021/04/02 | 60552 | systems/win32/miktex/tm/packages/next/miktex-mkfntmap-bin-2.9.tar.lzma
-2021/04/02 | 67930 | systems/win32/miktex/tm/packages/next/miktex-mkfntmap-bin-x64-2.9.tar.lzma
-2021/04/02 | 124971 | systems/win32/miktex/tm/packages/next/miktex-mktex-bin-2.9.tar.lzma
-2021/04/02 | 136428 | systems/win32/miktex/tm/packages/next/miktex-mktex-bin-x64-2.9.tar.lzma
-2021/04/02 | 147151 | systems/win32/miktex/tm/packages/next/miktex-mo-bin-2.9.tar.lzma
-2021/04/02 | 163656 | systems/win32/miktex/tm/packages/next/miktex-mo-bin-x64-2.9.tar.lzma
-2021/04/02 | 199700 | systems/win32/miktex/tm/packages/next/miktex-mpfr-bin-2.9.tar.lzma
-2021/04/02 | 180048 | systems/win32/miktex/tm/packages/next/miktex-mpfr-bin-x64-2.9.tar.lzma
-2021/04/02 | 67451 | systems/win32/miktex/tm/packages/next/miktex-mpmcli-bin-2.9.tar.lzma
-2021/04/02 | 77488 | systems/win32/miktex/tm/packages/next/miktex-mpmcli-bin-x64-2.9.tar.lzma
-2021/04/02 | 31192 | systems/win32/miktex/tm/packages/next/miktex-mspack-bin-2.9.tar.lzma
-2021/04/02 | 35064 | systems/win32/miktex/tm/packages/next/miktex-mspack-bin-x64-2.9.tar.lzma
-2021/04/02 | 38066 | systems/win32/miktex/tm/packages/next/miktex-mthelp-bin-2.9.tar.lzma
-2021/04/02 | 42574 | systems/win32/miktex/tm/packages/next/miktex-mthelp-bin-x64-2.9.tar.lzma
-2021/04/02 | 42924 | systems/win32/miktex/tm/packages/next/miktex-mtprint-bin-2.9.tar.lzma
-2021/04/02 | 47008 | systems/win32/miktex/tm/packages/next/miktex-mtprint-bin-x64-2.9.tar.lzma
-2021/04/02 | 45936 | systems/win32/miktex/tm/packages/next/miktex-m-tx-bin-2.9.tar.lzma
-2021/04/02 | 52455 | systems/win32/miktex/tm/packages/next/miktex-m-tx-bin-x64-2.9.tar.lzma
-2021/04/02 | 193716 | systems/win32/miktex/tm/packages/next/miktex-omegaware-bin-2.9.tar.lzma
-2021/04/02 | 211054 | systems/win32/miktex/tm/packages/next/miktex-omegaware-bin-x64-2.9.tar.lzma
-2021/04/02 | 35462 | systems/win32/miktex/tm/packages/next/miktex-patgen-bin.tar.lzma
-2021/04/02 | 39691 | systems/win32/miktex/tm/packages/next/miktex-patgen-bin-x64.tar.lzma
-2021/04/02 | 748363 | systems/win32/miktex/tm/packages/next/miktex-pdftex-bin-2.9.tar.lzma
-2021/04/02 | 816073 | systems/win32/miktex/tm/packages/next/miktex-pdftex-bin-x64-2.9.tar.lzma
-2021/04/02 | 198132 | systems/win32/miktex/tm/packages/next/miktex-pixman-bin-2.9.tar.lzma
-2021/04/02 | 202558 | systems/win32/miktex/tm/packages/next/miktex-pixman-bin-x64-2.9.tar.lzma
-2021/04/02 | 208182 | systems/win32/miktex/tm/packages/next/miktex-pmx-bin-2.9.tar.lzma
-2021/04/02 | 243479 | systems/win32/miktex/tm/packages/next/miktex-pmx-bin-x64-2.9.tar.lzma
-2021/04/02 | 78745 | systems/win32/miktex/tm/packages/next/miktex-png-bin-2.9.tar.lzma
-2021/04/02 | 87704 | systems/win32/miktex/tm/packages/next/miktex-png-bin-x64-2.9.tar.lzma
-2021/04/02 | 1171732 | systems/win32/miktex/tm/packages/next/miktex-poppler-bin-2.9.tar.lzma
-2021/04/02 | 1307723 | systems/win32/miktex/tm/packages/next/miktex-poppler-bin-x64-2.9.tar.lzma
-2021/04/02 | 20122 | systems/win32/miktex/tm/packages/next/miktex-popt-bin-2.9.tar.lzma
-2021/04/02 | 23883 | systems/win32/miktex/tm/packages/next/miktex-popt-bin-x64-2.9.tar.lzma
-2021/04/02 | 31543 | systems/win32/miktex/tm/packages/next/miktex-posix-bin-2.9.tar.lzma
-2021/04/02 | 37244 | systems/win32/miktex/tm/packages/next/miktex-posix-bin-x64-2.9.tar.lzma
-2021/04/02 | 64017 | systems/win32/miktex/tm/packages/next/miktex-ps2pk-bin-2.9.tar.lzma
-2021/04/02 | 72151 | systems/win32/miktex/tm/packages/next/miktex-ps2pk-bin-x64-2.9.tar.lzma
-2021/04/02 | 43676 | systems/win32/miktex/tm/packages/next/miktex-psutils-bin-2.9.tar.lzma
-2021/04/02 | 51979 | systems/win32/miktex/tm/packages/next/miktex-psutils-bin-x64-2.9.tar.lzma
-2021/04/02 | 1295415 | systems/win32/miktex/tm/packages/next/miktex-runtime-bin-2.9.tar.lzma
-2021/04/02 | 1424814 | systems/win32/miktex/tm/packages/next/miktex-runtime-bin-x64-2.9.tar.lzma
-2021/04/02 | 42389 | systems/win32/miktex/tm/packages/next/miktex-synctex-bin-2.9.tar.lzma
-2021/04/02 | 51798 | systems/win32/miktex/tm/packages/next/miktex-synctex-bin-x64-2.9.tar.lzma
-2021/04/02 | 56222 | systems/win32/miktex/tm/packages/next/miktex-tdsutil-bin.tar.lzma
-2021/04/02 | 59831 | systems/win32/miktex/tm/packages/next/miktex-tdsutil-bin-x64.tar.lzma
-2021/04/02 | 25341 | systems/win32/miktex/tm/packages/next/miktex-teckit-bin-2.9.tar.lzma
-2021/04/02 | 27275 | systems/win32/miktex/tm/packages/next/miktex-teckit-bin-x64-2.9.tar.lzma
-2021/04/02 | 16111 | systems/win32/miktex/tm/packages/next/miktex-tex2xindy-bin-2.9.tar.lzma
-2021/04/02 | 18097 | systems/win32/miktex/tm/packages/next/miktex-tex2xindy-bin-x64-2.9.tar.lzma
-2021/04/02 | 63675 | systems/win32/miktex/tm/packages/next/miktex-tex4ht-bin-2.9.tar.lzma
-2021/04/02 | 70109 | systems/win32/miktex/tm/packages/next/miktex-tex4ht-bin-x64-2.9.tar.lzma
-2021/04/02 | 153889 | systems/win32/miktex/tm/packages/next/miktex-tex-bin-2.9.tar.lzma
-2021/04/02 | 167905 | systems/win32/miktex/tm/packages/next/miktex-tex-bin-x64-2.9.tar.lzma
-2021/04/02 | 56910 | systems/win32/miktex/tm/packages/next/miktex-texify-bin-2.9.tar.lzma
-2021/04/02 | 65322 | systems/win32/miktex/tm/packages/next/miktex-texify-bin-x64-2.9.tar.lzma
-2021/04/02 | 98519 | systems/win32/miktex/tm/packages/next/miktex-texware-bin-2.9.tar.lzma
-2021/04/02 | 104625 | systems/win32/miktex/tm/packages/next/miktex-texware-bin-x64-2.9.tar.lzma
-2021/04/02 | 2499401 | systems/win32/miktex/tm/packages/next/miktex-texworks-bin-2.9.tar.lzma
-2021/04/02 | 2616930 | systems/win32/miktex/tm/packages/next/miktex-texworks-bin-x64-2.9.tar.lzma
-2021/04/02 | 55220 | systems/win32/miktex/tm/packages/next/miktex-ttf2pk2-bin-2.9.tar.lzma
-2021/04/02 | 62225 | systems/win32/miktex/tm/packages/next/miktex-ttf2pk2-bin-x64-2.9.tar.lzma
-2021/04/02 | 33442 | systems/win32/miktex/tm/packages/next/miktex-upmendex-bin.tar.lzma
-2021/04/02 | 37292 | systems/win32/miktex/tm/packages/next/miktex-upmendex-bin-x64.tar.lzma
-2021/04/02 | 27198 | systems/win32/miktex/tm/packages/next/miktex-uriparser-bin-2.9.tar.lzma
-2021/04/02 | 33152 | systems/win32/miktex/tm/packages/next/miktex-uriparser-bin-x64-2.9.tar.lzma
-2021/04/02 | 65731 | systems/win32/miktex/tm/packages/next/miktex-web-bin-2.9.tar.lzma
-2021/04/02 | 70326 | systems/win32/miktex/tm/packages/next/miktex-web-bin-x64-2.9.tar.lzma
-2021/04/02 | 311192 | systems/win32/miktex/tm/packages/next/miktex-xetex-bin-2.9.tar.lzma
-2021/04/02 | 345367 | systems/win32/miktex/tm/packages/next/miktex-xetex-bin-x64-2.9.tar.lzma
-2021/04/02 | 55564 | systems/win32/miktex/tm/packages/next/miktex-xml2pmx-bin.tar.lzma
-2021/04/02 | 57068 | systems/win32/miktex/tm/packages/next/miktex-xml2pmx-bin-x64.tar.lzma
-2021/04/02 | 583628 | systems/win32/miktex/tm/packages/next/miktex-yap-bin-2.9.tar.lzma
-2021/04/02 | 618763 | systems/win32/miktex/tm/packages/next/miktex-yap-bin-x64-2.9.tar.lzma
-2021/04/02 | 39564 | systems/win32/miktex/tm/packages/next/miktex-zlib-bin-2.9.tar.lzma
-2021/04/02 | 43392 | systems/win32/miktex/tm/packages/next/miktex-zlib-bin-x64-2.9.tar.lzma
-2021/04/02 | 208451 | systems/win32/miktex/tm/packages/next/miktex-zzdb1-2.9.tar.lzma
-2021/04/02 | 1264343 | systems/win32/miktex/tm/packages/next/miktex-zzdb2-2.9.tar.lzma
-2021/04/02 | 1180920 | systems/win32/miktex/tm/packages/next/miktex-zzdb3-2.9.tar.lzma
-2021/04/02 | 13470 | systems/win32/miktex/tm/packages/next/miktex-zzip-bin-2.9.tar.lzma
-2021/04/02 | 14354 | systems/win32/miktex/tm/packages/next/miktex-zzip-bin-x64-2.9.tar.lzma
+2021/04/03 | 574491 | systems/win32/miktex/tm/packages/next/files.csv.lzma
+2021/04/03 | 50848 | systems/win32/miktex/tm/packages/next/miktex-arctrl-bin-2.9.tar.lzma
+2021/04/03 | 56458 | systems/win32/miktex/tm/packages/next/miktex-arctrl-bin-x64-2.9.tar.lzma
+2021/04/03 | 968696 | systems/win32/miktex/tm/packages/next/miktex-asymptote-bin-2.9.tar.lzma
+2021/04/03 | 1078878 | systems/win32/miktex/tm/packages/next/miktex-asymptote-bin-x64-2.9.tar.lzma
+2021/04/03 | 29052 | systems/win32/miktex/tm/packages/next/miktex-autosp-bin-2.9.tar.lzma
+2021/04/03 | 31344 | systems/win32/miktex/tm/packages/next/miktex-autosp-bin-x64-2.9.tar.lzma
+2021/04/03 | 29869 | systems/win32/miktex/tm/packages/next/miktex-axohelp-bin-2.9.tar.lzma
+2021/04/03 | 34634 | systems/win32/miktex/tm/packages/next/miktex-axohelp-bin-x64-2.9.tar.lzma
+2021/04/03 | 49971 | systems/win32/miktex/tm/packages/next/miktex-bibarts-bin-2.9.tar.lzma
+2021/04/03 | 57598 | systems/win32/miktex/tm/packages/next/miktex-bibarts-bin-x64-2.9.tar.lzma
+2021/04/03 | 84774 | systems/win32/miktex/tm/packages/next/miktex-bibtex8bit-bin-2.9.tar.lzma
+2021/04/03 | 94737 | systems/win32/miktex/tm/packages/next/miktex-bibtex8bit-bin-x64-2.9.tar.lzma
+2021/04/03 | 67680 | systems/win32/miktex/tm/packages/next/miktex-bibtex-bin-2.9.tar.lzma
+2021/04/03 | 75418 | systems/win32/miktex/tm/packages/next/miktex-bibtex-bin-x64-2.9.tar.lzma
+2021/04/03 | 27182 | systems/win32/miktex/tm/packages/next/miktex-bzip2-bin-2.9.tar.lzma
+2021/04/03 | 30886 | systems/win32/miktex/tm/packages/next/miktex-bzip2-bin-x64-2.9.tar.lzma
+2021/04/03 | 330234 | systems/win32/miktex/tm/packages/next/miktex-cairo-bin-2.9.tar.lzma
+2021/04/03 | 392597 | systems/win32/miktex/tm/packages/next/miktex-cairo-bin-x64-2.9.tar.lzma
+2021/04/03 | 32745 | systems/win32/miktex/tm/packages/next/miktex-chktex-bin-2.9.tar.lzma
+2021/04/03 | 36680 | systems/win32/miktex/tm/packages/next/miktex-chktex-bin-x64-2.9.tar.lzma
+2021/04/03 | 51432 | systems/win32/miktex/tm/packages/next/miktex-cjkutils-bin-2.9.tar.lzma
+2021/04/03 | 56718 | systems/win32/miktex/tm/packages/next/miktex-cjkutils-bin-x64-2.9.tar.lzma
+2021/04/03 | 4708 | systems/win32/miktex/tm/packages/next/miktex-config-2.9.tar.lzma
+2021/04/03 | 239477 | systems/win32/miktex/tm/packages/next/miktex-console-bin-2.9.tar.lzma
+2021/04/03 | 261963 | systems/win32/miktex/tm/packages/next/miktex-console-bin-x64-2.9.tar.lzma
+2021/04/03 | 179379 | systems/win32/miktex/tm/packages/next/miktex-curl-bin-2.9.tar.lzma
+2021/04/03 | 195663 | systems/win32/miktex/tm/packages/next/miktex-curl-bin-x64-2.9.tar.lzma
+2021/04/03 | 52475 | systems/win32/miktex/tm/packages/next/miktex-cweb-bin-2.9.tar.lzma
+2021/04/03 | 59146 | systems/win32/miktex/tm/packages/next/miktex-cweb-bin-x64-2.9.tar.lzma
+2021/04/03 | 21131 | systems/win32/miktex/tm/packages/next/miktex-devnag-bin-2.9.tar.lzma
+2021/04/03 | 23291 | systems/win32/miktex/tm/packages/next/miktex-devnag-bin-x64-2.9.tar.lzma
+2021/04/03 | 461400 | systems/win32/miktex/tm/packages/next/miktex-doc.tar.lzma
+2021/04/03 | 45650 | systems/win32/miktex/tm/packages/next/miktex-dvicopy-bin-2.9.tar.lzma
+2021/04/03 | 51160 | systems/win32/miktex/tm/packages/next/miktex-dvicopy-bin-x64-2.9.tar.lzma
+2021/04/03 | 282106 | systems/win32/miktex/tm/packages/next/miktex-dvipdfmx-bin-2.9.tar.lzma
+2021/04/03 | 321894 | systems/win32/miktex/tm/packages/next/miktex-dvipdfmx-bin-x64-2.9.tar.lzma
+2021/04/03 | 41104 | systems/win32/miktex/tm/packages/next/miktex-dvipng-bin-2.9.tar.lzma
+2021/04/03 | 45278 | systems/win32/miktex/tm/packages/next/miktex-dvipng-bin-x64-2.9.tar.lzma
+2021/04/03 | 116931 | systems/win32/miktex/tm/packages/next/miktex-dvips-bin-2.9.tar.lzma
+2021/04/03 | 131490 | systems/win32/miktex/tm/packages/next/miktex-dvips-bin-x64-2.9.tar.lzma
+2021/04/03 | 1281103 | systems/win32/miktex/tm/packages/next/miktex-dvisvgm-bin-2.9.tar.lzma
+2021/04/03 | 1425980 | systems/win32/miktex/tm/packages/next/miktex-dvisvgm-bin-x64-2.9.tar.lzma
+2021/04/03 | 87638 | systems/win32/miktex/tm/packages/next/miktex-epstopdf-bin-2.9.tar.lzma
+2021/04/03 | 99605 | systems/win32/miktex/tm/packages/next/miktex-epstopdf-bin-x64-2.9.tar.lzma
+2021/04/03 | 43057 | systems/win32/miktex/tm/packages/next/miktex-expat-bin-2.9.tar.lzma
+2021/04/03 | 47878 | systems/win32/miktex/tm/packages/next/miktex-expat-bin-x64-2.9.tar.lzma
+2021/04/03 | 25154 | systems/win32/miktex/tm/packages/next/miktex-findtexmf-bin-2.9.tar.lzma
+2021/04/03 | 28009 | systems/win32/miktex/tm/packages/next/miktex-findtexmf-bin-x64-2.9.tar.lzma
+2021/04/03 | 55822 | systems/win32/miktex/tm/packages/next/miktex-fmt-bin-2.9.tar.lzma
+2021/04/03 | 62802 | systems/win32/miktex/tm/packages/next/miktex-fmt-bin-x64-2.9.tar.lzma
+2021/04/03 | 135005 | systems/win32/miktex/tm/packages/next/miktex-fontconfig-bin-2.9.tar.lzma
+2021/04/03 | 152762 | systems/win32/miktex/tm/packages/next/miktex-fontconfig-bin-x64-2.9.tar.lzma
+2021/04/03 | 73181 | systems/win32/miktex/tm/packages/next/miktex-fonts-bin-2.9.tar.lzma
+2021/04/03 | 77859 | systems/win32/miktex/tm/packages/next/miktex-fonts-bin-x64-2.9.tar.lzma
+2021/04/03 | 71568 | systems/win32/miktex/tm/packages/next/miktex-freeglut-bin-2.9.tar.lzma
+2021/04/03 | 80661 | systems/win32/miktex/tm/packages/next/miktex-freeglut-bin-x64-2.9.tar.lzma
+2021/04/03 | 258665 | systems/win32/miktex/tm/packages/next/miktex-freetype2-bin-2.9.tar.lzma
+2021/04/03 | 295554 | systems/win32/miktex/tm/packages/next/miktex-freetype2-bin-x64-2.9.tar.lzma
+2021/04/03 | 22039 | systems/win32/miktex/tm/packages/next/miktex-fribidixetex-bin-2.9.tar.lzma
+2021/04/03 | 25001 | systems/win32/miktex/tm/packages/next/miktex-fribidixetex-bin-x64-2.9.tar.lzma
+2021/04/03 | 97490 | systems/win32/miktex/tm/packages/next/miktex-gd-bin-2.9.tar.lzma
+2021/04/03 | 112253 | systems/win32/miktex/tm/packages/next/miktex-gd-bin-x64-2.9.tar.lzma
+2021/04/03 | 63837 | systems/win32/miktex/tm/packages/next/miktex-graphite2-bin-2.9.tar.lzma
+2021/04/03 | 72861 | systems/win32/miktex/tm/packages/next/miktex-graphite2-bin-x64-2.9.tar.lzma
+2021/04/03 | 96145 | systems/win32/miktex/tm/packages/next/miktex-gregorio-bin-2.9.tar.lzma
+2021/04/03 | 115470 | systems/win32/miktex/tm/packages/next/miktex-gregorio-bin-x64-2.9.tar.lzma
+2021/04/03 | 38070 | systems/win32/miktex/tm/packages/next/miktex-gsf2pk-bin-2.9.tar.lzma
+2021/04/03 | 42627 | systems/win32/miktex/tm/packages/next/miktex-gsf2pk-bin-x64-2.9.tar.lzma
+2021/04/03 | 484054 | systems/win32/miktex/tm/packages/next/miktex-harfbuzz-bin-2.9.tar.lzma
+2021/04/03 | 567625 | systems/win32/miktex/tm/packages/next/miktex-harfbuzz-bin-x64-2.9.tar.lzma
+2021/04/03 | 147139 | systems/win32/miktex/tm/packages/next/miktex-hunspell-bin-2.9.tar.lzma
+2021/04/03 | 159968 | systems/win32/miktex/tm/packages/next/miktex-hunspell-bin-x64-2.9.tar.lzma
+2021/04/03 | 94802 | systems/win32/miktex/tm/packages/next/miktex-jpeg-bin-2.9.tar.lzma
+2021/04/03 | 109276 | systems/win32/miktex/tm/packages/next/miktex-jpeg-bin-x64-2.9.tar.lzma
+2021/04/03 | 16328 | systems/win32/miktex/tm/packages/next/miktex-kpathsea-bin-2.9.tar.lzma
+2021/04/03 | 17958 | systems/win32/miktex/tm/packages/next/miktex-kpathsea-bin-x64-2.9.tar.lzma
+2021/04/03 | 28121 | systems/win32/miktex/tm/packages/next/miktex-lacheck-bin-2.9.tar.lzma
+2021/04/03 | 30038 | systems/win32/miktex/tm/packages/next/miktex-lacheck-bin-x64-2.9.tar.lzma
+2021/04/03 | 625282 | systems/win32/miktex/tm/packages/next/miktex-lcdf-typetools-bin-2.9.tar.lzma
+2021/04/03 | 680048 | systems/win32/miktex/tm/packages/next/miktex-lcdf-typetools-bin-x64-2.9.tar.lzma
+2021/04/03 | 532037 | systems/win32/miktex/tm/packages/next/miktex-libressl-bin-2.9.tar.lzma
+2021/04/03 | 594869 | systems/win32/miktex/tm/packages/next/miktex-libressl-bin-x64-2.9.tar.lzma
+2021/04/03 | 475935 | systems/win32/miktex/tm/packages/next/miktex-log4cxx-bin-2.9.tar.lzma
+2021/04/03 | 511633 | systems/win32/miktex/tm/packages/next/miktex-log4cxx-bin-x64-2.9.tar.lzma
+2021/04/03 | 94268 | systems/win32/miktex/tm/packages/next/miktex-lua53-bin-2.9.tar.lzma
+2021/04/03 | 103324 | systems/win32/miktex/tm/packages/next/miktex-lua53-bin-x64-2.9.tar.lzma
+2021/04/03 | 1725549 | systems/win32/miktex/tm/packages/next/miktex-luatex-bin-2.9.tar.lzma
+2021/04/03 | 2009491 | systems/win32/miktex/tm/packages/next/miktex-luatex-bin-x64-2.9.tar.lzma
+2021/04/03 | 67652 | systems/win32/miktex/tm/packages/next/miktex-lzma-bin-2.9.tar.lzma
+2021/04/03 | 74164 | systems/win32/miktex/tm/packages/next/miktex-lzma-bin-x64-2.9.tar.lzma
+2021/04/03 | 27363 | systems/win32/miktex/tm/packages/next/miktex-makeindex-bin-2.9.tar.lzma
+2021/04/03 | 31594 | systems/win32/miktex/tm/packages/next/miktex-makeindex-bin-x64-2.9.tar.lzma
+2021/04/03 | 7746 | systems/win32/miktex/tm/packages/next/miktex-md5-bin-2.9.tar.lzma
+2021/04/03 | 8774 | systems/win32/miktex/tm/packages/next/miktex-md5-bin-x64-2.9.tar.lzma
+2021/04/03 | 195566 | systems/win32/miktex/tm/packages/next/miktex-metafont-bin-2.9.tar.lzma
+2021/04/03 | 214105 | systems/win32/miktex/tm/packages/next/miktex-metafont-bin-x64-2.9.tar.lzma
+2021/04/03 | 250211 | systems/win32/miktex/tm/packages/next/miktex-metapost-bin-2.9.tar.lzma
+2021/04/03 | 283978 | systems/win32/miktex/tm/packages/next/miktex-metapost-bin-x64-2.9.tar.lzma
+2021/04/03 | 97135 | systems/win32/miktex/tm/packages/next/miktex-mfware-bin-2.9.tar.lzma
+2021/04/03 | 101764 | systems/win32/miktex/tm/packages/next/miktex-mfware-bin-x64-2.9.tar.lzma
+2021/04/03 | 60551 | systems/win32/miktex/tm/packages/next/miktex-mkfntmap-bin-2.9.tar.lzma
+2021/04/03 | 67929 | systems/win32/miktex/tm/packages/next/miktex-mkfntmap-bin-x64-2.9.tar.lzma
+2021/04/03 | 124972 | systems/win32/miktex/tm/packages/next/miktex-mktex-bin-2.9.tar.lzma
+2021/04/03 | 136427 | systems/win32/miktex/tm/packages/next/miktex-mktex-bin-x64-2.9.tar.lzma
+2021/04/03 | 147151 | systems/win32/miktex/tm/packages/next/miktex-mo-bin-2.9.tar.lzma
+2021/04/03 | 163655 | systems/win32/miktex/tm/packages/next/miktex-mo-bin-x64-2.9.tar.lzma
+2021/04/03 | 199702 | systems/win32/miktex/tm/packages/next/miktex-mpfr-bin-2.9.tar.lzma
+2021/04/03 | 180048 | systems/win32/miktex/tm/packages/next/miktex-mpfr-bin-x64-2.9.tar.lzma
+2021/04/03 | 67451 | systems/win32/miktex/tm/packages/next/miktex-mpmcli-bin-2.9.tar.lzma
+2021/04/03 | 77487 | systems/win32/miktex/tm/packages/next/miktex-mpmcli-bin-x64-2.9.tar.lzma
+2021/04/03 | 31192 | systems/win32/miktex/tm/packages/next/miktex-mspack-bin-2.9.tar.lzma
+2021/04/03 | 35063 | systems/win32/miktex/tm/packages/next/miktex-mspack-bin-x64-2.9.tar.lzma
+2021/04/03 | 38064 | systems/win32/miktex/tm/packages/next/miktex-mthelp-bin-2.9.tar.lzma
+2021/04/03 | 42574 | systems/win32/miktex/tm/packages/next/miktex-mthelp-bin-x64-2.9.tar.lzma
+2021/04/03 | 42923 | systems/win32/miktex/tm/packages/next/miktex-mtprint-bin-2.9.tar.lzma
+2021/04/03 | 47008 | systems/win32/miktex/tm/packages/next/miktex-mtprint-bin-x64-2.9.tar.lzma
+2021/04/03 | 45938 | systems/win32/miktex/tm/packages/next/miktex-m-tx-bin-2.9.tar.lzma
+2021/04/03 | 52454 | systems/win32/miktex/tm/packages/next/miktex-m-tx-bin-x64-2.9.tar.lzma
+2021/04/03 | 193717 | systems/win32/miktex/tm/packages/next/miktex-omegaware-bin-2.9.tar.lzma
+2021/04/03 | 211053 | systems/win32/miktex/tm/packages/next/miktex-omegaware-bin-x64-2.9.tar.lzma
+2021/04/03 | 35462 | systems/win32/miktex/tm/packages/next/miktex-patgen-bin.tar.lzma
+2021/04/03 | 39690 | systems/win32/miktex/tm/packages/next/miktex-patgen-bin-x64.tar.lzma
+2021/04/03 | 748364 | systems/win32/miktex/tm/packages/next/miktex-pdftex-bin-2.9.tar.lzma
+2021/04/03 | 816072 | systems/win32/miktex/tm/packages/next/miktex-pdftex-bin-x64-2.9.tar.lzma
+2021/04/03 | 198131 | systems/win32/miktex/tm/packages/next/miktex-pixman-bin-2.9.tar.lzma
+2021/04/03 | 202557 | systems/win32/miktex/tm/packages/next/miktex-pixman-bin-x64-2.9.tar.lzma
+2021/04/03 | 208182 | systems/win32/miktex/tm/packages/next/miktex-pmx-bin-2.9.tar.lzma
+2021/04/03 | 243479 | systems/win32/miktex/tm/packages/next/miktex-pmx-bin-x64-2.9.tar.lzma
+2021/04/03 | 78745 | systems/win32/miktex/tm/packages/next/miktex-png-bin-2.9.tar.lzma
+2021/04/03 | 87703 | systems/win32/miktex/tm/packages/next/miktex-png-bin-x64-2.9.tar.lzma
+2021/04/03 | 1171730 | systems/win32/miktex/tm/packages/next/miktex-poppler-bin-2.9.tar.lzma
+2021/04/03 | 1307719 | systems/win32/miktex/tm/packages/next/miktex-poppler-bin-x64-2.9.tar.lzma
+2021/04/03 | 20122 | systems/win32/miktex/tm/packages/next/miktex-popt-bin-2.9.tar.lzma
+2021/04/03 | 23883 | systems/win32/miktex/tm/packages/next/miktex-popt-bin-x64-2.9.tar.lzma
+2021/04/03 | 31544 | systems/win32/miktex/tm/packages/next/miktex-posix-bin-2.9.tar.lzma
+2021/04/03 | 37241 | systems/win32/miktex/tm/packages/next/miktex-posix-bin-x64-2.9.tar.lzma
+2021/04/03 | 64018 | systems/win32/miktex/tm/packages/next/miktex-ps2pk-bin-2.9.tar.lzma
+2021/04/03 | 72149 | systems/win32/miktex/tm/packages/next/miktex-ps2pk-bin-x64-2.9.tar.lzma
+2021/04/03 | 43678 | systems/win32/miktex/tm/packages/next/miktex-psutils-bin-2.9.tar.lzma
+2021/04/03 | 51980 | systems/win32/miktex/tm/packages/next/miktex-psutils-bin-x64-2.9.tar.lzma
+2021/04/03 | 1295412 | systems/win32/miktex/tm/packages/next/miktex-runtime-bin-2.9.tar.lzma
+2021/04/03 | 1424811 | systems/win32/miktex/tm/packages/next/miktex-runtime-bin-x64-2.9.tar.lzma
+2021/04/03 | 42389 | systems/win32/miktex/tm/packages/next/miktex-synctex-bin-2.9.tar.lzma
+2021/04/03 | 51797 | systems/win32/miktex/tm/packages/next/miktex-synctex-bin-x64-2.9.tar.lzma
+2021/04/03 | 56223 | systems/win32/miktex/tm/packages/next/miktex-tdsutil-bin.tar.lzma
+2021/04/03 | 59831 | systems/win32/miktex/tm/packages/next/miktex-tdsutil-bin-x64.tar.lzma
+2021/04/03 | 25341 | systems/win32/miktex/tm/packages/next/miktex-teckit-bin-2.9.tar.lzma
+2021/04/03 | 27274 | systems/win32/miktex/tm/packages/next/miktex-teckit-bin-x64-2.9.tar.lzma
+2021/04/03 | 16111 | systems/win32/miktex/tm/packages/next/miktex-tex2xindy-bin-2.9.tar.lzma
+2021/04/03 | 18097 | systems/win32/miktex/tm/packages/next/miktex-tex2xindy-bin-x64-2.9.tar.lzma
+2021/04/03 | 63675 | systems/win32/miktex/tm/packages/next/miktex-tex4ht-bin-2.9.tar.lzma
+2021/04/03 | 70111 | systems/win32/miktex/tm/packages/next/miktex-tex4ht-bin-x64-2.9.tar.lzma
+2021/04/03 | 153890 | systems/win32/miktex/tm/packages/next/miktex-tex-bin-2.9.tar.lzma
+2021/04/03 | 167906 | systems/win32/miktex/tm/packages/next/miktex-tex-bin-x64-2.9.tar.lzma
+2021/04/03 | 56909 | systems/win32/miktex/tm/packages/next/miktex-texify-bin-2.9.tar.lzma
+2021/04/03 | 65322 | systems/win32/miktex/tm/packages/next/miktex-texify-bin-x64-2.9.tar.lzma
+2021/04/03 | 98516 | systems/win32/miktex/tm/packages/next/miktex-texware-bin-2.9.tar.lzma
+2021/04/03 | 104627 | systems/win32/miktex/tm/packages/next/miktex-texware-bin-x64-2.9.tar.lzma
+2021/04/03 | 2499401 | systems/win32/miktex/tm/packages/next/miktex-texworks-bin-2.9.tar.lzma
+2021/04/03 | 2616931 | systems/win32/miktex/tm/packages/next/miktex-texworks-bin-x64-2.9.tar.lzma
+2021/04/03 | 55217 | systems/win32/miktex/tm/packages/next/miktex-ttf2pk2-bin-2.9.tar.lzma
+2021/04/03 | 62227 | systems/win32/miktex/tm/packages/next/miktex-ttf2pk2-bin-x64-2.9.tar.lzma
+2021/04/03 | 33440 | systems/win32/miktex/tm/packages/next/miktex-upmendex-bin.tar.lzma
+2021/04/03 | 37292 | systems/win32/miktex/tm/packages/next/miktex-upmendex-bin-x64.tar.lzma
+2021/04/03 | 27197 | systems/win32/miktex/tm/packages/next/miktex-uriparser-bin-2.9.tar.lzma
+2021/04/03 | 33152 | systems/win32/miktex/tm/packages/next/miktex-uriparser-bin-x64-2.9.tar.lzma
+2021/04/03 | 65733 | systems/win32/miktex/tm/packages/next/miktex-web-bin-2.9.tar.lzma
+2021/04/03 | 70326 | systems/win32/miktex/tm/packages/next/miktex-web-bin-x64-2.9.tar.lzma
+2021/04/03 | 311191 | systems/win32/miktex/tm/packages/next/miktex-xetex-bin-2.9.tar.lzma
+2021/04/03 | 345366 | systems/win32/miktex/tm/packages/next/miktex-xetex-bin-x64-2.9.tar.lzma
+2021/04/03 | 55564 | systems/win32/miktex/tm/packages/next/miktex-xml2pmx-bin.tar.lzma
+2021/04/03 | 57066 | systems/win32/miktex/tm/packages/next/miktex-xml2pmx-bin-x64.tar.lzma
+2021/04/03 | 583626 | systems/win32/miktex/tm/packages/next/miktex-yap-bin-2.9.tar.lzma
+2021/04/03 | 618763 | systems/win32/miktex/tm/packages/next/miktex-yap-bin-x64-2.9.tar.lzma
+2021/04/03 | 39564 | systems/win32/miktex/tm/packages/next/miktex-zlib-bin-2.9.tar.lzma
+2021/04/03 | 43392 | systems/win32/miktex/tm/packages/next/miktex-zlib-bin-x64-2.9.tar.lzma
+2021/04/03 | 208404 | systems/win32/miktex/tm/packages/next/miktex-zzdb1-2.9.tar.lzma
+2021/04/03 | 1264301 | systems/win32/miktex/tm/packages/next/miktex-zzdb2-2.9.tar.lzma
+2021/04/03 | 1181170 | systems/win32/miktex/tm/packages/next/miktex-zzdb3-2.9.tar.lzma
+2021/04/03 | 13471 | systems/win32/miktex/tm/packages/next/miktex-zzip-bin-2.9.tar.lzma
+2021/04/03 | 14354 | systems/win32/miktex/tm/packages/next/miktex-zzip-bin-x64-2.9.tar.lzma
2019/03/12 | 1412 | systems/win32/miktex/tm/packages/nextpage.tar.lzma
-2021/04/02 | 1153 | systems/win32/miktex/tm/packages/next/pr.ini
+2021/04/03 | 1153 | systems/win32/miktex/tm/packages/next/pr.ini
2018/07/06 | 145915 | systems/win32/miktex/tm/packages/nexus-otf.tar.lzma
2017/03/30 | 191149 | systems/win32/miktex/tm/packages/nfssext-cfr.tar.lzma
2012/12/20 | 612251 | systems/win32/miktex/tm/packages/nicefilelist.tar.lzma
@@ -283708,7 +283719,7 @@
2020/10/20 | 342254 | systems/win32/miktex/tm/packages/preview.tar.lzma
2019/06/20 | 375963 | systems/win32/miktex/tm/packages/prftree.tar.lzma
2021/03/03 | 372362 | systems/win32/miktex/tm/packages/principia.tar.lzma
-2021/04/02 | 846 | systems/win32/miktex/tm/packages/pr.ini
+2021/04/03 | 846 | systems/win32/miktex/tm/packages/pr.ini
2010/09/27 | 248469 | systems/win32/miktex/tm/packages/printlen.tar.lzma
2008/06/17 | 77313 | systems/win32/miktex/tm/packages/proba.tar.lzma
2017/07/12 | 988486 | systems/win32/miktex/tm/packages/probsoln.tar.lzma
@@ -285111,7 +285122,7 @@
2004/06/04 | 404 | tds/tds.sed
2004/06/23 | 65418 | tds/tds.tex
2019/05/29 | 304264 | tds.zip
-2021/04/03 | 186 | timestamp
+2021/04/04 | 186 | timestamp
2002/08/26 | 61898 | usergrps/dante/antrag.pdf
2002/08/26 | 118217 | usergrps/dante/antrag.ps
2017/06/30 | 917 | usergrps/dante/dtk/doc/beispiel.bib
diff --git a/FILES.byname.gz b/FILES.byname.gz
index 573476aa0d..839bca6f70 100644
--- a/FILES.byname.gz
+++ b/FILES.byname.gz
Binary files differ
diff --git a/FILES.last07days b/FILES.last07days
index 983c8e186d..8b71231263 100644
--- a/FILES.last07days
+++ b/FILES.last07days
@@ -1,245 +1,426 @@
-2021/04/02 | 99605 | systems/win32/miktex/tm/packages/next/miktex-epstopdf-bin-x64-2.9.tar.lzma
-2021/04/02 | 98519 | systems/win32/miktex/tm/packages/next/miktex-texware-bin-2.9.tar.lzma
-2021/04/02 | 97491 | systems/win32/miktex/tm/packages/next/miktex-gd-bin-2.9.tar.lzma
-2021/04/02 | 97134 | systems/win32/miktex/tm/packages/next/miktex-mfware-bin-2.9.tar.lzma
-2021/04/02 | 968700 | systems/win32/miktex/tm/packages/next/miktex-asymptote-bin-2.9.tar.lzma
-2021/04/02 | 96146 | systems/win32/miktex/tm/packages/next/miktex-gregorio-bin-2.9.tar.lzma
-2021/04/02 | 94802 | systems/win32/miktex/tm/packages/next/miktex-jpeg-bin-2.9.tar.lzma
-2021/04/02 | 94737 | systems/win32/miktex/tm/packages/next/miktex-bibtex8bit-bin-x64-2.9.tar.lzma
-2021/04/02 | 94269 | systems/win32/miktex/tm/packages/next/miktex-lua53-bin-2.9.tar.lzma
+2021/04/03 | 9967 | macros/latex/contrib/thuthesis/ref/refs.bib
+2021/04/03 | 99605 | systems/win32/miktex/tm/packages/next/miktex-epstopdf-bin-x64-2.9.tar.lzma
+2021/04/03 | 98 | indexing/upmendex/source/version.h
+2021/04/03 | 986 | indexing/upmendex/doc/samples/alphabet/Makefile
+2021/04/03 | 98516 | systems/win32/miktex/tm/packages/next/miktex-texware-bin-2.9.tar.lzma
+2021/04/03 | 97733 | macros/latex/contrib/conferences/sugconf.zip
+2021/04/03 | 97490 | systems/win32/miktex/tm/packages/next/miktex-gd-bin-2.9.tar.lzma
+2021/04/03 | 97135 | systems/win32/miktex/tm/packages/next/miktex-mfware-bin-2.9.tar.lzma
+2021/04/03 | 96 | indexing/upmendex/source/tests/pprecA-2.ind
+2021/04/03 | 96 | indexing/upmendex/source/tests/pprecA-1.ind
+2021/04/03 | 96 | indexing/upmendex/source/tests/pprecA-0.ind
+2021/04/03 | 968696 | systems/win32/miktex/tm/packages/next/miktex-asymptote-bin-2.9.tar.lzma
+2021/04/03 | 96145 | systems/win32/miktex/tm/packages/next/miktex-gregorio-bin-2.9.tar.lzma
+2021/04/03 | 94802 | systems/win32/miktex/tm/packages/next/miktex-jpeg-bin-2.9.tar.lzma
+2021/04/03 | 94737 | systems/win32/miktex/tm/packages/next/miktex-bibtex8bit-bin-x64-2.9.tar.lzma
+2021/04/03 | 9434 | indexing/upmendex/source/convert.c
+2021/04/03 | 94268 | systems/win32/miktex/tm/packages/next/miktex-lua53-bin-2.9.tar.lzma
+2021/04/03 | 89342 | macros/latex/contrib/easybook/easybook.dtx
+2021/04/03 | 8774 | systems/win32/miktex/tm/packages/next/miktex-md5-bin-x64-2.9.tar.lzma
+2021/04/03 | 87703 | systems/win32/miktex/tm/packages/next/miktex-png-bin-x64-2.9.tar.lzma
+2021/04/03 | 87638 | systems/win32/miktex/tm/packages/next/miktex-epstopdf-bin-2.9.tar.lzma
+2021/04/03 | 875280 | systems/texlive/tlnet/archive/beebe.r58697.tar.xz
+2021/04/03 | 872 | indexing/upmendex/doc/samples/option/japanese.idx
+2021/04/03 | 84774 | systems/win32/miktex/tm/packages/next/miktex-bibtex8bit-bin-2.9.tar.lzma
+2021/04/03 | 846 | systems/win32/miktex/tm/packages/pr.ini
+2021/04/03 | 816072 | systems/win32/miktex/tm/packages/next/miktex-pdftex-bin-x64-2.9.tar.lzma
+2021/04/03 | 80661 | systems/win32/miktex/tm/packages/next/miktex-freeglut-bin-x64-2.9.tar.lzma
+2021/04/03 | 802 | macros/latex/contrib/thuthesis/thuthesis-numeric.bbx
+2021/04/03 | 79118 | language/japanese/gckanbun.zip
+2021/04/03 | 78745 | systems/win32/miktex/tm/packages/next/miktex-png-bin-2.9.tar.lzma
+2021/04/03 | 778 | macros/latex/contrib/thuthesis/thuthesis-bachelor.bbx
+2021/04/03 | 77859 | systems/win32/miktex/tm/packages/next/miktex-fonts-bin-x64-2.9.tar.lzma
+2021/04/03 | 77487 | systems/win32/miktex/tm/packages/next/miktex-mpmcli-bin-x64-2.9.tar.lzma
+2021/04/03 | 7746 | systems/win32/miktex/tm/packages/next/miktex-md5-bin-2.9.tar.lzma
+2021/04/03 | 766 | indexing/upmendex/source/tests/uni.ind
+2021/04/03 | 7596 | fonts/xcharter/tex/XCharter.sty
+2021/04/03 | 7546 | indexing/upmendex/source/main.c
+2021/04/03 | 75418 | systems/win32/miktex/tm/packages/next/miktex-bibtex-bin-x64-2.9.tar.lzma
+2021/04/03 | 749 | indexing/upmendex/doc/samples/option/Makefile
+2021/04/03 | 748364 | systems/win32/miktex/tm/packages/next/miktex-pdftex-bin-2.9.tar.lzma
+2021/04/03 | 74164 | systems/win32/miktex/tm/packages/next/miktex-lzma-bin-x64-2.9.tar.lzma
+2021/04/03 | 73181 | systems/win32/miktex/tm/packages/next/miktex-fonts-bin-2.9.tar.lzma
+2021/04/03 | 729 | indexing/upmendex/source/exkana.h
+2021/04/03 | 72861 | systems/win32/miktex/tm/packages/next/miktex-graphite2-bin-x64-2.9.tar.lzma
+2021/04/03 | 72149 | systems/win32/miktex/tm/packages/next/miktex-ps2pk-bin-x64-2.9.tar.lzma
+2021/04/03 | 71568 | systems/win32/miktex/tm/packages/next/miktex-freeglut-bin-2.9.tar.lzma
+2021/04/03 | 706549 | macros/latex/contrib/easybook.zip
+2021/04/03 | 70326 | systems/win32/miktex/tm/packages/next/miktex-web-bin-x64-2.9.tar.lzma
+2021/04/03 | 70111 | systems/win32/miktex/tm/packages/next/miktex-tex4ht-bin-x64-2.9.tar.lzma
+2021/04/03 | 700201 | indexing/upmendex/source/configure
+2021/04/03 | 6913 | macros/latex/contrib/thuthesis/README.md
+2021/04/03 | 68 | indexing/upmendex/source/tests/foo.idx
+2021/04/03 | 68662 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/README.md
+2021/04/03 | 680048 | systems/win32/miktex/tm/packages/next/miktex-lcdf-typetools-bin-x64-2.9.tar.lzma
+2021/04/03 | 67929 | systems/win32/miktex/tm/packages/next/miktex-mkfntmap-bin-x64-2.9.tar.lzma
+2021/04/03 | 67680 | systems/win32/miktex/tm/packages/next/miktex-bibtex-bin-2.9.tar.lzma
+2021/04/03 | 67652 | systems/win32/miktex/tm/packages/next/miktex-lzma-bin-2.9.tar.lzma
+2021/04/03 | 67451 | systems/win32/miktex/tm/packages/next/miktex-mpmcli-bin-2.9.tar.lzma
+2021/04/03 | 6734 | indexing/xindy/contrib/xindy-persian/source/variant3-utf8.pl.in
+2021/04/03 | 6720 | indexing/xindy/contrib/xindy-persian/source/variant2-utf8.pl.in
+2021/04/03 | 6720 | indexing/xindy/contrib/xindy-persian/source/variant1-utf8.pl.in
+2021/04/03 | 65733 | systems/win32/miktex/tm/packages/next/miktex-web-bin-2.9.tar.lzma
+2021/04/03 | 65322 | systems/win32/miktex/tm/packages/next/miktex-texify-bin-x64-2.9.tar.lzma
+2021/04/03 | 64 | indexing/upmendex/source/tests/uni.dict
+2021/04/03 | 64018 | systems/win32/miktex/tm/packages/next/miktex-ps2pk-bin-2.9.tar.lzma
+2021/04/03 | 63837 | systems/win32/miktex/tm/packages/next/miktex-graphite2-bin-2.9.tar.lzma
+2021/04/03 | 63675 | systems/win32/miktex/tm/packages/next/miktex-tex4ht-bin-2.9.tar.lzma
+2021/04/03 | 62802 | systems/win32/miktex/tm/packages/next/miktex-fmt-bin-x64-2.9.tar.lzma
+2021/04/03 | 625282 | systems/win32/miktex/tm/packages/next/miktex-lcdf-typetools-bin-2.9.tar.lzma
+2021/04/03 | 62227 | systems/win32/miktex/tm/packages/next/miktex-ttf2pk2-bin-x64-2.9.tar.lzma
+2021/04/03 | 6190174 | systems/texlive/tlnet/install-tl-unx.tar.gz
+2021/04/03 | 618763 | systems/win32/miktex/tm/packages/next/miktex-yap-bin-x64-2.9.tar.lzma
+2021/04/03 | 614 | indexing/upmendex/doc/samples/russian.idx
+2021/04/03 | 60551 | systems/win32/miktex/tm/packages/next/miktex-mkfntmap-bin-2.9.tar.lzma
+2021/04/03 | 59831 | systems/win32/miktex/tm/packages/next/miktex-tdsutil-bin-x64.tar.lzma
+2021/04/03 | 594869 | systems/win32/miktex/tm/packages/next/miktex-libressl-bin-x64-2.9.tar.lzma
+2021/04/03 | 5946 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ms.cbx
+2021/04/03 | 59146 | systems/win32/miktex/tm/packages/next/miktex-cweb-bin-x64-2.9.tar.lzma
+2021/04/03 | 58 | indexing/upmendex/source/tests/foo.ind
+2021/04/03 | 5842 | indexing/upmendex/source/qsort.c
+2021/04/03 | 583626 | systems/win32/miktex/tm/packages/next/miktex-yap-bin-2.9.tar.lzma
+2021/04/03 | 57598 | systems/win32/miktex/tm/packages/next/miktex-bibarts-bin-x64-2.9.tar.lzma
+2021/04/03 | 574491 | systems/win32/miktex/tm/packages/next/files.csv.lzma
+2021/04/03 | 574351 | systems/win32/miktex/tm/packages/files.csv.lzma
+2021/04/03 | 57066 | systems/win32/miktex/tm/packages/next/miktex-xml2pmx-bin-x64.tar.lzma
+2021/04/03 | 56909 | systems/win32/miktex/tm/packages/next/miktex-texify-bin-2.9.tar.lzma
+2021/04/03 | 567625 | systems/win32/miktex/tm/packages/next/miktex-harfbuzz-bin-x64-2.9.tar.lzma
+2021/04/03 | 56718 | systems/win32/miktex/tm/packages/next/miktex-cjkutils-bin-x64-2.9.tar.lzma
+2021/04/03 | 56458 | systems/win32/miktex/tm/packages/next/miktex-arctrl-bin-x64-2.9.tar.lzma
+2021/04/03 | 56223 | systems/win32/miktex/tm/packages/next/miktex-tdsutil-bin.tar.lzma
+2021/04/03 | 55822 | systems/win32/miktex/tm/packages/next/miktex-fmt-bin-2.9.tar.lzma
+2021/04/03 | 55564 | systems/win32/miktex/tm/packages/next/miktex-xml2pmx-bin.tar.lzma
+2021/04/03 | 5551 | macros/latex/contrib/thuthesis/data/chap02.tex
+2021/04/03 | 552 | indexing/upmendex/doc/samples/mdxsty02.ist
+2021/04/03 | 55217 | systems/win32/miktex/tm/packages/next/miktex-ttf2pk2-bin-2.9.tar.lzma
+2021/04/03 | 548 | macros/latex/contrib/thuthesis/data/acknowledgements.tex
+2021/04/03 | 5438 | macros/latex/contrib/thuthesis/data/denotation.tex
+2021/04/03 | 532037 | systems/win32/miktex/tm/packages/next/miktex-libressl-bin-2.9.tar.lzma
+2021/04/03 | 52475 | systems/win32/miktex/tm/packages/next/miktex-cweb-bin-2.9.tar.lzma
+2021/04/03 | 52454 | systems/win32/miktex/tm/packages/next/miktex-m-tx-bin-x64-2.9.tar.lzma
+2021/04/03 | 521 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh22.ist
+2021/04/03 | 51980 | systems/win32/miktex/tm/packages/next/miktex-psutils-bin-x64-2.9.tar.lzma
+2021/04/03 | 51797 | systems/win32/miktex/tm/packages/next/miktex-synctex-bin-x64-2.9.tar.lzma
+2021/04/03 | 51432 | systems/win32/miktex/tm/packages/next/miktex-cjkutils-bin-2.9.tar.lzma
+2021/04/03 | 511775 | indexing/upmendex.zip
+2021/04/03 | 511633 | systems/win32/miktex/tm/packages/next/miktex-log4cxx-bin-x64-2.9.tar.lzma
+2021/04/03 | 51160 | systems/win32/miktex/tm/packages/next/miktex-dvicopy-bin-x64-2.9.tar.lzma
+2021/04/03 | 50848 | systems/win32/miktex/tm/packages/next/miktex-arctrl-bin-2.9.tar.lzma
+2021/04/03 | 5058 | indexing/upmendex/source/ChangeLog
+2021/04/03 | 49971 | systems/win32/miktex/tm/packages/next/miktex-bibarts-bin-2.9.tar.lzma
+2021/04/03 | 490 | macros/latex/contrib/thuthesis/latexmkrc
+2021/04/03 | 4908 | indexing/upmendex/source/c-auto.in
+2021/04/03 | 48 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5
+2021/04/03 | 4852 | macros/latex/contrib/thuthesis/thusetup.tex
+2021/04/03 | 484054 | systems/win32/miktex/tm/packages/next/miktex-harfbuzz-bin-2.9.tar.lzma
+2021/04/03 | 479 | macros/latex/contrib/thuthesis/thuthesis-author-year.bbx
+2021/04/03 | 47878 | systems/win32/miktex/tm/packages/next/miktex-expat-bin-x64-2.9.tar.lzma
+2021/04/03 | 475935 | systems/win32/miktex/tm/packages/next/miktex-log4cxx-bin-2.9.tar.lzma
+2021/04/03 | 47154 | macros/latex/contrib/thuthesis/thuthesis-author-year.bst
+2021/04/03 | 4708 | systems/win32/miktex/tm/packages/next/miktex-config-2.9.tar.lzma
+2021/04/03 | 47008 | systems/win32/miktex/tm/packages/next/miktex-mtprint-bin-x64-2.9.tar.lzma
+2021/04/03 | 46876 | indexing/upmendex/source/Makefile.in
+2021/04/03 | 465796 | systems/texlive/tlnet/archive/xcharter.doc.r58704.tar.xz
+2021/04/03 | 4656 | macros/latex/contrib/thuthesis/data/chap01.tex
+2021/04/03 | 463 | indexing/upmendex/doc/samples/german.idx
+2021/04/03 | 462 | macros/latex/contrib/thuthesis/data/resolution.tex
+2021/04/03 | 461400 | systems/win32/miktex/tm/packages/next/miktex-doc.tar.lzma
+2021/04/03 | 45938 | systems/win32/miktex/tm/packages/next/miktex-m-tx-bin-2.9.tar.lzma
+2021/04/03 | 45650 | systems/win32/miktex/tm/packages/next/miktex-dvicopy-bin-2.9.tar.lzma
+2021/04/03 | 455 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
+2021/04/03 | 455 | systems/texlive/tlnet/install-tl.zip.sha512.asc
+2021/04/03 | 455 | systems/texlive/tlnet/install-tl-windows.exe.sha512.asc
+2021/04/03 | 455 | systems/texlive/tlnet/install-tl-unx.tar.gz.sha512.asc
+2021/04/03 | 4549171 | fonts/xcharter.zip
+2021/04/03 | 452 | macros/luatex/latex/unitipa/README.txt
+2021/04/03 | 45278 | systems/win32/miktex/tm/packages/next/miktex-dvipng-bin-x64-2.9.tar.lzma
+2021/04/03 | 4485 | indexing/upmendex/doc/samples/alphabet/alpha_zhr.idx
+2021/04/03 | 44309 | macros/latex/contrib/thuthesis/thuthesis-bachelor.bst
+2021/04/03 | 44305 | macros/latex/contrib/thuthesis/thuthesis-numeric.bst
+2021/04/03 | 44106 | indexing/upmendex/source/aclocal.m4
+2021/04/03 | 43678 | systems/win32/miktex/tm/packages/next/miktex-psutils-bin-2.9.tar.lzma
+2021/04/03 | 435 | indexing/upmendex/source/tests/uni.idx
+2021/04/03 | 435 | indexing/upmendex/doc/samples/french.idx
+2021/04/03 | 43392 | systems/win32/miktex/tm/packages/next/miktex-zlib-bin-x64-2.9.tar.lzma
+2021/04/03 | 43057 | systems/win32/miktex/tm/packages/next/miktex-expat-bin-2.9.tar.lzma
+2021/04/03 | 42923 | systems/win32/miktex/tm/packages/next/miktex-mtprint-bin-2.9.tar.lzma
+2021/04/03 | 428 | macros/latex/contrib/thuthesis/ref/appendix.bib
+2021/04/03 | 42627 | systems/win32/miktex/tm/packages/next/miktex-gsf2pk-bin-x64-2.9.tar.lzma
+2021/04/03 | 42574 | systems/win32/miktex/tm/packages/next/miktex-mthelp-bin-x64-2.9.tar.lzma
+2021/04/03 | 42389 | systems/win32/miktex/tm/packages/next/miktex-synctex-bin-2.9.tar.lzma
+2021/04/03 | 421 | macros/latex/contrib/thuthesis/thuthesis-inline.cbx
+2021/04/03 | 420345 | macros/latex/contrib/easybook/doc/easybook.pdf
+2021/04/03 | 4158 | macros/latex/contrib/thuthesis/data/chap03.tex
+2021/04/03 | 412 | indexing/upmendex/source/exhanzi.h
+2021/04/03 | 41104 | systems/win32/miktex/tm/packages/next/miktex-dvipng-bin-2.9.tar.lzma
+2021/04/03 | 406 | indexing/upmendex/source/kp.h
+2021/04/03 | 405628 | macros/latex/contrib/thuthesis/thuthesis-example.pdf
+2021/04/03 | 4039 | indexing/upmendex/doc/samples/alphabet/alpha_zh.idx
+2021/04/03 | 400 | indexing/upmendex/source/qsort.h
+2021/04/03 | 39690 | systems/win32/miktex/tm/packages/next/miktex-patgen-bin-x64.tar.lzma
+2021/04/03 | 39564 | systems/win32/miktex/tm/packages/next/miktex-zlib-bin-2.9.tar.lzma
+2021/04/03 | 392597 | systems/win32/miktex/tm/packages/next/miktex-cairo-bin-x64-2.9.tar.lzma
+2021/04/03 | 3891 | indexing/upmendex/source/kana.h
+2021/04/03 | 38070 | systems/win32/miktex/tm/packages/next/miktex-gsf2pk-bin-2.9.tar.lzma
+2021/04/03 | 38064 | systems/win32/miktex/tm/packages/next/miktex-mthelp-bin-2.9.tar.lzma
+2021/04/03 | 37292 | systems/win32/miktex/tm/packages/next/miktex-upmendex-bin-x64.tar.lzma
+2021/04/03 | 37241 | systems/win32/miktex/tm/packages/next/miktex-posix-bin-x64-2.9.tar.lzma
+2021/04/03 | 371 | indexing/upmendex/doc/samples/Makefile
+2021/04/03 | 366 | macros/latex/contrib/thuthesis/thuthesis-bachelor.cbx
+2021/04/03 | 36680 | systems/win32/miktex/tm/packages/next/miktex-chktex-bin-x64-2.9.tar.lzma
+2021/04/03 | 365 | macros/latex/contrib/thuthesis/thuthesis-numeric.cbx
+2021/04/03 | 35462 | systems/win32/miktex/tm/packages/next/miktex-patgen-bin.tar.lzma
+2021/04/03 | 35063 | systems/win32/miktex/tm/packages/next/miktex-mspack-bin-x64-2.9.tar.lzma
+2021/04/03 | 34634 | systems/win32/miktex/tm/packages/next/miktex-axohelp-bin-x64-2.9.tar.lzma
+2021/04/03 | 345366 | systems/win32/miktex/tm/packages/next/miktex-xetex-bin-x64-2.9.tar.lzma
+2021/04/03 | 34324 | macros/latex/contrib/thuthesis/CHANGELOG.md
+2021/04/03 | 340 | indexing/upmendex/doc/samples/greek.idx
+2021/04/03 | 337 | indexing/upmendex/source/ac/withenable.ac
+2021/04/03 | 334 | indexing/upmendex/doc/samples/option/mdxsty_rule0.ist
+2021/04/03 | 33440 | systems/win32/miktex/tm/packages/next/miktex-upmendex-bin.tar.lzma
+2021/04/03 | 333 | indexing/upmendex/source/indexsty
+2021/04/03 | 33152 | systems/win32/miktex/tm/packages/next/miktex-uriparser-bin-x64-2.9.tar.lzma
+2021/04/03 | 330234 | systems/win32/miktex/tm/packages/next/miktex-cairo-bin-2.9.tar.lzma
+2021/04/03 | 32745 | systems/win32/miktex/tm/packages/next/miktex-chktex-bin-2.9.tar.lzma
+2021/04/03 | 326 | indexing/upmendex/doc/samples/multi.idx
+2021/04/03 | 321894 | systems/win32/miktex/tm/packages/next/miktex-dvipdfmx-bin-x64-2.9.tar.lzma
+2021/04/03 | 31594 | systems/win32/miktex/tm/packages/next/miktex-makeindex-bin-x64-2.9.tar.lzma
+2021/04/03 | 31544 | systems/win32/miktex/tm/packages/next/miktex-posix-bin-2.9.tar.lzma
+2021/04/03 | 31344 | systems/win32/miktex/tm/packages/next/miktex-autosp-bin-x64-2.9.tar.lzma
+2021/04/03 | 31192 | systems/win32/miktex/tm/packages/next/miktex-mspack-bin-2.9.tar.lzma
+2021/04/03 | 311434 | indexing/upmendex/man/upmendex.man1.pdf
+2021/04/03 | 311191 | systems/win32/miktex/tm/packages/next/miktex-xetex-bin-2.9.tar.lzma
+2021/04/03 | 30886 | systems/win32/miktex/tm/packages/next/miktex-bzip2-bin-x64-2.9.tar.lzma
+2021/04/03 | 307 | macros/latex/contrib/thuthesis/spine.tex
+2021/04/03 | 301 | indexing/upmendex/doc/samples/alphabet/mdxsty_es12.ist
+2021/04/03 | 300 | indexing/upmendex/doc/samples/alphabet/mdxsty_es13.ist
+2021/04/03 | 300 | indexing/upmendex/doc/samples/alphabet/mdxsty_es11.ist
+2021/04/03 | 30038 | systems/win32/miktex/tm/packages/next/miktex-lacheck-bin-x64-2.9.tar.lzma
+2021/04/03 | 29869 | systems/win32/miktex/tm/packages/next/miktex-axohelp-bin-2.9.tar.lzma
+2021/04/03 | 2977 | indexing/upmendex/README.md
+2021/04/03 | 296 | indexing/upmendex/doc/samples/alphabet/mdxsty_es22.ist
+2021/04/03 | 295 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh31.ist
+2021/04/03 | 295 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh21.ist
+2021/04/03 | 295 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh11.ist
+2021/04/03 | 295 | indexing/upmendex/doc/samples/alphabet/mdxsty_es23.ist
+2021/04/03 | 295 | indexing/upmendex/doc/samples/alphabet/mdxsty_es21.ist
+2021/04/03 | 295554 | systems/win32/miktex/tm/packages/next/miktex-freetype2-bin-x64-2.9.tar.lzma
+2021/04/03 | 2954 | macros/latex/contrib/thuthesis/data/chap04.tex
+2021/04/03 | 29052 | systems/win32/miktex/tm/packages/next/miktex-autosp-bin-2.9.tar.lzma
+2021/04/03 | 289 | indexing/upmendex/doc/samples/mdxsty01.ist
+2021/04/03 | 285 | macros/latex/contrib/thuthesis/data/comments.tex
+2021/04/03 | 285 | indexing/upmendex/doc/samples/option/mdxsty_j02.ist
+2021/04/03 | 283978 | systems/win32/miktex/tm/packages/next/miktex-metapost-bin-x64-2.9.tar.lzma
+2021/04/03 | 282106 | systems/win32/miktex/tm/packages/next/miktex-dvipdfmx-bin-2.9.tar.lzma
+2021/04/03 | 28121 | systems/win32/miktex/tm/packages/next/miktex-lacheck-bin-2.9.tar.lzma
+2021/04/03 | 28009 | systems/win32/miktex/tm/packages/next/miktex-findtexmf-bin-x64-2.9.tar.lzma
+2021/04/03 | 279 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh2.ist
+2021/04/03 | 279 | indexing/upmendex/doc/samples/alphabet/mdxsty_es2.ist
+2021/04/03 | 27948 | indexing/upmendex/source/fwrite.c
+2021/04/03 | 278 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh1.ist
+2021/04/03 | 278 | indexing/upmendex/doc/samples/alphabet/mdxsty_es1.ist
+2021/04/03 | 27363 | systems/win32/miktex/tm/packages/next/miktex-makeindex-bin-2.9.tar.lzma
+2021/04/03 | 272 | indexing/upmendex/source/tests/uni.ist
+2021/04/03 | 27274 | systems/win32/miktex/tm/packages/next/miktex-teckit-bin-x64-2.9.tar.lzma
+2021/04/03 | 271 | indexing/upmendex/doc/samples/option/mdxsty_j01.ist
+2021/04/03 | 271 | indexing/upmendex/doc/samples/option/mdxsty_j00.ist
+2021/04/03 | 27197 | systems/win32/miktex/tm/packages/next/miktex-uriparser-bin-2.9.tar.lzma
+2021/04/03 | 27182 | systems/win32/miktex/tm/packages/next/miktex-bzip2-bin-2.9.tar.lzma
+2021/04/03 | 262400 | macros/latex/contrib/easybook/doc/easybook-demo.pdf
+2021/04/03 | 261963 | systems/win32/miktex/tm/packages/next/miktex-console-bin-x64-2.9.tar.lzma
+2021/04/03 | 2616931 | systems/win32/miktex/tm/packages/next/miktex-texworks-bin-x64-2.9.tar.lzma
+2021/04/03 | 260 | indexing/upmendex/doc/samples/mdxsty00.ist
+2021/04/03 | 2587 | macros/latex/contrib/easybook/doc/easybook-demo.tex
+2021/04/03 | 258665 | systems/win32/miktex/tm/packages/next/miktex-freetype2-bin-2.9.tar.lzma
+2021/04/03 | 2539 | macros/latex/contrib/easybook/doc/chapter3.tex
+2021/04/03 | 25341 | systems/win32/miktex/tm/packages/next/miktex-teckit-bin-2.9.tar.lzma
+2021/04/03 | 25154 | systems/win32/miktex/tm/packages/next/miktex-findtexmf-bin-2.9.tar.lzma
+2021/04/03 | 250211 | systems/win32/miktex/tm/packages/next/miktex-metapost-bin-2.9.tar.lzma
+2021/04/03 | 25001 | systems/win32/miktex/tm/packages/next/miktex-fribidixetex-bin-x64-2.9.tar.lzma
+2021/04/03 | 2499401 | systems/win32/miktex/tm/packages/next/miktex-texworks-bin-2.9.tar.lzma
+2021/04/03 | 24961924 | systems/texlive/tlnet/install-tl.zip
+2021/04/03 | 243479 | systems/win32/miktex/tm/packages/next/miktex-pmx-bin-x64-2.9.tar.lzma
+2021/04/03 | 239477 | systems/win32/miktex/tm/packages/next/miktex-console-bin-2.9.tar.lzma
+2021/04/03 | 23883 | systems/win32/miktex/tm/packages/next/miktex-popt-bin-x64-2.9.tar.lzma
+2021/04/03 | 23815 | macros/latex/contrib/thuthesis/spine.pdf
+2021/04/03 | 23692 | indexing/xindy/contrib/xindy-persian.zip
+2021/04/03 | 2355 | macros/latex/contrib/thuthesis/thuthesis-example.tex
+2021/04/03 | 2329 | indexing/upmendex/source/mendex.h
+2021/04/03 | 23291 | systems/win32/miktex/tm/packages/next/miktex-devnag-bin-x64-2.9.tar.lzma
+2021/04/03 | 2318 | indexing/upmendex/source/configure.ac
+2021/04/03 | 2293232 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz
+2021/04/03 | 2286 | macros/latex/contrib/thuthesis/data/abstract.tex
+2021/04/03 | 22039 | systems/win32/miktex/tm/packages/next/miktex-fribidixetex-bin-2.9.tar.lzma
+2021/04/03 | 2144 | indexing/upmendex/doc/samples/alphabet/alpha_zhz.idx
+2021/04/03 | 214105 | systems/win32/miktex/tm/packages/next/miktex-metafont-bin-x64-2.9.tar.lzma
+2021/04/03 | 213 | indexing/upmendex/source/tests/pprecA.idx
+2021/04/03 | 21131 | systems/win32/miktex/tm/packages/next/miktex-devnag-bin-2.9.tar.lzma
+2021/04/03 | 211053 | systems/win32/miktex/tm/packages/next/miktex-omegaware-bin-x64-2.9.tar.lzma
+2021/04/03 | 2105 | indexing/upmendex/source/var.h
+2021/04/03 | 208485 | systems/win32/miktex/tm/packages/miktex-zzdb1-2.9.tar.lzma
+2021/04/03 | 208404 | systems/win32/miktex/tm/packages/next/miktex-zzdb1-2.9.tar.lzma
+2021/04/03 | 208182 | systems/win32/miktex/tm/packages/next/miktex-pmx-bin-2.9.tar.lzma
+2021/04/03 | 2067796 | systems/texlive/tlnet/archive/xcharter.r58704.tar.xz
+2021/04/03 | 2043421 | systems/doc/luatex.zip
+2021/04/03 | 202557 | systems/win32/miktex/tm/packages/next/miktex-pixman-bin-x64-2.9.tar.lzma
+2021/04/03 | 2024 | macros/latex/contrib/thuthesis/Makefile
+2021/04/03 | 20130221 | systems/texlive/tlnet/install-tl-windows.exe
+2021/04/03 | 20122 | systems/win32/miktex/tm/packages/next/miktex-popt-bin-2.9.tar.lzma
+2021/04/03 | 201119 | macros/latex/contrib/thuthesis/thuthesis.dtx
+2021/04/03 | 2009491 | systems/win32/miktex/tm/packages/next/miktex-luatex-bin-x64-2.9.tar.lzma
+2021/04/03 | 199702 | systems/win32/miktex/tm/packages/next/miktex-mpfr-bin-2.9.tar.lzma
+2021/04/03 | 1992 | indexing/upmendex/doc/samples/alphabet/alpha_es.idx
+2021/04/03 | 198131 | systems/win32/miktex/tm/packages/next/miktex-pixman-bin-2.9.tar.lzma
+2021/04/03 | 195663 | systems/win32/miktex/tm/packages/next/miktex-curl-bin-x64-2.9.tar.lzma
+2021/04/03 | 195566 | systems/win32/miktex/tm/packages/next/miktex-metafont-bin-2.9.tar.lzma
+2021/04/03 | 19515 | indexing/upmendex/source/hanzi.h
+2021/04/03 | 193717 | systems/win32/miktex/tm/packages/next/miktex-omegaware-bin-2.9.tar.lzma
+2021/04/03 | 1929866 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015.zip
+2021/04/03 | 191655 | macros/luatex/latex/unitipa/unitipa.pdf
+2021/04/03 | 191222 | macros/luatex/latex/unitipa.zip
+2021/04/03 | 19106 | macros/latex/contrib/thuthesis/LICENSE
+2021/04/03 | 1891 | indexing/upmendex/doc/samples/alphabet/alpha_zhp.idx
+2021/04/03 | 1880344 | systems/texlive/tlnet/archive/luatex.doc.r58702.tar.xz
+2021/04/03 | 18669 | indexing/xindy/contrib/xindy-persian/persian/variant2-utf8.xdy
+2021/04/03 | 18626 | indexing/xindy/contrib/xindy-persian/persian/variant3-utf8.xdy
+2021/04/03 | 18618 | indexing/xindy/contrib/xindy-persian/persian/variant1-utf8.xdy
+2021/04/03 | 1842 | indexing/upmendex/source/ktable.h
+2021/04/03 | 182 | indexing/upmendex/source/tests/pprec0.ist
+2021/04/03 | 18097 | systems/win32/miktex/tm/packages/next/miktex-tex2xindy-bin-x64-2.9.tar.lzma
+2021/04/03 | 1807 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh14.ist
+2021/04/03 | 1807 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh13.ist
+2021/04/03 | 1807 | indexing/upmendex/doc/samples/alphabet/mdxsty_zh12.ist
+2021/04/03 | 180048 | systems/win32/miktex/tm/packages/next/miktex-mpfr-bin-x64-2.9.tar.lzma
+2021/04/03 | 179 | indexing/upmendex/source/tests/pprec2.ist
+2021/04/03 | 179 | indexing/upmendex/source/tests/pprec1.ist
+2021/04/03 | 17958 | systems/win32/miktex/tm/packages/next/miktex-kpathsea-bin-x64-2.9.tar.lzma
+2021/04/03 | 179379 | systems/win32/miktex/tm/packages/next/miktex-curl-bin-2.9.tar.lzma
+2021/04/03 | 1787 | macros/latex/contrib/thuthesis/data/appendix-translation.tex
+2021/04/03 | 1725549 | systems/win32/miktex/tm/packages/next/miktex-luatex-bin-2.9.tar.lzma
+2021/04/03 | 1719 | macros/latex/contrib/thuthesis/data/appendix-survey.tex
+2021/04/03 | 17169686 | systems/texlive/tlnet/tlpkg/texlive.tlpdb
+2021/04/03 | 1709687 | install/macros/latex/contrib/thuthesis.tds.zip
+2021/04/03 | 17061 | macros/luatex/latex/unitipa/unitipa.dtx
+2021/04/03 | 1684540 | macros/latex/contrib/thuthesis.zip
+2021/04/03 | 167906 | systems/win32/miktex/tm/packages/next/miktex-tex-bin-x64-2.9.tar.lzma
+2021/04/03 | 16668 | indexing/upmendex/doc/upmendex.ja.txt
+2021/04/03 | 1664 | macros/latex/contrib/thuthesis/data/committee.tex
+2021/04/03 | 164151 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.bbx
+2021/04/03 | 163655 | systems/win32/miktex/tm/packages/next/miktex-mo-bin-x64-2.9.tar.lzma
+2021/04/03 | 16358 | indexing/upmendex/man/upmendex.1
+2021/04/03 | 16328 | systems/win32/miktex/tm/packages/next/miktex-kpathsea-bin-2.9.tar.lzma
+2021/04/03 | 16111 | systems/win32/miktex/tm/packages/next/miktex-tex2xindy-bin-2.9.tar.lzma
+2021/04/03 | 159968 | systems/win32/miktex/tm/packages/next/miktex-hunspell-bin-x64-2.9.tar.lzma
+2021/04/03 | 159219 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.bbx
+2021/04/03 | 15514 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015mx.cbx
+2021/04/03 | 153 | systems/texlive/tlnet/install-tl-windows.exe.sha512
+2021/04/03 | 153890 | systems/win32/miktex/tm/packages/next/miktex-tex-bin-2.9.tar.lzma
+2021/04/03 | 152 | systems/texlive/tlnet/install-tl-unx.tar.gz.sha512
+2021/04/03 | 152762 | systems/win32/miktex/tm/packages/next/miktex-fontconfig-bin-x64-2.9.tar.lzma
+2021/04/03 | 1524 | indexing/xindy/contrib/xindy-persian/doc/variant3-utf8-doc.tex
+2021/04/03 | 1522 | indexing/xindy/contrib/xindy-persian/doc/variant2-utf8-doc.tex
+2021/04/03 | 1522 | indexing/xindy/contrib/xindy-persian/doc/variant1-utf8-doc.tex
+2021/04/03 | 1479 | macros/latex/contrib/thuthesis/data/appendix.tex
+2021/04/03 | 1477 | indexing/upmendex/doc/samples/korean.idx
+2021/04/03 | 147151 | systems/win32/miktex/tm/packages/next/miktex-mo-bin-2.9.tar.lzma
+2021/04/03 | 147139 | systems/win32/miktex/tm/packages/next/miktex-hunspell-bin-2.9.tar.lzma
+2021/04/03 | 1464 | indexing/upmendex/COPYRIGHT
+2021/04/03 | 145 | systems/texlive/tlnet/install-tl.zip.sha512
+2021/04/03 | 1452 | macros/latex/contrib/thuthesis/data/resume.tex
+2021/04/03 | 144 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512
+2021/04/03 | 14354 | systems/win32/miktex/tm/packages/next/miktex-zzip-bin-x64-2.9.tar.lzma
+2021/04/03 | 14286 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.cbx
+2021/04/03 | 1425980 | systems/win32/miktex/tm/packages/next/miktex-dvisvgm-bin-x64-2.9.tar.lzma
+2021/04/03 | 1424811 | systems/win32/miktex/tm/packages/next/miktex-runtime-bin-x64-2.9.tar.lzma
+2021/04/03 | 14186 | macros/latex/contrib/thuthesis/tsinghua-name-bachelor.pdf
+2021/04/03 | 14176 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.cbx
+2021/04/03 | 1387 | macros/latex/contrib/thuthesis/thuthesis.ins
+2021/04/03 | 136427 | systems/win32/miktex/tm/packages/next/miktex-mktex-bin-x64-2.9.tar.lzma
+2021/04/03 | 135005 | systems/win32/miktex/tm/packages/next/miktex-fontconfig-bin-2.9.tar.lzma
+2021/04/03 | 13471 | systems/win32/miktex/tm/packages/next/miktex-zzip-bin-2.9.tar.lzma
+2021/04/03 | 1344 | indexing/xindy/contrib/xindy-persian/README
+2021/04/03 | 133754 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015mx.bbx
+2021/04/03 | 13316 | indexing/upmendex/source/fread.c
+2021/04/03 | 132 | macros/latex/contrib/thuthesis/thuthesis-author-year.cbx
+2021/04/03 | 1328 | macros/luatex/latex/unitipa/unitipa.ins
+2021/04/03 | 1326 | indexing/upmendex/source/Makefile.am
+2021/04/03 | 1322 | indexing/upmendex/source/tests/upmendex.test
+2021/04/03 | 131490 | systems/win32/miktex/tm/packages/next/miktex-dvips-bin-x64-2.9.tar.lzma
+2021/04/03 | 1307719 | systems/win32/miktex/tm/packages/next/miktex-poppler-bin-x64-2.9.tar.lzma
+2021/04/03 | 13004 | indexing/upmendex/source/sort.c
+2021/04/03 | 1295412 | systems/win32/miktex/tm/packages/next/miktex-runtime-bin-2.9.tar.lzma
+2021/04/03 | 1291 | indexing/upmendex/source/exvar.h
+2021/04/03 | 12908 | systems/texlive/tlnet/archive/luatex.r58702.tar.xz
+2021/04/03 | 1281103 | systems/win32/miktex/tm/packages/next/miktex-dvisvgm-bin-2.9.tar.lzma
+2021/04/03 | 1265387 | systems/win32/miktex/tm/packages/miktex-zzdb2-2.9.tar.lzma
+2021/04/03 | 1264301 | systems/win32/miktex/tm/packages/next/miktex-zzdb2-2.9.tar.lzma
+2021/04/03 | 12534 | fonts/xcharter/README
+2021/04/03 | 124972 | systems/win32/miktex/tm/packages/next/miktex-mktex-bin-2.9.tar.lzma
+2021/04/03 | 1200 | indexing/upmendex/doc/samples/alphabet/alpha_zhs.idx
+2021/04/03 | 1190 | indexing/upmendex/source/kp.c
+2021/04/03 | 1181170 | systems/win32/miktex/tm/packages/next/miktex-zzdb3-2.9.tar.lzma
+2021/04/03 | 1181087 | systems/win32/miktex/tm/packages/miktex-zzdb3-2.9.tar.lzma
+2021/04/03 | 1171730 | systems/win32/miktex/tm/packages/next/miktex-poppler-bin-2.9.tar.lzma
+2021/04/03 | 116931 | systems/win32/miktex/tm/packages/next/miktex-dvips-bin-2.9.tar.lzma
+2021/04/03 | 115470 | systems/win32/miktex/tm/packages/next/miktex-gregorio-bin-x64-2.9.tar.lzma
+2021/04/03 | 1153 | systems/win32/miktex/tm/packages/next/pr.ini
+2021/04/03 | 115105 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ms.bbx
+2021/04/03 | 1144457 | macros/latex/contrib/thuthesis/thuthesis.pdf
+2021/04/03 | 112253 | systems/win32/miktex/tm/packages/next/miktex-gd-bin-x64-2.9.tar.lzma
+2021/04/03 | 1095 | indexing/upmendex/doc/samples/option/attri1.idx
+2021/04/03 | 109276 | systems/win32/miktex/tm/packages/next/miktex-jpeg-bin-x64-2.9.tar.lzma
+2021/04/03 | 1078878 | systems/win32/miktex/tm/packages/next/miktex-asymptote-bin-x64-2.9.tar.lzma
+2021/04/03 | 1052 | indexing/upmendex/source/pageread.c
+2021/04/03 | 104627 | systems/win32/miktex/tm/packages/next/miktex-texware-bin-x64-2.9.tar.lzma
+2021/04/03 | 103324 | systems/win32/miktex/tm/packages/next/miktex-lua53-bin-x64-2.9.tar.lzma
+2021/04/03 | 101764 | systems/win32/miktex/tm/packages/next/miktex-mfware-bin-x64-2.9.tar.lzma
+2021/04/03 | 10083 | indexing/upmendex/source/styfile.c
2021/04/02 | 907631 | fonts/stix2-otf/STIXTwoMath-Regular.pdf
-2021/04/02 | 8774 | systems/win32/miktex/tm/packages/next/miktex-md5-bin-x64-2.9.tar.lzma
-2021/04/02 | 87704 | systems/win32/miktex/tm/packages/next/miktex-png-bin-x64-2.9.tar.lzma
-2021/04/02 | 87637 | systems/win32/miktex/tm/packages/next/miktex-epstopdf-bin-2.9.tar.lzma
2021/04/02 | 864 | macros/latex/contrib/suppose/README.md
2021/04/02 | 853 | macros/luatex/latex/ekdosis/samples/Makefile
-2021/04/02 | 84775 | systems/win32/miktex/tm/packages/next/miktex-bibtex8bit-bin-2.9.tar.lzma
2021/04/02 | 847322 | install/macros/luatex/latex/ekdosis.tds.zip
-2021/04/02 | 846 | systems/win32/miktex/tm/packages/pr.ini
2021/04/02 | 838508 | fonts/stix2-otf/STIXTwoMath-Regular.otf
2021/04/02 | 830931 | macros/luatex/latex/ekdosis/ekdosis.pdf
2021/04/02 | 824127 | macros/luatex/latex/ekdosis.zip
-2021/04/02 | 816073 | systems/win32/miktex/tm/packages/next/miktex-pdftex-bin-x64-2.9.tar.lzma
-2021/04/02 | 80658 | systems/win32/miktex/tm/packages/next/miktex-freeglut-bin-x64-2.9.tar.lzma
-2021/04/02 | 78745 | systems/win32/miktex/tm/packages/next/miktex-png-bin-2.9.tar.lzma
2021/04/02 | 7824 | macros/latex/contrib/suppose/suppose.sty
-2021/04/02 | 77859 | systems/win32/miktex/tm/packages/next/miktex-fonts-bin-x64-2.9.tar.lzma
-2021/04/02 | 77488 | systems/win32/miktex/tm/packages/next/miktex-mpmcli-bin-x64-2.9.tar.lzma
-2021/04/02 | 7747 | systems/win32/miktex/tm/packages/next/miktex-md5-bin-2.9.tar.lzma
-2021/04/02 | 75418 | systems/win32/miktex/tm/packages/next/miktex-bibtex-bin-x64-2.9.tar.lzma
-2021/04/02 | 748363 | systems/win32/miktex/tm/packages/next/miktex-pdftex-bin-2.9.tar.lzma
-2021/04/02 | 74165 | systems/win32/miktex/tm/packages/next/miktex-lzma-bin-x64-2.9.tar.lzma
-2021/04/02 | 73182 | systems/win32/miktex/tm/packages/next/miktex-fonts-bin-2.9.tar.lzma
-2021/04/02 | 72860 | systems/win32/miktex/tm/packages/next/miktex-graphite2-bin-x64-2.9.tar.lzma
-2021/04/02 | 72151 | systems/win32/miktex/tm/packages/next/miktex-ps2pk-bin-x64-2.9.tar.lzma
-2021/04/02 | 71568 | systems/win32/miktex/tm/packages/next/miktex-freeglut-bin-2.9.tar.lzma
-2021/04/02 | 70326 | systems/win32/miktex/tm/packages/next/miktex-web-bin-x64-2.9.tar.lzma
-2021/04/02 | 70109 | systems/win32/miktex/tm/packages/next/miktex-tex4ht-bin-x64-2.9.tar.lzma
2021/04/02 | 6851 | macros/luatex/latex/ekdosis/samples/Caesar_BG-6-13-1-tei.xml
-2021/04/02 | 680049 | systems/win32/miktex/tm/packages/next/miktex-lcdf-typetools-bin-x64-2.9.tar.lzma
-2021/04/02 | 67930 | systems/win32/miktex/tm/packages/next/miktex-mkfntmap-bin-x64-2.9.tar.lzma
-2021/04/02 | 67679 | systems/win32/miktex/tm/packages/next/miktex-bibtex-bin-2.9.tar.lzma
-2021/04/02 | 67649 | systems/win32/miktex/tm/packages/next/miktex-lzma-bin-2.9.tar.lzma
-2021/04/02 | 67451 | systems/win32/miktex/tm/packages/next/miktex-mpmcli-bin-2.9.tar.lzma
-2021/04/02 | 65731 | systems/win32/miktex/tm/packages/next/miktex-web-bin-2.9.tar.lzma
-2021/04/02 | 65322 | systems/win32/miktex/tm/packages/next/miktex-texify-bin-x64-2.9.tar.lzma
-2021/04/02 | 64017 | systems/win32/miktex/tm/packages/next/miktex-ps2pk-bin-2.9.tar.lzma
-2021/04/02 | 63836 | systems/win32/miktex/tm/packages/next/miktex-graphite2-bin-2.9.tar.lzma
-2021/04/02 | 63675 | systems/win32/miktex/tm/packages/next/miktex-tex4ht-bin-2.9.tar.lzma
-2021/04/02 | 62801 | systems/win32/miktex/tm/packages/next/miktex-fmt-bin-x64-2.9.tar.lzma
-2021/04/02 | 625283 | systems/win32/miktex/tm/packages/next/miktex-lcdf-typetools-bin-2.9.tar.lzma
-2021/04/02 | 62225 | systems/win32/miktex/tm/packages/next/miktex-ttf2pk2-bin-x64-2.9.tar.lzma
-2021/04/02 | 6190022 | systems/texlive/tlnet/install-tl-unx.tar.gz
-2021/04/02 | 618763 | systems/win32/miktex/tm/packages/next/miktex-yap-bin-x64-2.9.tar.lzma
-2021/04/02 | 60552 | systems/win32/miktex/tm/packages/next/miktex-mkfntmap-bin-2.9.tar.lzma
-2021/04/02 | 59831 | systems/win32/miktex/tm/packages/next/miktex-tdsutil-bin-x64.tar.lzma
-2021/04/02 | 594870 | systems/win32/miktex/tm/packages/next/miktex-libressl-bin-x64-2.9.tar.lzma
-2021/04/02 | 59147 | systems/win32/miktex/tm/packages/next/miktex-cweb-bin-x64-2.9.tar.lzma
2021/04/02 | 58513 | fonts/stix2-otf/OFL-FAQ.txt
-2021/04/02 | 583628 | systems/win32/miktex/tm/packages/next/miktex-yap-bin-2.9.tar.lzma
-2021/04/02 | 57598 | systems/win32/miktex/tm/packages/next/miktex-bibarts-bin-x64-2.9.tar.lzma
-2021/04/02 | 574491 | systems/win32/miktex/tm/packages/next/files.csv.lzma
-2021/04/02 | 574351 | systems/win32/miktex/tm/packages/files.csv.lzma
-2021/04/02 | 57068 | systems/win32/miktex/tm/packages/next/miktex-xml2pmx-bin-x64.tar.lzma
-2021/04/02 | 56910 | systems/win32/miktex/tm/packages/next/miktex-texify-bin-2.9.tar.lzma
-2021/04/02 | 567627 | systems/win32/miktex/tm/packages/next/miktex-harfbuzz-bin-x64-2.9.tar.lzma
-2021/04/02 | 56718 | systems/win32/miktex/tm/packages/next/miktex-cjkutils-bin-x64-2.9.tar.lzma
-2021/04/02 | 56458 | systems/win32/miktex/tm/packages/next/miktex-arctrl-bin-x64-2.9.tar.lzma
-2021/04/02 | 56222 | systems/win32/miktex/tm/packages/next/miktex-tdsutil-bin.tar.lzma
-2021/04/02 | 55822 | systems/win32/miktex/tm/packages/next/miktex-fmt-bin-2.9.tar.lzma
-2021/04/02 | 55564 | systems/win32/miktex/tm/packages/next/miktex-xml2pmx-bin.tar.lzma
-2021/04/02 | 55220 | systems/win32/miktex/tm/packages/next/miktex-ttf2pk2-bin-2.9.tar.lzma
-2021/04/02 | 532041 | systems/win32/miktex/tm/packages/next/miktex-libressl-bin-2.9.tar.lzma
+2021/04/02 | 5332 | macros/latex/contrib/conferences/sugconf/sugconf.cls
2021/04/02 | 525 | fonts/stix2-otf/AUTHORS.txt
-2021/04/02 | 52475 | systems/win32/miktex/tm/packages/next/miktex-cweb-bin-2.9.tar.lzma
-2021/04/02 | 52455 | systems/win32/miktex/tm/packages/next/miktex-m-tx-bin-x64-2.9.tar.lzma
-2021/04/02 | 51979 | systems/win32/miktex/tm/packages/next/miktex-psutils-bin-x64-2.9.tar.lzma
-2021/04/02 | 51798 | systems/win32/miktex/tm/packages/next/miktex-synctex-bin-x64-2.9.tar.lzma
-2021/04/02 | 51432 | systems/win32/miktex/tm/packages/next/miktex-cjkutils-bin-2.9.tar.lzma
-2021/04/02 | 511634 | systems/win32/miktex/tm/packages/next/miktex-log4cxx-bin-x64-2.9.tar.lzma
-2021/04/02 | 51160 | systems/win32/miktex/tm/packages/next/miktex-dvicopy-bin-x64-2.9.tar.lzma
-2021/04/02 | 50848 | systems/win32/miktex/tm/packages/next/miktex-arctrl-bin-2.9.tar.lzma
2021/04/02 | 5078 | fonts/stix2-otf/Text-features.tex
-2021/04/02 | 49972 | systems/win32/miktex/tm/packages/next/miktex-bibarts-bin-2.9.tar.lzma
-2021/04/02 | 48 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5
+2021/04/02 | 50664 | macros/latex/contrib/conferences/sugconf/sugconf-template.pdf
2021/04/02 | 4882 | fonts/stix2-otf/OFL.txt
2021/04/02 | 484 | fonts/stix2-otf/CONTRIBUTORS.txt
-2021/04/02 | 484054 | systems/win32/miktex/tm/packages/next/miktex-harfbuzz-bin-2.9.tar.lzma
-2021/04/02 | 47877 | systems/win32/miktex/tm/packages/next/miktex-expat-bin-x64-2.9.tar.lzma
-2021/04/02 | 475937 | systems/win32/miktex/tm/packages/next/miktex-log4cxx-bin-2.9.tar.lzma
-2021/04/02 | 4707 | systems/win32/miktex/tm/packages/next/miktex-config-2.9.tar.lzma
-2021/04/02 | 47008 | systems/win32/miktex/tm/packages/next/miktex-mtprint-bin-x64-2.9.tar.lzma
-2021/04/02 | 461399 | systems/win32/miktex/tm/packages/next/miktex-doc.tar.lzma
-2021/04/02 | 45936 | systems/win32/miktex/tm/packages/next/miktex-m-tx-bin-2.9.tar.lzma
-2021/04/02 | 45649 | systems/win32/miktex/tm/packages/next/miktex-dvicopy-bin-2.9.tar.lzma
-2021/04/02 | 455 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
-2021/04/02 | 455 | systems/texlive/tlnet/install-tl.zip.sha512.asc
-2021/04/02 | 455 | systems/texlive/tlnet/install-tl-windows.exe.sha512.asc
-2021/04/02 | 455 | systems/texlive/tlnet/install-tl-unx.tar.gz.sha512.asc
-2021/04/02 | 45277 | systems/win32/miktex/tm/packages/next/miktex-dvipng-bin-x64-2.9.tar.lzma
2021/04/02 | 4370 | macros/luatex/latex/ekdosis/ekdosis.el
-2021/04/02 | 43676 | systems/win32/miktex/tm/packages/next/miktex-psutils-bin-2.9.tar.lzma
-2021/04/02 | 43392 | systems/win32/miktex/tm/packages/next/miktex-zlib-bin-x64-2.9.tar.lzma
-2021/04/02 | 43057 | systems/win32/miktex/tm/packages/next/miktex-expat-bin-2.9.tar.lzma
-2021/04/02 | 42924 | systems/win32/miktex/tm/packages/next/miktex-mtprint-bin-2.9.tar.lzma
-2021/04/02 | 42627 | systems/win32/miktex/tm/packages/next/miktex-gsf2pk-bin-x64-2.9.tar.lzma
2021/04/02 | 4260 | macros/luatex/latex/ekdosis/README.md
-2021/04/02 | 42574 | systems/win32/miktex/tm/packages/next/miktex-mthelp-bin-x64-2.9.tar.lzma
2021/04/02 | 42411 | fonts/stix2-otf/FONTLOG.txt
-2021/04/02 | 42389 | systems/win32/miktex/tm/packages/next/miktex-synctex-bin-2.9.tar.lzma
-2021/04/02 | 41103 | systems/win32/miktex/tm/packages/next/miktex-dvipng-bin-2.9.tar.lzma
2021/04/02 | 403658 | macros/luatex/latex/ekdosis/ekdosis.dtx
2021/04/02 | 4024704 | macros/latex/contrib/profcollege.zip
-2021/04/02 | 39691 | systems/win32/miktex/tm/packages/next/miktex-patgen-bin-x64.tar.lzma
-2021/04/02 | 39564 | systems/win32/miktex/tm/packages/next/miktex-zlib-bin-2.9.tar.lzma
-2021/04/02 | 392597 | systems/win32/miktex/tm/packages/next/miktex-cairo-bin-x64-2.9.tar.lzma
2021/04/02 | 3901 | macros/luatex/latex/ekdosis/samples/Caesar_BG-6-13-1.tex
-2021/04/02 | 38070 | systems/win32/miktex/tm/packages/next/miktex-gsf2pk-bin-2.9.tar.lzma
-2021/04/02 | 38066 | systems/win32/miktex/tm/packages/next/miktex-mthelp-bin-2.9.tar.lzma
-2021/04/02 | 37292 | systems/win32/miktex/tm/packages/next/miktex-upmendex-bin-x64.tar.lzma
-2021/04/02 | 37244 | systems/win32/miktex/tm/packages/next/miktex-posix-bin-x64-2.9.tar.lzma
-2021/04/02 | 36679 | systems/win32/miktex/tm/packages/next/miktex-chktex-bin-x64-2.9.tar.lzma
-2021/04/02 | 35462 | systems/win32/miktex/tm/packages/next/miktex-patgen-bin.tar.lzma
2021/04/02 | 3506 | macros/luatex/latex/ekdosis/Makefile
-2021/04/02 | 35064 | systems/win32/miktex/tm/packages/next/miktex-mspack-bin-x64-2.9.tar.lzma
2021/04/02 | 3466585 | fonts/stix2-otf.zip
-2021/04/02 | 34635 | systems/win32/miktex/tm/packages/next/miktex-axohelp-bin-x64-2.9.tar.lzma
-2021/04/02 | 345367 | systems/win32/miktex/tm/packages/next/miktex-xetex-bin-x64-2.9.tar.lzma
-2021/04/02 | 33442 | systems/win32/miktex/tm/packages/next/miktex-upmendex-bin.tar.lzma
-2021/04/02 | 33152 | systems/win32/miktex/tm/packages/next/miktex-uriparser-bin-x64-2.9.tar.lzma
-2021/04/02 | 330233 | systems/win32/miktex/tm/packages/next/miktex-cairo-bin-2.9.tar.lzma
+2021/04/02 | 34339 | systems/doc/luatex/luatex-lua.tex
2021/04/02 | 328660 | fonts/stix2-otf/STIXTwoText-Regular.pdf
-2021/04/02 | 32745 | systems/win32/miktex/tm/packages/next/miktex-chktex-bin-2.9.tar.lzma
2021/04/02 | 325323 | fonts/stix2-otf/STIXTwoMath-Regular.tex
2021/04/02 | 325280 | fonts/stix2-otf/STIXTwoText-MediumItalic.otf
2021/04/02 | 325056 | fonts/stix2-otf/STIXTwoText-SemiBoldItalic.otf
-2021/04/02 | 321896 | systems/win32/miktex/tm/packages/next/miktex-dvipdfmx-bin-x64-2.9.tar.lzma
2021/04/02 | 316136 | fonts/stix2-otf/STIXTwoText-BoldItalic.otf
-2021/04/02 | 31594 | systems/win32/miktex/tm/packages/next/miktex-makeindex-bin-x64-2.9.tar.lzma
-2021/04/02 | 31543 | systems/win32/miktex/tm/packages/next/miktex-posix-bin-2.9.tar.lzma
-2021/04/02 | 31345 | systems/win32/miktex/tm/packages/next/miktex-autosp-bin-x64-2.9.tar.lzma
-2021/04/02 | 31192 | systems/win32/miktex/tm/packages/next/miktex-mspack-bin-2.9.tar.lzma
-2021/04/02 | 311192 | systems/win32/miktex/tm/packages/next/miktex-xetex-bin-2.9.tar.lzma
-2021/04/02 | 30886 | systems/win32/miktex/tm/packages/next/miktex-bzip2-bin-x64-2.9.tar.lzma
+2021/04/02 | 31585 | macros/latex/contrib/conferences/sugconf/sugconf-skeleton.pdf
2021/04/02 | 308500 | fonts/stix2-otf/STIXTwoText-Italic.otf
2021/04/02 | 305120 | fonts/stix2-otf/STIXTwoText-SemiBold.otf
2021/04/02 | 303304 | fonts/stix2-otf/STIXTwoText-Medium.otf
-2021/04/02 | 30038 | systems/win32/miktex/tm/packages/next/miktex-lacheck-bin-x64-2.9.tar.lzma
-2021/04/02 | 29869 | systems/win32/miktex/tm/packages/next/miktex-axohelp-bin-2.9.tar.lzma
+2021/04/02 | 2984 | macros/latex/contrib/conferences/sugconf/README
2021/04/02 | 296140 | fonts/stix2-otf/STIXTwoText-Bold.otf
-2021/04/02 | 295554 | systems/win32/miktex/tm/packages/next/miktex-freetype2-bin-x64-2.9.tar.lzma
2021/04/02 | 292268 | fonts/stix2-otf/STIXTwoText-Regular.otf
-2021/04/02 | 29054 | systems/win32/miktex/tm/packages/next/miktex-autosp-bin-2.9.tar.lzma
-2021/04/02 | 283978 | systems/win32/miktex/tm/packages/next/miktex-metapost-bin-x64-2.9.tar.lzma
-2021/04/02 | 282105 | systems/win32/miktex/tm/packages/next/miktex-dvipdfmx-bin-2.9.tar.lzma
-2021/04/02 | 28121 | systems/win32/miktex/tm/packages/next/miktex-lacheck-bin-2.9.tar.lzma
-2021/04/02 | 28009 | systems/win32/miktex/tm/packages/next/miktex-findtexmf-bin-x64-2.9.tar.lzma
-2021/04/02 | 27362 | systems/win32/miktex/tm/packages/next/miktex-makeindex-bin-2.9.tar.lzma
-2021/04/02 | 27275 | systems/win32/miktex/tm/packages/next/miktex-teckit-bin-x64-2.9.tar.lzma
-2021/04/02 | 27198 | systems/win32/miktex/tm/packages/next/miktex-uriparser-bin-2.9.tar.lzma
-2021/04/02 | 27183 | systems/win32/miktex/tm/packages/next/miktex-bzip2-bin-2.9.tar.lzma
2021/04/02 | 2710 | fonts/stix2-otf/intro.tex
-2021/04/02 | 261963 | systems/win32/miktex/tm/packages/next/miktex-console-bin-x64-2.9.tar.lzma
-2021/04/02 | 2616930 | systems/win32/miktex/tm/packages/next/miktex-texworks-bin-x64-2.9.tar.lzma
-2021/04/02 | 258666 | systems/win32/miktex/tm/packages/next/miktex-freetype2-bin-2.9.tar.lzma
-2021/04/02 | 25341 | systems/win32/miktex/tm/packages/next/miktex-teckit-bin-2.9.tar.lzma
-2021/04/02 | 25156 | systems/win32/miktex/tm/packages/next/miktex-findtexmf-bin-2.9.tar.lzma
-2021/04/02 | 250212 | systems/win32/miktex/tm/packages/next/miktex-metapost-bin-2.9.tar.lzma
-2021/04/02 | 25002 | systems/win32/miktex/tm/packages/next/miktex-fribidixetex-bin-x64-2.9.tar.lzma
-2021/04/02 | 2499401 | systems/win32/miktex/tm/packages/next/miktex-texworks-bin-2.9.tar.lzma
-2021/04/02 | 24961924 | systems/texlive/tlnet/install-tl.zip
-2021/04/02 | 243479 | systems/win32/miktex/tm/packages/next/miktex-pmx-bin-x64-2.9.tar.lzma
-2021/04/02 | 239479 | systems/win32/miktex/tm/packages/next/miktex-console-bin-2.9.tar.lzma
-2021/04/02 | 23883 | systems/win32/miktex/tm/packages/next/miktex-popt-bin-x64-2.9.tar.lzma
2021/04/02 | 235083 | fonts/stix2-otf/STIXTwoText-Regular.tex
-2021/04/02 | 23290 | systems/win32/miktex/tm/packages/next/miktex-devnag-bin-x64-2.9.tar.lzma
-2021/04/02 | 2293920 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz
-2021/04/02 | 22040 | systems/win32/miktex/tm/packages/next/miktex-fribidixetex-bin-2.9.tar.lzma
-2021/04/02 | 214105 | systems/win32/miktex/tm/packages/next/miktex-metafont-bin-x64-2.9.tar.lzma
-2021/04/02 | 21128 | systems/win32/miktex/tm/packages/next/miktex-devnag-bin-2.9.tar.lzma
-2021/04/02 | 211054 | systems/win32/miktex/tm/packages/next/miktex-omegaware-bin-x64-2.9.tar.lzma
-2021/04/02 | 208451 | systems/win32/miktex/tm/packages/next/miktex-zzdb1-2.9.tar.lzma
-2021/04/02 | 208446 | systems/win32/miktex/tm/packages/miktex-zzdb1-2.9.tar.lzma
-2021/04/02 | 208182 | systems/win32/miktex/tm/packages/next/miktex-pmx-bin-2.9.tar.lzma
-2021/04/02 | 202558 | systems/win32/miktex/tm/packages/next/miktex-pixman-bin-x64-2.9.tar.lzma
-2021/04/02 | 20130234 | systems/texlive/tlnet/install-tl-windows.exe
-2021/04/02 | 20122 | systems/win32/miktex/tm/packages/next/miktex-popt-bin-2.9.tar.lzma
-2021/04/02 | 2009491 | systems/win32/miktex/tm/packages/next/miktex-luatex-bin-x64-2.9.tar.lzma
-2021/04/02 | 199700 | systems/win32/miktex/tm/packages/next/miktex-mpfr-bin-2.9.tar.lzma
2021/04/02 | 198315 | macros/latex/contrib/suppose.zip
-2021/04/02 | 198132 | systems/win32/miktex/tm/packages/next/miktex-pixman-bin-2.9.tar.lzma
-2021/04/02 | 195666 | systems/win32/miktex/tm/packages/next/miktex-curl-bin-x64-2.9.tar.lzma
-2021/04/02 | 195567 | systems/win32/miktex/tm/packages/next/miktex-metafont-bin-2.9.tar.lzma
-2021/04/02 | 193716 | systems/win32/miktex/tm/packages/next/miktex-omegaware-bin-2.9.tar.lzma
2021/04/02 | 1874 | macros/luatex/latex/ekdosis/ekdosis.ins
-2021/04/02 | 18097 | systems/win32/miktex/tm/packages/next/miktex-tex2xindy-bin-x64-2.9.tar.lzma
-2021/04/02 | 180048 | systems/win32/miktex/tm/packages/next/miktex-mpfr-bin-x64-2.9.tar.lzma
2021/04/02 | 17995 | macros/luatex/latex/ekdosis/samples/Caesar_BG-6-13-1.pdf
-2021/04/02 | 17958 | systems/win32/miktex/tm/packages/next/miktex-kpathsea-bin-x64-2.9.tar.lzma
-2021/04/02 | 179378 | systems/win32/miktex/tm/packages/next/miktex-curl-bin-2.9.tar.lzma
-2021/04/02 | 1725544 | systems/win32/miktex/tm/packages/next/miktex-luatex-bin-2.9.tar.lzma
-2021/04/02 | 17161433 | systems/texlive/tlnet/tlpkg/texlive.tlpdb
-2021/04/02 | 167905 | systems/win32/miktex/tm/packages/next/miktex-tex-bin-x64-2.9.tar.lzma
-2021/04/02 | 163656 | systems/win32/miktex/tm/packages/next/miktex-mo-bin-x64-2.9.tar.lzma
-2021/04/02 | 16328 | systems/win32/miktex/tm/packages/next/miktex-kpathsea-bin-2.9.tar.lzma
-2021/04/02 | 16111 | systems/win32/miktex/tm/packages/next/miktex-tex2xindy-bin-2.9.tar.lzma
-2021/04/02 | 159969 | systems/win32/miktex/tm/packages/next/miktex-hunspell-bin-x64-2.9.tar.lzma
-2021/04/02 | 153 | systems/texlive/tlnet/install-tl-windows.exe.sha512
-2021/04/02 | 153889 | systems/win32/miktex/tm/packages/next/miktex-tex-bin-2.9.tar.lzma
-2021/04/02 | 152 | systems/texlive/tlnet/install-tl-unx.tar.gz.sha512
-2021/04/02 | 152762 | systems/win32/miktex/tm/packages/next/miktex-fontconfig-bin-x64-2.9.tar.lzma
-2021/04/02 | 147151 | systems/win32/miktex/tm/packages/next/miktex-mo-bin-2.9.tar.lzma
-2021/04/02 | 147138 | systems/win32/miktex/tm/packages/next/miktex-hunspell-bin-2.9.tar.lzma
-2021/04/02 | 145 | systems/texlive/tlnet/install-tl.zip.sha512
-2021/04/02 | 144 | systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512
-2021/04/02 | 14354 | systems/win32/miktex/tm/packages/next/miktex-zzip-bin-x64-2.9.tar.lzma
-2021/04/02 | 1425980 | systems/win32/miktex/tm/packages/next/miktex-dvisvgm-bin-x64-2.9.tar.lzma
-2021/04/02 | 1424814 | systems/win32/miktex/tm/packages/next/miktex-runtime-bin-x64-2.9.tar.lzma
+2021/04/02 | 1763342 | systems/doc/luatex/luatex.pdf
2021/04/02 | 141504 | systems/texlive/tlnet/archive/texlive-msg-translations.r58693.tar.xz
-2021/04/02 | 136428 | systems/win32/miktex/tm/packages/next/miktex-mktex-bin-x64-2.9.tar.lzma
2021/04/02 | 13528 | fonts/stix2-otf/README.md
-2021/04/02 | 135005 | systems/win32/miktex/tm/packages/next/miktex-fontconfig-bin-2.9.tar.lzma
-2021/04/02 | 13470 | systems/win32/miktex/tm/packages/next/miktex-zzip-bin-2.9.tar.lzma
-2021/04/02 | 131490 | systems/win32/miktex/tm/packages/next/miktex-dvips-bin-x64-2.9.tar.lzma
-2021/04/02 | 1307723 | systems/win32/miktex/tm/packages/next/miktex-poppler-bin-x64-2.9.tar.lzma
-2021/04/02 | 1295415 | systems/win32/miktex/tm/packages/next/miktex-runtime-bin-2.9.tar.lzma
-2021/04/02 | 1281105 | systems/win32/miktex/tm/packages/next/miktex-dvisvgm-bin-2.9.tar.lzma
-2021/04/02 | 1265206 | systems/win32/miktex/tm/packages/miktex-zzdb2-2.9.tar.lzma
-2021/04/02 | 1264343 | systems/win32/miktex/tm/packages/next/miktex-zzdb2-2.9.tar.lzma
-2021/04/02 | 124971 | systems/win32/miktex/tm/packages/next/miktex-mktex-bin-2.9.tar.lzma
2021/04/02 | 11847 | fonts/stix2-otf/Math-features.tex
-2021/04/02 | 1180973 | systems/win32/miktex/tm/packages/miktex-zzdb3-2.9.tar.lzma
-2021/04/02 | 1180920 | systems/win32/miktex/tm/packages/next/miktex-zzdb3-2.9.tar.lzma
-2021/04/02 | 1171732 | systems/win32/miktex/tm/packages/next/miktex-poppler-bin-2.9.tar.lzma
-2021/04/02 | 116930 | systems/win32/miktex/tm/packages/next/miktex-dvips-bin-2.9.tar.lzma
-2021/04/02 | 115469 | systems/win32/miktex/tm/packages/next/miktex-gregorio-bin-x64-2.9.tar.lzma
-2021/04/02 | 1153 | systems/win32/miktex/tm/packages/next/pr.ini
-2021/04/02 | 112253 | systems/win32/miktex/tm/packages/next/miktex-gd-bin-x64-2.9.tar.lzma
-2021/04/02 | 109276 | systems/win32/miktex/tm/packages/next/miktex-jpeg-bin-x64-2.9.tar.lzma
-2021/04/02 | 1078878 | systems/win32/miktex/tm/packages/next/miktex-asymptote-bin-x64-2.9.tar.lzma
-2021/04/02 | 104625 | systems/win32/miktex/tm/packages/next/miktex-texware-bin-x64-2.9.tar.lzma
-2021/04/02 | 103323 | systems/win32/miktex/tm/packages/next/miktex-lua53-bin-x64-2.9.tar.lzma
-2021/04/02 | 101762 | systems/win32/miktex/tm/packages/next/miktex-mfware-bin-x64-2.9.tar.lzma
2021/04/01 | 996 | fonts/xcharter/vf/XCharter-BoldSlanted-tosf-sc-ot1.vf
2021/04/01 | 996 | fonts/xcharter/vf/XCharter-BoldSlanted-tlf-sc-ot1.vf
2021/04/01 | 984 | fonts/xcharter/vf/XCharter-Slanted-tosf-sc-ot1.vf
@@ -266,7 +447,6 @@
2021/04/01 | 8932 | fonts/xcharter/tfm/XCharter-Roman-tosf-sc-t2asrb.tfm
2021/04/01 | 8908 | fonts/xcharter/tfm/XCharter-Roman-tlf-sc-t2a.tfm
2021/04/01 | 8904 | fonts/xcharter/tfm/XCharter-Roman-tlf-sc-t2asrb.tfm
-2021/04/01 | 88537 | macros/latex/contrib/easybook/easybook.dtx
2021/04/01 | 8840 | fonts/xcharter/tfm/XCharter1-Roman-tosf-sc-t2a.tfm
2021/04/01 | 8836 | fonts/xcharter/tfm/XCharter1-Roman-tosf-sc-t2asrb.tfm
2021/04/01 | 8816 | fonts/xcharter/tfm/XCharter-BoldItalic-tosf-sc-t2a.tfm
@@ -305,6 +485,7 @@
2021/04/01 | 8444 | fonts/xcharter/tfm/XCharter-Bold-tlf-t2asrb.tfm
2021/04/01 | 8444 | fonts/xcharter/tfm/XCharter1-Italic-tosf-sc-t2a.tfm
2021/04/01 | 8420 | fonts/xcharter/tfm/XCharter1-Italic-tosf-sc-t2asrb.tfm
+2021/04/01 | 837 | macros/latex/contrib/conferences/sugconf/sugconf-skeleton.tex
2021/04/01 | 836 | fonts/xcharter/vf/XCharter-Italic-tlf-ot1G.vf
2021/04/01 | 832 | fonts/xcharter/vf/XCharter-Roman-tlf-ot1G.vf
2021/04/01 | 832 | fonts/xcharter/vf/XCharter-Bold-tlf-ot1G.vf
@@ -394,13 +575,11 @@
2021/04/01 | 644 | fonts/xcharter/vf/XCharter-Bold-ts1.vf
2021/04/01 | 644 | fonts/xcharter/vf/XCharter-BoldSlanted-ts1.vf
2021/04/01 | 640 | fonts/xcharter/vf/XCharter-Slanted-ts1.vf
-2021/04/01 | 545296 | macros/latex/contrib/easybook.zip
2021/04/01 | 5354 | macros/latex/contrib/dynbrackets/dynbrackets.dtx
2021/04/01 | 522822 | macros/latex/contrib/profcollege/latex/ProfCollege.sty
2021/04/01 | 50 | systems/mac/mactex/Ghostscript.pkg.md5
2021/04/01 | 47 | systems/mac/mactex/BasicTeX.pkg.md5
2021/04/01 | 45 | systems/mac/mactex/MacTeX.pkg.md5
-2021/04/01 | 4549103 | fonts/xcharter.zip
2021/04/01 | 4168 | fonts/xcharter/enc/xch1_geqmur.enc
2021/04/01 | 4163 | fonts/xcharter/enc/xch1_icytdu.enc
2021/04/01 | 4124 | fonts/xcharter/enc/xch1_nhow2o.enc
@@ -545,20 +724,17 @@
2021/04/01 | 26348 | fonts/xcharter/tfm/XCharter1-Roman-tosf-ly1.tfm
2021/04/01 | 26276 | fonts/xcharter/tfm/XCharter1-Roman-tosf-sc-t1.tfm
2021/04/01 | 26264 | fonts/xcharter/tfm/XCharter-Roman-tosf-sc-t1.tfm
-2021/04/01 | 262407 | macros/latex/contrib/easybook/doc/easybook-demo.pdf
2021/04/01 | 26228 | fonts/xcharter/tfm/XCharter-Roman-tlf-sc-t1.tfm
2021/04/01 | 26076 | fonts/xcharter/tfm/XCharter1-Bold-tosf-ly1.tfm
2021/04/01 | 26056 | fonts/xcharter/tfm/XCharter1-Bold-tosf-sc-ly1.tfm
2021/04/01 | 26020 | fonts/xcharter/tfm/XCharter-Bold-tosf-sc-ly1.tfm
2021/04/01 | 26016 | fonts/xcharter/tfm/XCharter-Italic-tosf-ly1.tfm
2021/04/01 | 26016 | fonts/xcharter/tfm/XCharter1-Slanted-tosf-sc-ly1.tfm
-2021/04/01 | 260079 | macros/latex/contrib/easybook/doc/easybook.pdf
2021/04/01 | 26000 | fonts/xcharter/tfm/XCharter-Slanted-tosf-sc-ly1.tfm
2021/04/01 | 2599573 | macros/latex/contrib/profcollege/doc/ProfCollege-doc.pdf
2021/04/01 | 25984 | fonts/xcharter/tfm/XCharter-Bold-tlf-sc-ly1.tfm
2021/04/01 | 25980 | fonts/xcharter/tfm/XCharter-Italic-tlf-ly1.tfm
2021/04/01 | 25964 | fonts/xcharter/tfm/XCharter-Slanted-tlf-sc-ly1.tfm
-2021/04/01 | 2587 | macros/latex/contrib/easybook/doc/easybook-demo.tex
2021/04/01 | 2587 | fonts/utilities/fontools/share/fontools_ot1.enc
2021/04/01 | 25840 | fonts/xcharter/tfm/XCharter-BoldItalic-tosf-ly1.tfm
2021/04/01 | 25812 | fonts/xcharter/tfm/XCharter-BoldItalic-tlf-ly1.tfm
@@ -578,6 +754,7 @@
2021/04/01 | 25160 | fonts/xcharter/tfm/XCharter1-BoldSlanted-tosf-ly1.tfm
2021/04/01 | 25076 | fonts/xcharter/tfm/XCharter1-Roman-tosf-t1.tfm
2021/04/01 | 25076 | fonts/xcharter/tfm/XCharter1-BoldSlanted-tosf-sc-ly1.tfm
+2021/04/01 | 2504 | macros/latex/contrib/conferences/sugconf/sugconf-template.tex
2021/04/01 | 25044 | fonts/xcharter/tfm/XCharter-BoldSlanted-tosf-sc-ly1.tfm
2021/04/01 | 25024 | fonts/xcharter/tfm/XCharter-Roman-tosf-t1.tfm
2021/04/01 | 25012 | fonts/xcharter/tfm/XCharter-BoldSlanted-tlf-sc-ly1.tfm
@@ -702,6 +879,7 @@
2021/04/01 | 1916 | fonts/xcharter/tfm/XCharter-Italic-sup-t2a.tfm
2021/04/01 | 1912 | fonts/xcharter/tfm/XCharter-Italic-sup-t2asrb.tfm
2021/04/01 | 1912 | fonts/xcharter/tfm/XCharter-BoldItalic-sup-t2a.tfm
+2021/04/01 | 1911308 | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015.pdf
2021/04/01 | 1908 | fonts/xcharter/tfm/XCharter-BoldItalic-sup-t2asrb.tfm
2021/04/01 | 1904 | fonts/xcharter/tfm/XCharter-Slanted-tosf-sc-t1--base.tfm
2021/04/01 | 1904 | fonts/xcharter/tfm/XCharter1-Slanted-tosf-sc-t1--base.tfm
@@ -1077,7 +1255,6 @@
2021/04/01 | 1284 | fonts/xcharter/tfm/XCharter-BoldItalic-dnom-ot1.tfm
2021/04/01 | 1280 | fonts/xcharter/tfm/XCharter-BoldItalic-inf-ot1.tfm
2021/04/01 | 1272 | fonts/xcharter/tfm/XCharter-Roman-tlf-sc-ot1--base.tfm
-2021/04/01 | 12409 | fonts/xcharter/README
2021/04/01 | 1229 | systems/texlive/tlnet/README.md
2021/04/01 | 1173 | systems/texlive/Images/README.md
2021/04/01 | 1032 | fonts/xcharter/vf/XCharter1-BoldSlanted-tosf-ot1.vf
@@ -1394,100 +1571,3 @@
2021/03/28 | 146162432 | systems/win32/w32tex/context.tar.xz
2021/03/28 | 1130614 | install/macros/latex/contrib/mathtools.tds.zip
2021/03/28 | 1106277 | macros/latex/contrib/mathtools.zip
-2021/03/27 | 9916 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-authordate-trad16.cbx
-2021/03/27 | 9420 | graphics/pgf/contrib/yquant/tex/yquant-config.tex
-2021/03/27 | 87271 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/cms-trad-appendix.pdf
-2021/03/27 | 86325 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/cms-legal-sample.pdf
-2021/03/27 | 8543 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-authordate16.cbx
-2021/03/27 | 806500 | install/macros/latex/contrib/siunitx.tds.zip
-2021/03/27 | 79079 | fonts/newtx/doc/newtxdoc.tex
-2021/03/27 | 761807 | macros/latex/contrib/siunitx.zip
-2021/03/27 | 7419 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/legal-test.bib
-2021/03/27 | 679110 | graphics/pgf/contrib/yquant/doc/yquant-doc.pdf
-2021/03/27 | 6740 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/README
-2021/03/27 | 641384 | macros/latex/contrib/siunitx/siunitx.pdf
-2021/03/27 | 623618 | graphics/pgf/contrib/yquant.zip
-2021/03/27 | 614563 | macros/latex/contrib/siunitx/siunitx.dtx
-2021/03/27 | 59063 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/cms-dates-intro.tex
-2021/03/27 | 5681 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/cms-legal-sample.tex
-2021/03/27 | 46353 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/cms-american.lbx
-2021/03/27 | 46219 | macros/latex/contrib/physunits/physunits.dtx
-2021/03/27 | 4463 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/cms-british.lbx
-2021/03/27 | 4218 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/cms-trad-appendix.tex
-2021/03/27 | 40103 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/cms-dutch.lbx
-2021/03/27 | 39804 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/cms-ngerman.lbx
-2021/03/27 | 39801 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/cms-german.lbx
-2021/03/27 | 39348 | graphics/pgf/contrib/yquant/tex/yquant-shapes.tex
-2021/03/27 | 38516 | graphics/pgf/contrib/yquant/tex/yquant-registers.tex
-2021/03/27 | 38482 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/cms-notes-intro.tex
-2021/03/27 | 37346 | fonts/newtx/README
-2021/03/27 | 371824 | macros/latex/contrib/physconst/physconst.dtx
-2021/03/27 | 3711 | macros/latex/contrib/physunits/makefile
-2021/03/27 | 3711 | macros/latex/contrib/physconst/makefile
-2021/03/27 | 35922 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/cms-romanian.lbx
-2021/03/27 | 35406 | graphics/pgf/contrib/yquant/tex/yquant-draw.tex
-2021/03/27 | 3534 | macros/latex/contrib/physconst/README.md
-2021/03/27 | 34380 | graphics/pgf/contrib/yquant/tex/yquant-prepare.tex
-2021/03/27 | 33955 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/cms-finnish.lbx
-2021/03/27 | 3324474 | macros/latex/contrib/biblatex-contrib/biblatex-chicago.zip
-2021/03/27 | 3307 | macros/latex/contrib/physunits/README.md
-2021/03/27 | 32732 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/cms-french.lbx
-2021/03/27 | 32715 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/cms-swedish.lbx
-2021/03/27 | 323986 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-notes.cbx
-2021/03/27 | 32388 | graphics/pgf/contrib/yquant/tex/yquant-env.tex
-2021/03/27 | 3232 | macros/latex/contrib/physconst/CHANGELOG.md
-2021/03/27 | 32200 | macros/latex/contrib/siunitx/CHANGELOG.md
-2021/03/27 | 30099 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/cms-nynorsk.lbx
-2021/03/27 | 30018 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/cms-norwegian.lbx
-2021/03/27 | 30006 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/cms-norsk.lbx
-2021/03/27 | 29312 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/cms-brazilian.lbx
-2021/03/27 | 286299 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/cms-notes-intro.pdf
-2021/03/27 | 28390 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/cms-icelandic.lbx
-2021/03/27 | 2691 | macros/latex/contrib/physunits/CHANGELOG.md
-2021/03/27 | 25743 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/cms-dates-sample.tex
-2021/03/27 | 253453 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/cms-dates-intro.pdf
-2021/03/27 | 25174 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/cms-trad-sample.tex
-2021/03/27 | 24830 | graphics/pgf/contrib/yquant/tex/yquantlanguage-qasm.sty
-2021/03/27 | 24770 | graphics/pgf/contrib/yquant/tex/yquant-lang.tex
-2021/03/27 | 24561 | graphics/pgf/contrib/yquant/tex/yquant-tools.tex
-2021/03/27 | 232403 | macros/latex/contrib/physconst.zip
-2021/03/27 | 2215 | macros/latex/contrib/siunitx/README.md
-2021/03/27 | 215721 | macros/latex/contrib/physconst/physconst.pdf
-2021/03/27 | 206646 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-notes16.cbx
-2021/03/27 | 2056 | macros/latex/contrib/physunits/physunits.ins
-2021/03/27 | 2056 | macros/latex/contrib/physconst/physconst.ins
-2021/03/27 | 2042 | graphics/pgf/contrib/yquant/tex/yquant.sty
-2021/03/27 | 197364 | graphics/pgf/contrib/yquant/doc/yquant-doc.tex
-2021/03/27 | 186501 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/cms-dates-sample.pdf
-2021/03/27 | 180778 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/dates-test.bib
-2021/03/27 | 180206 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/cms-trad-sample.pdf
-2021/03/27 | 172 | macros/latex/contrib/gridpapers/examples/hex-engineer-letterpaper-fullpage.tex
-2021/03/27 | 163402 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-authordate.bbx
-2021/03/27 | 16136 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/cmsendnotes.sty
-2021/03/27 | 160475 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/cms-notes-sample.pdf
-2021/03/27 | 152060 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-notes.bbx
-2021/03/27 | 151501 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/notes-test.bib
-2021/03/27 | 14467 | graphics/pgf/contrib/yquant/tex/yquant-circuit.tex
-2021/03/27 | 141 | macros/latex/contrib/gridpapers/examples/engineer-pad.tex
-2021/03/27 | 141682 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-authordate16.bbx
-2021/03/27 | 14132 | graphics/pgf/contrib/yquant/tex/yquant-langhelper.tex
-2021/03/27 | 135953 | fonts/newtx/tex/newtxmath.sty
-2021/03/27 | 135021 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-dates-common.cbx
-2021/03/27 | 13359 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/cms-notes-sample.tex
-2021/03/27 | 12838 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/cms-noteref-demo.tex
-2021/03/27 | 12764 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-authordate-trad.cbx
-2021/03/27 | 1245499 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/biblatex-chicago.pdf
-2021/03/27 | 1238382 | fonts/newtx/doc/newtxdoc.pdf
-2021/03/27 | 12081 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/cmsdocs.sty
-2021/03/27 | 119 | macros/latex/contrib/gridpapers/examples/triangular-grid.tex
-2021/03/27 | 113687 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/RELEASE
-2021/03/27 | 111791 | macros/latex/contrib/physunits.zip
-2021/03/27 | 11014 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-authordate.cbx
-2021/03/27 | 110072 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-notes16.bbx
-2021/03/27 | 109756 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-dates-common16.cbx
-2021/03/27 | 109279 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/cms-noteref-demo.pdf
-2021/03/27 | 1078737 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/biblatex-chicago.tex
-2021/03/27 | 105 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-authordate-trad16.bbx
-2021/03/27 | 105873 | macros/latex/contrib/physunits/physunits.pdf
-2021/03/27 | 10523 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/biblatex-chicago.sty
-2021/03/27 | 101 | macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-authordate-trad.bbx
diff --git a/fonts/xcharter/README b/fonts/xcharter/README
index 9bc8f1f82b..82aea41609 100644
--- a/fonts/xcharter/README
+++ b/fonts/xcharter/README
@@ -21,7 +21,11 @@ Original Bitstream Free font license:
Portions of the font modifications are Copyright (c) 2009--2012, Andrey Panov; Copyright (c) 2013--2021, Michael Sharpe.
-Current version: 1.215 2021-03-31
+Current version: 1.216 2021-04-03
+
+Changes in version 1.216
+Removed a superfluous line from XCharter that was interfering with choice of bold in other faces.
+
Changes in version 1.215
Some t2a encoded tfm files were omitted due to a processing error. Now fixed.
diff --git a/fonts/xcharter/tex/XCharter.sty b/fonts/xcharter/tex/XCharter.sty
index 72240550fc..427190027e 100644
--- a/fonts/xcharter/tex/XCharter.sty
+++ b/fonts/xcharter/tex/XCharter.sty
@@ -3,8 +3,8 @@
%%
\NeedsTeXFormat{LaTeX2e}
-\def\fileversion{1.213}
-\def\filedate{2020/11/25}
+\def\fileversion{1.216}
+\def\filedate{2021/04/03}
\ProvidesPackage{XCharter}[\filedate\space v\fileversion]
@@ -136,7 +136,7 @@
\newcommand{\textosf}[1]{{\fontencoding{T1}\fontfamily{XCharterx}\selectfont #1}}% to get XCharter osf
\newcommand{\textosfI}[1]{{\fontencoding{T1}\fontfamily{XChartery}\selectfont #1}}% to get XCharter osfI
-\renewcommand*{\bfdefault}{b}
+%\renewcommand*{\bfdefault}{b} % removed 2021-04-03
\renewcommand*{\scdefault}{sc}% for better compatibility with mathdesign
% The following are provided so that we may access osf in any mode
diff --git a/indexing/upmendex/README.md b/indexing/upmendex/README.md
index f0f8df4ca5..a5b79c250a 100644
--- a/indexing/upmendex/README.md
+++ b/indexing/upmendex/README.md
@@ -1,7 +1,7 @@
upmendex --- Multilingual index processor
==========================================
-2020.02.22 Ver0.54
+2020.03.21 Ver0.55
TANAKA, Takuji
<ttk(at)t-lab.opal.ne.jp>
@@ -31,10 +31,10 @@ upmendex is a multilingual index processor with following features:
* man/ :: manuals
### Building upmendex
-The source files are distributed at GitHub[2] and work with TeX Live svn r53427.
+The source files are distributed at GitHub[2] and work with TeX Live svn r58576.
Ref. [TeX Live and Subversion](http://www.tug.org/texlive/svn/)
-Tested with ICU 65.1 .
+Tested with ICU 68.2 .
### Status
Beta version.
diff --git a/indexing/upmendex/source/ChangeLog b/indexing/upmendex/source/ChangeLog
index 6c0e2aaef7..4456e403ea 100644
--- a/indexing/upmendex/source/ChangeLog
+++ b/indexing/upmendex/source/ChangeLog
@@ -1,3 +1,28 @@
+2021-03-23 Karl Berry <karl@tug.org>
+
+ * TL'21.
+
+2021-03-21 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+
+ * version 0.55 Beta version.
+ * configure.ac: Bump version.
+ * fread.c: Fix a bug about page_precedence in style.
+ Thanks to Suzana Sagadin for the report.
+ * tests/pprec[012].ist, tests/pprecA.idx, tests/pprecA-[012].ind,
+ tests/upmendex.test, Makefile.am:
+ Add new tests.
+
+2021-02-17 Karl Berry <karl@freefriends.org>
+
+ * COPYRIGHT,
+ * main.c: copyright 2021.
+
+2020-05-01 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+
+ * main.c, version.h, Makefile.{am.in}: Add bug report addresses
+ on command line help.
+ * convert.c: Tune buffer sizes to avoid tool warnings.
+
2020-02-22 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
* version 0.54 Beta version.
diff --git a/indexing/upmendex/source/Makefile.am b/indexing/upmendex/source/Makefile.am
index fc188887f4..94bea187b3 100644
--- a/indexing/upmendex/source/Makefile.am
+++ b/indexing/upmendex/source/Makefile.am
@@ -22,6 +22,7 @@ upmendex_SOURCES = \
ktable.h \
main.c \
mendex.h \
+ version.h \
pageread.c \
qsort.c \
qsort.h \
@@ -57,5 +58,7 @@ EXTRA_DIST += $(TESTS)
## tests/upmendex.test
EXTRA_DIST += tests/foo.idx tests/foo.ind \
- tests/uni.idx tests/uni.dict tests/uni.ist tests/uni.ind
-DISTCLEANFILES = foo.* uni.*
+ tests/uni.idx tests/uni.dict tests/uni.ist tests/uni.ind \
+ tests/pprec0.ist tests/pprec1.ist tests/pprec2.ist tests/pprecA.idx \
+ tests/pprecA-0.ind tests/pprecA-1.ind tests/pprecA-2.ind
+DISTCLEANFILES = foo.* uni.* pprec*.*
diff --git a/indexing/upmendex/source/Makefile.in b/indexing/upmendex/source/Makefile.in
index 08c9fae74a..1447494020 100644
--- a/indexing/upmendex/source/Makefile.in
+++ b/indexing/upmendex/source/Makefile.in
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.16.1 from Makefile.am.
+# Makefile.in generated by automake 1.16.3 from Makefile.am.
# @configure_input@
-# Copyright (C) 1994-2018 Free Software Foundation, Inc.
+# Copyright (C) 1994-2020 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -191,8 +191,8 @@ am__can_run_installinfo = \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
- $(LISP)c-auto.in
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
+ c-auto.in
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
@@ -395,6 +395,7 @@ am__set_TESTS_bases = \
bases='$(TEST_LOGS)'; \
bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
bases=`echo $$bases`
+AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
RECHECK_LOGS = $(TEST_LOGS)
TEST_SUITE_LOG = test-suite.log
TEST_EXTENSIONS = @EXEEXT@ .test
@@ -441,6 +442,8 @@ am__post_remove_distdir = $(am__remove_distdir)
DIST_ARCHIVES = $(distdir).tar.gz
GZIP_ENV = --best
DIST_TARGETS = dist-gzip
+# Exists only to be overridden by the user if desired.
+AM_DISTCHECK_DVI_TARGET = dvi
distuninstallcheck_listfiles = find . -type f -print
am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
| sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
@@ -593,6 +596,7 @@ upmendex_SOURCES = \
ktable.h \
main.c \
mendex.h \
+ version.h \
pageread.c \
qsort.c \
qsort.h \
@@ -606,9 +610,11 @@ nodist_EXTRA_upmendex_SOURCES = dummy.cxx
LDADD = $(KPATHSEA_LIBS) $(ICU_LIBS) $(PTHREAD_LIB) $(ICU_LIBS_EXTRA)
EXTRA_DIST = COPYRIGHT indexsty upmendex.ja.txt $(TESTS) tests/foo.idx \
tests/foo.ind tests/uni.idx tests/uni.dict tests/uni.ist \
- tests/uni.ind
+ tests/uni.ind tests/pprec0.ist tests/pprec1.ist \
+ tests/pprec2.ist tests/pprecA.idx tests/pprecA-0.ind \
+ tests/pprecA-1.ind tests/pprecA-2.ind
TESTS = tests/upmendex.test
-DISTCLEANFILES = foo.* uni.*
+DISTCLEANFILES = foo.* uni.* pprec*.*
all: c-auto.h
$(MAKE) $(AM_MAKEFLAGS) all-am
@@ -962,7 +968,7 @@ $(TEST_SUITE_LOG): $(TEST_LOGS)
test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
fi; \
echo "$${col}$$br$${std}"; \
- echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
+ echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
echo "$${col}$$br$${std}"; \
create_testsuite_report --maybe-color; \
echo "$$col$$br$$std"; \
@@ -1069,6 +1075,10 @@ dist-xz: distdir
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
$(am__post_remove_distdir)
+dist-zstd: distdir
+ tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
+ $(am__post_remove_distdir)
+
dist-tarZ: distdir
@echo WARNING: "Support for distribution archives compressed with" \
"legacy program 'compress' is deprecated." >&2
@@ -1111,6 +1121,8 @@ distcheck: dist
eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
*.zip*) \
unzip $(distdir).zip ;;\
+ *.tar.zst*) \
+ zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
esac
chmod -R a-w $(distdir)
chmod u+w $(distdir)
@@ -1126,7 +1138,7 @@ distcheck: dist
$(DISTCHECK_CONFIGURE_FLAGS) \
--srcdir=../.. --prefix="$$dc_install_base" \
&& $(MAKE) $(AM_MAKEFLAGS) \
- && $(MAKE) $(AM_MAKEFLAGS) dvi \
+ && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) install \
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
@@ -1316,8 +1328,8 @@ uninstall-am: uninstall-binPROGRAMS
check-TESTS check-am clean clean-binPROGRAMS clean-cscope \
clean-generic clean-libtool cscope cscopelist-am ctags \
ctags-am dist dist-all dist-bzip2 dist-gzip dist-lzip \
- dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \
- distclean-compile distclean-generic distclean-hdr \
+ dist-shar dist-tarZ dist-xz dist-zip dist-zstd distcheck \
+ distclean distclean-compile distclean-generic distclean-hdr \
distclean-libtool distclean-tags distcleancheck distdir \
distuninstallcheck dvi dvi-am html html-am info info-am \
install install-am install-binPROGRAMS install-data \
diff --git a/indexing/upmendex/source/aclocal.m4 b/indexing/upmendex/source/aclocal.m4
index 5392efefa9..0f39289fa4 100644
--- a/indexing/upmendex/source/aclocal.m4
+++ b/indexing/upmendex/source/aclocal.m4
@@ -1,6 +1,6 @@
-# generated automatically by aclocal 1.16.1 -*- Autoconf -*-
+# generated automatically by aclocal 1.16.2 -*- Autoconf -*-
-# Copyright (C) 1996-2018 Free Software Foundation, Inc.
+# Copyright (C) 1996-2020 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -20,7 +20,7 @@ You have another version of autoconf. It may work, but is not guaranteed to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
-# Copyright (C) 2002-2018 Free Software Foundation, Inc.
+# Copyright (C) 2002-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -35,7 +35,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION],
[am__api_version='1.16'
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
dnl require some minimum version. Point them to the right macro.
-m4_if([$1], [1.16.1], [],
+m4_if([$1], [1.16.2], [],
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
])
@@ -51,14 +51,14 @@ m4_define([_AM_AUTOCONF_VERSION], [])
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
-[AM_AUTOMAKE_VERSION([1.16.1])dnl
+[AM_AUTOMAKE_VERSION([1.16.2])dnl
m4_ifndef([AC_AUTOCONF_VERSION],
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
-# Copyright (C) 2001-2018 Free Software Foundation, Inc.
+# Copyright (C) 2001-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -110,7 +110,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd`
# AM_CONDITIONAL -*- Autoconf -*-
-# Copyright (C) 1997-2018 Free Software Foundation, Inc.
+# Copyright (C) 1997-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -141,7 +141,7 @@ AC_CONFIG_COMMANDS_PRE(
Usually this means the macro was only invoked conditionally.]])
fi])])
-# Copyright (C) 1999-2018 Free Software Foundation, Inc.
+# Copyright (C) 1999-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -332,7 +332,7 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl
# Generate code to set up dependency tracking. -*- Autoconf -*-
-# Copyright (C) 1999-2018 Free Software Foundation, Inc.
+# Copyright (C) 1999-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -371,7 +371,9 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
done
if test $am_rc -ne 0; then
AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
- for automatic dependency tracking. Try re-running configure with the
+ for automatic dependency tracking. If GNU make was not used, consider
+ re-running the configure script with MAKE="gmake" (or whatever is
+ necessary). You can also try re-running configure with the
'--disable-dependency-tracking' option to at least be able to build
the package (albeit without support for automatic dependency tracking).])
fi
@@ -398,7 +400,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
# Do all the work for Automake. -*- Autoconf -*-
-# Copyright (C) 1996-2018 Free Software Foundation, Inc.
+# Copyright (C) 1996-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -595,7 +597,7 @@ for _am_header in $config_headers :; do
done
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
-# Copyright (C) 2001-2018 Free Software Foundation, Inc.
+# Copyright (C) 2001-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -616,7 +618,7 @@ if test x"${install_sh+set}" != xset; then
fi
AC_SUBST([install_sh])])
-# Copyright (C) 2003-2018 Free Software Foundation, Inc.
+# Copyright (C) 2003-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -638,7 +640,7 @@ AC_SUBST([am__leading_dot])])
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
# From Jim Meyering
-# Copyright (C) 1996-2018 Free Software Foundation, Inc.
+# Copyright (C) 1996-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -673,7 +675,7 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
# Check to see how 'make' treats includes. -*- Autoconf -*-
-# Copyright (C) 2001-2018 Free Software Foundation, Inc.
+# Copyright (C) 2001-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -716,7 +718,7 @@ AC_SUBST([am__quote])])
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
-# Copyright (C) 1997-2018 Free Software Foundation, Inc.
+# Copyright (C) 1997-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -755,7 +757,7 @@ fi
# Helper functions for option handling. -*- Autoconf -*-
-# Copyright (C) 2001-2018 Free Software Foundation, Inc.
+# Copyright (C) 2001-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -784,7 +786,7 @@ AC_DEFUN([_AM_SET_OPTIONS],
AC_DEFUN([_AM_IF_OPTION],
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
-# Copyright (C) 1999-2018 Free Software Foundation, Inc.
+# Copyright (C) 1999-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -831,7 +833,7 @@ AC_LANG_POP([C])])
# For backward compatibility.
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
-# Copyright (C) 2001-2018 Free Software Foundation, Inc.
+# Copyright (C) 2001-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -850,7 +852,7 @@ AC_DEFUN([AM_RUN_LOG],
# Check to make sure that the build environment is sane. -*- Autoconf -*-
-# Copyright (C) 1996-2018 Free Software Foundation, Inc.
+# Copyright (C) 1996-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -931,7 +933,7 @@ AC_CONFIG_COMMANDS_PRE(
rm -f conftest.file
])
-# Copyright (C) 2009-2018 Free Software Foundation, Inc.
+# Copyright (C) 2009-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -991,7 +993,7 @@ AC_SUBST([AM_BACKSLASH])dnl
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
])
-# Copyright (C) 2001-2018 Free Software Foundation, Inc.
+# Copyright (C) 2001-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -1019,7 +1021,7 @@ fi
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
AC_SUBST([INSTALL_STRIP_PROGRAM])])
-# Copyright (C) 2006-2018 Free Software Foundation, Inc.
+# Copyright (C) 2006-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -1038,7 +1040,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
# Check how to create a tarball. -*- Autoconf -*-
-# Copyright (C) 2004-2018 Free Software Foundation, Inc.
+# Copyright (C) 2004-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
diff --git a/indexing/upmendex/source/configure b/indexing/upmendex/source/configure
index 55a19d1649..5f95756168 100755
--- a/indexing/upmendex/source/configure
+++ b/indexing/upmendex/source/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for upmendex (TeX Live) 0.54.
+# Generated by GNU Autoconf 2.69 for upmendex (TeX Live) 0.55.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -587,8 +587,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='upmendex (TeX Live)'
PACKAGE_TARNAME='upmendex--tex-live-'
-PACKAGE_VERSION='0.54'
-PACKAGE_STRING='upmendex (TeX Live) 0.54'
+PACKAGE_VERSION='0.55'
+PACKAGE_STRING='upmendex (TeX Live) 0.55'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
@@ -1345,7 +1345,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures upmendex (TeX Live) 0.54 to adapt to many kinds of systems.
+\`configure' configures upmendex (TeX Live) 0.55 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1416,7 +1416,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of upmendex (TeX Live) 0.54:";;
+ short | recursive ) echo "Configuration of upmendex (TeX Live) 0.55:";;
esac
cat <<\_ACEOF
@@ -1541,7 +1541,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-upmendex (TeX Live) configure 0.54
+upmendex (TeX Live) configure 0.55
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2474,7 +2474,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by upmendex (TeX Live) $as_me 0.54, which was
+It was created by upmendex (TeX Live) $as_me 0.55, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -4113,12 +4113,7 @@ program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
am_aux_dir=`cd "$ac_aux_dir" && pwd`
if test x"${MISSING+set}" != xset; then
- case $am_aux_dir in
- *\ * | *\ *)
- MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
- *)
- MISSING="\${SHELL} $am_aux_dir/missing" ;;
- esac
+ MISSING="\${SHELL} '$am_aux_dir/missing'"
fi
# Use eval to expand $SHELL
if eval "$MISSING --is-lightweight"; then
@@ -8673,7 +8668,7 @@ fi
# Define the identity of the package.
PACKAGE='upmendex--tex-live-'
- VERSION='0.54'
+ VERSION='0.55'
# Some tools Automake needs.
@@ -17750,7 +17745,7 @@ ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
-$as_echo "#define TL_VERSION \"TeX Live 2020\"" >>confdefs.h
+$as_echo "#define TL_VERSION \"TeX Live 2021\"" >>confdefs.h
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99 variadic macros are supported" >&5
@@ -18202,7 +18197,7 @@ Usage: $0 [OPTIONS]
Report bugs to <bug-libtool@gnu.org>."
lt_cl_version="\
-upmendex (TeX Live) config.lt 0.54
+upmendex (TeX Live) config.lt 0.55
configured by $0, generated by GNU Autoconf 2.69.
Copyright (C) 2011 Free Software Foundation, Inc.
@@ -20342,7 +20337,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by upmendex (TeX Live) $as_me 0.54, which was
+This file was extended by upmendex (TeX Live) $as_me 0.55, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -20408,7 +20403,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-upmendex (TeX Live) config.status 0.54
+upmendex (TeX Live) config.status 0.55
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
@@ -21605,7 +21600,9 @@ $as_echo X/"$am_mf" |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Something went wrong bootstrapping makefile fragments
- for automatic dependency tracking. Try re-running configure with the
+ for automatic dependency tracking. If GNU make was not used, consider
+ re-running the configure script with MAKE=\"gmake\" (or whatever is
+ necessary). You can also try re-running configure with the
'--disable-dependency-tracking' option to at least be able to build
the package (albeit without support for automatic dependency tracking).
See \`config.log' for more details" "$LINENO" 5; }
diff --git a/indexing/upmendex/source/configure.ac b/indexing/upmendex/source/configure.ac
index c95d31520b..b3043309fa 100644
--- a/indexing/upmendex/source/configure.ac
+++ b/indexing/upmendex/source/configure.ac
@@ -8,7 +8,7 @@ dnl This file is free software; the copyright holder
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl
-AC_INIT([upmendex (TeX Live)], [0.54])
+AC_INIT([upmendex (TeX Live)], [0.55])
AC_PREREQ([2.63])
AC_CONFIG_SRCDIR([main.c])
AC_CONFIG_AUX_DIR([../../build-aux])
diff --git a/indexing/upmendex/source/convert.c b/indexing/upmendex/source/convert.c
index d02b05bf4d..4687fd4f25 100644
--- a/indexing/upmendex/source/convert.c
+++ b/indexing/upmendex/source/convert.c
@@ -12,6 +12,9 @@
#include "kp.h"
#define BUFFERLEN 4096
+#define BUFFERLEN1 256
+#define BUFFERLEN2 (BUFFERLEN1*3)
+#define BUFFERLEN3 (BUFFERLEN2+50)
struct dictionary{
UChar* dic[2];
@@ -118,8 +121,8 @@ static int dcomp(const void *bf1, const void *bf2);
static int dicvalread(const char *filename, struct dictionary *dicval, int line)
{
int i,j,k;
- char buff[256],buff2[256];
- UChar ubuff[256],ubuff2[256];
+ char buff[BUFFERLEN1],buff2[BUFFERLEN1];
+ UChar ubuff[BUFFERLEN1],ubuff2[BUFFERLEN1];
FILE *fp;
if(kpse_in_name_ok(filename))
@@ -143,7 +146,7 @@ static int dicvalread(const char *filename, struct dictionary *dicval, int line)
i--;
continue;
}
- multibyte_to_widechar(ubuff,256,buff2);
+ multibyte_to_widechar(ubuff,BUFFERLEN1,buff2);
dicval[i].dic[0]=u_xstrdup(ubuff);
for (;((buff[j]==' ')||(buff[j]=='\t'));j++);
for (k=0;((buff[j]!='\r')&&(buff[j]!='\n')&&(buff[j]!=' ')&&(buff[j]!='\t'));j++,k++) {
@@ -155,7 +158,7 @@ static int dicvalread(const char *filename, struct dictionary *dicval, int line)
i--;
continue;
}
- multibyte_to_widechar(ubuff,256,buff2);
+ multibyte_to_widechar(ubuff,BUFFERLEN1,buff2);
convert(ubuff,ubuff2);
dicval[i].dic[1]=u_xstrdup(ubuff2);
}
@@ -173,7 +176,7 @@ static int dcomp(const void *bf1, const void *bf2)
const struct dictionary *buff2 = (const struct dictionary *) bf2;
int i;
- for (i=0;i<256;i++) {
+ for (i=0;i<BUFFERLEN1;i++) {
if (((*buff1).dic[0][i]==L'\0')&&((*buff2).dic[0][i]==L'\0')) return 0;
else if (((*buff1).dic[0][i]==L'\0')&&((*buff2).dic[0][i]!=L'\0')) return 1;
else if (((*buff1).dic[0][i]!=L'\0')&&((*buff2).dic[0][i]==L'\0')) return -1;
@@ -187,7 +190,7 @@ static int dcomp(const void *bf1, const void *bf2)
int convert(UChar *buff1, UChar *buff2)
{
int i=0,j=0,k;
- char errbuff[BUFFERLEN],errbuff2[BUFFERLEN];
+ char errbuff[BUFFERLEN2],errbuff2[BUFFERLEN3];
int wclen;
UChar buff3[3];
@@ -270,10 +273,10 @@ int convert(UChar *buff1, UChar *buff2)
j+=wclen;
}
else {
- widechar_to_multibyte(errbuff2,BUFFERLEN,&buff1[i]);
- snprintf(errbuff,BUFFERLEN,"\nError: %s is no entry in dictionary file ",errbuff2);
- fputs(errbuff,efp);
- if (efp!=stderr) fputs(errbuff,stderr);
+ widechar_to_multibyte(errbuff,BUFFERLEN2,&buff1[i]);
+ snprintf(errbuff2,BUFFERLEN3,"\nError: %s is no entry in dictionary file ",errbuff);
+ fputs(errbuff2,efp);
+ if (efp!=stderr) fputs(errbuff2,stderr);
return -1;
}
}
diff --git a/indexing/upmendex/source/fread.c b/indexing/upmendex/source/fread.c
index 358c21a498..a336022e11 100644
--- a/indexing/upmendex/source/fread.c
+++ b/indexing/upmendex/source/fread.c
@@ -511,35 +511,45 @@ ATTRLOOP:
switch(page_precedence[pattr[cc]]) {
case 'r':
if (strchr("ivxlcdm",p->page[i])==NULL) {
- pattr[cc]++;
+ if (pattr[cc]<strlen(page_precedence)-1)
+ pattr[cc]++;
+ else pattr[cc]=0;
for (j=cc+1;j<3;j++) pattr[j]=0;
goto ATTRLOOP;
}
break;
case 'R':
if (strchr("IVXLCDM",p->page[i])==NULL) {
- pattr[cc]++;
+ if (pattr[cc]<strlen(page_precedence)-1)
+ pattr[cc]++;
+ else pattr[cc]=0;
for (j=cc+1;j<3;j++) pattr[j]=0;
goto ATTRLOOP;
}
break;
case 'n':
if (p->page[i]<'0' || p->page[i]>'9') {
- pattr[cc]++;
+ if (pattr[cc]<strlen(page_precedence)-1)
+ pattr[cc]++;
+ else pattr[cc]=0;
for (j=cc+1;j<3;j++) pattr[j]=0;
goto ATTRLOOP;
}
break;
case 'a':
if (p->page[i]<'a' || p->page[i]>'z') {
- pattr[cc]++;
+ if (pattr[cc]<strlen(page_precedence)-1)
+ pattr[cc]++;
+ else pattr[cc]=0;
for (j=cc+1;j<3;j++) pattr[j]=0;
goto ATTRLOOP;
}
break;
case 'A':
if (p->page[i]<'A' || p->page[i]>'Z') {
- pattr[cc]++;
+ if (pattr[cc]<strlen(page_precedence)-1)
+ pattr[cc]++;
+ else pattr[cc]=0;
for (j=cc+1;j<3;j++) pattr[j]=0;
goto ATTRLOOP;
}
diff --git a/indexing/upmendex/source/main.c b/indexing/upmendex/source/main.c
index c7d8106b53..884c64c15f 100644
--- a/indexing/upmendex/source/main.c
+++ b/indexing/upmendex/source/main.c
@@ -1,4 +1,5 @@
#include "mendex.h"
+#include "version.h"
#include <kpathsea/tex-file.h>
#include <kpathsea/variable.h>
@@ -19,8 +20,6 @@ char *styfile,*idxfile[256],*indfile,*dicfile,*logfile;
#endif
KpathseaSupportInfo kp_ist,kp_dict;
-#define VERSION "version 0.54"
-
int main(int argc, char **argv)
{
int i,j,cc=0,startpagenum=-1,ecount=0,chkopt=1;
@@ -156,7 +155,7 @@ int main(int argc, char **argv)
u_getVersion(icuVersion);
u_versionToString(icuVersion, icu_version);
fprintf(stderr,"upmendex - index processor, %s (%s).\n",VERSION, TL_VERSION);
- fprintf(stderr," Copyright 2009 ASCII MEDIA WORKS, 2015-2020 TANAKA Takuji\n");
+ fprintf(stderr," Copyright 2009 ASCII MEDIA WORKS, 2015-2021 TANAKA Takuji\n");
fprintf(stderr," using ICU version %s\n",icu_version);
fprintf(stderr,"usage:\n");
fprintf(stderr,"%% upmendex [-ilqrcgf] [-s sty] [-d dic] [-o ind] [-t log] [-p no] [--] [idx0 idx1 ...]\n");
@@ -174,6 +173,7 @@ int main(int argc, char **argv)
fprintf(stderr,"-t log take log as the error log file.\n");
fprintf(stderr,"-p no set the starting page number of index.\n");
fprintf(stderr,"idx... input files.\n");
+ fprintf(stderr,"\nEmail bug reports to %s.\n", BUG_ADDRESS);
exit(0);
break;
}
diff --git a/indexing/upmendex/source/tests/pprec0.ist b/indexing/upmendex/source/tests/pprec0.ist
new file mode 100644
index 0000000000..ec1242bbba
--- /dev/null
+++ b/indexing/upmendex/source/tests/pprec0.ist
@@ -0,0 +1,11 @@
+% -*- coding: utf-8 -*-
+
+%page_precedence "rnaRA"
+
+delim_0 "[[delim0]]"
+delim_1 "[[delim1]]"
+delim_2 "[[delim2]]"
+delim_r "[[delimr]]"
+suffix_2p "[[sfx 2p]]"
+suffix_3p "[[sfx 3p]]"
+
diff --git a/indexing/upmendex/source/tests/pprec1.ist b/indexing/upmendex/source/tests/pprec1.ist
new file mode 100644
index 0000000000..8f9221ebce
--- /dev/null
+++ b/indexing/upmendex/source/tests/pprec1.ist
@@ -0,0 +1,11 @@
+% -*- coding: utf-8 -*-
+
+page_precedence "nrR"
+
+delim_0 "[[delim0]]"
+delim_1 "[[delim1]]"
+delim_2 "[[delim2]]"
+delim_r "[[delimr]]"
+suffix_2p "[[sfx 2p]]"
+suffix_3p "[[sfx 3p]]"
+
diff --git a/indexing/upmendex/source/tests/pprec2.ist b/indexing/upmendex/source/tests/pprec2.ist
new file mode 100644
index 0000000000..eeec1e95cf
--- /dev/null
+++ b/indexing/upmendex/source/tests/pprec2.ist
@@ -0,0 +1,11 @@
+% -*- coding: utf-8 -*-
+
+page_precedence "Rnr"
+
+delim_0 "[[delim0]]"
+delim_1 "[[delim1]]"
+delim_2 "[[delim2]]"
+delim_r "[[delimr]]"
+suffix_2p "[[sfx 2p]]"
+suffix_3p "[[sfx 3p]]"
+
diff --git a/indexing/upmendex/source/tests/pprecA-0.ind b/indexing/upmendex/source/tests/pprecA-0.ind
new file mode 100644
index 0000000000..245eacacdd
--- /dev/null
+++ b/indexing/upmendex/source/tests/pprecA-0.ind
@@ -0,0 +1,5 @@
+\begin{theindex}
+
+ \item entryA[[delim0]]i[[sfx 3p]], 1[[sfx 3p]], I[[sfx 3p]]
+
+\end{theindex}
diff --git a/indexing/upmendex/source/tests/pprecA-1.ind b/indexing/upmendex/source/tests/pprecA-1.ind
new file mode 100644
index 0000000000..772e302d7c
--- /dev/null
+++ b/indexing/upmendex/source/tests/pprecA-1.ind
@@ -0,0 +1,5 @@
+\begin{theindex}
+
+ \item entryA[[delim0]]1[[sfx 3p]], i[[sfx 3p]], I[[sfx 3p]]
+
+\end{theindex}
diff --git a/indexing/upmendex/source/tests/pprecA-2.ind b/indexing/upmendex/source/tests/pprecA-2.ind
new file mode 100644
index 0000000000..52d35cb3d7
--- /dev/null
+++ b/indexing/upmendex/source/tests/pprecA-2.ind
@@ -0,0 +1,5 @@
+\begin{theindex}
+
+ \item entryA[[delim0]]I[[sfx 3p]], 1[[sfx 3p]], i[[sfx 3p]]
+
+\end{theindex}
diff --git a/indexing/upmendex/source/tests/pprecA.idx b/indexing/upmendex/source/tests/pprecA.idx
new file mode 100644
index 0000000000..8e770b9d0d
--- /dev/null
+++ b/indexing/upmendex/source/tests/pprecA.idx
@@ -0,0 +1,9 @@
+\indexentry{entryA}{i}
+\indexentry{entryA}{ii}
+\indexentry{entryA}{iii}
+\indexentry{entryA}{1}
+\indexentry{entryA}{2}
+\indexentry{entryA}{3}
+\indexentry{entryA}{I}
+\indexentry{entryA}{II}
+\indexentry{entryA}{III}
diff --git a/indexing/upmendex/source/tests/upmendex.test b/indexing/upmendex/source/tests/upmendex.test
index da75821d10..70ff2fac21 100755
--- a/indexing/upmendex/source/tests/upmendex.test
+++ b/indexing/upmendex/source/tests/upmendex.test
@@ -7,7 +7,7 @@
TEXMFCNF=$srcdir/../kpathsea
export TEXMFCNF
-rm -f foo.*
+rm -f foo.* uni.* pprec*.*
./upmendex $srcdir/tests/foo.idx -o foo.ind1 -t foo.ilg1 \
&& diff $srcdir/tests/foo.ind foo.ind1 || exit 1
@@ -24,3 +24,13 @@ cat $srcdir/tests/uni.idx | \
>uni.ind2 2>uni.ilg2 \
&& diff $srcdir/tests/uni.ind uni.ind2 || exit 1
+# test for page_precedence
+./upmendex -s $srcdir/tests/pprec0.ist $srcdir/tests/pprecA.idx -o pprecA-0.ind1 -t pprecA-0.ilg \
+ && diff $srcdir/tests/pprecA-0.ind pprecA-0.ind1 || exit 1
+
+./upmendex -s $srcdir/tests/pprec1.ist $srcdir/tests/pprecA.idx -o pprecA-1.ind1 -t pprecA-1.ilg \
+ && diff $srcdir/tests/pprecA-1.ind pprecA-1.ind1 || exit 1
+
+./upmendex -s $srcdir/tests/pprec2.ist $srcdir/tests/pprecA.idx -o pprecA-2.ind1 -t pprecA-2.ilg \
+ && diff $srcdir/tests/pprecA-2.ind pprecA-2.ind1 || exit 1
+
diff --git a/indexing/upmendex/source/version.h b/indexing/upmendex/source/version.h
new file mode 100644
index 0000000000..8cd1c6cd86
--- /dev/null
+++ b/indexing/upmendex/source/version.h
@@ -0,0 +1,2 @@
+#define VERSION "version " PACKAGE_VERSION
+#define BUG_ADDRESS "issue@texjp.org, tex-k@tug.org"
diff --git a/indexing/xindy/contrib/xindy-persian/README b/indexing/xindy/contrib/xindy-persian/README
index a22b487133..17f043afb1 100644
--- a/indexing/xindy/contrib/xindy-persian/README
+++ b/indexing/xindy/contrib/xindy-persian/README
@@ -1,6 +1,6 @@
________________________
The “xindy-persian” package
-v0.7b
+v0.8
The “xindy-persian” package is the Persian language
support for xindy program.
@@ -15,17 +15,16 @@ If you want to report any bugs or typos and corrections in the documentation,
or ask for any new features, or suggest any improvements, or ask any questions
about the package, then please do not send any direct emails to us; we will not
answer any direct emails. Instead please use the issue tracker:
- <https://github.com/persian-tex/xindy-persian>
+ <https://github.com/persiantex/xindy-persian>
In doing so, please always explain your issue well enough, always include
a minimal working examples showing the issue, and always choose the appropriate
label for your query (i.e. if you are reporting any bugs, choose `bug' label).
-Current version release date: 2015/12/20
+Current version release date: 2021/04/03
_________________
Vafa Khalighi
-persian-tex@tug.org
-Copyright © 2011–2015 Vafa Khalighi
+Copyright © 2011–2021 Vafa Khalighi
Distributed under the LaTeX Project Public License
It may be distributed and/or modified under the LaTeX Project Public License,
version 1.3c or higher (your choice). The latest version of
diff --git a/indexing/xindy/contrib/xindy-persian/doc/variant1-utf8-doc.tex b/indexing/xindy/contrib/xindy-persian/doc/variant1-utf8-doc.tex
new file mode 100644
index 0000000000..a7daafc79d
--- /dev/null
+++ b/indexing/xindy/contrib/xindy-persian/doc/variant1-utf8-doc.tex
@@ -0,0 +1,88 @@
+\subsection{Persian (One)}
+
+\subsubsection{Alphabet}
+\icod\fcod
+\begin{alphabet}
+آ\\
+أ\\
+ا\\
+ب\\
+پ\\
+ت\\
+ث\\
+ج\\
+چ\\
+ح\\
+خ\\
+د\\
+ذ\\
+ر\\
+ز\\
+ژ\\
+س\\
+ش\\
+ص\\
+ض\\
+ط\\
+ظ\\
+ع\\
+غ\\
+ف\\
+ق\\
+ک\\
+گ\\
+ل\\
+م\\
+ن\\
+ؤ\,و\\
+ه\\
+ئ\,ی\\
+a\,A & à\,À\\
+b\,B\\
+c\,C & ç\,Ç\\
+d\,D & ð\,Ð\\
+e\,E & é\,É & è\,È & ë\,Ë & ê\,Ê\\
+f\,F\\
+g\,G\\
+h\,H\\
+i\,I & ï\,Ï\\
+j\,J\\
+k\,K\\
+l\,L\\
+m\,M\\
+n\,N & ñ\,Ñ\\
+o\,O & ö\,Ö & ô\,Ô\\
+p\,P\\
+q\,Q\\
+r\,R\\
+s\,S\\
+t\,T\\
+u\,U\\
+v\,V\\
+w\,W\\
+x\,X\\
+y\,Y\\
+\\
+z\,Z\\
+þ\,Þ\\
+
+\end{alphabet}
+\idef\fdef
+
+\subsubsection{Ligatures}
+\begin{flushleft}
+`æ' is sorted like `a\,e', but \emph{after} it in otherwise equal words.\\
+`Æ' is sorted like `A\,e', but \emph{after} it in otherwise equal words.\\
+`œ' is sorted like `o\,e', but \emph{after} it in otherwise equal words.\\
+`Œ' is sorted like `O\,e', but \emph{after} it in otherwise equal words.
+\end{flushleft}
+
+\subsubsection{Upper-/lowercase words}
+Capitalized or uppercase words are sorted \emph{before} otherwise equal lowercase words.
+
+\subsubsection{Special characters}
+The order of special characters and letters is:
+\begin{flushleft}
+?\hspace{4mm}!\hspace{4mm}.\hspace{4mm}letters\hspace{4mm}-\hspace{4mm}'\hspace{4mm}{\hspace{4mm}}\hspace{4mm}ّ\hspace{4mm}َ\hspace{4mm}ِ\hspace{4mm}ُ\hspace{4mm}ً\hspace{4mm}ٍ\hspace{4mm}ٌ\hspace{4mm}ْ\hspace{4mm}ٔ\hspace{4mm}ء\hspace{4mm}‌\hspace{4mm}«\hspace{4mm}»\hspace{4mm}ـ\hspace{4mm}،\hspace{4mm}؛
+\end{flushleft}
+\newpage
diff --git a/indexing/xindy/contrib/xindy-persian/doc/variant2-utf8-doc.tex b/indexing/xindy/contrib/xindy-persian/doc/variant2-utf8-doc.tex
new file mode 100644
index 0000000000..9960147875
--- /dev/null
+++ b/indexing/xindy/contrib/xindy-persian/doc/variant2-utf8-doc.tex
@@ -0,0 +1,88 @@
+\subsection{Persian (Two)}
+
+\subsubsection{Alphabet}
+\icod\fcod
+\begin{alphabet}
+آ\\
+أ\\
+ا\\
+ب\\
+پ\\
+ت\\
+ث\\
+ج\\
+چ\\
+ح\\
+خ\\
+د\\
+ذ\\
+ر\\
+ز\\
+ژ\\
+س\\
+ش\\
+ص\\
+ض\\
+ط\\
+ظ\\
+ع\\
+غ\\
+ف\\
+ق\\
+ک\\
+گ\\
+ل\\
+م\\
+ن\\
+ؤ\,و\\
+ه\\
+ئ\,ی\\
+a\,A & à\,À\\
+b\,B\\
+c\,C & ç\,Ç\\
+d\,D & ð\,Ð\\
+e\,E & é\,É & è\,È & ë\,Ë & ê\,Ê\\
+f\,F\\
+g\,G\\
+h\,H\\
+i\,I & ï\,Ï\\
+j\,J\\
+k\,K\\
+l\,L\\
+m\,M\\
+n\,N & ñ\,Ñ\\
+o\,O & ö\,Ö & ô\,Ô\\
+p\,P\\
+q\,Q\\
+r\,R\\
+s\,S\\
+t\,T\\
+u\,U\\
+v\,V\\
+w\,W\\
+x\,X\\
+y\,Y\\
+\\
+z\,Z\\
+þ\,Þ\\
+
+\end{alphabet}
+\idef\fdef
+
+\subsubsection{Ligatures}
+\begin{flushleft}
+`æ' is sorted like `a\,e', but \emph{after} it in otherwise equal words.\\
+`Æ' is sorted like `A\,e', but \emph{after} it in otherwise equal words.\\
+`œ' is sorted like `o\,e', but \emph{after} it in otherwise equal words.\\
+`Œ' is sorted like `O\,e', but \emph{after} it in otherwise equal words.
+\end{flushleft}
+
+\subsubsection{Upper-/lowercase words}
+Capitalized or uppercase words are sorted \emph{before} otherwise equal lowercase words.
+
+\subsubsection{Special characters}
+The order of special characters and letters is:
+\begin{flushleft}
+?\hspace{4mm}!\hspace{4mm}.\hspace{4mm}letters\hspace{4mm}-\hspace{4mm}'\hspace{4mm}{\hspace{4mm}}\hspace{4mm}ّ\hspace{4mm}َ\hspace{4mm}ِ\hspace{4mm}ُ\hspace{4mm}ً\hspace{4mm}ٍ\hspace{4mm}ٌ\hspace{4mm}ْ\hspace{4mm}ٔ\hspace{4mm}ء\hspace{4mm}‌\hspace{4mm}«\hspace{4mm}»\hspace{4mm}ـ\hspace{4mm}،\hspace{4mm}؛
+\end{flushleft}
+\newpage
diff --git a/indexing/xindy/contrib/xindy-persian/doc/variant3-utf8-doc.tex b/indexing/xindy/contrib/xindy-persian/doc/variant3-utf8-doc.tex
new file mode 100644
index 0000000000..5c7b1fd518
--- /dev/null
+++ b/indexing/xindy/contrib/xindy-persian/doc/variant3-utf8-doc.tex
@@ -0,0 +1,88 @@
+\subsection{Persian (Three)}
+
+\subsubsection{Alphabet}
+\icod\fcod
+\begin{alphabet}
+آ\\
+أ\\
+ا\\
+ب\\
+پ\\
+ت\\
+ث\\
+ج\\
+چ\\
+ح\\
+خ\\
+د\\
+ذ\\
+ر\\
+ز\\
+ژ\\
+س\\
+ش\\
+ص\\
+ض\\
+ط\\
+ظ\\
+ع\\
+غ\\
+ف\\
+ق\\
+ک\\
+گ\\
+ل\\
+م\\
+ن\\
+ؤ\,و\\
+ه\\
+ئ\,ی\\
+a\,A & à\,À\\
+b\,B\\
+c\,C & ç\,Ç\\
+d\,D & ð\,Ð\\
+e\,E & é\,É & è\,È & ë\,Ë & ê\,Ê\\
+f\,F\\
+g\,G\\
+h\,H\\
+i\,I & ï\,Ï\\
+j\,J\\
+k\,K\\
+l\,L\\
+m\,M\\
+n\,N & ñ\,Ñ\\
+o\,O & ö\,Ö & ô\,Ô\\
+p\,P\\
+q\,Q\\
+r\,R\\
+s\,S\\
+t\,T\\
+u\,U\\
+v\,V\\
+w\,W\\
+x\,X\\
+y\,Y\\
+\\
+z\,Z\\
+þ\,Þ\\
+
+\end{alphabet}
+\idef\fdef
+
+\subsubsection{Ligatures}
+\begin{flushleft}
+`æ' is sorted like `a\,e', but \emph{after} it in otherwise equal words.\\
+`Æ' is sorted like `A\,e', but \emph{after} it in otherwise equal words.\\
+`œ' is sorted like `o\,e', but \emph{after} it in otherwise equal words.\\
+`Œ' is sorted like `O\,e', but \emph{after} it in otherwise equal words.
+\end{flushleft}
+
+\subsubsection{Upper-/lowercase words}
+Capitalized or uppercase words are sorted \emph{before} otherwise equal lowercase words.
+
+\subsubsection{Special characters}
+The order of special characters and letters is:
+\begin{flushleft}
+?\hspace{4mm}!\hspace{4mm}.\hspace{4mm}letters\hspace{4mm}-\hspace{4mm}'\hspace{4mm}{\hspace{4mm}}\hspace{4mm}ّ\hspace{4mm}َ\hspace{4mm}ِ\hspace{4mm}ُ\hspace{4mm}ً\hspace{4mm}ٍ\hspace{4mm}ٌ\hspace{4mm}ْ\hspace{4mm}ٔ\hspace{4mm}ء\hspace{4mm}‌\hspace{4mm}«\hspace{4mm}»\hspace{4mm}ـ\hspace{4mm}،\hspace{4mm}؛
+\end{flushleft}
+\newpage
diff --git a/indexing/xindy/contrib/xindy-persian/variant1-utf8-lang.xdy b/indexing/xindy/contrib/xindy-persian/persian/variant1-utf8-lang.xdy
index 94e9bed54a..94e9bed54a 100644
--- a/indexing/xindy/contrib/xindy-persian/variant1-utf8-lang.xdy
+++ b/indexing/xindy/contrib/xindy-persian/persian/variant1-utf8-lang.xdy
diff --git a/indexing/xindy/contrib/xindy-persian/variant1-utf8-test.xdy b/indexing/xindy/contrib/xindy-persian/persian/variant1-utf8-test.xdy
index 19c4790669..19c4790669 100644
--- a/indexing/xindy/contrib/xindy-persian/variant1-utf8-test.xdy
+++ b/indexing/xindy/contrib/xindy-persian/persian/variant1-utf8-test.xdy
diff --git a/indexing/xindy/contrib/xindy-persian/variant1-utf8.xdy b/indexing/xindy/contrib/xindy-persian/persian/variant1-utf8.xdy
index 8654e2b473..bfb5dcc058 100644
--- a/indexing/xindy/contrib/xindy-persian/variant1-utf8.xdy
+++ b/indexing/xindy/contrib/xindy-persian/persian/variant1-utf8.xdy
@@ -34,32 +34,32 @@
(define-letter-group "ه" :after "و" :prefixes (""))
(define-letter-group "ی" :after "ه" :prefixes (""))
(define-letter-group "A" :after "ی" :prefixes (""))
-(define-letter-group "B" :after "A" :prefixes (""))
-(define-letter-group "C" :after "B" :prefixes (""))
-(define-letter-group "D" :after "C" :prefixes (""))
-(define-letter-group "E" :after "D" :prefixes (""))
-(define-letter-group "F" :after "E" :prefixes (""))
-(define-letter-group "G" :after "F" :prefixes (""))
-(define-letter-group "H" :after "G" :prefixes (""))
-(define-letter-group "I" :after "H" :prefixes (""))
-(define-letter-group "J" :after "I" :prefixes (""))
-(define-letter-group "K" :after "J" :prefixes (""))
-(define-letter-group "L" :after "K" :prefixes (""))
-(define-letter-group "M" :after "L" :prefixes (""))
-(define-letter-group "N" :after "M" :prefixes (""))
-(define-letter-group "O" :after "N" :prefixes (""))
-(define-letter-group "P" :after "O" :prefixes (""))
-(define-letter-group "Q" :after "P" :prefixes (""))
-(define-letter-group "R" :after "Q" :prefixes (""))
-(define-letter-group "S" :after "R" :prefixes (""))
-(define-letter-group "T" :after "S" :prefixes (""))
-(define-letter-group "U" :after "T" :prefixes (""))
-(define-letter-group "V" :after "U" :prefixes (""))
-(define-letter-group "W" :after "V" :prefixes (""))
-(define-letter-group "X" :after "W" :prefixes (""))
-(define-letter-group "Y" :after "X" :prefixes (""))
-(define-letter-group "Z" :after "Y" :prefixes (""))
-(define-letter-group "Þ" :after "Z" :prefixes (""))
+(define-letter-group "B" :after "A" :prefixes (""))
+(define-letter-group "C" :after "B" :prefixes (""))
+(define-letter-group "D" :after "C" :prefixes (""))
+(define-letter-group "E" :after "D" :prefixes (""))
+(define-letter-group "F" :after "E" :prefixes (""))
+(define-letter-group "G" :after "F" :prefixes (""))
+(define-letter-group "H" :after "G" :prefixes (""))
+(define-letter-group "I" :after "H" :prefixes (""))
+(define-letter-group "J" :after "I" :prefixes (""))
+(define-letter-group "K" :after "J" :prefixes (""))
+(define-letter-group "L" :after "K" :prefixes (""))
+(define-letter-group "M" :after "L" :prefixes (""))
+(define-letter-group "N" :after "M" :prefixes (""))
+(define-letter-group "O" :after "N" :prefixes (""))
+(define-letter-group "P" :after "O" :prefixes (""))
+(define-letter-group "Q" :after "P" :prefixes (""))
+(define-letter-group "R" :after "Q" :prefixes (""))
+(define-letter-group "S" :after "R" :prefixes (""))
+(define-letter-group "T" :after "S" :prefixes (""))
+(define-letter-group "U" :after "T" :prefixes ("Ă"))
+(define-letter-group "V" :after "U" :prefixes ("ć"))
+(define-letter-group "W" :after "V" :prefixes ("Ĉ"))
+(define-letter-group "X" :after "W" :prefixes ("č"))
+(define-letter-group "Y" :after "X" :prefixes ("ď"))
+(define-letter-group "Z" :after "Y" :prefixes ("Ē"))
+(define-letter-group "Þ" :after "Z" :prefixes ("Ę"))
(define-rule-set "pe-alphabetize"
@@ -99,419 +99,421 @@
("ه" "" :string)
("ی" "" :string)
("ئ" "" :string)
- ("à" "" :string)
("À" "" :string)
- ("Æ" "" :string)
- ("æ" "" :string)
- ("ç" "" :string)
- ("Ç" "" :string)
- ("Ð" "" :string)
- ("ð" "" :string)
- ("È" "" :string)
- ("ë" "" :string)
- ("ê" "" :string)
- ("é" "" :string)
- ("É" "" :string)
- ("è" "" :string)
- ("Ê" "" :string)
- ("Ë" "" :string)
- ("Ï" "" :string)
- ("ï" "" :string)
- ("ñ" "" :string)
- ("Ñ" "" :string)
- ("Ô" "" :string)
- ("Ö" "" :string)
- ("ö" "" :string)
- ("ô" "" :string)
- ("Œ" "" :string)
- ("œ" "" :string)
- ("þ" "" :string)
- ("Þ" "" :string)
+ ("à" "" :string)
+ ("æ" "" :string)
+ ("Æ" "" :string)
+ ("Ç" "" :string)
+ ("ç" "" :string)
+ ("ð" "" :string)
+ ("Ð" "" :string)
+ ("Ë" "" :string)
+ ("È" "" :string)
+ ("ê" "" :string)
+ ("é" "" :string)
+ ("è" "" :string)
+ ("É" "" :string)
+ ("Ê" "" :string)
+ ("ë" "" :string)
+ ("Ï" "" :string)
+ ("ï" "" :string)
+ ("Ñ" "" :string)
+ ("ñ" "" :string)
+ ("Ö" "" :string)
+ ("ö" "" :string)
+ ("ô" "" :string)
+ ("Ô" "" :string)
+ ("œ" "" :string)
+ ("Œ" "" :string)
+ ("þ" "Ę" :string)
+ ("Þ" "Ę" :string)
("A" "" :string)
("a" "" :string)
- ("B" "" :string)
- ("b" "" :string)
- ("c" "" :string)
- ("C" "" :string)
- ("D" "" :string)
- ("d" "" :string)
- ("E" "" :string)
- ("e" "" :string)
- ("F" "" :string)
- ("f" "" :string)
- ("G" "" :string)
- ("g" "" :string)
- ("H" "" :string)
- ("h" "" :string)
- ("I" "" :string)
- ("i" "" :string)
- ("J" "" :string)
- ("j" "" :string)
- ("K" "" :string)
- ("k" "" :string)
- ("L" "" :string)
- ("l" "" :string)
- ("M" "" :string)
- ("m" "" :string)
- ("n" "" :string)
- ("N" "" :string)
- ("O" "" :string)
- ("o" "" :string)
- ("P" "" :string)
- ("p" "" :string)
- ("Q" "" :string)
- ("q" "" :string)
- ("R" "" :string)
- ("r" "" :string)
- ("S" "" :string)
- ("s" "" :string)
- ("T" "" :string)
- ("t" "" :string)
- ("U" "" :string)
- ("u" "" :string)
- ("v" "" :string)
- ("V" "" :string)
- ("w" "" :string)
- ("W" "" :string)
- ("x" "" :string)
- ("X" "" :string)
- ("Y" "" :string)
- ("y" "" :string)
- ("Z" "" :string)
- ("z" "" :string)
+ ("b" "" :string)
+ ("B" "" :string)
+ ("C" "" :string)
+ ("c" "" :string)
+ ("d" "" :string)
+ ("D" "" :string)
+ ("E" "" :string)
+ ("e" "" :string)
+ ("F" "" :string)
+ ("f" "" :string)
+ ("G" "" :string)
+ ("g" "" :string)
+ ("h" "" :string)
+ ("H" "" :string)
+ ("I" "" :string)
+ ("i" "" :string)
+ ("j" "" :string)
+ ("J" "" :string)
+ ("k" "" :string)
+ ("K" "" :string)
+ ("l" "" :string)
+ ("L" "" :string)
+ ("M" "" :string)
+ ("m" "" :string)
+ ("N" "" :string)
+ ("n" "" :string)
+ ("O" "" :string)
+ ("o" "" :string)
+ ("P" "" :string)
+ ("p" "" :string)
+ ("Q" "" :string)
+ ("q" "" :string)
+ ("R" "" :string)
+ ("r" "" :string)
+ ("s" "" :string)
+ ("S" "" :string)
+ ("t" "" :string)
+ ("T" "" :string)
+ ("u" "Ă" :string)
+ ("U" "Ă" :string)
+ ("v" "ć" :string)
+ ("V" "ć" :string)
+ ("W" "Ĉ" :string)
+ ("w" "Ĉ" :string)
+ ("X" "č" :string)
+ ("x" "č" :string)
+ ("Y" "ď" :string)
+ ("y" "ď" :string)
+ ("Z" "Ē" :string)
+ ("z" "Ē" :string)
))
(define-rule-set "pe-resolve-diacritics"
- :rules (("پ" "" :string)
- ("س" "" :string)
- ("ه" "" :string)
- ("ذ" "" :string)
- ("ظ" "" :string)
- ("غ" "" :string)
- ("ف" "" :string)
- ("خ" "" :string)
+ :rules (("ئ" "" :string)
+ ("ژ" "" :string)
+ ("ج" "" :string)
+ ("و" "" :string)
+ ("ت" "" :string)
+ ("ؤ" "" :string)
+ ("د" "" :string)
("ع" "" :string)
- ("ب" "" :string)
- ("ز" "" :string)
+ ("ذ" "" :string)
("ث" "" :string)
- ("چ" "" :string)
("ص" "" :string)
- ("ر" "" :string)
- ("أ" "" :string)
- ("ش" "" :string)
- ("ؤ" "" :string)
- ("ق" "" :string)
- ("ئ" "" :string)
- ("ت" "" :string)
- ("ژ" "" :string)
- ("و" "" :string)
("گ" "" :string)
("ل" "" :string)
- ("ج" "" :string)
+ ("ط" "" :string)
+ ("ف" "" :string)
("ا" "" :string)
+ ("ه" "" :string)
+ ("چ" "" :string)
+ ("پ" "" :string)
+ ("س" "" :string)
+ ("ش" "" :string)
("þ" "" :string)
("ن" "" :string)
- ("د" "" :string)
- ("ط" "" :string)
- ("م" "" :string)
+ ("ظ" "" :string)
("ح" "" :string)
- ("ک" "" :string)
+ ("ز" "" :string)
("ض" "" :string)
- ("آ" "" :string)
- ("ی" "" :string)
+ ("أ" "" :string)
+ ("غ" "" :string)
("Þ" "" :string)
- ("ï" "" :string)
- ("À" "" :string)
- ("ð" "" :string)
- ("Ð" "" :string)
- ("Ñ" "" :string)
+ ("ب" "" :string)
+ ("ی" "" :string)
+ ("آ" "" :string)
+ ("ر" "" :string)
+ ("خ" "" :string)
+ ("م" "" :string)
+ ("ق" "" :string)
+ ("ک" "" :string)
("É" "" :string)
- ("à" "" :string)
+ ("ï" "" :string)
("ñ" "" :string)
- ("Ï" "" :string)
+ ("à" "" :string)
("é" "" :string)
- ("Ç" "" :string)
- ("Ö" "" :string)
+ ("Ñ" "" :string)
("ç" "" :string)
+ ("Ð" "" :string)
+ ("À" "" :string)
+ ("Ï" "" :string)
("ö" "" :string)
+ ("Ç" "" :string)
+ ("ð" "" :string)
+ ("Ö" "" :string)
+ ("Ô" "" :string)
("è" "" :string)
("ô" "" :string)
- ("Ô" "" :string)
("È" "" :string)
- ("Ë" "" :string)
("ë" "" :string)
+ ("Ë" "" :string)
("Ê" "" :string)
("ê" "" :string)
- ("æ" "" :string)
- ("Æ" "" :string)
("Œ" "" :string)
("œ" "" :string)
- ("z" "" :string)
- ("C" "" :string)
- ("r" "" :string)
- ("R" "" :string)
- ("Z" "" :string)
+ ("Æ" "" :string)
+ ("æ" "" :string)
("p" "" :string)
- ("X" "" :string)
- ("b" "" :string)
- ("s" "" :string)
- ("e" "" :string)
- ("j" "" :string)
- ("a" "" :string)
- ("P" "" :string)
- ("T" "" :string)
- ("i" "" :string)
- ("d" "" :string)
("x" "" :string)
- ("h" "" :string)
- ("J" "" :string)
- ("V" "" :string)
- ("m" "" :string)
- ("q" "" :string)
("Q" "" :string)
- ("y" "" :string)
- ("u" "" :string)
- ("g" "" :string)
- ("t" "" :string)
+ ("C" "" :string)
+ ("X" "" :string)
("o" "" :string)
- ("N" "" :string)
- ("M" "" :string)
- ("l" "" :string)
- ("D" "" :string)
+ ("K" "" :string)
+ ("g" "" :string)
+ ("V" "" :string)
+ ("z" "" :string)
+ ("J" "" :string)
("c" "" :string)
- ("A" "" :string)
- ("H" "" :string)
+ ("v" "" :string)
+ ("q" "" :string)
+ ("G" "" :string)
+ ("m" "" :string)
("U" "" :string)
+ ("E" "" :string)
+ ("R" "" :string)
+ ("y" "" :string)
+ ("d" "" :string)
+ ("O" "" :string)
+ ("a" "" :string)
("S" "" :string)
- ("v" "" :string)
+ ("i" "" :string)
("f" "" :string)
+ ("j" "" :string)
+ ("e" "" :string)
+ ("L" "" :string)
+ ("r" "" :string)
+ ("D" "" :string)
+ ("H" "" :string)
+ ("k" "" :string)
+ ("b" "" :string)
+ ("n" "" :string)
+ ("M" "" :string)
+ ("P" "" :string)
+ ("u" "" :string)
+ ("s" "" :string)
("B" "" :string)
+ ("w" "" :string)
+ ("N" "" :string)
("W" "" :string)
- ("n" "" :string)
- ("L" "" :string)
+ ("h" "" :string)
+ ("T" "" :string)
+ ("Y" "" :string)
+ ("t" "" :string)
("I" "" :string)
("F" "" :string)
- ("E" "" :string)
- ("K" "" :string)
- ("O" "" :string)
- ("G" "" :string)
- ("w" "" :string)
- ("Y" "" :string)
- ("k" "" :string)
+ ("A" "" :string)
+ ("Z" "" :string)
+ ("l" "" :string)
))
(define-rule-set "pe-resolve-case"
- :rules (("Þ" "8" :string)
- ("ی" "8" :string)
- ("È" "8" :string)
+ :rules (("Ñ" "8" :string)
+ ("Ð" "8" :string)
+ ("É" "8" :string)
("Ô" "8" :string)
- ("Ö" "8" :string)
- ("Ï" "8" :string)
- ("Ç" "8" :string)
("و" "8" :string)
- ("Ñ" "8" :string)
- ("É" "8" :string)
- ("Ð" "8" :string)
("Ê" "8" :string)
+ ("ی" "8" :string)
+ ("Ö" "8" :string)
+ ("È" "8" :string)
("Ë" "8" :string)
+ ("Ï" "8" :string)
("À" "8" :string)
+ ("Ç" "8" :string)
+ ("Þ" "8" :string)
("Œ" "89" :string)
("Æ" "89" :string)
- ("ö" "9" :string)
- ("م" "9" :string)
- ("آ" "9" :string)
- ("ض" "9" :string)
- ("ک" "9" :string)
- ("ح" "9" :string)
- ("ç" "9" :string)
+ ("ع" "9" :string)
+ ("é" "9" :string)
("د" "9" :string)
- ("ط" "9" :string)
- ("ا" "9" :string)
- ("ن" "9" :string)
- ("þ" "9" :string)
+ ("ê" "9" :string)
+ ("ث" "9" :string)
+ ("ô" "9" :string)
+ ("ç" "9" :string)
+ ("ذ" "9" :string)
("ل" "9" :string)
("گ" "9" :string)
- ("ج" "9" :string)
- ("ô" "9" :string)
- ("é" "9" :string)
- ("ئ" "9" :string)
+ ("ص" "9" :string)
+ ("ف" "9" :string)
+ ("ط" "9" :string)
("ژ" "9" :string)
- ("ê" "9" :string)
- ("ت" "9" :string)
- ("à" "9" :string)
+ ("ئ" "9" :string)
("ñ" "9" :string)
- ("ش" "9" :string)
+ ("ج" "9" :string)
+ ("ï" "9" :string)
+ ("è" "9" :string)
("ë" "9" :string)
- ("ق" "9" :string)
+ ("ت" "9" :string)
+ ("à" "9" :string)
("ؤ" "9" :string)
- ("ر" "9" :string)
- ("أ" "9" :string)
- ("ص" "9" :string)
- ("چ" "9" :string)
- ("ث" "9" :string)
- ("ð" "9" :string)
- ("ع" "9" :string)
- ("ز" "9" :string)
("ب" "9" :string)
- ("ف" "9" :string)
("خ" "9" :string)
- ("ï" "9" :string)
- ("ذ" "9" :string)
- ("غ" "9" :string)
- ("ظ" "9" :string)
- ("س" "9" :string)
- ("è" "9" :string)
+ ("ر" "9" :string)
+ ("آ" "9" :string)
+ ("ق" "9" :string)
+ ("م" "9" :string)
+ ("ک" "9" :string)
+ ("þ" "9" :string)
+ ("ش" "9" :string)
("پ" "9" :string)
+ ("س" "9" :string)
+ ("چ" "9" :string)
("ه" "9" :string)
- ("œ" "99" :string)
+ ("ا" "9" :string)
+ ("ö" "9" :string)
+ ("ظ" "9" :string)
+ ("ن" "9" :string)
+ ("ز" "9" :string)
+ ("ح" "9" :string)
+ ("ð" "9" :string)
+ ("غ" "9" :string)
+ ("أ" "9" :string)
+ ("ض" "9" :string)
("æ" "99" :string)
- ("Y" "8" :string)
- ("G" "8" :string)
- ("O" "8" :string)
- ("F" "8" :string)
- ("K" "8" :string)
+ ("œ" "99" :string)
+ ("R" "8" :string)
("E" "8" :string)
- ("L" "8" :string)
- ("I" "8" :string)
- ("W" "8" :string)
- ("B" "8" :string)
- ("H" "8" :string)
- ("A" "8" :string)
- ("S" "8" :string)
("U" "8" :string)
- ("M" "8" :string)
+ ("O" "8" :string)
+ ("S" "8" :string)
+ ("H" "8" :string)
("D" "8" :string)
- ("N" "8" :string)
+ ("L" "8" :string)
+ ("Q" "8" :string)
+ ("X" "8" :string)
+ ("C" "8" :string)
("J" "8" :string)
("V" "8" :string)
- ("Q" "8" :string)
+ ("K" "8" :string)
+ ("G" "8" :string)
+ ("Y" "8" :string)
("T" "8" :string)
- ("P" "8" :string)
- ("X" "8" :string)
- ("R" "8" :string)
+ ("W" "8" :string)
+ ("N" "8" :string)
+ ("F" "8" :string)
+ ("I" "8" :string)
("Z" "8" :string)
- ("C" "8" :string)
- ("k" "9" :string)
- ("w" "9" :string)
- ("n" "9" :string)
- ("f" "9" :string)
- ("v" "9" :string)
- ("l" "9" :string)
- ("c" "9" :string)
- ("y" "9" :string)
- ("o" "9" :string)
- ("t" "9" :string)
- ("u" "9" :string)
- ("g" "9" :string)
- ("h" "9" :string)
- ("m" "9" :string)
- ("q" "9" :string)
+ ("A" "8" :string)
+ ("M" "8" :string)
+ ("P" "8" :string)
+ ("B" "8" :string)
("d" "9" :string)
- ("x" "9" :string)
- ("a" "9" :string)
+ ("y" "9" :string)
("i" "9" :string)
+ ("f" "9" :string)
+ ("a" "9" :string)
+ ("r" "9" :string)
("e" "9" :string)
("j" "9" :string)
- ("s" "9" :string)
- ("b" "9" :string)
+ ("x" "9" :string)
("p" "9" :string)
+ ("o" "9" :string)
+ ("c" "9" :string)
("z" "9" :string)
- ("r" "9" :string)
+ ("g" "9" :string)
+ ("m" "9" :string)
+ ("q" "9" :string)
+ ("v" "9" :string)
+ ("h" "9" :string)
+ ("t" "9" :string)
+ ("l" "9" :string)
+ ("n" "9" :string)
+ ("b" "9" :string)
+ ("k" "9" :string)
+ ("s" "9" :string)
+ ("u" "9" :string)
+ ("w" "9" :string)
))
(define-rule-set "pe-ignore-special"
:rules (("‌" "" :string)
- ("ُ" "" :string)
- ("َ" "" :string)
- ("ً" "" :string)
- ("ٌ" "" :string)
- ("ٍ" "" :string)
- ("ـ" "" :string)
("ء" "" :string)
- ("»" "" :string)
("ْ" "" :string)
- ("ٔ" "" :string)
("«" "" :string)
- ("ِ" "" :string)
+ ("ٍ" "" :string)
+ ("َ" "" :string)
+ ("ُ" "" :string)
+ ("ـ" "" :string)
+ ("ٔ" "" :string)
+ ("؛" "" :string)
+ ("ً" "" :string)
("ّ" "" :string)
+ ("ٌ" "" :string)
+ ("ِ" "" :string)
+ ("،" "" :string)
+ ("»" "" :string)
+ ("}" "" :string)
("-" "" :string)
- ("!" "" :string)
("." "" :string)
("'" "" :string)
- ("{" "" :string)
("?" "" :string)
- ("}" "" :string)
+ ("{" "" :string)
+ ("!" "" :string)
))
(define-rule-set "pe-resolve-special"
:rules (("‌" "" :string)
- ("ش" "" :string)
- ("ë" "" :string)
- ("à" "" :string)
- ("ؤ" "" :string)
- ("ر" "" :string)
- ("ô" "" :string)
- ("ئ" "" :string)
- ("ژ" "" :string)
- ("Ç" "" :string)
- ("د" "" :string)
- ("ط" "" :string)
- ("Ô" "" :string)
+ ("س" "" :string)
("ا" "" :string)
- ("Ö" "" :string)
- ("þ" "" :string)
- ("ی" "" :string)
- ("Þ" "" :string)
- ("ö" "" :string)
- ("آ" "" :string)
- ("ک" "" :string)
- ("ï" "" :string)
- ("ذ" "" :string)
- ("ظ" "" :string)
- ("è" "" :string)
("ه" "" :string)
- ("ð" "" :string)
- ("ع" "" :string)
+ ("أ" "" :string)
+ ("غ" "" :string)
("ز" "" :string)
- ("ب" "" :string)
- ("Ë" "" :string)
("خ" "" :string)
- ("ص" "" :string)
- ("چ" "" :string)
- ("ñ" "" :string)
+ ("ی" "" :string)
+ ("ک" "" :string)
("ق" "" :string)
- ("أ" "" :string)
- ("ل" "" :string)
- ("گ" "" :string)
+ ("م" "" :string)
("ج" "" :string)
- ("é" "" :string)
- ("Ï" "" :string)
- ("و" "" :string)
+ ("ñ" "" :string)
+ ("è" "" :string)
+ ("ï" "" :string)
+ ("ئ" "" :string)
+ ("Ê" "" :string)
+ ("ؤ" "" :string)
("ت" "" :string)
- ("ê" "" :string)
+ ("ë" "" :string)
+ ("à" "" :string)
+ ("و" "" :string)
+ ("ث" "" :string)
("ç" "" :string)
+ ("ذ" "" :string)
+ ("Ñ" "" :string)
+ ("é" "" :string)
+ ("ع" "" :string)
+ ("ف" "" :string)
+ ("ط" "" :string)
+ ("گ" "" :string)
+ ("Ð" "" :string)
+ ("Ç" "" :string)
+ ("ö" "" :string)
+ ("ظ" "" :string)
("ن" "" :string)
- ("È" "" :string)
- ("م" "" :string)
- ("ض" "" :string)
- ("ح" "" :string)
- ("غ" "" :string)
("پ" "" :string)
- ("س" "" :string)
- ("Ê" "" :string)
- ("ف" "" :string)
+ ("ش" "" :string)
+ ("þ" "" :string)
+ ("Ï" "" :string)
+ ("چ" "" :string)
("À" "" :string)
- ("Ñ" "" :string)
+ ("ð" "" :string)
+ ("Þ" "" :string)
+ ("ض" "" :string)
+ ("ح" "" :string)
+ ("ر" "" :string)
+ ("Ö" "" :string)
+ ("آ" "" :string)
+ ("ب" "" :string)
+ ("Ë" "" :string)
+ ("È" "" :string)
("É" "" :string)
- ("ث" "" :string)
- ("Ð" "" :string)
- ("œ" "" :string)
+ ("Ô" "" :string)
+ ("ژ" "" :string)
+ ("ô" "" :string)
+ ("د" "" :string)
+ ("ê" "" :string)
+ ("ل" "" :string)
+ ("ص" "" :string)
("Æ" "" :string)
("Œ" "" :string)
+ ("œ" "" :string)
("æ" "" :string)
("ّ" "" :string)
("َ" "" :string)
@@ -526,61 +528,63 @@
("«" "" :string)
("»" "" :string)
("ـ" "" :string)
+ ("،" "" :string)
+ ("؛" "" :string)
("?" "" :string)
("!" "" :string)
("." "" :string)
- ("H" "" :string)
- ("S" "" :string)
- ("l" "" :string)
("M" "" :string)
+ ("b" "" :string)
+ ("k" "" :string)
("B" "" :string)
+ ("s" "" :string)
+ ("F" "" :string)
+ ("t" "" :string)
+ ("Y" "" :string)
("W" "" :string)
+ ("A" "" :string)
+ ("X" "" :string)
+ ("o" "" :string)
+ ("Q" "" :string)
+ ("x" "" :string)
+ ("p" "" :string)
("v" "" :string)
- ("F" "" :string)
+ ("V" "" :string)
+ ("z" "" :string)
("K" "" :string)
+ ("E" "" :string)
+ ("H" "" :string)
+ ("D" "" :string)
+ ("L" "" :string)
+ ("j" "" :string)
+ ("a" "" :string)
+ ("n" "" :string)
+ ("w" "" :string)
+ ("P" "" :string)
+ ("u" "" :string)
("I" "" :string)
- ("R" "" :string)
+ ("T" "" :string)
+ ("h" "" :string)
+ ("N" "" :string)
+ ("l" "" :string)
("Z" "" :string)
("C" "" :string)
- ("r" "" :string)
- ("s" "" :string)
- ("d" "" :string)
- ("x" "" :string)
- ("T" "" :string)
- ("P" "" :string)
- ("i" "" :string)
- ("y" "" :string)
- ("J" "" :string)
- ("q" "" :string)
("m" "" :string)
- ("A" "" :string)
- ("U" "" :string)
- ("N" "" :string)
- ("D" "" :string)
- ("c" "" :string)
- ("f" "" :string)
- ("E" "" :string)
- ("L" "" :string)
- ("n" "" :string)
- ("k" "" :string)
- ("Y" "" :string)
("G" "" :string)
+ ("q" "" :string)
+ ("J" "" :string)
+ ("c" "" :string)
+ ("g" "" :string)
("O" "" :string)
- ("w" "" :string)
- ("z" "" :string)
+ ("d" "" :string)
+ ("y" "" :string)
+ ("R" "" :string)
+ ("U" "" :string)
+ ("r" "" :string)
("e" "" :string)
- ("j" "" :string)
- ("b" "" :string)
- ("p" "" :string)
- ("X" "" :string)
- ("a" "" :string)
- ("t" "" :string)
- ("o" "" :string)
- ("u" "" :string)
- ("g" "" :string)
- ("h" "" :string)
- ("V" "" :string)
- ("Q" "" :string)
+ ("f" "" :string)
+ ("S" "" :string)
+ ("i" "" :string)
("-" "" :string)
("'" "" :string)
("{" "" :string)
diff --git a/indexing/xindy/contrib/xindy-persian/variant2-utf8-lang.xdy b/indexing/xindy/contrib/xindy-persian/persian/variant2-utf8-lang.xdy
index 54153d737f..54153d737f 100644
--- a/indexing/xindy/contrib/xindy-persian/variant2-utf8-lang.xdy
+++ b/indexing/xindy/contrib/xindy-persian/persian/variant2-utf8-lang.xdy
diff --git a/indexing/xindy/contrib/xindy-persian/variant2-utf8-test.xdy b/indexing/xindy/contrib/xindy-persian/persian/variant2-utf8-test.xdy
index d6d1878f59..d6d1878f59 100644
--- a/indexing/xindy/contrib/xindy-persian/variant2-utf8-test.xdy
+++ b/indexing/xindy/contrib/xindy-persian/persian/variant2-utf8-test.xdy
diff --git a/indexing/xindy/contrib/xindy-persian/variant2-utf8.xdy b/indexing/xindy/contrib/xindy-persian/persian/variant2-utf8.xdy
index e0e73044c4..ce90a86b19 100644
--- a/indexing/xindy/contrib/xindy-persian/variant2-utf8.xdy
+++ b/indexing/xindy/contrib/xindy-persian/persian/variant2-utf8.xdy
@@ -35,32 +35,32 @@
(define-letter-group "ه" :after "و" :prefixes (""))
(define-letter-group "ی" :after "ه" :prefixes (""))
(define-letter-group "A" :after "ی" :prefixes (""))
-(define-letter-group "B" :after "A" :prefixes (""))
-(define-letter-group "C" :after "B" :prefixes (""))
-(define-letter-group "D" :after "C" :prefixes (""))
-(define-letter-group "E" :after "D" :prefixes (""))
-(define-letter-group "F" :after "E" :prefixes (""))
-(define-letter-group "G" :after "F" :prefixes (""))
-(define-letter-group "H" :after "G" :prefixes (""))
-(define-letter-group "I" :after "H" :prefixes (""))
-(define-letter-group "J" :after "I" :prefixes (""))
-(define-letter-group "K" :after "J" :prefixes (""))
-(define-letter-group "L" :after "K" :prefixes (""))
-(define-letter-group "M" :after "L" :prefixes (""))
-(define-letter-group "N" :after "M" :prefixes (""))
-(define-letter-group "O" :after "N" :prefixes (""))
-(define-letter-group "P" :after "O" :prefixes (""))
-(define-letter-group "Q" :after "P" :prefixes (""))
-(define-letter-group "R" :after "Q" :prefixes (""))
-(define-letter-group "S" :after "R" :prefixes (""))
-(define-letter-group "T" :after "S" :prefixes (""))
-(define-letter-group "U" :after "T" :prefixes (""))
-(define-letter-group "V" :after "U" :prefixes (""))
-(define-letter-group "W" :after "V" :prefixes (""))
-(define-letter-group "X" :after "W" :prefixes (""))
-(define-letter-group "Y" :after "X" :prefixes (""))
-(define-letter-group "Z" :after "Y" :prefixes (""))
-(define-letter-group "Þ" :after "Z" :prefixes (""))
+(define-letter-group "B" :after "A" :prefixes (""))
+(define-letter-group "C" :after "B" :prefixes (""))
+(define-letter-group "D" :after "C" :prefixes (""))
+(define-letter-group "E" :after "D" :prefixes (""))
+(define-letter-group "F" :after "E" :prefixes (""))
+(define-letter-group "G" :after "F" :prefixes (""))
+(define-letter-group "H" :after "G" :prefixes (""))
+(define-letter-group "I" :after "H" :prefixes (""))
+(define-letter-group "J" :after "I" :prefixes (""))
+(define-letter-group "K" :after "J" :prefixes (""))
+(define-letter-group "L" :after "K" :prefixes (""))
+(define-letter-group "M" :after "L" :prefixes (""))
+(define-letter-group "N" :after "M" :prefixes (""))
+(define-letter-group "O" :after "N" :prefixes (""))
+(define-letter-group "P" :after "O" :prefixes (""))
+(define-letter-group "Q" :after "P" :prefixes (""))
+(define-letter-group "R" :after "Q" :prefixes (""))
+(define-letter-group "S" :after "R" :prefixes (""))
+(define-letter-group "T" :after "S" :prefixes (""))
+(define-letter-group "U" :after "T" :prefixes ("Ă"))
+(define-letter-group "V" :after "U" :prefixes ("ć"))
+(define-letter-group "W" :after "V" :prefixes ("Ĉ"))
+(define-letter-group "X" :after "W" :prefixes ("č"))
+(define-letter-group "Y" :after "X" :prefixes ("ď"))
+(define-letter-group "Z" :after "Y" :prefixes ("Ē"))
+(define-letter-group "Þ" :after "Z" :prefixes ("Ę"))
(define-rule-set "pe-alphabetize"
@@ -98,422 +98,424 @@
("ؤ" "" :string)
("و" "" :string)
("ه" "" :string)
- ("ئ" "" :string)
("ی" "" :string)
+ ("ئ" "" :string)
("À" "" :string)
("à" "" :string)
- ("Æ" "" :string)
- ("æ" "" :string)
- ("Ç" "" :string)
- ("ç" "" :string)
- ("ð" "" :string)
- ("Ð" "" :string)
- ("è" "" :string)
- ("Ë" "" :string)
- ("É" "" :string)
- ("ë" "" :string)
- ("È" "" :string)
- ("Ê" "" :string)
- ("ê" "" :string)
- ("é" "" :string)
- ("ï" "" :string)
- ("Ï" "" :string)
- ("Ñ" "" :string)
- ("ñ" "" :string)
- ("ô" "" :string)
- ("ö" "" :string)
- ("Ö" "" :string)
- ("Ô" "" :string)
- ("œ" "" :string)
- ("Œ" "" :string)
- ("Þ" "" :string)
- ("þ" "" :string)
- ("a" "" :string)
+ ("Æ" "" :string)
+ ("æ" "" :string)
+ ("ç" "" :string)
+ ("Ç" "" :string)
+ ("Ð" "" :string)
+ ("ð" "" :string)
+ ("É" "" :string)
+ ("ê" "" :string)
+ ("Ë" "" :string)
+ ("È" "" :string)
+ ("ë" "" :string)
+ ("Ê" "" :string)
+ ("è" "" :string)
+ ("é" "" :string)
+ ("Ï" "" :string)
+ ("ï" "" :string)
+ ("Ñ" "" :string)
+ ("ñ" "" :string)
+ ("ö" "" :string)
+ ("Ö" "" :string)
+ ("ô" "" :string)
+ ("Ô" "" :string)
+ ("Œ" "" :string)
+ ("œ" "" :string)
+ ("Þ" "Ę" :string)
+ ("þ" "Ę" :string)
("A" "" :string)
- ("b" "" :string)
- ("B" "" :string)
- ("C" "" :string)
- ("c" "" :string)
- ("d" "" :string)
- ("D" "" :string)
- ("e" "" :string)
- ("E" "" :string)
- ("F" "" :string)
- ("f" "" :string)
- ("g" "" :string)
- ("G" "" :string)
- ("H" "" :string)
- ("h" "" :string)
- ("i" "" :string)
- ("I" "" :string)
- ("J" "" :string)
- ("j" "" :string)
- ("K" "" :string)
- ("k" "" :string)
- ("l" "" :string)
- ("L" "" :string)
- ("m" "" :string)
- ("M" "" :string)
- ("n" "" :string)
- ("N" "" :string)
- ("O" "" :string)
- ("o" "" :string)
- ("P" "" :string)
- ("p" "" :string)
- ("q" "" :string)
- ("Q" "" :string)
- ("R" "" :string)
- ("r" "" :string)
- ("s" "" :string)
- ("S" "" :string)
- ("T" "" :string)
- ("t" "" :string)
- ("u" "" :string)
- ("U" "" :string)
- ("V" "" :string)
- ("v" "" :string)
- ("w" "" :string)
- ("W" "" :string)
- ("X" "" :string)
- ("x" "" :string)
- ("Y" "" :string)
- ("y" "" :string)
- ("Z" "" :string)
- ("z" "" :string)
+ ("a" "" :string)
+ ("B" "" :string)
+ ("b" "" :string)
+ ("c" "" :string)
+ ("C" "" :string)
+ ("d" "" :string)
+ ("D" "" :string)
+ ("E" "" :string)
+ ("e" "" :string)
+ ("F" "" :string)
+ ("f" "" :string)
+ ("g" "" :string)
+ ("G" "" :string)
+ ("h" "" :string)
+ ("H" "" :string)
+ ("I" "" :string)
+ ("i" "" :string)
+ ("J" "" :string)
+ ("j" "" :string)
+ ("K" "" :string)
+ ("k" "" :string)
+ ("l" "" :string)
+ ("L" "" :string)
+ ("m" "" :string)
+ ("M" "" :string)
+ ("N" "" :string)
+ ("n" "" :string)
+ ("O" "" :string)
+ ("o" "" :string)
+ ("P" "" :string)
+ ("p" "" :string)
+ ("Q" "" :string)
+ ("q" "" :string)
+ ("R" "" :string)
+ ("r" "" :string)
+ ("s" "" :string)
+ ("S" "" :string)
+ ("t" "" :string)
+ ("T" "" :string)
+ ("u" "Ă" :string)
+ ("U" "Ă" :string)
+ ("V" "ć" :string)
+ ("v" "ć" :string)
+ ("W" "Ĉ" :string)
+ ("w" "Ĉ" :string)
+ ("x" "č" :string)
+ ("X" "č" :string)
+ ("Y" "ď" :string)
+ ("y" "ď" :string)
+ ("Z" "Ē" :string)
+ ("z" "Ē" :string)
))
(define-rule-set "pe-resolve-diacritics"
- :rules (("Þ" "" :string)
- ("ؤ" "" :string)
- ("ل" "" :string)
- ("ع" "" :string)
- ("ر" "" :string)
- ("ط" "" :string)
- ("ض" "" :string)
- ("ت" "" :string)
- ("ق" "" :string)
- ("پ" "" :string)
- ("ح" "" :string)
- ("ئ" "" :string)
- ("آ" "" :string)
- ("ف" "" :string)
- ("د" "" :string)
- ("چ" "" :string)
+ :rules (("پ" "" :string)
("خ" "" :string)
("ش" "" :string)
- ("گ" "" :string)
- ("ج" "" :string)
- ("ن" "" :string)
- ("ظ" "" :string)
("م" "" :string)
- ("ز" "" :string)
- ("ژ" "" :string)
("ه" "" :string)
+ ("ظ" "" :string)
+ ("ؤ" "" :string)
+ ("گ" "" :string)
+ ("ل" "" :string)
+ ("ر" "" :string)
+ ("ا" "" :string)
+ ("ق" "" :string)
("ب" "" :string)
- ("و" "" :string)
- ("غ" "" :string)
- ("ص" "" :string)
+ ("ج" "" :string)
("ذ" "" :string)
("ث" "" :string)
- ("أ" "" :string)
+ ("þ" "" :string)
+ ("ع" "" :string)
+ ("و" "" :string)
+ ("ص" "" :string)
+ ("ط" "" :string)
+ ("Þ" "" :string)
+ ("چ" "" :string)
("ک" "" :string)
- ("ا" "" :string)
- ("ی" "" :string)
("س" "" :string)
- ("þ" "" :string)
- ("ö" "" :string)
- ("É" "" :string)
- ("à" "" :string)
- ("Ñ" "" :string)
- ("À" "" :string)
+ ("ز" "" :string)
+ ("آ" "" :string)
+ ("ی" "" :string)
+ ("ض" "" :string)
+ ("ت" "" :string)
+ ("ئ" "" :string)
+ ("أ" "" :string)
+ ("د" "" :string)
+ ("غ" "" :string)
+ ("ف" "" :string)
+ ("ح" "" :string)
+ ("ژ" "" :string)
+ ("ن" "" :string)
("ï" "" :string)
("é" "" :string)
+ ("É" "" :string)
+ ("ñ" "" :string)
("Ð" "" :string)
("ç" "" :string)
- ("Ç" "" :string)
+ ("Ñ" "" :string)
+ ("à" "" :string)
+ ("Ö" "" :string)
("Ï" "" :string)
+ ("ö" "" :string)
("ð" "" :string)
- ("Ö" "" :string)
- ("ñ" "" :string)
+ ("À" "" :string)
+ ("Ç" "" :string)
("ô" "" :string)
- ("È" "" :string)
("è" "" :string)
("Ô" "" :string)
+ ("È" "" :string)
("ë" "" :string)
("Ë" "" :string)
- ("ê" "" :string)
("Ê" "" :string)
- ("Æ" "" :string)
+ ("ê" "" :string)
("œ" "" :string)
("æ" "" :string)
+ ("Æ" "" :string)
("Œ" "" :string)
- ("d" "" :string)
- ("i" "" :string)
- ("K" "" :string)
- ("I" "" :string)
- ("l" "" :string)
- ("M" "" :string)
+ ("L" "" :string)
+ ("z" "" :string)
+ ("y" "" :string)
("D" "" :string)
- ("O" "" :string)
+ ("X" "" :string)
+ ("k" "" :string)
+ ("f" "" :string)
+ ("S" "" :string)
+ ("v" "" :string)
+ ("M" "" :string)
("a" "" :string)
- ("J" "" :string)
("U" "" :string)
- ("H" "" :string)
- ("F" "" :string)
- ("V" "" :string)
- ("v" "" :string)
("T" "" :string)
- ("q" "" :string)
- ("u" "" :string)
- ("y" "" :string)
- ("m" "" :string)
- ("s" "" :string)
- ("n" "" :string)
- ("Y" "" :string)
- ("e" "" :string)
+ ("H" "" :string)
("p" "" :string)
- ("W" "" :string)
- ("B" "" :string)
- ("c" "" :string)
- ("z" "" :string)
- ("Q" "" :string)
- ("h" "" :string)
- ("r" "" :string)
+ ("e" "" :string)
("C" "" :string)
- ("A" "" :string)
- ("x" "" :string)
- ("G" "" :string)
- ("o" "" :string)
- ("S" "" :string)
- ("k" "" :string)
("t" "" :string)
- ("w" "" :string)
- ("E" "" :string)
- ("f" "" :string)
- ("g" "" :string)
- ("L" "" :string)
- ("N" "" :string)
+ ("r" "" :string)
+ ("b" "" :string)
+ ("h" "" :string)
("R" "" :string)
+ ("i" "" :string)
+ ("I" "" :string)
+ ("F" "" :string)
+ ("W" "" :string)
+ ("O" "" :string)
+ ("J" "" :string)
("j" "" :string)
- ("X" "" :string)
+ ("d" "" :string)
+ ("E" "" :string)
+ ("c" "" :string)
+ ("m" "" :string)
+ ("g" "" :string)
+ ("G" "" :string)
+ ("B" "" :string)
+ ("K" "" :string)
+ ("l" "" :string)
+ ("A" "" :string)
+ ("o" "" :string)
+ ("u" "" :string)
+ ("Y" "" :string)
+ ("Q" "" :string)
("Z" "" :string)
- ("b" "" :string)
+ ("n" "" :string)
+ ("q" "" :string)
("P" "" :string)
+ ("s" "" :string)
+ ("x" "" :string)
+ ("N" "" :string)
+ ("V" "" :string)
+ ("w" "" :string)
))
(define-rule-set "pe-resolve-case"
- :rules (("À" "8" :string)
- ("Ë" "8" :string)
- ("È" "8" :string)
- ("Ñ" "8" :string)
- ("É" "8" :string)
- ("Þ" "8" :string)
+ :rules (("Ô" "8" :string)
("Ê" "8" :string)
+ ("و" "8" :string)
+ ("È" "8" :string)
("Ö" "8" :string)
+ ("Ë" "8" :string)
("ی" "8" :string)
+ ("À" "8" :string)
("Ï" "8" :string)
- ("و" "8" :string)
("Ç" "8" :string)
+ ("É" "8" :string)
("Ð" "8" :string)
- ("Ô" "8" :string)
- ("Æ" "89" :string)
+ ("Ñ" "8" :string)
+ ("Þ" "8" :string)
("Œ" "89" :string)
+ ("Æ" "89" :string)
+ ("ذ" "9" :string)
+ ("ب" "9" :string)
+ ("ج" "9" :string)
+ ("ق" "9" :string)
+ ("é" "9" :string)
+ ("è" "9" :string)
+ ("ث" "9" :string)
+ ("ع" "9" :string)
+ ("þ" "9" :string)
("ش" "9" :string)
+ ("ë" "9" :string)
("خ" "9" :string)
- ("چ" "9" :string)
- ("ظ" "9" :string)
- ("è" "9" :string)
- ("ج" "9" :string)
- ("ن" "9" :string)
- ("گ" "9" :string)
- ("آ" "9" :string)
- ("د" "9" :string)
- ("ف" "9" :string)
- ("ئ" "9" :string)
- ("ï" "9" :string)
- ("ح" "9" :string)
("پ" "9" :string)
- ("ق" "9" :string)
+ ("م" "9" :string)
+ ("ï" "9" :string)
+ ("ؤ" "9" :string)
+ ("گ" "9" :string)
+ ("ه" "9" :string)
+ ("ظ" "9" :string)
+ ("ا" "9" :string)
+ ("ر" "9" :string)
+ ("ل" "9" :string)
("ô" "9" :string)
- ("ë" "9" :string)
- ("ط" "9" :string)
+ ("ک" "9" :string)
+ ("س" "9" :string)
+ ("ز" "9" :string)
("à" "9" :string)
- ("ض" "9" :string)
+ ("أ" "9" :string)
+ ("ئ" "9" :string)
("ت" "9" :string)
- ("ع" "9" :string)
- ("ل" "9" :string)
- ("ر" "9" :string)
+ ("آ" "9" :string)
+ ("ض" "9" :string)
+ ("ح" "9" :string)
("ö" "9" :string)
- ("ؤ" "9" :string)
- ("ê" "9" :string)
- ("س" "9" :string)
- ("ñ" "9" :string)
- ("þ" "9" :string)
- ("ا" "9" :string)
- ("أ" "9" :string)
- ("ک" "9" :string)
- ("ث" "9" :string)
("ð" "9" :string)
- ("ص" "9" :string)
("غ" "9" :string)
- ("ذ" "9" :string)
- ("ب" "9" :string)
- ("ç" "9" :string)
- ("ز" "9" :string)
+ ("د" "9" :string)
+ ("ف" "9" :string)
+ ("ن" "9" :string)
+ ("ê" "9" :string)
("ژ" "9" :string)
- ("م" "9" :string)
- ("ه" "9" :string)
- ("é" "9" :string)
+ ("ص" "9" :string)
+ ("ñ" "9" :string)
+ ("ط" "9" :string)
+ ("چ" "9" :string)
+ ("ç" "9" :string)
("œ" "99" :string)
("æ" "99" :string)
- ("Y" "8" :string)
- ("V" "8" :string)
- ("F" "8" :string)
("T" "8" :string)
- ("O" "8" :string)
("H" "8" :string)
("U" "8" :string)
- ("J" "8" :string)
+ ("C" "8" :string)
+ ("R" "8" :string)
+ ("L" "8" :string)
+ ("X" "8" :string)
+ ("D" "8" :string)
("M" "8" :string)
- ("I" "8" :string)
+ ("S" "8" :string)
+ ("A" "8" :string)
("K" "8" :string)
- ("D" "8" :string)
- ("R" "8" :string)
- ("P" "8" :string)
+ ("Y" "8" :string)
+ ("Q" "8" :string)
("Z" "8" :string)
- ("X" "8" :string)
("N" "8" :string)
- ("L" "8" :string)
+ ("P" "8" :string)
+ ("V" "8" :string)
+ ("F" "8" :string)
+ ("W" "8" :string)
+ ("J" "8" :string)
+ ("O" "8" :string)
+ ("I" "8" :string)
("E" "8" :string)
("G" "8" :string)
- ("A" "8" :string)
- ("S" "8" :string)
- ("C" "8" :string)
- ("Q" "8" :string)
- ("W" "8" :string)
("B" "8" :string)
+ ("t" "9" :string)
("e" "9" :string)
- ("n" "9" :string)
- ("s" "9" :string)
+ ("p" "9" :string)
+ ("b" "9" :string)
+ ("r" "9" :string)
+ ("i" "9" :string)
+ ("h" "9" :string)
+ ("z" "9" :string)
("y" "9" :string)
- ("m" "9" :string)
- ("u" "9" :string)
- ("q" "9" :string)
("v" "9" :string)
+ ("k" "9" :string)
+ ("f" "9" :string)
("a" "9" :string)
+ ("o" "9" :string)
+ ("u" "9" :string)
("l" "9" :string)
- ("d" "9" :string)
- ("i" "9" :string)
- ("j" "9" :string)
- ("b" "9" :string)
- ("g" "9" :string)
- ("w" "9" :string)
- ("t" "9" :string)
- ("f" "9" :string)
+ ("q" "9" :string)
+ ("n" "9" :string)
+ ("s" "9" :string)
("x" "9" :string)
- ("k" "9" :string)
- ("o" "9" :string)
- ("r" "9" :string)
- ("h" "9" :string)
+ ("w" "9" :string)
+ ("j" "9" :string)
+ ("m" "9" :string)
+ ("d" "9" :string)
("c" "9" :string)
- ("z" "9" :string)
- ("p" "9" :string)
+ ("g" "9" :string)
))
(define-rule-set "pe-ignore-special"
:rules (("‌" "" :string)
+ ("ْ" "" :string)
("ِ" "" :string)
+ ("،" "" :string)
+ ("«" "" :string)
("ـ" "" :string)
- ("َ" "" :string)
- ("ٌ" "" :string)
("ّ" "" :string)
- ("ٍ" "" :string)
+ ("ٔ" "" :string)
("ُ" "" :string)
- ("ْ" "" :string)
- ("ء" "" :string)
("»" "" :string)
- ("ٔ" "" :string)
+ ("ء" "" :string)
+ ("ٌ" "" :string)
+ ("ٍ" "" :string)
("ً" "" :string)
- ("«" "" :string)
- ("{" "" :string)
+ ("؛" "" :string)
+ ("َ" "" :string)
("." "" :string)
- ("?" "" :string)
+ ("'" "" :string)
("-" "" :string)
+ ("{" "" :string)
("!" "" :string)
- ("'" "" :string)
+ ("?" "" :string)
("}" "" :string)
))
(define-rule-set "pe-resolve-special"
:rules (("‌" "" :string)
- ("Ô" "" :string)
- ("Ð" "" :string)
- ("ç" "" :string)
- ("ز" "" :string)
- ("ه" "" :string)
- ("Ç" "" :string)
- ("غ" "" :string)
- ("ص" "" :string)
- ("ذ" "" :string)
- ("ث" "" :string)
- ("ð" "" :string)
- ("Ö" "" :string)
- ("س" "" :string)
- ("þ" "" :string)
- ("ê" "" :string)
- ("Ê" "" :string)
- ("ع" "" :string)
- ("ö" "" :string)
- ("ë" "" :string)
("É" "" :string)
+ ("Þ" "" :string)
+ ("Ñ" "" :string)
+ ("چ" "" :string)
("à" "" :string)
- ("ت" "" :string)
- ("È" "" :string)
- ("ô" "" :string)
- ("پ" "" :string)
+ ("س" "" :string)
+ ("أ" "" :string)
("Ë" "" :string)
- ("ئ" "" :string)
- ("آ" "" :string)
- ("د" "" :string)
- ("ف" "" :string)
- ("ش" "" :string)
- ("چ" "" :string)
+ ("Ï" "" :string)
+ ("À" "" :string)
+ ("ö" "" :string)
("خ" "" :string)
- ("ج" "" :string)
- ("ن" "" :string)
- ("é" "" :string)
+ ("پ" "" :string)
("م" "" :string)
- ("ژ" "" :string)
+ ("ظ" "" :string)
+ ("گ" "" :string)
+ ("ô" "" :string)
+ ("ا" "" :string)
+ ("ق" "" :string)
+ ("ذ" "" :string)
+ ("ج" "" :string)
("ب" "" :string)
+ ("é" "" :string)
+ ("Ô" "" :string)
+ ("è" "" :string)
+ ("ث" "" :string)
("و" "" :string)
- ("Ï" "" :string)
- ("ا" "" :string)
- ("ک" "" :string)
- ("أ" "" :string)
- ("ی" "" :string)
+ ("ص" "" :string)
("ñ" "" :string)
- ("ؤ" "" :string)
- ("Þ" "" :string)
- ("ل" "" :string)
- ("ر" "" :string)
- ("Ñ" "" :string)
+ ("Ð" "" :string)
("ط" "" :string)
+ ("ç" "" :string)
+ ("ز" "" :string)
+ ("ک" "" :string)
+ ("È" "" :string)
+ ("ت" "" :string)
+ ("آ" "" :string)
+ ("ی" "" :string)
("ض" "" :string)
- ("ق" "" :string)
- ("À" "" :string)
+ ("ئ" "" :string)
+ ("Ö" "" :string)
+ ("ف" "" :string)
+ ("غ" "" :string)
+ ("د" "" :string)
("ح" "" :string)
+ ("ð" "" :string)
+ ("Ç" "" :string)
+ ("ن" "" :string)
+ ("ê" "" :string)
+ ("ژ" "" :string)
+ ("ë" "" :string)
+ ("ش" "" :string)
("ï" "" :string)
- ("ظ" "" :string)
- ("è" "" :string)
- ("گ" "" :string)
- ("Œ" "" :string)
- ("œ" "" :string)
+ ("ه" "" :string)
+ ("ؤ" "" :string)
+ ("ر" "" :string)
+ ("ل" "" :string)
+ ("Ê" "" :string)
+ ("ع" "" :string)
+ ("þ" "" :string)
("æ" "" :string)
+ ("Œ" "" :string)
("Æ" "" :string)
+ ("œ" "" :string)
("ّ" "" :string)
("َ" "" :string)
("ِ" "" :string)
@@ -527,61 +529,63 @@
("«" "" :string)
("»" "" :string)
("ـ" "" :string)
+ ("،" "" :string)
+ ("؛" "" :string)
("?" "" :string)
("!" "" :string)
("." "" :string)
+ ("j" "" :string)
+ ("J" "" :string)
+ ("W" "" :string)
("c" "" :string)
- ("p" "" :string)
- ("Q" "" :string)
- ("C" "" :string)
- ("r" "" :string)
- ("x" "" :string)
- ("k" "" :string)
+ ("E" "" :string)
+ ("d" "" :string)
+ ("m" "" :string)
+ ("G" "" :string)
+ ("l" "" :string)
("o" "" :string)
+ ("Z" "" :string)
+ ("n" "" :string)
+ ("Q" "" :string)
("w" "" :string)
+ ("D" "" :string)
+ ("z" "" :string)
+ ("k" "" :string)
+ ("M" "" :string)
+ ("v" "" :string)
+ ("T" "" :string)
+ ("e" "" :string)
+ ("p" "" :string)
("t" "" :string)
- ("N" "" :string)
+ ("r" "" :string)
("R" "" :string)
- ("j" "" :string)
- ("Z" "" :string)
- ("P" "" :string)
- ("d" "" :string)
+ ("h" "" :string)
("I" "" :string)
- ("M" "" :string)
- ("l" "" :string)
- ("a" "" :string)
- ("U" "" :string)
+ ("O" "" :string)
("F" "" :string)
- ("v" "" :string)
- ("T" "" :string)
- ("Y" "" :string)
- ("z" "" :string)
+ ("g" "" :string)
("B" "" :string)
- ("W" "" :string)
- ("h" "" :string)
+ ("K" "" :string)
+ ("u" "" :string)
("A" "" :string)
- ("G" "" :string)
+ ("Y" "" :string)
+ ("q" "" :string)
+ ("x" "" :string)
+ ("s" "" :string)
+ ("P" "" :string)
+ ("N" "" :string)
+ ("V" "" :string)
+ ("L" "" :string)
+ ("y" "" :string)
+ ("X" "" :string)
("S" "" :string)
("f" "" :string)
- ("E" "" :string)
- ("g" "" :string)
- ("L" "" :string)
+ ("a" "" :string)
+ ("H" "" :string)
+ ("U" "" :string)
+ ("C" "" :string)
("b" "" :string)
- ("X" "" :string)
("i" "" :string)
- ("K" "" :string)
- ("D" "" :string)
- ("O" "" :string)
- ("H" "" :string)
- ("J" "" :string)
- ("V" "" :string)
- ("q" "" :string)
- ("u" "" :string)
- ("y" "" :string)
- ("m" "" :string)
- ("s" "" :string)
- ("n" "" :string)
- ("e" "" :string)
("-" "" :string)
("'" "" :string)
("{" "" :string)
diff --git a/indexing/xindy/contrib/xindy-persian/variant3-utf8-lang.xdy b/indexing/xindy/contrib/xindy-persian/persian/variant3-utf8-lang.xdy
index 7f44812017..7f44812017 100644
--- a/indexing/xindy/contrib/xindy-persian/variant3-utf8-lang.xdy
+++ b/indexing/xindy/contrib/xindy-persian/persian/variant3-utf8-lang.xdy
diff --git a/indexing/xindy/contrib/xindy-persian/variant3-utf8-test.xdy b/indexing/xindy/contrib/xindy-persian/persian/variant3-utf8-test.xdy
index ad7cbf91dd..ad7cbf91dd 100644
--- a/indexing/xindy/contrib/xindy-persian/variant3-utf8-test.xdy
+++ b/indexing/xindy/contrib/xindy-persian/persian/variant3-utf8-test.xdy
diff --git a/indexing/xindy/contrib/xindy-persian/variant3-utf8.xdy b/indexing/xindy/contrib/xindy-persian/persian/variant3-utf8.xdy
index b611539a13..90048616d8 100644
--- a/indexing/xindy/contrib/xindy-persian/variant3-utf8.xdy
+++ b/indexing/xindy/contrib/xindy-persian/persian/variant3-utf8.xdy
@@ -34,32 +34,32 @@
(define-letter-group "ه" :after "و" :prefixes (""))
(define-letter-group "ی" :after "ه" :prefixes (""))
(define-letter-group "A" :after "ی" :prefixes (""))
-(define-letter-group "B" :after "A" :prefixes (""))
-(define-letter-group "C" :after "B" :prefixes (""))
-(define-letter-group "D" :after "C" :prefixes (""))
-(define-letter-group "E" :after "D" :prefixes (""))
-(define-letter-group "F" :after "E" :prefixes (""))
-(define-letter-group "G" :after "F" :prefixes (""))
-(define-letter-group "H" :after "G" :prefixes (""))
-(define-letter-group "I" :after "H" :prefixes (""))
-(define-letter-group "J" :after "I" :prefixes (""))
-(define-letter-group "K" :after "J" :prefixes (""))
-(define-letter-group "L" :after "K" :prefixes (""))
-(define-letter-group "M" :after "L" :prefixes (""))
-(define-letter-group "N" :after "M" :prefixes (""))
-(define-letter-group "O" :after "N" :prefixes (""))
-(define-letter-group "P" :after "O" :prefixes (""))
-(define-letter-group "Q" :after "P" :prefixes (""))
-(define-letter-group "R" :after "Q" :prefixes (""))
-(define-letter-group "S" :after "R" :prefixes (""))
-(define-letter-group "T" :after "S" :prefixes (""))
-(define-letter-group "U" :after "T" :prefixes (""))
-(define-letter-group "V" :after "U" :prefixes (""))
-(define-letter-group "W" :after "V" :prefixes (""))
-(define-letter-group "X" :after "W" :prefixes (""))
-(define-letter-group "Y" :after "X" :prefixes (""))
-(define-letter-group "Z" :after "Y" :prefixes (""))
-(define-letter-group "Þ" :after "Z" :prefixes (""))
+(define-letter-group "B" :after "A" :prefixes (""))
+(define-letter-group "C" :after "B" :prefixes (""))
+(define-letter-group "D" :after "C" :prefixes (""))
+(define-letter-group "E" :after "D" :prefixes (""))
+(define-letter-group "F" :after "E" :prefixes (""))
+(define-letter-group "G" :after "F" :prefixes (""))
+(define-letter-group "H" :after "G" :prefixes (""))
+(define-letter-group "I" :after "H" :prefixes (""))
+(define-letter-group "J" :after "I" :prefixes (""))
+(define-letter-group "K" :after "J" :prefixes (""))
+(define-letter-group "L" :after "K" :prefixes (""))
+(define-letter-group "M" :after "L" :prefixes (""))
+(define-letter-group "N" :after "M" :prefixes (""))
+(define-letter-group "O" :after "N" :prefixes (""))
+(define-letter-group "P" :after "O" :prefixes (""))
+(define-letter-group "Q" :after "P" :prefixes (""))
+(define-letter-group "R" :after "Q" :prefixes (""))
+(define-letter-group "S" :after "R" :prefixes (""))
+(define-letter-group "T" :after "S" :prefixes (""))
+(define-letter-group "U" :after "T" :prefixes ("Ă"))
+(define-letter-group "V" :after "U" :prefixes ("ć"))
+(define-letter-group "W" :after "V" :prefixes ("Ĉ"))
+(define-letter-group "X" :after "W" :prefixes ("č"))
+(define-letter-group "Y" :after "X" :prefixes ("ď"))
+(define-letter-group "Z" :after "Y" :prefixes ("Ē"))
+(define-letter-group "Þ" :after "Z" :prefixes ("Ę"))
(define-rule-set "pe-alphabetize"
@@ -94,425 +94,427 @@
("ل" "" :string)
("م" "" :string)
("ن" "" :string)
- ("و" "" :string)
("ؤ" "" :string)
+ ("و" "" :string)
("ه" "" :string)
- ("ئ" "" :string)
("ی" "" :string)
- ("à" "" :string)
+ ("ئ" "" :string)
("À" "" :string)
- ("æ" "" :string)
- ("Æ" "" :string)
- ("ç" "" :string)
- ("Ç" "" :string)
- ("Ð" "" :string)
- ("ð" "" :string)
- ("ê" "" :string)
- ("è" "" :string)
- ("ë" "" :string)
- ("É" "" :string)
- ("é" "" :string)
- ("Ë" "" :string)
- ("È" "" :string)
- ("Ê" "" :string)
- ("ï" "" :string)
- ("Ï" "" :string)
- ("ñ" "" :string)
- ("Ñ" "" :string)
- ("Ô" "" :string)
- ("ô" "" :string)
- ("ö" "" :string)
- ("Ö" "" :string)
- ("Œ" "" :string)
- ("œ" "" :string)
- ("Þ" "" :string)
- ("þ" "" :string)
- ("A" "" :string)
+ ("à" "" :string)
+ ("æ" "" :string)
+ ("Æ" "" :string)
+ ("Ç" "" :string)
+ ("ç" "" :string)
+ ("ð" "" :string)
+ ("Ð" "" :string)
+ ("é" "" :string)
+ ("ë" "" :string)
+ ("ê" "" :string)
+ ("Ê" "" :string)
+ ("É" "" :string)
+ ("È" "" :string)
+ ("è" "" :string)
+ ("Ë" "" :string)
+ ("Ï" "" :string)
+ ("ï" "" :string)
+ ("Ñ" "" :string)
+ ("ñ" "" :string)
+ ("ö" "" :string)
+ ("Ö" "" :string)
+ ("Ô" "" :string)
+ ("ô" "" :string)
+ ("œ" "" :string)
+ ("Œ" "" :string)
+ ("Þ" "Ę" :string)
+ ("þ" "Ę" :string)
("a" "" :string)
- ("b" "" :string)
- ("B" "" :string)
- ("c" "" :string)
- ("C" "" :string)
- ("d" "" :string)
- ("D" "" :string)
- ("e" "" :string)
- ("E" "" :string)
- ("F" "" :string)
- ("f" "" :string)
- ("G" "" :string)
- ("g" "" :string)
- ("h" "" :string)
- ("H" "" :string)
- ("I" "" :string)
- ("i" "" :string)
- ("J" "" :string)
- ("j" "" :string)
- ("K" "" :string)
- ("k" "" :string)
- ("L" "" :string)
- ("l" "" :string)
- ("M" "" :string)
- ("m" "" :string)
- ("n" "" :string)
- ("N" "" :string)
- ("O" "" :string)
- ("o" "" :string)
- ("P" "" :string)
- ("p" "" :string)
- ("Q" "" :string)
- ("q" "" :string)
- ("r" "" :string)
- ("R" "" :string)
- ("s" "" :string)
- ("S" "" :string)
- ("t" "" :string)
- ("T" "" :string)
- ("u" "" :string)
- ("U" "" :string)
- ("V" "" :string)
- ("v" "" :string)
- ("w" "" :string)
- ("W" "" :string)
- ("X" "" :string)
- ("x" "" :string)
- ("y" "" :string)
- ("Y" "" :string)
- ("Z" "" :string)
- ("z" "" :string)
+ ("A" "" :string)
+ ("B" "" :string)
+ ("b" "" :string)
+ ("c" "" :string)
+ ("C" "" :string)
+ ("d" "" :string)
+ ("D" "" :string)
+ ("e" "" :string)
+ ("E" "" :string)
+ ("F" "" :string)
+ ("f" "" :string)
+ ("G" "" :string)
+ ("g" "" :string)
+ ("H" "" :string)
+ ("h" "" :string)
+ ("i" "" :string)
+ ("I" "" :string)
+ ("J" "" :string)
+ ("j" "" :string)
+ ("k" "" :string)
+ ("K" "" :string)
+ ("l" "" :string)
+ ("L" "" :string)
+ ("M" "" :string)
+ ("m" "" :string)
+ ("N" "" :string)
+ ("n" "" :string)
+ ("o" "" :string)
+ ("O" "" :string)
+ ("p" "" :string)
+ ("P" "" :string)
+ ("Q" "" :string)
+ ("q" "" :string)
+ ("R" "" :string)
+ ("r" "" :string)
+ ("s" "" :string)
+ ("S" "" :string)
+ ("T" "" :string)
+ ("t" "" :string)
+ ("u" "Ă" :string)
+ ("U" "Ă" :string)
+ ("v" "ć" :string)
+ ("V" "ć" :string)
+ ("W" "Ĉ" :string)
+ ("w" "Ĉ" :string)
+ ("X" "č" :string)
+ ("x" "č" :string)
+ ("Y" "ď" :string)
+ ("y" "ď" :string)
+ ("z" "Ē" :string)
+ ("Z" "Ē" :string)
))
(define-rule-set "pe-resolve-diacritics"
- :rules (("پ" "" :string)
- ("آ" "" :string)
- ("ئ" "" :string)
+ :rules (("ط" "" :string)
+ ("ص" "" :string)
("ی" "" :string)
- ("ه" "" :string)
- ("و" "" :string)
- ("ل" "" :string)
("م" "" :string)
- ("ن" "" :string)
- ("ؤ" "" :string)
("د" "" :string)
- ("ظ" "" :string)
- ("ض" "" :string)
- ("ث" "" :string)
- ("ق" "" :string)
- ("ذ" "" :string)
- ("س" "" :string)
- ("ج" "" :string)
- ("ع" "" :string)
("ژ" "" :string)
+ ("ل" "" :string)
+ ("أ" "" :string)
+ ("ز" "" :string)
("خ" "" :string)
- ("گ" "" :string)
- ("þ" "" :string)
+ ("ئ" "" :string)
("ر" "" :string)
+ ("ت" "" :string)
+ ("þ" "" :string)
+ ("ک" "" :string)
+ ("ؤ" "" :string)
+ ("ج" "" :string)
+ ("ن" "" :string)
+ ("ق" "" :string)
("ا" "" :string)
- ("ح" "" :string)
- ("ب" "" :string)
- ("ز" "" :string)
- ("ش" "" :string)
+ ("ض" "" :string)
+ ("ف" "" :string)
+ ("ظ" "" :string)
+ ("آ" "" :string)
+ ("ذ" "" :string)
+ ("ث" "" :string)
+ ("پ" "" :string)
+ ("س" "" :string)
("غ" "" :string)
- ("أ" "" :string)
("چ" "" :string)
- ("ک" "" :string)
- ("ف" "" :string)
- ("ط" "" :string)
- ("ت" "" :string)
+ ("ه" "" :string)
("Þ" "" :string)
- ("ص" "" :string)
+ ("ب" "" :string)
+ ("گ" "" :string)
+ ("و" "" :string)
+ ("ع" "" :string)
+ ("ش" "" :string)
+ ("ح" "" :string)
+ ("É" "" :string)
+ ("Ç" "" :string)
+ ("à" "" :string)
+ ("ç" "" :string)
("ð" "" :string)
- ("Ï" "" :string)
("Ð" "" :string)
- ("Ñ" "" :string)
- ("Ö" "" :string)
+ ("À" "" :string)
+ ("Ï" "" :string)
("ï" "" :string)
("é" "" :string)
("ö" "" :string)
- ("Ç" "" :string)
- ("à" "" :string)
- ("ç" "" :string)
- ("É" "" :string)
- ("À" "" :string)
+ ("Ñ" "" :string)
("ñ" "" :string)
- ("È" "" :string)
- ("è" "" :string)
+ ("Ö" "" :string)
("ô" "" :string)
("Ô" "" :string)
+ ("È" "" :string)
+ ("è" "" :string)
("Ë" "" :string)
("ë" "" :string)
("Ê" "" :string)
("ê" "" :string)
- ("œ" "" :string)
+ ("Œ" "" :string)
("Æ" "" :string)
+ ("œ" "" :string)
("æ" "" :string)
- ("Œ" "" :string)
- ("k" "" :string)
- ("R" "" :string)
+ ("V" "" :string)
+ ("X" "" :string)
+ ("Z" "" :string)
+ ("Q" "" :string)
("T" "" :string)
- ("o" "" :string)
- ("U" "" :string)
- ("D" "" :string)
- ("j" "" :string)
("z" "" :string)
- ("a" "" :string)
- ("p" "" :string)
+ ("H" "" :string)
+ ("j" "" :string)
+ ("m" "" :string)
+ ("o" "" :string)
+ ("W" "" :string)
("B" "" :string)
- ("f" "" :string)
- ("E" "" :string)
+ ("x" "" :string)
+ ("h" "" :string)
("g" "" :string)
- ("S" "" :string)
- ("K" "" :string)
- ("l" "" :string)
- ("v" "" :string)
- ("u" "" :string)
- ("i" "" :string)
+ ("w" "" :string)
+ ("G" "" :string)
+ ("f" "" :string)
+ ("q" "" :string)
("t" "" :string)
- ("O" "" :string)
- ("P" "" :string)
+ ("K" "" :string)
+ ("S" "" :string)
("s" "" :string)
+ ("r" "" :string)
+ ("P" "" :string)
+ ("b" "" :string)
+ ("O" "" :string)
+ ("F" "" :string)
("Y" "" :string)
- ("Z" "" :string)
+ ("i" "" :string)
+ ("a" "" :string)
+ ("R" "" :string)
+ ("p" "" :string)
+ ("I" "" :string)
+ ("e" "" :string)
("d" "" :string)
- ("q" "" :string)
+ ("k" "" :string)
+ ("U" "" :string)
+ ("u" "" :string)
("c" "" :string)
- ("J" "" :string)
- ("C" "" :string)
- ("m" "" :string)
+ ("N" "" :string)
+ ("l" "" :string)
+ ("M" "" :string)
("A" "" :string)
- ("F" "" :string)
- ("Q" "" :string)
("y" "" :string)
- ("r" "" :string)
- ("n" "" :string)
- ("M" "" :string)
- ("W" "" :string)
- ("x" "" :string)
- ("G" "" :string)
- ("N" "" :string)
- ("X" "" :string)
- ("w" "" :string)
- ("e" "" :string)
+ ("E" "" :string)
("L" "" :string)
- ("h" "" :string)
- ("b" "" :string)
- ("H" "" :string)
- ("I" "" :string)
- ("V" "" :string)
+ ("C" "" :string)
+ ("n" "" :string)
+ ("D" "" :string)
+ ("J" "" :string)
+ ("v" "" :string)
))
(define-rule-set "pe-resolve-case"
- :rules (("ی" "8" :string)
+ :rules (("Ñ" "8" :string)
("Ï" "8" :string)
- ("Ë" "8" :string)
- ("È" "8" :string)
- ("Ð" "8" :string)
+ ("À" "8" :string)
("و" "8" :string)
- ("Ñ" "8" :string)
("Ö" "8" :string)
+ ("Þ" "8" :string)
+ ("È" "8" :string)
+ ("Ô" "8" :string)
+ ("ی" "8" :string)
+ ("Ç" "8" :string)
("Ê" "8" :string)
("É" "8" :string)
- ("À" "8" :string)
- ("Ç" "8" :string)
- ("Ô" "8" :string)
- ("Þ" "8" :string)
- ("Æ" "89" :string)
+ ("Ë" "8" :string)
+ ("Ð" "8" :string)
("Œ" "89" :string)
- ("ئ" "9" :string)
- ("ه" "9" :string)
- ("ð" "9" :string)
+ ("Æ" "89" :string)
+ ("ث" "9" :string)
+ ("ذ" "9" :string)
("پ" "9" :string)
+ ("ö" "9" :string)
("آ" "9" :string)
- ("د" "9" :string)
+ ("ف" "9" :string)
+ ("é" "9" :string)
("ظ" "9" :string)
+ ("ë" "9" :string)
+ ("ï" "9" :string)
("ض" "9" :string)
- ("ث" "9" :string)
- ("é" "9" :string)
+ ("ا" "9" :string)
("ق" "9" :string)
- ("ذ" "9" :string)
- ("ö" "9" :string)
- ("س" "9" :string)
- ("ل" "9" :string)
- ("ï" "9" :string)
- ("م" "9" :string)
+ ("ج" "9" :string)
("ن" "9" :string)
+ ("ک" "9" :string)
("ؤ" "9" :string)
- ("à" "9" :string)
- ("ا" "9" :string)
- ("ر" "9" :string)
("ح" "9" :string)
- ("ç" "9" :string)
- ("ب" "9" :string)
- ("ز" "9" :string)
("ش" "9" :string)
- ("غ" "9" :string)
- ("ج" "9" :string)
+ ("ê" "9" :string)
("ع" "9" :string)
- ("ژ" "9" :string)
- ("خ" "9" :string)
("گ" "9" :string)
- ("þ" "9" :string)
- ("ط" "9" :string)
+ ("ب" "9" :string)
+ ("ه" "9" :string)
+ ("چ" "9" :string)
("ñ" "9" :string)
- ("ت" "9" :string)
+ ("غ" "9" :string)
+ ("س" "9" :string)
+ ("ژ" "9" :string)
+ ("ل" "9" :string)
+ ("ð" "9" :string)
+ ("د" "9" :string)
+ ("م" "9" :string)
+ ("à" "9" :string)
+ ("ç" "9" :string)
+ ("ô" "9" :string)
("ص" "9" :string)
- ("أ" "9" :string)
- ("چ" "9" :string)
- ("ê" "9" :string)
+ ("ط" "9" :string)
+ ("þ" "9" :string)
+ ("ت" "9" :string)
+ ("ر" "9" :string)
+ ("ئ" "9" :string)
+ ("خ" "9" :string)
+ ("ز" "9" :string)
("è" "9" :string)
- ("ô" "9" :string)
- ("ک" "9" :string)
- ("ف" "9" :string)
- ("ë" "9" :string)
- ("œ" "99" :string)
+ ("أ" "9" :string)
("æ" "99" :string)
+ ("œ" "99" :string)
+ ("U" "8" :string)
+ ("I" "8" :string)
+ ("R" "8" :string)
+ ("Y" "8" :string)
+ ("F" "8" :string)
("D" "8" :string)
- ("B" "8" :string)
+ ("J" "8" :string)
+ ("C" "8" :string)
+ ("L" "8" :string)
("E" "8" :string)
- ("R" "8" :string)
+ ("A" "8" :string)
+ ("M" "8" :string)
+ ("N" "8" :string)
+ ("G" "8" :string)
+ ("B" "8" :string)
+ ("W" "8" :string)
+ ("H" "8" :string)
+ ("Q" "8" :string)
("T" "8" :string)
- ("U" "8" :string)
+ ("X" "8" :string)
+ ("Z" "8" :string)
+ ("V" "8" :string)
("O" "8" :string)
("P" "8" :string)
("S" "8" :string)
("K" "8" :string)
- ("J" "8" :string)
- ("C" "8" :string)
- ("A" "8" :string)
- ("Z" "8" :string)
- ("Y" "8" :string)
- ("X" "8" :string)
- ("L" "8" :string)
- ("H" "8" :string)
- ("I" "8" :string)
- ("V" "8" :string)
- ("F" "8" :string)
- ("Q" "8" :string)
- ("M" "8" :string)
- ("W" "8" :string)
- ("G" "8" :string)
- ("N" "8" :string)
- ("j" "9" :string)
- ("z" "9" :string)
- ("a" "9" :string)
- ("p" "9" :string)
- ("f" "9" :string)
- ("k" "9" :string)
- ("o" "9" :string)
- ("l" "9" :string)
- ("v" "9" :string)
("u" "9" :string)
- ("t" "9" :string)
+ ("k" "9" :string)
+ ("d" "9" :string)
+ ("e" "9" :string)
+ ("p" "9" :string)
("i" "9" :string)
- ("s" "9" :string)
- ("g" "9" :string)
- ("q" "9" :string)
+ ("a" "9" :string)
+ ("v" "9" :string)
+ ("n" "9" :string)
+ ("y" "9" :string)
("c" "9" :string)
- ("m" "9" :string)
- ("d" "9" :string)
+ ("l" "9" :string)
("w" "9" :string)
- ("e" "9" :string)
("h" "9" :string)
+ ("g" "9" :string)
+ ("x" "9" :string)
+ ("o" "9" :string)
+ ("z" "9" :string)
+ ("j" "9" :string)
+ ("m" "9" :string)
("b" "9" :string)
- ("y" "9" :string)
("r" "9" :string)
- ("n" "9" :string)
- ("x" "9" :string)
+ ("s" "9" :string)
+ ("t" "9" :string)
+ ("q" "9" :string)
+ ("f" "9" :string)
))
(define-rule-set "pe-ignore-special"
:rules (("‌" "" :string)
- ("ٔ" "" :string)
- ("ء" "" :string)
- ("ُ" "" :string)
- ("ٍ" "" :string)
- ("ْ" "" :string)
- ("ّ" "" :string)
("«" "" :string)
- ("ً" "" :string)
- ("ٌ" "" :string)
- ("َ" "" :string)
("ـ" "" :string)
- ("»" "" :string)
+ ("ّ" "" :string)
("ِ" "" :string)
- ("{" "" :string)
+ ("ْ" "" :string)
+ ("؛" "" :string)
+ ("َ" "" :string)
+ ("ٍ" "" :string)
+ ("»" "" :string)
+ ("ٔ" "" :string)
+ ("ٌ" "" :string)
+ ("ً" "" :string)
+ ("،" "" :string)
+ ("ء" "" :string)
+ ("ُ" "" :string)
+ ("'" "" :string)
("." "" :string)
- ("-" "" :string)
("!" "" :string)
- ("'" "" :string)
- ("}" "" :string)
("?" "" :string)
+ ("-" "" :string)
+ ("}" "" :string)
+ ("{" "" :string)
))
(define-rule-set "pe-resolve-special"
:rules (("‌" "" :string)
- ("س" "" :string)
- ("é" "" :string)
- ("Ë" "" :string)
- ("ن" "" :string)
- ("م" "" :string)
- ("ï" "" :string)
- ("È" "" :string)
- ("ئ" "" :string)
- ("Ï" "" :string)
- ("آ" "" :string)
- ("پ" "" :string)
- ("ص" "" :string)
- ("ت" "" :string)
+ ("غ" "" :string)
("ñ" "" :string)
- ("Ô" "" :string)
- ("ë" "" :string)
- ("ف" "" :string)
- ("è" "" :string)
- ("ô" "" :string)
- ("ک" "" :string)
- ("أ" "" :string)
- ("ش" "" :string)
- ("ز" "" :string)
- ("ح" "" :string)
- ("ç" "" :string)
- ("É" "" :string)
+ ("چ" "" :string)
+ ("ب" "" :string)
+ ("ه" "" :string)
+ ("و" "" :string)
+ ("ع" "" :string)
("گ" "" :string)
- ("þ" "" :string)
- ("خ" "" :string)
- ("Ç" "" :string)
+ ("ê" "" :string)
+ ("ش" "" :string)
+ ("ن" "" :string)
("ج" "" :string)
+ ("À" "" :string)
+ ("Ï" "" :string)
+ ("ؤ" "" :string)
+ ("ا" "" :string)
("ق" "" :string)
- ("ذ" "" :string)
+ ("ظ" "" :string)
+ ("é" "" :string)
+ ("ف" "" :string)
+ ("ï" "" :string)
+ ("ë" "" :string)
+ ("Ñ" "" :string)
("ö" "" :string)
+ ("پ" "" :string)
+ ("ذ" "" :string)
("ث" "" :string)
+ ("è" "" :string)
+ ("خ" "" :string)
+ ("Ð" "" :string)
+ ("ر" "" :string)
+ ("ئ" "" :string)
+ ("þ" "" :string)
+ ("ت" "" :string)
+ ("É" "" :string)
("د" "" :string)
- ("ظ" "" :string)
+ ("م" "" :string)
+ ("س" "" :string)
+ ("Þ" "" :string)
+ ("Ö" "" :string)
+ ("ح" "" :string)
+ ("ک" "" :string)
("ض" "" :string)
+ ("آ" "" :string)
+ ("ز" "" :string)
+ ("أ" "" :string)
+ ("Ë" "" :string)
+ ("ص" "" :string)
("Ê" "" :string)
- ("ؤ" "" :string)
- ("Ñ" "" :string)
- ("Ö" "" :string)
- ("Ð" "" :string)
- ("و" "" :string)
- ("ل" "" :string)
- ("ه" "" :string)
- ("ی" "" :string)
- ("ð" "" :string)
- ("Þ" "" :string)
("ط" "" :string)
- ("ê" "" :string)
- ("چ" "" :string)
- ("غ" "" :string)
- ("ب" "" :string)
- ("À" "" :string)
+ ("Ô" "" :string)
+ ("ô" "" :string)
+ ("Ç" "" :string)
+ ("ی" "" :string)
("à" "" :string)
- ("ر" "" :string)
- ("ا" "" :string)
- ("ع" "" :string)
+ ("ç" "" :string)
("ژ" "" :string)
- ("Œ" "" :string)
+ ("ل" "" :string)
+ ("È" "" :string)
+ ("ð" "" :string)
+ ("œ" "" :string)
("æ" "" :string)
("Æ" "" :string)
- ("œ" "" :string)
+ ("Œ" "" :string)
("ّ" "" :string)
("َ" "" :string)
("ِ" "" :string)
@@ -526,61 +528,63 @@
("«" "" :string)
("»" "" :string)
("ـ" "" :string)
+ ("،" "" :string)
+ ("؛" "" :string)
("?" "" :string)
("!" "" :string)
("." "" :string)
- ("P" "" :string)
- ("t" "" :string)
- ("v" "" :string)
+ ("A" "" :string)
+ ("E" "" :string)
+ ("C" "" :string)
+ ("n" "" :string)
+ ("D" "" :string)
+ ("R" "" :string)
+ ("p" "" :string)
+ ("a" "" :string)
+ ("i" "" :string)
+ ("I" "" :string)
("u" "" :string)
- ("l" "" :string)
+ ("U" "" :string)
+ ("f" "" :string)
+ ("q" "" :string)
("K" "" :string)
("S" "" :string)
- ("B" "" :string)
- ("f" "" :string)
- ("p" "" :string)
- ("D" "" :string)
+ ("r" "" :string)
+ ("V" "" :string)
("j" "" :string)
- ("a" "" :string)
+ ("W" "" :string)
("o" "" :string)
- ("k" "" :string)
- ("I" "" :string)
- ("H" "" :string)
- ("e" "" :string)
- ("X" "" :string)
- ("G" "" :string)
- ("N" "" :string)
+ ("T" "" :string)
("x" "" :string)
+ ("w" "" :string)
+ ("g" "" :string)
+ ("h" "" :string)
("y" "" :string)
- ("n" "" :string)
+ ("N" "" :string)
+ ("l" "" :string)
+ ("c" "" :string)
("M" "" :string)
+ ("L" "" :string)
+ ("v" "" :string)
+ ("J" "" :string)
("F" "" :string)
- ("C" "" :string)
- ("q" "" :string)
+ ("Y" "" :string)
+ ("k" "" :string)
+ ("e" "" :string)
+ ("d" "" :string)
("s" "" :string)
- ("i" "" :string)
+ ("t" "" :string)
+ ("P" "" :string)
("O" "" :string)
- ("g" "" :string)
- ("E" "" :string)
- ("z" "" :string)
- ("T" "" :string)
- ("U" "" :string)
- ("R" "" :string)
- ("V" "" :string)
- ("h" "" :string)
("b" "" :string)
- ("w" "" :string)
- ("L" "" :string)
- ("W" "" :string)
- ("Q" "" :string)
- ("r" "" :string)
- ("A" "" :string)
- ("J" "" :string)
- ("m" "" :string)
- ("c" "" :string)
- ("d" "" :string)
- ("Y" "" :string)
("Z" "" :string)
+ ("X" "" :string)
+ ("m" "" :string)
+ ("z" "" :string)
+ ("H" "" :string)
+ ("Q" "" :string)
+ ("B" "" :string)
+ ("G" "" :string)
("-" "" :string)
("'" "" :string)
("{" "" :string)
diff --git a/indexing/xindy/contrib/xindy-persian/source/make-rules.pl b/indexing/xindy/contrib/xindy-persian/source/make-rules.pl
new file mode 100644
index 0000000000..c0f2f9c5ed
--- /dev/null
+++ b/indexing/xindy/contrib/xindy-persian/source/make-rules.pl
@@ -0,0 +1,269 @@
+#!/usr/bin/perl
+
+open XDY,">$ARGV[0].xdy";
+open DOC,">$ARGV[0]-doc.tex";
+open TEST,">$ARGV[0].raw";
+open TESTXDY,">$ARGV[0]-test.xdy";
+
+print XDY ";; Rules for xindy; generated by make-rules.pl\n";
+print XDY ";; language: $language\n\n";
+
+if ($prefix) {
+ $prefix = $prefix . '-';
+}
+
+print TESTXDY "(require \"lang/$ARGV[0].xdy\")\n";
+print TESTXDY "(define-sort-rule-orientations (forward backward forward forward))\n";
+print TESTXDY "(use-rule-set :run 0\n";
+print TESTXDY " :rule-set (\"".$prefix."alphabetize\" \"".$prefix."ignore-special\"))\n";
+print TESTXDY "(use-rule-set :run 1\n";
+print TESTXDY " :rule-set (\"".$prefix."resolve-diacritics\" \"".$prefix."ignore-special\"))\n";
+print TESTXDY "(use-rule-set :run 2\n";
+print TESTXDY " :rule-set (\"".$prefix."resolve-case\" \"".$prefix."ignore-special\"))\n";
+print TESTXDY "(use-rule-set :run 3\n";
+print TESTXDY " :rule-set (\"".$prefix."resolve-special\"))\n";
+close TESTXDY;
+
+$fn = "test.xdy";
+! -f $fn && -f "$INC[0]/$fn" and $fn = "$INC[0]/$fn";
+-f $fn or die "$fn: $!";
+system("cat $fn >> $ARGV[0]-test.xdy");
+
+$begin = 128;
+# $begin = 97 if ($script eq "cyrillic");
+# $begin = 150 if ($script eq "latin");
+# $begin = 65 if ($script eq "greek");
+
+if (!$begin) {
+ $begin = 65;
+}
+
+print "Alphabet has " . @{$alphabet} . " elements.\n";
+
+for ($i = 0; $i < @{$alphabet}; $i++) {
+ if (defined($alphabet->[$i][0])) {
+ $letter = $alphabet->[$i][0];
+ $lout = $letter;
+ $lout =~ s/\~/~~/g;
+ $lout =~ s/\"/~\"/g;
+ $token = chr($i+$begin);
+ $token =~ s/\~/~~/g;
+ $token =~ s/\"/~\"/g;
+ if ($after ne $lout) {
+ print XDY "\"))\n" if ($i);
+ print XDY "(define-letter-group \"$lout\"";
+ print XDY " :after \"$after\"" if ($i);
+ print XDY " :prefixes (\"";
+ } else {
+ print XDY "\" \"";
+ }
+ print XDY "$token";
+ $after = $lout;
+ }
+}
+
+print XDY "\"))\n\n";
+
+$ref = \$i;
+$offset = $begin;
+$f = 1;
+make_tokens();
+
+# print test raw file
+# alphabet
+ $p = 1;
+ foreach $letter (keys %tokens) {
+ print TEST "(indexentry :key (\"$letter\") :locref \"$p\")\n";
+ $p++;
+ }
+# end
+
+process_ligatures();
+
+print_tokens($prefix . "alphabetize");
+
+$ref = \$j;
+$offset = 161;
+$f = 1;
+make_tokens();
+
+for ($i = 0; $i < @{$ligatures}; $i++) {
+ if ($ligatures->[$i][1] eq "before") {
+ $token = chr(161);
+ } else {
+ $token = chr(255);
+ }
+ foreach $ligature_variant (@{$ligatures->[$i][0]}) {
+ $tokens{$ligature_variant} = $token;
+ }
+}
+
+print_tokens($prefix . "resolve-diacritics");
+
+$ref = \$k;
+$offset = 48;
+$f = 1;
+if ($sortcase eq "Aa") {
+ $offset = 57;
+ $f = -1;
+}
+
+make_tokens();
+
+process_ligatures();
+
+print_tokens($prefix . "resolve-case");
+
+foreach $character (@special) {
+ $tokens{$character} = "" unless ($character eq "letters");
+}
+
+print_tokens($prefix . "ignore-special");
+
+$offset = 161;
+$f = 1;
+
+for ($l = 0; $l < @special; $l++) {
+ if (@special[$l] eq "letters") {
+ $ref = \$l;
+ make_tokens();
+ process_ligatures();
+ } else {
+ $token = chr($l+$offset);
+ $tokens{@special[$l]} = $token;
+ }
+}
+
+print_tokens($prefix . "resolve-special");
+
+# print doc:
+# alphabet
+ for ($i = 0; $i < @{$alphabet}; $i++) {
+ for ($j = 1; $j < @{$alphabet->[$i]}; $j++) {
+ push @l,join("\\,", (@{$alphabet->[$i][$j]}));
+ }
+ if ((@l)) {
+ push @m, join(" & ", (@l));
+ }
+# push @m, "`".$alphabet->[$i][0]."':\\>".join(" -- ", (@l));
+ @l = ();
+ }
+ print DOC "\\subsection{$language";
+ print DOC " ($variant)" if ($variant);
+ print DOC "}\n\n";
+ print DOC "\\subsubsection{Alphabet}\n";
+ print DOC "\\icod\\fcod\n";
+ print DOC "\\begin{alphabet}\n";
+ print DOC join("\\\\\n", (@m));
+ print DOC "\n\\end{alphabet}\n";
+ print DOC "\\idef\\fdef\n";
+
+# ligatures
+ print DOC "\n\\subsubsection{Ligatures}\n";
+ print DOC "\\begin{flushleft}\n";
+ print DOC "None.\n" unless @{$ligatures};
+ @m = ();
+ for ($i = 0; $i < @{$ligatures}; $i++) {
+ for ($j = 0; $j < @{$ligatures->[$i][0]}; $j++) {
+ push @m, "`$ligatures->[$i][0][$j]' is sorted like `" .
+ join("\\,", (@{$ligatures->[$i][2][$j]})) .
+ "', but \\emph{$ligatures->[$i][1]} it in otherwise equal words.";
+ }
+ }
+ print DOC join("\\\\\n", (@m));
+ print DOC "\n\\end{flushleft}\n";
+
+# case
+ print DOC "\n\\subsubsection{Upper-/lowercase words}\n";
+ if ($sortcase eq "Aa") {
+ print DOC "Capitalized or uppercase words are sorted \\emph{before} ";
+ print DOC "otherwise equal lowercase words.\n";
+ } else {
+ print DOC "Capitalized or uppercase words are sorted \\emph{after} ";
+ print DOC "otherwise equal lowercase words.\n";
+ }
+
+# special
+print DOC "\n\\subsubsection{Special characters}\n";
+print DOC "The order of special characters and letters is:\n";
+print DOC "\\begin{flushleft}\n";
+print DOC join("\\hspace{4mm}", (@special));
+print DOC "\n\\end{flushleft}\n";
+print DOC "\\newpage\n";
+
+# end
+
+# print test raw file
+
+# for ($i = 0; $i < @{$alphabet}; $i++) {
+# for ($j = 1; $j < @{$alphabet->[$i]}; $j++) {
+# foreach $letter (@{$alphabet->[$i][$j]}) {
+# print TEST "(indexentry :key (\"$letter\") :locref \"$p\")\n";
+# $p++;
+# }
+# }
+# }
+
+# ligatures
+ for ($i = 0; $i < @{$ligatures}; $i++) {
+ for ($j = 0; $j < @{$ligatures->[$i][0]}; $j++) {
+ print TEST
+ "(indexentry :key (\"$ligatures->[$i][0][$j]\") :locref \"$p\")\n";
+ $p++;
+ print TEST "(indexentry :key (\"" .
+ join("", (@{$ligatures->[$i][2][$j]})) . "\") :locref \"$p\")\n";
+ $p++;
+ }
+ }
+
+# special
+foreach $letter (@special) {
+ if ($letter ne "letters") {
+ print TEST "(indexentry :key (\"$letter\") :locref \"$p\")\n";
+ $p++;
+ }
+}
+
+# end
+
+sub make_tokens {
+ for ($i = 0; $i < @{$alphabet}; $i++) {
+ for ($j = 1; $j < @{$alphabet->[$i]}; $j++) {
+ for ($k = 0; $k < @{$alphabet->[$i][$j]}; $k++) {
+ $token = chr($f*$$ref+$offset);
+ if ($alphabet->[$i][$j][$k]) {
+ $tokens{$alphabet->[$i][$j][$k]} = $token;
+ }
+ }
+ }
+ }
+}
+
+sub process_ligatures {
+ for ($i = 0; $i < @{$ligatures}; $i++) {
+ for ($j = 0; $j < @{$ligatures->[$i][0]}; $j++) {
+ $token = "";
+ foreach $ligature_component (@{$ligatures->[$i][2][$j]}) {
+ $token = $token.$tokens{$ligature_component};
+ }
+ $tokens{$ligatures->[$i][0][$j]} = $token;
+ }
+ }
+}
+
+sub print_tokens {
+ print XDY "(define-rule-set \"$_[0]\"\n\n :rules (";
+ foreach $letter (sort {
+ (length($b) <=> length($a)) || ($tokens{$a} cmp $tokens{$b})
+ } (keys %tokens)) {
+ $lout = $letter;
+ $lout =~ s/\~/~~/g;
+ $lout =~ s/\"/~\"/g;
+ $tout = $tokens{$letter};
+ $tout =~ s/\~/~~/g;
+ $tout =~ s/\"/~\"/g;
+ print XDY "(\"$lout\" \"$tout\" :string)\n ";
+ }
+ print XDY "))\n\n";
+ %tokens = ();
+}
diff --git a/indexing/xindy/contrib/xindy-persian/source/test.xdy b/indexing/xindy/contrib/xindy-persian/source/test.xdy
new file mode 100644
index 0000000000..a843dafb8d
--- /dev/null
+++ b/indexing/xindy/contrib/xindy-persian/source/test.xdy
@@ -0,0 +1,82 @@
+
+;; define other stuff
+(define-attributes ("default"))
+
+;; The description of the location-classes.
+;; Add more location classes as needed.
+
+(define-location-class "arabic-page-numbers" ("arabic-numbers"))
+(define-location-class "roman-page-numbers" ("roman-numbers-lowercase"))
+(define-location-class "Roman-page-numbers" ("roman-numbers-uppercase"))
+(define-location-class "alpha-page-numbers" ("alpha"))
+(define-location-class "Alpha-page-numbers" ("ALPHA"))
+
+;; The most frequently used cross reference class "see". Add more, if
+;; necessary.
+
+(define-crossref-class "see")
+(markup-crossref-list :open "\see{" :close "}{}" :class "see")
+
+;; In makeindex: page_precedence <string> "rnaRA"
+;; List all location classes appearing in your document.
+
+(define-location-class-order ("roman-page-numbers"
+ "arabic-page-numbers"
+ "alpha-page-numbers"
+ "Roman-page-numbers"
+ "Alpha-page-numbers"
+ "see"))
+
+
+;; preamble <string> "\\begin{theindex}\n"
+;; postamble <string> "\n\n\\end{theindex}\n"
+
+(markup-index :open "\begin{theindex}~n"
+ :close "~n~n\end{theindex}~n"
+ :tree)
+
+;; These specifiers are not directly supported via a command-line
+;; switch as in makeindex. Add the appropriate markup-commands into
+;; the preamble.
+
+;; setpage_prefix <string> "~n \setcounter{page}{"
+;; setpage_suffix <string> "}~n"
+
+;; group_skip <string> "~n~n \indexspace~n"
+
+(markup-letter-group-list :sep "~n~n \indexspace~n")
+
+;; even though we comment out (%) the letter-group heading,
+;; the following is useful if you want to check the .ind-file
+(markup-letter-group :open-head "~n % ")
+
+;; The indexentries (item_<..> specifiers)
+
+(markup-indexentry :open "~n \item " :depth 0)
+(markup-indexentry :open "~n \subitem " :depth 1)
+(markup-indexentry :open "~n \subsubitem " :depth 2)
+
+;; Location-references
+
+;; delim_0 <string> ", "
+;; delim_1 <string> ", "
+;; delim_2 <string> ", "
+
+(markup-locclass-list :open ", " :sep ", ")
+
+;; delim_n <string> ", "
+
+(markup-locref-list :sep ", ")
+
+;; delim_r <string> "--"
+
+(markup-range :sep "--")
+
+;; That's all ;-)
+
+
+;; End
+
+;; Local Variables:
+;; mode: lisp
+;; End:
diff --git a/indexing/xindy/contrib/xindy-persian/source/variant1-utf8.pl.in b/indexing/xindy/contrib/xindy-persian/source/variant1-utf8.pl.in
new file mode 100644
index 0000000000..87c79de1a3
--- /dev/null
+++ b/indexing/xindy/contrib/xindy-persian/source/variant1-utf8.pl.in
@@ -0,0 +1,181 @@
+#!/usr/bin/perl
+
+$language = "Persian";
+$variant = "One";
+$prefix = "pe";
+$script = "arabic";
+
+$alphabet = [
+['ا',['آ']],
+['ا',['أ']],
+['ا',['ا']],
+['ب',['ب']],
+['پ',['پ']],
+['ت',['ت']],
+['ث',['ث']],
+['ج',['ج']],
+['چ',['چ']],
+['ح',['ح']],
+['خ',['خ']],
+['د',['د']],
+['ذ',['ذ']],
+['ر',['ر']],
+['ز',['ز']],
+['ژ',['ژ']],
+['س',['س']],
+['ش',['ش']],
+['ص',['ص']],
+['ض',['ض']],
+['ط',['ط']],
+['ظ',['ظ']],
+['ع',['ع']],
+['غ',['غ']],
+['ف',['ف']],
+['ق',['ق']],
+['ک',['ک']],
+['گ',['گ']],
+['ل',['ل']],
+['م',['م']],
+['ن',['ن']],
+['و',['ؤ','و']],
+['ه',['ه']],
+['ی',['ئ','ی']],
+['A', ['a','A'],['à','À']],
+ [], # a with breve (romanian)
+ [], # a with circumflex (romanian)
+ [], # a with ogonek (polish)
+['B', ['b','B']],
+ [], # b with hook (hausa)
+['C', ['c','C'],['ç','Ç']],
+ [], # ch (spanish/traditional)
+ [], # cs (hungarian)
+ [], # c with caron (many)
+ [], # c with acute (croatian, lower sorbian, polish)
+ [], # c with circumflex (esperanto)
+ [], # c with cedilla (albanian, kurdish, turkish)
+['D', ['d','D'],['ð','Ð']],
+ [], # dh (albanian)
+ [], # dz (hungarian)
+ [], # dzs (hungarian)
+ [], # d+z with caron (croatian)
+ [], # d+z with acute (upper sorbian)
+ [], # d with caron (slovak/large)
+ [], # d with stroke (croatian)
+ [], # d with hook (hausa)
+ [], # eth (icelandic)
+['E', ['e','E'],['é','É'],['è','È'],['ë','Ë'],['ê','Ê']],
+ [], # e with caron (lower/upper sorbian)
+ [], # e with circumflex (kurdish)
+ [], # e with diaeresis (albanian)
+ [], # e with ogonek (polish)
+['F', ['f','F']],
+['G', ['g','G']],
+ [], # gj (albanian)
+ [], # gy (hungarian)
+ [], # g with circumflex (esperanto)
+ [], # g with breve (turkish)
+ [], # g with cedilla/comma (latvian)
+ [], # postpalatal fricative (gypsy/northrussian)
+['H', ['h','H']],
+ [], # h with circumflex (esperanto)
+ [], # ch (many)
+ [], # dotless i (turkish)
+['I', ['i','I'],['ï','Ï']],
+ [], # i with inverted breve below (gypsy/northrussian)
+ [], # i with circumflex (kurdish, romanian)
+ [], # i with diaeresis (gypsy/northrussian)
+['J', ['j','J']],
+ [], # j with circumflex (esperanto)
+['K', ['k','K']],
+ [], # kh (gypsy/northrussian)
+ [], # k with cedilla/comma (latvian)
+ [], # k with hook (hausa)
+ [], # x (gypsy/northrussian)
+ [], # l with stroke (lower/upper sorbian)
+['L', ['l','L']],
+ [], # lj (croatian)
+ [], # ll (albanian, spanish/traditional)
+ [], # ly (hungarian)
+ [], # l with cedilla/comma (latvian)
+ [], # l with stroke (polish)
+ [], # l with caron (slovak/large)
+['M', ['m','M']],
+['N', ['n','N'],['ñ','Ñ']],
+ [], # nj (albanian, croatian)
+ [], # ny (hungarian)
+ [], # n with caron (slovak/large)
+ [], # n with acute (lower/upper sorbian, polish)
+ [], # n with tilde (spanish/modern, spanish/traditional)
+ [], # n with cedilla/comma (latvian)
+['O', ['o','O'],['ö','Ö'],['ô','Ô']],
+ [], # o with acute (polish, upper sorbian)
+ [], # o with circumflex (vietnamese)
+ [], # o with horn (vietnamese)
+ [], # o with diaeresis (hungarian, turkish)
+['P', ['p','P']],
+ [], # ph (gypsy/northrussian)
+['Q', ['q','Q']],
+['R', ['r','R']],
+ [], # rr (albanian)
+ [], # r with caron (czech, slovak/large, upper sorbian)
+ [], # r with acute (lower sorbian)
+ [], # r with cedilla/comma (latvian)
+['S', ['s','S']],
+ [], # sh (albanian)
+ [], # sz (hungarian)
+ [], # s with caron (many)
+ [], # s with acute (lower sorbian, polish)
+ [], # s with circumflex (esperanto)
+ [], # s with comma below (romanian)
+ [], # s with cedilla (kurdish, turkish)
+ [], # z (estonian)
+ [], # z with caron (estonian)
+['T', ['t','T']],
+ [], # th (albanian)
+ [], # ty (hungarian)
+ [], # t with caron (slovak/large)
+ [], # t with comma below (romanian)
+ [], # c with acute (upper sorbian)
+['U', ['u','U']],
+ [], # u with breve (esperanto)
+ [], # u with circumflex (kurdish)
+ [], # u with horn (vietnamese)
+ [], # u with diaeresis (hungarian, turkish)
+['V', ['v','V']],
+['W', ['w','W']],
+ [], # o with tilde (estonian)
+ [], # a with diaeresis (estonian)
+ [], # o with diaeresis (estonian)
+ [], # u with diaeresis (estonian)
+['X', ['x','X']],
+ [], # xh (albanian)
+['Y', ['y','Y']],
+ [], # y preceded by apostrophe (hausa)
+[@u{'Ȝ', ['ȝ','Ȝ']}],
+['Z', ['z','Z']],
+ [], # zh (albanian)
+ [], # zs (hungarian)
+ [], # z with caron (many)
+ [], # z with acute (lower sorbian, polish)
+ [], # z with dot above (polish)
+['Þ', ['þ','Þ']],
+[@u{'ƿ', ['ƿ','Ƿ']}],
+ [], # ligature ae (danish, icelandic, norwegian)
+ [], # o with stroke (danish, norwegian)
+ [], # a with ring above (danish, norwegian, swedish)
+ [], # a with diaeresis (finnish, swedish)
+ [], # o with diaeresis (finnish, swedish)
+ [], # a with ring above (icelandic)
+];
+
+$sortcase = "Aa";
+#$sortcase = "aA";
+
+$ligatures = [
+[['æ','Æ'], 'after', [['a','e'], ['A','e']]],
+[['œ','Œ'], 'after', [['o','e'], ['O','e']]]
+];
+
+@special = ('?', '!', '.', 'letters', '-', '\'', '{', '}','ّ','َ','ِ','ُ','ً','ٍ','ٌ','ْ','ٔ','ء','‌','«','»','ـ', '،', '؛');
+
+do 'make-rules.pl';
diff --git a/indexing/xindy/contrib/xindy-persian/source/variant2-utf8.pl.in b/indexing/xindy/contrib/xindy-persian/source/variant2-utf8.pl.in
new file mode 100644
index 0000000000..fe5c594262
--- /dev/null
+++ b/indexing/xindy/contrib/xindy-persian/source/variant2-utf8.pl.in
@@ -0,0 +1,181 @@
+#!/usr/bin/perl
+
+$language = "Persian";
+$variant = "Two";
+$prefix = "pe";
+$script = "arabic";
+
+$alphabet = [
+['آ',['آ']],
+['ا',['أ']],
+['ا',['ا']],
+['ب',['ب']],
+['پ',['پ']],
+['ت',['ت']],
+['ث',['ث']],
+['ج',['ج']],
+['چ',['چ']],
+['ح',['ح']],
+['خ',['خ']],
+['د',['د']],
+['ذ',['ذ']],
+['ر',['ر']],
+['ز',['ز']],
+['ژ',['ژ']],
+['س',['س']],
+['ش',['ش']],
+['ص',['ص']],
+['ض',['ض']],
+['ط',['ط']],
+['ظ',['ظ']],
+['ع',['ع']],
+['غ',['غ']],
+['ف',['ف']],
+['ق',['ق']],
+['ک',['ک']],
+['گ',['گ']],
+['ل',['ل']],
+['م',['م']],
+['ن',['ن']],
+['و',['ؤ','و']],
+['ه',['ه']],
+['ی',['ئ','ی']],
+['A', ['a','A'],['à','À']],
+ [], # a with breve (romanian)
+ [], # a with circumflex (romanian)
+ [], # a with ogonek (polish)
+['B', ['b','B']],
+ [], # b with hook (hausa)
+['C', ['c','C'],['ç','Ç']],
+ [], # ch (spanish/traditional)
+ [], # cs (hungarian)
+ [], # c with caron (many)
+ [], # c with acute (croatian, lower sorbian, polish)
+ [], # c with circumflex (esperanto)
+ [], # c with cedilla (albanian, kurdish, turkish)
+['D', ['d','D'],['ð','Ð']],
+ [], # dh (albanian)
+ [], # dz (hungarian)
+ [], # dzs (hungarian)
+ [], # d+z with caron (croatian)
+ [], # d+z with acute (upper sorbian)
+ [], # d with caron (slovak/large)
+ [], # d with stroke (croatian)
+ [], # d with hook (hausa)
+ [], # eth (icelandic)
+['E', ['e','E'],['é','É'],['è','È'],['ë','Ë'],['ê','Ê']],
+ [], # e with caron (lower/upper sorbian)
+ [], # e with circumflex (kurdish)
+ [], # e with diaeresis (albanian)
+ [], # e with ogonek (polish)
+['F', ['f','F']],
+['G', ['g','G']],
+ [], # gj (albanian)
+ [], # gy (hungarian)
+ [], # g with circumflex (esperanto)
+ [], # g with breve (turkish)
+ [], # g with cedilla/comma (latvian)
+ [], # postpalatal fricative (gypsy/northrussian)
+['H', ['h','H']],
+ [], # h with circumflex (esperanto)
+ [], # ch (many)
+ [], # dotless i (turkish)
+['I', ['i','I'],['ï','Ï']],
+ [], # i with inverted breve below (gypsy/northrussian)
+ [], # i with circumflex (kurdish, romanian)
+ [], # i with diaeresis (gypsy/northrussian)
+['J', ['j','J']],
+ [], # j with circumflex (esperanto)
+['K', ['k','K']],
+ [], # kh (gypsy/northrussian)
+ [], # k with cedilla/comma (latvian)
+ [], # k with hook (hausa)
+ [], # x (gypsy/northrussian)
+ [], # l with stroke (lower/upper sorbian)
+['L', ['l','L']],
+ [], # lj (croatian)
+ [], # ll (albanian, spanish/traditional)
+ [], # ly (hungarian)
+ [], # l with cedilla/comma (latvian)
+ [], # l with stroke (polish)
+ [], # l with caron (slovak/large)
+['M', ['m','M']],
+['N', ['n','N'],['ñ','Ñ']],
+ [], # nj (albanian, croatian)
+ [], # ny (hungarian)
+ [], # n with caron (slovak/large)
+ [], # n with acute (lower/upper sorbian, polish)
+ [], # n with tilde (spanish/modern, spanish/traditional)
+ [], # n with cedilla/comma (latvian)
+['O', ['o','O'],['ö','Ö'],['ô','Ô']],
+ [], # o with acute (polish, upper sorbian)
+ [], # o with circumflex (vietnamese)
+ [], # o with horn (vietnamese)
+ [], # o with diaeresis (hungarian, turkish)
+['P', ['p','P']],
+ [], # ph (gypsy/northrussian)
+['Q', ['q','Q']],
+['R', ['r','R']],
+ [], # rr (albanian)
+ [], # r with caron (czech, slovak/large, upper sorbian)
+ [], # r with acute (lower sorbian)
+ [], # r with cedilla/comma (latvian)
+['S', ['s','S']],
+ [], # sh (albanian)
+ [], # sz (hungarian)
+ [], # s with caron (many)
+ [], # s with acute (lower sorbian, polish)
+ [], # s with circumflex (esperanto)
+ [], # s with comma below (romanian)
+ [], # s with cedilla (kurdish, turkish)
+ [], # z (estonian)
+ [], # z with caron (estonian)
+['T', ['t','T']],
+ [], # th (albanian)
+ [], # ty (hungarian)
+ [], # t with caron (slovak/large)
+ [], # t with comma below (romanian)
+ [], # c with acute (upper sorbian)
+['U', ['u','U']],
+ [], # u with breve (esperanto)
+ [], # u with circumflex (kurdish)
+ [], # u with horn (vietnamese)
+ [], # u with diaeresis (hungarian, turkish)
+['V', ['v','V']],
+['W', ['w','W']],
+ [], # o with tilde (estonian)
+ [], # a with diaeresis (estonian)
+ [], # o with diaeresis (estonian)
+ [], # u with diaeresis (estonian)
+['X', ['x','X']],
+ [], # xh (albanian)
+['Y', ['y','Y']],
+ [], # y preceded by apostrophe (hausa)
+[@u{'Ȝ', ['ȝ','Ȝ']}],
+['Z', ['z','Z']],
+ [], # zh (albanian)
+ [], # zs (hungarian)
+ [], # z with caron (many)
+ [], # z with acute (lower sorbian, polish)
+ [], # z with dot above (polish)
+['Þ', ['þ','Þ']],
+[@u{'ƿ', ['ƿ','Ƿ']}],
+ [], # ligature ae (danish, icelandic, norwegian)
+ [], # o with stroke (danish, norwegian)
+ [], # a with ring above (danish, norwegian, swedish)
+ [], # a with diaeresis (finnish, swedish)
+ [], # o with diaeresis (finnish, swedish)
+ [], # a with ring above (icelandic)
+];
+
+$sortcase = "Aa";
+#$sortcase = "aA";
+
+$ligatures = [
+[['æ','Æ'], 'after', [['a','e'], ['A','e']]],
+[['œ','Œ'], 'after', [['o','e'], ['O','e']]]
+];
+
+@special = ('?', '!', '.', 'letters', '-', '\'', '{', '}','ّ','َ','ِ','ُ','ً','ٍ','ٌ','ْ','ٔ','ء','‌','«','»','ـ', '،', '؛');
+
+do 'make-rules.pl';
diff --git a/indexing/xindy/contrib/xindy-persian/source/variant3-utf8.pl.in b/indexing/xindy/contrib/xindy-persian/source/variant3-utf8.pl.in
new file mode 100644
index 0000000000..3f3d32c94c
--- /dev/null
+++ b/indexing/xindy/contrib/xindy-persian/source/variant3-utf8.pl.in
@@ -0,0 +1,181 @@
+#!/usr/bin/perl
+
+$language = "Persian";
+$variant = "Three";
+$prefix = "pe";
+$script = "arabic";
+
+$alphabet = [
+['الف',['آ']],
+['الف',['أ']],
+['الف',['ا']],
+['ب',['ب']],
+['پ',['پ']],
+['ت',['ت']],
+['ث',['ث']],
+['ج',['ج']],
+['چ',['چ']],
+['ح',['ح']],
+['خ',['خ']],
+['د',['د']],
+['ذ',['ذ']],
+['ر',['ر']],
+['ز',['ز']],
+['ژ',['ژ']],
+['س',['س']],
+['ش',['ش']],
+['ص',['ص']],
+['ض',['ض']],
+['ط',['ط']],
+['ظ',['ظ']],
+['ع',['ع']],
+['غ',['غ']],
+['ف',['ف']],
+['ق',['ق']],
+['ک',['ک']],
+['گ',['گ']],
+['ل',['ل']],
+['م',['م']],
+['ن',['ن']],
+['و',['ؤ','و']],
+['ه',['ه']],
+['ی',['ئ','ی']],
+['A', ['a','A'],['à','À']],
+ [], # a with breve (romanian)
+ [], # a with circumflex (romanian)
+ [], # a with ogonek (polish)
+['B', ['b','B']],
+ [], # b with hook (hausa)
+['C', ['c','C'],['ç','Ç']],
+ [], # ch (spanish/traditional)
+ [], # cs (hungarian)
+ [], # c with caron (many)
+ [], # c with acute (croatian, lower sorbian, polish)
+ [], # c with circumflex (esperanto)
+ [], # c with cedilla (albanian, kurdish, turkish)
+['D', ['d','D'],['ð','Ð']],
+ [], # dh (albanian)
+ [], # dz (hungarian)
+ [], # dzs (hungarian)
+ [], # d+z with caron (croatian)
+ [], # d+z with acute (upper sorbian)
+ [], # d with caron (slovak/large)
+ [], # d with stroke (croatian)
+ [], # d with hook (hausa)
+ [], # eth (icelandic)
+['E', ['e','E'],['é','É'],['è','È'],['ë','Ë'],['ê','Ê']],
+ [], # e with caron (lower/upper sorbian)
+ [], # e with circumflex (kurdish)
+ [], # e with diaeresis (albanian)
+ [], # e with ogonek (polish)
+['F', ['f','F']],
+['G', ['g','G']],
+ [], # gj (albanian)
+ [], # gy (hungarian)
+ [], # g with circumflex (esperanto)
+ [], # g with breve (turkish)
+ [], # g with cedilla/comma (latvian)
+ [], # postpalatal fricative (gypsy/northrussian)
+['H', ['h','H']],
+ [], # h with circumflex (esperanto)
+ [], # ch (many)
+ [], # dotless i (turkish)
+['I', ['i','I'],['ï','Ï']],
+ [], # i with inverted breve below (gypsy/northrussian)
+ [], # i with circumflex (kurdish, romanian)
+ [], # i with diaeresis (gypsy/northrussian)
+['J', ['j','J']],
+ [], # j with circumflex (esperanto)
+['K', ['k','K']],
+ [], # kh (gypsy/northrussian)
+ [], # k with cedilla/comma (latvian)
+ [], # k with hook (hausa)
+ [], # x (gypsy/northrussian)
+ [], # l with stroke (lower/upper sorbian)
+['L', ['l','L']],
+ [], # lj (croatian)
+ [], # ll (albanian, spanish/traditional)
+ [], # ly (hungarian)
+ [], # l with cedilla/comma (latvian)
+ [], # l with stroke (polish)
+ [], # l with caron (slovak/large)
+['M', ['m','M']],
+['N', ['n','N'],['ñ','Ñ']],
+ [], # nj (albanian, croatian)
+ [], # ny (hungarian)
+ [], # n with caron (slovak/large)
+ [], # n with acute (lower/upper sorbian, polish)
+ [], # n with tilde (spanish/modern, spanish/traditional)
+ [], # n with cedilla/comma (latvian)
+['O', ['o','O'],['ö','Ö'],['ô','Ô']],
+ [], # o with acute (polish, upper sorbian)
+ [], # o with circumflex (vietnamese)
+ [], # o with horn (vietnamese)
+ [], # o with diaeresis (hungarian, turkish)
+['P', ['p','P']],
+ [], # ph (gypsy/northrussian)
+['Q', ['q','Q']],
+['R', ['r','R']],
+ [], # rr (albanian)
+ [], # r with caron (czech, slovak/large, upper sorbian)
+ [], # r with acute (lower sorbian)
+ [], # r with cedilla/comma (latvian)
+['S', ['s','S']],
+ [], # sh (albanian)
+ [], # sz (hungarian)
+ [], # s with caron (many)
+ [], # s with acute (lower sorbian, polish)
+ [], # s with circumflex (esperanto)
+ [], # s with comma below (romanian)
+ [], # s with cedilla (kurdish, turkish)
+ [], # z (estonian)
+ [], # z with caron (estonian)
+['T', ['t','T']],
+ [], # th (albanian)
+ [], # ty (hungarian)
+ [], # t with caron (slovak/large)
+ [], # t with comma below (romanian)
+ [], # c with acute (upper sorbian)
+['U', ['u','U']],
+ [], # u with breve (esperanto)
+ [], # u with circumflex (kurdish)
+ [], # u with horn (vietnamese)
+ [], # u with diaeresis (hungarian, turkish)
+['V', ['v','V']],
+['W', ['w','W']],
+ [], # o with tilde (estonian)
+ [], # a with diaeresis (estonian)
+ [], # o with diaeresis (estonian)
+ [], # u with diaeresis (estonian)
+['X', ['x','X']],
+ [], # xh (albanian)
+['Y', ['y','Y']],
+ [], # y preceded by apostrophe (hausa)
+[@u{'Ȝ', ['ȝ','Ȝ']}],
+['Z', ['z','Z']],
+ [], # zh (albanian)
+ [], # zs (hungarian)
+ [], # z with caron (many)
+ [], # z with acute (lower sorbian, polish)
+ [], # z with dot above (polish)
+['Þ', ['þ','Þ']],
+[@u{'ƿ', ['ƿ','Ƿ']}],
+ [], # ligature ae (danish, icelandic, norwegian)
+ [], # o with stroke (danish, norwegian)
+ [], # a with ring above (danish, norwegian, swedish)
+ [], # a with diaeresis (finnish, swedish)
+ [], # o with diaeresis (finnish, swedish)
+ [], # a with ring above (icelandic)
+];
+
+$sortcase = "Aa";
+#$sortcase = "aA";
+
+$ligatures = [
+[['æ','Æ'], 'after', [['a','e'], ['A','e']]],
+[['œ','Œ'], 'after', [['o','e'], ['O','e']]]
+];
+
+@special = ('?', '!', '.', 'letters', '-', '\'', '{', '}','ّ','َ','ِ','ُ','ً','ٍ','ٌ','ْ','ٔ','ء','‌','«','»','ـ', '،', '؛');
+
+do 'make-rules.pl';
diff --git a/indexing/xindy/contrib/xindy-persian/variant1-utf8.pl.in b/indexing/xindy/contrib/xindy-persian/variant1-utf8.pl.in
deleted file mode 100644
index 9d14f9f37c..0000000000
--- a/indexing/xindy/contrib/xindy-persian/variant1-utf8.pl.in
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/usr/bin/perl
-
-$language = "Persian";
-$variant = "One";
-$prefix = "pe";
-$script = "arabic";
-
-$alphabet = [
-['ا',['آ']],
-['ا',['أ']],
-['ا',['ا']],
-['ب',['ب']],
-['پ',['پ']],
-['ت',['ت']],
-['ث',['ث']],
-['ج',['ج']],
-['چ',['چ']],
-['ح',['ح']],
-['خ',['خ']],
-['د',['د']],
-['ذ',['ذ']],
-['ر',['ر']],
-['ز',['ز']],
-['ژ',['ژ']],
-['س',['س']],
-['ش',['ش']],
-['ص',['ص']],
-['ض',['ض']],
-['ط',['ط']],
-['ظ',['ظ']],
-['ع',['ع']],
-['غ',['غ']],
-['ف',['ف']],
-['ق',['ق']],
-['ک',['ک']],
-['گ',['گ']],
-['ل',['ل']],
-['م',['م']],
-['ن',['ن']],
-['و',['ؤ','و']],
-['ه',['ه']],
-['ی',['ئ','ی']],
-['A', ['a','A'],['à','À']],
-['B', ['b','B']],
-['C', ['c','C'],['ç','Ç']],
-['D', ['d','D'],['ð','Ð']],
-['E', ['e','E'],['é','É'],['è','È'],['ë','Ë'],['ê','Ê']],
-['F', ['f','F']],
-['G', ['g','G']],
-['H', ['h','H']],
-['I', ['i','I'],['ï','Ï']],
-['J', ['j','J']],
-['K', ['k','K']],
-['L', ['l','L']],
-['M', ['m','M']],
-['N', ['n','N'],['ñ','Ñ']],
-['O', ['o','O'],['ö','Ö'],['ô','Ô']],
-['P', ['p','P']],
-['Q', ['q','Q']],
-['R', ['r','R']],
-['S', ['s','S']],
-['T', ['t','T']],
-['U', ['u','U']],
-['V', ['v','V']],
-['W', ['w','W']],
-['X', ['x','X']],
-['Y', ['y','Y']],
-['Z', ['z','Z']],
-['Þ', ['þ','Þ']],
-];
-
-$sortcase = "Aa";
-#$sortcase = "aA";
-
-$ligatures = [
-[['æ','Æ'], 'after', [['a','e'], ['A','e']]],
-[['œ','Œ'], 'after', [['o','e'], ['O','e']]]
-];
-
-@special = ('?', '!', '.', 'letters', '-', '\'', '{', '}','ّ','َ','ِ','ُ','ً','ٍ','ٌ','ْ','ٔ','ء','‌','«','»','ـ');
-
-do 'make-rules.pl';
diff --git a/indexing/xindy/contrib/xindy-persian/variant2-utf8.pl.in b/indexing/xindy/contrib/xindy-persian/variant2-utf8.pl.in
deleted file mode 100644
index 9c7fdfaa29..0000000000
--- a/indexing/xindy/contrib/xindy-persian/variant2-utf8.pl.in
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/usr/bin/perl
-
-$language = "Persian";
-$variant = "Two";
-$prefix = "pe";
-$script = "arabic";
-
-$alphabet = [
-['آ',['آ']],
-['ا',['أ']],
-['ا',['ا']],
-['ب',['ب']],
-['پ',['پ']],
-['ت',['ت']],
-['ث',['ث']],
-['ج',['ج']],
-['چ',['چ']],
-['ح',['ح']],
-['خ',['خ']],
-['د',['د']],
-['ذ',['ذ']],
-['ر',['ر']],
-['ز',['ز']],
-['ژ',['ژ']],
-['س',['س']],
-['ش',['ش']],
-['ص',['ص']],
-['ض',['ض']],
-['ط',['ط']],
-['ظ',['ظ']],
-['ع',['ع']],
-['غ',['غ']],
-['ف',['ف']],
-['ق',['ق']],
-['ک',['ک']],
-['گ',['گ']],
-['ل',['ل']],
-['م',['م']],
-['ن',['ن']],
-['و',['ؤ','و']],
-['ه',['ه']],
-['ی',['ئ','ی']],
-['A', ['a','A'],['à','À']],
-['B', ['b','B']],
-['C', ['c','C'],['ç','Ç']],
-['D', ['d','D'],['ð','Ð']],
-['E', ['e','E'],['é','É'],['è','È'],['ë','Ë'],['ê','Ê']],
-['F', ['f','F']],
-['G', ['g','G']],
-['H', ['h','H']],
-['I', ['i','I'],['ï','Ï']],
-['J', ['j','J']],
-['K', ['k','K']],
-['L', ['l','L']],
-['M', ['m','M']],
-['N', ['n','N'],['ñ','Ñ']],
-['O', ['o','O'],['ö','Ö'],['ô','Ô']],
-['P', ['p','P']],
-['Q', ['q','Q']],
-['R', ['r','R']],
-['S', ['s','S']],
-['T', ['t','T']],
-['U', ['u','U']],
-['V', ['v','V']],
-['W', ['w','W']],
-['X', ['x','X']],
-['Y', ['y','Y']],
-['Z', ['z','Z']],
-['Þ', ['þ','Þ']],
-];
-
-$sortcase = "Aa";
-#$sortcase = "aA";
-
-$ligatures = [
-[['æ','Æ'], 'after', [['a','e'], ['A','e']]],
-[['œ','Œ'], 'after', [['o','e'], ['O','e']]]
-];
-
-@special = ('?', '!', '.', 'letters', '-', '\'', '{', '}','ّ','َ','ِ','ُ','ً','ٍ','ٌ','ْ','ٔ','ء','‌','«','»','ـ');
-
-do 'make-rules.pl';
diff --git a/indexing/xindy/contrib/xindy-persian/variant3-utf8.pl.in b/indexing/xindy/contrib/xindy-persian/variant3-utf8.pl.in
deleted file mode 100644
index 4f4d091451..0000000000
--- a/indexing/xindy/contrib/xindy-persian/variant3-utf8.pl.in
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/usr/bin/perl
-
-$language = "Persian";
-$variant = "Three";
-$prefix = "pe";
-$script = "arabic";
-
-$alphabet = [
-['الف',['آ']],
-['الف',['أ']],
-['الف',['ا']],
-['ب',['ب']],
-['پ',['پ']],
-['ت',['ت']],
-['ث',['ث']],
-['ج',['ج']],
-['چ',['چ']],
-['ح',['ح']],
-['خ',['خ']],
-['د',['د']],
-['ذ',['ذ']],
-['ر',['ر']],
-['ز',['ز']],
-['ژ',['ژ']],
-['س',['س']],
-['ش',['ش']],
-['ص',['ص']],
-['ض',['ض']],
-['ط',['ط']],
-['ظ',['ظ']],
-['ع',['ع']],
-['غ',['غ']],
-['ف',['ف']],
-['ق',['ق']],
-['ک',['ک']],
-['گ',['گ']],
-['ل',['ل']],
-['م',['م']],
-['ن',['ن']],
-['و',['ؤ','و']],
-['ه',['ه']],
-['ی',['ئ','ی']],
-['A', ['a','A'],['à','À']],
-['B', ['b','B']],
-['C', ['c','C'],['ç','Ç']],
-['D', ['d','D'],['ð','Ð']],
-['E', ['e','E'],['é','É'],['è','È'],['ë','Ë'],['ê','Ê']],
-['F', ['f','F']],
-['G', ['g','G']],
-['H', ['h','H']],
-['I', ['i','I'],['ï','Ï']],
-['J', ['j','J']],
-['K', ['k','K']],
-['L', ['l','L']],
-['M', ['m','M']],
-['N', ['n','N'],['ñ','Ñ']],
-['O', ['o','O'],['ö','Ö'],['ô','Ô']],
-['P', ['p','P']],
-['Q', ['q','Q']],
-['R', ['r','R']],
-['S', ['s','S']],
-['T', ['t','T']],
-['U', ['u','U']],
-['V', ['v','V']],
-['W', ['w','W']],
-['X', ['x','X']],
-['Y', ['y','Y']],
-['Z', ['z','Z']],
-['Þ', ['þ','Þ']],
-];
-
-$sortcase = "Aa";
-#$sortcase = "aA";
-
-$ligatures = [
-[['æ','Æ'], 'after', [['a','e'], ['A','e']]],
-[['œ','Œ'], 'after', [['o','e'], ['O','e']]]
-];
-
-@special = ('?', '!', '.', 'letters', '-', '\'', '{', '}','ّ','َ','ِ','ُ','ً','ٍ','ٌ','ْ','ٔ','ء','‌','«','»','ـ');
-
-do 'make-rules.pl';
diff --git a/language/japanese/gckanbun/README.md b/language/japanese/gckanbun/README.md
index 58fc1b8cfe..f61de1d5c9 100644
--- a/language/japanese/gckanbun/README.md
+++ b/language/japanese/gckanbun/README.md
@@ -1,8 +1,8 @@
# gckanbun Package
-KANBUN ("Chinese writing") typesetting for upLaTeX and LuaLaTeX
+KANBUN ("Chinese writing") typesetting for (u)pLaTeX and LuaLaTeX
-This package provides a KANBUN (漢文, "Chinese writing") typesetting for upLaTeX and LuaLaTeX.
+This package provides a KANBUN (漢文, "Chinese writing") typesetting for (u)pLaTeX and LuaLaTeX.
## Requirements
diff --git a/language/japanese/gckanbun/gckanbun.pdf b/language/japanese/gckanbun/gckanbun.pdf
index c3ec0b5fcf..0ee35e61ab 100644
--- a/language/japanese/gckanbun/gckanbun.pdf
+++ b/language/japanese/gckanbun/gckanbun.pdf
Binary files differ
diff --git a/language/japanese/gckanbun/gckanbun.sty b/language/japanese/gckanbun/gckanbun.sty
index c488ab3b4e..c2763d60e9 100644
--- a/language/japanese/gckanbun/gckanbun.sty
+++ b/language/japanese/gckanbun/gckanbun.sty
@@ -1,8 +1,9 @@
-% #!lualatex test-gckanbun
-%#!ptex2pdf -l -u test-gckanbun
+%#!lualatex test-gckanbun
+% #!ptex2pdf -l -u test-gckanbun
+% #!ptex2pdf -l test-gckanbun
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{gckanbun}
- [2021/03/25 v1.1 KANBUN typesetting package (Green Cherry Ltd.)]
+ [2021/03/27 v1.2 KANBUN typesetting package (Green Cherry Ltd.)]
%% declare package errors
\def\gcknbn@error{\PackageError{gckanbun}}
@@ -14,7 +15,7 @@
\DeclareOption*{\gcknbn@setkey}
\def\gcknbn@setkey{\expandafter\@gcknbn@setkey\expandafter{\CurrentOption}}
\def\@gcknbn@setkey{\setkeys{gcknbn}}
-\def\gcknbn@prefix{gckanbun}%%given prefix for each commads
+\def\gcknbn@prefix{gckanbun}%%given <prefix> for each commands
\define@key{gcknbn}{prefix}{\gdef\gcknbn@prefix{#1}}
\ExecuteOptions{prefix}
@@ -28,9 +29,11 @@
\gcknbn@error{Please load package 'luatexja' when loading this package.}}
\else\ifuptex
\def\zw{zw}\def\zh{zh}
+\else\ifptex
+ \def\zw{zw}\def\zh{zh}
\else
- \gcknbn@error{Package 'gckanbun' currently supports upLaTeX and LuaLaTeX.}
-\fi\fi
+ \gcknbn@error{Package 'gckanbun' currently supports (u)pLaTeX and LuaLaTeX.}
+\fi\fi\fi
\newcommand*\gcknbn@kanjiskip@fill{%
\ifluatex
diff --git a/language/japanese/gckanbun/gckanbun.tex b/language/japanese/gckanbun/gckanbun.tex
index c926de1ae5..ca18693f99 100644
--- a/language/japanese/gckanbun/gckanbun.tex
+++ b/language/japanese/gckanbun/gckanbun.tex
@@ -1,21 +1,24 @@
-%#!lualatex
-\documentclass{jlreq}
-\usepackage{gckanbun}
+% #!lualatex
+% #!ptex2pdf -l -u
+%#!ptex2pdf -l
+\documentclass{jlreq}\listfiles
+\usepackage[prefix=]{gckanbun}%%=> <prefix>=(empty)
\usepackage{shortvrb}\MakeShortVerb{\|}
+\newcommand*\pLaTeX{p\kern-.05em\LaTeX}
\newcommand*\upLaTeX{up\kern-.05em\LaTeX}
\newcommand*\LuaLaTeX{Lua\LaTeX}
\title{\textsf{gckanbun} Package}
\author{Munehiro Yamamoto}
-\date{2021/03/25 v1.1}
+\date{2021/03/27 v1.2}
\begin{document}
\maketitle
\begin{abstract}
-This package provides a KANBUN (漢文) typesetting for {\upLaTeX} and \LuaLaTeX.
+This package provides a KANBUN (漢文) typesetting for (u){\pLaTeX} and \LuaLaTeX.
-このパッケージは、{\upLaTeX}と{\LuaLaTeX}に対して漢文組みを提供します。
+このパッケージは、(u){\pLaTeX}と{\LuaLaTeX}に対して漢文組みを提供します。
\end{abstract}
\section{\textsf{gckanbun}パッケージの読み込み}
@@ -23,7 +26,7 @@ This package provides a KANBUN (漢文) typesetting for {\upLaTeX} and \LuaLaTeX
\textsf{gckanbun}パッケージを読み込むだけです。
{\LuaLaTeX}の場合、\textsf{luatexja}パッケージをあらかじめ読み込んでおく必要があります。
-なお、\textsf{jlreq}クラスを利用すると、jlreqクラス内部で\textsf{luatexja}パッケージを読み込みます。
+なお、\textsf{jlreq}クラスを利用すると、\textsf{jlreq}クラス内部で\textsf{luatexja}パッケージを読み込みます。
\begin{quote}
\begin{verbatim}
@@ -36,6 +39,8 @@ This package provides a KANBUN (漢文) typesetting for {\upLaTeX} and \LuaLaTeX
\begin{itemize}
\item |prefix=<prefix>|(デフォルト値:|gckanbun|):
\textsf{gckanbun}パッケージが提供する3つのコマンド|\gckanbunruby|、|\gckanbunokurigana|、|\gckanbunkaeriten|をそれぞれ|\<prefix>ruby|、|\<prefix>okurigana|、|\<prefix>kaeriten|として提供します。
+
+このオプションにより、他のパッケージで提供されるルビ振りコマンド|\ruby|との衝突を避けられます。
\end{itemize}
\section{例}
@@ -68,9 +73,6 @@ This package provides a KANBUN (漢文) typesetting for {\upLaTeX} and \LuaLaTeX
このとき、結果は以下のとおりです。
\begin{center}
-\let\ruby\gckanbunruby
-\let\okurigana\gckanbunokurigana
-\let\kaeriten\gckanbunkaeriten
\hbox{\tate
\vbox to \hsize{\vfil
\begin{minipage}{15\zw}
diff --git a/language/japanese/gckanbun/test-gckanbun.tex b/language/japanese/gckanbun/test-gckanbun.tex
index dfb8fceec4..f00ed7eba0 100644
--- a/language/japanese/gckanbun/test-gckanbun.tex
+++ b/language/japanese/gckanbun/test-gckanbun.tex
@@ -1,7 +1,7 @@
%% https://gist.github.com/munepi/5c9e53936e3540b8374b4ab14e6b7832
%#!lualatex
% #!ptex2pdf -l -u
-\documentclass[paper=a5,tate]{jlreq}
+\documentclass[paper=a5,tate]{jlreq}\listfiles
%\usepackage{gckanbun}%%=> provides \gckanbunruby, \gckanbunokurigana, \gckanbunkaeriten as default
\usepackage[prefix=]{gckanbun}%%=> provides \ruby, \okurigana, \kaeriten
%\usepackage[prefix=kanbun]{gckanbun}%%=> provides \kanbunruby, \kanbunokurigana, \kanbunkaeriten
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/README.md b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/README.md
index 3443a0e554..38080851ab 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/README.md
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/README.md
@@ -1,1197 +1,1442 @@
-<b>Date of last change: 2021-01-19 to version v1.0w</b>
-
-
-# biblatex-gb7714-2015: a biblatex style package
----------------------------------------------------------
-[使用入门](#jumptotutorial) |==| [说明文档](biblatex-gb7714-2015.pdf) |==| [WIKI](https://github.com/hushidong/biblatex-gb7714-2015/wiki)
-
-
-## Introduction
-
-Maintainer: huzhenzhen <hzzmail@163.com>
-
-Homepage: <https://github.com/hushidong/biblatex-gb7714-2015>
-
-ctan-pkg: <https://www.ctan.org/pkg/biblatex-gb7714-2015>
-
-License: LaTeX Project Public License 1.3 or later
-
-
-A biblatex implementation of the `GB/T 7714-2015` bibliography style for Chinese users
-
-The biblatex-gb7714-2015 package provides an implementation of the bibliography style of the `GB/T 7714-2015` bibliography style. This implementation follows `GB/T 7714-2015` standard, and can be used simply by loading biblatex with the appropriate option
-
-
-biblatex-gb7714-2015 宏包是中文参考文献著录/标注标准 `GB/T 7714-2015` 的 biblatex 实现。它本质上是一个样式包,提供了顺序编码制和著者年份制样式,在 tex 文档中配合 biblatex 宏包使用,以生成满足《GB/T 7714-2015 信息与文献 参考文献著录规则》要求的参考文献。除了具备 biblatex 提供的不同于传统基于 bibtex 的参考文献解决方案的特点外,还具有如下特点:
-
-* 较强的兼容性。能够兼容 biblatex v2.8 以上版本;能够兼容国标样式的一些常用条目类型、数据域。
-
-* 较高的易用性。标注/著录格式完全由样式实现,不必为排序、多语言等问题手动处理bib文件;提供了丰富的标注(引用)命令,包括一些中文中习惯的命令;提供了多语言对照,多语言文献表等功能。
-
-* 较大的灵活性。提供丰富的选项来帮助用户进行排序调整、著录项(姓名、出版项、文献标识符、标题超链接)格式调整、文献表格式(标签对齐、标签格式、条目格式、字体、段落格式)调整、编码兼容。
-
-* 较好的维护性。样式代码主要是在标准样式基础上提供的中文国标解决方案,保持与标准样式一致的结构、风格和习惯,并提供详尽的注释,用户可轻松理解,并可在其基础上进一步修改以实现其它要求的样式,比如宏包附带的chinese-erj样式,就是基于本样式实现的经济学研究期刊的参考文献样式。
-
-简单使用说明见:[使用入门](#jumptotutorial)
-
----------------------------------------------------------
-
-## Need to do:
-
- * special characters in all fields?
- * entry without author: the delimiter between title and year?
- * TEST FOR texlive 2015,2016,2017
-
-
-## Applications
-
-* [SJTUThesis(上海交通大学学位论文模板)](https://github.com/sjtug/SJTUThesis)(母校的论文模板,不得不说缘分真的很神奇)
-* [fduthesis(复旦大学论文模板)](https://github.com/Stone-Zeng/fduthesis)
-* [Zhejiang University thesis(浙江大学毕业设计/论文模板)](https://github.com/TheNetAdmin/zjuthesis)
-* [UCASthesis(中国科学院大学学位论文模板**国科大新版标准**)](https://github.com/xiaoyao9933/UCASthesis)
-* [UCASthesis(ucasthesis 国科大学位论文 LaTeX 模板 [最新样式])](https://github.com/mohuangrui/ucasthesis)
-* [TongjiThesis(同济大学硕博士论文LaTeX模板)](https://github.com/marquistj13/TongjiThesis)
-* [neuthesis(东北大学博士学位论文Latex模板)](https://github.com/mervin0502/neuthesis)
-* [nwafuthesis(西北农林科技大学学位论文LaTeX文档类)](https://github.com/registor/nwafuthesis)
-* [nudtpaper(nudt学位论文模板)](https://github.com/liubenyuan/nudtpaper)
-* [ECNU-Undergraduate-LaTeX(华东师范大学本科毕业论文模板)](https://github.com/YijunYuan/ECNU-Undergraduate-LaTeX)
-* [fjnu-bathesis (福建师范大学本科毕业论文LaTeX 模板)](https://github.com/fjnuer/fjnu-bathesis)
-* [Thesis-Template-for-XJTU (西安交大毕业设计模板)](https://github.com/DXie123/Thesis-Template-for-XJTU)
-* [CAUTemplate(中国农业大学课程论文模板)](https://github.com/Cdmium/CAUTemplate)
-* [Yet anoter BUPT Thesis LaTeX class (北邮研究生学位设计的LaTeX文档类)](https://github.com/qcts33/BUPTthesis-ctex)
-* [Study-LaTeX(LaTeX学习笔记)](https://github.com/Zousiyu/Study-LaTeX)
-* [ElegantBook](https://github.com/ElegantLaTeX/ElegantBook)
-* [《经济研究》杂志 LaTeX 论文模板)](https://github.com/EthanDeng/Chinese-ERJ)
-* [WUTthesis(武汉理工大学研究生学位论文的 LaTeX 模板)](https://github.com/Jiayin-Gu/WUTthesis)
-* [shtthesis (ShangHaiTech university THESIS)](https://github.com/lirundong/shtthesis)
-* [LaTeX-SWUFE-Bachelor-Thesis (西南财经大学本科毕业论文 LaTeX 模板)](https://github.com/sukanka/LaTeX-SWUFE-Bachelor-Thesis)
-* [NJU-thesis-esz(南京大学学位论文-微调整后适用于人文社科)](https://github.com/EdwardSaidZhou/NJU-thesis-esz)
-* [NKThesis(南开大学硕士毕业论文(博士论文)Latex模板)](https://github.com/procuteboy/NKThesis)
-* [NKUBachelorThesis(南开大学本科生毕业论文(毕业设计)LaTeX模板)](https://github.com/NKcqx/NKUBachelorThesis)
-* [BIThesis(bachelor graduation thesis for Dept. of Undergraduate Academic Affairs of Beijing Institute of Technology.)](https://github.com/BITNP/BIThesis)
-* [nputhesis(NPU 博士、硕士学位论文 \LaTeX 模板)](https://github.com/NPUSCG/nputhesis)
-* [sustechthesis(Southern University of Science and Technology Thesis Template LaTeX Template)](https://github.com/Iydon/sustechthesis)
-* [SHMTUThesis(上海海事大学 LaTeX 学位论文模板)](https://github.com/hellckt/SHMTUThesis)
-* [LZUthesis(兰州大学本科毕业论文LaTeX模板)](https://github.com/szsdk/LZUthesis)
-* [nuaa-thesis(南京航空航天大学本科、硕士和博士学位论文的样式模板)](https://github.com/nuaa803/nuaa-thesis)
-* [...]
-
-
-## Related Links
-
-* [Biblatex 宏包](https://github.com/plk/biblatex)
-* [Beamer 文档类](https://github.com/josephwright/beamer)
-* [biblatex 宏包中文手册 ](https://github.com/hushidong/biblatex-zh-cn)
-* [biblatex 简明使用手册](https://github.com/hushidong/biblatex-solution-to-latex-bibliography)
-* [biblatex-tutorial 摘译](https://github.com/hushidong/biblatex-tutorial-cn)
-* [biblatex-map bib文件修改工具](https://github.com/hushidong/biblatex-map/)
-* [biblatex-check bib文件检查工具](https://github.com/Pezmc/BibLatex-Check)
-* [biblatex-caspervector: caspervector 设计的中文参考文献样式](https://github.com/CasperVector/biblatex-caspervector)
-* [gbt7714-bibtex-style: GB/T7714-2015 标准的bst实现版本](https://github.com/zepinglee/gbt7714-bibtex-style)
-* [LaTeX学习网站](http://www.latexstudio.net/)
-* [LaTeX交流论坛](http://www.ctex.org/)
-
----------------------------------------------------------
-
-<h2 id="jumptotutorial">Tutorial/使用入门</h2>
-[//]: # "这里这种方式不适合可能主要是因为标题所导致,因此用上面的方式进行处理"
-
-
-<h3 id="jumptopkgload">0. pacakge usage/宏包加载方式</h3>
-样式包配合biblatex使用,即在biblatex调用时加载样式包:
-
-* 使用顺序编码制:
-
-```
- \usepackage[backend=biber,style=gb7714-2015]{biblatex}
-```
-
-* 使用著者-出版年制:
-
-```
- \usepackage[backend=biber,style=gb7714-2015ay]{biblatex}
-```
-
-* 使用宏包提供的选项:
-
-```
- %设置gbalign选项以改变文献表序号标签对齐方式,
- %设置gbpub=false取消缺省出版项自填补信息,比如:
- \usepackage[backend=biber,style=gb7714-2015,gbalign=gb7714-2015,gbpub=false]{biblatex}
-```
-
-* 使用同一文献表中不同语言区分著录格式的样式(gb7714-2015ms):
-
-```
- %设置gbstyle=false,中文文献使用GB/T 7714-2015著录格式,而其它语言文献使用biblatex标准样式
- \usepackage[backend=biber,style=gb7714-2015ms,gbstyle=false]{biblatex}
-```
-
-* 同一文档中不同文献分节区分不同著录格式的样式(gb7714-2015mx):
-
-```
- %gb7714-2015mx默认使用顺序编码制样式
- \usepackage[backend=biber,style=gb7714-2015mx]{biblatex}
- %如需在某一参考文件分节使用著者年份制样式,比如第2个refsection中使用时,则在导言区设置:
- \setaystylesection{2}
-```
-
-更多宏包选项的说明见:[biblatex-gb7714-2015.pdf](biblatex-gb7714-2015.pdf)
-
-宏包加载的完整文档示例见:[tex文档一般结构](#jumptotexsrcf)
-
-<h3 id="jumptotexsrcf">1. Tex source file/tex文档一般结构</h3>
-注意其中加载biblatex宏包的代码:
-
-```
-\documentclass{article}%文档类%导言区开始:
-
-\usepackage{ctex}%加载ctex宏包,中文支持
-
-\usepackage[left=20mm,right=20mm,top=25mm, bottom=15mm]{geometry}%加载geometry宏包,定义版面
-
-\usepackage[colorlinks=true,pdfstartview=FitH,%
-linkcolor=blue,anchorcolor=violet,citecolor=magenta]{hyperref}%加载hyperref宏包,使用超链接
-
-\usepackage[backend=biber,bibstyle=gb7714-2015,%nature,%%加载biblatex宏包,使用参考文献
-citestyle=gb7714-2015%,backref=true%%其中后端backend使用biber
-]{biblatex}%标注(引用)样式citestyle,著录样式bibstyle都采用gb7714-2015样式
-
-\usepackage{filecontents}
-\begin{filecontents}{egbibdata.bib}
-@Book{Peebles2001-100-100,
- Title = {Probability, random variable, and random signal Principles and \LaTeX{}},
- Address = {New York},
- Author = {von Peebles, Jr., P. Z.},
- Edition = {4},
- Pages = {100},
- Publisher = {McGraw-Hill},
- Year = {2001}
-}
-
-@Book{蔡敏2006--,
- Title = {UML基础和Rose建模教程},27
- Address = {北京},
- Author = {蔡敏 and 徐慧慧 and 黄柄强},
- Publisher = {人民邮电出版社},
- Year = {2006},
- Month = {1}
-}
-\end{filecontents}
-
-\addbibresource[location=local]{egbibdata.bib}%biblatex宏包的参考文献数据源加载方式
-
-\begin{document}%正文区开始:
-
-%正文内容,引用参考文献
-
-1. 不带页码的引用(顺序编码制上标,方括号包围;作者年制行内,括号包围):\\
- 见文献\cite{Peebles2001-100-100}\\
- 见文献\upcite{Peebles2001-100-100}\\
- 见文献\supercite{Peebles2001-100-100}
-
-2. 不带页码的引用(顺序编码制非上标,方括号包围;作者年制行内,括号包围):\\
- 见文献\parencite{Peebles2001-100-100}
-
-3. 带页码的引用(标准命令,默认样式; 增加命令,GB/T 7714-2015样式):\\
- 见文献\cite[见][49页]{蔡敏2006--}\\
- 见文献\parencite[见][49页]{Peebles2001-100-100}\\
- 见文献\pagescite{Peebles2001-100-100}\\
- 见文献\pagescite[201-301]{Peebles2001-100-100}
-
-4. 顺序编码制中同时输出作者和顺序编码标签,比如:\\
- 见\citeauthor{蔡敏2006--}\cite{蔡敏2006--}\\
- 见\authornu*mcite{蔡敏2006--}\\
- 见\textcite{蔡敏2006--} (顺序编码标签不上标)
-
-5. 作者年制文中已有作者还需要年份和页码(顺序编码制与pagescite作用相同,作者年制年份行内页码上标):\\
- 见蔡敏\yearpagescite[][205]{蔡敏2006--}和Peebles\yearpagescite[][15]{Peebles2001-100-100}
-
-6. 作者年制文中已有作者只需要年份(顺序编码制与pagescite作用相同,作者年制年份行内):\\
- 见赵耀东\yearcite{蔡敏2006--}\\
- 见赵耀东(\cite*{蔡敏2006--})\\
- 见赵耀东(\citeyear{蔡敏2006--})
-
-7. 作者年制中由标注命令给出作者年份信息,作者以主语方式作为正文内容:\\
- 见\textcite{蔡敏2006--}
-
-8. 在页脚中引用和打印文献表:\\
- 见文献\footnote{在脚注中引用\footcite{蔡敏2006--}}\\
- 见文献\footfullcite{蔡敏2006--}
-
-
-%打印参考文献表
- \printbibliography[heading=bibliography,title=参考文献]
-\end{document}
-```
-
-### 2. Compile method/文档编译方式
-
-```
- xelatex jobname.tex
- biber jobname
- xelatex jobname.tex
- xelatex jobname.tex
-```
-
-或者
-
-```
- latexmk -xelatex jobname.tex
-```
-
-编译引擎使用lualatex也是可以的,只要该引擎编译时ctex宏包能够正确支持中文。
-
-
-### 3. Recommended environment/推荐使用环境
-
-- Texlive+Winedt
-- Texlive+Texstudio
-- texlive及其它发行版安装见[安装指南](https://github.com/sjtug/SJTUThesis/wiki/%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97)
-
-
-### 4. Common questions/常见问题
-
-#### 4.1 Installation and use/安装和使用
-
-* <b>怎么利用biblatex生成国标GB/T 7714-2015格式的参考文献表?</b>
-
-(1)在导言区加载biblatex宏包,并使用gb7714-2015样式:
-
-``` \usepackage[backend=biber,style=gb7714-2015]{biblatex}```
-
-(2)正文中引用参考文献:
-
-``` 见文献\cite{referencbibtexkey}```
-
-(3)在需要的地方打印参考文献表:
-
-```\printbibliography```
-更直接的例子见前述的[tex源文档](#jumptotexsrcf)
-
-
-
-
-* <b>请问我应该怎么安装和更新biblatex-gb7714-2015宏包?</b>
-
-
-biblatex-gb7714-2015宏包是基于biblatex的样式宏包,目前texlive,miktex都已收录,因此可以直接使用,一般不需要安装。
-
-如果使用时,系统提示找不gb7714-2015.bbx或gb7714-2015ay.bbx文件的错误,说明当前tex系统未安装biblatex-gb7714-2015样式包,这时需要安装它。
-
-最简单的方法是从本项目源码中下载 gb7714-2015.bbx, gb7714-2015ay.bbx, gb7714-2015.cbx, gb7714-2015ay.cbx 四个文件放到你要编译的主文档所在目录,如果需要使用gbk编码,则还需复制 gb7714-2015-gbk.def 文件。对于已经安装的用户需要更新到最新版,也可以下载这些文件替换系统已经安装的文件。
-
-
-
-* <b>请问使用时biblatex-gb7714-2015宏包时出现错误“ Package xkeyval Error: gb****** ' undefined in families blx@opt@pre'. [\blx@processoptions] ”?</b>
-
-
-
-因为宏包的功能不断增加和完善,当在tex源文档中,使用新版中的一些选项时,而系统中的biblatex-gb7714-2015宏包是旧版时,就会出现`gb****`选项未定义的错误。解决方法就是更新biblatex-gb7714-2015宏包。更新方法见上一个问题。
-
-
-
-* <b>为什么我之前使用样式`style=caspervector`进行编译没有问题,换成`style=gb7714-2015`后,编译就出现错误?</b>
-
-可能有三个原因:
-
-(1) 辅助文件没有清理导致,当采用caspervector样式时编译产生的辅助文件中可能带有该样式的一些特有信息,由此产生一些不兼容。因此需要的操作是,清除辅助文件,然后再进行编译。清除命令为(下面的命令是windows下的,linux下的是类似的只需把删除命令换成`rm -f`):
-
-```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```
-
-(2) biblatex-gb7714-2015 版本过于陈旧,旧版本对于一些特殊情况可能考虑不全面。因此需要的操作是更新biblatex-gb7714-2015,方法见上一个问题。
-
-(3) 编译命令问题,通常情况下tex文档和bib文档是utf8编码的,因此最好采用xelatex编译,而不用pdflatex。因此如果编译时用pdflatex出现错误,请换成xelatex。
-
-
-* <b>为什么我编译文档后没有出现参考文献表?</b>
-
-当编译过程出现错误时,那么检查错误的原因,并解决它。
-当编译过程没有出现错误,那么很有可能是没有采用正确的命令进行文献编译,比如采用了传统的bibtex而不是biber。那么采用正确的编译命令重新编译即可:
-```
-xelatex jobname.tex
-biber jobname
-xelatex jobname.tex
-```
-
-
-* <b>为什么利用 ctex2.9 套装进行编译时,出现错误?</b>
-
-
-由于ctex2.9套装多年未更新,其中的biblatex宏包过于陈旧,所以需要更新 biblatex。
-
-
-
-* <b>请问除了利用xelatex进行编译外,能不能用pdflatex进行编译?</b>
-
-
-能用pdflatex进行编译。但要注意的是因为某些样式比如authoryear等使用了xstring宏包中的一些命令,所以会产生错误,但numeric类样式通常没有问题。这一问题在biblatex更新到3.12版本后取消xstring宏包后得以解决。
-
-中文用户需要注意一些编码的问题:
-
-utf-8编码的文档,采用xelatex编译没有任何注意事项,但使用pdflatex编译时,需要给ctex宏包加载UTF8选项,比如`\usepackage[UTF8]{ctex}`或者在文档类加载时给出也可以比如`\documentclass[[UTF8]{article}`,同时引用文献时使用的引用关键词应使用英文。
-
-当文档使用其他编码时,xelatex编译通常需要指定一个文档编码,比如windows环境下的GB2312编码的文档需要指定`\XeTeXinputencoding "GBK"`, 否则显示乱码。使用pdflatex进行编译,如果biblatex不能正确的处理编码问题,那么需要为其明确的指定texencoding和bibencoding选项。比如windows环境下的GB2312编码的文档,需要指定`\usepackge[texencoding=GBK]{biblatex}`。
-
-
-* <b>请问使用backref=true选项后,某个反向超链接总是链接到封面页是怎么回事?</b>
-
-
-对页码进行正确超链接需要一个前提是,当前链接的页码是唯一的。当有两页具有相同的页码时,超链接总是链接到第一各具有该页码的页面上。比如封面页页码是1,正文第一页页码也是1,那么到正文第一页的反向超链接总会链接到封面页上。解决该问题就是要解决页码的唯一性问题。当页码的表示形式不是同一种时,那么也会得到正确的区分。比如封面页用罗马字母I表示,而正文第一页用阿拉伯数字1表示,那么就能得到正确的反向超链接。类似于:
-
-```
-\pagenumbering{roman}
-\title{title}
-\maketitle
-\clearpage
-
-\pagenumbering{arabic}
-\section{文献表}
-```
-
-
-* <b>我希望参考文献表中的文献不是按引用顺序而是以文献作者的字母顺序排序,怎么实现?</b>
-
-
-一般情况下文献表是按引用顺序进行排列,标签是顺序的数字,这种方式称为顺序编码制。
-如果要以文献作者字母顺序排列,那么可以换一种编制方式,称为作者年制:
-
-```\usepackage[backend=biber,style=gb7714-2015ay]{biblatex}```
-
-如果要求使用顺序编码制文献表,又要以文献作者字母顺序排列,那么可以增加排序选项`sorting=nyt`,意为按照姓名、年份、标题的字母顺序进行排序:
-
-```\usepackage[backend=biber,style=gb7714-2015,sorting=nyt]{biblatex}```
-
-
-
-* <b>作者年制中英文文献能按字母顺序排列,那么中文文献能否以拼音或者笔画进行排序呢?</b>
-
-
-能,有两种方式实现:
-
-(1)通过编译时给biber设置选项来实现:
-
-```
-%按拼音排序,biber命令
-biber -l zh__pinyin jobname
-%按笔画排序,biber命令
-biber -l zh__stroke jobname
-```
-
-(2)通过增加 biblatex 选项来实现(此时biber编译无需另加选项),比如:
-
-```\usepackage[backend=biber,style=gb7714-2015ay,sortlocale=zh__pinyin]{biblatex}```
-
-
-
-* <b>作者年制参考文献表目前的排序时升序排列,能不能改成降序排序?</b>
-
-
-能,通过修改sorting选项实现:
-
-
-```\usepackage[backend=biber,style=gb7714-2015ay,sorting=gbnytd]{biblatex}```
-
-可用的选项值包括:
-```
-nty 按照姓名、标题、年份排序。
-nyt 按照姓名、年份、标题排序。
-nyvt 按照姓名、年份、卷数、标题排序。
-anyt 按照字母标签、姓名、年份、标题排序。
-anyvt 按照字母标签、姓名、年份、卷数、标题排序。
-ynt 按照年份、姓名、标题排序。
-ydnt 按照年份(降序)、姓名、标题排序。
-none 不进行排序。所有的条目按照引用顺序处理。
-gb7714-2015 以语言、作者、年份、标题、升序排列
-gbnytd 以语言、作者、年份、标题、降序排列
-gbynta 以语言、年份、作者、标题、升序排列
-gbyntd 以语言、年份、作者、标题、降序排列
-```
-
-* <b>如果我还希望顺序编码的文献著录表以拼音排序,请问该怎么操作?</b>
-
-顺序编码文献著录表默认是按引用顺序排序,但可以通过设置sorting选项进行调整,比如sorting=nyt表示按作者姓名年份以及文献标题进行排序。要使中文能按拼音排序,可以设置本地化排序调整方案,即sortlocale选项,比如:
-
-```\usepackage[backend=biber,citestyle=gb7714-2015ay,bibstyle=gb7714-2015,sorting=nyt,sortlocale=zh__pinyin]{biblatex}```
-
-
-
-
-
-* <b>我希望文献表以阿拉伯数字编号,而正文中的引用标签使用作者和年份标注而不是数字,请问我该如何处理?</b>
-
-可以设置不同的标注和著录样式,比如标注样式用作者年制,而著录样式用顺序编码制,比如:
-
-```\usepackage[backend=biber,citestyle=gb7714-2015ay,bibstyle=gb7714-2015]{biblatex}```
-
-参见:[issue:参考文献的顺序](https://github.com/sjtug/SJTUThesis/issues/300)
-
-
-
-
-
-
-​
-* <b>请问如果参考文献中存在一些特殊字符比如&或者一些特殊命令比如\LaTex{}等,是不是会出现问题?</b>
-
-
-通常不会出现问题,直接输入即可,当出现问题时可以手动调整比如修改为`\&`和`{\LaTex{}}`
-
-
-
-* <b>如果希望在参考文献中直接使用一些unicode字符比如希腊字母等而不想用数学环境中的命令,请问该怎么处理?</b>
-
-
-直接显示希腊字母等unicode字符需要字体的支持,比如CMU Serif等,可以在整个文档全局使用该字体,也可以仅在文献表中使用该字体,比如:
-
-```
-{
-\newcommand{\ftcmu}{\fontspec{CMU Serif}\selectfont}
-\renewcommand{\bibfont}{\ftcmu}%设置英文字体不影响中文字体
-\printbibliography
-}
-```
-
-当然字体设置需要fontspec宏包的支持。
-
-
-
-* <b>如何修改参考文献文献表的垂直间距(竖直间距)?</b>
-
-设置如下尺寸即可
-
-```
-% 间距的控制
-\setlength{\bibitemsep}{0ex}
-\setlength{\bibnamesep}{0ex}
-\setlength{\bibinitsep}{0ex}
-
-```
-其中itemsep设置各条文献之间的间隔,一般够用,后面两个常在西文中使用。具体意义参考biblatex-zh-cn
-
-
-
-* <b>如何修参考文献表的缩进?</b>
-
-对于著者-出版年制文献表,设置如下尺寸即可:
-```
-% 文献表中各条文献的缩进控制
-\setlength{\bibitemindent}{0em} % bibitemindent表示一条文献中第一行相对后面各行的缩进
-\setlength{\bibhang}{0pt} % 著者-出版年制中 bibhang 表示的各行起始位置到页边的距离
-```
-
-对于顺序编码制文献表,可以采用如下方法:
-
-由于顺序编码制存在数字标签,且其宽度与参考文献数量相关的,在biblatex中这个宽度是一个动态变量,不是提前设定的,而是在文献表生成时给出,所以设定缩进需要更复杂的操作。
-
-对于采用list环境的文献表,即设置gbalign=left、right、center时,那么需要修改文献表环境来设定缩进,比如:
-
-```
-%调整顺序标签与文献内容的间距
-\setlength{\biblabelsep}{2mm}
-%修改对齐环境-使不缩进
-\defbibenvironment{bibliography}
- {\list
- {\printtext[labelnumberwidth]{%
- \printfield{labelprefix}%
- \printfield{labelnumber}}}
- {%这里是所做的调整,通过设置\bibitemindent,\bibhang调整缩进
- \addtolength{\bibitemindent}{\labelnumberwidth}%
- \addtolength{\bibitemindent}{\biblabelsep}%
- \addtolength{\bibhang}{-\labelnumberwidth} %
- \addtolength{\bibhang}{-\biblabelsep}%
- %以下是默认的设置
- \setlength{\labelwidth}{\labelnumberwidth}%
- \setlength{\labelsep}{\biblabelsep}%
- \setlength{\leftmargin}{\bibhang}%
- \addtolength{\leftmargin}{\labelnumberwidth}%
- \setlength{\itemindent}{\bibitemindent}%
- \setlength{\itemsep}{\bibitemsep}%
- \setlength{\parsep}{\bibparsep}}%
- \renewcommand*{\makelabel}[1]{\hss##1}}
- {\endlist}
- {\item}
-```
-
-对于不采用list环境的文献表,即设置gbalign=gb7714-2015时,可以采用如下设定:
-
-```
-%调整顺序标签与文献内容的间距
-\setlength{\biblabelsep}{2mm}
-%修改对齐环境-使不缩进
-\renewcommand{\itemcmd}{%
-\settowidth{\lengthid}{\mkgbnumlabel{\printfield{labelnumber}}}
-%%这里是所做的调整,以下两句通过调整\lengthid来调整缩进
-\setlength{\lengthid}{0pt}
-\addtolength{\lengthid}{-\biblabelsep}
-%如下是默认设置
-\addtolength{\lengthid}{\biblabelsep}
-\setlength{\lengthlw}{\textwidth}
-\addtolength{\lengthlw}{-\lengthid}
-\addvspace{\bibitemsep}%恢复\bibitemsep的作用
-%\parshape 2 0em \textwidth \lengthid \lengthlw
-\hangindent\lengthid
-\mkgbnumlabel{\printfield{labelnumber}}%
-\hspace{\biblabelsep}}
-```
-
-示例见:https://github.com/hushidong/biblatex-gb7714-2015/issues/62
-
-
-
-
-* <b>如何修改参考文献表的字体字号?</b>
-
-通过修改如下命令实现
-
-```
-% 字体的控制: \textit, sl, emph-楷体, \textbf, sf-黑体, \texttt-仿宋, \textsc, md, up-宋体
-% 全局字体
-\renewcommand{\bibfont}{\zihao{-5}}%\fangsong
-% 题名字体
-\renewcommand{\bibauthorfont}{\bfseries\color{teal}}%
-\renewcommand{\bibtitlefont}{\ttfamily\color{blue}}%
-\renewcommand{\bibpubfont}{\itshape\color{violet}}%
-% url和doi字体
-\def\UrlFont{\ttfamily} %\urlstyle{sf} %\def\UrlFont{\bfseries}
-```
-
-​
-* <b>我习惯用传统的bst文件来生成参考文献,有没有GB/T 7714-2015标准的实现版本?</b>
-
-
-GB/T 7714-2015标准实现的bst版本,已经由[zeping lee](https://github.com/zepinglee/gbt7714-bibtex-style)开发完毕,直接使用即可。
-
-
-
-* <b>我在使用过程中遇到了一些无法理解和无法解决的问题,怎么办?</b>
-
-
-请邮件联系hzzmail@163.com或在项目内发issue提问即可。
-
-
-#### 4.2 Bibliography format/文献表著录格式
-
-* <b>请问可以在参考文献表中实现类似于word那样的与文献内容等间距标签对齐格式么?</b>
-
-
-可以,latex的列表通常用list来实现,因此一般列表的内容都是对齐的,
-此时如果标签右对齐的,那么标签和内容等间距,但标签左侧是不对齐的。
-如果标签是左对齐的,那么标签和内容的间距不相等。
-如果要求标签左侧对齐,且标签与内容等间距必须放弃使用list。
-biblatex-7714-2015的顺序编码制样式特别设计了这样的环境,以保持和word一致。通过设置选项gbalign来实现:
-
-```\usepackage[backend=biber,bibstyle=gb7714-2015,gbalign=gb7714-2015]{biblatex}```
-
-
-
-* <b>如果不希望在参考文献表中出现类似“出版地不详”“出版者不详”等信息时,请问该怎么处理?</b>
-
-
-设置选项gbpub可以实现,当gbpub=false时,biblatex-gb7714-2015宏包会放弃国标的要求,不使用“出版地不详”等补充信息:
-
-```\usepackage[backend=biber,bibstyle=gb7714-2015,gbpub=false]{biblatex}```
-
-
-​
-* <b>我觉得文献表中英文作者全部用大写不好看,请问能换一种大小写方式么?</b>
-
-
-能,通过设置gbnamefmt可以实现,默认情况下gbnamefmt=uppercase,作者姓名字母全部大写。
-当设置gbnamefmt=lowercase时,biblatex-gb7714-2015宏包对于bib文件中的作者姓名的大小写不做改变,
-这时可以在bib文件中手动设置想要的大小写方式。
-当要实现类似ZHAO Yu-xin这样的拼音方式,则可以设置gbnamefmt=pinyin:
-
-```\usepackage[backend=biber,bibstyle=gb7714-2015,gbnamefmt=lowercase]{biblatex}```
-
-
-
-* <b>如果不希望在参考文献表中出现类似“[M]”“[J]”等文献类型标识符时,请问该怎么处理?</b>
-
-
-可通过设置选项gbtype=false实现:
-
-```\usepackage[backend=biber,bibstyle=gb7714-2015,gbtype=false]{biblatex}```
-
-
-
-* <b>如果不希望在参考文献表中出现网址信息时,请问该怎么处理?</b>
-
-
-可通过设置选项url=false实现:
-
-```\usepackage[backend=biber,bibstyle=gb7714-2015,url=false]{biblatex}```
-
-
-
-* <b>如果不希望在参考文献表中出现DOI信息时,请问该怎么处理?</b>
-
-
-可通过设置选项doi=false实现:
-
-```\usepackage[backend=biber,bibstyle=gb7714-2015,doi=false]{biblatex}```
-
-
-
-* <b>如果对当前文献中的url或doi显示效果(包括间距和断行)不满意,能否进行调整?</b>
-
-
-能,可以通过设置三个计数器的值来调整,取值范围0到9999,计数器的值越大则越容易在相应的内容后断行:
-
-```
-\setcounter{biburlnumpenalty}{100}%大于0允许在数字后面断行
-\setcounter{biburlucpenalty}{100}%大于0允许在大写字母后面断行
-\setcounter{biburllcpenalty}{100}%大于0允许在小写字母后面断行
-
-```
-
-
-​
-* <b>当参考文献没有作者时,希望用佚名或Anon代替作者时,请问该怎么处理?</b>
-
-
-可通过设置选项gbnoauthor=true实现,注意该处理主要用在作者年制中:
-
-```\usepackage[backend=biber,bibstyle=gb7714-2015,gbnoauthor=true]{biblatex}```
-
-
-
-* <b>如果希望参考文献表中文献作者数量超过国标规定的3个时,请问该怎么处理?</b>
-
-
-可通过设置选项maxbibnames,minbibnames实现,比如下面的设置用于显示5个作者:
-
-```\usepackage[backend=biber,bibstyle=gb7714-2015,maxbibnames=5,minbibnames=5]{biblatex}```
-
-
-* <b>请问如何将作者之间的分隔符调整为and而不是用逗号?</b>
-
-
-可以通过重设两个分隔符来实现,分别是multinamedelim和finalnamedelim。低版本的biblatex直接重定义命令`\multinamedelim`和`\finalnamedelim`,高版本的biblatex可以使用分隔符环境,这样可以在标注、文献表等不同位置直接使用不同的分隔符,而不像低版本biblatex那样只能在不同的位置修改局部定义。比如:
-
-```
-\DeclareDelimFormat[bib]{multinamedelim}{\addspace and \addspace}
-\DeclareDelimFormat[bib]{finalnamedelim}{\addspace and \addspace}
-\DeclareDelimFormat[cite]{multinamedelim}{\addcomma\addspace}
-\DeclareDelimFormat[cite]{finalnamedelim}{\addcomma\addspace}
-```
-
-
-​
-* <b>请问如何使文献表中文献标题的是句首字母大写而其它所有字母均小写?</b>
-
-
-默认情况下,biblatex-gb7714-2015仅对标题首字母做调整,使其变成为大写,而其他字母大小写不做处理,因此要得到想要的字母大小写格式,需要在bib文件输入参考文献信息时给出需要的除首字母外的其它字母的大小写格式。
-
-若有特殊情况,需要首字母为小写,可采用如下两种方法:
-
-(1)根据字符大小写更换命令比如
-
-`{\MakeLowercase i}FogSim title contents`
-
-(2)修改titlecase域格式,即将如下命令放到导言区中,放biblatex后面
-
-```
-\DeclareFieldFormat{titlecase}{\iftoggle{bbx:titlelink}{%
-\iffieldundef{url}{#1}{%
-\href{\thefield{url}}{#1}}}{#1}}%重设标题格式,将去除首字母大写
-```
-
-​
-* <b>请问如何使文献表中的期刊名是单词首字母大写的?</b>
-
-
-默认情况下,biblatex-gb7714-2015不对期刊名的字母大小写做处理,
-因此需要在bib文件输入参考文献信息时给出需要的大小写格式。
-
-
-​
-* <b>我想得到中英文对照的双语参考文献,请问该如何处理?</b>
-
-
-biblatex-gb7714-2015设计了两种多语言对照参考文献的实现方式,
-一种是利用条目集的概念,另一种是利用关联条目的概念。
-因此有两种方法:
-
-(1)方法一,动态定义条目集:
-在导言区或正文中定义:
-```\defbibentryset{易仕和,等,2013}{易仕和2013--,Yi2013--}```
-
-在正文中引用:
-```双语文献引用\cite{易仕和,等,2013}```
-
-(2)方法二,动态定义关联条目:
-在导言区定义:
-```\defdoublelangentry{易仕和2013--}{Yi2013--}```
-
-在正文中引用:
-```双语文献引用\cite{易仕和2013--}```
-
-
-
-
-* <b>我想修改文献条目的日期项诸如格式,请问该如何处理?</b>
-
-参考文献中日期格式主要有四种修改方式:
-(1) 利用biblatex选项全局的修改日期格式
-(2) 修改日期输出宏,使根据条目类型输出不同的日期格式
-(3) 修改日期输出宏,使根据具体条目输出不同的日期格式
-(4) 修改参考文献信息,使当前条目原样输出需要的格式
-
-具体示例见:[biblatex中如何修改参考文献中日期的著录格式](https://blog.csdn.net/xenonhu/article/details/86933525)
-
-
-​
-#### 4.3 Citation format/正文引用的标注格式
-
-* <b>我希望在正文中同时使用上标和非上标的引用标签,请问该怎么操作?</b>
-
-
-可以使用不同的命令来实现上标和非上标的标签,
-上标标签的命令为`\cite{bibtexkey}` ,非上标标签的命令为 `\parencite{bibtexkey}`。
-当希望上标的标签也给出国标要求的页码时,则可以使用`\cite[50-55]{bibtexkey}`、`\pagescite[50-55]{bibtexkey}`给出指定页码 或者`\pagescite{bibtexkey}` 直接使用bib文件中的页码。
-
-
-​
-* <b>我在引用文献时已经给出作者信息,希望引用标签仅包含年份和页码信息或者仅包含年份信息时,该怎么操作?</b>
-
-
- 需要给出年份的标签是作者年制的标签,可以使用命令`\yearpagescite{bibtexkey}`给出包含年份和页码信息的标签,
- 使用命令`\yearcite{bibtexkey}`给出仅包含年份的标签。
-
-
-
-* <b>在使用作者年制时,我希望文献表是按作者年份标题排序,而正文某处一个cite命令引用多个参考文献,且这些文献的标签是按年份作者标题排序,该怎么操作?</b>
-
-
- 有两种方法:
-
-(1) 一是自动排序
-
- 宏包加载时使用:
-
-```\usepackage[backend=biber,style=gb7714-2015ay,sortcites,sorting=ynt]{biblatex}```
-
- 正文中引用:
-
-```\cite{refa2010,refb2008,refc2009}```
-
- 然后在文献打印前加
-
-```\newrefcontext[sorting=nyt]```
-
-(2) 二是手动给出排序
-
- 宏包加载时使用
-
-```\usepackage[backend=biber,style=gb7714-2015ay]{biblatex}```
-
- 引用多个文献时按照年份顺序给出引用关键字,即正文中引用:
-
-```\cite{refb2008,refc2009,refa2010}```
-
- 参考:[issue:citation的顺序和bibliography的顺序如何不关联](https://github.com/hushidong/biblatex-gb7714-2015/issues/30)
-
-
-
-* <b>在使用作者年制时,我希望文献表同一位置引用同一作者的不同的文献实现作者姓名的压缩,该怎么操作?</b>
-
-可以通过将gb7714-2015ay.cbx 中的引用的基础样式authoryear更换成authoryear-comp。
-
-
-​
-* <b>请问希望正文中作者年制的标注(引用)标签中作者数量超过国标规定的1个时,该怎么处理?</b>
-
-
-可通过设置选项maxcitenames,mincitenames实现,比如下面的设置用于显示5个作者:
-
-```\usepackage[backend=biber,style=gb7714-2015ay,maxcitenames=5,mincitenames=5]{biblatex}```
-
-
-
-* <b>请问希望正文中作者年制的标注(引用)标签中作者数量只能是1个,而不管是否存在歧义时,该怎么处理?</b>
-
-
-可通过设置选项uniquelist=false实现,该设置标签中的作者只会是指定的1个:
-
-```\usepackage[backend=biber,style=gb7714-2015ay,uniquelist=false]{biblatex}```
-
-
-
-* <b>请问希望正文中作者年制的标注(引用)标签中作者数量只能是1个,且只用其作者的姓而不管是否存在歧义时,该怎么处理?</b>
-
-
-可通过设置选项uniquelist=false, uniquename=false实现,该设置标签中的作者只会是指定的1个且只用该作者的姓:
-
-```\usepackage[backend=biber,style=gb7714-2015ay,uniquelist=false,uniquename=false]{biblatex}```
-
-
-
-
-* <b>请问上标的标注(引用)标签过长导致行溢出,该怎么处理?</b>
-
-
-上标的标注与行内的标注不一样,因此采用了上标的处理,所以上标的标注无法自动断行,因此在页边附近的长标注很有可能会溢出。由于上标标注的断行国标中并没有什么明确要求和说明,因此只能按照自己的方式进行处理,通常是将一个长标注手动分成两个短的标注,比如将:
-
-```\cite{key1,key2,key3,key4,key5,key6,key7}```
-
-变换成:
-
-```\cite{key1,key2,key3}\linebreak\cite{key4,key5,key6,key7}```
-
-如果两个cite之间还需要增加一个上标的逗号,那么可以手动处理比如增加`\textsuperscript{,}`
-
-
-
-* <b>在顺序编码制标签中,希望数字编码从两个连续编码就开始压缩,比如[1,2]压缩成[1-2],该怎么处理?</b>
-
-
-biblatex中处理顺序数字编码压缩的代码默认从3个连续编码开始压缩,比如[1,2,3]压缩成[1-3]。如果要修改为从2个连续编码开始压缩,只需要做一个很简单的修改即可:
-
-```
-%该宏的目的是抛弃压缩内部的编号,而仅输出最后一个编号,主要通过cbx@tempcnta来控制
-%一般情况下cbx@tempcnta为0,所以该宏不输出任何内容。当cbx@tempcnta在cite:comp:comp宏中更改变大后
-%说明开始进入需要压缩的范围,当到压缩终点时,cbx@tempcnta必然大于1,则输出内容。
-%修改第二行的数字1为0即可将默认的3个开始压缩变为2个开始压缩。
-\renewbibmacro*{cite:dump}{
- \ifnumgreater{\value{cbx@tempcnta}}{0}
- {\ifnumgreater{\value{cbx@tempcnta}}{1}%1改为0,可以将压缩起始3个编号改为2个编号
- {\bibrangedash}
- {\multicitedelim}%
- \bibhyperref[\cbx@lastkey]{%
- \ifdef\cbx@lastprefix
- {\printtext[labelprefix]{\cbx@lastprefix}}
- {}%
- \printtext[labelnumber]{\cbx@lastnumber}}}
- {}%
- \setcounter{cbx@tempcnta}{0}%
- \global\undef\cbx@lastprefix}
-```
-
-反之,从两个开始压缩改成3个连续压缩,方法是类似的,就是将中的0改回1。
-
-
-
-* <b>在正文中的某一部分,希望取消顺序编码标签中的压缩,而其他部分保持这种压缩,该怎么处理?</b>
-
-
-顺序数字编码压缩的代码,主要有cite:comp:comp宏控制,因此需要局部取消压缩,可以局部的修改该宏。修改很简单,只需要注释掉其中的一行,在需要取消压缩的环境中,重定义该宏,比如:
-
-```
-\renewbibmacro*{cite:comp:comp}{%
- \ifboolexpr{
- ( test {\iffieldundef{labelprefix}} and test {\ifundef\cbx@lastprefix} )
- or
- test {\iffieldequals{labelprefix}{\cbx@lastprefix}}
- }
- {\ifnumequal{\thefield{labelnumber}}{\value{cbx@tempcntb}}
- {\savefield{entrykey}{\cbx@lastkey}%
- \savefield{labelnumber}{\cbx@lastnumber}%
- \addtocounter{cbx@tempcnta}{1}}
- {\ifnumequal{\thefield{labelnumber}}{\value{cbx@tempcntb}-1}
- {}
- {\usebibmacro{cite:dump}%
- \ifnumgreater{\value{cbx@tempcntb}}{-1}
- {\multicitedelim}
- {}%
- \printtext[bibhyperref]{%
- \printfield{labelprefix}%
- \printfield{labelnumber}}}}}
- {\usebibmacro{cite:comp:end}}%
- %\setcounter{cbx@tempcntb}{\thefield{labelnumber}}%%注释该行,以取消压缩
- \savefield{labelprefix}{\cbx@lastprefix}}
-```
-
-
-​
-### 5. Examples/著录和标注结果示例
-
-* 顺序编码制
-
-![示例a](example/fig-style-numeric.png)
-
-* 作者年制
-
-![示例b](example/fig-style-authoryear.png)
-
-
-* 姓名的格式更改
-
-对于bib文件中的如下条目,有:
-
-```
- @Article{Zhang2007-500-503,
- Title = {The design and experimental investigations of supersonic length shorted nozzle},
- Author = {Zhang, Min-li and Yi, Shi-he and Zhao, Yu-xin},
- Journal = {ACTA AERODYNAMICA SINICA},
- Number = {4},
- Pages = {500-503},
- Volume = {25},
- Year = {2007}
- }
-
- @Book{Yi2013--,
- Title = {Supersonic and hypersonic nozzle design},
- Address = {Beijing},
- Author = {Yi, Shi he and Zhao, Yu xin and He, Lin and Zhang, Min li},
- Publisher = {National Defense Industry Press},
- Year = {2013}
- }
-
- @Book{LIAO2012--,
- Title = {Electronic countermeasure techniques for missile penetration},
- Address = {Beijing},
- Author = {LIAO, ping and JIANG, qin bo},
- Publisher = {National Defense Industry Press},
- Year = {2013}
- }
-
- @Book{LIU2003--,
- Title = {Introduction of Ballistic Misille Techniques},
- Address = {Beijing},
- Author = {LIU, shi Qiu},
- Publisher = {China Astronautic Publishing House},
- Year = {2003}
- }
-```
-![示例c](example/fig-nameformat.png)
-
-
-
----------------------------------------------------------
-
-
-## Usage
-* for numerical sequence style: gb7714-2015
-
- `\usepackage[backend=biber,style=gb7714-2015]{biblatex}`
-
- - add an option `gbalign` to control the align style of the numerical label:
-
- `gbalign=right` for the label ragged left in a list environment, this is the default setting.
-
- `gbalign=center` for the same width label in a list environment with the number centered in a wrapper like bracket []
-
- `gbalign=left` for the label ragged right in list environment
-
- `gbalign=gb7714-2015` for the label in paragraph with same separation space between label and content of the reference entry
-
- `\usepackage[backend=biber,style=gb7714-2015,gbalign=gb7714-2015]{biblatex}`
-
- - add an option `gbpub` for dealing publishing items (This option is also for author-year style):
-
- `gbpub = true` for gb7714 style, to print `[出版者不详]` and the like when publisher or address is absent, this is the default setting.
-
- `gbpub = false` for standard style, not to print the additional infomation.
-
- `\usepackage[backend=biber,style=gb7714-2015,gbpub=true]{biblatex}`
-
- - add an option `gbnamefmt` for dealing author name's letter case (This option is also for author-year style):
-
- `gbnamefmt = uppercase` for gb7714 style, to capitalize all the letters of the name, like: ZHANG M L, this is the default setting.
-
- `gbnamefmt = lowercase` for gb7714 style, do no case switch of the name, like: Zhang M L
-
- `gbnamefmt = givenahead` for standard style, given-family style, like: M. L. Zhang as the ieee style
-
- `gbnamefmt = familyahead` for standard style, family-given style, like: Zhang, M. L. as the apa style.
-
- `gbnamefmt = pinyin` for a common Chinese style, like: ZHANG Min-li, YI Shi-he and so on.
-
- `gbnamefmt = reserveorder` for standard style:family-given/given-family style
-
- 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.
-
- `\usepackage[backend=biber,style=gb7714-2015,gbnamefmt=uppercase]{biblatex}`
-
- - add an option `gbbiblabel` to control the format of the numerical label:
-
- `gbbiblabel=bracket` for the numerical number in the label wrapped by bracket, like: [1], this is the default setting.
-
- `gbbiblabel=parens` for the numerical number in the label wrapped by parenthesis, like: (1)
-
- `gbbiblabel=plain` for the numerical number in the label wrapped by nothing, like: 1
-
- `gbbiblabel=dot` for the numerical number in the label followed with dot, like: 1.
-
- `gbbiblabel=box` for the numerical number in the label wrapped by box which generated by `\framebox`
-
- `gbbiblabel=circle` for the numerical number in the label wrapped by circle which generated by `\textcircled`
-
- `\usepackage[backend=biber,style=gb7714-2015,gbbiblabel=bracket]{biblatex}`
-
- - 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):
-
- `gbtype = true` for gb7714 style, print a title with the identifier, like: `an on-line article [J/OL]`, this is the default setting.
-
- `gbtype = false` for none identifier, print a title without identifier, like: `an on-line article`
-
- `\usepackage[backend=biber,style=gb7714-2015,gbtype=true]{biblatex}`
-
- - add an option `gbfieldtype` to control the output of field type:
-
- `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}}`,
- `\DefineBibliographyStrings{english}{mathesiscn={str you want}}`,`\DefineBibliographyStrings{english}{phdthesiscn={str you want}}` to
- define the output string, or set it in bibfile like: `type={str you want},`
-
- `gbfieldtype = false` not to print type field.
-
- `\usepackage[backend=biber,style=gb7714-2015,gbfieldtype=true]{biblatex}`
-
- - 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):
-
- `gbpunctin=true` for gb7714 style, to output `//`, this is the default setting
-
- `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.
-
- `\usepackage[backend=biber,style=gb7714-2015,gbpunctin=true]{biblatex}`
-
- - add an option `gbctexset` to control the bibliography heading's setting method (This option is also for author year style):
-
- `gbctexset=true` , the bibliography heading can be set by `\bibname` or `\refname`, this is the default setting.
-
- `gbpunctin=false`, the heading can be set by bibstring like `\DefineBibliographyStrings{english}{bibliography={title you want}}` or `\DefineBibliographyStrings{english}{references={title you want}}`
-
- or alternatively, it can also be set through the printbibliography option `title`, like `printbibliography[title=title you want]`.
-
- `\usepackage[backend=biber,style=gb7714-2015,gbctexset=true]{biblatex}`
-
- - add an option `gbcodegbk` to deal the tex source file encoded with GBK (This option is also for author year style):
-
- `gbcodegbk=true` , if you want to compile the GBK encoded source file with pdflatex or latex
-
- `gbcodegbk=false`, if you want to compile the utf-8 endcoded source file with xelatex, this is the default setting.
-
- `\usepackage[backend=biber,style=gb7714-2015,gbcodegbk=true]{biblatex}`
-
- - add an option `gbtitlelink` to control the hyperlink of title field (This option is also for author year style):
-
- `gbtitlelink = false` not to add hyperlink, this is the default setting.
-
- `gbtitlelink = true` to set the title as a hyperlink.
-
- `\usepackage[backend=biber,style=gb7714-2015,gbtitlelink=true]{biblatex}`
-
- - add an option `gbfootbib` to control the bibliography in footnote (This option is also for author year style):
-
- `gbfootbib = true` make patches to match the standard, this is the default setting.
-
- `gbfootbib = false` not to patch.
-
- `\usepackage[backend=biber,style=gb7714-2015,gbtitlelink=true]{biblatex}`
-
- - 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):
-
- `gbcitelocal = gb7714-2015` to output local strings according to the reference's language, this is the default setting.
-
- `gbcitelocal = chinese` to output local strings with chinese language word like "等".
-
- `gbcitelocal = english` to output local strings with western language word like "et al.".
-
- `\usepackage[backend=biber,style=gb7714-2015,gbcitelocal = chinese]{biblatex}`
-
- - add an option `gbstrict` to control the output of some unnecessary fields for GB/T7714-2015 (This option is also for author year style).
-
- `gbstrict=true`, not to print those fields such as language, eprint, this is the default setting.
-
- `gbstrict=false`, to output them as the standard style
-
- `\usepackage[backend=biber,style=gb7714-2015,gbstrict=true]{biblatex}`
-
- - 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):
-
- `gbfieldstd = false` for gb7714 style, format of the fields follows the GB/T7714-2015 standard, this is the default setting.
-
- `gbfieldstd = true` for standard style.
-
- `\usepackage[backend=biber,style=gb7714-2015,gbfieldstd=true]{biblatex}`
-
-
-* for multi-style: gb7714-2015ms
-
- 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.
-
-
- `\usepackage[backend=biber,style=gb7714-2015ms,gbstyle=false]{biblatex}`
-
-* for author year style: gb7714-2015ay
-
- `\usepackage[backend=biber,style=gb7714-2015ay,gbpub=true]{biblatex}`
-
- - add an option `gbnoauthor` for dealing undefined author:
-
- `gbnoauthor = true` for gb7714 style, to print `佚名` or `Anon` when the author of the entry is absent.
-
- `gbnoauthor = false` for standard style, not to pring anything, this is the default setting.
-
- `\usepackage[backend=biber,style=gb7714-2015ay,gbnoauthor=true]{biblatex}`
-
- - add an option value `mergedate=none` to control the date in bibliography:
-
- `mergedate=true` to output date only after author,like:LAMPORT L, (1986). Document Preparation System[M]. [S.l.]: Addison-Wesley Reading, MA.
-
- `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.
-
- `mergedate=none` to output date only in publish items,like:LAMPORT L. Document Preparation System[M]. [S.l.]: Addison-Wesley Reading, MA, 1986.
-
- do not set mergedate output like:LAMPORT L, 1986. Document Preparation System[M]. [S.l.]: Addison-Wesley Reading, MA.
-
- `\usepackage[backend=biber,style=gb7714-2015ay,mergedate=none]{biblatex}`
-
- - add an option `gblanorder` to control sequence of reference groups of different languagesin the bibliography:
-
- `gblanorder=chineseahead` to set the sequence as: cn;jp;kr;en;fr;ru
-
- `gblanorder=englishahead` to set the sequence as: en;fr;ru;cn;jp;kr
-
- `gblanorder=user defined string like: cn;en;jp;kr;fr;ru` to set the sequence as: cn;en;jp;kr;fr;ru.
-
- `\usepackage[backend=biber,style=gb7714-2015ay,gblanorder=cn;en;jp;fr;kr;ru]{biblatex}`
-
-* for perl script transformation tool(only for the numerical style)
-
- `perl gb7714texttobib.pl in=textfilename out=bibfilename`
-
-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.
-
-please see the file 'biblatex-gb7714-2015.pdf' for further information!
-
-
-## Version history:
-
-* 2016/05/20 v1.0
-* 2016/10/23 v1.0a
-* 2016/11/11 v1.0b
-* 2016/11/14 v1.0c
-* 2016/11/24 v1.0d
-* 2016/12/07 v1.0e
-* 2017/02/26 v1.0g
-* 2017/04/11 v1.0h
-* 2017/11/21 v1.0i
-* 2018/01/20 v1.0j
-* 2018/04/03 v1.0k
-* 2018/06/01 v1.0l
-* 2018/08/14 v1.0m,CTAN
-* 2018/11/04 v1.0n
-* 2018/12/22 v1.0o
-* 2019/01/19 v1.0p
-* 2019/02/11 v1.0q
-* 2019/03/28 v1.0r
-* 2019/03/29 v1.0rm,rename erj to chinese-erj,ctan
-* 2019/08/28 v1.0s
-* 2020/03/04 v1.0t,ctan
-* 2020/03/30 v1.0u
-* 2020/07/21 v1.0v,ctan
-* 2021/01/19 v1.0w,ctan
-
-
-
----------------------------------------------------------
-## Update history:
-
-[update: tex](example/updatehistory.tex)
-
-[update: tex](example/updatehistoryold.tex)
-
-
-
+<b>Date of last change: 2021-04-03 to version v1.0x</b>
+
+
+# biblatex-gb7714-2015: a biblatex style package
+---------------------------------------------------------
+[使用入门](#jumptotutorial) |==| [说明文档](biblatex-gb7714-2015.pdf) |==| [WIKI](https://github.com/hushidong/biblatex-gb7714-2015/wiki)
+
+
+## Introduction
+
+Maintainer: huzhenzhen <hzzmail@163.com>
+
+Homepage: <https://github.com/hushidong/biblatex-gb7714-2015>
+
+ctan-pkg: <https://www.ctan.org/pkg/biblatex-gb7714-2015>
+
+License: LaTeX Project Public License 1.3 or later
+
+
+A biblatex implementation of the `GB/T 7714-2015` bibliography style for Chinese users
+
+The biblatex-gb7714-2015 package provides an implementation of the bibliography style of the `GB/T 7714-2015` bibliography style. This implementation follows `GB/T 7714-2015` standard, and can be used simply by loading biblatex with the appropriate option
+
+
+biblatex-gb7714-2015 宏包是中文参考文献著录/标注标准 `GB/T 7714-2015` 的 biblatex 实现。它本质上是一个样式包,提供了顺序编码制和著者年份制样式,在 tex 文档中配合 biblatex 宏包使用,以生成满足《GB/T 7714-2015 信息与文献 参考文献著录规则》要求的参考文献。除了具备 biblatex 提供的不同于传统基于 bibtex 的参考文献解决方案的特点外,还具有如下特点:
+
+* 较强的兼容性。能够兼容 biblatex v2.8 以上版本;能够兼容国标样式的一些常用条目类型、数据域。
+
+* 较高的易用性。标注/著录格式完全由样式实现,不必为排序、多语言等问题手动处理bib文件;提供了丰富的标注(引用)命令,包括一些中文中习惯的命令;提供了多语言对照,多语言文献表等功能。
+
+* 较大的灵活性。提供丰富的选项来帮助用户进行排序调整、著录项(姓名、出版项、文献标识符、标题超链接)格式调整、文献表格式(标签对齐、标签格式、条目格式、字体、段落格式)调整、编码兼容。
+
+* 较好的维护性。样式代码主要是在标准样式基础上提供的中文国标解决方案,保持与标准样式一致的结构、风格和习惯,并提供详尽的注释,用户可轻松理解,并可在其基础上进一步修改以实现其它要求的样式,比如宏包附带的chinese-erj样式,就是基于本样式实现的经济学研究期刊的参考文献样式。
+
+简单使用说明见:[使用入门](#jumptotutorial)
+
+---------------------------------------------------------
+
+## Need to do:
+
+ * special characters in all fields?
+ * entry without author: the delimiter between title and year?
+ * TEST FOR texlive 2015,2016,2017
+
+
+## Applications
+* [BIThesis(bachelor graduation thesis for Dept. of Undergraduate Academic Affairs of Beijing Institute of Technology.)](https://github.com/BITNP/BIThesis)
+* [CAUTemplate(中国农业大学课程论文模板)](https://github.com/Cdmium/CAUTemplate)
+* [CSUThesis(中南大学论文 Latex 模板 )](https://github.com/disc0ver-csu/csu-thesis)
+* [ElegantBook](https://github.com/ElegantLaTeX/ElegantBook)
+* [ECNU-Undergraduate-LaTeX(华东师范大学本科毕业论文模板)](https://github.com/YijunYuan/ECNU-Undergraduate-LaTeX)
+* [fduthesis(复旦大学论文模板)](https://github.com/Stone-Zeng/fduthesis)
+* [fjnu-bathesis (福建师范大学本科毕业论文LaTeX 模板)](https://github.com/fjnuer/fjnu-bathesis)
+* [LaTeX-SWUFE-Bachelor-Thesis (西南财经大学本科毕业论文 LaTeX 模板)](https://github.com/sukanka/LaTeX-SWUFE-Bachelor-Thesis)
+* [LZUthesis(兰州大学本科毕业论文LaTeX模板)](https://github.com/szsdk/LZUthesis)
+* [neuthesis(东北大学博士学位论文Latex模板)](https://github.com/mervin0502/neuthesis)
+* [NJU-thesis-esz(南京大学学位论文-微调整后适用于人文社科)](https://github.com/EdwardSaidZhou/NJU-thesis-esz)
+* [NKThesis(南开大学硕士毕业论文(博士论文)Latex模板)](https://github.com/procuteboy/NKThesis)
+* [NKUBachelorThesis(南开大学本科生毕业论文(毕业设计)LaTeX模板)](https://github.com/NKcqx/NKUBachelorThesis)
+* [nputhesis(NPU 博士、硕士学位论文 \LaTeX 模板)](https://github.com/NPUSCG/nputhesis)
+* [nuaa-thesis(南京航空航天大学本科、硕士和博士学位论文的样式模板)](https://github.com/nuaa803/nuaa-thesis)
+* [nudtpaper(nudt学位论文模板)](https://github.com/liubenyuan/nudtpaper)
+* [nwafuthesis(西北农林科技大学学位论文LaTeX文档类)](https://github.com/registor/nwafuthesis)
+* [shtthesis (ShangHaiTech university THESIS)](https://github.com/lirundong/shtthesis)
+* [SHMTUThesis(上海海事大学 LaTeX 学位论文模板)](https://github.com/hellckt/SHMTUThesis)
+* [SJTUThesis(上海交通大学学位论文模板)](https://github.com/sjtug/SJTUThesis) (母校的论文模板,不得不说缘分真的很神奇,16年一出来就用上)
+* [sustechthesis(Southern University of Science and Technology Thesis Template LaTeX Template)](https://github.com/Iydon/sustechthesis)
+* [SwufeTeX(西南财经大学学位论文LaTeX模板)](https://github.com/OopsYao/swufethesis)
+* [Thesis-Template-for-XJTU (西安交大毕业设计模板)](https://github.com/DXie123/Thesis-Template-for-XJTU)
+* [ThuThesis(LaTeX Thesis Template for Tsinghua University )](https://github.com/tuna/thuthesis)
+* [TongjiThesis(同济大学硕博士论文LaTeX模板)](https://github.com/marquistj13/TongjiThesis)
+* [UCASthesis(中国科学院大学学位论文模板**国科大新版标准**)](https://github.com/xiaoyao9933/UCASthesis)
+* [UCASthesis(ucasthesis 国科大学位论文 LaTeX 模板 [最新样式])](https://github.com/mohuangrui/ucasthesis)
+* [ustcthesis(中国科学技术大学学位论文 LaTeX 模板)](https://github.com/ustctug/ustcthesis)
+* [WUTthesis(武汉理工大学研究生学位论文的 LaTeX 模板)](https://github.com/Jiayin-Gu/WUTthesis)
+* [Yet anoter BUPT Thesis LaTeX class (北邮研究生学位设计的LaTeX文档类)](https://github.com/qcts33/BUPTthesis-ctex)
+* [Zhejiang University thesis(浙江大学毕业设计/论文模板)](https://github.com/TheNetAdmin/zjuthesis)
+* [《经济研究》杂志 LaTeX 论文模板)](https://github.com/EthanDeng/Chinese-ERJ)
+* [LaTeX学习笔记(Study-LaTeX)](https://github.com/Zousiyu/Study-LaTeX)
+* [...]
+
+
+## Related Links
+
+* [Biblatex 宏包](https://github.com/plk/biblatex)
+* [Beamer 文档类](https://github.com/josephwright/beamer)
+* [biblatex 宏包中文手册 ](https://github.com/hushidong/biblatex-zh-cn)
+* [biblatex 简明使用手册](https://github.com/hushidong/biblatex-solution-to-latex-bibliography)
+* [biblatex-tutorial 摘译](https://github.com/hushidong/biblatex-tutorial-cn)
+* [biblatex-map bib文件修改工具](https://github.com/hushidong/biblatex-map/)
+* [biblatex-check bib文件检查工具](https://github.com/Pezmc/BibLatex-Check)
+* [biblatex-caspervector: caspervector 设计的中文参考文献样式](https://github.com/CasperVector/biblatex-caspervector)
+* [gbt7714-bibtex-style: GB/T7714-2015 标准的bst实现版本](https://github.com/zepinglee/gbt7714-bibtex-style)
+* [LaTeX学习网站](http://www.latexstudio.net/)
+* [LaTeX交流论坛](http://www.ctex.org/)
+
+---------------------------------------------------------
+
+<h2 id="jumptotutorial">Tutorial/使用入门</h2>
+[//]: # "这里这种方式不适合可能主要是因为标题所导致,因此用上面的方式进行处理"
+
+
+<h3 id="jumptopkgload">0. pacakge usage/宏包加载方式</h3>
+样式包配合biblatex使用,即在biblatex调用时加载样式包:
+
+* 使用顺序编码制:
+
+```
+ \usepackage[backend=biber,style=gb7714-2015]{biblatex}
+```
+
+* 使用著者-出版年制:
+
+```
+ \usepackage[backend=biber,style=gb7714-2015ay]{biblatex}
+```
+
+* 使用宏包提供的选项:
+
+```
+ %设置gbalign选项以改变文献表序号标签对齐方式,
+ %设置gbpub=false取消缺省出版项自填补信息,比如:
+ \usepackage[backend=biber,style=gb7714-2015,gbalign=gb7714-2015,gbpub=false]{biblatex}
+```
+
+* 使用同一文献表中不同语言区分著录格式的样式(gb7714-2015ms):
+
+```
+ %设置gbstyle=false,中文文献使用GB/T 7714-2015著录格式,而其它语言文献使用biblatex标准样式
+ \usepackage[backend=biber,style=gb7714-2015ms,gbstyle=false]{biblatex}
+```
+
+* 同一文档中不同文献分节区分不同著录格式的样式(gb7714-2015mx):
+
+```
+ %gb7714-2015mx默认使用顺序编码制样式
+ \usepackage[backend=biber,style=gb7714-2015mx]{biblatex}
+ %如需在某一参考文件分节使用著者年份制样式,比如第2个refsection中使用时,则在导言区设置:
+ \setaystylesection{2}
+```
+
+更多宏包选项的说明见:[biblatex-gb7714-2015.pdf](biblatex-gb7714-2015.pdf)
+
+宏包加载的完整文档示例见:[tex文档一般结构](#jumptotexsrcf)
+
+<h3 id="jumptotexsrcf">1. Tex source file/tex文档一般结构</h3>
+注意其中加载biblatex宏包的代码:
+
+```
+\documentclass{article}%文档类%导言区开始:
+
+\usepackage{ctex}%加载ctex宏包,中文支持
+
+\usepackage[left=20mm,right=20mm,top=25mm, bottom=15mm]{geometry}%加载geometry宏包,定义版面
+
+\usepackage[colorlinks=true,pdfstartview=FitH,%
+linkcolor=blue,anchorcolor=violet,citecolor=magenta]{hyperref}%加载hyperref宏包,使用超链接
+
+\usepackage[backend=biber,bibstyle=gb7714-2015,%nature,%%加载biblatex宏包,使用参考文献
+citestyle=gb7714-2015%,backref=true%%其中后端backend使用biber
+]{biblatex}%标注(引用)样式citestyle,著录样式bibstyle都采用gb7714-2015样式
+
+\usepackage{filecontents}
+\begin{filecontents}{egbibdata.bib}
+@Book{Peebles2001-100-100,
+ Title = {Probability, random variable, and random signal Principles and \LaTeX{}},
+ Address = {New York},
+ Author = {von Peebles, Jr., P. Z.},
+ Edition = {4},
+ Pages = {100},
+ Publisher = {McGraw-Hill},
+ Year = {2001}
+}
+
+@Book{蔡敏2006--,
+ Title = {UML基础和Rose建模教程},
+ Address = {北京},
+ Author = {蔡敏 and 徐慧慧 and 黄柄强},
+ Publisher = {人民邮电出版社},
+ Year = {2006},
+ Month = {1}
+}
+\end{filecontents}
+
+\addbibresource[location=local]{egbibdata.bib}%biblatex宏包的参考文献数据源加载方式
+
+\begin{document}%正文区开始:
+
+%正文内容,引用参考文献
+
+1. 不带页码的引用(顺序编码制上标,方括号包围;作者年制行内,括号包围):\\
+ 见文献\cite{Peebles2001-100-100}\\
+ 见文献\upcite{Peebles2001-100-100}\\
+ 见文献\supercite{Peebles2001-100-100}
+
+2. 不带页码的引用(顺序编码制非上标,方括号包围;作者年制行内,括号包围):\\
+ 见文献\parencite{Peebles2001-100-100}
+
+3. 带页码的引用(标准命令,默认样式; 增加命令,GB/T 7714-2015样式):\\
+ 见文献\cite[见][49页]{蔡敏2006--}\\
+ 见文献\parencite[见][49页]{Peebles2001-100-100}\\
+ 见文献\pagescite{Peebles2001-100-100}\\
+ 见文献\pagescite[201-301]{Peebles2001-100-100}
+
+4. 顺序编码制中同时输出作者和顺序编码标签,比如:\\
+ 见\citeauthor{蔡敏2006--}\cite{蔡敏2006--}\\
+ 见\authornumcite{蔡敏2006--}\\
+ 见\textcite{蔡敏2006--} (顺序编码标签不上标)
+
+5. 作者年制文中已有作者还需要年份和页码(顺序编码制与pagescite作用相同,作者年制年份行内页码上标):\\
+ 见蔡敏\yearpagescite[][205]{蔡敏2006--}和Peebles\yearpagescite[][15]{Peebles2001-100-100}
+
+6. 作者年制文中已有作者只需要年份(顺序编码制与pagescite作用相同,作者年制年份行内):\\
+ 见赵耀东\yearcite{蔡敏2006--}\\
+ 见赵耀东(\cite*{蔡敏2006--})\\
+ 见赵耀东(\citeyear{蔡敏2006--})
+
+7. 作者年制中由标注命令给出作者年份信息,作者以主语方式作为正文内容:\\
+ 见\textcite{蔡敏2006--}
+
+8. 在页脚中引用和打印文献表:\\
+ 见文献\footnote{在脚注中引用\footcite{蔡敏2006--}}\\
+ 见文献\footfullcite{蔡敏2006--}
+
+
+%打印参考文献表
+ \printbibliography[heading=bibliography,title=参考文献]
+\end{document}
+```
+
+### 2. Compile method/文档编译方式
+
+```
+ xelatex jobname.tex
+ biber jobname
+ xelatex jobname.tex
+ xelatex jobname.tex
+```
+
+或者
+
+```
+ latexmk -xelatex jobname.tex
+```
+
+编译引擎使用lualatex也是可以的,只要该引擎编译时ctex宏包能够正确支持中文。
+
+
+### 3. Recommended environment/推荐使用环境
+
+- Texlive+Winedt
+- Texlive+Texstudio
+- texlive及其它发行版安装见[安装指南](https://github.com/sjtug/SJTUThesis/wiki/%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97)
+
+
+### 4. Common questions/常见问题
+
+#### 4.1 Installation and use/安装和使用
+
+* <b>怎么利用biblatex生成国标GB/T 7714-2015格式的参考文献表?</b>
+
+(1)在导言区加载biblatex宏包,并使用gb7714-2015样式:
+
+``` \usepackage[backend=biber,style=gb7714-2015]{biblatex}```
+
+(2)正文中引用参考文献:
+
+``` 见文献\cite{referencbibtexkey}```
+
+(3)在需要的地方打印参考文献表:
+
+```\printbibliography```
+更直接的例子见前述的[tex源文档](#jumptotexsrcf)
+
+
+
+
+* <b>请问我应该怎么安装和更新biblatex-gb7714-2015宏包?</b>
+
+
+biblatex-gb7714-2015宏包是基于biblatex的样式宏包,目前texlive,miktex都已收录,因此可以直接使用,一般不需要安装。
+
+如果使用时,系统提示找不gb7714-2015.bbx或gb7714-2015ay.bbx文件的错误,说明当前tex系统未安装biblatex-gb7714-2015样式包,这时需要安装它。
+
+最简单的方法是从本项目源码中下载 gb7714-2015.bbx, gb7714-2015ay.bbx, gb7714-2015.cbx, gb7714-2015ay.cbx 四个文件放到你要编译的主文档所在目录,如果需要使用gbk编码,则还需复制 gb7714-2015-gbk.def 文件。对于已经安装的用户需要更新到最新版,也可以下载这些文件替换系统已经安装的文件。
+
+
+
+* <b>请问使用时biblatex-gb7714-2015宏包时出现错误“ Package xkeyval Error: gb****** ' undefined in families blx@opt@pre'. [\blx@processoptions] ”?</b>
+
+
+
+因为宏包的功能不断增加和完善,当在tex源文档中,使用新版中的一些选项时,而系统中的biblatex-gb7714-2015宏包是旧版时,就会出现`gb****`选项未定义的错误。解决方法就是更新biblatex-gb7714-2015宏包。更新方法见上一个问题。
+
+
+
+* <b>为什么我之前使用样式`style=caspervector`进行编译没有问题,换成`style=gb7714-2015`后,编译就出现错误?</b>
+
+可能有三个原因:
+
+(1) 辅助文件没有清理导致,当采用caspervector样式时编译产生的辅助文件中可能带有该样式的一些特有信息,由此产生一些不兼容。因此需要的操作是,清除辅助文件,然后再进行编译。清除命令为(下面的命令是windows下的,linux下的是类似的只需把删除命令换成`rm -f`):
+
+```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```
+
+(2) biblatex-gb7714-2015 版本过于陈旧,旧版本对于一些特殊情况可能考虑不全面。因此需要的操作是更新biblatex-gb7714-2015,方法见上一个问题。
+
+(3) 编译命令问题,通常情况下tex文档和bib文档是utf8编码的,因此最好采用xelatex编译,而不用pdflatex。因此如果编译时用pdflatex出现错误,请换成xelatex。
+
+
+* <b>为什么我编译文档后没有出现参考文献表?</b>
+
+当编译过程出现错误时,那么检查错误的原因,并解决它。
+当编译过程没有出现错误,那么很有可能是没有采用正确的命令进行文献编译,比如采用了传统的bibtex而不是biber。那么采用正确的编译命令重新编译即可:
+```
+xelatex jobname.tex
+biber jobname
+xelatex jobname.tex
+```
+
+* <b>使用biblatex时运行简单示例也出现错误,查看biber输出结果似乎不正常,这种情况怎么解决?</b>
+
+由于biber在第一次运行时会在缓存文件夹下创建一些二进制运行文件,如果这些文件被破坏,那么biber运行结果会出现莫名其妙的错误。比如:
+biber运行一半就结束了,log信息如下所示:
+
+```
+ INFO - This is Biber 2.16
+ INFO - Logfile is 'thuthesis-example.blg'
+ INFO - Reading 'thuthesis-example.bcf'
+ INFO - Found 34 citekeys in bib section 0
+ INFO - Processing section 0
+ INFO - Looking for bibtex format file 'ref/refs.bib' for section 0
+ INFO - LaTeX decoding ...
+ INFO - Found BibTeX data source 'ref/refs.bib'
+```
+这次运行中只是找到了bib文件,并没有下一步的处理,显然是存在问题的。
+
+因此如果出现这种情况,可以手动删除缓存文件夹,让biber重新创建。这些缓存文件夹名字通常为:
+
+```
+ par-<hex_encoded_username>/cache-*
+ par-<hex_encoded_username>\cache-*
+```
+
+在不同的系统下面,缓存文件夹的位置是不同的,可能的位置包括:
+
+```
+ /var/folders/*/*/*/ (OSX, local GUI login shell)
+ /var/tmp/ (OSX (remote ssh login shell), Unix)
+ /tmp/ (Linux)
+ C:\Documents and Settings\<username>\Local Settings\Temp (Windows XP/Cyg- win)
+ C:\Windows\Temp (Windows)
+ C:\Users\<username>\AppData\Local\Temp (Windows 7/8)
+```
+
+也可以从运行得到的.blg文件或者命令`biber --cache`来找到缓存文件夹。
+
+删除缓存文件夹操作,在Linux和Mac下可以使用如下命令操作:
+```
+rm -rf `biber --cache`
+```
+
+在windows下,那么其实随便用个清理软件把临时文件夹清理一下就行。直接点就是找到`par-<hex_encoded_username>/cache-*`缓存文件夹然后删除它。
+
+
+* <b>为什么利用 ctex2.9 套装进行编译时,出现错误?</b>
+
+
+由于ctex2.9套装多年未更新,其中的biblatex宏包过于陈旧,所以需要更新 biblatex。
+
+
+
+* <b>请问除了利用xelatex进行编译外,能不能用pdflatex进行编译?</b>
+
+
+能用pdflatex进行编译。但要注意的是因为某些样式比如authoryear等使用了xstring宏包中的一些命令,所以会产生错误,但numeric类样式通常没有问题。这一问题在biblatex更新到3.12版本后取消xstring宏包后得以解决。
+
+中文用户需要注意一些编码的问题:
+
+utf-8编码的文档,采用xelatex编译没有任何注意事项,但使用pdflatex编译时,需要给ctex宏包加载UTF8选项,比如`\usepackage[UTF8]{ctex}`或者在文档类加载时给出也可以比如`\documentclass[[UTF8]{article}`,同时引用文献时使用的引用关键词应使用英文。
+
+当文档使用其他编码时,xelatex编译通常需要指定一个文档编码,比如windows环境下的GB2312编码的文档需要指定`\XeTeXinputencoding "GBK"`, 否则显示乱码。使用pdflatex进行编译,如果biblatex不能正确的处理编码问题,那么需要为其明确的指定texencoding和bibencoding选项。比如windows环境下的GB2312编码的文档,需要指定`\usepackge[texencoding=GBK]{biblatex}`。
+
+
+* <b>请问要给biblatex-gb7714-2015设置一些选项,但模板已经将biblatex调用写死且不方便修改,该如何处理?</b>
+
+可以使用PassOptionsToPackage命令来实现。,比如将gbnamefmt=lowercase选项传递给biblatex,那么可以使用如下命令:
+```
+\PassOptionsToPackage{gbnamefmt=lowercase}{biblatex}
+```
+需要注意的是要使该命令生效,这条命令需要在调用biblatex之前出现,可以放到导言区调用biblatex之前,也可以放到文档类调用之前(即documentclass命令之前),比如:
+
+```
+\PassOptionsToPackage{gbpub=false}{biblatex}
+
+\documentclass[twoside]{article}
+\usepackage{ctex}
+\usepackage[backend=biber,style=gb7714-2015,gbalign=center]{biblatex}
+```
+
+
+
+* <b>请问使用backref=true选项后,某个反向超链接总是链接到封面页是怎么回事?</b>
+
+
+对页码进行正确超链接需要一个前提是,当前链接的页码是唯一的。当有两页具有相同的页码时,超链接总是链接到第一各具有该页码的页面上。比如封面页页码是1,正文第一页页码也是1,那么到正文第一页的反向超链接总会链接到封面页上。解决该问题就是要解决页码的唯一性问题。当页码的表示形式不是同一种时,那么也会得到正确的区分。比如封面页用罗马字母I表示,而正文第一页用阿拉伯数字1表示,那么就能得到正确的反向超链接。类似于:
+
+```
+\pagenumbering{roman}
+\title{title}
+\maketitle
+\clearpage
+
+\pagenumbering{arabic}
+\section{文献表}
+```
+
+
+* <b>我希望参考文献表中的文献不是按引用顺序而是以文献作者的字母顺序排序,怎么实现?</b>
+
+
+一般情况下文献表是按引用顺序进行排列,标签是顺序的数字,这种方式称为顺序编码制。
+如果要以文献作者字母顺序排列,那么可以换一种编制方式,称为作者年制:
+
+```\usepackage[backend=biber,style=gb7714-2015ay]{biblatex}```
+
+如果要求使用顺序编码制文献表,又要以文献作者字母顺序排列,那么可以增加排序选项`sorting=nyt`,意为按照姓名、年份、标题的字母顺序进行排序:
+
+```\usepackage[backend=biber,style=gb7714-2015,sorting=nyt]{biblatex}```
+
+
+
+* <b>作者年制中英文文献能按字母顺序排列,那么中文文献能否以拼音或者笔画进行排序呢?</b>
+
+
+能,有两种方式实现:
+
+(1)通过编译时给biber设置选项来实现:
+
+```
+%按拼音排序,biber命令
+biber -l zh__pinyin jobname
+%按笔画排序,biber命令
+biber -l zh__stroke jobname
+```
+
+(2)通过增加 biblatex 选项来实现(此时biber编译无需另加选项),比如:
+
+```\usepackage[backend=biber,style=gb7714-2015ay,sortlocale=zh__pinyin]{biblatex}```
+
+
+
+* <b>作者年制参考文献表目前的排序时升序排列,能不能改成降序排序?</b>
+
+
+能,通过修改sorting选项实现:
+
+
+```\usepackage[backend=biber,style=gb7714-2015ay,sorting=gbnytd]{biblatex}```
+
+可用的选项值包括:
+```
+nty 按照姓名、标题、年份排序。
+nyt 按照姓名、年份、标题排序。
+nyvt 按照姓名、年份、卷数、标题排序。
+anyt 按照字母标签、姓名、年份、标题排序。
+anyvt 按照字母标签、姓名、年份、卷数、标题排序。
+ynt 按照年份、姓名、标题排序。
+ydnt 按照年份(降序)、姓名、标题排序。
+none 不进行排序。所有的条目按照引用顺序处理。
+gb7714-2015 以语言、作者、年份、标题、升序排列
+gbnytd 以语言、作者、年份、标题、降序排列
+gbynta 以语言、年份、作者、标题、升序排列
+gbyntd 以语言、年份、作者、标题、降序排列
+```
+
+* <b>如果我还希望顺序编码的文献著录表以拼音排序,请问该怎么操作?</b>
+
+顺序编码文献著录表默认是按引用顺序排序,但可以通过设置sorting选项进行调整,比如sorting=nyt表示按作者姓名年份以及文献标题进行排序。要使中文能按拼音排序,可以设置本地化排序调整方案,即sortlocale选项,比如:
+
+```\usepackage[backend=biber,citestyle=gb7714-2015ay,bibstyle=gb7714-2015,sorting=nyt,sortlocale=zh__pinyin]{biblatex}```
+
+
+
+
+
+* <b>我希望文献表以阿拉伯数字编号,而正文中的引用标签使用作者和年份标注而不是数字,请问我该如何处理?</b>
+
+可以设置不同的标注和著录样式,比如标注样式用作者年制,而著录样式用顺序编码制,比如:
+
+```\usepackage[backend=biber,citestyle=gb7714-2015ay,bibstyle=gb7714-2015]{biblatex}```
+
+参见:[issue:参考文献的顺序](https://github.com/sjtug/SJTUThesis/issues/300)
+
+
+
+
+
+
+​
+* <b>请问如果参考文献中存在一些特殊字符比如&或者一些特殊命令比如\LaTex{}等,是不是会出现问题?</b>
+
+
+通常不会出现问题,直接输入即可,当出现问题时可以手动调整比如修改为`\&`和`{\LaTex{}}`
+
+
+
+* <b>如果希望在参考文献中直接使用一些unicode字符比如希腊字母等而不想用数学环境中的命令,请问该怎么处理?</b>
+
+
+直接显示希腊字母等unicode字符需要字体的支持,比如CMU Serif等,可以在整个文档全局使用该字体,也可以仅在文献表中使用该字体,比如:
+
+```
+{
+\newcommand{\ftcmu}{\fontspec{CMU Serif}\selectfont}
+\renewcommand{\bibfont}{\ftcmu}%设置英文字体不影响中文字体
+\printbibliography
+}
+```
+
+当然字体设置需要fontspec宏包的支持。
+
+
+
+* <b>如何修改参考文献文献表的垂直间距(竖直间距)?</b>
+
+设置如下尺寸即可
+
+```
+% 间距的控制
+\setlength{\bibitemsep}{0ex}
+\setlength{\bibnamesep}{0ex}
+\setlength{\bibinitsep}{0ex}
+
+```
+其中itemsep设置各条文献之间的间隔,一般够用,后面两个常在西文中使用。具体意义参考biblatex-zh-cn
+
+
+
+* <b>如何修参考文献表的缩进?</b>
+
+对于著者-出版年制文献表,设置如下尺寸即可:
+```
+% 文献表中各条文献的缩进控制
+\setlength{\bibitemindent}{0em} % bibitemindent表示一条文献中第一行相对后面各行的缩进
+\setlength{\bibhang}{0pt} % 著者-出版年制中 bibhang 表示的各行起始位置到页边的距离
+```
+
+对于顺序编码制文献表,可以采用如下方法:
+
+由于顺序编码制存在数字标签,且其宽度与参考文献数量相关的,在biblatex中这个宽度是一个动态变量,不是提前设定的,而是在文献表生成时给出,所以设定缩进需要更复杂的操作。
+
+对于采用list环境的文献表,即设置gbalign=left、right、center时,那么需要修改文献表环境来设定缩进,比如:
+
+```
+%调整顺序标签与文献内容的间距
+\setlength{\biblabelsep}{2mm}
+%修改对齐环境-使不缩进
+\defbibenvironment{bibliography}
+ {\list
+ {\printtext[labelnumberwidth]{%
+ \printfield{labelprefix}%
+ \printfield{labelnumber}}}
+ {%这里是所做的调整,通过设置\bibitemindent,\bibhang调整缩进
+ \addtolength{\bibitemindent}{\labelnumberwidth}%
+ \addtolength{\bibitemindent}{\biblabelsep}%
+ \addtolength{\bibhang}{-\labelnumberwidth} %
+ \addtolength{\bibhang}{-\biblabelsep}%
+ %以下是默认的设置
+ \setlength{\labelwidth}{\labelnumberwidth}%
+ \setlength{\labelsep}{\biblabelsep}%
+ \setlength{\leftmargin}{\bibhang}%
+ \addtolength{\leftmargin}{\labelnumberwidth}%
+ \setlength{\itemindent}{\bibitemindent}%
+ \setlength{\itemsep}{\bibitemsep}%
+ \setlength{\parsep}{\bibparsep}}%
+ \renewcommand*{\makelabel}[1]{\hss##1}}
+ {\endlist}
+ {\item}
+```
+
+对于不采用list环境的文献表,即设置gbalign=gb7714-2015时,可以采用如下设定:
+
+```
+%调整顺序标签与文献内容的间距
+\setlength{\biblabelsep}{2mm}
+%修改对齐环境-使不缩进
+\renewcommand{\itemcmd}{%
+\settowidth{\lengthid}{\mkgbnumlabel{\printfield{labelnumber}}}
+%%这里是所做的调整,以下两句通过调整\lengthid来调整缩进
+\setlength{\lengthid}{0pt}
+\addtolength{\lengthid}{-\biblabelsep}
+%如下是默认设置
+\addtolength{\lengthid}{\biblabelsep}
+\setlength{\lengthlw}{\textwidth}
+\addtolength{\lengthlw}{-\lengthid}
+\addvspace{\bibitemsep}%恢复\bibitemsep的作用
+%\parshape 2 0em \textwidth \lengthid \lengthlw
+\hangindent\lengthid
+\mkgbnumlabel{\printfield{labelnumber}}%
+\hspace{\biblabelsep}}
+```
+
+示例见:[issue](https://github.com/hushidong/biblatex-gb7714-2015/issues/62)
+
+
+
+
+* <b>如何修改参考文献表的字体字号?</b>
+
+通过修改如下命令实现
+
+```
+% 字体的控制: \textit, sl, emph-楷体, \textbf, sf-黑体, \texttt-仿宋, \textsc, md, up-宋体
+% 全局字体
+\renewcommand{\bibfont}{\zihao{-5}}%\fangsong
+% 题名字体
+\renewcommand{\bibauthorfont}{\bfseries\color{teal}}%
+\renewcommand{\bibtitlefont}{\ttfamily\color{blue}}%
+\renewcommand{\bibpubfont}{\itshape\color{violet}}%
+% url和doi字体
+\def\UrlFont{\ttfamily} %\urlstyle{sf} %\def\UrlFont{\bfseries}
+```
+
+​
+* <b>我习惯用传统的bst文件来生成参考文献,有没有GB/T 7714-2015标准的实现版本?</b>
+
+
+GB/T 7714-2015标准实现的bst版本,已经由[zeping lee](https://github.com/zepinglee/gbt7714-bibtex-style)开发完毕,直接使用即可。
+
+
+
+* <b>我在使用过程中遇到了一些无法理解和无法解决的问题,怎么办?</b>
+
+
+请邮件联系hzzmail@163.com或在项目内发issue提问即可。
+
+
+#### 4.2 Bibliography format/文献表著录格式
+
+* <b>请问可以在参考文献表中实现类似于word那样的与文献内容等间距标签对齐格式么?</b>
+
+
+可以,latex的列表通常用list来实现,因此一般列表的内容都是对齐的,
+此时如果标签右对齐的,那么标签和内容等间距,但标签左侧是不对齐的。
+如果标签是左对齐的,那么标签和内容的间距不相等。
+如果要求标签左侧对齐,且标签与内容等间距必须放弃使用list。
+biblatex-7714-2015的顺序编码制样式特别设计了这样的环境,以保持和word一致。通过设置选项gbalign来实现:
+
+```\usepackage[backend=biber,bibstyle=gb7714-2015,gbalign=gb7714-2015]{biblatex}```
+
+
+
+* <b>如果不希望在参考文献表中出现类似“出版地不详”“出版者不详”等信息时,请问该怎么处理?</b>
+
+
+设置选项gbpub可以实现,当gbpub=false时,biblatex-gb7714-2015宏包会放弃国标的要求,不使用“出版地不详”等补充信息:
+
+```\usepackage[backend=biber,bibstyle=gb7714-2015,gbpub=false]{biblatex}```
+
+
+​
+* <b>我觉得文献表中英文作者全部用大写不好看,请问能换一种大小写方式么?</b>
+
+
+能,通过设置gbnamefmt可以实现,默认情况下gbnamefmt=uppercase,作者姓名字母全部大写。
+当设置gbnamefmt=lowercase时,biblatex-gb7714-2015宏包对于bib文件中的作者姓名的大小写不做改变,
+这时可以在bib文件中手动设置想要的大小写方式。
+当要实现类似ZHAO Yu-xin这样的拼音方式,则可以设置gbnamefmt=pinyin:
+
+```\usepackage[backend=biber,bibstyle=gb7714-2015,gbnamefmt=lowercase]{biblatex}```
+
+
+
+* <b>如果不希望在参考文献表中出现类似“[M]”“[J]”等文献类型标识符时,请问该怎么处理?</b>
+
+
+可通过设置选项gbtype=false实现:
+
+```\usepackage[backend=biber,bibstyle=gb7714-2015,gbtype=false]{biblatex}```
+
+
+
+* <b>如果不希望在参考文献表中出现网址信息时,请问该怎么处理?</b>
+
+
+可通过设置选项url=false实现:
+
+```\usepackage[backend=biber,bibstyle=gb7714-2015,url=false]{biblatex}```
+
+
+
+* <b>如果不希望在参考文献表中出现DOI信息时,请问该怎么处理?</b>
+
+
+可通过设置选项doi=false实现:
+
+```\usepackage[backend=biber,bibstyle=gb7714-2015,doi=false]{biblatex}```
+
+
+
+* <b>如果对当前文献中的url或doi显示效果(包括间距和断行)不满意,能否进行调整?</b>
+
+
+能,可以通过设置三个计数器的值来调整,取值范围0到9999,计数器的值越大则越容易在相应的内容后断行:
+
+```
+\setcounter{biburlnumpenalty}{100}%大于0允许在数字后面断行
+\setcounter{biburlucpenalty}{100}%大于0允许在大写字母后面断行
+\setcounter{biburllcpenalty}{100}%大于0允许在小写字母后面断行
+```
+
+* <b>中英文混排,有些英文断行不佳,导致行溢出,怎么解决?</b>
+
+
+biblatex的参考文献表的换行是由tex的断行机制决定的,处理行(盒子)溢出就要用tex的方式处理:
+
+```
+ {
+ %\hyphenation{Proce-edings}
+ \hyphenpenalty=5000 %断词阈值, 值越大越不容易出现断词
+ \tolerance=500 %丑度, 10000为最大无溢出盒子, 参考the texbook 第6章
+ \hbadness=100 %如果丑度超过hbadness这一阀值, 那么就会发出警告
+ \printbibliography[heading=subbibintoc,title=【参考文献】]
+}
+```
+
+当然如果不想这么设置,可以手动的修改参考文献条目的内容,在需要换行的内容前加上-符号。
+见:https://github.com/hushidong/biblatex-gb7714-2015/issues/89
+
+​
+* <b>当参考文献没有作者时,希望用佚名或Anon代替作者时,请问该怎么处理?</b>
+
+
+可通过设置选项gbnoauthor=true实现,注意该处理主要用在作者年制中:
+
+```\usepackage[backend=biber,bibstyle=gb7714-2015,gbnoauthor=true]{biblatex}```
+
+
+
+* <b>如果希望参考文献表中文献作者数量超过国标规定的3个时,请问该怎么处理?</b>
+
+
+可通过设置选项maxbibnames,minbibnames实现,比如下面的设置用于显示5个作者:
+
+```\usepackage[backend=biber,bibstyle=gb7714-2015,maxbibnames=5,minbibnames=5]{biblatex}```
+
+
+* <b>请问如何将作者之间的分隔符调整为and而不是用逗号?</b>
+
+
+可以通过重设两个分隔符来实现,分别是multinamedelim和finalnamedelim。低版本的biblatex直接重定义命令`\multinamedelim`和`\finalnamedelim`,高版本的biblatex可以使用分隔符环境,这样可以在标注、文献表等不同位置直接使用不同的分隔符,而不像低版本biblatex那样只能在不同的位置修改局部定义。比如:
+
+```
+\DeclareDelimFormat[bib]{multinamedelim}{\addspace and \addspace}
+\DeclareDelimFormat[bib]{finalnamedelim}{\addspace and \addspace}
+\DeclareDelimFormat[cite]{multinamedelim}{\addcomma\addspace}
+\DeclareDelimFormat[cite]{finalnamedelim}{\addcomma\addspace}
+```
+
+
+​
+* <b>请问如何使文献表中文献标题的是句首字母大写而其它所有字母均小写?</b>
+
+
+默认情况下,biblatex-gb7714-2015仅对标题首字母做调整,使其变成为大写,而其他字母大小写不做处理,因此要得到想要的字母大小写格式,需要在bib文件输入参考文献信息时给出需要的除首字母外的其它字母的大小写格式。
+
+若有特殊情况,需要首字母为小写,可采用如下两种方法:
+
+(1)根据字符大小写更换命令比如
+
+`{\MakeLowercase i}FogSim title contents`
+
+(2)修改titlecase域格式,即将如下命令放到导言区中,放biblatex后面
+
+```
+\DeclareFieldFormat{titlecase}{\iftoggle{bbx:titlelink}{%
+\iffieldundef{url}{#1}{%
+\href{\thefield{url}}{#1}}}{#1}}%重设标题格式,将去除首字母大写
+```
+
+​
+* <b>请问如何使文献表中的期刊名是单词首字母大写的?</b>
+
+
+默认情况下,biblatex-gb7714-2015不对期刊名的字母大小写做处理,
+因此需要在bib文件输入参考文献信息时给出需要的大小写格式。
+
+
+​
+* <b>我想得到中英文对照的双语参考文献,请问该如何处理?</b>
+
+
+biblatex-gb7714-2015设计了两种多语言对照参考文献的实现方式,
+一种是利用条目集的概念,另一种是利用关联条目的概念。
+因此有两种方法:
+
+(1)方法一,动态定义条目集:
+在导言区或正文中定义:
+```\defbibentryset{易仕和,等,2013}{易仕和2013--,Yi2013--}```
+
+在正文中引用:
+```双语文献引用\cite{易仕和,等,2013}```
+
+(2)方法二,动态定义关联条目:
+在导言区定义:
+```\defdoublelangentry{易仕和2013--}{Yi2013--}```
+
+在正文中引用:
+```双语文献引用\cite{易仕和2013--}```
+
+
+
+
+* <b>我想修改文献条目的日期项诸如格式,请问该如何处理?</b>
+
+参考文献中日期格式主要有四种修改方式:
+(1) 利用biblatex选项全局的修改日期格式
+(2) 修改日期输出宏,使根据条目类型输出不同的日期格式
+(3) 修改日期输出宏,使根据具体条目输出不同的日期格式
+(4) 修改参考文献信息,使当前条目原样输出需要的格式
+
+具体示例见:[biblatex中如何修改参考文献中日期的著录格式](https://blog.csdn.net/xenonhu/article/details/86933525)
+
+
+​
+#### 4.3 Citation format/正文引用的标注格式
+
+* <b>我希望在正文中同时使用上标和非上标的引用标签,请问该怎么操作?</b>
+
+
+可以使用不同的命令来实现上标和非上标的标签,
+上标标签的命令为`\cite{bibtexkey}` ,非上标标签的命令为 `\parencite{bibtexkey}`。
+当希望上标的标签也给出国标要求的页码时,则可以使用`\cite[50-55]{bibtexkey}`、`\pagescite[50-55]{bibtexkey}`给出指定页码 或者`\pagescite{bibtexkey}` 直接使用bib文件中的页码。
+
+
+​
+* <b>我在引用文献时已经给出作者信息,希望引用标签仅包含年份和页码信息或者仅包含年份信息时,该怎么操作?</b>
+
+
+ 需要给出年份的标签是作者年制的标签,可以使用命令`\yearpagescite{bibtexkey}`给出包含年份和页码信息的标签,
+ 使用命令`\yearcite{bibtexkey}`给出仅包含年份的标签。
+
+
+* <b>中文文档中,引用标注标签在一个句子中时,标签的`]`后面与中文字符之间存在一个空格,怎么消除?</b>
+
+
+在引用命令后面加一个没有长度的空白即可,比如:
+```
+中文字符\cite{sally_history_1985}\mbox{}中文字符
+
+中文字符\cite{sally_history_1985}\hbox{}中文字符
+
+中文字符\cite{sally_history_1985}\makebox{}中文字符
+
+中文字符\cite{sally_history_1985}\hspace{0pt}中文字符
+```
+
+
+* <b>在使用作者年制时,我希望文献表是按作者年份标题排序,而正文某处一个cite命令引用多个参考文献,且这些文献的标签是按年份作者标题排序,该怎么操作?</b>
+
+
+ 有两种方法:
+
+(1) 一是自动排序
+
+ 宏包加载时使用:
+
+```\usepackage[backend=biber,style=gb7714-2015ay,sortcites,sorting=ynt]{biblatex}```
+
+ 正文中引用:
+
+```\cite{refa2010,refb2008,refc2009}```
+
+ 然后在文献打印前加
+
+```\newrefcontext[sorting=nyt]```
+
+(2) 二是手动给出排序
+
+ 宏包加载时使用
+
+```\usepackage[backend=biber,style=gb7714-2015ay]{biblatex}```
+
+ 引用多个文献时按照年份顺序给出引用关键字,即正文中引用:
+
+```\cite{refb2008,refc2009,refa2010}```
+
+ 参考:[issue:citation的顺序和bibliography的顺序如何不关联](https://github.com/hushidong/biblatex-gb7714-2015/issues/30)
+
+
+
+* <b>在使用作者年制时,我希望文献表同一位置引用同一作者的不同的文献实现作者姓名的压缩,该怎么操作?</b>
+
+可以通过将gb7714-2015ay.cbx 中的引用的基础样式authoryear更换成authoryear-comp。
+
+
+​
+* <b>请问希望正文中作者年制的标注(引用)标签中作者数量超过国标规定的1个时,该怎么处理?</b>
+
+
+可通过设置选项maxcitenames,mincitenames实现,比如下面的设置用于显示5个作者:
+
+```\usepackage[backend=biber,style=gb7714-2015ay,maxcitenames=5,mincitenames=5]{biblatex}```
+
+
+
+* <b>请问希望正文中作者年制的标注(引用)标签中作者数量只能是1个,而不管是否存在歧义时,该怎么处理?</b>
+
+
+可通过设置选项uniquelist=false实现,该设置标签中的作者只会是指定的1个:
+
+```\usepackage[backend=biber,style=gb7714-2015ay,uniquelist=false]{biblatex}```
+
+
+
+* <b>请问希望正文中作者年制的标注(引用)标签中作者数量只能是1个,且只用其作者的姓而不管是否存在歧义时,该怎么处理?</b>
+
+
+可通过设置选项uniquelist=false, uniquename=false实现,该设置标签中的作者只会是指定的1个且只用该作者的姓:
+
+```\usepackage[backend=biber,style=gb7714-2015ay,uniquelist=false,uniquename=false]{biblatex}```
+
+
+
+
+* <b>请问上标的标注(引用)标签过长导致行溢出,该怎么处理?</b>
+
+
+上标的标注与行内的标注不一样,因此采用了上标的处理,所以上标的标注无法自动断行,因此在页边附近的长标注很有可能会溢出。由于上标标注的断行国标中并没有什么明确要求和说明,因此只能按照自己的方式进行处理,通常是将一个长标注手动分成两个短的标注,比如将:
+
+```\cite{key1,key2,key3,key4,key5,key6,key7}```
+
+变换成:
+
+```\cite{key1,key2,key3}\linebreak\cite{key4,key5,key6,key7}```
+
+如果两个cite之间还需要增加一个上标的逗号,那么可以手动处理比如增加`\textsuperscript{,}`
+
+
+
+* <b>在顺序编码制标签中,希望数字编码从两个连续编码就开始压缩,比如[1,2]压缩成[1-2],该怎么处理?</b>
+
+
+biblatex中处理顺序数字编码压缩的代码默认从3个连续编码开始压缩,比如[1,2,3]压缩成[1-3]。如果要修改为从2个连续编码开始压缩,只需要做一个很简单的修改即可:
+
+```
+%该宏的目的是抛弃压缩内部的编号,而仅输出最后一个编号,主要通过cbx@tempcnta来控制
+%一般情况下cbx@tempcnta为0,所以该宏不输出任何内容。当cbx@tempcnta在cite:comp:comp宏中更改变大后
+%说明开始进入需要压缩的范围,当到压缩终点时,cbx@tempcnta必然大于1,则输出内容。
+%修改第二行的数字1为0即可将默认的3个开始压缩变为2个开始压缩。
+\renewbibmacro*{cite:dump}{
+ \ifnumgreater{\value{cbx@tempcnta}}{0}
+ {\ifnumgreater{\value{cbx@tempcnta}}{1}%1改为0,可以将压缩起始3个编号改为2个编号
+ {\bibrangedash}
+ {\multicitedelim}%
+ \bibhyperref[\cbx@lastkey]{%
+ \ifdef\cbx@lastprefix
+ {\printtext[labelprefix]{\cbx@lastprefix}}
+ {}%
+ \printtext[labelnumber]{\cbx@lastnumber}}}
+ {}%
+ \setcounter{cbx@tempcnta}{0}%
+ \global\undef\cbx@lastprefix}
+```
+
+反之,从两个开始压缩改成3个连续压缩,方法是类似的,就是将中的0改回1。
+
+
+
+* <b>在正文中的某一部分,希望取消顺序编码标签中的压缩,而其他部分保持这种压缩,该怎么处理?</b>
+
+
+顺序数字编码压缩的代码,主要有cite:comp:comp宏控制,因此需要局部取消压缩,可以局部的修改该宏。修改很简单,只需要注释掉其中的一行,在需要取消压缩的环境中,重定义该宏,比如:
+
+```
+\renewbibmacro*{cite:comp:comp}{%
+ \ifboolexpr{
+ ( test {\iffieldundef{labelprefix}} and test {\ifundef\cbx@lastprefix} )
+ or
+ test {\iffieldequals{labelprefix}{\cbx@lastprefix}}
+ }
+ {\ifnumequal{\thefield{labelnumber}}{\value{cbx@tempcntb}}
+ {\savefield{entrykey}{\cbx@lastkey}%
+ \savefield{labelnumber}{\cbx@lastnumber}%
+ \addtocounter{cbx@tempcnta}{1}}
+ {\ifnumequal{\thefield{labelnumber}}{\value{cbx@tempcntb}-1}
+ {}
+ {\usebibmacro{cite:dump}%
+ \ifnumgreater{\value{cbx@tempcntb}}{-1}
+ {\multicitedelim}
+ {}%
+ \printtext[bibhyperref]{%
+ \printfield{labelprefix}%
+ \printfield{labelnumber}}}}}
+ {\usebibmacro{cite:comp:end}}%
+ %\setcounter{cbx@tempcntb}{\thefield{labelnumber}}%%注释该行,以取消压缩
+ \savefield{labelprefix}{\cbx@lastprefix}}
+```
+
+
+​
+### 5. Examples/著录和标注结果示例
+
++ 标注样式示例
+
+ * 顺序编码制
+
+ ![示例a](example/fig-style-numeric.png)
+
+ 代码见:![egcitetab.tex](egfigure/egcitetab.tex),![egcitenumtp.tex](egfigure/egcitenumtp.tex)
+
+ * 作者年制
+
+ ![示例b](example/fig-style-authoryear.png)
+
+ 代码见:![egciteaytab.tex](egfigure/egciteaytab.tex),![egciteaytp.tex](egfigure/egciteaytp.tex)
+ ,![egciteay.tex](egfigure/egciteay.tex)
+
+ 具体代码见:egfigure 文件夹下的各个文件。
+
+ 命令说明见:biblatex-gb7714-2015.pdf文档。
+
++ 著录样式示例
+
+ 国标文档的完整复现:
+
+ * 顺序编码制
+
+ 代码见:![tgbcitation.tex](egfigure/tgbcitation.tex)
+
+ * 作者年制
+
+ 代码见:![tngbcitationay.tex](egfigure/tngbcitationay.tex)
+
+ * 国标附录
+
+ 代码见:![tgbbiblio.tex](egfigure/tgbbiblio.tex)
+
+
++ 姓名的格式更改示例
+
+代码见:![opt-gbnamefmt.tex](example/opt-gbnamefmt.tex) ,![opt-gbnamefmt-default.tex](example/opt-gbnamefmt-default.tex)
+
+对于bib文件中的如下条目,有:
+
+```
+ @Article{Zhang2007-500-503,
+ Title = {The design and experimental investigations of supersonic length shorted nozzle},
+ Author = {Zhang, Min-li and Yi, Shi-he and Zhao, Yu-xin},
+ Journal = {ACTA AERODYNAMICA SINICA},
+ Number = {4},
+ Pages = {500-503},
+ Volume = {25},
+ Year = {2007}
+ }
+
+ @Book{Yi2013--,
+ Title = {Supersonic and hypersonic nozzle design},
+ Address = {Beijing},
+ Author = {Yi, Shi he and Zhao, Yu xin and He, Lin and Zhang, Min li},
+ Publisher = {National Defense Industry Press},
+ Year = {2013}
+ }
+
+ @Book{LIAO2012--,
+ Title = {Electronic countermeasure techniques for missile penetration},
+ Address = {Beijing},
+ Author = {LIAO, ping and JIANG, qin bo},
+ Publisher = {National Defense Industry Press},
+ Year = {2013}
+ }
+
+ @Book{LIU2003--,
+ Title = {Introduction of Ballistic Misille Techniques},
+ Address = {Beijing},
+ Author = {LIU, shi Qiu},
+ Publisher = {China Astronautic Publishing House},
+ Year = {2003}
+ }
+```
+![示例c](example/fig-nameformat.png)
+
+
+
+### 6. 测试文件说明
+
++ egfigure
+ - ![egciteay.tex](egfigure\egciteay.tex) 测试gb7714-2015ay的标注样式,是否满足GB要求
+ - ![egciteaytab.tex](egfigure\egciteaytab.tex) 测试gb7714-2015ay的标注样式,绘制成表用于biblatex-gb7714-2015.pdf
+ - ![egciteaytp.tex](egfigure\egciteaytp.tex) 测试gb7714-2015ay使用natbib的常用标注命令
+ - ![egcitenum.tex](egfigure\egcitenum.tex) 测试gb7714-2015的标注样式,是否满足GB要求
+ - ![egcitenumtp.tex](egfigure\egcitenumtp.tex) 测试gb7714-2015使用natbib的常用标注命令
+ - ![egcitetab.tex](egfigure\egcitetab.tex) 测试gb7714-2015的标注样式,绘制成表用于biblatex-gb7714-2015.pdf
+ - ![egcitesay.tex](egfigure\egcitesay.tex) 测试gb7714-2015ay使用复数形式的命令
+ - ![egcitesnum.tex](egfigure\egcitesnum.tex) 测试gb7714-2015使用复数形式的命令
+ - ![egcontentfmt.tex](egfigure\egcontentfmt.tex) 测试gb7714-2015样式选项gbnamefmt=givenahead,gbbiblabel=dot,gbtitlelink=true
+ - ![egcontentfmtb.tex](egfigure\egcontentfmtb.tex) 测试gb7714-2015ms样式选项gbnamefmt=lowercase,gbstyle=false,sorting=nyt
+ - ![egcontentfmtc.tex](egfigure\egcontentfmtc.tex) 测试gb7714-2015ay样式选项maxcitenames=2,mincitenames=1,sorting=gbynta(UCAS-资环类)
+ - ![egdoublelan.tex](egfigure\egdoublelan.tex) 测试gb7714-2015样式实现的双语对照文献表,关联条目方法
+ - ![egdoublelanb.tex](egfigure\egdoublelanb.tex) 测试gb7714-2015样式实现的双语对照文献表,关联条目方法,(gbnamefmt=pinyin 国内某期刊)
+ - ![eggbfootstyle.tex](egfigure\eggbfootstyle.tex) 测试gb7714-2015样式实现国标要求的脚注文献表
+ - ![egfootstyle.tex](egfigure\egfootstyle.tex) 测试gb7714-2015样式一般的脚注文献表
+ - ![egmsinabiblio.tex](egfigure\egmsinabiblio.tex) 测试gb7714-2015ms样式在一篇文档中使用两种格式设置,中文:GB,英文:biblatex标准样式
+ - ![egmxindfrefsec.tex](egfigure\egmxindfrefsec.tex) 测试gb7714-2015mx样式在不同的参考文献分节中使用顺序编码和作者年制两种不同样式
+ - ![egmultilan.tex](egfigure\egmultilan.tex) 测试gb7714-2015样式实现的多语言混合的文献表
+ - ![egmwe.tex](egfigure\egmwe.tex) 测试gb7714-2015样式最小示例,用于biblatex-gb7714-2015.PDF
+ - ![egparfmt.tex](egfigure\egparfmt.tex) 测试gb7714-2015样式文献表段落格式设置,包括缩进,颜色,字体,间距等
+ - ![tgbbiblio.tex](egfigure\tgbbiblio.tex) 实现GB/T 7714-2015 标准的附录的文献表示例(gb7714-2015样式)
+ - ![tgbbiblioms.tex](egfigure\tgbbiblioms.tex) 实现GB/T 7714-2015 标准的附录的文献表示例(gb7714-2015ms样式)
+ - ![tgbcitation.tex](egfigure\tgbcitation.tex) 实现GB/T 7714-2015 标准2-10节给出的顺序编码制示例(gb7714-2015样式)
+ - ![tgbcitationms.tex](egfigure\tgbcitationms.tex) 实现GB/T 7714-2015 标准2-10节给出的顺序编码制示例(gb7714-2015ms样式)
+ - ![tngbcitationay.tex](egfigure\tngbcitationay.tex) 实现GB/T 7714-2015 标准2-10节给出的著者年份制示例(gb7714-2015ay样式)
+ - ![tngbcitationaynew.tex](egfigure\tngbcitationaynew.tex) 实现GB/T 7714-2015 标准2-10节给出的著者年份制示例(gb7714-2015ay样式,nohashothers=true)
++ egphoto
+ - ![opt-citexref-false.tex](egphoto\opt-citexref-false.tex) 测试citexref=false选项
+ - ![opt-citexref-true.tex](egphoto\opt-citexref-true.tex) 测试citexref=true选项
+ - ![opt-gbalign-center.tex](egphoto\opt-gbalign-center.tex) 测试gbalign=center选项
+ - ![opt-gbalign-gb.tex](egphoto\opt-gbalign-gb.tex) 测试gbalign=gb7714-2015选项
+ - ![opt-gbalign-left.tex](egphoto\opt-gbalign-left.tex) 测试gbalign=left选项
+ - ![opt-gbalign-right.tex](egphoto\opt-gbalign-right.tex) 测试gbalign=right选项
+ - ![opt-gbannote-false.tex](egphoto\opt-gbannote-false.tex) 测试gbannote=false选项
+ - ![opt-gbannote-true.tex](egphoto\opt-gbannote-true.tex) 测试gbannote=true选项
+ - ![opt-gbannote-true.tex](egphoto\opt-gbannote-true.tex) 测试gbannote=true选项
+ - ![opt-gbbiblabela.tex](egphoto\opt-gbbiblabela.tex) 测试gbbiblabel=box选项
+ - ![opt-gbbiblabelb.tex](egphoto\opt-gbbiblabelb.tex) 测试gbbiblabel=bracket选项
+ - ![opt-gbbiblabelc.tex](egphoto\opt-gbbiblabelc.tex) 测试gbbiblabel=parens选项
+ - ![opt-gbbiblabeld.tex](egphoto\opt-gbbiblabeld.tex) 测试gbbiblabel=dot选项
+ - ![opt-gbbiblabele.tex](egphoto\opt-gbbiblabele.tex) 测试gbbiblabel=plain选项
+ - ![opt-gbbiblabelf.tex](egphoto\opt-gbbiblabelf.tex) 测试gbbiblabel=circle选项
+ - ![opt-gbnoauthor-false.tex](egphoto\opt-gbnoauthor-false.tex) 测试gbnoauthor=false选项
+ - ![opt-gbnoauthor-true.tex](egphoto\opt-gbnoauthor-true.tex) 测试gbnoauthor=true选项
+ - ![opt-gbpub-false.tex](egphoto\opt-gbpub-false.tex) 测试gbpub=false选项
+ - ![opt-gbpub-true.tex](egphoto\opt-gbpub-true.tex) 测试gbpub=true选项
+ - ![opt-gbpunctin-false.tex](egphoto\opt-gbpunctin-false.tex) 测试gbpunctin=false选项
+ - ![opt-gbpunctin-true.tex](egphoto\opt-gbpunctin-true.tex) 测试gbpunctin=true选项
+ - ![opt-gbtitlelink-false.tex](egphoto\opt-gbtitlelink-false.tex) 测试gbtitlelink=false选项
+ - ![opt-gbtitlelink-true.tex](egphoto\opt-gbtitlelink-true.tex) 测试gbtitlelink=true选项
+ - ![opt-gbtype-false.tex](egphoto\opt-gbtype-false.tex) 测试gbtype=false选项
+ - ![opt-gbtype-true.tex](egphoto\opt-gbtype-true.tex) 测试gbtype=true选项
+ - ![opt-mergedate-a.tex](egphoto\opt-mergedate-a.tex) 测试mergedate默认选项(gb7714-2015ay)
+ - ![opt-mergedate-b.tex](egphoto\opt-mergedate-b.tex) 测试mergedate=true选项(gb7714-2015ay)
+ - ![opt-mergedate-c.tex](egphoto\opt-mergedate-c.tex) 测试mergedate=false选项(gb7714-2015ay)
+ - ![opt-mergedate-d.tex](egphoto\opt-mergedate-d.tex) 测试mergedate=none选项(gb7714-2015ay)
++ egthesis
+ - ![thesis-bupt-numeric.tex](egthesis\thesis-bupt-numeric.tex)
+ - ![thesis-cau-numeric.tex](egthesis\thesis-cau-numeric.tex)
+ - ![thesis-ecnu-numeric.tex](egthesis\thesis-ecnu-numeric.tex)
+ - ![thesis-fdu-numeric.tex](egthesis\thesis-fdu-numeric.tex)
+ - ![thesis-nwafu-ay.tex](egthesis\thesis-nwafu-ay.tex) 测试西北农林科技大学(可以参考:特殊的ay样式调整)
+ - ![thesis-seu-numeric.tex](egthesis\thesis-seu-numeric.tex) 测试东南大学(可以参考:gb7714-2015样式调整)
+ - ![thesis-sjtu-numeric.tex](egthesis\thesis-sjtu-numeric.tex)
+ - ![thesis-thu-author-year.tex](egthesis\thesis-thu-author-year.tex)
+ - ![thesis-thu-numeric.tex](egthesis\thesis-thu-numeric.tex)
+ - ![thesis-tongji.tex](egthesis\thesis-tongji.tex)
+ - ![thesis-ucas-m.tex](egthesis\thesis-ucas-m.tex) 测试中科院大学(可以参考:ay样式调整)
+ - ![thesis-ucas-x.tex](egthesis\thesis-ucas-x.tex)
+ - ![thesis-uibe-numeric.tex](egthesis\thesis-uibe-numeric.tex) 测试对外经贸大学(可以参考:中文标点、卷期格式;中英文不同)
+ - ![thesis-ustc-all.tex](egthesis\thesis-ustc-all.tex) 测试中科大(可以参考:一文中使用两种样式)
+ - ![thesis-ustc-authoryear.tex](egthesis\thesis-ustc-authoryear.tex)
+ - ![thesis-ustc-numeric.tex](egthesis\thesis-ustc-numeric.tex)
+ - ![thesis-xjtu-numeric.tex](egthesis\thesis-xjtu-numeric.tex)
+ - ![thesis-zju-numeric.tex](egthesis\thesis-zju-numeric.tex)
+ - ![thesistest.tex](egthesis\thesistest.tex)
++ example
+ - ![cls-beamer.tex](example\cls-beamer.tex) 测试beamer中的使用(gb7714-2015样式)
+ - ![cls-beameray.tex](example\cls-beameray.tex) 测试beamer中的使用(gb7714-2015ay样式)
+ - ![codeopt-gbcodegbk.tex](example\codeopt-gbcodegbk.tex) 测试gb7714-2015、ay样式,对于GBK编码文档的兼容性
+ - ![eg-opt-gbstyle.tex](example\eg-opt-gbstyle.tex) 测试gb7714-2015ms样式一篇文档中中英文两种格式设置,多语言对照,多语言混合文献表
+ - ![testallformat.tex](example\testallformat.tex) 测试全面的类型、格式
+ - ![egtest.tex](example\egtest.tex) 测试示例
+ - ![opt-autolang-multilan.tex](example\opt-autolang-multilan.tex) 测试多语言混合的文献表,各语言不同的本地化字符串
+ - ![opt-eg-multilan.tex](example\opt-eg-multilan.tex) 测试多语言混合的文献表
+ - ![opt-eg-authoryear.tex](example\opt-eg-authoryear.tex) 测试ay样式
+ - ![opt-eg-dblang.tex](example\opt-eg-dblang.tex) 测试双语对照文献-两种方法(条目集、关联条目)
+ - ![opt-gbalign-center.tex](example\opt-gbalign-center.tex) 测试gbalign选项
+ - ![opt-gbalign-gb.tex](example\opt-gbalign-gb.tex) 测试gbalign选项
+ - ![opt-gbalign-left.tex](example\opt-gbalign-left.tex) 测试gbalign选项
+ - ![opt-gbannote.tex](example\opt-gbannote.tex) 测试gbannote选项,在文献表中加上附加信息用以说明三大索引情况
+ - ![opt-gbbiblabel.tex](example\opt-gbbiblabel.tex) 测试gbbiblabel选项
+ - ![opt-gbctexset.tex](example\opt-gbctexset.tex) 测试gbctexset选项,使可以利用ctex的设置对文献表的标题进行修改
+ - ![opt-gbfieldstd.tex](example\opt-gbfieldstd.tex) 测试gbfiledstd选项,著录格式还原为biblatex标准样式的格式
+ - ![opt-gbfootbib.tex](example\opt-gbfootbib.tex) 测试实现国标要求的脚注文献表
+ - ![opt-gblanorder-chineseahead.tex](example\opt-gblanorder-chineseahead.tex) 测试文献表排序,中文在前
+ - ![opt-gblanorder-englishahead.tex](example\opt-gblanorder-englishahead.tex) 测试文献表排序,英文在前
+ - ![opt-gblanorder-udforder.tex](example\opt-gblanorder-udforder.tex) 测试文献表排序,自定义顺序
+ - ![opt-sorting-multilan.tex](example\opt-sorting-multilan.tex) 测试多语言混合文献表排序
+ - ![opt-gblocal.tex](example\opt-gblocal.tex) 测试本地化字符串设置(引用标注标签、文献表)
+ - ![test-setlocal.tex](example\test-setlocal.tex) 测试本地化字符串设置(多种方法局部调整)
+ - ![test-setlocal-multilan.tex](example\test-setlocal-multilan.tex) 测试本地化字符串设置(多种语言的局部调整)
+ - ![opt-gbnamefmt.tex](example\opt-gbnamefmt.tex) 测试gbnamefmt对于作者姓名格式的控制
+ - ![opt-gbnamefmt-default.tex](example\opt-gbnamefmt-default.tex) 测试gbnamefmt对于作者姓名格式的控制
+ - ![opt-gbnamefmt-quanpin.tex](example\opt-gbnamefmt-quanpin.tex) 测试gbnamefmt对于作者姓名格式的控制
+ - ![opt-gbnoauthor-false.tex](example\opt-gbnoauthor-false.tex) 测试gbnoauthor选项
+ - ![opt-gbnoauthor-true.tex](example\opt-gbnoauthor-true.tex) 测试gbnoauthor选项
+ - ![opt-gbpub-true.tex](example\opt-gbpub-true.tex) 测试gbpub选项
+ - ![opt-gbpunctin.tex](example\opt-gbpunctin.tex) 测试gbpunctin选项
+ - ![opt-gbtitlelink.tex](example\opt-gbtitlelink.tex) 测试gbtitlelink选项
+ - ![opt-gbtype.tex](example\opt-gbtype.tex) 测试gbtype选项
+ - ![opt-hyperref-backref.tex](example\opt-hyperref-backref.tex) 测试backrref选项,反向超链接
+ - ![teststyleerj.tex](example\teststyleerj.tex) 测试chinese-erj样式
+ - ![test-translator-in-other-lan.tex](example\test-translator-in-other-lan.tex) 测试译著的其它语言的译者格式
+ - ![test-space-after-citelabel-inCJKline.tex](example\test-space-after-citelabel-inCJKline.tex) 测试删除标注后因为xeCJK加入的空格
+
+
+---------------------------------------------------------
+
+
+## Usage
+* for numerical sequence style: gb7714-2015
+
+ `\usepackage[backend=biber,style=gb7714-2015]{biblatex}`
+
+ - add an option `gbalign` to control the align style of the numerical label:
+
+ `gbalign=right` for the label ragged left in a list environment, this is the default setting.
+
+ `gbalign=center` for the same width label in a list environment with the number centered in a wrapper like bracket []
+
+ `gbalign=left` for the label ragged right in list environment
+
+ `gbalign=gb7714-2015` for the label in paragraph with same separation space between label and content of the reference entry
+
+ `\usepackage[backend=biber,style=gb7714-2015,gbalign=gb7714-2015]{biblatex}`
+
+ - add an option `gbpub` for dealing publishing items (This option is also for author-year style):
+
+ `gbpub = true` for gb7714 style, to print `[出版者不详]` and the like when publisher or address is absent, this is the default setting.
+
+ `gbpub = false` for standard style, not to print the additional infomation.
+
+ `\usepackage[backend=biber,style=gb7714-2015,gbpub=true]{biblatex}`
+
+ - add an option `gbnamefmt` for dealing author name's letter case (This option is also for author-year style):
+
+ `gbnamefmt = uppercase` for gb7714 style, to capitalize all the letters of the name, like: ZHANG M L, this is the default setting.
+
+ `gbnamefmt = lowercase` for gb7714 style, do no case switch of the name, like: Zhang M L
+
+ `gbnamefmt = givenahead` for standard style, given-family style, like: M. L. Zhang as the ieee style
+
+ `gbnamefmt = familyahead` for standard style, family-given style, like: Zhang, M. L. as the apa style.
+
+ `gbnamefmt = pinyin` for a common Chinese style, like: ZHANG Min-li, YI Shi-he and so on.
+
+ `gbnamefmt = reserveorder` for standard style:family-given/given-family style
+
+ 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.
+
+ `\usepackage[backend=biber,style=gb7714-2015,gbnamefmt=uppercase]{biblatex}`
+
+ - add an option `gbbiblabel` to control the format of the numerical label:
+
+ `gbbiblabel=bracket` for the numerical number in the label wrapped by bracket, like: [1], this is the default setting.
+
+ `gbbiblabel=parens` for the numerical number in the label wrapped by parenthesis, like: (1)
+
+ `gbbiblabel=plain` for the numerical number in the label wrapped by nothing, like: 1
+
+ `gbbiblabel=dot` for the numerical number in the label followed with dot, like: 1.
+
+ `gbbiblabel=box` for the numerical number in the label wrapped by box which generated by `\framebox`
+
+ `gbbiblabel=circle` for the numerical number in the label wrapped by circle which generated by `\textcircled`
+
+ `\usepackage[backend=biber,style=gb7714-2015,gbbiblabel=bracket]{biblatex}`
+
+ - 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):
+
+ `gbtype = true` for gb7714 style, print a title with the identifier, like: `an on-line article [J/OL]`, this is the default setting.
+
+ `gbtype = false` for none identifier, print a title without identifier, like: `an on-line article`
+
+ `\usepackage[backend=biber,style=gb7714-2015,gbtype=true]{biblatex}`
+
+ - add an option `gbfieldtype` to control the output of field type:
+
+ `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}}`,
+ `\DefineBibliographyStrings{english}{mathesiscn={str you want}}`,`\DefineBibliographyStrings{english}{phdthesiscn={str you want}}` to
+ define the output string, or set it in bibfile like: `type={str you want},`
+
+ `gbfieldtype = false` not to print type field.
+
+ `\usepackage[backend=biber,style=gb7714-2015,gbfieldtype=true]{biblatex}`
+
+ - 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):
+
+ `gbpunctin=true` for gb7714 style, to output `//`, this is the default setting
+
+ `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.
+
+ `\usepackage[backend=biber,style=gb7714-2015,gbpunctin=true]{biblatex}`
+
+ - add an option `gbctexset` to control the bibliography heading's setting method (This option is also for author year style):
+
+ `gbctexset=true` , the bibliography heading can be set by `\bibname` or `\refname`, this is the default setting.
+
+ `gbpunctin=false`, the heading can be set by bibstring like `\DefineBibliographyStrings{english}{bibliography={title you want}}` or `\DefineBibliographyStrings{english}{references={title you want}}`
+
+ or alternatively, it can also be set through the printbibliography option `title`, like `printbibliography[title=title you want]`.
+
+ `\usepackage[backend=biber,style=gb7714-2015,gbctexset=true]{biblatex}`
+
+ - add an option `gbcodegbk` to deal the tex source file encoded with GBK (This option is also for author year style):
+
+ `gbcodegbk=true` , if you want to compile the GBK encoded source file with pdflatex or latex
+
+ `gbcodegbk=false`, if you want to compile the utf-8 endcoded source file with xelatex, this is the default setting.
+
+ `\usepackage[backend=biber,style=gb7714-2015,gbcodegbk=true]{biblatex}`
+
+ - add an option `gbtitlelink` to control the hyperlink of title field (This option is also for author year style):
+
+ `gbtitlelink = false` not to add hyperlink, this is the default setting.
+
+ `gbtitlelink = true` to set the title as a hyperlink.
+
+ `\usepackage[backend=biber,style=gb7714-2015,gbtitlelink=true]{biblatex}`
+
+ - add an option `gbfootbib` to control the bibliography in footnote (This option is also for author year style):
+
+ `gbfootbib = true` make patches to match the standard, this is the default setting.
+
+ `gbfootbib = false` not to patch.
+
+ `\usepackage[backend=biber,style=gb7714-2015,gbtitlelink=true]{biblatex}`
+
+ - 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):
+
+ `gbcitelocal = gb7714-2015` to output local strings according to the reference's language, this is the default setting.
+
+ `gbcitelocal = chinese` to output local strings with chinese language word like "等".
+
+ `gbcitelocal = english` to output local strings with western language word like "et al.".
+
+ `\usepackage[backend=biber,style=gb7714-2015,gbcitelocal = chinese]{biblatex}`
+
+ - add an option `gbstrict` to control the output of some unnecessary fields for GB/T7714-2015 (This option is also for author year style).
+
+ `gbstrict=true`, not to print those fields such as language, eprint, this is the default setting.
+
+ `gbstrict=false`, to output them as the standard style
+
+ `\usepackage[backend=biber,style=gb7714-2015,gbstrict=true]{biblatex}`
+
+ - 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):
+
+ `gbfieldstd = false` for gb7714 style, format of the fields follows the GB/T7714-2015 standard, this is the default setting.
+
+ `gbfieldstd = true` for standard style.
+
+ `\usepackage[backend=biber,style=gb7714-2015,gbfieldstd=true]{biblatex}`
+
+
+* for multi-style: gb7714-2015ms
+
+ 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.
+
+
+ `\usepackage[backend=biber,style=gb7714-2015ms,gbstyle=false]{biblatex}`
+
+* for author year style: gb7714-2015ay
+
+ `\usepackage[backend=biber,style=gb7714-2015ay,gbpub=true]{biblatex}`
+
+ - add an option `gbnoauthor` for dealing undefined author:
+
+ `gbnoauthor = true` for gb7714 style, to print `佚名` or `Anon` when the author of the entry is absent.
+
+ `gbnoauthor = false` for standard style, not to pring anything, this is the default setting.
+
+ `\usepackage[backend=biber,style=gb7714-2015ay,gbnoauthor=true]{biblatex}`
+
+ - add an option value `mergedate=none` to control the date in bibliography:
+
+ `mergedate=true` to output date only after author,like:LAMPORT L, (1986). Document Preparation System[M]. [S.l.]: Addison-Wesley Reading, MA.
+
+ `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.
+
+ `mergedate=none` to output date only in publish items,like:LAMPORT L. Document Preparation System[M]. [S.l.]: Addison-Wesley Reading, MA, 1986.
+
+ do not set mergedate output like:LAMPORT L, 1986. Document Preparation System[M]. [S.l.]: Addison-Wesley Reading, MA.
+
+ `\usepackage[backend=biber,style=gb7714-2015ay,mergedate=none]{biblatex}`
+
+ - add an option `gblanorder` to control sequence of reference groups of different languagesin the bibliography:
+
+ `gblanorder=chineseahead` to set the sequence as: cn;jp;kr;en;fr;ru
+
+ `gblanorder=englishahead` to set the sequence as: en;fr;ru;cn;jp;kr
+
+ `gblanorder=user defined string like: cn;en;jp;kr;fr;ru` to set the sequence as: cn;en;jp;kr;fr;ru.
+
+ `\usepackage[backend=biber,style=gb7714-2015ay,gblanorder=cn;en;jp;fr;kr;ru]{biblatex}`
+
+* for perl script transformation tool(only for the numerical style)
+
+ `perl gb7714texttobib.pl in=textfilename out=bibfilename`
+
+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.
+
+please see the file 'biblatex-gb7714-2015.pdf' for further information!
+
+
+## Version history:
+
+* 2016/05/20 v1.0
+* 2016/10/23 v1.0a
+* 2016/11/11 v1.0b
+* 2016/11/14 v1.0c
+* 2016/11/24 v1.0d
+* 2016/12/07 v1.0e
+* 2017/02/26 v1.0g
+* 2017/04/11 v1.0h
+* 2017/11/21 v1.0i
+* 2018/01/20 v1.0j
+* 2018/04/03 v1.0k
+* 2018/06/01 v1.0l
+* 2018/08/14 v1.0m,CTAN
+* 2018/11/04 v1.0n
+* 2018/12/22 v1.0o
+* 2019/01/19 v1.0p
+* 2019/02/11 v1.0q
+* 2019/03/28 v1.0r
+* 2019/03/29 v1.0rm,rename erj to chinese-erj,ctan
+* 2019/08/28 v1.0s
+* 2020/03/04 v1.0t,ctan
+* 2020/03/30 v1.0u
+* 2020/07/21 v1.0v,ctan
+* 2021/01/19 v1.0w,ctan
+* 2021/04/03 v1.0x,ctan
+
+
+
+---------------------------------------------------------
+## Update history:
+
+[update: tex](example/updatehistory.tex)
+
+[update: tex](example/updatehistoryold.tex)
+
+
+
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015-preamble.tex b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015-preamble.tex
index bca0153d42..89a481574e 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015-preamble.tex
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015-preamble.tex
@@ -1,431 +1,431 @@
-\usepackage{expl3,etoolbox,ifthen,xstring}
-\usepackage{xltxtra,mflogo,texnames,fontawesome}
-%\usepackage{amstext}
-\usepackage[zihao=-4]{ctex}
-\ctexset{today=old}
-\let\kaiti=\kaishu
-\usepackage{xeCJKfntef}
-%\setmainfont{CMU Serif}
-\usepackage{fontspec}
-%\usepackage{tgpagella}
-\setmainfont[Ligatures=TeX]{TeX Gyre Pagella}
-\setsansfont[Ligatures=TeX]{TeX Gyre Pagella}
-\setmonofont[Ligatures=TeX]{TeX Gyre Pagella}
-%\usepackage{unicode-math}
-%\setmathfont[math-style=ISO,bold-style=ISO]{TeX Gyre Pagella Math}
-
-\setmainfont{CMU Serif}
-\IfFileExists{SourceHanSerifSC-Regular.otf}
-{\setCJKmainfont[BoldFont=SourceHanSansSC-Regular.otf, ItalicFont=simkai.ttf]{SourceHanSerifSC-Regular.otf}}{}
-
-\usepackage[dvipsnames]{xcolor}
-\colorlet{examplefill}{yellow!80!black}
-\definecolor{graphicbackground}{rgb}{0.96,0.96,0.8}
-\definecolor{codebackground}{rgb}{0.9,0.9,1}
-\definecolor{gbsteelblue}{RGB}{70,130,180}
-\definecolor{gborange}{RGB}{255,138,88}
-\definecolor{gbblue}{RGB}{23,74,117}
-\definecolor{gbforestgreen}{RGB}{21,122,81}
-\definecolor{gbyellow}{RGB}{255,185,88}
-\definecolor{gbgrey}{RGB}{200,200,200}
-\colorlet{gblabelcolor}{violet}
-\colorlet{gbemphcolor}{blue!60!black}
-%\colorlet{gbemphcolor}{violet}
-
-%定义版面,showframe,
-\usepackage[paperwidth=210mm,paperheight=290mm,left=35mm,right=20mm,top=25mm, bottom=20mm,showcrop]{geometry}%,showframe
-\renewcommand{\baselinestretch}{1.35}
-%页面布局的标尺
-\usepackage[type=none]{fgruler}
-%[unit=cm,type=lowerleft,showframe=true,hshift=3cm,vshift=2cm]
-\rulerparams{}{}{gray!10}{}{0.2pt}
-\fgrulerdefnum{}\fgrulercaptioncm{}%fgruler加数字后,导致基线对齐出现问题,所以这里去掉
-
-\newlength{\skipheadrule}
-\deflength{\skipheadrule}{3.5pt}
-\newlength{\skipfootrule}
-\deflength{\skipfootrule}{5.5pt}
-\newlength{\ruletotalen}
-\deflength{\ruletotalen}{\textheight}
-\newlength{\ruleraised}
-\deflength{\ruleraised}{\headsep+\textheight}
-\usepackage{fancyhdr}
-\fancyhf{}
-%\fancyhead[LO]{%
-%\raisebox{-\skipheadrule}{%
-%\raisebox{-\headsep}[0pt][0pt]{\makebox[0pt][l]{\ruler{rightup}{\linewidth}}}%
-%\raisebox{-\ruleraised}[0pt][0pt]{\makebox[0pt][r]{\ruler{upleft}{\ruletotalen}}}%
-%}%HEAD LEFT%
-%}
-%\fancyhead[LE]{%
-%\raisebox{-\skipheadrule}{%
-%\raisebox{-\headsep}[0pt][0pt]{\makebox[0pt][l]{\ruler{rightup}{\linewidth}}}%
-%\raisebox{-\ruleraised}[0pt][0pt]{\makebox[0pt][r]{\ruler{upleft}{\ruletotalen}}}%
-%}\leftmark%HEAD LEFT%
-%}
-%\fancyhead[RO]{%
-%%HEAD RIGHT%
-%\raisebox{-\skipheadrule}{%
-%\hfill\makebox[0pt][l]{\raisebox{-\ruleraised}[0pt][0pt]{\ruler{downright}{\ruletotalen}}\hss}%
-%}}
-%\fancyhead[RE]{%
-%\rightmark%HEAD RIGHT%
-%\raisebox{-\skipheadrule}{%
-%\hfill\makebox[0pt][l]{\raisebox{-\ruleraised}[0pt][0pt]{\ruler{downright}{\ruletotalen}}\hss}%
-%}}
-\fancyhead[CO]{%
-符合GB/T 7714-2015标准的biblatex参考文献样式%HEAD CENTER
-}
-%\fancyfoot[L]{%
-%\raisebox{-\skipfootrule}{%
-%\raisebox{\footskip}[0pt][0pt]{\makebox[0pt][l]{\ruler{rightdown}{\linewidth}}}
-%}%FOOT LEFT
-%}
-\fancyfoot[C]{%
-\thepage%FOOT CENTER
-}
-\fancyfoot[R]{%
-%FOOT RIGHT
-}
-\renewcommand{\headrulewidth}{0.4pt}
-\renewcommand{\footrulewidth}{0pt}
-\pagestyle{fancy}
-
-
-%超链接书签功能,选项去掉链接红色方框
-\usepackage[colorlinks=true,%
-pdfstartview=FitH,allcolors=gbemphcolor,
-bookmarksopenlevel=4,%
-bookmarksdepth=4,]{hyperref}
-%linkcolor=gbblue,anchorcolor=gbblue,citecolor=gbblue
-%linkcolor=black,linkcolor=green,blue,red,cyan, magenta,
-%yellow, black, gray,white, darkgray, lightgray, brown,
-%lime, olive, orange, red,purple, teal, violet.
-%CJKbookmarks,bookmarksnumbered=true,
-\usepackage{titleref} %标题引用
-
-%标题格式设置
-\usepackage{titlesec}
-%\titlespacing*{hcommandi}{hlefti}{hbefore-sepi}{hafter-sepi}[hright-sepi]
-\titlespacing*{\section}{0pt}{\baselineskip}{0.5\baselineskip}
-\titlespacing*{\subsection}{0pt}{0.5\baselineskip}{0.5\baselineskip}
-\titlespacing*{\subsubsection}{0pt}{0.5\baselineskip}{0pt}
-\titlespacing{\paragraph}{2em}{0.5\baselineskip}{1em}
-%这里利用titleformat*简单做设置,也可以利用titleformat做详细设置
-\titleformat*{\section}{\zihao{-3}\bfseries\heiti}
-\titleformat*{\subsection}{\zihao{4}\bfseries\songti}
-\titleformat*{\subsubsection}{\zihao{-4}\bfseries\kaiti}
-
-%参考文献
-\usepackage[backend=biber,style=gb7714-2015,gbalign=center,gbfootbib=true%,gbtype=true%
-]{biblatex}%,backref=true%
-\addbibresource[location=local]{example.bib}
-\setlength{\bibitemsep}{1pt}
-%\defbibheading{bibliography}[\bibname]{%
-%%\phantomsection%解决链接指引出错的问题,相当于加入了一个引导点
-%%\addcontentsline{toc}{subsection}{#1}
-% \centering\subsubsection*{#1}}%
-
-
-%目录,图/表/例目录,图表题注
-\usepackage[bf]{subfigure}
-\usepackage[subfigure]{tocloft} %注意其与titletoc共用时分页会有问题
-\usepackage{ccaption}
-\captiondelim{. } %图序图题中间的间隔符号
-\captionnamefont{\zihao{-5}\heiti} %图序样式
-\captiontitlefont{\zihao{-5}\heiti} %图题样式
-\captionwidth{0.8\linewidth} %标题宽度
-\changecaptionwidth
-\captionstyle{\centering} %\captionstyle{<style>} style are: \centering, \raggedleft or \raggedright
-%\precaption{\rule{\linewidth}{0.4pt}\par}
-%\postcaption{\vspace{-1cm}}
-\setlength{\belowcaptionskip}{2pt}%设置caption上下间距
-\setlength{\abovecaptionskip}{0pt}
-%\setlength{\abovelegendskip}{0pt} %设置legend上下间距
-%\setlength{\belowlegendskip}{0pt}
-%新的浮动体设置,\centerline{}
-\newcommand{\listegcodename}{\zihao{4}示~~例\thispagestyle{plain}}%listegcodename,新环境目录的标题
-\newcommand{\egcodename}{例}%egcodename,新环境标题的图序
-\newfloatlist{egcode}{loc}{\listegcodename}{\egcodename}%loc,写入条目的文件的扩展名
-\newfixedcaption{\codecaption}{egcode}%egcode,环境名
-\newfixedcaption{\fixtabcaption}{table}%egcode,环境名
-
-%目录命令
-\setlength{\cftbeforetoctitleskip}{\baselineskip}
-\setlength{\cftaftertoctitleskip}{0.5\baselineskip}
-\setlength{\cftbeforeloftitleskip}{\baselineskip}
-\setlength{\cftafterloftitleskip}{0.5\baselineskip}
-\setlength{\cftbeforelottitleskip}{\baselineskip}
-\setlength{\cftafterlottitleskip}{0.5\baselineskip}
-\setlength{\cftbeforeloctitleskip}{\baselineskip}
-\setlength{\cftafterloctitleskip}{0.5\baselineskip}
-%\renewcommand\contentsname{\hfill 目~~ 录 \hfill \hspace{1cm}} %用这一句也是一样的。
-\renewcommand{\cfttoctitlefont}{\heiti}
-\renewcommand{\cftaftertoctitle}{}
-\renewcommand{\cftloftitlefont}{\heiti}
-\renewcommand{\cftafterloftitle}{}
-\renewcommand{\cftlottitlefont}{\heiti}
-\renewcommand{\cftafterlottitle}{}
-\renewcommand{\cftloctitlefont}{\heiti}
-\renewcommand{\cftafterloctitle}{}
-\renewcommand{\contentsname}{\zihao{4}目~~录}
-\renewcommand{\listfigurename}{\zihao{4}图~~片}
-\renewcommand{\listtablename}{\zihao{4}表~~格}
-\renewcommand{\cftsecfont}{\zihao{5}\heiti} %条目样式
-\renewcommand{\cftsubsecfont}{\zihao{-5}\songti} %条目样式\fangsong
-\renewcommand{\cftsubsubsecfont}{\zihao{-5}\kaiti} %条目样式
-\renewcommand{\cftsecpagefont}{\bfseries\zihao{5}} %页码的样式
-\renewcommand{\cftsubsecpagefont}{\bfseries\zihao{-5}} %页码的样式
-\renewcommand{\cftsubsubsecpagefont}{\bfseries\zihao{-5}} %页码的样式
-%−−−−−−−−−−设置egcode条目样式−−−−−−−−−−−−−−−−−−−−−−
-%\renewcommand{\cftegcodeleader}{\leaders\hbox to 1em{\hss.\hss}\hfill}
-\setlength{\cftbeforeegcodeskip}{0.1ex} %条目前的间距
-\setlength{\cftegcodeindent}{0em} %条目缩进
-\setlength{\cftegcodenumwidth}{2.5em} %条目标签宽度
-\renewcommand{\cftegcodefont}{\color{gbemphcolor}\zihao{-5}}%条目样式\fangsong
-\renewcommand{\cftegcodepresnum}{例}
-\renewcommand{\cftegcodeaftersnum}{ }
-\renewcommand{\cftegcodeaftersnumb}{~}
-%\cftsetindents{egcode}{0em}{3em}
-\renewcommand{\cftegcodepagefont}{\bfseries\zihao{-5}}
-%−−−−−−−−−−设置figure条目样式−−−−−−−−−−−−−−−−−−−−−−
-%\newcommand{\cftfigfill}{\renewcommand{\cftdot}{$\diamond$}\cftdotfill{\cftdotsep}}
-\setlength{\cftbeforefigskip}{0.1ex} %条目前的间距
-\setlength{\cftfigindent}{0em} %条目缩进
-\setlength{\cftfignumwidth}{2.5em} %条目标签宽度
-\renewcommand{\cftfigfont}{\color{gbemphcolor}\zihao{-5}} %条目样式\heiti
-\renewcommand{\cftfigpresnum}{图} %条目数字前的内容
-\renewcommand{\cftfigaftersnum}{ } %条目数字后的内容
-\renewcommand{\cftfigaftersnumb}{~} %条目数字后的第二个内容
-%\renewcommand{\cftfigdotsep}{\cftdotsep} %连接符之间的宽度
-%\renewcommand{\cftfigleader}{\bfseries\cftfigfill} %连接符粘连团
-%\renewcommand{\cftfigpagefont}{\color{red}\zihao{-5}$\diamond$\itshape} %页码的样式
-%\renewcommand{\cftfigafterpnum}{\color{red}$\diamond$} %页码后内容
-\renewcommand{\cftfigpagefont}{\bfseries\zihao{-5}} %页码的样式
-%−−−−−−−−−−设置table条目样式−−−−−−−−−−−−−−−−−−−−−−
-%\newcommand{\cfttabfill}{\renewcommand{\cftdot}{$\infty$}\cftdotfill{\cftdotsep}}
-\setlength{\cftbeforetabskip}{0.1ex} %条目前的间距
-\setlength{\cfttabindent}{0em} %条目缩进
-\setlength{\cfttabnumwidth}{2.5em} %条目标签宽度
-\renewcommand{\cfttabfont}{\color{gbemphcolor}\zihao{-5}} %条目样式
-\renewcommand{\cfttabpresnum}{表} %条目数字前的内容
-\renewcommand{\cfttabaftersnum}{ } %条目数字后的内容
-\renewcommand{\cfttabaftersnumb}{~} %条目数字后的第二个内容
-%\renewcommand{\cfttabdotsep}{\cftdotsep} %连接符之间的宽度
-%\renewcommand{\cfttableader}{\bfseries\cfttabfill} %连接符粘连团
-%\renewcommand{\cfttabpagefont}{\color{red}\zihao{-5}$\infty$\itshape} %页码的样式
-%\renewcommand{\cfttabafterpnum}{\color{red}$\infty$} %页码后内容
-\renewcommand{\cfttabpagefont}{\bfseries\zihao{-5}} %页码的样式
-
-\usepackage{pdfpages}%直接插入pdf文件页
-\graphicspath{{egfigure/}{example/}}
-
-%代码环境设置
-\usepackage{listings}
-\usepackage{tikz,pgf}
-\usetikzlibrary{calc}
-
-\newenvironment{example}[3][{\large\faFileCodeO}]%
-{\list{}{\begingroup\codecaption{#2}\label{#3}\endgroup
-\setlength{\topsep}{0pt}
-\setlength{\partopsep}{0pt}
-\setlength{\itemsep}{0pt}
-\setlength{\parsep}{0pt}
-\setlength{\leftmargin}{0pt}%
-\setlength{\itemindent}{0pt}%
-%\renewcommand*{\makelabel}[1]{\hss\llap{\footnotesize\color{orange}\bfseries##1}}
-}\item[\footnotesize\color{gblabelcolor}\bfseries#1]\relax}
-{\endlist}
-
-\lstnewenvironment{texlist}%
-{\lstset{% general command to set parameter(s)
-%name=#1,
-%label=#2,
-%caption=\lstname,
-linewidth=\linewidth,
-breaklines=true,
-%showspaces=true,
-extendedchars=false,
-columns=fullflexible,%flexible,
-aboveskip=2pt,
-boxpos=t,
-rulesep=0pt,
-frame=tb,
-framesep=0pt,
-rulecolor=\color{gblabelcolor},
-fontadjust=true,
-language=[LaTeX]TeX,
-backgroundcolor=\color{gbyellow!3},%\color{yellow}, %背景颜色
-%numbers=left,
-numberstyle=\tiny\color{gblabelcolor},
-basicstyle=\footnotesize\ttfamily, % print whole listing small
-keywordstyle=\bfseries\color{gbemphcolor},%\underbar,
-% underlined bold black keywords
-identifierstyle=, % nothing happens
-commentstyle=\color{OliveGreen}, % white comments
-stringstyle=\ttfamily\color{purple!50}, % typewriter type for strings
-showstringspaces=false}% no special string spaces
-}
-{}
-
-%定理环境设置
-\usepackage[listings,theorems,most]{tcolorbox}
-\tcbuselibrary{breakable}
-\newcounter{myprop}\def\themyprop{\arabic{myprop}}
-%一个强调显示
-\newcommand{\bibliofmt}[1]{\medskip\textcolor{gbforestgreen}{\heiti#1}}
-
-%序号如果带章节的话可以改为比如:\thesection.\arabic{myprop}
-\tcbmaketheorem{property}{方法}
-{enhanced jigsaw,breakable,pad at break*=1mm,left=2em,boxsep=0pt,
-%colback=gray!5,colframe=gbforestgreen,
- colback=gray!5,boxrule=0pt,frame hidden,coltitle=gborange,
- borderline west={1.5mm}{-2mm}{gbforestgreen},
- theorem style=plain,fonttitle=\bfseries\heiti,arc=0mm,
-%separator sign={\ $\blacktriangleright$},breakable,
-%theorem style=plain,fonttitle=\bfseries\upshape, fontupper=\slshape,boxrule=0mm,arc=0mm, %
-%coltitle=black,colback=green!50!yellow!15!white,colframe=blue!50,%
-%description delimiters={}{},
-%terminator sign={\ }
-}{myprop}{pp}
-%最后一个必须参数是prefix用来做label比如这里是pp:加上给出的标签名
-
-\newtcbtheorem[]{refentry}{条目类型}
-{breakable,pad at break*=1mm,enhanced jigsaw,left=2em,boxsep=0pt,
- colback=yellow!10!white,boxrule=0pt,frame hidden,
- borderline west={1.5mm}{-2mm}{gbforestgreen},
-separator sign={\ $\blacktriangleright$},terminator sign={\ },
-theorem style=plain,fonttitle=\bfseries\heiti,coltitle=gbforestgreen
-%fontupper=\normalsize,boxrule=0mm,arc=0mm,breakable,
-%coltitle=green!35!black,colbacktitle=green!15!white,
-%colback=green!50!yellow!15!white,terminator sign={\ }
-}{rfeg}
-%最后一个必须参数是prefix用来做label比如这里是rfeg:加上给出的标签名
-
-
-%标题区命令设置
-\newcommand{\titleformanual}[1]{\def\biaotiudf{#1}}
-\newcommand{\authorformanual}[1]{\def\zuozheudf{#1}}
-\newcommand{\dateformanual}[1]{\def\riqiudf{#1}}
-%\ifthenelse{\equal{\youwuudf}{\temp}}{true}{false}
-\def\temp{}
-\makeatletter
-\newcommand{\titleandauthor}{
-\begin{center}
-\def\@makefnmark{\hbox{\@textsuperscript{\small\@thefnmark}}}
-{\setlength{\baselineskip}{40pt}\renewcommand{\thefootnote}{\fnsymbol{footnote}}
-\heiti{\zihao{-2}{\biaotiudf}}\par}%
-%注意这里\par要放在花括号内才有效
-\setlength{\baselineskip}{0.1cm}
-\rule{0pt}{0.5cm}\par
-{\renewcommand{\thefootnote}{\arabic{footnote}}
-\kaishu{\zihao{4}{\zuozheudf}}\par}
-\rule{0pt}{0.3cm}\par
-{\songti{\zihao{-4}{\riqiudf}}\par}
-\end{center}
-}
-\makeatother
-%脚注的数字带圈使用gb7714-2015中的重定义实现
-%\renewcommand{\thefootnote}{\textcircled{\tiny\arabic{footnote}}}
-
-
-%--------------列表环境---------------------------------------------
-\usepackage[inline]{enumitem} %重设list环境
-\setlist[enumerate]{label=\bfseries\textcolor{gbemphcolor}{(\arabic*)},topsep=2pt,partopsep=0pt,parsep=0pt,%
-align=left,leftmargin=0em,itemsep=0.5em,labelwidth=0.1em,itemindent=2.6em,listparindent=2em}%label=$\triangleright$,itemindent=1em
-\setlist[itemize]{topsep=2pt,partopsep=0pt,parsep=0pt,%
-leftmargin=3em,itemindent=0em}
-\setlist[description]{font=\bfseries\textcolor{gblabelcolor},align=right,topsep=5pt,partopsep=0pt,parsep=0pt,%
-itemsep=0pt,leftmargin=0em,itemindent=0em}%注意,font或format中的最后一个命令自动提取标签为其参数
-
-\usepackage{longtable}
-
-%自定义下划红线和背景颜色
-\usepackage{ulem}
-\newcommand\yellowback{\bgroup\markoverwith
-{\textcolor{yellow}{\rule[-0.5ex]{2pt}{2.5ex}}}\ULon}
-\newcommand\reduline{\bgroup\markoverwith
-{\textcolor{red}{\rule[-0.5ex]{2pt}{0.4pt}}}\ULon}
-
-%一些字符串格式化命令
-\newcommand*{\verbatimfont}{\ttfamily}
-\newrobustcmd*{\cnt}[1]{\mbox{\verbatimfont#1}}
-\newrobustcmd*{\bibfield}[1]{\mbox{\verbatimfont#1}}
-\newrobustcmd*{\opt}[1]{\mbox{\verbatimfont#1}}
-\newrobustcmd*{\prm}[1]{%
- \ifblank{#1}
- {}
- {\mbox{%
- \ensuremath\langle
- \normalfont\textit{#1}%
- \ensuremath\rangle}}}
-
-\usepackage{amssymb}
-
-\newcommand{\HandRight}{$\bigstar$}
-\newcommand{\zhongdian}[1]{\textcolor{gbemphcolor}{\HandRight\small\heiti#1}}
-\newcommand{\pz}[1]{%定义pz为旁注命令
-\marginpar[\flushright\small\youyuan\color{gbemphcolor}\footnotesize #1]{\kaiti\color{gbemphcolor}\small #1}}
-\newcommand{\PZ}[1]{%定义pz为旁注命令
-\marginpar[\flushright\small\youyuan\color{gbemphcolor}\footnotesize #1]{\kaiti\color{gbemphcolor}\small #1}}
-\newcommand{\qd}[1]{%定义qd为强调命令
-\begin{quote}
- \fangsong\color{gbemphcolor}#1%blue!50!black\fangsong
-\end{quote}}
-\newcommand{\QD}[1]{%定义qd为强调命令
-\begin{quote}
- \fangsong\color{gbemphcolor}#1
-\end{quote}}
-
-\long\def\bc#1{%定义补充信息
-{\kaiti\color{gbemphcolor}#1}} %orange,brown,purple,teal,gbblue,olive,cyan
-\long\def\BC#1{%定义补充信息
-{\youyuan\color{gbemphcolor}#1}}
-\newcommand{\zd}[1]{%定义补充信息
-{\kaiti\color{gbemphcolor}#1}} %orange,brown,purple,teal,gbblue,olive,cyan
-\newcommand{\ZD}[1]{%定义补充信息
-{\kaiti\color{gbemphcolor}#1}}
-
-
-\newenvironment*{marglist}
-{\list{}{\setlength{\topsep}{0pt}
-\setlength{\partopsep}{0pt}
-\setlength{\itemsep}{0pt}
-\setlength{\parsep}{0pt}
-\setlength{\leftmargin}{0pt}%
-\setlength{\itemindent}{0pt}%
-\renewcommand*{\makelabel}[1]{\hss\llap{\footnotesize\color{orange}\bfseries##1}}}}
-{\endlist}
-
-\makeatletter
-\newcommand{\updateinfo}[2][\@empty]{%
-\par\small\addvspace{2ex plus 1ex}%
-\noindent{\color{gbemphcolor}\rule{\linewidth}{2pt}}
-\vskip -\parskip
-\ifx\@empty#1 \begin{marglist} \item #2\end{marglist}
-\else \begin{marglist} \item[#1] #2\end{marglist} \fi}
-\makeatother
-
-%\usepackage{filecontents}
-
-%% 问答环境参考文献
-%\NewDocumentEnvironment { reference } { }
-% {
-% \skip_vertical:n { 2 ex }
-% \small
-% \noindent \textsf{ 参考文献 } \marginpar { \raggedleft \faBook }
-% \enumerate [ topsep = 0pt ]
-% % \ignorespaces
-% }
-% { \endenumerate }
-%
-%\NewDocumentEnvironment { note } { }
-% {
-% \skip_vertical:n { 2 ex }
-% \small
-% \noindent \textsf{ 注意 } \marginpar { \raggedleft \faWarning }
-% \par
-% % \ignorespaces
-% }
-% { }
-
+\usepackage{expl3,etoolbox,ifthen,xstring}
+\usepackage{xltxtra,mflogo,texnames,fontawesome}
+%\usepackage{amstext}
+\usepackage[zihao=-4]{ctex}
+\ctexset{today=old}
+\let\kaiti=\kaishu
+\usepackage{xeCJKfntef}
+%\setmainfont{CMU Serif}
+\usepackage{fontspec}
+%\usepackage{tgpagella}
+\setmainfont[Ligatures=TeX]{TeX Gyre Pagella}
+\setsansfont[Ligatures=TeX]{TeX Gyre Pagella}
+\setmonofont[Ligatures=TeX]{TeX Gyre Pagella}
+%\usepackage{unicode-math}
+%\setmathfont[math-style=ISO,bold-style=ISO]{TeX Gyre Pagella Math}
+
+\setmainfont{CMU Serif}
+\IfFileExists{SourceHanSerifSC-Regular.otf}
+{\setCJKmainfont[BoldFont=SourceHanSansSC-Regular.otf, ItalicFont=simkai.ttf]{SourceHanSerifSC-Regular.otf}}{}
+
+\usepackage[dvipsnames]{xcolor}
+\colorlet{examplefill}{yellow!80!black}
+\definecolor{graphicbackground}{rgb}{0.96,0.96,0.8}
+\definecolor{codebackground}{rgb}{0.9,0.9,1}
+\definecolor{gbsteelblue}{RGB}{70,130,180}
+\definecolor{gborange}{RGB}{255,138,88}
+\definecolor{gbblue}{RGB}{23,74,117}
+\definecolor{gbforestgreen}{RGB}{21,122,81}
+\definecolor{gbyellow}{RGB}{255,185,88}
+\definecolor{gbgrey}{RGB}{200,200,200}
+\colorlet{gblabelcolor}{violet}
+\colorlet{gbemphcolor}{blue!60!black}
+%\colorlet{gbemphcolor}{violet}
+
+%定义版面,showframe,
+\usepackage[paperwidth=210mm,paperheight=290mm,left=35mm,right=20mm,top=25mm, bottom=20mm,showcrop]{geometry}%,showframe
+\renewcommand{\baselinestretch}{1.35}
+%页面布局的标尺
+\usepackage[type=none]{fgruler}
+%[unit=cm,type=lowerleft,showframe=true,hshift=3cm,vshift=2cm]
+\rulerparams{}{}{gray!10}{}{0.2pt}
+\fgrulerdefnum{}\fgrulercaptioncm{}%fgruler加数字后,导致基线对齐出现问题,所以这里去掉
+
+\newlength{\skipheadrule}
+\deflength{\skipheadrule}{3.5pt}
+\newlength{\skipfootrule}
+\deflength{\skipfootrule}{5.5pt}
+\newlength{\ruletotalen}
+\deflength{\ruletotalen}{\textheight}
+\newlength{\ruleraised}
+\deflength{\ruleraised}{\headsep+\textheight}
+\usepackage{fancyhdr}
+\fancyhf{}
+%\fancyhead[LO]{%
+%\raisebox{-\skipheadrule}{%
+%\raisebox{-\headsep}[0pt][0pt]{\makebox[0pt][l]{\ruler{rightup}{\linewidth}}}%
+%\raisebox{-\ruleraised}[0pt][0pt]{\makebox[0pt][r]{\ruler{upleft}{\ruletotalen}}}%
+%}%HEAD LEFT%
+%}
+%\fancyhead[LE]{%
+%\raisebox{-\skipheadrule}{%
+%\raisebox{-\headsep}[0pt][0pt]{\makebox[0pt][l]{\ruler{rightup}{\linewidth}}}%
+%\raisebox{-\ruleraised}[0pt][0pt]{\makebox[0pt][r]{\ruler{upleft}{\ruletotalen}}}%
+%}\leftmark%HEAD LEFT%
+%}
+%\fancyhead[RO]{%
+%%HEAD RIGHT%
+%\raisebox{-\skipheadrule}{%
+%\hfill\makebox[0pt][l]{\raisebox{-\ruleraised}[0pt][0pt]{\ruler{downright}{\ruletotalen}}\hss}%
+%}}
+%\fancyhead[RE]{%
+%\rightmark%HEAD RIGHT%
+%\raisebox{-\skipheadrule}{%
+%\hfill\makebox[0pt][l]{\raisebox{-\ruleraised}[0pt][0pt]{\ruler{downright}{\ruletotalen}}\hss}%
+%}}
+\fancyhead[CO]{%
+符合GB/T 7714-2015标准的biblatex参考文献样式%HEAD CENTER
+}
+%\fancyfoot[L]{%
+%\raisebox{-\skipfootrule}{%
+%\raisebox{\footskip}[0pt][0pt]{\makebox[0pt][l]{\ruler{rightdown}{\linewidth}}}
+%}%FOOT LEFT
+%}
+\fancyfoot[C]{%
+\thepage%FOOT CENTER
+}
+\fancyfoot[R]{%
+%FOOT RIGHT
+}
+\renewcommand{\headrulewidth}{0.4pt}
+\renewcommand{\footrulewidth}{0pt}
+\pagestyle{fancy}
+
+
+%超链接书签功能,选项去掉链接红色方框
+\usepackage[colorlinks=true,%
+pdfstartview=FitH,allcolors=gbemphcolor,
+bookmarksopenlevel=4,%
+bookmarksdepth=4,]{hyperref}
+%linkcolor=gbblue,anchorcolor=gbblue,citecolor=gbblue
+%linkcolor=black,linkcolor=green,blue,red,cyan, magenta,
+%yellow, black, gray,white, darkgray, lightgray, brown,
+%lime, olive, orange, red,purple, teal, violet.
+%CJKbookmarks,bookmarksnumbered=true,
+\usepackage{titleref} %标题引用
+
+%标题格式设置
+\usepackage{titlesec}
+%\titlespacing*{hcommandi}{hlefti}{hbefore-sepi}{hafter-sepi}[hright-sepi]
+\titlespacing*{\section}{0pt}{\baselineskip}{0.5\baselineskip}
+\titlespacing*{\subsection}{0pt}{0.5\baselineskip}{0.5\baselineskip}
+\titlespacing*{\subsubsection}{0pt}{0.5\baselineskip}{0pt}
+\titlespacing{\paragraph}{2em}{0.5\baselineskip}{1em}
+%这里利用titleformat*简单做设置,也可以利用titleformat做详细设置
+\titleformat*{\section}{\zihao{-3}\bfseries\heiti}
+\titleformat*{\subsection}{\zihao{4}\bfseries\songti}
+\titleformat*{\subsubsection}{\zihao{-4}\bfseries\kaiti}
+
+%参考文献
+\usepackage[backend=biber,style=gb7714-2015,gbalign=center,gbfootbib=true%,gbtype=true%
+]{biblatex}%,backref=true%
+\addbibresource[location=local]{example.bib}
+\setlength{\bibitemsep}{1pt}
+%\defbibheading{bibliography}[\bibname]{%
+%%\phantomsection%解决链接指引出错的问题,相当于加入了一个引导点
+%%\addcontentsline{toc}{subsection}{#1}
+% \centering\subsubsection*{#1}}%
+
+
+%目录,图/表/例目录,图表题注
+\usepackage[bf]{subfigure}
+\usepackage[subfigure]{tocloft} %注意其与titletoc共用时分页会有问题
+\usepackage{ccaption}
+\captiondelim{. } %图序图题中间的间隔符号
+\captionnamefont{\zihao{-5}\heiti} %图序样式
+\captiontitlefont{\zihao{-5}\heiti} %图题样式
+\captionwidth{0.8\linewidth} %标题宽度
+\changecaptionwidth
+\captionstyle{\centering} %\captionstyle{<style>} style are: \centering, \raggedleft or \raggedright
+%\precaption{\rule{\linewidth}{0.4pt}\par}
+%\postcaption{\vspace{-1cm}}
+\setlength{\belowcaptionskip}{2pt}%设置caption上下间距
+\setlength{\abovecaptionskip}{0pt}
+%\setlength{\abovelegendskip}{0pt} %设置legend上下间距
+%\setlength{\belowlegendskip}{0pt}
+%新的浮动体设置,\centerline{}
+\newcommand{\listegcodename}{\zihao{4}示~~例\thispagestyle{plain}}%listegcodename,新环境目录的标题
+\newcommand{\egcodename}{例}%egcodename,新环境标题的图序
+\newfloatlist{egcode}{loc}{\listegcodename}{\egcodename}%loc,写入条目的文件的扩展名
+\newfixedcaption{\codecaption}{egcode}%egcode,环境名
+\newfixedcaption{\fixtabcaption}{table}%egcode,环境名
+
+%目录命令
+\setlength{\cftbeforetoctitleskip}{\baselineskip}
+\setlength{\cftaftertoctitleskip}{0.5\baselineskip}
+\setlength{\cftbeforeloftitleskip}{\baselineskip}
+\setlength{\cftafterloftitleskip}{0.5\baselineskip}
+\setlength{\cftbeforelottitleskip}{\baselineskip}
+\setlength{\cftafterlottitleskip}{0.5\baselineskip}
+\setlength{\cftbeforeloctitleskip}{\baselineskip}
+\setlength{\cftafterloctitleskip}{0.5\baselineskip}
+%\renewcommand\contentsname{\hfill 目~~ 录 \hfill \hspace{1cm}} %用这一句也是一样的。
+\renewcommand{\cfttoctitlefont}{\heiti}
+\renewcommand{\cftaftertoctitle}{}
+\renewcommand{\cftloftitlefont}{\heiti}
+\renewcommand{\cftafterloftitle}{}
+\renewcommand{\cftlottitlefont}{\heiti}
+\renewcommand{\cftafterlottitle}{}
+\renewcommand{\cftloctitlefont}{\heiti}
+\renewcommand{\cftafterloctitle}{}
+\renewcommand{\contentsname}{\zihao{4}目~~录}
+\renewcommand{\listfigurename}{\zihao{4}图~~片}
+\renewcommand{\listtablename}{\zihao{4}表~~格}
+\renewcommand{\cftsecfont}{\zihao{5}\heiti} %条目样式
+\renewcommand{\cftsubsecfont}{\zihao{-5}\songti} %条目样式\fangsong
+\renewcommand{\cftsubsubsecfont}{\zihao{-5}\kaiti} %条目样式
+\renewcommand{\cftsecpagefont}{\bfseries\zihao{5}} %页码的样式
+\renewcommand{\cftsubsecpagefont}{\bfseries\zihao{-5}} %页码的样式
+\renewcommand{\cftsubsubsecpagefont}{\bfseries\zihao{-5}} %页码的样式
+%−−−−−−−−−−设置egcode条目样式−−−−−−−−−−−−−−−−−−−−−−
+%\renewcommand{\cftegcodeleader}{\leaders\hbox to 1em{\hss.\hss}\hfill}
+\setlength{\cftbeforeegcodeskip}{0.1ex} %条目前的间距
+\setlength{\cftegcodeindent}{0em} %条目缩进
+\setlength{\cftegcodenumwidth}{2.5em} %条目标签宽度
+\renewcommand{\cftegcodefont}{\color{gbemphcolor}\zihao{-5}}%条目样式\fangsong
+\renewcommand{\cftegcodepresnum}{例}
+\renewcommand{\cftegcodeaftersnum}{ }
+\renewcommand{\cftegcodeaftersnumb}{~}
+%\cftsetindents{egcode}{0em}{3em}
+\renewcommand{\cftegcodepagefont}{\bfseries\zihao{-5}}
+%−−−−−−−−−−设置figure条目样式−−−−−−−−−−−−−−−−−−−−−−
+%\newcommand{\cftfigfill}{\renewcommand{\cftdot}{$\diamond$}\cftdotfill{\cftdotsep}}
+\setlength{\cftbeforefigskip}{0.1ex} %条目前的间距
+\setlength{\cftfigindent}{0em} %条目缩进
+\setlength{\cftfignumwidth}{2.5em} %条目标签宽度
+\renewcommand{\cftfigfont}{\color{gbemphcolor}\zihao{-5}} %条目样式\heiti
+\renewcommand{\cftfigpresnum}{图} %条目数字前的内容
+\renewcommand{\cftfigaftersnum}{ } %条目数字后的内容
+\renewcommand{\cftfigaftersnumb}{~} %条目数字后的第二个内容
+%\renewcommand{\cftfigdotsep}{\cftdotsep} %连接符之间的宽度
+%\renewcommand{\cftfigleader}{\bfseries\cftfigfill} %连接符粘连团
+%\renewcommand{\cftfigpagefont}{\color{red}\zihao{-5}$\diamond$\itshape} %页码的样式
+%\renewcommand{\cftfigafterpnum}{\color{red}$\diamond$} %页码后内容
+\renewcommand{\cftfigpagefont}{\bfseries\zihao{-5}} %页码的样式
+%−−−−−−−−−−设置table条目样式−−−−−−−−−−−−−−−−−−−−−−
+%\newcommand{\cfttabfill}{\renewcommand{\cftdot}{$\infty$}\cftdotfill{\cftdotsep}}
+\setlength{\cftbeforetabskip}{0.1ex} %条目前的间距
+\setlength{\cfttabindent}{0em} %条目缩进
+\setlength{\cfttabnumwidth}{2.5em} %条目标签宽度
+\renewcommand{\cfttabfont}{\color{gbemphcolor}\zihao{-5}} %条目样式
+\renewcommand{\cfttabpresnum}{表} %条目数字前的内容
+\renewcommand{\cfttabaftersnum}{ } %条目数字后的内容
+\renewcommand{\cfttabaftersnumb}{~} %条目数字后的第二个内容
+%\renewcommand{\cfttabdotsep}{\cftdotsep} %连接符之间的宽度
+%\renewcommand{\cfttableader}{\bfseries\cfttabfill} %连接符粘连团
+%\renewcommand{\cfttabpagefont}{\color{red}\zihao{-5}$\infty$\itshape} %页码的样式
+%\renewcommand{\cfttabafterpnum}{\color{red}$\infty$} %页码后内容
+\renewcommand{\cfttabpagefont}{\bfseries\zihao{-5}} %页码的样式
+
+\usepackage{pdfpages}%直接插入pdf文件页
+\graphicspath{{egfigure/}{example/}}
+
+%代码环境设置
+\usepackage{listings}
+\usepackage{tikz,pgf}
+\usetikzlibrary{calc}
+
+\newenvironment{example}[3][{\large\faFileCodeO}]%
+{\list{}{\begingroup\codecaption{#2}\label{#3}\endgroup
+\setlength{\topsep}{0pt}
+\setlength{\partopsep}{0pt}
+\setlength{\itemsep}{0pt}
+\setlength{\parsep}{0pt}
+\setlength{\leftmargin}{0pt}%
+\setlength{\itemindent}{0pt}%
+%\renewcommand*{\makelabel}[1]{\hss\llap{\footnotesize\color{orange}\bfseries##1}}
+}\item[\footnotesize\color{gblabelcolor}\bfseries#1]\relax}
+{\endlist}
+
+\lstnewenvironment{texlist}%
+{\lstset{% general command to set parameter(s)
+%name=#1,
+%label=#2,
+%caption=\lstname,
+linewidth=\linewidth,
+breaklines=true,
+%showspaces=true,
+extendedchars=false,
+columns=fullflexible,%flexible,
+aboveskip=2pt,
+boxpos=t,
+rulesep=0pt,
+frame=tb,
+framesep=0pt,
+rulecolor=\color{gblabelcolor},
+fontadjust=true,
+language=[LaTeX]TeX,
+backgroundcolor=\color{gbyellow!3},%\color{yellow}, %背景颜色
+%numbers=left,
+numberstyle=\tiny\color{gblabelcolor},
+basicstyle=\footnotesize\ttfamily, % print whole listing small
+keywordstyle=\bfseries\color{gbemphcolor},%\underbar,
+% underlined bold black keywords
+identifierstyle=, % nothing happens
+commentstyle=\color{OliveGreen}, % white comments
+stringstyle=\ttfamily\color{purple!50}, % typewriter type for strings
+showstringspaces=false}% no special string spaces
+}
+{}
+
+%定理环境设置
+\usepackage[listings,theorems,most]{tcolorbox}
+\tcbuselibrary{breakable}
+\newcounter{myprop}\def\themyprop{\arabic{myprop}}
+%一个强调显示
+\newcommand{\bibliofmt}[1]{\medskip\textcolor{gbforestgreen}{\heiti#1}}
+
+%序号如果带章节的话可以改为比如:\thesection.\arabic{myprop}
+\tcbmaketheorem{property}{方法}
+{enhanced jigsaw,breakable,pad at break*=1mm,left=2em,boxsep=0pt,
+%colback=gray!5,colframe=gbforestgreen,
+ colback=gray!5,boxrule=0pt,frame hidden,coltitle=gborange,
+ borderline west={1.5mm}{-2mm}{gbforestgreen},
+ theorem style=plain,fonttitle=\bfseries\heiti,arc=0mm,
+%separator sign={\ $\blacktriangleright$},breakable,
+%theorem style=plain,fonttitle=\bfseries\upshape, fontupper=\slshape,boxrule=0mm,arc=0mm, %
+%coltitle=black,colback=green!50!yellow!15!white,colframe=blue!50,%
+%description delimiters={}{},
+%terminator sign={\ }
+}{myprop}{pp}
+%最后一个必须参数是prefix用来做label比如这里是pp:加上给出的标签名
+
+\newtcbtheorem[]{refentry}{条目类型}
+{breakable,pad at break*=1mm,enhanced jigsaw,left=2em,boxsep=0pt,
+ colback=yellow!10!white,boxrule=0pt,frame hidden,
+ borderline west={1.5mm}{-2mm}{gbforestgreen},
+separator sign={\ $\blacktriangleright$},terminator sign={\ },
+theorem style=plain,fonttitle=\bfseries\heiti,coltitle=gbforestgreen
+%fontupper=\normalsize,boxrule=0mm,arc=0mm,breakable,
+%coltitle=green!35!black,colbacktitle=green!15!white,
+%colback=green!50!yellow!15!white,terminator sign={\ }
+}{rfeg}
+%最后一个必须参数是prefix用来做label比如这里是rfeg:加上给出的标签名
+
+
+%标题区命令设置
+\newcommand{\titleformanual}[1]{\def\biaotiudf{#1}}
+\newcommand{\authorformanual}[1]{\def\zuozheudf{#1}}
+\newcommand{\dateformanual}[1]{\def\riqiudf{#1}}
+%\ifthenelse{\equal{\youwuudf}{\temp}}{true}{false}
+\def\temp{}
+\makeatletter
+\newcommand{\titleandauthor}{
+\begin{center}
+\def\@makefnmark{\hbox{\@textsuperscript{\small\@thefnmark}}}
+{\setlength{\baselineskip}{40pt}\renewcommand{\thefootnote}{\fnsymbol{footnote}}
+\heiti{\zihao{-2}{\biaotiudf}}\par}%
+%注意这里\par要放在花括号内才有效
+\setlength{\baselineskip}{0.1cm}
+\rule{0pt}{0.5cm}\par
+{\renewcommand{\thefootnote}{\arabic{footnote}}
+\kaishu{\zihao{4}{\zuozheudf}}\par}
+\rule{0pt}{0.3cm}\par
+{\songti{\zihao{-4}{\riqiudf}}\par}
+\end{center}
+}
+\makeatother
+%脚注的数字带圈使用gb7714-2015中的重定义实现
+%\renewcommand{\thefootnote}{\textcircled{\tiny\arabic{footnote}}}
+
+
+%--------------列表环境---------------------------------------------
+\usepackage[inline]{enumitem} %重设list环境
+\setlist[enumerate]{label=\bfseries\textcolor{gbemphcolor}{(\arabic*)},topsep=2pt,partopsep=0pt,parsep=0pt,%
+align=left,leftmargin=0em,itemsep=0.5em,labelwidth=0.1em,itemindent=2.6em,listparindent=2em}%label=$\triangleright$,itemindent=1em
+\setlist[itemize]{topsep=2pt,partopsep=0pt,parsep=0pt,%
+leftmargin=3em,itemindent=0em}
+\setlist[description]{font=\bfseries\textcolor{gblabelcolor},align=right,topsep=5pt,partopsep=0pt,parsep=0pt,%
+itemsep=0pt,leftmargin=0em,itemindent=0em}%注意,font或format中的最后一个命令自动提取标签为其参数
+
+\usepackage{longtable}
+
+%自定义下划红线和背景颜色
+\usepackage{ulem}
+\newcommand\yellowback{\bgroup\markoverwith
+{\textcolor{yellow}{\rule[-0.5ex]{2pt}{2.5ex}}}\ULon}
+\newcommand\reduline{\bgroup\markoverwith
+{\textcolor{red}{\rule[-0.5ex]{2pt}{0.4pt}}}\ULon}
+
+%一些字符串格式化命令
+\newcommand*{\verbatimfont}{\ttfamily}
+\newrobustcmd*{\cnt}[1]{\mbox{\verbatimfont#1}}
+\newrobustcmd*{\bibfield}[1]{\mbox{\verbatimfont#1}}
+\newrobustcmd*{\opt}[1]{\mbox{\verbatimfont#1}}
+\newrobustcmd*{\prm}[1]{%
+ \ifblank{#1}
+ {}
+ {\mbox{%
+ \ensuremath\langle
+ \normalfont\textit{#1}%
+ \ensuremath\rangle}}}
+
+\usepackage{amssymb}
+
+\newcommand{\HandRight}{$\bigstar$}
+\newcommand{\zhongdian}[1]{\textcolor{gbemphcolor}{\HandRight\small\heiti#1}}
+\newcommand{\pz}[1]{%定义pz为旁注命令
+\marginpar[\flushright\small\youyuan\color{gbemphcolor}\footnotesize #1]{\kaiti\color{gbemphcolor}\small #1}}
+\newcommand{\PZ}[1]{%定义pz为旁注命令
+\marginpar[\flushright\small\youyuan\color{gbemphcolor}\footnotesize #1]{\kaiti\color{gbemphcolor}\small #1}}
+\newcommand{\qd}[1]{%定义qd为强调命令
+\begin{quote}
+ \fangsong\color{gbemphcolor}#1%blue!50!black\fangsong
+\end{quote}}
+\newcommand{\QD}[1]{%定义qd为强调命令
+\begin{quote}
+ \fangsong\color{gbemphcolor}#1
+\end{quote}}
+
+\long\def\bc#1{%定义补充信息
+{\kaiti\color{gbemphcolor}#1}} %orange,brown,purple,teal,gbblue,olive,cyan
+\long\def\BC#1{%定义补充信息
+{\youyuan\color{gbemphcolor}#1}}
+\newcommand{\zd}[1]{%定义补充信息
+{\kaiti\color{gbemphcolor}#1}} %orange,brown,purple,teal,gbblue,olive,cyan
+\newcommand{\ZD}[1]{%定义补充信息
+{\kaiti\color{gbemphcolor}#1}}
+
+
+\newenvironment*{marglist}
+{\list{}{\setlength{\topsep}{0pt}
+\setlength{\partopsep}{0pt}
+\setlength{\itemsep}{0pt}
+\setlength{\parsep}{0pt}
+\setlength{\leftmargin}{0pt}%
+\setlength{\itemindent}{0pt}%
+\renewcommand*{\makelabel}[1]{\hss\llap{\footnotesize\color{orange}\bfseries##1}}}}
+{\endlist}
+
+\makeatletter
+\newcommand{\updateinfo}[2][\@empty]{%
+\par\small\addvspace{2ex plus 1ex}%
+\noindent{\color{gbemphcolor}\rule{\linewidth}{2pt}}
+\vskip -\parskip
+\ifx\@empty#1 \begin{marglist} \item #2\end{marglist}
+\else \begin{marglist} \item[#1] #2\end{marglist} \fi}
+\makeatother
+
+%\usepackage{filecontents}
+
+%% 问答环境参考文献
+%\NewDocumentEnvironment { reference } { }
+% {
+% \skip_vertical:n { 2 ex }
+% \small
+% \noindent \textsf{ 参考文献 } \marginpar { \raggedleft \faBook }
+% \enumerate [ topsep = 0pt ]
+% % \ignorespaces
+% }
+% { \endenumerate }
+%
+%\NewDocumentEnvironment { note } { }
+% {
+% \skip_vertical:n { 2 ex }
+% \small
+% \noindent \textsf{ 注意 } \marginpar { \raggedleft \faWarning }
+% \par
+% % \ignorespaces
+% }
+% { }
+
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015.pdf b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015.pdf
index 9d22accbe0..a60f9e6783 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015.pdf
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015.pdf
Binary files differ
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015.tex b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015.tex
index 228b4e468e..b817eb6b52 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015.tex
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/biblatex-gb7714-2015.tex
@@ -1,2696 +1,2725 @@
-\documentclass[11pt]{article} %用draft选项找到badbox的位置 twoside,
-\input{biblatex-gb7714-2015-preamble} %宏包和一些格式设置
-\usepackage{microtype}
-%\usepackage[russian,french,english]{babel}
-%\DefineHyphenationExceptions{english}{conf-erence}
-\begin{document}
-
-\hyphenpenalty=100 %断词阈值,值越大越不容易出现断词
-\tolerance=9000 %丑度,10000为最大无溢出盒子,参考the texbook 第6章
-
-
-
-%------------------------------------------------------------
-% 标题和目录
-%------------------------------------------------------------
-\pagestyle{plain}
-\pagenumbering{Roman}
-
-\titleformanual{符合GB/T 7714-2015标准的biblatex参考文献样式
-\footnote{This Manual was created with biblatex v\versionofbiblatex, last revised at \today;\\%
-Style Files (gb7714-2015*.*) have version number: \versionofgbtstyle.}
-\footnote{repository address: \url{https://github.com/hushidong/biblatex-gb7714-2015}}}
-
-\authorformanual{胡振震\setcounter{footnote}{0}\footnote{Email: hzzmail@163.com}}
-
-\dateformanual{2016-07-01}
-
-\titleandauthor
-
-\begin{quotation}
-biblatex-gb7714-2015 宏包是为满足《GB/T 7714-2015~~信息与文献~~参考文献著录规则》要求而开发的 biblatex 样式包。宏包提供两种编制样式: 一、顺序编码制(gb7714-2015);二、著者-出版年制(gb7714-2015ay),能够精确地实现国标提出的著录和标注格式,且具备易用、兼容、灵活等特点,能为国内\LaTeX{}用户提供一个可靠的参考文献生成工具。
-%old:
-%biblatex-gb7714-2015 样式宏包提供了符合《GB/T 7714-2015 信息与文献 参考文献
-%著录规则》要求的 biblatex 参考文献样式。分为两种编制方式: 一、顺序编码制;二、著
-%者-出版年制。配合 biblatex 宏包使用具有较高的兼容性、易用性和灵活性。宏包提供了
-%详细的使用说明,为国内用户生成符合国标的参考文献表提供帮助。
-\end{quotation}
-\phantomsection
-%\addcontentsline{toc}{section}{目录}
-\tableofcontents
-%\renewcommand{\numberline}[1]{#1~}
-%\phantomsection
-%\addcontentsline{toc}{section}{示例}
-
-\listoffigures
-\listoftables
-\listofegcode
-\newlength{\textparwd}
-%------------------------------------------------------------
-
-\newpage
-\pagenumbering{arabic}
-\pagestyle{fancy}
-\section{概述}
-
-《GB/T 7714-2015~~信息与文献~~参考文献著录规则》是国内科技文档参考文献著录的一般标准,国内多数大学、出版社、期刊编辑部对于学位论文、出版物、期刊论文的参考文献要求通常都基于该标准。对于\LaTeX{}用户来说,参考文献生成是典型的自动化应用,通常有两种方法,一是基于bibtex的传统方法,二是基于biblatex的新方法。生成符合GB/T 7714 标准要求的参考文献,这两条路子都已经实践多年。
-基于biblatex的方法,早期有李志奇(icetea)的gbtstyle实现以及Casper Ti. Vector的caspervector样式,然而由于biblatex宏包升级、样式包维护和完善方面的问题,未能达到精确符合国标要求、且具备高可用性、兼容性和可维护性的理想状态。开发biblatex-gb7714-2015 样式包的初衷首先是基于当时这样的状态,其次也为解决很多实际应用中的问题,因此考虑如下原则:
-
-\subsection{设计原则}
-
-\begin{enumerate}
- \item 兼容性
-
-由于biblatex的持续升级,一些接口和功能的变化,会使得样式无法使用或者输出结果产生异变。因此biblatex-gb7714-2015宏包设计之初,就一直秉承兼容性原则,力图兼容各版本的biblatex,希望与biblatex v2.8 (in texlive2014) 以上所有版本适配(注意 ctex 2.9.4 的用户需升级 biblatex)。
-
-出于兼容一些旧的bib文件的考虑,增加对传统参考文献条目类型比如www/electronic/conference/mastersthsis/phdthsis/techreport/standard等的支持。根据国标要求,考虑增加newspaper(报纸析出的文献)、database(数据库)、dataset(数据集)、 software(软件)、map(舆图)、archive(档案)等类型。也为兼容适用于不同样式的bib数据源,增加对一些自定义域的支持,比如gbt7714宏包的bst样式中mark和medium域。此外,也试图去完善样式在不同文档类包括beamer类中的使用问题。
-
- \item 易用性
-
-参考文献是\LaTeX{}自动化应用之一,尽可能让其自动完成,减少用户的人工干预,包括数据的准备、格式的调整等等。因此宏包试图减少用户对于bib文件的调整,只需要简单地输入文献本身的信息,或者从各类学术网站或利用zotero等工具下载参考文献数据即可,而不需要为了符合国标格式而去手动增添参考文献类型和载体标识等一些数据域,也不必为了文献语言分集、文献排序等去增加语言、排序关键字等数据域,这些所有工作都由宏包自动完成。
-
-为了符合国标要求以及中文参考文献标注习惯,提供丰富的标注(引用)命令,用户只需熟悉几个命令的特性即能够完成两种编制样式下多样的标注格式,包括:顺序编码制的 \verb|\cite|(上标可设置页码)、 \verb|\parencite|(非上标可设置页码)、 \verb|\pagescite|(上标加自动页码)、 \verb|\textcite|(提供作者为主语加非上标编号)、 \verb|\authornumcite|(提供作者为主语加上标编号)、 \verb|\footfullcite|(脚注方式);著者-年份制的\verb|\cite|(作者加年份用括号包围可设置页码)、 \verb|\pagescite|(作者加年份用括号包围自动页码)、
-\verb|\yearcite|(提供年份用括号包围)、 \verb|\yearpagescite|(提供年份用括号包围自动页码)、
-\verb|\textcite|(提供主语作者加括号包围年份)、 \verb|\footfullcite|(脚注方式)。
-
-习惯natbib的用户也可以直接使用 \verb|\citet| 和 \verb|\citep| 命令,
-也提供一些习惯使用的命令,比如\verb|\citetns|、\verb|\citepns|、
-\verb|\upcite|、\verb|\inlinecite|等让用户可以无缝衔接从bibtex转到biblatex。
-
-另外,增加并完善对多语言混合文献表、多语言对照文献表的支持。不同语言文献可按文献自身语言录入,宏包自动识别语言并通过autolang选项自动完成语言切换,针对多语言对照文献表提供了基于条目集和关联条目概念的两种实现方式。
-
-
- \item 灵活性
-
-在考虑实现严格符合GB/T 7714-2015标准的格式外,也希望能够针对用户的特殊格式需求,提供方便灵活的定制方式,比如通过设置选项来达到格式的变化。为此,增加了多个方面的设置选项,使用户可以根据自己的需求灵活地调整。主要包括:
-
-著录表排序选项:
-sorting选项值(gb7714-2015支持以语言著者-出版年标题升序排列,gbnytd支持以语言著者-出版年标题降序排列,gbynta支持以语言年份作者标题升序排列,gbyntd支持以语言年份作者标题降序排列)、gblanorder 选项(可以设置不同的文种(语言)文献的排列顺序)、sortlocale 选项(可以设置本地语言的排序调整方案,比如zh\_\_pinyin支持汉字字符以拼音排序,zh\_\_stroke以笔画排序,auto/zh以unicode编码排序,zh\_\_gb2312han 以gb2312编码排序)。使用拼音排序时遇到多音字也可以利用key域解决。
-
-
-
-著录项格式选项:
-姓名格式调整(gbnamefmt选项,可以设置大写、小写、西语习惯用法、拼音习惯用法)、
-出版项控制(gbpub选项,可设置出版项缺失时是否填补信息)、类型和载体标识控制(gbtype选项,可设置不输出)、
-析出文献标识符控制(gbpunctin选项,可设置\texttt{//}不输出或其它表示形式)、
-标题超链接控制(gbtitlelink选项,可设置文献表中各条目标题超链接)、
-标准标签超链接控制(gblabelref选项,可设置标注中作者标签的超链接)、
-作者项处理(gbnoauthor选项,可设置作者缺失时是否填补信息);
-
-著录表格式选项和命令:
-标签对齐控制(gbalign选项,可设置左、右、居中、项对齐方式)、
-标签格式控制(gbbiblabel选项,可设置标签数字不同的包围符号)、
-条目格式控制(gbstyle选项,利用gb7714-2015ms样式可实现中英文献分设不同格式)、
-编制样式设置命令(利用\verb|\setaystylesection|和gb7714-2015mx样式实现不同文献节不同的编制方式)、
-格式命令\verb|\bibauthorfont|可设置作者项字体、
-格式命令\verb|\bibtitlefont|可设置标题项字体、
-格式命令\verb|\bibpubfont|可设置出版项字体、
-格式尺寸\verb|\bibitemindent|和\verb|\bibhang|可设置文献表的缩进、
-文献标题控制(gbctexset选项,可设置标题内容由\verb|\bibname|或\verb|\refname|宏调整);
-
-编码设置选项:
-GBK编码兼容(gbcodegbk选项,可设置GBK编码文档编译)等等。
-
-配合biblatex提供的选项、\verb|\bibfont|命令、\verb|\bibitemsep|间距等可以实现丰富的格式,包括标注和文献表采用不同样式、url/doi/isbn输出控制、标注和文献表中作者数量控制、文献表拼音或笔画排序等等。
-
-
- \item 可维护性
-
-宏包的长期使用价值体现在宏包的维护和更新上面,追求宏包具有高的可读性、可理解性、可维护性,可为宏包长期发挥作用提供帮助。由于biblatex已经是一个相当成熟完善的宏包,即便是在样式方面考虑也相当全面,这可能与西方出版界对于参考文献的多样且细致的要求有关。而国内只有一个通用标准就是GB/T 7714标准,且除了一些特殊需求要具体实现外,标准中大多数格式要求的实现完全可以借用biblatex提供的标准样式,因此既不需要重新造轮子,也可以使gb7714-2015样式与biblatex宏包的标准样式保持一致的结构、风格和习惯,这样可以大大增加代码可读性和可维护性。通过在biblatex原有样式基础上增加有限修改的方式,并且对代码加上详细注释,可以使得样式包维护者,只需通过学习biblatex,即可轻松理解gb7714-2015样式做的工作,比如做了哪些修改,为什么这么修改,实现了什么样的效果。
-
-
-另外,为方便用户,样式包提供了全面、详实的说明,包括
-GB/T 7714标准的理解和解释(\ref{sec:gbt:std}节)、
-条目类型和域的理解和录入方法(\ref{sec:bib:bibtex}节)、
-参考文献引用和文献表打印及其格式控制方法(\ref{sec:cbx:usage},\ref{sec:usage:bbx}节)、
-\href{https://github.com/hushidong/biblatex-gb7714-2015/wiki}{biblatex和样式包基本使用方法}、
-\href{https://github.com/hushidong/biblatex-solution-to-latex-bibliography/blob/master/biblatex-solution-to-latex-bibliography.pdf}%
-{biblatex高级使用方法和样式包设计实现方法}等,可为用户快速入门和维护者深入理解提供有效帮助。
-
-\end{enumerate}
-
-%具体来讲,完成了4个方面的工作:
-%\begin{enumerate}
-% \item 完成了GB/T 7714-2015标准的完整实现,包括两种编制方式下的各类型参考文献著录格式和标注格式等基本内容,还包括: 双语文献格式,带页码的标注格式,著者年份制下仅有年的标注格式和文献按语言集中并自动排序,起止卷期自动解析,增加gbnoauthor选项控制著者年份制责任者缺省的处理,增加gbpub选项控制出版信息缺省时的处理,增加gbalign选项控制顺序编码制文献表的标签对齐方式,提供右对齐、左对齐和项对齐三种方式。
-% \item 实现了用户文献数据录入优化,用户在录入参考文献数据时,只需要录入文献的实际信息即可,不需要录入文献标识符和载体标识符,无需录入language或者其它域信息来区分中英文参考文献,实现中英文自动判断并处理。支持一些特殊或老的条目类型,比如standard,newspaper,www,mastersthesis,phdthesis等。
-% \item 实现了对biblatex不同版本的兼容,能够应用于biblatex3.2以前的老版本,也能用于3.3版姓名处理方式改变后的版本。即可以与texlive2014/2015/2016/2017配合使用,无需升级biblatex情况下直接使用biblatex-gb7714-2015宏包(即本样式)。
-% \bc{当然 ctex2.9.4 的用户可能要升级一下biblatex,因为ctex多年没有更新,其中的biblatex版本过低}。
-% \item 测试了样式文件在book/report/article文档类以及beamer类下的适用性,结果表明均能满足要求。文档详细介绍了样式文件的使用方法和注意事项,说明了各条目类型的著录格式及其在biblatex 中对应信息域的构成,以及域信息的录入方法,并严格按照GB/T 7714-2015 标准测试了各种类型的文献。
-%\end{enumerate}
-
-\subsection{宏包结构}
-
-宏包文件结构如图\ref{fig:pkg:structure}所示:
-\begin{figure}[!htb]
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\centering\footnotesize
-\begin{tikzpicture}[node distance=1.5cm]
-%\definecolor{bluea}{rgb}{0.05,0.62,0.94}
-\ttfamily
-\node[align=center,fill=gbyellow!15,text width=4cm,inner sep=8pt] (project) {\textcolor{black}{Biblatex-gb7714-2015}};
-
-\node[align=center,below of=project,draw=red,thick,text width=3.5cm] (manual) {\textcolor{black}{Manual of Package}};
-\node[align=center,left of=manual,xshift=-3cm,draw=blue,thick,text width=3.5cm] (style) {\textcolor{black}{Style Files}};
-\node[align=center,right of=manual,xshift=3cm,draw=orange,thick,text width=3.5cm] (script) {\textcolor{black}{Compiling Scripts}};
-\draw[color=cyan,thick] (project.south) -- (manual.north) ;
-\draw[color=cyan,thick] (style.north) -- ($(style.north)+(0mm,3mm)$) ;
-\draw[color=cyan,thick] (script.north) -- ($(script.north)+(0mm,3mm)$) ;
-\draw[color=cyan,thick] ($(style.north)+(0mm,3mm)$) -- ($(script.north)+(0mm,3mm)$);
-
-\node[below of=style,fill=gbgrey!20,yshift=0.5cm,xshift=2mm,text width=2cm] (numcbbx) {\tiny \textcolor{black}{gb7715-2015.c/bbx}};
-\node[below of=numcbbx,fill=gbgrey!20,yshift=8mm,text width=2cm] (aycbbx) {\tiny \textcolor{black}{gb7715-2015ay.c/bbx}};
-\node[below of=aycbbx,fill=gbgrey!20,yshift=8mm,text width=2cm] (mscbbx) {\tiny \textcolor{black}{gb7715-2015ms.c/bbx}};
-\node[below of=mscbbx,fill=gbgrey!20,yshift=8mm,text width=2cm] (mxcbbx) {\tiny \textcolor{black}{gb7715-2015mx.c/bbx}};
-\node[below of=mxcbbx,fill=gbgrey!20,yshift=8mm,text width=2cm] (gbkdef) {\tiny \textcolor{black}{gb7715-2015-gbk.def}};
-\node[below of=gbkdef,fill=gbgrey!20,yshift=8mm,text width=2cm] (erjcbbx) {\tiny \textcolor{black}{chinese-erj.c/bbx}};
-%\node[below of=msbbx,fill=gbgrey!20,yshift=8mm,text width=2cm] (mscbx) {\tiny \textcolor{black}{gb7715-2015ms.cbx}};
-
-\draw[color=blue,semithick] (numcbbx.west) -- ($(numcbbx.west)+(-3mm,0mm)$) ;
-\draw[color=blue,semithick] (aycbbx.west) -- ($(aycbbx.west)+(-3mm,0mm)$) ;
-\draw[color=blue,semithick] (mscbbx.west) -- ($(mscbbx.west)+(-3mm,0mm)$) ;
-\draw[color=blue,semithick] (mxcbbx.west) -- ($(mxcbbx.west)+(-3mm,0mm)$) ;
-\draw[color=blue,semithick] (gbkdef.west) -- ($(gbkdef.west)+(-3mm,0mm)$) ;
-\draw[color=blue,semithick] (erjcbbx.west) -- ($(erjcbbx.west)+(-3mm,0mm)$) ;
-%\draw[color=blue,semithick] (mscbx.west) -- ($(mscbx.west)+(-3mm,0mm)$) ;
-
-\draw[color=blue,semithick] ($(erjcbbx.west)+(-3mm,0mm)$) -- ($(style.center)+(-12mm,-2.5mm)$) ;
-
-\node[below of=manual,fill=gbsteelblue!15,yshift=0.5cm,xshift=2mm,text width=2.8cm] (mtex) {\tiny \textcolor{black}{biblatex-gb7714-2015.tex}};
-\node[below of=mtex,fill=gbsteelblue!15,yshift=8mm,text width=2.8cm] (mpdf) {\tiny \textcolor{black}{biblatex-gb7714-2015.pdf}};
-\node[below of=mpdf,fill=gbsteelblue!15,yshift=8mm,text width=2.8cm] (egtex) {\tiny \textcolor{black}{example}};
-\node[below of=egtex,fill=gbsteelblue!15,yshift=8mm,text width=2.8cm] (egbib) {\tiny \textcolor{black}{egfigure}};
-\node[below of=egbib,fill=gbsteelblue!15,yshift=8mm,text width=2.8cm] (egthesis) {\tiny \textcolor{black}{egthesis}};
-\draw[color=red,semithick] (mtex.west) -- ($(mtex.west)+(-3mm,0mm)$) ;
-\draw[color=red,semithick] (mpdf.west) -- ($(mpdf.west)+(-3mm,0mm)$) ;
-\draw[color=red,semithick] (egtex.west) -- ($(egtex.west)+(-3mm,0mm)$) ;
-\draw[color=red,semithick] (egbib.west) -- ($(egbib.west)+(-3mm,0mm)$) ;
-\draw[color=red,semithick] (egthesis.west) -- ($(egthesis.west)+(-3mm,0mm)$) ;
-\draw[color=red,semithick] ($(egthesis.west)+(-3mm,0mm)$) -- ($(manual.center)+(-16mm,-2.5mm)$) ;
-
-\node[below of=script,fill=gbblue!10,yshift=0.5cm,xshift=2mm,text width=2cm] (cpall) {\tiny \textcolor{black}{makeall.bat/sh}};
-\node[below of=cpall,fill=gbblue!10,yshift=8mm,text width=2cm] (cpfil) {\tiny \textcolor{black}{makefile.bat/sh}};
-\node[below of=cpfil,fill=gbblue!10,yshift=8mm,text width=2cm] (cpcln) {\tiny \textcolor{black}{makeclear.bat/sh}};
-\node[below of=cpcln,fill=gbblue!10,yshift=8mm,text width=2cm] (plspt) {\tiny \textcolor{black}{gb7714text*.pl/dat}};
-\draw[color=orange,semithick] (cpall.west) -- ($(cpall.west)+(-3mm,0mm)$) ;
-\draw[color=orange,semithick] (cpfil.west) -- ($(cpfil.west)+(-3mm,0mm)$) ;
-\draw[color=orange,semithick] (cpcln.west) -- ($(cpcln.west)+(-3mm,0mm)$) ;
-\draw[color=orange,semithick] (plspt.west) -- ($(plspt.west)+(-3mm,0mm)$) ;
-\draw[color=orange,semithick] ($(plspt.west)+(-3mm,0mm)$) -- ($(plspt.west)+(-3mm,28.1mm)$) ;
-\end{tikzpicture}
-\end{tcolorbox}
-\caption{宏包文件结构}\label{fig:pkg:structure}
-\end{figure}
-
-
-
-其中,\zd{gb7714-2015.bbx/cbx}、\zd{gb7714-2015ay.bbx/cbx}分别为顺序编码制和著者年份制样式文件。
-\zd{gb7714-2015ms.bbx/cbx}是混合样式,支持区分中英文语言分设不同标准的著录格式。
-\zd{gb7714-2015mx.bbx/cbx}是混合样式,支持在不同的参考文献分节中使用不同的编制样式,比如有的节使用顺序编码制,有的节使用著者年份制。
-\zd{gb7715-2015-gbk.def}为GBK编码文档编译所需的支撑文件。
-\zd{chinese-erj.bbx/cbx} 是经济学研究期刊的文献样式。后三者仅支持较新的biblatex版本。
-\zd{biblatex-gb7714-2015.tex} 为宏包说明文档,\zd{example}目录下为各种选项的测试用例,
-\zd{egfigure}目录下为说明文档中的图例文档,\zd{egthesis}为国内一些大学学位论文文献样式的测试用例,包括完全按照国标的BUPT、CAU、ECNU、FDU、SJTU、THU、USTC、XJTU、ZJU,与国标略有差异的UCAS,以及与国标有较大差异的NWAFU、SEU等。\zd{*.bat}、\zd{*.sh}分别为windows和linux下说明文档的编译脚本。\zd{*.pl}为gb7714格式著录文献表到bib文件的perl转换脚本,\zd{*.dat}为转换测试文献表。
-
-\subsection{最小示例}
-
-基于biblatex宏包的参考文献生成方法非常简单,例 \ref{code:doc:structrue} 是一个最小工作示例。示例代码中给出了详细注释,介绍了使用biblatex 的tex源文档基本结构,其中gb7714-2015 样式随biblatex宏包加载,
-参考文献数据文件example.bib(bib文件需另外准备,详见\ref{sec:bib:bibtex}节)利用 \verb|\addbibresource|加载,文献表利用 \verb|\printbibliography| 命令输出(可在正文任意位置)。所有基于 biblatex 生成参考文献的文档无论大小万变不离其宗。
-若需更全面了解biblatex及参考文献生成高级功能另可参考:
-\href{https://github.com/plk/biblatex}{biblatex宏包手册}
-\footnote{地址:\url{https://github.com/plk/biblatex}}、
-\href{https://github.com/hushidong/biblatex-zh-cn}{中文版}
-\footnote{地址:\url{https://github.com/hushidong/biblatex-zh-cn}}
-或者
-\href{https://github.com/hushidong/biblatex-solution-to-latex-bibliography}{LaTeX 文档中文参考文献的biblatex解决方案}
-\footnote{地址:%
-\url{https://github.com/hushidong/biblatex-solution-to-latex-bibliography}}。
-
-\begin{example}{biblatex参考文献生成的最小工作示例}{code:doc:structrue}
-\begin{texlist}
-\documentclass{article}%文档类 %导言区开始:
-\usepackage{ctex}%加载ctex宏包,中文支持
- %加载geometry宏包,定义版面
-\usepackage[left=20mm,right=20mm,top=25mm, bottom=15mm]{geometry}
- %加载hyperref宏包,使用超链接
-\usepackage[colorlinks=true,pdfstartview=FitH,linkcolor=blue,anchorcolor=violet,citecolor=magenta]{hyperref}
- %参考文献工具,加载biblatex宏包,,其后端backend使用biber,%标注(引用)样式citestyle,著录样式bibstyle都采用gb7714-2015样式,两者相同时可以合并为一个选项style
-\usepackage[backend=biber,style=gb7714-2015]{biblatex}
- %biblatex宏包的参考文献数据源加载方式
-\addbibresource[location=local]{example.bib}
-\begin{document}%正文区开始:
- %正文内容,引用参考文献
-详见文献\cite{Peebles2001-100-100}\parencite{Babu2014--}
-另见文献\cite[49]{于潇2012-1518-1523}\parencite[106]{Babu2014--}
- %打印参考文献表
-\printbibliography[heading=bibliography,title=参考文献]
-\end{document}
-\end{texlist}
-\end{example}
-
-
-
-\subsection{编译方式}
-
-与基于bibtex传统方法的四步编译不同,基于biblatex生成参考文献一般只需三步编译,第一遍xelatex,第二遍biber,第三遍xelatex。如若需要后向超链接,则除设置backref 选项外,还需第四遍 xelatex 编译。例\ref{eg:compile:cmd} 给出编译命令,其中\verb|--synctex=-1| 选项也可以是-synctex=1。另外四步命令可以用一条 latexmk 命令代替。
-关于非utf-8编码文档和使用pdflatex命令编译的细节另见第\ref{sec:pkg:hints}节。
-
-\begin{example}{文档编译命令}{eg:compile:cmd}
-\begin{texlist}
-%四步编译命令
-xelatex --synctex=-1 jobname.tex
-biber jobname
-xelatex --synctex=-1 jobname.tex
-xelatex --synctex=-1 jobname.tex
-%或采用latexmk,则仅需一条命令
-latexmk -xelatex jobname.tex
-\end{texlist}
-\end{example}
-
-前述的最小工作示例的编译结果如图\ref{fig:eg:ref}所示。
-
-\begin{refsection}
-\begin{figure}[!htb]
-\centering
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\includegraphics*[page=1,viewport=0cm 0.4cm 14cm 6.1cm,clip=true]{egfigure/egmwe.pdf}
-%\deflength{\textparwd}{\linewidth-1.5cm}
-%\begin{minipage}{\textparwd}
-%\fbox{\parbox{\textparwd}{%\raggedright
-%详见文献\cite{Peebles2001-100-100}\parencite{Babu2014--}
-%另见文献\cite[49]{于潇2012-1518-1523}\parencite[106]{Babu2014--}
-%\renewcommand{\bibfont}{\zihao{-5}}
-%{
-%\hyphenation{conference}
-%\hyphenpenalty=100 %断词阈值,值越大越不容易出现断词
-%\tolerance=100 %丑度,10000为最大无溢出盒子,参考the texbook 第6章
-%\printbibliography[heading=subbibliography,title=参考文献]
-%\par}
-%}}
-%\end{minipage}
-\end{tcolorbox}
-\caption{最小工作示例编译生成的PDF文档}\label{fig:eg:ref}
-\end{figure}
-\end{refsection}
-
-
-\section{使用说明}
-
-\subsection{样式及选项加载}
-
-\subsubsection{几种样式}
-
-例\ref{code:doc:structrue}中给出了宏包和样式的基本加载方式,选项的加载也类似。比如:
-
-\pdfbookmark[4]{gb7714-2015}{stygb7714-2015}
-\begin{example}{顺序编码制(gb7714-2015)加载方式}{eg:gb7714numeric}
-\begin{texlist}
-%简单方式:
-\usepackage[backend=biber,style=gb7714-2015]{biblatex}
-%设置gbalign选项以改变文献表序号标签对齐方式,设置gbpub=false取消缺省出版项自填补信息,比如:
-\usepackage[backend=biber,style=gb7714-2015,gbalign=gb7714-2015,gbpub=false]{biblatex}
-%当文档为GBK编码且用pdflatex/latex编译时,应设置选项gbcodegbk=true:
-\usepackage[backend=biber,style=gb7714-2015,gbcodegbk=true]{biblatex}
-\end{texlist}
-\end{example}
-
-
-\pdfbookmark[4]{gb7714-2015ay}{stygb7714-2015ay}
-\begin{example}{著者-出版年制(gb7714-2015ay)加载方式}{eg:gb7714authoryear}
-\begin{texlist}
-%简单方式:
-\usepackage[backend=biber,style=gb7714-2015ay]{biblatex}
-%设置gbnoauthor=true以使用佚名或NOAUTHOR填补缺失的author信息:
-\usepackage[backend=biber,style=gb7714-2015ay,gbnoauthor=true]{biblatex}
-\end{texlist}
-\end{example}
-
-
-\pdfbookmark[4]{gb7714-2015ms}{stygb7714-2015ms}
-\begin{example}{同一文献表中不同语言区分著录格式的样式(gb7714-2015ms)}{eg:gb7714ms}
-\begin{texlist}
-%默认方式,所有文献使用一种著录格式,即GB/T 7714-2015样式
-\usepackage[backend=biber,style=gb7714-2015ms]{biblatex}
-%设置gbstyle=false,则中文文献使用GB/T 7714-2015著录格式,而其它语言文献使用biblatex标准样式
-\usepackage[backend=biber,style=gb7714-2015ms,gbstyle=false]{biblatex}
-\end{texlist}
-\end{example}
-格式效果如图\ref{fig:eg:ms}所示。
-
-
-\pdfbookmark[4]{gb7714-2015mx}{stygb7714-2015mx}
-\begin{example}{同一文档中不同文献分节区分不同著录格式的样式(gb7714-2015mx)}{eg:gb7714mx}
-\begin{texlist}
-%默认方式使用顺序编码制样式
-\usepackage[backend=biber,style=gb7714-2015mx]{biblatex}
-%如需在某一参考文件分节使用著者年份制样式,比如第2个refsection中使用时,则在导言区设置:
-\setaystylesection{2}
-\end{texlist}
-\end{example}
-格式效果如图\ref{fig:eg:mx}所示。
-
-
-\begin{example}{参考文献文本转换为bib文件perl脚本使用方式}{eg:transtobib}
-\begin{texlist}
-perl gb7714texttobib.pl in=textfilename out=bibfilename
-\end{texlist}
-\end{example}
-
-其中,v1.0m版本增加的gb7714-2015ms样式文件,主要是为了在一个文献表中针对不同语言使用不同多种样式,比如中文文献使用GB/T 7714-2015规定的著录格式,而其它语言文献使用biblatex提供的标准样式。v1.0r版本增加了gb7714-2015mx样式,主要是为了在一个文档中针对不同参考文献分节使用不同的参考文献样式,比如某些节使用著者年份制,某些节使用顺序编码制。尽管这些方式不常用,但偶尔也有需求,所以都做了实现。
-
-另外应ddswhu要求,v1.0r版本增加了chinese-erj样式用于生成经济研究期刊的文献。且在egthesis文件夹内,针对国内一些大学的学位论文文献要求,基于国标样式做了一些定制和测试。
-
-\pdfbookmark[4]{chinese-erj}{chinese-erj}
-\begin{example}{经济研究期刊文献样式(chinese-erj)}{eg:gbchineseerj}
-\begin{texlist}
-%使用经济研究期刊文献样式
-\usepackage[backend=biber,style=chinese-erj]{biblatex}
-\end{texlist}
-\end{example}
-
-
-\subsubsection{新增选项}\label{sec:added:opt}
-样式包新增了一些选项,用于标签对齐方式、出版项缺省处理、责任者(作者)缺省处理等功能的控制,其使用方式与biblatex宏包选项完全相同:
-\begin{description}
-
- \pdfbookmark[4]{gbalign}{gbalign}
- \item[gbalign]=\textbf{right},left,center,gb7714-2015. \hfill default is right
-
- 为顺序编码制增加的选项,用于选择参考文献表序号标签的对齐方式。
- \begin{itemize}
- \item gbalign=right,默认的list环境中的标签右对齐;
- \item gbalign=left,是list环境中的标签左对齐;
- \item gbalign=center,是list环境中的等宽标签,数字在[]内居中;
- \item gbalign=gb7714-2015,是项对齐方式,即段落环境中标签使用原始宽度,标签与条目内容等间距。
- \end{itemize}
- 该选项对著者年份制无效。顺序编码制序号标签对齐方式测试,
- 数字在标签内居中见:
- \href{run:./example/opt-gbalign-center.tex}{opt-gbalign-center.tex},
- 标签左对齐见:
- \href{run:./example/opt-gbalign-left.tex}{opt-gbalign-left.tex},
- 项对齐(标签与内容等间距)见:
- \href{run:./example/opt-gbalign-gb.tex}{opt-gbalign-gb.tex}。
- 效果示例如图\ref{fig:eg:optgbalign}所示。
-
-\begin{figure}[!htb]
-\centering
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\subfigure[\heiti gbalign=right 即右对齐]{\parbox{0.5\linewidth}{\includegraphics*[page=4,viewport=1cm 0cm 8cm 4.5cm,clip=true]{egphoto/opt-gbalign-right.pdf}}}
-\subfigure[\heiti gbalign=left 即左对齐]{\parbox{0.5\linewidth}{\includegraphics*[page=4,viewport=1cm 0cm 8cm 4.5cm,clip=true]{egphoto/opt-gbalign-left.pdf}}}\\
-\subfigure[\heiti gbalign=center 即中对齐]{\parbox{0.5\linewidth}{\includegraphics*[page=4,viewport=1cm 0cm 8cm 4.5cm,clip=true]{egphoto/opt-gbalign-center.pdf}}}
-\subfigure[\heiti gbalign=gb7714-2015 即项对齐]{\parbox{0.5\linewidth}{\includegraphics*[page=4,viewport=1cm 0cm 8cm 4.5cm,clip=true]{egphoto/opt-gbalign-gb.pdf}}}
-\end{tcolorbox}
-\caption{文献表标签对齐选项gbalign效果}\label{fig:eg:optgbalign}
-\end{figure}
-
- \pdfbookmark[4]{gbpub}{gbpub}
- \item[gbpub]=\textbf{true},false. \hfill default is true
-
- 为控制出版信息缺失处理增加的选项。
- \begin{itemize}
- \item gbpub=true,自动利用:[出版地不详]、[出版者不详]、[S.l.]、[s.n.]等填补缺省信息;
- \item gbpub=false 则取消自动处理,使用标准样式的方式取消相应项的输出。
- \end{itemize}
- 顺序编码制测试(著者年份制类似)见:
- \href{run:./example/opt-gbpub-true.tex}{opt-gbpub-true.tex},
- \href{run:./example/opt-gbpub-false.tex}{opt-gbpub-false.tex}。
- 效果示例如图\ref{fig:eg:optgbpub}所示。
-
-\begin{figure}[!htb]
-\centering
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\subfigure[\heiti gbpub=false 出版项缺省]{\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0cm 9cm 4.5cm,clip=true]{egphoto/opt-gbpub-false.pdf}}}
-\subfigure[\heiti gbpub=true 出版项补充]{\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0cm 10cm 4.5cm,clip=true]{egphoto/opt-gbpub-true.pdf}}}
-\end{tcolorbox}
-\caption{文献表出版项缺失处理选项gbpub效果}\label{fig:eg:optgbpub}
-\end{figure}
-
- \pdfbookmark[4]{gbnoauthor}{gbnoauthor}
- \item[gbnoauthor]=true,\textbf{false}. \hfill default is false
-
- 为著者年份制增加的选项,用于控制责任者缺失时的处理。
- \begin{itemize}
- \item gbnoauthor=false,当作者信息缺失时默认不做处理,使用标准样式的处理方式;
- \item gbnoauthor=true,则根据GB/T 7714-2015 的要求进行处理,中文文献使用“佚名”来代替author,英文文献用“Anon”来代替author。
- \end{itemize}
- 测试结果见:
- \href{run:./example/opt-gbnoauthor-true.tex}{opt-gbnoauthor-true.tex},
- \href{run:./example/opt-gbnoauthor-false.tex}{opt-gbnoauthor-false.tex}。
- 效果示例如图\ref{fig:eg:optgbnoauthor}所示。
-
-\begin{figure}[!htb]
-\centering
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\subfigure[\heiti gbnoauthor=true] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.4cm 7.5cm 2.8cm,clip=true]{egphoto/opt-gbnoauthor-true.pdf}}}
-\subfigure[\heiti gbnoauthor=false] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.4cm 7.5cm 2.8cm,clip=true]{egphoto/opt-gbnoauthor-false.pdf}}}
-\end{tcolorbox}
-\caption{文献表作者缺失处理选项gbnoauthor效果}\label{fig:eg:optgbnoauthor}
-\end{figure}
-
- \pdfbookmark[4]{gbbiblabel}{gbbiblabel}
- \item[gbbiblabel]=\textbf{bracket},parens,plain,dot,box,circle. \hfill default is bracket
-
- 为顺序编码制增加的选项,用于选择参考文献表序号数字的格式。
- \begin{itemize}
- \item gbbiblabel=bracket,序号数字由方括号包围,比如[1];
- \item gbbiblabel=parens,序号数字由圆括号包围,比如(1);
- \item gbbiblabel=dot,序号数字数字后面加点,比如1.;
- \item gbbiblabel=plain,序号数字无装饰,比如1;
- \item gbbiblabel=box,序号数字由方框包围,比如\framebox{1};
- \item gbbiblabel=circle,序号数字由圆圈包围,比如\textcircled{1}。
- \end{itemize}
- 效果示例如图\ref{fig:eg:optgbbiblabel}所示。
-
-\begin{figure}[!htb]
-\centering
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\subfigure[\heiti gbbiblabel=box] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbbiblabela.pdf}}}
-\subfigure[\heiti gbbiblabel=bracket] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbbiblabelb.pdf}}}\\
-\subfigure[\heiti gbbiblabel=parens] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbbiblabelc.pdf}}}
-\subfigure[\heiti gbbiblabel=dot] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbbiblabeld.pdf}}}\\
-\subfigure[\heiti gbbiblabel=plain] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbbiblabele.pdf}}}
-\subfigure[\heiti gbbiblabel=circle] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbbiblabelf.pdf}}}\\
-\end{tcolorbox}
-\caption{文献表标签数字格式选项gbbiblabel效果}\label{fig:eg:optgbbiblabel}
-\end{figure}
-
-
- \pdfbookmark[4]{gbnamefmt}{gbnamefmt}
- \item[gbnamefmt]=\textbf{uppercase},lowercase,givenahead,familyahead,pinyin. \hfill default is uppercase
-
- 为姓名大小写格式控制增加的选项。
- \begin{itemize}
- \item gbnamefmt=uppercase,使大小写符合GB/T 7714-2015 的要求;
- \item gbnamefmt=lowercase,大小写由输入信息确定不做改变;
- \item gbnamefmt=givenahead,姓名的格式与biblatex标准样式的given-family格式一致,即名在前姓在后,类似于ieee的样式;
- \item gbnamefmt=familyahead时,姓名的格式与biblatex 标准样式的family-given格式一致,即姓在前名在后,类似于APA 的样式;
- \item gbnamefmt=pinyin 时,姓名的格式采用一种常见的中文拼音方式,比如对于 Zhao, Yu Xin 或 Yu Xin Zhao 这个姓名拼音格式化为ZHAO Yu-xin。
- \item gbnamefmt=reverseorder 时,姓名的格式与biblatex 标准样式的family-given/ given-family格式一致,常用于经济学类的文献。
- \end{itemize}
- \bc{注意:还可以利用 nameformat 域为某一具体条目设置该条目的姓名格式,比如:要在一个文献表中实现英文文献是givenahead 格式,而拼音的文献是pinyin风格,那么可以设置拼音文献的 nameformat 域为pinyin,而gbnamefmt设置为givenahead。条目中nameformat 域的局部设置优先于gbnamefmt的全局设置。}\par
- \emph{注意:使用pinyin选项时,bib文件中文献的作者应给出完整的名而不是缩写,否则出来的效果未必令人满意}。
- 测试结果见:
- \href{run:./example/opt-gbnamefmt.tex}{opt-gbnamefmt.tex},
- \href{run:./example/opt-gbnamefmt-default.tex}{opt-gbnamefmt-default.tex}。
- 效果示例如图\ref{fig:eg:optgbnamefmt}所示。
-
-\begin{figure}[!htb]
-\centering
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\subfigure[\heiti gbnamefmt=uppercase] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbnamefmt-a.pdf}}}
-\subfigure[\heiti gbnamefmt=lowercase] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbnamefmt-b.pdf}}}\\
-\subfigure[\heiti gbnamefmt=givenahead] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbnamefmt-c.pdf}}}
-\subfigure[\heiti gbnamefmt=familyahead] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbnamefmt-d.pdf}}}\\
-\subfigure[\heiti gbnamefmt=pinyin] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbnamefmt-e.pdf}}}
-\subfigure[\heiti gbnamefmt=reverseorder] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbnamefmt-f.pdf}}}\\
-\end{tcolorbox}
-\caption{文献表姓名格式选项gbnamefmt效果}\label{fig:eg:optgbnamefmt}
-\end{figure}
-
-
- \pdfbookmark[4]{gbtype}{gbtype}
- \item[gbtype]=\textbf{true},false. \hfill default is true
-
- 为控制是否输出题名后面的文献类型和载体标识符而增加的选项。
- \begin{itemize}
- \item gbtype=true,根据GB/T 7714-2015 要求输出标识符,例如“在线的期刊析出文献题名[J/OL]”。
- \item gbtype=false,则不输出标识符,例如“在线的期刊析出文献题名”。
- \end{itemize}
- 效果示例如图\ref{fig:eg:optgbtype}所示。
-
-\begin{figure}[!htb]
-\centering
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\subfigure[\heiti gbtype=true] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbtype-true.pdf}}}
-\subfigure[\heiti gbtype=false] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbtype-false.pdf}}}
-\end{tcolorbox}
-\caption{文献类型标识符输出控制选项}\label{fig:eg:optgbtype}
-\end{figure}
-
-
- \pdfbookmark[4]{gbmedium}{gbmedium}
- \item[gbmedium]=\textbf{true},false. \hfill default is true
-
- 为控制是否输出题名后面的文献载体标识符而增加的选项。
- \begin{itemize}
- \item gbmedium=true,根据GB/T 7714-2015 要求输出载体标识符,例如“在线的期刊析出文献题名[J/OL]”。
- \item gbmedium=false,则不输出标识符,例如“在线的期刊析出文献题名[J]”。
- \end{itemize}
- 注意:gbtype选项是更大范围的控制,包括了gbmedium。当gbtype=false时,无所谓gbmedium设置什么,因为整个文献类型和载体标识符整个都不显示,而gbmedium只是设置载体标识的。
- 效果示例如图\ref{fig:eg:optgbmedium}所示。
-
-\begin{figure}[!htb]
-\centering
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\subfigure[\heiti gbmedium=true] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbmedium-true.pdf}}}
-\subfigure[\heiti gbmedium=false] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbmedium-false.pdf}}}
-\end{tcolorbox}
-\caption{文献载体标识符输出控制选项}\label{fig:eg:optgbmedium}
-\end{figure}
-
-
- \pdfbookmark[4]{gbfieldtype}{gbfieldtype}
- \item[gbfieldtype]=true,\textbf{false}. \hfill default is false
-
- 为控制是否输出type域而增加的选项。
- \begin{itemize}
- \item gbfieldtype=true,输出type域,例如学位论文的phdthesis或博士学位论文。输出该域时做中英文区分。
- \item gbfieldtype=false,不输出type域。
-
- 要设置博士或硕士学位论文的输出,有两种途径: 一是设置本地化字符串: \\
- \lstinline!\DefineBibliographyStrings{english}{mathesis={str you want ma thesis}}!, \\
- \lstinline!\DefineBibliographyStrings{english}{mathesiscn={硕士学位论文}}!, \\
- \lstinline!\DefineBibliographyStrings{english}{phdthesis={str you want for phd thesis}}!, \\
- \lstinline!\DefineBibliographyStrings{english}{phdthesiscn={博士学位论文}}!, \\
- 之所以用加cn的本地化字符串是为了适应某些样式对中英文文献的区别设置。
-
- 二是设置type域,比如在bib文件直接设置需要输出的字符,比如type=\{[博士学位论文]\}。
-
- \end{itemize}
- 效果示例如图\ref{fig:eg:optgbfieldtype}所示。
-
-\begin{figure}[!htb]
-\centering
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\subfigure[\heiti gbfieldtype=true] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=8cm 0.2cm 14.5cm 2.8cm,clip=true]{egphoto/opt-gbfieldtype-true.pdf}}}
-\subfigure[\heiti gbfieldtype=false] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=8cm 0.2cm 14.5cm 2.8cm,clip=true]{egphoto/opt-gbfieldtype-false.pdf}}}
-\end{tcolorbox}
-\caption{文献表类型(type)域输出控制选项}\label{fig:eg:optgbfieldtype}
-\end{figure}
-
- \pdfbookmark[4]{gbpunctin}{gbpunctin}
- \item[gbpunctin]=\textbf{true},false. \hfill default is true
-
- 为控制inbook,incollection,inproceedings中析出来源文献前的\texttt{//}符号而增加的选项。
- \begin{itemize}
- \item gbpunctin=true,根据GB/T 7714-2015 要求输出\texttt{//}。
- \item gbpunctin=false,则输出默认的本地字符串,
- 在英语中是\texttt{in:},若要完全去掉该符号则可以在导言区增加命令
- \lstinline!\DefineBibliographyStrings{english}{in={}}!,\lstinline!\DefineBibliographyStrings{english}{incn={}}!。
- 之所以用加cn的本地化字符串是为了适应某些样式对中英文文献的区别设置。
- \end{itemize}
- 效果示例如图\ref{fig:eg:optgbpunctin}所示。
-
-\begin{figure}[!htb]
-\centering
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\subfigure[\heiti gbpunctin=true] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 2.8cm,clip=true]{egphoto/opt-gbpunctin-true.pdf}}}
-\subfigure[\heiti gbpunctin=false] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 2.8cm,clip=true]{egphoto/opt-gbpunctin-false.pdf}}}
-\end{tcolorbox}
-\caption{析出文献标识符号控制选项}\label{fig:eg:optgbpunctin}
-\end{figure}
-
- \pdfbookmark[4]{gbtitlelink}{gbtitlelink}
- \item[gbtitlelink]=true,\textbf{false}. \hfill default is false
-
- 为设置标题的超链接增加的选项。
- \begin{itemize}
- \item gbtitlelink=false,即默认不给标题设置超链接。
- \item gbtitlelink=true,当文献存在url 域时为文献标题设置超链接。
- \end{itemize}
- 测试文件见:
- \href{run:example/opt-gbtitlelink.tex}{opt-gbtitlelink.tex}。
- 效果示例如图\ref{fig:eg:optgbtitlelink}所示。
-
-\begin{figure}[!htb]
-\centering
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\subfigure[\heiti gbtitlelink=true] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 2.8cm,clip=true]{egphoto/opt-gbtitlelink-true.pdf}}}
-\subfigure[\heiti gbtitlelink=false] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 2.8cm,clip=true]{egphoto/opt-gbtitlelink-false.pdf}}}
-\end{tcolorbox}
-\caption{文献标题超链接控制选项}\label{fig:eg:optgbtitlelink}
-\end{figure}
-
-
- \pdfbookmark[4]{gblabelref}{gblabelref}
- \item[gblabelref]=\textbf{true},false. \hfill default is true
-
- 为作者年制设置标注中的作者标签的超链接增加的选项。
- \begin{itemize}
- \item gblabelref=true,即默认给作者标签加上超链接。
- \item gblabelref=false,不给作者标签加上超链接。
- \end{itemize}
- 测试文件见:
- \href{run:egphoto/opt-gblabelref-true.tex}{opt-gblabelref-true.tex}。
-
-
-
- \pdfbookmark[4]{gblocal}{gblocal}
- \item[gblocal]=\textbf{gb7714-2015},chinese,english. \hfill default is gb7714-2015
- \item[gbcitelocal]=\textbf{gb7714-2015},chinese,english. \hfill default is gb7714-2015
- \item[gbbiblocal]=\textbf{gb7714-2015},chinese,english. \hfill default is gb7714-2015
-
- 为设置引用标注标签和文献表中的本地化字符串而增加的选项。其中gbcitelocal 用于控制标注中的本地化字符串,而gbbiblocal用于控制文献表中的本地化字符串,gblocal选项等价于同时设置gbcitelocal 和 gbbiblocal。
- 配合\lstinline[breaklines=true]!\DefineBibliographyStrings!命令对本地化字符串进行设置可以实现一些特殊的效果。图\ref{fig:content:fmtc}就是该选项的一个使用示例。
- \begin{itemize}
- \item gblocal=gb7714-2015,即默认区分中英文,不同语言采用不同的字符串比如中文使用“等”“和”,而英文使用“et al.”“and”。
- \item gblocal=chinese,强制设置所有的本地化字符串使用中文。
- \item gblocal=english,强制设置所有的本地化字符串使用英文。
- \end{itemize}
- 测试文件见:
- \href{run:egfigure/egcontentfmtc.tex}{egcontentfmtc.tex}。
- 效果示例如图\ref{fig:eg:optgblocal}所示。
-
-\begin{figure}[!htb]
-\centering
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\centering
-\subfigure[\heiti gblocal=gb7714-2015] {\parbox{0.45\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 2.8cm,clip=true]{egphoto/opt-gblocal-gb.pdf}}}\hfill
-\subfigure[\heiti gblocal=chinese] {\parbox{0.45\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 2.8cm,clip=true]{egphoto/opt-gblocal-chinese.pdf}}}\\
-\subfigure[\heiti gblocal=english] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 2.8cm,clip=true]{egphoto/opt-gblocal-english.pdf}}}
-\end{tcolorbox}
-\caption{常用本地化字符串的中英文控制选项}\label{fig:eg:optgblocal}
-\end{figure}
-
- \pdfbookmark[4]{mergedate}{mergedate}
- \item[mergedate]=true,false,none.
-
- 为著者年份制是否在文献表中作者后面输出日期信息而增加了选项值none。
- \begin{itemize}
- \item mergedate=true,著者年份制文献表仅在作者后输出日期
- \item mergedate=false,著者年份制文献表在作者后和出版项中输出日期
- \item mergedate=none,著者年份制文献表仅在出版项中输出日期。该选项用于满足中科院大学的著者年份制格式要求。
- \item no mergedate,即不给出该选项,这是gb7714-2015ay默认的情况,仅在作者后输出日期且已经根据国标格式化。
- \end{itemize}
- 效果示例如图\ref{fig:eg:optmergedate}所示。
-
-\begin{figure}[!htb]
-\centering
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\subfigure[\heiti mergedate 不给出] {\parbox{\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 14.5cm 2.8cm,clip=true]{egphoto/opt-mergedate-a.pdf}}}\\
-\subfigure[\heiti mergedate=true] {\parbox{\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 14.5cm 2.8cm,clip=true]{egphoto/opt-mergedate-b.pdf}}}\\
-\subfigure[\heiti mergedate=false] {\parbox{\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 14.5cm 2.8cm,clip=true]{egphoto/opt-mergedate-c.pdf}}}\\
-\subfigure[\heiti mergedate=none] {\parbox{\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 14.5cm 2.8cm,clip=true]{egphoto/opt-mergedate-d.pdf}}}\\
-\end{tcolorbox}
-\caption{作者年制文献表年份格式控制选项}\label{fig:eg:optmergedate}
-\end{figure}
-
-
- \pdfbookmark[4]{gblanorder}{gblanorder}
- \item[gblanorder]=\textbf{chineseahead},englishahead,userdefinedstr like:cn;en;ru;fr;jp;kr . \hfill default is chineseahead
-
- 为著者年份制文献不同文种分集排序而增加的选项。
- \begin{itemize}
- \item gblanorder=chineseahead,即默认做中文文献在前英文文献在后的排序,各语言顺序为: cn;jp;kr;en;fr;ru。
- \item gblanorder=englishahead,做英文在前中文文献在后的排序,各语言顺序为: en;fr;ru;cn;jp;kr。
- \item gblanorder=自定义字符串,比如cn;en;ru;fr;jp;kr。这是一个用分号分隔的语言缩写名构成的字符串,缩写名的前后顺序代表文献表中文种分集的顺序。
- \end{itemize}
-
- 测试文档见:\href{run:./example/opt-gblanorder.tex}{opt-gblanorder.tex}。
- 效果示例如图\ref{fig:eg:optgblanorder}所示。
-
-\begin{figure}[!htb]
-\centering
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\centering
-\subfigure[\heiti gblanorder=chineseahead] {\parbox{0.45\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 4.0cm,clip=true]{egphoto/opt-gblanorder-chineseahead.pdf}}}\hfill
-\subfigure[\heiti gblanorder=englishahead] {\parbox{0.45\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 4.0cm,clip=true]{egphoto/opt-gblanorder-englishahead.pdf}}}\\
-\subfigure[\heiti gblanorder=cn;en;ru;fr;jp;kr] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 4.0cm,clip=true]{egphoto/opt-gblanorder-udf.pdf}}}
-\end{tcolorbox}
-\caption{多语言文献表语言排序控制选项}\label{fig:eg:optgblanorder}
-\end{figure}
-
-
- \pdfbookmark[4]{gbannote}{gbannote}
- \item[gbannote]=true,\textbf{false}. \hfill default is false
-
- 为控制是否在文献条目后面输出由annotation或annote域提供的注释信息而增加的选项。
- \begin{itemize}
- \item gbannote=false,即默认不输出。
- \item gbannote=true,输出注释信息。
- \end{itemize}
-
- 测试文档见:\href{run:./example/opt-gbannote.tex}{opt-gbannote.tex}。
- 效果示例如图\ref{fig:eg:optgbannote}所示。
-
-\begin{figure}[!htb]
-\centering
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\subfigure[\heiti gbannote=true] {\parbox{\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 16cm 2.8cm,clip=true]{egphoto/opt-gbannote-true.pdf}}}\\
-\subfigure[\heiti gbannote=false] {\parbox{\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 16cm 2.8cm,clip=true]{egphoto/opt-gbannote-false.pdf}}}
-\end{tcolorbox}
-\caption{文献的附加注释输出控制选项}\label{fig:eg:optgbannote}
-\end{figure}
-
-
- \pdfbookmark[4]{gbctexset}{gbctexset}
- \item[gbctexset]=\textbf{true},false. \hfill default is true
-
- 为控制参考文献标题内容的设置方式增加的选项。
- \begin{itemize}
- \item gbctexset=true,参考文献标题内容可以通过重定义 bibname 或 refname 宏设置。比如利用ctex宏包进行设置:
- \lstinline[breaklines]!\ctexset{bibname={title you want}}!
- \item gbctexset=false,参考文献标题内容可以通过重定义本地字符串设置,比如:
-
- \lstinline[breaklines=true]!\DefineBibliographyStrings{english}{bibliography={title you want}}!
-
- \lstinline[breaklines=true]!\DefineBibliographyStrings{english}{references={title you want}}!。
- \end{itemize}
- 当然除此之外,利用 printbibliography 命令的 title 选项进行设置依然是最有效方式,比如:
- \lstinline[breaklines=true]!\printbibliography[title=title you want]!。
-
-
- \pdfbookmark[4]{gbcodegbk}{gbcodegbk}
- \item[gbcodegbk]=true,\textbf{false}. \hfill default is false
-
- 为兼容GBK编码的文档增加的选项。
- \begin{itemize}
- \item gbcodegbk=false,即默认是utf-8编码的文档。
- \item gbcodegbk=true,为利用pdflatex/latex编译GBK编码文档时使用。
- \end{itemize}
- 当在源文档前面增加 XeTeX 原语:\lstinline!\XeTeXinputencoding "GBK"! 后,GBK编码的文档也可以使用xelatex编译,这时应设置为false或不给出该选项。测试文件见:
- \href{run:example/codeopt-gbcodegbk.tex}{codeopt-gbcodegbk.tex}。
-
-
- \pdfbookmark[4]{gbstyle}{gbstyle}
- \item[gbstyle]=\textbf{true},false. \hfill default is true
-
- 为实现多种样式并存而增加的选项。仅用于gb7714-2015ms样式中。
- \begin{itemize}
- \item gbstyle=true,即默认全部文献使用gb7714-2015样式。
- \item gbstyle=false,仅中文文献使用gb7714-2015样式,其它语言文献使用biblatex默认样式。
- \end{itemize}
-
- 该选项的实现原理是把所有国标格式设置局部化到每一条文献打印时,处理时首先判断gbstyle 选项及文献的语言,当满足要求则使用这些局部化格式,否则使用默认的标准样式。这种实现为一篇文档内实现两种样式提供解决思路,尽管目前非中文语言文献的著录格式是标准样式,但只要对标准样式做进一步的修改就可以形成符合某种格式规范的样式,比如像ieee,nature等的样式。因此存在中文使用GB/T 7714-2015 著录格式,而英文文献使用ieee等著录格式的可能性。测试文档见:\href{run:./example/opt-gbstyle.tex}{opt-gbstyle.tex}。
-
-
- \pdfbookmark[4]{gbfootbib}{gbfootbib}
- \item[gbfootbib]=true,\textbf{false}. \hfill default is false
-
- 为实现国标样式的脚注文献表格式而增加的选项。
- \begin{itemize}
- \item gbfootbib=true,即默认做处理使脚注文献表满足国标要求。
- \item gbfootbib=false,不做任何附加处理。
- \end{itemize}
-
- 该选项的实现主要是两个方面:
-
- 一是实现国标要求的脚注标签和段落格式,利用对
- \verb|\@makefnmark|重定义实现正文脚注标签带圈上标,
- 利用对\verb|\@makefntext|做patch局部化重设\verb|\@makefnmark|使得脚注中的标签不上标,利用对latex核心代码和hyperref宏包代码的重定义实现悬挂缩进的格式。
-
- 二是实现国标要求的相同文献不输出内容,而是用标签代替,比如同\textcircled{4} ,主要利用citetracker 选项实现对文献引用的追踪,然后利用ifciteseen 判断和对footfullcite 命令做修改实现。
- 测试文档见:\href{run:./example/opt-gbfootbib.tex}{opt-gbfootbib.tex}。
-
- 同时为了方便脚注的对齐格式控制增加了两个尺寸:\verb|\footbibmargin|和\verb|\footbiblabelsep|,分别表示脚注文本的左侧缩进距离和悬挂的脚注标记标签与脚注文本的间隔距离,默认分别是1em和0.5em。如果要修改悬挂对齐为其它对齐方式,那么需要重定义\verb|\@makefntext|宏,目前悬挂对齐的实现方式见bbx文件。比如示例中重定义这两个尺寸为2em 和1em:
-
- {\small
- \vspace{1ex}
- \centering
- \fbox{
- \setlength{\footbibmargin}{2em}%脚注的段落左侧缩进距离
- \setlength{\footbiblabelsep}{1em}%脚注中标记号与脚注段落的间距
- \begin{minipage}{0.75\linewidth}
- 脚注\footnote{中文脚注中文脚注中文脚注中文脚注中文脚注中文脚注中文脚注中文脚注中文脚注中文脚注}
- 脚注\footnote{English footnote English footnote English footnote English footnote English footnote}
- \end{minipage}}
- \vspace{1ex}
-
- }
-
-
- 需要注意的是,由于图表标题(caption)环境的特殊性,在其中使用footfullcite可能无法得到正常的脚注文献表。而通常的方法是利用footnotemark和footnotetext来实现脚注,对于文献表也是类似的,因此也不能简单使用footfullcite命令,而是要使用footnotemark和footnotetext以及fullcite命令配合来实现, 比如:
-
- \begin{example}{图表标题中产生的脚注文献表}{eg:footbib:incaption}
- \begin{texlist}
- \begin{figure}[h]
- \centering
- \fbox{abc}
- \caption{示意图见文献\protect\footnotemark}
- \end{figure}
-
- \footnotetext{\fullcite{bibtex-key}}
- \end{texlist}
- \end{example}
-
- 但要注意由于hyperref本身的原因,这种方式产生的脚注文献表可能没有超链接功能。
- 对于表格环境中的引用无法产生脚注文献表的问题,可以将其置于小页环境中实现或者采用前述图标标题中的类似处理方式。
- 注意:latex核心代码参考latex.ltx,而hyperref代码参考hyperref.STY。
-
- \pdfbookmark[4]{gbfnperpage}{gbfnperpage}
- \item[gbfnperpage]=true,\textbf{false}. \hfill default is false
-
- 为脚注计数器根据页码更新而增加的选项。
- \begin{itemize}
- \item gbfnperpage=true,每页更新脚注编号,即根据page计数器重设footnote计数器。
- \item gbfnperpage=false,不根据页码重设脚注计数器。
- \end{itemize}
-
- 注意,若要让脚注计数器与其它计数器比如chapter等关联,那么采用latex的常规方法就能解决,比如使用latex内核常用的\verb|\@addtoreset|命令。
-
-
- \item[gbstrict]=\textbf{true},false. \hfill default is true
-
- 为避免输出bib文件中多余的域信息而增加选项,目的是为了兼容一些bib文件,因为某些bst样式文件进行中英文判断需要在bib文件中增加类似language这样的域作为支撑,而其中某些域在标准的biblatex样式文件中是默认输出的。
- \begin{itemize}
- \item gbstrict=true,即默认不输出。
- \item gbstrict=false,需要还原标准样式的输出情况时使用。
- \end{itemize}
-
-
- \item[gbfieldstd]=true,\textbf{false}. \hfill default is false
-
- 为控制一些域如标题,网址,卷域的格式而增加选项。目的是使用一些标准样式的处理来增加格式多样性。
- \begin{itemize}
- \item gbfieldstd=false,即默认使用GB/T 7714-2015要求的样式。
- \item gbfieldstd=true,即还原使用标准样式的格式,比如使用引号,字体,加引导词等。当然要调整这些格式也可采用biblatex提供的更为直接的设置域格式的方式。
- \end{itemize}
-
-\end{description}
-
-
-\subsubsection{兼容的标准选项}\label{sec:old:opt}
-绝大部分biblatex标准样式选项可与gb7714-2015样式联合使用,下面给出一些经过兼容性测试的选项说明。需要注意的是:使用gb7714-2015样式时(即style=gb7714-2015),backend选择应指定为biber,还有一些选项已经在样式设计中固定,如果要严格使用国标样式,一般不应做修改,比如sorting,maxnames,minnames,date,useprefix,giveninits等,但如果用户有自己的其它需求,则可按需修改。
-
-\begin{description}
- \item[url]=true, false. \hfill default: true
-
- 该选项控制是否打印 url 域并获取日期。该选项只影响 url 信息是可选的那些条目类型。而 @online 条目的 url 域总是会打印出来。它是导言区选项,与样式相关,gb7714-2015样式做了特别支持,可以兼容使用。
-
- \item[giveninits]=true, false. \hfill default: true
-
- 启用该选项时姓名中的名部分会用首字母表示。
-
- \item[uniquelist]=true, false, minyear \hfill default: minyear
-
- 该选项用于著者-出版年制样式,用于正文中引用(标注)标签的作者列表控制(目的是消除歧义)。当uniquelist=true时,自动利用扩展作者姓名列表长度的方式消除labelname 列表的歧义; 当=false 时则禁用扩展,标签仅使用一个作者,消除歧义通过跟在年份后面的字母实现; 默认使用minyear,即当被截短的作者姓名列表存在歧义时,只有当年份相同,才会扩展列表长度以消除歧义。
-
- 注意当使用uniquelist=false后标签只有一个作者,但文中可能有同姓作者的文献,这时根据uniquename选项的设置,biblatex会使用姓名的其它部分比如名来消除歧义,但如果想强制要求仅用姓作为文中的标注标签,那么可以设置uniquename=false,但此时标注是可能存在歧义的。
-
- \item[maxnames]=整数 \hfill default: 3
-
- 影响所有名称列表(\bibfield{author}、\bibfield{editor} 等)的阈值。如果某个列表超过了该阈值,即,它包含的姓名数量超过 \prm{integer},那么就会根据 \opt{minnames} 选项的设置进行自动截断。\opt{maxnames} 是设置 \opt{maxbibnames} 和 \opt{maxcitenames} 两个选项的支配选项。
-
- \item[minnames]=整数 \hfill default: 3
-
- 影响所有名称列表(\bibfield{author}、\bibfield{editor} 等)的限制值。如果某个列表包含的姓名数量超过 \prm{integer},那么就会自动截断至\opt{minnames}个姓名。\prm{minnames} 的值必须小于或等于 \prm{maxnames}。\opt{minnames} 是设置 \opt{minbibnames} 和 \opt{mincitenames} 两个选项的支配选项。
-
- \item[maxbibnames]=整数 \hfill default: \prm{maxnames}
-
- 类似于 \opt{maxnames} 但只影响参考文献表。
-
- \item[minbibnames]=整数 \hfill default: \prm{minnames}
-
- 类似于 \opt{minnames} 但只影响参考文献表。
-
- \item[maxcitenames]=整数 \hfill default: \prm{maxnames}
-
- 类似于 \opt{maxnames} 但只影响正文中的标注(引用)。
-
- \item[mincitenames]=整数 \hfill default: \prm{minnames}
-
- 类似于 \opt{minnames} 但只影响正文中的标注(引用)。
-
- \item[hyperref]=true, false, auto. \hfill default: auto
-
- 是否将引用和后向引用转化为可点击的超链接。这是宏包的载入时选项,与样式无关,自然可以使用。
-
- \item[backref]=true, false. \hfill default: false
-
- 是否在文献中打印出反向引用。这是宏包的载入时选项,与样式无关,自然可以使用。
-
- \item[refsection]=none, part, chapter, section, subsection. \hfill default: none
-
- 该选项自动在文档分段处(例如一章或一节)开始一个新的参考文献分节。是宏包的载入时选项,与样式无关,自然可以使用。需要注意与titlesec宏包联用时,该选项会失效。
-
- \item[refsegment]=none, part, chapter, section, subsection. \hfill default: none
-
- 类似于refsection选项,但开始的是一个新的参考文献片段。
-
- \item[citereset]=none, part, chapter, section, subsection. \hfill default: none
-
- 该选项在文档分段处(例如一章或一节)自动执行citereset 命令。
-
- \item[labeldate]=year, short, long, terse, comp, ymd, iso. \hfill default: year
-
- 类似于 date 选项,但控制的是由DeclareLabeldate 选择的日期域的格式。
-
- \item[doi]=true,false. \hfill default: true
-
- 该选项控制是否打印 \bibfield{doi} 域。
-
- \item[isbn]=true,false. \hfill default: true
-
- 该选项控制是否打印 \bibfield{isbn}\slash \bibfield{issn}\slash \bibfield{isrn} 等域。
-
- \item[sortlocale]=auto, locale. \hfill default: auto
-
- 该选项控制排序的本地化调整方案。对于英文文献,该选项不需要设置。对于中文文献当有按拼音或笔划等进行排序的需求时,可以设置相应的本地化调整方案。主要的调整方案有:
- \begin{itemize}
- \item \verb|sortlocale=auto| 或者不设置该选项,为unicode编码顺序
- \item \verb|sortlocale=zh|,为unicode编码顺序
- \item \verb|sortlocale=zh__pinyin|,为拼音顺序
- \item \verb|sortlocale=zh__big5han|,为big5 编码顺序
- \item \verb|sortlocale=zh__gb2312han|,为GB-2312 顺序
- \item \verb|sortlocale=zh__stroke|,为笔划数顺序
- \item \verb|sortlocale=zh__zhuyin|,为注音顺序
- \end{itemize}
-
- \item[language]=autobib, autocite, auto, \prm{language}. \hfill default: autobib
-
- 详细说明见biblatex手册。
-
- \item[autolang]=none, hyphen, other, other*, \prm{langname}. \hfill default:
-
- 结合langid/langidopts域,结合babel/polyglossia宏包,可以对西文做基于条目的本地化处理。详细说明见biblatex 手册。
-
- \item[sortcites]=true, false. \hfill default: false
-
- 详细说明见biblatex手册。
-
- \item[autocite]=plain, inline, footnote, superscript. \hfill default: plain
-
- 详细说明见biblatex手册。
-
- \item[block]=none, space, par, nbpar, ragged. \hfill default: none
-
- 详细说明见biblatex手册。
-
- \item[indexing]=true, false, cite, bib. \hfill default: false
-
- 详细说明见biblatex手册。
-
- \item[其它]=下面还有很多选项,有些是宏包载入时选项,与样式无关,一般可以使用,但笔者没有做测试,各位用户可以测试使用。选项的作用可以参考biblatex 使用手册,以及文博与笔者翻译的中文版。
- \begin{itemize}
- \item related=true, false. default: true
- \item defernumbers=true, false default: false
- \item maxitems=integer default: 3
- \item minitems=integer default: 1
- \item autopunct=true, false default: true
- \item clearlang=true, false default: true
- \item notetype=foot+end, footonly, endonly default: foot+end
- \item backrefstyle=none, three, two, two+, three+, all+ default: three
- \item backrefsetstyle=setonly, memonly, setormem, setandmem, memandset, setplusmem default: setonly
- \item loadfiles=true, false default: false
- \item abbreviate=true, false default: true
- \item julian=true, false default: false
- \item punctfont=true, false default: false
- \item arxiv=abs, ps, pdf, format default: abs
- \item mincrossrefs=integer default: 2
- \item minxrefs=integer default: 2
- \item eprint=true, false default: true
- \end{itemize}
-
-\end{description}
-
-
-\subsection{文献引用及标注格式}\label{sec:cbx:usage}
-
-要生成参考文献,第一步就是在正文中引用参考文献。正文中因引用文献所形成的标注的格式称为参考文献标注样式,也称引用样式或引用标签样式,分为两类: 顺序编码制和著者-出版年(作者年)制。引用文献的基本命令是\verb|\cite|,但为了在一篇文档中实现不同的标签效果,通常还需要使用其它命令,
-比如\verb|\parencite|, \verb|\textcite|, \verb|\pagescite|,\verb|\footfullcite|等。此外为遵循biblatex对于复数形式标注命令的使用习惯,也提供上述命令的复数形式,比如\verb|\cite|命令的复数形式命令\verb|\cites|,便于输出单个文献的页码等前后注信息。
-
-熟悉natbib的用户也可以直接使用使用\verb|\citet|, \verb|\citep|命令。
-另外也可以使用一些习惯命令比如\verb|\citetns|、\verb|\citepns|、
-\verb|\upcite|、\verb|\inlinecite|等。
-
-\subsubsection{两种编制的标注格式}
-
-%顺序编码制的标注样式文件大体使用标准引用样式numeric-comp的内容
-\paragraph{\heiti 顺序编码制的标注样式}
-为满足GB/T 7714-2015第10.1节的要求,考虑\verb|\cite| 命令为上标模式,\verb|\parencite|保留非上标模式。增加 \verb|\pagescite| 命令,用于输出上标顺序编号并自动加页码。
-为使用户免于输入文献作者,完善了\verb|\textcite|命令,提供作者为句子主语,并附带行内非上标的顺序编码,
-并增加了\verb|\authornumcite|命令,以输出作者作为句子主语,并附带上标的顺序编码。
-增加了\verb|\citec|命令,输出另一种形式的编码压缩标签,比如\textsuperscript{[2]-[4]}区别于一般的\textsuperscript{[2-4]}。
-
-其它命令\verb|\citet|、\verb|\citep|、\verb|\citetns|、\verb|\citepns|、
-\verb|\upcite|、\verb|\inlinecite|分别等价于
-\verb|\authornumcite|、\verb|\cite|、\verb|\textcite|、\verb|\parencite|、
-\verb|\cite|、\verb|\parencite|。
-
-上述命令均可在{bibtexkey}前面的[]内或第二个[]内(当有两个[]时),指定页码用于输出。若不指定页码,则仅有\verb|\pagescite|命令默认提取参考文献的页码信息进行输出。
-各引用命令的使用方式如表\ref{tab:cite:num}所示。
-测试文档见\href{run:example/testallformat.tex}{testallformat.tex}。
-
-%各命令使用方式如例\ref{eg:citefornumeric}所示。
-%各引用命令的效果如图\ref{fig:cite:num}所示。
-
-\qd{对于一个引用命令中同时给出多个文献bibtexkey的压缩形式,页码只会应用到最后一个参考文献后面,这是不正确的,但这种情况其实本不应出现,因为指定页码本来就需要具体化指向某一文献。使用时请尽可能使用
-\textbackslash pagescite\{key1\}\textbackslash pagescite\{key2\}这种形式
-而不是\textbackslash pagescite\{key1,key2\}|。当然除了多次使用标注命令外,也可以使用对应标注命令的复数形式来为每篇文献提供相应的页码信息。}
-
-
-%著者-出版年制的标注样式文件大体使用标准引用样式authoryear的内容。
-\paragraph{\heiti 著者-出版年制的标注样式}
-为满足GB/T 7714-2015第10.2节的要求,
-考虑\verb|\cite|和\verb|\parencite|命令将引用标签用圆括号括起来。增加了\verb|\pagescite|命令,用于自动加页码。增加了\verb|\yearpagescite|, \verb|\yearcite|命令用于处理文中已有作者信息只需要年份和页码的情况(为兼容性考虑,顺序编码制也给出该命令,但作用与
-\verb|\pagescite| 命令相同),也完善了 \verb|\textcite| 命令,提供作者为句子主语,并附带行内非上标的页码,增加了\verb|\authornumcite|命令,以输出作者作为句子主语,并附带上标的页码。
-
-其它命令\verb|\citet|、\verb|\citep|、\verb|\citetns|、\verb|\citepns|、
-\verb|\upcite|、\verb|\inlinecite|分别等价于
-\verb|\authornumcite|、\verb|\cite|、\verb|\textcite|、\verb|\parencite|、
-\verb|\cite|、\verb|\parencite|。
-
-%各命令使用方式如例\ref{eg:citeforauthoryear}所示。
-%各引用命令的效果如图\ref{fig:cite:ay}所示。
-各引用命令的使用方式如表\ref{tab:cite:authoryear}所示。
-测试文档见\href{run:example/testallformat.tex}{testallformat.tex}。
-
-%\begin{table}[!htb]
-\noindent\begin{minipage}{0.95\linewidth}
-\begin{refsection}
-\centering
-\fixtabcaption{顺序编码制常用命令示例}\label{tab:cite:num}
-\footnotesize
-\begin{tabular}{l@{\quad$\Rightarrow$\quad}ll}
-\hline
-\heiti{命令} & \heiti{标注标签} & \heiti{说明} \\ \hline
- \verb|\cite{Peebles2001-100-100}| & \cite{Peebles2001-100-100} & 不带页码上标 \\
- \verb|\upcite{Peebles2001-100-100}| & \upcite{Peebles2001-100-100} & 不带页码上标 \\
- \verb|\supercite{Peebles2001-100-100}| & \supercite{Peebles2001-100-100} & 不带页码上标 \\
- \verb|\parencite{Miroslav2004--}| & \parencite{Miroslav2004--} & 不带页码非上标 \\
- \verb|\cite[49]{蔡敏2006--}| & \cite[49]{蔡敏2006--} & 带页码上标 \\
- \verb|\pagescite{Peebles2001-100-100}| & \pagescite{Peebles2001-100-100} & 自动页码上标 \\
- \verb|\pagescite[150]{Peebles2001-100-100}| & \pagescite[150]{Peebles2001-100-100} & 带页码的上标 \\
- \verb|\parencite[49]{Miroslav2004--}| & \parencite[49]{Miroslav2004--} & 带页码非上标 \\
- \verb|\textcite{Miroslav2004--}| & \textcite{Miroslav2004--} & 提供主语非上标标签 \\
- \verb|\authornumcite{Miroslav2004--}| & \authornumcite{Miroslav2004--} & 提供主语上标标签 \\
- \verb|\citeauthor{蔡敏2006--}\cite{蔡敏2006--}| & \citeauthor{蔡敏2006--}\cite{蔡敏2006--} & 提供主语上标标签 \\
- \verb|\footfullcite{赵学功2001--}| & \footfullcite{赵学功2001--} & 脚注方式文献条目 \\
- 引用单篇文献: & 文献\cite{Peebles2001-100-100} & 国标示例 \\
- 同一处引用两篇文献: & 文献\cite{Peebles2001-100-100,Miroslav2004--} & 国标示例\\
- 同一处引用多篇文献: & 文献\cite{蔡敏2006--,Miroslav2004--,赵学功2001--} & 国标示例:三篇以上压缩\\
- 同一处引用多篇文献: & 文献\citec{蔡敏2006--,Miroslav2004--,赵学功2001--} & 另一种形式的压缩\\
- 多次引用同一作者的同一文献: &
- 文献\cite[20-22]{Miroslav2004--},
- 文献\cite[55-60]{Miroslav2004--} & 国标示例 \\
- 多次引用同一作者的同一文献: &
- 文献\footfullcite[20-22]{Miroslav2004--},
- 文献\footfullcite[55-60]{Miroslav2004--} & 国标示例:脚注方式 \\ \hline
-\end{tabular}
-\end{refsection}
-\end{minipage}
-%\end{table}
-
-
-
-
-
-\begin{table}[!htb]
-\centering
-\caption{著者年份制常用命令示例}\label{tab:cite:authoryear}
-\hspace{-1cm}{\parbox{\linewidth}{\includegraphics[scale=0.95,page=2]{egciteaytab.pdf}}}
-\end{table}
-
-
-%\begin{example}{著者-出版年制引用命令}{eg:citeforauthoryear}
-%\begin{texlist}
-%不带页码的引用:
-% \cite{Peebles2001-100-100} \parencite{Miroslav2004--}
-%带页码的引用:
-% \cite[49]{蔡敏2006--} \parencite[见][49页]{Miroslav2004--}
-% \pagescite{Peebles2001-100-100}\pagescite[150]{Peebles2001-100-100}
-% \pagescite[][201-301]{Peebles2001-100-100}
-%著者-出版年制文中已有作者只需给出年份和页码的引用:
-% 见赵学功\yearpagescite[][205]{赵学功2001--}和Miroslav\yearpagescite[][15]{Miroslav2004--}
-%著者-出版年制文中已有作者只需给出年份的引用,三种方式:
-% 见赵学功\yearcite{赵学功2001--}
-% 见赵学功(\cite*{赵学功2001--})
-% 见赵学功(\citeyear{赵学功2001--})\par
-%著者-出版年制文中无作者需要标注命令给出作者作为主语的引用:
-% 见\textcite{赵学功2001--}\par
-%在页脚中引用和打印文献表:
-% \footnote{在脚注中引用\footcite{赵学功2001--}} \footfullcite{赵学功2001--}
-% \end{texlist}
-%\end{example}
-
-%\begin{figure}[!htb]
-%\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-%width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-%leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-%\centering
-%\deflength{\textparwd}{\linewidth-1cm}
-%\parbox{\textparwd}{
-%\includegraphics{egciteay.pdf}
-%}
-%\end{tcolorbox}
-%\caption{著者-出版年制标注格式}\label{fig:cite:ay}
-%\end{figure}
-
-\subsubsection{标注格式局部调整}
-
-标注在同一个文档中是可能存在不同格式需求的,比如:有的地方需要用上标,有的地方需要用行内,有的地方需要给出作者,有的地方需要给出页码等。一般情况下,不同标注格式可以通过使用不同的标注命令来得到,比如上一小节给出的大量不同的命令,不同命令能够产生独特的标注标签。
-
-除了利用命令来调整标注格式外,还有更多的方法来进行局部格式调整。这利用了tex的编组特性,编组内的局部格式不影响编组外的格式,所以可以利用编组内的局部设置来调整标注的格式,类似的,文献表的著录格式也是可以局部调整的,见下一节。
-
-引用文献所产生标注标签的格式包括很多内容,包括作者数量,标点,本地化字符串等。最常见的局部调整需求是标点和本地化字符串。这里以双语图题中的引用标签的不同本地化字符串需求为例来展示局部调整的方法。
-
-在中科院某类学位论文中,正文的标注标签要求两个英文作者之间用和而不是and连接,多个英文作者截断成一个作者时后面用等.而不是et al.表示。这可以容易通过设置本地化字符串来实现。然而对于双语的图题,英文图题中的出现等与和这样的字符实在不雅,所以又要求在这种全英文的环境中将和与等.更换为英文的表示符号,这就需要利用本地化字符串的局部调整。这种本地化字符串的局部调整其实已经是比较深入的内容,因为biblatex提供的接口DefineBibliographyStrings是全局的设置,如何进行局部调整并没有非常方便的接口,要解决这一需求,需要对biblatex以及gb7714-2015样式有比较深入的了解。
-
-因为gb7714-2015通过gbcitelocalcase计数器来选择使用中文或英文的本地化字符串,因此通过局部设置gbcitelocalcase可以局部的选择不同语言的本地化字符串,然而因为本地化字符串的内容通常是全局设置的,所以当中文的或者英文的本地化字符串设置都不满足要求时,就需要局部的调整本地化字符串的内容,如\ref{eg:str:localset}所示,对本地化字符串andothersincite的内容做了调整,从全局设置的等.转换为et al.,和转换为and,这种局部设置是通过csdef对保存字符串信息的命令直接做的调整。比如\verb|\csdef{abx@sstr@andothersincite}{et al.}|就是将andothersincite本地化字符串的内容临时调整为et al.。
-
-为方便用户使用,提供了
-\verb|\setlocalbibstring|命令来替代上述直接定义的csdef命令,比如:
-\verb|\setlocalbibstring{andothersincite}{et al.}|,等价于与前面csdef那条命令。
-另外,如果要在本地化字符串的内容设置中使用biblatex提供的一些标点命令,比如adddot等,那么需要对其进行保护,避免直接展开导致命令未定义的错误,比如:
-\verb|\setlocalbibstring{andothersincite}{et al\protect\adddot}|
-
-具体的测试见\href{egthesis/thesis-ucas-m.tex}{thesis-ucas-m.tex}
-
- \begin{example}{双语图题内的标注标签的本地化字符串局部设置}{eg:str:localset}
- \begin{texlist}
-\begin{figure}[!htbp]
- \centering
- \fbox{\parbox{5cm}{example fig\\在双语图题中强制使用某种语言的方式}}
- \bicaption{中文图题具体见{\cite{walls2013drought}\cite{betts2005aging}}}
- {English fig title See{\setlocalbibstring{andothersincite}{et al\protect\adddot}\setlocalbibstring{andincite}{and}\cite{walls2013drought}
- \cite{betts2005aging}}}\label{fig:bi:lang}
-\end{figure}
- \end{texlist}
- \end{example}
-
-
-
-
-
-
-
-\subsection{文献表输出及著录格式}\label{sec:usage:bbx}
-
-引用文献后,可以在文档需要的位置利用 \verb|\printbibliography| 命令输出文献表。文献表的输出格式称为参考文献著录样式,也称著录表样式或著录格式,也分两类: 顺序编码制和著者-出版年制(作者年制)。
-
-%顺序编码制的参考文献样式基于标准样式numeric-comp/numeric
-\paragraph{\heiti 顺序编码制样式} 中各条参考文献条目以数字序号按引用先后顺序组织。
-著录格式中序号格式见\ref{sec:bib:serialno}节,
-各类型文献条目的著录格式见\ref{sec:numeric:data}节,
-参考文献条目中各信息域及其录入方式见\ref{sec:bib:bibtex}节。
-
-%著者-出版年制的参考文献样式则基于标准样式authoryear
-\paragraph{\heiti 著者-出版年制样式} 中各条参考文献条目以作者-年为标签以一定的顺序排列。著者-出版年制的著录格式与顺序编码制基本相同,差别仅在于把年份提前到作者后面作为条目的标签。数据源bib文件中各条目的数据录入与顺序编码制完全一致。
-
-\qd{著者-出版年制有文献按文种集中的要求,因此gb7714-2015ay样式设计了gblanorder选项来配合专用的排序模板,可以方便地设置不同文种的先后顺序,默认文种顺序是中日韩英法俄。如需其他顺序则可利用gblanorder选项重设,设置方法见第\ref{sec:added:opt}节。此外,由于排序需要根据文献所使用的语言判断,因此使用language域,该域由biblatex-gb7714-2015宏包自动判断处理,一般不需过多关注,如果当语言判断出现问题,可以在bib文件中手动设置language域为正确的语言,比如chinese,japanese,english,french等。}
-
-%前一段为20190331更新
-%\qd{著者-出版年制有分文种文献集中的要求,因此gb7714-2015排序模板以nyt模板为基础,增加 language 作为 name 前的排序域。默认情况下,本样式文件将标题(或作者)为中文的文献的 language 域设置成 chinese,英文的设置成 english。这一设置过程,在biber 处理时自动完成。当出现问题或者有更多文种分集且有特殊顺序时,可以在bib文件中为相应文种文献的 language 域手动设置适合排序的字符串。比如: 中文文献设置为 chinese,英文文献设置为 enlish,法文文献设置为 french,那么排序中,相应的中文文献排在最前面,英文文献在中间,法文文献最后,因为升序情况下字母顺序是c然后e然后f。}
-
-%上一段2016-1114更新,下面是以前的说法。
-%\qd{根据文种文献集中的要求,修改了nyt排序格式,增加了userb作为name前的排序域,当有需求进行多文种分集且有特殊顺序时,在bib文件中给相应文种的文献设置适合排序的字符串。比如中文文献设置为cn,英文文献设置为en,法文文献设置为fr,那么排序中,相应的中文文献排在最前面,英文文献在中间,法文文献最后,因为升序情况下字母顺序是c然后e然后f。}
-
-打印出的文献表主要有两个部分的格式需要控制,一是文献表的段落格式,二是文献表中各条文献的著录格式:
-
-\subsubsection{段落格式控制}
-
-\paragraph{\heiti 文献表字体、颜色、间距、缩进控制} 为方便用户改变文献表段落格式、内容字体和颜色等,在 biblatex 提供的 \verb|\bibfont| 命令基础上,
-增加了\verb|\bibauthorfont|、\verb|\bibtitlefont|、\verb|\bibpubfont| 等命令用于控制文献不同部分的格式,比如作者,标题,出版项等。
-增加了尺寸\verb|\bibitemindent| 用于控制参考文献条目在文献表中的缩进,
-其意义与 list 环境中 \verb|\itemindent| 相同。
-用法具体见例\ref{eg:biblist:fontset},结果如图\ref{fig:par:fmt}所示。
-测试用例见\href{run:example/testfontinbiblio.tex}{testfontinbiblio.tex}。
-
-\begin{example}{文献表段落格式、字体、颜色}{eg:biblist:fontset}
-\begin{texlist}
-% 文献项之间的间隔符控制(比如是否换行)
- % 选项 block=none , space , par , nbpar , ragged
- % 或\renewcommand*{\newblockpunct}{\par\nobreak}
-% 字体的控制:\textit,sl,emph-楷体,\textbf,sf-黑体,\texttt-仿宋,\textsc,md,up-宋体
- % 全局字体
-\renewcommand{\bibfont}{\zihao{-5}}%\fangsong
- % 题名字体
-\renewcommand{\bibauthorfont}{\bfseries\color{teal}}%
-\renewcommand{\bibtitlefont}{\ttfamily\color{blue}}%
-\renewcommand{\bibpubfont}{\itshape\color{violet}}%
- % url和doi字体
-\def\UrlFont{\ttfamily} %\urlstyle{sf} %\def\UrlFont{\bfseries}
-\end{texlist}
-\end{example}
-
-\begin{figure}[!htb]
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\centering
-\deflength{\textparwd}{\linewidth-1cm}
-\includegraphics[width=\textparwd]{egparfmt.pdf}
-\end{tcolorbox}
-\caption{文献表段落格式示例}\label{fig:par:fmt}
-\end{figure}
-
-文献表各条目之间的竖直间距控制如例\ref{eg:biblist:vspace}所示:
-
-\begin{example}{文献表竖直间距控制}{eg:biblist:vspace}
-\begin{texlist}
-% 竖直间距的控制
-\setlength{\bibitemsep}{0ex}
-\setlength{\bibnamesep}{0ex}
-\setlength{\bibinitsep}{0ex}
-\end{texlist}
-\end{example}
-
-文献表的水平缩进控制,两种编制方式下是不同的。对于著者-出版年制文献表,bibitemindent表示
-\emph{一条文献中第一行相对后面各行的缩进},bibhang 表示\emph{页边到文献各行起始位置的距离}。因此要调整缩进就是要设置这两尺寸。
-
-对于顺序编码制文献表,由于存在数字标签,且其宽度与参考文献数量相关,所以这个宽度是动态变的,无能提前设定的,而是在文献表生成时给出,所以调整缩进需要在文献表输出环境中调整。由于顺序编码样式使用了两类输出环境,所以需要根据设定的选项区分处理:
-
-一是采用list环境的文献表,即设置gbalign=left、right、center时(即顺序编码标签是左对齐、右对齐和居中对齐的情况),在重定义的文献表环境中,调整bibitemindent和bibhang两个尺寸,默认情况下bibhang+labelnumberwidth的长度是页边到各行起始位置的距离。当采用某些字体导致计算计算的标签宽度不足时,可以设置biblabelextend尺寸,来增加labelnumberwidth的宽度,避免缩进格式产生问题,默认情况下biblabelextend尺寸为0pt。
-
-二是采用正常段落环境的文献表,即设置gbalign=gb7714-2015时(即项对齐情况,就是各条文献是自身对齐的情况),在重定义的命令中通过调整lengthid尺寸来设置\emph{每条参考文献第二行开始的缩进距离}。
-调整方法见例\ref{eg:biblist:hspace}。
-
-\begin{example}{文献表水平缩进控制}{eg:biblist:hspace}
-\begin{texlist}
-% 著者-出版年制文献表缩进控制
-\setlength{\bibitemindent}{0em} % bibitemindent表示一条文献中第一行相对后面各行的缩进
-\setlength{\bibhang}{0pt} % 著者-出版年制中 bibhang 表示的各行起始位置到页边的距离
-
-% 顺序编码制文献表缩进控制
-% 调整顺序标签与文献内容的间距
-\setlength{\biblabelsep}{2mm}
-
-% 调整各条文献的缩进:
-%-1-----gbalign=left、right、center时,重定义 bibenvironment
-\defbibenvironment{bibliography}%修改对齐环境-调整缩进
- {\list
- {\printtext[labelnumberwidth]{%
- \printfield{labelprefix}%
- \printfield{labelnumber}}}
-{%
-%这里是所做的调整,通过设置\bibitemindent,\bibhang调整缩进
-\addtolength{\bibitemindent}{\labelnumberwidth}%
-\addtolength{\bibitemindent}{\biblabelsep}%
-\addtolength{\bibhang}{-\labelnumberwidth} %
-\addtolength{\bibhang}{-\biblabelsep}%
- %
- %以下是默认的设置
- \setlength{\labelwidth}{\labelnumberwidth}%
- \setlength{\labelsep}{\biblabelsep}%
- \setlength{\leftmargin}{\bibhang}%
- \addtolength{\leftmargin}{\labelnumberwidth}%
- \setlength{\itemindent}{\bibitemindent}%
- \setlength{\itemsep}{\bibitemsep}%
- \setlength{\parsep}{\bibparsep}}%
- \renewcommand*{\makelabel}[1]{\hss##1}}
- {\endlist}
- {\item}
-
-%-2-----gbalign=gb7714-2015时,重定义 \itemcmd命令
-\renewcommand{\itemcmd}{%%修改对齐环境-调整缩进
-\settowidth{\lengthid}{\mkgbnumlabel{\printfield{labelnumber}}}
-%
-%%这里是所做的调整,以下两句通过调整\lengthid来调整缩进
-\setlength{\lengthid}{0pt}
-\addtolength{\lengthid}{-\biblabelsep}
-%
-%如下是默认设置
-\addtolength{\lengthid}{\biblabelsep}
-\setlength{\lengthlw}{\textwidth}
-\addtolength{\lengthlw}{-\lengthid}
-\addvspace{\bibitemsep}%恢复\bibitemsep的作用
-%\parshape 2 0em \textwidth \lengthid \lengthlw
-\hangindent\lengthid
-\mkgbnumlabel{\printfield{labelnumber}}%
-\hspace{\biblabelsep}}
-\end{texlist}
-\end{example}
-
-文献表中有时需要调整标点为中文的全角标点,可以通过不同机制下的标点设置来调整。
-调整方式如例\ref{eg:biblist:separator}所示。有时在本地化字符串中也可以实现标点调整,比如and,in等本地化字符串。有时在域格式中也可能出现标点调整,比如title域格式。而且因为不同语言的处理,可能内部也存在标点的调整。具体情况是比较复杂的,这里不再一一列举,一些修改示例可以参考:
-\href{run:./chinese-erj.bbx}{chinese-erj.bbx},
-\href{run:./egthesis/thesis-uibe-numeric.tex}{thesis-uibe-numeric.tex}。具体的标点命令的意义详见biblatex手册。
-
-\begin{example}{文献表常见标点控制}{eg:biblist:separator}
-\begin{texlist}
-% 标点类型的控制(注意:全局字体能控制标点的字体)
-
-%文献表各条文献中各单元间隔标点设置(与异步标点机制相关的)
-\renewcommand*{\newunitpunct}{,}%\addcomma\space %,
-\renewcommand*{\finentrypunct}{\iffieldequalstr{userd}{chinese}{。}{\adddot}}
-
-%姓名格式相关的标点
-\DeclareDelimFormat{nameyeardelim}{,}%\addcomma\addspace
-%\DeclareDelimFormat[bib,biblist]{nameyeardelim}{,}%\addcomma\addspace
-\DeclareDelimFormat{multinamedelim}{,}%[bib,biblist]
-\DeclareDelimFormat{finalnamedelim}{,}
-\DeclareDelimFormat{andothersdelim}{,}
-\renewcommand*{\revsdnamepunct}{,}%
-\end{texlist}
-\end{example}
-
-\subsubsection{条目著录格式控制}\label{sec:entry:fmt}
-
-文献表输出的格式即参考文献著录样式,除了整体的段落格式外,还有条目内部的格式可以控制,条目内部的这些项称为著录项,这些著录项的格式通常可由选项控制。可用选项除了biblatex 提供的标准选项外,也包括样式包提供的选项。
-图\ref{fig:content:fmta}、\ref{fig:content:fmtb}、\ref{fig:content:fmtc}给出了一些选项设置后的格式控制效果,
-更多选项的详细说明见第\ref{sec:added:opt}、\ref{sec:old:opt}小节。
-
-图\ref{fig:content:fmta}给出了选项设置为 style=gb7714-2015, gbnamefmt=givenahead,
-gbpub=false, gbbiblabel=dot, gbtitlelink=true 时的文献表,可以看到作者姓名、序号标签、标题超链接的设置。
-
-\begin{figure}[!htb]
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\centering
-\deflength{\textparwd}{\linewidth-1cm}
-\includegraphics[width=\textparwd]{egcontentfmt.pdf}
-\end{tcolorbox}
-\caption{文献表条目著录格式示例一}\label{fig:content:fmta}
-\end{figure}
-
-图\ref{fig:content:fmtb}给出了选项设置为 style=gb7714-2015ms, gbnamefmt=lowercase,
-gbpub=false, gbtitlelink=true, gbstyle=false, sorting=nyt 时的文献表,可以看到作者姓名、标题超链接、中英文不同文献格式、文献排序的设置。
-
-\begin{figure}[!htb]
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\centering
-\deflength{\textparwd}{\linewidth-1cm}
-\includegraphics[width=\textparwd]{egcontentfmtb.pdf}
-\end{tcolorbox}
-\caption{文献表条目著录格式示例二}\label{fig:content:fmtb}
-\end{figure}
-
-图\ref{fig:content:fmtc}为选项和本地化字符串如例\ref{eg:localstr:diff}设置时的引用标注和文献表,注意其中引用标注和文献表中的不同本地化字符串输出效果,引用标注中英文作者和中文作者缩略词的不同。这是中科院大学资环类学位论文的要求格式,可以看到尽管有些特殊,但通过选项设置和本地化字符串设置也能实现。
-
-\begin{example}{著者-出版年制标注和文献表不同本地字符串效果}{eg:localstr:diff}
-\begin{texlist}
-\usepackage[backend=biber,style=gb7714-2015ay,gbnamefmt=lowercase,maxcitenames=2,mincitenames=1,
-sortcites=false,sorting=gbynta]{biblatex}
- \renewcommand{\bibauthorfont}{\color{violet}}%
-\DefineBibliographyStrings{english}{
- andincite = {和},
- andincitecn = {和},
- andothersincite = {等{\adddot}},%adddot才能避开标点追踪
- andothersincitecn = {等}, }
-\end{texlist}
-\end{example}
-
-
-\begin{figure}[!htb]
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\centering
-\deflength{\textparwd}{\linewidth-1cm}
-\includegraphics[width=\textparwd]{egcontentfmtc.pdf}
-\end{tcolorbox}
-\caption{文献表条目著录格式示例三}\label{fig:content:fmtc}
-\end{figure}
-
-\subsubsection{著录格式局部调整}\label{sec:entry:fmtlocal}
-
-得益于biblatex利用tex宏控制著录格式的特点,加上tex语言本身编组的局部化特性,所以在利用biblatex生成参考文献的过程中可以有丰富手段,来进行参考文献著录格式的局部调整。也正因为局部的格式调整,因此通常局部格式都是结合refsection或者refsegment来操作的。前面提到过的一个很简单的例子,当在学位论文的写作中需要正文部分的参考文献使用顺序编码制,而附录中研究成果部分使用作者年制这样的需求就是一个典型的局部化格式调整。这一问题的解决方式为在研究成果部分使用一个refsection将其局部化,并结合gb7714-2015mx样式,并利用setaystylesection命令设置该refsection为作者年制样式。
-
-因为tex宏的局部化调整特性,因此几乎biblatex中所有格式设置都是可以做局部调整的,限于篇幅,这里仅介绍一些常见的简单的调整方式:
-
-\begin{enumerate}
- \item 文献表标题
-
- 局部重定义bibname、refname或者局部重设printbibliography命令的选项可以设置文献表标题。
-
- \item 文献表段落格式
-
- 局部重定义bibfont命令即可局部设置参考文献的字体颜色等,进一步重定义bibauthorfont、bibtitlefont、bibpubfont 等命令用于控制文献不同著录项的格式。
-
- 局部重定义bibitemindent 尺寸可以设置文献表的缩进
-
- 局部重定义bibitemsep、bibnamesep、bibinitsep可以设置文献表的各条目的间距
-
- \item 文献表条目著录格式
-
- biblatex中绝大部分的控制选项都是使用toggle的方式,比如url选项,gbtype选项,gbannote选项等,因此在局部设置选项对应的toggle 值可以局部设置选项控制的格式。
- 另外也有一些选项使用的是计数器,比如gbnamefmt选项,因此局部设置选项对应的计数器的值可以局部设置选项控制的格式。
- 当然由于一些选项的特殊性,它无法简单的进行利用toggle值或计数器值进行设置,而可能需要调整选项对应的宏的内容,因此复杂度会明显提升,如果不是非常必要,建议不要去局部化重设这些选项的所对应的格式。
-
- 示例见\href{run:./example/opt-gbannote.tex}{opt-gbannote.tex}。
-
- \item 文献表条目中域或标点的格式
-
- biblatex中域和标点的格式设置其实是比较简单的,且设置命令不限制一定要在导言区中,因此做局部化调整也是合适的。比如在一个refsection中需要将期刊文献的volume域的格式设置为粗体,那么可以做设置为:
-
- \begin{example}{域格式的局部调整示例}{eg:bib:fieldsetlocal}
- \begin{texlist}
- \DeclareFieldFormat[article,periodical]{volume}{\textbf{#1}}% volume of a journal
- \end{texlist}
- \end{example}
-
-\end{enumerate}
-
-实施上格式的局部调整和全局调整本质上是一致的,文献样式中几乎所有格式设置,都可以做局部化处理。当然做全面的样式设计会稍微往深里去一点,考虑的问题也会更多,但局部格式调整是可以借鉴的,关于样式中的格式设置和说明请参考:
-\href{https://github.com/hushidong/biblatex-solution-to-latex-bibliography/blob/master/biblatex-solution-to-latex-bibliography.pdf}%
-{biblatex高级使用方法和样式包设计实现方法}。
-
-
-
-
-
-
-\subsection{文献表排序与调整}
-
-\subsubsection{国标要求的排序方式}
-
-排序是文献表格式的重要内容。国标的两种编制方式中,顺序编码制要求文献表中的文献按照正文中文献引用的先后顺序进行排序,而著者-出版年制则要求文献表首先按照文种对不同语言的文献进行分组,中文在前英文在后,分组内的中文文献则以拼音或笔画进行排序,而西文文献则按照字母顺序进行排列。在gb7714-2015国标样式中两种编制方式的排序分别以如下选项设置来实现:
-
-\begin{example}{两种编制方式的排序设置}{eg:bib:sorting}
-\begin{texlist}
-%顺序编码制:
-sorting=none
-
-%著者-出版年制:
-sorting=gb7714-2015,gblanorder=chineseahead,sortlocale=zh__pinyin
-\end{texlist}
-\end{example}
-
-这些设置是样式的默认设置,用户如果没有其他需求则无需调整,若需调整详见下一节。
-
-\subsubsection{排序的逻辑和调整方法}
-
-文献表中文献的排序通常是由处理bib文件的后端程序实施的,比如bibtex或biber程序。通常biblatex选择biber作为后端程序来实现更灵活的排序机制。biber在处理过程中读取bib文件信息并根据biblatex宏包和文献样式在bcf文件中输出设置信息执行排序。而bibtex程序则在读取bib文件后根据bst样式进行排序,尽管可以让bibtex读入特殊格式bib文件来提供一些设置参数,但总的来说基于bibtex的文献排序是由bst样式决定的。而biber程序则是提供了一套工具,具体的排序方式是由biblatex宏包和样式文件中的设置决定的,biber根据这些设置执行特定的逻辑来实现排序。
-
-biblatex通过sorting选项选择排序模板来进行排序,而排序模板是可以自定义的。gb7714-2015及
-gb7714-2015ay样式提供了gblanorder选项来选择文种的排列顺序,其本质是对排序模板中与语言相关的域进行设置,因此它是与sorting选项选择的排序模板密切相关的,biblatex提供的标准样式排序模板并不支持该选项。
-而sortlocale选项则是针对字符排序选择本地化调整方案,比如选项zh\_\_pinyin就是选择针对中文字符根据拼音进行排序。本地化调整方案是由perl模块提供,中文字符排序的可用选项值详见前面的sortlocale选项说明。需要注意的是本地化字符排序调整方案设置也可以通过biber命令行选项提供,biblatex设置和biber命令行设置两种方式见例\ref{eg:sort:opts}、例\ref{eg:sort:bibercmd}。
-
-\begin{example}{中文字符排序调整可利用biblatex选项}{eg:sort:opts}
-\begin{texlist}
-%按拼音排序,biblatex加载选项
-\usepackage[backend=biber,style=gb7714-2015ay,sortlocale=zh__pinyin]{biblatex}
-%按笔画排序,biblatex加载选项
-\usepackage[backend=biber,style=gb7714-2015ay,sortlocale=zh__stroke]{biblatex}%
-%此时,biber则正常编译不需手动加选项,因为排序调整方案(sort tailoring)已由biblatex 给出。
-biber jobname
-\end{texlist}
-\end{example}
-
-\begin{example}{中文字符排序调整也可利用biber选项}{eg:sort:bibercmd}
-\begin{texlist}
-%biblatex正常加载,即不设置排序的本地化调整方案
-\usepackage[backend=biber,style=gb7714-2015ay]{biblatex}
-
-%此时需利用biber选项给出本地化排序调整方案:
-%按拼音排序,则设置-l zh__pinyin
-biber -l zh__pinyin jobname
-%按笔画排序,则设置-l zh__pinyin
-biber -l zh__stroke jobname
-\end{texlist}
-\end{example}
-
-对于sorting选项,biblatex提供了标准的排序模板包括:
-
-\begin{description}
- \item[nty] 按照姓名、标题、年份排序。
- \item[nyt] 按照姓名、年份、标题排序。
- \item[nyvt] 按照姓名、年份、卷数、标题排序。
- \item[anyt] 按照字母标签、姓名、年份、标题排序。
- \item[anyvt] 按照字母标签、姓名、年份、卷数、标题排序。
- \item[ynt] 按照年份、姓名、标题排序。
- \item[ydnt] 按照年份(降序)、姓名、标题排序。
- \item[none] 不进行排序。所有的条目按照引用顺序处理。
-\end{description}
-
-而gb7741-2015和gb7741-2015ay样式提供了4个排序模板:
-
-\begin{description}
- \item[gb7714-2015] 以语言、作者、年份、标题、升序排列
- \item[gbnytd] 以语言、作者、年份、标题、降序排列
- \item[gbynta] 以语言、年份、作者、标题、升序排列
- \item[gbyntd] 以语言、年份、作者、标题、降序排列
-\end{description}
-
-在使用gb7714-2015和gb7714-2015ay样式时可以使用上述排序模板。用户也可以增加自定义模板,比如为了处理多音字的问题,用户可以手动设置key域用来对中文文献进行排序,定义如下的排序模板:
-
-\begin{example}{针对多音字问题的排序模板}{eg:sort:multipinyin}
-\begin{texlist}
-\DeclareSortingTemplate{multipinyin}{
- \sort{
- \field{presort}
- }
- \sort{
- \field{lansortorder}%language
- }
- \sort{
- \field{sortkey}
- }
- \sort{%[direction=descending]
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field{volume}
- \literal{0}
- }
- }
-\end{texlist}
-\end{example}
-
-其中,排序模板优先使用persort域进行排序,接着是与文种相关的lansortorder域,接着是sortkey域(该域在biblatex中就是key域的别名),接着是sortname等作者姓名相关的域,要让文献根据多音字习惯音进行排序,那么就在key域中设置文献作者姓名的习惯音。比如三篇文献作者分别是[李四]、[J. B. Conway]、[曾三]。在设置sorting=multipinyin, gblanorder=chineseahead, sortlocale=zh\_\_pinyin的情况下,根据上述的multipinyin排序模板,首先根据文种和作者信息将中文文献[曾三][李四]排在前面,接着是[J. B. Conway],因为默认情况下,曾字考虑的读音是ceng2。但若对key域手动设置中文的拼音,比如[李四]文献设置key=\{li3si4\},而[曾三]文献设置key=\{zeng1san1\},那么中文文献仍然排在前面,但根据key域的设置会将[李四]文献排列在[曾三]前面。因此手动设置作者姓名的习惯拼音后,文献排列顺序为:[李四][曾三][J. B. Conway]。
-
-其中,与文种相关的排序域lansortorder是由gblanorder选项设置的,当选项值为chineseahead时,语言顺序为cn;jp;kr;en;fr;ru,会将中文文献的lansortorder域设置为1,日语文献设置为2,韩语文献设置为3,英文文献设置为4,法语文献设置为5,俄语文献设置为6。排序过程中按升序排序,那么自然中文文献在前英文文献在后。若对gblanorder选择设置一个自定义的字符串如:cn;en;ru;fr;jp;kr,那么文种的排列顺序为中文、英文、俄语、法语、日语、韩语。
-
-根据上述的排序逻辑可知,要做排序的调整首先可以考虑合理地设置选项,来选择合适的排序模板、文种顺序和本地化字符排序调整方案。当不满足要求时,可以自定义排序模板,并设置sorting选项为该模板,来实现用户需要的排序方式。
-
-
-\subsection{多语言支持}
-
-
-\subsubsection{多语言混合文献表}\label{sec:multilan:combine}
-
-在国内的一般应用场景下,常见的多语言混合文献表是中英两种语言混合的文献表,但有时也可能会存在多种语言,比如存在中/英/日/俄等多种语言。图\ref{fig:multi:lan}给出了这样一个示例,其中不同语言的文献使用了不同的本地化字符串。
-
-\begin{figure}[!htb]
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\centering
-\deflength{\textparwd}{\linewidth-1cm}
-\includegraphics[width=\textparwd]{egmultilan.pdf}
-\end{tcolorbox}
-\caption{多语言混合文献表}\label{fig:multi:lan}
-\end{figure}
-
-\begin{enumerate}
-\item 多语言混合文献表首先要解决的是多语言文献的字符显示问题。使用xelatex编译时,由于其原生支持unicode的特性,在tex文档内显示多语言字符比较容易实现,正确显示的关键在于合适的字体设置。一般情况下西文如英/法/俄可以利用fontspec宏包选择合适的字体来解决,而中/日/韩语可以利用ctex宏包可以解决,但仍需注意要正确的显示中/日/韩语也需要字体支持,windows下常见的中文字体可能不支持日/韩字符,而思源宋体是一个不错的选择。本文的多语言示例编译均采用思源宋体常规(SourceHanSerifSC-Regular.otf),
-请从其\href{https://github.com/adobe-fonts/source-han-serif/tree/release}{官网}下载。
-
-\item 除此之外,还要解决另外一个重要问题是本地化字符串问题。因为对于不同语言的文献,通常要求使用符合自身语言规范的本地化字符串。而且不同的语言,本地化字符串并不是一一对应的,特别是东亚语言,因此要考虑一个全面的解决方案:
-
-对于西方语言, biblatex基于 babel/polyglossia宏包,结合autolang/language等选项和langid/langidopt等域,提供了一套多语言解决方案。
-
-\begin{itemize}
-\item 首先,对不同语言的文献,设置langid域为文献所用语言,比如英文文献则设置langid域等于english,俄文文献则设置等于russian。
-
-\item 其次,在biblatex加载时设置 autolang选项,等于none则不做多语言处理,等于hyphen则仅做不同语言的断词处理,等于other或other*则处理不同语言的断词和本地化字符串,other*选项等价于使用babel的otherlanguage*环境,与other的差别在于不忽略环境后的空白。从实践看,当要使用条目集时,使用other*选项更为合适。
-
-\item 再次,还可设置language选项,用于区分是否在标注或文献表中采用多语言处理方案。当language选项等于autobib时仅在文献表中自动切换语言,等于 autocite 时仅在标注中自动切换语言,等于 auto 时则在文献表和标注中同时切换。
-
-\item 最后,需要在tex文档内加入babel宏包或polyglossia,并设置需要使用的语言。注意:需要使用本地化字符串的西语都要加入,否则无法自动切换。比如需要自动切换的西文语言有英文、法文和俄文,
-那么需要将加入\verb|french,russian,english|。如例\ref{eg:multi:lanset}所示:
-
-\begin{example}{babel/polyglossia设置西方语言的多语言支持}{eg:multi:lanset}
-\begin{texlist}
- %使用babel的方式
- \usepackage[russian,french,english]{babel}
-
- %使用polyglossia的方式
- \usepackage{polyglossia}
- \setdefaultlanguage{english}
- \setotherlanguages{russian,french}
-\end{texlist}
-\end{example}
-
-\end{itemize}
-
-对于东亚语言,通常没有像西方语言那么多的本地化字符串的应用,只有有限几个字符串需要使用,而且习惯用法也与西文不同,因此无法与西文的本地化字符串一一对应,所以考虑的解决思路也不同于西文。即不使用类似西文的本地化字符串文件,而直接利用在英文本地化文件(english.lbx)基础上新增适用于东亚语言的本地化字符串的方式。在标注和著录格式处理过程中,根据当前处理的域或条目的语言做判断,然后使用对应语言的本地化字符串。如第\ref{sec:usage:bbx}节所述,本样式使用language域来标记文献的语言类型,langid域用来标记文献对应的本地化字符串文件,默认情况下都不需要人工输入,可由宏包根据文献信息自动判断,但也可以人工输入来指定。
-
-\end{enumerate}
-
-因此考虑东亚语言的特殊性,针对西文和东亚语言,整体解决方案做如下:
-\begin{itemize}
- \item 如俄语/法语这样的西方语言,通过biblatex提供的方案自动解决。使用时,bib文件中的文献数据按文献本身的语言录入,在tex源文件中载入babel宏包并设置相应语言,然后设置biblatex的autolang和language选项。剩下所有工作比如自动语言判断和处理则交由gb7714-2015样式自动完成。
-
- \item 日韩语采用类似中文的方式处理,即在英语本地化文件基础上通过增加新的本地化字符串实现处理,因此langid需设为english。在输出本地化字符串的宏中当做英文处理,但内部存在区分逻辑,当判断语言为中文时,则使用中文的本地化字符串比如andcn,andotherscn等, 当不是时,则判断不同的语言,是日文则输出本地化字符串如andjp,andothersjp,若是韩文则输出本地化字符串如andkr,andotherskr。而所有其它西文则输出本地化字符串比如and,andothers,由babel自动切换成对应语言的字符串。由于日文中作者这类信息通常用的汉字,因此常常判断为中文,所以可以使用符合中文习惯的字符串,但如果对日文有精确的判断,那么可以输出符合日文习惯的字符串。韩语由于大量使用表音的字符,所以通常使用专门的本地化字符串。中日韩语文献数据录入也不要特殊的处理,按文献本身语言输入即可,剩下所有其它工作均由gb7714-2015样式自动处理,用户无需过多关注。
-
-\end{itemize}
-
-本样式对中日韩英俄法六种语言混合文献表做了测试,详见:
-\href{run:example/opt-eg-multilan.tex}{opt-eg-multilan},
-\href{run:example/opt-autolang-multilan.tex}{opt-autolang-multilan}。
-
-
-\subsubsection{多语言对照的文献表}\label{sec:multilan:implement}
-
-国标GB/T 7714-2015有不同语言对照文献的要求(详见第6.1节),某些期刊也有类似的需求。
-多语言对照的文献表首先是多语言混合的文献表,所以本节的方法是在前一节基础上做的。
-对于biblatex宏包,多语言对照文献问题可以通过条目集类型(set)/或者条目关联(related)来解决,由于多语言对照的情况与双语言对照本质是一样的,因此下面主要讨论双语对照的情况。
-图\ref{fig:double:lana}和\ref{fig:double:lanb}给出中英双语对照文献示例,两个示例中英文文献的作者姓名做了不同的设置,前者为 gbnamefmt=uppercase,后者为gbnamefmt=pinyin,后者也是国内某期刊的参考文献样式。
-GB中的韩中两种语言对照文献见\href{run:./stdGBT7714-2015.pdf}{stdGBT7714-2015文件}第4页。
-
-\begin{figure}[!htb]
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\centering
-\deflength{\textparwd}{\linewidth-1cm}
-\includegraphics[width=\textparwd]{egdoublelan.pdf}
-\end{tcolorbox}
-\caption{双语言对照文献表示例一}\label{fig:double:lana}
-\end{figure}
-
-\begin{figure}[!htb]
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\centering
-\deflength{\textparwd}{\linewidth-1cm}
-\includegraphics[width=\textparwd]{egdoublelanb.pdf}
-\end{tcolorbox}
-\caption{双语言对照文献表示例二}\label{fig:double:lanb}
-\end{figure}
-
-\paragraph{\heiti 利用条目集类型满足双语文献要求}
-
-设置条目集类型(set)有静态和动态两种方法。其中动态方法使用更为方便,只需在写文档时利用\verb|\defbibentryset|将两条文献不同语言的文献设置成一个set条目,然后引用set的bibtex键。比如:
-\begin{example}{设置set条目集用于双语文献的动态方法}{eg:setforbilangentry}
-\begin{texlist}
-\defbibentryset{bilangyi2013}{易仕和2013--,Yi2013--}
-专著,双语文献引用\cite{bilangyi2013}
-\end{texlist}
-\end{example}
-
-测试见文档\href{run:example/testallformat.tex}{testallformat.tex}。
-
-\bc{需要注意:由于biblatex的升级,在著者-出版年制中应用动态条目集方法产生的标注标签存在版本差异。
-biblatex v3.7及之前版本,因为 set 带有第一个子条目的信息,所以会自动输出子条目信息作为标签。
-而biblatex v3.8及以上版本中,因为set条目类型除了子条目关键词信息外,并无其他信息,所以set的标注标签会存在问题。这个问题可以通过设置一个指定格式和内容且中间无空格无英文逗号的关键字来弥补,比如“易仕和,等,2013”,这时因为没有空格和英文逗号,该关键字会以一个整体字符串处理,而不会被分开解析,因此可以用它来作为标签}。比如:
-
-\begin{example}{设置set条目集用于双语文献动态方法}{eg:setforbilangentry}
-\begin{texlist}
-\defbibentryset{易仕和,等,2013}{易仕和2013--,Yi2013--}
-专著,双语文献引用\cite{易仕和,等,2013}
-\end{texlist}
-\end{example}
-
-\bc{在biblatex3.8以上版本中,例{eg:setforbilangentry}的作者年制标注标签会是“易仕和,等,2013”,注意到其中的逗号是中文全角逗号,与其它标签的英文逗号的存在差异,正因为此,该方法并没有完美解决问题。}
-
-\bc{由于顺序编码制使用的时数字标签,前述的问题对于顺序编码制并不存在。而作者年制中的标签问题,可以采用下面的静态条目集方法和关联(related)方法来解决。}
-
-静态方法是在bib源文件中给出条目集(set)并使用biber后端进行解析,条目的域信息定义方法如下:
-
-%当使用bibtex后端时,则需要进一步设置,具体参考biblatex宏包说明文档。
-\begin{example}{设置set条目集用于双语文献的静态方法}{eg:set:static}
-\begin{texlist}
-@Set{set1,
-entryset = {key1,key2,key3},
-}
-%如果要达到上例动态设置set一样的结果,在bib文件中静态设置set条目如下:
-@Set{bilangyi2013,
-entryset = {易仕和2013--,Yi2013--},
-}
-\end{texlist}
-\end{example}
-
-然而例\ref{eg:set:static}这般简单的静态条目集设置,还存在两个小的问题:
-\begin{enumerate}
- \item 中文排序会出现问题,条目集会出现在文献表末尾,这是因为条目集没有设置language域用于排序,而其它常规条目都会利用动态数据修改设置language域,但因为静态条目集需要在biber运行时解析,所以无法对language域进行处理。而使用动态条目集方法则没有这一问题,因为其解析过程直接会利用第一个子条目的排序信息。
- \item 著者-出版年制中的标注标签问题,对于静态条目集,v3.8以上版本的biblatex同样不复制第一个子条目信息,因此著者- 出版年制中的引用也无法生成正确的标注标签,这也就是前面动态条目集方法中提到的问题
-\end{enumerate}
-
-但静态条目集方法有自己的解决方便,对于第一个问题,可以通过在set条目中手动设置language域来解决;第二个问题,也可以通过在set条目中手动设置label域来解决。比如:
-
-\begin{example}{在bib文件中正确设置set条目集的静态方法}{eg:set:staticright}
-\begin{texlist}
-%在bib文件中静态设置set条目如下,其中:
-%手动设置userb域用于解决排序问题
-%手动设置label域用于解决标注标签问题
-@Set{bilangyi2013,
-entryset = {易仕和2013--,Yi2013--},
-label={易仕和, 等, 2013},
-language={chinese}
-}
-\end{texlist}
-\end{example}
-
-\bc{注意:由于动态set条目集设置等价于使用了 nocite命令,因此只要定义了动态条目集的文献都会出现在文献表中,因此如果不引用相应的文献,那么无需对其定义动态条目集}。
-
-\bc{注意:biblatex提供的mcite模块提供了mcite类命令,其等价于定义动态条目集,因此除了使用上述defbibentryset方法外,也可以使用mcite类命令}。
-
-\bc{注意:条目集方法本质上是将多个文献条目集合成一个组一起在文献表中输出,且仅有一个标注标签。无论是否是多语言对照都是可以使用的,这里的多语言对照实现只是条目集方法的一个具体应用}。
-
-\paragraph{\heiti 利用条目关联满足双语文献要求}
-
-除上述给出的条目集方案外,关联条目方法则是另一种可行方案\footnote{Again about the \@ set label for authoryear style:\url{https://github.com/plk/biblatex/issues/681}}。该方案同样也有静态和动态两种方法,静态就是直接修改bib文件的内容,动态则是在tex源文档中做设置,然后通过biblatex的动态数据修改机制做临时修改。
-
-静态方法很简单,bib文件中条目设置如例\ref{eg:related:staticright}所示,它能解决双语同时显示的问题,也能解决排序和标注标签问题,唯一的问题在于修改了bib文件后,当不需要双语文献时还需改回来,这会带来不便,因此可以考虑下面的动态方法。但要注意动态方法需要利用多个\verb|\DeclareStyleSourcemap|,因此该方法只适用于biblatex v3.7及以上版本。
-
-\begin{example}{在bib文件中正确设置关联条目的静态方法}{eg:related:staticright}
-\begin{texlist}
-%在bib文件中静态设置条目如下,注意:
-%易仕和2013--条目中增加了related域用于关联其对应的英文条目Yi2013--
-@Book{易仕和2013--,
- Title = {超声速和高超声速喷管设计},
- Address = {北京},
- Author = {易仕和 and 赵玉新 and 何霖 and 张敏莉},
- Publisher = {国防工业出版社},
- Year = {2013}
- related = {Yi2013--}
-}
-@Book{Yi2013--,
- Title = {Supersonic and hypersonic nozzle design},
- Address = {BeiJing},
- Author = {Yi, S H and Zhao, Y X and He, L and Zhang, M L},
- Publisher = {National Defense Industry Press},
- Year = {2013}
-}
-\end{texlist}
-\end{example}
-
-动态方法利用动态数据修改自动添加related域,避免对bib文件做直接修改。本样式中对该过程进行了封装,定义一个新的命令\verb|\defdoublelangentry|,例如:
-\begin{example}{设置关联条目的动态方法}{eg:related:dynamic}
-\begin{texlist}
-\defdoublelangentry{易仕和2013--}{Yi2013--}
-\end{texlist}
-\end{example}
-
-使用该命令后,可以引用主条目“易仕和2013--”生成双语文献。但要注意由于\verb|\DeclareStyleSourcemap|命令只能在导言区中使用,因此\verb|\defdoublelangentry|命令也只能出现在导言区中,这也是相比条目集动态方法的唯一遗憾。
-实现的具体细节见
-\href{https://github.com/hushidong/biblatex-solution-to-latex-bibliography}%
-{biblatex-solution-to-latex-bibliography}。
-
-双语对照文献的两种动态方法基于set和related的方法测试,参见:
-\href{run:./example/opt-eg-authoryear.tex}{opt-eg-authoryear.tex}。
-
-\subsection{多样式支持}
-
-\subsubsection{一个文献表采用多种著录样式}
-
-一个文献表采用多种著录样式主要针对的是在一个tex文档生成参考文献表中,不同语言的文献采用不同的著录格式,比如中文文献采用GB/T 7714-2015 样式,而西文文献采用西文习惯的样式。这种情况目前由gb7714-2015ms样式解决,选项加载方式如例\ref{eg:gb7714ms}所示。
-
-目前gb7714-2015ms样式中,有两种应用方式,一是全部文献都采用GB/T 7714-2015 标准样式,二是中文西文分别采用GB/T 7714-2015 标准样式和biblatex的默认样式。两种方式的选择通过gbstyle选项设置。区分语言使用不同样式的情况下,如有其它需要,完全可以通过定义中文和西文的格式做进一步的修改,比如将英文文献的样式修改为IEEE格式。图\ref{fig:eg:ms}展示了两种不同语言不同的著录格式。
-
-\begin{figure}[!htb]
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\centering
-\deflength{\textparwd}{\linewidth-1cm}
-\includegraphics[width=\textparwd]{egmsinabiblio.pdf}
-\end{tcolorbox}
-\caption{一个文献表采用多种著录样式示例}\label{fig:eg:ms}
-\end{figure}
-
-测试见文档\href{run:egfigure/egmsinabiblio.tex}{egmsinabiblio.tex}。
-
-
-
-\subsubsection{不同参考文献分节采用不同著录样式}
-
-不同参考文献分节采用不同著录样式主要针对一个tex文档中存在多个参考文献表,且各参考文献表的格式需求不同。比如一些学位论文写作中,正文的参考文献表为著者-出版年制,而附录中的作者论著情况则用顺序编码制。这种情况目前由gb7714-2015mx样式解决,选项加载方式如例\ref{eg:gb7714mx}所示。
-
-gb7714-2015mx样式默认使用顺序编码样式,当要使用著者-出版年制样式时,则利用命令
-\verb|\setaystylesection|进行设置,该命令有一个必选参数,表示采用著者-出版年制样式的参考文献节的编号。注意该命令一次只能设置一个文献节,因此设置多个参考文献节时,需要多次使用\verb|\setaystylesection|命令,比如节2节4都采用著者-出版年制样式,那么设置\verb|\setaystylesection{2}\setaystylesection{4}|。
-
-目前gb7714-2015mx样式中的两种格式:顺序编码和著者-出版年制样式默认都是符合GB/T 7714-2015 标准的,如果需要做格式的修改,则完全可以通过自定义实现。图\ref{fig:eg:ms}展示了3个参考文献分节的文档,其中节2使用了著者-出版年制。
-
-\begin{figure}[!htb]
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\centering
-\deflength{\textparwd}{\linewidth-1cm}
-\includegraphics[width=\textparwd]{egmsindfrefsec.pdf}
-\end{tcolorbox}
-\caption{不同参考文献分节采用不同著录样式}\label{fig:eg:mx}
-\end{figure}
-
-测试见文档\href{run:egfigure/egmsindfrefsec.tex}{egmsindfrefsec.tex}。
-
-
-\subsubsection{完全自定义的条目内容样式}
-
-完全自定义的条目内容样式,针对不完全和不规范的文献表输出,主要用于输出部分参考文献信息。这时可以采用文献缩略信息打印的方法实现。具体的实现方法见\href{https://github.com/hushidong/biblatex-solution-to-latex-bibliography/blob/master/biblatex-solution-to-latex-bibliography.pdf}%
-{biblatex-solution-to-latex-bibliography}中的第2.10节。
-
-具体例子则可以参考\href{run:./stdgbT7714-2015.pdf}{stdgbT7714-2015.pdf}。其中第8节中大量使用这种方式。
-
-
-
-\subsection{未分类说明}
-
-\subsubsection{biblatex 的优点}
-
-基于 biblatex 宏包的参考文献生成方法,具有很多明显的优点,读者可以从
-\href{https://github.com/CTeX-org/lshort-cn}{lshort-cn}、
-\href{https://github.com/latexstudio/LaTeXFAQ-cn}{LatexFAQ-CN}、
-\href{https://tex.stackexchange.com}{tex.stackexchange.com}
-了解到更多。
-
-笔者从最初开始学习latex时利用 thebibliography 环境生成参考文献,到对格式化有更多需求后开始寻求利用参考文献宏包,再到最后选择使用biblatex宏包,在不断实践过程中越发感觉到biblatex 在生成参考文献方面的巨大潜力。以笔者的观点其优点主要包括:
-
-%[也由于对bibtex语言不熟悉,偷懒不想学$( \hat{} \bot \hat{} )$]
-\begin{enumerate}
-\item 使用简单。代码结构很简单,格式控制很简单,功能设置很简单,编译方式很简单,编译命令无限制(xelatex、pdflatex等均可)。例\ref{eg:func:backref} 给出了后向超链接功能的设置。
-
- \begin{example}{文献条目的后向超链接设置}{eg:func:backref}
- \begin{texlist}
- %加上后向超链接设置,需要4步编译。
- \usepackage[backend=biber,style=gb7714-2015,backref=true]{biblatex}
- \end{texlist}
- \end{example}
-
-%使用够方便
-
-\item 划分自由。在一个文档中可以生成任意数量的文献表,无需用将分档划分成不同的文件来辅助生成分章参考文献。利用refsection 和refsegment方便划分,具有嵌套、遍历等多种灵活处理方式。
-%划分很自由,划分无限制
-
-\item 定制方便。使用是tex命令(宏)控制格式,定制和修改相比 bibtex 语言更为容易。全面提供适用于自然学科、人文学科的多种不同类型的参考文献样式,参考、引用、移植、定制均很便捷。
-%定制很容易
-
-%处理无限制,支持更全面
-\item 支持全面。后端处理程序biber处理大数据量毫无压力,不用担心内存不足问题,字符编码支持utf-8,完全支持中文的bibtex 键(引用关键字)。biber除了自身提供的大量功能,比如:动态数据修改、参考文献数据检查、引用文献数据的bib输出(例\ref{eg:bibercmd:outbibfile})等外,还可利用一些perl模块来实现一些特殊功能,比如:
- 实现文件编码的转换(perl 的Encode::CN 模块),
- 排序的本地化调整(perl的Unicode::Collation::locale 模块,
- 中文字符的拼音和笔画排序见例\ref{eg:sort:opts}、例\ref{eg:sort:bibercmd})等。其中引用文献数据的bib输出常用于从一个大的bib文件中导出仅有引用文献信息的小的bib文件。
-
- \begin{example}{输出引用文献数据时的biber选项}{eg:bibercmd:outbibfile}
- \begin{texlist}
- biber jobname --output-format=bibtex
- \end{texlist}
- \end{example}
-
-\end{enumerate}
-%上述这些优点也是笔者决定编写符合GB/T 7714-2015标准的参考文献样式文件的原因之一。
-
-\subsubsection{数据库bib文件和文献条目}\label{sec:bib:bibtex}
-
-参考文献数据以bibtex格式保存在bib文件中。生成参考文献除tex源文档外,还需创建参考文献数据源文件即bib文件。bib文件数据源准备完成后,在加载biblatex宏包后,使用addbibresource命令将其导入。\bc{注意:数据源可以加载多个,比如多个章节的参考文献放在不同的bib文件中,那么全部加载进来即可}。
-
-bib文件中的参考文献信息是以条目形式组织,一篇文献创建一条记录即一个参考文献条目,一个条目由若干数据域(有的文档也称为字段)构成。GB/T 7714-2015标准中的文献类型与本样式中条目类型对应关系
-如表\ref{tab:entrytypes}所示,
-各类条目具体的著录格式详见\ref{sec:numeric:data}节。
-
-\begin{table}[!htb]
-\centering
-\caption{参考文献常用条目类型}\label{tab:entrytypes}
-\footnotesize
-\begin{tabular}{clc}
-\hline
- GB/T 7714-2015中的条目类型 & biblatex中的条目类型 & 类型标识代码\\ \hline
- 专著& book & M\\
- 标准& standard/book or inbook with note=standard& S\\
- 专著中的析出文献& inbook & M\\
- 连续出版物& periodical& J\\
- 连续出版物的析出文献& article& J\\
- 报纸析出的文献& newspaper/article with note=news& N\\
- 专利& patent& P\\
- 电子资源或电子公告& online/www/electronic& EB\\
- 会议录或会议文集& proceedings& C\\
- 会议文集中析出的文献& inproceedings/conference& C\\
- 汇编或论文集& collection& G\\
- 汇编或论文集析出中的文献& incollection& G\\
- 学位论文& thesis/mastersthesis/phdthesis& D\\
- 报告& report/techreport& R\\
- 手册& manual& A\\
- 档案& archive/manual& A\\
- 数据库& database& DB\\
- 数据集& dataset& DS\\
- 软件& software& CP\\
- 舆图& map& CM\\
- 未出版物& unpublished& Z\\
- 其它& misc& Z\\
- \hline
- \end{tabular}
-\end{table}
-
-
-
-组成各个条目的不同数据域(字段)保存有参考文献的各部分信息,比如作者、标题、出版项、日期等,这些信息称为著录项目,录入文献信息时,各著录项目信息应录入到对应的数据域中。GB/T 7714-2015标准中的数据域与biblatex中的域的对应关系如表\ref{tab:entryfields}所示。
-
-\begin{table}[!htb]
-\centering
-\caption{参考文献常用信息域(字段)}\label{tab:entryfields}
-\footnotesize
-\begin{tabular}{cl}
-\hline
- GB/T 7714-2015中的文献著录项目 & biblatex中的域\\ \hline
- 责任者 & author/editor\\
- 题名 & title\\
- 译者 & translator\\
- 版本(主要用于出版物) & edition\\
- 版本(主要用于软件和手册) & version\\
- 出版地 & location/address\\
- 出版者 & publisher\\
- 出版者(大学和研究所) & institution/school\\
- 出版者(会议主办方、手册和电子资源出品方) & organization\\
- 日期 & date\\
- 日期(不可解析的日期) & year\\
- 页码 & pages\\
- 析出文献来源的责任者 & bookauthor/editor\\
- 析出文献来源的标题 & booktitle\\
- 连续出版物题名(期刊、报纸) & journal/journaltitle\\
- 期刊的卷 & volume\\
- 期刊的期/专利号等 & number\\
- 获取和访问路径 & url\\
- 引用日期 & urldate\\
- 数字对象标识符 & doi\\
- 杂项 & note\\
- 文献类型标识符 & usera/mark\\
- 文献载体标识符 & medium\\
- \hline
- \end{tabular}
-\end{table}
-
-需要注意的是,
-\begin{itemize}
- \item note域在本样式中也做特殊用途,即在book类型的note域中输入standard表示标准,在aritcle类型的note域中输入news表示报纸,当然也可以不做特殊用,而只是表示杂项信息,因为标准和报纸也可以用standard和newspaper类型表示,尽管这两种类型不是biblatex原生支持的条目类型。
-
- \item usera域用于表示参考文献类型和载体标识符(为兼容Lee zeping 的bst样式使用的bib文件也可以用mark和medium 表示)。一般情况下usera,mark,medium这些域不用在bib文件中输入,而由样式文件自动处理得到,既为了使bib文件更纯粹,也为了兼容不同的样式。想象一下如果在bib文件中给出usera域,但另一样式需要使用usera域且用途不同,那么就会有兼容性问题。不用手动输入更重要的目的是为用户减负,因为用户可以直接使用从网络(各种学术网站)导出参考文献信息而不用再额外添加一个参考文献类型和载体标识符。
-
- \item 本样式自动判断语言,用户一般不需要直接给出表示文献语言的域language,因为样式在处理过程中会对各个域的字符做语言判断,这对于一篇文献存在多种语言的情况非常有用,比如一本英文著作被翻译为中文,原作者仍用英文,而译者则使用中文。那么该文献无法用一个language 标识文献的语言,简单来说,标记language域更多的目的是用在多种语言混合的文档中,可以用language 来标记英语、中文、日语、法语和俄语等用于分文种排序。当然这种标记也是由样式自动处理的,用户仅需在自动判断出现问题时手动干预。
-
-\end{itemize}
-
-
-\subsubsection{文献条目的数据域及其录入方法}\label{sec:bib:field}
-
-各个数据域的录入应符合bib文件规范。需要注意:
-
-\bc{1. 有时直接从网络获取的参考文献信息中可能带有一些特殊字符比如\%,\&等,这些字符在 tex 中通常需要做转义处理,本样式中对像title,journal等常见域中出现的特殊字符已经做了转义,但是一些不常见的域比如 abstract 等没有考虑,所以用户需要手动处理,例如把\%改为\textbackslash \%,否则可能导致出错}
-
-\bc{2. 由于目前biber使用\href{https://github.com/ambs/Text-BibTeX/tree/master/btparse}
-{btparse}
-来解析bib文件,因此各条目中的引用关键词中不能出现圆括号作为其内容一部分比如\@misc\{Euclidean\_geometry(hi), 这样的写法是不允许的,需要去掉其中(),否则biber会报错。%}
-}
-
-\bc{3. 由于url宏包的特点,在各个域中使用 \textbackslash url命令时,无法使用中文字符,如果要使用带中文字符的网址,那么可以利用 \textbackslash href命令代替 \textbackslash url命令。或者不使用这两个命令,而直接输入网址,超链接则在域格式中用 \textbackslash href 命令定义,比如:}
-\verb|\DeclareFieldFormat{howpublished}{\href{#1}{#1}}|。
-
-但要注意: 使用\verb|\href|命令形成的超链接文本,可以看做是普通的正文文本,当内部没有断行符存在时,断行可能会存在问题,因此需要手动处理,比如添加空格或者-字符。
-而当使用\verb|\url|和\verb|\nolinkurl|命令时,断行的问题则由url宏包提供的逻辑进行处理,因此往往能够得到适合的断行。所以是使用\verb|\href|还是\verb|\url|需要根据实际情况选择。
-
-\bc{4. 需要表示范围类型的域,比如页码域,通常用一个或多个-符号表示范围值间的间隔符,间隔符在解析后会替换为一个\textbackslash bibrangedash。而日期域在biblatex中是作为日期类型来考虑的,尽管日期也有起止范围的问题,且由于单个日期内部已经存在-符号,因此起止日期间的间隔符用/符号。而卷和期在biblatex中是整数类型的域,本身不具备起止范围解析功能,但GB 7714-2015的连续出版物类型中存在这样的需求,所以特别设计了卷和期的解析,且由于合期常用(7/8)这样的方式表示,因此卷和期范围间隔符用-表示。这些在数据录入过程中是需要注意的。}
-
-
-下面详细介绍本样式中使用的域及其数据录入方式:
-
-\begin{description}
- \item[author] 在biblatex中author域属于name数据类型,输入数据时,各姓名间用and 连接,当姓名过多省略时,用others代替。
-
- 单个姓名,对于中文作者直接输入中文姓名即可。比如:
-
- 于潇 and 刘义 and 柴跃廷 and others
-
- 对于英文作者,单个姓名有两种biblatex可以解析的输入方式:
-
- \textcircled{1}prefix lastname, suffix, firstname middlename
-
- \textcircled{2}firstname middlename lastname or firstname prefix lastname
-
- 比如:
-
- DES MARAIS, Jr., D J and H STRAUSS and SUMMONS, R. E. and others
-
- 其中第一个姓名输入为前缀,姓,后缀,名\ 中间名。第二个姓名输入为名\ 姓。第三个姓名输入为姓,名\ 中间名。
-
- \bc{ 推荐使用第一种方式录入作者姓名,特别是存在前后缀的情况。对于第二种输入方式,姓名各个组成部分最好首字母是大写的,首字母非大写可能导致解析出错,比如姓名只有两个组成部分: firstname和lastname,如果firstname 小写的话,有可能会解析为prefix lastname。对于第一种输入方式,则至少需要lastname首字母大写,否则有可能将lastname 解析成prefix。 注意lastname也称familyname,firstname middlename 两者共称givenname}
-
- 对于中文的机构作者,不需要解析,直接输入机构名,比如:
-
- 中国企业投资协会 and 台湾并购与私募股权协会 and 汇盈国际投资集团
-
- 对于英文的机构作者,由于机构名可能存在空格或and等字符串,因此最好用\{\}包起来,避免解析出错,比如:
-
- \{International Federation of Library Association and Institutions\} and NASA
-
- \item[title] 直接输入需要打印的内容,subtitle或titleaddon域类似
- \item[translator] 与author域类似,只是输入的是译者
- \item[edition] 直接输入整数,或者需要打印的内容
- \item[location] 直接输入需要打印的地址内容,而address域在biblatex中作为location别名,表示相同的内容。
- \item[publisher] 直接输入需要打印的出版者内容,institution,organization域类似
- \item[date] 日期可以格式化输入,格式化输入biblatex 会自动解析,如果无法解析会忽略该域。格式化的输入方式是:
-
- 年-月-日/年-月-日,数字格式为:yyyy-mm-dd/yyyy-mm-dd
-
- 比如: 2001-05-06/2001-08-01
-
- \emph{特别要注意起止日期之间的分隔符为/而不是- ,因为年月日之间已经存在分隔符-。同时因为日期biber解析是严格按照iso标准处理,因此年、月、日数字需要写全,2001-05-06不能写为2001-5-5,否则不能解析},解析完成后第一个年- 月- 日会解析并存储到year,month,day域中,第二个会解析并存储到endyear,endmonth,endday域中。更多细节参考biblatex 手册的Table 8: Date Interface。
-
- \item[year] year域的输入与date域类似,为了兼容一些老的bib文件,把year 直接用map 转换成date,所以在本样式的使用中输入year域与date域相同。
-
- 但year与date存在一定的差异,即year可以处理仅有年的信息或者需要原样打印的内容。比如:
- 1881(清光绪七年)。
-
- 这一信息如果放在date中会被自动忽略,但放到year域中,本样式会先将其拷贝到date中进行解析,无法解析的话,date域忽略,但year 信息仍然存在,并原样打印。
-
-
- \item[urldate] urldate域与date域类似,只是解析时,存储到urlday,urlmonth,urlyear,urlendday,urlendmonth,urlendyear域中。origdate和eventdate与urldate情况类似。
-
- \item[pages] 可以格式化输入或输入需要打印的内容。格式化输入时,页码用整数,当有范围时,用单个或多个短横线-隔开。比如:59-60或\verb|59--60|。 当无法解析时,输入内容被认为是需要完整打印的内容。
-
- \item[url] 直接输入需要打印的网址内容。注意不需要在域内加上\verb|\url|命令来表示网址链接,仅需要输入网址本身即可,且特殊字符无需转义。即输入方式为:
-
- \verb|url={http://www.greenwood.com/can_b_b#abc},|
-
- 而不是:
-
- \verb|url={\url{http://www.greenwood.com/can_b_b#abc}},|
-
- 如果是在其它域比如howpublished等域中输入网址,也可以直接输入网址,但所有的特殊字符都需要转义,因为它就是一个普通文本,同时换行行为也与普通文本一致,当网址字符串中没有空格或-字符时,断行可能出现问题,因此需要手动处理。如果加入\verb|\url|命令,那么其中一些特殊字符可能不需要转义,比如\verb|_|等,
- 且处理断行可以由\verb|\url|命令的内部逻辑处理,通过\verb|\UrlBreaks|设置可以自动实现比较合适的断行。当然因为biblatex已经做了进一步的处理,所以\verb|\url|中的文本断行是由三个计数器控制: biburlnumpenalty、biburlucpenalty、biburllcpenalty,合理设置这三个计数器,即可得到满意的断行效果。
-
- \item[doi] 直接输入需要打印的DOI内容
- \item[note] 在本样式中note域有特殊功能,当其内容为standard或news 时,判断条目类型为标准和报纸析出的文献。
- \item[bookauthor] 用于析出文献时,作为析出文献来源文献的作者,其输入方式与author 相同。
- \item[editor] editor有时直接作为文献的责任者,比如连续出版物(periodical)类型。有时因为author缺失,editor被当做责任者。还有的时候bookauthor缺失,editor也被当做bookauthor,即析出文献来源文献的责任者。editor的输入方式与author相同。
- \item[editortype] editortype作为editor的类型或角色说明域,可以用来在editor后面加上适当的表示角色的字符串,比如“主编”或“eds.”等。常见的角色包括:editor、compiler、founder、continuator, redactor、reviser 和collaborator等。当然这是西文环境中的情况,足够细分,中文情况下可以不用这么细分,而仅对editortype={editor}时的本地化字符串做设置,当然如果一篇文档中存在多种不同的角色editor文献的情况,也需要做细分。
- \item[booktitle] 用于析出文献时,作为析出文献来源文献的题名,其输入方式与title 相同。booktitleaddon域输入方式也相同。
- \item[volume] 连续出版物的卷,格式化输入用整数,当有范围时中间用短横线连接,比如:1-4。当无法解析时,输入内容被认为是需要完整打印的内容。
- \item[number] 连续出版物的期或报纸的版次,输入与volume类似。或者是专利等的号时,直接输入需要打印的内容。
- \item[journal] 用于连续出版物析出文献,表示连续出版物的题名,比如期刊、报纸的提名,直接输入需要打印的内容。journaltitle,journalsubtitle域类似处理。
- \item[version] 用于report和manual的版本信息,直接输入需要打印的内容。
- \item[mark/usera] 不用输入,自动处理。也可以输入文献类型标识符比如M, J, DB, CP等。
- \item[medium] 不用输入,自动处理。也可以输入文献载体标识符比如MT, DK, CD, OL 等。
- \item[language] 不用输入,自动处理。也可以输入语言类型比如english, russian, french, japnese, korean, chinese等。主要用来标识文献的语言类型,用法详见\ref{sec:multilan:combine}节。
- \item[langid] 不用输入,自动处理。也可以输入语言名比如english, russian, french 等,中日韩语一般用english。主要用于配合babel等宏包进行文献的本地化字符串处理,用法详见\ref{sec:multilan:combine}节。
- \item[nameformat] 不用输入。当需要调整当前条目的作者姓名的格式时,可以输入格式名:uppercase, lowercase, givenahead, familyahead, pinyin 等。详见\ref{sec:added:opt}节。
- \item[namefmtid] 不用输入。
-\end{description}
-
-除了上述输入内容要求外,GB/T 7714-2015还有对数字、字母大小写等有一些格式要求,这些细节需要注意,请参考:
-\begin{itemize}
-\item 数字:\ref{sec:fmt:number}节
-\item 字母大小写:\ref{sec:fmt:lettercase}节
-\item 卷和期:\ref{sec:fmt:volnum}节
-\item 版次:\ref{sec:fmt:edition}节
-\item 出版项:\ref{sec:fmt:pubitem}节
-\item 页码:\ref{sec:fmt:pages}节
-\end{itemize}
-
-\subsubsection{其它注意事项}\label{sec:pkg:hints}
-
-\begin{enumerate}
-
- \item 本样式包的设计与实现方法以及涉及到的一些biblatex功能介绍,以项目示例的形式总结在
- \href{https://github.com/hushidong/biblatex-solution-to-latex-bibliography}{\LaTeX 文档中文参考文献的biblatex解决方案}中,本文档不再重复给出,有需要了解的用户可以参见其中的第3.1节。
-
- \item tex源文档既可以用xelatex编译,也可以利用pdflatex或latex进行编译。但要注意的是pdflatex编译可能因为某些样式比如authoryear,使用了xstring宏包中的一些命令而导致错误,但numeric类样式通常没有问题。该问题在biblatex更新到3.12版本后取消xstring 宏包后得以解决。
-
- 中文用户编译还需要注意编码问题。
- utf-8编码的文档,采用xelatex 编译没有任何注意事项,但使用pdflatex编译时,需要给ctex 宏包加载UTF8选项,比如 \verb|\usepackage[UTF8]{ctex}| 。
-
- 该选项在文档类加载时给出也可,比如 \verb|\documentclass[UTF8]{article}| ,
- 同时\bc{文献引用时所用关键词应采用英文},比如 \verb|\cite{zhangml2008}| 而不能包含中文,比如 \verb|\cite{张敏莉2008}|。
-
- 当文档使用其他编码时,可以利用notepad++ 或notepad2 等编辑器将其转换为UTF-8编码。若不进行转换,使用xelatex编译通常需要指定一个文档编码,比如windows 环境下的GB2312 编码的文档需要指定\verb|\XeTeXinputencoding "GBK"|,否则会显示乱码。使用pdflatex进行编译时,如果biblatex不能正确的处理编码问题,那么需要为其明确的指定texencoding和bibencoding 选项。比如windows环境下的GB2312编码的文档,需要指定\verb|\usepackge[texencoding=GBK]{biblatex}|。
-
- %增加了对GBK支持的说明,2018-05-11
-
- \item 当顺序编码和著者-出版年制切换,或者biblatex版本切换,或者不同样式切换时,如果编译出错,可先清理一下辅助文件,完成后再重新编译。
-
- \item 当bibtex键中含有中文的时候,texlive2015中的biblatex3.0版的对参考文献条目的超链接会出现问题,而texlive2016中的biblatex3.4或以后的版本则没有问题。
-
- \item GB/T 7714-2015中的著者-出版年制要求参考文献按文种集合,且中文在前英文在后。主要通过gblanorder选项、排序模板DeclareSortingScheme\{gb7714-2015\} (biblatex3.7 以前版本) 或 DeclareSortingTemplate\{gb7714-2015\} (biblatex3.8以后版本)、以及自动判断的language 域实现。一般情况下样式能够正确区分不同语言文献,如果出现错误,用户可以手动修改bib源文件,将language 域设置为正确的语言,详见\ref{sec:usage:bbx} 节的说明。
-
-%上一段2016-1114更新,下面这段是旧的说法,
-%通过定义DeclareSortingScheme\{nyt\},设置方向为direction=descending,可以实现中文在前英文在后但两个文种的文献各自也是降序的。还有一种变通的方法是,在录入bib文件时,在userb域填入用于排序的信息,比如需要排前面中文文献填cn,排后面的英文文献用en。这样因为修改后的排序格式nyt会在author域前先用userb进行排序,自然会把中文文献放在前面。
-
- \item 对于出版地和出版者同时缺省的替换处理,GB/T 7714-2015中没有给出明确说明,但给出了一个英文文献示例(见GB/T 7714-2015 附录A.3),形式为: [S.l. : s.n.],尽管中文没有示例,这里也考虑类似的格式,比如: [出版地不详 : 出版者不详]。
-
- %,这种形式本样式没有给出,而直接用两者分开的形式,[S.l.] : [s.n.]
-
- %事实上这里作者认为没有必要把s.l.和s.n. 合起来,不仅与缺省两者之一的情况不统一,样式处理起来也增加不必要的麻烦。
-
- \item 目前符合 GB/T 7714-2005 或 GB/T 7714-2015 参考文献著录规则的biblatex 样式有多个实现,除本样式外,还有李志奇(icetea)\footnote{\url{http://bbs.ctex.org/forum.php?mod=viewthread&tid=74474}} 和沈周(szsdk)\footnote{\url{http://bbs.ctex.org/forum.php?mod=viewthread&tid=152561&extra=page\%3D1}} ,其效果是类似的。此外,Casper Ti. Vector提供的biblatex 样式caspervector 也是不错的中文参考文献样式
- \footnote{\url{https://gitlab.com/CasperVector/biblatex-caspervector}}。感谢各位作者的分享!
-
- \item 由于biblatex宏包的组成比较复杂,所以查找具体命令的代码会比较麻烦。总体来说,包括各种bbx,cbx文件,重点是biblatex.sty,biblatex.def,standard.bbx,还有blx-dm.def 等一些设置文件。另外不要忘记lbx文件,这里面也有一些语言相关的命令,比如\verb|\bibrangedash|,\verb|\finalandcomma|等。至于其它一些tex 原始命令可以从tex、xetex的相关书籍文档查找,latex 相关代码则可以从latex2e,etoolbox等说明文档或latex.ltx,etoolbox.STY等源代码文档中查找。注意多使用meaning命令来获取命令的定义。
-
-
-% \item 本文档根据GB/T 7714-2015提供的参考文献表著录格式示例做了测试和验证,详见第\ref{sec:eg:gb77142015}节。
-% 测试系统环境为:
-% \begin{itemize}
-% \item windows7x86+texlive 2014,采用xelatex编译;
-%
-% \item windows7x64+texlive 2015,采用xelatex编译;
-%
-% \item 虚拟机xp+texlive 2016,采用xelatex编译;
-%
-% \item Deepin linux-x64v15.3+texlive 2016,采用xelatex编译。
-%
-% \item windows7x64+texlive 2017,采用xelatex编译;
-% \end{itemize}
-
-\end{enumerate}
-
-
-
-
-\section{参考文献著录格式示例}\label{sec:eg:gb77142015}
-
-%\subsection{GB/T 7714-2015 中的著录标准和顺序编码制示例}
-
-%\includepdf[pages={1-5}]{egfigure/eggbcitation.pdf}
-
-
-%\subsection{GB/T 7714-2015 中的著者年份制示例}
-
-%\includepdf[pages={1-2}]{egfigure/eggbcitationay.pdf}
-
-%\subsection{GB/T 7714-2015 中的附录参考文献示例}
-
-%\includepdf[pages={1-4}]{egfigure/eggbbiblio.pdf}
-
-
-
-\subsection{GB/T 7714-2015 标准示例}
-
-详见文档:\href{run:./stdGBT7714-2015.pdf}{stdGBT7714-2015.pdf}
-
-\subsection{多语言支持相关测试示例}
-
-详见文档:\href{run:./stdgbT7714-2015lan.pdf}{stdgbT7714-2015lan.pdf}
-
-\subsection{国内一些大学学位论文文献格式相关测试示例}
-
-详见文档:\href{run:./stdgbT7714-2015thesis.pdf}{stdgbT7714-2015thesis.pdf}
-
-\subsection{更多示例}
-
-\begin{itemize}
-
- \item 示例: beamer类中的参考文献示例
-
- \item 示例: 专著book和专著中的析出文献inbook及标准standard文献
-
- \item 示例: 连续出版物periodical和连续出版物中的析出文献article
-
- \item 示例: 电子资源或在线资源online
-
- \item 示例: 学位论文thesis、专利文献patent
-
- \item 示例: 报告report、手册manual和档案、未出版物unpublished
-
- \item 示例: 会议文集proceedings和会议文集中析出的文献inproceedings
-
- \item 示例: 汇编collection和汇编中的析出文献incollection
-
- \item 示例: online条目仅存url信息
-
- \item 示例: 传统和新增条目类型的兼容性
-
- \item 示例: 中英文判断信息中存在编组时的处理
-
- \item 示例: 处理参考文献信息中\&等特殊字符
-
- \item 示例: 处理著者-出版年制article中卷信息缺省的标点
-
- \item 示例: 标题中有\textbackslash LaTeX\{\}等名称时的情况
-
-\end{itemize}
-
-beamer类示例,参见: \href{run:./example/egbeamer.tex}{顺序编码制};
-\href{run:./example/egbeameray.tex}{著者-出版年制}。
-
-其它示例,参见:
-\href{run:./example/testallformat.tex}{testallformat.tex}。
-
-详见文档:
-\href{run:./example/stdGBT7714-2015eg.pdf}{stdGBT7714-2015eg.pdf},
-\href{run:./example/stdgbT7714-2015fmt.pdf}{stdgbT7714-2015fmt.pdf}。
-
-
-\section{GB/T 7714-2015 标准说明与实现}\label{sec:gbt:std}
-
-\subsection{顺序编码制}
-
-\subsubsection{参考文献表}\label{sec:bib:serialno}
-
-GB/T 7714-2015规定采用顺序编码制组织参考文献时,各篇文献应按正文部分标注的序号依次列出。具体参考GB/T 7714-2015 第9.1节。
-
-\subsubsection{文献标注法}
-标注则根据在正文中引用的先后顺序连续编码,将序号置于方括号内。
-
-同一处引用多篇文献,各篇序号间用逗号隔开,遇连续序号,起讫序号用短横线连接。
-
-多次引用同一著者的同一文献时,可在序号的方括号外著录该文献引文页码,这一要求与引用(标注)样式无关,需要作者在写文档时使用相应的引用命令并在需要时输入页码信息。针对这一要求,在cite等常用命令基础上,新定义了一个引用命令pagescite,其使用方式详见第\ref{sec:cbx:usage}节。标注样式更详细要求参考GB/T 7714-2015 第10.1节。
-
-如果顺序编码制采用脚注方式,则序号由计算机自动生成圈码。多次引用同一著者的同一文献时,若采用脚注方式应重复著录参考文献,但在参考文献表中的著录项目可以简化文献序号和页码,也就是说,每个文献引用都要对应的一个脚注,脚注的内容为文献条目,但条目的内容可以简化为文献序号和页码。
-
-脚注方式的顺序编码制与一般的顺序编码制的主要差别在于:
-一、正文每个文献需要引用均生成脚注文献,因此一个引用命令只能带一个文献引用关键字。且正文中引用的标注标签格式不同,是带圈的上标数字而不是[]包围的数字。
-二、脚注中的文献表即便是遇到相同文献也需要重复输出,但可以简化为序号和页码。
-
-事实上如果不进行简化而只是简单重复输出,对于biblatex来说处理其实更方便,但为了与GB/T 7714-2015 标准给出的示例一致,biblatex-gb7714-2015也做了实现,注意:脚注方式文献表的引用命令为\verb|\footfullcite|,需要注意由于脚注本身表格中存在的问题,可能导致在其中使用该命令出现比较奇怪的现象,也要注意在图表标题中的使用情况。GB/T 7714-2015 标准中示例实现如图\ref{fig:numeric:footnote}所示:
-
-\begin{figure}[!htb]
-\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
-width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
-leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
-\centering
-\deflength{\textparwd}{\linewidth-1cm}
-\includegraphics[width=\textparwd]{egfootstyle.pdf}
-\end{tcolorbox}
-\caption{顺序编码制的脚注方式}\label{fig:numeric:footnote}
-\end{figure}
-
-
-\subsection{著者-出版年制}
-
-\subsubsection{参考文献表}
-
-GB/T 7714-2015规定采用著者-出版年制组织时,各篇文献首先按文种组织,可分为中文,日文,西文,俄文和其他文种等部分;然后按照著者字顺和出版年排列。中文文献可以按著者汉语拼音字顺排序,也可按笔画顺序排列。具体参考GB/T 7714-2015第9.2节。
-
-%(因为需要根据语言进行划分,所以语言(language)域对于录入文献来说可能是必要的,因为作者的测试仅涉及中英文两种语言,没有遇到需要language域的情况。)
-
-\subsubsection{文献标注法}
-各篇文献的标注内容由著者姓(lastname/family)和出版年构成,并置于()内。对于使用汉字的语言来说,整个姓名都是 lastname/family 所以标注的是全名。机构团体名也整体标注。
-
-若正文中已有著者姓名,则()内只标注出版年,这一点样式文件无法判断,只能是文档作者自身把握,当然本样式提供了标签只有年份、附加年份和页码信息的引用命令yearpagescite/yearcite,方便文档作者使用,使用方法详见第\ref{sec:cbx:usage}节。当然文档作者还可以使用textcite命令同时给出满足格式要求的作者和年份信息,本样式已做支持。
-
-引用多个著者的文献时,对西文只需标注第一著者的姓(而在参考文献列表中的作者按最大数量三个处理,这与顺序编码制一致,参考GB/T 7714-2015第8.1.2节),其后附“et al.”,对于中文著者,标注第一著者的姓名,其后附“等”。姓名与“et al.”“等”间留适当空隙。
-
-\bc{注意到在GB/T 7714-2015第10.2.1节给出的例子中作者姓的大小写格式与参考文献表中的要求是不同的,这说明标注中的作者姓名是由写文档的作者来决定的,因此本样式文件原样输出bib源文件中作者姓的大小格式}。
-
-引用同一著者同一年出版的多篇文献时,出版年后应采用小写字符a,b,c等区别。
-
-多次引用同一著者的同一文献,在正常标注外,需在()外以角标形式著录引文页码,这一问题样式文件无法判断,只能提供可以形成该格式的引用命令,供文档作者使用,因此提供pagescite命令,使用方法详见第\ref{sec:cbx:usage}节。
-
-标注要求具体参考GB/T 7714-2015第10.2节。
-
-\qd{一般情况下,当文献作者缺省时,著者-出版年制就没有作者可以用,因此文献题名用来生成标签,这样会导致文献表中文献题名后的文献类型标识/文献载体标识消失(这是因为题名用于生成标签后,题名域会被清除,自然也就不输出题名相关的信息了,见后面的示例文献“\hyperlink{entrystdwithoutauthor}{Information and documentation-the Dublin core metadata element set}”)。此时可以用佚名替代缺省作者的方式避免这个问题,即可以使用样式文件提供的选项gbnoauthor=true,一旦设置该选项为true,则缺省的作者会根据文献语种填充为佚名或Anon。默认情况下,不进行这种处理,即相当于设置选项gbnoauthor=false。而顺序编码制因为标签是数字序号,所以不存在这个问题。}
-
-%本样式文件默认情况下采用佚名方式,如果不需要使用佚名,那么需要在样式文件中注释掉一段代码,这段代码在本文档末尾2016-11-14的更新历史中有说明,见\pageref{up:20161114}页。}
-
-\subsection{各类文献在biblatex中对应的条目和域}\label{sec:numeric:data}
-biblatex-gb7714-2015宏包设计的重要原则是要符合GB/T 7714-2015标准。因此根据GB/T 7714-2015 的要求并结合biblatex的条目类型和数据域,对各类参考文献做如下考虑:
-\subsubsection{专著/book}
-\begin{refentry}{}{}
-专著对应的biblatex的entrytype为:book,文献类型标识用M表示。
-
-\bibliofmt{其著录格式为}(参考GB/T 7714-2015第4.1节):\\
-主要责任者.题名:其他题名信息[文献类型标识/文献载体标识].其他责任者.版本项.出版地:出版者,出版年:引文页码[引用日期].获取和访问路径.数字对象唯一标识符.
-\end{refentry}
-
-其对应的biblatex数据域为:
-\begin{example}{专著/book条目的域格式}{eg:bookfieldfmt}
-\begin{texlist}
-author.title[usera].translator.edition.location:publisher,date或year:pages[urldate].url.doi
-\end{texlist}
-\end{example}
-
-其中标题相关的附加信息除了可以直接在title域中录入外,还可以在subtitle或titleaddon域中添加,后面出现的booktitle,journaltitle,也有类似情况,可以在booktitleaddon或者journalsubtitle中附加信息。其中出版地用location域表示,也可以用传统的address表示,biblatex将address作为location的别名处理,使用两者中的任何一个都可以表示出版地信息。\bc{特别强调: usera域不用录入,该域内容由bbx样式文件根据条目类型自动处理得到。}
-
-\qd{由于biblatex不支持standard条目类型,所以“标准”类型可以用book或inbook替代,但使用note域等于standard作为一个区分,当note域数据存在且内容等于standard时,就将其作为“标准”文献进行处理,其文献类型标识用S表示。这里为什么使用note域而不是type域和keywords域,是因为考虑到note域一般情况下没有什么特殊意义,使用它不会导致冲突,而type域在biblatex标准样式中没有被book和article条目类型当作支持的域,对于支持该域的条目比如thesis,type域又有特殊的意义,是用来区分master和doctor的,而keywords域倒是可以使用,只是该域一般很少在jabref之类软件的默认域中,需要进一步设置,而且可能带来不通用的问题。}
-
-\subsubsection{标准/standard}\label{sec:standard}
-“标准”(standard)作为一种文献条目类型biblatex并不支持,因此直接利用book或inbook类型加note域等于standard代替。当然为了兼容传统BIBTeX格式存在standard类型的情况,也可以直接使用standard类型。
-为此本样式对standard条目类型做了特别支持。著录格式的处理原理与前一节所述相同,只是利用动态数据将standard类型转换为book/inbook类型。在bib文件中直接使用standard类型时注意使用其它biblatex样式时可能存在移植障碍,因为其它样式可能不支持standard类型。
-
-\begin{refentry}{}{}
-标准对应的biblatex的entrytype为: standard。文献类型标识用S表示。
-
-\bibliofmt{其著录格式为}(与book和inbook类型类似,其中圆括号内是与inbook类似时存在的内容,此外当出版地和出版者不存在时直接忽略,这是与book和inbook不同的地方。):\\
-主要责任者.文献题名[文献类型标识/文献载体标识].其他责任者(//所在文献集主要责任者.文献集题名:其他题名信息).版本项.出版地:出版者,出版年:文献的页码[引用日期].获取和访问路径.数字对象唯一标识符.
-\end{refentry}
-
-其对应的biblatex数据域为:
-\begin{example}{标准/standard条目的域格式}{eg:standardfieldfmt}
-\begin{texlist}
-author.title[usera](//bookauthor.booktitle).edition.location:publisher,date或year:pages[urldate].url.doi
-\end{texlist}
-\end{example}
-
-\emph{需要注意的是: 根据GB/T 7714-2015标准第19页的标准文献示例,当标准不存在出版项时,直接省略}。
-
-
-\subsubsection{专著中的析出文献/inbook}
-\begin{refentry}{}{}
-专著中的析出文献对应的biblatex的entrytype为: inbook。文献类型标识用M表示。
-
-\bibliofmt{其著录格式为}(参考GB/T 7714-2015第4.2节):\\
-析出文献主要责任者.析出文献题名[文献类型标识/文献载体标识].析出文献其他责任者//专著主要责任者.专著题名:其他题名信息.版本项.出版地:出版者,出版年:析出文献的页码[引用日期].获取和访问路径.数字对象唯一标识符.
-\end{refentry}
-
-其对应的biblatex数据域为:
-\begin{example}{专著析出文献/inbook条目的域格式}{eg:inbookfieldfmt}
-\begin{texlist}
-author.title[usera]//bookauthor.booktitle.edition.location:publisher,date或year:pages[urldate].url.doi
-\end{texlist}
-\end{example}
-
-\subsubsection{连续出版物/periodical}
-\begin{refentry}{}{}
-连续出版物对应的biblatex的entrytype为: periodical。文献类型标识用J表示。
-
-\bibliofmt{其著录格式为}(参考GB/T 7714-2015第4.3节):\\
-主要责任者.题名:其他题名信息[文献类型标识/文献载体标识].年,卷(期)-年,卷(期).出版地:出版者,出版年[引用日期].获取和访问路径.数字对象唯一标识符.
-\end{refentry}
-
-其对应的biblatex数据域为:
-\begin{example}{连续出版物/periodical条目的域格式}{eg:periodicalfieldfmt}
-\begin{texlist}
-author/editor.title[usera].year或date,volume(number)-endyear, endvolume(endnumber).location:institution,date 或year[urldate].url.doi
-\end{texlist}
-\end{example}
-
-其中连续出版物的出版者用institution表示。
-\qd{因为连续出版物可能用到两个日期,两个卷,两个期,所以录入数据时需要特别处理。不需要录入endyear等信息,只需要在到year或date域录入两个日期,由biber自动解析,由于一个日期内部的年月日之间是用-进行分隔,因此两个日期之间用/分隔。而卷和期由于可能有合订模式,且合订卷期之间用/分隔(参考GB/T 7714-2015第8.8.3节),因此如果需要解析有起止范围的卷和期,录入到volume和number域的信息中起止值之间应用-分隔。}
-
-\subsubsection{连续出版物的析出文献/article}
-\begin{refentry}{}{}%[break at=0.5cm/0pt]
-连续出版物的析出文献对应的biblatex的entrytype为: article。文献类型标识用J表示。
-
-\bibliofmt{其著录格式为}(参考GB/T 7714-2015第4.4节):\\
-析出文献主要责任者.析出文献题名[文献类型标识/文献载体标识].连续出版物题名:其他题名信息,年,卷(期):页码[引用日期].获取和访问路径.数字对象唯一标识符.
-
-注意:从GB/T 7714-2015第4.4.2节的示例可以看到对于带网址的article在引用日期前可以加上修改更新日期。
-\end{refentry}
-
-其对应的biblatex数据域为:
-\begin{example}{连续出版物析出文献/article条目的域格式}{eg:articlefieldfmt}
-\begin{texlist}
-author.title[usera].journaltitle或journal,year,volume(number):pages[urldate].url.doi
-\end{texlist}
-\end{example}
-
-\qd{由于biblatex不支持newspaper 条目类型,所以条目类型报纸析出的文献用article表示,但使用note域等于news作为一个区分,当note域数据存在且内容等于news时,就将其作为报纸的析出文献进行处理。报纸文献类型标识用N表示,报纸的版次用number域描述。}
-
-\subsubsection{报纸析出的文献/newspaper}\label{sec:standard}
-biblatex没有将报纸的析出文献(newspaper)作为一种文献条目类型,因此可以直接利用article类型加note域等于news代替,或者也可以直接使用newspaper类型。为方便使用考虑,本样式增加了对新条目类型newspaper的支持,这种支持通过类似于standard类型的方式实现,没有对数据模型进行改动或增加,而完全利用动态数据修改将newspaper类型转换为article类型。在bib文件中直接使用newspaper类型时需要注意可能存在移植障碍,因为其它biblatex样式可能不支持newspaper类型。
-
-\begin{refentry}{}{}
-报纸析出的文献对应一个新的entrytype为: newspaper。文献类型标识用N表示。
-
-\bibliofmt{其著录格式为}(类似于article):\\
-析出文献主要责任者.析出文献题名[文献类型标识/文献载体标识].报纸题名:其他题名信息,日期(版号)[引用日期].获取和访问路径.数字对象唯一标识符.
-\end{refentry}
-
-其对应的biblatex数据域为:
-\begin{example}{报纸析出的文献/newspaper条目的域格式}{eg:newspaperfieldfmt}
-\begin{texlist}
-author.title[usera].journaltitle或journal,date(number)[urldate].url.doi
-\end{texlist}
-\end{example}
-
-\qd{newspaper类型与article类型的差别主要是(1)文献标识码不是J而是N;(2)报纸的日期需要表示到日。(3)报纸不需要修改和更新日期。注意:报纸名应用journal或journaltitle域录入,与article保持一致。}
-
-\subsubsection{专利/patent}
-\begin{refentry}{}{}%[break at=3cm/0pt]
-专利文献对应的biblatex的entrytype为: patent。文献类型标识用P表示。
-
-\bibliofmt{其著录格式为}(参考GB/T 7714-2015第4.5节):\\
-专利申请者或所有者.专利题名:专利号[文献类型标识/文献载体标识].公告日期或公开日期[引用日期].获取和访问路径.数字对象唯一标识符.
-\end{refentry}
-
-其对应的biblatex数据域为:
-\begin{example}{专利文献/patent条目的域格式}{eg:patentfieldfmt}
-\begin{texlist}
-author.title:number[usera].date或year[urldate].url.doi
-\end{texlist}
-\end{example}
-
-\qd{需要注意:公告日期或公开日期需要表示到日。}
-
-\subsubsection{电子资源/online}
-\begin{refentry}{}{}%[break at=0.4cm/0pt]
-电子资源对应的biblatex的entrytype为: online或electronic或者www。文献类型标识用EB表示。
-\bc{(注意: biblatex将electronic或www作为online条目类型的别名,对于标准样式来说这两者出现在bib文件中等同于online,但这种等同标准样式是在驱动层进行处理的,而gb7714-2015样式还需要处理文献类型标识,本样式文件做了进一步支持。因此bib文件中也可以直接使用electronic和www。)}
-
-\bibliofmt{其著录格式为}(参考GB/T 7714-2015第4.6节):\\
-主要责任者.题名:其他题名信息[文献类型标识/文献载体标识].出版地:出版者,出版年:引文页码(更新或修改日期)[引用日期].获取和访问路径.数字对象唯一标识符.
-\end{refentry}
-
-其对应的biblatex数据域为:
-\begin{example}{电子资源/online/electronic/www条目的域格式}{eg:onlinefieldfmt}
-\begin{texlist}
-author.title[usera].organization/instiution,date或year:pages(date/enddate/eventdate)[urldate].url.doi
-\end{texlist}
-\end{example}
-
-\qd{尽管GB/T 7714-2015中给出的著录格式包含出版地和出版者,但通常情况下具有出版地和出版者的文献会归类到其它条目类型中,至于存在的url信息,只要标识文献载体即可,即一般情况下(出版地:出版者,出版年:引文页码)这些信息很少出现在online[EB]条目中。因此默认情况下,gb7714-2015样式只处理出现organization或instiution中的出版者信息,此外用date表示更新或修改日期,urldate表示引用(访问)日期。如果出现复杂情况,更新或修改日期还可以利用enddate/eventdate表示。注意修改日期需要表示到日}
-
-以上是GB/T 7714-2015直接给出著录格式的条目类型,还有一些类型并没有给出具体格式,但在例子中也有所体现,本样式文件根据这些例子,给出了著录格式。
-
-\subsubsection{汇编或论文集/collection}
-
-\begin{refentry}{}{}
-汇编文献对应的biblatex的entrytype为:collection。文献类型标识用G表示。
-
-\bibliofmt{其著录格式为} 采用与book一致的格式。
-\end{refentry}
-
-\subsubsection{汇编或论文集析出中的文献/incollection}
-\begin{refentry}{}{}
-汇编中的析出文献对应的biblatex的entrytype为:incollection。文献类型标识用G表示。
-
-\bibliofmt{其著录格式为} 采用与inbook一致的格式。
-\end{refentry}
-
-\subsubsection{会议录或会议文集/proceedings}
-\begin{refentry}{}{}
-会议文集的biblatex的entrytype为:proceedings。文献类型标识用C表示。
-
-\bibliofmt{其著录格式为} 采用与book类似的格式。
-\end{refentry}
-
-\subsubsection{会议文集中析出的文献/inproceedings}
-\begin{refentry}{}{}
-会议文集中析出的文献对应的biblatex的entrytype为:inproceedings。文献类型标识用C表示。
-\bc{(注意: biblatex将conference作为inproceedings条目类型的别名,对于标准样式来说conference出现在bib文件中等同于inproceedings,但这种等同标准样式是在驱动层进行处理的,而gb7714-2015样式还需要处理文献类型标识,本样式文件做了进一步支持。因此bib文件中也可以直接使用conference。)}
-
-\bibliofmt{其著录格式为} 采用与inbook类似的格式。
-\end{refentry}
-
-
-\subsubsection{报告/report}
-\begin{refentry}{}{}
-报告对应的biblatex的entrytype为: report。文献类型标识用R表示。\bc{(注意:biblatex将techreport作为report条目类型的别名,对于标准样式,techreport出现在bib文件中等同于report,但这种等同标准样式是在驱动层处理的,而gb7714-2015样式还需要处理文献类型标识,本样式文件做了进一步支持。因此bib文件中也能直接使用techreport类型。)}
-
-\bibliofmt{其著录格式为} (由biblatex的标准report格式修改得到,注意当出版地和出版者不存在时忽略这两项)
-
-主要责任者.题名:其他题名信息[文献类型标识/文献载体标识].其他责任者.类型.号码.版本项.出版地:出版者,出版年:引文页码[引用日期].获取和访问路径.数字对象唯一标识符.
-\end{refentry}
-
-其对应的biblatex数据域为:
-\begin{example}{报告/report/techreport条目的域格式}{eg:reportfieldfmt}
-\begin{texlist}
-author.title[usera].translator.type number.version.location:institution,date 或year:pages[urldate].url.doi
-\end{texlist}
-\end{example}
-
-\qd{因为有的报告文献可能存在类型和报告号信息,比如AIAA 9076或AD 730029等,所以著录格式需要有所体现,而这两个数据体现在type和number两个域中,或者在version域中体现也可,而对于标题中的出现的报告号,可以直接在标题或子标题或者附加标题中体现。report的版本信息放在version域中,而不是book等条目的edition域中。report类型出版项处理基本与book一样,但当出版项缺省时且存在网址时,直接省略出版项,且加上修改和更新日期,因此将其转换为online类型处理。从report开始,后面的所有类型,当不存在出版项且存在网址时,都以online的格式进行处理。}
-
-\subsubsection{手册或档案/manual/archive}
-\begin{refentry}{}{}
-手册和档案采用一种格式,对应的biblatex的entrytype为: manual或archive。文献类型标识用A表示。
-
-\bibliofmt{其著录格式为} 借用thesis格式处理,而不是标准样式中的manual格式,这种方式下,当没有出版地和出版者时,完全省略。
-\end{refentry}
-
- \bc{manual出版者用institution域表示,体现的是机构而不是一般的出版社。注意:manual类型的出版项缺失时直接省略。}
-
-\subsubsection{学位论文/thesis}
-\begin{refentry}{}{}
-学位论文对应的biblatex的entrytype为: thesis。文献类型标识用D表示。\bc{(注意:biblatex将mastersthesis或phdthesis作为thesis条目类型的别名,对于标准样式来说这两者出现在bib文件中基本等同于thesis,但却会增加type信息。但这种等同,标准样式是在驱动层进行处理的,而gb7714-2015样式还需要处理文献类型标识并且不需要type信息,本样式文件做了进一步支持。因此bib文件中也可以使用mastersthesis和phdthesis)。}
-
-\bibliofmt{其著录格式为} 由biblatex的标准thesis格式修改得到。
-
-主要责任者.题名:其他题名信息[文献类型标识/文献载体标识].其他责任者.出版地:出版者,出版年:引文页码[引用日期].获取和访问路径.数字对象唯一标识符.
-\end{refentry}
-
-其对应的biblatex数据域为:
-\begin{example}{学位论文/thesis/mastersthesis/phdthesis条目的域格式}{eg:thesisfieldfmt}
-\begin{texlist}
-author.title[usera].translator.location:institution,date或year:pages[urldate].url.doi
-\end{texlist}
-\end{example}
-
- \bc{由于thesis类型出版项缺失时直接省略,格式与manual一致,借用manual类型输出。}
-
-
-\subsubsection{未出版物/unpublished}
-\begin{refentry}{}{}
-未出版物,对应的biblatex的entrytype为: unpublished。文献类型标识用Z表示。
-
-\bibliofmt{其著录格式为} 借用manual格式处理。
-\end{refentry}
-
-\subsubsection{备选类型}
-\begin{refentry}{}{}
-备选/其它(misc),文献类型标识用Z表示。
-
-\bibliofmt{其著录格式为} 当存在网址时直接转换为online类型,由于howpublished域可用于描述一些详细信息,因此不存在网址时,独立作为一种格式处理。
-\end{refentry}
-
-\subsubsection{更多类型}
-\begin{refentry}{}{}
-数据库(database)标识符(DB)、数据集(dataset)标识符(DS)、软件(software)标识符(CP)、舆图(map)标识符(CM)。
-
-\bibliofmt{其著录格式为} 借用manual格式处理。
-\end{refentry}
-
-
-
-\subsection{标准的其它细节要求}
-
-除了第\ref{sec:numeric:data}节针对不同条目类型的著录格式要求外,GB/T 7714-2015 还有一些细节规定比如文字、符号等,biblatex-gb7714-2015宏包做如下考虑,
-示例见文档\href{run:./stdGBT7714-2015.pdf}{stdGBT7714-2015}:
-
-\subsubsection{数字}\label{sec:fmt:number}
-
-\begin{property}{}{}
-用户录入文献数据中包含数字时,gb7714-2015按照GB/T 7714-2015第6.2节要求输出阿拉伯数字。
-\end{property}
-
-\subsubsection{英文字母}\label{sec:fmt:lettercase}
-
-\begin{property}{}{}
-为了符合西文文献责任者的字母大小写习惯,gb7714-2015通过判断是否存在givenname/firstname来确定是否是个人作者,当存在givenname/firstname 时认为是个人作者,不存在则是机构作者,当是个人作者时familyname/lastname按GB/T 7714-2015 要求全大写,是机构作者则仅大写首字母。所以为满足GB/T 7714-2015 第6.3节要求,对于仅有英文姓(lastname)的个人作者,用户录入时字母应全大写。
-
-用户录入出版项、西文期刊名缩写以及西文文献的字母时,应按照GB/T 7714-2015第6.4节,第6.5节,6.6节要求,使用符合要求的习惯用法和大小写方式,gb7714-2015以原样打印的方式处理。
-
-对于英文大小写问题,GB/T 7714-2015除了责任者的大写要求外,其它要求均比较模糊,但提到可参照ISO 4的要求。但实际上,不同的期刊可能会有各自不同的要求。从笔者的经验看,一般国内的期刊对于字母大小写通常要求: 责任者(全部大写); 题名(句首字母大写其它全部小写); 期刊名会议名(单词首字母大写); 出版项和其它(单词首字母大写)。所以用户在录入bib文件时可以按照这种常见方式来输入以减少后期修改。
-\end{property}
-
-\subsubsection{标点}
-
-\begin{property}{}{}
-用户录入引文信息时不需要考虑域之间的标点符号,只需录入各数据域时考虑习惯的标点用法。gb7714-2015实现了GB/T 7714-2015第7节所给出的著录用符号要求。
-\end{property}
-
-\subsubsection{责任者}
-
-\begin{property}{}{}
-用户录入引文的责任者信息时,当责任者为多级机关团体时,用户填入auther信息时,应按照GB/T 7714-2015第8.1.4节要求,用英文句点.号分隔。
-
-当责任者是个人英文名,且具有名、姓、前缀和后缀,应按照第\ref{sec:bib:bibtex}节给出姓名录入方式处理才能正确解析,比如:von Peebles, Jr., P. Z.,其中von为姓前的前缀,Jr.为姓后的后缀,P. Z. 为缩写名(包括first name 和middle name)。
-
-gb7714-2015实现了GB/T 7714-2015第8.1节要求的责任者样式,能自动判断责任者语言并分别处理,设置了全局选项useprefix=true以使用前缀,增加了gbnamefmt选项用于设置不同的姓名输出格式。
-\end{property}
-
-\subsubsection{文献类型标识和载体}
-
-\begin{property}{}{}
-用户录入引文题名信息时,无需给出文献类型标识/文献载体标识。同一责任者的合订题名,应用户根据GB/T 7714-2015 第8.2.1节的要求,在多个题名间用英文分号分隔,并整体录入到title数据域中。而分卷号,卷次,册次等信息时,除了专利号用number域录入外,其它可以直接在title数据域或者subtitle/titleaddon等数据域中给出。
-
-gb7714-2015实现了符合GB/T 7714-2015第8.2节要求的格式,能根据条目信息确定文献类型标识/文献载体标识,并在各类参考文献条目驱动中直接使用,也可以利用gbtype选项设置是否输出该信息。各不同类型文献的类型标识/文献载体标识,参考GB/T 7714-2015 表B.1和B.2。
-\end{property}
-
-\subsubsection{版次}\label{sec:fmt:edition}
-
-\begin{property}{}{}
-用户在录入版次信息时,只要录入版次的整数数字比如2,或者录入需要打印的字符串比如明刻本。
-
-gb7714-2015实现了GB/T 7714-2015第8.3节要求的格式,根据edition/version域输入信息分别处理,对于整数则解析后格式化,对于其它特殊版本说明,如新1版,明刻本等,直接在edition域录入后原样打印。
-\end{property}
-
-\subsubsection{出版项}\label{sec:fmt:pubitem}
-
-\begin{property}{}{}
-用户在录入出版项信息时,当出版日期有其它形式的纪年时,将其置于公元纪年后面的()内,并整体录入到 year 数据域(注意不是date域)中,比如: 1845(清同治四年)。而引用/访问日期应录入到 urldate 数据域。当除了出版日期外还有修改/更新日期等时,可在year或date数据域录入第二个日期,并用/符号与前一个出版日期隔开。而专利的公告日期和其它条目类型的出版年应录入到 date 域中。
-
-gb7714-2015实现了GB/T 7714-2015第8.4节要求的格式。当出版地和出版者缺省时,中英文自动区分处理。对于用/符号隔开的两个日期,biblatex后端biber能自动解析,后一个日期数据自动解析到endyear等域可作为修改日期等使用。
-\end{property}
-
-\subsubsection{页码}\label{sec:fmt:pages}
-\begin{property}{}{}
-用户在录入页码信息时,可以在pages域中根据需要录入可解析的页码(即用整数表示页码,起讫页码用-分隔),比如: 81-86。 也可以直接录入需要打印的信息,比如: 序2-3等。
-
-gb7714-2015实现了GB/T 7714-2015第8.5,8.8.2节的要求,对于能解析的页码自动解析后格式化,对于不能解析的页码则原样输出。
-\end{property}
-
-\subsubsection{访问路径URL和DOI}
-\begin{property}{}{}
-用户在录入获取和访问路径、数字对象唯一标识符信息时,将访问路径录入到url域中,数字对象唯一标识符录入到doi域中即可。
-
-gb7714-2015实现了GB/T 7714-2015第8.6,8.7节要求的格式。
-\end{property}
-
-\subsubsection{卷和期}\label{sec:fmt:volnum}
-\begin{property}{}{}%[break at=0.4cm/0pt]
-用户在录入卷、期等信息时,如\ref{sec:bib:bibtex}节中所述,合期的期号用/间隔,比如9/10,填入number域,报纸的版次也填入number域。
-
-gb7714-2015实现了GB/T 7714-2015第8.8节要求的析出文献相关格式。
-\end{property}
-
-
-\section{总结与致谢}
-
-通过对 GB/T 7714-2015 标准的分析,对 biblatex 的学习和理解,在 biblatex 标准样式基础上,设计完成了符合 GB/T 7714-2015 标准的biblatex参考文献样式。从测试实践看,基本能够满足使用要求,用户可以放心使用。遇到问题时,除了可以查看
-本文档说明外,也可以看样式文件代码,其中给出了详细注释,如果遇到无法解决的问题,请邮件联系作者。
-
-%读者若查看样式文件内容可以看到作者对各目标要求所做的修改及,读者也可以根据自己的需求进行修改,作者设计样式文件的思路以及在设计过程中用到的一些biblatex宏包功能说明,详见第\ref{sec:biblatex:mech}节和LaTeX文档中文参考文献的biblatex解决方案的第2.7节。
-
-最后要感谢如下各位师长和朋友,正是在各位的帮助建议下,本样式不断升级逐渐完善。包括: moewew (biblatex 现在的维护者之一,给予不少有益的建议和指导)、 李志奇(基于biblatex的符合GBT7714-2005的中文文献生成工具的作者,工具中的一些设计如usera域的使用/卷期范围解析等带来很多启发,本人之前一直使用该工具,之所以开发biblatex-gb7714-2015其实主要是因为该工具因biblatex升级而无法使用)、caspervector(虽然未曾真正交流,但从biblatex-caspervector样式包中学到很多,包括排序/GBK编码等问题的解决思路)、LeoLiu(刘海洋,给出的CJK字符判断函数
-\footnote{\url{http://bbs.ctex.org/forum.php?mod=viewthread&tid=152663&extra=page\%3D3}} 对本宏包非常有帮助)、chinatex(china tex版主,给了很多建议和帮助,并且一起合作)、Sheng wenbo(biblatex用户手册合作译者,LaTeX2e 插图指南第三版译者,我们一起翻译的过程相互激励相互促进)、zepinglee(gbt7714-2015 bst样式作者,给了很多建议和讨论)、Harry Chen(ctex套件维护者之一,给了不少好的建议)、liubenyuan(关于项目组织给出了很好的建议)、刘小涛(讨论了关于zotero的使用并提出了建议)、ghiclgi(讨论了GB中著者-出版年制标注标签的一些问题)、秀文工作组、leipility、qingkuan、湘厦人、秋平、任蒲军、fredericky123、qiuzhu、chaoxiaosu、Old Jack、Wu Nailong、Yibai Zhang、wayne508、 钟乙源、Xiaodong Yao、dsycircle、rpjshu、zjsdut、谢澜涛、Zutian Luo、海阔天空、zzqzyx、程晨、xmtangjun、蔡伟 等等。当然还有更多朋友提供了bug报告,提出了issue,提供了热心帮助,限于篇幅这里不再一一列举,在此一并表示感谢!
-
-
-\section{存在的问题和下一步工作}
-
-
-\subsection{存在的问题}
-
-\begin{enumerate}
-
- %\item 当作者多于3个需要添加等或et al.时,如果作者的姓名是用\{\}包起来的,可能判断会出错。
- %这个问题已经解决了,本来在\testCJKfirst中如果单靠edef加expandafter 组合,无法处理带编组的字符流。所以考虑利用xstring 宏包的\exploregroups函数来,提取字符到命令中,这一就能真正的获得域中的第一个字符,而不会把一个编组当成一个字符进行判断。2016-1223,详见修改历史1.0e中的说明。
-
- %\item 顺序年制中当不存在著者信息时,如果用佚名或者no author,本样式文件中没有实现。怎么在数据进来后,给一些域添加信息?在biber处理过程中根据一些判断添加信息?(著者年制,没有作者,用佚名,英文怎么办?没有年怎么办?)
- %这个问题解决了,2016-1114
-
- %\item 著者-出版年制引用标签时,文中已经存在作者名的,标签只需要写年份,这个需要定义一个新的yearcite命令,是容易实现的,但这里没有实现。
- %这个问题解决了,2016-1114,增加了一个yearpagescite命令。
-
- %\item backref的格式也可以修改一下。
- %没有要求处理,但修改了,2016-1114,修改英文本地化字符串为引用页面。
-
- %\item shorthand的问题没有遇到,其应用可能需要进一步理解。,主要是获取参考文献的部分信息进行统计和打印。该问题已经解决,参见biblatex-solution-to-latex-bibliography(20180525)。
-
- \item 当专著同时存在作者和编者的时候,GB/T 7714-2015没有明确的规定,所以目前样式文件中以biblatex标准样式的方式处理,这种处理因为与本地化相关,直接应用可能不好看的,也许需要修改。
-
- \item 在各类文献的著录格式中,GB/T 7714-2015 对于出版项给出的就是出版地和出版者,但习惯上不同的类型还是存在差异的,比如专利文献出版项还应该再明确,比如在线资源常用organization表示而无出版地。这些有待进一步明确。
-
- \item 当作者不明时,GB/T 7714-2015 给出的说法是用佚名和其它语言相应的词代替。英文给了一个例子是Anon,似乎是anonymity的缩写。这也有待进一步明确。v1.0l版后将之前用的noauthor换成Anon。
-
- %\item 因为GB/T 7714-2015中给出的了一些著录格式,如果把这些著录格式作为一个严格标准,那么条目中只能出现其中规定的域,而往往在bib文件中可能存在一些另外的信息比如chapter等,而且从标准样式修改的驱动中也仍然带有这些域的处理,如果为了标准化规范化考虑,可以去掉国标中没有提到的域的信息,可能使得内容更为标准,这可以通过修改增加数据模型,数据源动态修改,驱动修改(驱动中目前存在较多的似乎用不到的域,而且意义不是非常明确,这个等到biblatex说明文档中文版完成后再结合它全面的进行梳理)三条路子做到,需要的话,可以在下一步实现(2017-0226)。添加了gbstrict选项后,该问题基本已经解决(20180525)。
-\end{enumerate}
-
-\subsection{下一步工作}
-
-\begin{enumerate}
- \item 到1.0p版本,已经完全实现GB/T 7714-2015样式要求格式,并增加了更多的功能,剩下的问题主要是用户一些特殊需求实现以及可能存在的兼容性问题,需要广大用户发现和建议,非常感谢!
-
- %到目前,无论是基本功能还是附加功能,biblatex-gb7714-2015样式包已经基本够用,剩下的问题可能是一些特殊情况时带来的适应性问题,这需要经过大量的测试来发现问题。如果在使用过程中发现什么问题,请邮件联系作者,非常感谢!
-
- % 到1.0i版为止,进一步完善了: GB7714风格的文献表标签项对齐设计,编组内信息的中英文判断,特殊或老的bibtex 条目类型支持,改善空格设计以满足断行要求,支持了宏包选项(url等)应用,增加了宏包选项用于GB7714风格实现控制(gbpub 等),重新设计了版本兼容方式,以后的版本中将更容易兼容biblatex的升级。
-
- %到1.0h版为止,进一步完善了样式宏包,该版本将是最后支持texlive2015的版本,以后版本的功能实现将基于最新texlive中biblatex 版本,而不再考虑texlive2015中3.0版的biblatex。
-
- %1.0g版增加对mastersthesis,phdthesis,www,electronic,standard,techreport,conference,newspaper等条目类型的兼容,增加了对标准样式standard.bbx中url包选项的兼容性,增加了析出文献标识符//后面的短空格以支持著录表的断行机制,增加了特殊字符处理功能并实现对texlive2015 的兼容,给出了gb7714风格参考文献著录表文本转换为bib文件的perl脚本,与gb7714-2015 样式形成闭环。
-
- %1.0f版完善了gbalign 选项(用于实现GB7714 风格的著录文献表标签,texlive2016 有效),带花括号的责任者的中英文判断等功能对texlive2015 的兼容性。
-
- %到1.0e版为止,功能需求已经完全实现,剩下的问题可能是一些文献具有特殊信息或者特殊情况时带来的适应性问题,这需要经过大量的测试来发现问题。各位朋友如果发现什么问题,请邮件联系,作者会非常感谢!
-
- \item biblatex宏包的说明文档中文版,已经由Shen wenbo和我基本完成,下一步是完善,校对,以及增加新版的内容。如果有朋友觉得这个事情有意义,愿意一起来完成这个事情,非常欢迎,请email联系。
-
- %\item 打算翻译biblatex宏包的说明文档和biber的说明文档,这个已经在进行中,完成了一部分,但因为只是业余时间做,可能最终完成的时间会比较长。如果有朋友觉得这个事情有意义,愿意一起来完成这个事情,非常欢迎,请email联系。
-
-%\item 进一步完善上一节提到的问题。
-\end{enumerate}
-
-\section{更新历史}
-\input{example/updatehistory.tex} %
-
-\input{example/updatehistoryold.tex} %
-
-
-\end{document}
+
+%!Mode:: "TeX:UTF-8"
+%!TEX program = xelatex
+%!BIB program = biber
+
+\documentclass[11pt]{article} %用draft选项找到badbox的位置 twoside,
+\input{biblatex-gb7714-2015-preamble} %宏包和一些格式设置
+\usepackage{microtype}
+%\usepackage[russian,french,english]{babel}
+%\DefineHyphenationExceptions{english}{conf-erence}
+\begin{document}
+
+\hyphenpenalty=100 %断词阈值,值越大越不容易出现断词
+\tolerance=9000 %丑度,10000为最大无溢出盒子,参考the texbook 第6章
+
+
+
+%------------------------------------------------------------
+% 标题和目录
+%------------------------------------------------------------
+\pagestyle{plain}
+\pagenumbering{Roman}
+
+\titleformanual{符合GB/T 7714-2015标准的biblatex参考文献样式
+\footnote{This Manual was created with biblatex v\versionofbiblatex, last revised at \today;\\%
+Style Files (gb7714-2015*.*) have version number: \versionofgbtstyle.}
+\footnote{repository address: \url{https://github.com/hushidong/biblatex-gb7714-2015}}}
+
+\authorformanual{胡振震\setcounter{footnote}{0}\footnote{Email: hzzmail@163.com}}
+
+\dateformanual{2016-07-01}
+
+\titleandauthor
+
+\begin{quotation}
+biblatex-gb7714-2015 宏包是为满足《GB/T 7714-2015~~信息与文献~~参考文献著录规则》要求而开发的 biblatex 样式包。宏包提供两种编制样式: 一、顺序编码制(gb7714-2015);二、著者-出版年制(gb7714-2015ay),能够精确地实现国标提出的著录和标注格式,且具备易用、兼容、灵活等特点,能为国内\LaTeX{}用户提供一个可靠的参考文献生成工具。
+%old:
+%biblatex-gb7714-2015 样式宏包提供了符合《GB/T 7714-2015 信息与文献 参考文献
+%著录规则》要求的 biblatex 参考文献样式。分为两种编制方式: 一、顺序编码制;二、著
+%者-出版年制。配合 biblatex 宏包使用具有较高的兼容性、易用性和灵活性。宏包提供了
+%详细的使用说明,为国内用户生成符合国标的参考文献表提供帮助。
+\end{quotation}
+\phantomsection
+%\addcontentsline{toc}{section}{目录}
+\tableofcontents
+%\renewcommand{\numberline}[1]{#1~}
+%\phantomsection
+%\addcontentsline{toc}{section}{示例}
+
+\listoffigures
+\listoftables
+\listofegcode
+\newlength{\textparwd}
+%------------------------------------------------------------
+
+\newpage
+\pagenumbering{arabic}
+\pagestyle{fancy}
+\section{概述}
+
+《GB/T 7714-2015~~信息与文献~~参考文献著录规则》是国内科技文档参考文献著录的一般标准,国内多数大学、出版社、期刊编辑部对于学位论文、出版物、期刊论文的参考文献要求通常都基于该标准。对于\LaTeX{}用户来说,参考文献生成是典型的自动化应用,通常有两种方法,一是基于bibtex的传统方法,二是基于biblatex的新方法。生成符合GB/T 7714 标准要求的参考文献,这两条路子都已经实践多年。
+基于biblatex的方法,早期有李志奇(icetea)的gbtstyle实现以及Casper Ti. Vector的caspervector样式,然而由于biblatex宏包升级、样式包维护和完善方面的问题,未能达到精确符合国标要求、且具备高可用性、兼容性和可维护性的理想状态。开发biblatex-gb7714-2015 样式包的初衷首先是基于当时这样的状态,其次也为解决很多实际应用中的问题,因此考虑如下原则:
+
+\subsection{设计原则}
+
+\begin{enumerate}
+ \item 兼容性
+
+由于biblatex的持续升级,一些接口和功能的变化,会使得样式无法使用或者输出结果产生异变。因此biblatex-gb7714-2015宏包设计之初,就一直秉承兼容性原则,力图兼容各版本的biblatex,希望与biblatex v2.8 (in texlive2014) 以上所有版本适配(注意 ctex 2.9.4 的用户需升级 biblatex)。
+
+出于兼容一些旧的bib文件的考虑,增加对传统参考文献条目类型比如www/electronic/conference/mastersthsis/phdthsis/techreport/standard等的支持。根据国标要求,考虑增加newspaper(报纸析出的文献)、database(数据库)、dataset(数据集)、 software(软件)、map(舆图)、archive(档案)等类型。也为兼容适用于不同样式的bib数据源,增加对一些自定义域的支持,比如gbt7714宏包的bst样式中mark和medium域。此外,也试图去完善样式在不同文档类包括beamer类中的使用问题。
+
+ \item 易用性
+
+参考文献是\LaTeX{}自动化应用之一,尽可能让其自动完成,减少用户的人工干预,包括数据的准备、格式的调整等等。因此宏包试图减少用户对于bib文件的调整,只需要简单地输入文献本身的信息,或者从各类学术网站或利用zotero等工具下载参考文献数据即可,而不需要为了符合国标格式而去手动增添参考文献类型和载体标识等一些数据域,也不必为了文献语言分集、文献排序等去增加语言、排序关键字等数据域,这些所有工作都由宏包自动完成。
+
+为了符合国标要求以及中文参考文献标注习惯,提供丰富的标注(引用)命令,用户只需熟悉几个命令的特性即能够完成两种编制样式下多样的标注格式,包括:顺序编码制的 \verb|\cite|(上标可设置页码)、 \verb|\parencite|(非上标可设置页码)、 \verb|\pagescite|(上标加自动页码)、 \verb|\textcite|(提供作者为主语加非上标编号)、 \verb|\authornumcite|(提供作者为主语加上标编号)、 \verb|\footfullcite|(脚注方式);著者-年份制的\verb|\cite|(作者加年份用括号包围可设置页码)、 \verb|\pagescite|(作者加年份用括号包围自动页码)、
+\verb|\yearcite|(提供年份用括号包围)、 \verb|\yearpagescite|(提供年份用括号包围自动页码)、
+\verb|\textcite|(提供主语作者加括号包围年份)、 \verb|\footfullcite|(脚注方式)。
+
+习惯natbib的用户也可以直接使用 \verb|\citet| 和 \verb|\citep| 命令,
+也提供一些习惯使用的命令,比如\verb|\citetns|、\verb|\citepns|、
+\verb|\upcite|、\verb|\inlinecite|等让用户可以无缝衔接从bibtex转到biblatex。
+
+另外,增加并完善对多语言混合文献表、多语言对照文献表的支持。不同语言文献可按文献自身语言录入,宏包自动识别语言并通过autolang选项自动完成语言切换,针对多语言对照文献表提供了基于条目集和关联条目概念的两种实现方式。
+
+
+ \item 灵活性
+
+在考虑实现严格符合GB/T 7714-2015标准的格式外,也希望能够针对用户的特殊格式需求,提供方便灵活的定制方式,比如通过设置选项来达到格式的变化。为此,增加了多个方面的设置选项,使用户可以根据自己的需求灵活地调整。主要包括:
+
+著录表排序选项:
+sorting选项值(gb7714-2015支持以语言著者-出版年标题升序排列,gbnytd支持以语言著者-出版年标题降序排列,gbynta支持以语言年份作者标题升序排列,gbyntd支持以语言年份作者标题降序排列)、gblanorder 选项(可以设置不同的文种(语言)文献的排列顺序)、sortlocale 选项(可以设置本地语言的排序调整方案,比如zh\_\_pinyin支持汉字字符以拼音排序,zh\_\_stroke以笔画排序,auto/zh以unicode编码排序,zh\_\_gb2312han 以gb2312编码排序)。使用拼音排序时遇到多音字也可以利用key域解决。
+
+
+
+著录项格式选项:
+姓名格式调整(gbnamefmt选项,可以设置大写、小写、西语习惯用法、拼音习惯用法)、
+出版项控制(gbpub选项,可设置出版项缺失时是否填补信息)、类型和载体标识控制(gbtype选项,可设置不输出)、
+析出文献标识符控制(gbpunctin选项,可设置\texttt{//}不输出或其它表示形式)、
+标题超链接控制(gbtitlelink选项,可设置文献表中各条目标题超链接)、
+标准标签超链接控制(gblabelref选项,可设置标注中作者标签的超链接)、
+作者项处理(gbnoauthor选项,可设置作者缺失时是否填补信息);
+
+著录表格式选项和命令:
+标签对齐控制(gbalign选项,可设置左、右、居中、项对齐方式)、
+标签格式控制(gbbiblabel选项,可设置标签数字不同的包围符号)、
+条目格式控制(gbstyle选项,利用gb7714-2015ms样式可实现中英文献分设不同格式)、
+编制样式设置命令(利用\verb|\setaystylesection|和gb7714-2015mx样式实现不同文献节不同的编制方式)、
+格式命令\verb|\bibauthorfont|可设置作者项字体、
+格式命令\verb|\bibtitlefont|可设置标题项字体、
+格式命令\verb|\bibpubfont|可设置出版项字体、
+格式尺寸\verb|\bibitemindent|和\verb|\bibhang|可设置文献表的缩进、
+文献标题控制(gbctexset选项,可设置标题内容由\verb|\bibname|或\verb|\refname|宏调整);
+
+编码设置选项:
+GBK编码兼容(gbcodegbk选项,可设置GBK编码文档编译)等等。
+
+配合biblatex提供的选项、\verb|\bibfont|命令、\verb|\bibitemsep|间距等可以实现丰富的格式,包括标注和文献表采用不同样式、url/doi/isbn输出控制、标注和文献表中作者数量控制、文献表拼音或笔画排序等等。
+
+
+ \item 可维护性
+
+宏包的长期使用价值体现在宏包的维护和更新上面,追求宏包具有高的可读性、可理解性、可维护性,可为宏包长期发挥作用提供帮助。由于biblatex已经是一个相当成熟完善的宏包,即便是在样式方面考虑也相当全面,这可能与西方出版界对于参考文献的多样且细致的要求有关。而国内只有一个通用标准就是GB/T 7714标准,且除了一些特殊需求要具体实现外,标准中大多数格式要求的实现完全可以借用biblatex提供的标准样式,因此既不需要重新造轮子,也可以使gb7714-2015样式与biblatex宏包的标准样式保持一致的结构、风格和习惯,这样可以大大增加代码可读性和可维护性。通过在biblatex原有样式基础上增加有限修改的方式,并且对代码加上详细注释,可以使得样式包维护者,只需通过学习biblatex,即可轻松理解gb7714-2015样式做的工作,比如做了哪些修改,为什么这么修改,实现了什么样的效果。
+
+
+另外,为方便用户,样式包提供了全面、详实的说明,包括
+GB/T 7714标准的理解和解释(\ref{sec:gbt:std}节)、
+条目类型和域的理解和录入方法(\ref{sec:bib:bibtex}节)、
+参考文献引用和文献表打印及其格式控制方法(\ref{sec:cbx:usage},\ref{sec:usage:bbx}节)、
+\href{https://github.com/hushidong/biblatex-gb7714-2015/wiki}{biblatex和样式包基本使用方法}、
+\href{https://github.com/hushidong/biblatex-solution-to-latex-bibliography/blob/master/biblatex-solution-to-latex-bibliography.pdf}%
+{biblatex高级使用方法和样式包设计实现方法}等,可为用户快速入门和维护者深入理解提供有效帮助。
+
+\end{enumerate}
+
+%具体来讲,完成了4个方面的工作:
+%\begin{enumerate}
+% \item 完成了GB/T 7714-2015标准的完整实现,包括两种编制方式下的各类型参考文献著录格式和标注格式等基本内容,还包括: 双语文献格式,带页码的标注格式,著者年份制下仅有年的标注格式和文献按语言集中并自动排序,起止卷期自动解析,增加gbnoauthor选项控制著者年份制责任者缺省的处理,增加gbpub选项控制出版信息缺省时的处理,增加gbalign选项控制顺序编码制文献表的标签对齐方式,提供右对齐、左对齐和项对齐三种方式。
+% \item 实现了用户文献数据录入优化,用户在录入参考文献数据时,只需要录入文献的实际信息即可,不需要录入文献标识符和载体标识符,无需录入language或者其它域信息来区分中英文参考文献,实现中英文自动判断并处理。支持一些特殊或老的条目类型,比如standard,newspaper,www,mastersthesis,phdthesis等。
+% \item 实现了对biblatex不同版本的兼容,能够应用于biblatex3.2以前的老版本,也能用于3.3版姓名处理方式改变后的版本。即可以与texlive2014/2015/2016/2017配合使用,无需升级biblatex情况下直接使用biblatex-gb7714-2015宏包(即本样式)。
+% \bc{当然 ctex2.9.4 的用户可能要升级一下biblatex,因为ctex多年没有更新,其中的biblatex版本过低}。
+% \item 测试了样式文件在book/report/article文档类以及beamer类下的适用性,结果表明均能满足要求。文档详细介绍了样式文件的使用方法和注意事项,说明了各条目类型的著录格式及其在biblatex 中对应信息域的构成,以及域信息的录入方法,并严格按照GB/T 7714-2015 标准测试了各种类型的文献。
+%\end{enumerate}
+
+\subsection{宏包结构}
+
+宏包文件结构如图\ref{fig:pkg:structure}所示:
+\begin{figure}[!htb]
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\centering\footnotesize
+\begin{tikzpicture}[node distance=1.5cm]
+%\definecolor{bluea}{rgb}{0.05,0.62,0.94}
+\ttfamily
+\node[align=center,fill=gbyellow!15,text width=4cm,inner sep=8pt] (project) {\textcolor{black}{Biblatex-gb7714-2015}};
+
+\node[align=center,below of=project,draw=red,thick,text width=3.5cm] (manual) {\textcolor{black}{Manual of Package}};
+\node[align=center,left of=manual,xshift=-3cm,draw=blue,thick,text width=3.5cm] (style) {\textcolor{black}{Style Files}};
+\node[align=center,right of=manual,xshift=3cm,draw=orange,thick,text width=3.5cm] (script) {\textcolor{black}{Compiling Scripts}};
+\draw[color=cyan,thick] (project.south) -- (manual.north) ;
+\draw[color=cyan,thick] (style.north) -- ($(style.north)+(0mm,3mm)$) ;
+\draw[color=cyan,thick] (script.north) -- ($(script.north)+(0mm,3mm)$) ;
+\draw[color=cyan,thick] ($(style.north)+(0mm,3mm)$) -- ($(script.north)+(0mm,3mm)$);
+
+\node[below of=style,fill=gbgrey!20,yshift=0.5cm,xshift=2mm,text width=2cm] (numcbbx) {\tiny \textcolor{black}{gb7715-2015.c/bbx}};
+\node[below of=numcbbx,fill=gbgrey!20,yshift=8mm,text width=2cm] (aycbbx) {\tiny \textcolor{black}{gb7715-2015ay.c/bbx}};
+\node[below of=aycbbx,fill=gbgrey!20,yshift=8mm,text width=2cm] (mscbbx) {\tiny \textcolor{black}{gb7715-2015ms.c/bbx}};
+\node[below of=mscbbx,fill=gbgrey!20,yshift=8mm,text width=2cm] (mxcbbx) {\tiny \textcolor{black}{gb7715-2015mx.c/bbx}};
+\node[below of=mxcbbx,fill=gbgrey!20,yshift=8mm,text width=2cm] (gbkdef) {\tiny \textcolor{black}{gb7715-2015-gbk.def}};
+\node[below of=gbkdef,fill=gbgrey!20,yshift=8mm,text width=2cm] (erjcbbx) {\tiny \textcolor{black}{chinese-erj.c/bbx}};
+%\node[below of=msbbx,fill=gbgrey!20,yshift=8mm,text width=2cm] (mscbx) {\tiny \textcolor{black}{gb7715-2015ms.cbx}};
+
+\draw[color=blue,semithick] (numcbbx.west) -- ($(numcbbx.west)+(-3mm,0mm)$) ;
+\draw[color=blue,semithick] (aycbbx.west) -- ($(aycbbx.west)+(-3mm,0mm)$) ;
+\draw[color=blue,semithick] (mscbbx.west) -- ($(mscbbx.west)+(-3mm,0mm)$) ;
+\draw[color=blue,semithick] (mxcbbx.west) -- ($(mxcbbx.west)+(-3mm,0mm)$) ;
+\draw[color=blue,semithick] (gbkdef.west) -- ($(gbkdef.west)+(-3mm,0mm)$) ;
+\draw[color=blue,semithick] (erjcbbx.west) -- ($(erjcbbx.west)+(-3mm,0mm)$) ;
+%\draw[color=blue,semithick] (mscbx.west) -- ($(mscbx.west)+(-3mm,0mm)$) ;
+
+\draw[color=blue,semithick] ($(erjcbbx.west)+(-3mm,0mm)$) -- ($(style.center)+(-12mm,-2.5mm)$) ;
+
+\node[below of=manual,fill=gbsteelblue!15,yshift=0.5cm,xshift=2mm,text width=2.8cm] (mtex) {\tiny \textcolor{black}{biblatex-gb7714-2015.tex}};
+\node[below of=mtex,fill=gbsteelblue!15,yshift=8mm,text width=2.8cm] (mpdf) {\tiny \textcolor{black}{biblatex-gb7714-2015.pdf}};
+\node[below of=mpdf,fill=gbsteelblue!15,yshift=8mm,text width=2.8cm] (egtex) {\tiny \textcolor{black}{example}};
+\node[below of=egtex,fill=gbsteelblue!15,yshift=8mm,text width=2.8cm] (egbib) {\tiny \textcolor{black}{egfigure}};
+\node[below of=egbib,fill=gbsteelblue!15,yshift=8mm,text width=2.8cm] (egthesis) {\tiny \textcolor{black}{egthesis}};
+\draw[color=red,semithick] (mtex.west) -- ($(mtex.west)+(-3mm,0mm)$) ;
+\draw[color=red,semithick] (mpdf.west) -- ($(mpdf.west)+(-3mm,0mm)$) ;
+\draw[color=red,semithick] (egtex.west) -- ($(egtex.west)+(-3mm,0mm)$) ;
+\draw[color=red,semithick] (egbib.west) -- ($(egbib.west)+(-3mm,0mm)$) ;
+\draw[color=red,semithick] (egthesis.west) -- ($(egthesis.west)+(-3mm,0mm)$) ;
+\draw[color=red,semithick] ($(egthesis.west)+(-3mm,0mm)$) -- ($(manual.center)+(-16mm,-2.5mm)$) ;
+
+\node[below of=script,fill=gbblue!10,yshift=0.5cm,xshift=2mm,text width=2cm] (cpall) {\tiny \textcolor{black}{makeall.bat/sh}};
+\node[below of=cpall,fill=gbblue!10,yshift=8mm,text width=2cm] (cpfil) {\tiny \textcolor{black}{makefile.bat/sh}};
+\node[below of=cpfil,fill=gbblue!10,yshift=8mm,text width=2cm] (cpcln) {\tiny \textcolor{black}{makeclear.bat/sh}};
+\node[below of=cpcln,fill=gbblue!10,yshift=8mm,text width=2cm] (plspt) {\tiny \textcolor{black}{gb7714text*.pl/dat}};
+\draw[color=orange,semithick] (cpall.west) -- ($(cpall.west)+(-3mm,0mm)$) ;
+\draw[color=orange,semithick] (cpfil.west) -- ($(cpfil.west)+(-3mm,0mm)$) ;
+\draw[color=orange,semithick] (cpcln.west) -- ($(cpcln.west)+(-3mm,0mm)$) ;
+\draw[color=orange,semithick] (plspt.west) -- ($(plspt.west)+(-3mm,0mm)$) ;
+\draw[color=orange,semithick] ($(plspt.west)+(-3mm,0mm)$) -- ($(plspt.west)+(-3mm,28.1mm)$) ;
+\end{tikzpicture}
+\end{tcolorbox}
+\caption{宏包文件结构}\label{fig:pkg:structure}
+\end{figure}
+
+
+
+其中,\zd{gb7714-2015.bbx/cbx}、\zd{gb7714-2015ay.bbx/cbx}分别为顺序编码制和著者年份制样式文件。
+\zd{gb7714-2015ms.bbx/cbx}是混合样式,支持区分中英文语言分设不同标准的著录格式。
+\zd{gb7714-2015mx.bbx/cbx}是混合样式,支持在不同的参考文献分节中使用不同的编制样式,比如有的节使用顺序编码制,有的节使用著者年份制。
+\zd{gb7715-2015-gbk.def}为GBK编码文档编译所需的支撑文件。
+\zd{chinese-erj.bbx/cbx} 是经济学研究期刊的文献样式。后三者仅支持较新的biblatex版本。
+\zd{biblatex-gb7714-2015.tex} 为宏包说明文档,\zd{example}目录下为各种选项的测试用例,
+\zd{egfigure}目录下为说明文档中的图例文档,\zd{egthesis}为国内一些大学学位论文文献样式的测试用例,包括完全按照国标的BUPT、CAU、ECNU、FDU、SJTU、THU、USTC、XJTU、ZJU,与国标略有差异的UCAS,以及与国标有较大差异的NWAFU、SEU等。\zd{*.bat}、\zd{*.sh}分别为windows和linux下说明文档的编译脚本。\zd{*.pl}为gb7714格式著录文献表到bib文件的perl转换脚本,\zd{*.dat}为转换测试文献表。
+
+\subsection{最小示例}
+
+基于biblatex宏包的参考文献生成方法非常简单,例 \ref{code:doc:structrue} 是一个最小工作示例。示例代码中给出了详细注释,介绍了使用biblatex 的tex源文档基本结构,其中gb7714-2015 样式随biblatex宏包加载,
+参考文献数据文件example.bib(bib文件需另外准备,详见\ref{sec:bib:bibtex}节)利用 \verb|\addbibresource|加载,文献表利用 \verb|\printbibliography| 命令输出(可在正文任意位置)。所有基于 biblatex 生成参考文献的文档无论大小万变不离其宗。
+若需更全面了解biblatex及参考文献生成高级功能另可参考:
+\href{https://github.com/plk/biblatex}{biblatex宏包手册}
+\footnote{地址:\url{https://github.com/plk/biblatex}}、
+\href{https://github.com/hushidong/biblatex-zh-cn}{中文版}
+\footnote{地址:\url{https://github.com/hushidong/biblatex-zh-cn}}
+或者
+\href{https://github.com/hushidong/biblatex-solution-to-latex-bibliography}{LaTeX 文档中文参考文献的biblatex解决方案}
+\footnote{地址:%
+\url{https://github.com/hushidong/biblatex-solution-to-latex-bibliography}}。
+
+\begin{example}{biblatex参考文献生成的最小工作示例}{code:doc:structrue}
+\begin{texlist}
+\documentclass{article}%文档类 %导言区开始:
+\usepackage{ctex}%加载ctex宏包,中文支持
+ %加载geometry宏包,定义版面
+\usepackage[left=20mm,right=20mm,top=25mm, bottom=15mm]{geometry}
+ %加载hyperref宏包,使用超链接
+\usepackage[colorlinks=true,pdfstartview=FitH,linkcolor=blue,anchorcolor=violet,citecolor=magenta]{hyperref}
+ %参考文献工具,加载biblatex宏包,,其后端backend使用biber,%标注(引用)样式citestyle,著录样式bibstyle都采用gb7714-2015样式,两者相同时可以合并为一个选项style
+\usepackage[backend=biber,style=gb7714-2015]{biblatex}
+ %biblatex宏包的参考文献数据源加载方式
+\addbibresource[location=local]{example.bib}
+\begin{document}%正文区开始:
+ %正文内容,引用参考文献
+详见文献\cite{Peebles2001-100-100}\parencite{Babu2014--}
+另见文献\cite[49]{于潇2012-1518-1523}\parencite[106]{Babu2014--}
+ %打印参考文献表
+\printbibliography[heading=bibliography,title=参考文献]
+\end{document}
+\end{texlist}
+\end{example}
+
+
+
+\subsection{编译方式}
+
+与基于bibtex传统方法的四步编译不同,基于biblatex生成参考文献一般只需三步编译,第一遍xelatex,第二遍biber,第三遍xelatex。如若需要后向超链接,则除设置backref 选项外,还需第四遍 xelatex 编译。例\ref{eg:compile:cmd} 给出编译命令,其中\verb|--synctex=-1| 选项也可以是-synctex=1。另外四步命令可以用一条 latexmk 命令代替。
+关于非utf-8编码文档和使用pdflatex命令编译的细节另见第\ref{sec:pkg:hints}节。
+
+\begin{example}{文档编译命令}{eg:compile:cmd}
+\begin{texlist}
+%四步编译命令
+xelatex --synctex=-1 jobname.tex
+biber jobname
+xelatex --synctex=-1 jobname.tex
+xelatex --synctex=-1 jobname.tex
+%或采用latexmk,则仅需一条命令
+latexmk -xelatex jobname.tex
+\end{texlist}
+\end{example}
+
+前述的最小工作示例的编译结果如图\ref{fig:eg:ref}所示。
+
+\begin{refsection}
+\begin{figure}[!htb]
+\centering
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\includegraphics*[page=1,viewport=0cm 0.4cm 14cm 6.1cm,clip=true]{egfigure/egmwe.pdf}
+%\deflength{\textparwd}{\linewidth-1.5cm}
+%\begin{minipage}{\textparwd}
+%\fbox{\parbox{\textparwd}{%\raggedright
+%详见文献\cite{Peebles2001-100-100}\parencite{Babu2014--}
+%另见文献\cite[49]{于潇2012-1518-1523}\parencite[106]{Babu2014--}
+%\renewcommand{\bibfont}{\zihao{-5}}
+%{
+%\hyphenation{conference}
+%\hyphenpenalty=100 %断词阈值,值越大越不容易出现断词
+%\tolerance=100 %丑度,10000为最大无溢出盒子,参考the texbook 第6章
+%\printbibliography[heading=subbibliography,title=参考文献]
+%\par}
+%}}
+%\end{minipage}
+\end{tcolorbox}
+\caption{最小工作示例编译生成的PDF文档}\label{fig:eg:ref}
+\end{figure}
+\end{refsection}
+
+
+\section{使用说明}
+
+\subsection{样式及选项加载}
+
+\subsubsection{几种样式}
+
+例\ref{code:doc:structrue}中给出了宏包和样式的基本加载方式,选项的加载也类似。比如:
+
+\pdfbookmark[4]{gb7714-2015}{stygb7714-2015}
+\begin{example}{顺序编码制(gb7714-2015)加载方式}{eg:gb7714numeric}
+\begin{texlist}
+%简单方式:
+\usepackage[backend=biber,style=gb7714-2015]{biblatex}
+%设置gbalign选项以改变文献表序号标签对齐方式,设置gbpub=false取消缺省出版项自填补信息,比如:
+\usepackage[backend=biber,style=gb7714-2015,gbalign=gb7714-2015,gbpub=false]{biblatex}
+%当文档为GBK编码且用pdflatex/latex编译时,应设置选项gbcodegbk=true:
+\usepackage[backend=biber,style=gb7714-2015,gbcodegbk=true]{biblatex}
+\end{texlist}
+\end{example}
+
+
+\pdfbookmark[4]{gb7714-2015ay}{stygb7714-2015ay}
+\begin{example}{著者-出版年制(gb7714-2015ay)加载方式}{eg:gb7714authoryear}
+\begin{texlist}
+%简单方式:
+\usepackage[backend=biber,style=gb7714-2015ay]{biblatex}
+%设置gbnoauthor=true以使用佚名或NOAUTHOR填补缺失的author信息:
+\usepackage[backend=biber,style=gb7714-2015ay,gbnoauthor=true]{biblatex}
+\end{texlist}
+\end{example}
+
+
+\pdfbookmark[4]{gb7714-2015ms}{stygb7714-2015ms}
+\begin{example}{同一文献表中不同语言区分著录格式的样式(gb7714-2015ms)}{eg:gb7714ms}
+\begin{texlist}
+%默认方式,所有文献使用一种著录格式,即GB/T 7714-2015样式
+\usepackage[backend=biber,style=gb7714-2015ms]{biblatex}
+%设置gbstyle=false,则中文文献使用GB/T 7714-2015著录格式,而其它语言文献使用biblatex标准样式
+\usepackage[backend=biber,style=gb7714-2015ms,gbstyle=false]{biblatex}
+\end{texlist}
+\end{example}
+格式效果如图\ref{fig:eg:ms}所示。
+
+
+\pdfbookmark[4]{gb7714-2015mx}{stygb7714-2015mx}
+\begin{example}{同一文档中不同文献分节区分不同著录格式的样式(gb7714-2015mx)}{eg:gb7714mx}
+\begin{texlist}
+%默认方式使用顺序编码制样式
+\usepackage[backend=biber,style=gb7714-2015mx]{biblatex}
+%如需在某一参考文件分节使用著者年份制样式,比如第2个refsection中使用时,则在导言区设置:
+\setaystylesection{2}
+\end{texlist}
+\end{example}
+格式效果如图\ref{fig:eg:mx}所示。
+
+
+\begin{example}{参考文献文本转换为bib文件perl脚本使用方式}{eg:transtobib}
+\begin{texlist}
+perl gb7714texttobib.pl in=textfilename out=bibfilename
+\end{texlist}
+\end{example}
+
+其中,v1.0m版本增加的gb7714-2015ms样式文件,主要是为了在一个文献表中针对不同语言使用不同多种样式,比如中文文献使用GB/T 7714-2015规定的著录格式,而其它语言文献使用biblatex提供的标准样式。v1.0r版本增加了gb7714-2015mx样式,主要是为了在一个文档中针对不同参考文献分节使用不同的参考文献样式,比如某些节使用著者年份制,某些节使用顺序编码制。尽管这些方式不常用,但偶尔也有需求,所以都做了实现。
+
+另外应ddswhu要求,v1.0r版本增加了chinese-erj样式用于生成经济研究期刊的文献。且在egthesis文件夹内,针对国内一些大学的学位论文文献要求,基于国标样式做了一些定制和测试。
+
+\pdfbookmark[4]{chinese-erj}{chinese-erj}
+\begin{example}{经济研究期刊文献样式(chinese-erj)}{eg:gbchineseerj}
+\begin{texlist}
+%使用经济研究期刊文献样式
+\usepackage[backend=biber,style=chinese-erj]{biblatex}
+\end{texlist}
+\end{example}
+
+
+\subsubsection{新增选项}\label{sec:added:opt}
+样式包新增了一些选项,用于标签对齐方式、出版项缺省处理、责任者(作者)缺省处理等功能的控制,其使用方式与biblatex宏包选项完全相同:
+\begin{description}
+
+ \pdfbookmark[4]{gbalign}{gbalign}
+ \item[gbalign]=\textbf{right},left,center,gb7714-2015. \hfill default is right
+
+ 为顺序编码制增加的选项,用于选择参考文献表序号标签的对齐方式。
+ \begin{itemize}
+ \item gbalign=right,默认的list环境中的标签右对齐;
+ \item gbalign=left,是list环境中的标签左对齐;
+ \item gbalign=center,是list环境中的等宽标签,数字在[]内居中;
+ \item gbalign=gb7714-2015,是项对齐方式,即段落环境中标签使用原始宽度,标签与条目内容等间距。
+ \end{itemize}
+ 该选项对著者年份制无效。顺序编码制序号标签对齐方式测试,
+ 数字在标签内居中见:
+ \href{run:./example/opt-gbalign-center.tex}{opt-gbalign-center.tex},
+ 标签左对齐见:
+ \href{run:./example/opt-gbalign-left.tex}{opt-gbalign-left.tex},
+ 项对齐(标签与内容等间距)见:
+ \href{run:./example/opt-gbalign-gb.tex}{opt-gbalign-gb.tex}。
+ 效果示例如图\ref{fig:eg:optgbalign}所示。
+
+\begin{figure}[!htb]
+\centering
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\subfigure[\heiti gbalign=right 即右对齐]{\parbox{0.5\linewidth}{\includegraphics*[page=4,viewport=1cm 0cm 8cm 4.5cm,clip=true]{egphoto/opt-gbalign-right.pdf}}}
+\subfigure[\heiti gbalign=left 即左对齐]{\parbox{0.5\linewidth}{\includegraphics*[page=4,viewport=1cm 0cm 8cm 4.5cm,clip=true]{egphoto/opt-gbalign-left.pdf}}}\\
+\subfigure[\heiti gbalign=center 即中对齐]{\parbox{0.5\linewidth}{\includegraphics*[page=4,viewport=1cm 0cm 8cm 4.5cm,clip=true]{egphoto/opt-gbalign-center.pdf}}}
+\subfigure[\heiti gbalign=gb7714-2015 即项对齐]{\parbox{0.5\linewidth}{\includegraphics*[page=4,viewport=1cm 0cm 8cm 4.5cm,clip=true]{egphoto/opt-gbalign-gb.pdf}}}
+\end{tcolorbox}
+\caption{文献表标签对齐选项gbalign效果}\label{fig:eg:optgbalign}
+\end{figure}
+
+ \pdfbookmark[4]{gbpub}{gbpub}
+ \item[gbpub]=\textbf{true},false. \hfill default is true
+
+ 为控制出版信息缺失处理增加的选项。
+ \begin{itemize}
+ \item gbpub=true,自动利用:[出版地不详]、[出版者不详]、[S.l.]、[s.n.]等填补缺省信息;
+ \item gbpub=false 则取消自动处理,使用标准样式的方式取消相应项的输出。
+ \end{itemize}
+ 顺序编码制测试(著者年份制类似)见:
+ \href{run:./example/opt-gbpub-true.tex}{opt-gbpub-true.tex},
+ \href{run:./example/opt-gbpub-false.tex}{opt-gbpub-false.tex}。
+ 效果示例如图\ref{fig:eg:optgbpub}所示。
+
+\begin{figure}[!htb]
+\centering
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\subfigure[\heiti gbpub=false 出版项缺省]{\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0cm 9cm 4.5cm,clip=true]{egphoto/opt-gbpub-false.pdf}}}
+\subfigure[\heiti gbpub=true 出版项补充]{\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0cm 10cm 4.5cm,clip=true]{egphoto/opt-gbpub-true.pdf}}}
+\end{tcolorbox}
+\caption{文献表出版项缺失处理选项gbpub效果}\label{fig:eg:optgbpub}
+\end{figure}
+
+ \pdfbookmark[4]{gbnoauthor}{gbnoauthor}
+ \item[gbnoauthor]=true,\textbf{false}. \hfill default is false
+
+ 为著者年份制增加的选项,用于控制责任者缺失时的处理。
+ \begin{itemize}
+ \item gbnoauthor=false,当作者信息缺失时默认不做处理,使用标准样式的处理方式;
+ \item gbnoauthor=true,则根据GB/T 7714-2015 的要求进行处理,中文文献使用“佚名”来代替author,英文文献用“Anon”来代替author。
+ \end{itemize}
+ 测试结果见:
+ \href{run:./example/opt-gbnoauthor-true.tex}{opt-gbnoauthor-true.tex},
+ \href{run:./example/opt-gbnoauthor-false.tex}{opt-gbnoauthor-false.tex}。
+ 效果示例如图\ref{fig:eg:optgbnoauthor}所示。
+
+\begin{figure}[!htb]
+\centering
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\subfigure[\heiti gbnoauthor=true] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.4cm 7.5cm 2.8cm,clip=true]{egphoto/opt-gbnoauthor-true.pdf}}}
+\subfigure[\heiti gbnoauthor=false] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.4cm 7.5cm 2.8cm,clip=true]{egphoto/opt-gbnoauthor-false.pdf}}}
+\end{tcolorbox}
+\caption{文献表作者缺失处理选项gbnoauthor效果}\label{fig:eg:optgbnoauthor}
+\end{figure}
+
+ \pdfbookmark[4]{gbbiblabel}{gbbiblabel}
+ \item[gbbiblabel]=\textbf{bracket},parens,plain,dot,box,circle. \hfill default is bracket
+
+ 为顺序编码制增加的选项,用于选择参考文献表序号数字的格式。
+ \begin{itemize}
+ \item gbbiblabel=bracket,序号数字由方括号包围,比如[1];
+ \item gbbiblabel=parens,序号数字由圆括号包围,比如(1);
+ \item gbbiblabel=dot,序号数字数字后面加点,比如1.;
+ \item gbbiblabel=plain,序号数字无装饰,比如1;
+ \item gbbiblabel=box,序号数字由方框包围,比如\framebox{1};
+ \item gbbiblabel=circle,序号数字由圆圈包围,比如\textcircled{1}。
+ \end{itemize}
+ 效果示例如图\ref{fig:eg:optgbbiblabel}所示。
+
+\begin{figure}[!htb]
+\centering
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\subfigure[\heiti gbbiblabel=box] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbbiblabela.pdf}}}
+\subfigure[\heiti gbbiblabel=bracket] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbbiblabelb.pdf}}}\\
+\subfigure[\heiti gbbiblabel=parens] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbbiblabelc.pdf}}}
+\subfigure[\heiti gbbiblabel=dot] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbbiblabeld.pdf}}}\\
+\subfigure[\heiti gbbiblabel=plain] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbbiblabele.pdf}}}
+\subfigure[\heiti gbbiblabel=circle] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbbiblabelf.pdf}}}\\
+\end{tcolorbox}
+\caption{文献表标签数字格式选项gbbiblabel效果}\label{fig:eg:optgbbiblabel}
+\end{figure}
+
+
+ \pdfbookmark[4]{gbnamefmt}{gbnamefmt}
+ \item[gbnamefmt]=\textbf{uppercase},lowercase,givenahead,familyahead,pinyin. \hfill default is uppercase
+
+ 为姓名大小写格式控制增加的选项。
+ \begin{itemize}
+ \item gbnamefmt=uppercase,使大小写符合GB/T 7714-2015 的要求;
+ \item gbnamefmt=lowercase,大小写由输入信息确定不做改变;
+ \item gbnamefmt=givenahead,姓名的格式与biblatex标准样式的given-family格式一致,即名在前姓在后,类似于ieee的样式;
+ \item gbnamefmt=familyahead时,姓名的格式与biblatex 标准样式的family-given格式一致,即姓在前名在后,类似于APA 的样式;
+ \item gbnamefmt=pinyin 时,姓名的格式采用一种常见的中文拼音方式,比如对于 Zhao, Yu Xin 或 Yu Xin Zhao 这个姓名拼音格式化为ZHAO Yu-xin。
+ \item gbnamefmt=quanpin 时,姓名的格式采用另一种常见的中文拼音方式,比如对于 Zhao, Yu Xin 或 Yu Xin Zhao 这个姓名拼音格式化为Zhao Yuxin。
+ \item gbnamefmt=reverseorder 时,姓名的格式与biblatex 标准样式的family-given/ given-family格式一致,常用于经济学类的文献。
+ \end{itemize}
+ \bc{注意:还可以利用 nameformat 域为某一具体条目设置该条目的姓名格式,比如:要在一个文献表中实现英文文献是givenahead 格式,而拼音的文献是pinyin风格,那么可以设置拼音文献的 nameformat 域为pinyin,而gbnamefmt设置为givenahead。条目中nameformat 域的局部设置优先于gbnamefmt的全局设置。}\par
+ \emph{注意:使用pinyin选项时,bib文件中文献的作者应给出完整的名而不是缩写,否则出来的效果未必令人满意}。
+ 测试结果见:
+ \href{run:./example/opt-gbnamefmt.tex}{opt-gbnamefmt.tex},
+ \href{run:./example/opt-gbnamefmt-default.tex}{opt-gbnamefmt-default.tex}。
+ 效果示例如图\ref{fig:eg:optgbnamefmt}所示。
+
+\begin{figure}[!htb]
+\centering
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\subfigure[\heiti gbnamefmt=uppercase] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbnamefmt-a.pdf}}}
+\subfigure[\heiti gbnamefmt=lowercase] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbnamefmt-b.pdf}}}\\
+\subfigure[\heiti gbnamefmt=givenahead] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbnamefmt-c.pdf}}}
+\subfigure[\heiti gbnamefmt=familyahead] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbnamefmt-d.pdf}}}\\
+\subfigure[\heiti gbnamefmt=pinyin] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbnamefmt-e.pdf}}}
+\subfigure[\heiti gbnamefmt=reverseorder] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbnamefmt-f.pdf}}}\\
+\end{tcolorbox}
+\caption{文献表姓名格式选项gbnamefmt效果}\label{fig:eg:optgbnamefmt}
+\end{figure}
+
+
+ \pdfbookmark[4]{gbtype}{gbtype}
+ \item[gbtype]=\textbf{true},false. \hfill default is true
+
+ 为控制是否输出题名后面的文献类型和载体标识符而增加的选项。
+ \begin{itemize}
+ \item gbtype=true,根据GB/T 7714-2015 要求输出标识符,例如“在线的期刊析出文献题名[J/OL]”。
+ \item gbtype=false,则不输出标识符,例如“在线的期刊析出文献题名”。
+ \end{itemize}
+ 效果示例如图\ref{fig:eg:optgbtype}所示。
+
+\begin{figure}[!htb]
+\centering
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\subfigure[\heiti gbtype=true] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbtype-true.pdf}}}
+\subfigure[\heiti gbtype=false] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbtype-false.pdf}}}
+\end{tcolorbox}
+\caption{文献类型标识符输出控制选项}\label{fig:eg:optgbtype}
+\end{figure}
+
+
+ \pdfbookmark[4]{gbmedium}{gbmedium}
+ \item[gbmedium]=\textbf{true},false. \hfill default is true
+
+ 为控制是否输出题名后面的文献载体标识符而增加的选项。
+ \begin{itemize}
+ \item gbmedium=true,根据GB/T 7714-2015 要求输出载体标识符,例如“在线的期刊析出文献题名[J/OL]”。
+ \item gbmedium=false,则不输出标识符,例如“在线的期刊析出文献题名[J]”。
+ \end{itemize}
+ 注意:gbtype选项是更大范围的控制,包括了gbmedium。当gbtype=false时,无所谓gbmedium设置什么,因为整个文献类型和载体标识符整个都不显示,而gbmedium只是设置载体标识的。
+ 效果示例如图\ref{fig:eg:optgbmedium}所示。
+
+\begin{figure}[!htb]
+\centering
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\subfigure[\heiti gbmedium=true] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbmedium-true.pdf}}}
+\subfigure[\heiti gbmedium=false] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 8cm 2.8cm,clip=true]{egphoto/opt-gbmedium-false.pdf}}}
+\end{tcolorbox}
+\caption{文献载体标识符输出控制选项}\label{fig:eg:optgbmedium}
+\end{figure}
+
+
+ \pdfbookmark[4]{gbfieldtype}{gbfieldtype}
+ \item[gbfieldtype]=true,\textbf{false}. \hfill default is false
+
+ 为控制是否输出type域而增加的选项。
+ \begin{itemize}
+ \item gbfieldtype=true,输出type域,例如学位论文的phdthesis或博士学位论文。输出该域时做中英文区分。
+ \item gbfieldtype=false,不输出type域。
+
+ 要设置博士或硕士学位论文的输出,有两种途径: 一是设置本地化字符串: \\
+ \lstinline!\DefineBibliographyStrings{english}{mathesis={str you want ma thesis}}!, \\
+ \lstinline!\DefineBibliographyStrings{english}{mathesiscn={硕士学位论文}}!, \\
+ \lstinline!\DefineBibliographyStrings{english}{phdthesis={str you want for phd thesis}}!, \\
+ \lstinline!\DefineBibliographyStrings{english}{phdthesiscn={博士学位论文}}!, \\
+ 之所以用加cn的本地化字符串是为了适应某些样式对中英文文献的区别设置。
+
+ 二是设置type域,比如在bib文件直接设置需要输出的字符,比如type=\{[博士学位论文]\}。
+
+ \end{itemize}
+ 效果示例如图\ref{fig:eg:optgbfieldtype}所示。
+
+\begin{figure}[!htb]
+\centering
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\subfigure[\heiti gbfieldtype=true] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=8cm 0.2cm 14.5cm 2.8cm,clip=true]{egphoto/opt-gbfieldtype-true.pdf}}}
+\subfigure[\heiti gbfieldtype=false] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=8cm 0.2cm 14.5cm 2.8cm,clip=true]{egphoto/opt-gbfieldtype-false.pdf}}}
+\end{tcolorbox}
+\caption{文献表类型(type)域输出控制选项}\label{fig:eg:optgbfieldtype}
+\end{figure}
+
+ \pdfbookmark[4]{gbpunctin}{gbpunctin}
+ \item[gbpunctin]=\textbf{true},false. \hfill default is true
+
+ 为控制inbook,incollection,inproceedings中析出来源文献前的\texttt{//}符号而增加的选项。
+ \begin{itemize}
+ \item gbpunctin=true,根据GB/T 7714-2015 要求输出\texttt{//}。
+ \item gbpunctin=false,则输出默认的本地字符串,
+ 在英语中是\texttt{in:},若要完全去掉该符号则可以在导言区增加命令
+ \lstinline!\DefineBibliographyStrings{english}{in={}}!,\lstinline!\DefineBibliographyStrings{english}{incn={}}!。
+ 之所以用加cn的本地化字符串是为了适应某些样式对中英文文献的区别设置。
+ \end{itemize}
+ 效果示例如图\ref{fig:eg:optgbpunctin}所示。
+
+\begin{figure}[!htb]
+\centering
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\subfigure[\heiti gbpunctin=true] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 2.8cm,clip=true]{egphoto/opt-gbpunctin-true.pdf}}}
+\subfigure[\heiti gbpunctin=false] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 2.8cm,clip=true]{egphoto/opt-gbpunctin-false.pdf}}}
+\end{tcolorbox}
+\caption{析出文献标识符号控制选项}\label{fig:eg:optgbpunctin}
+\end{figure}
+
+ \pdfbookmark[4]{gbtitlelink}{gbtitlelink}
+ \item[gbtitlelink]=true,\textbf{false}. \hfill default is false
+
+ 为设置标题的超链接增加的选项。
+ \begin{itemize}
+ \item gbtitlelink=false,即默认不给标题设置超链接。
+ \item gbtitlelink=true,当文献存在url 域时为文献标题设置超链接。
+ \end{itemize}
+ 测试文件见:
+ \href{run:example/opt-gbtitlelink.tex}{opt-gbtitlelink.tex}。
+ 效果示例如图\ref{fig:eg:optgbtitlelink}所示。
+
+\begin{figure}[!htb]
+\centering
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\subfigure[\heiti gbtitlelink=true] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 2.8cm,clip=true]{egphoto/opt-gbtitlelink-true.pdf}}}
+\subfigure[\heiti gbtitlelink=false] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 2.8cm,clip=true]{egphoto/opt-gbtitlelink-false.pdf}}}
+\end{tcolorbox}
+\caption{文献标题超链接控制选项}\label{fig:eg:optgbtitlelink}
+\end{figure}
+
+
+ \pdfbookmark[4]{gblabelref}{gblabelref}
+ \item[gblabelref]=\textbf{true},false. \hfill default is true
+
+ 为作者年制设置标注中的作者标签的超链接增加的选项。
+ \begin{itemize}
+ \item gblabelref=true,即默认给作者标签加上超链接。
+ \item gblabelref=false,不给作者标签加上超链接。
+ \end{itemize}
+ 测试文件见:
+ \href{run:egphoto/opt-gblabelref-true.tex}{opt-gblabelref-true.tex}。
+
+
+
+ \pdfbookmark[4]{gblocal}{gblocal}
+ \item[gblocal]=\textbf{gb7714-2015},chinese,english. \hfill default is gb7714-2015
+ \item[gbcitelocal]=\textbf{gb7714-2015},chinese,english. \hfill default is gb7714-2015
+ \item[gbbiblocal]=\textbf{gb7714-2015},chinese,english. \hfill default is gb7714-2015
+
+ 为设置引用标注标签和文献表中的本地化字符串而增加的选项。其中gbcitelocal 用于控制标注中的本地化字符串,而gbbiblocal用于控制文献表中的本地化字符串,gblocal选项等价于同时设置gbcitelocal 和 gbbiblocal。
+ 配合\lstinline[breaklines=true]!\DefineBibliographyStrings!命令对本地化字符串进行设置可以实现一些特殊的效果。图\ref{fig:content:fmtc}就是该选项的一个使用示例。
+ \begin{itemize}
+ \item gblocal=gb7714-2015,即默认区分中英文,不同语言采用不同的字符串比如中文使用“等”“和”,而英文使用“et al.”“and”。
+ \item gblocal=chinese,强制设置所有的本地化字符串使用中文。
+ \item gblocal=english,强制设置所有的本地化字符串使用英文。
+ \end{itemize}
+ 测试文件见:
+ \href{run:egfigure/egcontentfmtc.tex}{egcontentfmtc.tex}。
+ 效果示例如图\ref{fig:eg:optgblocal}所示。
+
+\begin{figure}[!htb]
+\centering
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\centering
+\subfigure[\heiti gblocal=gb7714-2015] {\parbox{0.45\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 2.8cm,clip=true]{egphoto/opt-gblocal-gb.pdf}}}\hfill
+\subfigure[\heiti gblocal=chinese] {\parbox{0.45\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 2.8cm,clip=true]{egphoto/opt-gblocal-chinese.pdf}}}\\
+\subfigure[\heiti gblocal=english] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 2.8cm,clip=true]{egphoto/opt-gblocal-english.pdf}}}
+\end{tcolorbox}
+\caption{常用本地化字符串的中英文控制选项}\label{fig:eg:optgblocal}
+\end{figure}
+
+ \pdfbookmark[4]{mergedate}{mergedate}
+ \item[mergedate]=true,false,none.
+
+ 为著者年份制是否在文献表中作者后面输出日期信息而增加了选项值none。
+ \begin{itemize}
+ \item mergedate=true,著者年份制文献表仅在作者后输出日期
+ \item mergedate=false,著者年份制文献表在作者后和出版项中输出日期
+ \item mergedate=none,著者年份制文献表仅在出版项中输出日期。该选项用于满足中科院大学的著者年份制格式要求。
+ \item no mergedate,即不给出该选项,这是gb7714-2015ay默认的情况,仅在作者后输出日期且已经根据国标格式化。
+ \end{itemize}
+ 效果示例如图\ref{fig:eg:optmergedate}所示。
+
+\begin{figure}[!htb]
+\centering
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\subfigure[\heiti mergedate 不给出] {\parbox{\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 14.5cm 2.8cm,clip=true]{egphoto/opt-mergedate-a.pdf}}}\\
+\subfigure[\heiti mergedate=true] {\parbox{\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 14.5cm 2.8cm,clip=true]{egphoto/opt-mergedate-b.pdf}}}\\
+\subfigure[\heiti mergedate=false] {\parbox{\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 14.5cm 2.8cm,clip=true]{egphoto/opt-mergedate-c.pdf}}}\\
+\subfigure[\heiti mergedate=none] {\parbox{\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 14.5cm 2.8cm,clip=true]{egphoto/opt-mergedate-d.pdf}}}\\
+\end{tcolorbox}
+\caption{作者年制文献表年份格式控制选项}\label{fig:eg:optmergedate}
+\end{figure}
+
+
+ \pdfbookmark[4]{gblanorder}{gblanorder}
+ \item[gblanorder]=\textbf{chineseahead},englishahead,userdefinedstr like:cn;en;ru;fr;jp;kr . \hfill default is chineseahead
+
+ 为著者年份制文献不同文种分集排序而增加的选项。
+ \begin{itemize}
+ \item gblanorder=chineseahead,即默认做中文文献在前英文文献在后的排序,各语言顺序为: cn;jp;kr;en;fr;ru。
+ \item gblanorder=englishahead,做英文在前中文文献在后的排序,各语言顺序为: en;fr;ru;cn;jp;kr。
+ \item gblanorder=自定义字符串,比如cn;en;ru;fr;jp;kr。这是一个用分号分隔的语言缩写名构成的字符串,缩写名的前后顺序代表文献表中文种分集的顺序。
+ \end{itemize}
+
+ 测试文档见:\href{run:./example/opt-gblanorder.tex}{opt-gblanorder.tex}。
+ 效果示例如图\ref{fig:eg:optgblanorder}所示。
+
+\begin{figure}[!htb]
+\centering
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\centering
+\subfigure[\heiti gblanorder=chineseahead] {\parbox{0.45\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 4.0cm,clip=true]{egphoto/opt-gblanorder-chineseahead.pdf}}}\hfill
+\subfigure[\heiti gblanorder=englishahead] {\parbox{0.45\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 4.0cm,clip=true]{egphoto/opt-gblanorder-englishahead.pdf}}}\\
+\subfigure[\heiti gblanorder=cn;en;ru;fr;jp;kr] {\parbox{0.5\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 7.5cm 4.0cm,clip=true]{egphoto/opt-gblanorder-udf.pdf}}}
+\end{tcolorbox}
+\caption{多语言文献表语言排序控制选项}\label{fig:eg:optgblanorder}
+\end{figure}
+
+ \pdfbookmark[4]{citexref}{citexref}
+ \item[citexref]=\textbf{true},false. \hfill default is true
+
+ 为顺序编码制样式控制是否使用传统的crossref功能而增加的选项。
+ \begin{itemize}
+ \item citexref=true,默认启用传统的crossref功能,即一个析出文献中给出crossref或xref 域来指定其析出来源文献,则在著录表中该析出文献的源用其来源文献在著录表中的序号如[1]等来代替。
+ \item citexref=false,则使用biblatex的默认方式,当存在crossref域时自动将来源文献的信息引入到当前析出文献中,而使用xref域时,则不引入来源文献的信息。
+ \end{itemize}
+
+ 测试文档见:\href{run:./egphoto/opt-citexref-true.tex}{opt-citexref-true.tex}、
+ \href{run:./egphoto/opt-citexref-false.tex}{opt-citexref-false.tex}。
+ 效果示例如图\ref{fig:eg:optcitexref}所示。
+
+\begin{figure}[!htb]
+\centering
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\subfigure[\heiti citexref=true] {\parbox{7.5cm}{\includegraphics*[page=1,viewport=0.2cm 0.2cm 7.5cm 8cm,clip=true]{egphoto/opt-citexref-true.pdf}}}
+\subfigure[\heiti citexref=false] {\parbox{7.5cm}{\includegraphics*[page=1,viewport=0.5cm 0.2cm 8cm 8cm,clip=true]{egphoto/opt-citexref-false.pdf}}}
+\end{tcolorbox}
+\caption{控制传统crossref功能的citexref选项}\label{fig:eg:optcitexref}
+\end{figure}
+
+ \pdfbookmark[4]{gbannote}{gbannote}
+ \item[gbannote]=true,\textbf{false}. \hfill default is false
+
+ 为控制是否在文献条目后面输出由annotation或annote域提供的注释信息而增加的选项。
+ \begin{itemize}
+ \item gbannote=false,即默认不输出。
+ \item gbannote=true,输出注释信息。
+ \end{itemize}
+
+ 测试文档见:\href{run:./example/opt-gbannote.tex}{opt-gbannote.tex}。
+ 效果示例如图\ref{fig:eg:optgbannote}所示。
+
+\begin{figure}[!htb]
+\centering
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\subfigure[\heiti gbannote=true] {\parbox{\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 16cm 2.8cm,clip=true]{egphoto/opt-gbannote-true.pdf}}}\\
+\subfigure[\heiti gbannote=false] {\parbox{\linewidth}{\includegraphics*[page=1,viewport=1cm 0.2cm 16cm 2.8cm,clip=true]{egphoto/opt-gbannote-false.pdf}}}
+\end{tcolorbox}
+\caption{文献的附加注释输出控制选项}\label{fig:eg:optgbannote}
+\end{figure}
+
+
+ \pdfbookmark[4]{gbctexset}{gbctexset}
+ \item[gbctexset]=\textbf{true},false. \hfill default is true
+
+ 为控制参考文献标题内容的设置方式增加的选项。
+ \begin{itemize}
+ \item gbctexset=true,参考文献标题内容可以通过重定义 bibname 或 refname 宏设置。比如利用ctex宏包进行设置:
+ \lstinline[breaklines]!\ctexset{bibname={title you want}}!
+ \item gbctexset=false,参考文献标题内容可以通过重定义本地字符串设置,比如:
+
+ \lstinline[breaklines=true]!\DefineBibliographyStrings{english}{bibliography={title you want}}!
+
+ \lstinline[breaklines=true]!\DefineBibliographyStrings{english}{references={title you want}}!。
+ \end{itemize}
+ 当然除此之外,利用 printbibliography 命令的 title 选项进行设置依然是最有效方式,比如:
+ \lstinline[breaklines=true]!\printbibliography[title=title you want]!。
+
+
+ \pdfbookmark[4]{gbcodegbk}{gbcodegbk}
+ \item[gbcodegbk]=true,\textbf{false}. \hfill default is false
+
+ 为兼容GBK编码的文档增加的选项。
+ \begin{itemize}
+ \item gbcodegbk=false,即默认是utf-8编码的文档。
+ \item gbcodegbk=true,为利用pdflatex/latex编译GBK编码文档时使用。
+ \end{itemize}
+ 当在源文档前面增加 XeTeX 原语:\lstinline!\XeTeXinputencoding "GBK"! 后,GBK编码的文档也可以使用xelatex编译,这时应设置为false或不给出该选项。测试文件见:
+ \href{run:example/codeopt-gbcodegbk.tex}{codeopt-gbcodegbk.tex}。
+
+
+ \pdfbookmark[4]{gbstyle}{gbstyle}
+ \item[gbstyle]=\textbf{true},false. \hfill default is true
+
+ 为实现多种样式并存而增加的选项。仅用于gb7714-2015ms样式中。
+ \begin{itemize}
+ \item gbstyle=true,即默认全部文献使用gb7714-2015样式。
+ \item gbstyle=false,仅中文文献使用gb7714-2015样式,其它语言文献使用biblatex默认样式。
+ \end{itemize}
+
+ 该选项的实现原理是把所有国标格式设置局部化到每一条文献打印时,处理时首先判断gbstyle 选项及文献的语言,当满足要求则使用这些局部化格式,否则使用默认的标准样式。这种实现为一篇文档内实现两种样式提供解决思路,尽管目前非中文语言文献的著录格式是标准样式,但只要对标准样式做进一步的修改就可以形成符合某种格式规范的样式,比如像ieee,nature等的样式。因此存在中文使用GB/T 7714-2015 著录格式,而英文文献使用ieee等著录格式的可能性。测试文档见:\href{run:./example/opt-gbstyle.tex}{opt-gbstyle.tex}。
+
+
+ \pdfbookmark[4]{gbfootbib}{gbfootbib}
+ \item[gbfootbib]=true,\textbf{false}. \hfill default is false
+
+ 为实现国标样式的脚注文献表格式而增加的选项。
+ \begin{itemize}
+ \item gbfootbib=true,即默认做处理使脚注文献表满足国标要求。
+ \item gbfootbib=false,不做任何附加处理。
+ \end{itemize}
+
+ 该选项的实现主要是两个方面:
+
+ 一是实现国标要求的脚注标签和段落格式,利用对
+ \verb|\@makefnmark|重定义实现正文脚注标签带圈上标,
+ 利用对\verb|\@makefntext|做patch局部化重设\verb|\@makefnmark|使得脚注中的标签不上标,利用对latex核心代码和hyperref宏包代码的重定义实现悬挂缩进的格式。
+
+ 二是实现国标要求的相同文献不输出内容,而是用标签代替,比如同\textcircled{4} ,主要利用citetracker 选项实现对文献引用的追踪,然后利用ifciteseen 判断和对footfullcite 命令做修改实现。
+ 测试文档见:\href{run:./example/opt-gbfootbib.tex}{opt-gbfootbib.tex}。
+
+ 同时为了方便脚注的对齐格式控制增加了两个尺寸:\verb|\footbibmargin|和\verb|\footbiblabelsep|,分别表示脚注文本的左侧缩进距离和悬挂的脚注标记标签与脚注文本的间隔距离,默认分别是1em和0.5em。如果要修改悬挂对齐为其它对齐方式,那么需要重定义\verb|\@makefntext|宏,目前悬挂对齐的实现方式见bbx文件。比如示例中重定义这两个尺寸为2em 和1em:
+
+ {\small
+ \vspace{1ex}
+ \centering
+ \fbox{
+ \setlength{\footbibmargin}{2em}%脚注的段落左侧缩进距离
+ \setlength{\footbiblabelsep}{1em}%脚注中标记号与脚注段落的间距
+ \begin{minipage}{0.75\linewidth}
+ 脚注\footnote{中文脚注中文脚注中文脚注中文脚注中文脚注中文脚注中文脚注中文脚注中文脚注中文脚注}
+ 脚注\footnote{English footnote English footnote English footnote English footnote English footnote}
+ \end{minipage}}
+ \vspace{1ex}
+
+ }
+
+
+ 需要注意的是,由于图表标题(caption)环境的特殊性,在其中使用footfullcite可能无法得到正常的脚注文献表。而通常的方法是利用footnotemark和footnotetext来实现脚注,对于文献表也是类似的,因此也不能简单使用footfullcite命令,而是要使用footnotemark和footnotetext以及fullcite命令配合来实现, 比如:
+
+ \begin{example}{图表标题中产生的脚注文献表}{eg:footbib:incaption}
+ \begin{texlist}
+ \begin{figure}[h]
+ \centering
+ \fbox{abc}
+ \caption{示意图见文献\protect\footnotemark}
+ \end{figure}
+
+ \footnotetext{\fullcite{bibtex-key}}
+ \end{texlist}
+ \end{example}
+
+ 但要注意由于hyperref本身的原因,这种方式产生的脚注文献表可能没有超链接功能。
+ 对于表格环境中的引用无法产生脚注文献表的问题,可以将其置于小页环境中实现或者采用前述图标标题中的类似处理方式。
+ 注意:latex核心代码参考latex.ltx,而hyperref代码参考hyperref.STY。
+
+ \pdfbookmark[4]{gbfnperpage}{gbfnperpage}
+ \item[gbfnperpage]=true,\textbf{false}. \hfill default is false
+
+ 为脚注计数器根据页码更新而增加的选项。
+ \begin{itemize}
+ \item gbfnperpage=true,每页更新脚注编号,即根据page计数器重设footnote计数器。
+ \item gbfnperpage=false,不根据页码重设脚注计数器。
+ \end{itemize}
+
+ 注意,若要让脚注计数器与其它计数器比如chapter等关联,那么采用latex的常规方法就能解决,比如使用latex内核常用的\verb|\@addtoreset|命令。
+
+
+ \item[gbstrict]=\textbf{true},false. \hfill default is true
+
+ 为避免输出bib文件中多余的域信息而增加选项,目的是为了兼容一些bib文件,因为某些bst样式文件进行中英文判断需要在bib文件中增加类似language这样的域作为支撑,而其中某些域在标准的biblatex样式文件中是默认输出的。
+ \begin{itemize}
+ \item gbstrict=true,即默认不输出。
+ \item gbstrict=false,需要还原标准样式的输出情况时使用。
+ \end{itemize}
+
+
+ \item[gbfieldstd]=true,\textbf{false}. \hfill default is false
+
+ 为控制一些域如标题,网址,卷域的格式而增加选项。目的是使用一些标准样式的处理来增加格式多样性。
+ \begin{itemize}
+ \item gbfieldstd=false,即默认使用GB/T 7714-2015要求的样式。
+ \item gbfieldstd=true,即还原使用标准样式的格式,比如使用引号,字体,加引导词等。当然要调整这些格式也可采用biblatex提供的更为直接的设置域格式的方式。
+ \end{itemize}
+
+\end{description}
+
+
+\subsubsection{兼容的标准选项}\label{sec:old:opt}
+绝大部分biblatex标准样式选项可与gb7714-2015样式联合使用,下面给出一些经过兼容性测试的选项说明。需要注意的是:使用gb7714-2015样式时(即style=gb7714-2015),backend选择应指定为biber,还有一些选项已经在样式设计中固定,如果要严格使用国标样式,一般不应做修改,比如sorting,maxnames,minnames,date,useprefix,giveninits等,但如果用户有自己的其它需求,则可按需修改。
+
+\begin{description}
+ \item[url]=true, false. \hfill default: true
+
+ 该选项控制是否打印 url 域并获取日期。该选项只影响 url 信息是可选的那些条目类型。而 @online 条目的 url 域总是会打印出来。它是导言区选项,与样式相关,gb7714-2015样式做了特别支持,可以兼容使用。
+
+ \item[giveninits]=true, false. \hfill default: true
+
+ 启用该选项时姓名中的名部分会用首字母表示。
+
+ \item[uniquelist]=true, false, minyear \hfill default: minyear
+
+ 该选项用于著者-出版年制样式,用于正文中引用(标注)标签的作者列表控制(目的是消除歧义)。当uniquelist=true时,自动利用扩展作者姓名列表长度的方式消除labelname 列表的歧义; 当=false 时则禁用扩展,标签仅使用一个作者,消除歧义通过跟在年份后面的字母实现; 默认使用minyear,即当被截短的作者姓名列表存在歧义时,只有当年份相同,才会扩展列表长度以消除歧义。
+
+ 注意当使用uniquelist=false后标签只有一个作者,但文中可能有同姓作者的文献,这时根据uniquename选项的设置,biblatex会使用姓名的其它部分比如名来消除歧义,但如果想强制要求仅用姓作为文中的标注标签,那么可以设置uniquename=false,但此时标注是可能存在歧义的。
+
+ \item[maxnames]=整数 \hfill default: 3
+
+ 影响所有名称列表(\bibfield{author}、\bibfield{editor} 等)的阈值。如果某个列表超过了该阈值,即,它包含的姓名数量超过 \prm{integer},那么就会根据 \opt{minnames} 选项的设置进行自动截断。\opt{maxnames} 是设置 \opt{maxbibnames} 和 \opt{maxcitenames} 两个选项的支配选项。
+
+ \item[minnames]=整数 \hfill default: 3
+
+ 影响所有名称列表(\bibfield{author}、\bibfield{editor} 等)的限制值。如果某个列表包含的姓名数量超过 \prm{integer},那么就会自动截断至\opt{minnames}个姓名。\prm{minnames} 的值必须小于或等于 \prm{maxnames}。\opt{minnames} 是设置 \opt{minbibnames} 和 \opt{mincitenames} 两个选项的支配选项。
+
+ \item[maxbibnames]=整数 \hfill default: \prm{maxnames}
+
+ 类似于 \opt{maxnames} 但只影响参考文献表。
+
+ \item[minbibnames]=整数 \hfill default: \prm{minnames}
+
+ 类似于 \opt{minnames} 但只影响参考文献表。
+
+ \item[maxcitenames]=整数 \hfill default: \prm{maxnames}
+
+ 类似于 \opt{maxnames} 但只影响正文中的标注(引用)。
+
+ \item[mincitenames]=整数 \hfill default: \prm{minnames}
+
+ 类似于 \opt{minnames} 但只影响正文中的标注(引用)。
+
+ \item[hyperref]=true, false, auto. \hfill default: auto
+
+ 是否将引用和后向引用转化为可点击的超链接。这是宏包的载入时选项,与样式无关,自然可以使用。
+
+ \item[backref]=true, false. \hfill default: false
+
+ 是否在文献中打印出反向引用。这是宏包的载入时选项,与样式无关,自然可以使用。
+
+ \item[refsection]=none, part, chapter, section, subsection. \hfill default: none
+
+ 该选项自动在文档分段处(例如一章或一节)开始一个新的参考文献分节。是宏包的载入时选项,与样式无关,自然可以使用。需要注意与titlesec宏包联用时,该选项会失效。
+
+ \item[refsegment]=none, part, chapter, section, subsection. \hfill default: none
+
+ 类似于refsection选项,但开始的是一个新的参考文献片段。
+
+ \item[citereset]=none, part, chapter, section, subsection. \hfill default: none
+
+ 该选项在文档分段处(例如一章或一节)自动执行citereset 命令。
+
+ \item[labeldate]=year, short, long, terse, comp, ymd, iso. \hfill default: year
+
+ 类似于 date 选项,但控制的是由DeclareLabeldate 选择的日期域的格式。
+
+ \item[doi]=true,false. \hfill default: true
+
+ 该选项控制是否打印 \bibfield{doi} 域。
+
+ \item[isbn]=true,false. \hfill default: true
+
+ 该选项控制是否打印 \bibfield{isbn}\slash \bibfield{issn}\slash \bibfield{isrn} 等域。
+
+ \item[sortlocale]=auto, locale. \hfill default: auto
+
+ 该选项控制排序的本地化调整方案。对于英文文献,该选项不需要设置。对于中文文献当有按拼音或笔划等进行排序的需求时,可以设置相应的本地化调整方案。主要的调整方案有:
+ \begin{itemize}
+ \item \verb|sortlocale=auto| 或者不设置该选项,为unicode编码顺序
+ \item \verb|sortlocale=zh|,为unicode编码顺序
+ \item \verb|sortlocale=zh__pinyin|,为拼音顺序
+ \item \verb|sortlocale=zh__big5han|,为big5 编码顺序
+ \item \verb|sortlocale=zh__gb2312han|,为GB-2312 顺序
+ \item \verb|sortlocale=zh__stroke|,为笔划数顺序
+ \item \verb|sortlocale=zh__zhuyin|,为注音顺序
+ \end{itemize}
+
+ \item[language]=autobib, autocite, auto, \prm{language}. \hfill default: autobib
+
+ 详细说明见biblatex手册。
+
+ \item[autolang]=none, hyphen, other, other*, \prm{langname}. \hfill default:
+
+ 结合langid/langidopts域,结合babel/polyglossia宏包,可以对西文做基于条目的本地化处理。详细说明见biblatex 手册。
+
+ \item[sortcites]=true, false. \hfill default: false
+
+ 详细说明见biblatex手册。
+
+ \item[autocite]=plain, inline, footnote, superscript. \hfill default: plain
+
+ 详细说明见biblatex手册。
+
+ \item[block]=none, space, par, nbpar, ragged. \hfill default: none
+
+ 详细说明见biblatex手册。
+
+ \item[indexing]=true, false, cite, bib. \hfill default: false
+
+ 详细说明见biblatex手册。
+
+ \item[其它]=下面还有很多选项,有些是宏包载入时选项,与样式无关,一般可以使用,但笔者没有做测试,各位用户可以测试使用。选项的作用可以参考biblatex 使用手册,以及文博与笔者翻译的中文版。
+ \begin{itemize}
+ \item related=true, false. default: true
+ \item defernumbers=true, false default: false
+ \item maxitems=integer default: 3
+ \item minitems=integer default: 1
+ \item autopunct=true, false default: true
+ \item clearlang=true, false default: true
+ \item notetype=foot+end, footonly, endonly default: foot+end
+ \item backrefstyle=none, three, two, two+, three+, all+ default: three
+ \item backrefsetstyle=setonly, memonly, setormem, setandmem, memandset, setplusmem default: setonly
+ \item loadfiles=true, false default: false
+ \item abbreviate=true, false default: true
+ \item julian=true, false default: false
+ \item punctfont=true, false default: false
+ \item arxiv=abs, ps, pdf, format default: abs
+ \item mincrossrefs=integer default: 2
+ \item minxrefs=integer default: 2
+ \item eprint=true, false default: true
+ \end{itemize}
+
+\end{description}
+
+
+\subsection{文献引用及标注格式}\label{sec:cbx:usage}
+
+要生成参考文献,第一步就是在正文中引用参考文献。正文中因引用文献所形成的标注的格式称为参考文献标注样式,也称引用样式或引用标签样式,分为两类: 顺序编码制和著者-出版年(作者年)制。引用文献的基本命令是\verb|\cite|,但为了在一篇文档中实现不同的标签效果,通常还需要使用其它命令,
+比如\verb|\parencite|, \verb|\textcite|, \verb|\pagescite|,\verb|\footfullcite|等。此外为遵循biblatex对于复数形式标注命令的使用习惯,也提供上述命令的复数形式,比如\verb|\cite|命令的复数形式命令\verb|\cites|,便于输出单个文献的页码等前后注信息。
+
+熟悉natbib的用户也可以直接使用使用\verb|\citet|, \verb|\citep|命令。
+另外也可以使用一些习惯命令比如\verb|\citetns|、\verb|\citepns|、
+\verb|\upcite|、\verb|\inlinecite|等。
+
+\subsubsection{两种编制的标注格式}
+
+%顺序编码制的标注样式文件大体使用标准引用样式numeric-comp的内容
+\paragraph{\heiti 顺序编码制的标注样式}
+为满足GB/T 7714-2015第10.1节的要求,考虑\verb|\cite| 命令为上标模式,\verb|\parencite|保留非上标模式。增加 \verb|\pagescite| 命令,用于输出上标顺序编号并自动加页码。
+为使用户免于输入文献作者,完善了\verb|\textcite|命令,提供作者为句子主语,并附带行内非上标的顺序编码,
+并增加了\verb|\authornumcite|命令,以输出作者作为句子主语,并附带上标的顺序编码。
+增加了\verb|\citec|命令,输出另一种形式的编码压缩标签,比如\textsuperscript{[2]-[4]}区别于一般的\textsuperscript{[2-4]}。
+
+其它命令\verb|\citet|、\verb|\citep|、\verb|\citetns|、\verb|\citepns|、
+\verb|\upcite|、\verb|\inlinecite|分别等价于
+\verb|\authornumcite|、\verb|\cite|、\verb|\textcite|、\verb|\parencite|、
+\verb|\cite|、\verb|\parencite|。
+
+上述命令均可在{bibtexkey}前面的[]内或第二个[]内(当有两个[]时),指定页码用于输出。若不指定页码,则仅有\verb|\pagescite|命令默认提取参考文献的页码信息进行输出。
+各引用命令的使用方式如表\ref{tab:cite:num}所示。
+测试文档见\href{run:example/testallformat.tex}{testallformat.tex}。
+
+%各命令使用方式如例\ref{eg:citefornumeric}所示。
+%各引用命令的效果如图\ref{fig:cite:num}所示。
+
+\qd{对于一个引用命令中同时给出多个文献bibtexkey的压缩形式,页码只会应用到最后一个参考文献后面,这是不正确的,但这种情况其实本不应出现,因为指定页码本来就需要具体化指向某一文献。使用时请尽可能使用
+\textbackslash pagescite\{key1\}\textbackslash pagescite\{key2\}这种形式
+而不是\textbackslash pagescite\{key1,key2\}|。当然除了多次使用标注命令外,也可以使用对应标注命令的复数形式来为每篇文献提供相应的页码信息。}
+
+
+%著者-出版年制的标注样式文件大体使用标准引用样式authoryear的内容。
+\paragraph{\heiti 著者-出版年制的标注样式}
+为满足GB/T 7714-2015第10.2节的要求,
+考虑\verb|\cite|和\verb|\parencite|命令将引用标签用圆括号括起来。增加了\verb|\pagescite|命令,用于自动加页码。增加了\verb|\yearpagescite|, \verb|\yearcite|命令用于处理文中已有作者信息只需要年份和页码的情况(为兼容性考虑,顺序编码制也给出该命令,但作用与
+\verb|\pagescite| 命令相同),也完善了 \verb|\textcite| 命令,提供作者为句子主语,并附带行内非上标的页码,增加了\verb|\authornumcite|命令,以输出作者作为句子主语,并附带上标的页码。
+
+其它命令\verb|\citet|、\verb|\citep|、\verb|\citetns|、\verb|\citepns|、
+\verb|\upcite|、\verb|\inlinecite|分别等价于
+\verb|\authornumcite|、\verb|\cite|、\verb|\textcite|、\verb|\parencite|、
+\verb|\cite|、\verb|\parencite|。
+
+%各命令使用方式如例\ref{eg:citeforauthoryear}所示。
+%各引用命令的效果如图\ref{fig:cite:ay}所示。
+各引用命令的使用方式如表\ref{tab:cite:authoryear}所示。
+测试文档见\href{run:example/testallformat.tex}{testallformat.tex}。
+
+%\begin{table}[!htb]
+\noindent\begin{minipage}{0.95\linewidth}
+\begin{refsection}
+\centering
+\fixtabcaption{顺序编码制常用命令示例}\label{tab:cite:num}
+\footnotesize
+\begin{tabular}{l@{\quad$\Rightarrow$\quad}ll}
+\hline
+\heiti{命令} & \heiti{标注标签} & \heiti{说明} \\ \hline
+ \verb|\cite{Peebles2001-100-100}| & \cite{Peebles2001-100-100} & 不带页码上标 \\
+ \verb|\upcite{Peebles2001-100-100}| & \upcite{Peebles2001-100-100} & 不带页码上标 \\
+ \verb|\supercite{Peebles2001-100-100}| & \supercite{Peebles2001-100-100} & 不带页码上标 \\
+ \verb|\parencite{Miroslav2004--}| & \parencite{Miroslav2004--} & 不带页码非上标 \\
+ \verb|\cite[49]{蔡敏2006--}| & \cite[49]{蔡敏2006--} & 带页码上标 \\
+ \verb|\pagescite{Peebles2001-100-100}| & \pagescite{Peebles2001-100-100} & 自动页码上标 \\
+ \verb|\pagescite[150]{Peebles2001-100-100}| & \pagescite[150]{Peebles2001-100-100} & 带页码的上标 \\
+ \verb|\parencite[49]{Miroslav2004--}| & \parencite[49]{Miroslav2004--} & 带页码非上标 \\
+ \verb|\textcite{Miroslav2004--}| & \textcite{Miroslav2004--} & 提供主语非上标标签 \\
+ \verb|\authornumcite{Miroslav2004--}| & \authornumcite{Miroslav2004--} & 提供主语上标标签 \\
+ \verb|\citeauthor{蔡敏2006--}\cite{蔡敏2006--}| & \citeauthor{蔡敏2006--}\cite{蔡敏2006--} & 提供主语上标标签 \\
+ \verb|\footfullcite{赵学功2001--}| & \footfullcite{赵学功2001--} & 脚注方式文献条目 \\
+ 引用单篇文献: & 文献\cite{Peebles2001-100-100} & 国标示例 \\
+ 同一处引用两篇文献: & 文献\cite{Peebles2001-100-100,Miroslav2004--} & 国标示例\\
+ 同一处引用多篇文献: & 文献\cite{蔡敏2006--,Miroslav2004--,赵学功2001--} & 国标示例:三篇以上压缩\\
+ 同一处引用多篇文献: & 文献\citec{蔡敏2006--,Miroslav2004--,赵学功2001--} & 另一种形式的压缩\\
+ 多次引用同一作者的同一文献: &
+ 文献\cite[20-22]{Miroslav2004--},
+ 文献\cite[55-60]{Miroslav2004--} & 国标示例 \\
+ 多次引用同一作者的同一文献: &
+ 文献\footfullcite[20-22]{Miroslav2004--},
+ 文献\footfullcite[55-60]{Miroslav2004--} & 国标示例:脚注方式 \\ \hline
+\end{tabular}
+\end{refsection}
+\end{minipage}
+%\end{table}
+
+
+
+
+
+\begin{table}[!htb]
+\centering
+\caption{著者年份制常用命令示例}\label{tab:cite:authoryear}
+\hspace{-1cm}{\parbox{\linewidth}{\includegraphics[scale=0.95,page=2]{egciteaytab.pdf}}}
+\end{table}
+
+
+%\begin{example}{著者-出版年制引用命令}{eg:citeforauthoryear}
+%\begin{texlist}
+%不带页码的引用:
+% \cite{Peebles2001-100-100} \parencite{Miroslav2004--}
+%带页码的引用:
+% \cite[49]{蔡敏2006--} \parencite[见][49页]{Miroslav2004--}
+% \pagescite{Peebles2001-100-100}\pagescite[150]{Peebles2001-100-100}
+% \pagescite[][201-301]{Peebles2001-100-100}
+%著者-出版年制文中已有作者只需给出年份和页码的引用:
+% 见赵学功\yearpagescite[][205]{赵学功2001--}和Miroslav\yearpagescite[][15]{Miroslav2004--}
+%著者-出版年制文中已有作者只需给出年份的引用,三种方式:
+% 见赵学功\yearcite{赵学功2001--}
+% 见赵学功(\cite*{赵学功2001--})
+% 见赵学功(\citeyear{赵学功2001--})\par
+%著者-出版年制文中无作者需要标注命令给出作者作为主语的引用:
+% 见\textcite{赵学功2001--}\par
+%在页脚中引用和打印文献表:
+% \footnote{在脚注中引用\footcite{赵学功2001--}} \footfullcite{赵学功2001--}
+% \end{texlist}
+%\end{example}
+
+%\begin{figure}[!htb]
+%\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+%width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+%leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+%\centering
+%\deflength{\textparwd}{\linewidth-1cm}
+%\parbox{\textparwd}{
+%\includegraphics{egciteay.pdf}
+%}
+%\end{tcolorbox}
+%\caption{著者-出版年制标注格式}\label{fig:cite:ay}
+%\end{figure}
+
+\subsubsection{标注格式局部调整}
+
+标注在同一个文档中是可能存在不同格式需求的,比如:有的地方需要用上标,有的地方需要用行内,有的地方需要给出作者,有的地方需要给出页码等。一般情况下,不同标注格式可以通过使用不同的标注命令来得到,比如上一小节给出的大量不同的命令,不同命令能够产生独特的标注标签。
+
+除了利用命令来调整标注格式外,还有更多的方法来进行局部格式调整。这利用了tex的编组特性,编组内的局部格式不影响编组外的格式,所以可以利用编组内的局部设置来调整标注的格式,类似的,文献表的著录格式也是可以局部调整的,见下一节。
+
+引用文献所产生标注标签的格式包括很多内容,包括作者数量,标点,本地化字符串等。最常见的局部调整需求是标点和本地化字符串。这里以双语图题中的引用标签的不同本地化字符串需求为例来展示局部调整的方法。
+
+在中科院某类学位论文中,正文的标注标签要求两个英文作者之间用和而不是and连接,多个英文作者截断成一个作者时后面用等.而不是et al.表示。这可以容易通过设置本地化字符串来实现。然而对于双语的图题,英文图题中的出现等与和这样的字符实在不雅,所以又要求在这种全英文的环境中将和与等.更换为英文的表示符号,这就需要利用本地化字符串的局部调整。这种本地化字符串的局部调整其实已经是比较深入的内容,因为biblatex提供的接口DefineBibliographyStrings是全局的设置,如何进行局部调整并没有非常方便的接口,要解决这一需求,需要对biblatex以及gb7714-2015样式有比较深入的了解。
+
+因为gb7714-2015通过gbcitelocalcase计数器来选择使用中文或英文的本地化字符串,因此通过局部设置gbcitelocalcase可以局部的选择不同语言的本地化字符串,然而因为本地化字符串的内容通常是全局设置的,所以当中文的或者英文的本地化字符串设置都不满足要求时,就需要局部的调整本地化字符串的内容,如\ref{eg:str:localset}所示,对本地化字符串andothersincite的内容做了调整,从全局设置的等.转换为et al.,和转换为and,这种局部设置是通过csdef对保存字符串信息的命令直接做的调整。比如\verb|\csdef{abx@sstr@andothersincite}{et al.}|就是将andothersincite本地化字符串的内容临时调整为et al.。
+
+为方便用户使用,提供了
+\verb|\setlocalbibstring|命令来替代上述直接定义的csdef命令,比如:
+\verb|\setlocalbibstring{andothersincite}{et al.}|,等价于与前面csdef那条命令。
+另外,如果要在本地化字符串的内容设置中使用biblatex提供的一些标点命令,比如adddot等,那么需要对其进行保护,避免直接展开导致命令未定义的错误,比如:
+\verb|\setlocalbibstring{andothersincite}{et al\protect\adddot}|
+
+具体的测试见\href{egthesis/thesis-ucas-m.tex}{thesis-ucas-m.tex}
+
+ \begin{example}{双语图题内的标注标签的本地化字符串局部设置}{eg:str:localset}
+ \begin{texlist}
+\begin{figure}[!htbp]
+ \centering
+ \fbox{\parbox{5cm}{example fig\\在双语图题中强制使用某种语言的方式}}
+ \bicaption{中文图题具体见{\cite{walls2013drought}\cite{betts2005aging}}}
+ {English fig title See{\setlocalbibstring{andothersincite}{et al\protect\adddot}\setlocalbibstring{andincite}{and}\cite{walls2013drought}
+ \cite{betts2005aging}}}\label{fig:bi:lang}
+\end{figure}
+ \end{texlist}
+ \end{example}
+
+
+
+
+
+
+
+\subsection{文献表输出及著录格式}\label{sec:usage:bbx}
+
+引用文献后,可以在文档需要的位置利用 \verb|\printbibliography| 命令输出文献表。文献表的输出格式称为参考文献著录样式,也称著录表样式或著录格式,也分两类: 顺序编码制和著者-出版年制(作者年制)。
+
+%顺序编码制的参考文献样式基于标准样式numeric-comp/numeric
+\paragraph{\heiti 顺序编码制样式} 中各条参考文献条目以数字序号按引用先后顺序组织。
+著录格式中序号格式见\ref{sec:bib:serialno}节,
+各类型文献条目的著录格式见\ref{sec:numeric:data}节,
+参考文献条目中各信息域及其录入方式见\ref{sec:bib:bibtex}节。
+
+%著者-出版年制的参考文献样式则基于标准样式authoryear
+\paragraph{\heiti 著者-出版年制样式} 中各条参考文献条目以作者-年为标签以一定的顺序排列。著者-出版年制的著录格式与顺序编码制基本相同,差别仅在于把年份提前到作者后面作为条目的标签。数据源bib文件中各条目的数据录入与顺序编码制完全一致。
+
+\qd{著者-出版年制有文献按文种集中的要求,因此gb7714-2015ay样式设计了gblanorder选项来配合专用的排序模板,可以方便地设置不同文种的先后顺序,默认文种顺序是中日韩英法俄。如需其他顺序则可利用gblanorder选项重设,设置方法见第\ref{sec:added:opt}节。此外,由于排序需要根据文献所使用的语言判断,因此使用language域,该域由biblatex-gb7714-2015宏包自动判断处理,一般不需过多关注,如果当语言判断出现问题,可以在bib文件中手动设置language域为正确的语言,比如chinese,japanese,english,french等。}
+
+%前一段为20190331更新
+%\qd{著者-出版年制有分文种文献集中的要求,因此gb7714-2015排序模板以nyt模板为基础,增加 language 作为 name 前的排序域。默认情况下,本样式文件将标题(或作者)为中文的文献的 language 域设置成 chinese,英文的设置成 english。这一设置过程,在biber 处理时自动完成。当出现问题或者有更多文种分集且有特殊顺序时,可以在bib文件中为相应文种文献的 language 域手动设置适合排序的字符串。比如: 中文文献设置为 chinese,英文文献设置为 enlish,法文文献设置为 french,那么排序中,相应的中文文献排在最前面,英文文献在中间,法文文献最后,因为升序情况下字母顺序是c然后e然后f。}
+
+%上一段2016-1114更新,下面是以前的说法。
+%\qd{根据文种文献集中的要求,修改了nyt排序格式,增加了userb作为name前的排序域,当有需求进行多文种分集且有特殊顺序时,在bib文件中给相应文种的文献设置适合排序的字符串。比如中文文献设置为cn,英文文献设置为en,法文文献设置为fr,那么排序中,相应的中文文献排在最前面,英文文献在中间,法文文献最后,因为升序情况下字母顺序是c然后e然后f。}
+
+打印出的文献表主要有两个部分的格式需要控制,一是文献表的段落格式,二是文献表中各条文献的著录格式:
+
+\subsubsection{段落格式控制}
+
+\paragraph{\heiti 文献表字体、颜色、间距、缩进控制} 为方便用户改变文献表段落格式、内容字体和颜色等,在 biblatex 提供的 \verb|\bibfont| 命令基础上,
+增加了\verb|\bibauthorfont|、\verb|\bibtitlefont|、\verb|\bibpubfont| 等命令用于控制文献不同部分的格式,比如作者,标题,出版项等。
+增加了尺寸\verb|\bibitemindent| 用于控制参考文献条目在文献表中的缩进,
+其意义与 list 环境中 \verb|\itemindent| 相同。
+用法具体见例\ref{eg:biblist:fontset},结果如图\ref{fig:par:fmt}所示。
+测试用例见\href{run:example/testfontinbiblio.tex}{testfontinbiblio.tex}。
+
+\begin{example}{文献表段落格式、字体、颜色}{eg:biblist:fontset}
+\begin{texlist}
+% 文献项之间的间隔符控制(比如是否换行)
+ % 选项 block=none , space , par , nbpar , ragged
+ % 或\renewcommand*{\newblockpunct}{\par\nobreak}
+% 字体的控制:\textit,sl,emph-楷体,\textbf,sf-黑体,\texttt-仿宋,\textsc,md,up-宋体
+ % 全局字体
+\renewcommand{\bibfont}{\zihao{-5}}%\fangsong
+ % 题名字体
+\renewcommand{\bibauthorfont}{\bfseries\color{teal}}%
+\renewcommand{\bibtitlefont}{\ttfamily\color{blue}}%
+\renewcommand{\bibpubfont}{\itshape\color{violet}}%
+ % url和doi字体
+\def\UrlFont{\ttfamily} %\urlstyle{sf} %\def\UrlFont{\bfseries}
+\end{texlist}
+\end{example}
+
+\begin{figure}[!htb]
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\centering
+\deflength{\textparwd}{\linewidth-1cm}
+\includegraphics[width=\textparwd]{egparfmt.pdf}
+\end{tcolorbox}
+\caption{文献表段落格式示例}\label{fig:par:fmt}
+\end{figure}
+
+文献表各条目之间的竖直间距控制如例\ref{eg:biblist:vspace}所示:
+
+\begin{example}{文献表竖直间距控制}{eg:biblist:vspace}
+\begin{texlist}
+% 竖直间距的控制
+\setlength{\bibitemsep}{0ex}
+\setlength{\bibnamesep}{0ex}
+\setlength{\bibinitsep}{0ex}
+\end{texlist}
+\end{example}
+
+文献表的水平缩进控制,两种编制方式下是不同的。对于著者-出版年制文献表,bibitemindent表示
+\emph{一条文献中第一行相对后面各行的缩进},bibhang 表示\emph{页边到文献各行起始位置的距离}。因此要调整缩进就是要设置这两尺寸。
+
+对于顺序编码制文献表,由于存在数字标签,且其宽度与参考文献数量相关,所以这个宽度是动态变的,无能提前设定的,而是在文献表生成时给出,所以调整缩进需要在文献表输出环境中调整。由于顺序编码样式使用了两类输出环境,所以需要根据设定的选项区分处理:
+
+一是采用list环境的文献表,即设置gbalign=left、right、center时(即顺序编码标签是左对齐、右对齐和居中对齐的情况),在重定义的文献表环境中,调整bibitemindent和bibhang两个尺寸,默认情况下bibhang+labelnumberwidth的长度是页边到各行起始位置的距离。当采用某些字体导致计算计算的标签宽度不足时,可以设置biblabelextend尺寸,来增加labelnumberwidth的宽度,避免缩进格式产生问题,默认情况下biblabelextend尺寸为0pt。
+
+二是采用正常段落环境的文献表,即设置gbalign=gb7714-2015时(即项对齐情况,就是各条文献是自身对齐的情况),在重定义的命令中通过调整lengthid尺寸来设置\emph{每条参考文献第二行开始的缩进距离}。
+调整方法见例\ref{eg:biblist:hspace}。
+
+\begin{example}{文献表水平缩进控制}{eg:biblist:hspace}
+\begin{texlist}
+% 著者-出版年制文献表缩进控制
+\setlength{\bibitemindent}{0em} % bibitemindent表示一条文献中第一行相对后面各行的缩进
+\setlength{\bibhang}{0pt} % 著者-出版年制中 bibhang 表示的各行起始位置到页边的距离
+
+% 顺序编码制文献表缩进控制
+% 调整顺序标签与文献内容的间距
+\setlength{\biblabelsep}{2mm}
+
+% 调整各条文献的缩进:
+%-1-----gbalign=left、right、center时,重定义 bibenvironment
+\defbibenvironment{bibliography}%修改对齐环境-调整缩进
+ {\list
+ {\printtext[labelnumberwidth]{%
+ \printfield{labelprefix}%
+ \printfield{labelnumber}}}
+{%
+%这里是所做的调整,通过设置\bibitemindent,\bibhang调整缩进
+\addtolength{\bibitemindent}{\labelnumberwidth}%
+\addtolength{\bibitemindent}{\biblabelsep}%
+\addtolength{\bibhang}{-\labelnumberwidth} %
+\addtolength{\bibhang}{-\biblabelsep}%
+ %
+ %以下是默认的设置
+ \setlength{\labelwidth}{\labelnumberwidth}%
+ \setlength{\labelsep}{\biblabelsep}%
+ \setlength{\leftmargin}{\bibhang}%
+ \addtolength{\leftmargin}{\labelnumberwidth}%
+ \setlength{\itemindent}{\bibitemindent}%
+ \setlength{\itemsep}{\bibitemsep}%
+ \setlength{\parsep}{\bibparsep}}%
+ \renewcommand*{\makelabel}[1]{\hss##1}}
+ {\endlist}
+ {\item}
+
+%-2-----gbalign=gb7714-2015时,重定义 \itemcmd命令
+\renewcommand{\itemcmd}{%%修改对齐环境-调整缩进
+\settowidth{\lengthid}{\mkgbnumlabel{\printfield{labelnumber}}}
+%
+%%这里是所做的调整,以下两句通过调整\lengthid来调整缩进
+\setlength{\lengthid}{0pt}
+\addtolength{\lengthid}{-\biblabelsep}
+%
+%如下是默认设置
+\addtolength{\lengthid}{\biblabelsep}
+\setlength{\lengthlw}{\textwidth}
+\addtolength{\lengthlw}{-\lengthid}
+\addvspace{\bibitemsep}%恢复\bibitemsep的作用
+%\parshape 2 0em \textwidth \lengthid \lengthlw
+\hangindent\lengthid
+\mkgbnumlabel{\printfield{labelnumber}}%
+\hspace{\biblabelsep}}
+\end{texlist}
+\end{example}
+
+文献表中有时需要调整标点为中文的全角标点,可以通过不同机制下的标点设置来调整。
+调整方式如例\ref{eg:biblist:separator}所示。有时在本地化字符串中也可以实现标点调整,比如and,in等本地化字符串。有时在域格式中也可能出现标点调整,比如title域格式。而且因为不同语言的处理,可能内部也存在标点的调整。具体情况是比较复杂的,这里不再一一列举,一些修改示例可以参考:
+\href{run:./chinese-erj.bbx}{chinese-erj.bbx},
+\href{run:./egthesis/thesis-uibe-numeric.tex}{thesis-uibe-numeric.tex}。具体的标点命令的意义详见biblatex手册。
+
+\begin{example}{文献表常见标点控制}{eg:biblist:separator}
+\begin{texlist}
+% 标点类型的控制(注意:全局字体能控制标点的字体)
+
+%文献表各条文献中各单元间隔标点设置(与异步标点机制相关的)
+\renewcommand*{\newunitpunct}{,}%\addcomma\space %,
+\renewcommand*{\finentrypunct}{\iffieldequalstr{userd}{chinese}{。}{\adddot}}
+
+%姓名格式相关的标点
+\DeclareDelimFormat{nameyeardelim}{,}%\addcomma\addspace
+%\DeclareDelimFormat[bib,biblist]{nameyeardelim}{,}%\addcomma\addspace
+\DeclareDelimFormat{multinamedelim}{,}%[bib,biblist]
+\DeclareDelimFormat{finalnamedelim}{,}
+\DeclareDelimFormat{andothersdelim}{,}
+\renewcommand*{\revsdnamepunct}{,}%
+\end{texlist}
+\end{example}
+
+\subsubsection{条目著录格式控制}\label{sec:entry:fmt}
+
+文献表输出的格式即参考文献著录样式,除了整体的段落格式外,还有条目内部的格式可以控制,条目内部的这些项称为著录项,这些著录项的格式通常可由选项控制。可用选项除了biblatex 提供的标准选项外,也包括样式包提供的选项。
+图\ref{fig:content:fmta}、\ref{fig:content:fmtb}、\ref{fig:content:fmtc}给出了一些选项设置后的格式控制效果,
+更多选项的详细说明见第\ref{sec:added:opt}、\ref{sec:old:opt}小节。
+
+图\ref{fig:content:fmta}给出了选项设置为 style=gb7714-2015, gbnamefmt=givenahead,
+gbpub=false, gbbiblabel=dot, gbtitlelink=true 时的文献表,可以看到作者姓名、序号标签、标题超链接的设置。
+
+\begin{figure}[!htb]
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\centering
+\deflength{\textparwd}{\linewidth-1cm}
+\includegraphics[width=\textparwd]{egcontentfmt.pdf}
+\end{tcolorbox}
+\caption{文献表条目著录格式示例一}\label{fig:content:fmta}
+\end{figure}
+
+图\ref{fig:content:fmtb}给出了选项设置为 style=gb7714-2015ms, gbnamefmt=lowercase,
+gbpub=false, gbtitlelink=true, gbstyle=false, sorting=nyt 时的文献表,可以看到作者姓名、标题超链接、中英文不同文献格式、文献排序的设置。
+
+\begin{figure}[!htb]
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\centering
+\deflength{\textparwd}{\linewidth-1cm}
+\includegraphics[width=\textparwd]{egcontentfmtb.pdf}
+\end{tcolorbox}
+\caption{文献表条目著录格式示例二}\label{fig:content:fmtb}
+\end{figure}
+
+图\ref{fig:content:fmtc}为选项和本地化字符串如例\ref{eg:localstr:diff}设置时的引用标注和文献表,注意其中引用标注和文献表中的不同本地化字符串输出效果,引用标注中英文作者和中文作者缩略词的不同。这是中科院大学资环类学位论文的要求格式,可以看到尽管有些特殊,但通过选项设置和本地化字符串设置也能实现。
+
+\begin{example}{著者-出版年制标注和文献表不同本地字符串效果}{eg:localstr:diff}
+\begin{texlist}
+\usepackage[backend=biber,style=gb7714-2015ay,gbnamefmt=lowercase,maxcitenames=2,mincitenames=1,
+sortcites=false,sorting=gbynta]{biblatex}
+ \renewcommand{\bibauthorfont}{\color{violet}}%
+\DefineBibliographyStrings{english}{
+ andincite = {和},
+ andincitecn = {和},
+ andothersincite = {等{\adddot}},%adddot才能避开标点追踪
+ andothersincitecn = {等}, }
+\end{texlist}
+\end{example}
+
+
+\begin{figure}[!htb]
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\centering
+\deflength{\textparwd}{\linewidth-1cm}
+\includegraphics[width=\textparwd]{egcontentfmtc.pdf}
+\end{tcolorbox}
+\caption{文献表条目著录格式示例三}\label{fig:content:fmtc}
+\end{figure}
+
+\subsubsection{著录格式局部调整}\label{sec:entry:fmtlocal}
+
+得益于biblatex利用tex宏控制著录格式的特点,加上tex语言本身编组的局部化特性,所以在利用biblatex生成参考文献的过程中可以有丰富手段,来进行参考文献著录格式的局部调整。也正因为局部的格式调整,因此通常局部格式都是结合refsection或者refsegment来操作的。前面提到过的一个很简单的例子,当在学位论文的写作中需要正文部分的参考文献使用顺序编码制,而附录中研究成果部分使用作者年制这样的需求就是一个典型的局部化格式调整。这一问题的解决方式为在研究成果部分使用一个refsection将其局部化,并结合gb7714-2015mx样式,并利用setaystylesection命令设置该refsection为作者年制样式。
+
+因为tex宏的局部化调整特性,因此几乎biblatex中所有格式设置都是可以做局部调整的,限于篇幅,这里仅介绍一些常见的简单的调整方式:
+
+\begin{enumerate}
+ \item 文献表标题
+
+ 局部重定义bibname、refname或者局部重设printbibliography命令的选项可以设置文献表标题。
+
+ \item 文献表段落格式
+
+ 局部重定义bibfont命令即可局部设置参考文献的字体颜色等,进一步重定义bibauthorfont、bibtitlefont、bibpubfont 等命令用于控制文献不同著录项的格式。
+
+ 局部重定义bibitemindent 尺寸可以设置文献表的缩进
+
+ 局部重定义bibitemsep、bibnamesep、bibinitsep可以设置文献表的各条目的间距
+
+ \item 文献表条目著录格式
+
+ biblatex中绝大部分的控制选项都是使用toggle的方式,比如url选项,gbtype选项,gbannote选项等,因此在局部设置选项对应的toggle 值可以局部设置选项控制的格式。
+ 另外也有一些选项使用的是计数器,比如gbnamefmt选项,因此局部设置选项对应的计数器的值可以局部设置选项控制的格式。
+ 当然由于一些选项的特殊性,它无法简单的进行利用toggle值或计数器值进行设置,而可能需要调整选项对应的宏的内容,因此复杂度会明显提升,如果不是非常必要,建议不要去局部化重设这些选项的所对应的格式。
+
+ 示例见\href{run:./example/opt-gbannote.tex}{opt-gbannote.tex}。
+
+ \item 文献表条目中域或标点的格式
+
+ biblatex中域和标点的格式设置其实是比较简单的,且设置命令不限制一定要在导言区中,因此做局部化调整也是合适的。比如在一个refsection中需要将期刊文献的volume域的格式设置为粗体,那么可以做设置为:
+
+ \begin{example}{域格式的局部调整示例}{eg:bib:fieldsetlocal}
+ \begin{texlist}
+ \DeclareFieldFormat[article,periodical]{volume}{\textbf{#1}}% volume of a journal
+ \end{texlist}
+ \end{example}
+
+\end{enumerate}
+
+实施上格式的局部调整和全局调整本质上是一致的,文献样式中几乎所有格式设置,都可以做局部化处理。当然做全面的样式设计会稍微往深里去一点,考虑的问题也会更多,但局部格式调整是可以借鉴的,关于样式中的格式设置和说明请参考:
+\href{https://github.com/hushidong/biblatex-solution-to-latex-bibliography/blob/master/biblatex-solution-to-latex-bibliography.pdf}%
+{biblatex高级使用方法和样式包设计实现方法}。
+
+
+
+
+
+
+\subsection{文献表排序与调整}
+
+\subsubsection{国标要求的排序方式}
+
+排序是文献表格式的重要内容。国标的两种编制方式中,顺序编码制要求文献表中的文献按照正文中文献引用的先后顺序进行排序,而著者-出版年制则要求文献表首先按照文种对不同语言的文献进行分组,中文在前英文在后,分组内的中文文献则以拼音或笔画进行排序,而西文文献则按照字母顺序进行排列。在gb7714-2015国标样式中两种编制方式的排序分别以如下选项设置来实现:
+
+\begin{example}{两种编制方式的排序设置}{eg:bib:sorting}
+\begin{texlist}
+%顺序编码制:
+sorting=none
+
+%著者-出版年制:
+sorting=gb7714-2015,gblanorder=chineseahead,sortlocale=zh__pinyin
+\end{texlist}
+\end{example}
+
+这些设置是样式的默认设置,用户如果没有其他需求则无需调整,若需调整详见下一节。
+
+\subsubsection{排序的逻辑和调整方法}
+
+文献表中文献的排序通常是由处理bib文件的后端程序实施的,比如bibtex或biber程序。通常biblatex选择biber作为后端程序来实现更灵活的排序机制。biber在处理过程中读取bib文件信息并根据biblatex宏包和文献样式在bcf文件中输出设置信息执行排序。而bibtex程序则在读取bib文件后根据bst样式进行排序,尽管可以让bibtex读入特殊格式bib文件来提供一些设置参数,但总的来说基于bibtex的文献排序是由bst样式决定的。而biber程序则是提供了一套工具,具体的排序方式是由biblatex宏包和样式文件中的设置决定的,biber根据这些设置执行特定的逻辑来实现排序。
+
+biblatex通过sorting选项选择排序模板来进行排序,而排序模板是可以自定义的。gb7714-2015及
+gb7714-2015ay样式提供了gblanorder选项来选择文种的排列顺序,其本质是对排序模板中与语言相关的域进行设置,因此它是与sorting选项选择的排序模板密切相关的,biblatex提供的标准样式排序模板并不支持该选项。
+而sortlocale选项则是针对字符排序选择本地化调整方案,比如选项zh\_\_pinyin就是选择针对中文字符根据拼音进行排序。本地化调整方案是由perl模块提供,中文字符排序的可用选项值详见前面的sortlocale选项说明。需要注意的是本地化字符排序调整方案设置也可以通过biber命令行选项提供,biblatex设置和biber命令行设置两种方式见例\ref{eg:sort:opts}、例\ref{eg:sort:bibercmd}。
+
+\begin{example}{中文字符排序调整可利用biblatex选项}{eg:sort:opts}
+\begin{texlist}
+%按拼音排序,biblatex加载选项
+\usepackage[backend=biber,style=gb7714-2015ay,sortlocale=zh__pinyin]{biblatex}
+%按笔画排序,biblatex加载选项
+\usepackage[backend=biber,style=gb7714-2015ay,sortlocale=zh__stroke]{biblatex}%
+%此时,biber则正常编译不需手动加选项,因为排序调整方案(sort tailoring)已由biblatex 给出。
+biber jobname
+\end{texlist}
+\end{example}
+
+\begin{example}{中文字符排序调整也可利用biber选项}{eg:sort:bibercmd}
+\begin{texlist}
+%biblatex正常加载,即不设置排序的本地化调整方案
+\usepackage[backend=biber,style=gb7714-2015ay]{biblatex}
+
+%此时需利用biber选项给出本地化排序调整方案:
+%按拼音排序,则设置-l zh__pinyin
+biber -l zh__pinyin jobname
+%按笔画排序,则设置-l zh__pinyin
+biber -l zh__stroke jobname
+\end{texlist}
+\end{example}
+
+对于sorting选项,biblatex提供了标准的排序模板包括:
+
+\begin{description}
+ \item[nty] 按照姓名、标题、年份排序。
+ \item[nyt] 按照姓名、年份、标题排序。
+ \item[nyvt] 按照姓名、年份、卷数、标题排序。
+ \item[anyt] 按照字母标签、姓名、年份、标题排序。
+ \item[anyvt] 按照字母标签、姓名、年份、卷数、标题排序。
+ \item[ynt] 按照年份、姓名、标题排序。
+ \item[ydnt] 按照年份(降序)、姓名、标题排序。
+ \item[none] 不进行排序。所有的条目按照引用顺序处理。
+\end{description}
+
+而gb7741-2015和gb7741-2015ay样式提供了4个排序模板:
+
+\begin{description}
+ \item[gb7714-2015] 以语言、作者、年份、标题、升序排列
+ \item[gbnytd] 以语言、作者、年份、标题、降序排列
+ \item[gbynta] 以语言、年份、作者、标题、升序排列
+ \item[gbyntd] 以语言、年份、作者、标题、降序排列
+\end{description}
+
+在使用gb7714-2015和gb7714-2015ay样式时可以使用上述排序模板。用户也可以增加自定义模板,比如为了处理多音字的问题,用户可以手动设置key域用来对中文文献进行排序,定义如下的排序模板:
+
+\begin{example}{针对多音字问题的排序模板}{eg:sort:multipinyin}
+\begin{texlist}
+\DeclareSortingTemplate{multipinyin}{
+ \sort{
+ \field{presort}
+ }
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort{
+ \field{sortkey}
+ }
+ \sort{%[direction=descending]
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field{volume}
+ \literal{0}
+ }
+ }
+\end{texlist}
+\end{example}
+
+其中,排序模板优先使用persort域进行排序,接着是与文种相关的lansortorder域,接着是sortkey域(该域在biblatex中就是key域的别名),接着是sortname等作者姓名相关的域,要让文献根据多音字习惯音进行排序,那么就在key域中设置文献作者姓名的习惯音。比如三篇文献作者分别是[李四]、[J. B. Conway]、[曾三]。在设置sorting=multipinyin, gblanorder=chineseahead, sortlocale=zh\_\_pinyin的情况下,根据上述的multipinyin排序模板,首先根据文种和作者信息将中文文献[曾三][李四]排在前面,接着是[J. B. Conway],因为默认情况下,曾字考虑的读音是ceng2。但若对key域手动设置中文的拼音,比如[李四]文献设置key=\{li3si4\},而[曾三]文献设置key=\{zeng1san1\},那么中文文献仍然排在前面,但根据key域的设置会将[李四]文献排列在[曾三]前面。因此手动设置作者姓名的习惯拼音后,文献排列顺序为:[李四][曾三][J. B. Conway]。
+
+其中,与文种相关的排序域lansortorder是由gblanorder选项设置的,当选项值为chineseahead时,语言顺序为cn;jp;kr;en;fr;ru,会将中文文献的lansortorder域设置为1,日语文献设置为2,韩语文献设置为3,英文文献设置为4,法语文献设置为5,俄语文献设置为6。排序过程中按升序排序,那么自然中文文献在前英文文献在后。若对gblanorder选择设置一个自定义的字符串如:cn;en;ru;fr;jp;kr,那么文种的排列顺序为中文、英文、俄语、法语、日语、韩语。
+
+根据上述的排序逻辑可知,要做排序的调整首先可以考虑合理地设置选项,来选择合适的排序模板、文种顺序和本地化字符排序调整方案。当不满足要求时,可以自定义排序模板,并设置sorting选项为该模板,来实现用户需要的排序方式。
+
+
+\subsection{多语言支持}
+
+
+\subsubsection{多语言混合文献表}\label{sec:multilan:combine}
+
+在国内的一般应用场景下,常见的多语言混合文献表是中英两种语言混合的文献表,但有时也可能会存在多种语言,比如存在中/英/日/俄等多种语言。图\ref{fig:multi:lan}给出了这样一个示例,其中不同语言的文献使用了不同的本地化字符串。
+
+\begin{figure}[!htb]
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\centering
+\deflength{\textparwd}{\linewidth-1cm}
+\includegraphics[width=\textparwd]{egmultilan.pdf}
+\end{tcolorbox}
+\caption{多语言混合文献表}\label{fig:multi:lan}
+\end{figure}
+
+\begin{enumerate}
+\item 多语言混合文献表首先要解决的是多语言文献的字符显示问题。使用xelatex编译时,由于其原生支持unicode的特性,在tex文档内显示多语言字符比较容易实现,正确显示的关键在于合适的字体设置。一般情况下西文如英/法/俄可以利用fontspec宏包选择合适的字体来解决,而中/日/韩语可以利用ctex宏包可以解决,但仍需注意要正确的显示中/日/韩语也需要字体支持,windows下常见的中文字体可能不支持日/韩字符,而思源宋体是一个不错的选择。本文的多语言示例编译均采用思源宋体常规(SourceHanSerifSC-Regular.otf),
+请从其\href{https://github.com/adobe-fonts/source-han-serif/tree/release}{官网}下载。
+
+\item 除此之外,还要解决另外一个重要问题是本地化字符串问题。因为对于不同语言的文献,通常要求使用符合自身语言规范的本地化字符串。而且不同的语言,本地化字符串并不是一一对应的,特别是东亚语言,因此要考虑一个全面的解决方案:
+
+对于西方语言, biblatex基于 babel/polyglossia宏包,结合autolang/language等选项和langid/langidopt等域,提供了一套多语言解决方案。
+
+\begin{itemize}
+\item 首先,对不同语言的文献,设置langid域为文献所用语言,比如英文文献则设置langid域等于english,俄文文献则设置等于russian。
+
+\item 其次,在biblatex加载时设置 autolang选项,等于none则不做多语言处理,等于hyphen则仅做不同语言的断词处理,等于other或other*则处理不同语言的断词和本地化字符串,other*选项等价于使用babel的otherlanguage*环境,与other的差别在于不忽略环境后的空白。从实践看,当要使用条目集时,使用other*选项更为合适。
+
+\item 再次,还可设置language选项,用于区分是否在标注或文献表中采用多语言处理方案。当language选项等于autobib时仅在文献表中自动切换语言,等于 autocite 时仅在标注中自动切换语言,等于 auto 时则在文献表和标注中同时切换。
+
+\item 最后,需要在tex文档内加入babel宏包或polyglossia,并设置需要使用的语言。注意:需要使用本地化字符串的西语都要加入,否则无法自动切换。比如需要自动切换的西文语言有英文、法文和俄文,
+那么需要将加入\verb|french,russian,english|。如例\ref{eg:multi:lanset}所示:
+
+\begin{example}{babel/polyglossia设置西方语言的多语言支持}{eg:multi:lanset}
+\begin{texlist}
+ %使用babel的方式
+ \usepackage[russian,french,english]{babel}
+
+ %使用polyglossia的方式
+ \usepackage{polyglossia}
+ \setdefaultlanguage{english}
+ \setotherlanguages{russian,french}
+\end{texlist}
+\end{example}
+
+\end{itemize}
+
+对于东亚语言,通常没有像西方语言那么多的本地化字符串的应用,只有有限几个字符串需要使用,而且习惯用法也与西文不同,因此无法与西文的本地化字符串一一对应,所以考虑的解决思路也不同于西文。即不使用类似西文的本地化字符串文件,而直接利用在英文本地化文件(english.lbx)基础上新增适用于东亚语言的本地化字符串的方式。在标注和著录格式处理过程中,根据当前处理的域或条目的语言做判断,然后使用对应语言的本地化字符串。如第\ref{sec:usage:bbx}节所述,本样式使用language域来标记文献的语言类型,langid域用来标记文献对应的本地化字符串文件,默认情况下都不需要人工输入,可由宏包根据文献信息自动判断,但也可以人工输入来指定。
+
+\end{enumerate}
+
+因此考虑东亚语言的特殊性,针对西文和东亚语言,整体解决方案做如下:
+\begin{itemize}
+ \item 如俄语/法语这样的西方语言,通过biblatex提供的方案自动解决。使用时,bib文件中的文献数据按文献本身的语言录入,在tex源文件中载入babel宏包并设置相应语言,然后设置biblatex的autolang和language选项。剩下所有工作比如自动语言判断和处理则交由gb7714-2015样式自动完成。
+
+ \item 日韩语采用类似中文的方式处理,即在英语本地化文件基础上通过增加新的本地化字符串实现处理,因此langid需设为english。在输出本地化字符串的宏中当做英文处理,但内部存在区分逻辑,当判断语言为中文时,则使用中文的本地化字符串比如andcn,andotherscn等, 当不是时,则判断不同的语言,是日文则输出本地化字符串如andjp,andothersjp,若是韩文则输出本地化字符串如andkr,andotherskr。而所有其它西文则输出本地化字符串比如and,andothers,由babel自动切换成对应语言的字符串。由于日文中作者这类信息通常用的汉字,因此常常判断为中文,所以可以使用符合中文习惯的字符串,但如果对日文有精确的判断,那么可以输出符合日文习惯的字符串。韩语由于大量使用表音的字符,所以通常使用专门的本地化字符串。中日韩语文献数据录入也不要特殊的处理,按文献本身语言输入即可,剩下所有其它工作均由gb7714-2015样式自动处理,用户无需过多关注。
+
+\end{itemize}
+
+本样式对中日韩英俄法六种语言混合文献表做了测试,详见:
+\href{run:example/opt-eg-multilan.tex}{opt-eg-multilan},
+\href{run:example/opt-autolang-multilan.tex}{opt-autolang-multilan}。
+
+
+\subsubsection{多语言对照的文献表}\label{sec:multilan:implement}
+
+国标GB/T 7714-2015有不同语言对照文献的要求(详见第6.1节),某些期刊也有类似的需求。
+多语言对照的文献表首先是多语言混合的文献表,所以本节的方法是在前一节基础上做的。
+对于biblatex宏包,多语言对照文献问题可以通过条目集类型(set)/或者条目关联(related)来解决,由于多语言对照的情况与双语言对照本质是一样的,因此下面主要讨论双语对照的情况。
+图\ref{fig:double:lana}和\ref{fig:double:lanb}给出中英双语对照文献示例,两个示例中英文文献的作者姓名做了不同的设置,前者为 gbnamefmt=uppercase,后者为gbnamefmt=pinyin,后者也是国内某期刊的参考文献样式。
+GB中的韩中两种语言对照文献见\href{run:./stdGBT7714-2015.pdf}{stdGBT7714-2015文件}第4页。
+
+\begin{figure}[!htb]
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\centering
+\deflength{\textparwd}{\linewidth-1cm}
+\includegraphics[width=\textparwd]{egdoublelan.pdf}
+\end{tcolorbox}
+\caption{双语言对照文献表示例一}\label{fig:double:lana}
+\end{figure}
+
+\begin{figure}[!htb]
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\centering
+\deflength{\textparwd}{\linewidth-1cm}
+\includegraphics[width=\textparwd]{egdoublelanb.pdf}
+\end{tcolorbox}
+\caption{双语言对照文献表示例二}\label{fig:double:lanb}
+\end{figure}
+
+\paragraph{\heiti 利用条目集类型满足双语文献要求}
+
+设置条目集类型(set)有静态和动态两种方法。其中动态方法使用更为方便,只需在写文档时利用\verb|\defbibentryset|将两条文献不同语言的文献设置成一个set条目,然后引用set的bibtex键。比如:
+\begin{example}{设置set条目集用于双语文献的动态方法}{eg:setforbilangentry}
+\begin{texlist}
+\defbibentryset{bilangyi2013}{易仕和2013--,Yi2013--}
+专著,双语文献引用\cite{bilangyi2013}
+\end{texlist}
+\end{example}
+
+测试见文档\href{run:example/testallformat.tex}{testallformat.tex}。
+
+\bc{需要注意:由于biblatex的升级,在著者-出版年制中应用动态条目集方法产生的标注标签存在版本差异。
+biblatex v3.7及之前版本,因为 set 带有第一个子条目的信息,所以会自动输出子条目信息作为标签。
+而biblatex v3.8及以上版本中,因为set条目类型除了子条目关键词信息外,并无其他信息,所以set的标注标签会存在问题。这个问题可以通过设置一个指定格式和内容且中间无空格无英文逗号的关键字来弥补,比如“易仕和,等,2013”,这时因为没有空格和英文逗号,该关键字会以一个整体字符串处理,而不会被分开解析,因此可以用它来作为标签}。比如:
+
+\begin{example}{设置set条目集用于双语文献动态方法}{eg:setforbilangentry}
+\begin{texlist}
+\defbibentryset{易仕和,等,2013}{易仕和2013--,Yi2013--}
+专著,双语文献引用\cite{易仕和,等,2013}
+\end{texlist}
+\end{example}
+
+\bc{在biblatex3.8以上版本中,例{eg:setforbilangentry}的作者年制标注标签会是“易仕和,等,2013”,注意到其中的逗号是中文全角逗号,与其它标签的英文逗号的存在差异,正因为此,该方法并没有完美解决问题。}
+
+\bc{由于顺序编码制使用的时数字标签,前述的问题对于顺序编码制并不存在。而作者年制中的标签问题,可以采用下面的静态条目集方法和关联(related)方法来解决。}
+
+静态方法是在bib源文件中给出条目集(set)并使用biber后端进行解析,条目的域信息定义方法如下:
+
+%当使用bibtex后端时,则需要进一步设置,具体参考biblatex宏包说明文档。
+\begin{example}{设置set条目集用于双语文献的静态方法}{eg:set:static}
+\begin{texlist}
+@Set{set1,
+entryset = {key1,key2,key3},
+}
+%如果要达到上例动态设置set一样的结果,在bib文件中静态设置set条目如下:
+@Set{bilangyi2013,
+entryset = {易仕和2013--,Yi2013--},
+}
+\end{texlist}
+\end{example}
+
+然而例\ref{eg:set:static}这般简单的静态条目集设置,还存在两个小的问题:
+\begin{enumerate}
+ \item 中文排序会出现问题,条目集会出现在文献表末尾,这是因为条目集没有设置language域用于排序,而其它常规条目都会利用动态数据修改设置language域,但因为静态条目集需要在biber运行时解析,所以无法对language域进行处理。而使用动态条目集方法则没有这一问题,因为其解析过程直接会利用第一个子条目的排序信息。
+ \item 著者-出版年制中的标注标签问题,对于静态条目集,v3.8以上版本的biblatex同样不复制第一个子条目信息,因此著者- 出版年制中的引用也无法生成正确的标注标签,这也就是前面动态条目集方法中提到的问题
+\end{enumerate}
+
+但静态条目集方法有自己的解决方便,对于第一个问题,可以通过在set条目中手动设置language域来解决;第二个问题,也可以通过在set条目中手动设置label域来解决。比如:
+
+\begin{example}{在bib文件中正确设置set条目集的静态方法}{eg:set:staticright}
+\begin{texlist}
+%在bib文件中静态设置set条目如下,其中:
+%手动设置userb域用于解决排序问题
+%手动设置label域用于解决标注标签问题
+@Set{bilangyi2013,
+entryset = {易仕和2013--,Yi2013--},
+label={易仕和, 等, 2013},
+language={chinese}
+}
+\end{texlist}
+\end{example}
+
+\bc{注意:由于动态set条目集设置等价于使用了 nocite命令,因此只要定义了动态条目集的文献都会出现在文献表中,因此如果不引用相应的文献,那么无需对其定义动态条目集}。
+
+\bc{注意:biblatex提供的mcite模块提供了mcite类命令,其等价于定义动态条目集,因此除了使用上述defbibentryset方法外,也可以使用mcite类命令}。
+
+\bc{注意:条目集方法本质上是将多个文献条目集合成一个组一起在文献表中输出,且仅有一个标注标签。无论是否是多语言对照都是可以使用的,这里的多语言对照实现只是条目集方法的一个具体应用}。
+
+\paragraph{\heiti 利用条目关联满足双语文献要求}
+
+除上述给出的条目集方案外,关联条目方法则是另一种可行方案\footnote{Again about the \@ set label for authoryear style:\url{https://github.com/plk/biblatex/issues/681}}。该方案同样也有静态和动态两种方法,静态就是直接修改bib文件的内容,动态则是在tex源文档中做设置,然后通过biblatex的动态数据修改机制做临时修改。
+
+静态方法很简单,bib文件中条目设置如例\ref{eg:related:staticright}所示,它能解决双语同时显示的问题,也能解决排序和标注标签问题,唯一的问题在于修改了bib文件后,当不需要双语文献时还需改回来,这会带来不便,因此可以考虑下面的动态方法。但要注意动态方法需要利用多个\verb|\DeclareStyleSourcemap|,因此该方法只适用于biblatex v3.7及以上版本。
+
+\begin{example}{在bib文件中正确设置关联条目的静态方法}{eg:related:staticright}
+\begin{texlist}
+%在bib文件中静态设置条目如下,注意:
+%易仕和2013--条目中增加了related域用于关联其对应的英文条目Yi2013--
+@Book{易仕和2013--,
+ Title = {超声速和高超声速喷管设计},
+ Address = {北京},
+ Author = {易仕和 and 赵玉新 and 何霖 and 张敏莉},
+ Publisher = {国防工业出版社},
+ Year = {2013}
+ related = {Yi2013--}
+}
+@Book{Yi2013--,
+ Title = {Supersonic and hypersonic nozzle design},
+ Address = {BeiJing},
+ Author = {Yi, S H and Zhao, Y X and He, L and Zhang, M L},
+ Publisher = {National Defense Industry Press},
+ Year = {2013}
+}
+\end{texlist}
+\end{example}
+
+动态方法利用动态数据修改自动添加related域,避免对bib文件做直接修改。本样式中对该过程进行了封装,定义一个新的命令\verb|\defdoublelangentry|,例如:
+\begin{example}{设置关联条目的动态方法}{eg:related:dynamic}
+\begin{texlist}
+\defdoublelangentry{易仕和2013--}{Yi2013--}
+\end{texlist}
+\end{example}
+
+使用该命令后,可以引用主条目“易仕和2013--”生成双语文献。但要注意由于\verb|\DeclareStyleSourcemap|命令只能在导言区中使用,因此\verb|\defdoublelangentry|命令也只能出现在导言区中,这也是相比条目集动态方法的唯一遗憾。
+实现的具体细节见
+\href{https://github.com/hushidong/biblatex-solution-to-latex-bibliography}%
+{biblatex-solution-to-latex-bibliography}。
+
+双语对照文献的两种动态方法基于set和related的方法测试,参见:
+\href{run:./example/opt-eg-authoryear.tex}{opt-eg-authoryear.tex}。
+
+\subsection{多样式支持}
+
+\subsubsection{一个文献表采用多种著录样式}
+
+一个文献表采用多种著录样式主要针对的是在一个tex文档生成参考文献表中,不同语言的文献采用不同的著录格式,比如中文文献采用GB/T 7714-2015 样式,而西文文献采用西文习惯的样式。这种情况目前由gb7714-2015ms样式解决,选项加载方式如例\ref{eg:gb7714ms}所示。
+
+目前gb7714-2015ms样式中,有两种应用方式,一是全部文献都采用GB/T 7714-2015 标准样式,二是中文西文分别采用GB/T 7714-2015 标准样式和biblatex的默认样式。两种方式的选择通过gbstyle选项设置。区分语言使用不同样式的情况下,如有其它需要,完全可以通过定义中文和西文的格式做进一步的修改,比如将英文文献的样式修改为IEEE格式。图\ref{fig:eg:ms}展示了两种不同语言不同的著录格式。
+
+\begin{figure}[!htb]
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\centering
+\deflength{\textparwd}{\linewidth-1cm}
+\includegraphics[width=\textparwd]{egmsinabiblio.pdf}
+\end{tcolorbox}
+\caption{一个文献表采用多种著录样式示例}\label{fig:eg:ms}
+\end{figure}
+
+测试见文档\href{run:egfigure/egmsinabiblio.tex}{egmsinabiblio.tex}。
+
+
+
+\subsubsection{不同参考文献分节采用不同著录样式}
+
+不同参考文献分节采用不同著录样式主要针对一个tex文档中存在多个参考文献表,且各参考文献表的格式需求不同。比如一些学位论文写作中,正文的参考文献表为著者-出版年制,而附录中的作者论著情况则用顺序编码制。这种情况目前由gb7714-2015mx样式解决,选项加载方式如例\ref{eg:gb7714mx}所示。
+
+gb7714-2015mx样式默认使用顺序编码样式,当要使用著者-出版年制样式时,则利用命令
+\verb|\setaystylesection|进行设置,该命令有一个必选参数,表示采用著者-出版年制样式的参考文献节的编号。注意该命令一次只能设置一个文献节,因此设置多个参考文献节时,需要多次使用\verb|\setaystylesection|命令,比如节2节4都采用著者-出版年制样式,那么设置\verb|\setaystylesection{2}\setaystylesection{4}|。
+
+目前gb7714-2015mx样式中的两种格式:顺序编码和著者-出版年制样式默认都是符合GB/T 7714-2015 标准的,如果需要做格式的修改,则完全可以通过自定义实现。图\ref{fig:eg:ms}展示了3个参考文献分节的文档,其中节2使用了著者-出版年制。
+
+\begin{figure}[!htb]
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\centering
+\deflength{\textparwd}{\linewidth-1cm}
+\includegraphics[width=\textparwd]{egmsindfrefsec.pdf}
+\end{tcolorbox}
+\caption{不同参考文献分节采用不同著录样式}\label{fig:eg:mx}
+\end{figure}
+
+测试见文档\href{run:egfigure/egmsindfrefsec.tex}{egmsindfrefsec.tex}。
+
+
+\subsubsection{完全自定义的条目内容样式}
+
+完全自定义的条目内容样式,针对不完全和不规范的文献表输出,主要用于输出部分参考文献信息。这时可以采用文献缩略信息打印的方法实现。具体的实现方法见\href{https://github.com/hushidong/biblatex-solution-to-latex-bibliography/blob/master/biblatex-solution-to-latex-bibliography.pdf}%
+{biblatex-solution-to-latex-bibliography}中的第2.10节。
+
+具体例子则可以参考\href{run:./stdgbT7714-2015.pdf}{stdgbT7714-2015.pdf}。其中第8节中大量使用这种方式。
+
+
+
+\subsection{未分类说明}
+
+\subsubsection{biblatex 的优点}
+
+基于 biblatex 宏包的参考文献生成方法,具有很多明显的优点,读者可以从
+\href{https://github.com/CTeX-org/lshort-cn}{lshort-cn}、
+\href{https://github.com/latexstudio/LaTeXFAQ-cn}{LatexFAQ-CN}、
+\href{https://tex.stackexchange.com}{tex.stackexchange.com}
+了解到更多。
+
+笔者从最初开始学习latex时利用 thebibliography 环境生成参考文献,到对格式化有更多需求后开始寻求利用参考文献宏包,再到最后选择使用biblatex宏包,在不断实践过程中越发感觉到biblatex 在生成参考文献方面的巨大潜力。以笔者的观点其优点主要包括:
+
+%[也由于对bibtex语言不熟悉,偷懒不想学$( \hat{} \bot \hat{} )$]
+\begin{enumerate}
+\item 使用简单。代码结构很简单,格式控制很简单,功能设置很简单,编译方式很简单,编译命令无限制(xelatex、pdflatex等均可)。例\ref{eg:func:backref} 给出了后向超链接功能的设置。
+
+ \begin{example}{文献条目的后向超链接设置}{eg:func:backref}
+ \begin{texlist}
+ %加上后向超链接设置,需要4步编译。
+ \usepackage[backend=biber,style=gb7714-2015,backref=true]{biblatex}
+ \end{texlist}
+ \end{example}
+
+%使用够方便
+
+\item 划分自由。在一个文档中可以生成任意数量的文献表,无需用将分档划分成不同的文件来辅助生成分章参考文献。利用refsection 和refsegment方便划分,具有嵌套、遍历等多种灵活处理方式。
+%划分很自由,划分无限制
+
+\item 定制方便。使用是tex命令(宏)控制格式,定制和修改相比 bibtex 语言更为容易。全面提供适用于自然学科、人文学科的多种不同类型的参考文献样式,参考、引用、移植、定制均很便捷。
+%定制很容易
+
+%处理无限制,支持更全面
+\item 支持全面。后端处理程序biber处理大数据量毫无压力,不用担心内存不足问题,字符编码支持utf-8,完全支持中文的bibtex 键(引用关键字)。biber除了自身提供的大量功能,比如:动态数据修改、参考文献数据检查、引用文献数据的bib输出(例\ref{eg:bibercmd:outbibfile})等外,还可利用一些perl模块来实现一些特殊功能,比如:
+ 实现文件编码的转换(perl 的Encode::CN 模块),
+ 排序的本地化调整(perl的Unicode::Collation::locale 模块,
+ 中文字符的拼音和笔画排序见例\ref{eg:sort:opts}、例\ref{eg:sort:bibercmd})等。其中引用文献数据的bib输出常用于从一个大的bib文件中导出仅有引用文献信息的小的bib文件。
+
+ \begin{example}{输出引用文献数据时的biber选项}{eg:bibercmd:outbibfile}
+ \begin{texlist}
+ biber jobname --output-format=bibtex
+ \end{texlist}
+ \end{example}
+
+\end{enumerate}
+%上述这些优点也是笔者决定编写符合GB/T 7714-2015标准的参考文献样式文件的原因之一。
+
+\subsubsection{数据库bib文件和文献条目}\label{sec:bib:bibtex}
+
+参考文献数据以bibtex格式保存在bib文件中。生成参考文献除tex源文档外,还需创建参考文献数据源文件即bib文件。bib文件数据源准备完成后,在加载biblatex宏包后,使用addbibresource命令将其导入。\bc{注意:数据源可以加载多个,比如多个章节的参考文献放在不同的bib文件中,那么全部加载进来即可}。
+
+bib文件中的参考文献信息是以条目形式组织,一篇文献创建一条记录即一个参考文献条目,一个条目由若干数据域(有的文档也称为字段)构成。GB/T 7714-2015标准中的文献类型与本样式中条目类型对应关系
+如表\ref{tab:entrytypes}所示,
+各类条目具体的著录格式详见\ref{sec:numeric:data}节。
+
+\begin{table}[!htb]
+\centering
+\caption{参考文献常用条目类型}\label{tab:entrytypes}
+\footnotesize
+\begin{tabular}{clc}
+\hline
+ GB/T 7714-2015中的条目类型 & biblatex中的条目类型 & 类型标识代码\\ \hline
+ 专著& book & M\\
+ 标准& standard/book or inbook with note=standard& S\\
+ 专著中的析出文献& inbook & M\\
+ 连续出版物& periodical& J\\
+ 连续出版物的析出文献& article& J\\
+ 报纸析出的文献& newspaper/article with note=news& N\\
+ 专利& patent& P\\
+ 电子资源或电子公告& online/www/electronic& EB\\
+ 会议录或会议文集& proceedings& C\\
+ 会议文集中析出的文献& inproceedings/conference& C\\
+ 汇编或论文集& collection& G\\
+ 汇编或论文集析出中的文献& incollection& G\\
+ 学位论文& thesis/mastersthesis/phdthesis& D\\
+ 报告& report/techreport& R\\
+ 手册& manual& A\\
+ 档案& archive/manual& A\\
+ 数据库& database& DB\\
+ 数据集& dataset& DS\\
+ 软件& software& CP\\
+ 舆图& map& CM\\
+ 未出版物& unpublished& Z\\
+ 其它& misc& Z\\
+ \hline
+ \end{tabular}
+\end{table}
+
+
+
+组成各个条目的不同数据域(字段)保存有参考文献的各部分信息,比如作者、标题、出版项、日期等,这些信息称为著录项目,录入文献信息时,各著录项目信息应录入到对应的数据域中。GB/T 7714-2015标准中的数据域与biblatex中的域的对应关系如表\ref{tab:entryfields}所示。
+
+\begin{table}[!htb]
+\centering
+\caption{参考文献常用信息域(字段)}\label{tab:entryfields}
+\footnotesize
+\begin{tabular}{cl}
+\hline
+ GB/T 7714-2015中的文献著录项目 & biblatex中的域\\ \hline
+ 责任者 & author/editor\\
+ 题名 & title\\
+ 译者 & translator\\
+ 版本(主要用于出版物) & edition\\
+ 版本(主要用于软件和手册) & version\\
+ 出版地 & location/address\\
+ 出版者 & publisher\\
+ 出版者(大学和研究所) & institution/school\\
+ 出版者(会议主办方、手册和电子资源出品方) & organization\\
+ 日期 & date\\
+ 日期(不可解析的日期) & year\\
+ 页码 & pages\\
+ 析出文献来源的责任者 & bookauthor/editor\\
+ 析出文献来源的标题 & booktitle\\
+ 连续出版物题名(期刊、报纸) & journal/journaltitle\\
+ 期刊的卷 & volume\\
+ 期刊的期/专利号等 & number\\
+ 获取和访问路径 & url\\
+ 引用日期 & urldate\\
+ 数字对象标识符 & doi\\
+ 杂项 & note\\
+ 文献类型标识符 & usera/mark\\
+ 文献载体标识符 & medium\\
+ \hline
+ \end{tabular}
+\end{table}
+
+需要注意的是,
+\begin{itemize}
+ \item note域在本样式中也做特殊用途,即在book类型的note域中输入standard表示标准,在aritcle类型的note域中输入news表示报纸,当然也可以不做特殊用,而只是表示杂项信息,因为标准和报纸也可以用standard和newspaper类型表示,尽管这两种类型不是biblatex原生支持的条目类型。
+
+ \item usera域用于表示参考文献类型和载体标识符(为兼容Lee zeping 的bst样式使用的bib文件也可以用mark和medium 表示)。一般情况下usera,mark,medium这些域不用在bib文件中输入,而由样式文件自动处理得到,既为了使bib文件更纯粹,也为了兼容不同的样式。想象一下如果在bib文件中给出usera域,但另一样式需要使用usera域且用途不同,那么就会有兼容性问题。不用手动输入更重要的目的是为用户减负,因为用户可以直接使用从网络(各种学术网站)导出参考文献信息而不用再额外添加一个参考文献类型和载体标识符。
+
+ \item 本样式自动判断语言,用户一般不需要直接给出表示文献语言的域language,因为样式在处理过程中会对各个域的字符做语言判断,这对于一篇文献存在多种语言的情况非常有用,比如一本英文著作被翻译为中文,原作者仍用英文,而译者则使用中文。那么该文献无法用一个language 标识文献的语言,简单来说,标记language域更多的目的是用在多种语言混合的文档中,可以用language 来标记英语、中文、日语、法语和俄语等用于分文种排序。当然这种标记也是由样式自动处理的,用户仅需在自动判断出现问题时手动干预。
+
+\end{itemize}
+
+
+\subsubsection{文献条目的数据域及其录入方法}\label{sec:bib:field}
+
+各个数据域的录入应符合bib文件规范。需要注意:
+
+\bc{1. 有时直接从网络获取的参考文献信息中可能带有一些特殊字符比如\%,\&等,这些字符在 tex 中通常需要做转义处理,本样式中对像title,journal等常见域中出现的特殊字符已经做了转义,但是一些不常见的域比如 abstract 等没有考虑,所以用户需要手动处理,例如把\%改为\textbackslash \%,否则可能导致出错}
+
+\bc{2. 由于目前biber使用\href{https://github.com/ambs/Text-BibTeX/tree/master/btparse}
+{btparse}
+来解析bib文件,因此各条目中的引用关键词中不能出现圆括号作为其内容一部分比如\@misc\{Euclidean\_geometry(hi), 这样的写法是不允许的,需要去掉其中(),否则biber会报错。%}
+}
+
+\bc{3. 由于url宏包的特点,在各个域中使用 \textbackslash url命令时,无法使用中文字符,如果要使用带中文字符的网址,那么可以利用 \textbackslash href命令代替 \textbackslash url命令。或者不使用这两个命令,而直接输入网址,超链接则在域格式中用 \textbackslash href 命令定义,比如:}
+\verb|\DeclareFieldFormat{howpublished}{\href{#1}{#1}}|。
+
+但要注意: 使用\verb|\href|命令形成的超链接文本,可以看做是普通的正文文本,当内部没有断行符存在时,断行可能会存在问题,因此需要手动处理,比如添加空格或者-字符。
+而当使用\verb|\url|和\verb|\nolinkurl|命令时,断行的问题则由url宏包提供的逻辑进行处理,因此往往能够得到适合的断行。所以是使用\verb|\href|还是\verb|\url|需要根据实际情况选择。
+
+\bc{4. 需要表示范围类型的域,比如页码域,通常用一个或多个-符号表示范围值间的间隔符,间隔符在解析后会替换为一个\textbackslash bibrangedash。而日期域在biblatex中是作为日期类型来考虑的,尽管日期也有起止范围的问题,且由于单个日期内部已经存在-符号,因此起止日期间的间隔符用/符号。而卷和期在biblatex中是整数类型的域,本身不具备起止范围解析功能,但GB 7714-2015的连续出版物类型中存在这样的需求,所以特别设计了卷和期的解析,且由于合期常用(7/8)这样的方式表示,因此卷和期范围间隔符用-表示。这些在数据录入过程中是需要注意的。}
+
+
+下面详细介绍本样式中使用的域及其数据录入方式:
+
+\begin{description}
+ \item[author] 在biblatex中author域属于name数据类型,输入数据时,各姓名间用and 连接,当姓名过多省略时,用others代替。
+
+ 单个姓名,对于中文作者直接输入中文姓名即可。比如:
+
+ 于潇 and 刘义 and 柴跃廷 and others
+
+ 对于英文作者,单个姓名有两种biblatex可以解析的输入方式:
+
+ \textcircled{1}prefix lastname, suffix, firstname middlename
+
+ \textcircled{2}firstname middlename lastname or firstname prefix lastname
+
+ 比如:
+
+ DES MARAIS, Jr., D J and H STRAUSS and SUMMONS, R. E. and others
+
+ 其中第一个姓名输入为前缀,姓,后缀,名\ 中间名。第二个姓名输入为名\ 姓。第三个姓名输入为姓,名\ 中间名。
+
+ \bc{ 推荐使用第一种方式录入作者姓名,特别是存在前后缀的情况。对于第二种输入方式,姓名各个组成部分最好首字母是大写的,首字母非大写可能导致解析出错,比如姓名只有两个组成部分: firstname和lastname,如果firstname 小写的话,有可能会解析为prefix lastname。对于第一种输入方式,则至少需要lastname首字母大写,否则有可能将lastname 解析成prefix。 注意lastname也称familyname,firstname middlename 两者共称givenname}
+
+ 对于中文的机构作者,不需要解析,直接输入机构名,比如:
+
+ 中国企业投资协会 and 台湾并购与私募股权协会 and 汇盈国际投资集团
+
+ 对于英文的机构作者,由于机构名可能存在空格或and等字符串,因此最好用\{\}包起来,避免解析出错,比如:
+
+ \{International Federation of Library Association and Institutions\} and NASA
+
+ \item[title] 直接输入需要打印的内容,subtitle或titleaddon域类似
+ \item[translator] 与author域类似,只是输入的是译者
+ \item[edition] 直接输入整数,或者需要打印的内容
+ \item[location] 直接输入需要打印的地址内容,而address域在biblatex中作为location别名,表示相同的内容。
+ \item[publisher] 直接输入需要打印的出版者内容,institution,organization域类似
+ \item[date] 日期可以格式化输入,格式化输入biblatex 会自动解析,如果无法解析会忽略该域。格式化的输入方式是:
+
+ 年-月-日/年-月-日,数字格式为:yyyy-mm-dd/yyyy-mm-dd
+
+ 比如: 2001-05-06/2001-08-01
+
+ \emph{特别要注意起止日期之间的分隔符为/而不是- ,因为年月日之间已经存在分隔符-。同时因为日期biber解析是严格按照iso标准处理,因此年、月、日数字需要写全,2001-05-06不能写为2001-5-5,否则不能解析},解析完成后第一个年- 月- 日会解析并存储到year,month,day域中,第二个会解析并存储到endyear,endmonth,endday域中。更多细节参考biblatex 手册的Table 8: Date Interface。
+
+ \item[year] year域的输入与date域类似,为了兼容一些老的bib文件,把year 直接用map 转换成date,所以在本样式的使用中输入year域与date域相同。
+
+ 但year与date存在一定的差异,即year可以处理仅有年的信息或者需要原样打印的内容。比如:
+ 1881(清光绪七年)。
+
+ 这一信息如果放在date中会被自动忽略,但放到year域中,本样式会先将其拷贝到date中进行解析,无法解析的话,date域忽略,但year 信息仍然存在,并原样打印。
+
+
+ \item[urldate] urldate域与date域类似,只是解析时,存储到urlday,urlmonth,urlyear,urlendday,urlendmonth,urlendyear域中。origdate和eventdate与urldate情况类似。
+
+ \item[pages] 可以格式化输入或输入需要打印的内容。格式化输入时,页码用整数,当有范围时,用单个或多个短横线-隔开。比如:59-60或\verb|59--60|。 当无法解析时,输入内容被认为是需要完整打印的内容。
+
+ \item[url] 直接输入需要打印的网址内容。注意不需要在域内加上\verb|\url|命令来表示网址链接,仅需要输入网址本身即可,且特殊字符无需转义。即输入方式为:
+
+ \verb|url={http://www.greenwood.com/can_b_b#abc},|
+
+ 而不是:
+
+ \verb|url={\url{http://www.greenwood.com/can_b_b#abc}},|
+
+ 如果是在其它域比如howpublished等域中输入网址,也可以直接输入网址,但所有的特殊字符都需要转义,因为它就是一个普通文本,同时换行行为也与普通文本一致,当网址字符串中没有空格或-字符时,断行可能出现问题,因此需要手动处理。如果加入\verb|\url|命令,那么其中一些特殊字符可能不需要转义,比如\verb|_|等,
+ 且处理断行可以由\verb|\url|命令的内部逻辑处理,通过\verb|\UrlBreaks|设置可以自动实现比较合适的断行。当然因为biblatex已经做了进一步的处理,所以\verb|\url|中的文本断行是由三个计数器控制: biburlnumpenalty、biburlucpenalty、biburllcpenalty,合理设置这三个计数器,即可得到满意的断行效果。
+
+ \item[doi] 直接输入需要打印的DOI内容
+ \item[note] 在本样式中note域有特殊功能,当其内容为standard或news 时,判断条目类型为标准和报纸析出的文献。
+ \item[bookauthor] 用于析出文献时,作为析出文献来源文献的作者,其输入方式与author 相同。
+ \item[editor] editor有时直接作为文献的责任者,比如连续出版物(periodical)类型。有时因为author缺失,editor被当做责任者。还有的时候bookauthor缺失,editor也被当做bookauthor,即析出文献来源文献的责任者。editor的输入方式与author相同。
+ \item[editortype] editortype作为editor的类型或角色说明域,可以用来在editor后面加上适当的表示角色的字符串,比如“主编”或“eds.”等。常见的角色包括:editor、compiler、founder、continuator, redactor、reviser 和collaborator等。当然这是西文环境中的情况,足够细分,中文情况下可以不用这么细分,而仅对editortype={editor}时的本地化字符串做设置,当然如果一篇文档中存在多种不同的角色editor文献的情况,也需要做细分。
+ \item[booktitle] 用于析出文献时,作为析出文献来源文献的题名,其输入方式与title 相同。booktitleaddon域输入方式也相同。
+ \item[volume] 连续出版物的卷,格式化输入用整数,当有范围时中间用短横线连接,比如:1-4。当无法解析时,输入内容被认为是需要完整打印的内容。
+ \item[number] 连续出版物的期或报纸的版次,输入与volume类似。或者是专利等的号时,直接输入需要打印的内容。
+ \item[journal] 用于连续出版物析出文献,表示连续出版物的题名,比如期刊、报纸的提名,直接输入需要打印的内容。journaltitle,journalsubtitle域类似处理。
+ \item[version] 用于report和manual的版本信息,直接输入需要打印的内容。
+ \item[mark/usera] 不用输入,自动处理。也可以输入文献类型标识符比如M, J, DB, CP等。
+ \item[medium] 不用输入,自动处理。也可以输入文献载体标识符比如MT, DK, CD, OL 等。
+ \item[language] 不用输入,自动处理。也可以输入语言类型比如english, russian, french, japnese, korean, chinese等。主要用来标识文献的语言类型,用法详见\ref{sec:multilan:combine}节。
+ \item[langid] 不用输入,自动处理。也可以输入语言名比如english, russian, french 等,中日韩语一般用english。主要用于配合babel等宏包进行文献的本地化字符串处理,用法详见\ref{sec:multilan:combine}节。
+ \item[nameformat] 不用输入。当需要调整当前条目的作者姓名的格式时,可以输入格式名:uppercase, lowercase, givenahead, familyahead, pinyin 等。详见\ref{sec:added:opt}节。
+ \item[namefmtid] 不用输入。
+\end{description}
+
+除了上述输入内容要求外,GB/T 7714-2015还有对数字、字母大小写等有一些格式要求,这些细节需要注意,请参考:
+\begin{itemize}
+\item 数字:\ref{sec:fmt:number}节
+\item 字母大小写:\ref{sec:fmt:lettercase}节
+\item 卷和期:\ref{sec:fmt:volnum}节
+\item 版次:\ref{sec:fmt:edition}节
+\item 出版项:\ref{sec:fmt:pubitem}节
+\item 页码:\ref{sec:fmt:pages}节
+\end{itemize}
+
+\subsubsection{其它注意事项}\label{sec:pkg:hints}
+
+\begin{enumerate}
+
+ \item 本样式包的设计与实现方法以及涉及到的一些biblatex功能介绍,以项目示例的形式总结在
+ \href{https://github.com/hushidong/biblatex-solution-to-latex-bibliography}{\LaTeX 文档中文参考文献的biblatex解决方案}中,本文档不再重复给出,有需要了解的用户可以参见其中的第3.1节。
+
+ \item tex源文档既可以用xelatex编译,也可以利用pdflatex或latex进行编译。但要注意的是pdflatex编译可能因为某些样式比如authoryear,使用了xstring宏包中的一些命令而导致错误,但numeric类样式通常没有问题。该问题在biblatex更新到3.12版本后取消xstring 宏包后得以解决。
+
+ 中文用户编译还需要注意编码问题。
+ utf-8编码的文档,采用xelatex 编译没有任何注意事项,但使用pdflatex编译时,需要给ctex 宏包加载UTF8选项,比如 \verb|\usepackage[UTF8]{ctex}| 。
+
+ 该选项在文档类加载时给出也可,比如 \verb|\documentclass[UTF8]{article}| ,
+ 同时\bc{文献引用时所用关键词应采用英文},比如 \verb|\cite{zhangml2008}| 而不能包含中文,比如 \verb|\cite{张敏莉2008}|。
+
+ 当文档使用其他编码时,可以利用notepad++ 或notepad2 等编辑器将其转换为UTF-8编码。若不进行转换,使用xelatex编译通常需要指定一个文档编码,比如windows 环境下的GB2312 编码的文档需要指定\verb|\XeTeXinputencoding "GBK"|,否则会显示乱码。使用pdflatex进行编译时,如果biblatex不能正确的处理编码问题,那么需要为其明确的指定texencoding和bibencoding 选项。比如windows环境下的GB2312编码的文档,需要指定\verb|\usepackge[texencoding=GBK]{biblatex}|。
+
+ %增加了对GBK支持的说明,2018-05-11
+
+ \item 当顺序编码和著者-出版年制切换,或者biblatex版本切换,或者不同样式切换时,如果编译出错,可先清理一下辅助文件,完成后再重新编译。
+
+ \item 当bibtex键中含有中文的时候,texlive2015中的biblatex3.0版的对参考文献条目的超链接会出现问题,而texlive2016中的biblatex3.4或以后的版本则没有问题。
+
+ \item GB/T 7714-2015中的著者-出版年制要求参考文献按文种集合,且中文在前英文在后。主要通过gblanorder选项、排序模板DeclareSortingScheme\{gb7714-2015\} (biblatex3.7 以前版本) 或 DeclareSortingTemplate\{gb7714-2015\} (biblatex3.8以后版本)、以及自动判断的language 域实现。一般情况下样式能够正确区分不同语言文献,如果出现错误,用户可以手动修改bib源文件,将language 域设置为正确的语言,详见\ref{sec:usage:bbx} 节的说明。
+
+%上一段2016-1114更新,下面这段是旧的说法,
+%通过定义DeclareSortingScheme\{nyt\},设置方向为direction=descending,可以实现中文在前英文在后但两个文种的文献各自也是降序的。还有一种变通的方法是,在录入bib文件时,在userb域填入用于排序的信息,比如需要排前面中文文献填cn,排后面的英文文献用en。这样因为修改后的排序格式nyt会在author域前先用userb进行排序,自然会把中文文献放在前面。
+
+ \item 对于出版地和出版者同时缺省的替换处理,GB/T 7714-2015中没有给出明确说明,但给出了一个英文文献示例(见GB/T 7714-2015 附录A.3),形式为: [S.l. : s.n.],尽管中文没有示例,这里也考虑类似的格式,比如: [出版地不详 : 出版者不详]。
+
+ %,这种形式本样式没有给出,而直接用两者分开的形式,[S.l.] : [s.n.]
+
+ %事实上这里作者认为没有必要把s.l.和s.n. 合起来,不仅与缺省两者之一的情况不统一,样式处理起来也增加不必要的麻烦。
+
+ \item 目前符合 GB/T 7714-2005 或 GB/T 7714-2015 参考文献著录规则的biblatex 样式有多个实现,除本样式外,还有李志奇(icetea)\footnote{\url{http://bbs.ctex.org/forum.php?mod=viewthread&tid=74474}} 和沈周(szsdk)\footnote{\url{http://bbs.ctex.org/forum.php?mod=viewthread&tid=152561&extra=page\%3D1}} ,其效果是类似的。此外,Casper Ti. Vector提供的biblatex 样式caspervector 也是不错的中文参考文献样式
+ \footnote{\url{https://gitlab.com/CasperVector/biblatex-caspervector}}。感谢各位作者的分享!
+
+ \item 由于biblatex宏包的组成比较复杂,所以查找具体命令的代码会比较麻烦。总体来说,包括各种bbx,cbx文件,重点是biblatex.sty,biblatex.def,standard.bbx,还有blx-dm.def 等一些设置文件。另外不要忘记lbx文件,这里面也有一些语言相关的命令,比如\verb|\bibrangedash|,\verb|\finalandcomma|等。至于其它一些tex 原始命令可以从tex、xetex的相关书籍文档查找,latex 相关代码则可以从latex2e,etoolbox等说明文档或latex.ltx,etoolbox.STY等源代码文档中查找。注意多使用meaning命令来获取命令的定义。
+
+
+% \item 本文档根据GB/T 7714-2015提供的参考文献表著录格式示例做了测试和验证,详见第\ref{sec:eg:gb77142015}节。
+% 测试系统环境为:
+% \begin{itemize}
+% \item windows7x86+texlive 2014,采用xelatex编译;
+%
+% \item windows7x64+texlive 2015,采用xelatex编译;
+%
+% \item 虚拟机xp+texlive 2016,采用xelatex编译;
+%
+% \item Deepin linux-x64v15.3+texlive 2016,采用xelatex编译。
+%
+% \item windows7x64+texlive 2017,采用xelatex编译;
+% \end{itemize}
+
+\end{enumerate}
+
+
+
+
+\section{参考文献著录格式示例}\label{sec:eg:gb77142015}
+
+%\subsection{GB/T 7714-2015 中的著录标准和顺序编码制示例}
+
+%\includepdf[pages={1-5}]{egfigure/eggbcitation.pdf}
+
+
+%\subsection{GB/T 7714-2015 中的著者年份制示例}
+
+%\includepdf[pages={1-2}]{egfigure/eggbcitationay.pdf}
+
+%\subsection{GB/T 7714-2015 中的附录参考文献示例}
+
+%\includepdf[pages={1-4}]{egfigure/eggbbiblio.pdf}
+
+
+
+\subsection{GB/T 7714-2015 标准示例}
+
+详见文档:\href{run:./stdGBT7714-2015.pdf}{stdGBT7714-2015.pdf}
+
+\subsection{多语言支持相关测试示例}
+
+详见文档:\href{run:./stdgbT7714-2015lan.pdf}{stdgbT7714-2015lan.pdf}
+
+\subsection{国内一些大学学位论文文献格式相关测试示例}
+
+详见文档:\href{run:./stdgbT7714-2015thesis.pdf}{stdgbT7714-2015thesis.pdf}
+
+\subsection{更多示例}
+
+\begin{itemize}
+
+ \item 示例: beamer类中的参考文献示例
+
+ \item 示例: 专著book和专著中的析出文献inbook及标准standard文献
+
+ \item 示例: 连续出版物periodical和连续出版物中的析出文献article
+
+ \item 示例: 电子资源或在线资源online
+
+ \item 示例: 学位论文thesis、专利文献patent
+
+ \item 示例: 报告report、手册manual和档案、未出版物unpublished
+
+ \item 示例: 会议文集proceedings和会议文集中析出的文献inproceedings
+
+ \item 示例: 汇编collection和汇编中的析出文献incollection
+
+ \item 示例: online条目仅存url信息
+
+ \item 示例: 传统和新增条目类型的兼容性
+
+ \item 示例: 中英文判断信息中存在编组时的处理
+
+ \item 示例: 处理参考文献信息中\&等特殊字符
+
+ \item 示例: 处理著者-出版年制article中卷信息缺省的标点
+
+ \item 示例: 标题中有\textbackslash LaTeX\{\}等名称时的情况
+
+\end{itemize}
+
+beamer类示例,参见: \href{run:./example/egbeamer.tex}{顺序编码制};
+\href{run:./example/egbeameray.tex}{著者-出版年制}。
+
+其它示例,参见:
+\href{run:./example/testallformat.tex}{testallformat.tex}。
+
+详见文档:
+\href{run:./example/stdGBT7714-2015eg.pdf}{stdGBT7714-2015eg.pdf},
+\href{run:./example/stdgbT7714-2015fmt.pdf}{stdgbT7714-2015fmt.pdf}。
+
+
+\section{GB/T 7714-2015 标准说明与实现}\label{sec:gbt:std}
+
+\subsection{顺序编码制}
+
+\subsubsection{参考文献表}\label{sec:bib:serialno}
+
+GB/T 7714-2015规定采用顺序编码制组织参考文献时,各篇文献应按正文部分标注的序号依次列出。具体参考GB/T 7714-2015 第9.1节。
+
+\subsubsection{文献标注法}
+标注则根据在正文中引用的先后顺序连续编码,将序号置于方括号内。
+
+同一处引用多篇文献,各篇序号间用逗号隔开,遇连续序号,起讫序号用短横线连接。
+
+多次引用同一著者的同一文献时,可在序号的方括号外著录该文献引文页码,这一要求与引用(标注)样式无关,需要作者在写文档时使用相应的引用命令并在需要时输入页码信息。针对这一要求,在cite等常用命令基础上,新定义了一个引用命令pagescite,其使用方式详见第\ref{sec:cbx:usage}节。标注样式更详细要求参考GB/T 7714-2015 第10.1节。
+
+如果顺序编码制采用脚注方式,则序号由计算机自动生成圈码。多次引用同一著者的同一文献时,若采用脚注方式应重复著录参考文献,但在参考文献表中的著录项目可以简化文献序号和页码,也就是说,每个文献引用都要对应的一个脚注,脚注的内容为文献条目,但条目的内容可以简化为文献序号和页码。
+
+脚注方式的顺序编码制与一般的顺序编码制的主要差别在于:
+一、正文每个文献需要引用均生成脚注文献,因此一个引用命令只能带一个文献引用关键字。且正文中引用的标注标签格式不同,是带圈的上标数字而不是[]包围的数字。
+二、脚注中的文献表即便是遇到相同文献也需要重复输出,但可以简化为序号和页码。
+
+事实上如果不进行简化而只是简单重复输出,对于biblatex来说处理其实更方便,但为了与GB/T 7714-2015 标准给出的示例一致,biblatex-gb7714-2015也做了实现,注意:脚注方式文献表的引用命令为\verb|\footfullcite|,需要注意由于脚注本身表格中存在的问题,可能导致在其中使用该命令出现比较奇怪的现象,也要注意在图表标题中的使用情况。GB/T 7714-2015 标准中示例实现如图\ref{fig:numeric:footnote}所示:
+
+\begin{figure}[!htb]
+\begin{tcolorbox}[left skip=0pt,right skip=0pt,%
+width=\linewidth,colframe=gblabelcolor,colback=white,arc=0pt,%
+leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt]
+\centering
+\deflength{\textparwd}{\linewidth-1cm}
+\includegraphics[width=\textparwd]{egfootstyle.pdf}
+\end{tcolorbox}
+\caption{顺序编码制的脚注方式}\label{fig:numeric:footnote}
+\end{figure}
+
+
+\subsection{著者-出版年制}
+
+\subsubsection{参考文献表}
+
+GB/T 7714-2015规定采用著者-出版年制组织时,各篇文献首先按文种组织,可分为中文,日文,西文,俄文和其他文种等部分;然后按照著者字顺和出版年排列。中文文献可以按著者汉语拼音字顺排序,也可按笔画顺序排列。具体参考GB/T 7714-2015第9.2节。
+
+%(因为需要根据语言进行划分,所以语言(language)域对于录入文献来说可能是必要的,因为作者的测试仅涉及中英文两种语言,没有遇到需要language域的情况。)
+
+\subsubsection{文献标注法}
+各篇文献的标注内容由著者姓(lastname/family)和出版年构成,并置于()内。对于使用汉字的语言来说,整个姓名都是 lastname/family 所以标注的是全名。机构团体名也整体标注。
+
+若正文中已有著者姓名,则()内只标注出版年,这一点样式文件无法判断,只能是文档作者自身把握,当然本样式提供了标签只有年份、附加年份和页码信息的引用命令yearpagescite/yearcite,方便文档作者使用,使用方法详见第\ref{sec:cbx:usage}节。当然文档作者还可以使用textcite命令同时给出满足格式要求的作者和年份信息,本样式已做支持。
+
+引用多个著者的文献时,对西文只需标注第一著者的姓(而在参考文献列表中的作者按最大数量三个处理,这与顺序编码制一致,参考GB/T 7714-2015第8.1.2节),其后附“et al.”,对于中文著者,标注第一著者的姓名,其后附“等”。姓名与“et al.”“等”间留适当空隙。
+
+\bc{注意到在GB/T 7714-2015第10.2.1节给出的例子中作者姓的大小写格式与参考文献表中的要求是不同的,这说明标注中的作者姓名是由写文档的作者来决定的,因此本样式文件原样输出bib源文件中作者姓的大小格式}。
+
+引用同一著者同一年出版的多篇文献时,出版年后应采用小写字符a,b,c等区别。
+
+多次引用同一著者的同一文献,在正常标注外,需在()外以角标形式著录引文页码,这一问题样式文件无法判断,只能提供可以形成该格式的引用命令,供文档作者使用,因此提供pagescite命令,使用方法详见第\ref{sec:cbx:usage}节。
+
+标注要求具体参考GB/T 7714-2015第10.2节。
+
+\qd{一般情况下,当文献作者缺省时,著者-出版年制就没有作者可以用,因此文献题名用来生成标签,这样会导致文献表中文献题名后的文献类型标识/文献载体标识消失(这是因为题名用于生成标签后,题名域会被清除,自然也就不输出题名相关的信息了,见后面的示例文献“\hyperlink{entrystdwithoutauthor}{Information and documentation-the Dublin core metadata element set}”)。此时可以用佚名替代缺省作者的方式避免这个问题,即可以使用样式文件提供的选项gbnoauthor=true,一旦设置该选项为true,则缺省的作者会根据文献语种填充为佚名或Anon。默认情况下,不进行这种处理,即相当于设置选项gbnoauthor=false。而顺序编码制因为标签是数字序号,所以不存在这个问题。}
+
+%本样式文件默认情况下采用佚名方式,如果不需要使用佚名,那么需要在样式文件中注释掉一段代码,这段代码在本文档末尾2016-11-14的更新历史中有说明,见\pageref{up:20161114}页。}
+
+\subsection{各类文献在biblatex中对应的条目和域}\label{sec:numeric:data}
+biblatex-gb7714-2015宏包设计的重要原则是要符合GB/T 7714-2015标准。因此根据GB/T 7714-2015 的要求并结合biblatex的条目类型和数据域,对各类参考文献做如下考虑:
+\subsubsection{专著/book}
+\begin{refentry}{}{}
+专著对应的biblatex的entrytype为:book,文献类型标识用M表示。
+
+\bibliofmt{其著录格式为}(参考GB/T 7714-2015第4.1节):\\
+主要责任者.题名:其他题名信息[文献类型标识/文献载体标识].其他责任者.版本项.出版地:出版者,出版年:引文页码[引用日期].获取和访问路径.数字对象唯一标识符.
+\end{refentry}
+
+其对应的biblatex数据域为:
+\begin{example}{专著/book条目的域格式}{eg:bookfieldfmt}
+\begin{texlist}
+author.title[usera].translator.edition.location:publisher,date或year:pages[urldate].url.doi
+\end{texlist}
+\end{example}
+
+其中标题相关的附加信息除了可以直接在title域中录入外,还可以在subtitle或titleaddon域中添加,后面出现的booktitle,journaltitle,也有类似情况,可以在booktitleaddon或者journalsubtitle中附加信息。其中出版地用location域表示,也可以用传统的address表示,biblatex将address作为location的别名处理,使用两者中的任何一个都可以表示出版地信息。\bc{特别强调: usera域不用录入,该域内容由bbx样式文件根据条目类型自动处理得到。}
+
+\qd{由于biblatex不支持standard条目类型,所以“标准”类型可以用book或inbook替代,但使用note域等于standard作为一个区分,当note域数据存在且内容等于standard时,就将其作为“标准”文献进行处理,其文献类型标识用S表示。这里为什么使用note域而不是type域和keywords域,是因为考虑到note域一般情况下没有什么特殊意义,使用它不会导致冲突,而type域在biblatex标准样式中没有被book和article条目类型当作支持的域,对于支持该域的条目比如thesis,type域又有特殊的意义,是用来区分master和doctor的,而keywords域倒是可以使用,只是该域一般很少在jabref之类软件的默认域中,需要进一步设置,而且可能带来不通用的问题。}
+
+\subsubsection{标准/standard}\label{sec:standard}
+“标准”(standard)作为一种文献条目类型biblatex并不支持,因此直接利用book或inbook类型加note域等于standard代替。当然为了兼容传统BIBTeX格式存在standard类型的情况,也可以直接使用standard类型。
+为此本样式对standard条目类型做了特别支持。著录格式的处理原理与前一节所述相同,只是利用动态数据将standard类型转换为book/inbook类型。在bib文件中直接使用standard类型时注意使用其它biblatex样式时可能存在移植障碍,因为其它样式可能不支持standard类型。
+
+\begin{refentry}{}{}
+标准对应的biblatex的entrytype为: standard。文献类型标识用S表示。
+
+\bibliofmt{其著录格式为}(与book和inbook类型类似,其中圆括号内是与inbook类似时存在的内容,此外当出版地和出版者不存在时直接忽略,这是与book和inbook不同的地方。):\\
+主要责任者.文献题名[文献类型标识/文献载体标识].其他责任者(//所在文献集主要责任者.文献集题名:其他题名信息).版本项.出版地:出版者,出版年:文献的页码[引用日期].获取和访问路径.数字对象唯一标识符.
+\end{refentry}
+
+其对应的biblatex数据域为:
+\begin{example}{标准/standard条目的域格式}{eg:standardfieldfmt}
+\begin{texlist}
+author.title[usera](//bookauthor.booktitle).edition.location:publisher,date或year:pages[urldate].url.doi
+\end{texlist}
+\end{example}
+
+\emph{需要注意的是: 根据GB/T 7714-2015标准第19页的标准文献示例,当标准不存在出版项时,直接省略}。
+
+
+\subsubsection{专著中的析出文献/inbook}
+\begin{refentry}{}{}
+专著中的析出文献对应的biblatex的entrytype为: inbook。文献类型标识用M表示。
+
+\bibliofmt{其著录格式为}(参考GB/T 7714-2015第4.2节):\\
+析出文献主要责任者.析出文献题名[文献类型标识/文献载体标识].析出文献其他责任者//专著主要责任者.专著题名:其他题名信息.版本项.出版地:出版者,出版年:析出文献的页码[引用日期].获取和访问路径.数字对象唯一标识符.
+\end{refentry}
+
+其对应的biblatex数据域为:
+\begin{example}{专著析出文献/inbook条目的域格式}{eg:inbookfieldfmt}
+\begin{texlist}
+author.title[usera]//bookauthor.booktitle.edition.location:publisher,date或year:pages[urldate].url.doi
+\end{texlist}
+\end{example}
+
+\subsubsection{连续出版物/periodical}
+\begin{refentry}{}{}
+连续出版物对应的biblatex的entrytype为: periodical。文献类型标识用J表示。
+
+\bibliofmt{其著录格式为}(参考GB/T 7714-2015第4.3节):\\
+主要责任者.题名:其他题名信息[文献类型标识/文献载体标识].年,卷(期)-年,卷(期).出版地:出版者,出版年[引用日期].获取和访问路径.数字对象唯一标识符.
+\end{refentry}
+
+其对应的biblatex数据域为:
+\begin{example}{连续出版物/periodical条目的域格式}{eg:periodicalfieldfmt}
+\begin{texlist}
+author/editor.title[usera].year或date,volume(number)-endyear, endvolume(endnumber).location:institution,date 或year[urldate].url.doi
+\end{texlist}
+\end{example}
+
+其中连续出版物的出版者用institution表示。
+\qd{因为连续出版物可能用到两个日期,两个卷,两个期,所以录入数据时需要特别处理。不需要录入endyear等信息,只需要在到year或date域录入两个日期,由biber自动解析,由于一个日期内部的年月日之间是用-进行分隔,因此两个日期之间用/分隔。而卷和期由于可能有合订模式,且合订卷期之间用/分隔(参考GB/T 7714-2015第8.8.3节),因此如果需要解析有起止范围的卷和期,录入到volume和number域的信息中起止值之间应用-分隔。}
+
+\subsubsection{连续出版物的析出文献/article}
+\begin{refentry}{}{}%[break at=0.5cm/0pt]
+连续出版物的析出文献对应的biblatex的entrytype为: article。文献类型标识用J表示。
+
+\bibliofmt{其著录格式为}(参考GB/T 7714-2015第4.4节):\\
+析出文献主要责任者.析出文献题名[文献类型标识/文献载体标识].连续出版物题名:其他题名信息,年,卷(期):页码[引用日期].获取和访问路径.数字对象唯一标识符.
+
+注意:从GB/T 7714-2015第4.4.2节的示例可以看到对于带网址的article在引用日期前可以加上修改更新日期。
+\end{refentry}
+
+其对应的biblatex数据域为:
+\begin{example}{连续出版物析出文献/article条目的域格式}{eg:articlefieldfmt}
+\begin{texlist}
+author.title[usera].journaltitle或journal,year,volume(number):pages[urldate].url.doi
+\end{texlist}
+\end{example}
+
+\qd{由于biblatex不支持newspaper 条目类型,所以条目类型报纸析出的文献用article表示,但使用note域等于news作为一个区分,当note域数据存在且内容等于news时,就将其作为报纸的析出文献进行处理。报纸文献类型标识用N表示,报纸的版次用number域描述。}
+
+\subsubsection{报纸析出的文献/newspaper}\label{sec:standard}
+biblatex没有将报纸的析出文献(newspaper)作为一种文献条目类型,因此可以直接利用article类型加note域等于news代替,或者也可以直接使用newspaper类型。为方便使用考虑,本样式增加了对新条目类型newspaper的支持,这种支持通过类似于standard类型的方式实现,没有对数据模型进行改动或增加,而完全利用动态数据修改将newspaper类型转换为article类型。在bib文件中直接使用newspaper类型时需要注意可能存在移植障碍,因为其它biblatex样式可能不支持newspaper类型。
+
+\begin{refentry}{}{}
+报纸析出的文献对应一个新的entrytype为: newspaper。文献类型标识用N表示。
+
+\bibliofmt{其著录格式为}(类似于article):\\
+析出文献主要责任者.析出文献题名[文献类型标识/文献载体标识].报纸题名:其他题名信息,日期(版号)[引用日期].获取和访问路径.数字对象唯一标识符.
+\end{refentry}
+
+其对应的biblatex数据域为:
+\begin{example}{报纸析出的文献/newspaper条目的域格式}{eg:newspaperfieldfmt}
+\begin{texlist}
+author.title[usera].journaltitle或journal,date(number)[urldate].url.doi
+\end{texlist}
+\end{example}
+
+\qd{newspaper类型与article类型的差别主要是(1)文献标识码不是J而是N;(2)报纸的日期需要表示到日。(3)报纸不需要修改和更新日期。注意:报纸名应用journal或journaltitle域录入,与article保持一致。}
+
+\subsubsection{专利/patent}
+\begin{refentry}{}{}%[break at=3cm/0pt]
+专利文献对应的biblatex的entrytype为: patent。文献类型标识用P表示。
+
+\bibliofmt{其著录格式为}(参考GB/T 7714-2015第4.5节):\\
+专利申请者或所有者.专利题名:专利号[文献类型标识/文献载体标识].公告日期或公开日期[引用日期].获取和访问路径.数字对象唯一标识符.
+\end{refentry}
+
+其对应的biblatex数据域为:
+\begin{example}{专利文献/patent条目的域格式}{eg:patentfieldfmt}
+\begin{texlist}
+author.title:number[usera].date或year[urldate].url.doi
+\end{texlist}
+\end{example}
+
+\qd{需要注意:公告日期或公开日期需要表示到日。}
+
+\subsubsection{电子资源/online}
+\begin{refentry}{}{}%[break at=0.4cm/0pt]
+电子资源对应的biblatex的entrytype为: online或electronic或者www。文献类型标识用EB表示。
+\bc{(注意: biblatex将electronic或www作为online条目类型的别名,对于标准样式来说这两者出现在bib文件中等同于online,但这种等同标准样式是在驱动层进行处理的,而gb7714-2015样式还需要处理文献类型标识,本样式文件做了进一步支持。因此bib文件中也可以直接使用electronic和www。)}
+
+\bibliofmt{其著录格式为}(参考GB/T 7714-2015第4.6节):\\
+主要责任者.题名:其他题名信息[文献类型标识/文献载体标识].出版地:出版者,出版年:引文页码(更新或修改日期)[引用日期].获取和访问路径.数字对象唯一标识符.
+\end{refentry}
+
+其对应的biblatex数据域为:
+\begin{example}{电子资源/online/electronic/www条目的域格式}{eg:onlinefieldfmt}
+\begin{texlist}
+author.title[usera].organization/instiution,date或year:pages(date/enddate/eventdate)[urldate].url.doi
+\end{texlist}
+\end{example}
+
+\qd{尽管GB/T 7714-2015中给出的著录格式包含出版地和出版者,但通常情况下具有出版地和出版者的文献会归类到其它条目类型中,至于存在的url信息,只要标识文献载体即可,即一般情况下(出版地:出版者,出版年:引文页码)这些信息很少出现在online[EB]条目中。因此默认情况下,gb7714-2015样式只处理出现organization或instiution中的出版者信息,此外用date表示更新或修改日期,urldate表示引用(访问)日期。如果出现复杂情况,更新或修改日期还可以利用enddate/eventdate表示。注意修改日期需要表示到日}
+
+以上是GB/T 7714-2015直接给出著录格式的条目类型,还有一些类型并没有给出具体格式,但在例子中也有所体现,本样式文件根据这些例子,给出了著录格式。
+
+\subsubsection{汇编或论文集/collection}
+
+\begin{refentry}{}{}
+汇编文献对应的biblatex的entrytype为:collection。文献类型标识用G表示。
+
+\bibliofmt{其著录格式为} 采用与book一致的格式。
+\end{refentry}
+
+\subsubsection{汇编或论文集析出中的文献/incollection}
+\begin{refentry}{}{}
+汇编中的析出文献对应的biblatex的entrytype为:incollection。文献类型标识用G表示。
+
+\bibliofmt{其著录格式为} 采用与inbook一致的格式。
+\end{refentry}
+
+\subsubsection{会议录或会议文集/proceedings}
+\begin{refentry}{}{}
+会议文集的biblatex的entrytype为:proceedings。文献类型标识用C表示。
+
+\bibliofmt{其著录格式为} 采用与book类似的格式。
+\end{refentry}
+
+\subsubsection{会议文集中析出的文献/inproceedings}
+\begin{refentry}{}{}
+会议文集中析出的文献对应的biblatex的entrytype为:inproceedings。文献类型标识用C表示。
+\bc{(注意: biblatex将conference作为inproceedings条目类型的别名,对于标准样式来说conference出现在bib文件中等同于inproceedings,但这种等同标准样式是在驱动层进行处理的,而gb7714-2015样式还需要处理文献类型标识,本样式文件做了进一步支持。因此bib文件中也可以直接使用conference。)}
+
+\bibliofmt{其著录格式为} 采用与inbook类似的格式。
+\end{refentry}
+
+
+\subsubsection{报告/report}
+\begin{refentry}{}{}
+报告对应的biblatex的entrytype为: report。文献类型标识用R表示。\bc{(注意:biblatex将techreport作为report条目类型的别名,对于标准样式,techreport出现在bib文件中等同于report,但这种等同标准样式是在驱动层处理的,而gb7714-2015样式还需要处理文献类型标识,本样式文件做了进一步支持。因此bib文件中也能直接使用techreport类型。)}
+
+\bibliofmt{其著录格式为} (由biblatex的标准report格式修改得到,注意当出版地和出版者不存在时忽略这两项)
+
+主要责任者.题名:其他题名信息[文献类型标识/文献载体标识].其他责任者.类型.号码.版本项.出版地:出版者,出版年:引文页码[引用日期].获取和访问路径.数字对象唯一标识符.
+\end{refentry}
+
+其对应的biblatex数据域为:
+\begin{example}{报告/report/techreport条目的域格式}{eg:reportfieldfmt}
+\begin{texlist}
+author.title[usera].translator.type number.version.location:institution,date 或year:pages[urldate].url.doi
+\end{texlist}
+\end{example}
+
+\qd{因为有的报告文献可能存在类型和报告号信息,比如AIAA 9076或AD 730029等,所以著录格式需要有所体现,而这两个数据体现在type和number两个域中,或者在version域中体现也可,而对于标题中的出现的报告号,可以直接在标题或子标题或者附加标题中体现。report的版本信息放在version域中,而不是book等条目的edition域中。report类型出版项处理基本与book一样,但当出版项缺省时且存在网址时,直接省略出版项,且加上修改和更新日期,因此将其转换为online类型处理。从report开始,后面的所有类型,当不存在出版项且存在网址时,都以online的格式进行处理。}
+
+\subsubsection{手册或档案/manual/archive}
+\begin{refentry}{}{}
+手册和档案采用一种格式,对应的biblatex的entrytype为: manual或archive。文献类型标识用A表示。
+
+\bibliofmt{其著录格式为} 借用thesis格式处理,而不是标准样式中的manual格式,这种方式下,当没有出版地和出版者时,完全省略。
+\end{refentry}
+
+ \bc{manual出版者用institution域表示,体现的是机构而不是一般的出版社。注意:manual类型的出版项缺失时直接省略。}
+
+\subsubsection{学位论文/thesis}
+\begin{refentry}{}{}
+学位论文对应的biblatex的entrytype为: thesis。文献类型标识用D表示。\bc{(注意:biblatex将mastersthesis或phdthesis作为thesis条目类型的别名,对于标准样式来说这两者出现在bib文件中基本等同于thesis,但却会增加type信息。但这种等同,标准样式是在驱动层进行处理的,而gb7714-2015样式还需要处理文献类型标识并且不需要type信息,本样式文件做了进一步支持。因此bib文件中也可以使用mastersthesis和phdthesis)。}
+
+\bibliofmt{其著录格式为} 由biblatex的标准thesis格式修改得到。
+
+主要责任者.题名:其他题名信息[文献类型标识/文献载体标识].其他责任者.出版地:出版者,出版年:引文页码[引用日期].获取和访问路径.数字对象唯一标识符.
+\end{refentry}
+
+其对应的biblatex数据域为:
+\begin{example}{学位论文/thesis/mastersthesis/phdthesis条目的域格式}{eg:thesisfieldfmt}
+\begin{texlist}
+author.title[usera].translator.location:institution,date或year:pages[urldate].url.doi
+\end{texlist}
+\end{example}
+
+ \bc{由于thesis类型出版项缺失时直接省略,格式与manual一致,借用manual类型输出。}
+
+
+\subsubsection{未出版物/unpublished}
+\begin{refentry}{}{}
+未出版物,对应的biblatex的entrytype为: unpublished。文献类型标识用Z表示。
+
+\bibliofmt{其著录格式为} 借用manual格式处理。
+\end{refentry}
+
+\subsubsection{备选类型}
+\begin{refentry}{}{}
+备选/其它(misc),文献类型标识用Z表示。
+
+\bibliofmt{其著录格式为} 当存在网址时直接转换为online类型,由于howpublished域可用于描述一些详细信息,因此不存在网址时,独立作为一种格式处理。
+\end{refentry}
+
+\subsubsection{更多类型}
+\begin{refentry}{}{}
+数据库(database)标识符(DB)、数据集(dataset)标识符(DS)、软件(software)标识符(CP)、舆图(map)标识符(CM)。
+
+\bibliofmt{其著录格式为} 借用manual格式处理。
+\end{refentry}
+
+
+
+\subsection{标准的其它细节要求}
+
+除了第\ref{sec:numeric:data}节针对不同条目类型的著录格式要求外,GB/T 7714-2015 还有一些细节规定比如文字、符号等,biblatex-gb7714-2015宏包做如下考虑,
+示例见文档\href{run:./stdGBT7714-2015.pdf}{stdGBT7714-2015}:
+
+\subsubsection{数字}\label{sec:fmt:number}
+
+\begin{property}{}{}
+用户录入文献数据中包含数字时,gb7714-2015按照GB/T 7714-2015第6.2节要求输出阿拉伯数字。
+\end{property}
+
+\subsubsection{英文字母}\label{sec:fmt:lettercase}
+
+\begin{property}{}{}
+为了符合西文文献责任者的字母大小写习惯,gb7714-2015通过判断是否存在givenname/firstname来确定是否是个人作者,当存在givenname/firstname 时认为是个人作者,不存在则是机构作者,当是个人作者时familyname/lastname按GB/T 7714-2015 要求全大写,是机构作者则仅大写首字母。所以为满足GB/T 7714-2015 第6.3节要求,对于仅有英文姓(lastname)的个人作者,用户录入时字母应全大写。
+
+用户录入出版项、西文期刊名缩写以及西文文献的字母时,应按照GB/T 7714-2015第6.4节,第6.5节,6.6节要求,使用符合要求的习惯用法和大小写方式,gb7714-2015以原样打印的方式处理。
+
+对于英文大小写问题,GB/T 7714-2015除了责任者的大写要求外,其它要求均比较模糊,但提到可参照ISO 4的要求。但实际上,不同的期刊可能会有各自不同的要求。从笔者的经验看,一般国内的期刊对于字母大小写通常要求: 责任者(全部大写); 题名(句首字母大写其它全部小写); 期刊名会议名(单词首字母大写); 出版项和其它(单词首字母大写)。所以用户在录入bib文件时可以按照这种常见方式来输入以减少后期修改。
+\end{property}
+
+\subsubsection{标点}
+
+\begin{property}{}{}
+用户录入引文信息时不需要考虑域之间的标点符号,只需录入各数据域时考虑习惯的标点用法。gb7714-2015实现了GB/T 7714-2015第7节所给出的著录用符号要求。
+\end{property}
+
+\subsubsection{责任者}
+
+\begin{property}{}{}
+用户录入引文的责任者信息时,当责任者为多级机关团体时,用户填入auther信息时,应按照GB/T 7714-2015第8.1.4节要求,用英文句点.号分隔。
+
+当责任者是个人英文名,且具有名、姓、前缀和后缀,应按照第\ref{sec:bib:bibtex}节给出姓名录入方式处理才能正确解析,比如:von Peebles, Jr., P. Z.,其中von为姓前的前缀,Jr.为姓后的后缀,P. Z. 为缩写名(包括first name 和middle name)。
+
+gb7714-2015实现了GB/T 7714-2015第8.1节要求的责任者样式,能自动判断责任者语言并分别处理,设置了全局选项useprefix=true以使用前缀,增加了gbnamefmt选项用于设置不同的姓名输出格式。
+\end{property}
+
+\subsubsection{文献类型标识和载体}
+
+\begin{property}{}{}
+用户录入引文题名信息时,无需给出文献类型标识/文献载体标识。同一责任者的合订题名,应用户根据GB/T 7714-2015 第8.2.1节的要求,在多个题名间用英文分号分隔,并整体录入到title数据域中。而分卷号,卷次,册次等信息时,除了专利号用number域录入外,其它可以直接在title数据域或者subtitle/titleaddon等数据域中给出。
+
+gb7714-2015实现了符合GB/T 7714-2015第8.2节要求的格式,能根据条目信息确定文献类型标识/文献载体标识,并在各类参考文献条目驱动中直接使用,也可以利用gbtype选项设置是否输出该信息。各不同类型文献的类型标识/文献载体标识,参考GB/T 7714-2015 表B.1和B.2。
+\end{property}
+
+\subsubsection{版次}\label{sec:fmt:edition}
+
+\begin{property}{}{}
+用户在录入版次信息时,只要录入版次的整数数字比如2,或者录入需要打印的字符串比如明刻本。
+
+gb7714-2015实现了GB/T 7714-2015第8.3节要求的格式,根据edition/version域输入信息分别处理,对于整数则解析后格式化,对于其它特殊版本说明,如新1版,明刻本等,直接在edition域录入后原样打印。
+\end{property}
+
+\subsubsection{出版项}\label{sec:fmt:pubitem}
+
+\begin{property}{}{}
+用户在录入出版项信息时,当出版日期有其它形式的纪年时,将其置于公元纪年后面的()内,并整体录入到 year 数据域(注意不是date域)中,比如: 1845(清同治四年)。而引用/访问日期应录入到 urldate 数据域。当除了出版日期外还有修改/更新日期等时,可在year或date数据域录入第二个日期,并用/符号与前一个出版日期隔开。而专利的公告日期和其它条目类型的出版年应录入到 date 域中。
+
+gb7714-2015实现了GB/T 7714-2015第8.4节要求的格式。当出版地和出版者缺省时,中英文自动区分处理。对于用/符号隔开的两个日期,biblatex后端biber能自动解析,后一个日期数据自动解析到endyear等域可作为修改日期等使用。
+\end{property}
+
+\subsubsection{页码}\label{sec:fmt:pages}
+\begin{property}{}{}
+用户在录入页码信息时,可以在pages域中根据需要录入可解析的页码(即用整数表示页码,起讫页码用-分隔),比如: 81-86。 也可以直接录入需要打印的信息,比如: 序2-3等。
+
+gb7714-2015实现了GB/T 7714-2015第8.5,8.8.2节的要求,对于能解析的页码自动解析后格式化,对于不能解析的页码则原样输出。
+\end{property}
+
+\subsubsection{访问路径URL和DOI}
+\begin{property}{}{}
+用户在录入获取和访问路径、数字对象唯一标识符信息时,将访问路径录入到url域中,数字对象唯一标识符录入到doi域中即可。
+
+gb7714-2015实现了GB/T 7714-2015第8.6,8.7节要求的格式。
+\end{property}
+
+\subsubsection{卷和期}\label{sec:fmt:volnum}
+\begin{property}{}{}%[break at=0.4cm/0pt]
+用户在录入卷、期等信息时,如\ref{sec:bib:bibtex}节中所述,合期的期号用/间隔,比如9/10,填入number域,报纸的版次也填入number域。
+
+gb7714-2015实现了GB/T 7714-2015第8.8节要求的析出文献相关格式。
+\end{property}
+
+
+\section{总结与致谢}
+
+通过对 GB/T 7714-2015 标准的分析,对 biblatex 的学习和理解,在 biblatex 标准样式基础上,设计完成了符合 GB/T 7714-2015 标准的biblatex参考文献样式。从测试实践看,基本能够满足使用要求,用户可以放心使用。遇到问题时,除了可以查看
+本文档说明外,也可以看样式文件代码,其中给出了详细注释,如果遇到无法解决的问题,请邮件联系作者。
+
+%读者若查看样式文件内容可以看到作者对各目标要求所做的修改及,读者也可以根据自己的需求进行修改,作者设计样式文件的思路以及在设计过程中用到的一些biblatex宏包功能说明,详见第\ref{sec:biblatex:mech}节和LaTeX文档中文参考文献的biblatex解决方案的第2.7节。
+
+最后要感谢如下各位师长和朋友,正是在各位的帮助建议下,本样式不断升级逐渐完善。包括: moewew (biblatex 现在的维护者之一,给予不少有益的建议和指导)、 李志奇(基于biblatex的符合GBT7714-2005的中文文献生成工具的作者,工具中的一些设计如usera域的使用/卷期范围解析等带来很多启发,本人之前一直使用该工具,之所以开发biblatex-gb7714-2015其实主要是因为该工具因biblatex升级而无法使用)、caspervector(虽然未曾真正交流,但从biblatex-caspervector样式包中学到很多,包括排序/GBK编码等问题的解决思路)、LeoLiu(刘海洋,给出的CJK字符判断函数
+\footnote{\url{http://bbs.ctex.org/forum.php?mod=viewthread&tid=152663&extra=page\%3D3}} 对本宏包非常有帮助)、chinatex(china tex版主,给了很多建议和帮助,并且一起合作)、Sheng wenbo(biblatex用户手册合作译者,LaTeX2e 插图指南第三版译者,我们一起翻译的过程相互激励相互促进)、zepinglee(gbt7714-2015 bst样式作者,给了很多建议和讨论)、Harry Chen(ctex套件维护者之一,给了不少好的建议)、liubenyuan(关于项目组织给出了很好的建议)、刘小涛(讨论了关于zotero的使用并提出了建议)、ghiclgi(讨论了GB中著者-出版年制标注标签的一些问题)、秀文工作组、leipility、qingkuan、湘厦人、秋平、任蒲军、fredericky123、qiuzhu、chaoxiaosu、Old Jack、Wu Nailong、Yibai Zhang、wayne508、 钟乙源、Xiaodong Yao、dsycircle、rpjshu、zjsdut、谢澜涛、Zutian Luo、海阔天空、zzqzyx、程晨、xmtangjun、蔡伟 等等。当然还有更多朋友提供了bug报告,提出了issue,提供了热心帮助,限于篇幅这里不再一一列举,在此一并表示感谢!
+
+
+\section{存在的问题和下一步工作}
+
+
+\subsection{存在的问题}
+
+\begin{enumerate}
+
+ %\item 当作者多于3个需要添加等或et al.时,如果作者的姓名是用\{\}包起来的,可能判断会出错。
+ %这个问题已经解决了,本来在\testCJKfirst中如果单靠edef加expandafter 组合,无法处理带编组的字符流。所以考虑利用xstring 宏包的\exploregroups函数来,提取字符到命令中,这一就能真正的获得域中的第一个字符,而不会把一个编组当成一个字符进行判断。2016-1223,详见修改历史1.0e中的说明。
+
+ %\item 顺序年制中当不存在著者信息时,如果用佚名或者no author,本样式文件中没有实现。怎么在数据进来后,给一些域添加信息?在biber处理过程中根据一些判断添加信息?(著者年制,没有作者,用佚名,英文怎么办?没有年怎么办?)
+ %这个问题解决了,2016-1114
+
+ %\item 著者-出版年制引用标签时,文中已经存在作者名的,标签只需要写年份,这个需要定义一个新的yearcite命令,是容易实现的,但这里没有实现。
+ %这个问题解决了,2016-1114,增加了一个yearpagescite命令。
+
+ %\item backref的格式也可以修改一下。
+ %没有要求处理,但修改了,2016-1114,修改英文本地化字符串为引用页面。
+
+ %\item shorthand的问题没有遇到,其应用可能需要进一步理解。,主要是获取参考文献的部分信息进行统计和打印。该问题已经解决,参见biblatex-solution-to-latex-bibliography(20180525)。
+
+ \item 当专著同时存在作者和编者的时候,GB/T 7714-2015没有明确的规定,所以目前样式文件中以biblatex标准样式的方式处理,这种处理因为与本地化相关,直接应用可能不好看的,也许需要修改。
+
+ \item 在各类文献的著录格式中,GB/T 7714-2015 对于出版项给出的就是出版地和出版者,但习惯上不同的类型还是存在差异的,比如专利文献出版项还应该再明确,比如在线资源常用organization表示而无出版地。这些有待进一步明确。
+
+ \item 当作者不明时,GB/T 7714-2015 给出的说法是用佚名和其它语言相应的词代替。英文给了一个例子是Anon,似乎是anonymity的缩写。这也有待进一步明确。v1.0l版后将之前用的noauthor换成Anon。
+
+ %\item 因为GB/T 7714-2015中给出的了一些著录格式,如果把这些著录格式作为一个严格标准,那么条目中只能出现其中规定的域,而往往在bib文件中可能存在一些另外的信息比如chapter等,而且从标准样式修改的驱动中也仍然带有这些域的处理,如果为了标准化规范化考虑,可以去掉国标中没有提到的域的信息,可能使得内容更为标准,这可以通过修改增加数据模型,数据源动态修改,驱动修改(驱动中目前存在较多的似乎用不到的域,而且意义不是非常明确,这个等到biblatex说明文档中文版完成后再结合它全面的进行梳理)三条路子做到,需要的话,可以在下一步实现(2017-0226)。添加了gbstrict选项后,该问题基本已经解决(20180525)。
+\end{enumerate}
+
+\subsection{下一步工作}
+
+\begin{enumerate}
+ \item 到1.0p版本,已经完全实现GB/T 7714-2015样式要求格式,并增加了更多的功能,剩下的问题主要是用户一些特殊需求实现以及可能存在的兼容性问题,需要广大用户发现和建议,非常感谢!
+
+ %到目前,无论是基本功能还是附加功能,biblatex-gb7714-2015样式包已经基本够用,剩下的问题可能是一些特殊情况时带来的适应性问题,这需要经过大量的测试来发现问题。如果在使用过程中发现什么问题,请邮件联系作者,非常感谢!
+
+ % 到1.0i版为止,进一步完善了: GB7714风格的文献表标签项对齐设计,编组内信息的中英文判断,特殊或老的bibtex 条目类型支持,改善空格设计以满足断行要求,支持了宏包选项(url等)应用,增加了宏包选项用于GB7714风格实现控制(gbpub 等),重新设计了版本兼容方式,以后的版本中将更容易兼容biblatex的升级。
+
+ %到1.0h版为止,进一步完善了样式宏包,该版本将是最后支持texlive2015的版本,以后版本的功能实现将基于最新texlive中biblatex 版本,而不再考虑texlive2015中3.0版的biblatex。
+
+ %1.0g版增加对mastersthesis,phdthesis,www,electronic,standard,techreport,conference,newspaper等条目类型的兼容,增加了对标准样式standard.bbx中url包选项的兼容性,增加了析出文献标识符//后面的短空格以支持著录表的断行机制,增加了特殊字符处理功能并实现对texlive2015 的兼容,给出了gb7714风格参考文献著录表文本转换为bib文件的perl脚本,与gb7714-2015 样式形成闭环。
+
+ %1.0f版完善了gbalign 选项(用于实现GB7714 风格的著录文献表标签,texlive2016 有效),带花括号的责任者的中英文判断等功能对texlive2015 的兼容性。
+
+ %到1.0e版为止,功能需求已经完全实现,剩下的问题可能是一些文献具有特殊信息或者特殊情况时带来的适应性问题,这需要经过大量的测试来发现问题。各位朋友如果发现什么问题,请邮件联系,作者会非常感谢!
+
+ \item biblatex宏包的说明文档中文版,已经由Shen wenbo和我基本完成,下一步是完善,校对,以及增加新版的内容。如果有朋友觉得这个事情有意义,愿意一起来完成这个事情,非常欢迎,请email联系。
+
+ %\item 打算翻译biblatex宏包的说明文档和biber的说明文档,这个已经在进行中,完成了一部分,但因为只是业余时间做,可能最终完成的时间会比较长。如果有朋友觉得这个事情有意义,愿意一起来完成这个事情,非常欢迎,请email联系。
+
+%\item 进一步完善上一节提到的问题。
+\end{enumerate}
+
+\section{更新历史}
+\input{example/updatehistory.tex} %
+
+\input{example/updatehistoryold.tex} %
+
+
+\end{document}
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/chinese-erj.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/chinese-erj.bbx
index 161dcacd8b..dbb03b854a 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/chinese-erj.bbx
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/chinese-erj.bbx
@@ -1,237 +1,237 @@
-%%
-%% ---------------------------------------------------------------
-%% erj.bbx --- A bibliography style of Economic Research Journal in china
-%% modified from gb7714-2015ay at the request of ddswhu
-%% Maintained by huzhenzhen
-%% E-mail: hzzmail@163.com
-%% Released under the LaTeX Project Public License v1.3c or later
-%% ---------------------------------------------------------------
-%%
-%%用法:类似于标准的样式在biblatex加载时设置样式
-%%文献表正常处理,标注命令主要用cite和textcite
-\ProvidesFile{chinese-erj.bbx}[2019/03/28 v1.0 a biblatex bibliography style for ERJ]
-
-
-%==================================================
-%加载gb样式
-%==================================================
-\RequireBibliographyStyle{gb7714-2015ay}
-\RequirePackage{mfirstuc}%单词首字母大写的问题
-\MFUnocap{in}%
-\MFUnocap{the}%
-\MFUnocap{of}%
-\MFUnocap{on}%
-\MFUnocap{and}%
-\MFUnocap{for}%
-
-
-%==================================================
-%考虑多音字增加multipinyin排序,是其可以根据key域添加拼音来排序
-%==================================================
-\DeclareSortingTemplate{multipinyin}{
- \sort{
- \field{presort}
- }
- \sort{
- \field{lansortorder}%language
- }
- \sort{
- \field{sortkey}
- }
- \sort{%[direction=descending]
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field{volume}
- \literal{0}
- }
- }
-
-%==================================================
-%选项设置
-%==================================================
- \ExecuteBibliographyOptions{
- maxbibnames=99,
- gbtype=false,
- gbpub=false,
- gbnamefmt=reverseorder,
- sorting=multipinyin,
- doi=false,
- url=false,
- }
-
-%==================================================
-%为标注和文献表中标点格式,重设and本地化字符串
-%==================================================
-\DefineBibliographyStrings{english}{
- and = { and},%and后面的空格在finalnamedelim已经加过了,所以这里去掉20191009
- andcn = {、},
- andincitecn = {和},%将标注中的分开,便于与文献表中的区分
- andincite = {\&},
- %andotherscn={等},
- %mathesiscn={[硕士学位论文]},
- %phdthesiscn={[博士学位论文]},
-}
-
-
-%==================================================
-%设置一些标点格式为中文的标点
-%==================================================
-\DeclareFieldFormat{titlecase}{\iffieldequalstr{userd}{chinese}{#1}{\capitalisewords{#1}}}
-\DeclareFieldFormat*{title}{\iffieldequalstr{userd}{chinese}{《#1》}{#1\isdot}}
-\DeclareFieldFormat[article]{title}{\iffieldequalstr{userd}{chinese}{《#1》}{\mkbibquote{#1}\isdot}}
-\DeclareFieldFormat*{journaltitle}{\iffieldequalstr{userd}{chinese}{《#1》}{\textit{#1}}}%
-%\DeclareFieldFormat*{booktitle}{《#1》}
-\renewcommand*{\revsdnamepunct}{,}%%来源biblatex.def
-\DeclareDelimFormat*{multinamedelim}{\iffieldequalstr{userd}{chinese}{、}{,}}%\addcomma\addspace
-\DeclareDelimFormat{finalnamedelim}{%
- %\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
- %\addspace%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbcitelocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andincitecn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andkr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andjp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\space\bibstring{andincite}\space}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\bibstring{and}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{and}}{}%
-%\space%
- \or%
- \bibstring{andincitecn}\space%
- \or%
- \bibstring{andincite}\space%
- \fi}
-\DeclareDelimFormat[bib,biblist]{finalnamedelim}{%
-% \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
-% \addspace%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbbiblocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andcn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andkr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andjp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\bibstring{and}}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\bibstring{and}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{and}}{}%
-\space%
- \or%
- \bibstring{andcn}\space%
- \or%
- \bibstring{and}\space%
- \fi}
-\DeclareDelimFormat{nameyeardelim}{,}%\addcomma\addspace
-\DeclareDelimFormat[bib,biblist]{nameyeardelim}{,}%\addcomma\addspace
-\DeclareDelimFormat{bibpagespunct}{\iffieldequalstr{userd}{chinese}{}{,}}%\addcomma\addspace
-\renewcommand*{\newunitpunct}{,}%\addcomma\space %,
-\renewcommand*{\finentrypunct}{\iffieldequalstr{userd}{chinese}{。}{\adddot}}
-
-%==================================================
-%调整部分域的输出格式
-%==================================================
-%
-% 修改number和volume的格式
-%
-\newcounter{numberwithoutzero}
-\DeclareFieldFormat[article,periodical]{number}%
- {\iffieldequalstr{userd}{chinese}{%
- \iffieldint{number}{\setcounter{numberwithoutzero}{#1}\printtext{\bibstring{serialcn}\addthinspace\arabic{numberwithoutzero}\addthinspace 期}}
- {\printtext{\bibstring{serialcn}\addthinspace#1\addthinspace 期}}%
- }%
- {\printtext{(}#1\printtext{)}}}% %
-\DeclareFieldFormat[article,periodical]{volume}%
- {\iffieldequalstr{userd}{chinese}{}%
- {#1}}% volume of a book
-
-%
-% 调整期刊名的格式
-%
-% 原理方法:因为作者年制年份提到前面,因此涉及到期刊名与后面的卷期的关系。
-% v1.0k,20180425,增加了字体控制命令,hzz
-\renewbibmacro*{journal+issuetitle}{\bibpubfont%源来自standard.bbx
- \usebibmacro{journal}%
- %\setunit*{\addspace}%
- %\setunit*{\addcomma\addspace}%修改为增加一个逗号
- \iffieldundef{series}%
- {}%
- {\newunit%
- \printfield{series}%
- \setunit{\addspace}}%
- %\usebibmacro{volume+number+eid}%
- %\setunit{\addspace}%
- \usebibmacro{issue+date}%
- %\setunit{\addcolon\space}%
- %\iffieldundef{volume}{}{\setunit{\addcomma\space}}%
- %换成逗号和空格
- \usebibmacro{issue}%
- \usebibmacro{volume+number+eid}%把卷期放到年份后面
- %\newunit
- }
-
-% 调整期刊卷和期的格式
-%
-\renewbibmacro*{volume+number+eid}{%源来自standard.bbx
-\iffieldequalstr{userd}{chinese}{%\printfield{volume}%
- \iffieldundef{number}{}{\printfield{number}}%区别于顺序编码制
- }
- {\newunit\printfield{volume}%
- %\setunit*{\adddot\space}%
- \printfield{number}%
- \setunit{\addcomma\space}%
- \printfield{eid}}}
-
-%
-% 重设title的输出
-%
-% 20180425,v1.0k,为标题增加字体控制命令,Hu Zhenzhen
-% 原理方法:将文献类型标识符输出出去,原输出来自biblatex.def文件
-% 利用toggle做标识符是否输出的判断
-\renewbibmacro*{title}{%
- \ifboolexpr{%
- test{\iffieldundef{title}}%
- and
- test{\iffieldundef{subtitle}}%
- }%
- {}%
- {\setunit{:}\printtext[title]{\bibtitlefont%增加字体控制命令%增加了标点:
- \printfield[titlecase]{title}%
- \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
- {}{\setunit{\subtitlepunct}%
- \printfield[titlecase]{subtitle}}%
- \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
- {\setunit{\subtitlepunct}\printfield{titleaddon}}%
- \iftoggle{bbx:gbtype}{%
- \iffieldundef{note}{\printfield[gbtypeflag]{usera}}%在标题后直接给出文献标识字母,判断一下,是否是报纸和标准
- {\iffieldequalstr{note}{standard}{\printfield[gbtypeflags]{usera}}%判断是否为标准
- {\iffieldequalstr{note}{news}{\printfield[gbtypeflagn]{usera}}% 判断是否为报纸
- {\printfield[gbtypeflag]{usera}}}% 其它
- }}{}%
- %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
- %\newunit
- }%
-}}
-
-\DeclareFieldFormat{pages}{\iffieldequalstr{userd}{chinese}{}{#1}}%页码引用格式的修改%去掉前面引导页码的pp.等字符
-
-\setlength{\bibitemindent}{1.5\ccwd} % bibitemindent表示一条文献中第一行相对后面各行的缩进
-\setlength{\bibhang}{0pt} % 作者年制中 bibhang 表示的各行起始位置到页
- % 边的距离,顺序编码制中
- % bibhang+labelnumberwidth 表示各行起始位置
- % 到页边的距离
+%%
+%% ---------------------------------------------------------------
+%% erj.bbx --- A bibliography style of Economic Research Journal in china
+%% modified from gb7714-2015ay at the request of ddswhu
+%% Maintained by huzhenzhen
+%% E-mail: hzzmail@163.com
+%% Released under the LaTeX Project Public License v1.3c or later
+%% ---------------------------------------------------------------
+%%
+%%用法:类似于标准的样式在biblatex加载时设置样式
+%%文献表正常处理,标注命令主要用cite和textcite
+\ProvidesFile{chinese-erj.bbx}[2019/03/28 v1.0 a biblatex bibliography style for ERJ]
+
+
+%==================================================
+%加载gb样式
+%==================================================
+\RequireBibliographyStyle{gb7714-2015ay}
+\RequirePackage{mfirstuc}%单词首字母大写的问题
+\MFUnocap{in}%
+\MFUnocap{the}%
+\MFUnocap{of}%
+\MFUnocap{on}%
+\MFUnocap{and}%
+\MFUnocap{for}%
+
+
+%==================================================
+%考虑多音字增加multipinyin排序,是其可以根据key域添加拼音来排序
+%==================================================
+\DeclareSortingTemplate{multipinyin}{
+ \sort{
+ \field{presort}
+ }
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort{
+ \field{sortkey}
+ }
+ \sort{%[direction=descending]
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field{volume}
+ \literal{0}
+ }
+ }
+
+%==================================================
+%选项设置
+%==================================================
+ \ExecuteBibliographyOptions{
+ maxbibnames=99,
+ gbtype=false,
+ gbpub=false,
+ gbnamefmt=reverseorder,
+ sorting=multipinyin,
+ doi=false,
+ url=false,
+ }
+
+%==================================================
+%为标注和文献表中标点格式,重设and本地化字符串
+%==================================================
+\DefineBibliographyStrings{english}{
+ and = { and},%and后面的空格在finalnamedelim已经加过了,所以这里去掉20191009
+ andcn = {、},
+ andincitecn = {和},%将标注中的分开,便于与文献表中的区分
+ andincite = {\&},
+ %andotherscn={等},
+ %mathesiscn={[硕士学位论文]},
+ %phdthesiscn={[博士学位论文]},
+}
+
+
+%==================================================
+%设置一些标点格式为中文的标点
+%==================================================
+\DeclareFieldFormat{titlecase}{\iffieldequalstr{userd}{chinese}{#1}{\capitalisewords{#1}}}
+\DeclareFieldFormat*{title}{\iffieldequalstr{userd}{chinese}{《#1》}{#1\isdot}}
+\DeclareFieldFormat[article]{title}{\iffieldequalstr{userd}{chinese}{《#1》}{\mkbibquote{#1}\isdot}}
+\DeclareFieldFormat*{journaltitle}{\iffieldequalstr{userd}{chinese}{《#1》}{\textit{#1}}}%
+%\DeclareFieldFormat*{booktitle}{《#1》}
+\renewcommand*{\revsdnamepunct}{,}%%来源biblatex.def
+\DeclareDelimFormat*{multinamedelim}{\iffieldequalstr{userd}{chinese}{、}{,}}%\addcomma\addspace
+\DeclareDelimFormat{finalnamedelim}{%
+ %\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
+ %\addspace%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbcitelocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andincitecn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andkr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andjp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\space\bibstring{andincite}\space}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\bibstring{and}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{and}}{}%
+%\space%
+ \or%
+ \bibstring{andincitecn}\space%
+ \or%
+ \bibstring{andincite}\space%
+ \fi}
+\DeclareDelimFormat[bib,biblist]{finalnamedelim}{%
+% \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
+% \addspace%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbbiblocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andcn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andkr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andjp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\bibstring{and}}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\bibstring{and}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{and}}{}%
+\space%
+ \or%
+ \bibstring{andcn}\space%
+ \or%
+ \bibstring{and}\space%
+ \fi}
+\DeclareDelimFormat{nameyeardelim}{,}%\addcomma\addspace
+\DeclareDelimFormat[bib,biblist]{nameyeardelim}{,}%\addcomma\addspace
+\DeclareDelimFormat{bibpagespunct}{\iffieldequalstr{userd}{chinese}{}{,}}%\addcomma\addspace
+\renewcommand*{\newunitpunct}{,}%\addcomma\space %,
+\renewcommand*{\finentrypunct}{\iffieldequalstr{userd}{chinese}{。}{\adddot}}
+
+%==================================================
+%调整部分域的输出格式
+%==================================================
+%
+% 修改number和volume的格式
+%
+\newcounter{numberwithoutzero}
+\DeclareFieldFormat[article,periodical]{number}%
+ {\iffieldequalstr{userd}{chinese}{%
+ \iffieldint{number}{\setcounter{numberwithoutzero}{#1}\printtext{\bibstring{serialcn}\addthinspace\arabic{numberwithoutzero}\addthinspace 期}}
+ {\printtext{\bibstring{serialcn}\addthinspace#1\addthinspace 期}}%
+ }%
+ {\printtext{(}#1\printtext{)}}}% %
+\DeclareFieldFormat[article,periodical]{volume}%
+ {\iffieldequalstr{userd}{chinese}{}%
+ {#1}}% volume of a book
+
+%
+% 调整期刊名的格式
+%
+% 原理方法:因为作者年制年份提到前面,因此涉及到期刊名与后面的卷期的关系。
+% v1.0k,20180425,增加了字体控制命令,hzz
+\renewbibmacro*{journal+issuetitle}{\bibpubfont%源来自standard.bbx
+ \usebibmacro{journal}%
+ %\setunit*{\addspace}%
+ %\setunit*{\addcomma\addspace}%修改为增加一个逗号
+ \iffieldundef{series}%
+ {}%
+ {\newunit%
+ \printfield{series}%
+ \setunit{\addspace}}%
+ %\usebibmacro{volume+number+eid}%
+ %\setunit{\addspace}%
+ \usebibmacro{issue+date}%
+ %\setunit{\addcolon\space}%
+ %\iffieldundef{volume}{}{\setunit{\addcomma\space}}%
+ %换成逗号和空格
+ \usebibmacro{issue}%
+ \usebibmacro{volume+number+eid}%把卷期放到年份后面
+ %\newunit
+ }
+
+% 调整期刊卷和期的格式
+%
+\renewbibmacro*{volume+number+eid}{%源来自standard.bbx
+\iffieldequalstr{userd}{chinese}{%\printfield{volume}%
+ \iffieldundef{number}{}{\printfield{number}}%区别于顺序编码制
+ }
+ {\newunit\printfield{volume}%
+ %\setunit*{\adddot\space}%
+ \printfield{number}%
+ \setunit{\addcomma\space}%
+ \printfield{eid}}}
+
+%
+% 重设title的输出
+%
+% 20180425,v1.0k,为标题增加字体控制命令,Hu Zhenzhen
+% 原理方法:将文献类型标识符输出出去,原输出来自biblatex.def文件
+% 利用toggle做标识符是否输出的判断
+\renewbibmacro*{title}{%
+ \ifboolexpr{%
+ test{\iffieldundef{title}}%
+ and
+ test{\iffieldundef{subtitle}}%
+ }%
+ {}%
+ {\setunit{:}\printtext[title]{\bibtitlefont%增加字体控制命令%增加了标点:
+ \printfield[titlecase]{title}%
+ \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
+ {}{\setunit{\subtitlepunct}%
+ \printfield[titlecase]{subtitle}}%
+ \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
+ {\setunit{\subtitlepunct}\printfield{titleaddon}}%
+ \iftoggle{bbx:gbtype}{%
+ \iffieldundef{note}{\printfield[gbtypeflag]{usera}}%在标题后直接给出文献标识字母,判断一下,是否是报纸和标准
+ {\iffieldequalstr{note}{standard}{\printfield[gbtypeflags]{usera}}%判断是否为标准
+ {\iffieldequalstr{note}{news}{\printfield[gbtypeflagn]{usera}}% 判断是否为报纸
+ {\printfield[gbtypeflag]{usera}}}% 其它
+ }}{}%
+ %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
+ %\newunit
+ }%
+}}
+
+\DeclareFieldFormat{pages}{\iffieldequalstr{userd}{chinese}{}{#1}}%页码引用格式的修改%去掉前面引导页码的pp.等字符
+
+\setlength{\bibitemindent}{1.5\ccwd} % bibitemindent表示一条文献中第一行相对后面各行的缩进
+\setlength{\bibhang}{0pt} % 作者年制中 bibhang 表示的各行起始位置到页
+ % 边的距离,顺序编码制中
+ % bibhang+labelnumberwidth 表示各行起始位置
+ % 到页边的距离
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/chinese-erj.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/chinese-erj.cbx
index 53bb2e1177..7fd829a0ee 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/chinese-erj.cbx
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/chinese-erj.cbx
@@ -1,151 +1,151 @@
-%%
-%% ---------------------------------------------------------------
-%% erj.cbx --- A citation style of Economic Research Journal in china
-%% modified from gb7714-2015ay for the request by ddswhu
-%% Maintained by huzhenzhen
-%% E-mail: hzzmail@163.com
-%% Released under the LaTeX Project Public License v1.3c or later
-%% ---------------------------------------------------------------
-%%
-%%用法:类似于标准的样式在biblatex加载时设置样式
-%%文献表正常处理,标注命令主要用cite和textcite
-
-\ProvidesFile{chinese-erj.cbx}[2019/03/28 v1.0 a biblatex citation style for ERJ]
-
-%==================================================
-%加载gb样式
-%==================================================
-\RequireCitationStyle{gb7714-2015ay} %
-
-
-
-%==================================================
-%选项设置
-%==================================================
-\ExecuteBibliographyOptions{
- maxcitenames=2,
- mincitenames=1,
-}
-
-%==================================================
-%引用命令设置,主要用cite和textcite
-%包括标点设置
-%==================================================
-\renewcommand*{\multicitedelim}{;}%\addsemicolon\addspace;
-\renewcommand*{\textcitedelim}{%
- \iffinalcitedelim
- {\ifnumgreater{\value{textcitetotal}}{2}
- {}{}%\iftextcitepunct{\finalandsemicolon}{\finalandcomma}
- \addspace 、}%\addspace\bibstring{andincitecn}
- {\iftextcitepunct{\addsemicolon\space}{\addspace 、}}%\addcomma
-}%\space
-
-\DeclareDelimFormat[textcite]{nameyeardelim}{\addspace}%\addcomma\space
-\DeclareDelimFormat[textcite]{andothersdelim}{\iffieldequalstr{userf}{chinese}{}{\addspace}}%
-
-%之所以不用\DeclareDelimFormat{andothersdelim}{}这样的设置是因为gb7714-2015中为兼容老版本的biblatex做的处理就是这样的
-%所以用相同的方式
-\AtEveryCitekey{%
-\iffieldequalstr{userf}{chinese}{\renewcommand*{\andothersdelim}{}}%\addthinspace
- {\renewcommand*{\andothersdelim}{\addspace}}%
-}
-
-%标注压缩时,直接用date+extradate代替extradate实现2006a,2006b的效果
-%\DeclareDelimFormat*{compcitedelim}{、}%\addcomma\addspace
-\newbibmacro*{cite:extradate}{%
- \iffieldundef{extradate}
- {}
- {\printtext[bibhyperref]{\addspace\printlabeldateextra}}}%\printfield{extradate}\printlabeldateextra \printfield{labelyear}\printfield{extradate}
-
-%\AtEveryCite{%
-%\let\parentext=\parentexttrack%
-%\let\bibopenparen=(%
-%\let\bibcloseparen=)}
-
-%添加前后空格
-\DeclareCiteCommand{\cite}%[\mkbibparens]
- {\usebibmacro{cite:init}%
- \printtext{(}\usebibmacro{prenote}}%)\addspace
- {\usebibmacro{citeindex}%
- \usebibmacro{cite}}
- {}
- {\usebibmacro{postnote}%(
- )}%\addspace
-
-%原版
-%\DeclareCiteCommand{\cite}[\mkbibparens]
-% {\usebibmacro{cite:init}%
-% \usebibmacro{prenote}}%)
-% {\usebibmacro{citeindex}%
-% \usebibmacro{cite}}
-% {}
-% {\usebibmacro{postnote}}
-
-%
-%添加后面空格
-%\DeclareCiteCommand{\cbx@textcite}
-% {\usebibmacro{cite:init}}
-% {\usebibmacro{citeindex}%
-% \usebibmacro{textcite}}
-% {}
-% {\usebibmacro{textcite:postnote}\addspace}
-
-\newbibmacro*{textcite}{%
- \iffieldequals{namehash}{\cbx@lasthash}
- {\iffieldundef{shorthand}
- {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
- \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
- {\setunit{\addcomma}%
- \usebibmacro{cite:extradate}}
- {\setunit{\compcitedelim}%
- \usebibmacro{cite:labeldate+extradate}%
- \savefield{labelyear}{\cbx@lastyear}}}
- {\setunit{\compcitedelim}%
- \usebibmacro{cite:shorthand}%
- \global\undef\cbx@lastyear}}
- {\ifnameundef{labelname}
- {\iffieldundef{shorthand}
- {\usebibmacro{cite:label}%
- \setunit{%
- \global\booltrue{cbx:parens}%
- \printdelim{nonameyeardelim}(}%\bibopenparen
- \ifnumequal{\value{citecount}}{1}
- {\usebibmacro{prenote}}
- {}%
- \usebibmacro{cite:labeldate+extradate}}
- {\usebibmacro{cite:shorthand}}}
- {\printnames{labelname}%
- \setunit{%
- \global\booltrue{cbx:parens}%
- \printdelim{nameyeardelim}(}%\bibopenparen
- \ifnumequal{\value{citecount}}{1}
- {\usebibmacro{prenote}}
- {}%
- \iffieldundef{shorthand}
- {\iffieldundef{labelyear}
- {\usebibmacro{cite:label}}
- {\usebibmacro{cite:labeldate+extradate}}%
- \savefield{labelyear}{\cbx@lastyear}}
- {\usebibmacro{cite:shorthand}%
- \global\undef\cbx@lastyear}}%
- \stepcounter{textcitecount}%
- \savefield{namehash}{\cbx@lasthash}}%
- \setunit{%
- \ifbool{cbx:parens}
- {)\global\boolfalse{cbx:parens}}%\bibcloseparen
- {}%
- \textcitedelim}}
-
-\newbibmacro*{textcite:postnote}{%
- \usebibmacro{postnote}%
- \ifthenelse{\value{multicitecount}=\value{multicitetotal}}
- {\setunit{}%
- \printtext{%
- \ifbool{cbx:parens}
- {)\global\boolfalse{cbx:parens}}%\bibcloseparen
- {}}}
- {\setunit{%
- \ifbool{cbx:parens}
- {)\global\boolfalse{cbx:parens}}%\bibcloseparen
- {}%
- \textcitedelim}}}
+%%
+%% ---------------------------------------------------------------
+%% erj.cbx --- A citation style of Economic Research Journal in china
+%% modified from gb7714-2015ay for the request by ddswhu
+%% Maintained by huzhenzhen
+%% E-mail: hzzmail@163.com
+%% Released under the LaTeX Project Public License v1.3c or later
+%% ---------------------------------------------------------------
+%%
+%%用法:类似于标准的样式在biblatex加载时设置样式
+%%文献表正常处理,标注命令主要用cite和textcite
+
+\ProvidesFile{chinese-erj.cbx}[2019/03/28 v1.0 a biblatex citation style for ERJ]
+
+%==================================================
+%加载gb样式
+%==================================================
+\RequireCitationStyle{gb7714-2015ay} %
+
+
+
+%==================================================
+%选项设置
+%==================================================
+\ExecuteBibliographyOptions{
+ maxcitenames=2,
+ mincitenames=1,
+}
+
+%==================================================
+%引用命令设置,主要用cite和textcite
+%包括标点设置
+%==================================================
+\renewcommand*{\multicitedelim}{;}%\addsemicolon\addspace;
+\renewcommand*{\textcitedelim}{%
+ \iffinalcitedelim
+ {\ifnumgreater{\value{textcitetotal}}{2}
+ {}{}%\iftextcitepunct{\finalandsemicolon}{\finalandcomma}
+ \addspace 、}%\addspace\bibstring{andincitecn}
+ {\iftextcitepunct{\addsemicolon\space}{\addspace 、}}%\addcomma
+}%\space
+
+\DeclareDelimFormat[textcite]{nameyeardelim}{\addspace}%\addcomma\space
+\DeclareDelimFormat[textcite]{andothersdelim}{\iffieldequalstr{userf}{chinese}{}{\addspace}}%
+
+%之所以不用\DeclareDelimFormat{andothersdelim}{}这样的设置是因为gb7714-2015中为兼容老版本的biblatex做的处理就是这样的
+%所以用相同的方式
+\AtEveryCitekey{%
+\iffieldequalstr{userf}{chinese}{\renewcommand*{\andothersdelim}{}}%\addthinspace
+ {\renewcommand*{\andothersdelim}{\addspace}}%
+}
+
+%标注压缩时,直接用date+extradate代替extradate实现2006a,2006b的效果
+%\DeclareDelimFormat*{compcitedelim}{、}%\addcomma\addspace
+\newbibmacro*{cite:extradate}{%
+ \iffieldundef{extradate}
+ {}
+ {\printtext[bibhyperref]{\addspace\printlabeldateextra}}}%\printfield{extradate}\printlabeldateextra \printfield{labelyear}\printfield{extradate}
+
+%\AtEveryCite{%
+%\let\parentext=\parentexttrack%
+%\let\bibopenparen=(%
+%\let\bibcloseparen=)}
+
+%添加前后空格
+\DeclareCiteCommand{\cite}%[\mkbibparens]
+ {\usebibmacro{cite:init}%
+ \printtext{(}\usebibmacro{prenote}}%)\addspace
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite}}
+ {}
+ {\usebibmacro{postnote}%(
+ )}%\addspace
+
+%原版
+%\DeclareCiteCommand{\cite}[\mkbibparens]
+% {\usebibmacro{cite:init}%
+% \usebibmacro{prenote}}%)
+% {\usebibmacro{citeindex}%
+% \usebibmacro{cite}}
+% {}
+% {\usebibmacro{postnote}}
+
+%
+%添加后面空格
+%\DeclareCiteCommand{\cbx@textcite}
+% {\usebibmacro{cite:init}}
+% {\usebibmacro{citeindex}%
+% \usebibmacro{textcite}}
+% {}
+% {\usebibmacro{textcite:postnote}\addspace}
+
+\newbibmacro*{textcite}{%
+ \iffieldequals{namehash}{\cbx@lasthash}
+ {\iffieldundef{shorthand}
+ {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
+ \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
+ {\setunit{\addcomma}%
+ \usebibmacro{cite:extradate}}
+ {\setunit{\compcitedelim}%
+ \usebibmacro{cite:labeldate+extradate}%
+ \savefield{labelyear}{\cbx@lastyear}}}
+ {\setunit{\compcitedelim}%
+ \usebibmacro{cite:shorthand}%
+ \global\undef\cbx@lastyear}}
+ {\ifnameundef{labelname}
+ {\iffieldundef{shorthand}
+ {\usebibmacro{cite:label}%
+ \setunit{%
+ \global\booltrue{cbx:parens}%
+ \printdelim{nonameyeardelim}(}%\bibopenparen
+ \ifnumequal{\value{citecount}}{1}
+ {\usebibmacro{prenote}}
+ {}%
+ \usebibmacro{cite:labeldate+extradate}}
+ {\usebibmacro{cite:shorthand}}}
+ {\printnames{labelname}%
+ \setunit{%
+ \global\booltrue{cbx:parens}%
+ \printdelim{nameyeardelim}(}%\bibopenparen
+ \ifnumequal{\value{citecount}}{1}
+ {\usebibmacro{prenote}}
+ {}%
+ \iffieldundef{shorthand}
+ {\iffieldundef{labelyear}
+ {\usebibmacro{cite:label}}
+ {\usebibmacro{cite:labeldate+extradate}}%
+ \savefield{labelyear}{\cbx@lastyear}}
+ {\usebibmacro{cite:shorthand}%
+ \global\undef\cbx@lastyear}}%
+ \stepcounter{textcitecount}%
+ \savefield{namehash}{\cbx@lasthash}}%
+ \setunit{%
+ \ifbool{cbx:parens}
+ {)\global\boolfalse{cbx:parens}}%\bibcloseparen
+ {}%
+ \textcitedelim}}
+
+\newbibmacro*{textcite:postnote}{%
+ \usebibmacro{postnote}%
+ \ifthenelse{\value{multicitecount}=\value{multicitetotal}}
+ {\setunit{}%
+ \printtext{%
+ \ifbool{cbx:parens}
+ {)\global\boolfalse{cbx:parens}}%\bibcloseparen
+ {}}}
+ {\setunit{%
+ \ifbool{cbx:parens}
+ {)\global\boolfalse{cbx:parens}}%\bibcloseparen
+ {}%
+ \textcitedelim}}}
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/example.bib b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/example.bib
index 2956469499..3c01beddc8 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/example.bib
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/example.bib
@@ -1,3838 +1,3838 @@
-% Encoding: UTF-8
-
-
-@Other{易仕和,2013,
- Entryset = {易仕和2013--,Yi2013--}
-}
-
-@book{李时珍--,
-author={李时珍}
-}
-
-@book{乔纳斯--,
-author={乔纳斯}
-}
-
-@Book{昂温1988--,
- Author = {昂温, S.},
-}
-
-@Book{GPS1988--,
- Title = {外国出版史},
- Author = {{昂温, G} and {昂温, P S}},
- Publisher = {中国书籍出版社},
- Translator = {陈生诤},
- Year = {1988},
- Location = {北京}
-}
-
-@Book{丸山敏秋--,
- Author = {丸山敏秋},
-}
-
-@Book{凯西尔--,
- Author = {凯西尔},
-}
-
-@book{Einstein--,
- author = {Einstein, Albert}
-}
-
-@book{Williams-ellis--,
- author = {Williams-ellis, Amabel}
-}
-
-@book{morgan--,
- author = {De Morgan, Augustus}
-}
-
-@book{lijianning--a,
- author = {{LI Jiangning}}
-}
-
-@book{lijianning--b,
- author = {Li, Jiang Ning}
-}
-
-@book{钱学森--,
- author = {钱学森 and 刘再复}
-}
-
-@book{李四光--,
- author = {李四光 and 华罗庚 and 茅以升}
-}
-
-@book{印森林--,
- author = {印森林 and 吴胜和 and 李俊飞 and 冯文杰}
-}
-
-@book{fordham--,
- author = {Evenst W. Fordham and Amiad Ali and David A. Truner and John R. Charters}
-}
-
-@Article{anon1981-628,
- title = {Coffee drinking and cancer of the pancreas},
- journal = {Br Med J},
- year = {1981},
- volume = {283},
- number = {6292},
- pages = {628}
-}
-
-@book{中国科学院物理研究所--,
- author = {{中国科学院物理研究所}}
-}
-
-@book{贵州省土穰普查办公室--,
- author = {{贵州省土穰普查办公室}}
-}
-
-@book{AmericanChemicalSociety--,
- author = {{American Chemical Society}}
-}
-
-
-@book{StanfordUniversity--,
- author = {{Stanford University. Department of Civil Eng ineering}}
-}
-
-
-@book{王夫之的诠释--,
- title = {王夫之“乾坤并建”的诠释面向}
-}
-
-@book{张子正蒙注--,
- title = {张子正蒙注}
-}
-
-@book{化学动力学和反应器原理--,
- title = {化学动力学和反应器原理}
-}
-
-@book{袖珍神学--,
- title = {袖珍神学,或,简明基督教词典}
-}
-
-@article{北京师范大学学报--,
- Journaltitle = {北京师范大学学报(自然科学版)}
-}
-
-@book{Gasesinsea--,
- title = {Gases in sea ice 1975-1979}
-}
-
-@article{jmath--,
- Journaltitle = {J Math \& Phys}
-}
-
-@book{为人民服务--,
- title = {为人民服务;纪念白求恩;愚公移山}
-}
-
-@book{编者1964--,
- title = {为人民服务;纪念白求恩;愚公移山},
- address= {北京},
- publisher={人民出版社},
- date ={1964},
- pages= {1-3;7-11;31-35}
-}
-
-@book{大趋势--,
- title = {大趋势}
-}
-
-@book{地壳运动--,
- title = {地壳运动假说:从大陆漂移到板块构造}
-}
-
-@book{三松堂--,
- title = {三松堂全集:第4卷}
-}
-
-@book{世界出版业--,
- title = {世界出版业:美国卷}
-}
-
-@book{ECL集成电路--,
- title = {ECL集成电路:原理与设计}
-}
-
-@book{中国科学技术史--,
- title = {中国科学技术史:第2卷~~~~科学思想史}
-}
-
-@article{商鞅战秋菊--,
- title = {商鞅战秋菊:法治转型的一个思想实验}
-}
-
-@article{中国科学--,
- title = {中国科学:D辑~~~~地球科学}
-}
-
-@Standard{信息与文献--,
- title = {信息与文献---都柏林核心元数据元素集:GB/T 25100—2010}
-}
-
-@Standard{全国信息与文献标准化技术委员会2010-2-3,
- author = {全国信息与文献标准化技术委员会},
- title = {信息与文献\ \ \ \ 都柏林核心元数据元素集: GB/T 25100—2010},
- year = {2010},
- address = {北京},
- pages = {2--3},
- publisher = {中国标准出版社},
-}
-
-@report{中子反射--,
- title = {中子反射数据分析技术:CNIC-01887}
-}
-
-@article{AsianPacificjournal--,
- Journaltitle = {Asian Pacific journal of eancer prevention: e-only}
-}
-
-
-@book{egbookeda--,
- title = {中文书},
- edition={3}
-}
-
-@book{egbookedb--,
- title = {中文书},
- edition={新1版}
-}
-
-@book{egbookedc--,
- title = {中文书},
- edition={明刻本}
-}
-
-@book{egbookedd--,
- title = {english book},
- edition={5}
-}
-
-@book{egbookede--,
- title = {english book},
- edition={Rev. ed.}
-}
-
-@book{egbookpuba--,
- title = {中文书},
- date = {2013},
- address = {北京},
- publisher = {人民出版社},
-}
-
-@book{egbookpubb--,
- title = {english book},
- date = {2012},
- address = {New York},
- publisher = {Academic Press},
-}
-
-@book{egbookpubaddressa--,
- title = {english book},
- address = {Cambridge, Eng.},
- publisher = {Academic Press},
-}
-
-@book{egbookpubaddressb--,
- title = {english book},
- address = {Cambridge, Mass.},
- publisher = {Academic Press},
-}
-
-@book{egbookpubaddressc--,
- title = {中文书},
- date = {2013},
- address = {北京 and 上海},
- publisher = {科学出版社},
-}
-
-@book{egbookpubaddressd--,
- title = {english book},
- date = {2000},
- address = {London and Boston and Durban and Syngapore and Sydney and Toronto and Wellington},
- publisher = {Butterworths},
-}
-
-@book{egbookpubaddresse--,
- title = {中文书},
- date = {1990},
- publisher = {三户图书刊行社},
-}
-
-@book{egbookpubaddressf--,
- title = {english book},
- date = {1975},
- publisher = {MacMillan},
-}
-
-@online{egbookpubaddressg--,
- date = {2011},
- pages ={105},
- url={http://lib.myilibrary.com/Open.aspx?id=312377},
- urldate={2014-06-16},
- publisher = {Open University Press},
-}
-
-
-
-@book{egbookpubpublishera--,
- title = {中文书},
- address = {北京},
- publisher = {中国标准出版社},
-}
-
-@book{egbookpubpublisherb--,
- title = {english book},
- address = {Cambridge},
- publisher = {Elsevier Science Publishers},
-}
-
-@book{egbookpubpublisherc--,
- title = {english book},
- address = {Cambridge},
- publisher = {IRRI},
-}
-
-@book{egbookpubpublisherd--,
- title = {english book},
- address = {Chicago},
- publisher = {ALA and CLA},
- date ={1978}
-}
-
-@book{egbookpubpublishere--,
- title = {中文书},
- address = {哈尔滨},
- date ={2013}
-}
-
-@book{egbookpubpublisherf--,
- title = {english book},
- address = {Salt Lake City},
- date ={1964}
-}
-
-
-@book{egbookpubdatea--,
- title = {中文书},
- year ={1947(民国三十六年)}
-}
-
-@book{egbookpubdateb--,
- title = {中文书},
- year ={1705(康熙四十四年)}
-}
-
-@newspaper{egbookpubdatec--,
- title = {中文书},
- date ={2013-01-08}
-}
-
-@book{egbookpubdated--,
- title = {中文书},
- year ={c1988}
-}
-
-@book{egbookpubdatee--,
- title = {中文书},
- year ={1985印刷}
-}
-
-@book{egbookpubdatef--,
- title = {中文书},
- year ={[1936]}
-}
-
-
-@online{egbookpubdateg--,
- title = {english book},
- date = {2012-05-03},
- urldate={2013-11-12},
-}
-
-@Book{曹凌2011-19-,
- author = {曹凌},
- title = {中国佛教疑伪经综录},
- year = {2011},
- publisher = {上海古籍出版社},
- address = {上海},
- pages ={19}
-}
-
-@Book{钱学森2001--,
- author = {钱学森},
- title = {创建系统学},
- year = {2001},
- publisher = {山西科学技术出版社},
- address = {太原},
- pages ={序2-3}
-}
-
-@Book{冯友兰2008--,
- author = {冯友兰},
- title = {冯友兰自选集},
- year = {2008},
- publisher = {北京大学出版社},
- address = {北京},
- edition ={2},
- pages ={第1版自序}
-}
-
-@inbook{李约瑟1991--,
- author = {李约瑟},
- title = {题词},
- bookauthor = {苏克福 and 管成学 and 邓明鲁},
- booktitle = {苏颂与《本草图经》研究},
- year = {1991},
- publisher = {长春出版社},
- address = {长春},
- pages = {扉页}
-}
-
-@ARTICLE{DUBAR2013--,
- author = {DUBAR, K L. AND MITCHELL, D A.},
- title = {Revealing nature's synthetic potential through the study of ribosomal natural product biosynthesis},
- Journaltitle = {ACS chemical biology},
- DATE = {2013},
- VOLUME = {8},
- pages = {473-487},
- url = {http://pubs.acs.org/doi/pdfplus/10.1021/cb3005325},
- urldate = {2013-10-16}
-}
-
-@Book{周鲁卫2011--,
- author = {周鲁卫},
- title = {软物质物理导论},
- year = {2011},
- publisher = {复旦大学出版社},
- address = {上海},
- pages = {1}
-}
-
-@ARTICLE{常森2013--,
- author = {常森},
- title = {《五行》学说与《荀子》},
- Journaltitle = {北京大学学报(哲学社会科学版)},
- DATE = {2013},
- VOLUME = {50},
- number = {1},
- pages = {75},
-}
-
-@Book{RUDDOCK2009--,
- author = {RUDDOCK, L.},
- title = {Economics for the modern built environment},
- year = {2009},
- publisher = {Taylor & Francis},
- address = {London},
- pages = {12},
- url = {http://lib.mylib.com},
- urldate = {2010-06-15},
-}
-
-@book{kereanrefa,
- AUTHOR = {김세훈 and others},
- TITLE = { 도서판및특서진흥업 개정안 연구},
- DATE = {2003},
- address={서울},
- PAGES = {15},
- publisher = {한국운화관팡정책연구원},
-}
-%%김세훈, 외. 도서판및특서진흥업 개정안 연구〔M〕, 서울; 한국운화관팡정책연구원,2003: 15.
-
-
-@book{kereanrefb,
- AUTHOR = {이냉목 },
- TITLE = { 도서관꺾규총람: 세 1 권},
- DATE = {2005},
- address={서울},
- PAGES = {67-68},
- publisher = {구미무역 출판부},
-}
-%%이냉목 도서관꺾규총람: 세 1 권[M〕. 서울: 구미무역 출판부,2005: 67-68.
-%%
-
-@Book{李炳穆2005--,
- author = {李炳穆},
- title = {图书馆法柜总览:第1卷},
- year = {2005},
- publisher = {九美贸易出版部},
- address = {首尔},
- pages = {67-68}
-}
-
-
-@article{kereanrefc,
- DATE = {2007},
- volume={48},
- number={7},
- PAGES = {11-12},
- journaltitle={ 圖書館文化},
- TITLE = {도서관 정보정책위원회 설립식 및 도서관 정보정책기획단신성},
-}
-%%도서관 정보정책위원회 설립식 및 도서관 정보정책기획단신성. 圖書館文化,2007 ,48(7): 11-12.
-
-@ARTICLE{图书馆信息政策委员会2007--,
- title = {图书馆信息政策委员会成立仪式与图书馆信息政策规划团},
- Journaltitle = {图书馆文化},
- DATE = {2007},
- VOLUME = {48},
- number = {7},
- pages = {11-12},
-}
-
-@book{japaneserefc,
- AUTHOR = {図書館用語辞典編集委員会},
- TITLE = { 最新図書館用語大辞典},
- DATE = {2004},
- address={東京},
- PAGES = {154},
- publisher = {柏書房株式会社},
-}
-%%
-%%図書館用語辞典編集委員会.最新図書館用語大辞典[M].東京:柏書房株式会社,2004:154.
-%%
-
-@article{russianrefc,
- author={Кочекоs, А Я},
- TITLE = {Молибден-медно-эолотопорфиооое месторождение Рябиноосе},
- DATE = {1993},
- number={7},
- PAGES = {50-58},
- journaltitle={Отечестsенная гелогия}
-}
-%%Кочекоs А Я. Молибден-медно-эолотопорфиооое месторождение Рябиноосе[J/ОL]. ,1993(7):50-58
-
-@ARTICLE{熊平2005--,
- author = {熊平 and 吴颉},
- title = {从交易费用的角度谈如何构建药品流通的良性机制},
- Journaltitle = {中国物价},
- DATE = {2005},
- number = {8},
- pages = {42-45},
-}
-
-@ARTICLE{xiong2005--,
- author = {Xiong, Ping and Wu, Xie},
- title = {Discussion on how to construct benign medicine circulantion mechanism fromtranaction cosperspective},
- Journaltitle = {China price},
- DATE = {2005},
- number = {8},
- pages = {42-45},
-}
-
-@ARTICLE{上海市食品药品监督管理局课题组2008--,
- author = {上海市食品药品监督管理局课题组},
- title = {互联网药品经营现状和监管机制的研究},
- Journaltitle = {上海食品药品监管情报研究},
- DATE = {2008},
- number = {1},
- pages = {8-11},
-}
-
-@ARTICLE{Rgsfda2008--,
- author = {{Research Group of Shanghai Food and Drug Administration}},
- title = {A study on online pharmaceutical operating situation and supervision mechanism},
- Journaltitle = {Shanghai food and drug information research},
- DATE = {2008},
- number = {1},
- pages = {8-11},
-}
-
-
-@PhdThesis{刘乃安2000-17-18,
- author = {刘乃安},
- title = {生物质材料热解失重动力学及其分析方法研究},
- year = {2000},
- pages = {17--18},
- doi = {10.7666/d.y351065},
- url = {http://wenku.baidu.com/link?url=GJDJxb4lxBUXnIPmq1XoEGSIr1H8TMLbidW_LjlYu33tpt707u62rKliypU_FBGUmox7ovPNaVIVBALAMd5yfwuKUUOAGYuB7cuZ-BYEhXa},
- urldate = {2014-08-29},
- address = {安徽},
- school = {中国科学技术大学},
-}
-
-@book{Deverell2013-21-22,
- author = {Deverell, William and Igler, David},
- title = {A Companion to {California} History},
- year = {2013},
- date = {2013-11-15},
- pages = {21--22},
- doi = {10.1002/9781444305036.ch2},
- url = {http://onlinelibrary.wiley.com/doi/10.1002/9781444305036.ch2/summary},
- urldate = {2014-06-24},
- address = {New York},
- school = {John Wiley \& Sons},
-}
-
-@inbook{姚中秋2009--,
- author = {姚中秋},
- title = {作为一种制度变迁模式的“转型”},
- bookauthor = {罗卫东 and 姚中秋},
- booktitle = {中国转型的理论分析:奥地利学派的视角},
- year = {2009},
- publisher = {浙江大学出版社},
- address = {杭州},
- pages = {44}
-}
-
-@inbook{姚中秋2008--,
- author = {姚中秋},
- title = {一种制度变迁模式},
- bookauthor = {罗, 卫东 and 姚, 中秋},
- booktitle = {中国转型的理论分析},
- year = {2008},
- publisher = {浙江大学出版社},
- address = {杭州},
- pages = {44}
-}
-
-
-@ARTICLE{关立哲2014--,
- author = {关立哲 and 韩纪富 and 张晨延},
- title = {科技期刊编辑审读中要注重比较思维的科学运用},
- Journaltitle = {编辑学报},
- DATE = {2014},
- VOLUME = {26},
- number = {2},
- pages = {144-146}
-}
-
-@ARTICLE{TENOPIR1987--,
- author = {TENOPIR, C.},
- title = {Online databases, quality control},
- Journaltitle = {Library journal},
- DATE = {1987},
- VOLUME = {113},
- number = {2},
- pages = {124-125}
-}
-
-@ARTICLE{egdatevolnumpagea--,
- title = {article of journal},
- DATE = {2001},
- VOLUME = {1},
- number = {1},
- pages = {5-6}
-}
-
-@ARTICLE{egdatevolnumpageb--,
- title = {article of journal},
- DATE = {2014},
- VOLUME = {510},
- pages = {356-363}
-}
-
-@ARTICLE{egdatevolnumpagec--,
- title = {article of journal},
- DATE = {2010},
- number = {6},
- pages = {23}
-}
-
-@ARTICLE{egdatevolnumpaged--,
- title = {article of journal},
- DATE = {2012},
- VOLUME = {22},
- number = {增刊2},
- pages = {81-86}
-}
-
-@ARTICLE{egdatevolnumpagee--,
- title = {article of journal},
- DATE = {2001},
- number = {9/10},
- pages = {36-39}
-}
-
-@ARTICLE{egdatevolnumpagef--,
- title = {article of journal},
- year = {2011, 33(2):20-25;2011, 33(3):26-30},
-}
-
-@newspaper{egdatevolnumpageg--,
- title = {article of journal},
- date = {2013-03-16},
- number = {1}
-}
-
-
-@Book{尼葛洛庞帝1996--,
- author = {尼葛洛庞帝},
- title = {数字化生存},
- year = {1996},
- translator = {胡泳 and 范海燕},
- publisher = {海南出版社},
- address = {海口},
-}
-
-@Book{汪冰1997-16-16,
- author = {汪冰},
- title = {电子图书馆理论与实践研究},
- year = {1997},
- publisher = {北京图书馆出版社},
- pages = {16},
- address = {北京},
-}
-
-@Article{杨宗英1996-24-29,
- author = {杨宗英},
- title = {电子图书馆的现实模型},
- journal = {中国图书馆学报},
- year = {1996},
- number = {2},
- pages = {24--29},
-}
-
-@Book{Baker1995--,
- author = {Baker, S K and Jackson, M E},
- title = {The future of resource sharing},
- year = {1995},
- publisher = {The Haworth Press},
- address = {New York},
-}
-
-@Book{Chernik1982--,
- author = {Chernik, B E},
- title = {Introduction to library services for library technicians},
- year = {1982},
- publisher = {Libraries Unlimited, Inc.},
- address = {Littleton, Colo.},
-}
-
-
-@Article{Dowler1995-5-26,
- author = {Dowler, L},
- title = {The research university’s dilemma: resource sharing and research in a transinstitutional environment},
- journal = {Journal of library administration},
- year = {1995},
- volume = {21},
- number = {1/2},
- pages = {5--26},
-}
-
-
-@Inproceedings{ref-replace-char,
- Title = {Cognitive Radio and Cooperative Strategies for Power Saving in Multi-Standard Wireless Devices},
- Address = {Florence, Italy},
- Author = {Rodriguez, J. and P. Marques and A. Radwan and K. Moessner and R. Tafazolli and others},
- Booktitle = {Future % Network \& Mobile # Summit 2010},
- Date = {June 2010}
-}
-
-@Online{olnoauthorcn,
- Title = {如何在LaTeX写作中管理参考文献?},
- Date = {2016-08-12},
- Url = {http://www.latexstudio.net/archives/7131}
-}
-
-@Online{Allianceurlonly,
- Url = {www.wimedia.org}
-}
-
-@Online{olnoauthoren,
- Title = {Dublin Core metadata element set: version 1.1},
- Url = {http://dublincore.org},
- Urldate = {2014-06-11},
- Year = {2012-06-14}
-}
-
-@Article{王临慧2010-147,
- author = {王临慧 and others},
- title = {天津方言的源流关系刍议},
- journal = {山西师范大学学报(社会科学版)},
- year = {2010},
- volume = {37},
- number = {4},
- pages = {147},
-}
-
-
-@InProceedings{王临慧2010-138,
- author = {王临慧},
- title = {从几组声母的演变看天津方言形成的自然条件和历史条件},
- bookauthor= {曹志耘},
- booktitle = {汉语方言的地理语言学研究:首届中国地理语言学国际学术研讨会论文集},
- year = {2010},
- publisher = {北京语言大学出版社},
- pages = {138},
- address = {北京},
-}
-
-@Book{王夫之1845--,
- Title = {宋论},
- Author = {王夫之},
- Edition = {刻本},
- Publisher = {曾氏},
- Year = {1845(清同治四年)},
- Location = {金陵}
-}
-
-@Book{汪昂1881--,
- Title = {增订本草备要:四卷},
- Address = {京都},
- Author = {汪昂},
- Edition = {刻本},
- Publisher = {老二酉堂},
- Year = {1881(清光绪七年)},
- Location = {京都}
-}
-
-@Periodical{AAAS1883--,
- Title = {Science},
- Date = {1883},
- Editor = {{American Association for the Advancement of Science}},
- Number = {1},
- Volume = {1},
- Location = {Washington, D.C.},
- Publisher = {American Association for the Advancement of Science}
-}
-
-@Book{汪昂1912--,
- Title = {(增补)本草备要},
- Author = {汪昂},
- Edition = {石印本},
- Publisher = {同文书局},
- Year = {1912},
- Location = {上海}
-}
-
-@Periodical{中国地质学会1936--,
- Title = {地质评论},
- Date = {1936},
- Editor = {中国地质学会},
- Number = {1},
- Volume = {1},
- Location = {北京},
- Publisher = {地质出版社}
-}
-
-
-@Book{1962-50-50,
- Title = {康熙字典:已集上:水部},
- Address = {北京},
- Edition = {同文书局影印本},
- Pages = {50},
- Publisher = {中华书局},
- Year = {1962}
-}
-
-@Proceedings{ROSENTHALL1963--,
- Title = {Proceedings of the Fifth Canadian Mathematical Congress, University of Montreal, 1961},
- Date = {1963},
- Publisher = {University of Toronto Press},
- Editor = {E M ROSENTHALL},
- Location = {Toronto}
-}
-
-@Thesis{CALMS1965--,
- Title = {Infrared spectroscopic studies on solid oxygen},
- Author = {R B CALMS},
- Date = {1965},
- Institution = {Univ. of California},
- Location = {Berkeley}
-}
-
-@Report{WHO1970--,
- Title = {Factors regulating the immune response},
- Author = {{World Health Organization}},
- Date = {1970},
- Institution = {WHO},
- Location = {Geneva},
- Titleaddon = {report of WHO Scientific Group}
-}
-
-@Inproceedings{FOURNEY1971-17-38,
- Title = {Advances in holographic photoelasticity},
- Author = {M E FOURNEY},
- Booktitle = {Symposium on Applications of Holography in Mechanics, August 23-25, 1971, University of Southern California, Los Angeles, California},
- year = {c1971},
- Pages = {17-38},
- Publisher = {ASME},
- Location = {New York}
-}
-
-@Inproceedings{FOURNEY1971-17-38a,
- Title = {Advances in holographic photoelasticity},
- Author = {M E FOURNEY},
- Bookauthor = {{American Society of Mechanical Engineers.Applied Mechanics Division}},
- Booktitle = {Symposium on Applications of Holography in Mechanics, August 23-25, 1971. University of Southern California, Los Angeles, California},
- Date = {1971},
- Pages = {17-38},
- Publisher = {ASME},
- Location = {New York}
-}
-
-@TechReport{Humphrey1971--,
- Title = {The sonic throat method and real gas one-dimensional flow: an application to air and nitrogen},
- Author = {Humphrey, Richard L. and Wagner, Jerry L.},
- Year = {1971},
- Number = {730029},
- Type = {AD}
-}
-
-@Book{CRANE1972--,
- Title = {Invisible college},
- Author = {D. Crane},
- Date = {1972},
- Publisher = {Univ. of Chicago Press},
- Location = {Chicago}
-}
-
-
-
-@Article{KENNEDY1975-311-386,
- Title = {Morphology and genesis of nodular chalks and hardgrounds in the Upper
- Cretacesous of southern England},
- Author = {W. J. KENNEDY and R. E. GARRISON},
- Date = {1975},
- Journaltitle = {Sedimentology},
- Pages = {311-386},
- Volume = {22}
-}
-
-@Article{KENNEDY1975-339-360,
- Title = {Morphology and genesis of nodular phosphates in the cenomanian of South-east England},
- Author = {W. J. KENNEDY and R. E. GARRISON},
- Date = {1975},
- Journaltitle = {Lethaia},
- Pages = {339-360},
- Volume = {8}
-}
-
-@Inbook{1977-49-49,
- Title = {宋史卷三:本纪第三},
- Address = {北京},
- Booktitle = {宋史:第1册},
- Pages = {49},
- Publisher = {中华书局},
- Year = {1977}
-}
-
-@Book{IFLAI1977--,
- Title = {Names of persons: national usages for entry in catalogues},
- Author = {{International Federation of Library Association and Institutions}},
- Edition = {3},
- Publisher = {IFLA International Office for UBC},
- Year = {1977},
- Location = {London}
-}
-
-
-@InProceedings{张忠智1997-33-34,
- author = {张忠智},
- title = {科技书刊的总编(主编)的角色要求},
- booktitle = {中国科学技术期刊编辑学会建会十周年学术研讨会论文汇编},
- year = {1997},
- editor = {中国科学技术期刊编辑学会},
- publisher = {中国科学技术期刊编辑学会学术委员会},
- pages = {33--34},
- address = {北京},
-}
-
-@Book{中国社会科学院语言研究所词典编辑室1996--,
- author = {中国社会科学院语言研究所词典编辑室},
- title = {现代汉语词典},
- year = {1996},
- edition = {修订本},
- publisher = {商务印书馆},
- address = {北京},
-}
-
-
-@Article{刘彻东1998-38-39,
- Title = {中国的青年刊物},
- Author = {刘彻东},
- Date = {1998},
- Journaltitle = {中国出版},
- Number = {5},
- Pages = {38-39},
- Titleaddon = {个性特色为本}
-}
-
-@InProceedings{裴丽生1981-2-10,
- author = {裴丽生},
- title = {在中国科协学术期刊编辑工作经验交流会上的讲话},
- booktitle = {中国科协学术期刊编辑工作经验交流会资料选},
- year = {1981},
- editor = {中国科学技术协会},
- publisher = {中国科学技术协会学会工作部},
- pages = {2--10},
- address = {北京},
-}
-
-
-@Article{亚洲地质图编目组1978-194-208,
- Title = {亚洲地层与地质历史概述},
- Author = {亚洲地质图编目组},
- Date = {1978},
- Journaltitle = {地质学报},
- Pages = {194-208},
- Volume = {3}
-}
-
-@Inbook{BUSECK1980-117-211,
- Title = {Subsolidus phenomena in pyroxenes},
- Author = {P R BUSECK and NORD, Jr., G L and D R VEBLEN},
- Bookauthor = {CT PREWITT},
- Booktitle = {Pyroxense},
- year = {c1980},
- Pages = {117-211},
- Publisher = {Mineralogical Society of America},
- Location = {Washington, D.C.}
-}
-
-@Inbook{陈晋镳1980-56-114,
- Title = {蓟县震旦亚界研究},
- Author = {陈晋镳 and 张惠民 and 朱士兴 and others},
- Bookauthor = {中国地质科学院天津地质矿产研究所},
- Booktitle = {中国震旦亚界},
- Pages = {56-114},
- Publisher = {天津科学出版社},
- Location = {天津},
- Year = {1980}
-}
-
-@Article{Sunstein1996-903-903,
- author = {Sunstein, Cass R.},
- title = {Social Norms and Social Roles},
- journal = {Columbia law review},
- year = {1996},
- volume = {96},
- pages = {903},
- url = {http://www.heinonline.org/HOL/Page?handle=hein.journals/clr96&id=913&collection=journals&index=journals/clr},
- urldate = {2012-01-26},
-}
-
-@Book{罗杰斯2011-15-16,
- author = {罗杰斯},
- title = {西方文明史: 问题与源头},
- year = {2011},
- translator = {潘惠霞 and 魏婧 and 杨艳 and others},
- publisher = {东北财经大学出版社},
- pages = {15--16},
- address = {大连},
-}
-
-@Book{陈登原2000-29-29,
- author = {陈登原},
- title = {国史旧闻: 第1卷},
- year = {2000},
- publisher = {中华书局},
- pages = {29},
- address = {北京},
-}
-
-@Book{哈里森沃尔德伦2012-235-236,
- author = {哈里森·沃尔德伦},
- title = {经济数学与金融数学},
- year = {2012},
- translator = {谢远涛},
- publisher = {中国人民大学出版社},
- pages = {235--236},
- address = {北京},
-}
-
-@Book{北京市政协民族和宗教委员会2012-112-112,
- author = {北京市政协民族和宗教委员会 and 北京联合大学民族与宗教研究所},
- title = {历代王朝与民族宗教},
- year = {2012},
- publisher = {民族出版社},
- pages = {112},
- address = {北京},
-}
-
-
-@Book{徐光宪2010--,
- author = {徐光宪 and 王祥云},
- title = {物质结构},
- year = {2010},
- publisher = {科学出版社},
- address = {北京},
-}
-
-@Book{顾炎武1992--,
- author = {顾炎武},
- title = {昌平山水记:京东考古录},
- year = {1992},
- publisher = {北京古籍出版社},
- address = {北京},
-}
-
-@Book{王夫之1865--,
- author = {王夫之},
- title = {宋论},
- year = {1865(清同治四年)},
- edition = {刻本},
- publisher = {湘乡曾国荃},
- address = {金陵},
-}
-
-@Proceedings{牛志明2012--,
- title = {综合湿地管理国际研讨会论文集},
- year = {2012},
- editor = {牛志明 and 斯温兰德 and 雷光春},
- publisher = {海洋出版社},
- address = {北京},
-}
-
-@Archive{中国第一历史档案馆2001--,
- author = {中国第一历史档案馆 and 辽宁省档案馆},
- title = {中国明朝档案总汇},
- year = {2001},
- address = {桂林},
- publisher = {广西师范大学出版社},
-}
-
-@PhdThesis{杨保军2012--,
- author = {杨保军},
- title = {新闻道德论},
- year = {2010},
- url = {http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20101104-BPO-889-1023&cult=CN},
- urldate = {2012-11-01},
- address = {北京},
- publisher = {中国人民大学出版社},
-}
-
-@Book{赵学功2001--,
- author = {赵学功},
- title = {当代美国外交},
- year = {2001},
- publisher = {社会科学文献出版社},
- url = {http://www.cadal.zju.edu.cn/book/trySinglePage/33023884/1},
- urldate = {2014-06-11},
- address = {北京},
-}
-
-@Book{同济大学土木工程防灾国家重点实验室2011-5-6,
- author = {同济大学土木工程防灾国家重点实验室},
- title = {汶川地震灾害研究},
- year = {2011},
- publisher = {同济大学出版社},
- pages = {5--6},
- url = {http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20120406-YPT-889-0010},
- urldate = {2013-05-09},
- address = {上海},
-}
-
-@Book{中国造纸学会2003--,
- author = {中国造纸学会},
- title = {中国造纸年鉴: 2003},
- year = {2003},
- publisher = {中国轻工业出版社},
- url = {http://www.cadal.zju.edu.cn/book/view/25010080},
- urldate = {2014-04-25},
- address = {北京},
-}
-
-
-@Proceedings{Yufin2000--,
- title = {Geoecology and computers: proceedings of the {Third International Conference on Advances of Computer Methods in Geotechnical and Geoenvironmental Engineering, Moscow, Russia, February 1--4, 2000}},
- year = {2000},
- editor = {Yufin, Sergey A},
- publisher = {A. A. Balkema},
- address = {Rotterdam},
-}
-
-@Book{Baldock2011-105-105,
- author = {Baldock, Peter},
- title = {Developing early childhood services: past, present and future},
- year = {2011},
- publisher = {Open University Press},
- pages = {105},
- url = {http://lib.myilibrary.com/Open.aspx?id=312377},
- urldate = {2012-11-27},
-}
-
-@Book{Fan2013-25-26,
- author = {Fan, Xuetong and Sommers, Christopher H.},
- title = {Food irradiation research and technology},
- year = {2013},
- edition = {2},
- publisher = {Blackwell Publishing},
- pages = {25--26},
- url = {http://onlinelibrary.wiley.com/doi/10.1002/9781118422557.ch2/summary},
- urldate = {2014-06-26},
- address = {Ames, Iowa},
-}
-
-
-@Inbook{王夫之2011-1109-1109,
- title = {周易外传:卷 5},
- booktitle = {船山全书},
- year = {2011},
- editor = {王夫之},
- number = {6},
- publisher = {岳麓书社},
- pages = {1109},
- address = {长沙},
-}
-
-@Inbook{程根伟1999-32-36,
- author = {程根伟},
- title = {1998 年长江洪水的成因与减灾对策},
- booktitle = {长江流域洪涝灾害与科技对策},
- year = {1999},
- editor = {许厚泽 and 赵其国},
- publisher = {科学出版社},
- pages = {32--36},
- address = {北京},
-}
-
-@Inbook{陈晋镳1980-56-114a,
- author = {陈晋镳 and 张惠民 and 朱士兴 and 赵震 and 王振刚},
- title = {蓟县震旦亚界研究},
- booktitle = {中国震旦亚界},
- year = {1980},
- editor = {中国地质科学院天津地质矿产研究所},
- publisher = {天津科学技术出版社},
- pages = {56--114},
- address = {天津},
-}
-
-@Inbook{马克思2013-302-302,
- author = {马克思},
- title = {政治经济学批判},
- booktitle = {马克思恩格斯全集},
- year = {2013},
- editor = {马克思 and 恩格斯},
- volume = {35},
- publisher = {人民出版社},
- pages = {302},
- address = {北京},
-}
-
-
-
-
-
-@InProceedings{贾东琴2011-45-52,
- author = {贾东琴 and 柯平},
- title = {面向数字素养的高校图书馆数字服务体系研究},
- booktitle = {中国图书馆学会年会论文集: 2011年卷},
- year = {2011},
- editor = {中国图书馆学会},
- publisher = {国家图书馆出版社},
- pages = {45--52},
- address = {北京},
-}
-
-@Inbook{Weinstein1974-745-772,
- author = {Weinstein, L and Swertz, M N},
- title = {Pathogenic properties of invading microorganism},
- booktitle = {Pathologic physiology: mechanisms of disease},
- year = {1974},
- editor = {Sodeman, Jr., William A and Sodeman, William A},
- publisher = {Saunders},
- pages = {745--772},
- address = {Philadelphia},
-}
-
-@InBOOK{Roberson2011-1-36,
- author = {Roberson, J. Alan and Burneson, Eric G.},
- title = {Drinking water standards, regulations and goals},
- booktitle = {Water quality \& treatment: a handbook on drinking water},
- year = {2011},
- editor = {{American Water Works Association}},
- edition = {6},
- publisher = {McGraw-Hill},
- pages = {1.1--1.36},
- url = {http://lib.myilibrary.com/Open.aspx?id=291430},
- urldate = {2012-12-10},
- address = {New York},
-}
-
-@Periodical{中华医学会湖北分会1984----,
- title = {临床内科杂志},
- year = {1984},
- volume = {1},
- number = {1},
- address = {武汉},
- author = {中华医学会湖北分会},
- publisher = {中华医学会湖北分会},
-}
-
-@Periodical{中国图书馆学会1957--1990--,
- title = {图书馆学通讯},
- year = {1957/1990},
- number = {1-4},
- address = {北京},
- author = {中国图书馆学会},
- publisher = {北京图书馆},
-}
-
-@Periodical{中国图书馆学会1957--,
- Title = {图书馆学通信},
- Address = {北京},
- Date = {1957/1990},
- Editor = {中国图书馆学会},
- Institution = {北京图书馆},
- Number = {1-4}
-}
-
-@Periodical{中国图书馆学会1957a--,
- Title = {图书馆学通信},
- Date = {1957/1990},
- Editor = {中国图书馆学会},
- Institution = {北京图书馆},
- Number = {1-4}
-}
-
-@Periodical{中国图书馆学会1957b--,
- Title = {图书馆学通信},
- Address = {北京},
- Date = {1957/1990},
- Editor = {中国图书馆学会},
- Number = {1-4}
-}
-
-@Periodical{中国图书馆学会1957c--,
- Title = {图书馆学通信},
- Date = {1957/1990},
- Editor = {中国图书馆学会},
- Number = {1-4}
-}
-
-@Periodical{AAAS1883----,
- title = {Science},
- year = {1883},
- volume = {1},
- number = {1},
- address = {Washington, D.C.},
- author = {{American Association for the Advancement of Science}},
- publisher = {American Association for the Advancement of Science},
-}
-
-
-@Article{袁训来2012-3219-3219,
- author = {袁训来 and 陈哲 and 肖书海 and others},
- title = {蓝田生物群: 一个认识多细胞生物起源和早期演化的新窗口},
- journal = {科学通报},
- year = {2012},
- volume = {55},
- number = {34},
- pages = {3219},
-}
-
-@Newspaper{余建斌2013--,
- author = {余建斌},
- date = {2013-01-12},
- journal = {人民日报},
- number = {2},
- title = {我们的科技一直在追赶: 访中国工程院院长周济},
- url = {http://paper.people.com.cn/rmrb/html/2013-01/12/nw.D110000renmrb_20130112_5-02.htm},
- urldate = {2013-03-20},
- year = {2013},
-}
-
-@Article{李炳穆2008-6-12,
- author = {李炳穆},
- title = {韩国图书馆法},
- journal = {图书情报工作},
- year = {2008},
- volume = {52},
- number = {6},
- pages = {6--12},
- url = {http://www.docin.com/p-400265742.html},
- urldate = {2013-10-25},
-}
-
-@Article{李幼平2010-225-228,
- author = {李幼平 and 王莉},
- title = {循证医学研究方法: 附视频},
- journal = {中华移植杂志(电子版)},
- year = {2010},
- volume = {4},
- number = {3},
- pages = {225--228},
- url = {http://www.cqvip.com/Read/Read.aspx?id=36658332},
- urldate = {2014-06-09},
-}
-
-@Article{武丽丽2008-8-9,
- author = {武丽丽 and 华一新 and 张亚军 and others},
- title = {“北斗一号”监控管理网设计与实现},
- journal = {测绘科学},
- year = {2008},
- volume = {33},
- number = {5},
- pages = {8--9},
- doi = {10.3771/j.issn.1009-2307.2008.05.002},
- url = {http://vip.calis.edu.cn/CSTJ/Sear.dll?OPAC_CreateDetail},
- urldate = {2009-10-25},
-}
-
-@Article{Kanamori1998-2063-2063,
- author = {Kanamori, H},
- title = {Shaking without quaking},
- journal = {Science},
- year = {1998},
- volume = {279},
- number = {5359},
- pages = {2063},
-}
-
-@Article{Caplan1993-61-66,
- author = {Caplan, P},
- title = {Cataloging internet resources},
- journal = {The public access computer systems review},
- year = {1993},
- volume = {4},
- number = {2},
- pages = {61--66},
-}
-
-@Article{Frese2013-378-398,
- author = {Frese, Karen S. and Katus, Hugo A. and Meder, Benjamin},
- title = {Next-generation sequencing: from understanding biology to personalized medicine},
- journal = {Biology},
- year = {2013},
- volume = {2},
- number = {1},
- pages = {378--398},
- doi = {10.3390/biology2010378},
- url = {http://www.mdpi.com/2079-7737/2/1/378},
- urldate = {2013-03-19},
-}
-
-@Article{Myburg2014-356-362,
- author = {Myburg, Alexander A. and Grattapaglia, Dario and Tuskan, Gerald A. and others},
- title = {The genome of Eucalyptus grandis},
- journal = {Nature},
- year = {2014},
- date = {2014-06-19},
- volume = {510},
- pages = {356--362},
- doi = {10.1038/nature13308},
- url = {http://www.nature.com/nature/journal/v510/n7505/pdf/nature13308.pdf},
- urldate = {2014-06-25},
-}
-
-@Patent{邓一刚2006--,
- author = {邓一刚},
- title = {全智能节电器},
- number = {200610171314.3},
- year = {2006},
- date = {2006-12-13},
-}
-
-@Patent{西安电子科技大学2002--,
- author = {西安电子科技大学},
- title = {光折变自适应光外差探测方法},
- number = {01128777.2},
- year = {2002},
- date = {2002-03-06},
- url = {http://211.152.9.47/sipoasp/zljs/hyjs-yx-new.asp?recid=01128777.2&leixin=0},
- urldate = {2002-05-28},
-}
-
-@Patent{Tachibana2005--,
- author = {Tachibana, Ryuki and Shimizu, Shuhichi and Kobayshi, Seiji and Nakamura, Taiga},
- title = {Electronic watermarking method and system},
- number = {US6915001},
- year = {2005},
- date = {2005-07-05},
- url = {http://www.google.co.in/patents/US6915001},
- urldate = {2013-11-11},
-}
-
-@TechReport{中国互联网络信息中心2012--,
- author = {中国互联网络信息中心},
- title = {第 29 次中国互联网络发展现状统计报告},
- year = {2012},
- date = {2012-01-16},
- url = {http://www.cnnic.net.cn/hlwfzyj/hlwxzbg/201201/P020120709345264469680},
- urldate = {2013-03-26},
-}
-
-@Archive{北京市人民政府办公厅2005--,
- author = {北京市人民政府办公厅},
- title = {关于转发北京市企业投资项目核准暂行实施办法的通知: 京政办发[2005]37号},
- year = {2005},
- date = {2005-07-12},
- url = {http://china.findlaw.cn/fagui/p_1/39934.html},
- urldate = {2011-07-12},
-}
-
-@Online{Bawden2008--,
- author = {Bawden, D},
- title = {Origins and Concepts of Digital Literacy},
- date = {2008-05-04},
- url = {http://www.soi.city.ac.uk/~dbawden/digital%20literacy%20chapter.pdf},
- urldate = {2013-03-08},
- year = {2008},
-}
-
-@Online{OCLC--,
- author = {{Online Computer Library Center, Inc}},
- title = {About {OCLC}: History of Cooperation},
- url = {http://www.oclc.org/about/cooperation.en.html},
- urldate = {2012-03-27},
-}
-
-@Online{Hopkinson2009--,
- author = {Hopkinson, A},
- title = {{UNIMARC} and Metadata: Dublin Core},
- date = {2009-04-22},
- url = {http://archive.ifla.org/IV/ifla64/138-161e.htm},
- urldate = {2013-03-27},
- year = {2009},
-}
-
-@PhdThesis{刘乃安2000-17-18a,
- author = {刘乃安},
- title = {生物质材料热解失重动力学及其分析方法研究},
- year = {2000},
- pages = {17--18},
- doi = {10.7666/d.y351065},
- url = {http://wenku.baidu.com/link?url=GJDJxb4lxBUXnIPmq1XoEGSIr1H8TMLbidW_LjlYu33tpt707u62rKliypU_FBGUmox7ovPNaVIVBALAMd5yfwuKUUOAGYuB7cuZ-BYEhXa},
- urldate = {2014-08-29},
- address = {安徽},
- school = {中国科学技术大学},
-}
-
-@PhdThesis{Deverell2013-21-22a,
- author = {Deverell, William and Igler, David},
- title = {A Companion to {California} History},
- year = {2013},
- date = {2013-11-15},
- pages = {21--22},
- doi = {10.1002/9781444305036.ch2},
- url = {http://onlinelibrary.wiley.com/doi/10.1002/9781444305036.ch2/summary},
- urldate = {2014-06-24},
- address = {New York},
- school = {John Wiley \& Sons},
-}
-
-@Book{Morri2010--,
- author = {Morri, I},
- title = {Why the West Rules for Now: the Patterns of History, and What They Reveal about the Future},
- year = {2010},
- publisher = {{Farrar, Straus and Giroux}},
- address = {New York},
-}
-
-
-@Article{STIEG1981-549-560,
- Title = {The information needs of historians},
- Author = {M. F. STIEG},
- Date = {1981},
- Journaltitle = {College and Research Libraries},
- Number = {6},
- Pages = {549-560},
- Volume = {42}
-}
-
-
-
-@Article{Milstein1982-436-446,
- Title = {The effect of multiple-tone interfering signals on a direct sequence spread spectrum communication system},
- Author = {Milstein, L. B. and Davidovici,S. and Schilling,D. L.},
- Journal = {IEEE Trans. Commun.},
- Number = {3},
- Pages = {436-446},
- Volume = {30},
- Year = {1982}
-}
-
-@Book{顾炎武1982--,
- Title = {昌平山水记},
- Author = {顾炎武},
- Publisher = {北京古籍出版社},
- Year = {1982},
- Location = {北京},
- Titleaddon = {东京考古录}
-}
-
-@Inbook{马克思1982-505-505,
- Title = {关于《工资、价格和利润》的报告札记},
- Author = {马克思},
- Bookauthor = {马克思 and 恩格斯},
- Booktitle = {马克思恩格斯全集},
- Pages = {505},
- Publisher = {人民出版社},
- Booktitleaddon = {第44卷},
- Location = {北京},
- Year = {1982}
-}
-
-@Article{HEWITT1984-205-218,
- Title = {Technical services in 1983},
- Author = {J A HEWITT},
- Date = {1984},
- Journaltitle = {Library Resource Services},
- Number = {3},
- Pages = {205-218},
- Volume = {28}
-}
-
-@Article{McEliece1984-44-53,
- Title = {Channels with block interference},
- Author = {McEliece, R. J. and Stark, W. E.},
- Journal = {IEEE Trans. Inf. Theory},
- Number = {1},
- Pages = {44-53},
- Volume = {30},
- Year = {1984}
-}
-
-@Article{陶仁骥1984-527-527,
- Title = {密码学与数学},
- Author = {陶仁骥},
- Date = {1984},
- Journaltitle = {自然杂志},
- Number = {7},
- Pages = {527},
- Volume = {7}
-}
-
-@Periodical{中华医学会湖北分会1984--,
- Title = {临床内科杂志},
- Address = {武汉},
- Date = {1984},
- Editor = {中华医学会湖北分会},
- Institution = {中华医学会湖北分会},
- Number = {1},
- Volume = {1}
-}
-
-@Incollection{韩吉人1985-90-99,
- Title = {论职工教育的特点},
- Author = {韩吉人},
- Booktitle = {职工教育研究论文集},
- Date = {1985},
- Publisher = {人民教育出版社},
- Pages = {90-99},
- Bookauthor = {中国职工教育研究会},
- Location = {北京}
-}
-
-@Collection{中国职工教育研究会1985--,
- Title = {职工教育研究论文集},
- Author = {中国职工教育研究会},
- Location = {北京},
- Publisher = {人民教育出版社},
- Year = {1985}
-}
-
-@Standard{全国文献工作标准化委员会第七分委员会1986--,
- Title = {GB/T 5795--1986 中国标准书号},
- Author = {全国文献工作标准化委员会第七分委员会},
- Note = {standard},
- Year = {1986},
- Location = {北京},
- Publisher = {中国标准出版社}
-}
-
-@Inbook{1988-590-590,
- Title = {卷39 乞致任第一},
- Address = {北京},
- Booktitle = {苏魏公文集:下册},
- Pages = {590},
- Publisher = {中华书局},
- Year = {1988}
-}
-
-
-
-@Standard{国家标准局信息分类编码研究所1988-59-92,
- Title = {世界各国和地区名称代码 GB/T 2659-1986},
- Author = {国家标准局信息分类编码研究所},
- Date = {1988},
- Note = {standard},
- Bookauthor = {全国文献工作标准化技术委员会},
- Booktitle = {文献工作国家标准汇编},
- Booktitleaddon = {3},
- Location = {北京},
- Pages = {59-92},
- Publisher = {中国标准出版社}
-}
-
-@Online{1989--,
- Title = {PACS-L:the public-access computer systems forum},
- Date = {1989},
- Publisher = {Tex: University of Houston Libraries},
- Url = {http://info.lib.uh.edu/pacsl.html},
- Urldate = {1995-05-17},
- Location = {Houston}
-}
-
-@Patent{姜锡洲1989--,
- Title = {一种温热外敷药制备方案},
- Author = {姜锡洲},
- Date = {1989-07-26},
- Number = {88105607.3},
- Titleaddon = {中国}
-}
-
-@Report{DTFHA1990--,
- Title = {Guidelines for handling excavated acid-producing materials: PB 91-194001},
- Author = {{U.S. Department of Transportation Federal Highway Administration}},
- Institution = {U.S. Department of Commerce National Information Service},
- Location = {Springfield},
- Year = {1990}
-}
-
-@Book{PIGGOT1990--,
- Title = {The cataloguer's way through AACR2: from document receipt to document retrieval},
- Author = {T. M. PIGGOT},
- Publisher = {The Library Association},
- Year = {1990},
- Location = {London}
-}
-
-@Article{DESMARAIS1992-605-609,
- Title = {Carbon isotope evidence for the stepwise oxidation of the Proterozoic environment},
- Author = {DES MARAIS, D J and H STRAUSS and R E SUMMONS and others},
- Date = {1992},
- Journaltitle = {Nature},
- Pages = {605-609},
- Volume = {359}
-}
-
-@Article{Holtzman1992-243-247,
- Title = {On using perturbation analysis to do sensitivity analysis: derivatives versus differences},
- Author = {Holtzman, J. M.},
- Journal = {IEEE Trans. Autom. Control},
- Number = {2},
- Pages = {243-247},
- Volume = {37},
- Year = {1992}
-}
-
-@Article{CAPLAN1993-61-66a,
- Title = {Cataloging internet resources},
- Author = {P CAPLAN},
- Date = {1993},
- Journaltitle = {The public Access Computer Systems Review},
- Number = {2},
- Pages = {61-66},
- Volume = {4}
-}
-
-@Book{广西壮族自治区林业厅1993--,
- Title = {广西自然保护区},
- Author = {广西壮族自治区林业厅},
- Date = {1993},
- Publisher = {中国林业出版社},
- Location = {北京}
-}
-
-@Patent{刘加林1993--,
- Title = {多功能一次性压舌板},
- Author = {刘加林},
- Date = {1993-04-14},
- Number = {92214985.2},
- Location = {中国}
-}
-
-@Book{OBRIEN1994--,
- Title = {Introduction to information systems},
- Author = {J A O'BRIEN},
- Date = {1994},
- Edition = {7},
- Publisher = {Irwin},
- Location = {Burr Ridge, III}
-}
-
-@Book{辛希孟1994--,
- Title = {信息技术与信息服务国际研讨会论文集},
- Author = {辛希孟},
- Publisher = {中国社会科学出版社},
- Year = {1994},
- Location = {北京},
- Titleaddon = {A集}
-}
-
-@Article{Andersen1995-42-49,
- Title = {Propagation measurements and models for wireless communications channels},
- Author = {Andersen, J. B. and Rappaport, T. S. and Yoshida, S.},
- Journal = {IEEE Commun. Mag.},
- Number = {1},
- Pages = {42-49},
- Volume = {33},
- Year = {1995}
-}
-
-@Book{CRAWFPRD1995--,
- Title = {Future libraries: dreams, maddness, \& reality},
- Author = {W CRAWFPRD and M GORMAN},
- Date = {1995},
- Publisher = {American Library Association},
- Location = {Chicago}
-}
-
-@Book{赵凯华1995--,
- Title = {{新概念物理教程}},
- Address = {北京},
- Author = {赵凯华 and 罗蔚茵},
- Publisher = {高等教育出版社},
- Year = {1995}
-}
-
-@Inbook{MARTIN1996-85-96,
- Title = {Control of electronic resources in Australia},
- Author = {G MARTIN},
- Bookauthor = {L W PATTLE and B J COX},
- Booktitle = {Electronic resources},
- Date = {1996},
- Pages = {85-96},
- Publisher = {The Haworth Press},
- Booktitleaddon = {selection and bibliographic control},
- Location = {New York}
-}
-
-@Book{国家环境保护局科技标准司1996-2-3,
- Title = {土壤环境质量标准: GB 15616-1995},
- Address = {北京},
- Author = {国家环境保护局科技标准司},
- Note = {standard},
- Pages = {2-3},
- Publisher = {中国标准出版社},
- Url = {http://wenku.baidu.com},
- Urldate = {2013-10-14},
- Year = {1996}
-}
-
-
-
-@Inbook{钟文发1996-468-471,
- Title = {非线性规划在可燃毒物配置中的应用},
- Author = {钟文发},
- Bookauthor = {赵玮},
- Booktitle = {运筹学的理论和应用},
- Pages = {468-471},
- Publisher = {西安电子科技大学出版社},
- Booktitleon = {中国运筹学会第五届大会讨论文集},
- Location = {西安},
- Year = {1996}
-}
-
-@Inproceedings{Nemec1997-209-214,
- Title = {Force control of redundant robots},
- Author = {B Nemec},
- Booktitle = {Processings of Symposium on Robot Control},
- Pages = {209-214},
- Country = {Nantes France},
- Year = {1997}
-}
-
-
-
-@Article{Andrisano1998-1383-1401,
- Title = {Millimeter waves for short-range multimedia communication systems},
- Author = {Andrisano, O. and Tralli, V. and Verdone, R.},
- Journal = {Proc. IEEE},
- Number = {7},
- Pages = {1383-1401},
- Volume = {86},
- Year = {1998}
-}
-
-@Article{Chiani1998-2998-3008,
- Title = {Error probability for block codes over channels with block interference},
- Author = {Chiani, M.},
- Journal = {IEEE Trans. Inf. Theory},
- Number = {7},
- Pages = {2998-3008},
- Volume = {44},
- Year = {1998}
-}
-
-@Article{CHRISTINE1998-331-332,
- Title = {Plant physiology:plant biology in the Genome Era},
- Author = {M CHRISTINE},
- Date = {1998},
- Journaltitle = {Science},
- Pages = {331-332},
- Volume = {281},
- Url = {http://www.sciencemag.org/cgi/collection/anatmorp},
- Urldate = {1998-09-23}
-}
-
-@Article{KANAMORI1998-2063-2064,
- Title = {Shaking without quaking},
- Author = {H KANAMORI},
- Date = {1998},
- Journaltitle = {Science},
- Number = {5359},
- Pages = {2063-2064},
- Volume = {279}
-}
-
-@Inbook{白书农1998-146-163,
- Title = {植物开花研究},
- Author = {白书农},
- Bookauthor = {李承森},
- Booktitle = {植物科学进展},
- Pages = {146-163},
- Publisher = {高等教育出版社},
- Location = {北京},
- Year = {1998}
-}
-
-@Book{蒋有绪1998--,
- Title = {中国森林群落分类及其群落学特征 and \XeLaTeX{}},
- Address = {北京},
- Author = {蒋有绪 and 郭泉水 and 马娟 and others},
- Publisher = {科学出版社},
- Year = {1998}
-}
-
-
-
-@Article{鲁明羽1998-290-295,
- Title = {关于数据库系统数据词典的重要作用},
- Author = {鲁明羽 and 李纲民},
- Journal = {烟台大学学报自然科学与工程版},
- Number = {4},
- Pages = {290-295},
- Volume = {11},
- Year = {1998}
-}
-
-@Mastersthesis{张志祥1998--,
- Title = {间断动力系统的随机扰动及其在守恒律方程中的应用},
- Author = {张志祥},
- Date = {1998},
- Institution = {北京大学数学学院},
- Location = {北京}
-}
-
-@Book{赵耀东1998--,
- Title = {新时代的工业工程师},
- Author = {赵耀东},
- Publisher = {天下文化出版社},
- Url = {http://www.ie.nthu.edu.tw/info/ie.newie.htm(Big5)},
- Urldate = {1998-09-26},
- Year = {1998},
- Location = {台北}
-}
-
-@Article{高光明1998-60-65,
- Title = {信号情报接收机的发展现状及趋势},
- Author = {高光明},
- Journal = {电讯技术},
- Number = {2},
- Pages = {60-65},
- Volume = {38},
- Month = {4},
- Year = {1998}
-}
-
-@Article{Dardari1999-1709-1721,
- Title = {High-speed indoor wireless communications at 60 GHz with coded OFDM},
- Author = {Dardari, D. and Tralli,V.},
- Journal = {IEEE Trans. Commun.},
- Number = {11},
- Pages = {1709-1721},
- Volume = {47},
- Year = {1999}
-}
-
-@InBook{程根伟1999-32-36a,
- author = {程根伟},
- title = {1998年长江洪水的成因与减灾对策},
- booktitle = {长江流域洪涝灾害与科技对策},
- year = {1999},
- bookauthor = {许厚泽 and 赵其国},
- publisher = {科学出版社},
- location = {北京},
- pages = {32-36},
-}
-
-@Article{江向东1999-4-4,
- Title = {互联网环境下的信息处理与图书管理系统解决方案},
- Author = {江向东},
- Date = {1999},
- Journaltitle = {情报学报},
- Number = {2},
- Pages = {4},
- Volume = {18},
- Url = {http://www.chinainfo.gov.cn/periodical/qbxb/qbxb99/qbxb990203},
- Urldate = {2000-01-18}
-}
-
-@Article{李晓东1999-101-106,
- Title = {气候学研究的若干理论问题},
- Author = {李晓东 and 张庆红 and 叶瑾琳},
- Date = {1999},
- Journaltitle = {北京大学学报},
- Number = {1},
- Pages = {101-106},
- Volume = {35},
- Journaltitleaddon = {自然科学版}
-}
-
-@Article{梁振兴1999-24-32,
- Title = {美军一体化{C\textsuperscript{4}ISR}系统的发展研究},
- Author = {梁振兴},
- Journal = {电子展望与决策},
- Pages = {24-32},
- Year = {1999}
-}
-
-@Article{刘武1999-2481-2488,
- Title = {元谋人牙齿测量数据的统计分析及其在分类研究上的意义},
- Author = {刘武 and 郑良 and 姜础},
- Date = {1999},
- Journaltitle = {科学通报},
- Number = {23},
- Pages = {2481-2488},
- Volume = {44}
-}
-
-@Article{莫少强1999-1-6,
- Title = {数字式中文全球文献格式的设计与研究},
- Author = {莫少强},
- Date = {1999},
- Journaltitle = {情报学报},
- Number = {4},
- Pages = {1-6},
- Volume = {18},
- Url = {http://periodical.wanfangdata.com.cn/periodical/qbxb/qbxb99/qbxb9904/990407.htm},
- Urldate = {2001-07-08}
-}
-
-@Book{唐绪军1999-117-121,
- Title = {报业经济与报业经营},
- Author = {唐绪军},
- Date = {1999},
- Pages = {117-121},
- Publisher = {新华出版社},
- Location = {北京}
-}
-
-@Proceedings{中国力学学会1999--,
- Title = {第3届全国实验流体力学学术会议论文集},
- Address = {天津},
- Year = {1999},
- Editor = {中国力学学会}
-}
-
-@Article{杨友烈1999-60-65,
- Title = {DII COE的基本概念和技术特征},
- Author = {杨友烈},
- Journal = {军事通信技术},
- Pages = {60-65},
- Volume = {72},
- Month = {12},
- Year = {1999}
-}
-
-@Proceedings{GANZHA2000--,
- Title = {Computer algebra in scientific computing:CASC 2000:proceedings of the Third
-Workshop on Computer Algebra in Scientific Computing, Samarkand, October 5-9, 2000},
- Date = {2000},
- Publisher = {Springer},
- Editor = {V G GANZHA and E W MAYR and E V VOROZHTSOV},
- Location = {Berlin}
-}
-
-@Book{Gradshteyn2000--,
- Title = {Tables of Integrals, Series, and Products},
- Address = {San Diego},
- Author = {Gradshteyn, I. S. and Ryzhik,I. M.},
- Edition = {Sixth Edition},
- Publisher = {CA: Academic Press, Inc.},
- Year = {2000}
-}
-
-@Book{Parsons2000--,
- Title = {The Mobile Radio Propagation Channel},
- Address = {Hoboken},
- Author = {Parsons, J. D.},
- Edition = {2},
- Publisher = {John Wiley and Sons},
- Year = {2000}
-}
-
-@Book{Parsons2000a--,
- Title = {The Mobile Radio Propagation Channel},
- Address = {Hoboken},
- Author = {PARSONS},
- Edition = {2},
- Publisher = {John Wiley and Sons},
- Year = {2000}
-}
-
-@Book{Parsons2000b--,
- Title = {The Mobile Radio Propagation Channel},
- Address = {Hoboken},
- Author = {Parsons},
- Edition = {2},
- Publisher = {John Wiley and Sons},
- Year = {2000}
-}
-
-@Book{Parsons2000noauthor--,
- Title = {The Mobile Radio Propagation Channel},
- Address = {Hoboken},
- Edition = {2},
- Publisher = {John Wiley and Sons},
- Year = {2000}
-}
-
-@Book{Parsons2000noloc--,
- Title = {The Mobile Radio Propagation Channel},
- Author = {Parsons, J. D.},
- Edition = {2},
- Publisher = {John Wiley and Sons},
- Year = {2000}
-}
-
-@Book{Parsons2000nopub--,
- Title = {The Mobile Radio Propagation Channel},
- Address = {Hoboken},
- Author = {Parsons, J. D.},
- Edition = {2},
- Year = {2000}
-}
-
-@Book{Parsons2000nopubpages--,
- Title = {The Mobile Radio Propagation Channel},
- Address = {Hoboken},
- Author = {Parsons, J. D.},
- Edition = {2},
- Pages = {15-20},
- Year = {2000}
-}
-
-@Book{YUFIN2000--a,
- Title = {Geoecology and computers},
- Author = {S. A. YUFIN},
- Publisher = {A. A. Balkema},
- Year = {2000},
- Location = {Rotterdam},
- Titleaddon = {proceedings of the Third International Conference on Advances of
- Computer Methods in Geotechnical and Geoenvironmental
- Engineering, Moscow, Russia, February 1-4, 2000}
-}
-
-@Article{李炳穆2000-5-8,
- Title = {理想的图书管理员和信息专家的素养与形象},
- Author = {李炳穆},
- Date = {2000},
- Journaltitle = {图书情报工作},
- Number = {2},
- Pages = {5-8}
-}
-
-@Book{孙玉文2000--,
- Title = {汉语变调构词研究},
- Author = {孙玉文},
- Publisher = {北京大学出版社},
- Year = {2000},
- Location = {北京}
-}
-
-@Article{傅刚2000--,
- Title = {大风沙过后的思考},
- Author = {傅刚 and 赵承 and 李佳路},
- Date = {2000-04-12},
- Journaltitle = {北京青年报},
- Note = {news},
- Url = {http://www.bjyouth.com.cn/Bqb/20000412/GB/4216%5ED0412B1401.htm},
- Urldate = {2005-09-28}
-}% Number = {14},
-
-@Newspaper{张田勤2000--,
- Title = {犯罪DNA库与生命伦理学计划},
- Author = {张田勤},
- Date = {2000-11-12},
- Journaltitle = {大众科技报},
- Note = {news},
- Number = {7}
-}
-
-@Article{丁文祥2000--,
- Title = {数字革命与竞争国际化},
- Author = {丁文祥},
- Date = {2000-11-20},
- Journaltitle = {中国青年报},
- Number = {15},
- Note = {news}
-}
-
-@Book{booknoauthor,
- Title = {出版集团研究},
- Date = {2001},
- Pages = {179-193},
- Publisher = {中国书籍出版社},
- Location = {北京}
-}
-
-@Book{booknolocation,
- Title = {出版集团研究},
- Author = {余敏},
- Date = {2001},
- Pages = {179-193},
- Publisher = {中国书籍出版社}
-}
-
-@Book{booknopages,
- Title = {出版集团研究},
- Author = {余敏},
- Date = {2001},
- Publisher = {中国书籍出版社},
- Url = {www.bla~bla.org},
- Location = {北京}
-}
-
-@Book{booknopublisher,
- Title = {出版集团研究},
- Author = {余敏},
- Date = {2001},
- Location = {北京}
-}
-
-@Book{booknopublisherpage,
- Title = {出版集团研究},
- Author = {余敏},
- Date = {2001},
- Pages = {20-30},
- Location = {北京}
-}
-
-@Article{Moeneclaey2001-497-505,
- Title = {Sensitivity of multiple-access techniques to narrowband interference},
- Author = {Moeneclaey, M. and Bladel,M. V. and Sari,H.},
- Journal = {IEEE Trans. Commun.},
- Number = {3},
- Pages = {497-505},
- Volume = {49},
- Year = {2001}
-}
-
-@Book{PEEBLES2001--,
- Title = {Probability, random variable and random signal principles},
- Author = {PEEBLES, Jr., P Z},
- Edition = {4},
- Publisher = {McGraw Hill},
- Year = {2001},
- Location = {New York}
-}
-
-@Book{Peebles2001-100-100,
- Title = {Probability, random variable, and random signal Principles and \LaTeX{}},
- Address = {New York},
- Author = {von Peebles, Jr., P. Z.},
- Edition = {4},
- Pages = {100},
- Publisher = {McGraw-Hill},
- Year = {2001}
-}
-
-@Inproceedings{Piazzo2001--,
- Title = {UWB EM compatibility and coexistence issues},
- Address = {Rome, Italy},
- Author = {Piazzo, L.},
- Booktitle = {Proc. 1st Int. Workshop on Networking with UWB},
- Year = {2001}
-}
-
-@Book{ROOD2001--,
- Title = {Logic and structured design for computer programmers},
- Author = {H J ROOD},
- Date = {2001},
- Edition = {3},
- Publisher = {Brooks/Cole-Thomson Learning}
-}
-
-@Book{Simon2001--,
- Title = {Spread Spectrum Communications Handbook},
- Address = {New York City},
- Author = {Simon, M. K. and Omura,J. K. and Scholtz,R. A. and Levitt,B. K.},
- Publisher = {McGraw-Hill, Inc.},
- Year = {2001}
-}
-
-@Book{Stueber2001--,
- Title = {Principles of Mobile Communication},
- Address = {Norwell},
- Author = {Stuber, G. L.},
- Edition = {Second Edition},
- Publisher = {MA: Kluwer Academic Publishers},
- Year = {2001}
-}
-
-@Book{余敏2001-179-193,
- Title = {出版集团研究},
- Author = {余敏},
- Date = {2001},
- Pages = {179-193},
- Publisher = {中国书籍出版社},
- Location = {北京}
-}
-
-@Book{余敏2001-179-193a,
- Title = {出版集团研究},
- Author = {余敏},
- Date = {2001},
- Edition = {3},
- Pages = {179-193},
- Publisher = {中国书籍出版社},
- Location = {北京}
-}
-
-@Book{余敏2001-179-193b,
- Title = {出版集团研究},
- Author = {余敏},
- Date = {2001},
- Edition = {2},
- Pages = {179-193},
- Publisher = {中国书籍出版社},
- Location = {北京}
-}
-
-@Book{余敏2001-179-193c,
- Title = {出版集团研究},
- Author = {余敏},
- Date = {2001},
- Pages = {179-193},
- Publisher = {中国书籍出版社},
- Url = {http://www.baidu.com},
- Urldate = {2001-08-04},
- Location = {北京}
-}
-
-@Book{赵学功2001--a,
- author = {赵学功},
- title = {当代美国外交},
- year = {2001},
- publisher = {社会科学文献出版社},
- url = {http://www.baidu.com},
- urldate = {2014-06-11},
-}
-
-@Manual{中国第一历史档案馆2001--a,
- author = {中国第一历史档案馆 and 辽宁省档案馆},
- title = {中国明朝档案总汇},
- year = {2001},
- organization = {广西师范大学出版社},
- address = {桂林},
-}
-
-@Article{郜宪林2001-114-116,
- Title = {DII COE研究与分析},
- Author = {郜宪林},
- Journal = {计算机工程与应用},
- Number = {19},
- Pages = {114-116},
- Year = {2001}
-}
-
-@Patent{河北绿洲生态环境科技有限公司2001--,
- Title = {一种荒漠化地区生态植被综合培育种植方法},
- Author = {河北绿洲生态环境科技有限公司},
- Date = {2001-10-24},
- Number = {01129210.5},
- Url = {http://211.152.9.47/sipoasp/zlijs/hyjs-yx-new.asp?recid=01129210.5&leixin},
- Urldate = {2002-05-28}
-}
-
-@Article{陈金成2001-1861-1864,
- Title = {一种开放式体系结构经济型数控装置的研制},
- Author = {陈金成 and 杨海威 and 钟廷修},
- Journal = {上海交通大学学报},
- Number = {12},
- Pages = {1861-1864},
- Volume = {35},
- Month = {12},
- Year = {2001}
-}
-
-@Www{萧钰2001--,
- Title = {出版业信息化迈入快车道},
- Author = {萧钰},
- Url = {http://www.creader.com/news/20011219/200112190019.html},
- Urldate = {2002-04-15},
- Date = {2001-12-19}
-}
-
-@Inproceedings{Choi2002-1075-1080,
- Title = {Performance analysis of ultra-wideband spread-spectrum communications in narrowband interference},
- Address = {Anaheim, CA},
- Author = {Choi, J. D. and Stark,W. E.},
- Booktitle = {Proc. IEEE Military Commun. Conf. (MILCOM)},
- Pages = {1075-1080},
- Volume = {2},
- Year = {2002}
-}
-
-@Inproceedings{Dardari2002-201-206,
- Title = {Simple and accurate models for error probability evaluation of IEEE802.11 DS-SS physical interface in the presence of Bluetooth interference},
- Address = {Taipei},
- Author = {Dardari, D. and Pasolini,G.},
- Booktitle = {Proc. IEEE Global Telecommun. Conf. (GLOBECOM)},
- Pages = {201-206},
- Volume = {1},
- Year = {2002}
-}
-
-@Inproceedings{Foerster2002-1931-1935,
- Title = {Interference modeling of pulse-based UWB waveforms on narrowband systems},
- Address = {Birmingham, AL},
- Author = {Foerster, J. R.},
- Booktitle = {Proc. IEEE Veh. Technol. Conf.},
- Pages = {1931-1935},
- Volume = {4},
- Year = {2002}
-}
-
-@Inproceedings{Fontana2002-309-313,
- Title = {An insight into UWB interference from a shot noise perspective},
- Address = {Baltimore, MD},
- Author = {Fontana, R. J.},
- Booktitle = {Proc. of IEEE Conference on Ultrawideband Systems and Technologies (UWBST)},
- Pages = {309-313},
- Year = {2002}
-}
-
-@Article{Haemaelaeinen2002-1712-1721,
- Title = {On the UWB system coexistence with GSM900, UMTS/WCDMA, and GPS},
- Author = {Hamalainen, M. M. and Hovinen,V. and Tesi,R. and Iinatti,J. H. J. and Latvaaho, M.},
- Journal = {IEEE J. Sel. Areas Commun.},
- Number = {9},
- Pages = {1712-1721},
- Volume = {20},
- Year = {2002}
-}
-
-@Article{Zhao2002-1684-1691,
- Title = {Performance of ultra-wideband communications in the presence of interference},
- Author = {Zhao, L. and Haimovich,A. M.},
- Journal = {IEEEJ. Sel. Areas Commun.},
- Number = {9},
- Pages = {1684-1691},
- Volume = {20},
- Year = {2002}
-}
-
-@Inproceedings{汪学军2002-22-25,
- Title = {中国农业转基因生物研发进展与安全管理},
- Address = {北京},
- Author = {汪学军},
- Bookauthor = {国家环境保护总局生物安全管理办公室},
- Booktitle = {中国国家生物安全框架实施国际合作项目研讨会论文集},
- Pages = {22-25},
- Publisher = {中国环境科学出版社},
- Year = {2002}
-}
-
-@Book{张伯伟2002--,
- Title = {全唐五代诗格会考},
- Address = {南京},
- Author = {张伯伟},
- Pages = {288},
- Publisher = {江苏古籍出版社},
- Year = {2002}
-}
-
-@Patent{西安电子科技大学2002--a,
- author = {西安电子科技大学},
- title = {光折变自适应光外差探测方法},
- number = {01128777.2},
- date = {2002-03-06},
- url = {http://211.152.9.47/sipoasp/zljs/hyjs-yx-new.asp?recid=01128777.2&leixin=0},
- urldate = {2002-05-28},
-}
-
-@Patent{TACHIBANA2002--,
- Title = {Electronic watermarking method and system},
- Author = {R TACHIBANA and S SHIMIZU and S KOBAYSHI and others},
- Date = {2002-04-25},
- Number = {US6915001},
- Url = {http://patftuspto.gov/netacgi/nph-Parser?Seetl=PTO2&Sect2=HITOFF&=1&u=/netahhml/search-bool.html&r=1&f=G&1=50&col=AND&d=ptxt&sl=`Electronic+watermarking+method+system'.TTL.&OS=TTL/},
- Urldate = {2002-05-28}
-}
-
-@Patent{KOSEKI2002--,
- Title = {Compiler},
- Author = {A KOSEKI and H MOMOSE and M KAWAHITO and others},
- Date = {2002-05-25},
- Number = {US828402},
- Url = {http://FF&p=1&u=netahtml/PTO/search-bool.html&r=5&f=G&l=50&col=AND&d=PG01&sl=IBM.AS.&0S=AN/IBM&RS=AN/IBM},
- Urldate = {2002-05-28}
-}
-
-@Article{Chiani2003-840-845,
- Title = {New exponential bounds and approximations for the computation of error probability in fading channels},
- Author = {Chiani, M. and Dardari, D. and Simon, M. K.},
- Journal = {IEEE Trans. Wireless Commun.},
- Number = {4},
- Pages = {840-845},
- Volume = {2},
- Year = {2003}
-}
-
-@Inproceedings{Firoozbakhsh2003-473-477,
- Title = {Analysis of IEEE 802.11a interference on UWB systems},
- Address = {Oulu, Finland},
- Author = {Firoozbakhsh, B. and Pratt,T. G. and Jayant,N.},
- Booktitle = {Proc. of IEEE Conference on Ultrawideband Systems and Technologies (UWBST)},
- Pages = {473-477},
- Year = {2003}
-}
-
-@Electronic{OMG2003--,
- Title = {Unified Modeling Language: Superstructure},
- Author = {{omg Inc.}},
- Url = {http://www.omg.org},
- Year = {2003}
-}
-
-@Thesis{吴云芳2003--,
- Title = {面向中文信息处理的现代汉语并列结构研究},
- Address = {北京},
- Author = {吴云芳},
- Institution = {北京大学},
- Url = {http://thesis.lib.pku.edu.cn/dlib/List.asp?lang=gb&type=Reader&DocGroupID=4&DoclD=6328},
- Urldate = {2013-10-14},
- Year = {2003}
-}
-
-@Thesis{吴云芳2003a--,
- Title = {面向中文信息处理的现代汉语并列结构研究},
- Address = {北京},
- Author = {吴云芳},
- Url = {http://thesis.lib.pku.edu.cn},
- Urldate = {2013-10-14},
- Year = {2003}
-}
-
-@Thesis{吴云芳2003b--,
- Title = {面向中文信息处理的现代汉语并列结构研究},
- Author = {吴云芳},
- Institution = {北京大学},
- Url = {http://thesis.lib.pku.edu.cn},
- Urldate = {2013-10-14},
- Year = {2003}
-}
-
-@Thesis{吴云芳2003c--,
- Title = {面向中文信息处理的现代汉语并列结构研究},
- Author = {吴云芳},
- Url = {http://thesis.lib.pku.edu.cn},
- Urldate = {2013-10-14},
- Year = {2003}
-}
-
-@Article{Chiani2004-1312-1318,
- Title = {Further results on convolutional code search for blockfading channels},
- Author = {M. Chiani and A. Conti and V. Tralli},
- Journal = {IEEE Trans. Inf. Theory},
- Number = {6},
- Pages = {1312-1318},
- Volume = {50},
- Year = {2004}
-}
-
-@Article{Chiani2004-1312-1318a,
- Title = {Further results on convolutional code search for blockfading channels-a},
- Author = {M. Chiani and A. Conti and V. Tralli},
- Pages = {1312-1318},
- Year = {2004}
-}
-
-@Article{Chiani2004-1312-1318b,
- Title = {Further results on convolutional code search for blockfading channels-b},
- Author = {M. Chiani and A. Conti and V. Tralli},
- Pages = {1312-1318},
- Year = {2004}
-}
-
-@Article{Coulson2004-2277-2287,
- Title = {Narrowband interference in pilot symbol assisted OFDM systems},
- Author = {Coulson, A. J.},
- Journal = {IEEE Trans. Wireless Commun.},
- Number = {6},
- Pages = {2277-2287},
- Volume = {3},
- Year = {2004}
-}
-
-@Article{Dardari2004-1557-1567,
- Title = {Layered video transmission on adaptive OFDM wireless systems},
- Author = {Dardari, D. and Martini,M. G. and Mazzotti, M. and Chiani,M.},
- Journal = {EURASIP Journal on Wireless Communications and Networking},
- Number = {10},
- Pages = {1557-1567},
- Year = {2004}
-}
-
-@Book{Kopka2004--,
- Title = {A Guide to LATEX and Electronic Publishing},
- Address = {Harlow, England},
- Author = {Helmut Kopka and Patrick W. Daly},
- Date = {2004},
- Edition = {4},
- Publisher = {Addison-Wesley}
-}
-
-@Conference{Li2004-21-24,
- Title = {Practical approaches to channel estimation and interference suppression for OFDM based UWB communications},
- Author = {Li, Y. and Molisch,A. F. and Zhang,J.},
- Booktitle = {Proc. of the IEEE 6th Circ. and Syst., Symp. on Emerging Technologies: Frontiers of Mobile and Wireless Communication},
- Pages = {21-24},
- Volume = {1},
- Year = {2004}
-}
-
-@Book{Lin2004--,
- Title = {Error Control Coding},
- Address = {Englewood Cliffs},
- Author = {Lin, S. and Daniel Costello,J.},
- Edition = {Second Edition},
- Publisher = {NJ:Prentice Hall},
- Year = {2004}
-}
-
-@Book{Mittelbach2004--,
- Title = {The LaTeX Companion},
- Address = {Boston},
- Author = {Frank Mittelbach and Michel Goossens and Johannes Braams and David Carlisle and Chris Rowley},
- Edition = {Second Edition},
- Publisher = {Addison-Wesley},
- Year = {2004}
-}
-
-@Book{Simon2004--,
- Title = {Digital Communication over Fading Channels},
- Address = {Hoboken},
- Author = {Simon, M. K. and Alouini,M. S.},
- Publisher = {NJ: Wiley-IEEE Press},
- Year = {2004}
-}
-
-@PhdThesis{张若凌2004--,
- Title = {高超声速非平衡流动的计算和实验研究},
- Author = {张若凌},
- School = {中国空气动力研究与发展中心},
- Year = {2004},
- Location = {绵阳}
-}
-
-@Book{Miroslav2004--,
- Title = {信号处理滤波器设计-基于matlab和mathematica的设计方法},
- Address = {北京},
- Author = {Miroslav, D. L. and Dejan, V. T. and Brian, L. E.},
- Publisher = {电子工业出版社},
- Translator = {朱义胜 and 董辉},
- Year = {2004},
- Month = {1}
-}
-
-@Book{Miroslav2003--,
- Title = {信号处理滤波器设计方法},
- Address = {北京},
- Author = {Miroslav, D. L. and Dejan, V. T.},
- Publisher = {电子工业出版社},
- Translator = {朱义胜 and 董辉},
- Year = {2003},
- Month = {1}
-}
-
-@Article{Giorgetti2005-1037-1042,
- Title = {The impact of OFDM interference on TH-PPM/BPAM transmission systems},
- Author = {Giorgetti, A. and Dardari,D.},
- Journal = {Proc. IEEE Veh. Technol. Conf.},
- Pages = {1037-1042},
- Volume = {2},
- Year = {2005}
-}
-
-@Article{Giorgetti2005-2139-2149,
- Title = {The effect of narrowband interference on wideband wireless communication systems},
- Author = {Giorgetti, A. and Chiani, M. and Win, M. Z.},
- Journal = {IEEE Trans. Commun.},
- Number = {12},
- Pages = {2139-2149},
- Volume = {53},
- Year = {2005}
-}
-
-@Article{Giorgetti2005-384-389,
- Title = {Influence of fading on the Gaussian approximation for BPSK and QPSK with asynchronous cochannel interference},
- Author = {Giorgetti, A. and Chiani,M.},
- Journal = {IEEE Trans. Wireless Commun.},
- Number = {2},
- Pages = {384-389},
- Volume = {4},
- Year = {2005}
-}
-
-@Inproceedings{Giorgetti2005-794-798,
- Title = {Coexistence of UWB and narrowband systems in Nakagami/Rice channels},
- Address = {Aalborg, Denmark},
- Author = {Giorgetti, A.},
- Booktitle = {Proc. Int. Symp. on Wireless Personal Multimedia Commun. (WPMC)},
- Pages = {794-798},
- Year = {2005}
-}
-
-@Book{Reed2005--,
- Title = {An Introduction to Ultrawideband Communication Systems},
- Address = {Upper Saddle River},
- Author = {Reed, J. H.},
- Publisher = {NJ: Prentice Hall},
- Year = {2005}
-}
-
-@Book{樊昌信2005--,
- Title = {通信原理教程},
- Address = {北京},
- Author = {樊昌信},
- Publisher = {电子工业出版社},
- Year = {2005}
-}
-
-@Article{Coulson2006-2484-2492,
- Title = {Bit error rate performance of OFDM in narrowband interference with excision filtering},
- Author = {Coulson, A. J.},
- Journal = {IEEE Trans. Wireless Commun.},
- Number = {9},
- Pages = {2484-2492},
- Volume = {5},
- Year = {2006}
-}
-
-@Inproceedings{Giorgetti2006--,
- Title = {Coexistence issues in cognitive radios based on ultra-wide bandwidth systems},
- Address = {Mykonos, Greece},
- Author = {Giorgetti, A. and Chiani, M. and Dardari,D.},
- Booktitle = {Proc. IEEE Int. Conf. on Cognitive Radio Oriented Wireless Net. and Comm. (CROWNCOM)},
- Year = {2006}
-}
-
-@Article{Hu2006-1720-1724,
- Title = {Performance of an ultra-wideband communication system in the presence of narrowband BPSK-and QPSK-modulated OFDM interference},
- Author = {Hu, B. and Beaulieu,N. C.},
- Journal = {IEEE Trans. Commun.},
- Number = {10},
- Pages = {1720-1724},
- Volume = {54},
- Year = {2006}
-}
-
-@Article{Molisch2006-3151-3166,
- Title = {A comprehensive standardized model for ultrawideband propagation channels},
- Author = {Molisch, A. F. and Cassioli, D. and Chong, C. C. and Emami, S. and Fort, A.},
- Journal = {IEEE Trans. Antennas Propag.},
- Number = {11},
- Pages = {3151-3166},
- Volume = {54},
- Year = {2006}
-}
-
-@Article{Saito2006-169-176,
- Title = {jadeite-bearing metagabbro in serpentinite m\'elange of the ``kurosegawa belt" in Izumi Town,Yatsushiro city, kumamoto prefecture, central kyushu},
- Author = {Saito, M. and Miyazaki, k.},
- Journal = {bulletin of geological survey of japan},
- Number = {5/6},
- Pages = {169-176},
- Volume = {57},
- Year = {2006}
-}
-
-@Book{郭文彬2006--,
- Title = {通信原理--基于Matlab的计算机仿真},
- Address = {北京},
- Author = {郭文彬 and 桑林},
- Publisher = {北京邮电大学出版社},
- Year = {2006}
-}
-
-@Book{蔡敏2006--,
- Title = {UML基础和Rose建模教程},
- Address = {北京},
- Author = {蔡敏 and 徐慧慧 and 黄柄强},
- Publisher = {人民邮电出版社},
- Year = {2006},
- Month = {1}
-}
-
-@Article{Nasri2007-4090-4100,
- Title = {Analysis of narrowband communication systems impaired by MB-OFDM UWB interference},
- Author = {Nasri, A. and Schober, R. and Lampe, L.},
- Journal = {IEEE Trans. Wireless Commun.},
- Number = {11},
- Pages = {4090-4100},
- Volume = {6},
- Year = {2007}
-}
-
-@Book{Proakis2007--,
- Title = {Digital signal processing: Principles,algorithms, and applications},
- Address = {北京},
- Author = {Proakis, J. G. AND Manolakis, D. G.},
- Edition = {第4版},
- Publisher = {电子工业出版社},
- Year = {2007}
-}
-
-@Article{Quek2007-2126-2139,
- Title = {Unified analysis of UWB transmitted-reference schemes in the presence of narrowband interference},
- Author = {Quek, T. Q. S. and Win,M. Z. and Dardari,D.},
- Journal = {IEEE Trans. Wireless Commun.},
- Number = {6},
- Pages = {2126-2139},
- Volume = {6},
- Year = {2007}
-}
-
-@Article{Shi2007-1118-1128,
- Title = {Impact of narrowband interference on OFDM-UWB receivers: Analysis and mitigation},
- Author = {Shi, K. and Zhou,Y. and Kelleci,B. and Fischer, T. W. and Serpedin, E.E. and Ilker Karsilayan, A.},
- Journal = {IEEE Trans.Signal Process.},
- Number = {3},
- Pages = {1118-1128},
- Volume = {55},
- Year = {2007}
-}
-
-@Article{Snow2007-1736-1746,
- Title = {Error rate analysis for coded multicarrier systems over quasistatic fading channels},
- Author = {Snow, C. and Lampe, L. and Schober,R.},
- Journal = {IEEE Trans. Commun.},
- Number = {9},
- Pages = {1736-1746},
- Volume = {55},
- Year = {2007}
-}
-
-@Book{全国广播电视标准化技术委员会2007-1-1,
- Title = {广播电视音像资料编目规范:第2部分~ 广播资料:GY/T202.2-2007},
- Address = {北京},
- Author = {全国广播电视标准化技术委员会},
- Note = {standard},
- Pages = {1},
- Publisher = {国家广播电影电视局广播电视规划院},
- Year = {2007}
-}
-
-@Article{张敏莉2007-500-503,
- Title = {超声速短化喷管的设计和试验研究},
- Author = {张敏莉 and 易仕和 and 赵玉新},
- Journal = {空气动力学报},
- Number = {4},
- Pages = {500-503},
- Volume = {25},
- Year = {2007}
-}
-
-@Book{庄钊文2007--,
- Title = {军用目标雷达散射截面预估与测量},
- Address = {北京},
- Author = {庄钊文 and 袁乃昌 and 莫锦军 and 刘少斌},
- Publisher = {科学出版社},
- Year = {2007}
-}
-
-@Article{刘晨2007-400-404,
- Title = {体系对抗仿真模型形式规范研究},
- Author = {刘晨 and 王维平 and 朱一凡},
- Journal = {系统仿真学报},
- Number = {2},
- Pages = {400-404},
- Volume = {19},
- Month = {1},
- Year = {2007}
-}
-
-@Manual{吴凌云2007--,
- Title = {CTEX FAQ},
- Author = {吴凌云},
- Version = {version 0.4},
- Month = {1},
- Subtitle = {常见问题集},
- Year = {2007}
-}
-
-@Article{articlemorenames,
- Title = {Cooperation enforcement and learning for optimizing packet forwarding in autonomous wireless networks},
- Author = {Pandana, C. and Han, Z. and Liu, K.J.R. and others},
- Journal = {Wireless Communications, IEEE Transactions on},
- Number = {8},
- Pages = {3150--3163},
- Volume = {7},
- Publisher = {IEEE},
- Year = {2008}
-}
-
-@Inproceedings{Nasri2008-3616-3621,
- Title = {Performance Evaluation of BICM-OFDM Systems Impaired by UWB Interference},
- Address = {Beijing, China},
- Author = {Nasri, A. and Schober,R. and Lampe,L.},
- Booktitle = {Proc. IEEE Int. Conf. on Commun.},
- Pages = {3616-3621},
- Year = {2008}
-}
-
-@Book{2009-155-155,
- Title = {师伏堂日记:第4册},
- Address = {北京},
- Pages = {155},
- Publisher = {北京图书馆出版社},
- Year = {2009}
-}
-
-@Article{Chiani2009-231-254,
- Title = {Coexistence between UWB and narrow-band wireless communication systems},
- Author = {Chiani, M. and Giorgetti, A.},
- Journal = {Proc. IEEE, Special Issue on UWB Technology and Emerging Applications},
- Number = {2},
- Pages = {231-254},
- Volume = {97},
- Year = {2009}
-}
-
-@Article{Pinto2009-1268-1282,
- Title = {A stochastic geometry approach to coexistence in heterogeneous wireless networks},
- Author = {Pinto, P. and Giorgetti,A. and Win,M. Z. and Chiani,M.},
- Journal = {IEEE J. Sel. Areas Commun., Special Issue on Stochastic Geometry and Random Graphs for Wireless Networks},
- Number = {7},
- Pages = {1268-1282},
- Volume = {27},
- Year = {2009}
-}
-
-@Book{罗斯基2009--,
- Title = {战前中国经济的增长},
- Address = {杭州},
- Author = {罗斯基},
- Publisher = {浙江大学出版社},
- Translator = {唐巧天 and 毛立坤 and 姜修宪},
- Year = {2009}
-}
-
-@Book{陈希孺2009--,
- Title = {概率论与数理统计},
- Address = {合肥},
- Author = {陈希孺},
- Publisher = {中国科学技术大学出版社},
- Year = {2009},
- Month = {2}
-}
-
-@Book{李云霞2009--,
- Title = {光电对抗原理与应用},
- Address = {西安},
- Author = {李云霞 and 蒙文 and 马丽华 and 赵尚弘},
- Date = {2009-02},
- Publisher = {西安电子科技大学出版社}
-}
-
-@Article{卢秋红2009-247-251,
- Title = {基于开放式架构的反恐排爆机器人关键技术分析},
- Author = {卢秋红 and 蒋金鹏 and 付西光},
- Journal = {上海电机学院学报},
- Number = {3},
- Pages = {247-251},
- Volume = {12},
- Month = {9},
- Year = {2009}
-}
-
-@Article{张庆杰2009-30-33,
- Title = {支持无人机互操作的多数据链互连网关设计},
- Author = {张庆杰 and 王林 and 朱华勇 and 沈林成},
- Journal = {计算机工程},
- Number = {20},
- Pages = {30-33},
- Volume = {35},
- Month = {10},
- Year = {2009}
-}
-
-@Article{Park2010-696-715,
- Title = {metadata quality Control in Digital repositories and collections: criteria, semantics, and mechanisms},
- Author = {Park, J R and tosaka, Y.},
- Journal = {Cataloging \& classification quarterly},
- Number = {8},
- Pages = {696-715},
- Volume = {48},
- Url = {http://www.tandfonline.com},
- Urldate = {2013-09-05},
- Year = {2010}
-}
-
-@Article{陈建军2010-93-93,
- Title = {从数字地球到智慧地球},
- Author = {陈建军},
- Journal = {国图资源导刊},
- Number = {10},
- Pages = {93},
- Volume = {7},
- Doi = {10.3969/j.issn.1672-5603.2010.10.038},
- Url = {http://d.g.wanfangdata.com.cn},
- Urldate = {2013-03-20},
- Year = {2010}
-}
-
-@Article{储大同2010-721-724,
- Title = {恶性肿瘤个体化治疗靶向药物的临床表现},
- Author = {储大同},
- Journal = {中华肿瘤杂志},
- Number = {10},
- Pages = {721-724},
- Volume = {32},
- Url = {http://www.sohu.com},
- Urldate = {2014-06-25},
- Year = {2010}
-}
-
-@book{weiner2010-38,
- Title = {Microarchaeology: beyond the visible archaeological record},
- Author = {Weiner, S},
- Address = {Cambridge, Eng.},
- Date = {2010},
- Publisher = {Cambridge University Press Textbooks},
- Url = {http://lib.MYLIB.COM/OPEN.aspx?id=253897},
- Urldate = {2013-10-14},
- pages = {38}
-}
-
-@Article{储大同2010-721-724m,
- Title = {恶性肿瘤个体化治疗靶向药物的临床表现},
- Author = {储大同},
- Journal = {中华肿瘤杂志},
- Number = {9/10},
- Pages = {721-724},
- Volume = {32},
- Doi = {10.7666/d.y351065},
- Url = {http://www.sohu.com},
- Urldate = {2014-06-25},
- Year = {2010}
-}
-
-@Book{候文顺2010-119-119,
- Title = {高分子物理:高分子材料分析、选择与改性},
- Address = {北京},
- Author = {候文顺},
- Pages = {119},
- Publisher = {化学工业出版社},
- Url = {http://apabi.lib.pku.edu.cn},
- Urldate = {2012-11-27},
- Year = {2010}
-}
-
-@Book{胡承正2010-112-112,
- Title = {理论物理概论:上},
- Address = {武汉},
- Author = {胡承正 and 周详 and 缪灵},
- Pages = {112},
- Publisher = {武汉大学出版社},
- Year = {2010}
-}
-
-@Book{美国妇产科医师学会2010-38-39,
- Title = {新生儿脑病和脑性瘫痪发病机制与病理生理},
- Address = {北京},
- Author = {美国妇产科医师学会},
- Pages = {38-39},
- Publisher = {人民卫生出版社},
- Translator = {段涛 and 杨慧霞},
- Year = {2010}
-}
-
-@Book{全国信息文献标准化技术委员会2010-3-3,
- Title = {文献著录:第4部分~ 非书资料:GB/T3792.4-2009},
- Address = {北京},
- Author = {全国信息文献标准化技术委员会},
- Note = {standard},
- Pages = {3},
- Publisher = {中国标准出版社},
- Year = {2010}
-}
-
-@Article{伍江华2010-70-74,
- Title = {C4ISR互操作框架及信息关系模型研究},
- Author = {伍江华 and 潘小群},
- Journal = {舰船电子工程},
- Number = {1},
- Pages = {70-74},
- Volume = {30},
- Year = {2010}
-}
-
-@Book{王雪松2010--,
- Title = {现代雷达电子战系统建模与仿真},
- Address = {北京},
- Author = {王雪松 and 肖顺平 and 冯德军 and 赵锋},
- Date = {2010-03},
- Publisher = {电子工业出版社}
-}
-
-@Book{Ross2010--,
- Title = {概率论基础教程},
- Address = {北京},
- Author = {Ross, S. M.},
- Edition = {第8版},
- Publisher = {人民邮电出版社},
- Translator = {郑忠国 and 詹从赞},
- Year = {2010},
- Month = {4}
-}
-
-@Book{陈志杰2006--,
- Title = {LaTeX 入门与提高},
- Address = {北京},
- Author = {陈志杰 and 赵书钦 and 李树钧 and 万福永},
- Edition = {第二版},
- Publisher = {高等教育出版社},
- Year = {2010},
- Month = {5}
-}
-
-@Manual{Umeki2010--,
- Title = {The geometry package},
- Author = {Hideo Umeki},
- Version = {v5.6},
- Month = {09},
- Year = {2010}
-}
-
-@Report{Calkin2011-8-9,
- Title = {a comparative risk assessment framework for wildland fire management: the 2010 cohesive strategy Science report: RMRS-GTR-262},
- Author = {Calkin, D and Ager, a. and Thompson, m.},
- Pages = {8-9},
- Year = {2011}
-}
-
-@Book{Praetzellis2011-13-13,
- Title = {death by theory : a tale of mystery and archaeological theory},
- Author = {Praetzellis, A.},
- Edition = {Rev. ed.},
- Pages = {13},
- Publisher = {Rowman \& Littlefield Publishing Group, Inc.},
- Url = {http://lib.myilibrary.com},
- Urldate = {2012-07-26},
- Year = {2011}
-}
-
-@Proceedings{陈志勇2011--,
- Title = {中国财税文化价值研究:“中国财税文化国际学术研讨会”论文集},
- Address = {北京},
- Author = {陈志勇},
- Publisher = {经济科学出版社},
- Url = {http://apabi.lib.pku.edu.cn},
- Urldate = {2013-10-14},
- Year = {2011}
-}
-
-@InProceedings{贾东琴2011-45-52a,
- author = {贾东琴 and 柯平},
- title = {面向数字素养的高校图书馆数字服务体系研究},
- booktitle = {中国图书馆学会年会论文集:2011年卷},
- year = {2011},
- publisher = {国家图书馆出版社},
- pages = {45-52},
- address = {北京},
- bookauthor = {中国图书馆学会},
-}
-
-@Inbook{楼梦麟2011-11-12,
- Title = {汶川地震基岩地震动特征分析},
- Address = {上海},
- Author = {楼梦麟 and 杨燕},
- Bookauthor = {同济大学土木工程防灾国家重点实验室},
- Booktitle = {汶川地震震害研究},
- Pages = {{011-012}},
- Publisher = {同济大学出版社},
- Url = {http://apabi.lib.pku.edu.cn},
- Urldate = {2013-05-09},
- Year = {2011}
-}
-
-@Thesis{马欢2011-27-27,
- Title = {人类活动影响下海河流域典型区水循环变化分析},
- Address = {北京},
- Author = {马欢},
- Institution = {清华大学},
- Pages = {27},
- Url = {http://www.cnki.net/kcms/detail/detail.aspx?dbcode=CDFD&QueryID=.O&CurRec=11&dbname=CDFDLAST2013&.filename=1012035905.nh&uid=WEEvRE­wSIJHSldTTGJhYIJRaEhGUXFQWVB6SGZXeisxdmVhV3Zy2kpoUnozeDElbOpaMONmMjZiQ3p4TUdmcw= },
- Urldate = {2013-10-14},
- Year = {2011}
-}
-
-@InBook{2011-1109-1109,
- title = {周易外传:卷5},
- booktitle = {船山全书:第6册},
- year = {2011},
- bookauthor = {王夫之},
- publisher = {岳麓书社},
- location = {长沙},
- pages = {1109},
-}
-
-@Book{胡伟2011--,
- Title = {LaTeX2$\varepsilon$完全学习手册},
- Address = {北京},
- Author = {胡伟},
- Publisher = {清华大学出版社},
- Year = {2011},
- Month = {1}
-}
-
-@Manual{Oetiker2011--,
- Title = {The Not So Short Introduction to \LaTeXe{}},
- Author = {Tobias Oetiker and Hubert Partl and Irene Hyna and Elisabeth Schleg},
- Month = {4},
- Year = {2011}
-}
-
-@Article{陈高峰2011-230-232,
- Title = {基于开放式框架的交叉开发环境设计与实现},
- Author = {陈高峰},
- Journal = {煤炭技术},
- Number = {6},
- Pages = {230-232},
- Volume = {30},
- Month = {6},
- Year = {2011}
-}
-
-@Manual{Robertson2011--,
- Title = {The ccaption package},
- Author = {Will Robertson and Peter Wilson and Herries Press},
- Version = {v3.2c},
- Month = {8},
- Year = {2011}
-}
-
-@Article{谭跃进2011-441-445,
- Title = {体系工程的研究与发展},
- Author = {谭跃进 and 赵青松},
- Journal = {中国电子科学研究院学报},
- Number = {5},
- Pages = {441-445},
- Volume = {6},
- Month = {10},
- Year = {2011}
-}
-
-@Manual{Sommerfeldt2011--,
- Title = {Customizing captions of floating environments},
- Author = {Axel Sommerfeldt},
- Url = {http://sourceforge.net/projects/latex-caption/},
- Month = {11},
- Year = {2011}
-}
-
-@Article{张晓琴2011--,
- Title = {有重复组合公式的几种证明方法},
- Author = {张晓琴 and 王顺勇},
- Journal = {大学数学},
- Number = {6},
- Volume = {27},
- Month = {12},
- Year = {2011}
-}
-
-@Book{Kinchy2012-50-50,
- Title = {Seeds, Sciences, and struggle : the global politics of transgenic crops},
- Address = {Cambridge,Mass.},
- Author = {Kinchy, A.},
- Pages = {50},
- Publisher = {MIT Press},
- Url = {http://lib.myilibary.com},
- Urldate = {2013-07-14},
- Year = {2012}
-}
-
-@Book{库恩2012--,
- Title = {科学革命的结构:第4版},
- Address = {北京},
- Author = {库恩},
- Edition = {2},
- Publisher = {北京大学出版社},
- Translator = {金吾伦 and 胡新和},
- Year = {2012}
-}
-
-@Proceedings{雷光春2012--,
- Title = {综合湿地管理:综合湿地管理国际研讨会论文集},
- Address = {北京},
- Author = {雷光春},
- Publisher = {海洋出版社},
- Year = {2012}
-}
-
-@Article{于潇2012-1518-1523,
- Title = {互联网药品可信交易环境中主体资质审核备案模式},
- Author = {于潇 and 刘义 and 柴跃廷 and others},
- Journal = {清华大学学报(自然科学版)},
- Number = {11},
- Pages = {1518-1523},
- Volume = {52},
- Year = {2012}
-}
-
-@Article{于潇2011-15-23,
- Title = {互联网药品可信交易环境中主体资质审核备案模式},
- Author = {于, 潇 and 刘, 义 and 柴, 跃廷 and others},
- Journal = {清华大学学报},
- Number = {11},
- Pages = {15-23},
- Volume = {52},
- Year = {2011}
-}
-
-@Proceedings{中国社会科学院台湾史研究中心2012--,
- Title = {台湾光复六十五周年暨抗战史实学术研讨会论文集},
- Address = {北京},
- Publisher = {九州出版社},
- Year = {2012},
- Editor = {中国社会科学院台湾史研究中心}
-}
-
-@Book{埃伯哈德$ullet$蔡德勒等2012--,
- Title = {数学指南-实用数学手册},
- Address = {北京},
- Author = {埃伯哈德$\bullet$蔡德勒等},
- Publisher = {科学出版社},
- Translator = {李文林等},
- Year = {2012},
- Month = {1}
-}
-
-@Book{廖平2012--,
- Title = {导弹突防中的电子对抗技术},
- Address = {北京},
- Author = {廖平 and 姜勤波},
- Date = {2012-01},
- Publisher = {国防工业出版社}
-}
-
-@Patent{张凯军2012-04-05--,
- Title = {轨道火车及高速轨道火车紧急安全制动辅助装置},
- Author = {张凯军},
- Number = {201220158825.2},
- Year = {2012-04-05}
-}
-
-@Online{李强2012-05-03--,
- Title = {化解医患矛盾需釜底抽薪},
- Author = {李强},
- Url = {http://wenku.baidu.com},
- Urldate = {2013-03-25},
- Year = {2012-05-03}
-}
-
-@Online{Dublin2012-06-14--,
- Title = {Dublin core metadata element set: version 1.1},
- Url = {http://dublincore.org},
- Urldate = {2014-06-11},
- Year = {2012-06-14}
-}
-
-@Book{胡广书2012--,
- Title = {数字信号处理—理论、算法与实现},
- Address = {北京},
- Author = {胡广书},
- Edition = {第三版},
- Publisher = {清华大学出版社},
- Year = {2012},
- Month = {10}
-}
-
-@Article{Franz2013-1053-1062,
- Title = {Phenotypic screening with oleaginous microalgae reveals modulators of lipid productivity},
- Author = {Franz,A.K. AND DANIELEWICZ, M. A. AND WONG, D. M. AND OTHERS},
- Journal = {ACS chemical biology},
- Pages = {1053-1062},
- Volume = {8},
- Url = {http://pubs.acs.org},
- Urldate = {2014-06-26},
- Year = {2013}
-}
-
-@Article{Walls2013-399-418,
- Title = {drought, deluge and declines: the impact of precipition extremes on amphibians in a changing climate},
- Author = {Walls, S C and barichivich, W. J. and BROWN, m. e.},
- Journal = {Biology},
- Number = {1},
- Pages = {399-418},
- Volume = {2},
- Url = {http://www.mdpi.com},
- Urldate = {2013-11-04},
- Year = {2013},
- doi = {10.3390/biology2010399}
-}
-
-@Article{Zhang2007-500-503,
- Title = {The design and experimental investigations of supersonic length shorted nozzle},
- Author = {Zhang, Min-li and Yi, Shi-he and Zhao, Yu-xin},
- Journal = {ACTA AERODYNAMICA SINICA},
- Number = {4},
- Pages = {500-503},
- Volume = {25},
- Year = {2007}
-}
-
-@Book{Yi2013--,
- Title = {Supersonic and hypersonic nozzle design},
- Address = {Beijing},
- Author = {Yi, Shi he and Zhao, Yu xin and He, Lin and Zhang, Min li},
- Publisher = {National Defense Industry Press},
- Year = {2013}
-}
-
-@Book{LIAO2012--,
- Title = {Electronic countermeasure techniques for missile penetration},
- Address = {Beijing},
- Author = {LIAO, ping and JIANG, qin bo},
- Publisher = {National Defense Industry Press},
- Year = {2013}
-}
-
-@Book{LIU2003--,
- Title = {Introduction of Ballistic Misille Techniques},
- Address = {Beijing},
- Author = {LIU, shi Qiu},
- Publisher = {China Astronautic Publishing House},
- Year = {2003}
-}
-
-@InBook{马克思2013-302-302a,
- author = {马克思},
- title = {政治经济学批判},
- booktitle = {马克思恩格斯全集:第35卷},
- year = {2013},
- bookauthor = {马克思 and 恩格斯},
- publisher = {人民出版社},
- pages = {302},
- address = {北京},
-}
-
-@Article{杨洪升2013-56-75,
- Title = {四库馆私家抄校书考略},
- Author = {杨洪升},
- Journal = {文献},
- Number = {1},
- Pages = {56-75},
- Year = {2013}
-}
-
-@Book{易仕和2013--,
- Title = {超声速和高超声速喷管设计},
- Address = {北京},
- Author = {易仕和 and 赵玉新 and 何霖 and 张敏莉},
- Publisher = {国防工业出版社},
- Year = {2013}
-}
-
-@Article{詹广平2013-8-10,
- Title = {美海军宙斯盾系统开放式体系结构研究},
- Author = {詹广平},
- Journal = {舰船电子工程},
- Number = {11},
- Pages = {8-10},
- Volume = {33},
- Year = {2013}
-}
-
-@Book{中国企业投资协会2013--,
- Title = {投资台湾:大陆企业赴台投资指南},
- Address = {北京},
- Author = {中国企业投资协会 and 台湾并购与私募股权协会 and 汇盈国际投资集团},
- Publisher = {九州出版社},
- Year = {2013}
-}
-
-@Article{周学武2013-49-52,
- Title = {数据链技术的发展及其在空面导弹中的应用},
- Author = {周学武 and 邹敏怀 and 张邦楚 and 黄剑斌 and 刘涛},
- Journal = {教练机},
- Number = {2},
- Pages = {49-52},
- Year = {2013}
-}
-
-@Book{Poisel2013--,
- Title = {通信电子战原理},
- Address = {北京},
- Author = {Poisel, Richard A.},
- Edition = {2版},
- Pages = {23--26},
- Publisher = {电子工业出版社},
- Translator = {聂皞 and 王振华 and 陈少昌 and 吴利民},
- Url = {http://www.baidu.com},
- Urldate = {2013-08-01},
- Year = {2013},
- Month = {1}
-}
-
-@Article{王雪峥2013-249-254,
- Title = {基于DoDAF的靶场体系结构设计},
- Author = {王雪峥 and 许雪梅},
- Journal = {系统工程理论与实践},
- Number = {1},
- Pages = {249-254},
- Volume = {33},
- Month = {1},
- Year = {2013}
-}
-
-@Book{阎毅2013--,
- Title = {软件无线电与认知无线电概论},
- Address = {北京},
- Author = {阎毅 and 贺鹏飞},
- Publisher = {电子工业出版社},
- Year = {2013},
- Month = {1}
-}
-
-@Article{刘裕国2013-01-12--,
- Title = {雾霾来袭,如何突围},
- Author = {刘裕国 and 杨柳 and 张洋 and OTHERS},
- Journal = {人民日报},
- Note = {news},
- Url = {http://paper.people.com.cn},
- Urldate = {2013-11-06},
- Year = {2013-01-12}
-}
-
-@Report{中华人民共和国国务院新闻办公室2013-04-16--,
- Title = {国防白皮书:中国武装力量的多样化运用},
- Author = {中华人民共和国国务院新闻办公室},
- Url = {http://www.mod.gov.cn},
- Urldate = {2014-06-11},
- Year = {2013},
- date = {2013-04-16}
-}
-
-@Book{刘海洋2013--,
- Title = {LaTeX 入门},
- Address = {北京},
- Author = {刘海洋},
- Publisher = {电子工业出版社},
- Year = {2013},
- Month = {6}
-}
-
-@Unpublished{包太雷2013--,
- Title = {LaTeX Notes},
- Author = {包太雷},
- Edition = {第二版},
- Month = {9},
- Subtitle = {雷太赫排版系统简介},
- Year = {2013}
-}
-
-@Report{汤万金2013-09-30--,
- Title = {人体安全重要技术标准研制最终报告: 7178999X},
- Author = {汤万金 and 杨跃翔 and 刘文 and others},
- Url = {http://www.nstrs.org.cn},
- Urldate = {2014-06-24},
- date = {2013-09-30},
- Year = {2013}
-}
-
-@Manual{Lehman2013--,
- Title = {The biblatex Package},
- Author = {Philipp Lehman and Philip Kime and Audrey Boruvka and Joseph Wright},
- Version = {version 2.8a},
- Month = {11},
- Subtitle = {Programmable Bibliographies and Citations},
- Year = {2013}
-}
-
-@Proceedings{Babu2014--,
- Title = {Proceedings of the second international conference on soft computing for problem solving, December 28-30, 2012},
- Address = {New Delhi},
- Publisher = {Springer},
- Year = {2014},
- Editor = {Babu, B. V. and NAGAR, A. K. AND DEEP, K. and others}
-}
-
-@Book{同济大学数学系2014--,
- Title = {高等数学},
- Address = {北京},
- Author = {同济大学数学系},
- Publisher = {高等教育出版社},
- Year = {2014},
- Month = {7}
-}
-
-@Book{杨林2015--,
- Title = {面向对象软件工程与UML实践教程},
- Address = {北京},
- Author = {杨林 and 叶亚琴 and 方芳},
- Publisher = {科学出版社},
- Year = {2015},
- Month = {1}
-}
-
-@Manual{Braams2015--,
- Title = {The \LaTeXe{} Sources},
- Author = {Johannes Braams and David Carlisle and Alan Jeffrey and Leslie Lamport and Frank Mittelbach and Chris Rowley and Rainer Sch¨opf},
- Date = {2015-01-01}
-}
-
-@Manual{Lehman2015,
- Title = {The Biblatex Package: Programmable Bibliographies and Citations},
- Author = {Philipp Lehman and Philip Kime and Audrey Boruvka and Joseph Wright},
- Date = {2015-04-20},
- Version = {3.0}
-}
-
-@Book{中华人民共和国国家质量监督检验检疫总局2015,
- Title = {中华人民共和国国家标准 GB/T 7714-2015 信息与文献 参考文献著录规则},
- Author = {中华人民共和国国家质量监督检验检疫总局 and 中国国家标准化管理委员会},
- Date = {2015-05-15},
- Note = {standard}
-}
-
-@Article{高翔2015-26-31,
- Title = {复杂航电架构的开放式系统标准研究},
- Author = {高翔 and 李辰},
- Journal = {航空电子技术},
- Number = {2},
- Pages = {26-31},
- Volume = {46},
- Month = {6},
- Year = {2015}
-}
-
-@Manual{Mittelbach2015--,
- Title = {An environment for multicolumn output},
- Author = {Frank Mittelbach},
- Month = {12},
- Year = {2015}
-}
-
-@Manual{Berry2016--,
- Title = {TEX Live 指南—2016},
- Author = {Karl Berry},
- Date = {2016-06}
-}
-
-@Manual{胡振震2016,
- Title = {符合 GB7714-2015 标准的 biblatex 参考文献样式文件},
- Author = {胡振震},
- Date = {2016-07-01},
- Url = {https://ctan.org/pkg/biblatex-gb7714-2015},
- Urldate = {2018-04-23}
-}
-
-@Online{Alliance--,
- Title = {WiMedia Alliance},
- Url = {www.wimedia.org}
-}
-
-@Book{booknodate,
- Title = {出版集团研究},
- Author = {余敏},
- Pages = {179-193},
- Publisher = {中国书籍出版社},
- Location = {北京}
-}
-
-@Book{booknopublishernoyear,
- Title = {出版集团研究},
- Author = {余敏},
- Location = {北京}
-}
-
-@Online{Commonwealth--,
- Title = {Pennsylvania library laws},
- Author = {{Commonwealth libraries bureau of library development.Pennsylvania department of education office}},
- Url = {http://www.racc.edu},
- Urldate = {2013-03-24}
-}
-
-@Report{Eggrers--,
- Title = {One-dimensional flows of an imperfect diatomic gas},
- Author = {Eggrers, A. J.},
- Number = {959},
- Type = {NACA report}
-}
-
-@Online{HOPKINSON--,
- Title = {UNIMARC and metadata: Dublin Core},
- Author = {A HOPKINSON},
- Url = {http://www.rfla.org/IV/rfla64/13801613.htm},
- Urldate = {1999-12-08}
-}
-
-@Online{JabRef中文手册--,
- Title = {JabRef中文手册},
- Url = {http://blog.csdn.net/zd0303/article/details/7676807}
-}
-
-@Online{JabRefManual--,
- Title = {JabRef Manual},
- Url = {http://blog.csdn.net/zd0303/article/details/7676807}
-}
-
-@Online{OCLC--a,
- author = {{Online Computer Library Center, Inc.}},
- title = {History of OCLC},
- url = {http://www.oclc.org/about/history/default.htm},
- urldate = {2000-01-08},
-}
-
-@Book{Parsons2000nodate--,
- Title = {The Mobile Radio Propagation Channel},
- Address = {Hoboken},
- Author = {Parsons, J. D.},
- Edition = {2},
- Publisher = {John Wiley and Sons}
-}
-
-@Book{Parsons2000nopubnoyear--,
- Title = {The Mobile Radio Propagation Channel},
- Address = {Hoboken},
- Author = {Parsons, J. D.},
- Edition = {2}
-}
-
-@Book{standardinfoiso158,
- Title = {Information and documentation-the Dublin core metadata element set:ISO 15836:2009},
- Note = {standard},
- Url = {http://www.iso.org},
- Urldate = {2013-03-24}
-}
-
-@Book{鸟哥--,
- Title = {鸟哥的linux私房菜},
- Author = {鸟哥},
- Edition = {3},
- Publisher = {人民邮电出版社}
-}
-
-@Online{olqa2016--,
- Title = {求助beamerposter制作海报时参考文献样式的问题},
- Date = {2016},
- Url = {http://bbs.ctex.org/forum.php?mod=viewthread&tid=153061&page=1&extra=#pid544787}
-}
-
-@Online{北京交通大学研究生公众号2016--,
- Title = {新学期定个小目标—学会在LaTeX中管理参考文献},
- Author = {北京交通大学研究生公众号},
- Date = {2016-09-17},
- Url = {http://www.latexstudio.net/archives/7488}
-}
-
-@Online{olref2016--,
- Title = {如何在LaTeX写作中管理参考文献?},
- Date = {2016-08-12},
- Url = {http://www.latexstudio.net/archives/7131}
-}
-
-@Online{文献助手2016--,
- Title = {参考文献格式搜索神器上线了},
- Author = {文献助手},
- Date = {2016-09-21},
- Url = {http://www.latexstudio.net/archives/7560}
-}
-
-@Book{IFLAI1977b--,
- Title = {Names of persons: national usages for entry in catalogues},
- Author = {{International Federation of Library Association and Institutions} and {FCC} and {FBI} and {CIA}},
- Edition = {3},
- Publisher = {IFLA International Office for UBC},
- Year = {1977},
- Location = {London}
-}
-
-@Inproceedings{r27-BenHadjAlaya-FekiA.2008-1-5,
- Title = {Interference cartography for hierarchical dynamic spectrum access},
- Address = {Chicago, IL},
- Author = {{Ben Hadj Alaya-Feki A.} and B. Sayrac and S. Ben Jemaa and E. Moulines},
- Booktitle = {Proc. IEEE Symp. on New Frontiers in Dynamic Spectrum Access Networks (DySPAN)},
- Date = {2008-10},
- Pages = {1-5}
-}
-
-@Book{中国企业投资协会2014--,
- Title = {投资台湾:大陆企业赴台投资指南},
- Address = {北京},
- Author = {{中国企业投资协会} and 台湾并购与私募股权协会 and 汇盈国际投资集团 and 国际投资集团},
- Publisher = {九州出版社},
- Year = {2014}
-}
-
-@Book{中国企业投资协会2015--,
- Title = {投资台湾:大陆企业赴台投资指南},
- Address = {北京},
- Author = {中国企业投资协会 and 台湾并购与私募股权协会 and 汇盈国际投资集团 and 国际投资集团},
- Publisher = {九州出版社},
- Year = {2015}
-}
-
-@Manual{Tantau2015--,
- Title = {The beamer class -- User Guide for version 3.36},
- Author = {Till Tantau and Joseph Wright and Vedran Miletić},
- Date = {2015-03-08},
- Url = {http://bitbucket.org/rivanvx/beamer}
-}
-
-@Manual{Oetiker--,
- Title = {一份不太简短的LATEX2ε介绍},
- Author = {Tobias Oetiker and Hubert Partl and Irene Hyna and Elisabeth Schlegl},
- Date = {2017-03},
- Translator = {ChinaTEX论坛},
- Url = {https://ctan.org/pkg/lshort-zh-cn},
- Urldate = {2018-04-23},
- Version = {5.10}
-}
-
-@Manual{Daly2010--,
- Title = {Natural Sciences Citations and References (package natbib)},
- Author = {Patrick W. Daly},
- Date = {2010-09-13},
- Url = {https://ctan.org/pkg/natbib},
- Urldate = {2018-04-27},
- Version = {8.31b}
-}
-
-@Manual{Arseneau2010--,
- Title = {chapterbib multiple bibliographies in LATEX},
- Author = {Donald Arseneau},
- Date = {2010-09-05},
- Url = {https://ctan.org/pkg/chapterbib},
- Urldate = {2018-04-23}
-}
-
-@Manual{Shell2013--,
- Title = {Mciteplus: Enhanced Multicitations},
- Author = {Michael Shell},
- Date = {2013-09-13},
- Url = {https://ctan.org/pkg/mciteplus},
- Urldate = {2018-04-23},
- Version = {1.2}
-}
-
-@Online{Hansen2008--,
- Title = {The multibib Package},
- Author = {Thorsten Hansen},
- Date = {2008-12-10},
- Url = {https://www.ctan.org/pkg/multibib},
- Urldate = {2018-05-04},
- Version = {v1.4}
-}
-
-@Online{Seindal1994--,
- Title = {Inline bibliography style},
- Author = {René Seindal},
- Date = {1994-12-06},
- Url = {https://www.ctan.org/pkg/inlinebib},
- Urldate = {2018-05-04}
-}
-
-@Book{booknopubitems,
- Title = {出版集团研究},
- Author = {余敏},
- Date = {2001},
- Pages = {50-63}
-}
-
-@Comment{jabref-meta: databaseType:biblatex;}
-
-@Comment{jabref-entrytype: Newspaper: req[] opt[]}
+% Encoding: UTF-8
+
+
+@Other{易仕和,2013,
+ Entryset = {易仕和2013--,Yi2013--}
+}
+
+@book{李时珍--,
+author={李时珍}
+}
+
+@book{乔纳斯--,
+author={乔纳斯}
+}
+
+@Book{昂温1988--,
+ Author = {昂温, S.},
+}
+
+@Book{GPS1988--,
+ Title = {外国出版史},
+ Author = {{昂温, G} and {昂温, P S}},
+ Publisher = {中国书籍出版社},
+ Translator = {陈生诤},
+ Year = {1988},
+ Location = {北京}
+}
+
+@Book{丸山敏秋--,
+ Author = {丸山敏秋},
+}
+
+@Book{凯西尔--,
+ Author = {凯西尔},
+}
+
+@book{Einstein--,
+ author = {Einstein, Albert}
+}
+
+@book{Williams-ellis--,
+ author = {Williams-ellis, Amabel}
+}
+
+@book{morgan--,
+ author = {De Morgan, Augustus}
+}
+
+@book{lijianning--a,
+ author = {{LI Jiangning}}
+}
+
+@book{lijianning--b,
+ author = {Li, Jiang Ning}
+}
+
+@book{钱学森--,
+ author = {钱学森 and 刘再复}
+}
+
+@book{李四光--,
+ author = {李四光 and 华罗庚 and 茅以升}
+}
+
+@book{印森林--,
+ author = {印森林 and 吴胜和 and 李俊飞 and 冯文杰}
+}
+
+@book{fordham--,
+ author = {Evenst W. Fordham and Amiad Ali and David A. Truner and John R. Charters}
+}
+
+@Article{anon1981-628,
+ title = {Coffee drinking and cancer of the pancreas},
+ journal = {Br Med J},
+ year = {1981},
+ volume = {283},
+ number = {6292},
+ pages = {628}
+}
+
+@book{中国科学院物理研究所--,
+ author = {{中国科学院物理研究所}}
+}
+
+@book{贵州省土穰普查办公室--,
+ author = {{贵州省土穰普查办公室}}
+}
+
+@book{AmericanChemicalSociety--,
+ author = {{American Chemical Society}}
+}
+
+
+@book{StanfordUniversity--,
+ author = {{Stanford University. Department of Civil Eng ineering}}
+}
+
+
+@book{王夫之的诠释--,
+ title = {王夫之“乾坤并建”的诠释面向}
+}
+
+@book{张子正蒙注--,
+ title = {张子正蒙注}
+}
+
+@book{化学动力学和反应器原理--,
+ title = {化学动力学和反应器原理}
+}
+
+@book{袖珍神学--,
+ title = {袖珍神学,或,简明基督教词典}
+}
+
+@article{北京师范大学学报--,
+ Journaltitle = {北京师范大学学报(自然科学版)}
+}
+
+@book{Gasesinsea--,
+ title = {Gases in sea ice 1975-1979}
+}
+
+@article{jmath--,
+ Journaltitle = {J Math \& Phys}
+}
+
+@book{为人民服务--,
+ title = {为人民服务;纪念白求恩;愚公移山}
+}
+
+@book{编者1964--,
+ title = {为人民服务;纪念白求恩;愚公移山},
+ address= {北京},
+ publisher={人民出版社},
+ date ={1964},
+ pages= {1-3;7-11;31-35}
+}
+
+@book{大趋势--,
+ title = {大趋势}
+}
+
+@book{地壳运动--,
+ title = {地壳运动假说:从大陆漂移到板块构造}
+}
+
+@book{三松堂--,
+ title = {三松堂全集:第4卷}
+}
+
+@book{世界出版业--,
+ title = {世界出版业:美国卷}
+}
+
+@book{ECL集成电路--,
+ title = {ECL集成电路:原理与设计}
+}
+
+@book{中国科学技术史--,
+ title = {中国科学技术史:第2卷~~~~科学思想史}
+}
+
+@article{商鞅战秋菊--,
+ title = {商鞅战秋菊:法治转型的一个思想实验}
+}
+
+@article{中国科学--,
+ title = {中国科学:D辑~~~~地球科学}
+}
+
+@Standard{信息与文献--,
+ title = {信息与文献---都柏林核心元数据元素集:GB/T 25100—2010}
+}
+
+@Standard{全国信息与文献标准化技术委员会2010-2-3,
+ author = {全国信息与文献标准化技术委员会},
+ title = {信息与文献\ \ \ \ 都柏林核心元数据元素集: GB/T 25100—2010},
+ year = {2010},
+ address = {北京},
+ pages = {2--3},
+ publisher = {中国标准出版社},
+}
+
+@report{中子反射--,
+ title = {中子反射数据分析技术:CNIC-01887}
+}
+
+@article{AsianPacificjournal--,
+ Journaltitle = {Asian Pacific journal of eancer prevention: e-only}
+}
+
+
+@book{egbookeda--,
+ title = {中文书},
+ edition={3}
+}
+
+@book{egbookedb--,
+ title = {中文书},
+ edition={新1版}
+}
+
+@book{egbookedc--,
+ title = {中文书},
+ edition={明刻本}
+}
+
+@book{egbookedd--,
+ title = {english book},
+ edition={5}
+}
+
+@book{egbookede--,
+ title = {english book},
+ edition={Rev. ed.}
+}
+
+@book{egbookpuba--,
+ title = {中文书},
+ date = {2013},
+ address = {北京},
+ publisher = {人民出版社},
+}
+
+@book{egbookpubb--,
+ title = {english book},
+ date = {2012},
+ address = {New York},
+ publisher = {Academic Press},
+}
+
+@book{egbookpubaddressa--,
+ title = {english book},
+ address = {Cambridge, Eng.},
+ publisher = {Academic Press},
+}
+
+@book{egbookpubaddressb--,
+ title = {english book},
+ address = {Cambridge, Mass.},
+ publisher = {Academic Press},
+}
+
+@book{egbookpubaddressc--,
+ title = {中文书},
+ date = {2013},
+ address = {北京 and 上海},
+ publisher = {科学出版社},
+}
+
+@book{egbookpubaddressd--,
+ title = {english book},
+ date = {2000},
+ address = {London and Boston and Durban and Syngapore and Sydney and Toronto and Wellington},
+ publisher = {Butterworths},
+}
+
+@book{egbookpubaddresse--,
+ title = {中文书},
+ date = {1990},
+ publisher = {三户图书刊行社},
+}
+
+@book{egbookpubaddressf--,
+ title = {english book},
+ date = {1975},
+ publisher = {MacMillan},
+}
+
+@online{egbookpubaddressg--,
+ date = {2011},
+ pages ={105},
+ url={http://lib.myilibrary.com/Open.aspx?id=312377},
+ urldate={2014-06-16},
+ publisher = {Open University Press},
+}
+
+
+
+@book{egbookpubpublishera--,
+ title = {中文书},
+ address = {北京},
+ publisher = {中国标准出版社},
+}
+
+@book{egbookpubpublisherb--,
+ title = {english book},
+ address = {Cambridge},
+ publisher = {Elsevier Science Publishers},
+}
+
+@book{egbookpubpublisherc--,
+ title = {english book},
+ address = {Cambridge},
+ publisher = {IRRI},
+}
+
+@book{egbookpubpublisherd--,
+ title = {english book},
+ address = {Chicago},
+ publisher = {ALA and CLA},
+ date ={1978}
+}
+
+@book{egbookpubpublishere--,
+ title = {中文书},
+ address = {哈尔滨},
+ date ={2013}
+}
+
+@book{egbookpubpublisherf--,
+ title = {english book},
+ address = {Salt Lake City},
+ date ={1964}
+}
+
+
+@book{egbookpubdatea--,
+ title = {中文书},
+ year ={1947(民国三十六年)}
+}
+
+@book{egbookpubdateb--,
+ title = {中文书},
+ year ={1705(康熙四十四年)}
+}
+
+@newspaper{egbookpubdatec--,
+ title = {中文书},
+ date ={2013-01-08}
+}
+
+@book{egbookpubdated--,
+ title = {中文书},
+ year ={c1988}
+}
+
+@book{egbookpubdatee--,
+ title = {中文书},
+ year ={1985印刷}
+}
+
+@book{egbookpubdatef--,
+ title = {中文书},
+ year ={[1936]}
+}
+
+
+@online{egbookpubdateg--,
+ title = {english book},
+ date = {2012-05-03},
+ urldate={2013-11-12},
+}
+
+@Book{曹凌2011-19-,
+ author = {曹凌},
+ title = {中国佛教疑伪经综录},
+ year = {2011},
+ publisher = {上海古籍出版社},
+ address = {上海},
+ pages ={19}
+}
+
+@Book{钱学森2001--,
+ author = {钱学森},
+ title = {创建系统学},
+ year = {2001},
+ publisher = {山西科学技术出版社},
+ address = {太原},
+ pages ={序2-3}
+}
+
+@Book{冯友兰2008--,
+ author = {冯友兰},
+ title = {冯友兰自选集},
+ year = {2008},
+ publisher = {北京大学出版社},
+ address = {北京},
+ edition ={2},
+ pages ={第1版自序}
+}
+
+@inbook{李约瑟1991--,
+ author = {李约瑟},
+ title = {题词},
+ bookauthor = {苏克福 and 管成学 and 邓明鲁},
+ booktitle = {苏颂与《本草图经》研究},
+ year = {1991},
+ publisher = {长春出版社},
+ address = {长春},
+ pages = {扉页}
+}
+
+@ARTICLE{DUBAR2013--,
+ author = {DUBAR, K L. AND MITCHELL, D A.},
+ title = {Revealing nature's synthetic potential through the study of ribosomal natural product biosynthesis},
+ Journaltitle = {ACS chemical biology},
+ DATE = {2013},
+ VOLUME = {8},
+ pages = {473-487},
+ url = {http://pubs.acs.org/doi/pdfplus/10.1021/cb3005325},
+ urldate = {2013-10-16}
+}
+
+@Book{周鲁卫2011--,
+ author = {周鲁卫},
+ title = {软物质物理导论},
+ year = {2011},
+ publisher = {复旦大学出版社},
+ address = {上海},
+ pages = {1}
+}
+
+@ARTICLE{常森2013--,
+ author = {常森},
+ title = {《五行》学说与《荀子》},
+ Journaltitle = {北京大学学报(哲学社会科学版)},
+ DATE = {2013},
+ VOLUME = {50},
+ number = {1},
+ pages = {75},
+}
+
+@Book{RUDDOCK2009--,
+ author = {RUDDOCK, L.},
+ title = {Economics for the modern built environment},
+ year = {2009},
+ publisher = {Taylor & Francis},
+ address = {London},
+ pages = {12},
+ url = {http://lib.mylib.com},
+ urldate = {2010-06-15},
+}
+
+@book{kereanrefa,
+ AUTHOR = {김세훈 and others},
+ TITLE = { 도서판및특서진흥업 개정안 연구},
+ DATE = {2003},
+ address={서울},
+ PAGES = {15},
+ publisher = {한국운화관팡정책연구원},
+}
+%%김세훈, 외. 도서판및특서진흥업 개정안 연구〔M〕, 서울; 한국운화관팡정책연구원,2003: 15.
+
+
+@book{kereanrefb,
+ AUTHOR = {이냉목 },
+ TITLE = { 도서관꺾규총람: 세 1 권},
+ DATE = {2005},
+ address={서울},
+ PAGES = {67-68},
+ publisher = {구미무역 출판부},
+}
+%%이냉목 도서관꺾규총람: 세 1 권[M〕. 서울: 구미무역 출판부,2005: 67-68.
+%%
+
+@Book{李炳穆2005--,
+ author = {李炳穆},
+ title = {图书馆法柜总览:第1卷},
+ year = {2005},
+ publisher = {九美贸易出版部},
+ address = {首尔},
+ pages = {67-68}
+}
+
+
+@article{kereanrefc,
+ DATE = {2007},
+ volume={48},
+ number={7},
+ PAGES = {11-12},
+ journaltitle={ 圖書館文化},
+ TITLE = {도서관 정보정책위원회 설립식 및 도서관 정보정책기획단신성},
+}
+%%도서관 정보정책위원회 설립식 및 도서관 정보정책기획단신성. 圖書館文化,2007 ,48(7): 11-12.
+
+@ARTICLE{图书馆信息政策委员会2007--,
+ title = {图书馆信息政策委员会成立仪式与图书馆信息政策规划团},
+ Journaltitle = {图书馆文化},
+ DATE = {2007},
+ VOLUME = {48},
+ number = {7},
+ pages = {11-12},
+}
+
+@book{japaneserefc,
+ AUTHOR = {図書館用語辞典編集委員会},
+ TITLE = { 最新図書館用語大辞典},
+ DATE = {2004},
+ address={東京},
+ PAGES = {154},
+ publisher = {柏書房株式会社},
+}
+%%
+%%図書館用語辞典編集委員会.最新図書館用語大辞典[M].東京:柏書房株式会社,2004:154.
+%%
+
+@article{russianrefc,
+ author={Кочекоs, А Я},
+ TITLE = {Молибден-медно-эолотопорфиооое месторождение Рябиноосе},
+ DATE = {1993},
+ number={7},
+ PAGES = {50-58},
+ journaltitle={Отечестsенная гелогия}
+}
+%%Кочекоs А Я. Молибден-медно-эолотопорфиооое месторождение Рябиноосе[J/ОL]. ,1993(7):50-58
+
+@ARTICLE{熊平2005--,
+ author = {熊平 and 吴颉},
+ title = {从交易费用的角度谈如何构建药品流通的良性机制},
+ Journaltitle = {中国物价},
+ DATE = {2005},
+ number = {8},
+ pages = {42-45},
+}
+
+@ARTICLE{xiong2005--,
+ author = {Xiong, Ping and Wu, Xie},
+ title = {Discussion on how to construct benign medicine circulantion mechanism fromtranaction cosperspective},
+ Journaltitle = {China price},
+ DATE = {2005},
+ number = {8},
+ pages = {42-45},
+}
+
+@ARTICLE{上海市食品药品监督管理局课题组2008--,
+ author = {上海市食品药品监督管理局课题组},
+ title = {互联网药品经营现状和监管机制的研究},
+ Journaltitle = {上海食品药品监管情报研究},
+ DATE = {2008},
+ number = {1},
+ pages = {8-11},
+}
+
+@ARTICLE{Rgsfda2008--,
+ author = {{Research Group of Shanghai Food and Drug Administration}},
+ title = {A study on online pharmaceutical operating situation and supervision mechanism},
+ Journaltitle = {Shanghai food and drug information research},
+ DATE = {2008},
+ number = {1},
+ pages = {8-11},
+}
+
+
+@PhdThesis{刘乃安2000-17-18,
+ author = {刘乃安},
+ title = {生物质材料热解失重动力学及其分析方法研究},
+ year = {2000},
+ pages = {17--18},
+ doi = {10.7666/d.y351065},
+ url = {http://wenku.baidu.com/link?url=GJDJxb4lxBUXnIPmq1XoEGSIr1H8TMLbidW_LjlYu33tpt707u62rKliypU_FBGUmox7ovPNaVIVBALAMd5yfwuKUUOAGYuB7cuZ-BYEhXa},
+ urldate = {2014-08-29},
+ address = {安徽},
+ school = {中国科学技术大学},
+}
+
+@book{Deverell2013-21-22,
+ author = {Deverell, William and Igler, David},
+ title = {A Companion to {California} History},
+ year = {2013},
+ date = {2013-11-15},
+ pages = {21--22},
+ doi = {10.1002/9781444305036.ch2},
+ url = {http://onlinelibrary.wiley.com/doi/10.1002/9781444305036.ch2/summary},
+ urldate = {2014-06-24},
+ address = {New York},
+ school = {John Wiley \& Sons},
+}
+
+@inbook{姚中秋2009--,
+ author = {姚中秋},
+ title = {作为一种制度变迁模式的“转型”},
+ bookauthor = {罗卫东 and 姚中秋},
+ booktitle = {中国转型的理论分析:奥地利学派的视角},
+ year = {2009},
+ publisher = {浙江大学出版社},
+ address = {杭州},
+ pages = {44}
+}
+
+@inbook{姚中秋2008--,
+ author = {姚中秋},
+ title = {一种制度变迁模式},
+ bookauthor = {罗, 卫东 and 姚, 中秋},
+ booktitle = {中国转型的理论分析},
+ year = {2008},
+ publisher = {浙江大学出版社},
+ address = {杭州},
+ pages = {44}
+}
+
+
+@ARTICLE{关立哲2014--,
+ author = {关立哲 and 韩纪富 and 张晨延},
+ title = {科技期刊编辑审读中要注重比较思维的科学运用},
+ Journaltitle = {编辑学报},
+ DATE = {2014},
+ VOLUME = {26},
+ number = {2},
+ pages = {144-146}
+}
+
+@ARTICLE{TENOPIR1987--,
+ author = {TENOPIR, C.},
+ title = {Online databases, quality control},
+ Journaltitle = {Library journal},
+ DATE = {1987},
+ VOLUME = {113},
+ number = {2},
+ pages = {124-125}
+}
+
+@ARTICLE{egdatevolnumpagea--,
+ title = {article of journal},
+ DATE = {2001},
+ VOLUME = {1},
+ number = {1},
+ pages = {5-6}
+}
+
+@ARTICLE{egdatevolnumpageb--,
+ title = {article of journal},
+ DATE = {2014},
+ VOLUME = {510},
+ pages = {356-363}
+}
+
+@ARTICLE{egdatevolnumpagec--,
+ title = {article of journal},
+ DATE = {2010},
+ number = {6},
+ pages = {23}
+}
+
+@ARTICLE{egdatevolnumpaged--,
+ title = {article of journal},
+ DATE = {2012},
+ VOLUME = {22},
+ number = {增刊2},
+ pages = {81-86}
+}
+
+@ARTICLE{egdatevolnumpagee--,
+ title = {article of journal},
+ DATE = {2001},
+ number = {9/10},
+ pages = {36-39}
+}
+
+@ARTICLE{egdatevolnumpagef--,
+ title = {article of journal},
+ year = {2011, 33(2):20-25;2011, 33(3):26-30},
+}
+
+@newspaper{egdatevolnumpageg--,
+ title = {article of journal},
+ date = {2013-03-16},
+ number = {1}
+}
+
+
+@Book{尼葛洛庞帝1996--,
+ author = {尼葛洛庞帝},
+ title = {数字化生存},
+ year = {1996},
+ translator = {胡泳 and 范海燕},
+ publisher = {海南出版社},
+ address = {海口},
+}
+
+@Book{汪冰1997-16-16,
+ author = {汪冰},
+ title = {电子图书馆理论与实践研究},
+ year = {1997},
+ publisher = {北京图书馆出版社},
+ pages = {16},
+ address = {北京},
+}
+
+@Article{杨宗英1996-24-29,
+ author = {杨宗英},
+ title = {电子图书馆的现实模型},
+ journal = {中国图书馆学报},
+ year = {1996},
+ number = {2},
+ pages = {24--29},
+}
+
+@Book{Baker1995--,
+ author = {Baker, S K and Jackson, M E},
+ title = {The future of resource sharing},
+ year = {1995},
+ publisher = {The Haworth Press},
+ address = {New York},
+}
+
+@Book{Chernik1982--,
+ author = {Chernik, B E},
+ title = {Introduction to library services for library technicians},
+ year = {1982},
+ publisher = {Libraries Unlimited, Inc.},
+ address = {Littleton, Colo.},
+}
+
+
+@Article{Dowler1995-5-26,
+ author = {Dowler, L},
+ title = {The research university’s dilemma: resource sharing and research in a transinstitutional environment},
+ journal = {Journal of library administration},
+ year = {1995},
+ volume = {21},
+ number = {1/2},
+ pages = {5--26},
+}
+
+
+@Inproceedings{ref-replace-char,
+ Title = {Cognitive Radio and Cooperative Strategies for Power Saving in Multi-Standard Wireless Devices},
+ Address = {Florence, Italy},
+ Author = {Rodriguez, J. and P. Marques and A. Radwan and K. Moessner and R. Tafazolli and others},
+ Booktitle = {Future % Network \& Mobile # Summit 2010},
+ Date = {June 2010}
+}
+
+@Online{olnoauthorcn,
+ Title = {如何在LaTeX写作中管理参考文献?},
+ Date = {2016-08-12},
+ Url = {http://www.latexstudio.net/archives/7131}
+}
+
+@Online{Allianceurlonly,
+ Url = {www.wimedia.org}
+}
+
+@Online{olnoauthoren,
+ Title = {Dublin Core metadata element set: version 1.1},
+ Url = {http://dublincore.org},
+ Urldate = {2014-06-11},
+ Year = {2012-06-14}
+}
+
+@Article{王临慧2010-147,
+ author = {王临慧 and others},
+ title = {天津方言的源流关系刍议},
+ journal = {山西师范大学学报(社会科学版)},
+ year = {2010},
+ volume = {37},
+ number = {4},
+ pages = {147},
+}
+
+
+@InProceedings{王临慧2010-138,
+ author = {王临慧},
+ title = {从几组声母的演变看天津方言形成的自然条件和历史条件},
+ bookauthor= {曹志耘},
+ booktitle = {汉语方言的地理语言学研究:首届中国地理语言学国际学术研讨会论文集},
+ year = {2010},
+ publisher = {北京语言大学出版社},
+ pages = {138},
+ address = {北京},
+}
+
+@Book{王夫之1845--,
+ Title = {宋论},
+ Author = {王夫之},
+ Edition = {刻本},
+ Publisher = {曾氏},
+ Year = {1845(清同治四年)},
+ Location = {金陵}
+}
+
+@Book{汪昂1881--,
+ Title = {增订本草备要:四卷},
+ Address = {京都},
+ Author = {汪昂},
+ Edition = {刻本},
+ Publisher = {老二酉堂},
+ Year = {1881(清光绪七年)},
+ Location = {京都}
+}
+
+@Periodical{AAAS1883--,
+ Title = {Science},
+ Date = {1883},
+ Editor = {{American Association for the Advancement of Science}},
+ Number = {1},
+ Volume = {1},
+ Location = {Washington, D.C.},
+ Publisher = {American Association for the Advancement of Science}
+}
+
+@Book{汪昂1912--,
+ Title = {(增补)本草备要},
+ Author = {汪昂},
+ Edition = {石印本},
+ Publisher = {同文书局},
+ Year = {1912},
+ Location = {上海}
+}
+
+@Periodical{中国地质学会1936--,
+ Title = {地质评论},
+ Date = {1936},
+ Editor = {中国地质学会},
+ Number = {1},
+ Volume = {1},
+ Location = {北京},
+ Publisher = {地质出版社}
+}
+
+
+@Book{1962-50-50,
+ Title = {康熙字典:已集上:水部},
+ Address = {北京},
+ Edition = {同文书局影印本},
+ Pages = {50},
+ Publisher = {中华书局},
+ Year = {1962}
+}
+
+@Proceedings{ROSENTHALL1963--,
+ Title = {Proceedings of the Fifth Canadian Mathematical Congress, University of Montreal, 1961},
+ Date = {1963},
+ Publisher = {University of Toronto Press},
+ Editor = {E M ROSENTHALL},
+ Location = {Toronto}
+}
+
+@Thesis{CALMS1965--,
+ Title = {Infrared spectroscopic studies on solid oxygen},
+ Author = {R B CALMS},
+ Date = {1965},
+ Institution = {Univ. of California},
+ Location = {Berkeley}
+}
+
+@Report{WHO1970--,
+ Title = {Factors regulating the immune response},
+ Author = {{World Health Organization}},
+ Date = {1970},
+ Institution = {WHO},
+ Location = {Geneva},
+ Titleaddon = {report of WHO Scientific Group}
+}
+
+@Inproceedings{FOURNEY1971-17-38,
+ Title = {Advances in holographic photoelasticity},
+ Author = {M E FOURNEY},
+ Booktitle = {Symposium on Applications of Holography in Mechanics, August 23-25, 1971, University of Southern California, Los Angeles, California},
+ year = {c1971},
+ Pages = {17-38},
+ Publisher = {ASME},
+ Location = {New York}
+}
+
+@Inproceedings{FOURNEY1971-17-38a,
+ Title = {Advances in holographic photoelasticity},
+ Author = {M E FOURNEY},
+ Bookauthor = {{American Society of Mechanical Engineers.Applied Mechanics Division}},
+ Booktitle = {Symposium on Applications of Holography in Mechanics, August 23-25, 1971. University of Southern California, Los Angeles, California},
+ Date = {1971},
+ Pages = {17-38},
+ Publisher = {ASME},
+ Location = {New York}
+}
+
+@TechReport{Humphrey1971--,
+ Title = {The sonic throat method and real gas one-dimensional flow: an application to air and nitrogen},
+ Author = {Humphrey, Richard L. and Wagner, Jerry L.},
+ Year = {1971},
+ Number = {730029},
+ Type = {AD}
+}
+
+@Book{CRANE1972--,
+ Title = {Invisible college},
+ Author = {D. Crane},
+ Date = {1972},
+ Publisher = {Univ. of Chicago Press},
+ Location = {Chicago}
+}
+
+
+
+@Article{KENNEDY1975-311-386,
+ Title = {Morphology and genesis of nodular chalks and hardgrounds in the Upper
+ Cretacesous of southern England},
+ Author = {W. J. KENNEDY and R. E. GARRISON},
+ Date = {1975},
+ Journaltitle = {Sedimentology},
+ Pages = {311-386},
+ Volume = {22}
+}
+
+@Article{KENNEDY1975-339-360,
+ Title = {Morphology and genesis of nodular phosphates in the cenomanian of South-east England},
+ Author = {W. J. KENNEDY and R. E. GARRISON},
+ Date = {1975},
+ Journaltitle = {Lethaia},
+ Pages = {339-360},
+ Volume = {8}
+}
+
+@Inbook{1977-49-49,
+ Title = {宋史卷三:本纪第三},
+ Address = {北京},
+ Booktitle = {宋史:第1册},
+ Pages = {49},
+ Publisher = {中华书局},
+ Year = {1977}
+}
+
+@Book{IFLAI1977--,
+ Title = {Names of persons: national usages for entry in catalogues},
+ Author = {{International Federation of Library Association and Institutions}},
+ Edition = {3},
+ Publisher = {IFLA International Office for UBC},
+ Year = {1977},
+ Location = {London}
+}
+
+
+@InProceedings{张忠智1997-33-34,
+ author = {张忠智},
+ title = {科技书刊的总编(主编)的角色要求},
+ booktitle = {中国科学技术期刊编辑学会建会十周年学术研讨会论文汇编},
+ year = {1997},
+ editor = {中国科学技术期刊编辑学会},
+ publisher = {中国科学技术期刊编辑学会学术委员会},
+ pages = {33--34},
+ address = {北京},
+}
+
+@Book{中国社会科学院语言研究所词典编辑室1996--,
+ author = {中国社会科学院语言研究所词典编辑室},
+ title = {现代汉语词典},
+ year = {1996},
+ edition = {修订本},
+ publisher = {商务印书馆},
+ address = {北京},
+}
+
+
+@Article{刘彻东1998-38-39,
+ Title = {中国的青年刊物},
+ Author = {刘彻东},
+ Date = {1998},
+ Journaltitle = {中国出版},
+ Number = {5},
+ Pages = {38-39},
+ Titleaddon = {个性特色为本}
+}
+
+@InProceedings{裴丽生1981-2-10,
+ author = {裴丽生},
+ title = {在中国科协学术期刊编辑工作经验交流会上的讲话},
+ booktitle = {中国科协学术期刊编辑工作经验交流会资料选},
+ year = {1981},
+ editor = {中国科学技术协会},
+ publisher = {中国科学技术协会学会工作部},
+ pages = {2--10},
+ address = {北京},
+}
+
+
+@Article{亚洲地质图编目组1978-194-208,
+ Title = {亚洲地层与地质历史概述},
+ Author = {亚洲地质图编目组},
+ Date = {1978},
+ Journaltitle = {地质学报},
+ Pages = {194-208},
+ Volume = {3}
+}
+
+@Inbook{BUSECK1980-117-211,
+ Title = {Subsolidus phenomena in pyroxenes},
+ Author = {P R BUSECK and NORD, Jr., G L and D R VEBLEN},
+ Bookauthor = {CT PREWITT},
+ Booktitle = {Pyroxense},
+ year = {c1980},
+ Pages = {117-211},
+ Publisher = {Mineralogical Society of America},
+ Location = {Washington, D.C.}
+}
+
+@Inbook{陈晋镳1980-56-114,
+ Title = {蓟县震旦亚界研究},
+ Author = {陈晋镳 and 张惠民 and 朱士兴 and others},
+ Bookauthor = {中国地质科学院天津地质矿产研究所},
+ Booktitle = {中国震旦亚界},
+ Pages = {56-114},
+ Publisher = {天津科学出版社},
+ Location = {天津},
+ Year = {1980}
+}
+
+@Article{Sunstein1996-903-903,
+ author = {Sunstein, Cass R.},
+ title = {Social Norms and Social Roles},
+ journal = {Columbia law review},
+ year = {1996},
+ volume = {96},
+ pages = {903},
+ url = {http://www.heinonline.org/HOL/Page?handle=hein.journals/clr96&id=913&collection=journals&index=journals/clr},
+ urldate = {2012-01-26},
+}
+
+@Book{罗杰斯2011-15-16,
+ author = {罗杰斯},
+ title = {西方文明史: 问题与源头},
+ year = {2011},
+ translator = {潘惠霞 and 魏婧 and 杨艳 and others},
+ publisher = {东北财经大学出版社},
+ pages = {15--16},
+ address = {大连},
+}
+
+@Book{陈登原2000-29-29,
+ author = {陈登原},
+ title = {国史旧闻: 第1卷},
+ year = {2000},
+ publisher = {中华书局},
+ pages = {29},
+ address = {北京},
+}
+
+@Book{哈里森沃尔德伦2012-235-236,
+ author = {哈里森·沃尔德伦},
+ title = {经济数学与金融数学},
+ year = {2012},
+ translator = {谢远涛},
+ publisher = {中国人民大学出版社},
+ pages = {235--236},
+ address = {北京},
+}
+
+@Book{北京市政协民族和宗教委员会2012-112-112,
+ author = {北京市政协民族和宗教委员会 and 北京联合大学民族与宗教研究所},
+ title = {历代王朝与民族宗教},
+ year = {2012},
+ publisher = {民族出版社},
+ pages = {112},
+ address = {北京},
+}
+
+
+@Book{徐光宪2010--,
+ author = {徐光宪 and 王祥云},
+ title = {物质结构},
+ year = {2010},
+ publisher = {科学出版社},
+ address = {北京},
+}
+
+@Book{顾炎武1992--,
+ author = {顾炎武},
+ title = {昌平山水记:京东考古录},
+ year = {1992},
+ publisher = {北京古籍出版社},
+ address = {北京},
+}
+
+@Book{王夫之1865--,
+ author = {王夫之},
+ title = {宋论},
+ year = {1865(清同治四年)},
+ edition = {刻本},
+ publisher = {湘乡曾国荃},
+ address = {金陵},
+}
+
+@Proceedings{牛志明2012--,
+ title = {综合湿地管理国际研讨会论文集},
+ year = {2012},
+ editor = {牛志明 and 斯温兰德 and 雷光春},
+ publisher = {海洋出版社},
+ address = {北京},
+}
+
+@Archive{中国第一历史档案馆2001--,
+ author = {中国第一历史档案馆 and 辽宁省档案馆},
+ title = {中国明朝档案总汇},
+ year = {2001},
+ address = {桂林},
+ publisher = {广西师范大学出版社},
+}
+
+@PhdThesis{杨保军2012--,
+ author = {杨保军},
+ title = {新闻道德论},
+ year = {2010},
+ url = {http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20101104-BPO-889-1023&cult=CN},
+ urldate = {2012-11-01},
+ address = {北京},
+ publisher = {中国人民大学出版社},
+}
+
+@Book{赵学功2001--,
+ author = {赵学功},
+ title = {当代美国外交},
+ year = {2001},
+ publisher = {社会科学文献出版社},
+ url = {http://www.cadal.zju.edu.cn/book/trySinglePage/33023884/1},
+ urldate = {2014-06-11},
+ address = {北京},
+}
+
+@Book{同济大学土木工程防灾国家重点实验室2011-5-6,
+ author = {同济大学土木工程防灾国家重点实验室},
+ title = {汶川地震灾害研究},
+ year = {2011},
+ publisher = {同济大学出版社},
+ pages = {5--6},
+ url = {http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20120406-YPT-889-0010},
+ urldate = {2013-05-09},
+ address = {上海},
+}
+
+@Book{中国造纸学会2003--,
+ author = {中国造纸学会},
+ title = {中国造纸年鉴: 2003},
+ year = {2003},
+ publisher = {中国轻工业出版社},
+ url = {http://www.cadal.zju.edu.cn/book/view/25010080},
+ urldate = {2014-04-25},
+ address = {北京},
+}
+
+
+@Proceedings{Yufin2000--,
+ title = {Geoecology and computers: proceedings of the {Third International Conference on Advances of Computer Methods in Geotechnical and Geoenvironmental Engineering, Moscow, Russia, February 1--4, 2000}},
+ year = {2000},
+ editor = {Yufin, Sergey A},
+ publisher = {A. A. Balkema},
+ address = {Rotterdam},
+}
+
+@Book{Baldock2011-105-105,
+ author = {Baldock, Peter},
+ title = {Developing early childhood services: past, present and future},
+ year = {2011},
+ publisher = {Open University Press},
+ pages = {105},
+ url = {http://lib.myilibrary.com/Open.aspx?id=312377},
+ urldate = {2012-11-27},
+}
+
+@Book{Fan2013-25-26,
+ author = {Fan, Xuetong and Sommers, Christopher H.},
+ title = {Food irradiation research and technology},
+ year = {2013},
+ edition = {2},
+ publisher = {Blackwell Publishing},
+ pages = {25--26},
+ url = {http://onlinelibrary.wiley.com/doi/10.1002/9781118422557.ch2/summary},
+ urldate = {2014-06-26},
+ address = {Ames, Iowa},
+}
+
+
+@Inbook{王夫之2011-1109-1109,
+ title = {周易外传:卷 5},
+ booktitle = {船山全书},
+ year = {2011},
+ editor = {王夫之},
+ number = {6},
+ publisher = {岳麓书社},
+ pages = {1109},
+ address = {长沙},
+}
+
+@Inbook{程根伟1999-32-36,
+ author = {程根伟},
+ title = {1998 年长江洪水的成因与减灾对策},
+ booktitle = {长江流域洪涝灾害与科技对策},
+ year = {1999},
+ editor = {许厚泽 and 赵其国},
+ publisher = {科学出版社},
+ pages = {32--36},
+ address = {北京},
+}
+
+@Inbook{陈晋镳1980-56-114a,
+ author = {陈晋镳 and 张惠民 and 朱士兴 and 赵震 and 王振刚},
+ title = {蓟县震旦亚界研究},
+ booktitle = {中国震旦亚界},
+ year = {1980},
+ editor = {中国地质科学院天津地质矿产研究所},
+ publisher = {天津科学技术出版社},
+ pages = {56--114},
+ address = {天津},
+}
+
+@Inbook{马克思2013-302-302,
+ author = {马克思},
+ title = {政治经济学批判},
+ booktitle = {马克思恩格斯全集},
+ year = {2013},
+ editor = {马克思 and 恩格斯},
+ volume = {35},
+ publisher = {人民出版社},
+ pages = {302},
+ address = {北京},
+}
+
+
+
+
+
+@InProceedings{贾东琴2011-45-52,
+ author = {贾东琴 and 柯平},
+ title = {面向数字素养的高校图书馆数字服务体系研究},
+ booktitle = {中国图书馆学会年会论文集: 2011年卷},
+ year = {2011},
+ editor = {中国图书馆学会},
+ publisher = {国家图书馆出版社},
+ pages = {45--52},
+ address = {北京},
+}
+
+@Inbook{Weinstein1974-745-772,
+ author = {Weinstein, L and Swertz, M N},
+ title = {Pathogenic properties of invading microorganism},
+ booktitle = {Pathologic physiology: mechanisms of disease},
+ year = {1974},
+ editor = {Sodeman, Jr., William A and Sodeman, William A},
+ publisher = {Saunders},
+ pages = {745--772},
+ address = {Philadelphia},
+}
+
+@InBOOK{Roberson2011-1-36,
+ author = {Roberson, J. Alan and Burneson, Eric G.},
+ title = {Drinking water standards, regulations and goals},
+ booktitle = {Water quality \& treatment: a handbook on drinking water},
+ year = {2011},
+ editor = {{American Water Works Association}},
+ edition = {6},
+ publisher = {McGraw-Hill},
+ pages = {1.1--1.36},
+ url = {http://lib.myilibrary.com/Open.aspx?id=291430},
+ urldate = {2012-12-10},
+ address = {New York},
+}
+
+@Periodical{中华医学会湖北分会1984----,
+ title = {临床内科杂志},
+ year = {1984},
+ volume = {1},
+ number = {1},
+ address = {武汉},
+ author = {中华医学会湖北分会},
+ publisher = {中华医学会湖北分会},
+}
+
+@Periodical{中国图书馆学会1957--1990--,
+ title = {图书馆学通讯},
+ year = {1957/1990},
+ number = {1-4},
+ address = {北京},
+ author = {中国图书馆学会},
+ publisher = {北京图书馆},
+}
+
+@Periodical{中国图书馆学会1957--,
+ Title = {图书馆学通信},
+ Address = {北京},
+ Date = {1957/1990},
+ Editor = {中国图书馆学会},
+ Institution = {北京图书馆},
+ Number = {1-4}
+}
+
+@Periodical{中国图书馆学会1957a--,
+ Title = {图书馆学通信},
+ Date = {1957/1990},
+ Editor = {中国图书馆学会},
+ Institution = {北京图书馆},
+ Number = {1-4}
+}
+
+@Periodical{中国图书馆学会1957b--,
+ Title = {图书馆学通信},
+ Address = {北京},
+ Date = {1957/1990},
+ Editor = {中国图书馆学会},
+ Number = {1-4}
+}
+
+@Periodical{中国图书馆学会1957c--,
+ Title = {图书馆学通信},
+ Date = {1957/1990},
+ Editor = {中国图书馆学会},
+ Number = {1-4}
+}
+
+@Periodical{AAAS1883----,
+ title = {Science},
+ year = {1883},
+ volume = {1},
+ number = {1},
+ address = {Washington, D.C.},
+ author = {{American Association for the Advancement of Science}},
+ publisher = {American Association for the Advancement of Science},
+}
+
+
+@Article{袁训来2012-3219-3219,
+ author = {袁训来 and 陈哲 and 肖书海 and others},
+ title = {蓝田生物群: 一个认识多细胞生物起源和早期演化的新窗口},
+ journal = {科学通报},
+ year = {2012},
+ volume = {55},
+ number = {34},
+ pages = {3219},
+}
+
+@Newspaper{余建斌2013--,
+ author = {余建斌},
+ date = {2013-01-12},
+ journal = {人民日报},
+ number = {2},
+ title = {我们的科技一直在追赶: 访中国工程院院长周济},
+ url = {http://paper.people.com.cn/rmrb/html/2013-01/12/nw.D110000renmrb_20130112_5-02.htm},
+ urldate = {2013-03-20},
+ year = {2013},
+}
+
+@Article{李炳穆2008-6-12,
+ author = {李炳穆},
+ title = {韩国图书馆法},
+ journal = {图书情报工作},
+ year = {2008},
+ volume = {52},
+ number = {6},
+ pages = {6--12},
+ url = {http://www.docin.com/p-400265742.html},
+ urldate = {2013-10-25},
+}
+
+@Article{李幼平2010-225-228,
+ author = {李幼平 and 王莉},
+ title = {循证医学研究方法: 附视频},
+ journal = {中华移植杂志(电子版)},
+ year = {2010},
+ volume = {4},
+ number = {3},
+ pages = {225--228},
+ url = {http://www.cqvip.com/Read/Read.aspx?id=36658332},
+ urldate = {2014-06-09},
+}
+
+@Article{武丽丽2008-8-9,
+ author = {武丽丽 and 华一新 and 张亚军 and others},
+ title = {“北斗一号”监控管理网设计与实现},
+ journal = {测绘科学},
+ year = {2008},
+ volume = {33},
+ number = {5},
+ pages = {8--9},
+ doi = {10.3771/j.issn.1009-2307.2008.05.002},
+ url = {http://vip.calis.edu.cn/CSTJ/Sear.dll?OPAC_CreateDetail},
+ urldate = {2009-10-25},
+}
+
+@Article{Kanamori1998-2063-2063,
+ author = {Kanamori, H},
+ title = {Shaking without quaking},
+ journal = {Science},
+ year = {1998},
+ volume = {279},
+ number = {5359},
+ pages = {2063},
+}
+
+@Article{Caplan1993-61-66,
+ author = {Caplan, P},
+ title = {Cataloging internet resources},
+ journal = {The public access computer systems review},
+ year = {1993},
+ volume = {4},
+ number = {2},
+ pages = {61--66},
+}
+
+@Article{Frese2013-378-398,
+ author = {Frese, Karen S. and Katus, Hugo A. and Meder, Benjamin},
+ title = {Next-generation sequencing: from understanding biology to personalized medicine},
+ journal = {Biology},
+ year = {2013},
+ volume = {2},
+ number = {1},
+ pages = {378--398},
+ doi = {10.3390/biology2010378},
+ url = {http://www.mdpi.com/2079-7737/2/1/378},
+ urldate = {2013-03-19},
+}
+
+@Article{Myburg2014-356-362,
+ author = {Myburg, Alexander A. and Grattapaglia, Dario and Tuskan, Gerald A. and others},
+ title = {The genome of Eucalyptus grandis},
+ journal = {Nature},
+ year = {2014},
+ date = {2014-06-19},
+ volume = {510},
+ pages = {356--362},
+ doi = {10.1038/nature13308},
+ url = {http://www.nature.com/nature/journal/v510/n7505/pdf/nature13308.pdf},
+ urldate = {2014-06-25},
+}
+
+@Patent{邓一刚2006--,
+ author = {邓一刚},
+ title = {全智能节电器},
+ number = {200610171314.3},
+ year = {2006},
+ date = {2006-12-13},
+}
+
+@Patent{西安电子科技大学2002--,
+ author = {西安电子科技大学},
+ title = {光折变自适应光外差探测方法},
+ number = {01128777.2},
+ year = {2002},
+ date = {2002-03-06},
+ url = {http://211.152.9.47/sipoasp/zljs/hyjs-yx-new.asp?recid=01128777.2&leixin=0},
+ urldate = {2002-05-28},
+}
+
+@Patent{Tachibana2005--,
+ author = {Tachibana, Ryuki and Shimizu, Shuhichi and Kobayshi, Seiji and Nakamura, Taiga},
+ title = {Electronic watermarking method and system},
+ number = {US6915001},
+ year = {2005},
+ date = {2005-07-05},
+ url = {http://www.google.co.in/patents/US6915001},
+ urldate = {2013-11-11},
+}
+
+@TechReport{中国互联网络信息中心2012--,
+ author = {中国互联网络信息中心},
+ title = {第 29 次中国互联网络发展现状统计报告},
+ year = {2012},
+ date = {2012-01-16},
+ url = {http://www.cnnic.net.cn/hlwfzyj/hlwxzbg/201201/P020120709345264469680},
+ urldate = {2013-03-26},
+}
+
+@Archive{北京市人民政府办公厅2005--,
+ author = {北京市人民政府办公厅},
+ title = {关于转发北京市企业投资项目核准暂行实施办法的通知: 京政办发[2005]37号},
+ year = {2005},
+ date = {2005-07-12},
+ url = {http://china.findlaw.cn/fagui/p_1/39934.html},
+ urldate = {2011-07-12},
+}
+
+@Online{Bawden2008--,
+ author = {Bawden, D},
+ title = {Origins and Concepts of Digital Literacy},
+ date = {2008-05-04},
+ url = {http://www.soi.city.ac.uk/~dbawden/digital%20literacy%20chapter.pdf},
+ urldate = {2013-03-08},
+ year = {2008},
+}
+
+@Online{OCLC--,
+ author = {{Online Computer Library Center, Inc}},
+ title = {About {OCLC}: History of Cooperation},
+ url = {http://www.oclc.org/about/cooperation.en.html},
+ urldate = {2012-03-27},
+}
+
+@Online{Hopkinson2009--,
+ author = {Hopkinson, A},
+ title = {{UNIMARC} and Metadata: Dublin Core},
+ date = {2009-04-22},
+ url = {http://archive.ifla.org/IV/ifla64/138-161e.htm},
+ urldate = {2013-03-27},
+ year = {2009},
+}
+
+@PhdThesis{刘乃安2000-17-18a,
+ author = {刘乃安},
+ title = {生物质材料热解失重动力学及其分析方法研究},
+ year = {2000},
+ pages = {17--18},
+ doi = {10.7666/d.y351065},
+ url = {http://wenku.baidu.com/link?url=GJDJxb4lxBUXnIPmq1XoEGSIr1H8TMLbidW_LjlYu33tpt707u62rKliypU_FBGUmox7ovPNaVIVBALAMd5yfwuKUUOAGYuB7cuZ-BYEhXa},
+ urldate = {2014-08-29},
+ address = {安徽},
+ school = {中国科学技术大学},
+}
+
+@PhdThesis{Deverell2013-21-22a,
+ author = {Deverell, William and Igler, David},
+ title = {A Companion to {California} History},
+ year = {2013},
+ date = {2013-11-15},
+ pages = {21--22},
+ doi = {10.1002/9781444305036.ch2},
+ url = {http://onlinelibrary.wiley.com/doi/10.1002/9781444305036.ch2/summary},
+ urldate = {2014-06-24},
+ address = {New York},
+ school = {John Wiley \& Sons},
+}
+
+@Book{Morri2010--,
+ author = {Morri, I},
+ title = {Why the West Rules for Now: the Patterns of History, and What They Reveal about the Future},
+ year = {2010},
+ publisher = {{Farrar, Straus and Giroux}},
+ address = {New York},
+}
+
+
+@Article{STIEG1981-549-560,
+ Title = {The information needs of historians},
+ Author = {M. F. STIEG},
+ Date = {1981},
+ Journaltitle = {College and Research Libraries},
+ Number = {6},
+ Pages = {549-560},
+ Volume = {42}
+}
+
+
+
+@Article{Milstein1982-436-446,
+ Title = {The effect of multiple-tone interfering signals on a direct sequence spread spectrum communication system},
+ Author = {Milstein, L. B. and Davidovici,S. and Schilling,D. L.},
+ Journal = {IEEE Trans. Commun.},
+ Number = {3},
+ Pages = {436-446},
+ Volume = {30},
+ Year = {1982}
+}
+
+@Book{顾炎武1982--,
+ Title = {昌平山水记},
+ Author = {顾炎武},
+ Publisher = {北京古籍出版社},
+ Year = {1982},
+ Location = {北京},
+ Titleaddon = {东京考古录}
+}
+
+@Inbook{马克思1982-505-505,
+ Title = {关于《工资、价格和利润》的报告札记},
+ Author = {马克思},
+ Bookauthor = {马克思 and 恩格斯},
+ Booktitle = {马克思恩格斯全集},
+ Pages = {505},
+ Publisher = {人民出版社},
+ Booktitleaddon = {第44卷},
+ Location = {北京},
+ Year = {1982}
+}
+
+@Article{HEWITT1984-205-218,
+ Title = {Technical services in 1983},
+ Author = {J A HEWITT},
+ Date = {1984},
+ Journaltitle = {Library Resource Services},
+ Number = {3},
+ Pages = {205-218},
+ Volume = {28}
+}
+
+@Article{McEliece1984-44-53,
+ Title = {Channels with block interference},
+ Author = {McEliece, R. J. and Stark, W. E.},
+ Journal = {IEEE Trans. Inf. Theory},
+ Number = {1},
+ Pages = {44-53},
+ Volume = {30},
+ Year = {1984}
+}
+
+@Article{陶仁骥1984-527-527,
+ Title = {密码学与数学},
+ Author = {陶仁骥},
+ Date = {1984},
+ Journaltitle = {自然杂志},
+ Number = {7},
+ Pages = {527},
+ Volume = {7}
+}
+
+@Periodical{中华医学会湖北分会1984--,
+ Title = {临床内科杂志},
+ Address = {武汉},
+ Date = {1984},
+ Editor = {中华医学会湖北分会},
+ Institution = {中华医学会湖北分会},
+ Number = {1},
+ Volume = {1}
+}
+
+@Incollection{韩吉人1985-90-99,
+ Title = {论职工教育的特点},
+ Author = {韩吉人},
+ Booktitle = {职工教育研究论文集},
+ Date = {1985},
+ Publisher = {人民教育出版社},
+ Pages = {90-99},
+ Bookauthor = {中国职工教育研究会},
+ Location = {北京}
+}
+
+@Collection{中国职工教育研究会1985--,
+ Title = {职工教育研究论文集},
+ Author = {中国职工教育研究会},
+ Location = {北京},
+ Publisher = {人民教育出版社},
+ Year = {1985}
+}
+
+@Standard{全国文献工作标准化委员会第七分委员会1986--,
+ Title = {GB/T 5795--1986 中国标准书号},
+ Author = {全国文献工作标准化委员会第七分委员会},
+ Note = {standard},
+ Year = {1986},
+ Location = {北京},
+ Publisher = {中国标准出版社}
+}
+
+@Inbook{1988-590-590,
+ Title = {卷39 乞致任第一},
+ Address = {北京},
+ Booktitle = {苏魏公文集:下册},
+ Pages = {590},
+ Publisher = {中华书局},
+ Year = {1988}
+}
+
+
+
+@Standard{国家标准局信息分类编码研究所1988-59-92,
+ Title = {世界各国和地区名称代码 GB/T 2659-1986},
+ Author = {国家标准局信息分类编码研究所},
+ Date = {1988},
+ Note = {standard},
+ Bookauthor = {全国文献工作标准化技术委员会},
+ Booktitle = {文献工作国家标准汇编},
+ Booktitleaddon = {3},
+ Location = {北京},
+ Pages = {59-92},
+ Publisher = {中国标准出版社}
+}
+
+@Online{1989--,
+ Title = {PACS-L:the public-access computer systems forum},
+ Date = {1989},
+ Publisher = {Tex: University of Houston Libraries},
+ Url = {http://info.lib.uh.edu/pacsl.html},
+ Urldate = {1995-05-17},
+ Location = {Houston}
+}
+
+@Patent{姜锡洲1989--,
+ Title = {一种温热外敷药制备方案},
+ Author = {姜锡洲},
+ Date = {1989-07-26},
+ Number = {88105607.3},
+ Titleaddon = {中国}
+}
+
+@Report{DTFHA1990--,
+ Title = {Guidelines for handling excavated acid-producing materials: PB 91-194001},
+ Author = {{U.S. Department of Transportation Federal Highway Administration}},
+ Institution = {U.S. Department of Commerce National Information Service},
+ Location = {Springfield},
+ Year = {1990}
+}
+
+@Book{PIGGOT1990--,
+ Title = {The cataloguer's way through AACR2: from document receipt to document retrieval},
+ Author = {T. M. PIGGOT},
+ Publisher = {The Library Association},
+ Year = {1990},
+ Location = {London}
+}
+
+@Article{DESMARAIS1992-605-609,
+ Title = {Carbon isotope evidence for the stepwise oxidation of the Proterozoic environment},
+ Author = {DES MARAIS, D J and H STRAUSS and R E SUMMONS and others},
+ Date = {1992},
+ Journaltitle = {Nature},
+ Pages = {605-609},
+ Volume = {359}
+}
+
+@Article{Holtzman1992-243-247,
+ Title = {On using perturbation analysis to do sensitivity analysis: derivatives versus differences},
+ Author = {Holtzman, J. M.},
+ Journal = {IEEE Trans. Autom. Control},
+ Number = {2},
+ Pages = {243-247},
+ Volume = {37},
+ Year = {1992}
+}
+
+@Article{CAPLAN1993-61-66a,
+ Title = {Cataloging internet resources},
+ Author = {P CAPLAN},
+ Date = {1993},
+ Journaltitle = {The public Access Computer Systems Review},
+ Number = {2},
+ Pages = {61-66},
+ Volume = {4}
+}
+
+@Book{广西壮族自治区林业厅1993--,
+ Title = {广西自然保护区},
+ Author = {广西壮族自治区林业厅},
+ Date = {1993},
+ Publisher = {中国林业出版社},
+ Location = {北京}
+}
+
+@Patent{刘加林1993--,
+ Title = {多功能一次性压舌板},
+ Author = {刘加林},
+ Date = {1993-04-14},
+ Number = {92214985.2},
+ Location = {中国}
+}
+
+@Book{OBRIEN1994--,
+ Title = {Introduction to information systems},
+ Author = {J A O'BRIEN},
+ Date = {1994},
+ Edition = {7},
+ Publisher = {Irwin},
+ Location = {Burr Ridge, III}
+}
+
+@Book{辛希孟1994--,
+ Title = {信息技术与信息服务国际研讨会论文集},
+ Author = {辛希孟},
+ Publisher = {中国社会科学出版社},
+ Year = {1994},
+ Location = {北京},
+ Titleaddon = {A集}
+}
+
+@Article{Andersen1995-42-49,
+ Title = {Propagation measurements and models for wireless communications channels},
+ Author = {Andersen, J. B. and Rappaport, T. S. and Yoshida, S.},
+ Journal = {IEEE Commun. Mag.},
+ Number = {1},
+ Pages = {42-49},
+ Volume = {33},
+ Year = {1995}
+}
+
+@Book{CRAWFPRD1995--,
+ Title = {Future libraries: dreams, maddness, \& reality},
+ Author = {W CRAWFPRD and M GORMAN},
+ Date = {1995},
+ Publisher = {American Library Association},
+ Location = {Chicago}
+}
+
+@Book{赵凯华1995--,
+ Title = {{新概念物理教程}},
+ Address = {北京},
+ Author = {赵凯华 and 罗蔚茵},
+ Publisher = {高等教育出版社},
+ Year = {1995}
+}
+
+@Inbook{MARTIN1996-85-96,
+ Title = {Control of electronic resources in Australia},
+ Author = {G MARTIN},
+ Bookauthor = {L W PATTLE and B J COX},
+ Booktitle = {Electronic resources},
+ Date = {1996},
+ Pages = {85-96},
+ Publisher = {The Haworth Press},
+ Booktitleaddon = {selection and bibliographic control},
+ Location = {New York}
+}
+
+@Book{国家环境保护局科技标准司1996-2-3,
+ Title = {土壤环境质量标准: GB 15616-1995},
+ Address = {北京},
+ Author = {国家环境保护局科技标准司},
+ Note = {standard},
+ Pages = {2-3},
+ Publisher = {中国标准出版社},
+ Url = {http://wenku.baidu.com},
+ Urldate = {2013-10-14},
+ Year = {1996}
+}
+
+
+
+@Inbook{钟文发1996-468-471,
+ Title = {非线性规划在可燃毒物配置中的应用},
+ Author = {钟文发},
+ Bookauthor = {赵玮},
+ Booktitle = {运筹学的理论和应用},
+ Pages = {468-471},
+ Publisher = {西安电子科技大学出版社},
+ Booktitleon = {中国运筹学会第五届大会讨论文集},
+ Location = {西安},
+ Year = {1996}
+}
+
+@Inproceedings{Nemec1997-209-214,
+ Title = {Force control of redundant robots},
+ Author = {B Nemec},
+ Booktitle = {Processings of Symposium on Robot Control},
+ Pages = {209-214},
+ Country = {Nantes France},
+ Year = {1997}
+}
+
+
+
+@Article{Andrisano1998-1383-1401,
+ Title = {Millimeter waves for short-range multimedia communication systems},
+ Author = {Andrisano, O. and Tralli, V. and Verdone, R.},
+ Journal = {Proc. IEEE},
+ Number = {7},
+ Pages = {1383-1401},
+ Volume = {86},
+ Year = {1998}
+}
+
+@Article{Chiani1998-2998-3008,
+ Title = {Error probability for block codes over channels with block interference},
+ Author = {Chiani, M.},
+ Journal = {IEEE Trans. Inf. Theory},
+ Number = {7},
+ Pages = {2998-3008},
+ Volume = {44},
+ Year = {1998}
+}
+
+@Article{CHRISTINE1998-331-332,
+ Title = {Plant physiology:plant biology in the Genome Era},
+ Author = {M CHRISTINE},
+ Date = {1998},
+ Journaltitle = {Science},
+ Pages = {331-332},
+ Volume = {281},
+ Url = {http://www.sciencemag.org/cgi/collection/anatmorp},
+ Urldate = {1998-09-23}
+}
+
+@Article{KANAMORI1998-2063-2064,
+ Title = {Shaking without quaking},
+ Author = {H KANAMORI},
+ Date = {1998},
+ Journaltitle = {Science},
+ Number = {5359},
+ Pages = {2063-2064},
+ Volume = {279}
+}
+
+@Inbook{白书农1998-146-163,
+ Title = {植物开花研究},
+ Author = {白书农},
+ Bookauthor = {李承森},
+ Booktitle = {植物科学进展},
+ Pages = {146-163},
+ Publisher = {高等教育出版社},
+ Location = {北京},
+ Year = {1998}
+}
+
+@Book{蒋有绪1998--,
+ Title = {中国森林群落分类及其群落学特征 and \XeLaTeX{}},
+ Address = {北京},
+ Author = {蒋有绪 and 郭泉水 and 马娟 and others},
+ Publisher = {科学出版社},
+ Year = {1998}
+}
+
+
+
+@Article{鲁明羽1998-290-295,
+ Title = {关于数据库系统数据词典的重要作用},
+ Author = {鲁明羽 and 李纲民},
+ Journal = {烟台大学学报自然科学与工程版},
+ Number = {4},
+ Pages = {290-295},
+ Volume = {11},
+ Year = {1998}
+}
+
+@Mastersthesis{张志祥1998--,
+ Title = {间断动力系统的随机扰动及其在守恒律方程中的应用},
+ Author = {张志祥},
+ Date = {1998},
+ Institution = {北京大学数学学院},
+ Location = {北京}
+}
+
+@Book{赵耀东1998--,
+ Title = {新时代的工业工程师},
+ Author = {赵耀东},
+ Publisher = {天下文化出版社},
+ Url = {http://www.ie.nthu.edu.tw/info/ie.newie.htm(Big5)},
+ Urldate = {1998-09-26},
+ Year = {1998},
+ Location = {台北}
+}
+
+@Article{高光明1998-60-65,
+ Title = {信号情报接收机的发展现状及趋势},
+ Author = {高光明},
+ Journal = {电讯技术},
+ Number = {2},
+ Pages = {60-65},
+ Volume = {38},
+ Month = {4},
+ Year = {1998}
+}
+
+@Article{Dardari1999-1709-1721,
+ Title = {High-speed indoor wireless communications at 60 GHz with coded OFDM},
+ Author = {Dardari, D. and Tralli,V.},
+ Journal = {IEEE Trans. Commun.},
+ Number = {11},
+ Pages = {1709-1721},
+ Volume = {47},
+ Year = {1999}
+}
+
+@InBook{程根伟1999-32-36a,
+ author = {程根伟},
+ title = {1998年长江洪水的成因与减灾对策},
+ booktitle = {长江流域洪涝灾害与科技对策},
+ year = {1999},
+ bookauthor = {许厚泽 and 赵其国},
+ publisher = {科学出版社},
+ location = {北京},
+ pages = {32-36},
+}
+
+@Article{江向东1999-4-4,
+ Title = {互联网环境下的信息处理与图书管理系统解决方案},
+ Author = {江向东},
+ Date = {1999},
+ Journaltitle = {情报学报},
+ Number = {2},
+ Pages = {4},
+ Volume = {18},
+ Url = {http://www.chinainfo.gov.cn/periodical/qbxb/qbxb99/qbxb990203},
+ Urldate = {2000-01-18}
+}
+
+@Article{李晓东1999-101-106,
+ Title = {气候学研究的若干理论问题},
+ Author = {李晓东 and 张庆红 and 叶瑾琳},
+ Date = {1999},
+ Journaltitle = {北京大学学报},
+ Number = {1},
+ Pages = {101-106},
+ Volume = {35},
+ Journaltitleaddon = {自然科学版}
+}
+
+@Article{梁振兴1999-24-32,
+ Title = {美军一体化{C\textsuperscript{4}ISR}系统的发展研究},
+ Author = {梁振兴},
+ Journal = {电子展望与决策},
+ Pages = {24-32},
+ Year = {1999}
+}
+
+@Article{刘武1999-2481-2488,
+ Title = {元谋人牙齿测量数据的统计分析及其在分类研究上的意义},
+ Author = {刘武 and 郑良 and 姜础},
+ Date = {1999},
+ Journaltitle = {科学通报},
+ Number = {23},
+ Pages = {2481-2488},
+ Volume = {44}
+}
+
+@Article{莫少强1999-1-6,
+ Title = {数字式中文全球文献格式的设计与研究},
+ Author = {莫少强},
+ Date = {1999},
+ Journaltitle = {情报学报},
+ Number = {4},
+ Pages = {1-6},
+ Volume = {18},
+ Url = {http://periodical.wanfangdata.com.cn/periodical/qbxb/qbxb99/qbxb9904/990407.htm},
+ Urldate = {2001-07-08}
+}
+
+@Book{唐绪军1999-117-121,
+ Title = {报业经济与报业经营},
+ Author = {唐绪军},
+ Date = {1999},
+ Pages = {117-121},
+ Publisher = {新华出版社},
+ Location = {北京}
+}
+
+@Proceedings{中国力学学会1999--,
+ Title = {第3届全国实验流体力学学术会议论文集},
+ Address = {天津},
+ Year = {1999},
+ Editor = {中国力学学会}
+}
+
+@Article{杨友烈1999-60-65,
+ Title = {DII COE的基本概念和技术特征},
+ Author = {杨友烈},
+ Journal = {军事通信技术},
+ Pages = {60-65},
+ Volume = {72},
+ Month = {12},
+ Year = {1999}
+}
+
+@Proceedings{GANZHA2000--,
+ Title = {Computer algebra in scientific computing:CASC 2000:proceedings of the Third
+Workshop on Computer Algebra in Scientific Computing, Samarkand, October 5-9, 2000},
+ Date = {2000},
+ Publisher = {Springer},
+ Editor = {V G GANZHA and E W MAYR and E V VOROZHTSOV},
+ Location = {Berlin}
+}
+
+@Book{Gradshteyn2000--,
+ Title = {Tables of Integrals, Series, and Products},
+ Address = {San Diego},
+ Author = {Gradshteyn, I. S. and Ryzhik,I. M.},
+ Edition = {Sixth Edition},
+ Publisher = {CA: Academic Press, Inc.},
+ Year = {2000}
+}
+
+@Book{Parsons2000--,
+ Title = {The Mobile Radio Propagation Channel},
+ Address = {Hoboken},
+ Author = {Parsons, J. D.},
+ Edition = {2},
+ Publisher = {John Wiley and Sons},
+ Year = {2000}
+}
+
+@Book{Parsons2000a--,
+ Title = {The Mobile Radio Propagation Channel},
+ Address = {Hoboken},
+ Author = {PARSONS},
+ Edition = {2},
+ Publisher = {John Wiley and Sons},
+ Year = {2000}
+}
+
+@Book{Parsons2000b--,
+ Title = {The Mobile Radio Propagation Channel},
+ Address = {Hoboken},
+ Author = {Parsons},
+ Edition = {2},
+ Publisher = {John Wiley and Sons},
+ Year = {2000}
+}
+
+@Book{Parsons2000noauthor--,
+ Title = {The Mobile Radio Propagation Channel},
+ Address = {Hoboken},
+ Edition = {2},
+ Publisher = {John Wiley and Sons},
+ Year = {2000}
+}
+
+@Book{Parsons2000noloc--,
+ Title = {The Mobile Radio Propagation Channel},
+ Author = {Parsons, J. D.},
+ Edition = {2},
+ Publisher = {John Wiley and Sons},
+ Year = {2000}
+}
+
+@Book{Parsons2000nopub--,
+ Title = {The Mobile Radio Propagation Channel},
+ Address = {Hoboken},
+ Author = {Parsons, J. D.},
+ Edition = {2},
+ Year = {2000}
+}
+
+@Book{Parsons2000nopubpages--,
+ Title = {The Mobile Radio Propagation Channel},
+ Address = {Hoboken},
+ Author = {Parsons, J. D.},
+ Edition = {2},
+ Pages = {15-20},
+ Year = {2000}
+}
+
+@Book{YUFIN2000--a,
+ Title = {Geoecology and computers},
+ Author = {S. A. YUFIN},
+ Publisher = {A. A. Balkema},
+ Year = {2000},
+ Location = {Rotterdam},
+ Titleaddon = {proceedings of the Third International Conference on Advances of
+ Computer Methods in Geotechnical and Geoenvironmental
+ Engineering, Moscow, Russia, February 1-4, 2000}
+}
+
+@Article{李炳穆2000-5-8,
+ Title = {理想的图书管理员和信息专家的素养与形象},
+ Author = {李炳穆},
+ Date = {2000},
+ Journaltitle = {图书情报工作},
+ Number = {2},
+ Pages = {5-8}
+}
+
+@Book{孙玉文2000--,
+ Title = {汉语变调构词研究},
+ Author = {孙玉文},
+ Publisher = {北京大学出版社},
+ Year = {2000},
+ Location = {北京}
+}
+
+@Article{傅刚2000--,
+ Title = {大风沙过后的思考},
+ Author = {傅刚 and 赵承 and 李佳路},
+ Date = {2000-04-12},
+ Journaltitle = {北京青年报},
+ Note = {news},
+ Url = {http://www.bjyouth.com.cn/Bqb/20000412/GB/4216%5ED0412B1401.htm},
+ Urldate = {2005-09-28}
+}% Number = {14},
+
+@Newspaper{张田勤2000--,
+ Title = {犯罪DNA库与生命伦理学计划},
+ Author = {张田勤},
+ Date = {2000-11-12},
+ Journaltitle = {大众科技报},
+ Note = {news},
+ Number = {7}
+}
+
+@Article{丁文祥2000--,
+ Title = {数字革命与竞争国际化},
+ Author = {丁文祥},
+ Date = {2000-11-20},
+ Journaltitle = {中国青年报},
+ Number = {15},
+ Note = {news}
+}
+
+@Book{booknoauthor,
+ Title = {出版集团研究},
+ Date = {2001},
+ Pages = {179-193},
+ Publisher = {中国书籍出版社},
+ Location = {北京}
+}
+
+@Book{booknolocation,
+ Title = {出版集团研究},
+ Author = {余敏},
+ Date = {2001},
+ Pages = {179-193},
+ Publisher = {中国书籍出版社}
+}
+
+@Book{booknopages,
+ Title = {出版集团研究},
+ Author = {余敏},
+ Date = {2001},
+ Publisher = {中国书籍出版社},
+ Url = {www.bla~bla.org},
+ Location = {北京}
+}
+
+@Book{booknopublisher,
+ Title = {出版集团研究},
+ Author = {余敏},
+ Date = {2001},
+ Location = {北京}
+}
+
+@Book{booknopublisherpage,
+ Title = {出版集团研究},
+ Author = {余敏},
+ Date = {2001},
+ Pages = {20-30},
+ Location = {北京}
+}
+
+@Article{Moeneclaey2001-497-505,
+ Title = {Sensitivity of multiple-access techniques to narrowband interference},
+ Author = {Moeneclaey, M. and Bladel,M. V. and Sari,H.},
+ Journal = {IEEE Trans. Commun.},
+ Number = {3},
+ Pages = {497-505},
+ Volume = {49},
+ Year = {2001}
+}
+
+@Book{PEEBLES2001--,
+ Title = {Probability, random variable and random signal principles},
+ Author = {PEEBLES, Jr., P Z},
+ Edition = {4},
+ Publisher = {McGraw Hill},
+ Year = {2001},
+ Location = {New York}
+}
+
+@Book{Peebles2001-100-100,
+ Title = {Probability, random variable, and random signal Principles and \LaTeX{}},
+ Address = {New York},
+ Author = {von Peebles, Jr., P. Z.},
+ Edition = {4},
+ Pages = {100},
+ Publisher = {McGraw-Hill},
+ Year = {2001}
+}
+
+@Inproceedings{Piazzo2001--,
+ Title = {UWB EM compatibility and coexistence issues},
+ Address = {Rome, Italy},
+ Author = {Piazzo, L.},
+ Booktitle = {Proc. 1st Int. Workshop on Networking with UWB},
+ Year = {2001}
+}
+
+@Book{ROOD2001--,
+ Title = {Logic and structured design for computer programmers},
+ Author = {H J ROOD},
+ Date = {2001},
+ Edition = {3},
+ Publisher = {Brooks/Cole-Thomson Learning}
+}
+
+@Book{Simon2001--,
+ Title = {Spread Spectrum Communications Handbook},
+ Address = {New York City},
+ Author = {Simon, M. K. and Omura,J. K. and Scholtz,R. A. and Levitt,B. K.},
+ Publisher = {McGraw-Hill, Inc.},
+ Year = {2001}
+}
+
+@Book{Stueber2001--,
+ Title = {Principles of Mobile Communication},
+ Address = {Norwell},
+ Author = {Stuber, G. L.},
+ Edition = {Second Edition},
+ Publisher = {MA: Kluwer Academic Publishers},
+ Year = {2001}
+}
+
+@Book{余敏2001-179-193,
+ Title = {出版集团研究},
+ Author = {余敏},
+ Date = {2001},
+ Pages = {179-193},
+ Publisher = {中国书籍出版社},
+ Location = {北京}
+}
+
+@Book{余敏2001-179-193a,
+ Title = {出版集团研究},
+ Author = {余敏},
+ Date = {2001},
+ Edition = {3},
+ Pages = {179-193},
+ Publisher = {中国书籍出版社},
+ Location = {北京}
+}
+
+@Book{余敏2001-179-193b,
+ Title = {出版集团研究},
+ Author = {余敏},
+ Date = {2001},
+ Edition = {2},
+ Pages = {179-193},
+ Publisher = {中国书籍出版社},
+ Location = {北京}
+}
+
+@Book{余敏2001-179-193c,
+ Title = {出版集团研究},
+ Author = {余敏},
+ Date = {2001},
+ Pages = {179-193},
+ Publisher = {中国书籍出版社},
+ Url = {http://www.baidu.com},
+ Urldate = {2001-08-04},
+ Location = {北京}
+}
+
+@Book{赵学功2001--a,
+ author = {赵学功},
+ title = {当代美国外交},
+ year = {2001},
+ publisher = {社会科学文献出版社},
+ url = {http://www.baidu.com},
+ urldate = {2014-06-11},
+}
+
+@Manual{中国第一历史档案馆2001--a,
+ author = {中国第一历史档案馆 and 辽宁省档案馆},
+ title = {中国明朝档案总汇},
+ year = {2001},
+ organization = {广西师范大学出版社},
+ address = {桂林},
+}
+
+@Article{郜宪林2001-114-116,
+ Title = {DII COE研究与分析},
+ Author = {郜宪林},
+ Journal = {计算机工程与应用},
+ Number = {19},
+ Pages = {114-116},
+ Year = {2001}
+}
+
+@Patent{河北绿洲生态环境科技有限公司2001--,
+ Title = {一种荒漠化地区生态植被综合培育种植方法},
+ Author = {河北绿洲生态环境科技有限公司},
+ Date = {2001-10-24},
+ Number = {01129210.5},
+ Url = {http://211.152.9.47/sipoasp/zlijs/hyjs-yx-new.asp?recid=01129210.5&leixin},
+ Urldate = {2002-05-28}
+}
+
+@Article{陈金成2001-1861-1864,
+ Title = {一种开放式体系结构经济型数控装置的研制},
+ Author = {陈金成 and 杨海威 and 钟廷修},
+ Journal = {上海交通大学学报},
+ Number = {12},
+ Pages = {1861-1864},
+ Volume = {35},
+ Month = {12},
+ Year = {2001}
+}
+
+@Www{萧钰2001--,
+ Title = {出版业信息化迈入快车道},
+ Author = {萧钰},
+ Url = {http://www.creader.com/news/20011219/200112190019.html},
+ Urldate = {2002-04-15},
+ Date = {2001-12-19}
+}
+
+@Inproceedings{Choi2002-1075-1080,
+ Title = {Performance analysis of ultra-wideband spread-spectrum communications in narrowband interference},
+ Address = {Anaheim, CA},
+ Author = {Choi, J. D. and Stark,W. E.},
+ Booktitle = {Proc. IEEE Military Commun. Conf. (MILCOM)},
+ Pages = {1075-1080},
+ Volume = {2},
+ Year = {2002}
+}
+
+@Inproceedings{Dardari2002-201-206,
+ Title = {Simple and accurate models for error probability evaluation of IEEE802.11 DS-SS physical interface in the presence of Bluetooth interference},
+ Address = {Taipei},
+ Author = {Dardari, D. and Pasolini,G.},
+ Booktitle = {Proc. IEEE Global Telecommun. Conf. (GLOBECOM)},
+ Pages = {201-206},
+ Volume = {1},
+ Year = {2002}
+}
+
+@Inproceedings{Foerster2002-1931-1935,
+ Title = {Interference modeling of pulse-based UWB waveforms on narrowband systems},
+ Address = {Birmingham, AL},
+ Author = {Foerster, J. R.},
+ Booktitle = {Proc. IEEE Veh. Technol. Conf.},
+ Pages = {1931-1935},
+ Volume = {4},
+ Year = {2002}
+}
+
+@Inproceedings{Fontana2002-309-313,
+ Title = {An insight into UWB interference from a shot noise perspective},
+ Address = {Baltimore, MD},
+ Author = {Fontana, R. J.},
+ Booktitle = {Proc. of IEEE Conference on Ultrawideband Systems and Technologies (UWBST)},
+ Pages = {309-313},
+ Year = {2002}
+}
+
+@Article{Haemaelaeinen2002-1712-1721,
+ Title = {On the UWB system coexistence with GSM900, UMTS/WCDMA, and GPS},
+ Author = {Hamalainen, M. M. and Hovinen,V. and Tesi,R. and Iinatti,J. H. J. and Latvaaho, M.},
+ Journal = {IEEE J. Sel. Areas Commun.},
+ Number = {9},
+ Pages = {1712-1721},
+ Volume = {20},
+ Year = {2002}
+}
+
+@Article{Zhao2002-1684-1691,
+ Title = {Performance of ultra-wideband communications in the presence of interference},
+ Author = {Zhao, L. and Haimovich,A. M.},
+ Journal = {IEEEJ. Sel. Areas Commun.},
+ Number = {9},
+ Pages = {1684-1691},
+ Volume = {20},
+ Year = {2002}
+}
+
+@Inproceedings{汪学军2002-22-25,
+ Title = {中国农业转基因生物研发进展与安全管理},
+ Address = {北京},
+ Author = {汪学军},
+ Bookauthor = {国家环境保护总局生物安全管理办公室},
+ Booktitle = {中国国家生物安全框架实施国际合作项目研讨会论文集},
+ Pages = {22-25},
+ Publisher = {中国环境科学出版社},
+ Year = {2002}
+}
+
+@Book{张伯伟2002--,
+ Title = {全唐五代诗格会考},
+ Address = {南京},
+ Author = {张伯伟},
+ Pages = {288},
+ Publisher = {江苏古籍出版社},
+ Year = {2002}
+}
+
+@Patent{西安电子科技大学2002--a,
+ author = {西安电子科技大学},
+ title = {光折变自适应光外差探测方法},
+ number = {01128777.2},
+ date = {2002-03-06},
+ url = {http://211.152.9.47/sipoasp/zljs/hyjs-yx-new.asp?recid=01128777.2&leixin=0},
+ urldate = {2002-05-28},
+}
+
+@Patent{TACHIBANA2002--,
+ Title = {Electronic watermarking method and system},
+ Author = {R TACHIBANA and S SHIMIZU and S KOBAYSHI and others},
+ Date = {2002-04-25},
+ Number = {US6915001},
+ Url = {http://patftuspto.gov/netacgi/nph-Parser?Seetl=PTO2&Sect2=HITOFF&=1&u=/netahhml/search-bool.html&r=1&f=G&1=50&col=AND&d=ptxt&sl=`Electronic+watermarking+method+system'.TTL.&OS=TTL/},
+ Urldate = {2002-05-28}
+}
+
+@Patent{KOSEKI2002--,
+ Title = {Compiler},
+ Author = {A KOSEKI and H MOMOSE and M KAWAHITO and others},
+ Date = {2002-05-25},
+ Number = {US828402},
+ Url = {http://FF&p=1&u=netahtml/PTO/search-bool.html&r=5&f=G&l=50&col=AND&d=PG01&sl=IBM.AS.&0S=AN/IBM&RS=AN/IBM},
+ Urldate = {2002-05-28}
+}
+
+@Article{Chiani2003-840-845,
+ Title = {New exponential bounds and approximations for the computation of error probability in fading channels},
+ Author = {Chiani, M. and Dardari, D. and Simon, M. K.},
+ Journal = {IEEE Trans. Wireless Commun.},
+ Number = {4},
+ Pages = {840-845},
+ Volume = {2},
+ Year = {2003}
+}
+
+@Inproceedings{Firoozbakhsh2003-473-477,
+ Title = {Analysis of IEEE 802.11a interference on UWB systems},
+ Address = {Oulu, Finland},
+ Author = {Firoozbakhsh, B. and Pratt,T. G. and Jayant,N.},
+ Booktitle = {Proc. of IEEE Conference on Ultrawideband Systems and Technologies (UWBST)},
+ Pages = {473-477},
+ Year = {2003}
+}
+
+@Electronic{OMG2003--,
+ Title = {Unified Modeling Language: Superstructure},
+ Author = {{omg Inc.}},
+ Url = {http://www.omg.org},
+ Year = {2003}
+}
+
+@Thesis{吴云芳2003--,
+ Title = {面向中文信息处理的现代汉语并列结构研究},
+ Address = {北京},
+ Author = {吴云芳},
+ Institution = {北京大学},
+ Url = {http://thesis.lib.pku.edu.cn/dlib/List.asp?lang=gb&type=Reader&DocGroupID=4&DoclD=6328},
+ Urldate = {2013-10-14},
+ Year = {2003}
+}
+
+@Thesis{吴云芳2003a--,
+ Title = {面向中文信息处理的现代汉语并列结构研究},
+ Address = {北京},
+ Author = {吴云芳},
+ Url = {http://thesis.lib.pku.edu.cn},
+ Urldate = {2013-10-14},
+ Year = {2003}
+}
+
+@Thesis{吴云芳2003b--,
+ Title = {面向中文信息处理的现代汉语并列结构研究},
+ Author = {吴云芳},
+ Institution = {北京大学},
+ Url = {http://thesis.lib.pku.edu.cn},
+ Urldate = {2013-10-14},
+ Year = {2003}
+}
+
+@Thesis{吴云芳2003c--,
+ Title = {面向中文信息处理的现代汉语并列结构研究},
+ Author = {吴云芳},
+ Url = {http://thesis.lib.pku.edu.cn},
+ Urldate = {2013-10-14},
+ Year = {2003}
+}
+
+@Article{Chiani2004-1312-1318,
+ Title = {Further results on convolutional code search for blockfading channels},
+ Author = {M. Chiani and A. Conti and V. Tralli},
+ Journal = {IEEE Trans. Inf. Theory},
+ Number = {6},
+ Pages = {1312-1318},
+ Volume = {50},
+ Year = {2004}
+}
+
+@Article{Chiani2004-1312-1318a,
+ Title = {Further results on convolutional code search for blockfading channels-a},
+ Author = {M. Chiani and A. Conti and V. Tralli},
+ Pages = {1312-1318},
+ Year = {2004}
+}
+
+@Article{Chiani2004-1312-1318b,
+ Title = {Further results on convolutional code search for blockfading channels-b},
+ Author = {M. Chiani and A. Conti and V. Tralli},
+ Pages = {1312-1318},
+ Year = {2004}
+}
+
+@Article{Coulson2004-2277-2287,
+ Title = {Narrowband interference in pilot symbol assisted OFDM systems},
+ Author = {Coulson, A. J.},
+ Journal = {IEEE Trans. Wireless Commun.},
+ Number = {6},
+ Pages = {2277-2287},
+ Volume = {3},
+ Year = {2004}
+}
+
+@Article{Dardari2004-1557-1567,
+ Title = {Layered video transmission on adaptive OFDM wireless systems},
+ Author = {Dardari, D. and Martini,M. G. and Mazzotti, M. and Chiani,M.},
+ Journal = {EURASIP Journal on Wireless Communications and Networking},
+ Number = {10},
+ Pages = {1557-1567},
+ Year = {2004}
+}
+
+@Book{Kopka2004--,
+ Title = {A Guide to LATEX and Electronic Publishing},
+ Address = {Harlow, England},
+ Author = {Helmut Kopka and Patrick W. Daly},
+ Date = {2004},
+ Edition = {4},
+ Publisher = {Addison-Wesley}
+}
+
+@Conference{Li2004-21-24,
+ Title = {Practical approaches to channel estimation and interference suppression for OFDM based UWB communications},
+ Author = {Li, Y. and Molisch,A. F. and Zhang,J.},
+ Booktitle = {Proc. of the IEEE 6th Circ. and Syst., Symp. on Emerging Technologies: Frontiers of Mobile and Wireless Communication},
+ Pages = {21-24},
+ Volume = {1},
+ Year = {2004}
+}
+
+@Book{Lin2004--,
+ Title = {Error Control Coding},
+ Address = {Englewood Cliffs},
+ Author = {Lin, S. and Daniel Costello,J.},
+ Edition = {Second Edition},
+ Publisher = {NJ:Prentice Hall},
+ Year = {2004}
+}
+
+@Book{Mittelbach2004--,
+ Title = {The LaTeX Companion},
+ Address = {Boston},
+ Author = {Frank Mittelbach and Michel Goossens and Johannes Braams and David Carlisle and Chris Rowley},
+ Edition = {Second Edition},
+ Publisher = {Addison-Wesley},
+ Year = {2004}
+}
+
+@Book{Simon2004--,
+ Title = {Digital Communication over Fading Channels},
+ Address = {Hoboken},
+ Author = {Simon, M. K. and Alouini,M. S.},
+ Publisher = {NJ: Wiley-IEEE Press},
+ Year = {2004}
+}
+
+@PhdThesis{张若凌2004--,
+ Title = {高超声速非平衡流动的计算和实验研究},
+ Author = {张若凌},
+ School = {中国空气动力研究与发展中心},
+ Year = {2004},
+ Location = {绵阳}
+}
+
+@Book{Miroslav2004--,
+ Title = {信号处理滤波器设计-基于matlab和mathematica的设计方法},
+ Address = {北京},
+ Author = {Miroslav, D. L. and Dejan, V. T. and Brian, L. E.},
+ Publisher = {电子工业出版社},
+ Translator = {朱义胜 and 董辉},
+ Year = {2004},
+ Month = {1}
+}
+
+@Book{Miroslav2003--,
+ Title = {信号处理滤波器设计方法},
+ Address = {北京},
+ Author = {Miroslav, D. L. and Dejan, V. T.},
+ Publisher = {电子工业出版社},
+ Translator = {朱义胜 and 董辉},
+ Year = {2003},
+ Month = {1}
+}
+
+@Article{Giorgetti2005-1037-1042,
+ Title = {The impact of OFDM interference on TH-PPM/BPAM transmission systems},
+ Author = {Giorgetti, A. and Dardari,D.},
+ Journal = {Proc. IEEE Veh. Technol. Conf.},
+ Pages = {1037-1042},
+ Volume = {2},
+ Year = {2005}
+}
+
+@Article{Giorgetti2005-2139-2149,
+ Title = {The effect of narrowband interference on wideband wireless communication systems},
+ Author = {Giorgetti, A. and Chiani, M. and Win, M. Z.},
+ Journal = {IEEE Trans. Commun.},
+ Number = {12},
+ Pages = {2139-2149},
+ Volume = {53},
+ Year = {2005}
+}
+
+@Article{Giorgetti2005-384-389,
+ Title = {Influence of fading on the Gaussian approximation for BPSK and QPSK with asynchronous cochannel interference},
+ Author = {Giorgetti, A. and Chiani,M.},
+ Journal = {IEEE Trans. Wireless Commun.},
+ Number = {2},
+ Pages = {384-389},
+ Volume = {4},
+ Year = {2005}
+}
+
+@Inproceedings{Giorgetti2005-794-798,
+ Title = {Coexistence of UWB and narrowband systems in Nakagami/Rice channels},
+ Address = {Aalborg, Denmark},
+ Author = {Giorgetti, A.},
+ Booktitle = {Proc. Int. Symp. on Wireless Personal Multimedia Commun. (WPMC)},
+ Pages = {794-798},
+ Year = {2005}
+}
+
+@Book{Reed2005--,
+ Title = {An Introduction to Ultrawideband Communication Systems},
+ Address = {Upper Saddle River},
+ Author = {Reed, J. H.},
+ Publisher = {NJ: Prentice Hall},
+ Year = {2005}
+}
+
+@Book{樊昌信2005--,
+ Title = {通信原理教程},
+ Address = {北京},
+ Author = {樊昌信},
+ Publisher = {电子工业出版社},
+ Year = {2005}
+}
+
+@Article{Coulson2006-2484-2492,
+ Title = {Bit error rate performance of OFDM in narrowband interference with excision filtering},
+ Author = {Coulson, A. J.},
+ Journal = {IEEE Trans. Wireless Commun.},
+ Number = {9},
+ Pages = {2484-2492},
+ Volume = {5},
+ Year = {2006}
+}
+
+@Inproceedings{Giorgetti2006--,
+ Title = {Coexistence issues in cognitive radios based on ultra-wide bandwidth systems},
+ Address = {Mykonos, Greece},
+ Author = {Giorgetti, A. and Chiani, M. and Dardari,D.},
+ Booktitle = {Proc. IEEE Int. Conf. on Cognitive Radio Oriented Wireless Net. and Comm. (CROWNCOM)},
+ Year = {2006}
+}
+
+@Article{Hu2006-1720-1724,
+ Title = {Performance of an ultra-wideband communication system in the presence of narrowband BPSK-and QPSK-modulated OFDM interference},
+ Author = {Hu, B. and Beaulieu,N. C.},
+ Journal = {IEEE Trans. Commun.},
+ Number = {10},
+ Pages = {1720-1724},
+ Volume = {54},
+ Year = {2006}
+}
+
+@Article{Molisch2006-3151-3166,
+ Title = {A comprehensive standardized model for ultrawideband propagation channels},
+ Author = {Molisch, A. F. and Cassioli, D. and Chong, C. C. and Emami, S. and Fort, A.},
+ Journal = {IEEE Trans. Antennas Propag.},
+ Number = {11},
+ Pages = {3151-3166},
+ Volume = {54},
+ Year = {2006}
+}
+
+@Article{Saito2006-169-176,
+ Title = {jadeite-bearing metagabbro in serpentinite m\'elange of the ``kurosegawa belt" in Izumi Town,Yatsushiro city, kumamoto prefecture, central kyushu},
+ Author = {Saito, M. and Miyazaki, k.},
+ Journal = {bulletin of geological survey of japan},
+ Number = {5/6},
+ Pages = {169-176},
+ Volume = {57},
+ Year = {2006}
+}
+
+@Book{郭文彬2006--,
+ Title = {通信原理--基于Matlab的计算机仿真},
+ Address = {北京},
+ Author = {郭文彬 and 桑林},
+ Publisher = {北京邮电大学出版社},
+ Year = {2006}
+}
+
+@Book{蔡敏2006--,
+ Title = {UML基础和Rose建模教程},
+ Address = {北京},
+ Author = {蔡敏 and 徐慧慧 and 黄柄强},
+ Publisher = {人民邮电出版社},
+ Year = {2006},
+ Month = {1}
+}
+
+@Article{Nasri2007-4090-4100,
+ Title = {Analysis of narrowband communication systems impaired by MB-OFDM UWB interference},
+ Author = {Nasri, A. and Schober, R. and Lampe, L.},
+ Journal = {IEEE Trans. Wireless Commun.},
+ Number = {11},
+ Pages = {4090-4100},
+ Volume = {6},
+ Year = {2007}
+}
+
+@Book{Proakis2007--,
+ Title = {Digital signal processing: Principles,algorithms, and applications},
+ Address = {北京},
+ Author = {Proakis, J. G. AND Manolakis, D. G.},
+ Edition = {第4版},
+ Publisher = {电子工业出版社},
+ Year = {2007}
+}
+
+@Article{Quek2007-2126-2139,
+ Title = {Unified analysis of UWB transmitted-reference schemes in the presence of narrowband interference},
+ Author = {Quek, T. Q. S. and Win,M. Z. and Dardari,D.},
+ Journal = {IEEE Trans. Wireless Commun.},
+ Number = {6},
+ Pages = {2126-2139},
+ Volume = {6},
+ Year = {2007}
+}
+
+@Article{Shi2007-1118-1128,
+ Title = {Impact of narrowband interference on OFDM-UWB receivers: Analysis and mitigation},
+ Author = {Shi, K. and Zhou,Y. and Kelleci,B. and Fischer, T. W. and Serpedin, E.E. and Ilker Karsilayan, A.},
+ Journal = {IEEE Trans.Signal Process.},
+ Number = {3},
+ Pages = {1118-1128},
+ Volume = {55},
+ Year = {2007}
+}
+
+@Article{Snow2007-1736-1746,
+ Title = {Error rate analysis for coded multicarrier systems over quasistatic fading channels},
+ Author = {Snow, C. and Lampe, L. and Schober,R.},
+ Journal = {IEEE Trans. Commun.},
+ Number = {9},
+ Pages = {1736-1746},
+ Volume = {55},
+ Year = {2007}
+}
+
+@Book{全国广播电视标准化技术委员会2007-1-1,
+ Title = {广播电视音像资料编目规范:第2部分~ 广播资料:GY/T202.2-2007},
+ Address = {北京},
+ Author = {全国广播电视标准化技术委员会},
+ Note = {standard},
+ Pages = {1},
+ Publisher = {国家广播电影电视局广播电视规划院},
+ Year = {2007}
+}
+
+@Article{张敏莉2007-500-503,
+ Title = {超声速短化喷管的设计和试验研究},
+ Author = {张敏莉 and 易仕和 and 赵玉新},
+ Journal = {空气动力学报},
+ Number = {4},
+ Pages = {500-503},
+ Volume = {25},
+ Year = {2007}
+}
+
+@Book{庄钊文2007--,
+ Title = {军用目标雷达散射截面预估与测量},
+ Address = {北京},
+ Author = {庄钊文 and 袁乃昌 and 莫锦军 and 刘少斌},
+ Publisher = {科学出版社},
+ Year = {2007}
+}
+
+@Article{刘晨2007-400-404,
+ Title = {体系对抗仿真模型形式规范研究},
+ Author = {刘晨 and 王维平 and 朱一凡},
+ Journal = {系统仿真学报},
+ Number = {2},
+ Pages = {400-404},
+ Volume = {19},
+ Month = {1},
+ Year = {2007}
+}
+
+@Manual{吴凌云2007--,
+ Title = {CTEX FAQ},
+ Author = {吴凌云},
+ Version = {version 0.4},
+ Month = {1},
+ Subtitle = {常见问题集},
+ Year = {2007}
+}
+
+@Article{articlemorenames,
+ Title = {Cooperation enforcement and learning for optimizing packet forwarding in autonomous wireless networks},
+ Author = {Pandana, C. and Han, Z. and Liu, K.J.R. and others},
+ Journal = {Wireless Communications, IEEE Transactions on},
+ Number = {8},
+ Pages = {3150--3163},
+ Volume = {7},
+ Publisher = {IEEE},
+ Year = {2008}
+}
+
+@Inproceedings{Nasri2008-3616-3621,
+ Title = {Performance Evaluation of BICM-OFDM Systems Impaired by UWB Interference},
+ Address = {Beijing, China},
+ Author = {Nasri, A. and Schober,R. and Lampe,L.},
+ Booktitle = {Proc. IEEE Int. Conf. on Commun.},
+ Pages = {3616-3621},
+ Year = {2008}
+}
+
+@Book{2009-155-155,
+ Title = {师伏堂日记:第4册},
+ Address = {北京},
+ Pages = {155},
+ Publisher = {北京图书馆出版社},
+ Year = {2009}
+}
+
+@Article{Chiani2009-231-254,
+ Title = {Coexistence between UWB and narrow-band wireless communication systems},
+ Author = {Chiani, M. and Giorgetti, A.},
+ Journal = {Proc. IEEE, Special Issue on UWB Technology and Emerging Applications},
+ Number = {2},
+ Pages = {231-254},
+ Volume = {97},
+ Year = {2009}
+}
+
+@Article{Pinto2009-1268-1282,
+ Title = {A stochastic geometry approach to coexistence in heterogeneous wireless networks},
+ Author = {Pinto, P. and Giorgetti,A. and Win,M. Z. and Chiani,M.},
+ Journal = {IEEE J. Sel. Areas Commun., Special Issue on Stochastic Geometry and Random Graphs for Wireless Networks},
+ Number = {7},
+ Pages = {1268-1282},
+ Volume = {27},
+ Year = {2009}
+}
+
+@Book{罗斯基2009--,
+ Title = {战前中国经济的增长},
+ Address = {杭州},
+ Author = {罗斯基},
+ Publisher = {浙江大学出版社},
+ Translator = {唐巧天 and 毛立坤 and 姜修宪},
+ Year = {2009}
+}
+
+@Book{陈希孺2009--,
+ Title = {概率论与数理统计},
+ Address = {合肥},
+ Author = {陈希孺},
+ Publisher = {中国科学技术大学出版社},
+ Year = {2009},
+ Month = {2}
+}
+
+@Book{李云霞2009--,
+ Title = {光电对抗原理与应用},
+ Address = {西安},
+ Author = {李云霞 and 蒙文 and 马丽华 and 赵尚弘},
+ Date = {2009-02},
+ Publisher = {西安电子科技大学出版社}
+}
+
+@Article{卢秋红2009-247-251,
+ Title = {基于开放式架构的反恐排爆机器人关键技术分析},
+ Author = {卢秋红 and 蒋金鹏 and 付西光},
+ Journal = {上海电机学院学报},
+ Number = {3},
+ Pages = {247-251},
+ Volume = {12},
+ Month = {9},
+ Year = {2009}
+}
+
+@Article{张庆杰2009-30-33,
+ Title = {支持无人机互操作的多数据链互连网关设计},
+ Author = {张庆杰 and 王林 and 朱华勇 and 沈林成},
+ Journal = {计算机工程},
+ Number = {20},
+ Pages = {30-33},
+ Volume = {35},
+ Month = {10},
+ Year = {2009}
+}
+
+@Article{Park2010-696-715,
+ Title = {metadata quality Control in Digital repositories and collections: criteria, semantics, and mechanisms},
+ Author = {Park, J R and tosaka, Y.},
+ Journal = {Cataloging \& classification quarterly},
+ Number = {8},
+ Pages = {696-715},
+ Volume = {48},
+ Url = {http://www.tandfonline.com},
+ Urldate = {2013-09-05},
+ Year = {2010}
+}
+
+@Article{陈建军2010-93-93,
+ Title = {从数字地球到智慧地球},
+ Author = {陈建军},
+ Journal = {国图资源导刊},
+ Number = {10},
+ Pages = {93},
+ Volume = {7},
+ Doi = {10.3969/j.issn.1672-5603.2010.10.038},
+ Url = {http://d.g.wanfangdata.com.cn},
+ Urldate = {2013-03-20},
+ Year = {2010}
+}
+
+@Article{储大同2010-721-724,
+ Title = {恶性肿瘤个体化治疗靶向药物的临床表现},
+ Author = {储大同},
+ Journal = {中华肿瘤杂志},
+ Number = {10},
+ Pages = {721-724},
+ Volume = {32},
+ Url = {http://www.sohu.com},
+ Urldate = {2014-06-25},
+ Year = {2010}
+}
+
+@book{weiner2010-38,
+ Title = {Microarchaeology: beyond the visible archaeological record},
+ Author = {Weiner, S},
+ Address = {Cambridge, Eng.},
+ Date = {2010},
+ Publisher = {Cambridge University Press Textbooks},
+ Url = {http://lib.MYLIB.COM/OPEN.aspx?id=253897},
+ Urldate = {2013-10-14},
+ pages = {38}
+}
+
+@Article{储大同2010-721-724m,
+ Title = {恶性肿瘤个体化治疗靶向药物的临床表现},
+ Author = {储大同},
+ Journal = {中华肿瘤杂志},
+ Number = {9/10},
+ Pages = {721-724},
+ Volume = {32},
+ Doi = {10.7666/d.y351065},
+ Url = {http://www.sohu.com},
+ Urldate = {2014-06-25},
+ Year = {2010}
+}
+
+@Book{候文顺2010-119-119,
+ Title = {高分子物理:高分子材料分析、选择与改性},
+ Address = {北京},
+ Author = {候文顺},
+ Pages = {119},
+ Publisher = {化学工业出版社},
+ Url = {http://apabi.lib.pku.edu.cn},
+ Urldate = {2012-11-27},
+ Year = {2010}
+}
+
+@Book{胡承正2010-112-112,
+ Title = {理论物理概论:上},
+ Address = {武汉},
+ Author = {胡承正 and 周详 and 缪灵},
+ Pages = {112},
+ Publisher = {武汉大学出版社},
+ Year = {2010}
+}
+
+@Book{美国妇产科医师学会2010-38-39,
+ Title = {新生儿脑病和脑性瘫痪发病机制与病理生理},
+ Address = {北京},
+ Author = {美国妇产科医师学会},
+ Pages = {38-39},
+ Publisher = {人民卫生出版社},
+ Translator = {段涛 and 杨慧霞},
+ Year = {2010}
+}
+
+@Book{全国信息文献标准化技术委员会2010-3-3,
+ Title = {文献著录:第4部分~ 非书资料:GB/T3792.4-2009},
+ Address = {北京},
+ Author = {全国信息文献标准化技术委员会},
+ Note = {standard},
+ Pages = {3},
+ Publisher = {中国标准出版社},
+ Year = {2010}
+}
+
+@Article{伍江华2010-70-74,
+ Title = {C4ISR互操作框架及信息关系模型研究},
+ Author = {伍江华 and 潘小群},
+ Journal = {舰船电子工程},
+ Number = {1},
+ Pages = {70-74},
+ Volume = {30},
+ Year = {2010}
+}
+
+@Book{王雪松2010--,
+ Title = {现代雷达电子战系统建模与仿真},
+ Address = {北京},
+ Author = {王雪松 and 肖顺平 and 冯德军 and 赵锋},
+ Date = {2010-03},
+ Publisher = {电子工业出版社}
+}
+
+@Book{Ross2010--,
+ Title = {概率论基础教程},
+ Address = {北京},
+ Author = {Ross, S. M.},
+ Edition = {第8版},
+ Publisher = {人民邮电出版社},
+ Translator = {郑忠国 and 詹从赞},
+ Year = {2010},
+ Month = {4}
+}
+
+@Book{陈志杰2006--,
+ Title = {LaTeX 入门与提高},
+ Address = {北京},
+ Author = {陈志杰 and 赵书钦 and 李树钧 and 万福永},
+ Edition = {第二版},
+ Publisher = {高等教育出版社},
+ Year = {2010},
+ Month = {5}
+}
+
+@Manual{Umeki2010--,
+ Title = {The geometry package},
+ Author = {Hideo Umeki},
+ Version = {v5.6},
+ Month = {09},
+ Year = {2010}
+}
+
+@Report{Calkin2011-8-9,
+ Title = {a comparative risk assessment framework for wildland fire management: the 2010 cohesive strategy Science report: RMRS-GTR-262},
+ Author = {Calkin, D and Ager, a. and Thompson, m.},
+ Pages = {8-9},
+ Year = {2011}
+}
+
+@Book{Praetzellis2011-13-13,
+ Title = {death by theory : a tale of mystery and archaeological theory},
+ Author = {Praetzellis, A.},
+ Edition = {Rev. ed.},
+ Pages = {13},
+ Publisher = {Rowman \& Littlefield Publishing Group, Inc.},
+ Url = {http://lib.myilibrary.com},
+ Urldate = {2012-07-26},
+ Year = {2011}
+}
+
+@Proceedings{陈志勇2011--,
+ Title = {中国财税文化价值研究:“中国财税文化国际学术研讨会”论文集},
+ Address = {北京},
+ Author = {陈志勇},
+ Publisher = {经济科学出版社},
+ Url = {http://apabi.lib.pku.edu.cn},
+ Urldate = {2013-10-14},
+ Year = {2011}
+}
+
+@InProceedings{贾东琴2011-45-52a,
+ author = {贾东琴 and 柯平},
+ title = {面向数字素养的高校图书馆数字服务体系研究},
+ booktitle = {中国图书馆学会年会论文集:2011年卷},
+ year = {2011},
+ publisher = {国家图书馆出版社},
+ pages = {45-52},
+ address = {北京},
+ bookauthor = {中国图书馆学会},
+}
+
+@Inbook{楼梦麟2011-11-12,
+ Title = {汶川地震基岩地震动特征分析},
+ Address = {上海},
+ Author = {楼梦麟 and 杨燕},
+ Bookauthor = {同济大学土木工程防灾国家重点实验室},
+ Booktitle = {汶川地震震害研究},
+ Pages = {{011-012}},
+ Publisher = {同济大学出版社},
+ Url = {http://apabi.lib.pku.edu.cn},
+ Urldate = {2013-05-09},
+ Year = {2011}
+}
+
+@Thesis{马欢2011-27-27,
+ Title = {人类活动影响下海河流域典型区水循环变化分析},
+ Address = {北京},
+ Author = {马欢},
+ Institution = {清华大学},
+ Pages = {27},
+ Url = {http://www.cnki.net/kcms/detail/detail.aspx?dbcode=CDFD&QueryID=.O&CurRec=11&dbname=CDFDLAST2013&.filename=1012035905.nh&uid=WEEvRE­wSIJHSldTTGJhYIJRaEhGUXFQWVB6SGZXeisxdmVhV3Zy2kpoUnozeDElbOpaMONmMjZiQ3p4TUdmcw= },
+ Urldate = {2013-10-14},
+ Year = {2011}
+}
+
+@InBook{2011-1109-1109,
+ title = {周易外传:卷5},
+ booktitle = {船山全书:第6册},
+ year = {2011},
+ bookauthor = {王夫之},
+ publisher = {岳麓书社},
+ location = {长沙},
+ pages = {1109},
+}
+
+@Book{胡伟2011--,
+ Title = {LaTeX2$\varepsilon$完全学习手册},
+ Address = {北京},
+ Author = {胡伟},
+ Publisher = {清华大学出版社},
+ Year = {2011},
+ Month = {1}
+}
+
+@Manual{Oetiker2011--,
+ Title = {The Not So Short Introduction to \LaTeXe{}},
+ Author = {Tobias Oetiker and Hubert Partl and Irene Hyna and Elisabeth Schleg},
+ Month = {4},
+ Year = {2011}
+}
+
+@Article{陈高峰2011-230-232,
+ Title = {基于开放式框架的交叉开发环境设计与实现},
+ Author = {陈高峰},
+ Journal = {煤炭技术},
+ Number = {6},
+ Pages = {230-232},
+ Volume = {30},
+ Month = {6},
+ Year = {2011}
+}
+
+@Manual{Robertson2011--,
+ Title = {The ccaption package},
+ Author = {Will Robertson and Peter Wilson and Herries Press},
+ Version = {v3.2c},
+ Month = {8},
+ Year = {2011}
+}
+
+@Article{谭跃进2011-441-445,
+ Title = {体系工程的研究与发展},
+ Author = {谭跃进 and 赵青松},
+ Journal = {中国电子科学研究院学报},
+ Number = {5},
+ Pages = {441-445},
+ Volume = {6},
+ Month = {10},
+ Year = {2011}
+}
+
+@Manual{Sommerfeldt2011--,
+ Title = {Customizing captions of floating environments},
+ Author = {Axel Sommerfeldt},
+ Url = {http://sourceforge.net/projects/latex-caption/},
+ Month = {11},
+ Year = {2011}
+}
+
+@Article{张晓琴2011--,
+ Title = {有重复组合公式的几种证明方法},
+ Author = {张晓琴 and 王顺勇},
+ Journal = {大学数学},
+ Number = {6},
+ Volume = {27},
+ Month = {12},
+ Year = {2011}
+}
+
+@Book{Kinchy2012-50-50,
+ Title = {Seeds, Sciences, and struggle : the global politics of transgenic crops},
+ Address = {Cambridge,Mass.},
+ Author = {Kinchy, A.},
+ Pages = {50},
+ Publisher = {MIT Press},
+ Url = {http://lib.myilibary.com},
+ Urldate = {2013-07-14},
+ Year = {2012}
+}
+
+@Book{库恩2012--,
+ Title = {科学革命的结构:第4版},
+ Address = {北京},
+ Author = {库恩},
+ Edition = {2},
+ Publisher = {北京大学出版社},
+ Translator = {金吾伦 and 胡新和},
+ Year = {2012}
+}
+
+@Proceedings{雷光春2012--,
+ Title = {综合湿地管理:综合湿地管理国际研讨会论文集},
+ Address = {北京},
+ Author = {雷光春},
+ Publisher = {海洋出版社},
+ Year = {2012}
+}
+
+@Article{于潇2012-1518-1523,
+ Title = {互联网药品可信交易环境中主体资质审核备案模式},
+ Author = {于潇 and 刘义 and 柴跃廷 and others},
+ Journal = {清华大学学报(自然科学版)},
+ Number = {11},
+ Pages = {1518-1523},
+ Volume = {52},
+ Year = {2012}
+}
+
+@Article{于潇2011-15-23,
+ Title = {互联网药品可信交易环境中主体资质审核备案模式},
+ Author = {于, 潇 and 刘, 义 and 柴, 跃廷 and others},
+ Journal = {清华大学学报},
+ Number = {11},
+ Pages = {15-23},
+ Volume = {52},
+ Year = {2011}
+}
+
+@Proceedings{中国社会科学院台湾史研究中心2012--,
+ Title = {台湾光复六十五周年暨抗战史实学术研讨会论文集},
+ Address = {北京},
+ Publisher = {九州出版社},
+ Year = {2012},
+ Editor = {中国社会科学院台湾史研究中心}
+}
+
+@Book{埃伯哈德$ullet$蔡德勒等2012--,
+ Title = {数学指南-实用数学手册},
+ Address = {北京},
+ Author = {埃伯哈德$\bullet$蔡德勒等},
+ Publisher = {科学出版社},
+ Translator = {李文林等},
+ Year = {2012},
+ Month = {1}
+}
+
+@Book{廖平2012--,
+ Title = {导弹突防中的电子对抗技术},
+ Address = {北京},
+ Author = {廖平 and 姜勤波},
+ Date = {2012-01},
+ Publisher = {国防工业出版社}
+}
+
+@Patent{张凯军2012-04-05--,
+ Title = {轨道火车及高速轨道火车紧急安全制动辅助装置},
+ Author = {张凯军},
+ Number = {201220158825.2},
+ Year = {2012-04-05}
+}
+
+@Online{李强2012-05-03--,
+ Title = {化解医患矛盾需釜底抽薪},
+ Author = {李强},
+ Url = {http://wenku.baidu.com},
+ Urldate = {2013-03-25},
+ Year = {2012-05-03}
+}
+
+@Online{Dublin2012-06-14--,
+ Title = {Dublin core metadata element set: version 1.1},
+ Url = {http://dublincore.org},
+ Urldate = {2014-06-11},
+ Year = {2012-06-14}
+}
+
+@Book{胡广书2012--,
+ Title = {数字信号处理—理论、算法与实现},
+ Address = {北京},
+ Author = {胡广书},
+ Edition = {第三版},
+ Publisher = {清华大学出版社},
+ Year = {2012},
+ Month = {10}
+}
+
+@Article{Franz2013-1053-1062,
+ Title = {Phenotypic screening with oleaginous microalgae reveals modulators of lipid productivity},
+ Author = {Franz,A.K. AND DANIELEWICZ, M. A. AND WONG, D. M. AND OTHERS},
+ Journal = {ACS chemical biology},
+ Pages = {1053-1062},
+ Volume = {8},
+ Url = {http://pubs.acs.org},
+ Urldate = {2014-06-26},
+ Year = {2013}
+}
+
+@Article{Walls2013-399-418,
+ Title = {drought, deluge and declines: the impact of precipition extremes on amphibians in a changing climate},
+ Author = {Walls, S C and barichivich, W. J. and BROWN, m. e.},
+ Journal = {Biology},
+ Number = {1},
+ Pages = {399-418},
+ Volume = {2},
+ Url = {http://www.mdpi.com},
+ Urldate = {2013-11-04},
+ Year = {2013},
+ doi = {10.3390/biology2010399}
+}
+
+@Article{Zhang2007-500-503,
+ Title = {The design and experimental investigations of supersonic length shorted nozzle},
+ Author = {Zhang, Min-li and Yi, Shi-he and Zhao, Yu-xin},
+ Journal = {ACTA AERODYNAMICA SINICA},
+ Number = {4},
+ Pages = {500-503},
+ Volume = {25},
+ Year = {2007}
+}
+
+@Book{Yi2013--,
+ Title = {Supersonic and hypersonic nozzle design},
+ Address = {Beijing},
+ Author = {Yi, Shi he and Zhao, Yu xin and He, Lin and Zhang, Min li},
+ Publisher = {National Defense Industry Press},
+ Year = {2013}
+}
+
+@Book{LIAO2012--,
+ Title = {Electronic countermeasure techniques for missile penetration},
+ Address = {Beijing},
+ Author = {LIAO, ping and JIANG, qin bo},
+ Publisher = {National Defense Industry Press},
+ Year = {2013}
+}
+
+@Book{LIU2003--,
+ Title = {Introduction of Ballistic Misille Techniques},
+ Address = {Beijing},
+ Author = {LIU, shi Qiu},
+ Publisher = {China Astronautic Publishing House},
+ Year = {2003}
+}
+
+@InBook{马克思2013-302-302a,
+ author = {马克思},
+ title = {政治经济学批判},
+ booktitle = {马克思恩格斯全集:第35卷},
+ year = {2013},
+ bookauthor = {马克思 and 恩格斯},
+ publisher = {人民出版社},
+ pages = {302},
+ address = {北京},
+}
+
+@Article{杨洪升2013-56-75,
+ Title = {四库馆私家抄校书考略},
+ Author = {杨洪升},
+ Journal = {文献},
+ Number = {1},
+ Pages = {56-75},
+ Year = {2013}
+}
+
+@Book{易仕和2013--,
+ Title = {超声速和高超声速喷管设计},
+ Address = {北京},
+ Author = {易仕和 and 赵玉新 and 何霖 and 张敏莉},
+ Publisher = {国防工业出版社},
+ Year = {2013}
+}
+
+@Article{詹广平2013-8-10,
+ Title = {美海军宙斯盾系统开放式体系结构研究},
+ Author = {詹广平},
+ Journal = {舰船电子工程},
+ Number = {11},
+ Pages = {8-10},
+ Volume = {33},
+ Year = {2013}
+}
+
+@Book{中国企业投资协会2013--,
+ Title = {投资台湾:大陆企业赴台投资指南},
+ Address = {北京},
+ Author = {中国企业投资协会 and 台湾并购与私募股权协会 and 汇盈国际投资集团},
+ Publisher = {九州出版社},
+ Year = {2013}
+}
+
+@Article{周学武2013-49-52,
+ Title = {数据链技术的发展及其在空面导弹中的应用},
+ Author = {周学武 and 邹敏怀 and 张邦楚 and 黄剑斌 and 刘涛},
+ Journal = {教练机},
+ Number = {2},
+ Pages = {49-52},
+ Year = {2013}
+}
+
+@Book{Poisel2013--,
+ Title = {通信电子战原理},
+ Address = {北京},
+ Author = {Poisel, Richard A.},
+ Edition = {2版},
+ Pages = {23--26},
+ Publisher = {电子工业出版社},
+ Translator = {聂皞 and 王振华 and 陈少昌 and 吴利民},
+ Url = {http://www.baidu.com},
+ Urldate = {2013-08-01},
+ Year = {2013},
+ Month = {1}
+}
+
+@Article{王雪峥2013-249-254,
+ Title = {基于DoDAF的靶场体系结构设计},
+ Author = {王雪峥 and 许雪梅},
+ Journal = {系统工程理论与实践},
+ Number = {1},
+ Pages = {249-254},
+ Volume = {33},
+ Month = {1},
+ Year = {2013}
+}
+
+@Book{阎毅2013--,
+ Title = {软件无线电与认知无线电概论},
+ Address = {北京},
+ Author = {阎毅 and 贺鹏飞},
+ Publisher = {电子工业出版社},
+ Year = {2013},
+ Month = {1}
+}
+
+@Article{刘裕国2013-01-12--,
+ Title = {雾霾来袭,如何突围},
+ Author = {刘裕国 and 杨柳 and 张洋 and OTHERS},
+ Journal = {人民日报},
+ Note = {news},
+ Url = {http://paper.people.com.cn},
+ Urldate = {2013-11-06},
+ Year = {2013-01-12}
+}
+
+@Report{中华人民共和国国务院新闻办公室2013-04-16--,
+ Title = {国防白皮书:中国武装力量的多样化运用},
+ Author = {中华人民共和国国务院新闻办公室},
+ Url = {http://www.mod.gov.cn},
+ Urldate = {2014-06-11},
+ Year = {2013},
+ date = {2013-04-16}
+}
+
+@Book{刘海洋2013--,
+ Title = {LaTeX 入门},
+ Address = {北京},
+ Author = {刘海洋},
+ Publisher = {电子工业出版社},
+ Year = {2013},
+ Month = {6}
+}
+
+@Unpublished{包太雷2013--,
+ Title = {LaTeX Notes},
+ Author = {包太雷},
+ Edition = {第二版},
+ Month = {9},
+ Subtitle = {雷太赫排版系统简介},
+ Year = {2013}
+}
+
+@Report{汤万金2013-09-30--,
+ Title = {人体安全重要技术标准研制最终报告: 7178999X},
+ Author = {汤万金 and 杨跃翔 and 刘文 and others},
+ Url = {http://www.nstrs.org.cn},
+ Urldate = {2014-06-24},
+ date = {2013-09-30},
+ Year = {2013}
+}
+
+@Manual{Lehman2013--,
+ Title = {The biblatex Package},
+ Author = {Philipp Lehman and Philip Kime and Audrey Boruvka and Joseph Wright},
+ Version = {version 2.8a},
+ Month = {11},
+ Subtitle = {Programmable Bibliographies and Citations},
+ Year = {2013}
+}
+
+@Proceedings{Babu2014--,
+ Title = {Proceedings of the second international conference on soft computing for problem solving, December 28-30, 2012},
+ Address = {New Delhi},
+ Publisher = {Springer},
+ Year = {2014},
+ Editor = {Babu, B. V. and NAGAR, A. K. AND DEEP, K. and others}
+}
+
+@Book{同济大学数学系2014--,
+ Title = {高等数学},
+ Address = {北京},
+ Author = {同济大学数学系},
+ Publisher = {高等教育出版社},
+ Year = {2014},
+ Month = {7}
+}
+
+@Book{杨林2015--,
+ Title = {面向对象软件工程与UML实践教程},
+ Address = {北京},
+ Author = {杨林 and 叶亚琴 and 方芳},
+ Publisher = {科学出版社},
+ Year = {2015},
+ Month = {1}
+}
+
+@Manual{Braams2015--,
+ Title = {The \LaTeXe{} Sources},
+ Author = {Johannes Braams and David Carlisle and Alan Jeffrey and Leslie Lamport and Frank Mittelbach and Chris Rowley and Rainer Sch¨opf},
+ Date = {2015-01-01}
+}
+
+@Manual{Lehman2015,
+ Title = {The Biblatex Package: Programmable Bibliographies and Citations},
+ Author = {Philipp Lehman and Philip Kime and Audrey Boruvka and Joseph Wright},
+ Date = {2015-04-20},
+ Version = {3.0}
+}
+
+@Book{中华人民共和国国家质量监督检验检疫总局2015,
+ Title = {中华人民共和国国家标准 GB/T 7714-2015 信息与文献 参考文献著录规则},
+ Author = {中华人民共和国国家质量监督检验检疫总局 and 中国国家标准化管理委员会},
+ Date = {2015-05-15},
+ Note = {standard}
+}
+
+@Article{高翔2015-26-31,
+ Title = {复杂航电架构的开放式系统标准研究},
+ Author = {高翔 and 李辰},
+ Journal = {航空电子技术},
+ Number = {2},
+ Pages = {26-31},
+ Volume = {46},
+ Month = {6},
+ Year = {2015}
+}
+
+@Manual{Mittelbach2015--,
+ Title = {An environment for multicolumn output},
+ Author = {Frank Mittelbach},
+ Month = {12},
+ Year = {2015}
+}
+
+@Manual{Berry2016--,
+ Title = {TEX Live 指南—2016},
+ Author = {Karl Berry},
+ Date = {2016-06}
+}
+
+@Manual{胡振震2016,
+ Title = {符合 GB7714-2015 标准的 biblatex 参考文献样式文件},
+ Author = {胡振震},
+ Date = {2016-07-01},
+ Url = {https://ctan.org/pkg/biblatex-gb7714-2015},
+ Urldate = {2018-04-23}
+}
+
+@Online{Alliance--,
+ Title = {WiMedia Alliance},
+ Url = {www.wimedia.org}
+}
+
+@Book{booknodate,
+ Title = {出版集团研究},
+ Author = {余敏},
+ Pages = {179-193},
+ Publisher = {中国书籍出版社},
+ Location = {北京}
+}
+
+@Book{booknopublishernoyear,
+ Title = {出版集团研究},
+ Author = {余敏},
+ Location = {北京}
+}
+
+@Online{Commonwealth--,
+ Title = {Pennsylvania library laws},
+ Author = {{Commonwealth libraries bureau of library development.Pennsylvania department of education office}},
+ Url = {http://www.racc.edu},
+ Urldate = {2013-03-24}
+}
+
+@Report{Eggrers--,
+ Title = {One-dimensional flows of an imperfect diatomic gas},
+ Author = {Eggrers, A. J.},
+ Number = {959},
+ Type = {NACA report}
+}
+
+@Online{HOPKINSON--,
+ Title = {UNIMARC and metadata: Dublin Core},
+ Author = {A HOPKINSON},
+ Url = {http://www.rfla.org/IV/rfla64/13801613.htm},
+ Urldate = {1999-12-08}
+}
+
+@Online{JabRef中文手册--,
+ Title = {JabRef中文手册},
+ Url = {http://blog.csdn.net/zd0303/article/details/7676807}
+}
+
+@Online{JabRefManual--,
+ Title = {JabRef Manual},
+ Url = {http://blog.csdn.net/zd0303/article/details/7676807}
+}
+
+@Online{OCLC--a,
+ author = {{Online Computer Library Center, Inc.}},
+ title = {History of OCLC},
+ url = {http://www.oclc.org/about/history/default.htm},
+ urldate = {2000-01-08},
+}
+
+@Book{Parsons2000nodate--,
+ Title = {The Mobile Radio Propagation Channel},
+ Address = {Hoboken},
+ Author = {Parsons, J. D.},
+ Edition = {2},
+ Publisher = {John Wiley and Sons}
+}
+
+@Book{Parsons2000nopubnoyear--,
+ Title = {The Mobile Radio Propagation Channel},
+ Address = {Hoboken},
+ Author = {Parsons, J. D.},
+ Edition = {2}
+}
+
+@Book{standardinfoiso158,
+ Title = {Information and documentation-the Dublin core metadata element set:ISO 15836:2009},
+ Note = {standard},
+ Url = {http://www.iso.org},
+ Urldate = {2013-03-24}
+}
+
+@Book{鸟哥--,
+ Title = {鸟哥的linux私房菜},
+ Author = {鸟哥},
+ Edition = {3},
+ Publisher = {人民邮电出版社}
+}
+
+@Online{olqa2016--,
+ Title = {求助beamerposter制作海报时参考文献样式的问题},
+ Date = {2016},
+ Url = {http://bbs.ctex.org/forum.php?mod=viewthread&tid=153061&page=1&extra=#pid544787}
+}
+
+@Online{北京交通大学研究生公众号2016--,
+ Title = {新学期定个小目标—学会在LaTeX中管理参考文献},
+ Author = {北京交通大学研究生公众号},
+ Date = {2016-09-17},
+ Url = {http://www.latexstudio.net/archives/7488}
+}
+
+@Online{olref2016--,
+ Title = {如何在LaTeX写作中管理参考文献?},
+ Date = {2016-08-12},
+ Url = {http://www.latexstudio.net/archives/7131}
+}
+
+@Online{文献助手2016--,
+ Title = {参考文献格式搜索神器上线了},
+ Author = {文献助手},
+ Date = {2016-09-21},
+ Url = {http://www.latexstudio.net/archives/7560}
+}
+
+@Book{IFLAI1977b--,
+ Title = {Names of persons: national usages for entry in catalogues},
+ Author = {{International Federation of Library Association and Institutions} and {FCC} and {FBI} and {CIA}},
+ Edition = {3},
+ Publisher = {IFLA International Office for UBC},
+ Year = {1977},
+ Location = {London}
+}
+
+@Inproceedings{r27-BenHadjAlaya-FekiA.2008-1-5,
+ Title = {Interference cartography for hierarchical dynamic spectrum access},
+ Address = {Chicago, IL},
+ Author = {{Ben Hadj Alaya-Feki A.} and B. Sayrac and S. Ben Jemaa and E. Moulines},
+ Booktitle = {Proc. IEEE Symp. on New Frontiers in Dynamic Spectrum Access Networks (DySPAN)},
+ Date = {2008-10},
+ Pages = {1-5}
+}
+
+@Book{中国企业投资协会2014--,
+ Title = {投资台湾:大陆企业赴台投资指南},
+ Address = {北京},
+ Author = {{中国企业投资协会} and 台湾并购与私募股权协会 and 汇盈国际投资集团 and 国际投资集团},
+ Publisher = {九州出版社},
+ Year = {2014}
+}
+
+@Book{中国企业投资协会2015--,
+ Title = {投资台湾:大陆企业赴台投资指南},
+ Address = {北京},
+ Author = {中国企业投资协会 and 台湾并购与私募股权协会 and 汇盈国际投资集团 and 国际投资集团},
+ Publisher = {九州出版社},
+ Year = {2015}
+}
+
+@Manual{Tantau2015--,
+ Title = {The beamer class -- User Guide for version 3.36},
+ Author = {Till Tantau and Joseph Wright and Vedran Miletić},
+ Date = {2015-03-08},
+ Url = {http://bitbucket.org/rivanvx/beamer}
+}
+
+@Manual{Oetiker--,
+ Title = {一份不太简短的LATEX2ε介绍},
+ Author = {Tobias Oetiker and Hubert Partl and Irene Hyna and Elisabeth Schlegl},
+ Date = {2017-03},
+ Translator = {ChinaTEX论坛},
+ Url = {https://ctan.org/pkg/lshort-zh-cn},
+ Urldate = {2018-04-23},
+ Version = {5.10}
+}
+
+@Manual{Daly2010--,
+ Title = {Natural Sciences Citations and References (package natbib)},
+ Author = {Patrick W. Daly},
+ Date = {2010-09-13},
+ Url = {https://ctan.org/pkg/natbib},
+ Urldate = {2018-04-27},
+ Version = {8.31b}
+}
+
+@Manual{Arseneau2010--,
+ Title = {chapterbib multiple bibliographies in LATEX},
+ Author = {Donald Arseneau},
+ Date = {2010-09-05},
+ Url = {https://ctan.org/pkg/chapterbib},
+ Urldate = {2018-04-23}
+}
+
+@Manual{Shell2013--,
+ Title = {Mciteplus: Enhanced Multicitations},
+ Author = {Michael Shell},
+ Date = {2013-09-13},
+ Url = {https://ctan.org/pkg/mciteplus},
+ Urldate = {2018-04-23},
+ Version = {1.2}
+}
+
+@Online{Hansen2008--,
+ Title = {The multibib Package},
+ Author = {Thorsten Hansen},
+ Date = {2008-12-10},
+ Url = {https://www.ctan.org/pkg/multibib},
+ Urldate = {2018-05-04},
+ Version = {v1.4}
+}
+
+@Online{Seindal1994--,
+ Title = {Inline bibliography style},
+ Author = {René Seindal},
+ Date = {1994-12-06},
+ Url = {https://www.ctan.org/pkg/inlinebib},
+ Urldate = {2018-05-04}
+}
+
+@Book{booknopubitems,
+ Title = {出版集团研究},
+ Author = {余敏},
+ Date = {2001},
+ Pages = {50-63}
+}
+
+@Comment{jabref-meta: databaseType:biblatex;}
+
+@Comment{jabref-entrytype: Newspaper: req[] opt[]}
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015-gbk.def b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015-gbk.def
index 402e13df90..b2dc830eb6 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015-gbk.def
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015-gbk.def
@@ -1,28 +1,28 @@
-%%
-%% ---------------------------------------------------------------
-%% biblatex-gb7714-2015 --- A biblatex implementation of the
-%% GBT7714-2015 bibliography style, GBK supported file
-%% Maintained by huzhenzhen
-%% E-mail: hzzmail@163.com
-%% Released under the LaTeX Project Public License v1.3c or later
-%% ---------------------------------------------------------------
-%%
-
- \def\str@bibliography{ο}
- \def\str@references{ο}
- \def\str@bytranslator{}
- \def\str@andotherscn{}
- \def\str@andcn{}
- \def\str@backrefpage{ҳ}
- \def\str@backrefpages{ҳ}
- \def\str@noaddress{ز}
- \def\str@nopublisher{߲}
- \def\str@edition{}
- \def\str@volumecn{}
- \def\str@numbercn{}
- \def\str@serialcn{}
- \def\str@sameentry{ͬ}
- \def\str@incn{}
- \def\str@mathesiscn{˶ʿѧλ}
- \def\str@phdthesiscn{ʿѧλ}
- \def\str@editorcn{}
+%%
+%% ---------------------------------------------------------------
+%% biblatex-gb7714-2015 --- A biblatex implementation of the
+%% GBT7714-2015 bibliography style, GBK supported file
+%% Maintained by huzhenzhen
+%% E-mail: hzzmail@163.com
+%% Released under the LaTeX Project Public License v1.3c or later
+%% ---------------------------------------------------------------
+%%
+
+ \def\str@bibliography{ο}
+ \def\str@references{ο}
+ \def\str@bytranslator{}
+ \def\str@andotherscn{}
+ \def\str@andcn{}
+ \def\str@backrefpage{ҳ}
+ \def\str@backrefpages{ҳ}
+ \def\str@noaddress{ز}
+ \def\str@nopublisher{߲}
+ \def\str@edition{}
+ \def\str@volumecn{}
+ \def\str@numbercn{}
+ \def\str@serialcn{}
+ \def\str@sameentry{ͬ}
+ \def\str@incn{}
+ \def\str@mathesiscn{˶ʿѧλ}
+ \def\str@phdthesiscn{ʿѧλ}
+ \def\str@editorcn{}
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.bbx
index 0da0841ee9..40065b5686 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.bbx
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.bbx
@@ -1,3900 +1,4034 @@
-%%
-%% ---------------------------------------------------------------
-%% biblatex-gb7714-2015 --- A biblatex implementation of the
-%% GBT7714-2015 bibliography style,numerical sequence
-%% Maintained by huzhenzhen
-%% E-mail: hzzmail@163.com
-%% Released under the LaTeX Project Public License v1.3c or later
-%% ---------------------------------------------------------------
-%%
-
-%
-% 版本和时间信息
-%
-\def\versionofgbtstyle{2021/01/19 v1.0w}
-\def\versionofbiblatex{\abx@version}
-\ProvidesFile{gb7714-2015.bbx}[\versionofgbtstyle biblatex bibliography style]
-%\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求
-
-%=====================================================================
-% 加载标准样式
-%=====================================================================
-\RequireBibliographyStyle{numeric-comp}
-\RequirePackage{xstring}%解决texlive2015的biblatex3.0不加载xstring包的问题
-
-
-%=====================================================================
-% 功能函数
-%=====================================================================
- %
- % biblatex版本判断
- % 20180405,v1.0k,为兼容biblatexv3.11增加toggle:iftlnine,HU zhenzhen
- % 20181020,v1.0n,为不再使用xstring宏包做的修改,hzz
- %
- % 原理方法:当版本继续更新时,增加一个新的toggle用以处理新的旧版,最新版和未判断出来的版本永远用iftlatest
- \providetoggle{iftlfive}\togglefalse{iftlfive} %处理biblatex3.2之前版本,时间2016-03-01前
- \providetoggle{iftlsix}\togglefalse{iftlsix} %处理biblatex3.3开始改变姓名机制后版本,时间2016-03-01及以后
- \providetoggle{iftlseven}\togglefalse{iftlseven}%处理biblatex3.7的兼容性,时间2016-12-01后
- \providetoggle{iftleight}\togglefalse{iftleight}%处理biblatex3.8到3.9的兼容性,时间2017-11-01后到2017-12-01前
- \providetoggle{iftlnine}\togglefalse{iftlnine} %处理biblatex10的兼容性,时间2017-12-01后
- \providetoggle{iftlatest}\toggletrue{iftlatest} %假设是最新版biblatex
-
- \@ifpackagelater{biblatex}{2014/04/01}{
- \@ifpackagelater{biblatex}{2016/03/01}{
- \@ifpackagelater{biblatex}{2016/12/01}{
- \@ifpackagelater{biblatex}{2017/11/01}{
- \@ifpackagelater{biblatex}{2017/12/01}{
- \@ifpackagelater{biblatex}{2018/02/19}{}
- {\toggletrue{iftlnine}\togglefalse{iftlatest}}}
- {\toggletrue{iftleight}\togglefalse{iftlatest}}}
- {\toggletrue{iftlseven}\togglefalse{iftlatest}}}
- {\toggletrue{iftlsix}\togglefalse{iftlatest}}}
- {\toggletrue{iftlfive}\togglefalse{iftlatest}}}
- {\PackageError{biblatex}{Outdated 'biblatex' package}
- {Please update biblatex, This is a fatal error.}}
-
- \newcommand\defversion[2]{\csdef{codeversion#1#2}}%定义不同版本的命令
- \newcommand\switchversion[2]{\csuse{codeversion#1#2}}%使用不同版本的命令
-
- %
- % 判断CJK字符的函数,用于判断作者等信息是否由中文字符构成
- % v1.0k,20180509,hzz
- %
- % 原理方法:用biber中的perl方法代替。因为利用tex函数对字符判断时,当字符在宏
- % 中时,基于`的方法无法解决GBK编码的问题,基于CJKsymbol的方法无法解决utf-8
- % 编码用xelatex编译的问题。
- %
- % 原理是:利用perl正则将中文标识记录到域中,
- % 然后利用\iffieldundef和\iffieldequalstr进行判断
- \providetoggle{ifCJKforgbt}
- \def\testCJKfirst#1{%
- \iffieldundef{#1}{\togglefalse{ifCJKforgbt}}{%
- \iffieldequalstr{#1}{chinese}{\toggletrue{ifCJKforgbt}}{\togglefalse{ifCJKforgbt}}}}
-
- %
- % 2个卷的解析函数,用于连续出版物
- %
- % 原理方法: 范围起止间隔符号还是用-,而不是与date相同的/,因为有合期期刊的问题,需要用到/符号
- \newcommand{\multivolparser}[1]{%
- \IfSubStr{#1}{-}%
- {\StrBefore{#1}{-}[\multivolfirst]\StrBehind{#1}{-}[\multivolsecond]}%
- {\def\multivolfirst{#1}\def\multivolsecond{}}%
- }
-
-
- %
- % 2个期的解析函数,用于连续出版物
- %
- \newcommand{\multinumberparser}[1]{%
- \IfSubStr{#1}{-}%
- {\StrBefore{#1}{-}[\multinumberfirst]\StrBehind{#1}{-}[\multinumbersecond]}%
- {\def\multinumberfirst{#1}\def\multinumbersecond{}}%
- }
-
- % 对没有分隔符环境命令的低版本biblatex做增补,避免报错
- %
- \iftoggle{iftlfive}{
-
- \def\blx@inf@delimdeclare#1#2{%
- \blx@info{Delimiter '#1' in context '#2' already defined, overwriting}}
-
- \def\blx@warn@delimuse#1#2{%
- \blx@warning{Delimiter '#1' in context '#2' undefined}}
- % Delimiter interface
-
- % [<contextname, ...>]{<name, ...>}{<code>}
- \newrobustcmd*{\DeclareDelimFormat}{%
- \@ifstar
- {\blx@declaredelimclear}
- {\blx@declaredelim}}
-
- \newrobustcmd*{\blx@declaredelimclear}[3][]{%
- \ifcsvoid{blx@declaredelimcontexts@#2}
- {}
- {\def\do##1{\csundef{blx@printdelim@##1@#2}}%
- \dolistcsloop{blx@declaredelimcontexts@#2}}%
- \cslet{blx@declaredelimcontexts@#2}\@empty
- \ifblank{#1}
- {\blx@declaredelim{#2}{#3}}
- {\blx@declaredelim[#1]{#2}{#3}}}
-
- \newrobustcmd*{\blx@declaredelim}[3][]{%
- \ifblank{#1}
- {\blx@declaredelim@i{}{}{#2}{#3}}
- {\def\do##1{%
- \listcsadd{blx@declaredelimcontexts@#2}{##1}%
- \blx@declaredelim@i{blx@printdelim@##1@}{##1}{#2}{#3}}%
- \docsvlist{#1}}}%
-
- \def\blx@declaredelim@i#1#2#3#4{%
- \def\do@i##1{%
- \ifcsdef{#1##1}
- {\blx@inf@delimdeclare{##1}{#2}}
- {}%
- \csdef{#1##1}{#4}}%
- \forcsvlist{\do@i}{#3}}
-
- % *[<contextname, ...>]{<alias>}{<delim>}
- \newrobustcmd*{\DeclareDelimAlias}{%
- \@ifstar
- {\blx@declaredelimalias}
- {\blx@declaredelimaliasauto}}
-
- \newrobustcmd*{\blx@declaredelimalias}[3][]{%
- \ifblank{#1}
- {\blx@declaredelimalias@i{}{#2}{#3}}
- {\def\do##1{%
- \blx@declaredelimalias@i{blx@printdelim@##1@}{#2}{#3}}%
- \docsvlist{#1}}}
-
- \newrobustcmd*{\blx@declaredelimaliasauto}[2]{%
- \blx@declaredelimalias@i{}{#1}{#2}%
- \ifcsvoid{blx@declaredelimcontexts@#2}
- {}
- {\def\do##1{%
- \blx@declaredelimalias@i{blx@printdelim@##1@}{#1}{#2}}%
- \dolistcsloop{blx@declaredelimcontexts@#2}}}
-
- \def\blx@declaredelimalias@i#1#2#3{%
- \ifcsdef{#1#2}
- {\blx@inf@delimdeclare{#2}{#1}}
- {}%
- \csdef{#1#2}{\csuse{#1#3}}}
-
- \def\blx@delimcontext{none}
- \newcommand*{\printdelim}[2][]{%
- \ifblank{#1}
- {\ifcsdef{blx@printdelim@\blx@delimcontext @#2}
- {\csuse{blx@printdelim@\blx@delimcontext @#2}}
- {\ifcsdef{#2}% fall back on legacy macros
- {\csuse{#2}}
- {\blx@warn@delimuse{#2}{*}}}}
- {\ifcsdef{blx@printdelim@#1@#2}
- {\csuse{blx@printdelim@#1@#2}}
- {\blx@warn@delimuse{#2}{#1}}}}
-
- \newcommand*{\delimcontext}[1]{%
- \edef\blx@delimcontext{\blx@delimcontextalias{#1}}}
-
- \def\blx@delimcontextalias#1{%
- \ifcsdef{blx@delimcontextalias@#1}
- {\csuse{blx@delimcontextalias@#1}}
- {#1}}
-
- \newcommand*{\DeclareDelimcontextAlias}[2]{%
- \csgdef{blx@delimcontextalias@#1}{#2}}
- }{}
-
-
-%=====================================================================
-% 数据模型定义
-%=====================================================================
- %定义类型和载体标识,从gb内容看载体基本属于介质。
- %为与lee zeping的bst的样式统一,使用mark和medium这两域名
- %为单个条目的姓名格式控制增加nameformat和namefmtid两个域
- %为缩略信息文献表增加了shortbooktitle域
- %为多语言排序增加了lansortorder域
- \DeclareDatamodelFields[type=field,datatype=literal]{mark,medium,nameformat}
- \DeclareDatamodelFields[type=field,datatype=integer]{namefmtid}
- \DeclareDatamodelFields[type=field,datatype=literal]{shortbooktitle}
- \DeclareDatamodelFields[type=field,datatype=literal]{lansortorder}
-
- %因为biblatex更新3.14版本以后,biber对于为声明数据模型的条目类型
- %不再默认读取,而是以空字符串作为条目类型名,自然在条目定义alias时
- %就会出现问题,因此显式的声明一下newspaper,然后保留后面采用alias的方式
- %而standard类型则是采用另一种方式直接在sourcemap中转换为其它类型。
- \@ifpackagelater{biblatex}{2019/11/30}{%2019/12/01 v3.14
- \DeclareDatamodelEntrytypes{newspaper}%
- }{}
-
-
-
-%=====================================================================
-% 设置宏包选项
-%=====================================================================
- %
- % 增加一个控制是否输出文献载体的选项
- % 20191125,v1,0s,hzz
- \newtoggle{bbx:gbmedium}
- \DeclareBibliographyOption{gbmedium}[true]{%biblatex低版本
- \settoggle{bbx:gbmedium}{#1}}
- \ExecuteBibliographyOptions{gbmedium}
-
- %
- % 增加一个控制是否输出annotation域的选项,该域可以用于在文献条目后面输出一些注释信息
- % 20190509,v1,0s,hzz
- \newtoggle{bbx:gbannote}
- \DeclareBibliographyOption{gbannote}[false]{%biblatex低版本
- \settoggle{bbx:gbannote}{#1}}
- \ExecuteBibliographyOptions{gbannote}
- %
- %用于在文献条目后面输出注释信息的宏
- %FieldFormat{annotation}用于设置注释信息的格式
- \DeclareFieldFormat{annotation}{%
- \printtext{\addspace(#1)}%
- }
- \renewbibmacro*{annotation}{%
- \iftoggle{bbx:gbannote}%
- {\iffieldundef{annotation}%
- {\printfile[annotation]{\bibannotationprefix\thefield{entrykey}.tex}}%
- {\printfield{annotation}}}%
- {}%
- }
-
- %
- % 增加一个控制是否输出type域的选项
- % 20190212,v1,0q,hzz
- \newtoggle{bbx:gbfieldtype}
- \DeclareBibliographyOption{gbfieldtype}[false]{%biblatex低版本
- \settoggle{bbx:gbfieldtype}{#1}}
- \ExecuteBibliographyOptions{gbfieldtype}
-
- %
- % 增加一个控制是否根据页码重设脚注数字标号的选项
- % 20190422,v1,0r,hzz
- \newtoggle{bbx:gbfnperpage}
- \DeclareBibliographyOption{gbfnperpage}[false]{%
- \settoggle{bbx:gbfnperpage}{#1}}
- \ExecuteBibliographyOptions{gbfnperpage}
-
-
- %
- % 增加一个选项,用于控制是否实现GB/T 7714-2015标准的脚注文献表
- % 20190203,v1.0p,hzz
- % 原理方法:默认做patch,文献引用带圈上标数字表示,脚注中的文献用带圈非上标数字做标签
- % 当前面的脚注中已经存在当前文献,那么当前文献内容不再输出而用同(4)这样的方式
- % 需要注意的是由于小页环境和表格中的脚注本身的问题,可能会有一些问题
- \DeclareBibliographyOption{gbfootbib}[false]{%
- \ifstrequal{#1}{false}{}{\execgbfootbib}}
- \ExecuteBibliographyOptions{gbfootbib}
-
- %%
- \newlength{\footbibmargin}
- \newlength{\footbiblabelsep}
- \setlength{\footbibmargin}{1em}%脚注的段落左侧缩进距离
- \setlength{\footbiblabelsep}{0.5em}%脚注中标记号与脚注段落的间距
- \def\execgbfootbib%
- {%
- %开启引用跟踪计数器,为使用\ifciteseen等测试命令
- \ExecuteBibliographyOptions{citetracker=true}
- %
- %利用footmisc宏包来实现脚注文献的悬挂对齐
- \AtEndPreamble{
- \@ifclassloaded{beamer}{}{
- %beamer类因为其特殊性,为避免冲突不调footmisc。
- %同时footmisc与hyperref宏包也不兼容,所以使用footmisc时会破坏脚注的超链接
- %如果要实现超链接可以将下句注释掉,这里留着主要是实现悬挂对齐。
- %\PassOptionsToPackage{perpage,hang}{footmisc}%
- %\RequirePackage{footmisc}%
-
- %重新实现脚注的根据单页重设脚注号码
- %重新实现脚注的悬挂对齐问题,不再使用footmisc,直接从latex核心代码和hyperref代码进行修改
- %v1.0q 20190317 hzz
- %v1.0r 20190422 hzz 根据gbfnperpage选项设置
- \iftoggle{bbx:gbfnperpage}%
- {\@addtoreset{footnote}{page}}{}%重设计数器
-
-\@ifpackageloaded{hyperref}{%加载hyperref则对\H@@footnotetext做重定义
- \long\def\H@@footnotetext##1{\insert\footins{%
- \reset@font\footnotesize
- \interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep
- \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark
- }%
- \color@begingroup
- \leftskip \footbibmargin%增加的左侧缩进
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox%
- }%
- \color@endgroup}}%
-
- \long\def\H@@mpfootnotetext##1{%
- \global\setbox\@mpfootins\vbox{%
- \unvbox\@mpfootins
- \reset@font\footnotesize
- \hsize\columnwidth
- \@parboxrestore
- \protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}%
- \leftskip \footbibmargin%增加的左侧缩进
- \color@begingroup
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox}%
- \color@endgroup}}
- }{%否则对latex核心代码中的\@footnotetext做重定义
- \long\def\@footnotetext##1{\insert\footins{%
- \reset@font\footnotesize
- \interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep
- \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark
- }%
- \color@begingroup
- \leftskip \footbibmargin%增加的左侧缩进
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox%
- }%
- \color@endgroup}}%
-
- \long\def\@mpfootnotetext##1{%
- \global\setbox\@mpfootins\vbox{%
- \unvbox\@mpfootins
- \reset@font\footnotesize
- \hsize\columnwidth
- \@parboxrestore
- \protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}%
- \leftskip \footbibmargin%增加的左侧缩进
- \color@begingroup
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox}%
- \color@endgroup}}
- }
-
- \long\def\@makefntext##1{%增加了脚注标记与正文的间隔
- \parindent 1em\noindent \hb@xt@ 0em{\hss \@makefnmark\makebox[\footbiblabelsep]{}}##1}
-
- }
-
- %
- %使脚注标记加圈并设置数字的字体为tiny,不使用修改thefootnote的方式
- \def\@makefnmark{\hbox{\@textsuperscript{\textcircled{\tiny\@thefnmark}}}}
- %做patch使得脚注内容中的脚注数字标签不上标
- \pretocmd{\@makefntext}{%
- \def\@makefnmark{%
- \hbox{\textcircled{\tiny\@thefnmark}}%
- }%
- }{}{}
- }
-
- %
- %判断当前文献是否已经引用过且是做的footfullcite(即已经作为脚注输出文献内容)
- %记录首次输出时的脚注号码,用于后面再次引用该文献时的输出,比如同(4)。
- %v1.0q 20190309 区分使脚注标注适应minipage中的情况
- \newbibmacro*{citesavefn}{%
- \ifciteseen%当被引用过为true
- {\ifcsdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}%当已经定义过脚注序号信息
- {\csgdef{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
- \str@sameentry\gdef\@thefnmark{\csuse{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}}%
- \@makefnmark%
- }}%
- {\csxdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
- \ifcsstring{@mpfn}{mpfootnote}{\@alph\c@mpfootnote}{\thefootnote}%
- }}%
- }%
- {\csxdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
- \ifcsstring{@mpfn}{mpfootnote}{\@alph\c@mpfootnote}{\thefootnote}%
- %判断在minipage中比较麻烦,这里使用\@mpfn的定义进行判断
- }}%
- }
-
- %
- %重定义\footfullcite使完成gb7714-2015的脚注文献要求
- \DeclareCiteCommand{\footfullcite}[\mkbibfootnote]%
- {\defcounter{maxnames}{\blx@maxbibnames}%局部定义maxnames和minnames计数器
- \defcounter{minnames}{\blx@minbibnames}%使footfullcite内的作者输出与正文文献表中的一致。
- \usebibmacro{prenote}%
- \renewbibmacro*{postnote}{%
- \iffieldundef{postnote}%
- {}{\setunit{\addcolon\addspace}\printfield{postnote}}}%与ay样式不同,由于已修改postnote域格式,直接用printfield
- }%
- {\usebibmacro{citesavefn}%
- \ifcsdef{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}%
- {\csuse{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}}%\nopunct
- {\usedriver{\DeclareNameAlias{sortname}{default}}{\thefield{entrytype}}}%
- }%
- {\multicitedelim}%
- {\usebibmacro{postnote}}
-
- }
-
- %
- % 增加一个选项,用于控制gb7714的使用范围,即英文文献和中文文献使用不同的样式
- % 20180814,v1.0m,hzz
- % 原理方法:
- % 只为兼容性考虑不做任何处理
- \DeclareBibliographyOption{gbstyle}[true]{%biblatex低版本
- }
-
- %
- % 增加一个控制是否输出文献类型和载体标识的选项
- %
- % 原理方法:
- % 对于biblatex3.4以上版本DeclareBibliographyOption命令中的[datatype]如果是boolean,那么是可以省略的
- % 所以用老版本的不用[datatype]的命令可以兼容所有biblatex版本
- \newtoggle{bbx:gbtype}
- %\DeclareBibliographyOption[boolean]{gbtype}[true]{%biblatex高版本
- \DeclareBibliographyOption{gbtype}[true]{%biblatex低版本
- \settoggle{bbx:gbtype}{#1}}
- \ExecuteBibliographyOptions{gbtype}
-
- %
- % 增加一个源文件编码选择选项,当true时可以使用GBK编码。
- % v1.0k, 2018.05.08, by hzz
- %
- % 原理方法:将需要输出的中文字符串用命令形式表示存储,采用utf8编码时采用bbx文档
- % 内的定义即是utf8编码的中文字符串,但tex源文件是gbk编码时,利用gb7714-2015-gbk.def
- % 文档内的gbk编码的字符串覆盖。这种覆盖只能在宏包末尾加载时成功实现,所以使用
- % AtEndOfPackage。该解决思路源自biblatex-caspervector宏包。
- % 另外注意:
- % gbk编码的tex文档,利用pdflatex/latex能正确编译,利用xelatex能编译,但中文显示乱码
- % 在源文档前面增加 XeTeX 原语:\XeTeXinputencoding "GBK" 后,显示正常
- % utf-8编码的tex文档,利用xelatex能正确编译,而pdflatex/latex不能编译。
- \newtoggle{bbx:codegbk}
- \DeclareBibliographyOption{gbcodegbk}[false]{%
- \settoggle{bbx:codegbk}{#1}}
- \ExecuteBibliographyOptions{gbcodegbk}
-
- \def\str@bibliography{参考文献}
- \def\str@references{参考文献}
- \def\str@bytranslator{译}
- \def\str@andotherscn{等}
- \def\str@andcn{和}
- \def\str@backrefpage{引用页}
- \def\str@backrefpages{引用页}
- \def\str@noaddress{出版地不详}
- \def\str@nopublisher{出版者不详}
- \def\str@edition{版}
- \def\str@volumecn{卷}
- \def\str@numbercn{册}
- \def\str@serialcn{第}
- \def\str@sameentry{同}
- \def\str@incn{见}
- \def\str@mathesiscn{硕士学位论文}
- \def\str@phdthesiscn{博士学位论文}
- \def\str@editorcn{主编}
-
- \AtEndOfPackage{%
- \iftoggle{bbx:codegbk}{%
- \ExecuteBibliographyOptions{texencoding = GBK}
- \input{gb7714-2015-gbk.def}
- }{}}
-
- %
- % 增加一个严格按GB/T 7714-2015给出著录格式控制域的输出的选项
- % v1.0k, 2018.05.08, by hzz
- %
- % 原理方法:
- % 默认设置该选项为真,进而不输出GB/T 7714-2015中没有的域的信息
- % 这样可以避免因为bib文件带有多余的域的信息的输出,比如因为bibtex样式
- % 可能需要用于中英文判断的language域的信息。
- \newtoggle{bbx:gbstrict}
- \DeclareBibliographyOption{gbstrict}[true]{%
- \settoggle{bbx:gbstrict}{#1}}
- \ExecuteBibliographyOptions{gbstrict}
-
- %
- % 增加一个控制标题域超链接设置的选项
- % v1.0k, 2018.05.24, by hzz
- %
- % 原理方法:
- % 利用标题域格式来实现,默认设置该选项为false,不做超链接。
- % 设置为true,则标题设置超链接
- \newtoggle{bbx:titlelink}
- \DeclareBibliographyOption{gbtitlelink}[false]{%
- \settoggle{bbx:titlelink}{#1}}
- \ExecuteBibliographyOptions{gbtitlelink}
-
- %
- % 增加一个控制参考文献标题是否能够被ctex宏包设置的选项
- % v1.0l, 2018.07.02, by hzz
- %
- % 原理方法:
- % 重定义biblatex的宏,去除使用本地化字符串的方式,是的可以利用ctexset进行设置
- \newtoggle{bbx:ctexset}
- \DeclareBibliographyOption{gbctexset}[true]{%
- \settoggle{bbx:ctexset}{#1}}
- \ExecuteBibliographyOptions{gbctexset}
-
- \AtEndOfPackage{%
- \iftoggle{bbx:ctexset}{%
- \def\blx@defbibstrings#1#2{%
- \def\do##1{\csundef{abx@lstr@##1}\csundef{abx@sstr@##1}}%
- \abx@dostrings
- \csuse{abx@strings@#1}%
- \setkeys{blx@lbx}{#2}%
- \let\do\blx@defbibstrings@i
- \csxdef{abx@strings@#1}{\abx@dostrings}%
- }
- }{}}
-
- %
- % 增加一个处理佚名或noauthor的控制选项
- %
- % 原理方法:在顺序编码制中不需要使用,为与作者年制的兼容性考虑,这里也增加避免报错
- \DeclareBibliographyOption{gbnoauthor}[true]{}%
-
-
- %
- % 增加一个恢复域格式为标准样式的控制选项
- % v1.0k, 2018.05.15, by hzz
- %
- % 原理方法:
- % 默认设置该选项为false,采用国标要求的域格式输出相关域
- % 当设置该选项为true时,则重新利用标准样式的域格式输出相关的域
- \newtoggle{bbx:gbfieldstd}
- \DeclareBibliographyOption{gbfieldstd}[false]{%
- \settoggle{bbx:gbfieldstd}{#1}%
- \ifstrequal{#1}{false}{}{\execgbfdfmtstd}%
- }
- \ExecuteBibliographyOptions{gbfieldstd}
-
- %
- % 增加一个出版项自动处理控制选项,当true时使用出版者不详等信息补充缺失的出版信息。
- %
- \newtoggle{bbx:gbpub}
- \DeclareBibliographyOption{gbpub}[true]{%
- %\settoggle{bbx:gbpub}{#1} %或采用下面这一句
- \ifstrequal{#1}{false}{\togglefalse{bbx:gbpub}}{\toggletrue{bbx:gbpub}}}
- \ExecuteBibliographyOptions{gbpub}
-
- %
- % 增加控制析出文献来源前的标点符号//输出的选项
- % v1.0k, 2018.04.20,added in by hzz
- \newtoggle{bbx:gbpunctin}
- \DeclareBibliographyOption{gbpunctin}[true]{%
- \settoggle{bbx:gbpunctin}{#1}}
- \ExecuteBibliographyOptions{gbpunctin}
-
-
-
-
-
- %
- % 选项设置
- %
- \ExecuteBibliographyOptions{
- sorting=none,
- useprefix=true, %名字的信息包括前缀
- date = year, %日期仅写到年
- maxbibnames = 3,%设置名字最大数量
- minbibnames = 3, %设置缩减后的名字最小数量
- maxitems = 1,%设置列表最大数量
- minitems = 1, %设置缩减后的列表最小数量
- isbn=false,
- }
-
- %
- %为日期相关选项增加选项值gb7714-2015
- %
- \csdef{mkdaterangegb7714-2015}#1{%
- \begingroup
- \blx@metadateinfo{#1}%
- \iffieldundef{#1year}
- {}
- {\printtext[#1date]{%
- \blx@gbdate{#1}{}}}%
- \endgroup}
-
- \newrobustcmd*{\blx@gbdate}[3][]{%
- \dateeraprintpre{#2#3year}%
- \blx@imc@forcezerosy{\thefield{#2#3year}}\ifblank{#1}{}{\printfield{#1}}%
- \iffieldundef{#2#3month}{}{\hyphen\blx@imc@forcezerosmdt{\thefield{#2#3month}}}%
- \iffieldundef{#2#3day}{}{\hyphen\blx@imc@forcezerosmdt{\thefield{#2#3day}}}}
-
-
- %为姓名格式选择增加的计数器
- \newcounter{gbnamefmtcase}
- \def\thegbnamefmtcase{\the\c@gbnamefmtcase}
- %为数字标签格式选择增加的计数器/命令
- \newcommand{\mkgbnumlabel}[1]{\mkbibbrackets{#1}}
- \def\gbbiblabelopt@bracket{\renewcommand{\mkgbnumlabel}[1]{\mkbibbrackets{##1}}}
- \def\gbbiblabelopt@parens{\renewcommand{\mkgbnumlabel}[1]{\mkbibparens{##1}}}
- \def\gbbiblabelopt@dot{\renewcommand{\mkgbnumlabel}[1]{##1\adddot}}
- \def\gbbiblabelopt@plain{\renewcommand{\mkgbnumlabel}[1]{##1}}
- \def\gbbiblabelopt@box{\renewcommand{\mkgbnumlabel}[1]{\framebox{##1}}}
- \def\gbbiblabelopt@circle{\renewcommand{\mkgbnumlabel}[1]{\textcircled{##1}}}
- %为文献表中数字标签对齐方式选择增加的计数器/命令
- \newcounter{gbalignlabel}
- \def\thegbalignlabel{\the\c@gbalignlabel}
- %为引用标签标注/文献表中本地化字符串中英文选择增加的计数器/命令
- \newcounter{gbcitelocalcase}
- \newcounter{gbbiblocalcase}
- \def\thegbcitelocalcase{\the\c@gbcitelocalcase}
- \def\thegbbiblocalcase{\the\c@gbbiblocalcase}
-
-\@ifpackagelater{biblatex}{2016/03/27}
- { % 针对biblatex>=3.3版本的选项设置
- % 增加不同语言排序的切换选项
- % numeric样式,不使用该选项,这里给出仅为兼容性考虑
- % v1.0q,20190307,hzz
- %
- % 增加不同语言排序的切换选项
- % gblanorder=chineseahead的顺序为cn,jp,kr,en,fr,ru
- % gblanorder=englishahead的顺序为en,fr,ru,cn,jp,kr
- % gblanorder=cn;en;ru;fr;jp;kr的顺序为指定的cn;en;ru;fr;jp;kr,自定义内容可以随意写以分号分隔
- % v1.0q,20190307,hzz
- %
- \DeclareBibliographyOption[string]{gblanorder}[chineseahead]{%
- \ifstrequal{#1}{chineseahead}%%中文在前的顺序
- {\gdef\lancnorder{1}\gdef\lanjporder{2}\gdef\lankrorder{3}%
- \gdef\lanenorder{4}\gdef\lanfrorder{5}\gdef\lanruorder{6}}%
- {%
- \ifstrequal{#1}{englishahead}%
- {\execlanodeah\dealsortlan}%
- {\execlanodudf{#1}\dealsortlan}%
- }%
- }
- \ExecuteBibliographyOptions{gblanorder}
-
- \def\execlanodeah{%中文在后的顺序
- \gdef\lancnorder{4}
- \gdef\lanjporder{5}
- \gdef\lankrorder{6}
- \gdef\lanenorder{1}
- \gdef\lanfrorder{2}
- \gdef\lanruorder{3}}
-
- \newcounter{lanordernum}
- \newcommand{\execlanodudf}[1]{%like:cn;en;ru;fr;jp;kr
- \setcounter{lanordernum}{0}
- \DeclareListParser{\parsinglanorder}{;}
- \renewcommand*{\do}[1]{\stepcounter{lanordernum}\csxdef{lan##1order}{\thelanordernum}}
- \parsinglanorder{#1}
- }
-
- %
- % 增加本地化字符串的中英文切换选项
- % gbcitelocal指标注中的本地化字符串
- % gbbiblocal 指文献表中的本地化字符串
- % gblocal 指设置文献表和标注中的本地化字符串
- % v1.0o,20190103,hzz
- %
- \DeclareBibliographyOption[string]{gbcitelocal}[gb7714-2015]{%
- \ifstrequal{#1}{gb7714-2015}{\setcounter{gbcitelocalcase}{0}}{}%
- \ifstrequal{#1}{chinese}{\setcounter{gbcitelocalcase}{1}}{}%
- \ifstrequal{#1}{english}{\setcounter{gbcitelocalcase}{2}}{}%
- }
- \ExecuteBibliographyOptions{gbcitelocal}
-
- \DeclareBibliographyOption[string]{gbbiblocal}[gb7714-2015]{%
- \ifstrequal{#1}{gb7714-2015}{\setcounter{gbbiblocalcase}{0}}{}%
- \ifstrequal{#1}{chinese}{\setcounter{gbbiblocalcase}{1}}{}%
- \ifstrequal{#1}{english}{\setcounter{gbbiblocalcase}{2}}{}%
- }
- \ExecuteBibliographyOptions{gbbiblocal}
-
- \DeclareBibliographyOption[string]{gblocal}[gb7714-2015]{%
- \ExecuteBibliographyOptions{gbbiblocal=#1}%
- \ExecuteBibliographyOptions{gbcitelocal=#1}%
- }
- %\ExecuteBibliographyOptions{gblocal} %默认值已经通过两个相关选项设置
-
- %
- % 增加序号标签格式处理选项
- % v1.0l,20180623,hzz
- %
- \DeclareBibliographyOption[string]{gbbiblabel}[bracket]{%
- \csuse{gbbiblabelopt@#1}
- }
- \ExecuteBibliographyOptions{gbbiblabel}
-
- %
- % 增加姓名大小写格式处理选项
- %
- \DeclareBibliographyOption[string]{gbnamefmt}[uppercase]{%
- \ifstrequal{#1}{uppercase}{\setcounter{gbnamefmtcase}{0}}{}%
- \ifstrequal{#1}{lowercase}{\setcounter{gbnamefmtcase}{1}}{}%
- \ifstrequal{#1}{givenahead}{\setcounter{gbnamefmtcase}{2}}{}%given-family
- \ifstrequal{#1}{familyahead}{\setcounter{gbnamefmtcase}{3}}{}
- \ifstrequal{#1}{pinyin}{\setcounter{gbnamefmtcase}{4}}{}%family-given
- \ifstrequal{#1}{reverseorder}{\setcounter{gbnamefmtcase}{5}}{}%family-given/given-family
- }
- \ExecuteBibliographyOptions{gbnamefmt}
-
- %
- % 增加标签对齐选项
- %
- % right是默认的右对齐,left是左对齐,gb7714-2015是项对齐方式
- \DeclareBibliographyOption[string]{gbalign}[right]{%
- \ifstrequal{#1}{right}{\setcounter{gbalignlabel}{0}}{}
- \ifstrequal{#1}{left}{\setcounter{gbalignlabel}{1}}{}
- \ifstrequal{#1}{center}{\setcounter{gbalignlabel}{2}}{}
- \ifstrequal{#1}{gb7714-2015}{\setaligngbstyle}{}
- }
- }
- {% 针对biblatex<3.3版本的选项设置
- % 增加不同语言排序的切换选项
- % numeric样式, biblatex 3.4及以下版本不能使用多个stylesourcemap,所以不使用该选项
- % v1.0q,20190307,hzz
- %
- \DeclareBibliographyOption{gblanorder}[chineseahead]{}
-
- %
- % 增加序号标签格式处理选项
- % v1.0l,20180623,hzz
- %
- \DeclareBibliographyOption{gbbiblabel}[bracket]{%
- \csuse{gbbiblabelopt@#1}
- }
- \ExecuteBibliographyOptions{gbbiblabel}
-
- %
- % 增加姓名大小写格式处理选项
- %
- \DeclareBibliographyOption{gbnamefmt}[uppercase]{%
- \ifstrequal{#1}{uppercase}{\setcounter{gbnamefmtcase}{0}}{}%
- \ifstrequal{#1}{lowercase}{\setcounter{gbnamefmtcase}{1}}{}%
- \ifstrequal{#1}{givenahead}{\setcounter{gbnamefmtcase}{2}}{}%given-family
- \ifstrequal{#1}{familyahead}{\setcounter{gbnamefmtcase}{3}}{}
- \ifstrequal{#1}{pinyin}{\setcounter{gbnamefmtcase}{4}}{}%family-given
- \ifstrequal{#1}{reverseorder}{\setcounter{gbnamefmtcase}{5}}{}%family-given/given-family
- }
- \ExecuteBibliographyOptions{gbnamefmt}
-
- %
- % 增加标签对齐选项
- %
- % 原理方法:right是默认的右对齐,left是左对齐,gb7714-2015无效,仍然为右对齐模式,
- % 因为在这种biblatex低版本中,舍弃了list类环境后,会出错。
- % 注意:texlive2015中的3.0版中的DeclareBibliographyOption选项没有类型说明
- \DeclareBibliographyOption{gbalign}[right]{%
- \ifstrequal{#1}{right}{\setcounter{gbalignlabel}{0}}{}
- \ifstrequal{#1}{left}{\setcounter{gbalignlabel}{1}}{}
- \ifstrequal{#1}{center}{\setcounter{gbalignlabel}{2}}{}
- \ifstrequal{#1}{gb7714-2015}{}{}
- }
- }
-
-
-%
-% 针对biblatex<3.3版本的选项设置,比如texlive2015中的3.0版
-%
-\defversion{3.0}{opt}{
- \ExecuteBibliographyOptions{
- firstinits=true, %名字有缩写,参考3.1.2.3 Internal
- }
-}
-%
-% 针对3.3<=biblatex<3.5版本的选项设置,比如texlive2016中的3.4版
-%
-\defversion{3.4}{opt}{
- \ExecuteBibliographyOptions{
- giveninits=true, %名字有缩写,参考3.1.2.3 Internal
- }
-}
-%
-% 针对3.7<=biblatex<=3.9版本的选项设置,比如texlive2017中的3.7版
-%
-\defversion{3.7}{opt}{
- \ExecuteBibliographyOptions{
- giveninits=true,
- urldate =edtf, %iso8601
- eventdate =edtf,
- }
-}
-%
-% 针对3.10<=biblatex版本的选项设置,比如texlive2018中的3.11版
-%
-\defversion{3.10}{opt}{
- \ExecuteBibliographyOptions{
- giveninits=true,
- urldate =gb7714-2015, %iso,iso8601,edtf
- eventdate =gb7714-2015,
- }
-}
-
-%
-% 根据biblatex版本信息,选择选项设置
-%
-% 原理方法:如下这种选择机制能自动兼容更新的版本,但对于老版本
-% 必须要把情况列全。
-\iftoggle{iftlfive}{\switchversion{3.0}{opt}}{}%biblatex<=3.2
-\iftoggle{iftlsix}{\switchversion{3.4}{opt}}{}%3.3<=biblatex<=3.6
-\iftoggle{iftlseven}{\switchversion{3.7}{opt}}{}%biblatex=3.7
-\iftoggle{iftleight}{\switchversion{3.7}{opt}}{}%3.8<=biblatex<=3.9
-\iftoggle{iftlnine}{\switchversion{3.10}{opt}}{}%biblatex=3.10
-\iftoggle{iftlatest}{\switchversion{3.10}{opt}}{}%biblatex最新3.11
-
-
-%=====================================================================
-% 设置本地化字符串
-%=====================================================================
- %
- % 新建当地化字符串,用来记录“等”字符、“和”字符
- %
- \NewBibliographyString{andotherscn}
- \NewBibliographyString{andothersincitecn}
- \NewBibliographyString{andothersincite}
- \NewBibliographyString{andcn}
- \NewBibliographyString{andothersjp}
- \NewBibliographyString{andotherskr}
- \NewBibliographyString{andjp}
- \NewBibliographyString{andkr}
- \NewBibliographyString{andincitecn}
- \NewBibliographyString{andincite}
- \NewBibliographyString{volumecn}
- \NewBibliographyString{numbercn}
- \NewBibliographyString{serialcn}
- \NewBibliographyString{incn}
- \NewBibliographyString{mathesiscn}
- \NewBibliographyString{phdthesiscn}
- \NewBibliographyString{editorcn}
- \NewBibliographyString{editorscn}
-
-
-
- %
- % 修改一些当地化字符串
- %
- % 原理方法:直接利用当地化格式english修改出一些中文的格式,具体修改内容参考english.lbx文件
- % 当然也可以增加比如上面定义的andotherscn
- % 注意:在lbx文件和bbx文件中定义本地字符串的不同语法,两个参数和一个参数的区别
-
- \DefineBibliographyStrings{english}{
- bibliography = {\str@bibliography},
- references = {\str@references},
- bytranslator= {\str@bytranslator},%\addperiod,%将trans. by 改成 译\addcomma\
- and = {\addcomma},%将第2和3人名间的and符号改成逗号,用\finalnamedelim命令也可以定义,参见3.9.1节
- andcn = {\addcomma},%and本地化字符串的中文对应词
- andincitecn = {\str@andcn},%将标注中的分开,便于与文献表中的区分
- andincite = {\addcomma},
- %andothers = {et al.},%将超过3个人名的省略,et al.改成为 等
- andotherscn = {\str@andotherscn},%将超过3个人名的省略,et al.改成为 等
- andothersincitecn={\str@andotherscn},%将标注中的分开,便于与文献表中的区分
- andothersincite={et al\adddot},
- backrefpage = {\str@backrefpage:},
- backrefpages = {\str@backrefpages:},
- in={in\intitlepunct},
- volumecn={\str@volumecn},
- numbercn={\str@numbercn},
- serialcn={\str@serialcn},
- andothersjp={他},
- andotherskr={외},
- andjp={和},
- andkr={和},
- incn={\str@incn\addcolon\addspace},
- mathesiscn={\str@mathesiscn},
- phdthesiscn={\str@phdthesiscn},
- editorscn={\str@editorcn},
- editorcn={\str@editorcn},
-}
-
- %
- % 增加两个命令用于临时的局部的修改本地化字符串
- % 其中\setlocalbibstring修改缩写字符串,setlocalbiblstring修改长字符串
- % 注意使用时因为是局部修改,因此要将其与需要修改的引用命令放在一个编组符号内
- % v1.0t,hzz,20190525
- \newcommand{\setlocalbibstring}[2]{%
- \csdef{abx@sstr@#1}{#2}}
- \newcommand{\setlocalbiblstring}[2]{%
- \csdef{abx@lstr@#1}{#2}}
-
-%=====================================================================
-% 动态数据修改
-%=====================================================================
-%
-% 各层次的数据映射和动态修改
-%
-% 原理方法:
-% 1. 进行语言包括中英文判断,并设置和记录,比如记录到userf,usere中
-% 2. 增加文献标识符如[M],[J]等,对一些容易混淆的域进行设置以增强兼容性
-% 3. \DeclareSourcemap命令对于biblatex3.11以下版本只能出现一次,3.11版开始支持多个
-% 4. \DeclarestyleSourcemap在biblatex v3.7版开始可以支持出现多次
-% 5. 把作者和译者信息准确的记录到userf,usere中,用于后面判断是否是cjk字符。
-% 注意:这里用userf,usere而不是namee,namef,是因为只有把name列表转成域,才能有效读取姓名中的字符,
-% 如果用namee,namef,name信息会自动解析,所以就不能为cjk判断提供需要的信息
-%
-% 不同的文献类型使用相同的驱动输出可以有5种方法:
-% 1. 是数据源层的映射,将其它类型转换为某一要使用驱动的类型
-% 2. 是样式层映射,也是将其它类型转换为某一要使用驱动的类型
-% 3. 是驱动层映射,也是将其它类型转换为某一要使用驱动的类型
-% 4. 定义驱动类型别名DeclareBibliographyAlias,将其它类型定义为某一要使用驱动的类型的别名
-% 驱动别名定义本质上是做了驱动层映射
-% 5. 直接定义不同的类型的驱动,但驱动内容相同。
-%
-% 关于数据映射和驱动使用的考虑如下:
-% 1. 为避免利用biber输出bib文件时的数据变动,尽量不在数据源层映射做类型转换
-% 2. 为减少代码量,尽量少做内容相同的不同类型驱动
-% 3. 因此类型相关的处理主要在样式层映射、驱动层映射、驱动别名
-% 4. 由于biblatex默认做的驱动别名处理可能增加一些信息比如masterthesis转thesis时增加的type
-% 可以在样式层映射做某些需要避免这种默认处置的转换
-% 5. 当没有避免默认行为的需求时,全部采用驱动别名的方式处理,等价于驱动层的映射
-%
-% 文献类型和驱动考虑如下:
-% 1. 连续出版物及析出文献有其特殊性,因此考虑两类periodical和article
-% newpaper映射为article,并以note域做区分特殊处理
-% 2. 专著和专著中的析出文献是主要的类型,因此考虑book和inbook
-% standard映射为book或inbook,并以note域做区分特殊处理
-% collection和proceedings基本与book类似,因此做book驱动别名处理
-% incollection和inproceedings基本与inbook类似,因此做inbook驱动别名处理
-% 3. 专利类型有其特殊性,考虑patent类型
-% 4. 电子资源类型有其特殊性,考虑online类型
-% 5. 报告类型与book有点类似,出版项处理与book一样,但有时又要有修改和更新日期
-% 因此考虑用一种类型来输出,使用report类型
-% 6. 手册/学位论文等类型与book有点类似,但对于出版项处理时,有缺省时,直接省略,
-% 同时有version和edition的区别,因此考虑用一种类型来输出,使用manual类型
-% 7. 包括报告,学位论文在内的其它所有的类型,都做一个判断,当没有出版项时,
-% 且存在网址信息时,将其转换为online类型输出,否则都做为manual类型输出。
-% 8. 备选类型misc当存在网址时直接转换为online,由于howpublished域可用于描述
-% 更多的信息,因此不存在网址时,独立做一个备选格式
-% 9. 出版项主要以如下方式处理:
-% (a) location+institution+date 仅用于连续出版物
-% (b)publisher+location+date 用于需要完整输出出版项的类型,比如book,collection,proceedings,in*,report
-% (c)institution+location+date 用于出版项缺失时不输出的类型,包括manual,thesis,archive等其他类型
-% (d)printlist{insitution} 用于电子资源,仅输出出版者或组织,为数据映射方便,本来默认的organization域转换为用insitution输出。
-% (e) 不输出,主要用于连续出版物析出的文献
-% 10. 日期以如下方式处理:
-% date 由于存在biblatex选项,因此通过选项控制,数据源为date解析数据或year
-% urldate 由于存在biblatex选项,因此通过选项控制,输出到日,且用[]包围,数据源为urldate
-% newsdate 用于公告日期,公开日期或新闻日期,输出到日,但无包围符号,数据源为date
-% modifydate 用于更新或修改日期,输出到日,且用()包围,数据源为date或enddate或eventdate
-
-
-\DeclareSourcemap{
-\maps[datatype=bibtex]{%
- \map{%当没有作者时将editor转成author
- \pernottype{inbook}%因为in系列中editor可能用来表示bookauthor,所以排除
- \pernottype{inproceedings}
- \pernottype{incollection}
- \pernottype{periodical}%因为peridical直接使用editor,所以排除
- %注意notfield在低版本biblatex中没有
- %\step[notfield=author,final]%当author不存在,将editor复制给author
- \step[fieldsource=editor,fieldtarget=author]%并删除editor
- }
- \map{%当没有作者时将translator转成author
- \pernottype{inbook}
- \pernottype{inproceedings}
- \pernottype{incollection}
- %\step[notfield=author,final]%当author不存在,将translator复制给author
- \step[fieldsource=translator,fieldtarget=author]%并删除translator
- }
- \map{%让address和location同步,biblatex中address是location的别名
- %因此输出的时候只有location信息,但处理过程中是可以存在address的。
- %\step[notfield=address,final]
- \step[fieldsource=location,final]
- \step[fieldset=address,origfieldval]
- }
- \map{%让address和location同步
- %\step[notfield=location,final]
- \step[fieldsource=address,final]
- \step[fieldset=location,origfieldval]
- }
- \map{%处理在bib文件用mark标记文献类型标识符的情况
- \step[fieldsource=mark,final]
- \step[fieldset=usera, origfieldval]
- }
- \map{%处理在bib文件中直接给出文献的姓名格式为lowercase的情况
- \step[fieldsource=nameformat,match=lowercase,final]
- \step[fieldset=namefmtid,fieldvalue={1}]
- }
- \map{%处理在bib文件中直接给出文献的姓名格式为givenahead的情况
- \step[fieldsource=nameformat,match=givenahead,final]
- \step[fieldset=namefmtid,fieldvalue={2}]
- }
- \map{%处理在bib文件中直接给出文献的姓名格式为familyahead的情况
- \step[fieldsource=nameformat,match=familyahead,final]
- \step[fieldset=namefmtid,fieldvalue={3}]
- }
- \map{%处理在bib文件中直接给出文献的姓名格式为pinyin的情况
- \step[fieldsource=nameformat,match=pinyin,final]
- \step[fieldset=namefmtid,fieldvalue={4}]
- }
- \map{%根据article确定文献类型标识符
- \pertype{article}
- \step[fieldset=usera, fieldvalue={J}]
- }
- \map{%根据periodical确定文献类型标识符
- \pertype{periodical}
- \step[fieldset=usera, fieldvalue={J}]
- \step[fieldsource=author] %有时会把author和editor混淆,处理后使用editor
- \step[fieldset=editor, origfieldval]
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%根据增加一个新闻报纸的类型newspaper确定文献类型标识符
- \pertype{newspaper}
- \step[fieldset=usera, fieldvalue={N}]
- \step[fieldset=note, fieldvalue=news]%因为没有专门的驱动,记录note方便映射为article后判断
- }
- \map{%对应增加的一个数据库类型database确定文献类型标识符
- \pertype{database}
- \step[fieldset=usera, fieldvalue={DB}]
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%对应增加的一个数据集类型dataset确定文献类型标识符
- \pertype{dataset}
- \step[fieldset=usera, fieldvalue={DS}]%
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%对应增加的一个软件类型software确定文献类型标识符
- \pertype{software}
- \step[fieldset=usera, fieldvalue={CP}]
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%对应增加的一个舆图类型map确定文献类型标识符
- \pertype{map}
- \step[fieldset=usera, fieldvalue={CM}]%
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%对应增加的一个档案类型archive确定文献类型标识符
- \pertype{archive}
- \step[fieldset=usera, fieldvalue={A}]
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%因为misc类型本身就是没有类型,而不像其它文献有明确的类型,所以
- %当misc类型带有网址时,直接将其转换为online类型
- \pertype{misc}
- \step[fieldsource=url,final]
- \step[typesource=misc,typetarget=online]
- }
- \map{%对应增加的一个备选类型misc确定文献类型标识符
- \pertype{misc}
- \step[fieldset=usera, fieldvalue={Z}]%
- }
- \map{
- \pertype{book}
- \pertype{inbook}
- \step[fieldset=usera, fieldvalue={M}]
- \step[fieldsource=version] %有时会把version和edition混淆,处理后直接用edition
- \step[fieldset=edition, origfieldval]
- }
- \map{%兼容老的standard类型,确定文献类型标识符
- \pertype{standard}
- \step[fieldset=usera, fieldvalue={S}]
- \step[fieldset=note, fieldvalue=standard]%因为没有专门的驱动,记录note方便映射为book和inbook后判断
- }
- \map{
- \pertype{patent}
- \step[fieldset=usera, fieldvalue={P}]
- }
- \map{
- \pertype{inproceedings}
- \pertype{conference}%兼容老的conference类型
- \step[fieldset=usera, fieldvalue={C}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{proceedings}
- \step[fieldset=usera, fieldvalue={C}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{incollection}
- \step[fieldset=usera, fieldvalue={G}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{collection}
- \step[fieldset=usera, fieldvalue={G}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{report}
- \pertype{techreport}%兼容老的techreport类型
- \step[fieldset=usera, fieldvalue={R}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{thesis}
- \pertype{mastersthesis}%兼容老的mastersthesis和phdthesis类型
- \pertype{phdthesis}
- \step[fieldset=usera, fieldvalue={D}]
- \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{
- \pertype{online}
- \pertype{electronic}%兼容老的electronic类型
- \pertype{www}%兼容老的www类型
- \step[fieldset=usera, fieldvalue={EB}]
- \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]%因为online的出版项处理类似手册
- \step[fieldsource=organization]%有时会把organization和institution混淆,处理后使用institution,以增强兼容性
- \step[fieldset=institution, origfieldval]
- }
- \map{
- \pertype{manual}
- \step[fieldset=usera, fieldvalue={A}]
- \step[fieldsource=edition]%有时会把version和edition混淆,处理后使用version
- \step[fieldset=version, origfieldval]
- \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- \step[fieldsource=organization]%有时会把organization和institution混淆,处理后使用institution,以增强兼容性
- \step[fieldset=institution, origfieldval]
- }
- \map{
- \pertype{unpublished}
- \step[fieldset=usera, fieldvalue={Z}]
- }
- \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
- \step[fieldsource={author}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
- }%
- \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
- \step[fieldsource={editor}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
- }%
- \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
- \step[fieldsource={translator}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
- }%
- \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
- \step[fieldsource={bookauthor}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
- }%
- \map{%处理一些用year表示date的情况
- %这样处理将会设置date域,并使得labeldatesource变为空,因为date的前缀为空(如果是urldate,那么labeldatesource就是url)。
- %同时date域会被biblatex自动解析为year,month,day,并且覆盖原来的year信息
- \step[fieldsource=year]
- \step[fieldset=date, origfieldval]
- }
- \map{%将entrykey放入keywords中用于后期使用
- \step[fieldsource=entrykey]
- \step[fieldset=keywords, origfieldval]
- }
- \map{\step[fieldsource=title,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=userd,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=title,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=userd,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=title,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=userd,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=title,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=userd,fieldvalue={korean}]%韩语
- }
- \map{%文献题名的中文判断,将信息保存到userd中,避免因为标签生成原因导致title域被清除而产生问题
- \step[fieldsource=title, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%
- \step[fieldset=userd, fieldvalue={chinese}]
- }
- \map{%将没有设置userd,且存在title域的默认设置为英文
- \step[fieldsource=title,final]
- \step[fieldset=userd,fieldvalue={english}]
- }
- \map{\step[fieldsource=author,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=userf,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=author,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=userf,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=author,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=userf,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=author,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=userf,fieldvalue={korean}]%韩语
- }
- \map{%作者的中文判断
- \step[fieldsource=author, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]
- \step[fieldset=userf, fieldvalue={chinese}]
- }
- \map{%将没有设置userf,且存在author域的默认设置为英文
- \step[fieldsource=author,final]
- \step[fieldset=userf,fieldvalue={english}]
- }
- \map{\step[fieldsource=translator,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=usere,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=translator,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=usere,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=translator,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=usere,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=translator,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=usere,fieldvalue={korean}]%韩语
- }
- \map{%译者的中文判断
- \step[fieldsource=translator, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]
- \step[fieldset=usere, fieldvalue={chinese}]
- }
- \map{%将没有设置usere,且存在translator域的默认设置为英文
- \step[fieldsource=translator,final]
- \step[fieldset=usere,fieldvalue={english}]
- }
- \map{\step[fieldsource=editor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=userc,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=editor,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=userc,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=editor,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=userc,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=editor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=userc,fieldvalue={korean}]%韩语
- }
- \map{%编者的中文判断
- \step[fieldsource=editor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5
- \step[fieldset=userc, fieldvalue={chinese}]
- }
- \map{%将没有设置userc,且存在editor域的默认设置为英文
- \step[fieldsource=editor,final]
- \step[fieldset=userc,fieldvalue={english}]
- }
- \map{\step[fieldsource=bookauthor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=userb,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=bookauthor,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=userb,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=bookauthor,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=userb,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=bookauthor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=userb,fieldvalue={korean}]%韩语
- }
- \map{%编者的中文判断
- \step[fieldsource=bookauthor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5
- \step[fieldset=userb, fieldvalue={chinese}]
- }
- \map{%将没有设置userc,且存在editor域的默认设置为英文
- \step[fieldsource=bookauthor,final]
- \step[fieldset=userb,fieldvalue={english}]
- }
- \map{\step[fieldsource=userd,final]%userd存在则用根据标题的语言设定language
- \step[fieldset=language,origfieldval]%本身language存在则不设定
- }
- \map{\step[fieldsource=userf,final]%userd不存在,而userf存在则根据author的语言设定language
- \step[fieldset=language,origfieldval]
- }%如果没有作者和标题,那么剩下的最可能有意义的只有网址了,而网址通常是英文的,因此不用再进一步对其它域进行判断了。
- \map{%将没有设置的language设置成en,即认为不是中文的就是英文的。
- \step[fieldset=language,fieldvalue={english}]
- }
- \map{%一条文献的语言已经设定在language域中,由于出版项相关宏中使用userd判断,
- %所以将一条文献的主体语言设定到userd中,本身前面userd已经设定,但没有处理无标题的情况,
- %这里的处理等价于没有标题时,利用作者的语言设定userd,再没有作者,则默认用英文设定userd
- \step[fieldsource=language]
- \step[fieldset=userd,origfieldval]
- }
- \map{%当文献给出language域时,设置文献要使用的本地化字符串的语言
- %biblatex 3.11及以下版本仅有match是区分大小写的,而3.12版开始用matchi来区分大小,而match不区分
- %这里为兼容3.11及以下版本,所以用一个复杂一点的正则表达式
- \step[fieldsource=language,match=\regexp{(e|E)(n|N)(g|G)(l|L)(i|I)(s|S)(h|H)},final]
- \step[fieldset=langid,fieldvalue={english}]
- \step[fieldset=lansortorder,fieldvalue=\lanenorder]
- }
- \map{
- \step[fieldsource=language,match=\regexp{(r|R)(u|U)(s|S)(s|S)(i|I)(a|A)(n|N)},final]
- \step[fieldset=langid,fieldvalue={russian}]
- \step[fieldset=lansortorder,fieldvalue=\lanruorder]
- }
- \map{%
- \step[fieldsource=language,match=\regexp{(f|F)(r|R)(e|E)(n|N)(c|C)(h|H)},final]
- \step[fieldset=langid,fieldvalue={french}]
- \step[fieldset=lansortorder,fieldvalue=\lanfrorder]
- }
- \map{%
- \step[fieldsource=language,match=\regexp{(c|C)(h|H)(i|I)(n|N)(e|E)(s|S)(e|E)},final]%中日韩语目前都用english,
- \step[fieldset=langid,fieldvalue={english}]
- \step[fieldset=lansortorder,fieldvalue=\lancnorder]
- }
- \map{%
- \step[fieldsource=language,match=\regexp{(j|J)(a|A)(p|P)(a|A)(n|N)(e|E)(s|S)(e|E)},final]%中日韩语目前都用english,
- \step[fieldset=langid,fieldvalue={english}]
- \step[fieldset=lansortorder,fieldvalue=\lanjporder]
- }
- \map{%
- \step[fieldsource=language,match=\regexp{(k|K)(o|O)(r|R)(e|E)(a|A)(n|N)},final]%中日韩语目前都用english,
- \step[fieldset=langid,fieldvalue={english}]
- \step[fieldset=lansortorder,fieldvalue=\lankrorder]
- }
-}
-}
-
-
-%
-% 修改输入的参考文献数据,样式层的操作
-%
-% 原理方法:因为biblatex3.0版的map不使用foreach选项,所以需要一个一个写,以处理特殊字符
-\defversion{3.0}{map}{
- \DeclareStyleSourcemap{
- \maps[datatype=bibtex]{
- \map{%尝试未定义数据模型的standard类型映射为其他类型book或inbook,
- %standard类型在blx-dm中有出现,但仅定义了类型,域和约束等都没有定义
- %因为可能要映射两种类型,所以不能在驱动层处理,因为要做判断
- \step[fieldsource=booktitle,final]%当存在booktitle域是映射为inbook
- \step[typesource=standard, typetarget=inbook, final]
- }
- \map{%剩下的全部映射为book
- \step[typesource=standard, typetarget=book, final]
- }
-% \map{%先于标准样式的driver层映射,以取消type设置
-% \step[typesource=mastersthesis, typetarget=thesis, final]
-% %\step[fieldset=type, fieldvalue=mathesis]
-% }
-% \map{%先于标准样式的driver层映射,以取消type设置
-% \step[typesource=phdthesis, typetarget=thesis, final]
-% %\step[fieldset=type, fieldvalue=phdthesis]
-% }
- \map{%先于标准样式的driver层映射,以取消type设置
- \step[typesource=techreport, typetarget=report, final]
- %\step[fieldset=type, fieldvalue=techreport]
- }
- \map{%
- \pertype{report}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=report,typetarget=online]
- \step[fieldset=note,fieldvalue={report}]
- }
- \map{%
- \pertype{thesis}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=thesis,typetarget=online]
- }
- \map{%
- \pertype{manual}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=manual,typetarget=online]
- }
- \map{%
- \pertype{unpublished}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=unpublished,typetarget=online]
- }
- \map{%
- \pertype{database}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=databasetypetarget=online]
- }
- \map{%
- \pertype{dataset}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=dataset,typetarget=online]
- }
- \map{%
- \pertype{software}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=software,typetarget=online]
- }
- \map{%
- \pertype{map}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=map,typetarget=online]
- }
- \map{%
- \pertype{archive}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=archive,typetarget=online]
- }
- \map[overwrite]{%这里还必须有overwrite,注意不同版本存在差异,比如texlive2015变16后biber有变化(20161207修改正确)
- \step[fieldsource=note, final]%将note域信息复制给keywords,用于输出时容易区分标准和报纸
- \step[fieldset=keywords, fieldvalue={,}, append]
- \step[fieldset=keywords, origfieldval, append]
- }
- \map[overwrite]{%title,booktitle,journaltitle,journal,publisher,address,location,institution,organization
- \step[fieldsource={title}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- \map[overwrite]{
- \step[fieldsource={booktitle}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- \map[overwrite]{
- \step[fieldsource={journaltitle}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- \map[overwrite]{
- \step[fieldsource={journal}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- \map[overwrite]{
- \step[fieldsource={publisher}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- \map[overwrite]{
- \step[fieldsource={address}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- \map[overwrite]{
- \step[fieldsource={location}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- \map[overwrite]{
- \step[fieldsource={institution}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- \map[overwrite]{
- \step[fieldsource={booktitle}, match=\regexp{([^\\])\#}, replace=\regexp{$1\\\#}]
- }
- \map[overwrite]{
- \step[fieldsource={booktitle}, match=\regexp{([^\\])\%}, replace=\regexp{$1\\\%}]
- }
- }
- }
-}
-
-%
-% 修改输入的参考文献数据,样式层的操作
-%
-% 原理方法:biblatex3.4以上版本
-\defversion{3.4}{map}{
- \DeclareStyleSourcemap{
- \maps[datatype=bibtex]{
- \map{%尝试未定义数据模型的standard类型映射为其他类型book或inbook,
- %standard类型在blx-dm中有出现,但仅定义了类型,域和约束等都没有定义
- %因为可能要映射两种类型,所以不能在驱动层处理,因为要做判断
- \step[fieldsource=booktitle,final]%当存在booktitle域是映射为inbook
- \step[typesource=standard, typetarget=inbook, final]
- }
- \map{%剩下的全部映射为book
- \step[typesource=standard, typetarget=book, final]
- }
-% \map{%先于标准样式的driver层映射,以取消type设置
-% \step[typesource=mastersthesis, typetarget=thesis, final]
-% %\step[fieldset=type, fieldvalue=mathesis]
-% }
-% \map{%先于标准样式的driver层映射,以取消type设置
-% \step[typesource=phdthesis, typetarget=thesis, final]
-% %\step[fieldset=type, fieldvalue=phdthesis]
-% }
- \map{%先于标准样式的driver层映射,以取消type设置
- \step[typesource=techreport, typetarget=report, final]
- %\step[fieldset=type, fieldvalue=techreport]
- }
- \map{%
- \pertype{report}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=report,typetarget=online]
- \step[fieldset=note,fieldvalue={report}]
- }
- \map{%
- \pertype{thesis}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=thesis,typetarget=online]
- }
- \map{%
- \pertype{manual}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=manual,typetarget=online]
- }
- \map{%
- \pertype{unpublished}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=unpublished,typetarget=online]
- }
- \map{%
- \pertype{database}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=databasetypetarget=online]
- }
- \map{%
- \pertype{dataset}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=dataset,typetarget=online]
- }
- \map{%
- \pertype{software}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=software,typetarget=online]
- }
- \map{%
- \pertype{map}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=map,typetarget=online]
- }
- \map{%
- \pertype{archive}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=archive,typetarget=online]
- }
- \map[overwrite]{%这里还必须有overwrite,注意不同版本存在差异,比如texlive2015变16后biber有变化(20161207修改正确)
- \step[fieldsource=note, final]%将note域信息复制给keywords,用于输出时容易区分标准和报纸
- \step[fieldset=keywords, fieldvalue={,}, append]
- \step[fieldset=keywords, origfieldval, append]
- }
- \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{
- \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\#}, replace=\regexp{$1\\\#}]
- }
- \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{
- \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\%}, replace=\regexp{$1\\\%}]
- }
- \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,%
- address,location,institution,organization}]{
- \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- }
- }
-}
-
-\iftoggle{iftlfive}%
- {\switchversion{3.0}{map}}%%当采用biblatex<=3.2版本时
- {\switchversion{3.4}{map}}%%当采用3.3<=biblatex版本时
-
-
-%
-% 不同语言分集调整的实现方式
-%
-% 原理方法:利用样式层的动态数据修改lansortorder域来实现排序
-\def\dealsortlan{
- \DeclareStyleSourcemap{
- \maps[datatype=bibtex]{
- \map[overwrite]{%当文献给出language域时,设置文献要使用的本地化字符串的语言
- \step[fieldsource=language,match=english,final]
- \step[fieldset=lansortorder,fieldvalue=\lanenorder]
- }
- \map[overwrite]{
- \step[fieldsource=language,match=russian,final]
- \step[fieldset=lansortorder,fieldvalue=\lanruorder]
- }
- \map[overwrite]{%
- \step[fieldsource=language,match=french,final]
- \step[fieldset=lansortorder,fieldvalue=\lanfrorder]
- }
- \map[overwrite]{%
- \step[fieldsource=language,match=chinese,final]%中日韩语目前都用english,
- \step[fieldset=lansortorder,fieldvalue=\lancnorder]
- }
- \map[overwrite]{%
- \step[fieldsource=language,match=japanese,final]%中日韩语目前都用english,
- \step[fieldset=lansortorder,fieldvalue=\lanjporder]
- }
- \map[overwrite]{%
- \step[fieldsource=language,match=korean,final]%中日韩语目前都用english,
- \step[fieldset=lansortorder,fieldvalue=\lankrorder]
- }
- }
- }
-}
-
-%
-%驱动别名等价于驱动层映射
-%
-\DeclareBibliographyAlias{newspaper}{article}%
-\DeclareBibliographyAlias{inproceedings}{inbook}%会议论文文献类型驱动
-\DeclareBibliographyAlias{conference}{inbook}%会议论文文献类型驱动
-\DeclareBibliographyAlias{incollection}{inbook}%文集中析出文献类型驱动
-\DeclareBibliographyAlias{collection}{book}%%文集类型驱动
-\DeclareBibliographyAlias{proceedings}{book}%会议论文集文献类型驱动
-\DeclareBibliographyAlias{thesis}{manual}%学位论文驱动
-\DeclareBibliographyAlias{unpublished}{manual}%其它类型驱动
-\DeclareBibliographyAlias{database}{manual}
-\DeclareBibliographyAlias{dataset}{manual}
-\DeclareBibliographyAlias{software}{manual}
-\DeclareBibliographyAlias{map}{manual}
-\DeclareBibliographyAlias{archive}{manual}
-
-%=====================================================================
-% 设置排序格式
-%=====================================================================
-%
-% 排序格式,用降序,及userb域,针对biblatex3.7及以下版本
-%
-\defversion{3.7}{sort}{%这是3.4版的,3.7版略有差异,但不大,后面有注释
- \DeclareSortingScheme{gb7714-2015}{
- \sort{
- \field{presort}
- }
- %\sort[final]{
- %\field{sortkey}
- %}
- \sort{
- \field{lansortorder}%language
- }
- \sort{
- \field{sortkey}
- }
- \sort{%[direction=descending]
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field[padside=left,padwidth=4,padchar=0]{volume}%3.7版是\field{volume}
- \literal{0000}%3.7版是\literal{0}
- }
- }
-
- %降序的nyt
- \DeclareSortingScheme{gbnytd}{
- \sort{
- \field{presort}
- }
- %\sort[final]{
- %\field{sortkey}
- %}
- \sort{
- \field{lansortorder}%language
- }
- \sort[direction=descending]{
- \field{sortkey}
- }
- \sort[direction=descending]{
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field[padside=left,padwidth=4,padchar=0]{volume}%3.7版是\field{volume}
- \literal{0000}%3.7版是\literal{0}
- }
- }
-
- %降序的ynt
- \DeclareSortingScheme{gbyntd}{
- \sort{
- \field{presort}
- }
- %\sort[final]{
- %\field{sortkey}
- %}
- \sort{
- \field{lansortorder}%language
- }
- \sort[direction=descending]{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sortkey}
- }
- \sort{
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field[padside=left,padwidth=4,padchar=0]{volume}%3.7版是\field{volume}
- \literal{0000}%3.7版是\literal{0}
- }
- }
-
- %升序的ynt
- \DeclareSortingScheme{gbynta}{
- \sort{
- \field{presort}
- }
- %\sort[final]{
- %\field{sortkey}
- %}
- \sort{
- \field{lansortorder}%language
- }
- \sort{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sortkey}
- }
- \sort{
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field[padside=left,padwidth=4,padchar=0]{volume}%3.7版是\field{volume}
- \literal{0000}%3.7版是\literal{0}
- }
- }
-}
-
-
-%
-% 排序格式,用降序,及userb域,针对biblatex3.8及以上版本
-%
-\defversion{3.8}{sort}{
- \DeclareSortingTemplate{gb7714-2015}{
- \sort{
- \field{presort}
- }
- %\sort[final]{
- %\field{sortkey}
- %}
- \sort{
- \field{lansortorder}%language
- }
- \sort{
- \field{sortkey}
- }
- \sort{%[direction=descending]
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field{volume}
- \literal{0}
- }
- }
-
- %降序的nyt
- \DeclareSortingTemplate{gbnytd}{
- \sort{
- \field{presort}
- }
-% \sort[final]{
-% \field{sortkey}
-% }
- \sort{
- \field{lansortorder}%language
- }
- \sort[direction=descending]{
- \field{sortkey}
- }
- \sort[direction=descending]{%
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field{volume}
- \literal{0}
- }
- }
-
- %降序的ynt
- \DeclareSortingTemplate{gbyntd}{
- \sort{
- \field{presort}
- }
-% \sort[final]{
-% \field{sortkey}
-% }
- \sort{
- \field{lansortorder}%language
- }
- \sort[direction=descending]{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sortkey}
- }
- \sort{%
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field{volume}
- \literal{0}
- }
- }
-
- %升序的ynt
- \DeclareSortingTemplate{gbynta}{
- \sort{
- \field{presort}
- }
-% \sort[final]{
-% \field{sortkey}
-% }
- \sort{
- \field{lansortorder}%language
- }
- \sort{%[direction=ascending]
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sortkey}
- }
- \sort{%
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field{volume}
- \literal{0}
- }
- }
-}
-
-
-\ifboolexpr{
-test {\iftoggle{iftlfive}}
-or
-test {\iftoggle{iftlsix}}
-or
-test {\iftoggle{iftlseven}}%biblatex<=3.7
-}{\switchversion{3.7}{sort}}{\switchversion{3.8}{sort}}%3.8<=biblatex
-
-%=====================================================================
-% 参考文献表环境
-%=====================================================================
-%
-% 列表格式
-%
-% 增加一个\bibitemindent尺寸用于控制list环境的itemindent
-% v1.0l,20180615,hzz
-% v1.0t,20200319,hzz,增加尺寸\biblabelextend使某些字体下标签宽度不足时可增加标签宽度
-\setlength{\bibhang}{\biblabelsep}%
-\newlength{\bibitemindent}
-\setlength{\bibitemindent}{0pt}
-\newlength{\biblabelextend}
-\setlength{\biblabelextend}{0pt}
-
-
-\defbibenvironment{bibliography}
- {\list
- {\printtext[labelnumberwidth]{%
- \printfield{labelprefix}%
- \printfield{labelnumber}}}
- {\addtolength{\labelnumberwidth}{\biblabelextend}%
- \setlength{\labelwidth}{\labelnumberwidth}%
- \setlength{\labelsep}{\biblabelsep}%
- \setlength{\leftmargin}{\bibhang}%
- \addtolength{\leftmargin}{\labelnumberwidth}%
- \setlength{\itemindent}{\bibitemindent}%
- \setlength{\itemsep}{\bibitemsep}%
- \setlength{\parsep}{\bibparsep}}%
- \renewcommand*{\makelabel}[1]{\hss##1}}
- {\endlist}
- {\item}
-
-%
-% 顺序编码制-标签对齐方式处理
-%
-% 原理方法:利用选项提供的计数器数值做选择
-% 左对齐,右对齐为list环境下的处理,此时list环境的\labelwidth只能设置一个,是最宽标签的宽度
-% 项对齐则是在段落环境下做的处理。
-% 左对齐时,参考文献各项内容对齐,序号标签与参考文献项内容的间距可变
-% 右对齐时,参考文献各项内容对齐,序号标签与参考文献项内容的间距相等,标签与页边距离可变
-% 项对齐时,序号标签贴在页边,序号标签与参考文献项内容的间距相等
-% 修改序号标签格式为:
-% \DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}} %源来自numeric.BBX
-% \DeclareFieldFormat{labelnumberwidth}{\ttfamily\mkbibbrackets{#1}\hfill}
-\DeclareFieldFormat{labelnumberwidth}{%
-\ifcase\value{gbalignlabel}%右对齐,整个标签为右对齐
- \mkgbnumlabel{#1}%
-\or%左对齐,整个标签为左对齐
- \mkgbnumlabel{#1}\hfill%
-\or%中间对齐,比如:序号数字居于[]中间
- \hfil\mkgbnumlabel{\hfill#1\hfill}\hfil%
-\fi}
-
-%
-% 修改序号标签格式为以各条参文献为基础进行对齐的方式,即序号与条目内容间隔相等的方式。
-\def\setaligngbstyle{%
-\def\blx@bibitem##1{%
- \blx@ifdata{##1}
- {\begingroup
- \blx@getdata{##1}%
- \blx@bibcheck
- \iftoggle{blx@skipentry}{}{%
- \blx@setdefaultrefcontext{##1}%
- \global\let\blx@noitem\@empty
- \blx@setoptions@type\abx@field@entrytype
- \blx@setoptions@entry
- \blx@thelabelnumber
- \addtocounter{instcount}\@ne
- \blx@initsep
- \blx@namesep
- \csuse{blx@item@\blx@theenv}\relax
-% \blx@initsep %移动到上面去,恢复bibnamesep等的作用机制
-% \blx@namesep
- \csuse{blx@hook@bibitem}%
- \blx@execute
- \blx@initunit
- \blx@anchor
- \blx@beglangbib
- \bibsentence
- \blx@pagetracker
- \blx@driver\abx@field@entrytype
- \blx@postpunct
- \blx@endlangbib}%
- \par\endgroup}%这里增加了一个\par
- {}}
-\newlength{\lengthid}
-\newlength{\lengthlw}
-\newcommand{\itemcmd}{%
-\settowidth{\lengthid}{\mkgbnumlabel{\printfield{labelnumber}}}
-\addtolength{\lengthid}{\biblabelsep}
-\setlength{\lengthlw}{\textwidth}
-\addtolength{\lengthlw}{-\lengthid}
-\addvspace{\bibitemsep}%恢复\bibitemsep的作用
-%\parshape 2 0em \textwidth \lengthid \lengthlw
-\hangindent\lengthid
-\mkgbnumlabel{\printfield{labelnumber}}%
-\hspace{\biblabelsep}}
-%
-% 简单的段落环境
-\defbibenvironment{bibliography}
-{\begingroup\setlength{\parindent}{0em}}
-{\endgroup}
-{\itemcmd}}
-
-
-%=====================================================================
-% 设置单元或块等的标点
-%=====================================================================
-\renewrobustcmd*{\bibinithyphendelim}{\addhighpenspace}%用于处理姓名中名部分存在-的情况,比如ZHANG Yu-xin
-\renewcommand*{\subtitlepunct}{\addcolon\addspace} %修改标题和其它标题信息间的标点,来源biblatex.def,
-%
-% 利用set实现的多语言文献不同语言间的分隔符
-% 20170411,双语之间用newline替换par,避免采用gb7714-2015的项对齐方式第二语言间分段导致没有缩进
-%
-% 原理方法:set方法可以参考3.11.5 Entry Sets,4.11.1 Entry Sets
-% 这里调整一下两种语言参考文献的间隔,源来自biblatex.def
-\renewcommand*{\entrysetpunct}{\adddot\newline\nobreak}
-\renewcommand*{\bibpagespunct}{\addcolon\addthinspace}%%页码引用格式的修改,修改为用冒号
-%\renewcommand{\relateddelim}{}%\par
-
-%=====================================================================
-% 修改域的格式,重定义域的输出宏
-%=====================================================================
-%
-% 新增文献类型标识符的格式
-% []前的nobreak,从GB4.1节的例子看不应该加,所以去掉
-% 但因为考虑到cjk字符和[]之间可能添加空格,所以仍然加上
-% 而[]中间的内容,从4.6.2节的例子看也是可以分割的,因此内部的nobreak也可以去掉
-%
-\DeclareFieldFormat{gbtypeflag}{%
-\iftoggle{bbx:gbmedium}%
-{\iftoggle{bbx:url}%
- {\iffieldundef{url}%当存在url时,增加一个OL标识符
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}}%
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\texttt{/}OL]}}%
- }%
- {\ifentrytype{online}%
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\texttt{/}OL]}}%
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}}%
- }}%
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{]}}%
-}
-
-%
-% 新增用于报纸的文献类型标识符的格式
-%
-\DeclareFieldFormat{gbtypeflagn}{%用于报纸newspaper
-\iftoggle{bbx:gbmedium}%
-{\iftoggle{bbx:url}%
- {\iffieldundef{url}%当存在url时,增加一个OL标识符
- {\nobreak\printtext{[}\nobreak N\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
- {\nobreak\printtext{[}\nobreak N\printtext{\texttt{/}OL]}\nobreak}%
- }%
- {\nobreak\printtext{[}\nobreak N\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
-}{\nobreak\printtext{[}\nobreak N\printtext{]}\nobreak}%
-}
-
-%
-% 新增用于标准的文献类型标识符的格式
-%
-\DeclareFieldFormat{gbtypeflags}{%用于标准standard
-\iftoggle{bbx:gbmedium}%
-{\iftoggle{bbx:url}%
- {\iffieldundef{url}%当存在url时,增加一个OL标识符
- {\nobreak\printtext{[}\nobreak S\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
- {\nobreak\printtext{[}\nobreak S\printtext{\texttt{/}OL]}\nobreak}%
- }%
- {\nobreak\printtext{[}\nobreak S\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
-}{\nobreak\printtext{[}\nobreak S\printtext{]}\nobreak}%
-}
-
-%
-% 重设title等参考文献信息的输出格式
-%
-% 原理方法:修改来自biblatex.def文件的原格式
-\newcommand{\bibtitlefont}{}
-\newcommand{\bibauthorfont}{}
-\newcommand{\bibpubfont}{}
-
-\DeclareFieldFormat{title}{#1\adddot\addthinspace}
-\DeclareFieldFormat{journaltitle}{#1\isdot}%添加\isdot用于缩写名带点情况,将其转换为缩写点,便于标点的追踪
-\DeclareFieldFormat{issuetitle}{#1}
-\DeclareFieldFormat{maintitle}{#1}
-\DeclareFieldFormat{booktitle}{#1}
-\DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉
- [article,patent,thesis,unpublished]
- {title}{#1\adddot\addthinspace}%\mkbibquote{#1\isdot}
-\DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉
- [inbook,incollection,inproceedings]
- {title}{#1}%\nopunct\unspace
-\DeclareFieldFormat{url}{\url{#1}} %%url相关输出,url域修改如本行,源来自biblatex.def
-\def\UrlFont{\rmfamily}%设置url字体为roman字体%\ttfamily
-%\urlstyle{rm} %使用这句也一样
-\setcounter{biburlnumpenalty}{100} %让url可以在数字后断行
-\setcounter{biburlucpenalty}{100} %让url可以在大写字母后断行
-\setcounter{biburllcpenalty}{100} %让url可以在小写字母后断行
-\DeclareFieldFormat{doi}{%
- \rmfamily{DOI}\addcolon\space
- \ifhyperref
- {\href{https://doi.org/#1}{\nolinkurl{#1}}}
- {\nolinkurl{#1}}}
-%
-% 标题的字母大小写格式修改
-%
-% 注意:修改标题的字母大小写,不能用前面的title的格式而要用titlecase
-% 因为titlecase is applied to the contents of the field directly,title is not
-%\DeclareFieldFormat{titlecase}{\MakeCapital#1}%重设标题格式,将其修改为首字母大写
-\DeclareFieldFormat{titlecase}{\iftoggle{bbx:titlelink}{%
-\iffieldundef{url}{\MakeCapital#1}{%
-\href{\thefield{url}}{#1}}}{\MakeCapital#1}}%重设标题格式,将其修改为首字母大写
-\DeclareFieldFormat{pages}{#1}%去掉前面引导页码的pp.等字符,\mkpageprefix[bookpagination]{#1}
-\DefineBibliographyExtras{english}{\renewcommand*{\bibrangedash}{-}}%将页码间隔符替换会英文的短横线
-\DefineBibliographyExtras{russian}{\renewcommand*{\bibrangedash}{-}}%将页码间隔符替换会英文的短横线
-
-\def\execgbfdfmtstd{%恢复到标准样式的设置
-\DeclareFieldFormat{title}{\mkbibemph{##1}}
-\DeclareFieldFormat
- [article,inbook,incollection,inproceedings,patent,thesis,unpublished]
- {title}{\mkbibquote{##1\isdot}}
-\DeclareFieldFormat
- [suppbook,suppcollection,suppperiodical]
- {title}{##1}
-\DeclareFieldFormat{journaltitle}{\mkbibemph{##1}}
-\DeclareFieldFormat{issuetitle}{\mkbibemph{##1}}
-\DeclareFieldFormat{maintitle}{\mkbibemph{##1}}
-\DeclareFieldFormat{booktitle}{\mkbibemph{##1}}
-\DeclareFieldFormat{url}{\mkbibacro{URL}\addcolon\space\url{##1}}
-\DeclareFieldFormat{titlecase}{##1}
-\DeclareFieldFormat{pages}{\mkpageprefix[bookpagination]{##1}}
-}
-
-%
-% 文献标题后的标点问题
-% v1.0k,20180405,为texlive2017以上版本中的beamer兼容性做的处理,Hu Zhenzhen
-%
-% 原理方法:如下代码处理texlive2017以上版本中,beamer中文献的标题后出现两个点的情况:
-% texlive2017以上的beamer中对macro{title}做了patch,正常情况下不会出现两个点的情况,但由于
-% 之前为了处理texlive2015,2016下的title格式添加了adddot,导致出现两个点的情况,而且也影响
-% 析出文献的//符号的输出,因此再次对macro{title}做patch消除beamer中做apptocmd时添加的\newunitpunct
-\ifboolexpr{%
- test{\iftoggle{iftlfive}}
- or
- test{\iftoggle{iftlsix}}
- }{}%
- {%texlive 2017对应iftlseven以上版本
- \@ifclassloaded{beamer}{
- \DeclareFieldFormat{title}{#1}%
- \DeclareFieldFormat[article,patent,thesis,unpublished]{title}{#1}
- \AtBeginDocument{%
- \patchcmd{\abx@macro@title}{\newunitpunct}{}{}{}}}{}
- }
-
-
-%
-% 修改译者位置格式
-%
-% 原理方法:修改来自biblatex.def文件的bytranslator+others宏的格式
-\renewbibmacro*{bytranslator+others}{\bibauthorfont%
- \ifnameundef{translator}
- {}
- {%\usebibmacro{bytranslator+othersstrg}
- %\setunit{\addspace}%
- \printnames[bytranslator]{translator}%
- \clearname{translator}%
- %从macro*{bytranslator+othersstrg}%中可以看到当地化字符串格式的引用前的代码处理
- %比如生成cotranslator等用于调用cotranslator所代表的当地化字符串
- \usebibmacro{bytranslator+othersstrg}%“译”的位置换到下面来,即放到译者后面。
- %\setunit{\addspace}%
- \newunit}%
- \usebibmacro{withothers}}
-
-
-%
-% 修改作者数量超过限定值,做省略时的处理格式
-% v1.0,20160701,hzz
-% v1.0O,20190103,hzz,修改利用新定义的一个分隔符strandothersdelim
-%
-% 原理方法:判断作者或译者是否中文,若中文用字符等,否则用et al. 。
-\renewbibmacro*{name:andothers}{\bibauthorfont%
- \ifboolexpr{
- test {\ifnumequal{\value{listcount}}{\value{liststop}}}
- and
- test \ifmorenames
- }{\ifnumgreater{\value{liststop}}{1}%
- {\finalandcomma}%
- {}%
-\printdelim{andothersdelim}\printdelim{strandothersdelim}%
-}{%当是译者的时候需要特殊处理:从7.2节看等,译前面加逗号,但从示例看等和译同时出现时,译前的逗号没有,比如:
-%袁训来, 陈哲, 肖书海, 等.
-%胡泳, 范海燕, 译.
-%潘惠霞, 魏婧, 杨艳, 等译.
-\ifcurrentname{translator}{\addcomma\addthinspace}{}%为了实现上述第二个示例情况做的处理
-}}
-
-
-% 修改省略作者后的本地化字符串,比如et al.
-% v1.0o,20190103,hzz
-%
-% 原理方法:默认情况下判断作者或译者是否中文,若中文用字符andotherscn=“等”,否则用andothers=“et al.”。
-% 非默认情况,根据选项信息,选择选择强制中文或英文
-% 首先设置全局的,然后设置文献表中的,这一等价于将所有的cite命令环境都设置过了
-% 而不用对每一个引用命令单独设置,比如cite,parancite,textcite都设置
-\DeclareDelimFormat{strandothersdelim}{%
- \edef\userfieldabcde{userd}%这里使用\iffieldequalstr{labelnamesource}替代ifcurrentname因为标注中使用ifcurrentname无效
- \iffieldequalstr{labelnamesource}{translator}{\edef\userfieldabcde{usere}}{}%
- \iffieldequalstr{labelnamesource}{editor}{\edef\userfieldabcde{userc}}{}%
- \iffieldequalstr{labelnamesource}{author}{\edef\userfieldabcde{userf}}{}%
- \iffieldequalstr{labelnamesource}{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbcitelocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\ifbibstring{andothersincitecn}{\bibstring{andothersincitecn}}{\bibstring{andothers}}}{}%中文已经通过english本地化字符串定义
- \iffieldequalstr{\userfieldabcde}{korean}{\ifbibstring{andotherskr}{\bibstring{andotherskr}}{\bibstring{andothers}}}{}%韩语未定义,所以与bib中一致
- \iffieldequalstr{\userfieldabcde}{japanese}{\ifbibstring{andothersjp}{\bibstring{andothersjp}}{\bibstring{andothers}}}{}%日与同韩语
- \iffieldequalstr{\userfieldabcde}{english}{\ifbibstring{andothersincite}{\bibstring{andothersincite}}{\bibstring{andothers}}}{}%英语已定义
- \iffieldequalstr{\userfieldabcde}{french}{\bibstring{andothers}}{}%法语未定义,若要定义需要针对french本地化字符串定义
- \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{andothers}}{}%俄语未定义,若要定义需要针对russian本地化字符串定义
- \or%
- \bibstring{andothersincitecn}%
- \or%
- \bibstring{andothersincite}%
- \fi}
-
-
-\DeclareDelimFormat[bib,biblist]{strandothersdelim}{%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbbiblocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andotherscn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andotherskr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andothersjp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\bibstring{andothers}}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\bibstring{andothers}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{andothers}}{}%
- \or%
- \bibstring{andotherscn}%
- \or%
- \bibstring{andothers}%
- \fi}
-
-%
-% 修改最后一个作者前的字符串,比如 and
-% v1.0o,20190103,hzz
-%
-% 原理方法:默认情况下判断作者或译者是否中文,若中文用字符andcn=“和”,否则用and=“and”。
-% 非默认情况,根据选项信息,选择选择强制中文或英文
-% 首先设置全局的,然后设置文献表中的,这一等价于将所有的cite命令环境都设置过了
-% 而不用对每一个引用命令单独设置,比如cite,parancite,textcite都设置
-\DeclareDelimFormat{finalnamedelim}{%
- \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
-% \addspace%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbcitelocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andincitecn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andkr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andjp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\space\bibstring{andincite}\space}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\space\bibstring{and}\space}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\space\bibstring{and}\space}{}%
-%\space%
- \or%
- \bibstring{andincitecn}%\space%
- \or%
-\space\bibstring{andincite}\space%
- \fi}
-
-\DeclareDelimFormat[bib,biblist]{finalnamedelim}{%
- \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
- \addspace%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbbiblocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andcn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andkr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andjp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\bibstring{and}}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\bibstring{and}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{and}}{}%
-\space%
- \or%
- \bibstring{andcn}\space%
- \or%
- \bibstring{and}\space%
- \fi}
-
-
-%
-% 重设title的输出
-%
-% 20180425,v1.0k,为标题增加字体控制命令,Hu Zhenzhen
-% 原理方法:将文献类型标识符输出出去,原输出来自biblatex.def文件
-% 利用toggle做标识符是否输出的判断
-\renewbibmacro*{title}{%
- \ifboolexpr{%
- test{\iffieldundef{title}}%
- and
- test{\iffieldundef{subtitle}}%
- }%
- {}%
- {\printtext[title]{\bibtitlefont%增加字体控制命令
- \printfield[titlecase]{title}%
- \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
- {}{\setunit{\subtitlepunct}%
- \printfield[titlecase]{subtitle}}%
- \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
- {\setunit{\subtitlepunct}\printfield{titleaddon}}%
- \iftoggle{bbx:gbtype}{%
- \iffieldundef{note}{\printfield[gbtypeflag]{usera}}%在标题后直接给出文献标识字母,判断一下,是否是报纸和标准
- {\iffieldequalstr{note}{standard}{\printfield[gbtypeflags]{usera}}%判断是否为标准
- {\iffieldequalstr{note}{news}{\printfield[gbtypeflagn]{usera}}%判断是否为报纸
- {\printfield[gbtypeflag]{usera}}}%其它
- }}{}%
- %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
- %\newunit
-}%
-}}
-
-%
-% 作者信息的输出格式
-%
-% 20180425,v1.0k,为作者增加字体控制命令,Hu Zhenzhen
-% 20180603,v1.0l,增加使用nameformat域来选择姓名格式
-\DeclareNameFormat{namefmtselected}{%
-\iffieldundef{namefmtid}{}%
-{\defcounter{gbnamefmtcase}{\thefield{namefmtid}}}%
-\ifcase\value{gbnamefmtcase}%
- \ifgiveninits
- {\usebibmacro{name:gbuppercase}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:gbuppercase}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
-\or
- \ifgiveninits
- {\usebibmacro{name:gblowercase}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:gblowercase}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
-\or
- \ifgiveninits
- {\usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
-\or
- \ifgiveninits
- {\usebibmacro{name:family-given}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:family-given}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
-\or
-\usebibmacro{name:gbpinyin}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}%
-\or
- \ifnumequal{\value{listcount}}{1}
- {\ifgiveninits
- {\usebibmacro{name:family-given}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:family-given}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
- \ifboolexpe{%
- test {\ifdefvoid\namepartgiven}
- and
- test {\ifdefvoid\namepartprefix}}
- {}
- {\usebibmacro{name:revsdelim}}}
- {\ifgiveninits
- {\usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}}%
-\fi
- \usebibmacro{name:andothers}}
-
-\DeclareNameAlias{default}{namefmtselected}%姓名的默认格式采用可选的模式
-\DeclareNameAlias{sortname}{default}% Used in the bibliography %family-given/given-family
-\DeclareNameAlias{citename}{default}% Default used by \citename
-
-\DeclareDelimFormat[bib,biblist]{andothersdelim}{\addcomma\addspace}
-%\DeclareDelimFormat[textcite]{andothersdelim}{\addspace}%
-
-%GB/T 7714-2015 风格,全部大写
-\newbibmacro*{name:gbuppercase}[4]{\bibauthorfont%
-\renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
-\renewcommand*{\revsdnamepunct}{}%
- \ifuseprefix%
- {\usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifdefvoid{#3}{}{%
- \ifcapital%
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}%
- {\mkbibnameprefix{#3}\isdot}%
- \ifprefchar{}{\bibnamedelimc}}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
- \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{\MakeUppercase{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%后缀前加逗号
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
- \ifboolexpe{%
- test {\ifdefvoid{#2}}
- and
- test {\ifdefvoid{#3}}}
- {}{\revsdnamepunct}%
- \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{\MakeUppercase{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
- \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%%后缀前加逗号
-}
-
-%GB/T 7714-2015 风格,大小写不变,根据bib文件内输入原样输出
-\newbibmacro*{name:gblowercase}[4]{\bibauthorfont%
- \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
- \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
- \ifuseprefix
- {\usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifdefvoid{#3}{}{%
- \ifcapital
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
- {\mkbibnameprefix{#3}\isdot}%
- \ifprefchar{}{\bibnamedelimc}}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{{#1}}}\isdot%
- \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%后缀前加逗号
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{{#1}}}\isdot%
- \ifboolexpe{%
- test {\ifdefvoid{#2}}
- and
- test {\ifdefvoid{#3}}}
- {}{\revsdnamepunct}%
- \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}
- \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%%后缀前加逗号
-}
-
-%中文常见风格,汉语拼音全拼模式
-\newbibmacro*{name:gbpinyin}[4]{\bibauthorfont%
-\renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉,%来源biblatex2.STY
-\renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
-\renewrobustcmd*{\bibnamedelima}{\mbox{-}}%
- \ifuseprefix
- {\usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifdefvoid{#3}{}{%
- \ifcapital
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
- {\mkbibnameprefix{#3}\isdot}%
- \ifprefchar{}{\bibnamedelimc}}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
- \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\MakeSentenceCase{\mkbibnamegiven{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
- \ifboolexpe{%
- test {\ifdefvoid{#2}}
- and
- test {\ifdefvoid{#3}}}
- {}
- {\revsdnamepunct}%
- \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{\MakeCapital{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}
- \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%
-}
-
-
-\@ifpackagelater{biblatex}{2016/03/27}%biblatex<3.2版的情况
- {}{
- %GB/T 7714-2015 风格,全部大写
- \renewbibmacro*{name:gbuppercase}[4]{\bibauthorfont%
- \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
- \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
- \ifuseprefix
- {\usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifblank{#3}{}{%
- \ifcapital
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
- {\mkbibnameprefix{#3}\isdot}%
- \ifpunctmark{'}{}{\bibnamedelimc}}%
- %\mkbibnamelast{#1}\isdot
- \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeUppercase{#1}}}\isdot%\MakeUppercase %\mkbibnamelast{\MakeUppercase{#1}} %\MakeSentenceCase
- %注意上一句\MakeCapital后面如果再跟一个{}包含#1,则没有效果,可能是包在里面少了一层展开
- %因为机构名通常包括在{}内,所以要多展开一次才行,所以这里去掉#1外面的{}
- %\mkbibnamelast{\MakeUppercase{#1}}\isdot
- %\ifblank{#4}{}{\bibnamedelimd\mkbibnameaffix{#4}\isdot}%这句放到后面
- \ifblank{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamefirst{\MakeUppercase{#2}}\isdot}%
- \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}}%后缀前加逗号
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- %\mkbibnamelast{#1}\isdot %3.9.1 Generic Commands and Hooks,对姓重新处理,如下句: %\mkbibnamelast{\MakeUppercase{#1}}
- \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeUppercase{#1}}}\isdot %大写,参考4.6.4 Miscellaneous Commands,\MakeUppercase %\MakeSentenceCase
- %\mkbibnamelast{\MakeUppercase{#1}}\isdot
- %\ifblank{#4}{}{\bibnamedelimd\mkbibnameaffix{#4}\isdot}%这句放到后面
- \ifblank{#2#3}{}{\revsdnamepunct}%
- \ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{\MakeUppercase{#2}}\isdot}%
- \ifblank{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
- \addcomma\addspace%
- \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}%%后缀前加逗号
- }%
- }
-
- %GB/T 7714-2015 风格,大小写不变,根据bib文件内输入原样输出
- \renewbibmacro*{name:gblowercase}[4]{\bibauthorfont%
- \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
- \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
- \ifuseprefix
- {\usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifblank{#3}{}{%
- \ifcapital
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
- {\mkbibnameprefix{#3}\isdot}%
- \ifpunctmark{'}{}{\bibnamedelimc}}%
- \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{{#1}}}\isdot%\MakeUppercase %\mkbibnamelast{\MakeUppercase{#1}} %\MakeSentenceCase
- \ifblank{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamefirst{{#2}}\isdot}%
- \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}}%后缀前加逗号
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{{#1}}}\isdot %大写,参考4.6.4 Miscellaneous Commands,\MakeUppercase %\MakeSentenceCase
- \ifblank{#2#3}{}{\revsdnamepunct}%
- \ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{{#2}}\isdot}%
- \ifblank{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
- \addcomma\addspace%
- \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}%%后缀前加逗号
- }%
- }
-
- %中文常见风格,汉语拼音全拼模式
- \renewbibmacro*{name:gbpinyin}[4]{\bibauthorfont%
- \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
- \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
- \renewrobustcmd*{\bibnamedelima}{\mbox{-}}%
- \ifuseprefix
- {\usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifblank{#3}{}{%
- \ifcapital
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
- {\mkbibnameprefix{#3}\isdot}%
- \ifpunctmark{'}{}{\bibnamedelimc}}%
- \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeUppercase{#1}}}\isdot%\MakeUppercase %\mkbibnamelast{\MakeUppercase{#1}} %\MakeSentenceCase
- \ifblank{#2}{}{\revsdnamepunct\bibnamedelimd\MakeSentenceCase{\mkbibnamefirst{#2}}\isdot}%
- \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}}
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeUppercase{#1}}}\isdot %大写,参考4.6.4 Miscellaneous Commands,\MakeUppercase %\MakeSentenceCase
- \ifblank{#2#3}{}{\revsdnamepunct}%
- \ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{\MakeUppercase{#2}}\isdot}%
- \ifblank{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
- \addcomma\addspace%
- \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}%
- }%
- }
-
- %%biblatex<3.2版的情况,姓名的处理格式带参数
- \DeclareNameFormat{namefmtselected}{%
- \iffieldundef{namefmtid}{}%
- {\defcounter{gbnamefmtcase}{\thefield{namefmtid}}}%
- \ifcase\value{gbnamefmtcase}%
- \iffirstinits
- {\usebibmacro{name:gbuppercase}{#1}{#4}{#5}{#7}}
- {\usebibmacro{name:gbuppercase}{#1}{#3}{#5}{#7}}%
- \or
- \iffirstinits
- {\usebibmacro{name:gblowercase}{#1}{#4}{#5}{#7}}
- {\usebibmacro{name:gblowercase}{#1}{#3}{#5}{#7}}%
- \or
- \iffirstinits
- {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}}
- {\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}}%
- \ifblank{#3#5}
- {}
- {\usebibmacro{name:revsdelim}}%
- \or
- \iffirstinits
- {\usebibmacro{name:first-last}{#1}{#4}{#5}{#7}}
- {\usebibmacro{name:first-last}{#1}{#3}{#5}{#7}}%
- \or
- \usebibmacro{name:gbpinyin}{#1}{#3}{#5}{#7}%
- \or
- \ifnumequal{\value{listcount}}{1}
- {\iffirstinits
- {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}}
- {\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}}%
- \ifblank{#3#5}
- {}
- {\usebibmacro{name:revsdelim}}}
- {\iffirstinits
- {\usebibmacro{name:first-last}{#1}{#4}{#5}{#7}}
- {\usebibmacro{name:first-last}{#1}{#3}{#5}{#7}}}%
- \fi
- \usebibmacro{name:andothers}}
-}
-
-%
-% url和url日期格式
-%
-\renewbibmacro*{url+urldate}{%
- %\usebibmacro{url}%%更换url的位置,放到下面
- \iffieldundef{urlyear}%
- {}{%\setunit*{\addspace}%
- \usebibmacro{urldate}}%
- \setunit{\addperiod\addspace}%
- \usebibmacro{url}}
-\renewbibmacro*{url}{\printfield{url}}
-
-
-
-
-%
-% 日期信息的输出格式,针对biblatex<3.7版本
-%
-\defversion{3.4}{date}{
- \renewbibmacro*{urldate}{%
- \addthinspace\printtext{[}\printfield{urlyear}%
- \iffieldundef{urlmonth}{}{\bibrangedash\printfield{urlmonth}}%
- \iffieldundef{urlday}{}{\bibrangedash\printfield{urlday}}\printtext{]}}
-
- \newbibmacro*{newsdate}{%%新增加一个公告日期,公开日期或新闻日期
- \iffieldundef{year}{}{\printfield{year}%
- \iffieldundef{month}{}{\bibrangedash\printtext{\thefield{month}}%
- \iffieldundef{day}{}{\bibrangedash\printfield{day}}}}%
- }
-
- \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
- \ifboolexpr{%
- test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
- }%
- {}%更新或修改日期通常有day信息
- {\iffieldequalstr{year}{}{%替换\iffieldundef{year},因为year总是存在,但为空
- \iffieldundef{endyear}{%
- \iffieldundef{eventyear}{}{\printtext{\mkbibparens{\printtext{\printfield{eventyear}}%
- \iffieldundef{eventmonth}{}{\bibrangedash\thefield{eventmonth}}%
- \iffieldundef{eventday}{}{\bibrangedash\printfield{eventday}}}}%
- }%
- }{%
- \iffieldundef{endyear}{}{\printtext{\mkbibparens{\printtext{\printfield{endyear}}%
- \iffieldundef{endmonth}{}{\bibrangedash\thefield{endmonth}}%
- \iffieldundef{endday}{}{\bibrangedash\printfield{endday}}}}%
- }%
- }%
- }%
- {%
- \iffieldundef{year}{}{\printtext{\mkbibparens{\printtext{\printfield{year}}%
- \iffieldundef{month}{}{\bibrangedash\thefield{month}}%
- \iffieldundef{day}{}{\bibrangedash\printfield{day}}}}%
- }%
- }%
- }}%
-}
-
-%
-% 日期信息的输出格式,针对3.9>=biblatex>=3.7版本
-%
-\defversion{3.7}{date}{
- \DeclareFieldFormat{urldate}{##1}
- \renewbibmacro*{urldate}{%
- \addthinspace\printtext{[}\printurldate\printtext{]}}%能用高层命令+选项尽量用命令(比如这里的\printurldate),而不用\blx@edtfdate这种更底层的命令
-
- %
- % 专利的公告日期、或报纸的日期的输出宏
- % 20160701,v1.0,新增加
- % 20180405,v1.0k,为biblatexv3.7-3.9版本,出现多出点bug做处理,Hu Zhenzhen
- %
- % 原理方法:加上printtext避免破坏异步标点机制
- %
- \newbibmacro*{newsdate}{%
- \printtext{\blx@edtfdate{}{}}%
- }
-
- \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
- \ifboolexpr{%
- test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
- }%
- {}%更新或修改日期通常有day信息
- {\iffieldundef{year}{%
- \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\printtext{(}\printeventdate\printtext{)}}}%
- {\printtext{(}\printenddate\printtext{)}}%
- }{\iffieldequalstr{year}{}{%因为year存在,但为空
- }{\printtext{(}\blx@edtfdate{}{}\printtext{)}}%
- }%
- }}%
-}
-
-%
-% 日期信息的输出格式,针对biblatex>=3.10版本
-%
-\defversion{3.10}{date}{
- \DeclareFieldFormat{urldate}{##1}
- \renewbibmacro*{urldate}{%
- \addthinspace\printtext{[}\printurldate\printtext{]}}%能用高层命令+选项尽量用命令(比如这里的\printurldate),而不用\blx@edtfdate这种更底层的命令
-
- %
- % 专利的公告日期、或报纸的日期的输出宏
- % 20160701,v1.0,新增加
- % 20180405,为biblatexv3.10版本,出现多出点bug做处理,Hu Zhenzhen
- %
- % 原理方法:加上printtext避免破坏异步标点机制
- % 本可以用\printdate,但由于date选项设置为year,所以仅会给出年份
- % 所以无法再用选项设置的方法,印象需要用底层的命令
- % 这里可以用\blx@isodate,但用\blx@gbdate试图避免版本判断
- \newbibmacro*{newsdate}{%%
- \printtext{\blx@gbdate{}{}}%%\blx@isodate{}{}%
- }
-
- %
- \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
- \ifboolexpr{%
- test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
- }%
- {}%更新或修改日期通常有day信息
- {\iffieldundef{year}{%
- \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\printtext{(}\printeventdate\printtext{)}}}%
- {\printtext{(}\printenddate\printtext{)}}%
- }{\iffieldequalstr{year}{}{%因为year存在,但为空
- }{\printtext{(}\blx@gbdate{}{}\printtext{)}}%
- }%
- }}%
-}
-
-%
-% biblatex>v3.8版利用related实现双语文献的处理
-%
-\defversion{3.8}{dblang}{
- %为了实现v3.8以上版本的双语文献,采用related的方法代替set方法,因为set方法已经无法实现了,
- %因为set不再复制其第一个成员的信息。于是定义一个命令,用于动态的修改数据,即添加related域的信息
- %其中使用了\DeclareStyleSourcemap,但由于其只能出现在导言区中,因此\defdoublelangentry命令也只能出现在导言区中
- \newcommand{\defdoublelangentry}[2]{%
- \edef\entrykeya{##1}
- \edef\entrykeyb{##2}
- \DeclareStyleSourcemap{
- \maps[datatype=bibtex]{
- \map{
- \step[fieldsource=entrykey, match=\entrykeya, final]
- \step[fieldset=related, fieldvalue=\entrykeyb]
- }
- }
- }
- }
-}
-
-%
-% 关联文献间的分隔符
-%
-\renewcommand{\relateddelim}{\adddot\newline\nobreak}%\par,而作者年样式不需要修改,因为没有项对齐的标签问题
-
-%
-% 关联文献的输出格式,针对3.9>=biblatex>=3.7版本
-%
-% 原理方法:因为related宏中带有##了,所以无法封装到defversion中了。所以直接做判断
-% 下面这一段主要针对v3.8-3.10,因为我提问后,biblatex作者为3.11版增加了一个钩子控制relatedblock前的分隔符。
-\ifboolexpr{
-test{\iftoggle{iftleight}}
-or
-test{\iftoggle{iftlnine}}
-}{\renewbibmacro*{related}{%standard.bbx
- \ifboolexpr{ test {\iffieldundef{related}} or test {\ifrelatedloop} }
- {}
- {\usebibmacro{begrelated}%
- \def\bbx@tempa{}%
- \setcounter{bbx:relatedtotal}{0}%
- \def\do##1{%
- \entrydata{##1}{%
- \ifrelatedloop
- {}
- {\stepcounter{bbx:relatedtotal}%
- \gappto{\bbx@tempa}{##1,}}}}%
- \docsvfield{related}%
- \restorefield{related}{\bbx@tempa}%
- \ifnumgreater{\value{bbx:relatedtotal}}{0}
- {\listcsxadd{bbx:relatedloop}{\strfield{entrykey}}%
- \iffieldundef{clonesourcekey}
- {}
- {\listcsxadd{bbx:relatedloop}{\strfield{clonesourcekey}}}%
- \setcounter{bbx:relatedcount}{0}%
- \def\do{%
- \stepcounter{bbx:relatedcount}%
- \ifnumgreater{\value{bbx:relatedcount}}{0}%这里从1改为0
- {\ifcsundef{relateddelim\strfield{relatedtype}}
- {\printtext{\relateddelim}}
- {\printtext{\csuse{relateddelim\strfield{relatedtype}}}}}
- {}}%
- \ifbibmacroundef{related:\strfield{relatedtype}}
- {\appto{\do}{\usebibmacro{related:default}}}
- {\appto{\do}{\usebibmacro*{related:\strfield{relatedtype}}}}%
- \iffieldformatundef{related:\strfield{relatedtype}}
- {\def\bbx@tempa{related}}
- {\def\bbx@tempa{related:\strfield{relatedtype}}}%
- \iffieldformatundef{relatedstring:\strfield{relatedtype}}
- {\def\bbx@tempb{relatedstring:default}}
- {\def\bbx@tempb{relatedstring:\strfield{relatedtype}}}%
- \printtext[\bbx@tempa]{%
- \usebibmacro{begrelatedloop}%
- \iffieldundef{relatedstring}
- {\ifboolexpr{
- test {\ifnumgreater{\value{bbx:relatedtotal}}{1}}
- and
- test {\ifbibxstring{\thefield{relatedtype}s}}
- }
- {\printtext[\bbx@tempb]{%
- \bibstring[\mkrelatedstring]{\thefield{relatedtype}s}}}
- {\iffieldbibstring{relatedtype}
- {\printtext[\bbx@tempb]{%
- \bibstring[\mkrelatedstring]{\thefield{relatedtype}}}}
- {}}}
- {\iffieldbibstring{relatedstring}
- {\printtext[\bbx@tempb]{%
- \bibstring[\mkrelatedstring]{\thefield{relatedstring}}}}
- {\printfield[\bbx@tempb]{relatedstring}}}%
- \docsvfield{related}%
- \usebibmacro{endrelatedloop}}}%
- {}%
- \usebibmacro{endrelated}}}
-}{}
-
-%
-% 关联文献块前的分隔符,针对biblatex>3.11
-%
-% 原理方法:因为增加了begrelateddelim钩子,所以不需要重定义related输出宏
-\defversion{3.11}{related}{
-\renewcommand{\begrelateddelim}{\adddot\newline\nobreak}
-}
-
-\iftoggle{iftlfive}{\switchversion{3.4}{date}}{}%biblatex<=3.2
-\iftoggle{iftlsix}{\switchversion{3.4}{date}}{}%3.3<=biblatex<=3.6
-\iftoggle{iftlseven}{\switchversion{3.7}{date}}{}%biblatex=3.7
-\iftoggle{iftleight}{\switchversion{3.7}{date}\switchversion{3.8}{dblang}}{}%3.8<=biblatex<=3.9
-\iftoggle{iftlnine}{\switchversion{3.10}{date}\switchversion{3.8}{dblang}}{}%biblatex=3.10
-\iftoggle{iftlatest}{\switchversion{3.10}{date}\switchversion{3.8}{dblang}\switchversion{3.11}{related}}{}%biblatex最新3.11
-
-%
-% 调整doi+eprint+url格式
-% 2016.07.01 byhzz
-% 2019.05.01 byhzz 在eprint前增加一个空格
-% 原理方法:源来自standard.bbx,因为页码后面直接跟引用日期,没有标点所以去掉其中的标点。
-\renewbibmacro*{doi+eprint+url}{%
-% \iftoggle{bbx:doi}%把doi的位置放到url后面
-% {\printfield{doi}}
-% {}%
- %\newunit\newblock
- \iftoggle{bbx:eprint}
- {\iffieldundef{eprint}{}{\newunit\usebibmacro{eprint}}}
- {}%
- %\newunit\newblock
- \iftoggle{bbx:url}
- {\usebibmacro{url+urldate}}
- {}
- \newunit\newblock
- \iftoggle{bbx:doi}
- {\printfield{doi}}
- {}}
-
-%
-% 调整页码的格式,即chapter+pages格式
-%
-\renewbibmacro*{chapter+pages}{%
-\iftoggle{bbx:gbstrict}{}{%
- \printfield{chapter}}%
- \iffieldundef{pages}{}{%这里增加一个判断,当没有页码时就不输出
- \setunit{\bibpagespunct}%
- \printfield{pages}}%
- %\newunit %这里的标点去掉
-}
-
-%
-% 当location等出版项超过maxitem缩减后不再输出etal
-%
-\DeclareListFormat{location}{%
- \usebibmacro{list:delim}{#1}%
- #1\isdot}
-\DeclareListAlias{institution}{location}
-\DeclareListAlias{publisher}{location}
-
-% 新增一个样式用于输出连续出版物的地址,单位,时间,
-% 用于periodical连续出版物的出版社和地址的处理
-%
-% v1.0k,20180425,为出版信息增加字体控制命令,hzz
-% %类似\newbibmacro*{publisher+location+date}
-\newbibmacro*{location+institution+date}{\bibpubfont%
-\iftoggle{bbx:gbpub}%
-{\testCJKfirst{userd}%
-\ifboolexpr{%
-test {\iflistundef{location}} and test {\iflistundef{institution}}%
-}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress}\space :\space\str@nopublisher]}%
-{\printtext{[S.l.\space :\space s.n.\adddot]}}%
-}{%
-\iflistundef{location}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress]}}{\printtext{[S.l.\adddot]}}}%
- {\printlist{location}}%
-\addcolon\addspace%
-\iflistundef{institution}{%
-\iftoggle{ifCJKforgbt}{\printtext{[\str@nopublisher]}}{\printtext{\mkbibbrackets{s.n.}}}}%
-{\printlist{institution}}}%
-\setunit{\addcomma\addspace}%
- %\usebibmacro{date}%
- \printfield{year}%
- \bibrangedash%
- \iffieldundef{endyear}{}{\printfield{endyear}}%
- \newunit}%
-{\printlist{location}%
- \iflistundef{institution}%
- {\setunit*{\addcomma\space}}
- {\setunit*{\addcolon\space}}%
- \printlist{institution}%
- \setunit*{\addcomma\space}%
- \usebibmacro{date}%
- \newunit}%
-}
-%
-% 通用的出版社和地址的处理
-%
-% 原理方法:当没有出版社地址时,直接判断title的信息是否是中文,若为中文,则写出版地不详,否则用英文的字符表示。
-% 事实上title对于每个文献来说是必须的,所以用它判断是最快的,而且一般标题和出版社的语言是一样的。
-% 注意标准standard类型,因为当没有出版项时直接省略,所以做特殊处理
-\renewbibmacro*{publisher+location+date}{\bibpubfont%
-\iftoggle{bbx:gbpub}%
-{\testCJKfirst{userd}%
- \ifboolexpr{ test {\iflistundef{location}} and test {\iflistundef{publisher}} }%
- {\iffieldequalstr{note}{standard}{}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress}\space :\space\str@nopublisher]}{\printtext{[S.l.\space :\space s.n.\adddot]}}}}%
- {\iflistundef{location}{%\adddot
- \iffieldequalstr{note}{standard}{}%%从gbt7714-2015标准第19页看到,标准存在出版项时输出,没有时完全省略。
- {\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress]}\addcolon\addspace}{\printtext{[S.l.\adddot]}\addcolon\addspace}}}% \bibstring{noaddress}
- {\printlist{location}\addcolon\addspace}%%\addcolon\addspace%
- \iflistundef{publisher}{%
- \iffieldequalstr{note}{standard}{}%
- {\iftoggle{ifCJKforgbt}{\printtext{[\str@nopublisher]}\setunit{\adddot\addspace}\setunit*{\addcomma\addspace}}%
- {\printtext{\mkbibbrackets{s.n.}}\setunit{\adddot\addspace}\setunit*{\addcomma\addspace}}}}%
- {\printlist{publisher}}}%
-\setunit*{\addcomma\addspace}%\addcomma\addspace%
-\usebibmacro{date}%%\newunit %去掉这个标点
-}%
-{\printlist{location}%
- \iflistundef{publisher}
- {\setunit*{\addcomma\space}}
- {\setunit*{\addcolon\space}}%
- \printlist{publisher}%
- \setunit*{\addcomma\space}%
- \usebibmacro{date}%%\newunit
- }%
-}
-
-%
-% 修改了一个institution+location+date用于manual、report、thesis等类型
-%
-% 20180425,v1.0k,增加了字体控制命令,hzz
-% 20190105,v1.0o,加了一个编组避免\usebibmacro{date}把month和day信息去掉
-\renewbibmacro*{institution+location+date}{\bibpubfont%当没有institution时不处理。
-{\printlist{location}%%加了一个编组避免\usebibmacro{date}把month和day信息去掉
- \iflistundef{institution}
- {\setunit*{\addcomma\space}}
- {\setunit*{\addcolon\space}}%
- \printlist{institution}%
- \setunit*{\addcomma\space}%
- \usebibmacro{date}%
- %\newunit
- }}
-
-%
-% 对volume卷信息格式做出修改
-% v1.0o,20190105,hzz
-%
-\DeclareFieldFormat{volume}{%
-\testCJKfirst{userd}%
-\iftoggle{ifCJKforgbt}%
-{\bibstring{serialcn}#1\bibstring{volumecn}}%
-{\bibstring{volume}~#1}%
-}% volume of a book
-\DeclareFieldFormat[article,periodical]{volume}{#1}% volume of a journal
-
-%
-% 对number册信息格式做出修改
-% v1.0o,20190105,hzz
-%
-\DeclareFieldFormat{number}{#1}%
-\DeclareFieldFormat[book,collection,inbook,%
-incollection,proceedings,inproceedings]{number}{%
-\testCJKfirst{userd}%
-\iftoggle{ifCJKforgbt}%
-{\bibstring{serialcn}#1\bibstring{numbercn}}%
-{#1}%
-}%
-
-%
-% 对edition版本信息格式做出修改
-%
-\DeclareFieldFormat{edition}{\bibtitlefont%源来自biblatex.DEF
-\testCJKfirst{userd}%
-\iftoggle{ifCJKforgbt}%
-{\ifinteger{#1}%
-{\printtext{#1\str@edition}}%
-{#1\isdot}}%
-{\ifinteger{#1}%
-{\mkbibordedition{#1}~\bibstring{edition}}%
-{#1\isdot}}}
-
-%
-% 对version的版本信息做出修改
-%
-\DeclareFieldFormat{version}{\bibtitlefont%源来自biblatex.DEF
-\testCJKfirst{userd}%
-\ifinteger{#1}%
-{\iftoggle{ifCJKforgbt}{\printtext{#1\str@edition}}%
-{\mkbibordedition{#1}~\bibstring{version}}}%
-{#1\isdot}}
-
-%
-% 修改析出文献的文集的标题与附加标题间的符号
-%
-\renewbibmacro*{booktitle}{%
- \ifboolexpr{
- test {\iffieldundef{booktitle}}
- and
- test {\iffieldundef{booksubtitle}}
- }
- {}
- {\printtext[booktitle]{\bibtitlefont%
- \printfield[titlecase]{booktitle}%
- \setunit{\subtitlepunct}%
- \printfield[titlecase]{booksubtitle}}%
- \newunit%标点换成下一句
- \setunit{\subtitlepunct}}%
- \printfield{booktitleaddon}}
-
-
-%
-% 调整期刊名的格式
-%
-% v1.0k,20180425,增加了字体控制命令,hzz
-\renewbibmacro*{journal+issuetitle}{\bibpubfont%源来自standard.bbx
- \usebibmacro{journal}%
- %\setunit*{\addspace}%
- \setunit*{\addcomma\addspace}%修改为增加一个逗号
- \iffieldundef{series}
- {}
- {\newunit
- \printfield{series}%
- \setunit{\addspace}}%
- %\usebibmacro{volume+number+eid}%
- %\setunit{\addspace}%
- \usebibmacro{issue+date}%
- %\setunit{\addcolon\space}%
- \iffieldundef{volume}{}{\setunit{\addcomma\space}}%
- %换成逗号和空格
- \usebibmacro{issue}%
- \usebibmacro{volume+number+eid}%把卷期放到年份后面
- %\newunit
- }
-
-
-
-%
-% 调整期刊卷和期的格式
-%
-\renewbibmacro*{volume+number+eid}{%源来自standard.bbx
-\iftoggle{bbx:gbfieldstd}{%
- \printfield{volume}%
- \setunit*{\adddot}%
- \printfield{number}%
- \setunit{\addcomma\space}%
- \printfield{eid}}{%
- \printfield{volume}%
- %\setunit*{\adddot}%去掉点号
- %\printfield{number}%
- \iffieldundef{number}{}{\printtext{\mkbibparens{\printfield{number}}}}%增加一个圆括号
- \iffieldundef{eid}{}{%
- \setunit{\addcomma\space}%
- \printfield{eid}}}}
-
-%
-% 调整期刊年份的格式
-%
-\renewbibmacro*{issue+date}{%去掉括号
- \printtext{%去掉了[parens]
- \iffieldundef{issue}
- {%\usebibmacro{date}
- \iffieldundef{note}{\usebibmacro{date}}%判断一下,是否是报纸
- {\iffieldequalstr{note}{news}{\usebibmacro{newsdate}}%判断是否为报纸
- {\usebibmacro{date}}%
- }}%
- {\iftoggle{bbx:gbstrict}{}{\printfield{issue}%
- \setunit*{\addspace}}%
- %\usebibmacro{date}
- \iffieldundef{note}{\usebibmacro{date}}%判断一下,是否是报纸
- {\iffieldequalstr{note}{news}{\usebibmacro{newsdate}}%判断是否为报纸
- {\usebibmacro{date}}%
- }}}%
- %\newunit
- }
-
-%
-% 调整页码前的标点和去掉期刊文章等页码后面的标点
-%
-\renewbibmacro*{note+pages}{%源来自standard.bbx
- %\printfield{note}%不要note,note用来判断是否是报纸newspaper
- \iffieldundef{pages}{}{
- \setunit{\bibpagespunct}%
- \printfield{pages}}%
- %\newunit
- }
-
-
-%
-% 编者的符号修改一下
-% v1.0 2016-07-01
-% v1.0q 2019-03-01 hzz 修改editortype前的标点
-%
-\renewbibmacro*{editor}{%源来自biblatex.DEF
- \ifboolexpr{
- test \ifuseeditor
- and
- not test {\ifnameundef{editor}}
- }
- {\printnames{editor}%
- \iffieldundef{editortype}%增加一个类型判断,用于存在editortype的情况
- {\setunit\addspace}%当没有editortype时,直接用句点
- {%\setunit{\addcomma\space}%
- \usebibmacro{editorstrg}}%
- %\clearname{editor}
- }%
- {}}
-
-%
-% 编者类型做一修改
-% v1.0 2016-07-01
-% v1.0q 2019-03-01 hzz 修改editortype不同语言的不同本地化字符串
-%
-\renewbibmacro*{editorstrg}{%源来自biblatex.DEF
- \printtext[editortype]{%
- \iffieldundef{editortype}
- {%
-% \ifboolexpr{ %这一段去掉,未定义编者类型情况下不处理
-% test {\ifnumgreater{\value{editor}}{1}}
-% or
-% test {\ifandothers{editor}}
-% }
-% {\bibstring{editors}}
-% {\bibstring{editor}}
- }
- {\ifbibxstring{\thefield{editortype}} %定义编者类型情况下处理,以后根据需要修改
- {\ifboolexpr{
- test {\ifnumgreater{\value{editor}}{1}}
- or
- test {\ifandothers{editor}}
- }
- {\printdelim{streditortypes}}
- {\printdelim{streditortype}}}
- {\thefield{editortype}}}%
- }}
-
-%
-% 编者类型的本地化字符串输出
-% v1.0q 2019-03-01 hzz
-% 能对不同条目类型作格式设置的域格式,能对不同环境做格式设置的分隔符
-% 能对不同文境作设置的包括排序,标签等
-% 这里因为考虑可能标注和文献表中存在不同,所以用分隔符来输出本地化字符串
-%
-\DeclareDelimFormat{streditortypes}{%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbbiblocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{\thefield{editortype}scn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{\thefield{editortype}skr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{\thefield{editortype}sjp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
- \or%
- \bibstring{\thefield{editortype}scn}%
- \or%
- \addcomma\addthinspace\bibstring{\thefield{editortype}s}%
- \fi}
-%
-\DeclareDelimFormat{streditortype}{%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbbiblocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{\thefield{editortype}cn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{\thefield{editortype}kr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{\thefield{editortype}jp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
- \or%
- \bibstring{\thefield{editortype}cn}%
- \or%
- \addcomma\addthinspace\bibstring{\thefield{editortype}}%
- \fi}
-
-
-%
-% bookauthor域的输出,
-% v1.0q 2019-03-01 hzz
-% 不再对editor和bookauthor做sourcemap,而是下面的宏内逻辑代替,
-% 使得除使用bookauthor外也可以使用editor,便于在使用editor时使用editortype
-\renewbibmacro*{bybookauthor}{%
- \ifnameundef{bookauthor}%
- {\ifnameundef{editor}%
- {}%
- {\ifnamesequal{author}{editor}%
- {}{\usebibmacro{editor}}}%
- }%
- {\ifnamesequal{author}{bookauthor}%
- {}{\printnames{bookauthor}}%
- }%
-}
-
-%
-% 修改期刊的标题
-%
-\renewbibmacro*{periodical}{%源来自biblatex.DEF
- \iffieldundef{title}
- {}
- {\printtext[title]{\bibtitlefont%
- \printfield[titlecase]{title}%
- %\setunit{\subtitlepunct}%
- \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
- {}{\setunit{\subtitlepunct}
- \printfield[titlecase]{subtitle}}%
- %}%把编组结束移到后面去
- \iftoggle{bbx:gbtype}{%
- \iffieldundef{usera}{}{%在标题后直接给出文献标识字母
- \printfield[gbtypeflag]{usera}}}{}
- }}
- }
-
-%
-% 期刊的标题做修改
-%
-\renewbibmacro*{title+issuetitle}{%源来自standard.BBX
- \usebibmacro{periodical}%
- %\setunit*{\addspace}%
- \setunit*{\adddot\addspace}%标点修改为句点
- \iffieldundef{series}
- {}
- {\newunit
- \printfield{series}%
- \setunit{\addspace}}%
- \usebibmacro{periodical+issue}%将issue调整到上面来,并修改
-\iffieldundef{number}{}{%%进一步处理有范围的数字
- \multinumberparser{\thefield{number}}}%
- \iffieldundef{volume}%
- {\printfield{year}%
- \printtext{\mkbibparens{\multinumberfirst}}%
- \bibrangedash%
- \iffieldundef{endyear}{}{\printfield{endyear}\printtext{\mkbibparens{\multinumbersecond}}}%
- }%
- {\multivolparser{\thefield{volume}}%
- \printfield{year}%
- \setunit{\addcomma\space}%将冒号修改为逗号
- \printtext{\multivolfirst}%
- \printtext{\mkbibparens{\multinumberfirst}}%
- \bibrangedash%
- \iffieldundef{endyear}{}{%
- \printfield{endyear}%
- \setunit{\addcomma\space}%将冒号修改为逗号
- \printtext{\multivolsecond}%
- \printtext{\mkbibparens{\multinumbersecond}}}%
- }%
- \setunit{\addcomma\space}%
- \printfield{eid}%
- \setunit{\addspace}%
- %\usebibmacro{issue+date}%
- %\setunit{\addcolon\space}%
- \usebibmacro{issue}%
- \newunit}
-
-%
-% 新增一个样式用于调整期刊年份的格式,只打印年份
-%
-\newbibmacro*{periodical+issue}{%
- \printtext{%去掉了[parens]
- \iffieldundef{issue}
- {%\usebibmacro{date}%修改为下一句
- }%
- {\printfield{issue}%
- \setunit*{\addspace}%
- %\usebibmacro{date}%修改为下一句
- }%
- }%
- %\newunit
-}
-
-%
-% 重设专利title的输出,将文献类型标识符输出出去
-%
-\newbibmacro*{patenttitle}{%原输出来自biblatex.def文件
- \ifboolexpr{%
- test{\iffieldundef{title}}%
- and%
- test{\iffieldundef{subtitle}}%
- }%
- {}%
- {\printtext[title]{\bibtitlefont%
- \printfield[titlecase]{title}%
- \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
- {}{\setunit{\subtitlepunct}%
- \printfield[titlecase]{subtitle}}%
- \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
- {\setunit{\subtitlepunct}\printfield{titleaddon}}%
- \setunit{\subtitlepunct}\printfield{number}%写专利号
- \iftoggle{bbx:gbtype}{\printfield[gbtypeflag]{usera}}{}%
- %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
- %\newunit
- }%
-}%
-}
-
-
-
-%
-% 修改in:用于inbook、incollection、inproceedings等类型
-% 2018.04.20,v1.0k,renewed marco,by hzz
-% 20190212,v1.0q,增加中英文区分,by hzz
-%
-% 原理方法:使用bibmacro{in:}改变了以前在driver中直接输出//的方式,同时也简化了标点控制。
-\renewbibmacro*{in:}{%
- \iftoggle{bbx:gbpunctin}{\printtext{\allowbreak\texttt{//}\allowbreak}}%\addthinspace
- {\setunit{\adddot\addspace}%
- \iffieldequalstr{userd}{chinese}%
- {\printtext{\bibstring{incn}}}%
- {\printtext{\bibstring{in}}}%
- }}%\newunit\newblock\intitlepunct
-
-%
-% 修改type域的输出格式
-% 2019.02.12,v1.0q,byhzz
-% 使其可以区分中英文输出不同的格式,比如博士论文英文输出PHD thesis,中文则是博士学位论文
-\DeclareFieldFormat{type}%
-{\iffieldequalstr{userd}{chinese}%
- {\ifbibxstring{#1cn}{\bibxstring{#1cn}}{#1}}%
- {\ifbibstring{#1}{\bibstring{#1}}{#1}}%
-}
-
-%
-% 修改series域的输出格式
-% 2019.05.01,v1.0r,byhzz
-\renewbibmacro*{series+number}{%
- \printfield{series}%
- %\setunit*{\addspace}%
- %\printfield{number}%
- %\newunit
- }
-
-%=====================================================================
-%设置驱动格式
-%=====================================================================
-%
-% book条目类的驱动
-%
- \DeclareBibliographyDriver{book}{%源来自standard.bbx文件
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
-\usebibmacro{author/editor+others/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
-\usebibmacro{maintitle+title}%
-\iftoggle{bbx:gbstrict}{}{%
-\newunit
-\printlist{language}%
-\newunit\newblock%
-\usebibmacro{byauthor}%
-\newunit\newblock}%
-\usebibmacro{byeditor+others}%
-\newunit
-\printfield{edition}%
-\newunit\newblock%%
-\iftoggle{bbx:gbstrict}{}{%
-\iffieldundef{maintitle}%
-{\printfield{volume}%
-\printfield{part}}%
-{}%
-\newunit%
-\printfield{volumes}%
-\newunit\newblock%
-\usebibmacro{series+number}}%
-\newunit\newblock%
-%\printfield{note}%
-%\newunit\newblock%
-\usebibmacro{publisher+location+date}%
-%\newunit\newblock %这里标点去掉
-\usebibmacro{chapter+pages}%
- \iffieldundef{url}{}{%当没有网址时也不输出
- \usebibmacro{modifydate}}%带括号的修改或更新日期,
-\usebibmacro{doi+eprint+url}%从下面移动到上面来,因为gbt2015的url需直接放在页码后面。
- \newunit\newblock%
- \printfield{pagetotal}%
- \newunit\newblock%
- \iftoggle{bbx:isbn}
- {\printfield{isbn}}
- {}%
- \newunit\newblock
- %\usebibmacro{doi+eprint+url}%
- %\newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-
-%
-% 期刊文章,连续出版物中的析出文献的格式
-%
- \DeclareBibliographyDriver{article}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}%
- \newunit\newblock
- \usebibmacro{bytranslator+others}%
- \newunit\newblock
- \printfield{version}}%
- \newunit\newblock
- %\usebibmacro{in:}% 不使用in来表示期刊等连续出版物
- \usebibmacro{journal+issuetitle}%
- %\newunit
-% \usebibmacro{byeditor+others}%
-% \newunit
- \usebibmacro{note+pages}%
- \iffieldequalstr{note}{news}{}{%当是新闻时不输出修改或更新日期
- \iffieldundef{url}{}{%当没有网址时也不输出
- \iftoggle{bbx:url}{%当url选项为false时,也不输出
- \usebibmacro{modifydate}}{}}}%带括号的修改或更新日期,
- \usebibmacro{doi+eprint+url}%从后面移上来,调整url和页码之间的位置
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{issn}}
- {}%
- \newunit\newblock
- %\usebibmacro{doi+eprint+url}%
- %\newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-
-
-%
-% 连续出版物的驱动
-%
- \DeclareBibliographyDriver{periodical}{%源来自standard.BBX
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{editor}%
- %\setunit{\labelnamepunct}\newblock
- \newunit\newblock %删除上面一行,添加这一行
- \usebibmacro{title+issuetitle}%
- \newunit\newblock%
- \usebibmacro{location+institution+date}%添加这一行用于输出地址,单位和时间
- \newunit\newblock%添加这一行
- \iftoggle{bbx:gbstrict}{}{%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byeditor}%
- \newunit\newblock
- \printfield{note}%
- \newunit\newblock}
- \iftoggle{bbx:isbn}
- {\printfield{issn}}
- {}%
- \newunit\newblock
- \usebibmacro{doi+eprint+url}%
- \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-%
-% 专利文献驱动
-%
- \DeclareBibliographyDriver{patent}{%源来自standard.BBX
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- %\usebibmacro{title}%
- \usebibmacro{patenttitle}%给出专利专用的标题输出
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}}%
- \newunit\newblock
- \printfield{type}%
- \setunit*{\addspace}%
- %\printfield{number}%已放到patenttitle中处理
- \iflistundef{location}
- {}
- {\setunit*{\addspace}%
- \printtext{%[parens]
- \printlist[][-\value{listtotal}]{location}}}%
- \newunit\newblock
- \usebibmacro{byholder}%
- \newunit\newblock
- \printfield{note}%
- \newunit\newblock
- \usebibmacro{newsdate}%
- %\newunit\newblock
- \usebibmacro{doi+eprint+url}%
- \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-
-%
-% 在线文献驱动
-%
-\DeclareBibliographyDriver{online}{%源来自standard.BBX
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/editor+others/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}%
- \newunit\newblock
- \usebibmacro{byeditor+others}%
- \newunit\newblock
- \printfield{note}}%
- \newunit
- \printfield{version}%
- \newunit\newblock
- %\printlist{organization}%
- \printlist{institution}%
- \newunit\newblock
-\ifboolexpr{%
-test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
-}{\usebibmacro{date}}%
-{\usebibmacro{modifydate}}%修改或更新日期,为带括号的时间
- \usebibmacro{url+urldate}%从下面移上来
- \newunit\newblock
- \iftoggle{bbx:eprint}
- {\usebibmacro{eprint}}
- {}%
- \newunit\newblock
- %\usebibmacro{url+urldate}%
- %\newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-
-%
-% 报告类型驱动
-% 当有网址无出版项时,用online输出
-%
-\DeclareBibliographyDriver{report}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}}%
- \newunit\newblock
- \usebibmacro{byeditor+others}%增加的译者信息
- \newunit\newblock
- \printfield{type}%
- \setunit*{\addspace}%
- \printfield{number}%
- \newunit\newblock
- \printfield{version}%
- \newunit
- \printfield{note}%
- \newunit\newblock
- \usebibmacro{publisher+location+date}%
- %\newunit\newblock
- \usebibmacro{chapter+pages}%
- \usebibmacro{doi+eprint+url}%
- \newunit
- \printfield{pagetotal}%
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{isrn}}
- {}%
- \newunit\newblock
-% \usebibmacro{doi+eprint+url}%
-% \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-%
-% 论文、手册类型驱动
-% 2016-11-11,增加了译者信息
-%
-\DeclareBibliographyDriver{manual}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}}%
- \newunit\newblock
- \usebibmacro{byeditor+others}%增加的译者信息
- \newunit\newblock
- \iftoggle{bbx:gbfieldtype}{%
- \printfield{type}%
- \setunit*{\addspace}}{}%
- \printfield{number}%
- \newunit\newblock
- \printfield{version}%
- \newunit
- \printfield{note}%
- \newunit\newblock
- \usebibmacro{institution+location+date}%
- %\newunit\newblock
- \usebibmacro{chapter+pages}%
- \iffieldundef{url}{}{%当没有网址时也不输出修改或更新日期
- \usebibmacro{modifydate}}%修改或更新日期为带括号的时间
- \usebibmacro{doi+eprint+url}%
- \newunit
- \printfield{pagetotal}%
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{isrn}}
- {}%
- \newunit\newblock
-% \usebibmacro{doi+eprint+url}%
-% \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-%
-% 备选类型驱动
-%
-% 利用biblatex的misc驱动
-\DeclareBibliographyDriver{misc}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/editor+others/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
-\iftoggle{bbx:gbstrict}{}{%
- \newunit
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}%
- \newunit\newblock
- \usebibmacro{byeditor+others}}%
- \newunit\newblock
- \printfield{howpublished}%
- \newunit\newblock
- \printfield{type}%
- \newunit
- \printfield{version}%
- \newunit
- \printfield{note}%
- \newunit\newblock
- \usebibmacro{institution+location+date}%
- %\usebibmacro{organization+location+date}%
- %\newunit\newblock
- \usebibmacro{doi+eprint+url}%
- \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-
-%
-% 专著中的析出文献的格式修改
-%
-\DeclareBibliographyDriver{inbook}{%源来自standard.bbx
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
-\usebibmacro{title}%
-\usebibmacro{in:}%
-%\printtext{\texttt{//}\addthinspace}%
- \usebibmacro{bybookauthor}%
- \ifnameundef{bookauthor}{%
- \ifnameundef{editor}{}{\newunit}%
- }{\newunit}%替换下一句
- %\newunit\newblock
-\iffieldundef{series}{}{\usebibmacro{series+number}\setunit{\addcolon\addspace}}%为处理一些存在series的情况而增加
- \usebibmacro{maintitle+booktitle}%
-\iffieldundef{volume}{}{\setunit{\addcolon\addspace}\printfield{volume}}%
-\iffieldundef{number}{}{\setunit{\addcolon\addspace}\printfield{number}}%增加卷和册信息
- \newunit\newblock%
-% \usebibmacro{byeditor+others}%
-% \newunit\newblock
- \printfield{edition}%
- \newunit
- \iftoggle{bbx:gbstrict}{}{%
-% \iffieldundef{maintitle}
-% {\printfield{volume}%
-% \printfield{part}}
-% {}%
-% \newunit
-% \printfield{volumes}%
-% \newunit\newblock
-% \usebibmacro{series+number}
- }%
- \newunit\newblock
- %\printfield{note}%
- %\newunit\newblock
- \usebibmacro{publisher+location+date}%
- %\newunit\newblock
- \usebibmacro{chapter+pages}%
- %\newunit\newblock
- \usebibmacro{doi+eprint+url}%移到上面来
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{isbn}}
- {}%
- \newunit\newblock
-% \usebibmacro{doi+eprint+url}%
-% \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
+%%
+%% ---------------------------------------------------------------
+%% biblatex-gb7714-2015 --- A biblatex implementation of the
+%% GBT7714-2015 bibliography style,numerical sequence
+%% Maintained by huzhenzhen
+%% E-mail: hzzmail@163.com
+%% Released under the LaTeX Project Public License v1.3c or later
+%% ---------------------------------------------------------------
+%%
+
+%
+% 版本和时间信息
+%
+\def\versionofgbtstyle{2021/04/03 v1.0x}
+\def\versionofbiblatex{\abx@version}
+\ProvidesFile{gb7714-2015.bbx}[\versionofgbtstyle biblatex bibliography style]
+%\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求
+
+%=====================================================================
+% 加载标准样式
+%=====================================================================
+\RequireBibliographyStyle{numeric-comp}
+\RequirePackage{xstring}%解决texlive2015的biblatex3.0不加载xstring包的问题
+
+
+%=====================================================================
+% 功能函数
+%=====================================================================
+ %
+ % biblatex版本判断
+ % 20180405,v1.0k,为兼容biblatexv3.11增加toggle:iftlnine,HU zhenzhen
+ % 20181020,v1.0n,为不再使用xstring宏包做的修改,hzz
+ %
+ % 原理方法:当版本继续更新时,增加一个新的toggle用以处理新的旧版,最新版和未判断出来的版本永远用iftlatest
+ \providetoggle{iftlfive}\togglefalse{iftlfive} %处理biblatex3.2之前版本,时间2016-03-01前
+ \providetoggle{iftlsix}\togglefalse{iftlsix} %处理biblatex3.3开始改变姓名机制后版本,时间2016-03-01及以后
+ \providetoggle{iftlseven}\togglefalse{iftlseven}%处理biblatex3.7的兼容性,时间2016-12-01后
+ \providetoggle{iftleight}\togglefalse{iftleight}%处理biblatex3.8到3.9的兼容性,时间2017-11-01后到2017-12-01前
+ \providetoggle{iftlnine}\togglefalse{iftlnine} %处理biblatex10的兼容性,时间2017-12-01后
+ \providetoggle{iftlatest}\toggletrue{iftlatest} %假设是最新版biblatex
+
+ \@ifpackagelater{biblatex}{2014/04/01}{
+ \@ifpackagelater{biblatex}{2016/03/01}{
+ \@ifpackagelater{biblatex}{2016/12/01}{
+ \@ifpackagelater{biblatex}{2017/11/01}{
+ \@ifpackagelater{biblatex}{2017/12/01}{
+ \@ifpackagelater{biblatex}{2018/02/19}{}
+ {\toggletrue{iftlnine}\togglefalse{iftlatest}}}
+ {\toggletrue{iftleight}\togglefalse{iftlatest}}}
+ {\toggletrue{iftlseven}\togglefalse{iftlatest}}}
+ {\toggletrue{iftlsix}\togglefalse{iftlatest}}}
+ {\toggletrue{iftlfive}\togglefalse{iftlatest}}}
+ {\PackageError{biblatex}{Outdated 'biblatex' package}
+ {Please update biblatex, This is a fatal error.}}
+
+ \newcommand\defversion[2]{\csdef{codeversion#1#2}}%定义不同版本的命令
+ \newcommand\switchversion[2]{\csuse{codeversion#1#2}}%使用不同版本的命令
+
+ %
+ % 判断CJK字符的函数,用于判断作者等信息是否由中文字符构成
+ % v1.0k,20180509,hzz
+ %
+ % 原理方法:用biber中的perl方法代替。因为利用tex函数对字符判断时,当字符在宏
+ % 中时,基于`的方法无法解决GBK编码的问题,基于CJKsymbol的方法无法解决utf-8
+ % 编码用xelatex编译的问题。
+ %
+ % 原理是:利用perl正则将中文标识记录到域中,
+ % 然后利用\iffieldundef和\iffieldequalstr进行判断
+ \providetoggle{ifCJKforgbt}
+ \def\testCJKfirst#1{%
+ \iffieldundef{#1}{\togglefalse{ifCJKforgbt}}{%
+ \iffieldequalstr{#1}{chinese}{\toggletrue{ifCJKforgbt}}{\togglefalse{ifCJKforgbt}}}}
+
+ %
+ % 2个卷的解析函数,用于连续出版物
+ %
+ % 原理方法: 范围起止间隔符号还是用-,而不是与date相同的/,因为有合期期刊的问题,需要用到/符号
+ \newcommand{\multivolparser}[1]{%
+ \IfSubStr{#1}{-}%
+ {\StrBefore{#1}{-}[\multivolfirst]\StrBehind{#1}{-}[\multivolsecond]}%
+ {\def\multivolfirst{#1}\def\multivolsecond{}}%
+ }
+
+
+ %
+ % 2个期的解析函数,用于连续出版物
+ %
+ \newcommand{\multinumberparser}[1]{%
+ \IfSubStr{#1}{-}%
+ {\StrBefore{#1}{-}[\multinumberfirst]\StrBehind{#1}{-}[\multinumbersecond]}%
+ {\def\multinumberfirst{#1}\def\multinumbersecond{}}%
+ }
+
+ % 对没有分隔符环境命令的低版本biblatex做增补,避免报错
+ %
+ \iftoggle{iftlfive}{
+
+ \def\blx@inf@delimdeclare#1#2{%
+ \blx@info{Delimiter '#1' in context '#2' already defined, overwriting}}
+
+ \def\blx@warn@delimuse#1#2{%
+ \blx@warning{Delimiter '#1' in context '#2' undefined}}
+ % Delimiter interface
+
+ % [<contextname, ...>]{<name, ...>}{<code>}
+ \newrobustcmd*{\DeclareDelimFormat}{%
+ \@ifstar
+ {\blx@declaredelimclear}
+ {\blx@declaredelim}}
+
+ \newrobustcmd*{\blx@declaredelimclear}[3][]{%
+ \ifcsvoid{blx@declaredelimcontexts@#2}
+ {}
+ {\def\do##1{\csundef{blx@printdelim@##1@#2}}%
+ \dolistcsloop{blx@declaredelimcontexts@#2}}%
+ \cslet{blx@declaredelimcontexts@#2}\@empty
+ \ifblank{#1}
+ {\blx@declaredelim{#2}{#3}}
+ {\blx@declaredelim[#1]{#2}{#3}}}
+
+ \newrobustcmd*{\blx@declaredelim}[3][]{%
+ \ifblank{#1}
+ {\blx@declaredelim@i{}{}{#2}{#3}}
+ {\def\do##1{%
+ \listcsadd{blx@declaredelimcontexts@#2}{##1}%
+ \blx@declaredelim@i{blx@printdelim@##1@}{##1}{#2}{#3}}%
+ \docsvlist{#1}}}%
+
+ \def\blx@declaredelim@i#1#2#3#4{%
+ \def\do@i##1{%
+ \ifcsdef{#1##1}
+ {\blx@inf@delimdeclare{##1}{#2}}
+ {}%
+ \csdef{#1##1}{#4}}%
+ \forcsvlist{\do@i}{#3}}
+
+ % *[<contextname, ...>]{<alias>}{<delim>}
+ \newrobustcmd*{\DeclareDelimAlias}{%
+ \@ifstar
+ {\blx@declaredelimalias}
+ {\blx@declaredelimaliasauto}}
+
+ \newrobustcmd*{\blx@declaredelimalias}[3][]{%
+ \ifblank{#1}
+ {\blx@declaredelimalias@i{}{#2}{#3}}
+ {\def\do##1{%
+ \blx@declaredelimalias@i{blx@printdelim@##1@}{#2}{#3}}%
+ \docsvlist{#1}}}
+
+ \newrobustcmd*{\blx@declaredelimaliasauto}[2]{%
+ \blx@declaredelimalias@i{}{#1}{#2}%
+ \ifcsvoid{blx@declaredelimcontexts@#2}
+ {}
+ {\def\do##1{%
+ \blx@declaredelimalias@i{blx@printdelim@##1@}{#1}{#2}}%
+ \dolistcsloop{blx@declaredelimcontexts@#2}}}
+
+ \def\blx@declaredelimalias@i#1#2#3{%
+ \ifcsdef{#1#2}
+ {\blx@inf@delimdeclare{#2}{#1}}
+ {}%
+ \csdef{#1#2}{\csuse{#1#3}}}
+
+ \def\blx@delimcontext{none}
+ \newcommand*{\printdelim}[2][]{%
+ \ifblank{#1}
+ {\ifcsdef{blx@printdelim@\blx@delimcontext @#2}
+ {\csuse{blx@printdelim@\blx@delimcontext @#2}}
+ {\ifcsdef{#2}% fall back on legacy macros
+ {\csuse{#2}}
+ {\blx@warn@delimuse{#2}{*}}}}
+ {\ifcsdef{blx@printdelim@#1@#2}
+ {\csuse{blx@printdelim@#1@#2}}
+ {\blx@warn@delimuse{#2}{#1}}}}
+
+ \newcommand*{\delimcontext}[1]{%
+ \edef\blx@delimcontext{\blx@delimcontextalias{#1}}}
+
+ \def\blx@delimcontextalias#1{%
+ \ifcsdef{blx@delimcontextalias@#1}
+ {\csuse{blx@delimcontextalias@#1}}
+ {#1}}
+
+ \newcommand*{\DeclareDelimcontextAlias}[2]{%
+ \csgdef{blx@delimcontextalias@#1}{#2}}
+ }{}
+
+
+%=====================================================================
+% 数据模型定义
+%=====================================================================
+ %定义类型和载体标识,从gb内容看载体基本属于介质。
+ %为与lee zeping的bst的样式统一,使用mark和medium这两域名
+ %为单个条目的姓名格式控制增加nameformat和namefmtid两个域
+ %为缩略信息文献表增加了shortbooktitle域
+ %为多语言排序增加了lansortorder域
+ \DeclareDatamodelFields[type=field,datatype=literal]{mark,medium,nameformat}
+ \DeclareDatamodelFields[type=field,datatype=integer]{namefmtid}
+ \DeclareDatamodelFields[type=field,datatype=literal]{shortbooktitle}
+ \DeclareDatamodelFields[type=field,datatype=literal]{lansortorder}
+
+ %因为biblatex更新3.14版本以后,biber对于为声明数据模型的条目类型
+ %不再默认读取,而是以空字符串作为条目类型名,自然在条目定义alias时
+ %就会出现问题,因此显式的声明一下newspaper,然后保留后面采用alias的方式
+ %而standard类型则是采用另一种方式直接在sourcemap中转换为其它类型。
+ \@ifpackagelater{biblatex}{2019/11/30}{%2019/12/01 v3.14
+ \DeclareDatamodelEntrytypes{newspaper}%
+ }{}
+
+
+
+%=====================================================================
+% 设置宏包选项
+%=====================================================================
+ %
+ % 增加一个控制是否输出恢复传统crossref作用的选项
+ % 20210216,v1.0w,hzz
+ \newtoggle{bbx:citexref}
+ \DeclareBibliographyOption{citexref}[true]{%
+ \settoggle{bbx:citexref}{#1}}
+ \ExecuteBibliographyOptions{citexref}
+
+ \newbibmacro*{citexref}{%
+ \printtext[bibhyperref]{%
+ \printfield{labelprefix}%
+ \printfield{labelnumber}%
+ \ifbool{bbx:subentry}
+ {\printfield{entrysetcount}}
+ {}}}
+
+ \DeclareCiteCommand{\bbx@xrefcite}[\mkbibbrackets]%
+ {\boolfalse{citetracker}%
+ \boolfalse{pagetracker}%
+ \boolfalse{backtracker}}
+ {\usebibmacro{citexref}}
+ {}
+ {}
+
+ \newbibmacro*{crosscite}[1]{%
+ \iftoggle{bbx:citexref}
+ {\iffieldundef{crossref}
+ {\iffieldundef{xref}
+ {\usebibmacro{#1}}
+ {\printtext{\bbx@xrefcite{\thefield{xref}}}}}
+ {\printtext{\bbx@xrefcite{\thefield{crossref}}}}}
+ {\usebibmacro{#1}}}
+
+ %
+ % 增加一个控制是否输出文献载体的选项
+ % 20191125,v1,0s,hzz
+ \newtoggle{bbx:gbmedium}
+ \DeclareBibliographyOption{gbmedium}[true]{%biblatex低版本
+ \settoggle{bbx:gbmedium}{#1}}
+ \ExecuteBibliographyOptions{gbmedium}
+
+ %
+ % 增加一个控制是否输出annotation域的选项,该域可以用于在文献条目后面输出一些注释信息
+ % 20190509,v1,0s,hzz
+ \newtoggle{bbx:gbannote}
+ \DeclareBibliographyOption{gbannote}[false]{%biblatex低版本
+ \settoggle{bbx:gbannote}{#1}}
+ \ExecuteBibliographyOptions{gbannote}
+ %
+ %用于在文献条目后面输出注释信息的宏
+ %FieldFormat{annotation}用于设置注释信息的格式
+ \DeclareFieldFormat{annotation}{%
+ \printtext{\addspace(#1)}%
+ }
+ \renewbibmacro*{annotation}{%
+ \iftoggle{bbx:gbannote}%
+ {\iffieldundef{annotation}%
+ {\printfile[annotation]{\bibannotationprefix\thefield{entrykey}.tex}}%
+ {\printfield{annotation}}}%
+ {}%
+ }
+
+ %
+ % 增加一个控制是否输出type域的选项
+ % 20190212,v1,0q,hzz
+ \newtoggle{bbx:gbfieldtype}
+ \DeclareBibliographyOption{gbfieldtype}[false]{%biblatex低版本
+ \settoggle{bbx:gbfieldtype}{#1}}
+ \ExecuteBibliographyOptions{gbfieldtype}
+
+ %
+ % 增加一个控制是否根据页码重设脚注数字标号的选项
+ % 20190422,v1,0r,hzz
+ \newtoggle{bbx:gbfnperpage}
+ \DeclareBibliographyOption{gbfnperpage}[false]{%
+ \settoggle{bbx:gbfnperpage}{#1}}
+ \ExecuteBibliographyOptions{gbfnperpage}
+
+
+ %
+ % 增加一个选项,用于控制是否实现GB/T 7714-2015标准的脚注文献表
+ % 20190203,v1.0p,hzz
+ % 原理方法:默认做patch,文献引用带圈上标数字表示,脚注中的文献用带圈非上标数字做标签
+ % 当前面的脚注中已经存在当前文献,那么当前文献内容不再输出而用同(4)这样的方式
+ % 需要注意的是由于小页环境和表格中的脚注本身的问题,可能会有一些问题
+ \DeclareBibliographyOption{gbfootbib}[false]{%
+ \ifstrequal{#1}{false}{}{\execgbfootbib}}
+ \ExecuteBibliographyOptions{gbfootbib}
+
+ %%
+ \newlength{\footbibmargin}
+ \newlength{\footbiblabelsep}
+ \setlength{\footbibmargin}{1em}%脚注的段落左侧缩进距离
+ \setlength{\footbiblabelsep}{0.5em}%脚注中标记号与脚注段落的间距
+ \def\execgbfootbib%
+ {%
+ %开启引用跟踪计数器,为使用\ifciteseen等测试命令
+ \ExecuteBibliographyOptions{citetracker=true}
+ %
+ %利用footmisc宏包来实现脚注文献的悬挂对齐
+ \AtEndPreamble{
+ \@ifclassloaded{beamer}{}{
+ %beamer类因为其特殊性,为避免冲突不调footmisc。
+ %同时footmisc与hyperref宏包也不兼容,所以使用footmisc时会破坏脚注的超链接
+ %如果要实现超链接可以将下句注释掉,这里留着主要是实现悬挂对齐。
+ %\PassOptionsToPackage{perpage,hang}{footmisc}%
+ %\RequirePackage{footmisc}%
+
+ %重新实现脚注的根据单页重设脚注号码
+ %重新实现脚注的悬挂对齐问题,不再使用footmisc,直接从latex核心代码和hyperref代码进行修改
+ %v1.0q 20190317 hzz
+ %v1.0r 20190422 hzz 根据gbfnperpage选项设置
+ \iftoggle{bbx:gbfnperpage}%
+ {\@addtoreset{footnote}{page}}{}%重设计数器
+
+\@ifpackageloaded{hyperref}{%加载hyperref则对\H@@footnotetext做重定义
+ \long\def\H@@footnotetext##1{\insert\footins{%
+ \reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore
+ \protected@edef\@currentlabel{%
+ \csname p@footnote\endcsname\@thefnmark
+ }%
+ \color@begingroup
+ \leftskip \footbibmargin%增加的左侧缩进
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox%
+ }%
+ \color@endgroup}}%
+
+ \long\def\H@@mpfootnotetext##1{%
+ \global\setbox\@mpfootins\vbox{%
+ \unvbox\@mpfootins
+ \reset@font\footnotesize
+ \hsize\columnwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
+ \leftskip \footbibmargin%增加的左侧缩进
+ \color@begingroup
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox}%
+ \color@endgroup}}
+ }{%否则对latex核心代码中的\@footnotetext做重定义
+ \long\def\@footnotetext##1{\insert\footins{%
+ \reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore
+ \protected@edef\@currentlabel{%
+ \csname p@footnote\endcsname\@thefnmark
+ }%
+ \color@begingroup
+ \leftskip \footbibmargin%增加的左侧缩进
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox%
+ }%
+ \color@endgroup}}%
+
+ \long\def\@mpfootnotetext##1{%
+ \global\setbox\@mpfootins\vbox{%
+ \unvbox\@mpfootins
+ \reset@font\footnotesize
+ \hsize\columnwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
+ \leftskip \footbibmargin%增加的左侧缩进
+ \color@begingroup
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox}%
+ \color@endgroup}}
+ }
+
+ \long\def\@makefntext##1{%增加了脚注标记与正文的间隔
+ \parindent 1em\noindent \hb@xt@ 0em{\hss \@makefnmark\makebox[\footbiblabelsep]{}}##1}
+
+ }
+
+ %
+ %使脚注标记加圈并设置数字的字体为tiny,不使用修改thefootnote的方式
+ \def\@makefnmark{\hbox{\@textsuperscript{\textcircled{\tiny\@thefnmark}}}}
+ %做patch使得脚注内容中的脚注数字标签不上标
+ \pretocmd{\@makefntext}{%
+ \def\@makefnmark{%
+ \hbox{\textcircled{\tiny\@thefnmark}}%
+ }%
+ }{}{}
+ }
+
+ %
+ %判断当前文献是否已经引用过且是做的footfullcite(即已经作为脚注输出文献内容)
+ %记录首次输出时的脚注号码,用于后面再次引用该文献时的输出,比如同(4)。
+ %v1.0q 20190309 区分使脚注标注适应minipage中的情况
+ \newbibmacro*{citesavefn}{%
+ \ifciteseen%当被引用过为true
+ {\ifcsdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}%当已经定义过脚注序号信息
+ {\csgdef{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
+ \str@sameentry\gdef\@thefnmark{\csuse{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}}%
+ \@makefnmark%
+ }}%
+ {\csxdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
+ \ifcsstring{@mpfn}{mpfootnote}{\@alph\c@mpfootnote}{\thefootnote}%
+ }}%
+ }%
+ {\csxdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
+ \ifcsstring{@mpfn}{mpfootnote}{\@alph\c@mpfootnote}{\thefootnote}%
+ %判断在minipage中比较麻烦,这里使用\@mpfn的定义进行判断
+ }}%
+ }
+
+ %
+ %重定义\footfullcite使完成gb7714-2015的脚注文献要求
+ \DeclareCiteCommand{\footfullcite}[\mkbibfootnote]%
+ {\defcounter{maxnames}{\blx@maxbibnames}%局部定义maxnames和minnames计数器
+ \defcounter{minnames}{\blx@minbibnames}%使footfullcite内的作者输出与正文文献表中的一致。
+ \usebibmacro{prenote}%
+ \renewbibmacro*{postnote}{%
+ \iffieldundef{postnote}%
+ {}{\setunit{\addcolon\addspace}\printfield{postnote}}}%与ay样式不同,由于已修改postnote域格式,直接用printfield
+ }%
+ {\usebibmacro{citesavefn}%
+ \ifcsdef{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}%
+ {\csuse{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}}%\nopunct
+ {\usedriver{\DeclareNameAlias{sortname}{default}}{\thefield{entrytype}}}%
+ }%
+ {\multicitedelim}%
+ {\usebibmacro{postnote}}
+
+ }
+
+ %
+ % 增加一个选项,用于控制gb7714的使用范围,即英文文献和中文文献使用不同的样式
+ % 20180814,v1.0m,hzz
+ % 原理方法:
+ % 只为兼容性考虑不做任何处理
+ \DeclareBibliographyOption{gbstyle}[true]{%biblatex低版本
+ }
+
+ %
+ % 增加一个控制是否输出文献类型和载体标识的选项
+ %
+ % 原理方法:
+ % 对于biblatex3.4以上版本DeclareBibliographyOption命令中的[datatype]如果是boolean,那么是可以省略的
+ % 所以用老版本的不用[datatype]的命令可以兼容所有biblatex版本
+ \newtoggle{bbx:gbtype}
+ %\DeclareBibliographyOption[boolean]{gbtype}[true]{%biblatex高版本
+ \DeclareBibliographyOption{gbtype}[true]{%biblatex低版本
+ \settoggle{bbx:gbtype}{#1}}
+ \ExecuteBibliographyOptions{gbtype}
+
+ %
+ % 增加一个源文件编码选择选项,当true时可以使用GBK编码。
+ % v1.0k, 2018.05.08, by hzz
+ %
+ % 原理方法:将需要输出的中文字符串用命令形式表示存储,采用utf8编码时采用bbx文档
+ % 内的定义即是utf8编码的中文字符串,但tex源文件是gbk编码时,利用gb7714-2015-gbk.def
+ % 文档内的gbk编码的字符串覆盖。这种覆盖只能在宏包末尾加载时成功实现,所以使用
+ % AtEndOfPackage。该解决思路源自biblatex-caspervector宏包。
+ % 另外注意:
+ % gbk编码的tex文档,利用pdflatex/latex能正确编译,利用xelatex能编译,但中文显示乱码
+ % 在源文档前面增加 XeTeX 原语:\XeTeXinputencoding "GBK" 后,显示正常
+ % utf-8编码的tex文档,利用xelatex能正确编译,而pdflatex/latex不能编译。
+ \newtoggle{bbx:codegbk}
+ \DeclareBibliographyOption{gbcodegbk}[false]{%
+ \settoggle{bbx:codegbk}{#1}}
+ \ExecuteBibliographyOptions{gbcodegbk}
+
+ \def\str@bibliography{参考文献}
+ \def\str@references{参考文献}
+ \def\str@bytranslator{译}
+ \def\str@andotherscn{等}
+ \def\str@andcn{和}
+ \def\str@backrefpage{引用页}
+ \def\str@backrefpages{引用页}
+ \def\str@noaddress{出版地不详}
+ \def\str@nopublisher{出版者不详}
+ \def\str@edition{版}
+ \def\str@volumecn{卷}
+ \def\str@numbercn{册}
+ \def\str@serialcn{第}
+ \def\str@sameentry{同}
+ \def\str@incn{见}
+ \def\str@mathesiscn{硕士学位论文}
+ \def\str@phdthesiscn{博士学位论文}
+ \def\str@editorcn{主编}
+
+ \AtEndOfPackage{%
+ \iftoggle{bbx:codegbk}{%
+ \ExecuteBibliographyOptions{texencoding = GBK}
+ \input{gb7714-2015-gbk.def}
+ }{}}
+
+ %
+ % 增加一个严格按GB/T 7714-2015给出著录格式控制域的输出的选项
+ % v1.0k, 2018.05.08, by hzz
+ %
+ % 原理方法:
+ % 默认设置该选项为真,进而不输出GB/T 7714-2015中没有的域的信息
+ % 这样可以避免因为bib文件带有多余的域的信息的输出,比如因为bibtex样式
+ % 可能需要用于中英文判断的language域的信息。
+ \newtoggle{bbx:gbstrict}
+ \DeclareBibliographyOption{gbstrict}[true]{%
+ \settoggle{bbx:gbstrict}{#1}}
+ \ExecuteBibliographyOptions{gbstrict}
+
+ %
+ % 增加一个控制标题域超链接设置的选项
+ % v1.0k, 2018.05.24, by hzz
+ %
+ % 原理方法:
+ % 利用标题域格式来实现,默认设置该选项为false,不做超链接。
+ % 设置为true,则标题设置超链接
+ \newtoggle{bbx:titlelink}
+ \DeclareBibliographyOption{gbtitlelink}[false]{%
+ \settoggle{bbx:titlelink}{#1}}
+ \ExecuteBibliographyOptions{gbtitlelink}
+
+ %
+ % 增加一个控制参考文献标题是否能够被ctex宏包设置的选项
+ % v1.0l, 2018.07.02, by hzz
+ %
+ % 原理方法:
+ % 重定义biblatex的宏,去除使用本地化字符串的方式,是的可以利用ctexset进行设置
+ \newtoggle{bbx:ctexset}
+ \DeclareBibliographyOption{gbctexset}[true]{%
+ \settoggle{bbx:ctexset}{#1}}
+ \ExecuteBibliographyOptions{gbctexset}
+
+ \AtEndOfPackage{%
+ \iftoggle{bbx:ctexset}{%
+ \def\blx@defbibstrings#1#2{%
+ \def\do##1{\csundef{abx@lstr@##1}\csundef{abx@sstr@##1}}%
+ \abx@dostrings
+ \csuse{abx@strings@#1}%
+ \setkeys{blx@lbx}{#2}%
+ \let\do\blx@defbibstrings@i
+ \csxdef{abx@strings@#1}{\abx@dostrings}%
+ }
+ }{}}
+
+ %
+ % 增加一个处理佚名或noauthor的控制选项
+ %
+ % 原理方法:在顺序编码制中不需要使用,为与作者年制的兼容性考虑,这里也增加避免报错
+ \DeclareBibliographyOption{gbnoauthor}[true]{}%
+
+
+ %
+ % 增加一个恢复域格式为标准样式的控制选项
+ % v1.0k, 2018.05.15, by hzz
+ %
+ % 原理方法:
+ % 默认设置该选项为false,采用国标要求的域格式输出相关域
+ % 当设置该选项为true时,则重新利用标准样式的域格式输出相关的域
+ \newtoggle{bbx:gbfieldstd}
+ \DeclareBibliographyOption{gbfieldstd}[false]{%
+ \settoggle{bbx:gbfieldstd}{#1}%
+ \ifstrequal{#1}{false}{}{\execgbfdfmtstd}%
+ }
+ \ExecuteBibliographyOptions{gbfieldstd}
+
+ %
+ % 增加一个出版项自动处理控制选项,当true时使用出版者不详等信息补充缺失的出版信息。
+ %
+ \newtoggle{bbx:gbpub}
+ \DeclareBibliographyOption{gbpub}[true]{%
+ %\settoggle{bbx:gbpub}{#1} %或采用下面这一句
+ \ifstrequal{#1}{false}{\togglefalse{bbx:gbpub}}{\toggletrue{bbx:gbpub}}}
+ \ExecuteBibliographyOptions{gbpub}
+
+ %
+ % 增加控制析出文献来源前的标点符号//输出的选项
+ % v1.0k, 2018.04.20,added in by hzz
+ \newtoggle{bbx:gbpunctin}
+ \DeclareBibliographyOption{gbpunctin}[true]{%
+ \settoggle{bbx:gbpunctin}{#1}}
+ \ExecuteBibliographyOptions{gbpunctin}
+
+
+
+
+
+ %
+ % 选项设置
+ %
+ \ExecuteBibliographyOptions{
+ sorting=none,
+ useprefix=true, %名字的信息包括前缀
+ date = year, %日期仅写到年
+ maxbibnames = 3,%设置名字最大数量
+ minbibnames = 3, %设置缩减后的名字最小数量
+ maxitems = 1,%设置列表最大数量
+ minitems = 1, %设置缩减后的列表最小数量
+ isbn=false,
+ }
+
+ %
+ %为日期相关选项增加选项值gb7714-2015
+ %
+ \csdef{mkdaterangegb7714-2015}#1{%
+ \begingroup
+ \blx@metadateinfo{#1}%
+ \iffieldundef{#1year}
+ {}
+ {\printtext[#1date]{%
+ \blx@gbdate{#1}{}}}%
+ \endgroup}
+
+ \newrobustcmd*{\blx@gbdate}[3][]{%
+ \dateeraprintpre{#2#3year}%
+ \blx@imc@forcezerosy{\thefield{#2#3year}}\ifblank{#1}{}{\printfield{#1}}%
+ \iffieldundef{#2#3month}{}{\hyphen\blx@imc@forcezerosmdt{\thefield{#2#3month}}}%
+ \iffieldundef{#2#3day}{}{\hyphen\blx@imc@forcezerosmdt{\thefield{#2#3day}}}}
+
+
+ %为姓名格式选择增加的计数器
+ \newcounter{gbnamefmtcase}
+ \def\thegbnamefmtcase{\the\c@gbnamefmtcase}
+ %为数字标签格式选择增加的计数器/命令
+ \newcommand{\mkgbnumlabel}[1]{\mkbibbrackets{#1}}
+ \def\gbbiblabelopt@bracket{\renewcommand{\mkgbnumlabel}[1]{\mkbibbrackets{##1}}}
+ \def\gbbiblabelopt@parens{\renewcommand{\mkgbnumlabel}[1]{\mkbibparens{##1}}}
+ \def\gbbiblabelopt@dot{\renewcommand{\mkgbnumlabel}[1]{##1\adddot}}
+ \def\gbbiblabelopt@plain{\renewcommand{\mkgbnumlabel}[1]{##1}}
+ \def\gbbiblabelopt@box{\renewcommand{\mkgbnumlabel}[1]{\framebox{##1}}}
+ \def\gbbiblabelopt@circle{\renewcommand{\mkgbnumlabel}[1]{\textcircled{##1}}}
+ %为文献表中数字标签对齐方式选择增加的计数器/命令
+ \newcounter{gbalignlabel}
+ \def\thegbalignlabel{\the\c@gbalignlabel}
+ %为引用标签标注/文献表中本地化字符串中英文选择增加的计数器/命令
+ \newcounter{gbcitelocalcase}
+ \newcounter{gbbiblocalcase}
+ \def\thegbcitelocalcase{\the\c@gbcitelocalcase}
+ \def\thegbbiblocalcase{\the\c@gbbiblocalcase}
+
+\@ifpackagelater{biblatex}{2016/03/27}
+ { % 针对biblatex>=3.3版本的选项设置
+ % 增加不同语言排序的切换选项
+ % numeric样式,不使用该选项,这里给出仅为兼容性考虑
+ % v1.0q,20190307,hzz
+ %
+ % 增加不同语言排序的切换选项
+ % gblanorder=chineseahead的顺序为cn,jp,kr,en,fr,ru
+ % gblanorder=englishahead的顺序为en,fr,ru,cn,jp,kr
+ % gblanorder=cn;en;ru;fr;jp;kr的顺序为指定的cn;en;ru;fr;jp;kr,自定义内容可以随意写以分号分隔
+ % v1.0q,20190307,hzz
+ %
+ \DeclareBibliographyOption[string]{gblanorder}[chineseahead]{%
+ \ifstrequal{#1}{chineseahead}%%中文在前的顺序
+ {\gdef\lancnorder{1}\gdef\lanjporder{2}\gdef\lankrorder{3}%
+ \gdef\lanenorder{4}\gdef\lanfrorder{5}\gdef\lanruorder{6}}%
+ {%
+ \ifstrequal{#1}{englishahead}%
+ {\execlanodeah\dealsortlan}%
+ {\execlanodudf{#1}\dealsortlan}%
+ }%
+ }
+ \ExecuteBibliographyOptions{gblanorder}
+
+ \def\execlanodeah{%中文在后的顺序
+ \gdef\lancnorder{4}
+ \gdef\lanjporder{5}
+ \gdef\lankrorder{6}
+ \gdef\lanenorder{1}
+ \gdef\lanfrorder{2}
+ \gdef\lanruorder{3}}
+
+ \newcounter{lanordernum}
+ \newcommand{\execlanodudf}[1]{%like:cn;en;ru;fr;jp;kr
+ \setcounter{lanordernum}{0}
+ \DeclareListParser{\parsinglanorder}{;}
+ \renewcommand*{\do}[1]{\stepcounter{lanordernum}\csxdef{lan##1order}{\thelanordernum}}
+ \parsinglanorder{#1}
+ }
+
+ %
+ % 增加本地化字符串的中英文切换选项
+ % gbcitelocal指标注中的本地化字符串
+ % gbbiblocal 指文献表中的本地化字符串
+ % gblocal 指设置文献表和标注中的本地化字符串
+ % v1.0o,20190103,hzz
+ %
+ \DeclareBibliographyOption[string]{gbcitelocal}[gb7714-2015]{%
+ \ifstrequal{#1}{gb7714-2015}{\setcounter{gbcitelocalcase}{0}}{}%
+ \ifstrequal{#1}{chinese}{\setcounter{gbcitelocalcase}{1}}{}%
+ \ifstrequal{#1}{english}{\setcounter{gbcitelocalcase}{2}}{}%
+ }
+ \ExecuteBibliographyOptions{gbcitelocal}
+
+ \DeclareBibliographyOption[string]{gbbiblocal}[gb7714-2015]{%
+ \ifstrequal{#1}{gb7714-2015}{\setcounter{gbbiblocalcase}{0}}{}%
+ \ifstrequal{#1}{chinese}{\setcounter{gbbiblocalcase}{1}}{}%
+ \ifstrequal{#1}{english}{\setcounter{gbbiblocalcase}{2}}{}%
+ }
+ \ExecuteBibliographyOptions{gbbiblocal}
+
+ \DeclareBibliographyOption[string]{gblocal}[gb7714-2015]{%
+ \ExecuteBibliographyOptions{gbbiblocal=#1}%
+ \ExecuteBibliographyOptions{gbcitelocal=#1}%
+ }
+ %\ExecuteBibliographyOptions{gblocal} %默认值已经通过两个相关选项设置
+
+ %
+ % 增加序号标签格式处理选项
+ % v1.0l,20180623,hzz
+ %
+ \DeclareBibliographyOption[string]{gbbiblabel}[bracket]{%
+ \csuse{gbbiblabelopt@#1}
+ }
+ \ExecuteBibliographyOptions{gbbiblabel}
+
+ %
+ % 增加姓名大小写格式处理选项
+ %
+ \DeclareBibliographyOption[string]{gbnamefmt}[uppercase]{%
+ \ifstrequal{#1}{uppercase}{\setcounter{gbnamefmtcase}{0}}{}%
+ \ifstrequal{#1}{lowercase}{\setcounter{gbnamefmtcase}{1}}{}%
+ \ifstrequal{#1}{givenahead}{\setcounter{gbnamefmtcase}{2}}{}%given-family
+ \ifstrequal{#1}{familyahead}{\setcounter{gbnamefmtcase}{3}}{}
+ \ifstrequal{#1}{pinyin}{\setcounter{gbnamefmtcase}{4}}{}%family-given
+ \ifstrequal{#1}{reverseorder}{\setcounter{gbnamefmtcase}{5}}{}%family-given/given-family
+ \ifstrequal{#1}{quanpin}{\setcounter{gbnamefmtcase}{6}}{}%family-given
+ }
+ \ExecuteBibliographyOptions{gbnamefmt}
+
+ %
+ % 增加标签对齐选项
+ %
+ % right是默认的右对齐,left是左对齐,gb7714-2015是项对齐方式
+ \DeclareBibliographyOption[string]{gbalign}[right]{%
+ \ifstrequal{#1}{right}{\setcounter{gbalignlabel}{0}}{}
+ \ifstrequal{#1}{left}{\setcounter{gbalignlabel}{1}}{}
+ \ifstrequal{#1}{center}{\setcounter{gbalignlabel}{2}}{}
+ \ifstrequal{#1}{gb7714-2015}{\setaligngbstyle}{}
+ }
+ }
+ {% 针对biblatex<3.3版本的选项设置
+ % 增加不同语言排序的切换选项
+ % numeric样式, biblatex 3.4及以下版本不能使用多个stylesourcemap,所以不使用该选项
+ % v1.0q,20190307,hzz
+ %
+ \DeclareBibliographyOption{gblanorder}[chineseahead]{}
+
+ %
+ % 增加序号标签格式处理选项
+ % v1.0l,20180623,hzz
+ %
+ \DeclareBibliographyOption{gbbiblabel}[bracket]{%
+ \csuse{gbbiblabelopt@#1}
+ }
+ \ExecuteBibliographyOptions{gbbiblabel}
+
+ %
+ % 增加姓名大小写格式处理选项
+ %
+ \DeclareBibliographyOption{gbnamefmt}[uppercase]{%
+ \ifstrequal{#1}{uppercase}{\setcounter{gbnamefmtcase}{0}}{}%
+ \ifstrequal{#1}{lowercase}{\setcounter{gbnamefmtcase}{1}}{}%
+ \ifstrequal{#1}{givenahead}{\setcounter{gbnamefmtcase}{2}}{}%given-family
+ \ifstrequal{#1}{familyahead}{\setcounter{gbnamefmtcase}{3}}{}
+ \ifstrequal{#1}{pinyin}{\setcounter{gbnamefmtcase}{4}}{}%family-given
+ \ifstrequal{#1}{reverseorder}{\setcounter{gbnamefmtcase}{5}}{}%family-given/given-family
+ \ifstrequal{#1}{quanpin}{\setcounter{gbnamefmtcase}{6}}{}%family-given
+ }
+ \ExecuteBibliographyOptions{gbnamefmt}
+
+ %
+ % 增加标签对齐选项
+ %
+ % 原理方法:right是默认的右对齐,left是左对齐,gb7714-2015无效,仍然为右对齐模式,
+ % 因为在这种biblatex低版本中,舍弃了list类环境后,会出错。
+ % 注意:texlive2015中的3.0版中的DeclareBibliographyOption选项没有类型说明
+ \DeclareBibliographyOption{gbalign}[right]{%
+ \ifstrequal{#1}{right}{\setcounter{gbalignlabel}{0}}{}
+ \ifstrequal{#1}{left}{\setcounter{gbalignlabel}{1}}{}
+ \ifstrequal{#1}{center}{\setcounter{gbalignlabel}{2}}{}
+ \ifstrequal{#1}{gb7714-2015}{}{}
+ }
+ }
+
+
+%
+% 针对biblatex<3.3版本的选项设置,比如texlive2015中的3.0版
+%
+\defversion{3.0}{opt}{
+ \ExecuteBibliographyOptions{
+ firstinits=true, %名字有缩写,参考3.1.2.3 Internal
+ }
+}
+%
+% 针对3.3<=biblatex<3.5版本的选项设置,比如texlive2016中的3.4版
+%
+\defversion{3.4}{opt}{
+ \ExecuteBibliographyOptions{
+ giveninits=true, %名字有缩写,参考3.1.2.3 Internal
+ }
+}
+%
+% 针对3.7<=biblatex<=3.9版本的选项设置,比如texlive2017中的3.7版
+%
+\defversion{3.7}{opt}{
+ \ExecuteBibliographyOptions{
+ giveninits=true,
+ urldate =edtf, %iso8601
+ eventdate =edtf,
+ }
+}
+%
+% 针对3.10<=biblatex版本的选项设置,比如texlive2018中的3.11版
+%
+\defversion{3.10}{opt}{
+ \ExecuteBibliographyOptions{
+ giveninits=true,
+ urldate =gb7714-2015, %iso,iso8601,edtf
+ eventdate =gb7714-2015,
+ }
+}
+
+%
+% 根据biblatex版本信息,选择选项设置
+%
+% 原理方法:如下这种选择机制能自动兼容更新的版本,但对于老版本
+% 必须要把情况列全。
+\iftoggle{iftlfive}{\switchversion{3.0}{opt}}{}%biblatex<=3.2
+\iftoggle{iftlsix}{\switchversion{3.4}{opt}}{}%3.3<=biblatex<=3.6
+\iftoggle{iftlseven}{\switchversion{3.7}{opt}}{}%biblatex=3.7
+\iftoggle{iftleight}{\switchversion{3.7}{opt}}{}%3.8<=biblatex<=3.9
+\iftoggle{iftlnine}{\switchversion{3.10}{opt}}{}%biblatex=3.10
+\iftoggle{iftlatest}{\switchversion{3.10}{opt}}{}%biblatex最新3.11
+
+
+%=====================================================================
+% 设置本地化字符串
+%=====================================================================
+ %
+ % 新建当地化字符串,用来记录“等”字符、“和”字符
+ %
+ \NewBibliographyString{andotherscn}
+ \NewBibliographyString{andothersincitecn}
+ \NewBibliographyString{andothersincite}
+ \NewBibliographyString{andcn}
+ \NewBibliographyString{andothersjp}
+ \NewBibliographyString{andotherskr}
+ \NewBibliographyString{andjp}
+ \NewBibliographyString{andkr}
+ \NewBibliographyString{andincitecn}
+ \NewBibliographyString{andincite}
+ \NewBibliographyString{volumecn}
+ \NewBibliographyString{numbercn}
+ \NewBibliographyString{serialcn}
+ \NewBibliographyString{incn}
+ \NewBibliographyString{mathesiscn}
+ \NewBibliographyString{phdthesiscn}
+ \NewBibliographyString{editorcn}
+ \NewBibliographyString{editorscn}
+ \NewBibliographyString{bytranslatorcn}
+
+
+
+ %
+ % 修改一些当地化字符串
+ %
+ % 原理方法:直接利用当地化格式english修改出一些中文的格式,具体修改内容参考english.lbx文件
+ % 当然也可以增加比如上面定义的andotherscn
+ % 注意:在lbx文件和bbx文件中定义本地字符串的不同语法,两个参数和一个参数的区别
+
+ \DefineBibliographyStrings{english}{
+ bibliography = {\str@bibliography},
+ references = {\str@references},
+ bytranslatorcn = {\str@bytranslator},%\addperiod,%将trans. by 改成 译\addcomma\
+ and = {\addcomma},%将第2和3人名间的and符号改成逗号,用\finalnamedelim命令也可以定义,参见3.9.1节
+ andcn = {\addcomma},%and本地化字符串的中文对应词
+ andincitecn = {\str@andcn},%将标注中的分开,便于与文献表中的区分
+ andincite = {\addcomma},
+ %andothers = {et al.},%将超过3个人名的省略,et al.改成为 等
+ andotherscn = {\str@andotherscn},%将超过3个人名的省略,et al.改成为 等
+ andothersincitecn={\str@andotherscn},%将标注中的分开,便于与文献表中的区分
+ andothersincite={et al\adddot},
+ backrefpage = {\str@backrefpage:},
+ backrefpages = {\str@backrefpages:},
+ in={in\intitlepunct},
+ volumecn={\str@volumecn},
+ numbercn={\str@numbercn},
+ serialcn={\str@serialcn},
+ andothersjp={他},
+ andotherskr={외},
+ andjp={和},
+ andkr={和},
+ incn={\str@incn\addcolon\addspace},
+ mathesiscn={\str@mathesiscn},
+ phdthesiscn={\str@phdthesiscn},
+ editorscn={\str@editorcn},
+ editorcn={\str@editorcn},
+}
+
+ %
+ % 增加两个命令用于临时的局部的修改本地化字符串
+ % 其中\setlocalbibstring修改缩写字符串,setlocalbiblstring修改长字符串
+ % 注意使用时因为是局部修改,因此要将其与需要修改的引用命令放在一个编组符号内
+ % v1.0t,hzz,20190525
+ \newcommand{\setlocalbibstring}[2]{%
+ \csdef{abx@sstr@#1}{#2}}
+ \newcommand{\setlocalbiblstring}[2]{%
+ \csdef{abx@lstr@#1}{#2}}
+
+%=====================================================================
+% 动态数据修改
+%=====================================================================
+%
+% 各层次的数据映射和动态修改
+%
+% 原理方法:
+% 1. 进行语言包括中英文判断,并设置和记录,比如记录到userf,usere中
+% 2. 增加文献标识符如[M],[J]等,对一些容易混淆的域进行设置以增强兼容性
+% 3. \DeclareSourcemap命令对于biblatex3.11以下版本只能出现一次,3.11版开始支持多个
+% 4. \DeclarestyleSourcemap在biblatex v3.7版开始可以支持出现多次
+% 5. 把作者和译者信息准确的记录到userf,usere中,用于后面判断是否是cjk字符。
+% 注意:这里用userf,usere而不是namee,namef,是因为只有把name列表转成域,才能有效读取姓名中的字符,
+% 如果用namee,namef,name信息会自动解析,所以就不能为cjk判断提供需要的信息
+%
+% 不同的文献类型使用相同的驱动输出可以有5种方法:
+% 1. 是数据源层的映射,将其它类型转换为某一要使用驱动的类型
+% 2. 是样式层映射,也是将其它类型转换为某一要使用驱动的类型
+% 3. 是驱动层映射,也是将其它类型转换为某一要使用驱动的类型
+% 4. 定义驱动类型别名DeclareBibliographyAlias,将其它类型定义为某一要使用驱动的类型的别名
+% 驱动别名定义本质上是做了驱动层映射
+% 5. 直接定义不同的类型的驱动,但驱动内容相同。
+%
+% 关于数据映射和驱动使用的考虑如下:
+% 1. 为避免利用biber输出bib文件时的数据变动,尽量不在数据源层映射做类型转换
+% 2. 为减少代码量,尽量少做内容相同的不同类型驱动
+% 3. 因此类型相关的处理主要在样式层映射、驱动层映射、驱动别名
+% 4. 由于biblatex默认做的驱动别名处理可能增加一些信息比如masterthesis转thesis时增加的type
+% 可以在样式层映射做某些需要避免这种默认处置的转换
+% 5. 当没有避免默认行为的需求时,全部采用驱动别名的方式处理,等价于驱动层的映射
+%
+% 文献类型和驱动考虑如下:
+% 1. 连续出版物及析出文献有其特殊性,因此考虑两类periodical和article
+% newpaper映射为article,并以note域做区分特殊处理
+% 2. 专著和专著中的析出文献是主要的类型,因此考虑book和inbook
+% standard映射为book或inbook,并以note域做区分特殊处理
+% collection和proceedings基本与book类似,因此做book驱动别名处理
+% incollection和inproceedings基本与inbook类似,因此做inbook驱动别名处理
+% 3. 专利类型有其特殊性,考虑patent类型
+% 4. 电子资源类型有其特殊性,考虑online类型
+% 5. 报告类型与book有点类似,出版项处理与book一样,但有时又要有修改和更新日期
+% 因此考虑用一种类型来输出,使用report类型
+% 6. 手册/学位论文等类型与book有点类似,但对于出版项处理时,有缺省时,直接省略,
+% 同时有version和edition的区别,因此考虑用一种类型来输出,使用manual类型
+% 7. 包括报告,学位论文在内的其它所有的类型,都做一个判断,当没有出版项时,
+% 且存在网址信息时,将其转换为online类型输出,否则都做为manual类型输出。
+% 8. 备选类型misc当存在网址时直接转换为online,由于howpublished域可用于描述
+% 更多的信息,因此不存在网址时,独立做一个备选格式
+% 9. 出版项主要以如下方式处理:
+% (a) location+institution+date 仅用于连续出版物
+% (b)publisher+location+date 用于需要完整输出出版项的类型,比如book,collection,proceedings,in*,report
+% (c)institution+location+date 用于出版项缺失时不输出的类型,包括manual,thesis,archive等其他类型
+% (d)printlist{insitution} 用于电子资源,仅输出出版者或组织,为数据映射方便,本来默认的organization域转换为用insitution输出。
+% (e) 不输出,主要用于连续出版物析出的文献
+% 10. 日期以如下方式处理:
+% date 由于存在biblatex选项,因此通过选项控制,数据源为date解析数据或year
+% urldate 由于存在biblatex选项,因此通过选项控制,输出到日,且用[]包围,数据源为urldate
+% newsdate 用于公告日期,公开日期或新闻日期,输出到日,但无包围符号,数据源为date
+% modifydate 用于更新或修改日期,输出到日,且用()包围,数据源为date或enddate或eventdate
+
+
+\DeclareSourcemap{
+\maps[datatype=bibtex]{%
+ \map{%当没有作者时将editor转成author
+ \pernottype{inbook}%因为in系列中editor可能用来表示bookauthor,所以排除
+ \pernottype{inproceedings}
+ \pernottype{incollection}
+ \pernottype{periodical}%因为peridical直接使用editor,所以排除
+ %注意notfield在低版本biblatex中没有
+ %\step[notfield=author,final]%当author不存在,将editor复制给author
+ \step[fieldsource=editor,fieldtarget=author]%并删除editor
+ }
+ \map{%当没有作者时将translator转成author
+ \pernottype{inbook}
+ \pernottype{inproceedings}
+ \pernottype{incollection}
+ %\step[notfield=author,final]%当author不存在,将translator复制给author
+ \step[fieldsource=translator,fieldtarget=author]%并删除translator
+ }
+ \map{%让address和location同步,biblatex中address是location的别名
+ %因此输出的时候只有location信息,但处理过程中是可以存在address的。
+ %\step[notfield=address,final]
+ \step[fieldsource=location,final]
+ \step[fieldset=address,origfieldval]
+ }
+ \map{%让address和location同步
+ %\step[notfield=location,final]
+ \step[fieldsource=address,final]
+ \step[fieldset=location,origfieldval]
+ }
+ \map{%处理在bib文件用mark标记文献类型标识符的情况
+ \step[fieldsource=mark,final]
+ \step[fieldset=usera, origfieldval]
+ }
+ \map{%处理在bib文件中直接给出文献的姓名格式为lowercase的情况
+ \step[fieldsource=nameformat,match=lowercase,final]
+ \step[fieldset=namefmtid,fieldvalue={1}]
+ }
+ \map{%处理在bib文件中直接给出文献的姓名格式为givenahead的情况
+ \step[fieldsource=nameformat,match=givenahead,final]
+ \step[fieldset=namefmtid,fieldvalue={2}]
+ }
+ \map{%处理在bib文件中直接给出文献的姓名格式为familyahead的情况
+ \step[fieldsource=nameformat,match=familyahead,final]
+ \step[fieldset=namefmtid,fieldvalue={3}]
+ }
+ \map{%处理在bib文件中直接给出文献的姓名格式为pinyin的情况
+ \step[fieldsource=nameformat,match=pinyin,final]
+ \step[fieldset=namefmtid,fieldvalue={4}]
+ }
+ \map{%处理在bib文件中直接给出文献的姓名格式为pinyin的情况
+ \step[fieldsource=nameformat,match=quanpin,final]
+ \step[fieldset=namefmtid,fieldvalue={6}]
+ }
+ \map{%根据article确定文献类型标识符
+ \pertype{article}
+ \step[fieldset=usera, fieldvalue={J}]
+ }
+ \map{%根据periodical确定文献类型标识符
+ \pertype{periodical}
+ \step[fieldset=usera, fieldvalue={J}]
+ \step[fieldsource=author] %有时会把author和editor混淆,处理后使用editor
+ \step[fieldset=editor, origfieldval]
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%根据增加一个新闻报纸的类型newspaper确定文献类型标识符
+ \pertype{newspaper}
+ \step[fieldset=usera, fieldvalue={N}]
+ \step[fieldset=note, fieldvalue=news]%因为没有专门的驱动,记录note方便映射为article后判断
+ }
+ \map{%对应增加的一个数据库类型database确定文献类型标识符
+ \pertype{database}
+ \step[fieldset=usera, fieldvalue={DB}]
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%对应增加的一个数据集类型dataset确定文献类型标识符
+ \pertype{dataset}
+ \step[fieldset=usera, fieldvalue={DS}]%
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%对应增加的一个软件类型software确定文献类型标识符
+ \pertype{software}
+ \step[fieldset=usera, fieldvalue={CP}]
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%对应增加的一个舆图类型map确定文献类型标识符
+ \pertype{map}
+ \step[fieldset=usera, fieldvalue={CM}]%
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%对应增加的一个档案类型archive确定文献类型标识符
+ \pertype{archive}
+ \step[fieldset=usera, fieldvalue={A}]
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%因为misc类型本身就是没有类型,而不像其它文献有明确的类型,所以
+ %当misc类型带有网址时,直接将其转换为online类型
+ \pertype{misc}
+ \step[fieldsource=url,final]
+ \step[typesource=misc,typetarget=online]
+ }
+ \map{%对应增加的一个备选类型misc确定文献类型标识符
+ \pertype{misc}
+ \step[fieldset=usera, fieldvalue={Z}]%
+ }
+ \map{
+ \pertype{book}
+ \pertype{inbook}
+ \step[fieldset=usera, fieldvalue={M}]
+ \step[fieldsource=version] %有时会把version和edition混淆,处理后直接用edition
+ \step[fieldset=edition, origfieldval]
+ }
+ \map{%兼容老的standard类型,确定文献类型标识符
+ \pertype{standard}
+ \step[fieldset=usera, fieldvalue={S}]
+ \step[fieldset=note, fieldvalue=standard]%因为没有专门的驱动,记录note方便映射为book和inbook后判断
+ }
+ \map{
+ \pertype{patent}
+ \step[fieldset=usera, fieldvalue={P}]
+ }
+ \map{
+ \pertype{inproceedings}
+ \pertype{conference}%兼容老的conference类型
+ \step[fieldset=usera, fieldvalue={C}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{proceedings}
+ \step[fieldset=usera, fieldvalue={C}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{incollection}
+ \step[fieldset=usera, fieldvalue={G}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{collection}
+ \step[fieldset=usera, fieldvalue={G}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{report}
+ \pertype{techreport}%兼容老的techreport类型
+ \step[fieldset=usera, fieldvalue={R}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{thesis}
+ \pertype{mastersthesis}%兼容老的mastersthesis和phdthesis类型
+ \pertype{phdthesis}
+ \step[fieldset=usera, fieldvalue={D}]
+ \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{
+ \pertype{online}
+ \pertype{electronic}%兼容老的electronic类型
+ \pertype{www}%兼容老的www类型
+ \step[fieldset=usera, fieldvalue={EB}]
+ \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]%因为online的出版项处理类似手册
+ \step[fieldsource=organization]%有时会把organization和institution混淆,处理后使用institution,以增强兼容性
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{
+ \pertype{manual}
+ \step[fieldset=usera, fieldvalue={A}]
+ \step[fieldsource=edition]%有时会把version和edition混淆,处理后使用version
+ \step[fieldset=version, origfieldval]
+ \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ \step[fieldsource=organization]%有时会把organization和institution混淆,处理后使用institution,以增强兼容性
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{
+ \pertype{unpublished}
+ \step[fieldset=usera, fieldvalue={Z}]
+ }
+ \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
+ \step[fieldsource={author}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
+ }%
+ \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
+ \step[fieldsource={editor}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
+ }%
+ \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
+ \step[fieldsource={translator}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
+ }%
+ \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
+ \step[fieldsource={bookauthor}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
+ }%
+ \map{%处理一些用year表示date的情况
+ %这样处理将会设置date域,并使得labeldatesource变为空,因为date的前缀为空(如果是urldate,那么labeldatesource就是url)。
+ %同时date域会被biblatex自动解析为year,month,day,并且覆盖原来的year信息
+ \step[fieldsource=year]
+ \step[fieldset=date, origfieldval]
+ }
+ \map{%将entrykey放入keywords中用于后期使用
+ \step[fieldsource=entrykey]
+ \step[fieldset=keywords, origfieldval]
+ }
+ \map{\step[fieldsource=title,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=userd,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=title,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=userd,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=title,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=userd,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=title,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=userd,fieldvalue={korean}]%韩语
+ }
+ \map{%文献题名的中文判断,将信息保存到userd中,避免因为标签生成原因导致title域被清除而产生问题
+ \step[fieldsource=title, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%
+ \step[fieldset=userd, fieldvalue={chinese}]
+ }
+ \map{%将没有设置userd,且存在title域的默认设置为英文
+ \step[fieldsource=title,final]
+ \step[fieldset=userd,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=author,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=userf,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=author,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=userf,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=author,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=userf,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=author,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=userf,fieldvalue={korean}]%韩语
+ }
+ \map{%作者的中文判断
+ \step[fieldsource=author, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]
+ \step[fieldset=userf, fieldvalue={chinese}]
+ }
+ \map{%将没有设置userf,且存在author域的默认设置为英文
+ \step[fieldsource=author,final]
+ \step[fieldset=userf,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=translator,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=usere,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=translator,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=usere,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=translator,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=usere,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=translator,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=usere,fieldvalue={korean}]%韩语
+ }
+ \map{%译者的中文判断
+ \step[fieldsource=translator, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]
+ \step[fieldset=usere, fieldvalue={chinese}]
+ }
+ \map{%将没有设置usere,且存在translator域的默认设置为英文
+ \step[fieldsource=translator,final]
+ \step[fieldset=usere,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=editor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=userc,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=editor,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=userc,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=editor,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=userc,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=editor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=userc,fieldvalue={korean}]%韩语
+ }
+ \map{%编者的中文判断
+ \step[fieldsource=editor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5
+ \step[fieldset=userc, fieldvalue={chinese}]
+ }
+ \map{%将没有设置userc,且存在editor域的默认设置为英文
+ \step[fieldsource=editor,final]
+ \step[fieldset=userc,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=bookauthor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=userb,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=bookauthor,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=userb,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=bookauthor,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=userb,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=bookauthor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=userb,fieldvalue={korean}]%韩语
+ }
+ \map{%编者的中文判断
+ \step[fieldsource=bookauthor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5
+ \step[fieldset=userb, fieldvalue={chinese}]
+ }
+ \map{%将没有设置userc,且存在editor域的默认设置为英文
+ \step[fieldsource=bookauthor,final]
+ \step[fieldset=userb,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=userd,final]%userd存在则用根据标题的语言设定language
+ \step[fieldset=language,origfieldval]%本身language存在则不设定
+ }
+ \map{\step[fieldsource=userf,final]%userd不存在,而userf存在则根据author的语言设定language
+ \step[fieldset=language,origfieldval]
+ }%如果没有作者和标题,那么剩下的最可能有意义的只有网址了,而网址通常是英文的,因此不用再进一步对其它域进行判断了。
+ \map{%将没有设置的language设置成en,即认为不是中文的就是英文的。
+ \step[fieldset=language,fieldvalue={english}]
+ }
+ \map{%一条文献的语言已经设定在language域中,由于出版项相关宏中使用userd判断,
+ %所以将一条文献的主体语言设定到userd中,本身前面userd已经设定,但没有处理无标题的情况,
+ %这里的处理等价于没有标题时,利用作者的语言设定userd,再没有作者,则默认用英文设定userd
+ \step[fieldsource=language]
+ \step[fieldset=userd,origfieldval]
+ }
+ \map{%当文献给出language域时,设置文献要使用的本地化字符串的语言
+ %biblatex 3.11及以下版本仅有match是区分大小写的,而3.12版开始用matchi来区分大小,而match不区分
+ %这里为兼容3.11及以下版本,所以用一个复杂一点的正则表达式
+ \step[fieldsource=language,match=\regexp{(e|E)(n|N)(g|G)(l|L)(i|I)(s|S)(h|H)},final]
+ \step[fieldset=langid,fieldvalue={english}]
+ \step[fieldset=lansortorder,fieldvalue=\lanenorder]
+ }
+ \map{
+ \step[fieldsource=language,match=\regexp{(r|R)(u|U)(s|S)(s|S)(i|I)(a|A)(n|N)},final]
+ \step[fieldset=langid,fieldvalue={russian}]
+ \step[fieldset=lansortorder,fieldvalue=\lanruorder]
+ }
+ \map{%
+ \step[fieldsource=language,match=\regexp{(f|F)(r|R)(e|E)(n|N)(c|C)(h|H)},final]
+ \step[fieldset=langid,fieldvalue={french}]
+ \step[fieldset=lansortorder,fieldvalue=\lanfrorder]
+ }
+ \map{%
+ \step[fieldsource=language,match=\regexp{(c|C)(h|H)(i|I)(n|N)(e|E)(s|S)(e|E)},final]%中日韩语目前都用english,
+ \step[fieldset=langid,fieldvalue={english}]
+ \step[fieldset=lansortorder,fieldvalue=\lancnorder]
+ }
+ \map{%
+ \step[fieldsource=language,match=\regexp{(j|J)(a|A)(p|P)(a|A)(n|N)(e|E)(s|S)(e|E)},final]%中日韩语目前都用english,
+ \step[fieldset=langid,fieldvalue={english}]
+ \step[fieldset=lansortorder,fieldvalue=\lanjporder]
+ }
+ \map{%
+ \step[fieldsource=language,match=\regexp{(k|K)(o|O)(r|R)(e|E)(a|A)(n|N)},final]%中日韩语目前都用english,
+ \step[fieldset=langid,fieldvalue={english}]
+ \step[fieldset=lansortorder,fieldvalue=\lankrorder]
+ }
+}
+}
+
+
+%
+% 修改输入的参考文献数据,样式层的操作
+%
+% 原理方法:因为biblatex3.0版的map不使用foreach选项,所以需要一个一个写,以处理特殊字符
+\defversion{3.0}{map}{
+ \DeclareStyleSourcemap{
+ \maps[datatype=bibtex]{
+ \map{%尝试未定义数据模型的standard类型映射为其他类型book或inbook,
+ %standard类型在blx-dm中有出现,但仅定义了类型,域和约束等都没有定义
+ %因为可能要映射两种类型,所以不能在驱动层处理,因为要做判断
+ \step[fieldsource=booktitle,final]%当存在booktitle域是映射为inbook
+ \step[typesource=standard, typetarget=inbook, final]
+ }
+ \map{%剩下的全部映射为book
+ \step[typesource=standard, typetarget=book, final]
+ }
+% \map{%先于标准样式的driver层映射,以取消type设置
+% \step[typesource=mastersthesis, typetarget=thesis, final]
+% %\step[fieldset=type, fieldvalue=mathesis]
+% }
+% \map{%先于标准样式的driver层映射,以取消type设置
+% \step[typesource=phdthesis, typetarget=thesis, final]
+% %\step[fieldset=type, fieldvalue=phdthesis]
+% }
+ \map{%先于标准样式的driver层映射,以取消type设置
+ \step[typesource=techreport, typetarget=report, final]
+ %\step[fieldset=type, fieldvalue=techreport]
+ }
+ \map{%
+ \pertype{report}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=report,typetarget=online]
+ \step[fieldset=note,fieldvalue={report}]
+ }
+ \map{%
+ \pertype{thesis}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=thesis,typetarget=online]
+ }
+ \map{%
+ \pertype{manual}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=manual,typetarget=online]
+ }
+ \map{%
+ \pertype{unpublished}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=unpublished,typetarget=online]
+ }
+ \map{%
+ \pertype{database}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=databasetypetarget=online]
+ }
+ \map{%
+ \pertype{dataset}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=dataset,typetarget=online]
+ }
+ \map{%
+ \pertype{software}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=software,typetarget=online]
+ }
+ \map{%
+ \pertype{map}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=map,typetarget=online]
+ }
+ \map{%
+ \pertype{archive}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=archive,typetarget=online]
+ }
+ \map[overwrite]{%这里还必须有overwrite,注意不同版本存在差异,比如texlive2015变16后biber有变化(20161207修改正确)
+ \step[fieldsource=note, final]%将note域信息复制给keywords,用于输出时容易区分标准和报纸
+ \step[fieldset=keywords, fieldvalue={,}, append]
+ \step[fieldset=keywords, origfieldval, append]
+ }
+ \map[overwrite]{%title,booktitle,journaltitle,journal,publisher,address,location,institution,organization
+ \step[fieldsource={title}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ \map[overwrite]{
+ \step[fieldsource={booktitle}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ \map[overwrite]{
+ \step[fieldsource={journaltitle}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ \map[overwrite]{
+ \step[fieldsource={journal}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ \map[overwrite]{
+ \step[fieldsource={publisher}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ \map[overwrite]{
+ \step[fieldsource={address}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ \map[overwrite]{
+ \step[fieldsource={location}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ \map[overwrite]{
+ \step[fieldsource={institution}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ \map[overwrite]{
+ \step[fieldsource={booktitle}, match=\regexp{([^\\])\#}, replace=\regexp{$1\\\#}]
+ }
+ \map[overwrite]{
+ \step[fieldsource={booktitle}, match=\regexp{([^\\])\%}, replace=\regexp{$1\\\%}]
+ }
+ }
+ }
+}
+
+%
+% 修改输入的参考文献数据,样式层的操作
+%
+% 原理方法:biblatex3.4以上版本
+\defversion{3.4}{map}{
+ \DeclareStyleSourcemap{
+ \maps[datatype=bibtex]{
+ \map{%尝试未定义数据模型的standard类型映射为其他类型book或inbook,
+ %standard类型在blx-dm中有出现,但仅定义了类型,域和约束等都没有定义
+ %因为可能要映射两种类型,所以不能在驱动层处理,因为要做判断
+ \step[fieldsource=booktitle,final]%当存在booktitle域是映射为inbook
+ \step[typesource=standard, typetarget=inbook, final]
+ }
+ \map{%剩下的全部映射为book
+ \step[typesource=standard, typetarget=book, final]
+ }
+% \map{%先于标准样式的driver层映射,以取消type设置
+% \step[typesource=mastersthesis, typetarget=thesis, final]
+% %\step[fieldset=type, fieldvalue=mathesis]
+% }
+% \map{%先于标准样式的driver层映射,以取消type设置
+% \step[typesource=phdthesis, typetarget=thesis, final]
+% %\step[fieldset=type, fieldvalue=phdthesis]
+% }
+ \map{%先于标准样式的driver层映射,以取消type设置
+ \step[typesource=techreport, typetarget=report, final]
+ %\step[fieldset=type, fieldvalue=techreport]
+ }
+ \map{%
+ \pertype{report}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=report,typetarget=online]
+ \step[fieldset=note,fieldvalue={report}]
+ }
+ \map{%
+ \pertype{thesis}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=thesis,typetarget=online]
+ }
+ \map{%
+ \pertype{manual}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=manual,typetarget=online]
+ }
+ \map{%
+ \pertype{unpublished}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=unpublished,typetarget=online]
+ }
+ \map{%
+ \pertype{database}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=databasetypetarget=online]
+ }
+ \map{%
+ \pertype{dataset}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=dataset,typetarget=online]
+ }
+ \map{%
+ \pertype{software}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=software,typetarget=online]
+ }
+ \map{%
+ \pertype{map}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=map,typetarget=online]
+ }
+ \map{%
+ \pertype{archive}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=archive,typetarget=online]
+ }
+ \map[overwrite]{%这里还必须有overwrite,注意不同版本存在差异,比如texlive2015变16后biber有变化(20161207修改正确)
+ \step[fieldsource=note, final]%将note域信息复制给keywords,用于输出时容易区分标准和报纸
+ \step[fieldset=keywords, fieldvalue={,}, append]
+ \step[fieldset=keywords, origfieldval, append]
+ }
+ \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{
+ \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\#}, replace=\regexp{$1\\\#}]
+ }
+ \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{
+ \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\%}, replace=\regexp{$1\\\%}]
+ }
+ \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,%
+ address,location,institution,organization}]{
+ \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ }
+ }
+}
+
+\iftoggle{iftlfive}%
+ {\switchversion{3.0}{map}}%%当采用biblatex<=3.2版本时
+ {\switchversion{3.4}{map}}%%当采用3.3<=biblatex版本时
+
+
+%
+% 不同语言分集调整的实现方式
+%
+% 原理方法:利用样式层的动态数据修改lansortorder域来实现排序
+\def\dealsortlan{
+ \DeclareStyleSourcemap{
+ \maps[datatype=bibtex]{
+ \map[overwrite]{%当文献给出language域时,设置文献要使用的本地化字符串的语言
+ \step[fieldsource=language,match=english,final]
+ \step[fieldset=lansortorder,fieldvalue=\lanenorder]
+ }
+ \map[overwrite]{
+ \step[fieldsource=language,match=russian,final]
+ \step[fieldset=lansortorder,fieldvalue=\lanruorder]
+ }
+ \map[overwrite]{%
+ \step[fieldsource=language,match=french,final]
+ \step[fieldset=lansortorder,fieldvalue=\lanfrorder]
+ }
+ \map[overwrite]{%
+ \step[fieldsource=language,match=chinese,final]%中日韩语目前都用english,
+ \step[fieldset=lansortorder,fieldvalue=\lancnorder]
+ }
+ \map[overwrite]{%
+ \step[fieldsource=language,match=japanese,final]%中日韩语目前都用english,
+ \step[fieldset=lansortorder,fieldvalue=\lanjporder]
+ }
+ \map[overwrite]{%
+ \step[fieldsource=language,match=korean,final]%中日韩语目前都用english,
+ \step[fieldset=lansortorder,fieldvalue=\lankrorder]
+ }
+ }
+ }
+}
+
+%
+%驱动别名等价于驱动层映射
+%
+\DeclareBibliographyAlias{newspaper}{article}%
+\DeclareBibliographyAlias{inproceedings}{inbook}%会议论文文献类型驱动
+\DeclareBibliographyAlias{conference}{inbook}%会议论文文献类型驱动
+\DeclareBibliographyAlias{incollection}{inbook}%文集中析出文献类型驱动
+\DeclareBibliographyAlias{collection}{book}%%文集类型驱动
+\DeclareBibliographyAlias{proceedings}{book}%会议论文集文献类型驱动
+\DeclareBibliographyAlias{thesis}{manual}%学位论文驱动
+\DeclareBibliographyAlias{unpublished}{manual}%其它类型驱动
+\DeclareBibliographyAlias{database}{manual}
+\DeclareBibliographyAlias{dataset}{manual}
+\DeclareBibliographyAlias{software}{manual}
+\DeclareBibliographyAlias{map}{manual}
+\DeclareBibliographyAlias{archive}{manual}
+
+%=====================================================================
+% 设置排序格式
+%=====================================================================
+%
+% 排序格式,用降序,及userb域,针对biblatex3.7及以下版本
+%
+\defversion{3.7}{sort}{%这是3.4版的,3.7版略有差异,但不大,后面有注释
+ \DeclareSortingScheme{gb7714-2015}{
+ \sort{
+ \field{presort}
+ }
+ %\sort[final]{
+ %\field{sortkey}
+ %}
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort{
+ \field{sortkey}
+ }
+ \sort{%[direction=descending]
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field[padside=left,padwidth=4,padchar=0]{volume}%3.7版是\field{volume}
+ \literal{0000}%3.7版是\literal{0}
+ }
+ }
+
+ %降序的nyt
+ \DeclareSortingScheme{gbnytd}{
+ \sort{
+ \field{presort}
+ }
+ %\sort[final]{
+ %\field{sortkey}
+ %}
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort[direction=descending]{
+ \field{sortkey}
+ }
+ \sort[direction=descending]{
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field[padside=left,padwidth=4,padchar=0]{volume}%3.7版是\field{volume}
+ \literal{0000}%3.7版是\literal{0}
+ }
+ }
+
+ %降序的ynt
+ \DeclareSortingScheme{gbyntd}{
+ \sort{
+ \field{presort}
+ }
+ %\sort[final]{
+ %\field{sortkey}
+ %}
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort[direction=descending]{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sortkey}
+ }
+ \sort{
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field[padside=left,padwidth=4,padchar=0]{volume}%3.7版是\field{volume}
+ \literal{0000}%3.7版是\literal{0}
+ }
+ }
+
+ %升序的ynt
+ \DeclareSortingScheme{gbynta}{
+ \sort{
+ \field{presort}
+ }
+ %\sort[final]{
+ %\field{sortkey}
+ %}
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sortkey}
+ }
+ \sort{
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field[padside=left,padwidth=4,padchar=0]{volume}%3.7版是\field{volume}
+ \literal{0000}%3.7版是\literal{0}
+ }
+ }
+}
+
+
+%
+% 排序格式,用降序,及userb域,针对biblatex3.8及以上版本
+%
+\defversion{3.8}{sort}{
+ \DeclareSortingTemplate{gb7714-2015}{
+ \sort{
+ \field{presort}
+ }
+ %\sort[final]{
+ %\field{sortkey}
+ %}
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort{
+ \field{sortkey}
+ }
+ \sort{%[direction=descending]
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field{volume}
+ \literal{0}
+ }
+ }
+
+ %降序的nyt
+ \DeclareSortingTemplate{gbnytd}{
+ \sort{
+ \field{presort}
+ }
+% \sort[final]{
+% \field{sortkey}
+% }
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort[direction=descending]{
+ \field{sortkey}
+ }
+ \sort[direction=descending]{%
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field{volume}
+ \literal{0}
+ }
+ }
+
+ %降序的ynt
+ \DeclareSortingTemplate{gbyntd}{
+ \sort{
+ \field{presort}
+ }
+% \sort[final]{
+% \field{sortkey}
+% }
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort[direction=descending]{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sortkey}
+ }
+ \sort{%
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field{volume}
+ \literal{0}
+ }
+ }
+
+ %升序的ynt
+ \DeclareSortingTemplate{gbynta}{
+ \sort{
+ \field{presort}
+ }
+% \sort[final]{
+% \field{sortkey}
+% }
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort{%[direction=ascending]
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sortkey}
+ }
+ \sort{%
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field{volume}
+ \literal{0}
+ }
+ }
+}
+
+
+\ifboolexpr{
+test {\iftoggle{iftlfive}}
+or
+test {\iftoggle{iftlsix}}
+or
+test {\iftoggle{iftlseven}}%biblatex<=3.7
+}{\switchversion{3.7}{sort}}{\switchversion{3.8}{sort}}%3.8<=biblatex
+
+%=====================================================================
+% 参考文献表环境
+%=====================================================================
+%
+% 列表格式
+%
+% 增加一个\bibitemindent尺寸用于控制list环境的itemindent
+% v1.0l,20180615,hzz
+% v1.0t,20200319,hzz,增加尺寸\biblabelextend使某些字体下标签宽度不足时可增加标签宽度
+\setlength{\bibhang}{\biblabelsep}%
+\newlength{\bibitemindent}
+\setlength{\bibitemindent}{0pt}
+\newlength{\biblabelextend}
+\setlength{\biblabelextend}{0pt}
+
+
+\defbibenvironment{bibliography}
+ {\list
+ {\printtext[labelnumberwidth]{%
+ \printfield{labelprefix}%
+ \printfield{labelnumber}}}
+ {\addtolength{\labelnumberwidth}{\biblabelextend}%
+ \setlength{\labelwidth}{\labelnumberwidth}%
+ \setlength{\labelsep}{\biblabelsep}%
+ \setlength{\leftmargin}{\bibhang}%
+ \addtolength{\leftmargin}{\labelnumberwidth}%
+ \setlength{\itemindent}{\bibitemindent}%
+ \setlength{\itemsep}{\bibitemsep}%
+ \setlength{\parsep}{\bibparsep}}%
+ \renewcommand*{\makelabel}[1]{\hss##1}}
+ {\endlist}
+ {\item}
+
+%
+% 顺序编码制-标签对齐方式处理
+%
+% 原理方法:利用选项提供的计数器数值做选择
+% 左对齐,右对齐为list环境下的处理,此时list环境的\labelwidth只能设置一个,是最宽标签的宽度
+% 项对齐则是在段落环境下做的处理。
+% 左对齐时,参考文献各项内容对齐,序号标签与参考文献项内容的间距可变
+% 右对齐时,参考文献各项内容对齐,序号标签与参考文献项内容的间距相等,标签与页边距离可变
+% 项对齐时,序号标签贴在页边,序号标签与参考文献项内容的间距相等
+% 修改序号标签格式为:
+% \DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}} %源来自numeric.BBX
+% \DeclareFieldFormat{labelnumberwidth}{\ttfamily\mkbibbrackets{#1}\hfill}
+\DeclareFieldFormat{labelnumberwidth}{%
+\ifcase\value{gbalignlabel}%右对齐,整个标签为右对齐
+ \mkgbnumlabel{#1}%
+\or%左对齐,整个标签为左对齐
+ \mkgbnumlabel{#1}\hfill%
+\or%中间对齐,比如:序号数字居于[]中间
+ \hfil\mkgbnumlabel{\hfill#1\hfill}\hfil%
+\fi}
+
+%
+% 修改序号标签格式为以各条参文献为基础进行对齐的方式,即序号与条目内容间隔相等的方式。
+\def\setaligngbstyle{%
+\def\blx@bibitem##1{%
+ \blx@ifdata{##1}
+ {\begingroup
+ \blx@getdata{##1}%
+ \blx@bibcheck
+ \iftoggle{blx@skipentry}{}{%
+ \blx@setdefaultrefcontext{##1}%
+ \global\let\blx@noitem\@empty
+ \blx@setoptions@type\abx@field@entrytype
+ \blx@setoptions@entry
+ \blx@thelabelnumber
+ \addtocounter{instcount}\@ne
+ \blx@initsep
+ \blx@namesep
+ \csuse{blx@item@\blx@theenv}\relax
+% \blx@initsep %移动到上面去,恢复bibnamesep等的作用机制
+% \blx@namesep
+ \csuse{blx@hook@bibitem}%
+ \blx@execute
+ \blx@initunit
+ \blx@anchor
+ \blx@beglangbib
+ \bibsentence
+ \blx@pagetracker
+ \blx@driver\abx@field@entrytype
+ \blx@postpunct
+ \blx@endlangbib}%
+ \par\endgroup}%这里增加了一个\par
+ {}}
+\newlength{\lengthid}
+\newlength{\lengthlw}
+\newcommand{\itemcmd}{%
+\settowidth{\lengthid}{\mkgbnumlabel{\printfield{labelnumber}}}
+\addtolength{\lengthid}{\biblabelsep}
+\setlength{\lengthlw}{\textwidth}
+\addtolength{\lengthlw}{-\lengthid}
+\addvspace{\bibitemsep}%恢复\bibitemsep的作用
+%\parshape 2 0em \textwidth \lengthid \lengthlw
+\hangindent\lengthid
+\mkgbnumlabel{\printfield{labelnumber}}%
+\hspace{\biblabelsep}}
+%
+% 简单的段落环境
+\defbibenvironment{bibliography}
+{\begingroup\setlength{\parindent}{0em}}
+{\endgroup}
+{\itemcmd}}
+
+
+%=====================================================================
+% 设置单元或块等的标点
+%=====================================================================
+\renewrobustcmd*{\bibinithyphendelim}{\addhighpenspace}%用于处理姓名中名部分存在-的情况,比如ZHANG Yu-xin
+\renewcommand*{\subtitlepunct}{\addcolon\addspace} %修改标题和其它标题信息间的标点,来源biblatex.def,
+%
+% 利用set实现的多语言文献不同语言间的分隔符
+% 20170411,双语之间用newline替换par,避免采用gb7714-2015的项对齐方式第二语言间分段导致没有缩进
+%
+% 原理方法:set方法可以参考3.11.5 Entry Sets,4.11.1 Entry Sets
+% 这里调整一下两种语言参考文献的间隔,源来自biblatex.def
+\renewcommand*{\entrysetpunct}{\adddot\newline\nobreak}
+\renewcommand*{\bibpagespunct}{\addcolon\addthinspace}%%页码引用格式的修改,修改为用冒号
+%\renewcommand{\relateddelim}{}%\par
+
+%=====================================================================
+% 修改域的格式,重定义域的输出宏
+%=====================================================================
+%
+% 新增文献类型标识符的格式
+% []前的nobreak,从GB4.1节的例子看不应该加,所以去掉
+% 但因为考虑到cjk字符和[]之间可能添加空格,所以仍然加上
+% 而[]中间的内容,从4.6.2节的例子看也是可以分割的,因此内部的nobreak也可以去掉
+%
+\DeclareFieldFormat{gbtypeflag}{%
+\iftoggle{bbx:gbmedium}%
+{\iftoggle{bbx:url}%
+ {\iffieldundef{url}%当存在url时,增加一个OL标识符
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}}%
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\texttt{/}OL]}}%
+ }%
+ {\ifentrytype{online}%
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\texttt{/}OL]}}%
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}}%
+ }}%
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{]}}%
+}
+
+%
+% 新增用于报纸的文献类型标识符的格式
+%
+\DeclareFieldFormat{gbtypeflagn}{%用于报纸newspaper
+\iftoggle{bbx:gbmedium}%
+{\iftoggle{bbx:url}%
+ {\iffieldundef{url}%当存在url时,增加一个OL标识符
+ {\nobreak\printtext{[}\nobreak N\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
+ {\nobreak\printtext{[}\nobreak N\printtext{\texttt{/}OL]}\nobreak}%
+ }%
+ {\nobreak\printtext{[}\nobreak N\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
+}{\nobreak\printtext{[}\nobreak N\printtext{]}\nobreak}%
+}
+
+%
+% 新增用于标准的文献类型标识符的格式
+%
+\DeclareFieldFormat{gbtypeflags}{%用于标准standard
+\iftoggle{bbx:gbmedium}%
+{\iftoggle{bbx:url}%
+ {\iffieldundef{url}%当存在url时,增加一个OL标识符
+ {\nobreak\printtext{[}\nobreak S\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
+ {\nobreak\printtext{[}\nobreak S\printtext{\texttt{/}OL]}\nobreak}%
+ }%
+ {\nobreak\printtext{[}\nobreak S\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
+}{\nobreak\printtext{[}\nobreak S\printtext{]}\nobreak}%
+}
+
+%
+% 重设title等参考文献信息的输出格式
+%
+% 原理方法:修改来自biblatex.def文件的原格式
+\newcommand{\bibtitlefont}{}
+\newcommand{\bibauthorfont}{}
+\newcommand{\bibpubfont}{}
+
+\DeclareFieldFormat{title}{#1\adddot\addthinspace}
+\DeclareFieldFormat{journaltitle}{#1\isdot}%添加\isdot用于缩写名带点情况,将其转换为缩写点,便于标点的追踪
+\DeclareFieldFormat{issuetitle}{#1}
+\DeclareFieldFormat{maintitle}{#1}
+\DeclareFieldFormat{booktitle}{#1}
+\DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉
+ [article,patent,thesis,unpublished]
+ {title}{#1\adddot\addthinspace}%\mkbibquote{#1\isdot}
+\DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉
+ [inbook,incollection,inproceedings]
+ {title}{#1}%\nopunct\unspace
+\DeclareFieldFormat{url}{\url{#1}} %%url相关输出,url域修改如本行,源来自biblatex.def
+\def\UrlFont{\rmfamily}%设置url字体为roman字体%\ttfamily
+%\urlstyle{rm} %使用这句也一样
+\setcounter{biburlnumpenalty}{100} %让url可以在数字后断行
+\setcounter{biburlucpenalty}{100} %让url可以在大写字母后断行
+\setcounter{biburllcpenalty}{100} %让url可以在小写字母后断行
+\DeclareFieldFormat{doi}{%
+ \rmfamily{DOI}\addcolon\space
+ \ifhyperref
+ {\href{https://doi.org/#1}{\nolinkurl{#1}}}
+ {\nolinkurl{#1}}}
+%
+% 标题的字母大小写格式修改
+%
+% 注意:修改标题的字母大小写,不能用前面的title的格式而要用titlecase
+% 因为titlecase is applied to the contents of the field directly,title is not
+%\DeclareFieldFormat{titlecase}{\MakeCapital#1}%重设标题格式,将其修改为首字母大写
+\DeclareFieldFormat{titlecase}{\iftoggle{bbx:titlelink}{%
+\iffieldundef{url}{\MakeCapital#1}{%
+\href{\thefield{url}}{#1}}}{\MakeCapital#1}}%重设标题格式,将其修改为首字母大写
+\DeclareFieldFormat{pages}{#1}%去掉前面引导页码的pp.等字符,\mkpageprefix[bookpagination]{#1}
+\DefineBibliographyExtras{english}{\renewcommand*{\bibrangedash}{-}}%将页码间隔符替换会英文的短横线
+\DefineBibliographyExtras{russian}{\renewcommand*{\bibrangedash}{-}}%将页码间隔符替换会英文的短横线
+
+\def\execgbfdfmtstd{%恢复到标准样式的设置
+\DeclareFieldFormat{title}{\mkbibemph{##1}}
+\DeclareFieldFormat
+ [article,inbook,incollection,inproceedings,patent,thesis,unpublished]
+ {title}{\mkbibquote{##1\isdot}}
+\DeclareFieldFormat
+ [suppbook,suppcollection,suppperiodical]
+ {title}{##1}
+\DeclareFieldFormat{journaltitle}{\mkbibemph{##1}}
+\DeclareFieldFormat{issuetitle}{\mkbibemph{##1}}
+\DeclareFieldFormat{maintitle}{\mkbibemph{##1}}
+\DeclareFieldFormat{booktitle}{\mkbibemph{##1}}
+\DeclareFieldFormat{url}{\mkbibacro{URL}\addcolon\space\url{##1}}
+\DeclareFieldFormat{titlecase}{##1}
+\DeclareFieldFormat{pages}{\mkpageprefix[bookpagination]{##1}}
+}
+
+%
+% 文献标题后的标点问题
+% v1.0k,20180405,为texlive2017以上版本中的beamer兼容性做的处理,Hu Zhenzhen
+%
+% 原理方法:如下代码处理texlive2017以上版本中,beamer中文献的标题后出现两个点的情况:
+% texlive2017以上的beamer中对macro{title}做了patch,正常情况下不会出现两个点的情况,但由于
+% 之前为了处理texlive2015,2016下的title格式添加了adddot,导致出现两个点的情况,而且也影响
+% 析出文献的//符号的输出,因此再次对macro{title}做patch消除beamer中做apptocmd时添加的\newunitpunct
+\ifboolexpr{%
+ test{\iftoggle{iftlfive}}
+ or
+ test{\iftoggle{iftlsix}}
+ }{}%
+ {%texlive 2017对应iftlseven以上版本
+ \@ifclassloaded{beamer}{
+ \DeclareFieldFormat{title}{#1}%
+ \DeclareFieldFormat[article,patent,thesis,unpublished]{title}{#1}
+ \AtBeginDocument{%
+ \patchcmd{\abx@macro@title}{\newunitpunct}{}{}{}}}{}
+ }
+
+
+%
+% 修改译者位置格式
+% v1.0w,20210401,hzz,增加对英文等其它语言译者的处理
+%
+% 原理方法:修改来自biblatex.def文件的bytranslator+others宏的格式
+\renewbibmacro*{bytranslator+others}{\bibauthorfont%
+ \ifnameundef{translator}
+ {}
+ {\iffieldequalstr{usere}{chinese}{}{\usebibmacro{bytranslator+othersstrg}}
+ %\setunit{\addspace}%
+ \printnames[bytranslator]{translator}%
+ \clearname{translator}%
+ %从macro*{bytranslator+othersstrg}%中可以看到当地化字符串格式的引用前的代码处理
+ %比如生成cotranslator等用于调用cotranslator所代表的当地化字符串
+ \iffieldequalstr{usere}{chinese}{\usebibmacro{bytranslator+othersstrg}}{}%“译”的位置换到下面来,即放到译者后面。
+ %\setunit{\addspace}%
+ \newunit}%
+ \usebibmacro{withothers}}
+
+\renewbibmacro*{bytranslator+othersstrg}{%
+ \def\abx@tempa{bytranslator}%
+ \ifnamesequal{translator}{commentator}
+ {\appto\abx@tempa{co}%
+ \clearname{commentator}}
+ {\ifnamesequal{translator}{annotator}
+ {\appto\abx@tempa{an}%
+ \clearname{annotator}}
+ {}}%
+ \ifnamesequal{translator}{introduction}
+ {\appto\abx@tempa{in}%
+ \clearname{introduction}}
+ {\ifnamesequal{translator}{foreword}
+ {\appto\abx@tempa{fo}%
+ \clearname{foreword}}
+ {\ifnamesequal{translator}{afterword}
+ {\appto\abx@tempa{af}%
+ \clearname{afterword}}
+ {}}}%
+\iffieldequalstr{usere}{chinese}{\bibstring{bytranslatorcn}}
+ {\bibstring{\abx@tempa}}}
+
+
+%
+% 修改作者数量超过限定值,做省略时的处理格式
+% v1.0,20160701,hzz
+% v1.0O,20190103,hzz,修改利用新定义的一个分隔符strandothersdelim
+% v1.0w,20210401,hzz,针对其它语言的译者后的标点与中文不同做处理
+% 原理方法:判断作者或译者是否中文,若中文用字符等,否则用et al. 。
+% \printnames由start-stop控制项数,默认是1和maxnames/minnames
+\renewbibmacro*{name:andothers}{\bibauthorfont%
+ \ifboolexpr{
+ test {\ifnumequal{\value{listcount}}{\value{liststop}}}
+ and
+ test \ifmorenames
+ }{\ifnumgreater{\value{liststop}}{1}%注意这里试图去区分姓名总数大于1的情况,当姓名总数大于1时,最后一个姓名后面先加入一个\finalandcomma
+ {\finalandcomma}%目前国标没有这样的区分要求,如果有需要也是可以这么去做的。
+ {}%
+\printdelim{andothersdelim}\printdelim{strandothersdelim}%
+}{%当是译者的时候需要特殊处理:从7.2节看等,译前面加逗号,但从示例看等和译同时出现时,译前的逗号没有,比如:
+%袁训来, 陈哲, 肖书海, 等.
+%胡泳, 范海燕, 译.
+%潘惠霞, 魏婧, 杨艳, 等译.
+\ifcurrentname{translator}{\iffieldequalstr{usere}{chinese}{\addcomma\addthinspace}{}}{}%为了实现上述第二个示例情况做的处理
+}}
+
+
+
+% 修改省略作者后的本地化字符串,比如et al.
+% v1.0o,20190103,hzz
+%
+% 原理方法:默认情况下判断作者或译者是否中文,若中文用字符andotherscn=“等”,否则用andothers=“et al.”。
+% 非默认情况,根据选项信息,选择选择强制中文或英文
+% 首先设置全局的,然后设置文献表中的,这一等价于将所有的cite命令环境都设置过了
+% 而不用对每一个引用命令单独设置,比如cite,parancite,textcite都设置
+\DeclareDelimFormat{strandothersdelim}{%
+ \edef\userfieldabcde{userd}%这里使用\iffieldequalstr{labelnamesource}替代ifcurrentname因为标注中使用ifcurrentname无效
+ \iffieldequalstr{labelnamesource}{translator}{\edef\userfieldabcde{usere}}{}%
+ \iffieldequalstr{labelnamesource}{editor}{\edef\userfieldabcde{userc}}{}%
+ \iffieldequalstr{labelnamesource}{author}{\edef\userfieldabcde{userf}}{}%
+ \iffieldequalstr{labelnamesource}{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbcitelocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\ifbibstring{andothersincitecn}{\bibstring{andothersincitecn}}{\bibstring{andothers}}}{}%中文已经通过english本地化字符串定义
+ \iffieldequalstr{\userfieldabcde}{korean}{\ifbibstring{andotherskr}{\bibstring{andotherskr}}{\bibstring{andothers}}}{}%韩语未定义,所以与bib中一致
+ \iffieldequalstr{\userfieldabcde}{japanese}{\ifbibstring{andothersjp}{\bibstring{andothersjp}}{\bibstring{andothers}}}{}%日与同韩语
+ \iffieldequalstr{\userfieldabcde}{english}{\ifbibstring{andothersincite}{\bibstring{andothersincite}}{\bibstring{andothers}}}{}%英语已定义
+ \iffieldequalstr{\userfieldabcde}{french}{\bibstring{andothers}}{}%法语未定义,若要定义需要针对french本地化字符串定义
+ \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{andothers}}{}%俄语未定义,若要定义需要针对russian本地化字符串定义
+ \or%
+ \bibstring{andothersincitecn}%
+ \or%
+ \bibstring{andothersincite}%
+ \fi}
+
+
+\DeclareDelimFormat[bib,biblist]{strandothersdelim}{%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbbiblocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andotherscn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andotherskr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andothersjp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\bibstring{andothers}}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\bibstring{andothers}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{andothers}}{}%
+ \or%
+ \bibstring{andotherscn}%
+ \or%
+ \bibstring{andothers}%
+ \fi}
+
+%
+% 修改最后一个作者前的字符串,比如 and
+% v1.0o,20190103,hzz
+%
+% 原理方法:默认情况下判断作者或译者是否中文,若中文用字符andcn=“和”,否则用and=“and”。
+% 非默认情况,根据选项信息,选择选择强制中文或英文
+% 首先设置全局的,然后设置文献表中的,这一等价于将所有的cite命令环境都设置过了
+% 而不用对每一个引用命令单独设置,比如cite,parancite,textcite都设置
+\DeclareDelimFormat{finalnamedelim}{%
+ \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
+% \addspace%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbcitelocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andincitecn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andkr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andjp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\space\bibstring{andincite}\space}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\space\bibstring{and}\space}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\space\bibstring{and}\space}{}%
+%\space%
+ \or%
+ \bibstring{andincitecn}%\space%
+ \or%
+\space\bibstring{andincite}\space%
+ \fi}
+
+\DeclareDelimFormat[bib,biblist]{finalnamedelim}{%
+ \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
+ \addspace%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbbiblocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andcn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andkr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andjp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\bibstring{and}}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\bibstring{and}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{and}}{}%
+\space%
+ \or%
+ \bibstring{andcn}\space%
+ \or%
+ \bibstring{and}\space%
+ \fi}
+
+
+%
+% 重设title的输出
+%
+% 20180425,v1.0k,为标题增加字体控制命令,Hu Zhenzhen
+% 原理方法:将文献类型标识符输出出去,原输出来自biblatex.def文件
+% 利用toggle做标识符是否输出的判断
+\renewbibmacro*{title}{%
+ \ifboolexpr{%
+ test{\iffieldundef{title}}%
+ and
+ test{\iffieldundef{subtitle}}%
+ }%
+ {}%
+ {\printtext[title]{\bibtitlefont%增加字体控制命令
+ \printfield[titlecase]{title}%
+ \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
+ {}{\setunit{\subtitlepunct}%
+ \printfield[titlecase]{subtitle}}%
+ \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
+ {\setunit{\subtitlepunct}\printfield{titleaddon}}%
+ \iftoggle{bbx:gbtype}{%
+ \iffieldundef{note}{\printfield[gbtypeflag]{usera}}%在标题后直接给出文献标识字母,判断一下,是否是报纸和标准
+ {\iffieldequalstr{note}{standard}{\printfield[gbtypeflags]{usera}}%判断是否为标准
+ {\iffieldequalstr{note}{news}{\printfield[gbtypeflagn]{usera}}%判断是否为报纸
+ {\printfield[gbtypeflag]{usera}}}%其它
+ }}{}%
+ %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
+ %\newunit
+}%
+}}
+
+%
+% 作者信息的输出格式
+%
+% 20180425,v1.0k,为作者增加字体控制命令,Hu Zhenzhen
+% 20180603,v1.0l,增加使用nameformat域来选择姓名格式
+\DeclareNameFormat{namefmtselected}{%
+\iffieldundef{namefmtid}{}%
+{\defcounter{gbnamefmtcase}{\thefield{namefmtid}}}%
+\ifcase\value{gbnamefmtcase}%
+ \ifgiveninits
+ {\usebibmacro{name:gbuppercase}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:gbuppercase}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+\or
+ \ifgiveninits
+ {\usebibmacro{name:gblowercase}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:gblowercase}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+\or
+ \ifgiveninits
+ {\usebibmacro{name:given-family}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:given-family}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+\or
+ \ifgiveninits
+ {\usebibmacro{name:family-given}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:family-given}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+\or
+\usebibmacro{name:gbpinyin}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}%
+\or
+ \ifnumequal{\value{listcount}}{1}
+ {\ifgiveninits
+ {\usebibmacro{name:family-given}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:family-given}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+ \ifboolexpe{%
+ test {\ifdefvoid\namepartgiven}
+ and
+ test {\ifdefvoid\namepartprefix}}
+ {}
+ {\usebibmacro{name:revsdelim}}}
+ {\ifgiveninits
+ {\usebibmacro{name:given-family}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:given-family}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}}%
+\or
+\usebibmacro{name:gbquanpin}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}%
+\fi
+ \usebibmacro{name:andothers}}
+
+\DeclareNameAlias{default}{namefmtselected}%姓名的默认格式采用可选的模式
+\DeclareNameAlias{sortname}{default}% Used in the bibliography %family-given/given-family
+\DeclareNameAlias{citename}{default}% Default used by \citename
+
+\DeclareDelimFormat[bib,biblist]{andothersdelim}{\addcomma\addspace}
+%\DeclareDelimFormat[textcite]{andothersdelim}{\addspace}%
+
+%GB/T 7714-2015 风格,全部大写
+\newbibmacro*{name:gbuppercase}[4]{\bibauthorfont%
+\renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
+\renewcommand*{\revsdnamepunct}{}%
+ \ifuseprefix%
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifdefvoid{#3}{}{%
+ \ifcapital%
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}%
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifprefchar{}{\bibnamedelimc}}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
+ \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{\MakeUppercase{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%后缀前加逗号
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
+ \ifboolexpe{%
+ test {\ifdefvoid{#2}}
+ and
+ test {\ifdefvoid{#3}}}
+ {}{\revsdnamepunct}%
+ \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{\MakeUppercase{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
+ \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%%后缀前加逗号
+}
+
+%GB/T 7714-2015 风格,大小写不变,根据bib文件内输入原样输出
+\newbibmacro*{name:gblowercase}[4]{\bibauthorfont%
+ \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
+ \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifdefvoid{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifprefchar{}{\bibnamedelimc}}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{{#1}}}\isdot%
+ \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%后缀前加逗号
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{{#1}}}\isdot%
+ \ifboolexpe{%
+ test {\ifdefvoid{#2}}
+ and
+ test {\ifdefvoid{#3}}}
+ {}{\revsdnamepunct}%
+ \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}
+ \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%%后缀前加逗号
+}
+
+%中文常见风格,汉语拼音全拼模式
+\newbibmacro*{name:gbpinyin}[4]{\bibauthorfont%
+\renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉,%来源biblatex2.STY
+\renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
+\renewrobustcmd*{\bibnamedelima}{\mbox{-}}%
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifdefvoid{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifprefchar{}{\bibnamedelimc}}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
+ \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\MakeSentenceCase{\mkbibnamegiven{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
+ \ifboolexpe{%
+ test {\ifdefvoid{#2}}
+ and
+ test {\ifdefvoid{#3}}}
+ {}
+ {\revsdnamepunct}%
+ \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{\MakeCapital{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}
+ \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%
+}
+%中文常见风格,汉语拼音全拼模式
+\newbibmacro*{name:gbquanpin}[4]{\bibauthorfont%
+\renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉,%来源biblatex2.STY
+\renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
+\renewrobustcmd*{\bibnamedelima}{}%
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifdefvoid{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifprefchar{}{\bibnamedelimc}}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeCapital{#1}}}\isdot%
+ \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\MakeSentenceCase{\mkbibnamegiven{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeCapital{#1}}}\isdot%
+ \ifboolexpe{%
+ test {\ifdefvoid{#2}}
+ and
+ test {\ifdefvoid{#3}}}
+ {}
+ {\revsdnamepunct}%
+ \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{\MakeCapital{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}
+ \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%
+}
+
+
+\@ifpackagelater{biblatex}{2016/03/27}%biblatex<3.2版的情况
+ {}{
+ %GB/T 7714-2015 风格,全部大写
+ \renewbibmacro*{name:gbuppercase}[4]{\bibauthorfont%
+ \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
+ \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifblank{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifpunctmark{'}{}{\bibnamedelimc}}%
+ %\mkbibnamelast{#1}\isdot
+ \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeUppercase{#1}}}\isdot%\MakeUppercase %\mkbibnamelast{\MakeUppercase{#1}} %\MakeSentenceCase
+ %注意上一句\MakeCapital后面如果再跟一个{}包含#1,则没有效果,可能是包在里面少了一层展开
+ %因为机构名通常包括在{}内,所以要多展开一次才行,所以这里去掉#1外面的{}
+ %\mkbibnamelast{\MakeUppercase{#1}}\isdot
+ %\ifblank{#4}{}{\bibnamedelimd\mkbibnameaffix{#4}\isdot}%这句放到后面
+ \ifblank{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamefirst{\MakeUppercase{#2}}\isdot}%
+ \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}}%后缀前加逗号
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ %\mkbibnamelast{#1}\isdot %3.9.1 Generic Commands and Hooks,对姓重新处理,如下句: %\mkbibnamelast{\MakeUppercase{#1}}
+ \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeUppercase{#1}}}\isdot %大写,参考4.6.4 Miscellaneous Commands,\MakeUppercase %\MakeSentenceCase
+ %\mkbibnamelast{\MakeUppercase{#1}}\isdot
+ %\ifblank{#4}{}{\bibnamedelimd\mkbibnameaffix{#4}\isdot}%这句放到后面
+ \ifblank{#2#3}{}{\revsdnamepunct}%
+ \ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{\MakeUppercase{#2}}\isdot}%
+ \ifblank{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
+ \addcomma\addspace%
+ \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}%%后缀前加逗号
+ }%
+ }
+
+ %GB/T 7714-2015 风格,大小写不变,根据bib文件内输入原样输出
+ \renewbibmacro*{name:gblowercase}[4]{\bibauthorfont%
+ \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
+ \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifblank{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifpunctmark{'}{}{\bibnamedelimc}}%
+ \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{{#1}}}\isdot%\MakeUppercase %\mkbibnamelast{\MakeUppercase{#1}} %\MakeSentenceCase
+ \ifblank{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamefirst{{#2}}\isdot}%
+ \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}}%后缀前加逗号
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{{#1}}}\isdot %大写,参考4.6.4 Miscellaneous Commands,\MakeUppercase %\MakeSentenceCase
+ \ifblank{#2#3}{}{\revsdnamepunct}%
+ \ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{{#2}}\isdot}%
+ \ifblank{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
+ \addcomma\addspace%
+ \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}%%后缀前加逗号
+ }%
+ }
+
+ %中文常见风格,汉语拼音全拼模式
+ \renewbibmacro*{name:gbpinyin}[4]{\bibauthorfont%
+ \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
+ \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
+ \renewrobustcmd*{\bibnamedelima}{\mbox{-}}%
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifblank{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifpunctmark{'}{}{\bibnamedelimc}}%
+ \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeUppercase{#1}}}\isdot%\MakeUppercase %\mkbibnamelast{\MakeUppercase{#1}} %\MakeSentenceCase
+ \ifblank{#2}{}{\revsdnamepunct\bibnamedelimd\MakeSentenceCase{\mkbibnamefirst{#2}}\isdot}%
+ \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}}
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeUppercase{#1}}}\isdot %大写,参考4.6.4 Miscellaneous Commands,\MakeUppercase %\MakeSentenceCase
+ \ifblank{#2#3}{}{\revsdnamepunct}%
+ \ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{\MakeUppercase{#2}}\isdot}%
+ \ifblank{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
+ \addcomma\addspace%
+ \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}%
+ }%
+ }
+ %中文常见风格,汉语拼音全拼模式
+ \renewbibmacro*{name:gbquanpin}[4]{\bibauthorfont%
+ \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
+ \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
+ \renewrobustcmd*{\bibnamedelima}{}%
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifblank{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifpunctmark{'}{}{\bibnamedelimc}}%
+ \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeCapital{#1}}}\isdot%\MakeUppercase %\mkbibnamelast{\MakeUppercase{#1}} %\MakeSentenceCase
+ \ifblank{#2}{}{\revsdnamepunct\bibnamedelimd\MakeSentenceCase{\mkbibnamefirst{#2}}\isdot}%
+ \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}}
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeCapital{#1}}}\isdot %大写,参考4.6.4 Miscellaneous Commands,\MakeUppercase %\MakeSentenceCase
+ \ifblank{#2#3}{}{\revsdnamepunct}%
+ \ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{\MakeUppercase{#2}}\isdot}%
+ \ifblank{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
+ \addcomma\addspace%
+ \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}%
+ }%
+ }
+
+ %%biblatex<3.2版的情况,姓名的处理格式带参数
+ \DeclareNameFormat{namefmtselected}{%
+ \iffieldundef{namefmtid}{}%
+ {\defcounter{gbnamefmtcase}{\thefield{namefmtid}}}%
+ \ifcase\value{gbnamefmtcase}%
+ \iffirstinits
+ {\usebibmacro{name:gbuppercase}{#1}{#4}{#5}{#7}}
+ {\usebibmacro{name:gbuppercase}{#1}{#3}{#5}{#7}}%
+ \or
+ \iffirstinits
+ {\usebibmacro{name:gblowercase}{#1}{#4}{#5}{#7}}
+ {\usebibmacro{name:gblowercase}{#1}{#3}{#5}{#7}}%
+ \or
+ \iffirstinits
+ {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}}
+ {\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}}%
+ \ifblank{#3#5}
+ {}
+ {\usebibmacro{name:revsdelim}}%
+ \or
+ \iffirstinits
+ {\usebibmacro{name:first-last}{#1}{#4}{#5}{#7}}
+ {\usebibmacro{name:first-last}{#1}{#3}{#5}{#7}}%
+ \or
+ \usebibmacro{name:gbpinyin}{#1}{#3}{#5}{#7}%
+ \or
+ \ifnumequal{\value{listcount}}{1}
+ {\iffirstinits
+ {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}}
+ {\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}}%
+ \ifblank{#3#5}
+ {}
+ {\usebibmacro{name:revsdelim}}}
+ {\iffirstinits
+ {\usebibmacro{name:first-last}{#1}{#4}{#5}{#7}}
+ {\usebibmacro{name:first-last}{#1}{#3}{#5}{#7}}}%
+ \or
+ \usebibmacro{name:gbquanpin}{#1}{#3}{#5}{#7}%
+ \fi
+ \usebibmacro{name:andothers}}
+}
+
+%
+% url和url日期格式
+%
+\renewbibmacro*{url+urldate}{%
+ %\usebibmacro{url}%%更换url的位置,放到下面
+ \iffieldundef{urlyear}%
+ {}{%\setunit*{\addspace}%
+ \usebibmacro{urldate}}%
+ \setunit{\addperiod\addspace}%
+ \usebibmacro{url}}
+\renewbibmacro*{url}{\printfield{url}}
+
+
+
+
+%
+% 日期信息的输出格式,针对biblatex<3.7版本
+%
+\defversion{3.4}{date}{
+ \renewbibmacro*{urldate}{%
+ \addthinspace\printtext{[}\printfield{urlyear}%
+ \iffieldundef{urlmonth}{}{\bibrangedash\printfield{urlmonth}}%
+ \iffieldundef{urlday}{}{\bibrangedash\printfield{urlday}}\printtext{]}}
+
+ \newbibmacro*{newsdate}{%%新增加一个公告日期,公开日期或新闻日期
+ \iffieldundef{year}{}{\printfield{year}%
+ \iffieldundef{month}{}{\bibrangedash\printtext{\thefield{month}}%
+ \iffieldundef{day}{}{\bibrangedash\printfield{day}}}}%
+ }
+
+ \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
+ \ifboolexpr{%
+ test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
+ }%
+ {}%更新或修改日期通常有day信息
+ {\iffieldequalstr{year}{}{%替换\iffieldundef{year},因为year总是存在,但为空
+ \iffieldundef{endyear}{%
+ \iffieldundef{eventyear}{}{\printtext{\mkbibparens{\printtext{\printfield{eventyear}}%
+ \iffieldundef{eventmonth}{}{\bibrangedash\thefield{eventmonth}}%
+ \iffieldundef{eventday}{}{\bibrangedash\printfield{eventday}}}}%
+ }%
+ }{%
+ \iffieldundef{endyear}{}{\printtext{\mkbibparens{\printtext{\printfield{endyear}}%
+ \iffieldundef{endmonth}{}{\bibrangedash\thefield{endmonth}}%
+ \iffieldundef{endday}{}{\bibrangedash\printfield{endday}}}}%
+ }%
+ }%
+ }%
+ {%
+ \iffieldundef{year}{}{\printtext{\mkbibparens{\printtext{\printfield{year}}%
+ \iffieldundef{month}{}{\bibrangedash\thefield{month}}%
+ \iffieldundef{day}{}{\bibrangedash\printfield{day}}}}%
+ }%
+ }%
+ }}%
+}
+
+%
+% 日期信息的输出格式,针对3.9>=biblatex>=3.7版本
+%
+\defversion{3.7}{date}{
+ \DeclareFieldFormat{urldate}{##1}
+ \renewbibmacro*{urldate}{%
+ \addthinspace\printtext{[}\printurldate\printtext{]}}%能用高层命令+选项尽量用命令(比如这里的\printurldate),而不用\blx@edtfdate这种更底层的命令
+
+ %
+ % 专利的公告日期、或报纸的日期的输出宏
+ % 20160701,v1.0,新增加
+ % 20180405,v1.0k,为biblatexv3.7-3.9版本,出现多出点bug做处理,Hu Zhenzhen
+ %
+ % 原理方法:加上printtext避免破坏异步标点机制
+ %
+ \newbibmacro*{newsdate}{%
+ \printtext{\blx@edtfdate{}{}}%
+ }
+
+ \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
+ \ifboolexpr{%
+ test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
+ }%
+ {}%更新或修改日期通常有day信息
+ {\iffieldundef{year}{%
+ \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\printtext{(}\printeventdate\printtext{)}}}%
+ {\printtext{(}\printenddate\printtext{)}}%
+ }{\iffieldequalstr{year}{}{%因为year存在,但为空
+ }{\printtext{(}\blx@edtfdate{}{}\printtext{)}}%
+ }%
+ }}%
+}
+
+%
+% 日期信息的输出格式,针对biblatex>=3.10版本
+%
+\defversion{3.10}{date}{
+ \DeclareFieldFormat{urldate}{##1}
+ \renewbibmacro*{urldate}{%
+ \addthinspace\printtext{[}\printurldate\printtext{]}}%能用高层命令+选项尽量用命令(比如这里的\printurldate),而不用\blx@edtfdate这种更底层的命令
+
+ %
+ % 专利的公告日期、或报纸的日期的输出宏
+ % 20160701,v1.0,新增加
+ % 20180405,为biblatexv3.10版本,出现多出点bug做处理,Hu Zhenzhen
+ %
+ % 原理方法:加上printtext避免破坏异步标点机制
+ % 本可以用\printdate,但由于date选项设置为year,所以仅会给出年份
+ % 所以无法再用选项设置的方法,印象需要用底层的命令
+ % 这里可以用\blx@isodate,但用\blx@gbdate试图避免版本判断
+ \newbibmacro*{newsdate}{%%
+ \printtext{\blx@gbdate{}{}}%%\blx@isodate{}{}%
+ }
+
+ %
+ \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
+ \ifboolexpr{%
+ test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
+ }%
+ {}%更新或修改日期通常有day信息
+ {\iffieldundef{year}{%
+ \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\printtext{(}\printeventdate\printtext{)}}}%
+ {\printtext{(}\printenddate\printtext{)}}%
+ }{\iffieldequalstr{year}{}{%因为year存在,但为空
+ }{\printtext{(}\blx@gbdate{}{}\printtext{)}}%
+ }%
+ }}%
+}
+
+%
+% biblatex>v3.8版利用related实现双语文献的处理
+%
+\defversion{3.8}{dblang}{
+ %为了实现v3.8以上版本的双语文献,采用related的方法代替set方法,因为set方法已经无法实现了,
+ %因为set不再复制其第一个成员的信息。于是定义一个命令,用于动态的修改数据,即添加related域的信息
+ %其中使用了\DeclareStyleSourcemap,但由于其只能出现在导言区中,因此\defdoublelangentry命令也只能出现在导言区中
+ \newcommand{\defdoublelangentry}[2]{%
+ \edef\entrykeya{##1}
+ \edef\entrykeyb{##2}
+ \DeclareStyleSourcemap{
+ \maps[datatype=bibtex]{
+ \map{
+ \step[fieldsource=entrykey, match=\entrykeya, final]
+ \step[fieldset=related, fieldvalue=\entrykeyb]
+ }
+ }
+ }
+ }
+}
+
+%
+% 关联文献间的分隔符
+%
+\renewcommand{\relateddelim}{\adddot\newline\nobreak}%\par,而作者年样式不需要修改,因为没有项对齐的标签问题
+
+%
+% 关联文献的输出格式,针对3.9>=biblatex>=3.7版本
+%
+% 原理方法:因为related宏中带有##了,所以无法封装到defversion中了。所以直接做判断
+% 下面这一段主要针对v3.8-3.10,因为我提问后,biblatex作者为3.11版增加了一个钩子控制relatedblock前的分隔符。
+\ifboolexpr{
+test{\iftoggle{iftleight}}
+or
+test{\iftoggle{iftlnine}}
+}{\renewbibmacro*{related}{%standard.bbx
+ \ifboolexpr{ test {\iffieldundef{related}} or test {\ifrelatedloop} }
+ {}
+ {\usebibmacro{begrelated}%
+ \def\bbx@tempa{}%
+ \setcounter{bbx:relatedtotal}{0}%
+ \def\do##1{%
+ \entrydata{##1}{%
+ \ifrelatedloop
+ {}
+ {\stepcounter{bbx:relatedtotal}%
+ \gappto{\bbx@tempa}{##1,}}}}%
+ \docsvfield{related}%
+ \restorefield{related}{\bbx@tempa}%
+ \ifnumgreater{\value{bbx:relatedtotal}}{0}
+ {\listcsxadd{bbx:relatedloop}{\strfield{entrykey}}%
+ \iffieldundef{clonesourcekey}
+ {}
+ {\listcsxadd{bbx:relatedloop}{\strfield{clonesourcekey}}}%
+ \setcounter{bbx:relatedcount}{0}%
+ \def\do{%
+ \stepcounter{bbx:relatedcount}%
+ \ifnumgreater{\value{bbx:relatedcount}}{0}%这里从1改为0
+ {\ifcsundef{relateddelim\strfield{relatedtype}}
+ {\printtext{\relateddelim}}
+ {\printtext{\csuse{relateddelim\strfield{relatedtype}}}}}
+ {}}%
+ \ifbibmacroundef{related:\strfield{relatedtype}}
+ {\appto{\do}{\usebibmacro{related:default}}}
+ {\appto{\do}{\usebibmacro*{related:\strfield{relatedtype}}}}%
+ \iffieldformatundef{related:\strfield{relatedtype}}
+ {\def\bbx@tempa{related}}
+ {\def\bbx@tempa{related:\strfield{relatedtype}}}%
+ \iffieldformatundef{relatedstring:\strfield{relatedtype}}
+ {\def\bbx@tempb{relatedstring:default}}
+ {\def\bbx@tempb{relatedstring:\strfield{relatedtype}}}%
+ \printtext[\bbx@tempa]{%
+ \usebibmacro{begrelatedloop}%
+ \iffieldundef{relatedstring}
+ {\ifboolexpr{
+ test {\ifnumgreater{\value{bbx:relatedtotal}}{1}}
+ and
+ test {\ifbibxstring{\thefield{relatedtype}s}}
+ }
+ {\printtext[\bbx@tempb]{%
+ \bibstring[\mkrelatedstring]{\thefield{relatedtype}s}}}
+ {\iffieldbibstring{relatedtype}
+ {\printtext[\bbx@tempb]{%
+ \bibstring[\mkrelatedstring]{\thefield{relatedtype}}}}
+ {}}}
+ {\iffieldbibstring{relatedstring}
+ {\printtext[\bbx@tempb]{%
+ \bibstring[\mkrelatedstring]{\thefield{relatedstring}}}}
+ {\printfield[\bbx@tempb]{relatedstring}}}%
+ \docsvfield{related}%
+ \usebibmacro{endrelatedloop}}}%
+ {}%
+ \usebibmacro{endrelated}}}
+}{}
+
+%
+% 关联文献块前的分隔符,针对biblatex>3.11
+%
+% 原理方法:因为增加了begrelateddelim钩子,所以不需要重定义related输出宏
+\defversion{3.11}{related}{
+\renewcommand{\begrelateddelim}{\adddot\newline\nobreak}
+}
+
+\iftoggle{iftlfive}{\switchversion{3.4}{date}}{}%biblatex<=3.2
+\iftoggle{iftlsix}{\switchversion{3.4}{date}}{}%3.3<=biblatex<=3.6
+\iftoggle{iftlseven}{\switchversion{3.7}{date}}{}%biblatex=3.7
+\iftoggle{iftleight}{\switchversion{3.7}{date}\switchversion{3.8}{dblang}}{}%3.8<=biblatex<=3.9
+\iftoggle{iftlnine}{\switchversion{3.10}{date}\switchversion{3.8}{dblang}}{}%biblatex=3.10
+\iftoggle{iftlatest}{\switchversion{3.10}{date}\switchversion{3.8}{dblang}\switchversion{3.11}{related}}{}%biblatex最新3.11
+
+%
+% 调整doi+eprint+url格式
+% 2016.07.01 byhzz
+% 2019.05.01 byhzz 在eprint前增加一个空格
+% 原理方法:源来自standard.bbx,因为页码后面直接跟引用日期,没有标点所以去掉其中的标点。
+\renewbibmacro*{doi+eprint+url}{%
+% \iftoggle{bbx:doi}%把doi的位置放到url后面
+% {\printfield{doi}}
+% {}%
+ %\newunit\newblock
+ \iftoggle{bbx:eprint}
+ {\iffieldundef{eprint}{}{\newunit\usebibmacro{eprint}}}
+ {}%
+ %\newunit\newblock
+ \iftoggle{bbx:url}
+ {\usebibmacro{url+urldate}}
+ {}
+ \newunit\newblock
+ \iftoggle{bbx:doi}
+ {\printfield{doi}}
+ {}}
+
+%
+% 调整页码的格式,即chapter+pages格式
+%
+\renewbibmacro*{chapter+pages}{%
+\iftoggle{bbx:gbstrict}{}{%
+ \printfield{chapter}}%
+ \iffieldundef{pages}{}{%这里增加一个判断,当没有页码时就不输出
+ \setunit{\bibpagespunct}%
+ \printfield{pages}}%
+ %\newunit %这里的标点去掉
+}
+
+%
+% 当location等出版项超过maxitem缩减后不再输出etal
+%
+\DeclareListFormat{location}{%
+ \usebibmacro{list:delim}{#1}%
+ #1\isdot}
+\DeclareListAlias{institution}{location}
+\DeclareListAlias{publisher}{location}
+
+% 新增一个样式用于输出连续出版物的地址,单位,时间,
+% 用于periodical连续出版物的出版社和地址的处理
+%
+% v1.0k,20180425,为出版信息增加字体控制命令,hzz
+% %类似\newbibmacro*{publisher+location+date}
+\newbibmacro*{location+institution+date}{\bibpubfont%
+\iftoggle{bbx:gbpub}%
+{\testCJKfirst{userd}%
+\ifboolexpr{%
+test {\iflistundef{location}} and test {\iflistundef{institution}}%
+}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress}\space :\space\str@nopublisher]}%
+{\printtext{[S.l.\space :\space s.n.\adddot]}}%
+}{%
+\iflistundef{location}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress]}}{\printtext{[S.l.\adddot]}}}%
+ {\printlist{location}}%
+\addcolon\addspace%
+\iflistundef{institution}{%
+\iftoggle{ifCJKforgbt}{\printtext{[\str@nopublisher]}}{\printtext{\mkbibbrackets{s.n.}}}}%
+{\printlist{institution}}}%
+\setunit{\addcomma\addspace}%
+ %\usebibmacro{date}%
+ \printfield{year}%
+ \bibrangedash%
+ \iffieldundef{endyear}{}{\printfield{endyear}}%
+ \newunit}%
+{\printlist{location}%
+ \iflistundef{institution}%
+ {\setunit*{\addcomma\space}}
+ {\setunit*{\addcolon\space}}%
+ \printlist{institution}%
+ \setunit*{\addcomma\space}%
+ \usebibmacro{date}%
+ \newunit}%
+}
+%
+% 通用的出版社和地址的处理
+%
+% 原理方法:当没有出版社地址时,直接判断title的信息是否是中文,若为中文,则写出版地不详,否则用英文的字符表示。
+% 事实上title对于每个文献来说是必须的,所以用它判断是最快的,而且一般标题和出版社的语言是一样的。
+% 注意标准standard类型,因为当没有出版项时直接省略,所以做特殊处理
+\renewbibmacro*{publisher+location+date}{\bibpubfont%
+\iftoggle{bbx:gbpub}%
+{\testCJKfirst{userd}%
+ \ifboolexpr{ test {\iflistundef{location}} and test {\iflistundef{publisher}} }%
+ {\iffieldequalstr{note}{standard}{}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress}\space :\space\str@nopublisher]}{\printtext{[S.l.\space :\space s.n.\adddot]}}}}%
+ {\iflistundef{location}{%\adddot
+ \iffieldequalstr{note}{standard}{}%%从gbt7714-2015标准第19页看到,标准存在出版项时输出,没有时完全省略。
+ {\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress]}\addcolon\addspace}{\printtext{[S.l.\adddot]}\addcolon\addspace}}}% \bibstring{noaddress}
+ {\printlist{location}\addcolon\addspace}%%\addcolon\addspace%
+ \iflistundef{publisher}{%
+ \iffieldequalstr{note}{standard}{}%
+ {\iftoggle{ifCJKforgbt}{\printtext{[\str@nopublisher]}\setunit{\adddot\addspace}\setunit*{\addcomma\addspace}}%
+ {\printtext{\mkbibbrackets{s.n.}}\setunit{\adddot\addspace}\setunit*{\addcomma\addspace}}}}%
+ {\printlist{publisher}}}%
+\setunit*{\addcomma\addspace}%\addcomma\addspace%
+\usebibmacro{date}%%\newunit %去掉这个标点
+}%
+{\printlist{location}%
+ \iflistundef{publisher}
+ {\setunit*{\addcomma\space}}
+ {\setunit*{\addcolon\space}}%
+ \printlist{publisher}%
+ \setunit*{\addcomma\space}%
+ \usebibmacro{date}%%\newunit
+ }%
+}
+
+%
+% 修改了一个institution+location+date用于manual、report、thesis等类型
+%
+% 20180425,v1.0k,增加了字体控制命令,hzz
+% 20190105,v1.0o,加了一个编组避免\usebibmacro{date}把month和day信息去掉
+\renewbibmacro*{institution+location+date}{\bibpubfont%当没有institution时不处理。
+{\printlist{location}%%加了一个编组避免\usebibmacro{date}把month和day信息去掉
+ \iflistundef{institution}
+ {\setunit*{\addcomma\space}}
+ {\setunit*{\addcolon\space}}%
+ \printlist{institution}%
+ \setunit*{\addcomma\space}%
+ \usebibmacro{date}%
+ %\newunit
+ }}
+
+%
+% 对volume卷信息格式做出修改
+% v1.0o,20190105,hzz
+%
+\DeclareFieldFormat{volume}{%
+\testCJKfirst{userd}%
+\iftoggle{ifCJKforgbt}%
+{\bibstring{serialcn}#1\bibstring{volumecn}}%
+{\bibstring{volume}~#1}%
+}% volume of a book
+\DeclareFieldFormat[article,periodical]{volume}{#1}% volume of a journal
+
+%
+% 对number册信息格式做出修改
+% v1.0o,20190105,hzz
+%
+\DeclareFieldFormat{number}{#1}%
+\DeclareFieldFormat[book,collection,inbook,%
+incollection,proceedings,inproceedings]{number}{%
+\testCJKfirst{userd}%
+\iftoggle{ifCJKforgbt}%
+{\bibstring{serialcn}#1\bibstring{numbercn}}%
+{#1}%
+}%
+
+%
+% 对edition版本信息格式做出修改
+%
+\DeclareFieldFormat{edition}{\bibtitlefont%源来自biblatex.DEF
+\testCJKfirst{userd}%
+\iftoggle{ifCJKforgbt}%
+{\ifinteger{#1}%
+{\printtext{#1\str@edition}}%
+{#1\isdot}}%
+{\ifinteger{#1}%
+{\mkbibordedition{#1}~\bibstring{edition}}%
+{#1\isdot}}}
+
+%
+% 对version的版本信息做出修改
+%
+\DeclareFieldFormat{version}{\bibtitlefont%源来自biblatex.DEF
+\testCJKfirst{userd}%
+\ifinteger{#1}%
+{\iftoggle{ifCJKforgbt}{\printtext{#1\str@edition}}%
+{\mkbibordedition{#1}~\bibstring{version}}}%
+{#1\isdot}}
+
+%
+% 修改析出文献的文集的标题与附加标题间的符号
+%
+\renewbibmacro*{booktitle}{%
+ \ifboolexpr{
+ test {\iffieldundef{booktitle}}
+ and
+ test {\iffieldundef{booksubtitle}}
+ }
+ {}
+ {\printtext[booktitle]{\bibtitlefont%
+ \printfield[titlecase]{booktitle}%
+ \setunit{\subtitlepunct}%
+ \printfield[titlecase]{booksubtitle}}%
+ \newunit%标点换成下一句
+ \setunit{\subtitlepunct}}%
+ \printfield{booktitleaddon}}
+
+
+%
+% 调整期刊名的格式
+%
+% v1.0k,20180425,增加了字体控制命令,hzz
+\renewbibmacro*{journal+issuetitle}{\bibpubfont%源来自standard.bbx
+ \usebibmacro{journal}%
+ %\setunit*{\addspace}%
+ \setunit*{\addcomma\addspace}%修改为增加一个逗号
+ \iffieldundef{series}
+ {}
+ {\newunit
+ \printfield{series}%
+ \setunit{\addspace}}%
+ %\usebibmacro{volume+number+eid}%
+ %\setunit{\addspace}%
+ \usebibmacro{issue+date}%
+ %\setunit{\addcolon\space}%
+ \iffieldundef{volume}{}{\setunit{\addcomma\space}}%
+ %换成逗号和空格
+ \usebibmacro{issue}%
+ \usebibmacro{volume+number+eid}%把卷期放到年份后面
+ %\newunit
+ }
+
+
+
+%
+% 调整期刊卷和期的格式
+%
+\renewbibmacro*{volume+number+eid}{%源来自standard.bbx
+\iftoggle{bbx:gbfieldstd}{%
+ \printfield{volume}%
+ \setunit*{\adddot}%
+ \printfield{number}%
+ \setunit{\addcomma\space}%
+ \printfield{eid}}{%
+ \printfield{volume}%
+ %\setunit*{\adddot}%去掉点号
+ %\printfield{number}%
+ \iffieldundef{number}{}{\printtext{\mkbibparens{\printfield{number}}}}%增加一个圆括号
+ \iffieldundef{eid}{}{%
+ \setunit{\addcomma\space}%
+ \printfield{eid}}}}
+
+%
+% 调整期刊年份的格式
+%
+\renewbibmacro*{issue+date}{%去掉括号
+ \printtext{%去掉了[parens]
+ \iffieldundef{issue}
+ {%\usebibmacro{date}
+ \iffieldundef{note}{\usebibmacro{date}}%判断一下,是否是报纸
+ {\iffieldequalstr{note}{news}{\usebibmacro{newsdate}}%判断是否为报纸
+ {\usebibmacro{date}}%
+ }}%
+ {\iftoggle{bbx:gbstrict}{}{\printfield{issue}%
+ \setunit*{\addspace}}%
+ %\usebibmacro{date}
+ \iffieldundef{note}{\usebibmacro{date}}%判断一下,是否是报纸
+ {\iffieldequalstr{note}{news}{\usebibmacro{newsdate}}%判断是否为报纸
+ {\usebibmacro{date}}%
+ }}}%
+ %\newunit
+ }
+
+%
+% 调整页码前的标点和去掉期刊文章等页码后面的标点
+%
+\renewbibmacro*{note+pages}{%源来自standard.bbx
+ %\printfield{note}%不要note,note用来判断是否是报纸newspaper
+ \iffieldundef{pages}{}{
+ \setunit{\bibpagespunct}%
+ \printfield{pages}}%
+ %\newunit
+ }
+
+
+%
+% 编者的符号修改一下
+% v1.0 2016-07-01
+% v1.0q 2019-03-01 hzz 修改editortype前的标点
+%
+\renewbibmacro*{editor}{%源来自biblatex.DEF
+ \ifboolexpr{
+ test \ifuseeditor
+ and
+ not test {\ifnameundef{editor}}
+ }
+ {\printnames{editor}%
+ \iffieldundef{editortype}%增加一个类型判断,用于存在editortype的情况
+ {\setunit\addspace}%当没有editortype时,直接用句点
+ {%\setunit{\addcomma\space}%
+ \usebibmacro{editorstrg}}%
+ %\clearname{editor}
+ }%
+ {}}
+
+%
+% 编者类型做一修改
+% v1.0 2016-07-01
+% v1.0q 2019-03-01 hzz 修改editortype不同语言的不同本地化字符串
+%
+\renewbibmacro*{editorstrg}{%源来自biblatex.DEF
+ \printtext[editortype]{%
+ \iffieldundef{editortype}
+ {%
+% \ifboolexpr{ %这一段去掉,未定义编者类型情况下不处理
+% test {\ifnumgreater{\value{editor}}{1}}
+% or
+% test {\ifandothers{editor}}
+% }
+% {\bibstring{editors}}
+% {\bibstring{editor}}
+ }
+ {\ifbibxstring{\thefield{editortype}} %定义编者类型情况下处理,以后根据需要修改
+ {\ifboolexpr{
+ test {\ifnumgreater{\value{editor}}{1}}
+ or
+ test {\ifandothers{editor}}
+ }
+ {\printdelim{streditortypes}}
+ {\printdelim{streditortype}}}
+ {\thefield{editortype}}}%
+ }}
+
+%
+% 编者类型的本地化字符串输出
+% v1.0q 2019-03-01 hzz
+% 能对不同条目类型作格式设置的域格式,能对不同环境做格式设置的分隔符
+% 能对不同文境作设置的包括排序,标签等
+% 这里因为考虑可能标注和文献表中存在不同,所以用分隔符来输出本地化字符串
+%
+\DeclareDelimFormat{streditortypes}{%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbbiblocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{\thefield{editortype}scn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{\thefield{editortype}skr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{\thefield{editortype}sjp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
+ \or%
+ \bibstring{\thefield{editortype}scn}%
+ \or%
+ \addcomma\addthinspace\bibstring{\thefield{editortype}s}%
+ \fi}
+%
+\DeclareDelimFormat{streditortype}{%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbbiblocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{\thefield{editortype}cn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{\thefield{editortype}kr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{\thefield{editortype}jp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
+ \or%
+ \bibstring{\thefield{editortype}cn}%
+ \or%
+ \addcomma\addthinspace\bibstring{\thefield{editortype}}%
+ \fi}
+
+
+%
+% bookauthor域的输出,
+% v1.0q 2019-03-01 hzz
+% 不再对editor和bookauthor做sourcemap,而是下面的宏内逻辑代替,
+% 使得除使用bookauthor外也可以使用editor,便于在使用editor时使用editortype
+\renewbibmacro*{bybookauthor}{%
+ \ifnameundef{bookauthor}%
+ {\ifnameundef{editor}%
+ {}%
+ {\ifnamesequal{author}{editor}%
+ {}{\usebibmacro{editor}}}%
+ }%
+ {\ifnamesequal{author}{bookauthor}%
+ {}{\printnames{bookauthor}}%
+ }%
+}
+
+%
+% 修改期刊的标题
+%
+\renewbibmacro*{periodical}{%源来自biblatex.DEF
+ \iffieldundef{title}
+ {}
+ {\printtext[title]{\bibtitlefont%
+ \printfield[titlecase]{title}%
+ %\setunit{\subtitlepunct}%
+ \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
+ {}{\setunit{\subtitlepunct}
+ \printfield[titlecase]{subtitle}}%
+ %}%把编组结束移到后面去
+ \iftoggle{bbx:gbtype}{%
+ \iffieldundef{usera}{}{%在标题后直接给出文献标识字母
+ \printfield[gbtypeflag]{usera}}}{}
+ }}
+ }
+
+%
+% 期刊的标题做修改
+%
+\renewbibmacro*{title+issuetitle}{%源来自standard.BBX
+ \usebibmacro{periodical}%
+ %\setunit*{\addspace}%
+ \setunit*{\adddot\addspace}%标点修改为句点
+ \iffieldundef{series}
+ {}
+ {\newunit
+ \printfield{series}%
+ \setunit{\addspace}}%
+ \usebibmacro{periodical+issue}%将issue调整到上面来,并修改
+\iffieldundef{number}{}{%%进一步处理有范围的数字
+ \multinumberparser{\thefield{number}}}%
+ \iffieldundef{volume}%
+ {\printfield{year}%
+ \printtext{\mkbibparens{\multinumberfirst}}%
+ \bibrangedash%
+ \iffieldundef{endyear}{}{\printfield{endyear}\printtext{\mkbibparens{\multinumbersecond}}}%
+ }%
+ {\multivolparser{\thefield{volume}}%
+ \printfield{year}%
+ \setunit{\addcomma\space}%将冒号修改为逗号
+ \printtext{\multivolfirst}%
+ \printtext{\mkbibparens{\multinumberfirst}}%
+ \bibrangedash%
+ \iffieldundef{endyear}{}{%
+ \printfield{endyear}%
+ \setunit{\addcomma\space}%将冒号修改为逗号
+ \printtext{\multivolsecond}%
+ \printtext{\mkbibparens{\multinumbersecond}}}%
+ }%
+ \setunit{\addcomma\space}%
+ \printfield{eid}%
+ \setunit{\addspace}%
+ %\usebibmacro{issue+date}%
+ %\setunit{\addcolon\space}%
+ \usebibmacro{issue}%
+ \newunit}
+
+%
+% 新增一个样式用于调整期刊年份的格式,只打印年份
+%
+\newbibmacro*{periodical+issue}{%
+ \printtext{%去掉了[parens]
+ \iffieldundef{issue}
+ {%\usebibmacro{date}%修改为下一句
+ }%
+ {\printfield{issue}%
+ \setunit*{\addspace}%
+ %\usebibmacro{date}%修改为下一句
+ }%
+ }%
+ %\newunit
+}
+
+%
+% 重设专利title的输出,将文献类型标识符输出出去
+%
+\newbibmacro*{patenttitle}{%原输出来自biblatex.def文件
+ \ifboolexpr{%
+ test{\iffieldundef{title}}%
+ and%
+ test{\iffieldundef{subtitle}}%
+ }%
+ {}%
+ {\printtext[title]{\bibtitlefont%
+ \printfield[titlecase]{title}%
+ \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
+ {}{\setunit{\subtitlepunct}%
+ \printfield[titlecase]{subtitle}}%
+ \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
+ {\setunit{\subtitlepunct}\printfield{titleaddon}}%
+ \setunit{\subtitlepunct}\printfield{number}%写专利号
+ \iftoggle{bbx:gbtype}{\printfield[gbtypeflag]{usera}}{}%
+ %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
+ %\newunit
+ }%
+}%
+}
+
+
+
+%
+% 修改in:用于inbook、incollection、inproceedings等类型
+% 2018.04.20,v1.0k,renewed marco,by hzz
+% 20190212,v1.0q,增加中英文区分,by hzz
+%
+% 原理方法:使用bibmacro{in:}改变了以前在driver中直接输出//的方式,同时也简化了标点控制。
+\renewbibmacro*{in:}{%
+ \iftoggle{bbx:gbpunctin}{\printtext{\allowbreak\texttt{//}\allowbreak}}%\addthinspace
+ {\setunit{\adddot\addspace}%
+ \iffieldequalstr{userd}{chinese}%
+ {\printtext{\bibstring{incn}}}%
+ {\printtext{\bibstring{in}}}%
+ }}%\newunit\newblock\intitlepunct
+
+%
+% 修改type域的输出格式
+% 2019.02.12,v1.0q,byhzz
+% 使其可以区分中英文输出不同的格式,比如博士论文英文输出PHD thesis,中文则是博士学位论文
+\DeclareFieldFormat{type}%
+{\iffieldequalstr{userd}{chinese}%
+ {\ifbibxstring{#1cn}{\bibxstring{#1cn}}{#1}}%
+ {\ifbibstring{#1}{\bibstring{#1}}{#1}}%
+}
+
+%
+% 修改series域的输出格式
+% 2019.05.01,v1.0r,byhzz
+\renewbibmacro*{series+number}{%
+ \printfield{series}%
+ %\setunit*{\addspace}%
+ %\printfield{number}%
+ %\newunit
+ }
+
+%=====================================================================
+%设置驱动格式
+%=====================================================================
+%
+% book条目类的驱动
+%
+ \DeclareBibliographyDriver{book}{%源来自standard.bbx文件
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+\usebibmacro{author/editor+others/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+\usebibmacro{maintitle+title}%
+\iftoggle{bbx:gbstrict}{}{%
+\newunit
+\printlist{language}%
+\newunit\newblock%
+\usebibmacro{byauthor}%
+\newunit\newblock}%
+\usebibmacro{byeditor+others}%
+\newunit
+\printfield{edition}%
+\newunit\newblock%%
+\iftoggle{bbx:gbstrict}{}{%
+\iffieldundef{maintitle}%
+{\printfield{volume}%
+\printfield{part}}%
+{}%
+\newunit%
+\printfield{volumes}%
+\newunit\newblock%
+\usebibmacro{series+number}}%
+\newunit\newblock%
+%\printfield{note}%
+%\newunit\newblock%
+\usebibmacro{publisher+location+date}%
+%\newunit\newblock %这里标点去掉
+\usebibmacro{chapter+pages}%
+ \iffieldundef{url}{}{%当没有网址时也不输出
+ \usebibmacro{modifydate}}%带括号的修改或更新日期,
+\usebibmacro{doi+eprint+url}%从下面移动到上面来,因为gbt2015的url需直接放在页码后面。
+ \newunit\newblock%
+ \printfield{pagetotal}%
+ \newunit\newblock%
+ \iftoggle{bbx:isbn}
+ {\printfield{isbn}}
+ {}%
+ \newunit\newblock
+ %\usebibmacro{doi+eprint+url}%
+ %\newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+
+%
+% 期刊文章,连续出版物中的析出文献的格式
+%
+ \DeclareBibliographyDriver{article}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}%
+ \newunit\newblock
+ \usebibmacro{bytranslator+others}%
+ \newunit\newblock
+ \printfield{version}}%
+ \newunit\newblock
+ %\usebibmacro{in:}% 不使用in来表示期刊等连续出版物
+ \usebibmacro{journal+issuetitle}%
+ %\newunit
+% \usebibmacro{byeditor+others}%
+% \newunit
+ \usebibmacro{note+pages}%
+ \iffieldequalstr{note}{news}{}{%当是新闻时不输出修改或更新日期
+ \iffieldundef{url}{}{%当没有网址时也不输出
+ \iftoggle{bbx:url}{%当url选项为false时,也不输出
+ \usebibmacro{modifydate}}{}}}%带括号的修改或更新日期,
+ \usebibmacro{doi+eprint+url}%从后面移上来,调整url和页码之间的位置
+ \newunit\newblock
+ \iftoggle{bbx:isbn}
+ {\printfield{issn}}
+ {}%
+ \newunit\newblock
+ %\usebibmacro{doi+eprint+url}%
+ %\newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+
+
+%
+% 连续出版物的驱动
+%
+ \DeclareBibliographyDriver{periodical}{%源来自standard.BBX
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{editor}%
+ %\setunit{\labelnamepunct}\newblock
+ \newunit\newblock %删除上面一行,添加这一行
+ \usebibmacro{title+issuetitle}%
+ \newunit\newblock%
+ \usebibmacro{location+institution+date}%添加这一行用于输出地址,单位和时间
+ \newunit\newblock%添加这一行
+ \iftoggle{bbx:gbstrict}{}{%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byeditor}%
+ \newunit\newblock
+ \printfield{note}%
+ \newunit\newblock}
+ \iftoggle{bbx:isbn}
+ {\printfield{issn}}
+ {}%
+ \newunit\newblock
+ \usebibmacro{doi+eprint+url}%
+ \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+%
+% 专利文献驱动
+%
+ \DeclareBibliographyDriver{patent}{%源来自standard.BBX
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ %\usebibmacro{title}%
+ \usebibmacro{patenttitle}%给出专利专用的标题输出
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}}%
+ \newunit\newblock
+ \printfield{type}%
+ \setunit*{\addspace}%
+ %\printfield{number}%已放到patenttitle中处理
+ \iflistundef{location}
+ {}
+ {\setunit*{\addspace}%
+ \printtext{%[parens]
+ \printlist[][-\value{listtotal}]{location}}}%
+ \newunit\newblock
+ \usebibmacro{byholder}%
+ \newunit\newblock
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{newsdate}%
+ %\newunit\newblock
+ \usebibmacro{doi+eprint+url}%
+ \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+
+%
+% 在线文献驱动
+%
+\DeclareBibliographyDriver{online}{%源来自standard.BBX
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/editor+others/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}%
+ \newunit\newblock
+ \usebibmacro{byeditor+others}%
+ \newunit\newblock
+ \printfield{note}}%
+ \newunit
+ \printfield{version}%
+ \newunit\newblock
+ %\printlist{organization}%
+ \printlist{institution}%
+ \newunit\newblock
+\ifboolexpr{%
+test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
+}{\usebibmacro{date}}%
+{\usebibmacro{modifydate}}%修改或更新日期,为带括号的时间
+ \usebibmacro{url+urldate}%从下面移上来
+ \newunit\newblock
+ \iftoggle{bbx:eprint}
+ {\usebibmacro{eprint}}
+ {}%
+ \newunit\newblock
+ %\usebibmacro{url+urldate}%
+ %\newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+
+%
+% 报告类型驱动
+% 当有网址无出版项时,用online输出
+%
+\DeclareBibliographyDriver{report}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}}%
+ \newunit\newblock
+ \usebibmacro{byeditor+others}%增加的译者信息
+ \newunit\newblock
+ \printfield{type}%
+ \setunit*{\addspace}%
+ \printfield{number}%
+ \newunit\newblock
+ \printfield{version}%
+ \newunit
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{publisher+location+date}%
+ %\newunit\newblock
+ \usebibmacro{chapter+pages}%
+ \usebibmacro{doi+eprint+url}%
+ \newunit
+ \printfield{pagetotal}%
+ \newunit\newblock
+ \iftoggle{bbx:isbn}
+ {\printfield{isrn}}
+ {}%
+ \newunit\newblock
+% \usebibmacro{doi+eprint+url}%
+% \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+%
+% 论文、手册类型驱动
+% 2016-11-11,增加了译者信息
+%
+\DeclareBibliographyDriver{manual}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}}%
+ \newunit\newblock
+ \usebibmacro{byeditor+others}%增加的译者信息
+ \newunit\newblock
+ \iftoggle{bbx:gbfieldtype}{%
+ \printfield{type}%
+ \setunit*{\addspace}}{}%
+ \printfield{number}%
+ \newunit\newblock
+ \printfield{version}%
+ \newunit
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{institution+location+date}%
+ %\newunit\newblock
+ \usebibmacro{chapter+pages}%
+ \iffieldundef{url}{}{%当没有网址时也不输出修改或更新日期
+ \usebibmacro{modifydate}}%修改或更新日期为带括号的时间
+ \usebibmacro{doi+eprint+url}%
+ \newunit
+ \printfield{pagetotal}%
+ \newunit\newblock
+ \iftoggle{bbx:isbn}
+ {\printfield{isrn}}
+ {}%
+ \newunit\newblock
+% \usebibmacro{doi+eprint+url}%
+% \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+%
+% 备选类型驱动
+%
+% 利用biblatex的misc驱动
+\DeclareBibliographyDriver{misc}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/editor+others/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+\iftoggle{bbx:gbstrict}{}{%
+ \newunit
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}%
+ \newunit\newblock
+ \usebibmacro{byeditor+others}}%
+ \newunit\newblock
+ \printfield{howpublished}%
+ \newunit\newblock
+ \printfield{type}%
+ \newunit
+ \printfield{version}%
+ \newunit
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{institution+location+date}%
+ %\usebibmacro{organization+location+date}%
+ %\newunit\newblock
+ \usebibmacro{doi+eprint+url}%
+ \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+%
+% 增加inbook:parent用于辅助crossref传统功能的实现
+% 用在{crosscite}宏中
+% 20210216,v1.0w,hzz
+\newbibmacro*{inbook:parent}{%
+\usebibmacro{bybookauthor}%
+ \ifnameundef{bookauthor}{%
+ \ifnameundef{editor}{}{\newunit}%
+ }{\newunit}%替换下一句
+ %\newunit\newblock
+\iffieldundef{series}{}{\usebibmacro{series+number}\setunit{\addcolon\addspace}}%为处理一些存在series的情况而增加
+ \usebibmacro{maintitle+booktitle}%
+\iffieldundef{volume}{}{\setunit{\addcolon\addspace}\printfield{volume}}%
+\iffieldundef{number}{}{\setunit{\addcolon\addspace}\printfield{number}}%增加卷和册信息
+ \newunit\newblock%
+% \usebibmacro{byeditor+others}%
+% \newunit\newblock
+ \printfield{edition}%
+ \newunit
+ \iftoggle{bbx:gbstrict}{}{%
+% \iffieldundef{maintitle}
+% {\printfield{volume}%
+% \printfield{part}}
+% {}%
+% \newunit
+% \printfield{volumes}%
+% \newunit\newblock
+% \usebibmacro{series+number}
+ }%
+ \newunit\newblock
+ %\printfield{note}%
+ %\newunit\newblock
+ \usebibmacro{publisher+location+date}}
+
+%
+% 专著中的析出文献的格式修改
+%
+\DeclareBibliographyDriver{inbook}{%源来自standard.bbx
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+\usebibmacro{title}%
+\usebibmacro{in:}%
+%\printtext{\texttt{//}\addthinspace}%
+\usebibmacro{crosscite}{inbook:parent}%
+ %\newunit\newblock
+ \usebibmacro{chapter+pages}%
+ %\newunit\newblock
+ \usebibmacro{doi+eprint+url}%移到上面来
+ \newunit\newblock
+ \iftoggle{bbx:isbn}
+ {\printfield{isbn}}
+ {}%
+ \newunit\newblock
+% \usebibmacro{doi+eprint+url}%
+% \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.cbx
index 9a44c7462e..9ce600b2bf 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.cbx
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.cbx
@@ -1,376 +1,428 @@
-%%
-%% ---------------------------------------------------------------
-%% biblatex-gb7714-2015 --- A biblatex implementation of the
-%% GBT7714-2015 citation style,numerical sequence
-%% Maintained by huzhenzhen
-%% E-mail: hzzmail@163.com
-%% Released under the LaTeX Project Public License v1.3c or later
-%% ---------------------------------------------------------------
-%%
-\def\versionofgbtstyle{2021/01/19 v1.0w}
-\ProvidesFile{gb7714-2015.cbx}[\versionofgbtstyle biblatex citation style]
-
-%
-% 加载标准样式
-%
-\RequireCitationStyle{numeric-comp} %numeric
-
-
-%
-% 选项设置
-%
-\ExecuteBibliographyOptions{
- autocite = superscript ,
- autopunct = true ,
- %sorting = none ,
- maxcitenames=1,
- mincitenames=1,
-}
-
-%textcite标注命令中的标点设置
-%\DeclareDelimFormat[textcite]{andothersdelim}{\addspace}%
-
-%
-%将连续3篇文献压缩改为连续2篇文献压缩
-%
-%该宏的目的是抛弃压缩内部的编号,而仅输出最后一个编号,主要通过cbx@tempcnta来控制
-%一般情况下cbx@tempcnta为0,所以该宏不输出任何内容。当cbx@tempcnta在cite:comp:comp宏中更改变大后
-%说明开始进入需要压缩的范围,当到压缩终点时,cbx@tempcnta必然大于1,则输出内容。
-%修改第二行的数字1为0即可将默认的3个开始压缩变为2个开始压缩。
-\renewbibmacro*{cite:dump}{%
- \ifnumgreater{\value{cbx@tempcnta}}{0}%
- {\ifnumgreater{\value{cbx@tempcnta}}{0}%1改为0,可以将压缩起始3个编号改为2个编号
- {\bibrangedash}%
- {\multicitedelim}%
- \bibhyperref[\cbx@lastkey]{%
- \ifdef\cbx@lastprefix%
- {\printtext[labelprefix]{\cbx@lastprefix}}%
- {}%
- \printtext[labelnumber]{\cbx@lastnumber}}}%
- {}%
- \setcounter{cbx@tempcnta}{0}%
- \global\undef\cbx@lastprefix}
-
-%
-% 定义一个上标方括号wrapper
-%
-\newcommand*\mkbibsuperbracket[1]{%
- \mkbibsuperscript{\mkbibbrackets{#1}}%
-}
-
-% 修改postnote的输出格式
-\DeclareFieldFormat{postnote}{#1}
-
-%
-% 重定义cite命令
-%
-% 方法:\DeclareCiteCommand{\cite}[\mkbibparens]{precode}{loopcode}{sepcode}{postcode}
-% v1.0p版后将cite的处理方式修改为类似pagescite,而不再使用biblatex的标准方式
-\DeclareCiteCommand{\cite}[\mkbibsuperscript]%利用mkbibsuperbracket添加方括号
- {[\usebibmacro{cite:init}%
- \usebibmacro{prenote}}
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {\usebibmacro{cite:dump}]%
- \printfield{postnote}}
-% v1.0p 以前用的方式
-%\DeclareCiteCommand{\cite}[\mkbibsuperbracket]%利用mkbibsuperbracket添加方括号
-% {\usebibmacro{cite:init}%
-% \usebibmacro{prenote}}
-% {\usebibmacro{citeindex}%
-% \usebibmacro{cite:comp}}
-% {}
-% {\usebibmacro{cite:dump}%
-% \usebibmacro{postnote}}
-
-%
-% 定义upcite命令
-% 20180604,v1.0l,hzz
-% 20190409,v1.0r,hzz
-% 方法:对supercite增加[]
-\newrobustcmd*{\upcite}{%
- \cite}
-
-%
-% 重定义parencite命令,以满足标签带页码的国标要求
-%
-\DeclareCiteCommand{\parencite}%[\mkbibbrackets]
- {[\usebibmacro{cite:init}%]
- \usebibmacro{prenote}}%
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {%[
- \usebibmacro{cite:dump}]%
- \mkbibsuperscript{\printfield{postnote}}}
-
-%
-% 新定义pagescite命令,以满足标签带页码的国标要求
-%
-% 原理方法:
-% 1.新增页码输出宏
-\newbibmacro*{postpages}{%
- \iffieldundef{postnote}
- {\printfield[postnote]{pages}}
- {\printfield{postnote}}}
-% 2.新增\pagescite引用命令
-\DeclareCiteCommand{\pagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
- {[\usebibmacro{cite:init}%]直接添加方括号
- \usebibmacro{prenote}%
- }
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {\usebibmacro{cite:dump}]%
- \usebibmacro{postpages}}
-
-%
-% 定义yearpagescite,为与ay样式兼容,等同于\pagescite
-%
-\DeclareCiteCommand{\yearpagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
- {[\usebibmacro{cite:init}%]直接添加方括号
- \usebibmacro{prenote}%
- }
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {\usebibmacro{cite:dump}]%
- \usebibmacro{postpages}}
-
-%
-% 定义\yearcite命令,为与ay样式兼容,且提供不输出页码的标签格式,
-%
-% 原理方法:等同于\pagescite,但不要页码
-\DeclareCiteCommand{\yearcite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
- {[\usebibmacro{cite:init}%]直接添加方括号
- \usebibmacro{prenote}%
- }
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {\usebibmacro{cite:dump}]}
-
-%
-% 定义\authornumcite命令,输出作者信息,然后在后面带上顺序编码
-% 20180427,v1.0k,增加,hzz
-% gb7714样式新定义的命令都把cite放到最后,比如前面的pagescite,yearcite,这里的\authornumcite
-% 区别于biblatex定义的命令都把cite放到前面,比如citeauthor等。
-%见numeric.CBX
-\newbibmacro*{cite}{%
- \printtext[bibhyperref]{%
- \printfield{labelprefix}%
- \printfield{labelnumber}%
- \ifbool{bbx:subentry}
- {\printfield{entrysetcount}}
- {}}}
-%见numeric.CBX,\DeclareCiteCommand{\cite},
-\DeclareCiteCommand{\authornumcite}%[\mkbibsuperscript]
- {\usebibmacro{prenote}}
- {\iffieldequalstr{userf}{cn}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace
- {\renewcommand*{\andothersdelim}{\addspace}}%
- \printnames{labelname}\mkbibsuperscript{\mkbibbrackets{\usebibmacro{citeindex}%
- \usebibmacro{cite}}}}
- {\multicitedelim}
- {\mkbibsuperscript{\printfield{postnote}}}
-
-
-%
-% 增加如下多个命令
-% 20190409,v1.0r,hzz
-% 方法:利用newcommand或newrobustcmd命令进行定义
-% 注意\citet和\citep命令之所以不用newrobustcmd,是为避免加载natbib模块后产生冲突
-%\DeclareCiteCommand{\citet}%
-% {\usebibmacro{prenote}}
-% {\iffieldequalstr{userf}{cn}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace
-% {\renewcommand*{\andothersdelim}{\addspace}}%
-% \printnames{labelname}\mkbibsuperscript{\mkbibbrackets{\usebibmacro{citeindex}%
-% \usebibmacro{cite}}}}
-% {\multicitedelim}
-% {\mkbibsuperscript{\printfield{postnote}}}
-
-%
-% 重定义citet,因为前面与\authornumcite同定义的命令无法正确处理多个bibtexkey同时给出的压缩情况
-% 20200721,v1.0v,hzz
-% 方法:利用textcite命令进行定义
-% 基本利用textcite命令来写citet,仅利用bool{cbx:incitet}做判断,进而处理不同的上标和页码形式
-\newbool{cbx:incitet}
-\global\booltrue{cbx:incitet}
-
-\newbibmacro*{citet}{%
- \iffieldequals{namehash}{\cbx@lasthash}%
- {\usebibmacro{cite:comp}}%
- {\usebibmacro{cite:dump}%
- \ifbool{cbx:parens}%
- {\mkbibsuperscript{\printtext{\bibclosebracket}}\global\boolfalse{cbx:parens}}%
- {}%
- \iffirstcitekey
- {}
- {\textcitedelim}%
- \usebibmacro{cite:init}%
- \ifnameundef{labelname}
- {\printfield[citetitle]{labeltitle}}
- {\printnames{labelname}}%
- \setunit*{\printdelim{namelabeldelim}}%
- \mkbibsuperscript{\printtext{\bibopenbracket}\global\booltrue{cbx:parens}%
- \ifnumequal{\value{citecount}}{1}
- {\usebibmacro{prenote}}%
- {}%
- \usebibmacro{cite:comp}%
- \stepcounter{textcitecount}%
- \savefield{namehash}{\cbx@lasthash}}}}
-
-\DeclareCiteCommand{\cbx@textcite}%
- {\usebibmacro{cite:init}}%
- {\usebibmacro{citeindex}%
- \ifbool{cbx:incitet}{\usebibmacro{citet}}{\usebibmacro{textcite}}%
- }%
- {}%
- {\ifbool{cbx:incitet}{\mkbibsuperscript{\usebibmacro{cite:dump}\usebibmacro{postnote}}}%
- {\usebibmacro{cite:dump}\usebibmacro{postnote}}%
- \ifbool{cbx:parens}%
- {\ifbool{cbx:incitet}{\mkbibsuperscript{\bibclosebracket}}{\bibclosebracket}%
- \global\boolfalse{cbx:parens}}%
- {}}
-
- \newrobustcmd{\cbx@citet@init}[2]{%
- \global\booltrue{cbx:incitet}%
- \setcounter{textcitetotal}{0}%
- \setcounter{textcitecount}{0}%
- \def\cbx@savedcites{#1}#2\cbx@savedcites\empty}
-
- \renewrobustcmd{\cbx@textcite@init}[2]{%
- \global\boolfalse{cbx:incitet}%
- \setcounter{textcitetotal}{0}%
- \setcounter{textcitecount}{0}%
- \def\cbx@savedcites{#1}#2\cbx@savedcites\empty}
-
-\DeclareCiteCommand{\citet}[\cbx@citet@init\cbx@textcite]
- {\gdef\cbx@savedkeys{}%
- \citetrackerfalse%
- \pagetrackerfalse%
- \DeferNextCitekeyHook%
- \usebibmacro{cite:init}}
- {\ifthenelse{\iffirstcitekey\AND\value{multicitetotal}>0}
- {\protected@xappto\cbx@savedcites{()(\thefield{multipostnote})}%
- \global\clearfield{multipostnote}}
- {}%
- \xappto\cbx@savedkeys{\thefield{entrykey},}%
- \iffieldequals{namehash}{\cbx@lasthash}
- {}
- {\stepcounter{textcitetotal}%
- \savefield{namehash}{\cbx@lasthash}}}
- {}
- {\protected@xappto\cbx@savedcites{%
- [\thefield{prenote}][\thefield{postnote}]{\cbx@savedkeys}}}
-
-
-
-\DeclareCiteCommand{\citep}[\mkbibsuperscript]%利用mkbibsuperbracket添加方括号
- {[\usebibmacro{cite:init}%
- \usebibmacro{prenote}}
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {\usebibmacro{cite:dump}]%
- \printfield{postnote}}
-
-\newrobustcmd*{\citetns}%
- {\textcite}
-
-\newrobustcmd*{\citepns}%
- {\parencite}
-
-\newrobustcmd*{\inlinecite}%
- {\parencite}
-
-%
-% 增加如下复数的命令,以符合biblatex的复数命令习惯
-% 20190430,v1.0r,hzz
-% citec和citecs命令是实现了[1]-[3]这样的压缩形式。
-% authornumcites是常用命令authornumcite的复数形式
-\DeclareFieldFormat{labelbracket}{\mkbibbrackets{#1}}
-
-\newbibmacro*{citec:comp:comp}{%
- \ifboolexpr{
- ( test {\iffieldundef{labelprefix}} and test {\ifundef\cbx@lastprefix} )
- or
- test {\iffieldequals{labelprefix}{\cbx@lastprefix}}
- }
- {\ifnumequal{\thefield{labelnumber}}{\value{cbx@tempcntb}}
- {\savefield{entrykey}{\cbx@lastkey}%
- \savefield{labelnumber}{\cbx@lastnumber}%
- \addtocounter{cbx@tempcnta}{1}}
- {\ifnumequal{\thefield{labelnumber}}{\value{cbx@tempcntb}-1}
- {}
- {\usebibmacro{citec:dump}%
- \ifnumgreater{\value{cbx@tempcntb}}{-1}
- {\multicitedelim}
- {}%
- \printtext[bibhyperref]{%
- \printfield{labelprefix}%
- \printtext[labelbracket]{\printfield{labelnumber}}}}}}
- {\usebibmacro{cite:comp:end}}%
- \setcounter{cbx@tempcntb}{\thefield{labelnumber}}%
- \savefield{labelprefix}{\cbx@lastprefix}}
-
-\newbibmacro*{citec:comp}{%
- \addtocounter{cbx@tempcntb}{1}%
- \iffieldundef{shorthand}
- {\ifbool{bbx:subentry}
- {\iffieldundef{entrysetcount}
- {\usebibmacro{citec:comp:comp}}
- {\usebibmacro{cite:comp:inset}}}
- {\usebibmacro{citec:comp:comp}}}
- {\usebibmacro{cite:comp:shand}}}
-
-\newbibmacro*{citec:dump}{%
- \ifnumgreater{\value{cbx@tempcnta}}{0}
- {\ifnumgreater{\value{cbx@tempcnta}}{1}
- {\bibrangedash}
- {\multicitedelim}%
- \bibhyperref[\cbx@lastkey]{%
- \ifdef\cbx@lastprefix
- {\printtext[labelprefix]{\cbx@lastprefix}}
- {}%
- \printtext[labelbracket]{\cbx@lastnumber}}}%labelnumber
- {}%
- \setcounter{cbx@tempcnta}{0}%
- \global\undef\cbx@lastprefix}
-
-%\DeclareCiteCommand{\citec}[\mkbibsuperscript]%[\mkbibbrackets]
-% {\usebibmacro{cite:init}%
-% \usebibmacro{prenote}}
-% {\usebibmacro{citeindex}%
-% \usebibmacro{citec:comp}}
-% {}
-% {\usebibmacro{citec:dump}%
-% \usebibmacro{postnote}}
-
-%上面这个用于非压缩情况,这里考虑了压缩的情况
-\DeclareCiteCommand{\citec}[\mkbibsuperscript]%
- {\ifnumless{\value{multicitecount}}{2}
- {\usebibmacro{cite:init}%
- \usebibmacro{prenote}}
- {\iffieldundef{prenote}
- {\iffieldundef{postnote}
- {}
- {\usebibmacro{citec:dump}%
- \usebibmacro{cite:init}%
- \setunit{\multicitedelim}}}
- {\usebibmacro{citec:dump}%
- \usebibmacro{cite:init}%
- \setunit{\multicitedelim}%
- \usebibmacro{prenote}}}}
- {\usebibmacro{citeindex}%
- \usebibmacro{citec:comp}}
- {}
- {\ifboolexpr{ test {\ifnumequal{\value{multicitecount}}{\value{multicitetotal}}}
- or not test {\iffieldundef{postnote}}}
- {\usebibmacro{citec:dump}%
- \usebibmacro{postnote}}
- {}}
-
-\DeclareMultiCiteCommand{\citecs}[\mkbibsuperscript]{\citec}{}
-
-\DeclareMultiCiteCommand{\authornumcites}[]{\authornumcite}{\multicitedelim}
+%%
+%% ---------------------------------------------------------------
+%% biblatex-gb7714-2015 --- A biblatex implementation of the
+%% GBT7714-2015 citation style,numerical sequence
+%% Maintained by huzhenzhen
+%% E-mail: hzzmail@163.com
+%% Released under the LaTeX Project Public License v1.3c or later
+%% ---------------------------------------------------------------
+%%
+\def\versionofgbtstyle{2021/04/03 v1.0x}
+\ProvidesFile{gb7714-2015.cbx}[\versionofgbtstyle biblatex citation style]
+
+%
+% 加载标准样式
+%
+\RequireCitationStyle{numeric-comp} %numeric
+
+%
+% 增加一个控制是否将标准标签中的作者加上超链接的选项
+% 20210121,v1.0w,hzz
+\newtoggle{bbx:gblabelref}
+\DeclareBibliographyOption{gblabelref}[false]{%biblatex低版本
+ \settoggle{bbx:gblabelref}{#1}}
+\ExecuteBibliographyOptions{gblabelref}
+
+
+%
+% 选项设置
+%
+\ExecuteBibliographyOptions{
+ autocite = superscript ,
+ autopunct = true ,
+ %sorting = none ,
+ maxcitenames=1,
+ mincitenames=1,
+}
+
+%
+% 修订使可用选项gblabelref来控制是否将标准标签中的作者加上超链接
+% 20210121,v1.0w,hzz
+\iftoggle{iftlatest}%
+{\renewbibmacro*{textcite}{%
+ \iffieldequals{namehash}{\cbx@lasthash}
+ {\usebibmacro{cite:comp}}
+ {\usebibmacro{cite:dump}%
+ \ifbool{cbx:parens}
+ {\printtext{\bibclosebracket}\global\boolfalse{cbx:parens}}
+ {}%
+ \iffirstcitekey
+ {}
+ {\setunit{\textcitedelim}}%
+ \usebibmacro{cite:init}%
+ \ifnameundef{labelname}
+ {\printfield[citetitle]{labeltitle}}
+ {\iftoggle{bbx:gblabelref}{\printtext[bibhyperref]{\printnames{labelname}}}{\printnames{labelname}}}%
+ \setunit*{\printdelim{namelabeldelim}}%
+ \printtext{\bibopenbracket}\global\booltrue{cbx:parens}%
+ \ifnumequal{\value{citecount}}{1}
+ {\usebibmacro{prenote}}
+ {}%
+ \usebibmacro{cite:comp}%
+ \stepcounter{textcitecount}%
+ \savefield{namehash}{\cbx@lasthash}}}%
+ }
+
+
+%textcite标注命令中的标点设置
+%\DeclareDelimFormat[textcite]{andothersdelim}{\addspace}%
+
+%
+%将连续3篇文献压缩改为连续2篇文献压缩
+%
+%该宏的目的是抛弃压缩内部的编号,而仅输出最后一个编号,主要通过cbx@tempcnta来控制
+%一般情况下cbx@tempcnta为0,所以该宏不输出任何内容。当cbx@tempcnta在cite:comp:comp宏中更改变大后
+%说明开始进入需要压缩的范围,当到压缩终点时,cbx@tempcnta必然大于1,则输出内容。
+%修改第二行的数字1为0即可将默认的3个开始压缩变为2个开始压缩。
+\renewbibmacro*{cite:dump}{%
+ \ifnumgreater{\value{cbx@tempcnta}}{0}%
+ {\ifnumgreater{\value{cbx@tempcnta}}{0}%1改为0,可以将压缩起始3个编号改为2个编号
+ {\bibrangedash}%
+ {\multicitedelim}%
+ \bibhyperref[\cbx@lastkey]{%
+ \ifdef\cbx@lastprefix%
+ {\printtext[labelprefix]{\cbx@lastprefix}}%
+ {}%
+ \printtext[labelnumber]{\cbx@lastnumber}}}%
+ {}%
+ \setcounter{cbx@tempcnta}{0}%
+ \global\undef\cbx@lastprefix}
+
+%
+% 定义一个上标方括号wrapper
+%
+\newcommand*\mkbibsuperbracket[1]{%
+ \mkbibsuperscript{\mkbibbrackets{#1}}%
+}
+
+% 修改postnote的输出格式
+\DeclareFieldFormat{postnote}{#1}
+
+
+%修改\mkbibsuperscript宏在最后加上一个空白使得xeCJK不会自动在引用标签后面加上中英文之间的空白
+%hzz,v1.0w,2021-0401
+\renewrobustcmd{\mkbibsuperscript}[1]{%
+ \unspace\allowhyphens\textsuperscript{%
+ \begingroup
+ \protected\long\def\mkbibsuperscript##1{%
+ \blx@warning{Nested superscript}%
+ \mkbibbrackets{##1}}%
+ #1\endgroup}\kern\z@}
+
+%
+% 重定义cite命令
+%
+% 方法:\DeclareCiteCommand{\cite}[\mkbibparens]{precode}{loopcode}{sepcode}{postcode}
+% v1.0p版后将cite的处理方式修改为类似pagescite,而不再使用biblatex的标准方式
+\DeclareCiteCommand{\cite}[\mkbibsuperscript]%利用mkbibsuperbracket添加方括号 \textsuperscript
+ {[\usebibmacro{cite:init}%]
+ \usebibmacro{prenote}}
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {%[
+ \usebibmacro{cite:dump}]%
+ \printfield{postnote}}%\kern\p@ \kern\z@
+
+%\renewcommand{\cite}[1]{\textsuperscript{[\supercite{#1}]}\kern\z@}
+% v1.0p 以前用的方式
+%\DeclareCiteCommand{\cite}[\mkbibsuperbracket]%利用mkbibsuperbracket添加方括号
+% {\usebibmacro{cite:init}%
+% \usebibmacro{prenote}}
+% {\usebibmacro{citeindex}%
+% \usebibmacro{cite:comp}}
+% {}
+% {\usebibmacro{cite:dump}%
+% \usebibmacro{postnote}}
+
+%
+% 定义upcite命令
+% 20180604,v1.0l,hzz
+% 20190409,v1.0r,hzz
+% 方法:对supercite增加[]
+\newrobustcmd*{\upcite}{%
+ \cite}
+
+%
+% 重定义parencite命令,以满足标签带页码的国标要求
+%
+\DeclareCiteCommand{\parencite}%[\mkbibbrackets]
+ {[\usebibmacro{cite:init}%]
+ \usebibmacro{prenote}}%
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {%[
+ \usebibmacro{cite:dump}]%
+ \mkbibsuperscript{\printfield{postnote}}}
+
+%
+% 新定义pagescite命令,以满足标签带页码的国标要求
+%
+% 原理方法:
+% 1.新增页码输出宏
+\newbibmacro*{postpages}{%
+ \iffieldundef{postnote}
+ {\printfield[postnote]{pages}}
+ {\printfield{postnote}}}
+% 2.新增\pagescite引用命令
+\DeclareCiteCommand{\pagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
+ {[\usebibmacro{cite:init}%]直接添加方括号
+ \usebibmacro{prenote}%
+ }
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}]%
+ \usebibmacro{postpages}}
+
+%
+% 定义yearpagescite,为与ay样式兼容,等同于\pagescite
+%
+\DeclareCiteCommand{\yearpagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
+ {[\usebibmacro{cite:init}%]直接添加方括号
+ \usebibmacro{prenote}%
+ }
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}]%
+ \usebibmacro{postpages}}
+
+%
+% 定义\yearcite命令,为与ay样式兼容,且提供不输出页码的标签格式,
+%
+% 原理方法:等同于\pagescite,但不要页码
+\DeclareCiteCommand{\yearcite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
+ {[\usebibmacro{cite:init}%]直接添加方括号
+ \usebibmacro{prenote}%
+ }
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}]}
+
+%
+% 定义\authornumcite命令,输出作者信息,然后在后面带上顺序编码
+% 20180427,v1.0k,增加,hzz
+% gb7714样式新定义的命令都把cite放到最后,比如前面的pagescite,yearcite,这里的\authornumcite
+% 区别于biblatex定义的命令都把cite放到前面,比如citeauthor等。见numeric.CBX
+% 20200121,v1.0w,增加超链接,hzz
+\newbibmacro*{citeathn}{%
+ \printtext[bibhyperref]{%
+ \printfield{labelprefix}%
+ \printfield{labelnumber}%
+ \ifbool{bbx:subentry}
+ {\printfield{entrysetcount}}
+ {}}}
+%见numeric.CBX,\DeclareCiteCommand{\cite},
+\DeclareCiteCommand{\authornumcite}%[\mkbibsuperscript]
+ {\usebibmacro{prenote}}
+ {\iffieldequalstr{userf}{cn}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace
+ {\renewcommand*{\andothersdelim}{\addspace}}%
+ \iftoggle{bbx:gblabelref}{\printtext[bibhyperref]{\printnames{labelname}}}{\printnames{labelname}}%
+ \mkbibsuperscript{\mkbibbrackets{\usebibmacro{citeindex}%
+ \usebibmacro{citeathn}}}}
+ {\multicitedelim}
+ {\mkbibsuperscript{\printfield{postnote}}}
+
+
+%
+% 增加如下多个命令
+% 20190409,v1.0r,hzz
+% 方法:利用newcommand或newrobustcmd命令进行定义
+% 注意\citet和\citep命令之所以不用newrobustcmd,是为避免加载natbib模块后产生冲突
+%\DeclareCiteCommand{\citet}%
+% {\usebibmacro{prenote}}
+% {\iffieldequalstr{userf}{cn}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace
+% {\renewcommand*{\andothersdelim}{\addspace}}%
+% \printnames{labelname}\mkbibsuperscript{\mkbibbrackets{\usebibmacro{citeindex}%
+% \usebibmacro{citeathn}}}}
+% {\multicitedelim}
+% {\mkbibsuperscript{\printfield{postnote}}}
+
+%
+% 重定义citet,因为前面与\authornumcite同定义的命令无法正确处理多个bibtexkey同时给出的压缩情况
+% 20200721,v1.0v,hzz
+% 方法:利用textcite命令进行定义
+% 基本利用textcite命令来写citet,仅利用bool{cbx:incitet}做判断,进而处理不同的上标和页码形式
+\newbool{cbx:incitet}
+\global\booltrue{cbx:incitet}
+
+\newbibmacro*{citet}{%
+ \iffieldequals{namehash}{\cbx@lasthash}%
+ {\usebibmacro{cite:comp}}%
+ {\usebibmacro{cite:dump}%
+ \ifbool{cbx:parens}%
+ {\mkbibsuperscript{\printtext{\bibclosebracket}}\global\boolfalse{cbx:parens}}%
+ {}%
+ \iffirstcitekey
+ {}
+ {\textcitedelim}%
+ \usebibmacro{cite:init}%
+ \ifnameundef{labelname}
+ {\printfield[citetitle]{labeltitle}}
+ {\printnames{labelname}}%
+ \setunit*{\printdelim{namelabeldelim}}%
+ \mkbibsuperscript{\printtext{\bibopenbracket}\global\booltrue{cbx:parens}%
+ \ifnumequal{\value{citecount}}{1}
+ {\usebibmacro{prenote}}%
+ {}%
+ \usebibmacro{cite:comp}%
+ \stepcounter{textcitecount}%
+ \savefield{namehash}{\cbx@lasthash}}}}
+
+\DeclareCiteCommand{\cbx@textcite}%
+ {\usebibmacro{cite:init}}%
+ {\usebibmacro{citeindex}%
+ \ifbool{cbx:incitet}{\usebibmacro{citet}}{\usebibmacro{textcite}}%
+ }%
+ {}%
+ {\ifbool{cbx:incitet}{\mkbibsuperscript{\usebibmacro{cite:dump}\usebibmacro{postnote}}}%
+ {\usebibmacro{cite:dump}\usebibmacro{postnote}}%
+ \ifbool{cbx:parens}%
+ {\ifbool{cbx:incitet}{\mkbibsuperscript{\bibclosebracket}}{\bibclosebracket}%
+ \global\boolfalse{cbx:parens}}%
+ {}}
+
+ \newrobustcmd{\cbx@citet@init}[2]{%
+ \global\booltrue{cbx:incitet}%
+ \setcounter{textcitetotal}{0}%
+ \setcounter{textcitecount}{0}%
+ \def\cbx@savedcites{#1}#2\cbx@savedcites\empty}
+
+ \renewrobustcmd{\cbx@textcite@init}[2]{%
+ \global\boolfalse{cbx:incitet}%
+ \setcounter{textcitetotal}{0}%
+ \setcounter{textcitecount}{0}%
+ \def\cbx@savedcites{#1}#2\cbx@savedcites\empty}
+
+\DeclareCiteCommand{\citet}[\cbx@citet@init\cbx@textcite]
+ {\gdef\cbx@savedkeys{}%
+ \citetrackerfalse%
+ \pagetrackerfalse%
+ \DeferNextCitekeyHook%
+ \usebibmacro{cite:init}}
+ {\ifthenelse{\iffirstcitekey\AND\value{multicitetotal}>0}
+ {\protected@xappto\cbx@savedcites{()(\thefield{multipostnote})}%
+ \global\clearfield{multipostnote}}
+ {}%
+ \xappto\cbx@savedkeys{\thefield{entrykey},}%
+ \iffieldequals{namehash}{\cbx@lasthash}
+ {}
+ {\stepcounter{textcitetotal}%
+ \savefield{namehash}{\cbx@lasthash}}}
+ {}
+ {\protected@xappto\cbx@savedcites{%
+ [\thefield{prenote}][\thefield{postnote}]{\cbx@savedkeys}}}
+
+
+
+\DeclareCiteCommand{\citep}[\mkbibsuperscript]%利用mkbibsuperbracket添加方括号
+ {[\usebibmacro{cite:init}%
+ \usebibmacro{prenote}}
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}]%
+ \printfield{postnote}}
+
+\newrobustcmd*{\citetns}%
+ {\textcite}
+
+\newrobustcmd*{\citepns}%
+ {\parencite}
+
+\newrobustcmd*{\inlinecite}%
+ {\parencite}
+
+%
+% 增加如下复数的命令,以符合biblatex的复数命令习惯
+% 20190430,v1.0r,hzz
+% citec和citecs命令是实现了[1]-[3]这样的压缩形式。
+% authornumcites是常用命令authornumcite的复数形式
+\DeclareFieldFormat{labelbracket}{\mkbibbrackets{#1}}
+
+\newbibmacro*{citec:comp:comp}{%
+ \ifboolexpr{
+ ( test {\iffieldundef{labelprefix}} and test {\ifundef\cbx@lastprefix} )
+ or
+ test {\iffieldequals{labelprefix}{\cbx@lastprefix}}%
+ }
+ {\ifnumequal{\thefield{labelnumber}}{\value{cbx@tempcntb}}
+ {\savefield{entrykey}{\cbx@lastkey}%
+ \savefield{labelnumber}{\cbx@lastnumber}%
+ \addtocounter{cbx@tempcnta}{1}}
+ {\ifnumequal{\thefield{labelnumber}}{\value{cbx@tempcntb}-1}
+ {}
+ {\usebibmacro{citec:dump}%
+ \ifnumgreater{\value{cbx@tempcntb}}{-1}
+ {\multicitedelim}
+ {}%
+ \printtext[bibhyperref]{%
+ \printfield{labelprefix}%
+ \printtext[labelbracket]{\printfield{labelnumber}}}}}}
+ {\usebibmacro{cite:comp:end}}%
+ \setcounter{cbx@tempcntb}{\thefield{labelnumber}}%
+ \savefield{labelprefix}{\cbx@lastprefix}}
+
+\newbibmacro*{citec:comp}{%
+ \addtocounter{cbx@tempcntb}{1}%
+ \iffieldundef{shorthand}
+ {\ifbool{bbx:subentry}
+ {\iffieldundef{entrysetcount}
+ {\usebibmacro{citec:comp:comp}}
+ {\usebibmacro{cite:comp:inset}}}
+ {\usebibmacro{citec:comp:comp}}}
+ {\usebibmacro{cite:comp:shand}}}
+
+\newbibmacro*{citec:dump}{%
+ \ifnumgreater{\value{cbx@tempcnta}}{0}
+ {\ifnumgreater{\value{cbx@tempcnta}}{1}
+ {\bibrangedash}
+ {\multicitedelim}%
+ \bibhyperref[\cbx@lastkey]{%
+ \ifdef\cbx@lastprefix
+ {\printtext[labelprefix]{\cbx@lastprefix}}
+ {}%
+ \printtext[labelbracket]{\cbx@lastnumber}}}%labelnumber
+ {}%
+ \setcounter{cbx@tempcnta}{0}%
+ \global\undef\cbx@lastprefix}
+
+%\DeclareCiteCommand{\citec}[\mkbibsuperscript]%[\mkbibbrackets]
+% {\usebibmacro{cite:init}%
+% \usebibmacro{prenote}}
+% {\usebibmacro{citeindex}%
+% \usebibmacro{citec:comp}}
+% {}
+% {\usebibmacro{citec:dump}%
+% \usebibmacro{postnote}}
+
+%上面这个用于非压缩情况,这里考虑了压缩的情况
+\DeclareCiteCommand{\citec}[\mkbibsuperscript]%
+ {\ifnumless{\value{multicitecount}}{2}
+ {\usebibmacro{cite:init}%
+ \usebibmacro{prenote}}
+ {\iffieldundef{prenote}
+ {\iffieldundef{postnote}
+ {}
+ {\usebibmacro{citec:dump}%
+ \usebibmacro{cite:init}%
+ \setunit{\multicitedelim}}}
+ {\usebibmacro{citec:dump}%
+ \usebibmacro{cite:init}%
+ \setunit{\multicitedelim}%
+ \usebibmacro{prenote}}}}
+ {\usebibmacro{citeindex}%
+ \usebibmacro{citec:comp}}
+ {}
+ {\ifboolexpr{ test {\ifnumequal{\value{multicitecount}}{\value{multicitetotal}}}
+ or not test {\iffieldundef{postnote}}}
+ {\usebibmacro{citec:dump}%
+ \usebibmacro{postnote}}
+ {}}
+
+\DeclareMultiCiteCommand{\citecs}[\mkbibsuperscript]{\citec}{}
+
+\DeclareMultiCiteCommand{\authornumcites}[]{\authornumcite}{\multicitedelim}
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.bbx
index aca301fc9c..098e4b9462 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.bbx
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.bbx
@@ -1,3845 +1,3962 @@
-%%
-%% ---------------------------------------------------------------
-%% biblatex-gb7714-2015 --- A biblatex implementation of the
-%% GBT7714-2015 bibliography style,author year sequence
-%% Maintained by huzhenzhen
-%% E-mail: hzzmail@163.com
-%% Released under the LaTeX Project Public License v1.3c or later
-%% ---------------------------------------------------------------
-%%
-%
-% 版本和时间信息
-%
-\def\versionofgbtstyle{2021/01/19 v1.0w}
-\def\versionofbiblatex{\abx@version}
-\ProvidesFile{gb7714-2015ay.bbx}[\versionofgbtstyle biblatex bibliography style]
-%\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求
-
-%=====================================================================
-%加载标准样式
-%=====================================================================
-\RequireBibliographyStyle{authoryear}
-\RequirePackage{xstring}%解决texlive2015的biblatex3.0不加载xstring包的问题
-
-
-%=====================================================================
-% 功能函数
-%=====================================================================
- %
- % biblatex版本判断
- % 20180405,v1.0k,为兼容biblatexv3.11增加toggle:iftlnine,HU zhenzhen
- % 20181020,v1.0n,为不再使用xstring宏包做的修改,hzz
- %
- % 原理方法:当版本继续更新时,增加一个新的toggle用以处理新的旧版,最新版和未判断出来的版本永远用iftlatest
- \providetoggle{iftlfive}\togglefalse{iftlfive} %处理biblatex3.2之前版本,时间2016-03-01前
- \providetoggle{iftlsix}\togglefalse{iftlsix} %处理biblatex3.3开始改变姓名机制后版本,时间2016-03-01及以后
- \providetoggle{iftlseven}\togglefalse{iftlseven}%处理biblatex3.7的兼容性,时间2016-12-01后
- \providetoggle{iftleight}\togglefalse{iftleight}%处理biblatex3.8到3.9的兼容性,时间2017-11-01后到2017-12-01前
- \providetoggle{iftlnine}\togglefalse{iftlnine} %处理biblatex10的兼容性,时间2017-12-01后
- \providetoggle{iftlatest}\toggletrue{iftlatest} %假设是最新版biblatex
- \@ifpackagelater{biblatex}{2014/04/01}{
- \@ifpackagelater{biblatex}{2016/03/01}{
- \@ifpackagelater{biblatex}{2016/12/01}{
- \@ifpackagelater{biblatex}{2017/11/01}{
- \@ifpackagelater{biblatex}{2017/12/01}{
- \@ifpackagelater{biblatex}{2018/02/19}{}
- {\toggletrue{iftlnine}\togglefalse{iftlatest}}}
- {\toggletrue{iftleight}\togglefalse{iftlatest}}}
- {\toggletrue{iftlseven}\togglefalse{iftlatest}}}
- {\toggletrue{iftlsix}\togglefalse{iftlatest}}}
- {\toggletrue{iftlfive}\togglefalse{iftlatest}}}
- {\PackageError{biblatex}{Outdated 'biblatex' package}
- {Please update biblatex, This is a fatal error.}}
-
- \newcommand\defversion[2]{\csdef{codeversion#1#2}}%定义不同版本的命令
- \newcommand\switchversion[2]{\csuse{codeversion#1#2}}%使用不同版本的命令
-
- %
- % 判断CJK字符的函数,用于判断作者等信息是否由中文字符构成
- % v1.0k,20180509,hzz
- %
- % 原理方法:用biber中的perl方法代替。因为利用tex函数对字符判断时,当字符在宏
- % 中时,基于`的方法无法解决GBK编码的问题,基于CJKsymbol的方法无法解决utf-8
- % 编码用xelatex编译的问题。
- %
- % 原理是:利用perl正则将中文标识记录到域中,
- % 然后利用\iffieldundef和\iffieldequalstr进行判断
- \providetoggle{ifCJKforgbt}
- \def\testCJKfirst#1{%
- \iffieldundef{#1}{\togglefalse{ifCJKforgbt}}{%
- \iffieldequalstr{#1}{chinese}{\toggletrue{ifCJKforgbt}}{\togglefalse{ifCJKforgbt}}}}
-
- %
- % 2个卷的解析函数,用于连续出版物
- %
- % 原理方法: 范围起止间隔符号还是用-,而不是与date相同的/,因为有合期期刊的问题,需要用到/符号
- \newcommand{\multivolparser}[1]{%
- \IfSubStr{#1}{-}%
- {\StrBefore{#1}{-}[\multivolfirst]\StrBehind{#1}{-}[\multivolsecond]}%
- {\def\multivolfirst{#1}\def\multivolsecond{}}%
- }
-
- %
- % 2个期的解析函数,用于连续出版物
- %
- \newcommand{\multinumberparser}[1]{%
- \IfSubStr{#1}{-}%
- {\StrBefore{#1}{-}[\multinumberfirst]\StrBehind{#1}{-}[\multinumbersecond]}%
- {\def\multinumberfirst{#1}\def\multinumbersecond{}}%
- }
-
- % 对没有分隔符环境命令的低版本biblatex做增补,避免报错
- %
- \iftoggle{iftlfive}{
-
- \def\blx@inf@delimdeclare#1#2{%
- \blx@info{Delimiter '#1' in context '#2' already defined, overwriting}}
-
- \def\blx@warn@delimuse#1#2{%
- \blx@warning{Delimiter '#1' in context '#2' undefined}}
- % Delimiter interface
-
- % [<contextname, ...>]{<name, ...>}{<code>}
- \newrobustcmd*{\DeclareDelimFormat}{%
- \@ifstar
- {\blx@declaredelimclear}
- {\blx@declaredelim}}
-
- \newrobustcmd*{\blx@declaredelimclear}[3][]{%
- \ifcsvoid{blx@declaredelimcontexts@#2}
- {}
- {\def\do##1{\csundef{blx@printdelim@##1@#2}}%
- \dolistcsloop{blx@declaredelimcontexts@#2}}%
- \cslet{blx@declaredelimcontexts@#2}\@empty
- \ifblank{#1}
- {\blx@declaredelim{#2}{#3}}
- {\blx@declaredelim[#1]{#2}{#3}}}
-
- \newrobustcmd*{\blx@declaredelim}[3][]{%
- \ifblank{#1}
- {\blx@declaredelim@i{}{}{#2}{#3}}
- {\def\do##1{%
- \listcsadd{blx@declaredelimcontexts@#2}{##1}%
- \blx@declaredelim@i{blx@printdelim@##1@}{##1}{#2}{#3}}%
- \docsvlist{#1}}}%
-
- \def\blx@declaredelim@i#1#2#3#4{%
- \def\do@i##1{%
- \ifcsdef{#1##1}
- {\blx@inf@delimdeclare{##1}{#2}}
- {}%
- \csdef{#1##1}{#4}}%
- \forcsvlist{\do@i}{#3}}
-
- % *[<contextname, ...>]{<alias>}{<delim>}
- \newrobustcmd*{\DeclareDelimAlias}{%
- \@ifstar
- {\blx@declaredelimalias}
- {\blx@declaredelimaliasauto}}
-
- \newrobustcmd*{\blx@declaredelimalias}[3][]{%
- \ifblank{#1}
- {\blx@declaredelimalias@i{}{#2}{#3}}
- {\def\do##1{%
- \blx@declaredelimalias@i{blx@printdelim@##1@}{#2}{#3}}%
- \docsvlist{#1}}}
-
- \newrobustcmd*{\blx@declaredelimaliasauto}[2]{%
- \blx@declaredelimalias@i{}{#1}{#2}%
- \ifcsvoid{blx@declaredelimcontexts@#2}
- {}
- {\def\do##1{%
- \blx@declaredelimalias@i{blx@printdelim@##1@}{#1}{#2}}%
- \dolistcsloop{blx@declaredelimcontexts@#2}}}
-
- \def\blx@declaredelimalias@i#1#2#3{%
- \ifcsdef{#1#2}
- {\blx@inf@delimdeclare{#2}{#1}}
- {}%
- \csdef{#1#2}{\csuse{#1#3}}}
-
- \def\blx@delimcontext{none}
- \newcommand*{\printdelim}[2][]{%
- \ifblank{#1}
- {\ifcsdef{blx@printdelim@\blx@delimcontext @#2}
- {\csuse{blx@printdelim@\blx@delimcontext @#2}}
- {\ifcsdef{#2}% fall back on legacy macros
- {\csuse{#2}}
- {\blx@warn@delimuse{#2}{*}}}}
- {\ifcsdef{blx@printdelim@#1@#2}
- {\csuse{blx@printdelim@#1@#2}}
- {\blx@warn@delimuse{#2}{#1}}}}
-
- \newcommand*{\delimcontext}[1]{%
- \edef\blx@delimcontext{\blx@delimcontextalias{#1}}}
-
- \def\blx@delimcontextalias#1{%
- \ifcsdef{blx@delimcontextalias@#1}
- {\csuse{blx@delimcontextalias@#1}}
- {#1}}
-
- \newcommand*{\DeclareDelimcontextAlias}[2]{%
- \csgdef{blx@delimcontextalias@#1}{#2}}
- }{}
-
-
-%=====================================================================
-% 数据模型定义
-%=====================================================================
- %定义类型和载体标识,从gb内容看载体基本属于介质。
- %为与lee zeping的bst的样式统一,使用mark和medium这两域名
- %为单个条目的姓名格式控制增加nameformat和namefmtid两个域
- %为缩略信息文献表增加了shortbooktitle域
- %为多语言排序增加了lansortorder域
- \DeclareDatamodelFields[type=field,datatype=literal]{mark,medium,nameformat}
- \DeclareDatamodelFields[type=field,datatype=integer]{namefmtid}
- \DeclareDatamodelFields[type=field,datatype=literal]{shortbooktitle}
- \DeclareDatamodelFields[type=field,datatype=literal]{lansortorder}
-
- %因为biblatex更新3.14版本以后,biber对于为声明数据模型的条目类型
- %不再默认读取,而是以空字符串作为条目类型名,自然在条目定义alias时
- %就会出现问题,因此显式的声明一下newspaper,然后保留后面采用alias的方式
- %而standard类型则是采用另一种方式直接在sourcemap中转换为其它类型。
- \@ifpackagelater{biblatex}{2019/11/30}{%2019/12/01 v3.14
- \DeclareDatamodelEntrytypes{newspaper}%
- }{}
-
-%=====================================================================
-% 设置宏包选项
-%=====================================================================
- %
- % 增加一个控制是否输出文献载体的选项
- % 20191125,v1,0s,hzz
- \newtoggle{bbx:gbmedium}
- \DeclareBibliographyOption{gbmedium}[true]{%biblatex低版本
- \settoggle{bbx:gbmedium}{#1}}
- \ExecuteBibliographyOptions{gbmedium}
-
- %
- % 增加一个控制是否输出annotation域的选项,该域可以用于在文献条目后面输出一些注释信息
- % 20190509,v1,0s,hzz
- \newtoggle{bbx:gbannote}
- \DeclareBibliographyOption{gbannote}[false]{%biblatex低版本
- \settoggle{bbx:gbannote}{#1}}
- \ExecuteBibliographyOptions{gbannote}
- %
- %用于在文献条目后面输出注释信息的宏
- %FieldFormat{annotation}用于设置注释信息的格式
- \DeclareFieldFormat{annotation}{%
- \printtext{\addspace(#1)}%
- }
- \renewbibmacro*{annotation}{%
- \iftoggle{bbx:gbannote}%
- {\iffieldundef{annotation}%
- {\printfile[annotation]{\bibannotationprefix\thefield{entrykey}.tex}}%
- {\printfield{annotation}}}%
- {}%
- }
-
-
- %
- % 增加一个控制是否输出type域的选项
- % 20190212,v1,0q,hzz
- \newtoggle{bbx:gbfieldtype}
- \DeclareBibliographyOption{gbfieldtype}[false]{%biblatex低版本
- \settoggle{bbx:gbfieldtype}{#1}}
- \ExecuteBibliographyOptions{gbfieldtype}
-
- %
- % 增加一个控制是否根据页码重设脚注数字标号的选项
- % 20190422,v1,0r,hzz
- \newtoggle{bbx:gbfnperpage}
- \DeclareBibliographyOption{gbfnperpage}[false]{%
- \settoggle{bbx:gbfnperpage}{#1}}
- \ExecuteBibliographyOptions{gbfnperpage}
-
- %
- % 增加一个选项,用于控制是否实现GB/T 7714-2015标准的脚注文献表
- % 20190203,v1.0p,hzz
- % 原理方法:默认做patch,文献引用带圈上标数字表示,脚注中的文献用带圈非上标数字做标签
- % 当前面的脚注中已经存在当前文献,那么当前文献内容不再输出而用同(4)这样的方式
- % 需要注意的是由于小页环境和表格中的脚注本身的问题,可能会有一些问题
- \DeclareBibliographyOption{gbfootbib}[false]{%
- \ifstrequal{#1}{false}{}{\execgbfootbib}}
- \ExecuteBibliographyOptions{gbfootbib}
-
- %%
- \newlength{\footbibmargin}
- \newlength{\footbiblabelsep}
- \setlength{\footbibmargin}{1em}%脚注的段落左侧缩进距离
- \setlength{\footbiblabelsep}{0.5em}%脚注中标记号与脚注段落的间距
- \def\execgbfootbib%
- {%
- %开启引用跟踪计数器,为使用\ifciteseen等测试命令
- \ExecuteBibliographyOptions{citetracker=true}
- %
- %利用footmisc宏包来实现脚注文献的悬挂对齐
- \AtEndPreamble{
- \@ifclassloaded{beamer}{}{
- %beamer类因为其特殊性,为避免冲突不调footmisc。
- %同时footmisc与hyperref宏包也不兼容,所以使用footmisc时会破坏脚注的超链接
- %如果要实现超链接可以将下句注释掉,这里留着主要是实现悬挂对齐。
- %\PassOptionsToPackage{perpage,hang}{footmisc}%
- %\RequirePackage{footmisc}%
-
- %重新实现脚注的根据单页重设脚注号码
- %重新实现脚注的悬挂对齐问题,不再使用footmisc,直接从latex核心代码和hyperref代码进行修改
- %v1.0q 20190317 hzz
- %v1.0r 20190422 hzz 根据gbfnperpage选项设置
- \iftoggle{bbx:gbfnperpage}%
- {\@addtoreset{footnote}{page}}{}%重设计数器
-
-\@ifpackageloaded{hyperref}{%加载hyperref则对\H@@footnotetext做重定义
- \long\def\H@@footnotetext##1{\insert\footins{%
- \reset@font\footnotesize
- \interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep
- \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark
- }%
- \color@begingroup
- \leftskip \footbibmargin%增加的左侧缩进
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox%
- }%
- \color@endgroup}}%
- \long\def\H@@mpfootnotetext##1{%
- \global\setbox\@mpfootins\vbox{%
- \unvbox\@mpfootins
- \reset@font\footnotesize
- \hsize\columnwidth
- \@parboxrestore
- \protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}%
- \leftskip \footbibmargin%增加的左侧缩进
- \color@begingroup
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox}%
- \color@endgroup}}
- }{%否则对latex核心代码中的\@footnotetext做重定义
- \long\def\@footnotetext##1{\insert\footins{%
- \reset@font\footnotesize
- \interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep
- \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark
- }%
- \color@begingroup
- \leftskip \footbibmargin%增加的左侧缩进
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox%
- }%
- \color@endgroup}}%
-
- \long\def\@mpfootnotetext##1{%
- \global\setbox\@mpfootins\vbox{%
- \unvbox\@mpfootins
- \reset@font\footnotesize
- \hsize\columnwidth
- \@parboxrestore
- \protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}%
- \leftskip \footbibmargin%增加的左侧缩进
- \color@begingroup
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox}%
- \color@endgroup}}
- }
-
- \long\def\@makefntext##1{%增加了脚注标记与正文的间隔
- \parindent 1em\noindent \hb@xt@ 0em{\hss \@makefnmark\makebox[\footbiblabelsep]{}}##1}
-
- }
-
- %
- %使脚注标记加圈并设置数字的字体为tiny,不使用修改thefootnote的方式
- \def\@makefnmark{\hbox{\@textsuperscript{\textcircled{\tiny\@thefnmark}}}}
- %做patch使得脚注内容中的脚注数字标签不上标
- \pretocmd{\@makefntext}{%
- \def\@makefnmark{%
- \hbox{\textcircled{\tiny\@thefnmark}}%
- }%
- }{}{}
- }
-
- %
- %判断当前文献是否已经引用过且是做的footfullcite(即已经作为脚注输出文献内容)
- %记录首次输出时的脚注号码,用于后面再次引用该文献时的输出,比如同(4)。
- %v1.0q 20190309 区分使脚注标注适应minipage中的情况
- \newbibmacro*{citesavefn}{%
- \ifciteseen%当被引用过为true
- {\ifcsdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}%当已经定义过脚注序号信息
- {\csgdef{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
- \str@sameentry\gdef\@thefnmark{\csuse{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}}%
- \@makefnmark%
- }}%
- {\csxdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
- \ifcsstring{@mpfn}{mpfootnote}{\@alph\c@mpfootnote}{\thefootnote}%
- }}%
- }%
- {\csxdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
- \ifcsstring{@mpfn}{mpfootnote}{\@alph\c@mpfootnote}{\thefootnote}%
- %判断在minipage中比较麻烦,这里使用\@mpfn的定义进行判断
- }}%
- }
-
- %
- %重定义\footfullcite使完成gb7714-2015的脚注文献要求
- \DeclareCiteCommand{\footfullcite}[\mkbibfootnote]%
- {\defcounter{maxnames}{\blx@maxbibnames}%局部定义maxnames和minnames计数器
- \defcounter{minnames}{\blx@minbibnames}%使footfullcite内的作者输出与正文文献表中的一致。
- \usebibmacro{prenote}%
- \renewbibmacro*{postnote}{%
- \iffieldundef{postnote}%
- {}{\setunit{\addcolon\addspace}\printtext{\thefield{postnote}}}}%由于ay样式中没有修改postnote域,此处因为格式需要不使用默认域格式
- }%
- {\usebibmacro{citesavefn}%
- \ifcsdef{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}%
- {\csuse{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}\nopunct}%
- {\usedriver{\DeclareNameAlias{sortname}{default}}{\thefield{entrytype}}}%
- }%
- {\multicitedelim}%
- {\usebibmacro{postnote}}
-
- }
-
- %
- % 增加一个选项,用于控制gb7714的使用范围,即英文文献和中文文献使用不同的样式
- % 20180814,v1.0m,hzz
- % 原理方法:
- % 只为兼容性考虑不做任何处理
- \DeclareBibliographyOption{gbstyle}[true]{%biblatex低版本
- }
-
- %
- % 增加一个控制是否输出文献类型和载体标识的选项
- %
- % 原理方法:
- % 对于biblatex3.4以上版本DeclareBibliographyOption命令中的[datatype]如果是boolean,那么是可以省略的
- % 所以用老版本的不用[datatype]的命令可以兼容所有biblatex版本
- \newtoggle{bbx:gbtype}
- %\DeclareBibliographyOption[boolean]{gbtype}[true]{%biblatex高版本
- \DeclareBibliographyOption{gbtype}[true]{%biblatex低版本
- \settoggle{bbx:gbtype}{#1}}
- \ExecuteBibliographyOptions{gbtype}
-
- %
- % 增加一个源文件编码选择选项,当true时可以使用GBK编码。
- % v1.0k, 2018.05.08, by hzz
- %
- % 原理方法:将需要输出的中文字符串用命令形式表示存储,采用utf8编码时采用bbx文档
- % 内的定义即是utf8编码的中文字符串,但tex源文件是gbk编码时,利用gb7714-2015-gbk.def
- % 文档内的gbk编码的字符串覆盖。这种覆盖只能在宏包末尾加载时成功实现,所以使用
- % AtEndOfPackage。该解决思路源自biblatex-caspervector宏包。
- % 另外注意:
- % gbk编码的tex文档,利用pdflatex/latex能正确编译,利用xelatex能编译,但中文显示乱码
- % 在源文档前面增加 XeTeX 原语:\XeTeXinputencoding "GBK" 后,显示正常
- % utf-8编码的tex文档,利用xelatex能正确编译,而pdflatex/latex不能编译。
- \newtoggle{bbx:codegbk}
- \DeclareBibliographyOption{gbcodegbk}[false]{%
- \settoggle{bbx:codegbk}{#1}}
- \ExecuteBibliographyOptions{gbcodegbk}
-
- \def\str@bibliography{参考文献}
- \def\str@references{参考文献}
- \def\str@bytranslator{译}
- \def\str@andotherscn{等}
- \def\str@andcn{和}
- \def\str@backrefpage{引用页}
- \def\str@backrefpages{引用页}
- \def\str@noaddress{出版地不详}
- \def\str@nopublisher{出版者不详}
- \def\str@edition{版}
- \def\str@volumecn{卷}
- \def\str@numbercn{册}
- \def\str@serialcn{第}
- \def\str@sameentry{同}
- \def\str@incn{见}
- \def\str@mathesiscn{硕士学位论文}
- \def\str@phdthesiscn{博士学位论文}
- \def\str@editorcn{主编}
-
- \AtEndOfPackage{%
- \iftoggle{bbx:codegbk}{%
- \ExecuteBibliographyOptions{texencoding = GBK}
- \input{gb7714-2015-gbk.def}
- }{}}
-
- %
- % 增加一个严格按GB/T 7714-2015给出著录格式控制域的输出的选项
- % v1.0k, 2018.05.08, by hzz
- %
- % 原理方法:
- % 默认设置该选项为真,进而不输出GB/T 7714-2015中没有的域的信息
- % 这样可以避免因为bib文件带有多余的域的信息的输出,比如因为bibtex样式
- % 可能需要用于中英文判断的language域的信息。
- \newtoggle{bbx:gbstrict}
- \DeclareBibliographyOption{gbstrict}[true]{%
- \settoggle{bbx:gbstrict}{#1}}
- \ExecuteBibliographyOptions{gbstrict}
-
- %
- % 增加一个控制标题域超链接设置的选项
- % v1.0k, 2018.05.24, by hzz
- %
- % 原理方法:
- % 利用标题域格式来实现,默认设置该选项为false,不做超链接。
- % 设置为true,则标题设置超链接
- \newtoggle{bbx:titlelink}
- \DeclareBibliographyOption{gbtitlelink}[false]{%
- \settoggle{bbx:titlelink}{#1}}
- \ExecuteBibliographyOptions{gbtitlelink}
-
- %
- % 增加一个控制参考文献标题是否能够被ctex宏包设置的选项
- % v1.0l, 2018.07.02, by hzz
- %
- % 原理方法:
- % 重定义biblatex的宏,去除使用本地化字符串的方式,是的可以利用ctexset进行设置
- \newtoggle{bbx:ctexset}
- \DeclareBibliographyOption{gbctexset}[true]{%
- \settoggle{bbx:ctexset}{#1}}
- \ExecuteBibliographyOptions{gbctexset}
-
- \AtEndOfPackage{%
- \iftoggle{bbx:ctexset}{%
- \def\blx@defbibstrings#1#2{%
- \def\do##1{\csundef{abx@lstr@##1}\csundef{abx@sstr@##1}}%
- \abx@dostrings
- \csuse{abx@strings@#1}%
- \setkeys{blx@lbx}{#2}%
- \let\do\blx@defbibstrings@i
- \csxdef{abx@strings@#1}{\abx@dostrings}%
- }
- }{}}
-
- %
- %增加一个处理佚名或noauthor的控制选项
- \DeclareBibliographyOption{gbnoauthor}[true]{%
- \ifstrequal{#1}{false}{}{\dealnoathor}}
- %\ExecuteBibliographyOptions{gbnoauthor=true}%对于需要展开较早(展开层级优先)的选项,这一执行无效,只能用宏包加载时给出的选项。
-
-
- %
- % 增加一个恢复域格式为标准样式的控制选项
- % v1.0k, 2018.05.15, by hzz
- %
- % 原理方法:
- % 默认设置该选项为false,采用国标要求的域格式输出相关域
- % 当设置该选项为true时,则重新利用标准样式的域格式输出相关的域
- \newtoggle{bbx:gbfieldstd}
- \DeclareBibliographyOption{gbfieldstd}[false]{%
- \settoggle{bbx:gbfieldstd}{#1}%
- \ifstrequal{#1}{false}{}{\execgbfdfmtstd}%
- }
- \ExecuteBibliographyOptions{gbfieldstd}
-
- %
- % 增加一个出版项自动处理控制选项,当true时使用出版者不详等信息补充缺失的出版信息。
- %
- \newtoggle{bbx:gbpub}
- \DeclareBibliographyOption{gbpub}[true]{%
- %\settoggle{bbx:gbpub}{#1} %或采用下面这一句
- \ifstrequal{#1}{false}{\togglefalse{bbx:gbpub}}{\toggletrue{bbx:gbpub}}}
- \ExecuteBibliographyOptions{gbpub}
-
- %
- % 增加控制析出文献来源前的标点符号//输出的选项
- % v1.0k, 2018.04.20,added in by hzz
- \newtoggle{bbx:gbpunctin}
- \DeclareBibliographyOption{gbpunctin}[true]{%
- \settoggle{bbx:gbpunctin}{#1}}
- \ExecuteBibliographyOptions{gbpunctin}
-
-
- % 选项设置
- %
- \ExecuteBibliographyOptions{
- useprefix = true, %名字的信息包括前缀
- date = year, %日期仅写到年
- maxbibnames=3, %将文献列表和引用中最大名字数量区分开
- minbibnames=3,
- maxitems = 1,%设置列表最大数量
- minitems = 1, %设置缩减后的列表最小数量
- isbn=false,
- sorting=gb7714-2015,
- sortlocale=zh__pinyin,%zh__big5han,%zh__stroke,%zh__gb2312han,%zh__pinyin,
- }
-
- %
- %为日期相关选项增加选项值gb7714-2015
- %
- \csdef{mkdaterangegb7714-2015}#1{%
- \begingroup
- \blx@metadateinfo{#1}%
- \iffieldundef{#1year}
- {}
- {\printtext[#1date]{%
- \blx@gbdate{#1}{}}}%
- \endgroup}
-
- \newrobustcmd*{\blx@gbdate}[3][]{%
- \dateeraprintpre{#2#3year}%
- \blx@imc@forcezerosy{\thefield{#2#3year}}\ifblank{#1}{}{\printfield{#1}}%
- \iffieldundef{#2#3month}{}{\hyphen\blx@imc@forcezerosmdt{\thefield{#2#3month}}}%
- \iffieldundef{#2#3day}{}{\hyphen\blx@imc@forcezerosmdt{\thefield{#2#3day}}}}
-
- %为姓名格式选择增加的计数器
- \newcounter{gbnamefmtcase}
- \def\thegbnamefmtcase{\the\c@gbnamefmtcase}
- %为引用标签标注/文献表中本地化字符串中英文选择增加的计数器/命令
- \newcounter{gbcitelocalcase}
- \newcounter{gbbiblocalcase}
- \def\thegbcitelocalcase{\the\c@gbcitelocalcase}
- \def\thegbbiblocalcase{\the\c@gbbiblocalcase}
-
-
-\@ifpackagelater{biblatex}{2016/03/27}
- { % 针对biblatex>=3.3版本的选项设置
-
- % 增加不同语言排序的切换选项
- % gblanorder=chineseahead的顺序为cn,jp,kr,en,fr,ru
- % gblanorder=englishahead的顺序为en,fr,ru,cn,jp,kr
- % gblanorder=cn;en;ru;fr;jp;kr的顺序为指定的cn;en;ru;fr;jp;kr,自定义内容可以随意写以分号分隔
- % v1.0q,20190307,hzz
- %
- \DeclareBibliographyOption[string]{gblanorder}[chineseahead]{%
- \ifstrequal{#1}{chineseahead}%%中文在前的顺序
- {\gdef\lancnorder{1}\gdef\lanjporder{2}\gdef\lankrorder{3}%
- \gdef\lanenorder{4}\gdef\lanfrorder{5}\gdef\lanruorder{6}}%
- {%
- \ifstrequal{#1}{englishahead}%
- {\execlanodeah\dealsortlan}%
- {\execlanodudf{#1}\dealsortlan}%
- }%
- }
- \ExecuteBibliographyOptions{gblanorder}
-
- \def\execlanodeah{%中文在后的顺序
- \gdef\lancnorder{4}
- \gdef\lanjporder{5}
- \gdef\lankrorder{6}
- \gdef\lanenorder{1}
- \gdef\lanfrorder{2}
- \gdef\lanruorder{3}}
-
- \newcounter{lanordernum}
- \newcommand{\execlanodudf}[1]{%like:cn;en;ru;fr;jp;kr
- \setcounter{lanordernum}{0}
- \DeclareListParser{\parsinglanorder}{;}
- \renewcommand*{\do}[1]{\stepcounter{lanordernum}\csxdef{lan##1order}{\thelanordernum}}
- \parsinglanorder{#1}
- }
-
- % 增加本地化字符串的中英文切换选项
- % gbcitelocal指标注中的本地化字符串
- % gbbiblocal 指文献表中的本地化字符串
- % gblocal 指设置文献表和标注中的本地化字符串
- % v1.0o,20190103,hzz
- %
- \DeclareBibliographyOption[string]{gbcitelocal}[gb7714-2015]{%
- \ifstrequal{#1}{gb7714-2015}{\setcounter{gbcitelocalcase}{0}}{}%
- \ifstrequal{#1}{chinese}{\setcounter{gbcitelocalcase}{1}}{}%
- \ifstrequal{#1}{english}{\setcounter{gbcitelocalcase}{2}}{}%
- }
- \ExecuteBibliographyOptions{gbcitelocal}
-
- \DeclareBibliographyOption[string]{gbbiblocal}[gb7714-2015]{%
- \ifstrequal{#1}{gb7714-2015}{\setcounter{gbbiblocalcase}{0}}{}%
- \ifstrequal{#1}{chinese}{\setcounter{gbbiblocalcase}{1}}{}%
- \ifstrequal{#1}{english}{\setcounter{gbbiblocalcase}{2}}{}%
- }
- \ExecuteBibliographyOptions{gbbiblocal}
-
- \DeclareBibliographyOption[string]{gblocal}[gb7714-2015]{%
- \ExecuteBibliographyOptions{gbbiblocal=#1}%
- \ExecuteBibliographyOptions{gbcitelocal=#1}%
- }
- %\ExecuteBibliographyOptions{gblocal} %默认值已经通过两个相关选项设置
-
-
- %
- % 增加序号标签格式处理选项,作者年制不做处理,给出只为兼容选项考虑
- % v1.0l,20180623,hzz
- %
- \DeclareBibliographyOption[string]{gbbiblabel}[bracket]{}
-
- %
- % 增加姓名大小写格式处理选项
- %
- \DeclareBibliographyOption[string]{gbnamefmt}[uppercase]{%
- \ifstrequal{#1}{uppercase}{\setcounter{gbnamefmtcase}{0}}{}%
- \ifstrequal{#1}{lowercase}{\setcounter{gbnamefmtcase}{1}}{}%
- \ifstrequal{#1}{givenahead}{\setcounter{gbnamefmtcase}{2}}{}%given-family
- \ifstrequal{#1}{familyahead}{\setcounter{gbnamefmtcase}{3}}{}%family-given
- \ifstrequal{#1}{pinyin}{\setcounter{gbnamefmtcase}{4}}{}%
- \ifstrequal{#1}{reverseorder}{\setcounter{gbnamefmtcase}{5}}{}%family-given/given-family
- }
- \ExecuteBibliographyOptions{gbnamefmt}
-
- %
- % 增加标签对齐选项
- %
- %因为在作者年制中,不需要使用,这里也增加,为了与顺序编码制的兼容性考虑。
- \DeclareBibliographyOption[string]{gbalign}[right]{}%
-
-
-
-
- }
- {
- % 增加不同语言排序的切换选项
- % biblatex 3.4及以下版本不能使用多个stylesourcemap,所以不使用该选项
- % 这里给出仅为兼容性考虑
- % v1.0q,20190307,hzz
- %
- \DeclareBibliographyOption[string]{gblanorder}[chineseahead]{}
-
- %
- % 增加序号标签格式处理选项,作者年制不做处理,给出只为兼容选项考虑
- % v1.0l,20180623,hzz
- %
- \DeclareBibliographyOption{gbbiblabel}[bracket]{}
-
- %
- % 增加姓名大小写格式处理选项
- %
- \DeclareBibliographyOption{gbnamefmt}[uppercase]{%
- \ifstrequal{#1}{uppercase}{\setcounter{gbnamefmtcase}{0}}{}%
- \ifstrequal{#1}{lowercase}{\setcounter{gbnamefmtcase}{1}}{}%
- \ifstrequal{#1}{givenahead}{\setcounter{gbnamefmtcase}{2}}{}%given-family
- \ifstrequal{#1}{familyahead}{\setcounter{gbnamefmtcase}{3}}{}
- \ifstrequal{#1}{pinyin}{\setcounter{gbnamefmtcase}{4}}{}%family-given
- \ifstrequal{#1}{reverseorder}{\setcounter{gbnamefmtcase}{5}}{}%family-given/given-family
- }
- \ExecuteBibliographyOptions{gbnamefmt}
-
- %
- % 增加标签对齐选项
- %
- %因为在作者年制中,不需要使用,这里也增加,为了与顺序年制的兼容性考虑。
- \DeclareBibliographyOption{gbalign}[right]{}%
-
- }
-
-
-%
-% 针对biblatex<3.3版本的选项设置,比如texlive2015中的3.0版
-%
-\defversion{3.0}{opt}{
- \ExecuteBibliographyOptions{
- firstinits = true, %名字有缩写,参考3.1.2.3 Internal
- }
-}
-%
-% 针对3.3<=biblatex<3.5版本的选项设置,比如texlive2016中的3.4版
-%
-\defversion{3.4}{opt}{
- \ExecuteBibliographyOptions{
- giveninits = true,
- }
-}
-%
-% 针对3.7<=biblatex<=3.9版本的选项设置,比如texlive2017中的3.7版
-%
-\defversion{3.7}{opt}{
- \ExecuteBibliographyOptions{
- giveninits = true,
- urldate =edtf,
- eventdate =edtf,
- }
-}
-%
-% 针对3.10<=biblatex版本的选项设置,比如texlive2018中的3.11版
-%
-\defversion{3.10}{opt}{
- \ExecuteBibliographyOptions{
- giveninits = true,
- urldate =gb7714-2015,%iso
- eventdate =gb7714-2015,%iso
- }
-}
-
-%
-% 针对3.13<=biblatex版本的选项设置,因为内容有限,所以不再增加版本区分,而用时间直接判断
-%
-% 解决国标中“王临慧, 2010a.”和“王临慧, 等, 2010b.”的问题
-% 在没有这个选项之前无法加上a和b
-% v1.0s,20190828
-\@ifpackagelater{biblatex}{2019/08/16}{%
- \ExecuteBibliographyOptions{%
- nohashothers=true}}{}
-
-%
-% 根据biblatex版本信息,选择选项设置
-%
-% 原理方法:如下这种选择机制能自动兼容更新的版本,但对于老版本
-% 必须要把情况列全。
-\iftoggle{iftlfive}{\switchversion{3.0}{opt}}{}%biblatex<=3.2
-\iftoggle{iftlsix}{\switchversion{3.4}{opt}}{}%3.3<=biblatex<=3.6
-\iftoggle{iftlseven}{\switchversion{3.7}{opt}}{}%biblatex=3.7
-\iftoggle{iftleight}{\switchversion{3.7}{opt}}{}%3.8<=biblatex<=3.9
-\iftoggle{iftlnine}{\switchversion{3.10}{opt}}{}%biblatex=3.10
-\iftoggle{iftlatest}{\switchversion{3.10}{opt}}{}%biblatex最新3.11
-
-
-%=====================================================================
-%设置本地化字符串
-%=====================================================================
- %
- % 新建当地化字符串,用来记录“等”字符、“和”字符
- %
- \NewBibliographyString{andotherscn}
- \NewBibliographyString{andothersincitecn}
- \NewBibliographyString{andothersincite}
- \NewBibliographyString{andcn}
- \NewBibliographyString{andothersjp}
- \NewBibliographyString{andotherskr}
- \NewBibliographyString{andjp}
- \NewBibliographyString{andkr}
- \NewBibliographyString{andincitecn}
- \NewBibliographyString{andincite}
- \NewBibliographyString{volumecn}
- \NewBibliographyString{numbercn}
- \NewBibliographyString{serialcn}
- \NewBibliographyString{incn}
- \NewBibliographyString{mathesiscn}
- \NewBibliographyString{phdthesiscn}
- \NewBibliographyString{editorcn}
- \NewBibliographyString{editorscn}
-
- %
- % 修改一些当地化字符串
- %
- % 原理方法:直接利用当地化格式english修改出一些中文的格式,具体修改内容参考english.lbx文件
- % 当然也可以增加比如上面定义的andotherscn
- % 注意:在lbx文件和bbx文件中定义本地字符串的不同语法,两个参数和一个参数的区别
- \DefineBibliographyStrings{english}{
- bibliography = {\str@bibliography},
- references = {\str@references},
- bytranslator= {\str@bytranslator\adddot}, %将trans. by 改成 译
- and = {\addcomma},%将第2和3人名见的and符号改成 逗号,用\finalnamedelim命令也可以定义,参见3.9.1节
- andcn = {\addcomma},%\str@andcn\ and本地化字符串的中文对应词
- andincitecn = {\str@andcn},%将标注中的分开,便于与文献表中的区分
- andincite = {\addcomma},
- %andothers = {et al.}, %将超过3个人名的省略,et al.改成为 等
- andotherscn = {\str@andotherscn},%将超过3个人名的省略,et al.改成为 等
- andothersincitecn={\str@andotherscn},%将标注中的分开,便于与文献表中的区分
- andothersincite={et al\adddot},
- backrefpage = {\str@backrefpage:},
- backrefpages = {\str@backrefpages:},
- in={in\intitlepunct},
- volumecn={\str@volumecn},
- numbercn={\str@numbercn},
- serialcn={\str@serialcn},
- andothersjp={他},
- andotherskr={외},
- andjp={和},
- andkr={和},
- incn={\str@incn\addcolon\addspace},
- mathesiscn={\str@mathesiscn},
- phdthesiscn={\str@phdthesiscn},
- editorscn={\str@editorcn},
- editorcn={\str@editorcn},
- }
-
- %
- % 增加两个命令用于临时的局部的修改本地化字符串
- % 其中\setlocalbibstring修改缩写字符串,setlocalbiblstring修改长字符串
- % 注意使用时因为是局部修改,因此要将其与需要修改的引用命令放在一个编组符号内
- % v1.0t,hzz,20190525
- \newcommand{\setlocalbibstring}[2]{%
- \csdef{abx@sstr@#1}{#2}}
- \newcommand{\setlocalbiblstring}[2]{%
- \csdef{abx@lstr@#1}{#2}}
-
-%=====================================================================
-% 动态数据修改
-%=====================================================================
-%
-% 各层次的数据映射和动态修改
-%
-% 原理方法:
-% 1. 进行语言包括中英文判断,并设置和记录,比如记录到userf,usere中
-% 2. 增加文献标识符如[M],[J]等,对一些容易混淆的域进行设置以增强兼容性
-% 3. \DeclareSourcemap命令对于biblatex3.11以下版本只能出现一次,3.11版开始支持多个
-% 4. \DeclarestyleSourcemap在biblatex v3.7版开始可以支持出现多次
-% 5. 把作者和译者信息准确的记录到userf,usere中,用于后面判断是否是cjk字符。
-% 注意:这里用userf,usere而不是namee,namef,是因为只有把name列表转成域,才能有效读取姓名中的字符,
-% 如果用namee,namef,name信息会自动解析,所以就不能为cjk判断提供需要的信息
-%
-% 不同的文献类型使用相同的驱动输出可以有5种方法:
-% 1. 是数据源层的映射,将其它类型转换为某一要使用驱动的类型
-% 2. 是样式层映射,也是将其它类型转换为某一要使用驱动的类型
-% 3. 是驱动层映射,也是将其它类型转换为某一要使用驱动的类型
-% 4. 定义驱动类型别名DeclareBibliographyAlias,将其它类型定义为某一要使用驱动的类型的别名
-% 驱动别名定义本质上是做了驱动层映射
-% 5. 直接定义不同的类型的驱动,但驱动内容相同。
-%
-% 关于数据映射和驱动使用的考虑如下:
-% 1. 为避免利用biber输出bib文件时的数据变动,尽量不在数据源层映射做类型转换
-% 2. 为减少代码量,尽量少做内容相同的不同类型驱动
-% 3. 因此类型相关的处理主要在样式层映射、驱动层映射、驱动别名
-% 4. 由于biblatex默认做的驱动别名处理可能增加一些信息比如masterthesis转thesis时增加的type
-% 可以在样式层映射做某些需要避免这种默认处置的转换
-% 5. 当没有避免默认行为的需求时,全部采用驱动别名的方式处理,等价于驱动层的映射
-%
-% 文献类型和驱动考虑如下:
-% 1. 连续出版物及析出文献有其特殊性,因此考虑两类periodical和article
-% newpaper映射为article,并以note域做区分特殊处理
-% 2. 专著和专著中的析出文献是主要的类型,因此考虑book和inbook
-% standard映射为book或inbook,并以note域做区分特殊处理
-% collection和proceedings基本与book类似,因此做book驱动别名处理
-% incollection和inproceedings基本与inbook类似,因此做inbook驱动别名处理
-% 3. 专利类型有其特殊性,考虑patent类型
-% 4. 电子资源类型有其特殊性,考虑online类型
-% 5. 报告类型与book有点类似,出版项处理与book一样,但有时又要有修改和更新日期
-% 因此考虑用一种类型来输出,使用report类型
-% 6. 手册/学位论文等类型与book有点类似,但对于出版项处理时,有缺省时,直接省略,
-% 同时有version和edition的区别,因此考虑用一种类型来输出,使用manual类型
-% 7. 包括报告,学位论文在内的其它所有的类型,都做一个判断,当没有出版项时,
-% 且存在网址信息时,将其转换为online类型输出,否则都做为manual类型输出。
-% 8. 备选类型misc当存在网址时直接转换为online,由于howpublished域可用于描述
-% 更多的信息,因此不存在网址时,独立做一个备选格式
-% 9. 出版项主要以如下方式处理:
-% (a) location+institution+date 仅用于连续出版物
-% (b)publisher+location+date 用于需要完整输出出版项的类型,比如book,collection,proceedings,in*,report
-% (c)institution+location+date 用于出版项缺失时不输出的类型,包括manual,thesis,archive等其他类型
-% (d)printlist{insitution} 用于电子资源,仅输出出版者或组织,为数据映射方便,本来默认的organization域转换为用insitution输出。
-% (e) 不输出,主要用于连续出版物析出的文献
-% 10. 日期以如下方式处理:
-% date 由于存在biblatex选项,因此通过选项控制,数据源为date解析数据或year
-% urldate 由于存在biblatex选项,因此通过选项控制,输出到日,且用[]包围,数据源为urldate
-% newsdate 用于公告日期,公开日期或新闻日期,输出到日,但无包围符号,数据源为date
-% modifydate 用于更新或修改日期,输出到日,且用()包围,数据源为date或enddate或eventdate
-
-\DeclareSourcemap{
-\maps[datatype=bibtex]{%
- \map{%当没有作者时将editor转成author
- \pernottype{inbook}%因为in系列中editor可能用来表示bookauthor,所以排除
- \pernottype{inproceedings}
- \pernottype{incollection}
- \pernottype{periodical}%因为peridical直接使用editor,所以排除
- %注意notfield在低版本biblatex中没有
- %\step[notfield=author,final]%当author不存在,将editor复制给author
- \step[fieldsource=editor,fieldtarget=author]%并删除editor
- }
- \map{%当没有作者时将translator转成author
- \pernottype{inbook}
- \pernottype{inproceedings}
- \pernottype{incollection}
- %\step[notfield=author,final]%当author不存在,将translator复制给author
- \step[fieldsource=translator,fieldtarget=author]%并删除translator
- }
- \map{%让address和location同步,biblatex中address是location的别名
- %因此输出的时候只有location信息,但处理过程中是可以存在address的。
- %\step[notfield=address,final]
- \step[fieldsource=location,final]
- \step[fieldset=address,origfieldval]
- }
- \map{%让address和location同步
- %\step[notfield=location,final]
- \step[fieldsource=address,final]
- \step[fieldset=location,origfieldval]
- }
- \map{%处理在bib文件用mark标记文献类型标识符的情况
- \step[fieldsource=mark,final]
- \step[fieldset=usera, origfieldval]
- }
- \map{%处理在bib文件中直接给出文献的姓名格式为lowercase的情况
- \step[fieldsource=nameformat,match=lowercase,final]
- \step[fieldset=namefmtid,fieldvalue={1}]
- }
- \map{%处理在bib文件中直接给出文献的姓名格式为givenahead的情况
- \step[fieldsource=nameformat,match=givenahead,final]
- \step[fieldset=namefmtid,fieldvalue={2}]
- }
- \map{%处理在bib文件中直接给出文献的姓名格式为familyahead的情况
- \step[fieldsource=nameformat,match=familyahead,final]
- \step[fieldset=namefmtid,fieldvalue={3}]
- }
- \map{%处理在bib文件中直接给出文献的姓名格式为pinyin的情况
- \step[fieldsource=nameformat,match=pinyin,final]
- \step[fieldset=namefmtid,fieldvalue={4}]
- }
- \map{%根据article确定文献类型标识符
- \pertype{article}
- \step[fieldset=usera, fieldvalue={J}]
- }
- \map{%根据periodical确定文献类型标识符
- \pertype{periodical}
- \step[fieldset=usera, fieldvalue={J}]
- \step[fieldsource=author] %有时会把author和editor混淆,处理后使用editor
- \step[fieldset=editor, origfieldval]
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%根据增加一个新闻报纸的类型newspaper确定文献类型标识符
- \pertype{newspaper}
- \step[fieldset=usera, fieldvalue={N}]
- \step[fieldset=note, fieldvalue=news]%因为没有专门的驱动,记录note方便映射为article后判断
- }
- \map{%对应增加的一个数据库类型database确定文献类型标识符
- \pertype{database}
- \step[fieldset=usera, fieldvalue={DB}]
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%对应增加的一个数据集类型dataset确定文献类型标识符
- \pertype{dataset}
- \step[fieldset=usera, fieldvalue={DS}]%
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%对应增加的一个软件类型software确定文献类型标识符
- \pertype{software}
- \step[fieldset=usera, fieldvalue={CP}]
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%对应增加的一个舆图类型map确定文献类型标识符
- \pertype{map}
- \step[fieldset=usera, fieldvalue={CM}]%
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%对应增加的一个档案类型archive确定文献类型标识符
- \pertype{archive}
- \step[fieldset=usera, fieldvalue={A}]
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%因为misc类型本身就是没有类型,而不像其它文献有明确的类型,所以
- %当misc类型带有网址时,直接将其转换为online类型
- \pertype{misc}
- \step[fieldsource=url,final]
- \step[typesource=misc,typetarget=online]
- }
- \map{%对应增加的一个备选类型misc确定文献类型标识符
- \pertype{misc}
- \step[fieldset=usera, fieldvalue={Z}]%
- }
- \map{
- \pertype{book}
- \pertype{inbook}
- \step[fieldset=usera, fieldvalue={M}]
- \step[fieldsource=version] %有时会把version和edition混淆,处理后直接用edition
- \step[fieldset=edition, origfieldval]
- }
- \map{%兼容老的standard类型,确定文献类型标识符
- \pertype{standard}
- \step[fieldset=usera, fieldvalue={S}]
- \step[fieldset=note, fieldvalue=standard]%因为没有专门的驱动,记录note方便映射为book和inbook后判断
- }
- \map{
- \pertype{patent}
- \step[fieldset=usera, fieldvalue={P}]
- }
- \map{
- \pertype{inproceedings}
- \pertype{conference}%兼容老的conference类型
- \step[fieldset=usera, fieldvalue={C}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{proceedings}
- \step[fieldset=usera, fieldvalue={C}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{incollection}
- \step[fieldset=usera, fieldvalue={G}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{collection}
- \step[fieldset=usera, fieldvalue={G}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{report}
- \pertype{techreport}%兼容老的techreport类型
- \step[fieldset=usera, fieldvalue={R}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{thesis}
- \pertype{mastersthesis}%兼容老的mastersthesis和phdthesis类型
- \pertype{phdthesis}
- \step[fieldset=usera, fieldvalue={D}]
- \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{
- \pertype{online}
- \pertype{electronic}%兼容老的electronic类型
- \pertype{www}%兼容老的www类型
- \step[fieldset=usera, fieldvalue={EB}]
- \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]%因为online的出版项处理类似手册
- \step[fieldsource=organization]%有时会把organization和institution混淆,处理后使用institution,以增强兼容性
- \step[fieldset=institution, origfieldval]
- }
- \map{
- \pertype{manual}
- \step[fieldset=usera, fieldvalue={A}]
- \step[fieldsource=edition]%有时会把version和edition混淆,处理后使用version
- \step[fieldset=version, origfieldval]
- \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- \step[fieldsource=organization]%有时会把organization和institution混淆,处理后使用institution,以增强兼容性
- \step[fieldset=institution, origfieldval]
- }
- \map{
- \pertype{unpublished}
- \step[fieldset=usera, fieldvalue={Z}]
- }
- \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
- \step[fieldsource={author}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
- }%
- \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
- \step[fieldsource={editor}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
- }%
- \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
- \step[fieldsource={translator}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
- }%
- \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
- \step[fieldsource={bookauthor}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
- }%
- \map{%处理一些用year表示date的情况
- %这样处理将会设置date域,并使得labeldatesource变为空,因为date的前缀为空(如果是urldate,那么labeldatesource就是url)。
- %同时date域会被biblatex自动解析为year,month,day,并且覆盖原来的year信息
- \step[fieldsource=year]
- \step[fieldset=date, origfieldval]
- }
- \map{%将entrykey放入keywords中用于后期使用
- \step[fieldsource=entrykey]
- \step[fieldset=keywords, origfieldval]
- }
- \map{\step[fieldsource=title,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=userd,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=title,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=userd,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=title,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=userd,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=title,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=userd,fieldvalue={korean}]%韩语
- }
- \map{%文献题名的中文判断,将信息保存到userd中,避免因为标签生成原因导致title域被清除而产生问题
- \step[fieldsource=title, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%
- \step[fieldset=userd, fieldvalue={chinese}]
- }
- \map{%将没有设置userd,且存在title域的默认设置为英文
- \step[fieldsource=title,final]
- \step[fieldset=userd,fieldvalue={english}]
- }
- \map{\step[fieldsource=author,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=userf,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=author,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=userf,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=author,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=userf,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=author,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=userf,fieldvalue={korean}]%韩语
- }
- \map{%作者的中文判断
- \step[fieldsource=author, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]
- \step[fieldset=userf, fieldvalue={chinese}]
- }
- \map{%将没有设置userf,且存在author域的默认设置为英文
- \step[fieldsource=author,final]
- \step[fieldset=userf,fieldvalue={english}]
- }
- \map{\step[fieldsource=translator,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=usere,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=translator,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=usere,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=translator,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=usere,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=translator,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=usere,fieldvalue={korean}]%韩语
- }
- \map{%译者的中文判断
- \step[fieldsource=translator, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]
- \step[fieldset=usere, fieldvalue={chinese}]
- }
- \map{%将没有设置usere,且存在translator域的默认设置为英文
- \step[fieldsource=translator,final]
- \step[fieldset=usere,fieldvalue={english}]
- }
- \map{\step[fieldsource=editor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=userc,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=editor,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=userc,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=editor,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=userc,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=editor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=userc,fieldvalue={korean}]%韩语
- }
- \map{%编者的中文判断
- \step[fieldsource=editor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5
- \step[fieldset=userc, fieldvalue={chinese}]
- }
- \map{%将没有设置userc,且存在editor域的默认设置为英文
- \step[fieldsource=editor,final]
- \step[fieldset=userc,fieldvalue={english}]
- }
- \map{\step[fieldsource=bookauthor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=userb,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=bookauthor,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=userb,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=bookauthor,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=userb,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=bookauthor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=userb,fieldvalue={korean}]%韩语
- }
- \map{%编者的中文判断
- \step[fieldsource=bookauthor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5
- \step[fieldset=userb, fieldvalue={chinese}]
- }
- \map{%将没有设置userc,且存在editor域的默认设置为英文
- \step[fieldsource=bookauthor,final]
- \step[fieldset=userb,fieldvalue={english}]
- }
- \map{\step[fieldsource=userd,final]%userd存在则用根据标题的语言设定language
- \step[fieldset=language,origfieldval]%本身language存在则不设定
- }
- \map{\step[fieldsource=userf,final]%userd不存在,而userf存在则根据author的语言设定language
- \step[fieldset=language,origfieldval]
- }%如果没有作者和标题,那么剩下的最可能有意义的只有网址了,而网址通常是英文的,因此不用再进一步对其它域进行判断了。
- \map{%将没有设置的language设置成en,即认为不是中文的就是英文的。
- \step[fieldset=language,fieldvalue={english}]
- }
- \map{%一条文献的语言已经设定在language域中,由于出版项相关宏中使用userd判断,
- %所以将一条文献的主体语言设定到userd中,本身前面userd已经设定,但没有处理无标题的情况,
- %这里的处理等价于没有标题时,利用作者的语言设定userd,再没有作者,则默认用英文设定userd
- \step[fieldsource=language]
- \step[fieldset=userd,origfieldval]
- }
- \map{%当文献给出language域时,设置文献要使用的本地化字符串的语言
- %biblatex 3.11及以下版本仅有match是区分大小写的,而3.12版开始用matchi来区分大小,而match不区分
- %这里为兼容3.11及以下版本,所以用一个复杂一点的正则表达式
- \step[fieldsource=language,match=\regexp{(e|E)(n|N)(g|G)(l|L)(i|I)(s|S)(h|H)},final]
- \step[fieldset=langid,fieldvalue={english}]
- \step[fieldset=lansortorder,fieldvalue=\lanenorder]
- }
- \map{
- \step[fieldsource=language,match=\regexp{(r|R)(u|U)(s|S)(s|S)(i|I)(a|A)(n|N)},final]
- \step[fieldset=langid,fieldvalue={russian}]
- \step[fieldset=lansortorder,fieldvalue=\lanruorder]
- }
- \map{%
- \step[fieldsource=language,match=\regexp{(f|F)(r|R)(e|E)(n|N)(c|C)(h|H)},final]
- \step[fieldset=langid,fieldvalue={french}]
- \step[fieldset=lansortorder,fieldvalue=\lanfrorder]
- }
- \map{%
- \step[fieldsource=language,match=\regexp{(c|C)(h|H)(i|I)(n|N)(e|E)(s|S)(e|E)},final]%中日韩语目前都用english,
- \step[fieldset=langid,fieldvalue={english}]
- \step[fieldset=lansortorder,fieldvalue=\lancnorder]
- }
- \map{%
- \step[fieldsource=language,match=\regexp{(j|J)(a|A)(p|P)(a|A)(n|N)(e|E)(s|S)(e|E)},final]%中日韩语目前都用english,
- \step[fieldset=langid,fieldvalue={english}]
- \step[fieldset=lansortorder,fieldvalue=\lanjporder]
- }
- \map{%
- \step[fieldsource=language,match=\regexp{(k|K)(o|O)(r|R)(e|E)(a|A)(n|N)},final]%中日韩语目前都用english,
- \step[fieldset=langid,fieldvalue={english}]
- \step[fieldset=lansortorder,fieldvalue=\lankrorder]
- }
- \map{%尝试未定义数据模型的standard类型映射为其他类型book或inbook,
- %standard类型在blx-dm中有出现,但仅定义了类型,域和约束等都没有定义
- %因为可能要映射两种类型,所以不能在驱动层处理,因为要做判断
- \step[fieldsource=booktitle,final]%当存在booktitle域是映射为inbook
- \step[typesource=standard, typetarget=inbook, final]
- }
- \map{%剩下的全部映射为book
- \step[typesource=standard, typetarget=book, final]
- }
-% \map{%先于标准样式的driver层映射,以取消type设置
-% \step[typesource=mastersthesis, typetarget=thesis, final]
-% %\step[fieldset=type, fieldvalue=mathesis]
-% }
-% \map{%先于标准样式的driver层映射,以取消type设置
-% \step[typesource=phdthesis, typetarget=thesis, final]
-% %\step[fieldset=type, fieldvalue=phdthesis]
-% }
- \map{%先于标准样式的driver层映射,以取消type设置
- \step[typesource=techreport, typetarget=report, final]
- %\step[fieldset=type, fieldvalue=techreport]
- }
- \map{%
- \pertype{report}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=report,typetarget=online]
- \step[fieldset=note,fieldvalue={report}]
- }
- \map{%
- \pertype{thesis}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=thesis,typetarget=online]
- }
- \map{%
- \pertype{manual}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=manual,typetarget=online]
- }
- \map{%
- \pertype{unpublished}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=unpublished,typetarget=online]
- }
- \map{%
- \pertype{database}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=databasetypetarget=online]
- }
- \map{%
- \pertype{dataset}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=dataset,typetarget=online]
- }
- \map{%
- \pertype{software}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=software,typetarget=online]
- }
- \map{%
- \pertype{map}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=map,typetarget=online]
- }
- \map{%
- \pertype{archive}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=archive,typetarget=online]
- }
- \map[overwrite]{%这里还必须有overwrite,注意不同版本存在差异,比如texlive2015变16后biber有变化(20161207修改正确)
- \step[fieldsource=note, final]%将note域信息复制给keywords,用于输出时容易区分标准和报纸
- \step[fieldset=keywords, fieldvalue={,}, append]
- \step[fieldset=keywords, origfieldval, append]
- }
- \map[overwrite]{%title,booktitle,journaltitle,journal,publisher,address,location,institution,organization
- \step[fieldsource={title}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- \map[overwrite]{
- \step[fieldsource={booktitle}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- \map[overwrite]{
- \step[fieldsource={journaltitle}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- \map[overwrite]{
- \step[fieldsource={journal}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- \map[overwrite]{
- \step[fieldsource={publisher}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- \map[overwrite]{
- \step[fieldsource={address}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- \map[overwrite]{
- \step[fieldsource={location}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- \map[overwrite]{
- \step[fieldsource={institution}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- \map[overwrite]{
- \step[fieldsource={booktitle}, match=\regexp{([^\\])\#}, replace=\regexp{$1\\\#}]
- }
- \map[overwrite]{
- \step[fieldsource={booktitle}, match=\regexp{([^\\])\%}, replace=\regexp{$1\\\%}]
- }
- %对于高版本(3.4以上)可以用下面这一段取代前面那一段,为了兼容gbnoauthor选项,这些代码只能在sourcemap中使用,所以只能选择前面那一段
- %\map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{
-% \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\#}, replace=\regexp{$1\\\#}]
-% }
-% \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{
-% \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\%}, replace=\regexp{$1\\\%}]
-% }
-% \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,%
-% address,location,institution,organization}]{
-% \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
-% }
- }
-}
-
-%
-% 佚名/noauthor的处理
-%
-% 原理方法:利用样式层的动态数据修改实现
-\def\dealnoathor{
- \DeclareStyleSourcemap{
- \maps[datatype=bibtex]{
- \map{%默认情况下将空缺作者的中文文献设置为佚名
- \step[fieldsource=language,match={chinese},final]
- \step[fieldset=author, fieldvalue={佚名}]
- }
- \map{%默认情况下将空缺作者的英文文献设置为A{non}
- \step[fieldsource=language,match={english},final]
- \step[fieldset=author, fieldvalue={A{non}}]%noauthor换成Anon,同时为避免大写还加了{}
- }
- }
- }
-}
-
-%
-% 不同语言分集调整的实现方式
-%
-% 原理方法:利用样式层的动态数据修改lansortorder域来实现排序
-\def\dealsortlan{
- \DeclareStyleSourcemap{
- \maps[datatype=bibtex]{
- \map[overwrite]{%当文献给出language域时,设置文献要使用的本地化字符串的语言
- \step[fieldsource=language,match=english,final]
- \step[fieldset=lansortorder,fieldvalue=\lanenorder]
- }
- \map[overwrite]{
- \step[fieldsource=language,match=russian,final]
- \step[fieldset=lansortorder,fieldvalue=\lanruorder]
- }
- \map[overwrite]{%
- \step[fieldsource=language,match=french,final]
- \step[fieldset=lansortorder,fieldvalue=\lanfrorder]
- }
- \map[overwrite]{%
- \step[fieldsource=language,match=chinese,final]%中日韩语目前都用english,
- \step[fieldset=lansortorder,fieldvalue=\lancnorder]
- }
- \map[overwrite]{%
- \step[fieldsource=language,match=japanese,final]%中日韩语目前都用english,
- \step[fieldset=lansortorder,fieldvalue=\lanjporder]
- }
- \map[overwrite]{%
- \step[fieldsource=language,match=korean,final]%中日韩语目前都用english,
- \step[fieldset=lansortorder,fieldvalue=\lankrorder]
- }
- }
- }
-}
-
-
-%
-%驱动别名等价于驱动层映射
-%
-\DeclareBibliographyAlias{newspaper}{article}%
-\DeclareBibliographyAlias{inproceedings}{inbook}%会议论文文献类型驱动
-\DeclareBibliographyAlias{conference}{inbook}%会议论文文献类型驱动
-\DeclareBibliographyAlias{incollection}{inbook}%文集中析出文献类型驱动
-\DeclareBibliographyAlias{collection}{book}%%文集类型驱动
-\DeclareBibliographyAlias{proceedings}{book}%会议论文集文献类型驱动
-\DeclareBibliographyAlias{thesis}{manual}%学位论文驱动
-\DeclareBibliographyAlias{unpublished}{manual}%其它类型驱动
-\DeclareBibliographyAlias{database}{manual}
-\DeclareBibliographyAlias{dataset}{manual}
-\DeclareBibliographyAlias{software}{manual}
-\DeclareBibliographyAlias{map}{manual}
-\DeclareBibliographyAlias{archive}{manual}
-
-%=====================================================================
-% 设置排序格式
-%=====================================================================
-%
-% 排序格式,用降序,及userb域,针对biblatex3.7及以下版本
-%
-\defversion{3.7}{sort}{%这是3.4版的,3.7版略有差异,但不大,后面有注释
- \DeclareSortingScheme{gb7714-2015}{
- \sort{
- \field{presort}
- }
- %\sort[final]{
- %\field{sortkey}
- %}
- \sort{
- \field{lansortorder}%language
- }
- \sort{
- \field{sortkey}
- }
- \sort{%[direction=descending]
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field[padside=left,padwidth=4,padchar=0]{volume}%3.7版是\field{volume}
- \literal{0000}%3.7版是\literal{0}
- }
- }
-
- %降序的nyt
- \DeclareSortingScheme{gbnytd}{
- \sort{
- \field{presort}
- }
- %\sort[final]{
- %\field{sortkey}
- %}
- \sort{
- \field{lansortorder}%language
- }
- \sort[direction=descending]{
- \field{sortkey}
- }
- \sort[direction=descending]{
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field[padside=left,padwidth=4,padchar=0]{volume}%3.7版是\field{volume}
- \literal{0000}%3.7版是\literal{0}
- }
- }
-
- %降序的ynt
- \DeclareSortingScheme{gbyntd}{
- \sort{
- \field{presort}
- }
- %\sort[final]{
- %\field{sortkey}
- %}
- \sort{
- \field{lansortorder}%language
- }
- \sort[direction=descending]{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sortkey}
- }
- \sort{
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field[padside=left,padwidth=4,padchar=0]{volume}%3.7版是\field{volume}
- \literal{0000}%3.7版是\literal{0}
- }
- }
-
- %升序的ynt
- \DeclareSortingScheme{gbynta}{
- \sort{
- \field{presort}
- }
- %\sort[final]{
- %\field{sortkey}
- %}
- \sort{
- \field{lansortorder}%language
- }
- \sort{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sortkey}
- }
- \sort{
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field[padside=left,padwidth=4,padchar=0]{volume}%3.7版是\field{volume}
- \literal{0000}%3.7版是\literal{0}
- }
- }
-}
-
-
-%
-% 排序格式,用降序,及userb域,针对biblatex3.8及以上版本
-%
-\defversion{3.8}{sort}{
- \DeclareSortingTemplate{gb7714-2015}{
- \sort{
- \field{presort}
- }
- %\sort[final]{
- %\field{sortkey}
- %}
- \sort{
- \field{lansortorder}%language
- }
- \sort{
- \field{sortkey}
- }
- \sort{%[direction=descending]
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field{volume}
- \literal{0}
- }
- }
-
- %降序的nyt
- \DeclareSortingTemplate{gbnytd}{
- \sort{
- \field{presort}
- }
-% \sort[final]{
-% \field{sortkey}
-% }
- \sort{
- \field{lansortorder}%language
- }
- \sort[direction=descending]{
- \field{sortkey}
- }
- \sort[direction=descending]{%
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field{volume}
- \literal{0}
- }
- }
-
- %降序的ynt
- \DeclareSortingTemplate{gbyntd}{
- \sort{
- \field{presort}
- }
-% \sort[final]{
-% \field{sortkey}
-% }
- \sort{
- \field{lansortorder}%language
- }
- \sort[direction=descending]{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sortkey}
- }
- \sort{%
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field{volume}
- \literal{0}
- }
- }
-
- %升序的ynt
- \DeclareSortingTemplate{gbynta}{
- \sort{
- \field{presort}
- }
-% \sort[final]{
-% \field{sortkey}
-% }
- \sort{
- \field{lansortorder}%language
- }
- \sort{%[direction=ascending]
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sortkey}
- }
- \sort{%
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field{volume}
- \literal{0}
- }
- }
-
- %
- % 定义命令\defdoublelangentry,用于biblatex>v3.8版利用related实现双语文献的处理
- %
- %为了实现v3.8以上版本的双语文献,采用related的方法代替set方法,因为set方法已经无法实现了,
- %因为set不再复制其第一个成员的信息。于是定义一个命令,用于动态的修改数据,即添加related域的信息
- %其中使用了\DeclareStyleSourcemap,但由于其只能出现在导言区中,因此\defdoublelangentry命令也只能出现在导言区中
- \newcommand{\defdoublelangentry}[2]{%
- \edef\entrykeya{##1}
- \edef\entrykeyb{##2}
- \DeclareStyleSourcemap{
- \maps[datatype=bibtex]{
- \map{
- \step[fieldsource=entrykey, match=\entrykeya, final]
- \step[fieldset=related, fieldvalue=\entrykeyb]
- }
- }
- }
- }
-}
-
-
-\ifboolexpr{
-test {\iftoggle{iftlfive}}
-or
-test {\iftoggle{iftlsix}}
-or
-test {\iftoggle{iftlseven}}%biblatex<=3.7
-}{\switchversion{3.7}{sort}}{\switchversion{3.8}{sort}}%3.8<=biblatex
-
-
-%=====================================================================
-%参考文献表环境
-%=====================================================================
-
-%
-% 列表格式
-%
-% 增加一个\bibitemindent尺寸用于控制list环境的itemindent
-% v1.0l,20180615,hzz
-\setlength{\bibhang}{1em}
-\newlength{\bibitemindent}
-\setlength{\bibitemindent}{-\bibhang}
-\setlength{\bibitemsep}{4.5pt}
- \defbibenvironment{bibliography}
- {\list
- {}
- {\setlength{\leftmargin}{\bibhang}%
- \setlength{\itemindent}{\bibitemindent}%
- \setlength{\itemsep}{\bibitemsep}%
- \setlength{\parsep}{\bibparsep}}}
- {\endlist}
- {\item}
-
-
-%=====================================================================
-% 设置单元或块等的标点
-%=====================================================================
-\renewrobustcmd*{\bibinithyphendelim}{\addhighpenspace}%用于处理姓名中名部分存在-的情况,比如ZHANG Yu-xin
-\renewcommand*{\subtitlepunct}{\addcolon\space} %修改标题和其它标题信息间的标点%来源biblatex.def
-%
-% 利用set实现的多语言文献不同语言间的分隔符
-% 20170411,双语之间用newline替换par,避免采用gb7714-2015的项对齐方式第二语言间分段导致没有缩进
-%
-% 原理方法:set方法可以参考3.11.5 Entry Sets,4.11.1 Entry Sets
-% 这里调整一下两种语言参考文献的间隔,源来自biblatex.def
-\renewcommand*{\entrysetpunct}{\adddot\par\nobreak}%ay样式用par也可以,因为没有悬挂对齐问题
-\renewcommand*{\bibpagespunct}{\addcolon\addthinspace}%%页码引用格式的修改,修改为用冒号
-%\renewcommand{\relateddelim}{}%\par
-
-%=====================================================================
-% 修改域的格式,重定义域的输出宏
-%=====================================================================
-%
-% 新增文献类型标识符的格式
-% []前的nobreak,从GB4.1节的例子看不应该加,所以去掉
-% 但因为考虑到cjk字符和[]之间可能添加空格,所以仍然加上
-% 而[]中间的内容,从4.6.2节的例子看也是可以分割的,因此内部的nobreak也可以去掉
-%
-\DeclareFieldFormat{gbtypeflag}{%
-\iftoggle{bbx:gbmedium}%
-{\iftoggle{bbx:url}%
- {\iffieldundef{url}%当存在url时,增加一个OL标识符
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}}%
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\texttt{/}OL]}}%
- }%
- {\ifentrytype{online}%
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\texttt{/}OL]}}%
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}}%
- }}%
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{]}}%
-}
-
-%
-% 新增用于报纸的文献类型标识符的格式
-%
-\DeclareFieldFormat{gbtypeflagn}{%用于报纸newspaper
-\iftoggle{bbx:gbmedium}%
-{\iftoggle{bbx:url}%
- {\iffieldundef{url}%当存在url时,增加一个OL标识符
- {\nobreak\printtext{[}\nobreak N\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
- {\nobreak\printtext{[}\nobreak N\printtext{\texttt{/}OL]}\nobreak}%
- }%
- {\nobreak\printtext{[}\nobreak N\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
-}{\nobreak\printtext{[}\nobreak N\printtext{]}\nobreak}%
-}
-
-%
-% 新增用于标准的文献类型标识符的格式
-%
-\DeclareFieldFormat{gbtypeflags}{%用于标准standard
-\iftoggle{bbx:gbmedium}%
-{\iftoggle{bbx:url}%
- {\iffieldundef{url}%当存在url时,增加一个OL标识符
- {\nobreak\printtext{[}\nobreak S\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
- {\nobreak\printtext{[}\nobreak S\printtext{\texttt{/}OL]}\nobreak}%
- }%
- {\nobreak\printtext{[}\nobreak S\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
-}{\nobreak\printtext{[}\nobreak S\printtext{]}\nobreak}%
-}
-
-%
-% 重设title等参考文献信息的输出格式
-%
-% 原理方法:修改来自biblatex.def文件的原格式
-\newcommand{\bibtitlefont}{}
-\newcommand{\bibauthorfont}{}
-\newcommand{\bibpubfont}{}
-\DeclareFieldFormat{title}{#1\adddot\addthinspace}
-\DeclareFieldFormat{journaltitle}{#1\isdot}%添加\isdot,用于缩写名带点情况,将其转换为缩写点,便于标点的追踪
-\DeclareFieldFormat{issuetitle}{#1}
-\DeclareFieldFormat{maintitle}{#1}
-\DeclareFieldFormat{booktitle}{#1}
-\DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉
- [article,patent,thesis,unpublished]
- {title}{#1\adddot\addthinspace}
-\DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉
- [inbook,incollection,inproceedings]
- {title}{#1}%\nopunct\unspace
-\DeclareFieldFormat{url}{\url{#1}} %url域修改如本行%url相关输出,源来自biblatex.def
-\def\UrlFont{\rmfamily}%设置url字体为roman字体%\ttfamily
-%\urlstyle{rm} %使用这句也一样
-\setcounter{biburlnumpenalty}{100} %让url可以在数字后断行
-\setcounter{biburlucpenalty}{100} %让url可以在大写字母后断行
-\setcounter{biburllcpenalty}{100} %让url可以在小写字母后断行
-\DeclareFieldFormat{doi}{%
- \rmfamily{DOI}\addcolon\space
- \ifhyperref
- {\href{https://doi.org/#1}{\nolinkurl{#1}}}
- {\nolinkurl{#1}}}
-%
-% 标题的字母大小写格式修改
-%
-% 注意:修改标题的字母大小写,不能用前面的title的格式而要用titlecase
-% 因为titlecase is applied to the contents of the field directly,title is not
-%\DeclareFieldFormat{titlecase}{\MakeCapital#1}%重设标题格式,将其修改为首字母大写
-\DeclareFieldFormat{titlecase}{\iftoggle{bbx:titlelink}{%
-\iffieldundef{url}{\MakeCapital#1}{%
-\href{\thefield{url}}{#1}}}{\MakeCapital#1}}%重设标题格式,将其修改为首字母大写
-\DeclareFieldFormat{pages}{#1}%页码引用格式的修改%去掉前面引导页码的pp.等字符
-\DefineBibliographyExtras{english}{\renewcommand*{\bibrangedash}{-}}
-\DefineBibliographyExtras{russian}{\renewcommand*{\bibrangedash}{-}}
-
-\def\execgbfdfmtstd{%恢复到标准样式的设置
-\DeclareFieldFormat{title}{\mkbibemph{##1}}
-\DeclareFieldFormat
- [article,inbook,incollection,inproceedings,patent,thesis,unpublished]
- {title}{\mkbibquote{##1\isdot}}
-\DeclareFieldFormat
- [suppbook,suppcollection,suppperiodical]
- {title}{##1}
-\DeclareFieldFormat{journaltitle}{\mkbibemph{##1}}
-\DeclareFieldFormat{issuetitle}{\mkbibemph{##1}}
-\DeclareFieldFormat{maintitle}{\mkbibemph{##1}}
-\DeclareFieldFormat{booktitle}{\mkbibemph{##1}}
-\DeclareFieldFormat{url}{\mkbibacro{URL}\addcolon\space\url{##1}}
-\DeclareFieldFormat{titlecase}{##1}
-\DeclareFieldFormat{pages}{\mkpageprefix[bookpagination]{##1}}
-}
-
-%
-% 文献标题后的标点问题
-% v1.0k,20180405,为texlive2017以上版本中的beamer兼容性做的处理,Hu Zhenzhen
-%
-% 原理方法:如下代码处理texlive2017以上版本中,beamer中文献的标题后出现两个点的情况:
-% texlive2017以上的beamer中对macro{title}做了patch,正常情况下不会出现两个点的情况,但由于
-% 之前为了处理texlive2015,2016下的title格式添加了adddot,导致出现两个点的情况,而且也影响
-% 析出文献的//符号的输出,因此再次对macro{title}做patch消除beamer中做apptocmd时添加的\newunitpunct
-\ifboolexpr{%
- test{\iftoggle{iftlfive}}
- or
- test{\iftoggle{iftlsix}}
- }{}%
- {%texlive 2017对应iftlseven以上版本
- \@ifclassloaded{beamer}{
- \DeclareFieldFormat{title}{#1}%
- \DeclareFieldFormat[article,patent,thesis,unpublished]{title}{#1}
- \AtBeginDocument{%
- \patchcmd{\abx@macro@title}{\newunitpunct}{}{}{}}}{}
- }
-
-
-%
-% 修改译者位置格式
-%
-% 原理方法:修改来自biblatex.def文件的bytranslator+others宏的格式
-\renewbibmacro*{bytranslator+others}{\bibauthorfont%
- \ifnameundef{translator}
- {}
- {%\usebibmacro{bytranslator+othersstrg}
- %\setunit{\addspace}%
- \printnames[bytranslator]{translator}%
- \clearname{translator}%
- %从macro*{bytranslator+othersstrg}%中可以看到当地化字符串格式的引用前的代码处理
- %比如生成cotranslator等用于调用cotranslator所代表的当地化字符串
- \usebibmacro{bytranslator+othersstrg}%“译”的位置换到下面来,即放到译者后面。
- %\setunit{\addspace}%
- \newunit}%
- \usebibmacro{withothers}}
-
-
-
-%
-% 修改作者数量超过限定值,做省略时的处理格式
-% v1.0,20160701,hzz
-% v1.0O,20190103,hzz,修改利用新定义的一个分隔符strandothersdelim
-%
-% 原理方法:判断作者或译者是否中文,若中文用字符等,否则用et al. 。
-% \printnames由start-stop控制项数,默认是1和maxnames/minnames
-\renewbibmacro*{name:andothers}{\bibauthorfont%
- \ifboolexpr{
- test {\ifnumequal{\value{listcount}}{\value{liststop}}}
- and
- test \ifmorenames
- }{\ifnumgreater{\value{liststop}}{1}%注意这里试图去区分姓名总数大于1的情况,当姓名总数大于1时,最后一个姓名后面先加入一个\finalandcomma
- {\finalandcomma}%目前国标没有这样的区分要求,如果有需要也是可以这么去做的。
- {}%
-\printdelim{andothersdelim}\printdelim{strandothersdelim}%
-}{%当是译者的时候需要特殊处理:从7.2节看等,译前面加逗号,但从示例看等和译同时出现时,译前的逗号没有,比如:
-%袁训来, 陈哲, 肖书海, 等.
-%胡泳, 范海燕, 译.
-%潘惠霞, 魏婧, 杨艳, 等译.
-\ifcurrentname{translator}{\addcomma\addthinspace}{}%为了实现上述第二个示例情况做的处理
-}}
-
-% 修改省略作者后的本地化字符串,比如et al.
-% v1.0o,20190103,hzz
-%
-% 原理方法:默认情况下判断作者或译者是否中文,若中文用字符andotherscn=“等”,否则用andothers=“et al.”。
-% 非默认情况,根据选项信息,选择选择强制中文或英文
-% 首先设置全局的,然后设置文献表中的,这一等价于将所有的cite命令环境都设置过了
-% 而不用对每一个引用命令单独设置,比如cite,parancite,textcite都设置
-\DeclareDelimFormat{strandothersdelim}{%
- \edef\userfieldabcde{userd}%这里使用\iffieldequalstr{labelnamesource}替代ifcurrentname因为标注中使用ifcurrentname无效
- \iffieldequalstr{labelnamesource}{translator}{\edef\userfieldabcde{usere}}{}%
- \iffieldequalstr{labelnamesource}{editor}{\edef\userfieldabcde{userc}}{}%
- \iffieldequalstr{labelnamesource}{author}{\edef\userfieldabcde{userf}}{}%
- \iffieldequalstr{labelnamesource}{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbcitelocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\ifbibstring{andothersincitecn}{\bibstring{andothersincitecn}}{\bibstring{andothers}}}{}%中文已经通过english本地化字符串定义
- \iffieldequalstr{\userfieldabcde}{korean}{\ifbibstring{andotherskr}{\bibstring{andotherskr}}{\bibstring{andothers}}}{}%韩语未定义,所以与bib中一致
- \iffieldequalstr{\userfieldabcde}{japanese}{\ifbibstring{andothersjp}{\bibstring{andothersjp}}{\bibstring{andothers}}}{}%日与同韩语
- \iffieldequalstr{\userfieldabcde}{english}{\ifbibstring{andothersincite}{\bibstring{andothersincite}}{\bibstring{andothers}}}{}%英语已定义
- \iffieldequalstr{\userfieldabcde}{french}{\bibstring{andothers}}{}%法语未定义,若要定义需要针对french本地化字符串定义
- \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{andothers}}{}%俄语未定义,若要定义需要针对russian本地化字符串定义
- \or%
- \bibstring{andothersincitecn}%
- \or%
- \bibstring{andothersincite}%
- \fi}
-
-
-\DeclareDelimFormat[bib,biblist]{strandothersdelim}{%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbbiblocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andotherscn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andotherskr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andothersjp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\bibstring{andothers}}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\bibstring{andothers}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{andothers}}{}%
- \or%
- \bibstring{andotherscn}%
- \or%
- \bibstring{andothers}%
- \fi}
-
-
-%
-% 修改最后一个作者前的字符串,比如 and
-% v1.0o,20190103,hzz
-%
-% 原理方法:默认情况下判断作者或译者是否中文,若中文用字符andcn=“和”,否则用and=“and”。
-% 非默认情况,根据选项信息,选择选择强制中文或英文
-% 首先设置全局的,然后设置文献表中的,这一等价于将所有的cite命令环境都设置过了
-% 而不用对每一个引用命令单独设置,比如cite,parancite,textcite都设置
-\DeclareDelimFormat{finalnamedelim}{%
- \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
-% \addspace%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbcitelocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andincitecn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andkr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andjp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\space\bibstring{andincite}\space}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\space\bibstring{and}\space}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\space\bibstring{and}\space}{}%
-%\space%
- \or%
- \bibstring{andincitecn}%\space%
- \or%
-\space\bibstring{andincite}\space%
- \fi}
-
-\DeclareDelimFormat[bib,biblist]{finalnamedelim}{%
- \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
- \addspace%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbbiblocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andcn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andkr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andjp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\bibstring{and}}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\bibstring{and}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{and}}{}%
-\space%
- \or%
- \bibstring{andcn}\space%
- \or%
- \bibstring{and}\space%
- \fi}
-
-
-
-%
-% 重设title的输出
-%
-% 20180425,v1.0k,为标题增加字体控制命令,Hu Zhenzhen
-% 原理方法:将文献类型标识符输出出去,原输出来自biblatex.def文件
-% 利用toggle做标识符是否输出的判断
-\renewbibmacro*{title}{%
- \ifboolexpr{%
- test{\iffieldundef{title}}%
- and
- test{\iffieldundef{subtitle}}%
- }%
- {}%
- {\printtext[title]{\bibtitlefont%增加字体控制命令
- \printfield[titlecase]{title}%
- \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
- {}{\setunit{\subtitlepunct}%
- \printfield[titlecase]{subtitle}}%
- \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
- {\setunit{\subtitlepunct}\printfield{titleaddon}}%
- \iftoggle{bbx:gbtype}{%
- \iffieldundef{note}{\printfield[gbtypeflag]{usera}}%在标题后直接给出文献标识字母,判断一下,是否是报纸和标准
- {\iffieldequalstr{note}{standard}{\printfield[gbtypeflags]{usera}}%判断是否为标准
- {\iffieldequalstr{note}{news}{\printfield[gbtypeflagn]{usera}}%判断是否为报纸
- {\printfield[gbtypeflag]{usera}}}%其它
- }}{}%
- %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
- %\newunit
- }%
-}}
-
-
-%
-% 作者信息的输出格式
-%
-% 20180425,v1.0k,为作者增加字体控制命令,Hu Zhenzhen
-% 20180603,v1.0l,增加使用nameformat域来选择姓名格式
-\DeclareNameFormat{namefmtselected}{%
-\iffieldundef{namefmtid}{}%
-{\defcounter{gbnamefmtcase}{\thefield{namefmtid}}}%
-\ifcase\value{gbnamefmtcase}%
- \ifgiveninits
- {\usebibmacro{name:gbuppercase}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:gbuppercase}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
-\or
- \ifgiveninits
- {\usebibmacro{name:gblowercase}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:gblowercase}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
-\or
- \ifgiveninits
- {\usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
-\or
- \ifgiveninits
- {\usebibmacro{name:family-given}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:family-given}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
-\or
-\usebibmacro{name:gbpinyin}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}%
-\or
- \ifnumequal{\value{listcount}}{1}
- {\ifgiveninits
- {\usebibmacro{name:family-given}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:family-given}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
- \ifboolexpe{%
- test {\ifdefvoid\namepartgiven}
- and
- test {\ifdefvoid\namepartprefix}}
- {}
- {\usebibmacro{name:revsdelim}}}
- {\ifgiveninits
- {\usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}}%
-\fi
- \usebibmacro{name:andothers}}
-
-\DeclareNameAlias{default}{namefmtselected}%姓名的默认格式采用可选的模式
-\DeclareNameAlias{sortname}{default}% Used in the bibliography %family-given/given-family
-\DeclareNameAlias{citename}{default}% Default used by \citename
-
-\DeclareDelimFormat[bib,biblist]{andothersdelim}{\addcomma\addspace}
-%\DeclareDelimFormat[textcite]{andothersdelim}{\addspace}%
-
-%GB/T 7714-2015 风格,全部大写
-\newbibmacro*{name:gbuppercase}[4]{\bibauthorfont%
-\renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
-\renewcommand*{\revsdnamepunct}{}%
- \ifuseprefix%
- {\usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifdefvoid{#3}{}{%
- \ifcapital%
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}%
- {\mkbibnameprefix{#3}\isdot}%
- \ifprefchar{}{\bibnamedelimc}}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
- \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{\MakeUppercase{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
- \ifboolexpe{%
- test {\ifdefvoid{#2}}
- and
- test {\ifdefvoid{#3}}}
- {}{\revsdnamepunct}%
- \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{\MakeUppercase{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
- \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%
-}
-
-%GB/T 7714-2015 风格,大小写不变,根据bib文件内输入原样输出
-\newbibmacro*{name:gblowercase}[4]{\bibauthorfont%
- \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
- \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
- \ifuseprefix
- {\usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifdefvoid{#3}{}{%
- \ifcapital
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
- {\mkbibnameprefix{#3}\isdot}%
- \ifprefchar{}{\bibnamedelimc}}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{{#1}}}\isdot%
- \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{{#1}}}\isdot%
- \ifboolexpe{%
- test {\ifdefvoid{#2}}
- and
- test {\ifdefvoid{#3}}}
- {}{\revsdnamepunct}%
- \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}
- \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%
-}
-
-%中文常见风格,汉语拼音全拼模式
-\newbibmacro*{name:gbpinyin}[4]{\bibauthorfont%
-\renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉,%来源biblatex2.STY
-\renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
-\renewrobustcmd*{\bibnamedelima}{\mbox{-}}%
- \ifuseprefix
- {\usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifdefvoid{#3}{}{%
- \ifcapital
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
- {\mkbibnameprefix{#3}\isdot}%
- \ifprefchar{}{\bibnamedelimc}}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
- \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\MakeSentenceCase{\mkbibnamegiven{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
- \ifboolexpe{%
- test {\ifdefvoid{#2}}
- and
- test {\ifdefvoid{#3}}}
- {}
- {\revsdnamepunct}%
- \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{\MakeCapital{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}
- \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%
-}
-
-
-\@ifpackagelater{biblatex}{2016/03/27}%biblatex<3.2版的情况
- {}{
- %GB/T 7714-2015 风格,全部大写
- \renewbibmacro*{name:gbuppercase}[4]{\bibauthorfont%
- \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
- \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
- \ifuseprefix
- {\usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifblank{#3}{}{%
- \ifcapital
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
- {\mkbibnameprefix{#3}\isdot}%
- \ifpunctmark{'}{}{\bibnamedelimc}}%
- %\mkbibnamelast{#1}\isdot
- \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeUppercase{#1}}}\isdot%\MakeUppercase %\mkbibnamelast{\MakeUppercase{#1}} %\MakeSentenceCase
- %注意上一句\MakeCapital后面如果再跟一个{}包含#1,则没有效果,可能是包在里面少了一层展开
- %因为机构名通常包括在{}内,所以要多展开一次才行,所以这里去掉#1外面的{}
- %\mkbibnamelast{\MakeUppercase{#1}}\isdot
- %\ifblank{#4}{}{\bibnamedelimd\mkbibnameaffix{#4}\isdot}%这句放到后面
- \ifblank{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamefirst{\MakeUppercase{#2}}\isdot}%
- \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}}
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- %\mkbibnamelast{#1}\isdot %3.9.1 Generic Commands and Hooks,对姓重新处理,如下句: %\mkbibnamelast{\MakeUppercase{#1}}
- \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeUppercase{#1}}}\isdot %大写,参考4.6.4 Miscellaneous Commands,\MakeUppercase %\MakeSentenceCase
- %\mkbibnamelast{\MakeUppercase{#1}}\isdot
- %\ifblank{#4}{}{\bibnamedelimd\mkbibnameaffix{#4}\isdot}%这句放到后面
- \ifblank{#2#3}{}{\revsdnamepunct}%
- \ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{\MakeUppercase{#2}}\isdot}%
- \ifblank{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
- \addcomma\addspace%
- \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}%
- }%
- }
-
- %GB/T 7714-2015 风格,大小写不变,根据bib文件内输入原样输出
- \renewbibmacro*{name:gblowercase}[4]{\bibauthorfont%
- \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
- \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
- \ifuseprefix
- {\usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifblank{#3}{}{%
- \ifcapital
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
- {\mkbibnameprefix{#3}\isdot}%
- \ifpunctmark{'}{}{\bibnamedelimc}}%
- \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{{#1}}}\isdot%\MakeUppercase %\mkbibnamelast{\MakeUppercase{#1}} %\MakeSentenceCase
- \ifblank{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamefirst{{#2}}\isdot}%
- \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}}
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{{#1}}}\isdot %大写,参考4.6.4 Miscellaneous Commands,\MakeUppercase %\MakeSentenceCase
- \ifblank{#2#3}{}{\revsdnamepunct}%
- \ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{{#2}}\isdot}%
- \ifblank{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
- \addcomma\addspace%
- \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}%
- }%
- }
-
- %中文常见风格,汉语拼音全拼模式
- \renewbibmacro*{name:gbpinyin}[4]{\bibauthorfont%
- \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
- \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
- \renewrobustcmd*{\bibnamedelima}{\mbox{-}}%
- \ifuseprefix
- {\usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifblank{#3}{}{%
- \ifcapital
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
- {\mkbibnameprefix{#3}\isdot}%
- \ifpunctmark{'}{}{\bibnamedelimc}}%
- \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeUppercase{#1}}}\isdot%\MakeUppercase %\mkbibnamelast{\MakeUppercase{#1}} %\MakeSentenceCase
- \ifblank{#2}{}{\revsdnamepunct\bibnamedelimd\MakeSentenceCase{\mkbibnamefirst{#2}}\isdot}%
- \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}}
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeUppercase{#1}}}\isdot %大写,参考4.6.4 Miscellaneous Commands,\MakeUppercase %\MakeSentenceCase
- \ifblank{#2#3}{}{\revsdnamepunct}%
- \ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{\MakeUppercase{#2}}\isdot}%
- \ifblank{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
- \addcomma\addspace%
- \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}%
- }%
- }
-
- %%biblatex<3.2版的情况,姓名的处理格式带参数
- \DeclareNameFormat{namefmtselected}{%
- \iffieldundef{namefmtid}{}%
- {\defcounter{gbnamefmtcase}{\thefield{namefmtid}}}%
- \ifcase\value{gbnamefmtcase}%
- \iffirstinits
- {\usebibmacro{name:gbuppercase}{#1}{#4}{#5}{#7}}
- {\usebibmacro{name:gbuppercase}{#1}{#3}{#5}{#7}}%
- \or
- \iffirstinits
- {\usebibmacro{name:gblowercase}{#1}{#4}{#5}{#7}}
- {\usebibmacro{name:gblowercase}{#1}{#3}{#5}{#7}}%
- \or
- \iffirstinits
- {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}}
- {\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}}%
- \ifblank{#3#5}
- {}
- {\usebibmacro{name:revsdelim}}%
- \or
- \iffirstinits
- {\usebibmacro{name:first-last}{#1}{#4}{#5}{#7}}
- {\usebibmacro{name:first-last}{#1}{#3}{#5}{#7}}%
- \or
- \usebibmacro{name:gbpinyin}{#1}{#3}{#5}{#7}%
- \or
- \ifnumequal{\value{listcount}}{1}
- {\iffirstinits
- {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}}
- {\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}}%
- \ifblank{#3#5}
- {}
- {\usebibmacro{name:revsdelim}}}
- {\iffirstinits
- {\usebibmacro{name:first-last}{#1}{#4}{#5}{#7}}
- {\usebibmacro{name:first-last}{#1}{#3}{#5}{#7}}}%
- \fi
- \usebibmacro{name:andothers}}
-}
-
-%
-% url和url日期格式
-%
-\renewbibmacro*{url+urldate}{%
- %\usebibmacro{url}%%更换url的位置,放到下面
- \iffieldundef{urlyear}%
- {}{%\setunit*{\addspace}%
- \usebibmacro{urldate}}%
- \setunit{\addperiod\addspace}%
- \usebibmacro{url}}
-\renewbibmacro*{url}{\printfield{url}}
-
-%
-% 日期信息的输出格式,针对biblatex<3.7版本
-%
-\defversion{3.4}{date}{
- \renewbibmacro*{urldate}{%
- \addthinspace\printtext{[}\printfield{urlyear}%
- \iffieldundef{urlmonth}{}{\bibrangedash\printfield{urlmonth}}%
- \iffieldundef{urlday}{}{\bibrangedash\printfield{urlday}}\printtext{]}}
-
- \newbibmacro*{newsdate}{%%新增加一个公告日期,公开日期或新闻日期
- \iffieldundef{year}{}{\printfield{year}%
- \iffieldundef{month}{}{\bibrangedash\printtext{\thefield{month}}%
- \iffieldundef{day}{}{\bibrangedash\printfield{day}}}}%
- }
-
- \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
- \ifboolexpr{%
- test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
- }%
- {}%更新或修改日期通常有day信息
- {\iffieldequalstr{year}{}{%替换\iffieldundef{year},因为year总是存在,但为空
- \iffieldundef{endyear}{%
- \iffieldundef{eventyear}{}{\printtext{\mkbibparens{\printtext{\printfield{eventyear}}%
- \iffieldundef{eventmonth}{}{\bibrangedash\thefield{eventmonth}}%
- \iffieldundef{eventday}{}{\bibrangedash\printfield{eventday}}}}%
- }%
- }{%
- \iffieldundef{endyear}{}{\printtext{\mkbibparens{\printtext{\printfield{endyear}}%
- \iffieldundef{endmonth}{}{\bibrangedash\thefield{endmonth}}%
- \iffieldundef{endday}{}{\bibrangedash\printfield{endday}}}}%
- }%
- }%
- }%
- {%
- \iffieldundef{year}{}{\printtext{\mkbibparens{\printtext{\printfield{year}}%
- \iffieldundef{month}{}{\bibrangedash\thefield{month}}%
- \iffieldundef{day}{}{\bibrangedash\printfield{day}}}}%
- }%
- }%
- }}%
-}
-
-%
-% 日期信息的输出格式,针对3.9>=biblatex>=3.7版本
-%
-\defversion{3.7}{date}{
- \DeclareFieldFormat{urldate}{##1}
- \renewbibmacro*{urldate}{%
- \addthinspace\printtext{[}\printurldate\printtext{]}}%能用高层命令+选项尽量用命令(比如这里的\printurldate),而不用\blx@edtfdate这种更底层的命令
-
- %
- % 专利的公告日期、或报纸的日期的输出宏
- % 20160701,v1.0,新增加
- % 20180405,v1.0k,为biblatexv3.7-3.9版本,出现多出点bug做处理,Hu Zhenzhen
- %
- % 原理方法:加上printtext避免破坏异步标点机制
- %
- \newbibmacro*{newsdate}{%
- \printtext{\blx@edtfdate{}{}}%
- }
-
- \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
- \ifboolexpr{%
- test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
- }%
- {}%更新或修改日期通常有day信息
- {\iffieldundef{year}{%
- \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\printtext{(}\printeventdate\printtext{)}}}%
- {\printtext{(}\printenddate\printtext{)}}%
- }{\iffieldequalstr{year}{}{%因为year存在,但为空
- }{\printtext{(}\blx@edtfdate{}{}\printtext{)}}%
- }%
- }}%
-}
-
-%
-% 日期信息的输出格式,针对biblatex>=3.10版本
-%
-\defversion{3.10}{date}{
- \DeclareFieldFormat{urldate}{##1}
- \renewbibmacro*{urldate}{%
- \addthinspace\printtext{[}\printurldate\printtext{]}}%能用高层命令+选项尽量用命令(比如这里的\printurldate),而不用\blx@edtfdate这种更底层的命令
-
- %
- % 专利的公告日期、或报纸的日期的输出宏
- % 20160701,v1.0,新增加
- % 20180405,为biblatexv3.10版本,出现多出点bug做处理,Hu Zhenzhen
- %
- % 原理方法:加上printtext避免破坏异步标点机制
- % 本可以用\printdate,但由于date选项设置为year,所以仅会给出年份
- % 所以无法再用选项设置的方法,印象需要用底层的命令
- % 这里可以用\blx@isodate,但用\blx@gbdate试图避免版本判断
- \newbibmacro*{newsdate}{%%
- \printtext{\blx@gbdate{}{}}%%\blx@isodate{}{}%
- }
-
- \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
- \ifboolexpr{%
- test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
- }%
- {}%更新或修改日期通常有day信息
- {\iffieldundef{year}{%
- \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\printtext{(}\printeventdate\printtext{)}}}%
- {\printtext{(}\printenddate\printtext{)}}%
- }{\iffieldequalstr{year}{}{%因为year存在,但为空
- }{\printtext{(}\blx@gbdate{}{}\printtext{)}}%
- }%
- }}%
-}
-
-%
-% 关联文献的输出格式,针对3.9>=biblatex>=3.7版本
-%
-% 原理方法:因为related宏中带有##了,所以无法封装到defversion中了。所以直接做判断
-% 下面这一段主要针对v3.8-3.10,因为我提问后,biblatex作者为3.11版增加了一个钩子控制relatedblock前的分隔符。
-\ifboolexpr{
-test{\iftoggle{iftleight}}
-or
-test{\iftoggle{iftlnine}}
-}{\renewbibmacro*{related}{%standard.bbx
- \ifboolexpr{ test {\iffieldundef{related}} or test {\ifrelatedloop} }
- {}
- {\usebibmacro{begrelated}%
- \def\bbx@tempa{}%
- \setcounter{bbx:relatedtotal}{0}%
- \def\do##1{%
- \entrydata{##1}{%
- \ifrelatedloop
- {}
- {\stepcounter{bbx:relatedtotal}%
- \gappto{\bbx@tempa}{##1,}}}}%
- \docsvfield{related}%
- \restorefield{related}{\bbx@tempa}%
- \ifnumgreater{\value{bbx:relatedtotal}}{0}
- {\listcsxadd{bbx:relatedloop}{\strfield{entrykey}}%
- \iffieldundef{clonesourcekey}
- {}
- {\listcsxadd{bbx:relatedloop}{\strfield{clonesourcekey}}}%
- \setcounter{bbx:relatedcount}{0}%
- \def\do{%
- \stepcounter{bbx:relatedcount}%
- \ifnumgreater{\value{bbx:relatedcount}}{0}%这里从1改为0
- {\ifcsundef{relateddelim\strfield{relatedtype}}
- {\printtext{\relateddelim}}
- {\printtext{\csuse{relateddelim\strfield{relatedtype}}}}}
- {}}%
- \ifbibmacroundef{related:\strfield{relatedtype}}
- {\appto{\do}{\usebibmacro{related:default}}}
- {\appto{\do}{\usebibmacro*{related:\strfield{relatedtype}}}}%
- \iffieldformatundef{related:\strfield{relatedtype}}
- {\def\bbx@tempa{related}}
- {\def\bbx@tempa{related:\strfield{relatedtype}}}%
- \iffieldformatundef{relatedstring:\strfield{relatedtype}}
- {\def\bbx@tempb{relatedstring:default}}
- {\def\bbx@tempb{relatedstring:\strfield{relatedtype}}}%
- \printtext[\bbx@tempa]{%
- \usebibmacro{begrelatedloop}%
- \iffieldundef{relatedstring}
- {\ifboolexpr{
- test {\ifnumgreater{\value{bbx:relatedtotal}}{1}}
- and
- test {\ifbibxstring{\thefield{relatedtype}s}}
- }
- {\printtext[\bbx@tempb]{%
- \bibstring[\mkrelatedstring]{\thefield{relatedtype}s}}}
- {\iffieldbibstring{relatedtype}
- {\printtext[\bbx@tempb]{%
- \bibstring[\mkrelatedstring]{\thefield{relatedtype}}}}
- {}}}
- {\iffieldbibstring{relatedstring}
- {\printtext[\bbx@tempb]{%
- \bibstring[\mkrelatedstring]{\thefield{relatedstring}}}}
- {\printfield[\bbx@tempb]{relatedstring}}}%
- \docsvfield{related}%
- \usebibmacro{endrelatedloop}}}%
- {}%
- \usebibmacro{endrelated}}}
-}{}
-
-%
-% 关联文献块前的分隔符,针对biblatex3.11
-%
-% 原理方法:因为增加了begrelateddelim钩子,所以不需要重定义related输出宏
-\defversion{3.11}{related}{
-\renewcommand{\begrelateddelim}{\adddot\newline\nobreak}
-}
-
-\iftoggle{iftlfive}{\switchversion{3.4}{date}}{}%biblatex<=3.2
-\iftoggle{iftlsix}{\switchversion{3.4}{date}}{}%3.3<=biblatex<=3.6
-\iftoggle{iftlseven}{\switchversion{3.7}{date}}{}%biblatex=3.7
-\iftoggle{iftleight}{\switchversion{3.7}{date}}{}%3.8<=biblatex<=3.9
-\iftoggle{iftlnine}{\switchversion{3.10}{date}}{}%biblatex3.10
-\iftoggle{iftlatest}{\switchversion{3.10}{date}\switchversion{3.11}{related}}{}%biblatex最新
-
-%
-% 调整doi+eprint+url格式
-%
-% 原理方法:源来自standard.bbx,因为页码后面直接跟引用日期,没有标点所以去掉其中的标点。
-\renewbibmacro*{doi+eprint+url}{%
-% \iftoggle{bbx:doi}%把doi的位置放到url后面
-% {\printfield{doi}}
-% {}%
- %\newunit\newblock
- \iftoggle{bbx:eprint}
- {\iffieldundef{eprint}{}{\newunit\usebibmacro{eprint}}}%必须要做域判断否则容易产生多余的标点
- {}%
- %\newunit\newblock
- \iftoggle{bbx:url}
- {\usebibmacro{url+urldate}}
- {}
- \newunit\newblock
- \iftoggle{bbx:doi}
- {\printfield{doi}}
- {}}
-
-%
-% 调整页码的格式,即chapter+pages格式
-%
-\renewbibmacro*{chapter+pages}{%
-\iftoggle{bbx:gbstrict}{}{%
- \printfield{chapter}}%
- \iffieldundef{pages}{}{%这里增加一个判断,当没有页码时就不输出
- \setunit{\bibpagespunct}%
- \printfield{pages}}%
- %\newunit %这里的标点去掉
- }
-
-%
-% 当location等出版项超过maxitem缩减后不再输出etal
-%
-\DeclareListFormat{location}{%
- \usebibmacro{list:delim}{#1}%
- #1\isdot}
-\DeclareListAlias{institution}{location}
-\DeclareListAlias{publisher}{location}
-
-% 新增一个样式用于输出连续出版物的地址,单位,时间,
-% 用于periodical连续出版物的出版社和地址的处理
-%
-% v1.0k,20180425,为出版信息增加字体控制命令,hzz
-% %类似\newbibmacro*{publisher+location+date}
-\newbibmacro*{location+institution+date}{\bibpubfont%
-\iftoggle{bbx:gbpub}%
-{\testCJKfirst{userd}%
-\ifboolexpr{%
-test {\iflistundef{location}} and test {\iflistundef{institution}}%
-}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress}\space :\space\str@nopublisher]}%
-{\printtext{[S.l.\space :\space s.n.\adddot]}}%
-}{%
-\iflistundef{location}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress]}}{\printtext{[S.l.\adddot]}}}%
- {\printlist{location}}%
-\addcolon\addspace%
-\iflistundef{institution}{%
-\iftoggle{ifCJKforgbt}{\printtext{[\str@nopublisher]}}{\printtext{\mkbibbrackets{s.n.}}}}% \bibstring{nopublisher}%[s.n.\adddot]
-{\printlist{institution}}}%
-\setunit{\addcomma\addspace}%
- %\usebibmacro{date}%
- \printfield{year}%
- \bibrangedash%
- \iffieldundef{endyear}{}{\printfield{endyear}}%
- \newunit}%
-{ \printlist{location}%
- \iflistundef{institution}%
- {\setunit*{\addcomma\space}}
- {\setunit*{\addcolon\space}}%
- \printlist{institution}%
- \setunit*{\addcomma\space}%
- \usebibmacro{date}%
- \newunit}%
-}
-%
-% 通用的出版社和地址的处理
-%
-% 原理方法:当没有出版社地址时,直接判断title的信息是否是中文,若为中文,则写出版地不详,否则用英文的字符表示。
-% 事实上title对于每个文献来说是必须的,所以用它判断是最快的,而且一般标题和出版社的语言是一样的。
-% 注意标准standard类型,因为当没有出版项时直接省略,所以做特殊处理
-\renewbibmacro*{publisher+location+date}{\bibpubfont%
-\iftoggle{bbx:gbpub}%
-{\testCJKfirst{userd}%
- \ifboolexpr{ test {\iflistundef{location}} and test {\iflistundef{publisher}} }%
- {\iffieldequalstr{note}{standard}{}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress}\space :\space\str@nopublisher]}{\printtext{[S.l.\space :\space s.n.\adddot]}}}}%
- {\iflistundef{location}{%\adddot
- \iffieldequalstr{note}{standard}{}%%从gbt7714-2015标准第19页看到,标准存在出版项时输出,没有时完全省略。
- {\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress]}\addcolon\addspace}{\printtext{[S.l.\adddot]}\addcolon\addspace}}}% \bibstring{noaddress}
- {\printlist{location}\addcolon\addspace}%%\addcolon\addspace%
- \iflistundef{publisher}{%
- \iffieldequalstr{note}{standard}{}%
- {\iftoggle{ifCJKforgbt}{\printtext{[\str@nopublisher]}\setunit{\adddot\addspace}\setunit*{\addcomma\addspace}}%
- {\printtext{\mkbibbrackets{s.n.}}\setunit{\adddot\addspace}\setunit*{\addcomma\addspace}}}}%
- {\printlist{publisher}}}%
-\setunit*{\addcomma\addspace}%\addcomma\addspace%
-\usebibmacro{date}%%\newunit %去掉这个标点
-}%
-{\printlist{location}%
- \iflistundef{publisher}
- {\setunit*{\addcomma\space}}
- {\setunit*{\addcolon\space}}%
- \printlist{publisher}%
- \setunit*{\addcomma\space}%
- \usebibmacro{date}%%\newunit
- }%
-}
-
-%
-% 修改了一个institution+location+date用于manual、report、thesis等类型
-%
-% 20180425,v1.0k,增加了字体控制命令,hzz
-% 20190105,v1.0o,加了一个编组避免\usebibmacro{date}把month和day信息去掉
-\renewbibmacro*{institution+location+date}{\bibpubfont%当没有institution时不处理。
-{\printlist{location}%%加了一个编组避免\usebibmacro{date}把month和day信息去掉
- \iflistundef{institution}
- {\setunit*{\addcomma\space}}
- {\setunit*{\addcolon\space}}%
- \printlist{institution}%
- \setunit*{\addcomma\space}%
- \usebibmacro{date}%
- %\newunit
- }}
-
-%
-% 对volume卷信息格式做出修改
-% v1.0o,20190105,hzz
-%
-\DeclareFieldFormat{volume}{%
-\testCJKfirst{userd}%
-\iftoggle{ifCJKforgbt}%
-{\bibstring{serialcn}#1\bibstring{volumecn}}%
-{\bibstring{volume}~#1}%
-}% volume of a book
-\DeclareFieldFormat[article,periodical]{volume}{#1}% volume of a journal
-
-%
-% 对number册信息格式做出修改
-% v1.0o,20190105,hzz
-%
-\DeclareFieldFormat{number}{#1}%
-\DeclareFieldFormat[book,collection,inbook,%
-incollection,proceedings,inproceedings]{number}{%
-\testCJKfirst{userd}%
-\iftoggle{ifCJKforgbt}%
-{\bibstring{serialcn}#1\bibstring{numbercn}}%
-{#1}%
-}%
-
-%
-% 对edition版本信息格式做出修改
-%
-\DeclareFieldFormat{edition}{\bibtitlefont%源来自biblatex.DEF
-\testCJKfirst{userd}%
-\iftoggle{ifCJKforgbt}%
-{\ifinteger{#1}%
-{\printtext{#1\str@edition}}%
-{#1\isdot}}%
-{\ifinteger{#1}%
-{\mkbibordedition{#1}~\bibstring{edition}}%
-{#1\isdot}}}
-
-%
-% 对version的版本信息做出修改
-%
-\DeclareFieldFormat{version}{\bibtitlefont%源来自biblatex.DEF
-\testCJKfirst{userd}%
- \ifinteger{#1}%
- {\iftoggle{ifCJKforgbt}{\printtext{#1\str@edition}}%
- {\mkbibordedition{#1}~\bibstring{version}}}%
- {#1\isdot}}
-
-%
-% 作者域的输出控制宏
-%
-% 当两篇文献作者相同且连续时,标准样式是用-代替后面的文献的作者,这里取消这一设置
-\renewbibmacro*{author}{%author for biblatex version <=3.7
- \ifboolexpr{
- test \ifuseauthor
- and
- not test {\ifnameundef{author}}
- }
- {\usebibmacro{bbx:dashcheck}
- {%\bibnamedash
- \printnames{author}%
- }%
- {\usebibmacro{bbx:savehash}%
- \printnames{author}%
- \iffieldundef{authortype}
- {\setunit{\addspace}}
- {\setunit{\addcomma\space}}}%
- \iffieldundef{authortype}
- {}
- {\usebibmacro{authorstrg}%
- \setunit{\addspace}}}%
- {\global\undef\bbx@lasthash
- \usebibmacro{labeltitle}%
- \setunit*{\addspace}}%
- \setunit{\addcomma\space}%增加一个逗号
- \usebibmacro{date+extrayear}
- }
-
-%
-% 设置标注和文献表中作者和年份之间的分隔符
-%
-% 原理方法:注意3.4版已经有\nameyeardelim,上述修改的author宏虽然定义了著录表中的标点,但标注中的未定义
-% 设置因为mergedate默认为true时的情况,来自\bbx@opt@mergedate@compact
-% 去掉作者后面包围年份的圆括号
-% 这里因为biblatex版本的不同,做不同的处理,texlive2017版/2016等低版本分开处理
-\defversion{3.0}{dateextra}{
-\renewcommand*{\nameyeardelim}{\addcomma\space}
- \renewbibmacro*{date+extrayear}{%%重设date+extrayear格式,源来自authoryear.BBX
- \iffieldundef{\thefield{datelabelsource}year}
- {}
- {\printtext{%[parens]%这里把括号去掉
- \iffieldsequal{year}{\thefield{datelabelsource}year}
- {\printdateextralabel}%
- {\printfield{labelyear}%
- \printfield{extrayear}}}}}%
- \newbibmacro{date+extradate}{\usebibmacro{date+extrayear}}
-}
-
-\defversion{3.4}{dateextra}{
- \DeclareDelimFormat{nameyeardelim}{\addcomma\space}
- \DeclareDelimFormat[bib,biblist]{nameyeardelim}{\addcomma\space}
- \renewbibmacro*{date+extrayear}{%%重设date+extrayear格式,源来自authoryear.BBX
- \iffieldundef{\thefield{datelabelsource}year}
- {}
- {\printtext{%[parens]%这里把括号去掉
- \iffieldsequal{year}{\thefield{datelabelsource}year}
- {\printdateextralabel}%
- {\printfield{labelyear}%
- \printfield{extrayear}}}}}%
- \newbibmacro{date+extradate}{\usebibmacro{date+extrayear}}
-}
-\defversion{3.7}{dateextra}{
- \DeclareDelimFormat{nameyeardelim}{\addcomma\space}
- \DeclareDelimFormat[bib,biblist]{nameyeardelim}{\addcomma\space}
- \renewbibmacro*{date+extrayear}{%以前的\printdateextralabel宏变为了\printlabeldateextra
- \iffieldundef{labelyear}
- {}
- {\printtext{%[parens]
- \iffieldsequal{year}{labelyear}
- {\printlabeldateextra}%
- {\printfield{labelyear}%
- \printfield{extrayear}}}}}%
-
-\newbibmacro{date+extradate}{\usebibmacro{date+extrayear}}
-}
-\defversion{3.8}{dateextra}{
- \DeclareDelimFormat{nameyeardelim}{\addcomma\space}
- \DeclareDelimFormat[bib,biblist]{nameyeardelim}{\addcomma\space}
-%注意这里当没有作者只有标题时在年份之前的标点是否需要标准并未涉及,所以未做处理。
-\renewbibmacro*{author}{%以前的date+extrayear变为date+extradate,所以对3.8以上版本重定义一下author
- \ifboolexpr{
- test \ifuseauthor
- and
- not test {\ifnameundef{author}}
- }
- {\usebibmacro{bbx:dashcheck}
- {%\bibnamedash %去掉相同作者用横线代替的处理
- \printnames{author}\setunit{\printdelim{nameyeardelim}}%把标点也带上
- }
- {\usebibmacro{bbx:savehash}%
- \printnames{author}%
- \iffieldundef{authortype}
- {\setunit{\printdelim{nameyeardelim}}}
- {\setunit{\printdelim{authortypedelim}}}}%
- \iffieldundef{authortype}
- {}
- {\usebibmacro{authorstrg}%
- \setunit{\printdelim{nameyeardelim}}}}%
- {\global\undef\bbx@lasthash
- \usebibmacro{labeltitle}%
- \setunit*{\printdelim{nonameyeardelim}}}%
- \usebibmacro{date+extradate}}
- \renewbibmacro*{date+extradate}{%
- \iffieldundef{labelyear}
- {}
- {\printtext{%[parens]%这里去掉括号
- \iflabeldateisdate
- {\printdateextra}
- {\printlabeldateextra}}}}%
-
-}
-
-
-%
-%为mergedate增加选项none,即实现年份不提前到作者后面的标签中
-%也不打印用于区分同作者同年份文献的标识符如(a,b,c)
-%目的是实现一些特殊的文献表样式比如ucas的作者年制
-%v1.0q,20190212,hzz
-\def\bbx@opt@mergedate@none{%
- \renewbibmacro*{date+extradate}{%
- \iffieldundef{labelyear}
- {}
- {}}%[parens]\printtext{\printlabeldateextra}
-\renewbibmacro*{bbx:ifmergeddate}{\@secondoftwo}%这一句用于3.12版本
-\renewbibmacro*{date}{\printdate}%这一句用于biblatex3.11以下版本
-\renewbibmacro*{issue+date}{%去掉括号
-\setunit{\addcomma\addspace}%
- \printtext{%去掉了[parens]
- \iffieldundef{issue}
- {%\usebibmacro{date}
- \iffieldundef{note}{\usebibmacro{date}}%判断一下,是否是报纸
- {\iffieldequalstr{note}{news}{\usebibmacro{newsdate}}%判断是否为报纸
- {\usebibmacro{date}}%
- }}%
- {\iftoggle{bbx:gbstrict}{}{\printfield{issue}%
- \setunit*{\addspace}}%
- %\usebibmacro{date}
- \iffieldundef{note}{\usebibmacro{date}}%判断一下,是否是报纸
- {\iffieldequalstr{note}{news}{\usebibmacro{newsdate}}%判断是否为报纸
- {\usebibmacro{date}}%
- }}}%
- %\newunit
- }%
- }
-
-\iftoggle{iftlfive}{\switchversion{3.0}{dateextra}}{}%biblatex<=3.2
-\iftoggle{iftlsix}{\switchversion{3.4}{dateextra}}{}%3.3<=biblatex<=3.6
-\iftoggle{iftlseven}{\switchversion{3.7}{dateextra}}{}%biblatex=3.7
-\iftoggle{iftleight}{\switchversion{3.8}{dateextra}}{}%<=3.8biblatex<=3.9
-\iftoggle{iftlnine}{\switchversion{3.8}{dateextra}}{}%biblatex3.10
-\iftoggle{iftlatest}{\switchversion{3.8}{dateextra}}{}%biblatex最新3.11
-
-%
-% 修改析出文献的文集的标题与附加标题间的符号
-%
-\renewbibmacro*{booktitle}{%
- \ifboolexpr{
- test {\iffieldundef{booktitle}}
- and
- test {\iffieldundef{booksubtitle}}
- }
- {}
- {\printtext[booktitle]{\bibtitlefont%
- \printfield[titlecase]{booktitle}%
- \setunit{\subtitlepunct}%
- \printfield[titlecase]{booksubtitle}}%
- \newunit%标点换成下一句
- \setunit{\subtitlepunct}}%
- \printfield{booktitleaddon}}
-
-%
-% 调整期刊名的格式
-%
-% 原理方法:因为作者年制年份提到前面,因此涉及到期刊名与后面的卷期的关系。
-% v1.0k,20180425,增加了字体控制命令,hzz
-\renewbibmacro*{journal+issuetitle}{\bibpubfont%源来自standard.bbx
- \usebibmacro{journal}%
- %\setunit*{\addspace}%
- %\setunit*{\addcomma\addspace}%修改为增加一个逗号
- \iffieldundef{series}%
- {}%
- {\newunit%
- \printfield{series}%
- \setunit{\addspace}}%
- %\usebibmacro{volume+number+eid}%
- %\setunit{\addspace}%
- \usebibmacro{issue+date}%
- %\setunit{\addcolon\space}%
- \iffieldundef{volume}{}{\setunit{\addcomma\space}}%
- %换成逗号和空格
- \usebibmacro{issue}%
- \usebibmacro{volume+number+eid}%把卷期放到年份后面
- %\newunit
- }
-
-%
-% 增加一个number带括号的格式,避免使用mkbibparens而引入一个不必要的空格
-%
-\DeclareFieldFormat{addnumflag}{%
-\nobreak\printtext{(}\nobreak #1\nobreak\printtext{)}}
-
-%
-% 调整journal输出
-%
-% 原理方法:首先判断子标题,然后再设置标点。
-% 避免直接设置标点后,当volume不存在时需要使用\nopuct去标点进而引入不必要的空格
-\renewbibmacro*{journal}{%
- \iffieldundef{journaltitle}%
- {}%
- {\printtext[journaltitle]{%
- \printfield[titlecase]{journaltitle}%
- \iffieldundef{journalsubtitle}{}{\setunit{\subtitlepunct}%
- \printfield[titlecase]{journalsubtitle}}}}}
-
-
-
-%
-% 调整期刊卷和期的格式
-%
-\renewbibmacro*{volume+number+eid}{%源来自standard.bbx
-\iftoggle{bbx:gbfieldstd}{%
- \printfield{volume}%
- \setunit*{\adddot}%
- \printfield{number}%
- \setunit{\addcomma\space}%
- \printfield{eid}}{%
- \printfield{volume}%
- %\setunit*{\adddot}%去掉点号
- %\printfield{number}%
- \iffieldundef{number}{}{\printfield[addnumflag]{number}}%区别于顺序编码制
- \iffieldundef{eid}{}{%
- \setunit{\addcomma\space}%
- \printfield{eid}}}}
-
-%
-% 调整期刊年份的格式
-%
-% 原理方法:原在authoryear.BBX中\bbx@opt@mergedate@compact中定义
-% 当issue存在时,才设置newunit。避免直接设置标点后,当volume不存在是需要使用\nopuct去标点进而引入不必要的空格
- \renewbibmacro*{issue+date}{%
- \iffieldundef{issue}%
- {}%
- {\iftoggle{bbx:gbstrict}{}{\printtext[parens]{\printfield{issue}}\newunit}}}
-
-
-
-%
-% 调整页码前的标点和去掉期刊文章等页码后面的标点
-%
-\renewbibmacro*{note+pages}{%源来自standard.bbx
- %\printfield{note}%不要note,note用来判断是否是报纸newspaper
- \iffieldundef{pages}{}{
- \setunit{\bibpagespunct}%
- \printfield{pages}}%
- %\newunit
- }
-
-%
-% 编者的符号修改一下
-% v1.0 2016-07-01
-% v1.0q 2019-03-01 hzz 修改editortype前的标点
-%
-\renewbibmacro*{editor}{%
- \ifboolexpr{
- test \ifuseeditor
- and
- not test {\ifnameundef{editor}}
- }
- {\usebibmacro{bbx:dashcheck}
- {%\bibnamedash
- \printnames{editor}%
- }
- {\printnames{editor}%
- %\setunit{\printdelim{editortypedelim}}%
- %\usebibmacro{bbx:savehash}
- }%
- \usebibmacro{editorstrg}%
- %\clearname{editor}%
- \setunit{\printdelim{nameyeardelim}}}%
- {\global\undef\bbx@lasthash
- \usebibmacro{labeltitle}%
- \setunit*{\printdelim{nonameyeardelim}}}%
- \ifboolexpr{%
-test {\ifentrytype{inbook}}
-or
-test {\ifentrytype{incollection}}
-or
-test {\ifentrytype{inproceedings}}
-or
-test {\ifentrytype{conference}}
-}%
-{}%
-{\usebibmacro{date+extradate}}}
-
-%
-% 编者类型做一修改
-% v1.0 2016-07-01
-% v1.0q 2019-03-01 hzz 修改editortype不同语言的不同本地化字符串
-%
-\renewbibmacro*{editorstrg}{%源来自biblatex.DEF
- \printtext[editortype]{%
- \iffieldundef{editortype}
- {%
-% \ifboolexpr{ %这一段去掉,未定义编者类型情况下不处理
-% test {\ifnumgreater{\value{editor}}{1}}
-% or
-% test {\ifandothers{editor}}
-% }
-% {\bibstring{editors}}
-% {\bibstring{editor}}
- }
- {\ifbibxstring{\thefield{editortype}} %定义编者类型情况下处理,以后根据需要修改
- {\ifboolexpr{
- test {\ifnumgreater{\value{editor}}{1}}
- or
- test {\ifandothers{editor}}
- }
- {\printdelim{streditortypes}}
- {\printdelim{streditortype}}}
- {\thefield{editortype}}}%
- }}
-
-%
-% 编者类型的本地化字符串输出
-% v1.0q 2019-03-01 hzz
-% 能对不同条目类型作格式设置的域格式,能对不同环境做格式设置的分隔符
-% 能对不同文境作设置的包括排序,标签等
-% 这里因为考虑可能标注和文献表中存在不同,所以用分隔符来输出本地化字符串
-%
-\DeclareDelimFormat{streditortypes}{%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbbiblocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{\thefield{editortype}scn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{\thefield{editortype}skr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{\thefield{editortype}sjp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
- \or%
- \bibstring{\thefield{editortype}scn}%
- \or%
- \addcomma\addthinspace\bibstring{\thefield{editortype}s}%
- \fi}
-%
-\DeclareDelimFormat{streditortype}{%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbbiblocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{\thefield{editortype}cn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{\thefield{editortype}kr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{\thefield{editortype}jp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
- \or%
- \bibstring{\thefield{editortype}cn}%
- \or%
- \addcomma\addthinspace\bibstring{\thefield{editortype}}%
- \fi}
-
-
-%
-% bookauthor域的输出,
-% v1.0q 2019-03-01 hzz
-% 不再对editor和bookauthor做sourcemap,而是下面的宏内逻辑代替,
-% 使得除使用bookauthor外也可以使用editor,便于在使用editor时使用editortype
-\renewbibmacro*{bybookauthor}{%
- \ifnameundef{bookauthor}%
- {\ifnameundef{editor}%
- {}%
- {\ifnamesequal{author}{editor}%
- {}{\usebibmacro{editor}}}%
- }%
- {\ifnamesequal{author}{bookauthor}%
- {}{\printnames{bookauthor}}%
- }%
-}
-
-%
-% 修改期刊的标题
-%
-\renewbibmacro*{periodical}{%源来自biblatex.DEF
- \iffieldundef{title}
- {}
- {\printtext[title]{\bibtitlefont%
- \printfield[titlecase]{title}%
- %\setunit{\subtitlepunct}%
- \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
- {}{\setunit{\subtitlepunct}
- \printfield[titlecase]{subtitle}}%
- %}%把编组结束移到后面去
- \iftoggle{bbx:gbtype}{%
- \iffieldundef{usera}{}{%在标题后直接给出文献标识字母
- \printfield[gbtypeflag]{usera}}}{}
- }}
- }
-
-%
-% 期刊的标题做修改
-%
-\renewbibmacro*{title+issuetitle}{%源来自standard.BBX
- \usebibmacro{periodical}%
- %\setunit*{\addspace}%
- \setunit*{\adddot\addspace}%标点修改为句点
- \iffieldundef{series}
- {}
- {\newunit
- \printfield{series}%
- \setunit{\addspace}}%
- \usebibmacro{periodical+issue}%将issue调整到上面来,并修改
-\iffieldundef{number}{}{%%进一步处理有范围的数字
- \multinumberparser{\thefield{number}}}%
- \iffieldundef{volume}%
- {\printfield{year}%
- \printtext{\mkbibparens{\multinumberfirst}}%
- \bibrangedash%
- \iffieldundef{endyear}{}{\printfield{endyear}\printtext{\mkbibparens{\multinumbersecond}}}%
- }%
- {\multivolparser{\thefield{volume}}%
- \printfield{year}%
- \setunit{\addcomma\space}%将冒号修改为逗号
- \printtext{\multivolfirst}%
- \printtext{\mkbibparens{\multinumberfirst}}%
- \bibrangedash%
- \iffieldundef{endyear}{}{%
- \printfield{endyear}%
- \setunit{\addcomma\space}%将冒号修改为逗号
- \printtext{\multivolsecond}%
- \printtext{\mkbibparens{\multinumbersecond}}}%
- }%
- \setunit{\addcomma\space}%
- \printfield{eid}%
- \setunit{\addspace}%
- %\usebibmacro{issue+date}%
- %\setunit{\addcolon\space}%
- \usebibmacro{issue}%
- \newunit}
-
-%
-% 新增一个样式用于调整期刊年份的格式,只打印年份
-%
-\newbibmacro*{periodical+issue}{%
- \printtext{%去掉了[parens]
- \iffieldundef{issue}
- {%\usebibmacro{date}%修改为下一句
- }%
- {\printfield{issue}%
- \setunit*{\addspace}%
- %\usebibmacro{date}%修改为下一句
- }%
- }%
- %\newunit
-}
-
-%
-% 重设专利title的输出,将文献类型标识符输出出去
-%
-\newbibmacro*{patenttitle}{%原输出来自biblatex.def文件
- \ifboolexpr{%
- test{\iffieldundef{title}}%
- and%
- test{\iffieldundef{subtitle}}%
- }%
- {}%
- {\printtext[title]{\bibtitlefont%
- \printfield[titlecase]{title}%
- \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
- {}{\setunit{\subtitlepunct}%
- \printfield[titlecase]{subtitle}}%
- \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
- {\setunit{\subtitlepunct}\printfield{titleaddon}}%
- \setunit{\subtitlepunct}\printfield{number}%写专利号
- \iftoggle{bbx:gbtype}{\printfield[gbtypeflag]{usera}}{}%
- %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
- %\newunit
- }%
-}%
-}
-
-
-
-%
-% 修改in:用于inbook、incollection、inproceedings等类型
-% 2018.04.20,v1.0k,renewed marco,by hzz
-% 20190212,v1.0q,增加中英文区分,by hzz
-%
-% 原理方法:使用bibmacro{in:}改变了以前在driver中直接输出//的方式,同时也简化了标点控制。
-\renewbibmacro*{in:}{%
- \iftoggle{bbx:gbpunctin}{\printtext{\allowbreak\texttt{//}\allowbreak}}%\addthinspace
- {\setunit{\adddot\addspace}%
- \iffieldequalstr{userd}{chinese}%
- {\printtext{\bibstring{incn}}}%
- {\printtext{\bibstring{in}}}%
- }}%\newunit\newblock\intitlepunct
-
-%
-% 修改type域的输出格式
-% 2019.02.12,v1.0q,byhzz
-% 使其可以区分中英文输出不同的格式,比如博士论文英文输出PHD thesis,中文则是博士学位论文
-\DeclareFieldFormat{type}%
-{\iffieldequalstr{userd}{chinese}%
- {\ifbibxstring{#1cn}{\bibxstring{#1cn}}{#1}}%
- {\ifbibstring{#1}{\bibstring{#1}}{#1}}%
-}
-
-
-%
-% 修改series域的输出格式
-% 2019.05.01,v1.0r,byhzz
-\renewbibmacro*{series+number}{%
- \printfield{series}%
- %\setunit*{\addspace}%
- %\printfield{number}%
- %\newunit
- }
-
-%=====================================================================
-%设置驱动格式
-%=====================================================================
-%
-% book条目类的驱动
-%
- \DeclareBibliographyDriver{book}{%源来自standard.bbx文件
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
-\usebibmacro{author/editor+others/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
-\usebibmacro{maintitle+title}%
-\iftoggle{bbx:gbstrict}{}{%
-\newunit
-\printlist{language}%
-\newunit\newblock%
-\usebibmacro{byauthor}%
-\newunit\newblock}%
-\usebibmacro{byeditor+others}%
-\newunit
-\printfield{edition}%
-\newunit\newblock%%
-\iftoggle{bbx:gbstrict}{}{%
-\iffieldundef{maintitle}%
-{\printfield{volume}%
-\printfield{part}}%
-{}%
-\newunit%
-\printfield{volumes}%
-\newunit\newblock%
-\usebibmacro{series+number}}%
-\newunit\newblock%
-%\printfield{note}%
-%\newunit\newblock%
-\usebibmacro{publisher+location+date}%
-%\newunit\newblock %这里标点去掉
-\usebibmacro{chapter+pages}%
- \iffieldundef{url}{}{%当没有网址时也不输出
- \usebibmacro{modifydate}}%带括号的修改或更新日期,
-\usebibmacro{doi+eprint+url}%从下面移动到上面来,因为gbt2015的url需直接放在页码后面。
- \newunit\newblock%
- \printfield{pagetotal}%
- \newunit\newblock%
- \iftoggle{bbx:isbn}
- {\printfield{isbn}}
- {}%
- \newunit\newblock
- %\usebibmacro{doi+eprint+url}%
- %\newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-
-
-
-%
-% 期刊文章,连续出版物中的析出文献的格式
-%
- \DeclareBibliographyDriver{article}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}%
- \newunit\newblock
- \usebibmacro{bytranslator+others}%
- \newunit\newblock
- \printfield{version}}%
- \newunit\newblock
- %\usebibmacro{in:}% 不使用in来表示期刊等连续出版物
- \usebibmacro{journal+issuetitle}%
-% \newunit
-% \usebibmacro{byeditor+others}%
-% \newunit
- \usebibmacro{note+pages}%
- \iffieldequalstr{note}{news}{}{%当是新闻时不输出修改或更新日期
- \iffieldundef{url}{}{%当没有网址时也不输出
- \iftoggle{bbx:url}{%当url选项为false时,也不输出
- \usebibmacro{modifydate}}{}}}%带括号的修改或更新日期,
- \usebibmacro{doi+eprint+url}%从后面移上来,调整url和页码之间的位置
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{issn}}
- {}%
- \newunit\newblock
- %\usebibmacro{doi+eprint+url}%
- %\newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-
-%
-% 连续出版物的驱动
-%
- \DeclareBibliographyDriver{periodical}{%源来自standard.BBX
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{editor}%
- %\setunit{\labelnamepunct}\newblock
- \newunit\newblock %删除上面一行,添加这一行
- \usebibmacro{title+issuetitle}%
- \newunit\newblock%
- \usebibmacro{location+institution+date}%添加这一行用于输出地址,单位和时间
- \newunit\newblock%添加这一行
- \iftoggle{bbx:gbstrict}{}{%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byeditor}%
- \newunit\newblock
- \printfield{note}%
- \newunit\newblock}
- \iftoggle{bbx:isbn}
- {\printfield{issn}}
- {}%
- \newunit\newblock
- \usebibmacro{doi+eprint+url}%
- \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-%
-% 专利文献驱动
-%
- \DeclareBibliographyDriver{patent}{%源来自standard.BBX
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- %\usebibmacro{title}%
- \usebibmacro{patenttitle}%给出专利专用的标题输出
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}}%
- \newunit\newblock
- \printfield{type}%
- \setunit*{\addspace}%
- %\printfield{number}%已放到patenttitle中处理
- \iflistundef{location}
- {}
- {\setunit*{\addspace}%
- \printtext{%[parens]
- \printlist[][-\value{listtotal}]{location}}}%
- \newunit\newblock
- \usebibmacro{byholder}%
- \newunit\newblock
- \printfield{note}%
- \newunit\newblock
- \usebibmacro{newsdate}%
- %\newunit\newblock
- \usebibmacro{doi+eprint+url}%
- \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-
-%
-% 在线文献驱动
-%
-\DeclareBibliographyDriver{online}{%源来自standard.BBX
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/editor+others/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}%
- \newunit\newblock
- \usebibmacro{byeditor+others}%
- \newunit\newblock
- \printfield{note}}%
- \newunit
- \printfield{version}%
- \newunit\newblock
-% \printlist{organization}%
- \printlist{institution}%
- \newunit\newblock
-\ifboolexpr{%
-test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
-}{\usebibmacro{date}}%
-{\usebibmacro{modifydate}}%修改或更新日期,为带括号的时间
- \usebibmacro{url+urldate}%从下面移上来
- \newunit\newblock
- \iftoggle{bbx:eprint}
- {\usebibmacro{eprint}}
- {}%
- \newunit\newblock
- %\usebibmacro{url+urldate}%
- %\newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-
-
-
-%
-% 报告类型驱动
-% 当有网址无出版项时,用online输出
-%
-\DeclareBibliographyDriver{report}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}}%
- \newunit\newblock
- \usebibmacro{byeditor+others}%增加的译者信息
- \newunit\newblock
- \printfield{type}%
- \setunit*{\addspace}%
- \printfield{number}%
- \newunit\newblock
- \printfield{version}%
- \newunit
- \printfield{note}%
- \newunit\newblock
- \usebibmacro{publisher+location+date}%
- %\newunit\newblock
- \usebibmacro{chapter+pages}%
- \usebibmacro{doi+eprint+url}%
- \newunit
- \printfield{pagetotal}%
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{isrn}}
- {}%
- \newunit\newblock
-% \usebibmacro{doi+eprint+url}%
-% \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-%
-% 论文、手册类型驱动
-% 2016-11-11,增加了译者信息
-%
-\DeclareBibliographyDriver{manual}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}}%
- \newunit\newblock
- \usebibmacro{byeditor+others}%增加的译者信息
- \newunit\newblock
- \iftoggle{bbx:gbfieldtype}{%
- \printfield{type}%
- \setunit*{\addspace}%
- }{}%
- \printfield{number}%
- \newunit\newblock
- \printfield{version}%
- \newunit
- \printfield{note}%
- \newunit\newblock
- \usebibmacro{institution+location+date}%
- %\newunit\newblock
- \usebibmacro{chapter+pages}%
- \iffieldundef{url}{}{%当没有网址时也不输出修改或更新日期
- \usebibmacro{modifydate}}%修改或更新日期为带括号的时间
- \usebibmacro{doi+eprint+url}%
- \newunit
- \printfield{pagetotal}%
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{isrn}}
- {}%
- \newunit\newblock
-% \usebibmacro{doi+eprint+url}%
-% \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-%
-% 备选类型驱动
-%
-% 利用biblatex的misc驱动
-\DeclareBibliographyDriver{misc}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/editor+others/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
-\iftoggle{bbx:gbstrict}{}{%
- \newunit
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}%
- \newunit\newblock
- \usebibmacro{byeditor+others}}%
- \newunit\newblock
- \printfield{howpublished}%
- \newunit\newblock
- \printfield{type}%
- \newunit
- \printfield{version}%
- \newunit
- \printfield{note}%
- \newunit\newblock
- \usebibmacro{institution+location+date}%
- %\usebibmacro{organization+location+date}%
- %\newunit\newblock
- \usebibmacro{doi+eprint+url}%
- \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-
-
-
-
-%
-% 专著中的析出文献的格式修改
-%
-\DeclareBibliographyDriver{inbook}{%源来自standard.bbx
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
-\usebibmacro{title}%
-\usebibmacro{in:}%
-%\printtext{\texttt{//}\addthinspace}%
- \usebibmacro{bybookauthor}%
- \ifnameundef{bookauthor}{%
- \ifnameundef{editor}{}{\newunit}%
- }{\newunit}%替换下一句
- %\newunit\newblock
-\iffieldundef{series}{}{\usebibmacro{series+number}\setunit{\addcolon\addspace}}%为处理一些存在series的情况而增加
- \usebibmacro{maintitle+booktitle}%
-\iffieldundef{volume}{}{\setunit{\addcolon\addspace}\printfield{volume}}%
-\iffieldundef{number}{}{\setunit{\addcolon\addspace}\printfield{number}}%增加卷和册信息
- \newunit\newblock%
-% \usebibmacro{byeditor+others}%
-% \newunit\newblock
- \printfield{edition}%
- \newunit
- \iftoggle{bbx:gbstrict}{}{%
-% \iffieldundef{maintitle}
-% {\printfield{volume}%
-% \printfield{part}}
-% {}%
-% \newunit
-% \printfield{volumes}%
-% \newunit\newblock
-% \usebibmacro{series+number}
- }%
- \newunit\newblock
- %\printfield{note}%
- %\newunit\newblock
- \usebibmacro{publisher+location+date}%
- %\newunit\newblock
- \usebibmacro{chapter+pages}%
- %\newunit\newblock
- \usebibmacro{doi+eprint+url}%移到上面来
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{isbn}}
- {}%
- \newunit\newblock
-% \usebibmacro{doi+eprint+url}%
-% \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
+%%
+%% ---------------------------------------------------------------
+%% biblatex-gb7714-2015 --- A biblatex implementation of the
+%% GBT7714-2015 bibliography style,author year sequence
+%% Maintained by huzhenzhen
+%% E-mail: hzzmail@163.com
+%% Released under the LaTeX Project Public License v1.3c or later
+%% ---------------------------------------------------------------
+%%
+%
+% 版本和时间信息
+%
+\def\versionofgbtstyle{2021/04/03 v1.0x}
+\def\versionofbiblatex{\abx@version}
+\ProvidesFile{gb7714-2015ay.bbx}[\versionofgbtstyle biblatex bibliography style]
+%\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求
+
+%=====================================================================
+%加载标准样式
+%=====================================================================
+\RequireBibliographyStyle{authoryear}
+\RequirePackage{xstring}%解决texlive2015的biblatex3.0不加载xstring包的问题
+
+
+%=====================================================================
+% 功能函数
+%=====================================================================
+ %
+ % biblatex版本判断
+ % 20180405,v1.0k,为兼容biblatexv3.11增加toggle:iftlnine,HU zhenzhen
+ % 20181020,v1.0n,为不再使用xstring宏包做的修改,hzz
+ %
+ % 原理方法:当版本继续更新时,增加一个新的toggle用以处理新的旧版,最新版和未判断出来的版本永远用iftlatest
+ \providetoggle{iftlfive}\togglefalse{iftlfive} %处理biblatex3.2之前版本,时间2016-03-01前
+ \providetoggle{iftlsix}\togglefalse{iftlsix} %处理biblatex3.3开始改变姓名机制后版本,时间2016-03-01及以后
+ \providetoggle{iftlseven}\togglefalse{iftlseven}%处理biblatex3.7的兼容性,时间2016-12-01后
+ \providetoggle{iftleight}\togglefalse{iftleight}%处理biblatex3.8到3.9的兼容性,时间2017-11-01后到2017-12-01前
+ \providetoggle{iftlnine}\togglefalse{iftlnine} %处理biblatex10的兼容性,时间2017-12-01后
+ \providetoggle{iftlatest}\toggletrue{iftlatest} %假设是最新版biblatex
+ \@ifpackagelater{biblatex}{2014/04/01}{
+ \@ifpackagelater{biblatex}{2016/03/01}{
+ \@ifpackagelater{biblatex}{2016/12/01}{
+ \@ifpackagelater{biblatex}{2017/11/01}{
+ \@ifpackagelater{biblatex}{2017/12/01}{
+ \@ifpackagelater{biblatex}{2018/02/19}{}
+ {\toggletrue{iftlnine}\togglefalse{iftlatest}}}
+ {\toggletrue{iftleight}\togglefalse{iftlatest}}}
+ {\toggletrue{iftlseven}\togglefalse{iftlatest}}}
+ {\toggletrue{iftlsix}\togglefalse{iftlatest}}}
+ {\toggletrue{iftlfive}\togglefalse{iftlatest}}}
+ {\PackageError{biblatex}{Outdated 'biblatex' package}
+ {Please update biblatex, This is a fatal error.}}
+
+ \newcommand\defversion[2]{\csdef{codeversion#1#2}}%定义不同版本的命令
+ \newcommand\switchversion[2]{\csuse{codeversion#1#2}}%使用不同版本的命令
+
+ %
+ % 判断CJK字符的函数,用于判断作者等信息是否由中文字符构成
+ % v1.0k,20180509,hzz
+ %
+ % 原理方法:用biber中的perl方法代替。因为利用tex函数对字符判断时,当字符在宏
+ % 中时,基于`的方法无法解决GBK编码的问题,基于CJKsymbol的方法无法解决utf-8
+ % 编码用xelatex编译的问题。
+ %
+ % 原理是:利用perl正则将中文标识记录到域中,
+ % 然后利用\iffieldundef和\iffieldequalstr进行判断
+ \providetoggle{ifCJKforgbt}
+ \def\testCJKfirst#1{%
+ \iffieldundef{#1}{\togglefalse{ifCJKforgbt}}{%
+ \iffieldequalstr{#1}{chinese}{\toggletrue{ifCJKforgbt}}{\togglefalse{ifCJKforgbt}}}}
+
+ %
+ % 2个卷的解析函数,用于连续出版物
+ %
+ % 原理方法: 范围起止间隔符号还是用-,而不是与date相同的/,因为有合期期刊的问题,需要用到/符号
+ \newcommand{\multivolparser}[1]{%
+ \IfSubStr{#1}{-}%
+ {\StrBefore{#1}{-}[\multivolfirst]\StrBehind{#1}{-}[\multivolsecond]}%
+ {\def\multivolfirst{#1}\def\multivolsecond{}}%
+ }
+
+ %
+ % 2个期的解析函数,用于连续出版物
+ %
+ \newcommand{\multinumberparser}[1]{%
+ \IfSubStr{#1}{-}%
+ {\StrBefore{#1}{-}[\multinumberfirst]\StrBehind{#1}{-}[\multinumbersecond]}%
+ {\def\multinumberfirst{#1}\def\multinumbersecond{}}%
+ }
+
+ % 对没有分隔符环境命令的低版本biblatex做增补,避免报错
+ %
+ \iftoggle{iftlfive}{
+
+ \def\blx@inf@delimdeclare#1#2{%
+ \blx@info{Delimiter '#1' in context '#2' already defined, overwriting}}
+
+ \def\blx@warn@delimuse#1#2{%
+ \blx@warning{Delimiter '#1' in context '#2' undefined}}
+ % Delimiter interface
+
+ % [<contextname, ...>]{<name, ...>}{<code>}
+ \newrobustcmd*{\DeclareDelimFormat}{%
+ \@ifstar
+ {\blx@declaredelimclear}
+ {\blx@declaredelim}}
+
+ \newrobustcmd*{\blx@declaredelimclear}[3][]{%
+ \ifcsvoid{blx@declaredelimcontexts@#2}
+ {}
+ {\def\do##1{\csundef{blx@printdelim@##1@#2}}%
+ \dolistcsloop{blx@declaredelimcontexts@#2}}%
+ \cslet{blx@declaredelimcontexts@#2}\@empty
+ \ifblank{#1}
+ {\blx@declaredelim{#2}{#3}}
+ {\blx@declaredelim[#1]{#2}{#3}}}
+
+ \newrobustcmd*{\blx@declaredelim}[3][]{%
+ \ifblank{#1}
+ {\blx@declaredelim@i{}{}{#2}{#3}}
+ {\def\do##1{%
+ \listcsadd{blx@declaredelimcontexts@#2}{##1}%
+ \blx@declaredelim@i{blx@printdelim@##1@}{##1}{#2}{#3}}%
+ \docsvlist{#1}}}%
+
+ \def\blx@declaredelim@i#1#2#3#4{%
+ \def\do@i##1{%
+ \ifcsdef{#1##1}
+ {\blx@inf@delimdeclare{##1}{#2}}
+ {}%
+ \csdef{#1##1}{#4}}%
+ \forcsvlist{\do@i}{#3}}
+
+ % *[<contextname, ...>]{<alias>}{<delim>}
+ \newrobustcmd*{\DeclareDelimAlias}{%
+ \@ifstar
+ {\blx@declaredelimalias}
+ {\blx@declaredelimaliasauto}}
+
+ \newrobustcmd*{\blx@declaredelimalias}[3][]{%
+ \ifblank{#1}
+ {\blx@declaredelimalias@i{}{#2}{#3}}
+ {\def\do##1{%
+ \blx@declaredelimalias@i{blx@printdelim@##1@}{#2}{#3}}%
+ \docsvlist{#1}}}
+
+ \newrobustcmd*{\blx@declaredelimaliasauto}[2]{%
+ \blx@declaredelimalias@i{}{#1}{#2}%
+ \ifcsvoid{blx@declaredelimcontexts@#2}
+ {}
+ {\def\do##1{%
+ \blx@declaredelimalias@i{blx@printdelim@##1@}{#1}{#2}}%
+ \dolistcsloop{blx@declaredelimcontexts@#2}}}
+
+ \def\blx@declaredelimalias@i#1#2#3{%
+ \ifcsdef{#1#2}
+ {\blx@inf@delimdeclare{#2}{#1}}
+ {}%
+ \csdef{#1#2}{\csuse{#1#3}}}
+
+ \def\blx@delimcontext{none}
+ \newcommand*{\printdelim}[2][]{%
+ \ifblank{#1}
+ {\ifcsdef{blx@printdelim@\blx@delimcontext @#2}
+ {\csuse{blx@printdelim@\blx@delimcontext @#2}}
+ {\ifcsdef{#2}% fall back on legacy macros
+ {\csuse{#2}}
+ {\blx@warn@delimuse{#2}{*}}}}
+ {\ifcsdef{blx@printdelim@#1@#2}
+ {\csuse{blx@printdelim@#1@#2}}
+ {\blx@warn@delimuse{#2}{#1}}}}
+
+ \newcommand*{\delimcontext}[1]{%
+ \edef\blx@delimcontext{\blx@delimcontextalias{#1}}}
+
+ \def\blx@delimcontextalias#1{%
+ \ifcsdef{blx@delimcontextalias@#1}
+ {\csuse{blx@delimcontextalias@#1}}
+ {#1}}
+
+ \newcommand*{\DeclareDelimcontextAlias}[2]{%
+ \csgdef{blx@delimcontextalias@#1}{#2}}
+ }{}
+
+
+%=====================================================================
+% 数据模型定义
+%=====================================================================
+ %定义类型和载体标识,从gb内容看载体基本属于介质。
+ %为与lee zeping的bst的样式统一,使用mark和medium这两域名
+ %为单个条目的姓名格式控制增加nameformat和namefmtid两个域
+ %为缩略信息文献表增加了shortbooktitle域
+ %为多语言排序增加了lansortorder域
+ \DeclareDatamodelFields[type=field,datatype=literal]{mark,medium,nameformat}
+ \DeclareDatamodelFields[type=field,datatype=integer]{namefmtid}
+ \DeclareDatamodelFields[type=field,datatype=literal]{shortbooktitle}
+ \DeclareDatamodelFields[type=field,datatype=literal]{lansortorder}
+
+ %因为biblatex更新3.14版本以后,biber对于为声明数据模型的条目类型
+ %不再默认读取,而是以空字符串作为条目类型名,自然在条目定义alias时
+ %就会出现问题,因此显式的声明一下newspaper,然后保留后面采用alias的方式
+ %而standard类型则是采用另一种方式直接在sourcemap中转换为其它类型。
+ \@ifpackagelater{biblatex}{2019/11/30}{%2019/12/01 v3.14
+ \DeclareDatamodelEntrytypes{newspaper}%
+ }{}
+
+%=====================================================================
+% 设置宏包选项
+%=====================================================================
+ %
+ % 增加一个控制是否输出文献载体的选项
+ % 20191125,v1,0s,hzz
+ \newtoggle{bbx:gbmedium}
+ \DeclareBibliographyOption{gbmedium}[true]{%biblatex低版本
+ \settoggle{bbx:gbmedium}{#1}}
+ \ExecuteBibliographyOptions{gbmedium}
+
+ %
+ % 增加一个控制是否输出annotation域的选项,该域可以用于在文献条目后面输出一些注释信息
+ % 20190509,v1,0s,hzz
+ \newtoggle{bbx:gbannote}
+ \DeclareBibliographyOption{gbannote}[false]{%biblatex低版本
+ \settoggle{bbx:gbannote}{#1}}
+ \ExecuteBibliographyOptions{gbannote}
+ %
+ %用于在文献条目后面输出注释信息的宏
+ %FieldFormat{annotation}用于设置注释信息的格式
+ \DeclareFieldFormat{annotation}{%
+ \printtext{\addspace(#1)}%
+ }
+ \renewbibmacro*{annotation}{%
+ \iftoggle{bbx:gbannote}%
+ {\iffieldundef{annotation}%
+ {\printfile[annotation]{\bibannotationprefix\thefield{entrykey}.tex}}%
+ {\printfield{annotation}}}%
+ {}%
+ }
+
+
+ %
+ % 增加一个控制是否输出type域的选项
+ % 20190212,v1,0q,hzz
+ \newtoggle{bbx:gbfieldtype}
+ \DeclareBibliographyOption{gbfieldtype}[false]{%biblatex低版本
+ \settoggle{bbx:gbfieldtype}{#1}}
+ \ExecuteBibliographyOptions{gbfieldtype}
+
+ %
+ % 增加一个控制是否根据页码重设脚注数字标号的选项
+ % 20190422,v1,0r,hzz
+ \newtoggle{bbx:gbfnperpage}
+ \DeclareBibliographyOption{gbfnperpage}[false]{%
+ \settoggle{bbx:gbfnperpage}{#1}}
+ \ExecuteBibliographyOptions{gbfnperpage}
+
+ %
+ % 增加一个选项,用于控制是否实现GB/T 7714-2015标准的脚注文献表
+ % 20190203,v1.0p,hzz
+ % 原理方法:默认做patch,文献引用带圈上标数字表示,脚注中的文献用带圈非上标数字做标签
+ % 当前面的脚注中已经存在当前文献,那么当前文献内容不再输出而用同(4)这样的方式
+ % 需要注意的是由于小页环境和表格中的脚注本身的问题,可能会有一些问题
+ \DeclareBibliographyOption{gbfootbib}[false]{%
+ \ifstrequal{#1}{false}{}{\execgbfootbib}}
+ \ExecuteBibliographyOptions{gbfootbib}
+
+ %%
+ \newlength{\footbibmargin}
+ \newlength{\footbiblabelsep}
+ \setlength{\footbibmargin}{1em}%脚注的段落左侧缩进距离
+ \setlength{\footbiblabelsep}{0.5em}%脚注中标记号与脚注段落的间距
+ \def\execgbfootbib%
+ {%
+ %开启引用跟踪计数器,为使用\ifciteseen等测试命令
+ \ExecuteBibliographyOptions{citetracker=true}
+ %
+ %利用footmisc宏包来实现脚注文献的悬挂对齐
+ \AtEndPreamble{
+ \@ifclassloaded{beamer}{}{
+ %beamer类因为其特殊性,为避免冲突不调footmisc。
+ %同时footmisc与hyperref宏包也不兼容,所以使用footmisc时会破坏脚注的超链接
+ %如果要实现超链接可以将下句注释掉,这里留着主要是实现悬挂对齐。
+ %\PassOptionsToPackage{perpage,hang}{footmisc}%
+ %\RequirePackage{footmisc}%
+
+ %重新实现脚注的根据单页重设脚注号码
+ %重新实现脚注的悬挂对齐问题,不再使用footmisc,直接从latex核心代码和hyperref代码进行修改
+ %v1.0q 20190317 hzz
+ %v1.0r 20190422 hzz 根据gbfnperpage选项设置
+ \iftoggle{bbx:gbfnperpage}%
+ {\@addtoreset{footnote}{page}}{}%重设计数器
+
+\@ifpackageloaded{hyperref}{%加载hyperref则对\H@@footnotetext做重定义
+ \long\def\H@@footnotetext##1{\insert\footins{%
+ \reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore
+ \protected@edef\@currentlabel{%
+ \csname p@footnote\endcsname\@thefnmark
+ }%
+ \color@begingroup
+ \leftskip \footbibmargin%增加的左侧缩进
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox%
+ }%
+ \color@endgroup}}%
+ \long\def\H@@mpfootnotetext##1{%
+ \global\setbox\@mpfootins\vbox{%
+ \unvbox\@mpfootins
+ \reset@font\footnotesize
+ \hsize\columnwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
+ \leftskip \footbibmargin%增加的左侧缩进
+ \color@begingroup
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox}%
+ \color@endgroup}}
+ }{%否则对latex核心代码中的\@footnotetext做重定义
+ \long\def\@footnotetext##1{\insert\footins{%
+ \reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore
+ \protected@edef\@currentlabel{%
+ \csname p@footnote\endcsname\@thefnmark
+ }%
+ \color@begingroup
+ \leftskip \footbibmargin%增加的左侧缩进
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox%
+ }%
+ \color@endgroup}}%
+
+ \long\def\@mpfootnotetext##1{%
+ \global\setbox\@mpfootins\vbox{%
+ \unvbox\@mpfootins
+ \reset@font\footnotesize
+ \hsize\columnwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
+ \leftskip \footbibmargin%增加的左侧缩进
+ \color@begingroup
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox}%
+ \color@endgroup}}
+ }
+
+ \long\def\@makefntext##1{%增加了脚注标记与正文的间隔
+ \parindent 1em\noindent \hb@xt@ 0em{\hss \@makefnmark\makebox[\footbiblabelsep]{}}##1}
+
+ }
+
+ %
+ %使脚注标记加圈并设置数字的字体为tiny,不使用修改thefootnote的方式
+ \def\@makefnmark{\hbox{\@textsuperscript{\textcircled{\tiny\@thefnmark}}}}
+ %做patch使得脚注内容中的脚注数字标签不上标
+ \pretocmd{\@makefntext}{%
+ \def\@makefnmark{%
+ \hbox{\textcircled{\tiny\@thefnmark}}%
+ }%
+ }{}{}
+ }
+
+ %
+ %判断当前文献是否已经引用过且是做的footfullcite(即已经作为脚注输出文献内容)
+ %记录首次输出时的脚注号码,用于后面再次引用该文献时的输出,比如同(4)。
+ %v1.0q 20190309 区分使脚注标注适应minipage中的情况
+ \newbibmacro*{citesavefn}{%
+ \ifciteseen%当被引用过为true
+ {\ifcsdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}%当已经定义过脚注序号信息
+ {\csgdef{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
+ \str@sameentry\gdef\@thefnmark{\csuse{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}}%
+ \@makefnmark%
+ }}%
+ {\csxdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
+ \ifcsstring{@mpfn}{mpfootnote}{\@alph\c@mpfootnote}{\thefootnote}%
+ }}%
+ }%
+ {\csxdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
+ \ifcsstring{@mpfn}{mpfootnote}{\@alph\c@mpfootnote}{\thefootnote}%
+ %判断在minipage中比较麻烦,这里使用\@mpfn的定义进行判断
+ }}%
+ }
+
+ %
+ %重定义\footfullcite使完成gb7714-2015的脚注文献要求
+ \DeclareCiteCommand{\footfullcite}[\mkbibfootnote]%
+ {\defcounter{maxnames}{\blx@maxbibnames}%局部定义maxnames和minnames计数器
+ \defcounter{minnames}{\blx@minbibnames}%使footfullcite内的作者输出与正文文献表中的一致。
+ \usebibmacro{prenote}%
+ \renewbibmacro*{postnote}{%
+ \iffieldundef{postnote}%
+ {}{\setunit{\addcolon\addspace}\printtext{\thefield{postnote}}}}%由于ay样式中没有修改postnote域,此处因为格式需要不使用默认域格式
+ }%
+ {\usebibmacro{citesavefn}%
+ \ifcsdef{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}%
+ {\csuse{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}\nopunct}%
+ {\usedriver{\DeclareNameAlias{sortname}{default}}{\thefield{entrytype}}}%
+ }%
+ {\multicitedelim}%
+ {\usebibmacro{postnote}}
+
+ }
+
+ %
+ % 增加一个选项,用于控制gb7714的使用范围,即英文文献和中文文献使用不同的样式
+ % 20180814,v1.0m,hzz
+ % 原理方法:
+ % 只为兼容性考虑不做任何处理
+ \DeclareBibliographyOption{gbstyle}[true]{%biblatex低版本
+ }
+
+ %
+ % 增加一个控制是否输出文献类型和载体标识的选项
+ %
+ % 原理方法:
+ % 对于biblatex3.4以上版本DeclareBibliographyOption命令中的[datatype]如果是boolean,那么是可以省略的
+ % 所以用老版本的不用[datatype]的命令可以兼容所有biblatex版本
+ \newtoggle{bbx:gbtype}
+ %\DeclareBibliographyOption[boolean]{gbtype}[true]{%biblatex高版本
+ \DeclareBibliographyOption{gbtype}[true]{%biblatex低版本
+ \settoggle{bbx:gbtype}{#1}}
+ \ExecuteBibliographyOptions{gbtype}
+
+ %
+ % 增加一个源文件编码选择选项,当true时可以使用GBK编码。
+ % v1.0k, 2018.05.08, by hzz
+ %
+ % 原理方法:将需要输出的中文字符串用命令形式表示存储,采用utf8编码时采用bbx文档
+ % 内的定义即是utf8编码的中文字符串,但tex源文件是gbk编码时,利用gb7714-2015-gbk.def
+ % 文档内的gbk编码的字符串覆盖。这种覆盖只能在宏包末尾加载时成功实现,所以使用
+ % AtEndOfPackage。该解决思路源自biblatex-caspervector宏包。
+ % 另外注意:
+ % gbk编码的tex文档,利用pdflatex/latex能正确编译,利用xelatex能编译,但中文显示乱码
+ % 在源文档前面增加 XeTeX 原语:\XeTeXinputencoding "GBK" 后,显示正常
+ % utf-8编码的tex文档,利用xelatex能正确编译,而pdflatex/latex不能编译。
+ \newtoggle{bbx:codegbk}
+ \DeclareBibliographyOption{gbcodegbk}[false]{%
+ \settoggle{bbx:codegbk}{#1}}
+ \ExecuteBibliographyOptions{gbcodegbk}
+
+ \def\str@bibliography{参考文献}
+ \def\str@references{参考文献}
+ \def\str@bytranslator{译}
+ \def\str@andotherscn{等}
+ \def\str@andcn{和}
+ \def\str@backrefpage{引用页}
+ \def\str@backrefpages{引用页}
+ \def\str@noaddress{出版地不详}
+ \def\str@nopublisher{出版者不详}
+ \def\str@edition{版}
+ \def\str@volumecn{卷}
+ \def\str@numbercn{册}
+ \def\str@serialcn{第}
+ \def\str@sameentry{同}
+ \def\str@incn{见}
+ \def\str@mathesiscn{硕士学位论文}
+ \def\str@phdthesiscn{博士学位论文}
+ \def\str@editorcn{主编}
+
+ \AtEndOfPackage{%
+ \iftoggle{bbx:codegbk}{%
+ \ExecuteBibliographyOptions{texencoding = GBK}
+ \input{gb7714-2015-gbk.def}
+ }{}}
+
+ %
+ % 增加一个严格按GB/T 7714-2015给出著录格式控制域的输出的选项
+ % v1.0k, 2018.05.08, by hzz
+ %
+ % 原理方法:
+ % 默认设置该选项为真,进而不输出GB/T 7714-2015中没有的域的信息
+ % 这样可以避免因为bib文件带有多余的域的信息的输出,比如因为bibtex样式
+ % 可能需要用于中英文判断的language域的信息。
+ \newtoggle{bbx:gbstrict}
+ \DeclareBibliographyOption{gbstrict}[true]{%
+ \settoggle{bbx:gbstrict}{#1}}
+ \ExecuteBibliographyOptions{gbstrict}
+
+ %
+ % 增加一个控制标题域超链接设置的选项
+ % v1.0k, 2018.05.24, by hzz
+ %
+ % 原理方法:
+ % 利用标题域格式来实现,默认设置该选项为false,不做超链接。
+ % 设置为true,则标题设置超链接
+ \newtoggle{bbx:titlelink}
+ \DeclareBibliographyOption{gbtitlelink}[false]{%
+ \settoggle{bbx:titlelink}{#1}}
+ \ExecuteBibliographyOptions{gbtitlelink}
+
+ %
+ % 增加一个控制参考文献标题是否能够被ctex宏包设置的选项
+ % v1.0l, 2018.07.02, by hzz
+ %
+ % 原理方法:
+ % 重定义biblatex的宏,去除使用本地化字符串的方式,是的可以利用ctexset进行设置
+ \newtoggle{bbx:ctexset}
+ \DeclareBibliographyOption{gbctexset}[true]{%
+ \settoggle{bbx:ctexset}{#1}}
+ \ExecuteBibliographyOptions{gbctexset}
+
+ \AtEndOfPackage{%
+ \iftoggle{bbx:ctexset}{%
+ \def\blx@defbibstrings#1#2{%
+ \def\do##1{\csundef{abx@lstr@##1}\csundef{abx@sstr@##1}}%
+ \abx@dostrings
+ \csuse{abx@strings@#1}%
+ \setkeys{blx@lbx}{#2}%
+ \let\do\blx@defbibstrings@i
+ \csxdef{abx@strings@#1}{\abx@dostrings}%
+ }
+ }{}}
+
+ %
+ %增加一个处理佚名或noauthor的控制选项
+ \DeclareBibliographyOption{gbnoauthor}[true]{%
+ \ifstrequal{#1}{false}{}{\dealnoathor}}
+ %\ExecuteBibliographyOptions{gbnoauthor=true}%对于需要展开较早(展开层级优先)的选项,这一执行无效,只能用宏包加载时给出的选项。
+
+
+ %
+ % 增加一个恢复域格式为标准样式的控制选项
+ % v1.0k, 2018.05.15, by hzz
+ %
+ % 原理方法:
+ % 默认设置该选项为false,采用国标要求的域格式输出相关域
+ % 当设置该选项为true时,则重新利用标准样式的域格式输出相关的域
+ \newtoggle{bbx:gbfieldstd}
+ \DeclareBibliographyOption{gbfieldstd}[false]{%
+ \settoggle{bbx:gbfieldstd}{#1}%
+ \ifstrequal{#1}{false}{}{\execgbfdfmtstd}%
+ }
+ \ExecuteBibliographyOptions{gbfieldstd}
+
+ %
+ % 增加一个出版项自动处理控制选项,当true时使用出版者不详等信息补充缺失的出版信息。
+ %
+ \newtoggle{bbx:gbpub}
+ \DeclareBibliographyOption{gbpub}[true]{%
+ %\settoggle{bbx:gbpub}{#1} %或采用下面这一句
+ \ifstrequal{#1}{false}{\togglefalse{bbx:gbpub}}{\toggletrue{bbx:gbpub}}}
+ \ExecuteBibliographyOptions{gbpub}
+
+ %
+ % 增加控制析出文献来源前的标点符号//输出的选项
+ % v1.0k, 2018.04.20,added in by hzz
+ \newtoggle{bbx:gbpunctin}
+ \DeclareBibliographyOption{gbpunctin}[true]{%
+ \settoggle{bbx:gbpunctin}{#1}}
+ \ExecuteBibliographyOptions{gbpunctin}
+
+
+ % 选项设置
+ %
+ \ExecuteBibliographyOptions{
+ useprefix = true, %名字的信息包括前缀
+ date = year, %日期仅写到年
+ maxbibnames=3, %将文献列表和引用中最大名字数量区分开
+ minbibnames=3,
+ maxitems = 1,%设置列表最大数量
+ minitems = 1, %设置缩减后的列表最小数量
+ isbn=false,
+ sorting=gb7714-2015,
+ sortlocale=zh__pinyin,%zh__big5han,%zh__stroke,%zh__gb2312han,%zh__pinyin,
+ }
+
+ %
+ %为日期相关选项增加选项值gb7714-2015
+ %
+ \csdef{mkdaterangegb7714-2015}#1{%
+ \begingroup
+ \blx@metadateinfo{#1}%
+ \iffieldundef{#1year}
+ {}
+ {\printtext[#1date]{%
+ \blx@gbdate{#1}{}}}%
+ \endgroup}
+
+ \newrobustcmd*{\blx@gbdate}[3][]{%
+ \dateeraprintpre{#2#3year}%
+ \blx@imc@forcezerosy{\thefield{#2#3year}}\ifblank{#1}{}{\printfield{#1}}%
+ \iffieldundef{#2#3month}{}{\hyphen\blx@imc@forcezerosmdt{\thefield{#2#3month}}}%
+ \iffieldundef{#2#3day}{}{\hyphen\blx@imc@forcezerosmdt{\thefield{#2#3day}}}}
+
+ %为姓名格式选择增加的计数器
+ \newcounter{gbnamefmtcase}
+ \def\thegbnamefmtcase{\the\c@gbnamefmtcase}
+ %为引用标签标注/文献表中本地化字符串中英文选择增加的计数器/命令
+ \newcounter{gbcitelocalcase}
+ \newcounter{gbbiblocalcase}
+ \def\thegbcitelocalcase{\the\c@gbcitelocalcase}
+ \def\thegbbiblocalcase{\the\c@gbbiblocalcase}
+
+
+\@ifpackagelater{biblatex}{2016/03/27}
+ { % 针对biblatex>=3.3版本的选项设置
+
+ % 增加不同语言排序的切换选项
+ % gblanorder=chineseahead的顺序为cn,jp,kr,en,fr,ru
+ % gblanorder=englishahead的顺序为en,fr,ru,cn,jp,kr
+ % gblanorder=cn;en;ru;fr;jp;kr的顺序为指定的cn;en;ru;fr;jp;kr,自定义内容可以随意写以分号分隔
+ % v1.0q,20190307,hzz
+ %
+ \DeclareBibliographyOption[string]{gblanorder}[chineseahead]{%
+ \ifstrequal{#1}{chineseahead}%%中文在前的顺序
+ {\gdef\lancnorder{1}\gdef\lanjporder{2}\gdef\lankrorder{3}%
+ \gdef\lanenorder{4}\gdef\lanfrorder{5}\gdef\lanruorder{6}}%
+ {%
+ \ifstrequal{#1}{englishahead}%
+ {\execlanodeah\dealsortlan}%
+ {\execlanodudf{#1}\dealsortlan}%
+ }%
+ }
+ \ExecuteBibliographyOptions{gblanorder}
+
+ \def\execlanodeah{%中文在后的顺序
+ \gdef\lancnorder{4}
+ \gdef\lanjporder{5}
+ \gdef\lankrorder{6}
+ \gdef\lanenorder{1}
+ \gdef\lanfrorder{2}
+ \gdef\lanruorder{3}}
+
+ \newcounter{lanordernum}
+ \newcommand{\execlanodudf}[1]{%like:cn;en;ru;fr;jp;kr
+ \setcounter{lanordernum}{0}
+ \DeclareListParser{\parsinglanorder}{;}
+ \renewcommand*{\do}[1]{\stepcounter{lanordernum}\csxdef{lan##1order}{\thelanordernum}}
+ \parsinglanorder{#1}
+ }
+
+ % 增加本地化字符串的中英文切换选项
+ % gbcitelocal指标注中的本地化字符串
+ % gbbiblocal 指文献表中的本地化字符串
+ % gblocal 指设置文献表和标注中的本地化字符串
+ % v1.0o,20190103,hzz
+ %
+ \DeclareBibliographyOption[string]{gbcitelocal}[gb7714-2015]{%
+ \ifstrequal{#1}{gb7714-2015}{\setcounter{gbcitelocalcase}{0}}{}%
+ \ifstrequal{#1}{chinese}{\setcounter{gbcitelocalcase}{1}}{}%
+ \ifstrequal{#1}{english}{\setcounter{gbcitelocalcase}{2}}{}%
+ }
+ \ExecuteBibliographyOptions{gbcitelocal}
+
+ \DeclareBibliographyOption[string]{gbbiblocal}[gb7714-2015]{%
+ \ifstrequal{#1}{gb7714-2015}{\setcounter{gbbiblocalcase}{0}}{}%
+ \ifstrequal{#1}{chinese}{\setcounter{gbbiblocalcase}{1}}{}%
+ \ifstrequal{#1}{english}{\setcounter{gbbiblocalcase}{2}}{}%
+ }
+ \ExecuteBibliographyOptions{gbbiblocal}
+
+ \DeclareBibliographyOption[string]{gblocal}[gb7714-2015]{%
+ \ExecuteBibliographyOptions{gbbiblocal=#1}%
+ \ExecuteBibliographyOptions{gbcitelocal=#1}%
+ }
+ %\ExecuteBibliographyOptions{gblocal} %默认值已经通过两个相关选项设置
+
+
+ %
+ % 增加序号标签格式处理选项,作者年制不做处理,给出只为兼容选项考虑
+ % v1.0l,20180623,hzz
+ %
+ \DeclareBibliographyOption[string]{gbbiblabel}[bracket]{}
+
+ %
+ % 增加姓名大小写格式处理选项
+ %
+ \DeclareBibliographyOption[string]{gbnamefmt}[uppercase]{%
+ \ifstrequal{#1}{uppercase}{\setcounter{gbnamefmtcase}{0}}{}%
+ \ifstrequal{#1}{lowercase}{\setcounter{gbnamefmtcase}{1}}{}%
+ \ifstrequal{#1}{givenahead}{\setcounter{gbnamefmtcase}{2}}{}%given-family
+ \ifstrequal{#1}{familyahead}{\setcounter{gbnamefmtcase}{3}}{}%family-given
+ \ifstrequal{#1}{pinyin}{\setcounter{gbnamefmtcase}{4}}{}%
+ \ifstrequal{#1}{reverseorder}{\setcounter{gbnamefmtcase}{5}}{}%family-given/given-family
+ \ifstrequal{#1}{quanpin}{\setcounter{gbnamefmtcase}{6}}{}%
+ }
+ \ExecuteBibliographyOptions{gbnamefmt}
+
+ %
+ % 增加标签对齐选项
+ %
+ %因为在作者年制中,不需要使用,这里也增加,为了与顺序编码制的兼容性考虑。
+ \DeclareBibliographyOption[string]{gbalign}[right]{}%
+
+
+
+
+ }
+ {
+ % 增加不同语言排序的切换选项
+ % biblatex 3.4及以下版本不能使用多个stylesourcemap,所以不使用该选项
+ % 这里给出仅为兼容性考虑
+ % v1.0q,20190307,hzz
+ %
+ \DeclareBibliographyOption[string]{gblanorder}[chineseahead]{}
+
+ %
+ % 增加序号标签格式处理选项,作者年制不做处理,给出只为兼容选项考虑
+ % v1.0l,20180623,hzz
+ %
+ \DeclareBibliographyOption{gbbiblabel}[bracket]{}
+
+ %
+ % 增加姓名大小写格式处理选项
+ %
+ \DeclareBibliographyOption{gbnamefmt}[uppercase]{%
+ \ifstrequal{#1}{uppercase}{\setcounter{gbnamefmtcase}{0}}{}%
+ \ifstrequal{#1}{lowercase}{\setcounter{gbnamefmtcase}{1}}{}%
+ \ifstrequal{#1}{givenahead}{\setcounter{gbnamefmtcase}{2}}{}%given-family
+ \ifstrequal{#1}{familyahead}{\setcounter{gbnamefmtcase}{3}}{}
+ \ifstrequal{#1}{pinyin}{\setcounter{gbnamefmtcase}{4}}{}%family-given
+ \ifstrequal{#1}{reverseorder}{\setcounter{gbnamefmtcase}{5}}{}%family-given/given-family
+ \ifstrequal{#1}{quanpin}{\setcounter{gbnamefmtcase}{4}}{}%family-given
+ }
+ \ExecuteBibliographyOptions{gbnamefmt}
+
+ %
+ % 增加标签对齐选项
+ %
+ %因为在作者年制中,不需要使用,这里也增加,为了与顺序年制的兼容性考虑。
+ \DeclareBibliographyOption{gbalign}[right]{}%
+
+ }
+
+
+%
+% 针对biblatex<3.3版本的选项设置,比如texlive2015中的3.0版
+%
+\defversion{3.0}{opt}{
+ \ExecuteBibliographyOptions{
+ firstinits = true, %名字有缩写,参考3.1.2.3 Internal
+ }
+}
+%
+% 针对3.3<=biblatex<3.5版本的选项设置,比如texlive2016中的3.4版
+%
+\defversion{3.4}{opt}{
+ \ExecuteBibliographyOptions{
+ giveninits = true,
+ }
+}
+%
+% 针对3.7<=biblatex<=3.9版本的选项设置,比如texlive2017中的3.7版
+%
+\defversion{3.7}{opt}{
+ \ExecuteBibliographyOptions{
+ giveninits = true,
+ urldate =edtf,
+ eventdate =edtf,
+ }
+}
+%
+% 针对3.10<=biblatex版本的选项设置,比如texlive2018中的3.11版
+%
+\defversion{3.10}{opt}{
+ \ExecuteBibliographyOptions{
+ giveninits = true,
+ urldate =gb7714-2015,%iso
+ eventdate =gb7714-2015,%iso
+ }
+}
+
+%
+% 针对3.13<=biblatex版本的选项设置,因为内容有限,所以不再增加版本区分,而用时间直接判断
+%
+% 解决国标中“王临慧, 2010a.”和“王临慧, 等, 2010b.”的问题
+% 在没有这个选项之前无法加上a和b
+% v1.0s,20190828
+\@ifpackagelater{biblatex}{2019/08/16}{%
+ \ExecuteBibliographyOptions{%
+ nohashothers=true}}{}
+
+%
+% 根据biblatex版本信息,选择选项设置
+%
+% 原理方法:如下这种选择机制能自动兼容更新的版本,但对于老版本
+% 必须要把情况列全。
+\iftoggle{iftlfive}{\switchversion{3.0}{opt}}{}%biblatex<=3.2
+\iftoggle{iftlsix}{\switchversion{3.4}{opt}}{}%3.3<=biblatex<=3.6
+\iftoggle{iftlseven}{\switchversion{3.7}{opt}}{}%biblatex=3.7
+\iftoggle{iftleight}{\switchversion{3.7}{opt}}{}%3.8<=biblatex<=3.9
+\iftoggle{iftlnine}{\switchversion{3.10}{opt}}{}%biblatex=3.10
+\iftoggle{iftlatest}{\switchversion{3.10}{opt}}{}%biblatex最新3.11
+
+
+%=====================================================================
+%设置本地化字符串
+%=====================================================================
+ %
+ % 新建当地化字符串,用来记录“等”字符、“和”字符
+ %
+ \NewBibliographyString{andotherscn}
+ \NewBibliographyString{andothersincitecn}
+ \NewBibliographyString{andothersincite}
+ \NewBibliographyString{andcn}
+ \NewBibliographyString{andothersjp}
+ \NewBibliographyString{andotherskr}
+ \NewBibliographyString{andjp}
+ \NewBibliographyString{andkr}
+ \NewBibliographyString{andincitecn}
+ \NewBibliographyString{andincite}
+ \NewBibliographyString{volumecn}
+ \NewBibliographyString{numbercn}
+ \NewBibliographyString{serialcn}
+ \NewBibliographyString{incn}
+ \NewBibliographyString{mathesiscn}
+ \NewBibliographyString{phdthesiscn}
+ \NewBibliographyString{editorcn}
+ \NewBibliographyString{editorscn}
+ \NewBibliographyString{bytranslatorcn}
+
+ %
+ % 修改一些当地化字符串
+ %
+ % 原理方法:直接利用当地化格式english修改出一些中文的格式,具体修改内容参考english.lbx文件
+ % 当然也可以增加比如上面定义的andotherscn
+ % 注意:在lbx文件和bbx文件中定义本地字符串的不同语法,两个参数和一个参数的区别
+ \DefineBibliographyStrings{english}{
+ bibliography = {\str@bibliography},
+ references = {\str@references},
+ bytranslatorcn= {\str@bytranslator\adddot}, %将trans. by 改成 译
+ and = {\addcomma},%将第2和3人名见的and符号改成 逗号,用\finalnamedelim命令也可以定义,参见3.9.1节
+ andcn = {\addcomma},%\str@andcn\ and本地化字符串的中文对应词
+ andincitecn = {\str@andcn},%将标注中的分开,便于与文献表中的区分
+ andincite = {\addcomma},
+ %andothers = {et al.}, %将超过3个人名的省略,et al.改成为 等
+ andotherscn = {\str@andotherscn},%将超过3个人名的省略,et al.改成为 等
+ andothersincitecn={\str@andotherscn},%将标注中的分开,便于与文献表中的区分
+ andothersincite={et al\adddot},
+ backrefpage = {\str@backrefpage:},
+ backrefpages = {\str@backrefpages:},
+ in={in\intitlepunct},
+ volumecn={\str@volumecn},
+ numbercn={\str@numbercn},
+ serialcn={\str@serialcn},
+ andothersjp={他},
+ andotherskr={외},
+ andjp={和},
+ andkr={和},
+ incn={\str@incn\addcolon\addspace},
+ mathesiscn={\str@mathesiscn},
+ phdthesiscn={\str@phdthesiscn},
+ editorscn={\str@editorcn},
+ editorcn={\str@editorcn},
+ }
+
+ %
+ % 增加两个命令用于临时的局部的修改本地化字符串
+ % 其中\setlocalbibstring修改缩写字符串,setlocalbiblstring修改长字符串
+ % 注意使用时因为是局部修改,因此要将其与需要修改的引用命令放在一个编组符号内
+ % v1.0t,hzz,20190525
+ \newcommand{\setlocalbibstring}[2]{%
+ \csdef{abx@sstr@#1}{#2}}
+ \newcommand{\setlocalbiblstring}[2]{%
+ \csdef{abx@lstr@#1}{#2}}
+
+%=====================================================================
+% 动态数据修改
+%=====================================================================
+%
+% 各层次的数据映射和动态修改
+%
+% 原理方法:
+% 1. 进行语言包括中英文判断,并设置和记录,比如记录到userf,usere中
+% 2. 增加文献标识符如[M],[J]等,对一些容易混淆的域进行设置以增强兼容性
+% 3. \DeclareSourcemap命令对于biblatex3.11以下版本只能出现一次,3.11版开始支持多个
+% 4. \DeclarestyleSourcemap在biblatex v3.7版开始可以支持出现多次
+% 5. 把作者和译者信息准确的记录到userf,usere中,用于后面判断是否是cjk字符。
+% 注意:这里用userf,usere而不是namee,namef,是因为只有把name列表转成域,才能有效读取姓名中的字符,
+% 如果用namee,namef,name信息会自动解析,所以就不能为cjk判断提供需要的信息
+%
+% 不同的文献类型使用相同的驱动输出可以有5种方法:
+% 1. 是数据源层的映射,将其它类型转换为某一要使用驱动的类型
+% 2. 是样式层映射,也是将其它类型转换为某一要使用驱动的类型
+% 3. 是驱动层映射,也是将其它类型转换为某一要使用驱动的类型
+% 4. 定义驱动类型别名DeclareBibliographyAlias,将其它类型定义为某一要使用驱动的类型的别名
+% 驱动别名定义本质上是做了驱动层映射
+% 5. 直接定义不同的类型的驱动,但驱动内容相同。
+%
+% 关于数据映射和驱动使用的考虑如下:
+% 1. 为避免利用biber输出bib文件时的数据变动,尽量不在数据源层映射做类型转换
+% 2. 为减少代码量,尽量少做内容相同的不同类型驱动
+% 3. 因此类型相关的处理主要在样式层映射、驱动层映射、驱动别名
+% 4. 由于biblatex默认做的驱动别名处理可能增加一些信息比如masterthesis转thesis时增加的type
+% 可以在样式层映射做某些需要避免这种默认处置的转换
+% 5. 当没有避免默认行为的需求时,全部采用驱动别名的方式处理,等价于驱动层的映射
+%
+% 文献类型和驱动考虑如下:
+% 1. 连续出版物及析出文献有其特殊性,因此考虑两类periodical和article
+% newpaper映射为article,并以note域做区分特殊处理
+% 2. 专著和专著中的析出文献是主要的类型,因此考虑book和inbook
+% standard映射为book或inbook,并以note域做区分特殊处理
+% collection和proceedings基本与book类似,因此做book驱动别名处理
+% incollection和inproceedings基本与inbook类似,因此做inbook驱动别名处理
+% 3. 专利类型有其特殊性,考虑patent类型
+% 4. 电子资源类型有其特殊性,考虑online类型
+% 5. 报告类型与book有点类似,出版项处理与book一样,但有时又要有修改和更新日期
+% 因此考虑用一种类型来输出,使用report类型
+% 6. 手册/学位论文等类型与book有点类似,但对于出版项处理时,有缺省时,直接省略,
+% 同时有version和edition的区别,因此考虑用一种类型来输出,使用manual类型
+% 7. 包括报告,学位论文在内的其它所有的类型,都做一个判断,当没有出版项时,
+% 且存在网址信息时,将其转换为online类型输出,否则都做为manual类型输出。
+% 8. 备选类型misc当存在网址时直接转换为online,由于howpublished域可用于描述
+% 更多的信息,因此不存在网址时,独立做一个备选格式
+% 9. 出版项主要以如下方式处理:
+% (a) location+institution+date 仅用于连续出版物
+% (b)publisher+location+date 用于需要完整输出出版项的类型,比如book,collection,proceedings,in*,report
+% (c)institution+location+date 用于出版项缺失时不输出的类型,包括manual,thesis,archive等其他类型
+% (d)printlist{insitution} 用于电子资源,仅输出出版者或组织,为数据映射方便,本来默认的organization域转换为用insitution输出。
+% (e) 不输出,主要用于连续出版物析出的文献
+% 10. 日期以如下方式处理:
+% date 由于存在biblatex选项,因此通过选项控制,数据源为date解析数据或year
+% urldate 由于存在biblatex选项,因此通过选项控制,输出到日,且用[]包围,数据源为urldate
+% newsdate 用于公告日期,公开日期或新闻日期,输出到日,但无包围符号,数据源为date
+% modifydate 用于更新或修改日期,输出到日,且用()包围,数据源为date或enddate或eventdate
+
+\DeclareSourcemap{
+\maps[datatype=bibtex]{%
+ \map{%当没有作者时将editor转成author
+ \pernottype{inbook}%因为in系列中editor可能用来表示bookauthor,所以排除
+ \pernottype{inproceedings}
+ \pernottype{incollection}
+ \pernottype{periodical}%因为peridical直接使用editor,所以排除
+ %注意notfield在低版本biblatex中没有
+ %\step[notfield=author,final]%当author不存在,将editor复制给author
+ \step[fieldsource=editor,fieldtarget=author]%并删除editor
+ }
+ \map{%当没有作者时将translator转成author
+ \pernottype{inbook}
+ \pernottype{inproceedings}
+ \pernottype{incollection}
+ %\step[notfield=author,final]%当author不存在,将translator复制给author
+ \step[fieldsource=translator,fieldtarget=author]%并删除translator
+ }
+ \map{%让address和location同步,biblatex中address是location的别名
+ %因此输出的时候只有location信息,但处理过程中是可以存在address的。
+ %\step[notfield=address,final]
+ \step[fieldsource=location,final]
+ \step[fieldset=address,origfieldval]
+ }
+ \map{%让address和location同步
+ %\step[notfield=location,final]
+ \step[fieldsource=address,final]
+ \step[fieldset=location,origfieldval]
+ }
+ \map{%处理在bib文件用mark标记文献类型标识符的情况
+ \step[fieldsource=mark,final]
+ \step[fieldset=usera, origfieldval]
+ }
+ \map{%处理在bib文件中直接给出文献的姓名格式为lowercase的情况
+ \step[fieldsource=nameformat,match=lowercase,final]
+ \step[fieldset=namefmtid,fieldvalue={1}]
+ }
+ \map{%处理在bib文件中直接给出文献的姓名格式为givenahead的情况
+ \step[fieldsource=nameformat,match=givenahead,final]
+ \step[fieldset=namefmtid,fieldvalue={2}]
+ }
+ \map{%处理在bib文件中直接给出文献的姓名格式为familyahead的情况
+ \step[fieldsource=nameformat,match=familyahead,final]
+ \step[fieldset=namefmtid,fieldvalue={3}]
+ }
+ \map{%处理在bib文件中直接给出文献的姓名格式为pinyin的情况
+ \step[fieldsource=nameformat,match=pinyin,final]
+ \step[fieldset=namefmtid,fieldvalue={4}]
+ }
+ \map{%处理在bib文件中直接给出文献的姓名格式为pinyin的情况
+ \step[fieldsource=nameformat,match=quanpin,final]
+ \step[fieldset=namefmtid,fieldvalue={6}]
+ }
+ \map{%根据article确定文献类型标识符
+ \pertype{article}
+ \step[fieldset=usera, fieldvalue={J}]
+ }
+ \map{%根据periodical确定文献类型标识符
+ \pertype{periodical}
+ \step[fieldset=usera, fieldvalue={J}]
+ \step[fieldsource=author] %有时会把author和editor混淆,处理后使用editor
+ \step[fieldset=editor, origfieldval]
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%根据增加一个新闻报纸的类型newspaper确定文献类型标识符
+ \pertype{newspaper}
+ \step[fieldset=usera, fieldvalue={N}]
+ \step[fieldset=note, fieldvalue=news]%因为没有专门的驱动,记录note方便映射为article后判断
+ }
+ \map{%对应增加的一个数据库类型database确定文献类型标识符
+ \pertype{database}
+ \step[fieldset=usera, fieldvalue={DB}]
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%对应增加的一个数据集类型dataset确定文献类型标识符
+ \pertype{dataset}
+ \step[fieldset=usera, fieldvalue={DS}]%
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%对应增加的一个软件类型software确定文献类型标识符
+ \pertype{software}
+ \step[fieldset=usera, fieldvalue={CP}]
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%对应增加的一个舆图类型map确定文献类型标识符
+ \pertype{map}
+ \step[fieldset=usera, fieldvalue={CM}]%
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%对应增加的一个档案类型archive确定文献类型标识符
+ \pertype{archive}
+ \step[fieldset=usera, fieldvalue={A}]
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%因为misc类型本身就是没有类型,而不像其它文献有明确的类型,所以
+ %当misc类型带有网址时,直接将其转换为online类型
+ \pertype{misc}
+ \step[fieldsource=url,final]
+ \step[typesource=misc,typetarget=online]
+ }
+ \map{%对应增加的一个备选类型misc确定文献类型标识符
+ \pertype{misc}
+ \step[fieldset=usera, fieldvalue={Z}]%
+ }
+ \map{
+ \pertype{book}
+ \pertype{inbook}
+ \step[fieldset=usera, fieldvalue={M}]
+ \step[fieldsource=version] %有时会把version和edition混淆,处理后直接用edition
+ \step[fieldset=edition, origfieldval]
+ }
+ \map{%兼容老的standard类型,确定文献类型标识符
+ \pertype{standard}
+ \step[fieldset=usera, fieldvalue={S}]
+ \step[fieldset=note, fieldvalue=standard]%因为没有专门的驱动,记录note方便映射为book和inbook后判断
+ }
+ \map{
+ \pertype{patent}
+ \step[fieldset=usera, fieldvalue={P}]
+ }
+ \map{
+ \pertype{inproceedings}
+ \pertype{conference}%兼容老的conference类型
+ \step[fieldset=usera, fieldvalue={C}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{proceedings}
+ \step[fieldset=usera, fieldvalue={C}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{incollection}
+ \step[fieldset=usera, fieldvalue={G}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{collection}
+ \step[fieldset=usera, fieldvalue={G}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{report}
+ \pertype{techreport}%兼容老的techreport类型
+ \step[fieldset=usera, fieldvalue={R}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{thesis}
+ \pertype{mastersthesis}%兼容老的mastersthesis和phdthesis类型
+ \pertype{phdthesis}
+ \step[fieldset=usera, fieldvalue={D}]
+ \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{
+ \pertype{online}
+ \pertype{electronic}%兼容老的electronic类型
+ \pertype{www}%兼容老的www类型
+ \step[fieldset=usera, fieldvalue={EB}]
+ \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]%因为online的出版项处理类似手册
+ \step[fieldsource=organization]%有时会把organization和institution混淆,处理后使用institution,以增强兼容性
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{
+ \pertype{manual}
+ \step[fieldset=usera, fieldvalue={A}]
+ \step[fieldsource=edition]%有时会把version和edition混淆,处理后使用version
+ \step[fieldset=version, origfieldval]
+ \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ \step[fieldsource=organization]%有时会把organization和institution混淆,处理后使用institution,以增强兼容性
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{
+ \pertype{unpublished}
+ \step[fieldset=usera, fieldvalue={Z}]
+ }
+ \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
+ \step[fieldsource={author}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
+ }%
+ \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
+ \step[fieldsource={editor}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
+ }%
+ \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
+ \step[fieldsource={translator}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
+ }%
+ \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
+ \step[fieldsource={bookauthor}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
+ }%
+ \map{%处理一些用year表示date的情况
+ %这样处理将会设置date域,并使得labeldatesource变为空,因为date的前缀为空(如果是urldate,那么labeldatesource就是url)。
+ %同时date域会被biblatex自动解析为year,month,day,并且覆盖原来的year信息
+ \step[fieldsource=year]
+ \step[fieldset=date, origfieldval]
+ }
+ \map{%将entrykey放入keywords中用于后期使用
+ \step[fieldsource=entrykey]
+ \step[fieldset=keywords, origfieldval]
+ }
+ \map{\step[fieldsource=title,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=userd,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=title,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=userd,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=title,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=userd,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=title,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=userd,fieldvalue={korean}]%韩语
+ }
+ \map{%文献题名的中文判断,将信息保存到userd中,避免因为标签生成原因导致title域被清除而产生问题
+ \step[fieldsource=title, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%
+ \step[fieldset=userd, fieldvalue={chinese}]
+ }
+ \map{%将没有设置userd,且存在title域的默认设置为英文
+ \step[fieldsource=title,final]
+ \step[fieldset=userd,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=author,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=userf,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=author,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=userf,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=author,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=userf,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=author,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=userf,fieldvalue={korean}]%韩语
+ }
+ \map{%作者的中文判断
+ \step[fieldsource=author, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]
+ \step[fieldset=userf, fieldvalue={chinese}]
+ }
+ \map{%将没有设置userf,且存在author域的默认设置为英文
+ \step[fieldsource=author,final]
+ \step[fieldset=userf,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=translator,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=usere,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=translator,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=usere,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=translator,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=usere,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=translator,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=usere,fieldvalue={korean}]%韩语
+ }
+ \map{%译者的中文判断
+ \step[fieldsource=translator, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]
+ \step[fieldset=usere, fieldvalue={chinese}]
+ }
+ \map{%将没有设置usere,且存在translator域的默认设置为英文
+ \step[fieldsource=translator,final]
+ \step[fieldset=usere,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=editor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=userc,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=editor,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=userc,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=editor,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=userc,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=editor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=userc,fieldvalue={korean}]%韩语
+ }
+ \map{%编者的中文判断
+ \step[fieldsource=editor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5
+ \step[fieldset=userc, fieldvalue={chinese}]
+ }
+ \map{%将没有设置userc,且存在editor域的默认设置为英文
+ \step[fieldsource=editor,final]
+ \step[fieldset=userc,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=bookauthor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=userb,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=bookauthor,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=userb,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=bookauthor,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=userb,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=bookauthor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=userb,fieldvalue={korean}]%韩语
+ }
+ \map{%编者的中文判断
+ \step[fieldsource=bookauthor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5
+ \step[fieldset=userb, fieldvalue={chinese}]
+ }
+ \map{%将没有设置userc,且存在editor域的默认设置为英文
+ \step[fieldsource=bookauthor,final]
+ \step[fieldset=userb,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=userd,final]%userd存在则用根据标题的语言设定language
+ \step[fieldset=language,origfieldval]%本身language存在则不设定
+ }
+ \map{\step[fieldsource=userf,final]%userd不存在,而userf存在则根据author的语言设定language
+ \step[fieldset=language,origfieldval]
+ }%如果没有作者和标题,那么剩下的最可能有意义的只有网址了,而网址通常是英文的,因此不用再进一步对其它域进行判断了。
+ \map{%将没有设置的language设置成en,即认为不是中文的就是英文的。
+ \step[fieldset=language,fieldvalue={english}]
+ }
+ \map{%一条文献的语言已经设定在language域中,由于出版项相关宏中使用userd判断,
+ %所以将一条文献的主体语言设定到userd中,本身前面userd已经设定,但没有处理无标题的情况,
+ %这里的处理等价于没有标题时,利用作者的语言设定userd,再没有作者,则默认用英文设定userd
+ \step[fieldsource=language]
+ \step[fieldset=userd,origfieldval]
+ }
+ \map{%当文献给出language域时,设置文献要使用的本地化字符串的语言
+ %biblatex 3.11及以下版本仅有match是区分大小写的,而3.12版开始用matchi来区分大小,而match不区分
+ %这里为兼容3.11及以下版本,所以用一个复杂一点的正则表达式
+ \step[fieldsource=language,match=\regexp{(e|E)(n|N)(g|G)(l|L)(i|I)(s|S)(h|H)},final]
+ \step[fieldset=langid,fieldvalue={english}]
+ \step[fieldset=lansortorder,fieldvalue=\lanenorder]
+ }
+ \map{
+ \step[fieldsource=language,match=\regexp{(r|R)(u|U)(s|S)(s|S)(i|I)(a|A)(n|N)},final]
+ \step[fieldset=langid,fieldvalue={russian}]
+ \step[fieldset=lansortorder,fieldvalue=\lanruorder]
+ }
+ \map{%
+ \step[fieldsource=language,match=\regexp{(f|F)(r|R)(e|E)(n|N)(c|C)(h|H)},final]
+ \step[fieldset=langid,fieldvalue={french}]
+ \step[fieldset=lansortorder,fieldvalue=\lanfrorder]
+ }
+ \map{%
+ \step[fieldsource=language,match=\regexp{(c|C)(h|H)(i|I)(n|N)(e|E)(s|S)(e|E)},final]%中日韩语目前都用english,
+ \step[fieldset=langid,fieldvalue={english}]
+ \step[fieldset=lansortorder,fieldvalue=\lancnorder]
+ }
+ \map{%
+ \step[fieldsource=language,match=\regexp{(j|J)(a|A)(p|P)(a|A)(n|N)(e|E)(s|S)(e|E)},final]%中日韩语目前都用english,
+ \step[fieldset=langid,fieldvalue={english}]
+ \step[fieldset=lansortorder,fieldvalue=\lanjporder]
+ }
+ \map{%
+ \step[fieldsource=language,match=\regexp{(k|K)(o|O)(r|R)(e|E)(a|A)(n|N)},final]%中日韩语目前都用english,
+ \step[fieldset=langid,fieldvalue={english}]
+ \step[fieldset=lansortorder,fieldvalue=\lankrorder]
+ }
+ \map{%尝试未定义数据模型的standard类型映射为其他类型book或inbook,
+ %standard类型在blx-dm中有出现,但仅定义了类型,域和约束等都没有定义
+ %因为可能要映射两种类型,所以不能在驱动层处理,因为要做判断
+ \step[fieldsource=booktitle,final]%当存在booktitle域是映射为inbook
+ \step[typesource=standard, typetarget=inbook, final]
+ }
+ \map{%剩下的全部映射为book
+ \step[typesource=standard, typetarget=book, final]
+ }
+% \map{%先于标准样式的driver层映射,以取消type设置
+% \step[typesource=mastersthesis, typetarget=thesis, final]
+% %\step[fieldset=type, fieldvalue=mathesis]
+% }
+% \map{%先于标准样式的driver层映射,以取消type设置
+% \step[typesource=phdthesis, typetarget=thesis, final]
+% %\step[fieldset=type, fieldvalue=phdthesis]
+% }
+ \map{%先于标准样式的driver层映射,以取消type设置
+ \step[typesource=techreport, typetarget=report, final]
+ %\step[fieldset=type, fieldvalue=techreport]
+ }
+ \map{%
+ \pertype{report}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=report,typetarget=online]
+ \step[fieldset=note,fieldvalue={report}]
+ }
+ \map{%
+ \pertype{thesis}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=thesis,typetarget=online]
+ }
+ \map{%
+ \pertype{manual}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=manual,typetarget=online]
+ }
+ \map{%
+ \pertype{unpublished}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=unpublished,typetarget=online]
+ }
+ \map{%
+ \pertype{database}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=databasetypetarget=online]
+ }
+ \map{%
+ \pertype{dataset}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=dataset,typetarget=online]
+ }
+ \map{%
+ \pertype{software}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=software,typetarget=online]
+ }
+ \map{%
+ \pertype{map}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=map,typetarget=online]
+ }
+ \map{%
+ \pertype{archive}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=archive,typetarget=online]
+ }
+ \map[overwrite]{%这里还必须有overwrite,注意不同版本存在差异,比如texlive2015变16后biber有变化(20161207修改正确)
+ \step[fieldsource=note, final]%将note域信息复制给keywords,用于输出时容易区分标准和报纸
+ \step[fieldset=keywords, fieldvalue={,}, append]
+ \step[fieldset=keywords, origfieldval, append]
+ }
+ \map[overwrite]{%title,booktitle,journaltitle,journal,publisher,address,location,institution,organization
+ \step[fieldsource={title}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ \map[overwrite]{
+ \step[fieldsource={booktitle}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ \map[overwrite]{
+ \step[fieldsource={journaltitle}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ \map[overwrite]{
+ \step[fieldsource={journal}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ \map[overwrite]{
+ \step[fieldsource={publisher}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ \map[overwrite]{
+ \step[fieldsource={address}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ \map[overwrite]{
+ \step[fieldsource={location}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ \map[overwrite]{
+ \step[fieldsource={institution}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ \map[overwrite]{
+ \step[fieldsource={booktitle}, match=\regexp{([^\\])\#}, replace=\regexp{$1\\\#}]
+ }
+ \map[overwrite]{
+ \step[fieldsource={booktitle}, match=\regexp{([^\\])\%}, replace=\regexp{$1\\\%}]
+ }
+ %对于高版本(3.4以上)可以用下面这一段取代前面那一段,为了兼容gbnoauthor选项,这些代码只能在sourcemap中使用,所以只能选择前面那一段
+ %\map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{
+% \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\#}, replace=\regexp{$1\\\#}]
+% }
+% \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{
+% \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\%}, replace=\regexp{$1\\\%}]
+% }
+% \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,%
+% address,location,institution,organization}]{
+% \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+% }
+ }
+}
+
+%
+% 佚名/noauthor的处理
+%
+% 原理方法:利用样式层的动态数据修改实现
+\def\dealnoathor{
+ \DeclareStyleSourcemap{
+ \maps[datatype=bibtex]{
+ \map{%默认情况下将空缺作者的中文文献设置为佚名
+ \step[fieldsource=language,match={chinese},final]
+ \step[fieldset=author, fieldvalue={佚名}]
+ }
+ \map{%默认情况下将空缺作者的英文文献设置为A{non}
+ \step[fieldsource=language,match={english},final]
+ \step[fieldset=author, fieldvalue={A{non}}]%noauthor换成Anon,同时为避免大写还加了{}
+ }
+ }
+ }
+}
+
+%
+% 不同语言分集调整的实现方式
+%
+% 原理方法:利用样式层的动态数据修改lansortorder域来实现排序
+\def\dealsortlan{
+ \DeclareStyleSourcemap{
+ \maps[datatype=bibtex]{
+ \map[overwrite]{%当文献给出language域时,设置文献要使用的本地化字符串的语言
+ \step[fieldsource=language,match=english,final]
+ \step[fieldset=lansortorder,fieldvalue=\lanenorder]
+ }
+ \map[overwrite]{
+ \step[fieldsource=language,match=russian,final]
+ \step[fieldset=lansortorder,fieldvalue=\lanruorder]
+ }
+ \map[overwrite]{%
+ \step[fieldsource=language,match=french,final]
+ \step[fieldset=lansortorder,fieldvalue=\lanfrorder]
+ }
+ \map[overwrite]{%
+ \step[fieldsource=language,match=chinese,final]%中日韩语目前都用english,
+ \step[fieldset=lansortorder,fieldvalue=\lancnorder]
+ }
+ \map[overwrite]{%
+ \step[fieldsource=language,match=japanese,final]%中日韩语目前都用english,
+ \step[fieldset=lansortorder,fieldvalue=\lanjporder]
+ }
+ \map[overwrite]{%
+ \step[fieldsource=language,match=korean,final]%中日韩语目前都用english,
+ \step[fieldset=lansortorder,fieldvalue=\lankrorder]
+ }
+ }
+ }
+}
+
+
+%
+%驱动别名等价于驱动层映射
+%
+\DeclareBibliographyAlias{newspaper}{article}%
+\DeclareBibliographyAlias{inproceedings}{inbook}%会议论文文献类型驱动
+\DeclareBibliographyAlias{conference}{inbook}%会议论文文献类型驱动
+\DeclareBibliographyAlias{incollection}{inbook}%文集中析出文献类型驱动
+\DeclareBibliographyAlias{collection}{book}%%文集类型驱动
+\DeclareBibliographyAlias{proceedings}{book}%会议论文集文献类型驱动
+\DeclareBibliographyAlias{thesis}{manual}%学位论文驱动
+\DeclareBibliographyAlias{unpublished}{manual}%其它类型驱动
+\DeclareBibliographyAlias{database}{manual}
+\DeclareBibliographyAlias{dataset}{manual}
+\DeclareBibliographyAlias{software}{manual}
+\DeclareBibliographyAlias{map}{manual}
+\DeclareBibliographyAlias{archive}{manual}
+
+%=====================================================================
+% 设置排序格式
+%=====================================================================
+%
+% 排序格式,用降序,及userb域,针对biblatex3.7及以下版本
+%
+\defversion{3.7}{sort}{%这是3.4版的,3.7版略有差异,但不大,后面有注释
+ \DeclareSortingScheme{gb7714-2015}{
+ \sort{
+ \field{presort}
+ }
+ %\sort[final]{
+ %\field{sortkey}
+ %}
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort{
+ \field{sortkey}
+ }
+ \sort{%[direction=descending]
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field[padside=left,padwidth=4,padchar=0]{volume}%3.7版是\field{volume}
+ \literal{0000}%3.7版是\literal{0}
+ }
+ }
+
+ %降序的nyt
+ \DeclareSortingScheme{gbnytd}{
+ \sort{
+ \field{presort}
+ }
+ %\sort[final]{
+ %\field{sortkey}
+ %}
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort[direction=descending]{
+ \field{sortkey}
+ }
+ \sort[direction=descending]{
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field[padside=left,padwidth=4,padchar=0]{volume}%3.7版是\field{volume}
+ \literal{0000}%3.7版是\literal{0}
+ }
+ }
+
+ %降序的ynt
+ \DeclareSortingScheme{gbyntd}{
+ \sort{
+ \field{presort}
+ }
+ %\sort[final]{
+ %\field{sortkey}
+ %}
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort[direction=descending]{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sortkey}
+ }
+ \sort{
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field[padside=left,padwidth=4,padchar=0]{volume}%3.7版是\field{volume}
+ \literal{0000}%3.7版是\literal{0}
+ }
+ }
+
+ %升序的ynt
+ \DeclareSortingScheme{gbynta}{
+ \sort{
+ \field{presort}
+ }
+ %\sort[final]{
+ %\field{sortkey}
+ %}
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sortkey}
+ }
+ \sort{
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field[padside=left,padwidth=4,padchar=0]{volume}%3.7版是\field{volume}
+ \literal{0000}%3.7版是\literal{0}
+ }
+ }
+}
+
+
+%
+% 排序格式,用降序,及userb域,针对biblatex3.8及以上版本
+%
+\defversion{3.8}{sort}{
+ \DeclareSortingTemplate{gb7714-2015}{
+ \sort{
+ \field{presort}
+ }
+ %\sort[final]{
+ %\field{sortkey}
+ %}
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort{
+ \field{sortkey}
+ }
+ \sort{%[direction=descending]
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field{volume}
+ \literal{0}
+ }
+ }
+
+ %降序的nyt
+ \DeclareSortingTemplate{gbnytd}{
+ \sort{
+ \field{presort}
+ }
+% \sort[final]{
+% \field{sortkey}
+% }
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort[direction=descending]{
+ \field{sortkey}
+ }
+ \sort[direction=descending]{%
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field{volume}
+ \literal{0}
+ }
+ }
+
+ %降序的ynt
+ \DeclareSortingTemplate{gbyntd}{
+ \sort{
+ \field{presort}
+ }
+% \sort[final]{
+% \field{sortkey}
+% }
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort[direction=descending]{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sortkey}
+ }
+ \sort{%
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field{volume}
+ \literal{0}
+ }
+ }
+
+ %升序的ynt
+ \DeclareSortingTemplate{gbynta}{
+ \sort{
+ \field{presort}
+ }
+% \sort[final]{
+% \field{sortkey}
+% }
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort{%[direction=ascending]
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sortkey}
+ }
+ \sort{%
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field{volume}
+ \literal{0}
+ }
+ }
+
+ %
+ % 定义命令\defdoublelangentry,用于biblatex>v3.8版利用related实现双语文献的处理
+ %
+ %为了实现v3.8以上版本的双语文献,采用related的方法代替set方法,因为set方法已经无法实现了,
+ %因为set不再复制其第一个成员的信息。于是定义一个命令,用于动态的修改数据,即添加related域的信息
+ %其中使用了\DeclareStyleSourcemap,但由于其只能出现在导言区中,因此\defdoublelangentry命令也只能出现在导言区中
+ \newcommand{\defdoublelangentry}[2]{%
+ \edef\entrykeya{##1}
+ \edef\entrykeyb{##2}
+ \DeclareStyleSourcemap{
+ \maps[datatype=bibtex]{
+ \map{
+ \step[fieldsource=entrykey, match=\entrykeya, final]
+ \step[fieldset=related, fieldvalue=\entrykeyb]
+ }
+ }
+ }
+ }
+}
+
+
+\ifboolexpr{
+test {\iftoggle{iftlfive}}
+or
+test {\iftoggle{iftlsix}}
+or
+test {\iftoggle{iftlseven}}%biblatex<=3.7
+}{\switchversion{3.7}{sort}}{\switchversion{3.8}{sort}}%3.8<=biblatex
+
+
+%=====================================================================
+%参考文献表环境
+%=====================================================================
+
+%
+% 列表格式
+%
+% 增加一个\bibitemindent尺寸用于控制list环境的itemindent
+% v1.0l,20180615,hzz
+\setlength{\bibhang}{1em}
+\newlength{\bibitemindent}
+\setlength{\bibitemindent}{-\bibhang}
+\setlength{\bibitemsep}{4.5pt}
+\defbibenvironment{bibliography}
+ {\list
+ {}
+ {\setlength{\leftmargin}{\bibhang}%
+ \setlength{\itemindent}{\bibitemindent}%
+ \setlength{\itemsep}{\bibitemsep}%
+ \setlength{\parsep}{\bibparsep}}}
+ {\endlist}
+ {\item}
+%
+% 增加一个numerical环境用于自动显示数字
+% v1.0w,20210311,hzz
+\newcounter{refnumerical}
+\newlength{\biblabelextend}
+\defbibenvironment{numerical}
+ {\setlength{\bibhang}{\biblabelsep}%
+ \setlength{\labelnumberwidth}{2em}%
+ \setlength{\bibitemindent}{0pt}%
+ \setlength{\biblabelextend}{0pt}%
+ \setlength{\biblabelextend}{0pt}%
+ \list
+ {\printtext[labelnumberwidth]{[\arabic{refnumerical}]}}
+ {\usecounter{refnumerical}%
+ \addtolength{\labelnumberwidth}{\biblabelextend}%
+ \setlength{\labelwidth}{\labelnumberwidth}%
+ \setlength{\labelsep}{\biblabelsep}%
+ \setlength{\leftmargin}{\bibhang}%
+ \addtolength{\leftmargin}{\labelnumberwidth}%
+ \setlength{\itemindent}{\bibitemindent}%
+ \setlength{\itemsep}{\bibitemsep}%
+ \setlength{\parsep}{\bibparsep}}%
+ \renewcommand*{\makelabel}[1]{\hss##1}}
+ {\endlist}
+ {\item}
+
+
+
+%=====================================================================
+% 设置单元或块等的标点
+%=====================================================================
+\renewrobustcmd*{\bibinithyphendelim}{\addhighpenspace}%用于处理姓名中名部分存在-的情况,比如ZHANG Yu-xin
+\renewcommand*{\subtitlepunct}{\addcolon\space} %修改标题和其它标题信息间的标点%来源biblatex.def
+%
+% 利用set实现的多语言文献不同语言间的分隔符
+% 20170411,双语之间用newline替换par,避免采用gb7714-2015的项对齐方式第二语言间分段导致没有缩进
+%
+% 原理方法:set方法可以参考3.11.5 Entry Sets,4.11.1 Entry Sets
+% 这里调整一下两种语言参考文献的间隔,源来自biblatex.def
+\renewcommand*{\entrysetpunct}{\adddot\par\nobreak}%ay样式用par也可以,因为没有悬挂对齐问题
+\renewcommand*{\bibpagespunct}{\addcolon\addthinspace}%%页码引用格式的修改,修改为用冒号
+%\renewcommand{\relateddelim}{}%\par
+
+%=====================================================================
+% 修改域的格式,重定义域的输出宏
+%=====================================================================
+%
+% 新增文献类型标识符的格式
+% []前的nobreak,从GB4.1节的例子看不应该加,所以去掉
+% 但因为考虑到cjk字符和[]之间可能添加空格,所以仍然加上
+% 而[]中间的内容,从4.6.2节的例子看也是可以分割的,因此内部的nobreak也可以去掉
+%
+\DeclareFieldFormat{gbtypeflag}{%
+\iftoggle{bbx:gbmedium}%
+{\iftoggle{bbx:url}%
+ {\iffieldundef{url}%当存在url时,增加一个OL标识符
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}}%
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\texttt{/}OL]}}%
+ }%
+ {\ifentrytype{online}%
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\texttt{/}OL]}}%
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}}%
+ }}%
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{]}}%
+}
+
+%
+% 新增用于报纸的文献类型标识符的格式
+%
+\DeclareFieldFormat{gbtypeflagn}{%用于报纸newspaper
+\iftoggle{bbx:gbmedium}%
+{\iftoggle{bbx:url}%
+ {\iffieldundef{url}%当存在url时,增加一个OL标识符
+ {\nobreak\printtext{[}\nobreak N\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
+ {\nobreak\printtext{[}\nobreak N\printtext{\texttt{/}OL]}\nobreak}%
+ }%
+ {\nobreak\printtext{[}\nobreak N\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
+}{\nobreak\printtext{[}\nobreak N\printtext{]}\nobreak}%
+}
+
+%
+% 新增用于标准的文献类型标识符的格式
+%
+\DeclareFieldFormat{gbtypeflags}{%用于标准standard
+\iftoggle{bbx:gbmedium}%
+{\iftoggle{bbx:url}%
+ {\iffieldundef{url}%当存在url时,增加一个OL标识符
+ {\nobreak\printtext{[}\nobreak S\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
+ {\nobreak\printtext{[}\nobreak S\printtext{\texttt{/}OL]}\nobreak}%
+ }%
+ {\nobreak\printtext{[}\nobreak S\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
+}{\nobreak\printtext{[}\nobreak S\printtext{]}\nobreak}%
+}
+
+%
+% 重设title等参考文献信息的输出格式
+%
+% 原理方法:修改来自biblatex.def文件的原格式
+\newcommand{\bibtitlefont}{}
+\newcommand{\bibauthorfont}{}
+\newcommand{\bibpubfont}{}
+\DeclareFieldFormat{title}{#1\adddot\addthinspace}
+\DeclareFieldFormat{journaltitle}{#1\isdot}%添加\isdot,用于缩写名带点情况,将其转换为缩写点,便于标点的追踪
+\DeclareFieldFormat{issuetitle}{#1}
+\DeclareFieldFormat{maintitle}{#1}
+\DeclareFieldFormat{booktitle}{#1}
+\DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉
+ [article,patent,thesis,unpublished]
+ {title}{#1\adddot\addthinspace}
+\DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉
+ [inbook,incollection,inproceedings]
+ {title}{#1}%\nopunct\unspace
+\DeclareFieldFormat{url}{\url{#1}} %url域修改如本行%url相关输出,源来自biblatex.def
+\def\UrlFont{\rmfamily}%设置url字体为roman字体%\ttfamily
+%\urlstyle{rm} %使用这句也一样
+\setcounter{biburlnumpenalty}{100} %让url可以在数字后断行
+\setcounter{biburlucpenalty}{100} %让url可以在大写字母后断行
+\setcounter{biburllcpenalty}{100} %让url可以在小写字母后断行
+\DeclareFieldFormat{doi}{%
+ \rmfamily{DOI}\addcolon\space
+ \ifhyperref
+ {\href{https://doi.org/#1}{\nolinkurl{#1}}}
+ {\nolinkurl{#1}}}
+%
+% 标题的字母大小写格式修改
+%
+% 注意:修改标题的字母大小写,不能用前面的title的格式而要用titlecase
+% 因为titlecase is applied to the contents of the field directly,title is not
+%\DeclareFieldFormat{titlecase}{\MakeCapital#1}%重设标题格式,将其修改为首字母大写
+\DeclareFieldFormat{titlecase}{\iftoggle{bbx:titlelink}{%
+\iffieldundef{url}{\MakeCapital#1}{%
+\href{\thefield{url}}{#1}}}{\MakeCapital#1}}%重设标题格式,将其修改为首字母大写
+\DeclareFieldFormat{pages}{#1}%页码引用格式的修改%去掉前面引导页码的pp.等字符
+\DefineBibliographyExtras{english}{\renewcommand*{\bibrangedash}{-}}
+\DefineBibliographyExtras{russian}{\renewcommand*{\bibrangedash}{-}}
+
+\def\execgbfdfmtstd{%恢复到标准样式的设置
+\DeclareFieldFormat{title}{\mkbibemph{##1}}
+\DeclareFieldFormat
+ [article,inbook,incollection,inproceedings,patent,thesis,unpublished]
+ {title}{\mkbibquote{##1\isdot}}
+\DeclareFieldFormat
+ [suppbook,suppcollection,suppperiodical]
+ {title}{##1}
+\DeclareFieldFormat{journaltitle}{\mkbibemph{##1}}
+\DeclareFieldFormat{issuetitle}{\mkbibemph{##1}}
+\DeclareFieldFormat{maintitle}{\mkbibemph{##1}}
+\DeclareFieldFormat{booktitle}{\mkbibemph{##1}}
+\DeclareFieldFormat{url}{\mkbibacro{URL}\addcolon\space\url{##1}}
+\DeclareFieldFormat{titlecase}{##1}
+\DeclareFieldFormat{pages}{\mkpageprefix[bookpagination]{##1}}
+}
+
+%
+% 文献标题后的标点问题
+% v1.0k,20180405,为texlive2017以上版本中的beamer兼容性做的处理,Hu Zhenzhen
+%
+% 原理方法:如下代码处理texlive2017以上版本中,beamer中文献的标题后出现两个点的情况:
+% texlive2017以上的beamer中对macro{title}做了patch,正常情况下不会出现两个点的情况,但由于
+% 之前为了处理texlive2015,2016下的title格式添加了adddot,导致出现两个点的情况,而且也影响
+% 析出文献的//符号的输出,因此再次对macro{title}做patch消除beamer中做apptocmd时添加的\newunitpunct
+\ifboolexpr{%
+ test{\iftoggle{iftlfive}}
+ or
+ test{\iftoggle{iftlsix}}
+ }{}%
+ {%texlive 2017对应iftlseven以上版本
+ \@ifclassloaded{beamer}{
+ \DeclareFieldFormat{title}{#1}%
+ \DeclareFieldFormat[article,patent,thesis,unpublished]{title}{#1}
+ \AtBeginDocument{%
+ \patchcmd{\abx@macro@title}{\newunitpunct}{}{}{}}}{}
+ }
+
+
+%
+% 修改译者位置格式
+% v1.0w,20210401,hzz,增加对英文等其它语言译者的处理
+%
+% 原理方法:修改来自biblatex.def文件的bytranslator+others宏的格式
+\renewbibmacro*{bytranslator+others}{\bibauthorfont%
+ \ifnameundef{translator}
+ {}
+ {\iffieldequalstr{usere}{chinese}{}{\usebibmacro{bytranslator+othersstrg}}
+ %\setunit{\addspace}%
+ \printnames[bytranslator]{translator}%
+ \clearname{translator}%
+ %从macro*{bytranslator+othersstrg}%中可以看到当地化字符串格式的引用前的代码处理
+ %比如生成cotranslator等用于调用cotranslator所代表的当地化字符串
+ \iffieldequalstr{usere}{chinese}{\usebibmacro{bytranslator+othersstrg}}{}%“译”的位置换到下面来,即放到译者后面。
+ %\setunit{\addspace}%
+ \newunit}%
+ \usebibmacro{withothers}}
+
+\renewbibmacro*{bytranslator+othersstrg}{%
+ \def\abx@tempa{bytranslator}%
+ \ifnamesequal{translator}{commentator}
+ {\appto\abx@tempa{co}%
+ \clearname{commentator}}
+ {\ifnamesequal{translator}{annotator}
+ {\appto\abx@tempa{an}%
+ \clearname{annotator}}
+ {}}%
+ \ifnamesequal{translator}{introduction}
+ {\appto\abx@tempa{in}%
+ \clearname{introduction}}
+ {\ifnamesequal{translator}{foreword}
+ {\appto\abx@tempa{fo}%
+ \clearname{foreword}}
+ {\ifnamesequal{translator}{afterword}
+ {\appto\abx@tempa{af}%
+ \clearname{afterword}}
+ {}}}%
+\iffieldequalstr{usere}{chinese}{\bibstring{bytranslatorcn}}
+ {\bibstring{\abx@tempa}}}
+
+%
+% 修改作者数量超过限定值,做省略时的处理格式
+% v1.0,20160701,hzz
+% v1.0O,20190103,hzz,修改利用新定义的一个分隔符strandothersdelim
+% v1.0w,20210401,hzz,针对其它语言的译者后的标点与中文不同做处理
+% 原理方法:判断作者或译者是否中文,若中文用字符等,否则用et al. 。
+% \printnames由start-stop控制项数,默认是1和maxnames/minnames
+\renewbibmacro*{name:andothers}{\bibauthorfont%
+ \ifboolexpr{
+ test {\ifnumequal{\value{listcount}}{\value{liststop}}}
+ and
+ test \ifmorenames
+ }{\ifnumgreater{\value{liststop}}{1}%注意这里试图去区分姓名总数大于1的情况,当姓名总数大于1时,最后一个姓名后面先加入一个\finalandcomma
+ {\finalandcomma}%目前国标没有这样的区分要求,如果有需要也是可以这么去做的。
+ {}%
+\printdelim{andothersdelim}\printdelim{strandothersdelim}%
+}{%当是译者的时候需要特殊处理:从7.2节看等,译前面加逗号,但从示例看等和译同时出现时,译前的逗号没有,比如:
+%袁训来, 陈哲, 肖书海, 等.
+%胡泳, 范海燕, 译.
+%潘惠霞, 魏婧, 杨艳, 等译.
+\ifcurrentname{translator}{\iffieldequalstr{usere}{chinese}{\addcomma\addthinspace}{}}{}%为了实现上述第二个示例情况做的处理
+}}
+
+% 修改省略作者后的本地化字符串,比如et al.
+% v1.0o,20190103,hzz
+%
+% 原理方法:默认情况下判断作者或译者是否中文,若中文用字符andotherscn=“等”,否则用andothers=“et al.”。
+% 非默认情况,根据选项信息,选择选择强制中文或英文
+% 首先设置全局的,然后设置文献表中的,这一等价于将所有的cite命令环境都设置过了
+% 而不用对每一个引用命令单独设置,比如cite,parancite,textcite都设置
+\DeclareDelimFormat{strandothersdelim}{%
+ \edef\userfieldabcde{userd}%这里使用\iffieldequalstr{labelnamesource}替代ifcurrentname因为标注中使用ifcurrentname无效
+ \iffieldequalstr{labelnamesource}{translator}{\edef\userfieldabcde{usere}}{}%
+ \iffieldequalstr{labelnamesource}{editor}{\edef\userfieldabcde{userc}}{}%
+ \iffieldequalstr{labelnamesource}{author}{\edef\userfieldabcde{userf}}{}%
+ \iffieldequalstr{labelnamesource}{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbcitelocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\ifbibstring{andothersincitecn}{\bibstring{andothersincitecn}}{\bibstring{andothers}}}{}%中文已经通过english本地化字符串定义
+ \iffieldequalstr{\userfieldabcde}{korean}{\ifbibstring{andotherskr}{\bibstring{andotherskr}}{\bibstring{andothers}}}{}%韩语未定义,所以与bib中一致
+ \iffieldequalstr{\userfieldabcde}{japanese}{\ifbibstring{andothersjp}{\bibstring{andothersjp}}{\bibstring{andothers}}}{}%日与同韩语
+ \iffieldequalstr{\userfieldabcde}{english}{\ifbibstring{andothersincite}{\bibstring{andothersincite}}{\bibstring{andothers}}}{}%英语已定义
+ \iffieldequalstr{\userfieldabcde}{french}{\bibstring{andothers}}{}%法语未定义,若要定义需要针对french本地化字符串定义
+ \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{andothers}}{}%俄语未定义,若要定义需要针对russian本地化字符串定义
+ \or%
+ \bibstring{andothersincitecn}%
+ \or%
+ \bibstring{andothersincite}%
+ \fi}
+
+
+\DeclareDelimFormat[bib,biblist]{strandothersdelim}{%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbbiblocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andotherscn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andotherskr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andothersjp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\bibstring{andothers}}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\bibstring{andothers}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{andothers}}{}%
+ \or%
+ \bibstring{andotherscn}%
+ \or%
+ \bibstring{andothers}%
+ \fi}
+
+
+%
+% 修改最后一个作者前的字符串,比如 and
+% v1.0o,20190103,hzz
+%
+% 原理方法:默认情况下判断作者或译者是否中文,若中文用字符andcn=“和”,否则用and=“and”。
+% 非默认情况,根据选项信息,选择选择强制中文或英文
+% 首先设置全局的,然后设置文献表中的,这一等价于将所有的cite命令环境都设置过了
+% 而不用对每一个引用命令单独设置,比如cite,parancite,textcite都设置
+\DeclareDelimFormat{finalnamedelim}{%
+ \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
+% \addspace%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbcitelocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andincitecn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andkr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andjp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\space\bibstring{andincite}\space}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\space\bibstring{and}\space}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\space\bibstring{and}\space}{}%
+%\space%
+ \or%
+ \bibstring{andincitecn}%\space%
+ \or%
+\space\bibstring{andincite}\space%
+ \fi}
+
+\DeclareDelimFormat[bib,biblist]{finalnamedelim}{%
+ \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
+ \addspace%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbbiblocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andcn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andkr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andjp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\bibstring{and}}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\bibstring{and}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{and}}{}%
+\space%
+ \or%
+ \bibstring{andcn}\space%
+ \or%
+ \bibstring{and}\space%
+ \fi}
+
+
+
+%
+% 重设title的输出
+%
+% 20180425,v1.0k,为标题增加字体控制命令,Hu Zhenzhen
+% 原理方法:将文献类型标识符输出出去,原输出来自biblatex.def文件
+% 利用toggle做标识符是否输出的判断
+\renewbibmacro*{title}{%
+ \ifboolexpr{%
+ test{\iffieldundef{title}}%
+ and
+ test{\iffieldundef{subtitle}}%
+ }%
+ {}%
+ {\printtext[title]{\bibtitlefont%增加字体控制命令
+ \printfield[titlecase]{title}%
+ \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
+ {}{\setunit{\subtitlepunct}%
+ \printfield[titlecase]{subtitle}}%
+ \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
+ {\setunit{\subtitlepunct}\printfield{titleaddon}}%
+ \iftoggle{bbx:gbtype}{%
+ \iffieldundef{note}{\printfield[gbtypeflag]{usera}}%在标题后直接给出文献标识字母,判断一下,是否是报纸和标准
+ {\iffieldequalstr{note}{standard}{\printfield[gbtypeflags]{usera}}%判断是否为标准
+ {\iffieldequalstr{note}{news}{\printfield[gbtypeflagn]{usera}}%判断是否为报纸
+ {\printfield[gbtypeflag]{usera}}}%其它
+ }}{}%
+ %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
+ %\newunit
+ }%
+}}
+
+
+%
+% 作者信息的输出格式
+%
+% 20180425,v1.0k,为作者增加字体控制命令,Hu Zhenzhen
+% 20180603,v1.0l,增加使用nameformat域来选择姓名格式
+\DeclareNameFormat{namefmtselected}{%
+\iffieldundef{namefmtid}{}%
+{\defcounter{gbnamefmtcase}{\thefield{namefmtid}}}%
+\ifcase\value{gbnamefmtcase}%
+ \ifgiveninits
+ {\usebibmacro{name:gbuppercase}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:gbuppercase}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+\or
+ \ifgiveninits
+ {\usebibmacro{name:gblowercase}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:gblowercase}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+\or
+ \ifgiveninits
+ {\usebibmacro{name:given-family}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:given-family}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+\or
+ \ifgiveninits
+ {\usebibmacro{name:family-given}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:family-given}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+\or
+\usebibmacro{name:gbpinyin}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}%
+\or
+ \ifnumequal{\value{listcount}}{1}
+ {\ifgiveninits
+ {\usebibmacro{name:family-given}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:family-given}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+ \ifboolexpe{%
+ test {\ifdefvoid\namepartgiven}
+ and
+ test {\ifdefvoid\namepartprefix}}
+ {}
+ {\usebibmacro{name:revsdelim}}}
+ {\ifgiveninits
+ {\usebibmacro{name:given-family}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:given-family}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}}%
+\or
+\usebibmacro{name:gbquanpin}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}%
+\fi
+ \usebibmacro{name:andothers}}
+
+\DeclareNameAlias{default}{namefmtselected}%姓名的默认格式采用可选的模式
+\DeclareNameAlias{sortname}{default}% Used in the bibliography %family-given/given-family
+\DeclareNameAlias{citename}{default}% Default used by \citename
+
+\DeclareDelimFormat[bib,biblist]{andothersdelim}{\addcomma\addspace}
+%\DeclareDelimFormat[textcite]{andothersdelim}{\addspace}%
+
+%GB/T 7714-2015 风格,全部大写
+\newbibmacro*{name:gbuppercase}[4]{\bibauthorfont%
+\renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
+\renewcommand*{\revsdnamepunct}{}%
+ \ifuseprefix%
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifdefvoid{#3}{}{%
+ \ifcapital%
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}%
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifprefchar{}{\bibnamedelimc}}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
+ \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{\MakeUppercase{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
+ \ifboolexpe{%
+ test {\ifdefvoid{#2}}
+ and
+ test {\ifdefvoid{#3}}}
+ {}{\revsdnamepunct}%
+ \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{\MakeUppercase{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
+ \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%
+}
+
+%GB/T 7714-2015 风格,大小写不变,根据bib文件内输入原样输出
+\newbibmacro*{name:gblowercase}[4]{\bibauthorfont%
+ \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
+ \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifdefvoid{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifprefchar{}{\bibnamedelimc}}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{{#1}}}\isdot%
+ \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{{#1}}}\isdot%
+ \ifboolexpe{%
+ test {\ifdefvoid{#2}}
+ and
+ test {\ifdefvoid{#3}}}
+ {}{\revsdnamepunct}%
+ \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}
+ \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%
+}
+
+%中文常见风格,汉语拼音全拼模式
+\newbibmacro*{name:gbpinyin}[4]{\bibauthorfont%
+\renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉,%来源biblatex2.STY
+\renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
+\renewrobustcmd*{\bibnamedelima}{\mbox{-}}%
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifdefvoid{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifprefchar{}{\bibnamedelimc}}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
+ \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\MakeSentenceCase{\mkbibnamegiven{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
+ \ifboolexpe{%
+ test {\ifdefvoid{#2}}
+ and
+ test {\ifdefvoid{#3}}}
+ {}
+ {\revsdnamepunct}%
+ \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{\MakeCapital{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}
+ \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%
+}
+%中文常见风格,汉语拼音全拼模式
+\newbibmacro*{name:gbquanpin}[4]{\bibauthorfont%
+\renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉,%来源biblatex2.STY
+\renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
+\renewrobustcmd*{\bibnamedelima}{}%
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifdefvoid{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifprefchar{}{\bibnamedelimc}}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeCapital{#1}}}\isdot%
+ \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\MakeSentenceCase{\mkbibnamegiven{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeCapital{#1}}}\isdot%
+ \ifboolexpe{%
+ test {\ifdefvoid{#2}}
+ and
+ test {\ifdefvoid{#3}}}
+ {}
+ {\revsdnamepunct}%
+ \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{\MakeCapital{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}
+ \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%
+}
+
+
+\@ifpackagelater{biblatex}{2016/03/27}%biblatex<3.2版的情况
+ {}{
+ %GB/T 7714-2015 风格,全部大写
+ \renewbibmacro*{name:gbuppercase}[4]{\bibauthorfont%
+ \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
+ \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifblank{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifpunctmark{'}{}{\bibnamedelimc}}%
+ %\mkbibnamelast{#1}\isdot
+ \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeUppercase{#1}}}\isdot%\MakeUppercase %\mkbibnamelast{\MakeUppercase{#1}} %\MakeSentenceCase
+ %注意上一句\MakeCapital后面如果再跟一个{}包含#1,则没有效果,可能是包在里面少了一层展开
+ %因为机构名通常包括在{}内,所以要多展开一次才行,所以这里去掉#1外面的{}
+ %\mkbibnamelast{\MakeUppercase{#1}}\isdot
+ %\ifblank{#4}{}{\bibnamedelimd\mkbibnameaffix{#4}\isdot}%这句放到后面
+ \ifblank{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamefirst{\MakeUppercase{#2}}\isdot}%
+ \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}}
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ %\mkbibnamelast{#1}\isdot %3.9.1 Generic Commands and Hooks,对姓重新处理,如下句: %\mkbibnamelast{\MakeUppercase{#1}}
+ \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeUppercase{#1}}}\isdot %大写,参考4.6.4 Miscellaneous Commands,\MakeUppercase %\MakeSentenceCase
+ %\mkbibnamelast{\MakeUppercase{#1}}\isdot
+ %\ifblank{#4}{}{\bibnamedelimd\mkbibnameaffix{#4}\isdot}%这句放到后面
+ \ifblank{#2#3}{}{\revsdnamepunct}%
+ \ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{\MakeUppercase{#2}}\isdot}%
+ \ifblank{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
+ \addcomma\addspace%
+ \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}%
+ }%
+ }
+
+ %GB/T 7714-2015 风格,大小写不变,根据bib文件内输入原样输出
+ \renewbibmacro*{name:gblowercase}[4]{\bibauthorfont%
+ \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
+ \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifblank{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifpunctmark{'}{}{\bibnamedelimc}}%
+ \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{{#1}}}\isdot%\MakeUppercase %\mkbibnamelast{\MakeUppercase{#1}} %\MakeSentenceCase
+ \ifblank{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamefirst{{#2}}\isdot}%
+ \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}}
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{{#1}}}\isdot %大写,参考4.6.4 Miscellaneous Commands,\MakeUppercase %\MakeSentenceCase
+ \ifblank{#2#3}{}{\revsdnamepunct}%
+ \ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{{#2}}\isdot}%
+ \ifblank{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
+ \addcomma\addspace%
+ \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}%
+ }%
+ }
+
+ %中文常见风格,汉语拼音全拼模式
+ \renewbibmacro*{name:gbpinyin}[4]{\bibauthorfont%
+ \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
+ \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
+ \renewrobustcmd*{\bibnamedelima}{\mbox{-}}%
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifblank{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifpunctmark{'}{}{\bibnamedelimc}}%
+ \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeUppercase{#1}}}\isdot%\MakeUppercase %\mkbibnamelast{\MakeUppercase{#1}} %\MakeSentenceCase
+ \ifblank{#2}{}{\revsdnamepunct\bibnamedelimd\MakeSentenceCase{\mkbibnamefirst{#2}}\isdot}%
+ \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}}
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeUppercase{#1}}}\isdot %大写,参考4.6.4 Miscellaneous Commands,\MakeUppercase %\MakeSentenceCase
+ \ifblank{#2#3}{}{\revsdnamepunct}%
+ \ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{\MakeUppercase{#2}}\isdot}%
+ \ifblank{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
+ \addcomma\addspace%
+ \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}%
+ }%
+ }
+ %中文常见风格,汉语拼音全拼模式
+ \renewbibmacro*{name:gbquanpin}[4]{\bibauthorfont%
+ \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
+ \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
+ \renewrobustcmd*{\bibnamedelima}{}%
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifblank{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifpunctmark{'}{}{\bibnamedelimc}}%
+ \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeCapital{#1}}}\isdot%\MakeUppercase %\mkbibnamelast{\MakeUppercase{#1}} %\MakeSentenceCase
+ \ifblank{#2}{}{\revsdnamepunct\bibnamedelimd\MakeSentenceCase{\mkbibnamefirst{#2}}\isdot}%
+ \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}}
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifblank{#2}{\MakeCapital#1}{\mkbibnamelast{\MakeCapital{#1}}}\isdot %大写,参考4.6.4 Miscellaneous Commands,\MakeUppercase %\MakeSentenceCase
+ \ifblank{#2#3}{}{\revsdnamepunct}%
+ \ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{\MakeUppercase{#2}}\isdot}%
+ \ifblank{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
+ \addcomma\addspace%
+ \ifblank{#4}{}{\addcomma\addspace\bibnamedelimd\mkbibnameaffix{#4}\isdot}%
+ }%
+ }
+
+ %%biblatex<3.2版的情况,姓名的处理格式带参数
+ \DeclareNameFormat{namefmtselected}{%
+ \iffieldundef{namefmtid}{}%
+ {\defcounter{gbnamefmtcase}{\thefield{namefmtid}}}%
+ \ifcase\value{gbnamefmtcase}%
+ \iffirstinits
+ {\usebibmacro{name:gbuppercase}{#1}{#4}{#5}{#7}}
+ {\usebibmacro{name:gbuppercase}{#1}{#3}{#5}{#7}}%
+ \or
+ \iffirstinits
+ {\usebibmacro{name:gblowercase}{#1}{#4}{#5}{#7}}
+ {\usebibmacro{name:gblowercase}{#1}{#3}{#5}{#7}}%
+ \or
+ \iffirstinits
+ {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}}
+ {\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}}%
+ \ifblank{#3#5}
+ {}
+ {\usebibmacro{name:revsdelim}}%
+ \or
+ \iffirstinits
+ {\usebibmacro{name:first-last}{#1}{#4}{#5}{#7}}
+ {\usebibmacro{name:first-last}{#1}{#3}{#5}{#7}}%
+ \or
+ \usebibmacro{name:gbpinyin}{#1}{#3}{#5}{#7}%
+ \or
+ \ifnumequal{\value{listcount}}{1}
+ {\iffirstinits
+ {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}}
+ {\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}}%
+ \ifblank{#3#5}
+ {}
+ {\usebibmacro{name:revsdelim}}}
+ {\iffirstinits
+ {\usebibmacro{name:first-last}{#1}{#4}{#5}{#7}}
+ {\usebibmacro{name:first-last}{#1}{#3}{#5}{#7}}}%
+ \or
+ \usebibmacro{name:gbquanpin}{#1}{#3}{#5}{#7}%
+ \fi
+ \usebibmacro{name:andothers}}
+}
+
+%
+% url和url日期格式
+%
+\renewbibmacro*{url+urldate}{%
+ %\usebibmacro{url}%%更换url的位置,放到下面
+ \iffieldundef{urlyear}%
+ {}{%\setunit*{\addspace}%
+ \usebibmacro{urldate}}%
+ \setunit{\addperiod\addspace}%
+ \usebibmacro{url}}
+\renewbibmacro*{url}{\printfield{url}}
+
+%
+% 日期信息的输出格式,针对biblatex<3.7版本
+%
+\defversion{3.4}{date}{
+ \renewbibmacro*{urldate}{%
+ \addthinspace\printtext{[}\printfield{urlyear}%
+ \iffieldundef{urlmonth}{}{\bibrangedash\printfield{urlmonth}}%
+ \iffieldundef{urlday}{}{\bibrangedash\printfield{urlday}}\printtext{]}}
+
+ \newbibmacro*{newsdate}{%%新增加一个公告日期,公开日期或新闻日期
+ \iffieldundef{year}{}{\printfield{year}%
+ \iffieldundef{month}{}{\bibrangedash\printtext{\thefield{month}}%
+ \iffieldundef{day}{}{\bibrangedash\printfield{day}}}}%
+ }
+
+ \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
+ \ifboolexpr{%
+ test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
+ }%
+ {}%更新或修改日期通常有day信息
+ {\iffieldequalstr{year}{}{%替换\iffieldundef{year},因为year总是存在,但为空
+ \iffieldundef{endyear}{%
+ \iffieldundef{eventyear}{}{\printtext{\mkbibparens{\printtext{\printfield{eventyear}}%
+ \iffieldundef{eventmonth}{}{\bibrangedash\thefield{eventmonth}}%
+ \iffieldundef{eventday}{}{\bibrangedash\printfield{eventday}}}}%
+ }%
+ }{%
+ \iffieldundef{endyear}{}{\printtext{\mkbibparens{\printtext{\printfield{endyear}}%
+ \iffieldundef{endmonth}{}{\bibrangedash\thefield{endmonth}}%
+ \iffieldundef{endday}{}{\bibrangedash\printfield{endday}}}}%
+ }%
+ }%
+ }%
+ {%
+ \iffieldundef{year}{}{\printtext{\mkbibparens{\printtext{\printfield{year}}%
+ \iffieldundef{month}{}{\bibrangedash\thefield{month}}%
+ \iffieldundef{day}{}{\bibrangedash\printfield{day}}}}%
+ }%
+ }%
+ }}%
+}
+
+%
+% 日期信息的输出格式,针对3.9>=biblatex>=3.7版本
+%
+\defversion{3.7}{date}{
+ \DeclareFieldFormat{urldate}{##1}
+ \renewbibmacro*{urldate}{%
+ \addthinspace\printtext{[}\printurldate\printtext{]}}%能用高层命令+选项尽量用命令(比如这里的\printurldate),而不用\blx@edtfdate这种更底层的命令
+
+ %
+ % 专利的公告日期、或报纸的日期的输出宏
+ % 20160701,v1.0,新增加
+ % 20180405,v1.0k,为biblatexv3.7-3.9版本,出现多出点bug做处理,Hu Zhenzhen
+ %
+ % 原理方法:加上printtext避免破坏异步标点机制
+ %
+ \newbibmacro*{newsdate}{%
+ \printtext{\blx@edtfdate{}{}}%
+ }
+
+ \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
+ \ifboolexpr{%
+ test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
+ }%
+ {}%更新或修改日期通常有day信息
+ {\iffieldundef{year}{%
+ \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\printtext{(}\printeventdate\printtext{)}}}%
+ {\printtext{(}\printenddate\printtext{)}}%
+ }{\iffieldequalstr{year}{}{%因为year存在,但为空
+ }{\printtext{(}\blx@edtfdate{}{}\printtext{)}}%
+ }%
+ }}%
+}
+
+%
+% 日期信息的输出格式,针对biblatex>=3.10版本
+%
+\defversion{3.10}{date}{
+ \DeclareFieldFormat{urldate}{##1}
+ \renewbibmacro*{urldate}{%
+ \addthinspace\printtext{[}\printurldate\printtext{]}}%能用高层命令+选项尽量用命令(比如这里的\printurldate),而不用\blx@edtfdate这种更底层的命令
+
+ %
+ % 专利的公告日期、或报纸的日期的输出宏
+ % 20160701,v1.0,新增加
+ % 20180405,为biblatexv3.10版本,出现多出点bug做处理,Hu Zhenzhen
+ %
+ % 原理方法:加上printtext避免破坏异步标点机制
+ % 本可以用\printdate,但由于date选项设置为year,所以仅会给出年份
+ % 所以无法再用选项设置的方法,印象需要用底层的命令
+ % 这里可以用\blx@isodate,但用\blx@gbdate试图避免版本判断
+ \newbibmacro*{newsdate}{%%
+ \printtext{\blx@gbdate{}{}}%%\blx@isodate{}{}%
+ }
+
+ \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
+ \ifboolexpr{%
+ test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
+ }%
+ {}%更新或修改日期通常有day信息
+ {\iffieldundef{year}{%
+ \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\printtext{(}\printeventdate\printtext{)}}}%
+ {\printtext{(}\printenddate\printtext{)}}%
+ }{\iffieldequalstr{year}{}{%因为year存在,但为空
+ }{\printtext{(}\blx@gbdate{}{}\printtext{)}}%
+ }%
+ }}%
+}
+
+%
+% 关联文献的输出格式,针对3.9>=biblatex>=3.7版本
+%
+% 原理方法:因为related宏中带有##了,所以无法封装到defversion中了。所以直接做判断
+% 下面这一段主要针对v3.8-3.10,因为我提问后,biblatex作者为3.11版增加了一个钩子控制relatedblock前的分隔符。
+\ifboolexpr{
+test{\iftoggle{iftleight}}
+or
+test{\iftoggle{iftlnine}}
+}{\renewbibmacro*{related}{%standard.bbx
+ \ifboolexpr{ test {\iffieldundef{related}} or test {\ifrelatedloop} }
+ {}
+ {\usebibmacro{begrelated}%
+ \def\bbx@tempa{}%
+ \setcounter{bbx:relatedtotal}{0}%
+ \def\do##1{%
+ \entrydata{##1}{%
+ \ifrelatedloop
+ {}
+ {\stepcounter{bbx:relatedtotal}%
+ \gappto{\bbx@tempa}{##1,}}}}%
+ \docsvfield{related}%
+ \restorefield{related}{\bbx@tempa}%
+ \ifnumgreater{\value{bbx:relatedtotal}}{0}
+ {\listcsxadd{bbx:relatedloop}{\strfield{entrykey}}%
+ \iffieldundef{clonesourcekey}
+ {}
+ {\listcsxadd{bbx:relatedloop}{\strfield{clonesourcekey}}}%
+ \setcounter{bbx:relatedcount}{0}%
+ \def\do{%
+ \stepcounter{bbx:relatedcount}%
+ \ifnumgreater{\value{bbx:relatedcount}}{0}%这里从1改为0
+ {\ifcsundef{relateddelim\strfield{relatedtype}}
+ {\printtext{\relateddelim}}
+ {\printtext{\csuse{relateddelim\strfield{relatedtype}}}}}
+ {}}%
+ \ifbibmacroundef{related:\strfield{relatedtype}}
+ {\appto{\do}{\usebibmacro{related:default}}}
+ {\appto{\do}{\usebibmacro*{related:\strfield{relatedtype}}}}%
+ \iffieldformatundef{related:\strfield{relatedtype}}
+ {\def\bbx@tempa{related}}
+ {\def\bbx@tempa{related:\strfield{relatedtype}}}%
+ \iffieldformatundef{relatedstring:\strfield{relatedtype}}
+ {\def\bbx@tempb{relatedstring:default}}
+ {\def\bbx@tempb{relatedstring:\strfield{relatedtype}}}%
+ \printtext[\bbx@tempa]{%
+ \usebibmacro{begrelatedloop}%
+ \iffieldundef{relatedstring}
+ {\ifboolexpr{
+ test {\ifnumgreater{\value{bbx:relatedtotal}}{1}}
+ and
+ test {\ifbibxstring{\thefield{relatedtype}s}}
+ }
+ {\printtext[\bbx@tempb]{%
+ \bibstring[\mkrelatedstring]{\thefield{relatedtype}s}}}
+ {\iffieldbibstring{relatedtype}
+ {\printtext[\bbx@tempb]{%
+ \bibstring[\mkrelatedstring]{\thefield{relatedtype}}}}
+ {}}}
+ {\iffieldbibstring{relatedstring}
+ {\printtext[\bbx@tempb]{%
+ \bibstring[\mkrelatedstring]{\thefield{relatedstring}}}}
+ {\printfield[\bbx@tempb]{relatedstring}}}%
+ \docsvfield{related}%
+ \usebibmacro{endrelatedloop}}}%
+ {}%
+ \usebibmacro{endrelated}}}
+}{}
+
+%
+% 关联文献块前的分隔符,针对biblatex3.11
+%
+% 原理方法:因为增加了begrelateddelim钩子,所以不需要重定义related输出宏
+\defversion{3.11}{related}{
+\renewcommand{\begrelateddelim}{\adddot\newline\nobreak}
+}
+
+\iftoggle{iftlfive}{\switchversion{3.4}{date}}{}%biblatex<=3.2
+\iftoggle{iftlsix}{\switchversion{3.4}{date}}{}%3.3<=biblatex<=3.6
+\iftoggle{iftlseven}{\switchversion{3.7}{date}}{}%biblatex=3.7
+\iftoggle{iftleight}{\switchversion{3.7}{date}}{}%3.8<=biblatex<=3.9
+\iftoggle{iftlnine}{\switchversion{3.10}{date}}{}%biblatex3.10
+\iftoggle{iftlatest}{\switchversion{3.10}{date}\switchversion{3.11}{related}}{}%biblatex最新
+
+%
+% 调整doi+eprint+url格式
+%
+% 原理方法:源来自standard.bbx,因为页码后面直接跟引用日期,没有标点所以去掉其中的标点。
+\renewbibmacro*{doi+eprint+url}{%
+% \iftoggle{bbx:doi}%把doi的位置放到url后面
+% {\printfield{doi}}
+% {}%
+ %\newunit\newblock
+ \iftoggle{bbx:eprint}
+ {\iffieldundef{eprint}{}{\newunit\usebibmacro{eprint}}}%必须要做域判断否则容易产生多余的标点
+ {}%
+ %\newunit\newblock
+ \iftoggle{bbx:url}
+ {\usebibmacro{url+urldate}}
+ {}
+ \newunit\newblock
+ \iftoggle{bbx:doi}
+ {\printfield{doi}}
+ {}}
+
+%
+% 调整页码的格式,即chapter+pages格式
+%
+\renewbibmacro*{chapter+pages}{%
+\iftoggle{bbx:gbstrict}{}{%
+ \printfield{chapter}}%
+ \iffieldundef{pages}{}{%这里增加一个判断,当没有页码时就不输出
+ \setunit{\bibpagespunct}%
+ \printfield{pages}}%
+ %\newunit %这里的标点去掉
+ }
+
+%
+% 当location等出版项超过maxitem缩减后不再输出etal
+%
+\DeclareListFormat{location}{%
+ \usebibmacro{list:delim}{#1}%
+ #1\isdot}
+\DeclareListAlias{institution}{location}
+\DeclareListAlias{publisher}{location}
+
+% 新增一个样式用于输出连续出版物的地址,单位,时间,
+% 用于periodical连续出版物的出版社和地址的处理
+%
+% v1.0k,20180425,为出版信息增加字体控制命令,hzz
+% %类似\newbibmacro*{publisher+location+date}
+\newbibmacro*{location+institution+date}{\bibpubfont%
+\iftoggle{bbx:gbpub}%
+{\testCJKfirst{userd}%
+\ifboolexpr{%
+test {\iflistundef{location}} and test {\iflistundef{institution}}%
+}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress}\space :\space\str@nopublisher]}%
+{\printtext{[S.l.\space :\space s.n.\adddot]}}%
+}{%
+\iflistundef{location}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress]}}{\printtext{[S.l.\adddot]}}}%
+ {\printlist{location}}%
+\addcolon\addspace%
+\iflistundef{institution}{%
+\iftoggle{ifCJKforgbt}{\printtext{[\str@nopublisher]}}{\printtext{\mkbibbrackets{s.n.}}}}% \bibstring{nopublisher}%[s.n.\adddot]
+{\printlist{institution}}}%
+\setunit{\addcomma\addspace}%
+ %\usebibmacro{date}%
+ \printfield{year}%
+ \bibrangedash%
+ \iffieldundef{endyear}{}{\printfield{endyear}}%
+ \newunit}%
+{ \printlist{location}%
+ \iflistundef{institution}%
+ {\setunit*{\addcomma\space}}
+ {\setunit*{\addcolon\space}}%
+ \printlist{institution}%
+ \setunit*{\addcomma\space}%
+ \usebibmacro{date}%
+ \newunit}%
+}
+%
+% 通用的出版社和地址的处理
+%
+% 原理方法:当没有出版社地址时,直接判断title的信息是否是中文,若为中文,则写出版地不详,否则用英文的字符表示。
+% 事实上title对于每个文献来说是必须的,所以用它判断是最快的,而且一般标题和出版社的语言是一样的。
+% 注意标准standard类型,因为当没有出版项时直接省略,所以做特殊处理
+\renewbibmacro*{publisher+location+date}{\bibpubfont%
+\iftoggle{bbx:gbpub}%
+{\testCJKfirst{userd}%
+ \ifboolexpr{ test {\iflistundef{location}} and test {\iflistundef{publisher}} }%
+ {\iffieldequalstr{note}{standard}{}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress}\space :\space\str@nopublisher]}{\printtext{[S.l.\space :\space s.n.\adddot]}}}}%
+ {\iflistundef{location}{%\adddot
+ \iffieldequalstr{note}{standard}{}%%从gbt7714-2015标准第19页看到,标准存在出版项时输出,没有时完全省略。
+ {\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress]}\addcolon\addspace}{\printtext{[S.l.\adddot]}\addcolon\addspace}}}% \bibstring{noaddress}
+ {\printlist{location}\addcolon\addspace}%%\addcolon\addspace%
+ \iflistundef{publisher}{%
+ \iffieldequalstr{note}{standard}{}%
+ {\iftoggle{ifCJKforgbt}{\printtext{[\str@nopublisher]}\setunit{\adddot\addspace}\setunit*{\addcomma\addspace}}%
+ {\printtext{\mkbibbrackets{s.n.}}\setunit{\adddot\addspace}\setunit*{\addcomma\addspace}}}}%
+ {\printlist{publisher}}}%
+\setunit*{\addcomma\addspace}%\addcomma\addspace%
+\usebibmacro{date}%%\newunit %去掉这个标点
+}%
+{\printlist{location}%
+ \iflistundef{publisher}
+ {\setunit*{\addcomma\space}}
+ {\setunit*{\addcolon\space}}%
+ \printlist{publisher}%
+ \setunit*{\addcomma\space}%
+ \usebibmacro{date}%%\newunit
+ }%
+}
+
+%
+% 修改了一个institution+location+date用于manual、report、thesis等类型
+%
+% 20180425,v1.0k,增加了字体控制命令,hzz
+% 20190105,v1.0o,加了一个编组避免\usebibmacro{date}把month和day信息去掉
+\renewbibmacro*{institution+location+date}{\bibpubfont%当没有institution时不处理。
+{\printlist{location}%%加了一个编组避免\usebibmacro{date}把month和day信息去掉
+ \iflistundef{institution}
+ {\setunit*{\addcomma\space}}
+ {\setunit*{\addcolon\space}}%
+ \printlist{institution}%
+ \setunit*{\addcomma\space}%
+ \usebibmacro{date}%
+ %\newunit
+ }}
+
+%
+% 对volume卷信息格式做出修改
+% v1.0o,20190105,hzz
+%
+\DeclareFieldFormat{volume}{%
+\testCJKfirst{userd}%
+\iftoggle{ifCJKforgbt}%
+{\bibstring{serialcn}#1\bibstring{volumecn}}%
+{\bibstring{volume}~#1}%
+}% volume of a book
+\DeclareFieldFormat[article,periodical]{volume}{#1}% volume of a journal
+
+%
+% 对number册信息格式做出修改
+% v1.0o,20190105,hzz
+%
+\DeclareFieldFormat{number}{#1}%
+\DeclareFieldFormat[book,collection,inbook,%
+incollection,proceedings,inproceedings]{number}{%
+\testCJKfirst{userd}%
+\iftoggle{ifCJKforgbt}%
+{\bibstring{serialcn}#1\bibstring{numbercn}}%
+{#1}%
+}%
+
+%
+% 对edition版本信息格式做出修改
+%
+\DeclareFieldFormat{edition}{\bibtitlefont%源来自biblatex.DEF
+\testCJKfirst{userd}%
+\iftoggle{ifCJKforgbt}%
+{\ifinteger{#1}%
+{\printtext{#1\str@edition}}%
+{#1\isdot}}%
+{\ifinteger{#1}%
+{\mkbibordedition{#1}~\bibstring{edition}}%
+{#1\isdot}}}
+
+%
+% 对version的版本信息做出修改
+%
+\DeclareFieldFormat{version}{\bibtitlefont%源来自biblatex.DEF
+\testCJKfirst{userd}%
+ \ifinteger{#1}%
+ {\iftoggle{ifCJKforgbt}{\printtext{#1\str@edition}}%
+ {\mkbibordedition{#1}~\bibstring{version}}}%
+ {#1\isdot}}
+
+%
+% 作者域的输出控制宏
+%
+% 当两篇文献作者相同且连续时,标准样式是用-代替后面的文献的作者,这里取消这一设置
+\renewbibmacro*{author}{%author for biblatex version <=3.7
+ \ifboolexpr{
+ test \ifuseauthor
+ and
+ not test {\ifnameundef{author}}
+ }
+ {\usebibmacro{bbx:dashcheck}
+ {%\bibnamedash
+ \printnames{author}%
+ }%
+ {\usebibmacro{bbx:savehash}%
+ \printnames{author}%
+ \iffieldundef{authortype}
+ {\setunit{\addspace}}
+ {\setunit{\addcomma\space}}}%
+ \iffieldundef{authortype}
+ {}
+ {\usebibmacro{authorstrg}%
+ \setunit{\addspace}}}%
+ {\global\undef\bbx@lasthash
+ \usebibmacro{labeltitle}%
+ \setunit*{\addspace}}%
+ \setunit{\addcomma\space}%增加一个逗号
+ \usebibmacro{date+extrayear}
+ }
+
+%
+% 设置标注和文献表中作者和年份之间的分隔符
+%
+% 原理方法:注意3.4版已经有\nameyeardelim,上述修改的author宏虽然定义了著录表中的标点,但标注中的未定义
+% 设置因为mergedate默认为true时的情况,来自\bbx@opt@mergedate@compact
+% 去掉作者后面包围年份的圆括号
+% 这里因为biblatex版本的不同,做不同的处理,texlive2017版/2016等低版本分开处理
+\defversion{3.0}{dateextra}{
+\renewcommand*{\nameyeardelim}{\addcomma\space}
+ \renewbibmacro*{date+extrayear}{%%重设date+extrayear格式,源来自authoryear.BBX
+ \iffieldundef{\thefield{datelabelsource}year}
+ {}
+ {\printtext{%[parens]%这里把括号去掉
+ \iffieldsequal{year}{\thefield{datelabelsource}year}
+ {\printdateextralabel}%
+ {\printfield{labelyear}%
+ \printfield{extrayear}}}}}%
+ \newbibmacro{date+extradate}{\usebibmacro{date+extrayear}}
+}
+
+\defversion{3.4}{dateextra}{
+ \DeclareDelimFormat{nameyeardelim}{\addcomma\space}
+ \DeclareDelimFormat[bib,biblist]{nameyeardelim}{\addcomma\space}
+ \renewbibmacro*{date+extrayear}{%%重设date+extrayear格式,源来自authoryear.BBX
+ \iffieldundef{\thefield{datelabelsource}year}
+ {}
+ {\printtext{%[parens]%这里把括号去掉
+ \iffieldsequal{year}{\thefield{datelabelsource}year}
+ {\printdateextralabel}%
+ {\printfield{labelyear}%
+ \printfield{extrayear}}}}}%
+ \newbibmacro{date+extradate}{\usebibmacro{date+extrayear}}
+}
+\defversion{3.7}{dateextra}{
+ \DeclareDelimFormat{nameyeardelim}{\addcomma\space}
+ \DeclareDelimFormat[bib,biblist]{nameyeardelim}{\addcomma\space}
+ \renewbibmacro*{date+extrayear}{%以前的\printdateextralabel宏变为了\printlabeldateextra
+ \iffieldundef{labelyear}
+ {}
+ {\printtext{%[parens]
+ \iffieldsequal{year}{labelyear}
+ {\printlabeldateextra}%
+ {\printfield{labelyear}%
+ \printfield{extrayear}}}}}%
+
+\newbibmacro{date+extradate}{\usebibmacro{date+extrayear}}
+}
+\defversion{3.8}{dateextra}{
+ \DeclareDelimFormat{nameyeardelim}{\addcomma\space}
+ \DeclareDelimFormat[bib,biblist]{nameyeardelim}{\addcomma\space}
+%注意这里当没有作者只有标题时在年份之前的标点是否需要标准并未涉及,所以未做处理。
+\renewbibmacro*{author}{%以前的date+extrayear变为date+extradate,所以对3.8以上版本重定义一下author
+ \ifboolexpr{
+ test \ifuseauthor
+ and
+ not test {\ifnameundef{author}}
+ }
+ {\usebibmacro{bbx:dashcheck}
+ {%\bibnamedash %去掉相同作者用横线代替的处理
+ \printnames{author}\setunit{\printdelim{nameyeardelim}}%把标点也带上
+ }
+ {\usebibmacro{bbx:savehash}%
+ \printnames{author}%
+ \iffieldundef{authortype}
+ {\setunit{\printdelim{nameyeardelim}}}
+ {\setunit{\printdelim{authortypedelim}}}}%
+ \iffieldundef{authortype}
+ {}
+ {\usebibmacro{authorstrg}%
+ \setunit{\printdelim{nameyeardelim}}}}%
+ {\global\undef\bbx@lasthash
+ \usebibmacro{labeltitle}%
+ \setunit*{\printdelim{nonameyeardelim}}}%
+ \usebibmacro{date+extradate}}
+ \renewbibmacro*{date+extradate}{%
+ \iffieldundef{labelyear}
+ {}
+ {\printtext{%[parens]%这里去掉括号
+ \iflabeldateisdate
+ {\printdateextra}
+ {\printlabeldateextra}}}}%
+
+}
+
+
+%
+%为mergedate增加选项none,即实现年份不提前到作者后面的标签中
+%也不打印用于区分同作者同年份文献的标识符如(a,b,c)
+%目的是实现一些特殊的文献表样式比如ucas的作者年制
+%v1.0q,20190212,hzz
+\def\bbx@opt@mergedate@none{%
+ \renewbibmacro*{date+extradate}{%
+ \iffieldundef{labelyear}
+ {}
+ {}}%[parens]\printtext{\printlabeldateextra}
+\renewbibmacro*{bbx:ifmergeddate}{\@secondoftwo}%这一句用于3.12版本
+\renewbibmacro*{date}{\printdate}%这一句用于biblatex3.11以下版本
+\renewbibmacro*{issue+date}{%去掉括号
+\setunit{\addcomma\addspace}%
+ \printtext{%去掉了[parens]
+ \iffieldundef{issue}
+ {%\usebibmacro{date}
+ \iffieldundef{note}{\usebibmacro{date}}%判断一下,是否是报纸
+ {\iffieldequalstr{note}{news}{\usebibmacro{newsdate}}%判断是否为报纸
+ {\usebibmacro{date}}%
+ }}%
+ {\iftoggle{bbx:gbstrict}{}{\printfield{issue}%
+ \setunit*{\addspace}}%
+ %\usebibmacro{date}
+ \iffieldundef{note}{\usebibmacro{date}}%判断一下,是否是报纸
+ {\iffieldequalstr{note}{news}{\usebibmacro{newsdate}}%判断是否为报纸
+ {\usebibmacro{date}}%
+ }}}%
+ %\newunit
+ }%
+ }
+
+\iftoggle{iftlfive}{\switchversion{3.0}{dateextra}}{}%biblatex<=3.2
+\iftoggle{iftlsix}{\switchversion{3.4}{dateextra}}{}%3.3<=biblatex<=3.6
+\iftoggle{iftlseven}{\switchversion{3.7}{dateextra}}{}%biblatex=3.7
+\iftoggle{iftleight}{\switchversion{3.8}{dateextra}}{}%<=3.8biblatex<=3.9
+\iftoggle{iftlnine}{\switchversion{3.8}{dateextra}}{}%biblatex3.10
+\iftoggle{iftlatest}{\switchversion{3.8}{dateextra}}{}%biblatex最新3.11
+
+%
+% 修改析出文献的文集的标题与附加标题间的符号
+%
+\renewbibmacro*{booktitle}{%
+ \ifboolexpr{
+ test {\iffieldundef{booktitle}}
+ and
+ test {\iffieldundef{booksubtitle}}
+ }
+ {}
+ {\printtext[booktitle]{\bibtitlefont%
+ \printfield[titlecase]{booktitle}%
+ \setunit{\subtitlepunct}%
+ \printfield[titlecase]{booksubtitle}}%
+ \newunit%标点换成下一句
+ \setunit{\subtitlepunct}}%
+ \printfield{booktitleaddon}}
+
+%
+% 调整期刊名的格式
+%
+% 原理方法:因为作者年制年份提到前面,因此涉及到期刊名与后面的卷期的关系。
+% v1.0k,20180425,增加了字体控制命令,hzz
+\renewbibmacro*{journal+issuetitle}{\bibpubfont%源来自standard.bbx
+ \usebibmacro{journal}%
+ %\setunit*{\addspace}%
+ %\setunit*{\addcomma\addspace}%修改为增加一个逗号
+ \iffieldundef{series}%
+ {}%
+ {\newunit%
+ \printfield{series}%
+ \setunit{\addspace}}%
+ %\usebibmacro{volume+number+eid}%
+ %\setunit{\addspace}%
+ \usebibmacro{issue+date}%
+ %\setunit{\addcolon\space}%
+ \iffieldundef{volume}{}{\setunit{\addcomma\space}}%
+ %换成逗号和空格
+ \usebibmacro{issue}%
+ \usebibmacro{volume+number+eid}%把卷期放到年份后面
+ %\newunit
+ }
+
+%
+% 增加一个number带括号的格式,避免使用mkbibparens而引入一个不必要的空格
+%
+\DeclareFieldFormat{addnumflag}{%
+\nobreak\printtext{(}\nobreak #1\nobreak\printtext{)}}
+
+%
+% 调整journal输出
+%
+% 原理方法:首先判断子标题,然后再设置标点。
+% 避免直接设置标点后,当volume不存在时需要使用\nopuct去标点进而引入不必要的空格
+\renewbibmacro*{journal}{%
+ \iffieldundef{journaltitle}%
+ {}%
+ {\printtext[journaltitle]{%
+ \printfield[titlecase]{journaltitle}%
+ \iffieldundef{journalsubtitle}{}{\setunit{\subtitlepunct}%
+ \printfield[titlecase]{journalsubtitle}}}}}
+
+
+
+%
+% 调整期刊卷和期的格式
+%
+\renewbibmacro*{volume+number+eid}{%源来自standard.bbx
+\iftoggle{bbx:gbfieldstd}{%
+ \printfield{volume}%
+ \setunit*{\adddot}%
+ \printfield{number}%
+ \setunit{\addcomma\space}%
+ \printfield{eid}}{%
+ \printfield{volume}%
+ %\setunit*{\adddot}%去掉点号
+ %\printfield{number}%
+ \iffieldundef{number}{}{\printfield[addnumflag]{number}}%区别于顺序编码制
+ \iffieldundef{eid}{}{%
+ \setunit{\addcomma\space}%
+ \printfield{eid}}}}
+
+%
+% 调整期刊年份的格式
+%
+% 原理方法:原在authoryear.BBX中\bbx@opt@mergedate@compact中定义
+% 当issue存在时,才设置newunit。避免直接设置标点后,当volume不存在是需要使用\nopuct去标点进而引入不必要的空格
+ \renewbibmacro*{issue+date}{%
+ \iffieldundef{issue}%
+ {}%
+ {\iftoggle{bbx:gbstrict}{}{\printtext[parens]{\printfield{issue}}\newunit}}}
+
+
+
+%
+% 调整页码前的标点和去掉期刊文章等页码后面的标点
+%
+\renewbibmacro*{note+pages}{%源来自standard.bbx
+ %\printfield{note}%不要note,note用来判断是否是报纸newspaper
+ \iffieldundef{pages}{}{
+ \setunit{\bibpagespunct}%
+ \printfield{pages}}%
+ %\newunit
+ }
+
+%
+% 编者的符号修改一下
+% v1.0 2016-07-01
+% v1.0q 2019-03-01 hzz 修改editortype前的标点
+%
+\renewbibmacro*{editor}{%
+ \ifboolexpr{
+ test \ifuseeditor
+ and
+ not test {\ifnameundef{editor}}
+ }
+ {\usebibmacro{bbx:dashcheck}
+ {%\bibnamedash
+ \printnames{editor}%
+ }
+ {\printnames{editor}%
+ %\setunit{\printdelim{editortypedelim}}%
+ %\usebibmacro{bbx:savehash}
+ }%
+ \usebibmacro{editorstrg}%
+ %\clearname{editor}%
+ \setunit{\printdelim{nameyeardelim}}}%
+ {\global\undef\bbx@lasthash
+ \usebibmacro{labeltitle}%
+ \setunit*{\printdelim{nonameyeardelim}}}%
+ \ifboolexpr{%
+test {\ifentrytype{inbook}}
+or
+test {\ifentrytype{incollection}}
+or
+test {\ifentrytype{inproceedings}}
+or
+test {\ifentrytype{conference}}
+}%
+{}%
+{\usebibmacro{date+extradate}}}
+
+%
+% 编者类型做一修改
+% v1.0 2016-07-01
+% v1.0q 2019-03-01 hzz 修改editortype不同语言的不同本地化字符串
+%
+\renewbibmacro*{editorstrg}{%源来自biblatex.DEF
+ \printtext[editortype]{%
+ \iffieldundef{editortype}
+ {%
+% \ifboolexpr{ %这一段去掉,未定义编者类型情况下不处理
+% test {\ifnumgreater{\value{editor}}{1}}
+% or
+% test {\ifandothers{editor}}
+% }
+% {\bibstring{editors}}
+% {\bibstring{editor}}
+ }
+ {\ifbibxstring{\thefield{editortype}} %定义编者类型情况下处理,以后根据需要修改
+ {\ifboolexpr{
+ test {\ifnumgreater{\value{editor}}{1}}
+ or
+ test {\ifandothers{editor}}
+ }
+ {\printdelim{streditortypes}}
+ {\printdelim{streditortype}}}
+ {\thefield{editortype}}}%
+ }}
+
+%
+% 编者类型的本地化字符串输出
+% v1.0q 2019-03-01 hzz
+% 能对不同条目类型作格式设置的域格式,能对不同环境做格式设置的分隔符
+% 能对不同文境作设置的包括排序,标签等
+% 这里因为考虑可能标注和文献表中存在不同,所以用分隔符来输出本地化字符串
+%
+\DeclareDelimFormat{streditortypes}{%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbbiblocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{\thefield{editortype}scn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{\thefield{editortype}skr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{\thefield{editortype}sjp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
+ \or%
+ \bibstring{\thefield{editortype}scn}%
+ \or%
+ \addcomma\addthinspace\bibstring{\thefield{editortype}s}%
+ \fi}
+%
+\DeclareDelimFormat{streditortype}{%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbbiblocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{\thefield{editortype}cn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{\thefield{editortype}kr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{\thefield{editortype}jp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
+ \or%
+ \bibstring{\thefield{editortype}cn}%
+ \or%
+ \addcomma\addthinspace\bibstring{\thefield{editortype}}%
+ \fi}
+
+
+%
+% bookauthor域的输出,
+% v1.0q 2019-03-01 hzz
+% 不再对editor和bookauthor做sourcemap,而是下面的宏内逻辑代替,
+% 使得除使用bookauthor外也可以使用editor,便于在使用editor时使用editortype
+\renewbibmacro*{bybookauthor}{%
+ \ifnameundef{bookauthor}%
+ {\ifnameundef{editor}%
+ {}%
+ {\ifnamesequal{author}{editor}%
+ {}{\usebibmacro{editor}}}%
+ }%
+ {\ifnamesequal{author}{bookauthor}%
+ {}{\printnames{bookauthor}}%
+ }%
+}
+
+%
+% 修改期刊的标题
+%
+\renewbibmacro*{periodical}{%源来自biblatex.DEF
+ \iffieldundef{title}
+ {}
+ {\printtext[title]{\bibtitlefont%
+ \printfield[titlecase]{title}%
+ %\setunit{\subtitlepunct}%
+ \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
+ {}{\setunit{\subtitlepunct}
+ \printfield[titlecase]{subtitle}}%
+ %}%把编组结束移到后面去
+ \iftoggle{bbx:gbtype}{%
+ \iffieldundef{usera}{}{%在标题后直接给出文献标识字母
+ \printfield[gbtypeflag]{usera}}}{}
+ }}
+ }
+
+%
+% 期刊的标题做修改
+%
+\renewbibmacro*{title+issuetitle}{%源来自standard.BBX
+ \usebibmacro{periodical}%
+ %\setunit*{\addspace}%
+ \setunit*{\adddot\addspace}%标点修改为句点
+ \iffieldundef{series}
+ {}
+ {\newunit
+ \printfield{series}%
+ \setunit{\addspace}}%
+ \usebibmacro{periodical+issue}%将issue调整到上面来,并修改
+\iffieldundef{number}{}{%%进一步处理有范围的数字
+ \multinumberparser{\thefield{number}}}%
+ \iffieldundef{volume}%
+ {\printfield{year}%
+ \printtext{\mkbibparens{\multinumberfirst}}%
+ \bibrangedash%
+ \iffieldundef{endyear}{}{\printfield{endyear}\printtext{\mkbibparens{\multinumbersecond}}}%
+ }%
+ {\multivolparser{\thefield{volume}}%
+ \printfield{year}%
+ \setunit{\addcomma\space}%将冒号修改为逗号
+ \printtext{\multivolfirst}%
+ \printtext{\mkbibparens{\multinumberfirst}}%
+ \bibrangedash%
+ \iffieldundef{endyear}{}{%
+ \printfield{endyear}%
+ \setunit{\addcomma\space}%将冒号修改为逗号
+ \printtext{\multivolsecond}%
+ \printtext{\mkbibparens{\multinumbersecond}}}%
+ }%
+ \setunit{\addcomma\space}%
+ \printfield{eid}%
+ \setunit{\addspace}%
+ %\usebibmacro{issue+date}%
+ %\setunit{\addcolon\space}%
+ \usebibmacro{issue}%
+ \newunit}
+
+%
+% 新增一个样式用于调整期刊年份的格式,只打印年份
+%
+\newbibmacro*{periodical+issue}{%
+ \printtext{%去掉了[parens]
+ \iffieldundef{issue}
+ {%\usebibmacro{date}%修改为下一句
+ }%
+ {\printfield{issue}%
+ \setunit*{\addspace}%
+ %\usebibmacro{date}%修改为下一句
+ }%
+ }%
+ %\newunit
+}
+
+%
+% 重设专利title的输出,将文献类型标识符输出出去
+%
+\newbibmacro*{patenttitle}{%原输出来自biblatex.def文件
+ \ifboolexpr{%
+ test{\iffieldundef{title}}%
+ and%
+ test{\iffieldundef{subtitle}}%
+ }%
+ {}%
+ {\printtext[title]{\bibtitlefont%
+ \printfield[titlecase]{title}%
+ \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
+ {}{\setunit{\subtitlepunct}%
+ \printfield[titlecase]{subtitle}}%
+ \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
+ {\setunit{\subtitlepunct}\printfield{titleaddon}}%
+ \setunit{\subtitlepunct}\printfield{number}%写专利号
+ \iftoggle{bbx:gbtype}{\printfield[gbtypeflag]{usera}}{}%
+ %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
+ %\newunit
+ }%
+}%
+}
+
+
+
+%
+% 修改in:用于inbook、incollection、inproceedings等类型
+% 2018.04.20,v1.0k,renewed marco,by hzz
+% 20190212,v1.0q,增加中英文区分,by hzz
+%
+% 原理方法:使用bibmacro{in:}改变了以前在driver中直接输出//的方式,同时也简化了标点控制。
+\renewbibmacro*{in:}{%
+ \iftoggle{bbx:gbpunctin}{\printtext{\allowbreak\texttt{//}\allowbreak}}%\addthinspace
+ {\setunit{\adddot\addspace}%
+ \iffieldequalstr{userd}{chinese}%
+ {\printtext{\bibstring{incn}}}%
+ {\printtext{\bibstring{in}}}%
+ }}%\newunit\newblock\intitlepunct
+
+%
+% 修改type域的输出格式
+% 2019.02.12,v1.0q,byhzz
+% 使其可以区分中英文输出不同的格式,比如博士论文英文输出PHD thesis,中文则是博士学位论文
+\DeclareFieldFormat{type}%
+{\iffieldequalstr{userd}{chinese}%
+ {\ifbibxstring{#1cn}{\bibxstring{#1cn}}{#1}}%
+ {\ifbibstring{#1}{\bibstring{#1}}{#1}}%
+}
+
+
+%
+% 修改series域的输出格式
+% 2019.05.01,v1.0r,byhzz
+\renewbibmacro*{series+number}{%
+ \printfield{series}%
+ %\setunit*{\addspace}%
+ %\printfield{number}%
+ %\newunit
+ }
+
+%=====================================================================
+%设置驱动格式
+%=====================================================================
+%
+% book条目类的驱动
+%
+ \DeclareBibliographyDriver{book}{%源来自standard.bbx文件
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+\usebibmacro{author/editor+others/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+\usebibmacro{maintitle+title}%
+\iftoggle{bbx:gbstrict}{}{%
+\newunit
+\printlist{language}%
+\newunit\newblock%
+\usebibmacro{byauthor}%
+\newunit\newblock}%
+\usebibmacro{byeditor+others}%
+\newunit
+\printfield{edition}%
+\newunit\newblock%%
+\iftoggle{bbx:gbstrict}{}{%
+\iffieldundef{maintitle}%
+{\printfield{volume}%
+\printfield{part}}%
+{}%
+\newunit%
+\printfield{volumes}%
+\newunit\newblock%
+\usebibmacro{series+number}}%
+\newunit\newblock%
+%\printfield{note}%
+%\newunit\newblock%
+\usebibmacro{publisher+location+date}%
+%\newunit\newblock %这里标点去掉
+\usebibmacro{chapter+pages}%
+ \iffieldundef{url}{}{%当没有网址时也不输出
+ \usebibmacro{modifydate}}%带括号的修改或更新日期,
+\usebibmacro{doi+eprint+url}%从下面移动到上面来,因为gbt2015的url需直接放在页码后面。
+ \newunit\newblock%
+ \printfield{pagetotal}%
+ \newunit\newblock%
+ \iftoggle{bbx:isbn}
+ {\printfield{isbn}}
+ {}%
+ \newunit\newblock
+ %\usebibmacro{doi+eprint+url}%
+ %\newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+
+
+
+%
+% 期刊文章,连续出版物中的析出文献的格式
+%
+ \DeclareBibliographyDriver{article}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}%
+ \newunit\newblock
+ \usebibmacro{bytranslator+others}%
+ \newunit\newblock
+ \printfield{version}}%
+ \newunit\newblock
+ %\usebibmacro{in:}% 不使用in来表示期刊等连续出版物
+ \usebibmacro{journal+issuetitle}%
+% \newunit
+% \usebibmacro{byeditor+others}%
+% \newunit
+ \usebibmacro{note+pages}%
+ \iffieldequalstr{note}{news}{}{%当是新闻时不输出修改或更新日期
+ \iffieldundef{url}{}{%当没有网址时也不输出
+ \iftoggle{bbx:url}{%当url选项为false时,也不输出
+ \usebibmacro{modifydate}}{}}}%带括号的修改或更新日期,
+ \usebibmacro{doi+eprint+url}%从后面移上来,调整url和页码之间的位置
+ \newunit\newblock
+ \iftoggle{bbx:isbn}
+ {\printfield{issn}}
+ {}%
+ \newunit\newblock
+ %\usebibmacro{doi+eprint+url}%
+ %\newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+
+%
+% 连续出版物的驱动
+%
+ \DeclareBibliographyDriver{periodical}{%源来自standard.BBX
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{editor}%
+ %\setunit{\labelnamepunct}\newblock
+ \newunit\newblock %删除上面一行,添加这一行
+ \usebibmacro{title+issuetitle}%
+ \newunit\newblock%
+ \usebibmacro{location+institution+date}%添加这一行用于输出地址,单位和时间
+ \newunit\newblock%添加这一行
+ \iftoggle{bbx:gbstrict}{}{%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byeditor}%
+ \newunit\newblock
+ \printfield{note}%
+ \newunit\newblock}
+ \iftoggle{bbx:isbn}
+ {\printfield{issn}}
+ {}%
+ \newunit\newblock
+ \usebibmacro{doi+eprint+url}%
+ \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+%
+% 专利文献驱动
+%
+ \DeclareBibliographyDriver{patent}{%源来自standard.BBX
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ %\usebibmacro{title}%
+ \usebibmacro{patenttitle}%给出专利专用的标题输出
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}}%
+ \newunit\newblock
+ \printfield{type}%
+ \setunit*{\addspace}%
+ %\printfield{number}%已放到patenttitle中处理
+ \iflistundef{location}
+ {}
+ {\setunit*{\addspace}%
+ \printtext{%[parens]
+ \printlist[][-\value{listtotal}]{location}}}%
+ \newunit\newblock
+ \usebibmacro{byholder}%
+ \newunit\newblock
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{newsdate}%
+ %\newunit\newblock
+ \usebibmacro{doi+eprint+url}%
+ \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+
+%
+% 在线文献驱动
+%
+\DeclareBibliographyDriver{online}{%源来自standard.BBX
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/editor+others/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}%
+ \newunit\newblock
+ \usebibmacro{byeditor+others}%
+ \newunit\newblock
+ \printfield{note}}%
+ \newunit
+ \printfield{version}%
+ \newunit\newblock
+% \printlist{organization}%
+ \printlist{institution}%
+ \newunit\newblock
+\ifboolexpr{%
+test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
+}{\usebibmacro{date}}%
+{\usebibmacro{modifydate}}%修改或更新日期,为带括号的时间
+ \usebibmacro{url+urldate}%从下面移上来
+ \newunit\newblock
+ \iftoggle{bbx:eprint}
+ {\usebibmacro{eprint}}
+ {}%
+ \newunit\newblock
+ %\usebibmacro{url+urldate}%
+ %\newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+
+
+
+%
+% 报告类型驱动
+% 当有网址无出版项时,用online输出
+%
+\DeclareBibliographyDriver{report}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}}%
+ \newunit\newblock
+ \usebibmacro{byeditor+others}%增加的译者信息
+ \newunit\newblock
+ \printfield{type}%
+ \setunit*{\addspace}%
+ \printfield{number}%
+ \newunit\newblock
+ \printfield{version}%
+ \newunit
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{publisher+location+date}%
+ %\newunit\newblock
+ \usebibmacro{chapter+pages}%
+ \usebibmacro{doi+eprint+url}%
+ \newunit
+ \printfield{pagetotal}%
+ \newunit\newblock
+ \iftoggle{bbx:isbn}
+ {\printfield{isrn}}
+ {}%
+ \newunit\newblock
+% \usebibmacro{doi+eprint+url}%
+% \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+%
+% 论文、手册类型驱动
+% 2016-11-11,增加了译者信息
+%
+\DeclareBibliographyDriver{manual}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}}%
+ \newunit\newblock
+ \usebibmacro{byeditor+others}%增加的译者信息
+ \newunit\newblock
+ \iftoggle{bbx:gbfieldtype}{%
+ \printfield{type}%
+ \setunit*{\addspace}%
+ }{}%
+ \printfield{number}%
+ \newunit\newblock
+ \printfield{version}%
+ \newunit
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{institution+location+date}%
+ %\newunit\newblock
+ \usebibmacro{chapter+pages}%
+ \iffieldundef{url}{}{%当没有网址时也不输出修改或更新日期
+ \usebibmacro{modifydate}}%修改或更新日期为带括号的时间
+ \usebibmacro{doi+eprint+url}%
+ \newunit
+ \printfield{pagetotal}%
+ \newunit\newblock
+ \iftoggle{bbx:isbn}
+ {\printfield{isrn}}
+ {}%
+ \newunit\newblock
+% \usebibmacro{doi+eprint+url}%
+% \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+%
+% 备选类型驱动
+%
+% 利用biblatex的misc驱动
+\DeclareBibliographyDriver{misc}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/editor+others/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+\iftoggle{bbx:gbstrict}{}{%
+ \newunit
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}%
+ \newunit\newblock
+ \usebibmacro{byeditor+others}}%
+ \newunit\newblock
+ \printfield{howpublished}%
+ \newunit\newblock
+ \printfield{type}%
+ \newunit
+ \printfield{version}%
+ \newunit
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{institution+location+date}%
+ %\usebibmacro{organization+location+date}%
+ %\newunit\newblock
+ \usebibmacro{doi+eprint+url}%
+ \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+
+
+
+
+%
+% 专著中的析出文献的格式修改
+%
+\DeclareBibliographyDriver{inbook}{%源来自standard.bbx
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+\usebibmacro{title}%
+\usebibmacro{in:}%
+%\printtext{\texttt{//}\addthinspace}%
+ \usebibmacro{bybookauthor}%
+ \ifnameundef{bookauthor}{%
+ \ifnameundef{editor}{}{\newunit}%
+ }{\newunit}%替换下一句
+ %\newunit\newblock
+\iffieldundef{series}{}{\usebibmacro{series+number}\setunit{\addcolon\addspace}}%为处理一些存在series的情况而增加
+ \usebibmacro{maintitle+booktitle}%
+\iffieldundef{volume}{}{\setunit{\addcolon\addspace}\printfield{volume}}%
+\iffieldundef{number}{}{\setunit{\addcolon\addspace}\printfield{number}}%增加卷和册信息
+ \newunit\newblock%
+% \usebibmacro{byeditor+others}%
+% \newunit\newblock
+ \printfield{edition}%
+ \newunit
+ \iftoggle{bbx:gbstrict}{}{%
+% \iffieldundef{maintitle}
+% {\printfield{volume}%
+% \printfield{part}}
+% {}%
+% \newunit
+% \printfield{volumes}%
+% \newunit\newblock
+% \usebibmacro{series+number}
+ }%
+ \newunit\newblock
+ %\printfield{note}%
+ %\newunit\newblock
+ \usebibmacro{publisher+location+date}%
+ %\newunit\newblock
+ \usebibmacro{chapter+pages}%
+ %\newunit\newblock
+ \usebibmacro{doi+eprint+url}%移到上面来
+ \newunit\newblock
+ \iftoggle{bbx:isbn}
+ {\printfield{isbn}}
+ {}%
+ \newunit\newblock
+% \usebibmacro{doi+eprint+url}%
+% \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.cbx
index 077b5c8bb9..b5c3a34dd8 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.cbx
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ay.cbx
@@ -1,429 +1,429 @@
-%%
-%% ---------------------------------------------------------------
-%% biblatex-gb7714-2015 --- A biblatex implementation of the
-%% GBT7714-2015 citation style,author year sequence
-%% Maintained by huzhenzhen
-%% E-mail: hzzmail@163.com
-%% Released under the LaTeX Project Public License v1.3c or later
-%% ---------------------------------------------------------------
-%%
-\def\versionofgbtstyle{2021/01/19 v1.0w}
-\ProvidesFile{gb7714-2015ay.cbx}[\versionofgbtstyle biblatex citation style]
-
-%
-% 加载标准样式
-%
-\RequireCitationStyle{authoryear-comp}
-
-
-%
-% 增加一个控制是否将标准标签中的作者加上超链接的选项
-% 20210119,v1.0v,hzz
-\newtoggle{bbx:gblabelref}
-\DeclareBibliographyOption{gblabelref}[true]{%biblatex低版本
- \settoggle{bbx:gblabelref}{#1}}
-\ExecuteBibliographyOptions{gblabelref}
-
-
-\ExecuteBibliographyOptions{
- %autocite = superscript ,
- %autopunct = true ,
- %sorting = none ,
- maxcitenames=1,
- mincitenames=1,
- uniquename=init,%因为使用了名字缩写选项,所以需要设置uniquename=init而不是full避免冲突
- uniquelist=minyear
-}
-
-%
-% 选项设置,针对3.7以下版本
-%
-% 原理方法:labeldate用于控制是否给引用标签提供日期的成分
-\defversion{3.4}{cbxopt}{
- \ExecuteBibliographyOptions{
- labeldate=true
- }
-}
-
-%
-% 选项设置,针对3.7以上版本
-%
-% 原理方法:labeldateparts用于控制是否给引用标签提供日期的成分
-\defversion{3.7}{cbxopt}{
- \ExecuteBibliographyOptions{
- labeldateparts=true
- }
-}
-
-\ifboolexpr{%选择选项设置
-test {\iftoggle{iftlfive}}%biblatex<=3.2
-or
-test {\iftoggle{iftlsix}}%3.3<=biblatex<=3.6
-}{\switchversion{3.4}{cbxopt}}{\switchversion{3.7}{cbxopt}}%else: biblatex>=3.7
-
-
-\ifboolexpr{%兼容cite:labelyear+extrayear
-test {\iftoggle{iftlfive}}%biblatex<=3.2
-or
-test {\iftoggle{iftlsix}}%3.3<=biblatex<=3.6
-or
-test {\iftoggle{iftlseven}}%3.7=biblatex
-}{\newbibmacro{cite:labeldate+extradate}{\usebibmacro{cite:labelyear+extrayear}}}{}%else: biblatex>3.7
-
-%textcite标注命令中的标点设置,注意只针对textcite命令。
-% v-old
-% v1.0t,20200320,hzz,修改如下
-% 在cbx中增加标注中的nameyeardelim标点定义,避免bbx使用其它样式时出现问题
-% 同时设置textcite的nameyeardelim为一个短空格,似乎原来直接连上去的不够美观
-\DeclareDelimFormat[cite,parencite,pagescite]{nameyeardelim}{\addcomma\space}%\addcomma\space
-\DeclareDelimFormat[textcite]{nameyeardelim}{\addthinspace}%\addcomma\space
-\DeclareDelimFormat[textcite]{andothersdelim}{\iffieldequalstr{userf}{chinese}{\addthinspace}{\addspace}}%
-\AtEveryCitekey{%
-\iffieldequalstr{userf}{chinese}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace
- {\renewcommand*{\andothersdelim}{\addspace}}%
-}
-
-%
-% 修订使可用选项gblabelref来控制是否将标准标签中的作者加上超链接
-% 20210119,v1.0v,hzz
-\iftoggle{iftlatest}%
-{\renewbibmacro*{cite}{%
- \iffieldundef{shorthand}
- {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
- {\usebibmacro{cite:label}%
- \setunit{\printdelim{nonameyeardelim}}%
- \usebibmacro{cite:labeldate+extradate}%
- \usebibmacro{cite:reinit}}
- {\iffieldequals{namehash}{\cbx@lasthash}
- {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
- \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
- {\setunit{\addcomma}%
- \usebibmacro{cite:extradate}}
- {\setunit{\compcitedelim}%
- \usebibmacro{cite:labeldate+extradate}%
- \savefield{labelyear}{\cbx@lastyear}}}
- {\iftoggle{bbx:gblabelref}{\printtext[bibhyperref]{\printnames{labelname}}}{\printnames{labelname}}%
- \setunit{\printdelim{nameyeardelim}}%
- \usebibmacro{cite:labeldate+extradate}%
- \savefield{namehash}{\cbx@lasthash}%
- \savefield{labelyear}{\cbx@lastyear}}}}
- {\usebibmacro{cite:shorthand}%
- \usebibmacro{cite:reinit}}%
- \setunit{\multicitedelim}}
-\renewbibmacro*{textcite}{%
- \iffieldequals{namehash}{\cbx@lasthash}
- {\iffieldundef{shorthand}
- {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
- \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
- {\setunit{\addcomma}%
- \usebibmacro{cite:extradate}}
- {\setunit{\compcitedelim}%
- \usebibmacro{cite:labeldate+extradate}%
- \savefield{labelyear}{\cbx@lastyear}}}
- {\setunit{\compcitedelim}%
- \usebibmacro{cite:shorthand}%
- \global\undef\cbx@lastyear}}
- {\ifnameundef{labelname}
- {\iffieldundef{shorthand}
- {\usebibmacro{cite:label}%
- \setunit{%
- \global\booltrue{cbx:parens}%
- \printdelim{nonameyeardelim}\bibopenparen}%
- \ifnumequal{\value{citecount}}{1}
- {\usebibmacro{prenote}}
- {}%
- \usebibmacro{cite:labeldate+extradate}}
- {\usebibmacro{cite:shorthand}}}
- {\iftoggle{bbx:gblabelref}{\printtext[bibhyperref]{\printnames{labelname}}}{\printnames{labelname}}%
- \setunit{%
- \global\booltrue{cbx:parens}%
- \printdelim{nameyeardelim}\bibopenparen}%
- \ifnumequal{\value{citecount}}{1}
- {\usebibmacro{prenote}}
- {}%
- \iffieldundef{shorthand}
- {\iffieldundef{labelyear}
- {\usebibmacro{cite:label}}
- {\usebibmacro{cite:labeldate+extradate}}%
- \savefield{labelyear}{\cbx@lastyear}}
- {\usebibmacro{cite:shorthand}%
- \global\undef\cbx@lastyear}}%
- \stepcounter{textcitecount}%
- \savefield{namehash}{\cbx@lasthash}}%
- \setunit{%
- \ifbool{cbx:parens}
- {\bibcloseparen\global\boolfalse{cbx:parens}}
- {}%
- \textcitedelim}}}{}
-
-
-
-%
-% 重定义cite:label,针对biblatex3.8以上版本set条目集的标注(引用)标签
-%
-% 原理方法:当条目是set时,v3.8以上版本,都没有有用的信息(区别于3.7以下版本set复制第一个成员的信息),
-% 于是利用entrykey来给出标签,那么就要set的条目关键字是需要的字符串,注意字符串中间不能有空格
-\renewbibmacro*{cite:label}{%
- \iffieldundef{label}%
- {\iffieldundef{labeltitle}{\printtext[bibhyperref]{\printfield{entrykey}}}%entrykey
- {\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}}%
- {\printtext[bibhyperref]{\printfield{label}}}}
-
-%
-% 重定义cite命令
-%
-% 方法:\DeclareCiteCommand{\cite}[\mkbibparens]{precode}{loopcode}{sepcode}{postcode}
-% v1.0p版后将cite的处理方式修改为类似pagescite,而不再使用biblatex的标准方式
-\DeclareCiteCommand{\cite}
- {\usebibmacro{cite:init}%
- \renewbibmacro*{postnote}{%
- \iffieldundef{postnote}%
- {}%
- {\thefield{postnote}}}%
- (\usebibmacro{prenote}}%)
- {\usebibmacro{citeindex}%
- \usebibmacro{cite}}
- {}
- {%(
- )\mkbibsuperscript{\usebibmacro{postnote}}%\usebibmacro{postnote}
- }
-
-%
-% 定义upcite命令
-% 20180604,v1.0l,hzz
-% 20190409,v1.0r,hzz
-% 方法:与cite命令相同
-\newrobustcmd*{\upcite}{%
- \cite}
-
-%
-% 重定义parencite命令
-%
-%\DeclareCiteCommand{\parencite}
-% {\usebibmacro{cite:init}%
-% \renewbibmacro*{postnote}{%
-% \iffieldundef{postnote}%
-% {}%
-% {\nopunct%
-% \printfield{postnote}}}%
-% (\usebibmacro{prenote}}%)
-% {\usebibmacro{citeindex}%
-% \usebibmacro{cite}}
-% {}
-% {%(
-% )\mkbibsuperscript{\usebibmacro{postnote}}}
-
-
-%
-% 新定义pagescite命令,以满足标签带页码的国标要求
-%
-% 原理方法:
-% 新增\pagescite引用命令
-\DeclareCiteCommand{\pagescite}
- {\usebibmacro{cite:init}%
- \renewbibmacro*{postnote}{%
- \iffieldundef{postnote}%
- {\thefield{pages}}%
- {\thefield{postnote}}}%
- (\usebibmacro{prenote}%)
- }%
- {\usebibmacro{citeindex}%
- \usebibmacro{cite}}
- {}
- {%(
- )\mkbibsuperscript{\usebibmacro{postnote}}}
-
-%
-% 定义yearpagescite,用于当文中作者已经存在,需要页码和年份的情况
-%
-% 原理:增加一个命令yearpagescite
-% 参考biblatex.DEF中的\DeclareCiteCommand*{\citeyear}命令
-\DeclareCiteCommand{\yearpagescite}
- {\usebibmacro{cite:init}%
- \renewbibmacro*{postnote}{%
- \iffieldundef{postnote}%
- {\thefield{pages}}%
- {\thefield{postnote}}}%
- \printtext{(}\usebibmacro{prenote}}%
- {\usebibmacro{cite:labeldate+extradate}}%\printfield{year}\printfield{extrayear}
- {\multicitedelim}%
- {\printtext{)}\textsuperscript{\usebibmacro{postnote}}}
-
-%
-% 定义yearcite,用于当文中作者已经存在,仅需要年份的情况
-%
-% 原理:增加一个命令yearcite
-\DeclareCiteCommand{\yearcite}%仅输出年份,不要页码
- {\usebibmacro{cite:init}%
- \printtext{(}\usebibmacro{prenote}}%
- {\usebibmacro{cite:labeldate+extradate}}%\printfield{year}\printfield{extrayear}
- {\multicitedelim}%
- {\printtext{)}}
-
-%
-% 定义\authornumcite命令,输出作者信息,然后在后面带上顺序编码
-% 20180427,v1.0k,增加,hzz
-% 20190409,v1.0r,hzz
-% 为与顺序编码制兼容,增加了命令,定义与citet相同
-\newbibmacro*{citeta}{%
- \iffieldundef{shorthand}
- {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
- {\usebibmacro{cite:label}%
- \setunit{\printdelim{nonameyeardelim}}%
- \usebibmacro{cite:labeldate+extradate}%
- \usebibmacro{cite:reinit}}
- {\iffieldequals{namehash}{\cbx@lasthash}
- {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
- \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
- {\setunit{\addcomma}%
- \usebibmacro{cite:extradate}}
- {\setunit{\compcitedelim}%
- \usebibmacro{cite:labeldate+extradate}%
- \savefield{labelyear}{\cbx@lastyear}}}
- {\iftoggle{bbx:gblabelref}{\printtext[bibhyperref]{\printnames{labelname}}}{\printnames{labelname}}%%
- %\setunit{\printdelim{nameyeardelim}}%
- (\usebibmacro{cite:labeldate+extradate})%
- \savefield{namehash}{\cbx@lasthash}%
- \savefield{labelyear}{\cbx@lastyear}}}}
- {\usebibmacro{cite:shorthand}%
- \usebibmacro{cite:reinit}}%
- \setunit{\multicitedelim}}
-
-\DeclareCiteCommand{\authornumcite}%
- {\usebibmacro{cite:init}%
- \renewbibmacro*{postnote}{%
- \iffieldundef{postnote}%
- {}%
- {\thefield{postnote}}}%
- \usebibmacro{prenote}}%
- {\usebibmacro{citeindex}%
- \usebibmacro{citeta}}
- {}
- {\mkbibsuperscript{\usebibmacro{postnote}}%\usebibmacro{postnote}
- }
-
-%
-% 增加如下多个命令
-% 20190409,v1.0r,hzz
-% 方法:利用newcommand或newrobustcmd命令进行定义
-% 注意\citet和\citep命令之所以不用newrobustcmd,是为避免加载natbib模块后产生冲突
-
-%同\authornumcite
-%\DeclareCiteCommand{\citet}%
-% {\usebibmacro{cite:init}%
-% \renewbibmacro*{postnote}{%
-% \iffieldundef{postnote}%
-% {}%
-% {\thefield{postnote}}}%
-% \usebibmacro{prenote}}%
-% {\usebibmacro{citeindex}%
-% \usebibmacro{citet}}
-% {}
-% {%(
-% )\mkbibsuperscript{\usebibmacro{postnote}}%\usebibmacro{postnote}
-% }
-
-
-%
-% 重定义citet,因为前面与\authornumcite同定义的命令无法正确处理多个bibtexkey同时给出的压缩情况
-% 20200721,v1.0v,hzz
-% 方法:利用textcite命令进行定义
-% 基本利用textcite命令来写citet,仅利用bool{cbx:incitet}做判断,进而处理不同的页码形式
-\newbool{cbx:incitet}
-\newbibmacro*{citet:postnote}{%
- \ifthenelse{\value{multicitecount}=\value{multicitetotal}}
- {\setunit{}%
- \printtext{%
- \ifbool{cbx:parens}
- {\bibcloseparen\global\boolfalse{cbx:parens}}
- {}}}
- {\setunit{%
- \ifbool{cbx:parens}
- {\bibcloseparen\global\boolfalse{cbx:parens}}
- {}%
- \textcitedelim}}%
- \renewbibmacro*{postnote}{%
- \iffieldundef{postnote}%
- {}%
- {\thefield{postnote}}}%
- \mkbibsuperscript{\usebibmacro{postnote}}%
- }
-
-\DeclareCiteCommand{\cbx@textcite}
- {\usebibmacro{cite:init}}
- {\usebibmacro{citeindex}%
- \usebibmacro{textcite}}
- {}
- {\ifbool{cbx:incitet}{\usebibmacro{citet:postnote}}{\usebibmacro{textcite:postnote}}}
-
- \newrobustcmd{\cbx@citet@init}[2]{%
- \global\booltrue{cbx:incitet}%
- \setcounter{textcitetotal}{0}%
- \setcounter{textcitecount}{0}%
- \def\cbx@savedcites{#1}#2\cbx@savedcites\empty}
-
- \renewrobustcmd{\cbx@textcite@init}[2]{%
- \global\boolfalse{cbx:incitet}%
- \setcounter{textcitetotal}{0}%
- \setcounter{textcitecount}{0}%
- \def\cbx@savedcites{#1}#2\cbx@savedcites\empty}
-
-\DeclareCiteCommand{\citet}[\cbx@citet@init\cbx@textcite]
- {\gdef\cbx@savedkeys{}%
- \citetrackerfalse%
- \pagetrackerfalse%
- \DeferNextCitekeyHook%
- \usebibmacro{cite:init}}
- {\ifthenelse{\iffirstcitekey\AND\value{multicitetotal}>0}
- {\protected@xappto\cbx@savedcites{()(\thefield{multipostnote})}%
- \global\clearfield{multipostnote}}
- {}%
- \xappto\cbx@savedkeys{\thefield{entrykey},}%
- \iffieldequals{namehash}{\cbx@lasthash}
- {}
- {\stepcounter{textcitetotal}%
- \savefield{namehash}{\cbx@lasthash}}}
- {}
- {\protected@xappto\cbx@savedcites{%
- [\thefield{prenote}][\thefield{postnote}]{\cbx@savedkeys}}}
-
-\let\cbx@citets@init\cbx@citet@init
-\pretocmd{\cbx@citets@init}{\UseNextMultiCiteHook}{}{}
-\DeclareMultiCiteCommand{\citets}[\cbx@citets@init\cbx@textcites]{\citet}{}
-
-%同cite
-\DeclareCiteCommand{\citep}
- {\usebibmacro{cite:init}%
- \renewbibmacro*{postnote}{%
- \iffieldundef{postnote}%
- {}%
- {\thefield{postnote}}}%
- (\usebibmacro{prenote}}%)
- {\usebibmacro{citeindex}%
- \usebibmacro{cite}}
- {}
- {%(
- )\mkbibsuperscript{\usebibmacro{postnote}}%\usebibmacro{postnote}
- }
-
-\newrobustcmd*{\citetns}%
- {\textcite}
-
-\newrobustcmd*{\citepns}%
- {\parencite}
-
-\newrobustcmd*{\inlinecite}%
- {\parencite}
-
-
-%
-% 增加如下复数的命令,以符合biblatex的复数命令习惯
-% 20190430,v1.0r,hzz
-% citec和citecs命令是为了兼容顺序编码制。
-% authornumcites是常用命令authornumcite的复数形式
-\newrobustcmd*{\citec}%
- {\cite}
-
-\DeclareMultiCiteCommand{\citecs}[]{\cite}{\multicitedelim}
-
-\DeclareMultiCiteCommand{\authornumcites}[]{\authornumcite}{\multicitedelim}
+%%
+%% ---------------------------------------------------------------
+%% biblatex-gb7714-2015 --- A biblatex implementation of the
+%% GBT7714-2015 citation style,author year sequence
+%% Maintained by huzhenzhen
+%% E-mail: hzzmail@163.com
+%% Released under the LaTeX Project Public License v1.3c or later
+%% ---------------------------------------------------------------
+%%
+\def\versionofgbtstyle{2021/04/03 v1.0x}
+\ProvidesFile{gb7714-2015ay.cbx}[\versionofgbtstyle biblatex citation style]
+
+%
+% 加载标准样式
+%
+\RequireCitationStyle{authoryear-comp}
+
+
+%
+% 增加一个控制是否将标准标签中的作者加上超链接的选项
+% 20210119,v1.0v,hzz
+\newtoggle{bbx:gblabelref}
+\DeclareBibliographyOption{gblabelref}[true]{%biblatex低版本
+ \settoggle{bbx:gblabelref}{#1}}
+\ExecuteBibliographyOptions{gblabelref}
+
+
+\ExecuteBibliographyOptions{
+ %autocite = superscript ,
+ %autopunct = true ,
+ %sorting = none ,
+ maxcitenames=1,
+ mincitenames=1,
+ uniquename=init,%因为使用了名字缩写选项,所以需要设置uniquename=init而不是full避免冲突
+ uniquelist=minyear
+}
+
+%
+% 选项设置,针对3.7以下版本
+%
+% 原理方法:labeldate用于控制是否给引用标签提供日期的成分
+\defversion{3.4}{cbxopt}{
+ \ExecuteBibliographyOptions{
+ labeldate=true
+ }
+}
+
+%
+% 选项设置,针对3.7以上版本
+%
+% 原理方法:labeldateparts用于控制是否给引用标签提供日期的成分
+\defversion{3.7}{cbxopt}{
+ \ExecuteBibliographyOptions{
+ labeldateparts=true
+ }
+}
+
+\ifboolexpr{%选择选项设置
+test {\iftoggle{iftlfive}}%biblatex<=3.2
+or
+test {\iftoggle{iftlsix}}%3.3<=biblatex<=3.6
+}{\switchversion{3.4}{cbxopt}}{\switchversion{3.7}{cbxopt}}%else: biblatex>=3.7
+
+
+\ifboolexpr{%兼容cite:labelyear+extrayear
+test {\iftoggle{iftlfive}}%biblatex<=3.2
+or
+test {\iftoggle{iftlsix}}%3.3<=biblatex<=3.6
+or
+test {\iftoggle{iftlseven}}%3.7=biblatex
+}{\newbibmacro{cite:labeldate+extradate}{\usebibmacro{cite:labelyear+extrayear}}}{}%else: biblatex>3.7
+
+%textcite标注命令中的标点设置,注意只针对textcite命令。
+% v-old
+% v1.0t,20200320,hzz,修改如下
+% 在cbx中增加标注中的nameyeardelim标点定义,避免bbx使用其它样式时出现问题
+% 同时设置textcite的nameyeardelim为一个短空格,似乎原来直接连上去的不够美观
+\DeclareDelimFormat[cite,parencite,pagescite]{nameyeardelim}{\addcomma\space}%\addcomma\space
+\DeclareDelimFormat[textcite]{nameyeardelim}{\addthinspace}%\addcomma\space
+\DeclareDelimFormat[textcite]{andothersdelim}{\iffieldequalstr{userf}{chinese}{\addthinspace}{\addspace}}%
+\AtEveryCitekey{%
+\iffieldequalstr{userf}{chinese}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace
+ {\renewcommand*{\andothersdelim}{\addspace}}%
+}
+
+%
+% 修订使可用选项gblabelref来控制是否将标准标签中的作者加上超链接
+% 20210119,v1.0v,hzz
+\iftoggle{iftlatest}%
+{\renewbibmacro*{cite}{%
+ \iffieldundef{shorthand}
+ {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
+ {\usebibmacro{cite:label}%
+ \setunit{\printdelim{nonameyeardelim}}%
+ \usebibmacro{cite:labeldate+extradate}%
+ \usebibmacro{cite:reinit}}
+ {\iffieldequals{namehash}{\cbx@lasthash}
+ {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
+ \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
+ {\setunit{\addcomma}%
+ \usebibmacro{cite:extradate}}
+ {\setunit{\compcitedelim}%
+ \usebibmacro{cite:labeldate+extradate}%
+ \savefield{labelyear}{\cbx@lastyear}}}
+ {\iftoggle{bbx:gblabelref}{\printtext[bibhyperref]{\printnames{labelname}}}{\printnames{labelname}}%
+ \setunit{\printdelim{nameyeardelim}}%
+ \usebibmacro{cite:labeldate+extradate}%
+ \savefield{namehash}{\cbx@lasthash}%
+ \savefield{labelyear}{\cbx@lastyear}}}}
+ {\usebibmacro{cite:shorthand}%
+ \usebibmacro{cite:reinit}}%
+ \setunit{\multicitedelim}}
+\renewbibmacro*{textcite}{%
+ \iffieldequals{namehash}{\cbx@lasthash}
+ {\iffieldundef{shorthand}
+ {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
+ \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
+ {\setunit{\addcomma}%
+ \usebibmacro{cite:extradate}}
+ {\setunit{\compcitedelim}%
+ \usebibmacro{cite:labeldate+extradate}%
+ \savefield{labelyear}{\cbx@lastyear}}}
+ {\setunit{\compcitedelim}%
+ \usebibmacro{cite:shorthand}%
+ \global\undef\cbx@lastyear}}
+ {\ifnameundef{labelname}
+ {\iffieldundef{shorthand}
+ {\usebibmacro{cite:label}%
+ \setunit{%
+ \global\booltrue{cbx:parens}%
+ \printdelim{nonameyeardelim}\bibopenparen}%
+ \ifnumequal{\value{citecount}}{1}
+ {\usebibmacro{prenote}}
+ {}%
+ \usebibmacro{cite:labeldate+extradate}}
+ {\usebibmacro{cite:shorthand}}}
+ {\iftoggle{bbx:gblabelref}{\printtext[bibhyperref]{\printnames{labelname}}}{\printnames{labelname}}%
+ \setunit{%
+ \global\booltrue{cbx:parens}%
+ \printdelim{nameyeardelim}\bibopenparen}%
+ \ifnumequal{\value{citecount}}{1}
+ {\usebibmacro{prenote}}
+ {}%
+ \iffieldundef{shorthand}
+ {\iffieldundef{labelyear}
+ {\usebibmacro{cite:label}}
+ {\usebibmacro{cite:labeldate+extradate}}%
+ \savefield{labelyear}{\cbx@lastyear}}
+ {\usebibmacro{cite:shorthand}%
+ \global\undef\cbx@lastyear}}%
+ \stepcounter{textcitecount}%
+ \savefield{namehash}{\cbx@lasthash}}%
+ \setunit{%
+ \ifbool{cbx:parens}
+ {\bibcloseparen\global\boolfalse{cbx:parens}}
+ {}%
+ \textcitedelim}}}{}
+
+
+
+%
+% 重定义cite:label,针对biblatex3.8以上版本set条目集的标注(引用)标签
+%
+% 原理方法:当条目是set时,v3.8以上版本,都没有有用的信息(区别于3.7以下版本set复制第一个成员的信息),
+% 于是利用entrykey来给出标签,那么就要set的条目关键字是需要的字符串,注意字符串中间不能有空格
+\renewbibmacro*{cite:label}{%
+ \iffieldundef{label}%
+ {\iffieldundef{labeltitle}{\printtext[bibhyperref]{\printfield{entrykey}}}%entrykey
+ {\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}}%
+ {\printtext[bibhyperref]{\printfield{label}}}}
+
+%
+% 重定义cite命令
+%
+% 方法:\DeclareCiteCommand{\cite}[\mkbibparens]{precode}{loopcode}{sepcode}{postcode}
+% v1.0p版后将cite的处理方式修改为类似pagescite,而不再使用biblatex的标准方式
+\DeclareCiteCommand{\cite}
+ {\usebibmacro{cite:init}%
+ \renewbibmacro*{postnote}{%
+ \iffieldundef{postnote}%
+ {}%
+ {\thefield{postnote}}}%
+ (\usebibmacro{prenote}}%)
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite}}
+ {}
+ {%(
+ )\mkbibsuperscript{\usebibmacro{postnote}}%\usebibmacro{postnote}
+ }
+
+%
+% 定义upcite命令
+% 20180604,v1.0l,hzz
+% 20190409,v1.0r,hzz
+% 方法:与cite命令相同
+\newrobustcmd*{\upcite}{%
+ \cite}
+
+%
+% 重定义parencite命令
+%
+%\DeclareCiteCommand{\parencite}
+% {\usebibmacro{cite:init}%
+% \renewbibmacro*{postnote}{%
+% \iffieldundef{postnote}%
+% {}%
+% {\nopunct%
+% \printfield{postnote}}}%
+% (\usebibmacro{prenote}}%)
+% {\usebibmacro{citeindex}%
+% \usebibmacro{cite}}
+% {}
+% {%(
+% )\mkbibsuperscript{\usebibmacro{postnote}}}
+
+
+%
+% 新定义pagescite命令,以满足标签带页码的国标要求
+%
+% 原理方法:
+% 新增\pagescite引用命令
+\DeclareCiteCommand{\pagescite}
+ {\usebibmacro{cite:init}%
+ \renewbibmacro*{postnote}{%
+ \iffieldundef{postnote}%
+ {\thefield{pages}}%
+ {\thefield{postnote}}}%
+ (\usebibmacro{prenote}%)
+ }%
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite}}
+ {}
+ {%(
+ )\mkbibsuperscript{\usebibmacro{postnote}}}
+
+%
+% 定义yearpagescite,用于当文中作者已经存在,需要页码和年份的情况
+%
+% 原理:增加一个命令yearpagescite
+% 参考biblatex.DEF中的\DeclareCiteCommand*{\citeyear}命令
+\DeclareCiteCommand{\yearpagescite}
+ {\usebibmacro{cite:init}%
+ \renewbibmacro*{postnote}{%
+ \iffieldundef{postnote}%
+ {\thefield{pages}}%
+ {\thefield{postnote}}}%
+ \printtext{(}\usebibmacro{prenote}}%
+ {\usebibmacro{cite:labeldate+extradate}}%\printfield{year}\printfield{extrayear}
+ {\multicitedelim}%
+ {\printtext{)}\textsuperscript{\usebibmacro{postnote}}}
+
+%
+% 定义yearcite,用于当文中作者已经存在,仅需要年份的情况
+%
+% 原理:增加一个命令yearcite
+\DeclareCiteCommand{\yearcite}%仅输出年份,不要页码
+ {\usebibmacro{cite:init}%
+ \printtext{(}\usebibmacro{prenote}}%
+ {\usebibmacro{cite:labeldate+extradate}}%\printfield{year}\printfield{extrayear}
+ {\multicitedelim}%
+ {\printtext{)}}
+
+%
+% 定义\authornumcite命令,输出作者信息,然后在后面带上顺序编码
+% 20180427,v1.0k,增加,hzz
+% 20190409,v1.0r,hzz
+% 为与顺序编码制兼容,增加了命令,定义与citet相同
+\newbibmacro*{citeta}{%
+ \iffieldundef{shorthand}
+ {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
+ {\usebibmacro{cite:label}%
+ \setunit{\printdelim{nonameyeardelim}}%
+ \usebibmacro{cite:labeldate+extradate}%
+ \usebibmacro{cite:reinit}}
+ {\iffieldequals{namehash}{\cbx@lasthash}
+ {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
+ \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
+ {\setunit{\addcomma}%
+ \usebibmacro{cite:extradate}}
+ {\setunit{\compcitedelim}%
+ \usebibmacro{cite:labeldate+extradate}%
+ \savefield{labelyear}{\cbx@lastyear}}}
+ {\iftoggle{bbx:gblabelref}{\printtext[bibhyperref]{\printnames{labelname}}}{\printnames{labelname}}%%
+ %\setunit{\printdelim{nameyeardelim}}%
+ (\usebibmacro{cite:labeldate+extradate})%
+ \savefield{namehash}{\cbx@lasthash}%
+ \savefield{labelyear}{\cbx@lastyear}}}}
+ {\usebibmacro{cite:shorthand}%
+ \usebibmacro{cite:reinit}}%
+ \setunit{\multicitedelim}}
+
+\DeclareCiteCommand{\authornumcite}%
+ {\usebibmacro{cite:init}%
+ \renewbibmacro*{postnote}{%
+ \iffieldundef{postnote}%
+ {}%
+ {\thefield{postnote}}}%
+ \usebibmacro{prenote}}%
+ {\usebibmacro{citeindex}%
+ \usebibmacro{citeta}}
+ {}
+ {\mkbibsuperscript{\usebibmacro{postnote}}%\usebibmacro{postnote}
+ }
+
+%
+% 增加如下多个命令
+% 20190409,v1.0r,hzz
+% 方法:利用newcommand或newrobustcmd命令进行定义
+% 注意\citet和\citep命令之所以不用newrobustcmd,是为避免加载natbib模块后产生冲突
+
+%同\authornumcite
+%\DeclareCiteCommand{\citet}%
+% {\usebibmacro{cite:init}%
+% \renewbibmacro*{postnote}{%
+% \iffieldundef{postnote}%
+% {}%
+% {\thefield{postnote}}}%
+% \usebibmacro{prenote}}%
+% {\usebibmacro{citeindex}%
+% \usebibmacro{citet}}
+% {}
+% {%(
+% )\mkbibsuperscript{\usebibmacro{postnote}}%\usebibmacro{postnote}
+% }
+
+
+%
+% 重定义citet,因为前面与\authornumcite同定义的命令无法正确处理多个bibtexkey同时给出的压缩情况
+% 20200721,v1.0v,hzz
+% 方法:利用textcite命令进行定义
+% 基本利用textcite命令来写citet,仅利用bool{cbx:incitet}做判断,进而处理不同的页码形式
+\newbool{cbx:incitet}
+\newbibmacro*{citet:postnote}{%
+ \ifthenelse{\value{multicitecount}=\value{multicitetotal}}
+ {\setunit{}%
+ \printtext{%
+ \ifbool{cbx:parens}
+ {\bibcloseparen\global\boolfalse{cbx:parens}}
+ {}}}
+ {\setunit{%
+ \ifbool{cbx:parens}
+ {\bibcloseparen\global\boolfalse{cbx:parens}}
+ {}%
+ \textcitedelim}}%
+ \renewbibmacro*{postnote}{%
+ \iffieldundef{postnote}%
+ {}%
+ {\thefield{postnote}}}%
+ \mkbibsuperscript{\usebibmacro{postnote}}%
+ }
+
+\DeclareCiteCommand{\cbx@textcite}
+ {\usebibmacro{cite:init}}
+ {\usebibmacro{citeindex}%
+ \usebibmacro{textcite}}
+ {}
+ {\ifbool{cbx:incitet}{\usebibmacro{citet:postnote}}{\usebibmacro{textcite:postnote}}}
+
+ \newrobustcmd{\cbx@citet@init}[2]{%
+ \global\booltrue{cbx:incitet}%
+ \setcounter{textcitetotal}{0}%
+ \setcounter{textcitecount}{0}%
+ \def\cbx@savedcites{#1}#2\cbx@savedcites\empty}
+
+ \renewrobustcmd{\cbx@textcite@init}[2]{%
+ \global\boolfalse{cbx:incitet}%
+ \setcounter{textcitetotal}{0}%
+ \setcounter{textcitecount}{0}%
+ \def\cbx@savedcites{#1}#2\cbx@savedcites\empty}
+
+\DeclareCiteCommand{\citet}[\cbx@citet@init\cbx@textcite]
+ {\gdef\cbx@savedkeys{}%
+ \citetrackerfalse%
+ \pagetrackerfalse%
+ \DeferNextCitekeyHook%
+ \usebibmacro{cite:init}}
+ {\ifthenelse{\iffirstcitekey\AND\value{multicitetotal}>0}
+ {\protected@xappto\cbx@savedcites{()(\thefield{multipostnote})}%
+ \global\clearfield{multipostnote}}
+ {}%
+ \xappto\cbx@savedkeys{\thefield{entrykey},}%
+ \iffieldequals{namehash}{\cbx@lasthash}
+ {}
+ {\stepcounter{textcitetotal}%
+ \savefield{namehash}{\cbx@lasthash}}}
+ {}
+ {\protected@xappto\cbx@savedcites{%
+ [\thefield{prenote}][\thefield{postnote}]{\cbx@savedkeys}}}
+
+\let\cbx@citets@init\cbx@citet@init
+\pretocmd{\cbx@citets@init}{\UseNextMultiCiteHook}{}{}
+\DeclareMultiCiteCommand{\citets}[\cbx@citets@init\cbx@textcites]{\citet}{}
+
+%同cite
+\DeclareCiteCommand{\citep}
+ {\usebibmacro{cite:init}%
+ \renewbibmacro*{postnote}{%
+ \iffieldundef{postnote}%
+ {}%
+ {\thefield{postnote}}}%
+ (\usebibmacro{prenote}}%)
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite}}
+ {}
+ {%(
+ )\mkbibsuperscript{\usebibmacro{postnote}}%\usebibmacro{postnote}
+ }
+
+\newrobustcmd*{\citetns}%
+ {\textcite}
+
+\newrobustcmd*{\citepns}%
+ {\parencite}
+
+\newrobustcmd*{\inlinecite}%
+ {\parencite}
+
+
+%
+% 增加如下复数的命令,以符合biblatex的复数命令习惯
+% 20190430,v1.0r,hzz
+% citec和citecs命令是为了兼容顺序编码制。
+% authornumcites是常用命令authornumcite的复数形式
+\newrobustcmd*{\citec}%
+ {\cite}
+
+\DeclareMultiCiteCommand{\citecs}[]{\cite}{\multicitedelim}
+
+\DeclareMultiCiteCommand{\authornumcites}[]{\authornumcite}{\multicitedelim}
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ms.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ms.bbx
index 3c5fe9097a..635eeed2a8 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ms.bbx
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ms.bbx
@@ -1,2735 +1,2760 @@
-%%
-%% ---------------------------------------------------------------
-%% biblatex-gb7714-2015 --- A biblatex implementation of the
-%% GBT7714-2015 bibliography style,numerical sequence
-%% Maintained by huzhenzhen
-%% E-mail: hzzmail@163.com
-%% Released under the LaTeX Project Public License v1.3c or later
-%% ---------------------------------------------------------------
-%%
-
-%
-% 版本和时间信息
-%
-\def\versionofgbtstyle{2021/01/19 v1.0w}
-\def\versionofbiblatex{\abx@version}
-\ProvidesFile{gb7714-2015ms.bbx}[\versionofgbtstyle biblatex bibliography style]
-%\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求
-
-
-%=====================================================================
-% 加载标准样式
-%=====================================================================
-\RequireBibliographyStyle{numeric-comp}
-\RequirePackage{xstring}%解决texlive2015的biblatex3.0不加载xstring包的问题
-
-%=====================================================================
-% 功能函数
-%=====================================================================
- %
- % biblatex版本判断
- % 20180629,v1.0k,hzz
- %
- % 原理方法:适用于3.10以上版本的biblatex,否则给出警告
- \@ifpackagelater{biblatex}{2017/12/28}{}{
- \blx@warning@noline{%
- biblatex version is too old for this style\MessageBreak
- if errors raised,Please update biblatex to the latest version.}
- }
-
-
- %
- % 判断CJK字符的函数,用于判断作者等信息是否由中文字符构成
- % v1.0k,20180509,hzz
- %
- % 原理方法:用biber中的perl方法代替。因为利用tex函数对字符判断时,当字符在宏
- % 中时,基于`的方法无法解决GBK编码的问题,基于CJKsymbol的方法无法解决utf-8
- % 编码用xelatex编译的问题。
- %
- % 原理是:利用perl正则将中文标识记录到域中,
- % 然后利用\iffieldundef和\iffieldequalstr进行判断
- \providetoggle{ifCJKforgbt}
- \def\testCJKfirst#1{%
- \iffieldundef{#1}{\togglefalse{ifCJKforgbt}}{%
- \iffieldequalstr{#1}{chinese}{\toggletrue{ifCJKforgbt}}{\togglefalse{ifCJKforgbt}}}}
-
- %
- % 2个卷的解析函数,用于连续出版物
- %
- % 原理方法: 范围起止间隔符号还是用-,而不是与date相同的/,因为有合期期刊的问题,需要用到/符号
- \newcommand{\multivolparser}[1]{%
- \IfSubStr{#1}{-}%
- {\StrBefore{#1}{-}[\multivolfirst]\StrBehind{#1}{-}[\multivolsecond]}%
- {\def\multivolfirst{#1}\def\multivolsecond{}}%
- }
-
-
- %
- % 2个期的解析函数,用于连续出版物
- %
- \newcommand{\multinumberparser}[1]{%
- \IfSubStr{#1}{-}%
- {\StrBefore{#1}{-}[\multinumberfirst]\StrBehind{#1}{-}[\multinumbersecond]}%
- {\def\multinumberfirst{#1}\def\multinumbersecond{}}%
- }
-
-
-%=====================================================================
-% 数据模型定义
-%=====================================================================
- %定义类型和载体标识,从gb内容看载体基本属于介质。
- %为与lee zeping的bst的样式统一,使用mark和medium这两域名
- %为单个条目的姓名格式控制增加nameformat和namefmtid两个域
- %为缩略信息文献表增加了shortbooktitle域
- %为多语言排序增加了lansortorder域
- \DeclareDatamodelFields[type=field,datatype=literal]{mark,medium,nameformat}
- \DeclareDatamodelFields[type=field,datatype=integer]{namefmtid}
- \DeclareDatamodelFields[type=field,datatype=literal]{shortbooktitle}
- \DeclareDatamodelFields[type=field,datatype=literal]{lansortorder}
-
- %因为biblatex更新3.14版本以后,biber对于为声明数据模型的条目类型
- %不再默认读取,而是以空字符串作为条目类型名,自然在条目定义alias时
- %就会出现问题,因此显式的声明一下newspaper,然后保留后面采用alias的方式
- %而standard类型则是采用另一种方式直接在sourcemap中转换为其它类型。
- \@ifpackagelater{biblatex}{2019/11/30}{%2019/12/01 v3.14
- \DeclareDatamodelEntrytypes{newspaper}%
- }{}
-
-%=====================================================================
-% 设置宏包选项
-%=====================================================================
- %
- % 增加一个控制是否输出文献载体的选项
- % 20191125,v1,0s,hzz
- \newtoggle{bbx:gbmedium}
- \DeclareBibliographyOption{gbmedium}[true]{%biblatex低版本
- \settoggle{bbx:gbmedium}{#1}}
- \ExecuteBibliographyOptions{gbmedium}
-
- %
- % 增加一个控制是否输出annotation域的选项,该域可以用于在文献条目后面输出一些注释信息
- % 20190509,v1,0s,hzz
- \newtoggle{bbx:gbannote}
- \DeclareBibliographyOption{gbannote}[false]{%biblatex低版本
- \settoggle{bbx:gbannote}{#1}}
- \ExecuteBibliographyOptions{gbannote}
- %
- %用于在文献条目后面输出注释信息的宏
- %FieldFormat{annotation}用于设置注释信息的格式
- \DeclareFieldFormat{annotation}{%
- \printtext{\addspace(#1)}%
- }
- \renewbibmacro*{annotation}{%
- \iftoggle{bbx:gbannote}%
- {\iffieldundef{annotation}%
- {\printfile[annotation]{\bibannotationprefix\thefield{entrykey}.tex}}%
- {\printfield{annotation}}}%
- {}%
- }
-
-
- %
- % 增加一个控制是否输出type域的选项
- % 20190212,v1,0q,hzz
- \newtoggle{bbx:gbfieldtype}
- \DeclareBibliographyOption{gbfieldtype}[false]{%biblatex低版本
- \settoggle{bbx:gbfieldtype}{#1}}
- \ExecuteBibliographyOptions{gbfieldtype}
-
- %
- % 增加一个控制是否根据页码重设脚注数字标号的选项
- % 20190422,v1,0r,hzz
- \newtoggle{bbx:gbfnperpage}
- \DeclareBibliographyOption{gbfnperpage}[false]{%
- \settoggle{bbx:gbfnperpage}{#1}}
- \ExecuteBibliographyOptions{gbfnperpage}
-
- %
- % 增加一个选项,用于控制是否实现GB/T 7714-2015标准的脚注文献表
- % 20190203,v1.0p,hzz
- % 原理方法:默认做patch,文献引用带圈上标数字表示,脚注中的文献用带圈非上标数字做标签
- % 当前面的脚注中已经存在当前文献,那么当前文献内容不再输出而用同(4)这样的方式
- % 需要注意的是由于小页环境和表格中的脚注本身的问题,可能会有一些问题
- \DeclareBibliographyOption{gbfootbib}[false]{%
- \ifstrequal{#1}{false}{}{\execgbfootbib}}
- \ExecuteBibliographyOptions{gbfootbib}
-
- %%
- \newlength{\footbibmargin}
- \newlength{\footbiblabelsep}
- \setlength{\footbibmargin}{1em}%脚注的段落左侧缩进距离
- \setlength{\footbiblabelsep}{0.5em}%脚注中标记号与脚注段落的间距
- \def\execgbfootbib%
- {%
- %开启引用跟踪计数器,为使用\ifciteseen等测试命令
- \ExecuteBibliographyOptions{citetracker=true}
- %
- %利用footmisc宏包来实现脚注文献的悬挂对齐
- \AtEndPreamble{
- \@ifclassloaded{beamer}{}{
- %beamer类因为其特殊性,为避免冲突不调footmisc。
- %同时footmisc与hyperref宏包也不兼容,所以使用footmisc时会破坏脚注的超链接
- %如果要实现超链接可以将下句注释掉,这里留着主要是实现悬挂对齐。
- %\PassOptionsToPackage{perpage,hang}{footmisc}%
- %\RequirePackage{footmisc}%
-
- %重新实现脚注的根据单页重设脚注号码
- %重新实现脚注的悬挂对齐问题,不再使用footmisc,直接从latex核心代码和hyperref代码进行修改
- %v1.0q 20190317 hzz
- %v1.0r 20190422 hzz 根据gbfnperpage选项设置
- \iftoggle{bbx:gbfnperpage}%
- {\@addtoreset{footnote}{page}}{}%重设计数器
-
-\@ifpackageloaded{hyperref}{%加载hyperref则对\H@@footnotetext做重定义
- \long\def\H@@footnotetext##1{\insert\footins{%
- \reset@font\footnotesize
- \interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep
- \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark
- }%
- \color@begingroup
- \leftskip \footbibmargin%增加的左侧缩进
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox%
- }%
- \color@endgroup}}%
-
- \long\def\H@@mpfootnotetext##1{%
- \global\setbox\@mpfootins\vbox{%
- \unvbox\@mpfootins
- \reset@font\footnotesize
- \hsize\columnwidth
- \@parboxrestore
- \protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}%
- \leftskip \footbibmargin%增加的左侧缩进
- \color@begingroup
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox}%
- \color@endgroup}}
- }{%否则对latex核心代码中的\@footnotetext做重定义
- \long\def\@footnotetext##1{\insert\footins{%
- \reset@font\footnotesize
- \interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep
- \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark
- }%
- \color@begingroup
- \leftskip \footbibmargin%增加的左侧缩进
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox%
- }%
- \color@endgroup}}%
-
- \long\def\@mpfootnotetext##1{%
- \global\setbox\@mpfootins\vbox{%
- \unvbox\@mpfootins
- \reset@font\footnotesize
- \hsize\columnwidth
- \@parboxrestore
- \protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}%
- \leftskip \footbibmargin%增加的左侧缩进
- \color@begingroup
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox}%
- \color@endgroup}}
- }
-
- \long\def\@makefntext##1{%增加了脚注标记与正文的间隔
- \parindent 1em\noindent \hb@xt@ 0em{\hss \@makefnmark\makebox[\footbiblabelsep]{}}##1}
-
- }
-
- %
- %使脚注标记加圈并设置数字的字体为tiny,不使用修改thefootnote的方式
- \def\@makefnmark{\hbox{\@textsuperscript{\textcircled{\tiny\@thefnmark}}}}
- %做patch使得脚注内容中的脚注数字标签不上标
- \pretocmd{\@makefntext}{%
- \def\@makefnmark{%
- \hbox{\textcircled{\tiny\@thefnmark}}%
- }%
- }{}{}
- }
-
- %
- %判断当前文献是否已经引用过且是做的footfullcite(即已经作为脚注输出文献内容)
- %记录首次输出时的脚注号码,用于后面再次引用该文献时的输出,比如同(4)。
- %v1.0q 20190309 区分使脚注标注适应minipage中的情况
- \newbibmacro*{citesavefn}{%
- \ifciteseen%当被引用过为true
- {\ifcsdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}%当已经定义过脚注序号信息
- {\csgdef{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
- \str@sameentry\gdef\@thefnmark{\csuse{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}}%
- \@makefnmark%
- }}%
- {\csxdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
- \ifcsstring{@mpfn}{mpfootnote}{\@alph\c@mpfootnote}{\thefootnote}%
- }}%
- }%
- {\csxdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
- \ifcsstring{@mpfn}{mpfootnote}{\@alph\c@mpfootnote}{\thefootnote}%
- %判断在minipage中比较麻烦,这里使用\@mpfn的定义进行判断
- }}%
- }
-
- %
- %重定义\footfullcite使完成gb7714-2015的脚注文献要求
- \DeclareCiteCommand{\footfullcite}[\mkbibfootnote]%
- {\defcounter{maxnames}{\blx@maxbibnames}%局部定义maxnames和minnames计数器
- \defcounter{minnames}{\blx@minbibnames}%使footfullcite内的作者输出与正文文献表中的一致。
- \usebibmacro{prenote}%
- \renewbibmacro*{postnote}{%
- \iffieldundef{postnote}%
- {}{\setunit{\addcolon\addspace}\printfield{postnote}}}%与ay样式不同,由于已修改postnote域格式,直接用printfield
- }%
- {\usebibmacro{citesavefn}%
- \ifcsdef{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}%
- {\csuse{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}\nopunct}%
- {\usedriver{\DeclareNameAlias{sortname}{default}}{\thefield{entrytype}}}%
- }%
- {\multicitedelim}%
- {\usebibmacro{postnote}}
-
- }
-
- %
- % 增加一个选项,用于控制gb7714的使用范围,即英文文献和中文文献使用不同的样式
- % 20180814,v1.0m,hzz
- % 原理方法:
- % 当gbstyle=true,则所有的文献使用国标样式,否则仅中文文献使用国标样式
- \newtoggle{bbx:gbstyle}
- \DeclareBibliographyOption{gbstyle}[true]{%biblatex低版本
- \settoggle{bbx:gbstyle}{#1}}
-
- %
- % 增加一个控制是否输出文献类型和载体标识的选项
- %
- % 原理方法:
- % 对于biblatex3.4以上版本DeclareBibliographyOption命令中的[datatype]如果是boolean,那么是可以省略的
- % 所以用老版本的不用[datatype]的命令可以兼容所有biblatex版本
- \newtoggle{bbx:gbtype}
- %\DeclareBibliographyOption[boolean]{gbtype}[true]{%biblatex高版本
- \DeclareBibliographyOption{gbtype}[true]{%biblatex低版本
- \settoggle{bbx:gbtype}{#1}}
-
- %
- % 增加一个源文件编码选择选项,当true时可以使用GBK编码。
- % v1.0k, 2018.05.08, by hzz
- %
- % 原理方法:将需要输出的中文字符串用命令形式表示存储,采用utf8编码时采用bbx文档
- % 内的定义即是utf8编码的中文字符串,但tex源文件是gbk编码时,利用gb7714-2015-gbk.def
- % 文档内的gbk编码的字符串覆盖。这种覆盖只能在宏包末尾加载时成功实现,所以使用
- % AtEndOfPackage。该解决思路源自biblatex-caspervector宏包。
- % 另外注意:
- % gbk编码的tex文档,利用pdflatex/latex能正确编译,利用xelatex能编译,但中文显示乱码
- % 在源文档前面增加 XeTeX 原语:\XeTeXinputencoding "GBK" 后,显示正常
- % utf-8编码的tex文档,利用xelatex能正确编译,而pdflatex/latex不能编译。
- \newtoggle{bbx:codegbk}
- \DeclareBibliographyOption{gbcodegbk}[false]{%
- \settoggle{bbx:codegbk}{#1}}
-
- \def\str@bibliography{参考文献}
- \def\str@references{参考文献}
- \def\str@bytranslator{译}
- \def\str@andotherscn{等}
- \def\str@backrefpage{引用页}
- \def\str@backrefpages{引用页}
- \def\str@noaddress{出版地不详}
- \def\str@nopublisher{出版者不详}
- \def\str@edition{版}
- \def\str@volumecn{卷}
- \def\str@numbercn{册}
- \def\str@serialcn{第}
- \def\str@sameentry{同}
- \def\str@incn{见}
- \def\str@mathesiscn{硕士学位论文}
- \def\str@phdthesiscn{博士学位论文}
- \def\str@editorcn{主编}
-
- \AtEndOfPackage{%
- \iftoggle{bbx:codegbk}{%
- \ExecuteBibliographyOptions{texencoding = GBK}
- \input{gb7714-2015-gbk.def}
- }{}}
-
- %
- % 增加一个严格按GB/T 7714-2015给出著录格式控制域的输出的选项
- % v1.0k, 2018.05.08, by hzz
- %
- % 原理方法:
- % 默认设置该选项为真,进而不输出GB/T 7714-2015中没有的域的信息
- % 这样可以避免因为bib文件带有多余的域的信息的输出,比如因为bibtex样式
- % 可能需要用于中英文判断的language域的信息。
- \newtoggle{bbx:gbstrict}
- \DeclareBibliographyOption{gbstrict}[true]{%
- \settoggle{bbx:gbstrict}{#1}}
-
- %
- % 增加一个控制标题域超链接设置的选项
- % v1.0k, 2018.05.24, by hzz
- %
- % 原理方法:
- % 利用标题域格式来实现,默认设置该选项为false,不做超链接。
- % 设置为true,则标题设置超链接
- \newtoggle{bbx:titlelink}
- \DeclareBibliographyOption{gbtitlelink}[false]{%
- \settoggle{bbx:titlelink}{#1}}
-
- %
- % 增加一个控制参考文献标题是否能够被ctex宏包设置的选项
- % v1.0l, 2018.07.02, by hzz
- %
- % 原理方法:
- % 重定义biblatex的宏,去除使用本地化字符串的方式,是的可以利用ctexset进行设置
- \newtoggle{bbx:ctexset}
- \DeclareBibliographyOption{gbctexset}[true]{%
- \settoggle{bbx:ctexset}{#1}}
-
- \AtEndOfPackage{%
- \iftoggle{bbx:ctexset}{%
- \def\blx@defbibstrings#1#2{%
- \def\do##1{\csundef{abx@lstr@##1}\csundef{abx@sstr@##1}}%
- \abx@dostrings
- \csuse{abx@strings@#1}%
- \setkeys{blx@lbx}{#2}%
- \let\do\blx@defbibstrings@i
- \csxdef{abx@strings@#1}{\abx@dostrings}%
- }
- }{}}
-
- %
- % 增加一个恢复域格式为标准样式的控制选项
- % v1.0k, 2018.05.15, by hzz
- %
- % 原理方法:
- % 默认设置该选项为false,采用国标要求的域格式输出相关域
- % 当设置该选项为true时,则重新利用标准样式的域格式输出相关的域
- \newtoggle{bbx:gbfieldstd}
- \DeclareBibliographyOption{gbfieldstd}[false]{%
- \settoggle{bbx:gbfieldstd}{#1}%
- }
-
- %
- % 增加一个出版项自动处理控制选项,当true时使用出版者不详等信息补充缺失的出版信息。
- %
- \newtoggle{bbx:gbpub}
- \DeclareBibliographyOption{gbpub}[true]{%
- %\settoggle{bbx:gbpub}{#1} %或采用下面这一句
- \ifstrequal{#1}{false}{\togglefalse{bbx:gbpub}}{\toggletrue{bbx:gbpub}}}
-
- %
- % 增加控制析出文献来源前的标点符号//输出的选项
- % v1.0k, 2018.04.20,added in by hzz
- \newtoggle{bbx:gbpunctin}
- \DeclareBibliographyOption{gbpunctin}[true]{%
- \settoggle{bbx:gbpunctin}{#1}}
-
- %
- % 增加一个处理佚名或noauthor的控制选项
- %
- % 原理方法:在顺序编码制中不需要使用,为与作者年制的兼容性考虑,这里也增加避免报错
- \DeclareBibliographyOption{gbnoauthor}[true]{}%
-
-
- %
- %为日期控制格式增加一个gb7714-2015选项
- %
- \csdef{mkdaterangegb7714-2015}#1{%
- \begingroup
- \blx@metadateinfo{#1}%
- \iffieldundef{#1year}
- {}
- {\printtext[#1date]{%
- \blx@gbdate{#1}{}}}%
- \endgroup}
-
- \newrobustcmd*{\blx@gbdate}[3][]{%
- \dateeraprintpre{#2#3year}%
- \blx@imc@forcezerosy{\thefield{#2#3year}}\ifblank{#1}{}{\printfield{#1}}%
- \iffieldundef{#2#3month}{}{\hyphen\blx@imc@forcezerosmdt{\thefield{#2#3month}}}%
- \iffieldundef{#2#3day}{}{\hyphen\blx@imc@forcezerosmdt{\thefield{#2#3day}}}}
-
- %为姓名格式选择增加的计数器
- \newcounter{gbnamefmtcase}
- \def\thegbnamefmtcase{\the\c@gbnamefmtcase}
- %为数字标签格式选择增加的计数器/命令
- \newcommand{\mkgbnumlabel}[1]{\mkbibbrackets{#1}}
- \def\gbbiblabelopt@bracket{\renewcommand{\mkgbnumlabel}[1]{\mkbibbrackets{##1}}}
- \def\gbbiblabelopt@parens{\renewcommand{\mkgbnumlabel}[1]{\mkbibparens{##1}}}
- \def\gbbiblabelopt@dot{\renewcommand{\mkgbnumlabel}[1]{##1\adddot}}
- \def\gbbiblabelopt@plain{\renewcommand{\mkgbnumlabel}[1]{##1}}
- \def\gbbiblabelopt@box{\renewcommand{\mkgbnumlabel}[1]{\framebox{##1}}}
- \def\gbbiblabelopt@circle{\renewcommand{\mkgbnumlabel}[1]{\textcircled{##1}}}
- %为文献表中数字标签对齐方式选择增加的计数器/命令
- \newcounter{gbalignlabel}
- \def\thegbalignlabel{\the\c@gbalignlabel}
- %为引用标签标注/文献表中本地化字符串中英文选择增加的计数器/命令
- \newcounter{gbcitelocalcase}
- \newcounter{gbbiblocalcase}
- \def\thegbcitelocalcase{\the\c@gbcitelocalcase}
- \def\thegbbiblocalcase{\the\c@gbbiblocalcase}
-
- % 增加不同语言排序的切换选项
- % numeric样式,不使用该选项,这里给出仅为兼容性考虑
- % v1.0q,20190307,hzz
- %
- \DeclareBibliographyOption[string]{gblanorder}[chineseahead]{}
-
-
- %
- % 增加本地化字符串的中英文切换选项
- % gbcitelocal指标注中的本地化字符串
- % gbbiblocal 指文献表中的本地化字符串
- % gblocal 指设置文献表和标注中的本地化字符串
- % v1.0o,20190103,hzz
- %
- \DeclareBibliographyOption[string]{gbcitelocal}[gb7714-2015]{%
- \ifstrequal{#1}{gb7714-2015}{\setcounter{gbcitelocalcase}{0}}{}%
- \ifstrequal{#1}{chinese}{\setcounter{gbcitelocalcase}{1}}{}%
- \ifstrequal{#1}{english}{\setcounter{gbcitelocalcase}{2}}{}%
- }
-
- \DeclareBibliographyOption[string]{gbbiblocal}[gb7714-2015]{%
- \ifstrequal{#1}{gb7714-2015}{\setcounter{gbbiblocalcase}{0}}{}%
- \ifstrequal{#1}{chinese}{\setcounter{gbbiblocalcase}{1}}{}%
- \ifstrequal{#1}{english}{\setcounter{gbbiblocalcase}{2}}{}%
- }
-
- \DeclareBibliographyOption[string]{gblocal}[gb7714-2015]{%
- \ExecuteBibliographyOptions{gbbiblocal=#1}%
- \ExecuteBibliographyOptions{gbcitelocal=#1}%
- }
-
- %
- % 增加序号标签格式处理选项
- % v1.0l,20180623,hzz
- %
- \DeclareBibliographyOption[string]{gbbiblabel}[bracket]{%
- \csuse{gbbiblabelopt@#1}
- }
-
- %
- % 增加姓名大小写格式处理选项
- %
- \DeclareBibliographyOption[string]{gbnamefmt}[uppercase]{%
- \ifstrequal{#1}{uppercase}{\setcounter{gbnamefmtcase}{0}}{}%
- \ifstrequal{#1}{lowercase}{\setcounter{gbnamefmtcase}{1}}{}%
- \ifstrequal{#1}{givenahead}{\setcounter{gbnamefmtcase}{2}}{}%given-family
- \ifstrequal{#1}{familyahead}{\setcounter{gbnamefmtcase}{3}}{}
- \ifstrequal{#1}{pinyin}{\setcounter{gbnamefmtcase}{4}}{}%family-given
- \ifstrequal{#1}{reverseorder}{\setcounter{gbnamefmtcase}{5}}{}%family-given/given-family
- }
-
-
- %
- % 增加标签对齐选项
- %
- % right是默认的右对齐,left是左对齐,gb7714-2015是项对齐方式
- \DeclareBibliographyOption[string]{gbalign}[right]{%
- \ifstrequal{#1}{right}{\setcounter{gbalignlabel}{0}}{}
- \ifstrequal{#1}{left}{\setcounter{gbalignlabel}{1}}{}
- \ifstrequal{#1}{center}{\setcounter{gbalignlabel}{2}}{}
- \ifstrequal{#1}{gb7714-2015}{\setaligngbstyle}{}
- }
-
-
- %
- % 选项设置
- %
- \ExecuteBibliographyOptions{
- %firstinits=true, 针对biblatex<3.3版本的选项设置,比如texlive2015中的3.0版
- giveninits=true, %针对3.3<=biblatex<3.5版本,比如texlive2016中的3.4版
- sorting=none,
- useprefix=true, %名字的信息包括前缀
- date = year, %日期仅写到年
- maxbibnames = 3,%设置名字最大数量
- minbibnames = 3, %设置缩减后的名字最小数量
- maxitems = 1,%设置列表最大数量
- minitems = 1, %设置缩减后的列表最小数量
- isbn=false,
- gbstyle=true,
- gbtype=true,
- gbcodegbk=false,
- gbstrict=true,
- gbtitlelink=false,
- gbfieldstd=false,
- gbpub=true,
- gbpunctin=true,
- gbbiblabel=bracket,
- gbnamefmt=uppercase,
- gbalign=right,
- gbctexset=true,
- %urldate =edtf, %针对3.7<=biblatex<=3.9版本的选项设置,比如texlive2017中的3.7版
- %eventdate =edtf,%针对3.7<=biblatex<=3.9版本的选项设置,比如texlive2017中的3.7版
- urldate =gb7714-2015, %iso,针对3.10<=biblatex版本的选项设置,比如texlive2018中的3.11版
- eventdate =gb7714-2015,
- gblocal=gb7714-2015,
- }
-
-
-%=====================================================================
-% 设置本地化字符串
-%=====================================================================
- %
- % 新建当地化字符串,用来记录“等”字符、“和”字符
- %
- \NewBibliographyString{andotherscn}
- \NewBibliographyString{andothersincitecn}
- \NewBibliographyString{andothersincite}
- \NewBibliographyString{andcn}
- \NewBibliographyString{andothersjp}
- \NewBibliographyString{andotherskr}
- \NewBibliographyString{andjp}
- \NewBibliographyString{andkr}
- \NewBibliographyString{andincitecn}
- \NewBibliographyString{andincite}
- \NewBibliographyString{volumecn}
- \NewBibliographyString{numbercn}
- \NewBibliographyString{serialcn}
- \NewBibliographyString{incn}
- \NewBibliographyString{mathesiscn}
- \NewBibliographyString{phdthesiscn}
- \NewBibliographyString{editorcn}
- \NewBibliographyString{editorscn}
-
-
- %
- % 修改一些当地化字符串
- %
- % 原理方法:直接利用当地化格式english修改出一些中文的格式,具体修改内容参考english.lbx文件
- % 当然也可以增加比如上面定义的andotherscn
- % 注意:在lbx文件和bbx文件中定义本地字符串的不同语法,两个参数和一个参数的区别
- \DefineBibliographyStrings{english}{
- bibliography = {\str@bibliography},
- references = {\str@references},
- bytranslator= {\str@bytranslator},%\addperiod,%将trans. by 改成 译
- and = {\addcomma},%将第2和3人名间的and符号改成逗号,用\finalnamedelim命令也可以定义,参见3.9.1节
- andcn = {\addcomma},%and本地化字符串的中文对应词
- andincitecn = {\addcomma},%将标注中的分开,便于与文献表中的区分
- andincite = {\addcomma},
- %andothers = {et al.}, %将超过3个人名的省略,et al.改成为 等
- andotherscn = {\str@andotherscn}, %将超过3个人名的省略,et al.改成为 等
- andothersincitecn={\str@andotherscn},%将标注中的分开,便于与文献表中的区分
- andothersincite={et al\adddot},
- backrefpage = {\str@backrefpage:},
- backrefpages = {\str@backrefpages:},
- in={in\intitlepunct},
- volumecn={\str@volumecn},
- numbercn={\str@numbercn},
- serialcn={\str@serialcn},
- andothersjp={他},
- andotherskr={외},
- andjp={和},
- andkr={和},
- incn={\str@incn\addcolon\addspace},
- mathesiscn={\str@mathesiscn},
- phdthesiscn={\str@phdthesiscn},
- editorscn={\str@editorcn},
- editorcn={\str@editorcn},
-}
-
- %
- % 增加两个命令用于临时的局部的修改本地化字符串
- % 其中\setlocalbibstring修改缩写字符串,setlocalbiblstring修改长字符串
- % 注意使用时因为是局部修改,因此要将其与需要修改的引用命令放在一个编组符号内
- % v1.0t,hzz,20190525
- \newcommand{\setlocalbibstring}[2]{%
- \csdef{abx@sstr@#1}{#2}}
- \newcommand{\setlocalbiblstring}[2]{%
- \csdef{abx@lstr@#1}{#2}}
-
-%=====================================================================
-% 动态数据修改
-%=====================================================================
-%
-% 各层次的数据映射和动态修改
-%
-% 原理方法:
-% 1. 进行语言包括中英文判断,并设置和记录,比如记录到userf,usere中
-% 2. 增加文献标识符如[M],[J]等,对一些容易混淆的域进行设置以增强兼容性
-% 3. \DeclareSourcemap命令对于biblatex3.11以下版本只能出现一次,3.11版开始支持多个
-% 4. \DeclarestyleSourcemap在biblatex v3.7版开始可以支持出现多次
-% 5. 把作者和译者信息准确的记录到userf,usere中,用于后面判断是否是cjk字符。
-% 注意:这里用userf,usere而不是namee,namef,是因为只有把name列表转成域,才能有效读取姓名中的字符,
-% 如果用namee,namef,name信息会自动解析,所以就不能为cjk判断提供需要的信息
-%
-% 不同的文献类型使用相同的驱动输出可以有5种方法:
-% 1. 是数据源层的映射,将其它类型转换为某一要使用驱动的类型
-% 2. 是样式层映射,也是将其它类型转换为某一要使用驱动的类型
-% 3. 是驱动层映射,也是将其它类型转换为某一要使用驱动的类型
-% 4. 定义驱动类型别名DeclareBibliographyAlias,将其它类型定义为某一要使用驱动的类型的别名
-% 驱动别名定义本质上是做了驱动层映射
-% 5. 直接定义不同的类型的驱动,但驱动内容相同。
-%
-% 关于数据映射和驱动使用的考虑如下:
-% 1. 为避免利用biber输出bib文件时的数据变动,尽量不在数据源层映射做类型转换
-% 2. 为减少代码量,尽量少做内容相同的不同类型驱动
-% 3. 因此类型相关的处理主要在样式层映射、驱动层映射、驱动别名
-% 4. 由于biblatex默认做的驱动别名处理可能增加一些信息比如masterthesis转thesis时增加的type
-% 可以在样式层映射做某些需要避免这种默认处置的转换
-% 5. 当没有避免默认行为的需求时,全部采用驱动别名的方式处理,等价于驱动层的映射
-%
-% 文献类型和驱动考虑如下:
-% 1. 连续出版物及析出文献有其特殊性,因此考虑两类periodical和article
-% newpaper映射为article,并以note域做区分特殊处理
-% 2. 专著和专著中的析出文献是主要的类型,因此考虑book和inbook
-% standard映射为book或inbook,并以note域做区分特殊处理
-% collection和proceedings基本与book类似,因此做book驱动别名处理
-% incollection和inproceedings基本与inbook类似,因此做inbook驱动别名处理
-% 3. 专利类型有其特殊性,考虑patent类型
-% 4. 电子资源类型有其特殊性,考虑online类型
-% 5. 报告类型与book有点类似,出版项处理与book一样,但有时又要有修改和更细日期
-% 因此考虑用一种类型来输出,使用report类型
-% 6. 手册/学位论文等类型与book有点类似,但对于出版项处理时,有缺省时,直接省略,
-% 同时有version和edition的区别,因此考虑用一种类型来输出,使用manual类型
-% 7. 包括报告,学位论文在内的其它所有的类型,都做一个判断,当没有出版项时,
-% 且存在网址信息时,将其转换为online类型输出,否则都做为manual类型输出。
-% 8. 备选类型misc当存在网址时直接转换为online,由于howpublished域可用于描述
-% 更多的信息,因此不存在网址时,独立做一个备选格式
-% 9. 出版项主要以如下方式处理:
-% (a) location+institution+date 仅用于连续出版物
-% (b)publisher+location+date 用于需要完整输出出版项的类型,比如book,collection,proceedings,in*,report
-% (c)institution+location+date 用于出版项缺失时不输出的类型,包括manual,thesis,archive等其他类型
-% (d)printlist{insitution} 用于电子资源,仅输出出版者或组织,为数据映射方便,本来默认的organization域转换为用insitution输出。
-% (e) 不输出,主要用于连续出版物析出的文献
-% 10. 日期以如下方式处理:
-% date 由于存在biblatex选项,因此通过选项控制,数据源为date解析数据或year
-% urldate 由于存在biblatex选项,因此通过选项控制,输出到日,且用[]包围,数据源为urldate
-% newsdate 用于公告日期,公开日期或新闻日期,输出到日,但无包围符号,数据源为date
-% modifydate 用于更新或修改日期,输出到日,且用()包围,数据源为date或enddate或eventdate
-
-\DeclareSourcemap{%\perdatasource{examples.bib}
-\maps[datatype=bibtex]{%
- \map{%当没有作者时将editor转成author
- \pernottype{inbook}%因为in系列中editor可能用来表示bookauthor,所以排除
- \pernottype{inproceedings}
- \pernottype{incollection}
- \pernottype{periodical}%因为peridical直接使用editor,所以排除
- %注意notfield在低版本biblatex中没有
- %\step[notfield=author,final]%当author不存在,将editor复制给author
- \step[fieldsource=editor,fieldtarget=author]%并删除editor
- }
- \map{%当没有作者时将translator转成author
- \pernottype{inbook}
- \pernottype{inproceedings}
- \pernottype{incollection}
- %\step[notfield=author,final]%当author不存在,将translator复制给author
- \step[fieldsource=translator,fieldtarget=author]%并删除translator
- }
- \map{%让address和location同步,biblatex中address是location的别名
- %因此输出的时候只有location信息,但处理过程中是可以存在address的。
- \step[notfield=address,final]%
- \step[fieldsource=location,final]
- \step[fieldset=address,origfieldval]
- }
- \map{
- \step[notfield=location,final]%
- \step[fieldsource=address,final]
- \step[fieldset=location,origfieldval]
- }
- \map{%处理在bib文件用mark标记文献类型标识符的情况
- \step[fieldsource=mark,final]
- \step[fieldset=usera, origfieldval]
- }
- \map{%处理在bib文件中直接给出文献的姓名格式为lowercase的情况
- \step[fieldsource=nameformat,match=lowercase,final]
- \step[fieldset=namefmtid,fieldvalue={1}]
- }
- \map{%处理在bib文件中直接给出文献的姓名格式为givenahead的情况
- \step[fieldsource=nameformat,match=givenahead,final]
- \step[fieldset=namefmtid,fieldvalue={2}]
- }
- \map{%处理在bib文件中直接给出文献的姓名格式为familyahead的情况
- \step[fieldsource=nameformat,match=familyahead,final]
- \step[fieldset=namefmtid,fieldvalue={3}]
- }
- \map{%处理在bib文件中直接给出文献的姓名格式为pinyin的情况
- \step[fieldsource=nameformat,match=pinyin,final]
- \step[fieldset=namefmtid,fieldvalue={4}]
- }
- \map{%根据article确定文献类型标识符
- \pertype{article}
- \step[fieldset=usera, fieldvalue={J}]
- }
- \map{%根据periodical确定文献类型标识符
- \pertype{periodical}
- \step[fieldset=usera, fieldvalue={J}]
- \step[fieldsource=author] %有时会把author和editor混淆,处理后使用editor
- \step[fieldset=editor, origfieldval]
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%根据增加一个新闻报纸的类型newspaper确定文献类型标识符
- \pertype{newspaper}
- \step[fieldset=usera, fieldvalue={N}]
- \step[fieldset=note, fieldvalue=news]%因为没有专门的驱动,记录note方便映射为article后判断
- }
- \map{%对应增加的一个数据库类型database确定文献类型标识符
- \pertype{database}
- \step[fieldset=usera, fieldvalue={DB}]
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%对应增加的一个数据集类型dataset确定文献类型标识符
- \pertype{dataset}
- \step[fieldset=usera, fieldvalue={DS}]%
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%对应增加的一个软件类型software确定文献类型标识符
- \pertype{software}
- \step[fieldset=usera, fieldvalue={CP}]
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%对应增加的一个舆图类型map确定文献类型标识符
- \pertype{map}
- \step[fieldset=usera, fieldvalue={CM}]%
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%对应增加的一个档案类型archive确定文献类型标识符
- \pertype{archive}
- \step[fieldset=usera, fieldvalue={A}]
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%因为misc类型本身就是没有类型,而不像其它文献有明确的类型,所以
- %当misc类型带有网址时,直接将其转换为online类型
- \pertype{misc}
- \step[fieldsource=url,final]
- \step[typesource=misc,typetarget=online]
- }
- \map{%对应增加的一个备选类型misc确定文献类型标识符
- \pertype{misc}
- \step[fieldset=usera, fieldvalue={Z}]%
- }
- \map{
- \pertype{book}
- \pertype{inbook}
- \step[fieldset=usera, fieldvalue={M}]
- \step[fieldsource=version] %有时会把version和edition混淆,处理后直接用edition
- \step[fieldset=edition, origfieldval]
- }
- \map{%兼容老的standard类型,确定文献类型标识符
- \pertype{standard}
- \step[fieldset=usera, fieldvalue={S}]
- \step[fieldset=note, fieldvalue=standard]%因为没有专门的驱动,记录note方便映射为book和inbook后判断
- }
- \map{
- \pertype{patent}
- \step[fieldset=usera, fieldvalue={P}]
- }
- \map{
- \pertype{inproceedings}
- \pertype{conference}%兼容老的conference类型
- \step[fieldset=usera, fieldvalue={C}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{proceedings}
- \step[fieldset=usera, fieldvalue={C}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{incollection}
- \step[fieldset=usera, fieldvalue={G}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{collection}
- \step[fieldset=usera, fieldvalue={G}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{report}
- \pertype{techreport}%兼容老的techreport类型
- \step[fieldset=usera, fieldvalue={R}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{thesis}
- \pertype{mastersthesis}%兼容老的mastersthesis和phdthesis类型
- \pertype{phdthesis}
- \step[fieldset=usera, fieldvalue={D}]
- \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{
- \pertype{online}
- \pertype{electronic}%兼容老的electronic类型
- \pertype{www}%兼容老的www类型
- \step[fieldset=usera, fieldvalue={EB}]
- \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]%因为online的出版项处理类似手册
- \step[fieldsource=organization]%有时会把organization和institution混淆,处理后使用institution,以增强兼容性
- \step[fieldset=institution, origfieldval]
- }
- \map{
- \pertype{manual}
- \step[fieldset=usera, fieldvalue={A}]
- \step[fieldsource=edition]%有时会把version和edition混淆,处理后使用version
- \step[fieldset=version, origfieldval]
- \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- \step[fieldsource=organization]%有时会把organization和institution混淆,处理后使用institution,以增强兼容性
- \step[fieldset=institution, origfieldval]
- }
- \map{
- \pertype{unpublished}
- \step[fieldset=usera, fieldvalue={Z}]
- }
- \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
- \step[fieldsource={author}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
- }
- \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
- \step[fieldsource={editor}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
- }%
- \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
- \step[fieldsource={translator}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
- }%
- \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
- \step[fieldsource={bookauthor}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
- }%
- \map{%处理一些用year表示date的情况
- %这样处理将会设置date域,并使得labeldatesource变为空,因为date的前缀为空(如果是urldate,那么labeldatesource就是url)。
- %同时date域会被biblatex自动解析为year,month,day,并且覆盖原来的year信息
- \step[fieldsource=year]
- \step[fieldset=date, origfieldval]
- }
- \map{%将entrykey放入keywords中用于后期使用
- \step[fieldsource=entrykey]
- \step[fieldset=keywords, origfieldval]
- }
- \map{\step[fieldsource=title,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=userd,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=title,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=userd,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=title,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=userd,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=title,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=userd,fieldvalue={korean}]%韩语
- }
- \map{%文献题名的中文判断,将信息保存到userd中,避免因为标签生成原因导致title域被清除而产生问题
- \step[fieldsource=title, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%
- \step[fieldset=userd, fieldvalue={chinese}]
- }
- \map{%将没有设置userd,且存在title域的默认设置为英文
- \step[fieldsource=title,final]
- \step[fieldset=userd,fieldvalue={english}]
- }
- \map{\step[fieldsource=author,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=userf,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=author,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=userf,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=author,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=userf,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=author,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=userf,fieldvalue={korean}]%韩语
- }
- \map{%作者的中文判断
- \step[fieldsource=author, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]
- \step[fieldset=userf, fieldvalue={chinese}]
- }
- \map{%将没有设置userf,且存在author域的默认设置为英文
- \step[fieldsource=author,final]
- \step[fieldset=userf,fieldvalue={english}]
- }
- \map{\step[fieldsource=translator,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=usere,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=translator,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=usere,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=translator,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=usere,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=translator,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=usere,fieldvalue={korean}]%韩语
- }
- \map{%译者的中文判断
- \step[fieldsource=translator, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]
- \step[fieldset=usere, fieldvalue={chinese}]
- }
- \map{%将没有设置usere,且存在translator域的默认设置为英文
- \step[fieldsource=translator,final]
- \step[fieldset=usere,fieldvalue={english}]
- }
- \map{\step[fieldsource=editor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=userc,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=editor,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=userc,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=editor,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=userc,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=editor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=userc,fieldvalue={korean}]%韩语
- }
- \map{%编者的中文判断
- \step[fieldsource=editor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5
- \step[fieldset=userc, fieldvalue={chinese}]
- }
- \map{%将没有设置userc,且存在editor域的默认设置为英文
- \step[fieldsource=editor,final]
- \step[fieldset=userc,fieldvalue={english}]
- }
- \map{\step[fieldsource=bookauthor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=userb,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=bookauthor,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=userb,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=bookauthor,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=userb,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=bookauthor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=userb,fieldvalue={korean}]%韩语
- }
- \map{%编者的中文判断
- \step[fieldsource=bookauthor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5
- \step[fieldset=userb, fieldvalue={chinese}]
- }
- \map{%将没有设置userc,且存在editor域的默认设置为英文
- \step[fieldsource=bookauthor,final]
- \step[fieldset=userb,fieldvalue={english}]
- }
- \map{\step[fieldsource=userd,final]%userd存在则用根据标题的语言设定language
- \step[fieldset=language,origfieldval]%本身language存在则不设定
- }
- \map{\step[fieldsource=userf,final]%userd不存在,而userf存在则根据author的语言设定language
- \step[fieldset=language,origfieldval]
- }%如果没有作者和标题,那么剩下的最可能有意义的只有网址了,而网址通常是英文的,因此不用再进一步对其它域进行判断了。
- \map{%将没有设置的language设置成en,即认为不是中文的就是英文的。
- \step[fieldset=language,fieldvalue={english}]
- }
- \map{%一条文献的语言已经设定在language域中,由于出版项相关宏中使用userd判断,
- %所以将一条文献的主体语言设定到userd中,本身前面userd已经设定,但没有处理无标题的情况,
- %这里的处理等价于没有标题时,利用作者的语言设定userd,再没有作者,则默认用英文设定userd
- \step[fieldsource=language]
- \step[fieldset=userd,origfieldval]
- }
- \map{%当文献给出language域时,设置文献要使用的本地化字符串的语言
- \step[fieldsource=language,match=\regexp{(e|E)(n|N)(g|G)(l|L)(i|I)(s|S)(h|H)},final]
- \step[fieldset=langid,fieldvalue={english}]
- }
- \map{
- \step[fieldsource=language,match=\regexp{(r|R)(u|U)(s|S)(s|S)(i|I)(a|A)(n|N)},final]
- \step[fieldset=langid,fieldvalue={russian}]
- }
- \map{%
- \step[fieldsource=language,match=\regexp{(f|F)(r|R)(e|E)(n|N)(c|C)(h|H)},final]
- \step[fieldset=langid,fieldvalue={french}]
- }
- \map{%
- \step[fieldsource=language,match=\regexp{(c|C)(h|H)(i|I)(n|N)(e|E)(s|S)(e|E)},final]%中日韩语目前都用english,
- \step[fieldset=langid,fieldvalue={english}]
- }
- \map{%
- \step[fieldsource=language,match=\regexp{(j|J)(a|A)(p|P)(a|A)(n|N)(e|E)(s|S)(e|E)},final]%中日韩语目前都用english,
- \step[fieldset=langid,fieldvalue={english}]
- }
- \map{%
- \step[fieldsource=language,match=\regexp{(k|K)(o|O)(r|R)(e|E)(a|A)(n|N)},final]%中日韩语目前都用english,
- \step[fieldset=langid,fieldvalue={english}]
- }
-}
-}
-
-
- %
- % 修改输入的参考文献数据,样式层的操作
- %
- % 原理方法:biblatex3.4以上版本map可使用foreach选项来处理特殊字符
- \DeclareStyleSourcemap{
- \maps[datatype=bibtex]{
- \map{%尝试未定义数据模型的standard类型映射为其他类型book或inbook,
- %standard类型在blx-dm中有出现,但仅定义了类型,域和约束等都没有定义
- %因为可能要映射两种类型,所以不能在驱动层处理,因为要做判断
- \step[fieldsource=booktitle,final]%当存在booktitle域是映射为inbook
- \step[typesource=standard, typetarget=inbook, final]
- }
- \map{%尝试未定义数据模型的standard类型映射为book,standard类型在blx-dm中有出现,但仅定义了类型,域和约束等都没有定义
- \step[typesource=standard, typetarget=book, final]%当不存在booktitle域是映射为book
- }
-% \map{%先于标准样式的driver层映射,将其先映射过来,并取消type设置
-% \step[typesource=mastersthesis, typetarget=thesis, final]
-% %\step[fieldset=type, fieldvalue=mathesis]
-% }
-% \map{%先于标准样式的driver层映射,将其先映射过来,并取消type设置
-% \step[typesource=phdthesis, typetarget=thesis, final]
-% %\step[fieldset=type, fieldvalue=phdthesis]
-% }
- \map{%先于标准样式的driver层映射,将其先映射过来,并取消type设置
- \step[typesource=techreport, typetarget=report, final]
- %\step[fieldset=type, fieldvalue=techreport]
- }
- \map{%
- \pertype{report}
- \step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=report,typetarget=online]
- \step[fieldset=note,fieldvalue={report}]
- }
- \map{%
- \pertype{thesis}
- \step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=thesis,typetarget=online]
- }
- \map{%
- \pertype{manual}
- \step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=manual,typetarget=online]
- }
- \map{%
- \pertype{unpublished}
- \step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=unpublished,typetarget=online]
- }
- \map{%
- \pertype{database}
- \step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=databasetypetarget=online]
- }
- \map{%
- \pertype{dataset}
- \step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=dataset,typetarget=online]
- }
- \map{%
- \pertype{software}
- \step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=software,typetarget=online]
- }
- \map{%
- \pertype{map}
- \step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=map,typetarget=online]
- }
- \map{%
- \pertype{archive}
- \step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=archive,typetarget=online]
- }
- \map[overwrite]{%这里还必须有overwrite,注意不同版本存在差异,比如texlive2015变16后biber有变化(20161207修改正确)
- \step[fieldsource=note, final]%将note域信息复制给keywords,用于输出时容易区分标准和报纸
- \step[fieldset=keywords, fieldvalue={,}, append]
- \step[fieldset=keywords, origfieldval, append]
- }
- \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{
- \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\#}, replace=\regexp{$1\\\#}]
- }
- \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{
- \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\%}, replace=\regexp{$1\\\%}]
- }
- \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,%
- address,location,institution,organization}]{
- \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- }
- }
-
-%
-%驱动别名等价于驱动层映射
-%
-\DeclareBibliographyAlias{newspaper}{article}%
-\DeclareBibliographyAlias{inproceedings}{inbook}%会议论文文献类型驱动
-\DeclareBibliographyAlias{conference}{inbook}%会议论文文献类型驱动
-\DeclareBibliographyAlias{incollection}{inbook}%文集中析出文献类型驱动
-\DeclareBibliographyAlias{collection}{book}%%文集类型驱动
-\DeclareBibliographyAlias{proceedings}{book}%会议论文集文献类型驱动
-\DeclareBibliographyAlias{thesis}{manual}%学位论文驱动
-\DeclareBibliographyAlias{unpublished}{manual}%其它类型驱动
-\DeclareBibliographyAlias{database}{manual}
-\DeclareBibliographyAlias{dataset}{manual}
-\DeclareBibliographyAlias{software}{manual}
-\DeclareBibliographyAlias{map}{manual}
-\DeclareBibliographyAlias{archive}{manual}
-
-
-%=====================================================================
-% 参考文献表环境
-%=====================================================================
-%
-% 列表格式
-%
-% 增加一个\bibitemindent尺寸用于控制list环境的itemindent
-% v1.0l,20180615,hzz
-% v1.0t,20200319,hzz,增加尺寸\biblabelextend使某些字体下标签宽度不足时可增加标签宽度
-\setlength{\bibhang}{\biblabelsep}%
-\newlength{\bibitemindent}
-\setlength{\bibitemindent}{0pt}
-\newlength{\biblabelextend}
-\setlength{\biblabelextend}{0pt}
-
-
-\defbibenvironment{bibliography}
- {\list
- {\printtext[labelnumberwidth]{%
- \printfield{labelprefix}%
- \printfield{labelnumber}}}
- {\addtolength{\labelnumberwidth}{\biblabelextend}%
- \setlength{\labelwidth}{\labelnumberwidth}%
- \setlength{\labelsep}{\biblabelsep}%
- \setlength{\leftmargin}{\bibhang}%
- \addtolength{\leftmargin}{\labelnumberwidth}%
- \setlength{\itemindent}{\bibitemindent}%
- \setlength{\itemsep}{\bibitemsep}%
- \setlength{\parsep}{\bibparsep}}%
- \renewcommand*{\makelabel}[1]{\hss##1}}
- {\endlist}
- {\item}
-
-%
-% 顺序编码制-标签对齐方式处理
-%
-% 原理方法:利用选项提供的计数器数值做选择
-% 左对齐,右对齐为list环境下的处理,此时list环境的\labelwidth只能设置一个,是最宽标签的宽度
-% 项对齐则是在段落环境下做的处理。
-% 左对齐时,参考文献各项内容对齐,序号标签与参考文献项内容的间距可变
-% 右对齐时,参考文献各项内容对齐,序号标签与参考文献项内容的间距相等,标签与页边距离可变
-% 项对齐时,序号标签贴在页边,序号标签与参考文献项内容的间距相等
-% 修改序号标签格式为:
-% \DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}} %源来自numeric.BBX
-% \DeclareFieldFormat{labelnumberwidth}{\ttfamily\mkbibbrackets{#1}\hfill}
-\DeclareFieldFormat{labelnumberwidth}{%
-\ifcase\value{gbalignlabel}%右对齐,整个标签为右对齐
- \mkgbnumlabel{#1}%
-\or%左对齐,整个标签为左对齐
- \mkgbnumlabel{#1}\hfill%
-\or%中间对齐,比如:序号数字居于[]中间
- \hfil\mkgbnumlabel{\hfill#1\hfill}\hfil%
-\fi}
-
-%
-% 修改序号标签格式为以各条参文献为基础进行对齐的方式,即序号与条目内容间隔相等的方式。
-\def\setaligngbstyle{%
-\def\blx@bibitem##1{%
- \blx@ifdata{##1}
- {\begingroup
- \blx@getdata{##1}%
- \blx@bibcheck
- \iftoggle{blx@skipentry}{}{%
- \blx@setdefaultrefcontext{##1}%
- \global\let\blx@noitem\@empty
- \blx@setoptions@type\abx@field@entrytype
- \blx@setoptions@entry
- \blx@thelabelnumber
- \addtocounter{instcount}\@ne
- \blx@initsep
- \blx@namesep
- \csuse{blx@item@\blx@theenv}\relax
-% \blx@initsep %移动到上面去,恢复bibnamesep等的作用机制
-% \blx@namesep
- \csuse{blx@hook@bibitem}%
- \blx@execute
- \blx@initunit
- \blx@anchor
- \blx@beglangbib
- \bibsentence
- \blx@pagetracker
- \blx@driver\abx@field@entrytype
- \blx@postpunct
- \blx@endlangbib}%
- \par\endgroup}%这里增加了一个\par
- {}}
-\newlength{\lengthid}
-\newlength{\lengthlw}
-\newcommand{\itemcmd}{%
-\settowidth{\lengthid}{\mkgbnumlabel{\printfield{labelnumber}}}
-\addtolength{\lengthid}{\biblabelsep}
-\setlength{\lengthlw}{\textwidth}
-\addtolength{\lengthlw}{-\lengthid}
-\addvspace{\bibitemsep}%恢复\bibitemsep的作用
-%\parshape 2 0em \textwidth \lengthid \lengthlw
-\hangindent\lengthid
-\mkgbnumlabel{\printfield{labelnumber}}%
-\hspace{\biblabelsep}}
-%
-% 简单的段落环境
-\defbibenvironment{bibliography}
-{\begingroup\setlength{\parindent}{0em}}
-{\endgroup}
-{\itemcmd}}
-
-
-%=====================================================================
-% 设置单元或块等的标点
-%=====================================================================
-\renewrobustcmd*{\bibinithyphendelim}{\addhighpenspace}%用于处理姓名中名部分存在-的情况,比如ZHANG Yu-xin
-\renewcommand*{\subtitlepunct}{\addcolon\addspace} %修改标题和其它标题信息间的标点,来源biblatex.def,
-%
-% 利用set实现的多语言文献不同语言间的分隔符
-% 20170411,双语之间用newline替换par,避免采用gb7714-2015的项对齐方式第二语言间分段导致没有缩进
-%
-% 原理方法:set方法可以参考3.11.5 Entry Sets,4.11.1 Entry Sets
-% 这里调整一下两种语言参考文献的间隔,源来自biblatex.def
-\renewcommand*{\entrysetpunct}{\adddot\newline\nobreak}
-\renewcommand*{\bibpagespunct}{\addcolon\addthinspace}%%页码引用格式的修改,修改为用冒号
-%\renewcommand{\relateddelim}{}%\par
-
-%=====================================================================
-% 修改域的格式,重定义域的输出宏
-%=====================================================================
-%
-% 新增文献类型标识符的格式
-% []前的nobreak,从GB4.1节的例子看不应该加,所以去掉
-% 但因为考虑到cjk字符和[]之间可能添加空格,所以仍然加上
-% 而[]中间的内容,从4.6.2节的例子看也是可以分割的,因此内部的nobreak也可以去掉
-%
-\DeclareFieldFormat{gbtypeflag}{%
-\iftoggle{bbx:gbmedium}%
-{\iftoggle{bbx:url}%
- {\iffieldundef{url}%当存在url时,增加一个OL标识符
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}}%
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\texttt{/}OL]}}%
- }%
- {\ifentrytype{online}%
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\texttt{/}OL]}}%
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}}%
- }}%
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{]}}%
-}
-
-%
-% 新增用于报纸的文献类型标识符的格式
-%
-\DeclareFieldFormat{gbtypeflagn}{%用于报纸newspaper
-\iftoggle{bbx:gbmedium}%
-{\iftoggle{bbx:url}%
- {\iffieldundef{url}%当存在url时,增加一个OL标识符
- {\nobreak\printtext{[}\nobreak N\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
- {\nobreak\printtext{[}\nobreak N\printtext{\texttt{/}OL]}\nobreak}%
- }%
- {\nobreak\printtext{[}\nobreak N\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
-}{\nobreak\printtext{[}\nobreak N\printtext{]}\nobreak}%
-}
-
-%
-% 新增用于标准的文献类型标识符的格式
-%
-\DeclareFieldFormat{gbtypeflags}{%用于标准standard
-\iftoggle{bbx:gbmedium}%
-{\iftoggle{bbx:url}%
- {\iffieldundef{url}%当存在url时,增加一个OL标识符
- {\nobreak\printtext{[}\nobreak S\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
- {\nobreak\printtext{[}\nobreak S\printtext{\texttt{/}OL]}\nobreak}%
- }%
- {\nobreak\printtext{[}\nobreak S\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
-}{\nobreak\printtext{[}\nobreak S\printtext{]}\nobreak}%
-}
-
-%
-% 重设title等参考文献信息的输出格式
-%
-% 原理方法:修改来自biblatex.def文件的原格式
-\newcommand{\bibtitlefont}{}
-\newcommand{\bibauthorfont}{}
-\newcommand{\bibpubfont}{}
-
-%
-% 作者信息的输出格式
-%
-% 20180425,v1.0k,为作者增加字体控制命令,Hu Zhenzhen
-% 20180603,v1.0l,增加使用nameformat域来选择姓名格式
-\DeclareNameFormat{namefmtselected}{%
-\iffieldundef{namefmtid}{}%
-{\defcounter{gbnamefmtcase}{\thefield{namefmtid}}}%
-\ifcase\value{gbnamefmtcase}%
- \ifgiveninits
- {\usebibmacro{name:gbuppercase}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:gbuppercase}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
-\or
- \ifgiveninits
- {\usebibmacro{name:gblowercase}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:gblowercase}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
-\or
- \ifgiveninits
- {\usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
-\or
- \ifgiveninits
- {\usebibmacro{name:family-given}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:family-given}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
-\or
-\usebibmacro{name:gbpinyin}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}%
-\or
- \ifnumequal{\value{listcount}}{1}
- {\ifgiveninits
- {\usebibmacro{name:family-given}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:family-given}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
- \ifboolexpe{%
- test {\ifdefvoid\namepartgiven}
- and
- test {\ifdefvoid\namepartprefix}}
- {}
- {\usebibmacro{name:revsdelim}}}
- {\ifgiveninits
- {\usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}}%
-\fi
- \usebibmacro{name:andothers}}
-
-\DeclareNameAlias{default}{namefmtselected}%姓名的默认格式采用可选的模式
-\DeclareNameAlias{sortname}{default}% Used in the bibliography %family-given/given-family
-\DeclareNameAlias{citename}{default}% Default used by \citename
-
-\DeclareDelimFormat[bib,biblist]{andothersdelim}{\addcomma\addspace}
-%\DeclareDelimFormat[textcite]{andothersdelim}{\addspace}%
-
-%GB/T 7714-2015 风格,全部大写
-\newbibmacro*{name:gbuppercase}[4]{\bibauthorfont%
-\renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
-\renewcommand*{\revsdnamepunct}{}%
- \ifuseprefix%
- {\usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifdefvoid{#3}{}{%
- \ifcapital%
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}%
- {\mkbibnameprefix{#3}\isdot}%
- \ifprefchar{}{\bibnamedelimc}}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
- \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{\MakeUppercase{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%后缀前加逗号
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
- \ifboolexpe{%
- test {\ifdefvoid{#2}}
- and
- test {\ifdefvoid{#3}}}
- {}{\revsdnamepunct}%
- \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{\MakeUppercase{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
- \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%%后缀前加逗号
-}
-
-%GB/T 7714-2015 风格,大小写不变,根据bib文件内输入原样输出
-\newbibmacro*{name:gblowercase}[4]{\bibauthorfont%
- \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
- \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
- \ifuseprefix
- {\usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifdefvoid{#3}{}{%
- \ifcapital
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
- {\mkbibnameprefix{#3}\isdot}%
- \ifprefchar{}{\bibnamedelimc}}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{{#1}}}\isdot%
- \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%后缀前加逗号
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{{#1}}}\isdot%
- \ifboolexpe{%
- test {\ifdefvoid{#2}}
- and
- test {\ifdefvoid{#3}}}
- {}{\revsdnamepunct}%
- \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}
- \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%%后缀前加逗号
-}
-
-%中文常见风格,汉语拼音全拼模式
-\newbibmacro*{name:gbpinyin}[4]{\bibauthorfont%
-\renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉,%来源biblatex2.STY
-\renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
-\renewrobustcmd*{\bibnamedelima}{\mbox{-}}%
- \ifuseprefix
- {\usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifdefvoid{#3}{}{%
- \ifcapital
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
- {\mkbibnameprefix{#3}\isdot}%
- \ifprefchar{}{\bibnamedelimc}}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
- \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\MakeSentenceCase{\mkbibnamegiven{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
- \ifboolexpe{%
- test {\ifdefvoid{#2}}
- and
- test {\ifdefvoid{#3}}}
- {}
- {\revsdnamepunct}%
- \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{\MakeCapital{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}
- \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%
-}
-
-
-\def\UrlFont{\rmfamily}%设置url字体为roman字体%\ttfamily
-%\urlstyle{rm} %使用这句也一样
-\setcounter{biburlnumpenalty}{100} %让url可以在数字后断行
-\setcounter{biburlucpenalty}{100} %让url可以在大写字母后断行
-\setcounter{biburllcpenalty}{100} %让url可以在小写字母后断行
-\DeclareFieldFormat{doi}{%
- \rmfamily{DOI}\addcolon\space
- \ifhyperref
- {\href{https://doi.org/#1}{\nolinkurl{#1}}}
- {\nolinkurl{#1}}}
-
-\DefineBibliographyExtras{english}{\renewcommand*{\bibrangedash}{-}}%将页码间隔符替换会英文的短横线
-
-%
-% beamer中文献标题后的标点问题
-% v1.0k,20180405,为texlive2017以上版本中的beamer兼容性做的处理,Hu Zhenzhen
-%
-% 原理方法:如下代码处理texlive2017以上版本中,beamer中文献的标题后出现两个点的情况:
-% texlive2017以上的beamer中对macro{title}做了patch,正常情况下不会出现两个点的情况,但由于
-% 之前为了处理texlive2015,2016下的title格式添加了adddot,导致出现两个点的情况,而且也影响
-% 析出文献的//符号的输出,因此再次对macro{title}做patch消除beamer中做apptocmd时添加的\newunitpunct
-\@ifclassloaded{beamer}{
- \DeclareFieldFormat{title}{#1}%
- \DeclareFieldFormat[article,patent,thesis,unpublished]{title}{#1}
- \AtBeginDocument{%
- \patchcmd{\abx@macro@title}{\newunitpunct}{}{}{}}}{}
-
-
- %
- % 专利的公告日期、或报纸的日期的输出宏
- % 20160701,v1.0,新增加
- % 20180405,为biblatexv3.10版本,出现多出点bug做处理,Hu Zhenzhen
- %
- % 原理方法:加上printtext避免破坏异步标点机制
- % 本可以用\printdate,但由于date选项设置为year,所以仅会给出年份
- % 所以无法再用选项设置的方法,印象需要用底层的命令
- % 这里可以用\blx@isodate,但用自定义的\blx@gbdate,以避免版本判断
- \newbibmacro*{newsdate}{%%
- \printtext{\blx@gbdate{}{}}%%\blx@isodate{}{}%
- }
-
- \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
- \ifboolexpr{%
- test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
- }%
- {}%更新或修改日期通常有day信息
- {\iffieldundef{year}{%
- \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\printtext{(}\printeventdate\printtext{)}}}%
- {\printtext{(}\printenddate\printtext{)}}%
- }{\iffieldequalstr{year}{}{%因为year存在,但为空
- }{\printtext{(}\blx@gbdate{}{}\printtext{)}}%
- }%
- }}%
-
-
- %
- % biblatex>v3.8版利用related实现双语文献的处理
- %
- %为了实现v3.8以上版本的双语文献,采用related的方法代替set方法,因为set方法已经无法实现了,
- %因为set不再复制其第一个成员的信息。于是定义一个命令,用于动态的修改数据,即添加related域的信息
- %其中使用了\DeclareStyleSourcemap,但由于其只能出现在导言区中,因此\defdoublelangentry命令也只能出现在导言区中
- \newcommand{\defdoublelangentry}[2]{%
- \edef\entrykeya{#1}
- \edef\entrykeyb{#2}
- \DeclareStyleSourcemap{
- \maps[datatype=bibtex]{
- \map{
- \step[fieldsource=entrykey, match=\entrykeya, final]
- \step[fieldset=related, fieldvalue=\entrykeyb]
- }
- }
- }
- }
-
- % 关联文献的输出格式
- %
- % 关联文献间的分隔符
- %
- \renewcommand{\relateddelim}{\adddot\newline\nobreak}%\par,而作者年样式不需要修改,因为没有项对齐的标签问题
- %
- % 关联文献块前的分隔符,针对biblatex>3.11
- %
- % 原理方法:因为增加了begrelateddelim钩子,所以不需要重定义related输出宏
- \ifdef{\begrelateddelim}{\renewcommand{\begrelateddelim}{\adddot\newline\nobreak}}{}
-
-
-
-%
-% 新增一个样式用于调整期刊年份的格式,只打印年份
-%
-\newbibmacro*{periodical+issue}{%
- \printtext{%去掉了[parens]
- \iffieldundef{issue}
- {%\usebibmacro{date}%修改为下一句
- }%
- {\printfield{issue}%
- \setunit*{\addspace}%
- %\usebibmacro{date}%修改为下一句
- }%
- }%
- %\newunit
-}
-
-%
-% 重设专利title的输出,将文献类型标识符输出出去
-%
-\renewbibmacro*{patenttitle}{%原输出来自biblatex.def文件
- \ifboolexpr{%
- test{\iffieldundef{title}}%
- and%
- test{\iffieldundef{subtitle}}%
- }%
- {}%
- {\printtext[title]{\bibtitlefont%
- \printfield[titlecase]{title}%
- \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
- {}{\setunit{\subtitlepunct}%
- \printfield[titlecase]{subtitle}}%
- \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
- {\setunit{\subtitlepunct}\printfield{titleaddon}}%
- \setunit{\subtitlepunct}\printfield{number}%写专利号
- \iftoggle{bbx:gbtype}{\printfield[gbtypeflag]{usera}}{}%
- %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
- %\newunit
- }%
-}%
-}
-
-%
-% 编者类型的本地化字符串输出
-% v1.0q 2019-03-01 hzz
-% 能对不同条目类型作格式设置的域格式,能对不同环境做格式设置的分隔符
-% 能对不同文境作设置的包括排序,标签等
-% 这里因为考虑可能标注和文献表中存在不同,所以用分隔符来输出本地化字符串
-%
-\DeclareDelimFormat{streditortypes}{%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbbiblocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{\thefield{editortype}scn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{\thefield{editortype}skr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{\thefield{editortype}sjp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
- \or%
- \bibstring{\thefield{editortype}scn}%
- \or%
- \addcomma\addthinspace\bibstring{\thefield{editortype}s}%
- \fi}%
-%
-\DeclareDelimFormat{streditortype}{%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbbiblocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{\thefield{editortype}cn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{\thefield{editortype}kr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{\thefield{editortype}jp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
- \or%
- \bibstring{\thefield{editortype}cn}%
- \or%
- \addcomma\addthinspace\bibstring{\thefield{editortype}}%
- \fi}%
-
-
-%
-% 修改series域的输出格式
-% 2019.05.01,v1.0r,byhzz
-\renewbibmacro*{series+number}{%
- \printfield{series}%
- %\setunit*{\addspace}%
- %\printfield{number}%
- %\newunit
- }
-
-%=====================================================================
-%设置驱动格式
-%=====================================================================
-
-%中文环境的局部化代码
-\def\localsetchinesecode{%
-\ifboolexpr{%
-togl{bbx:gbstyle} or test {\iffieldequalstr{userd}{chinese}}%
-}%
-{%
-\iftoggle{bbx:gbfieldstd}{}{%
-\DeclareFieldFormat{title}{##1\adddot\addthinspace}%
-\DeclareFieldFormat{journaltitle}{##1\isdot}%添加\isdot用于缩写名带点情况,将其转换为缩写点,便于标点的追踪
-\DeclareFieldFormat{issuetitle}{##1}%
-\DeclareFieldFormat{maintitle}{##1}%
-\DeclareFieldFormat{booktitle}{##1}%
-\DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉
- [article,patent,thesis,unpublished]%
- {title}{##1\adddot\addthinspace}%\mkbibquote{##1\isdot}
-\DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉
- [inbook,incollection,inproceedings]%
- {title}{##1}%\nopunct\unspace
-\DeclareFieldFormat{url}{\url{##1}}%%url相关输出,url域修改如本行,源来自biblatex.def
-%
-% 标题的字母大小写格式修改
-%
-% 注意:修改标题的字母大小写,不能用前面的title的格式而要用titlecase
-% 因为titlecase is applied to the contents of the field directly,title is not
-%\DeclareFieldFormat{titlecase}{\MakeCapital##1}%重设标题格式,将其修改为首字母大写
-\DeclareFieldFormat{titlecase}{\iftoggle{bbx:titlelink}{%
-\iffieldundef{url}{\MakeCapital##1}{%
-\href{\thefield{url}}{##1}}}{\MakeCapital##1}}%重设标题格式,将其修改为首字母大写
-\DeclareFieldFormat{pages}{##1}%去掉前面引导页码的pp.等字符,\mkpageprefix[bookpagination]{##1}
-}%
-%
-% 修改译者位置格式
-%
-% 原理方法:修改来自biblatex.def文件的bytranslator+others宏的格式
-\renewbibmacro*{bytranslator+others}{%
- \ifnameundef{translator}%
- {}%
- {%\usebibmacro{bytranslator+othersstrg}
- %\setunit{\addspace}%
- \printnames[bytranslator]{translator}%
- \clearname{translator}%
- %从macro*{bytranslator+othersstrg}%中可以看到当地化字符串格式的引用前的代码处理
- %比如生成cotranslator等用于调用cotranslator所代表的当地化字符串
- \usebibmacro{bytranslator+othersstrg}%“译”的位置换到下面来,即放到译者后面。
- %\setunit{\addspace}%
- \newunit}%
- \usebibmacro{withothers}}%
-%
-% 修改作者数量超过限定值,做省略时的处理格式
-% v1.0,20160701,hzz
-% v1.0O,20190103,hzz,修改利用新定义的一个分隔符strandothersdelim
-%
-% 原理方法:判断作者或译者是否中文,若中文用字符等,否则用et al. 。
-\renewbibmacro*{name:andothers}{%
- \ifboolexpr{%
- test {\ifnumequal{\value{listcount}}{\value{liststop}}}%
- and
- test \ifmorenames
- }{\ifnumgreater{\value{liststop}}{1}%
- {\finalandcomma}%
- {}%
-\printdelim{andothersdelim}\printdelim{strandothersdelim}%
-}{%当是译者的时候需要特殊处理:从7.2节看等,译前面加逗号,但从示例看等和译同时出现时,译前的逗号没有,比如:
-%袁训来, 陈哲, 肖书海, 等.
-%胡泳, 范海燕, 译.
-%潘惠霞, 魏婧, 杨艳, 等译.
-\ifcurrentname{translator}{\addcomma\addthinspace}{}%为了实现上述第二个示例情况做的处理
-}}%
-%
-% 修改省略作者后的本地化字符串,比如et al.
-% v1.0o,20190103,hzz
-%
-% 原理方法:默认情况下判断作者或译者是否中文,若中文用字符andotherscn=“等”,否则用andothers=“et al.”。
-% 非默认情况,根据选项信息,选择选择强制中文或英文
-% 首先设置全局的,然后设置文献表中的,这一等价于将所有的cite命令环境都设置过了
-% 而不用对每一个引用命令单独设置,比如cite,parancite,textcite都设置
-\DeclareDelimFormat{strandothersdelim}{%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbbiblocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andotherscn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andotherskr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andothersjp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\bibstring{andothers}}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\bibstring{andothers}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{andothers}}{}%
- \or%
- \bibstring{andotherscn}%
- \or%
- \bibstring{andothers}%
- \fi}%
-%
-% 修改最后一个作者前的字符串,比如 and
-% v1.0o,20190103,hzz
-%
-% 原理方法:默认情况下判断作者或译者是否中文,若中文用字符andcn=“和”,否则用and=“and”。
-% 非默认情况,根据选项信息,选择选择强制中文或英文
-% 首先设置全局的,然后设置文献表中的,这一等价于将所有的cite命令环境都设置过了
-% 而不用对每一个引用命令单独设置,比如cite,parancite,textcite都设置
-\DeclareDelimFormat{finalnamedelim}{%
- \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
- \addspace%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbbiblocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andcn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andkr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andjp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\bibstring{and}}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\bibstring{and}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{and}}{}%
-\space%
- \or%
- \bibstring{andcn}\space%
- \or%
- \bibstring{and}\space%
- \fi}%
-%
-% url和url日期格式
-%
- \renewbibmacro*{url+urldate}{%
- %\usebibmacro{url}%%更换url的位置,放到下面
- \iffieldundef{urlyear}%
- {}{%\setunit*{\addspace}%
- \usebibmacro{urldate}}%
- \setunit{\addperiod\addspace}%
- \usebibmacro{url}}%
- \renewbibmacro*{url}{\printfield{url}}%
-%
-% 重设title的输出
-%
-% 20180425,v1.0k,为标题增加字体控制命令,Hu Zhenzhen
-% 原理方法:将文献类型标识符输出出去,原输出来自biblatex.def文件
-% 利用toggle做标识符是否输出的判断
-\renewbibmacro*{title}{%
- \ifboolexpr{%
- test{\iffieldundef{title}}%
- and
- test{\iffieldundef{subtitle}}%
- }%
- {}%
- {\printtext[title]{\bibtitlefont%增加字体控制命令
- \printfield[titlecase]{title}%
- \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
- {}{\setunit{\subtitlepunct}%
- \printfield[titlecase]{subtitle}}%
- \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
- {\setunit{\subtitlepunct}\printfield{titleaddon}}%
- \iftoggle{bbx:gbtype}{%
- \iffieldundef{note}{\printfield[gbtypeflag]{usera}}%在标题后直接给出文献标识字母,判断一下,是否是报纸和标准
- {\iffieldequalstr{note}{standard}{\printfield[gbtypeflags]{usera}}%判断是否为标准
- {\iffieldequalstr{note}{news}{\printfield[gbtypeflagn]{usera}}%判断是否为报纸
- {\printfield[gbtypeflag]{usera}}}%其它
- }}{}%
- %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
- %\newunit
-}%
-}}%
-%
-% 日期信息的输出格式,针对biblatex<3.7版本
-%
-\DeclareFieldFormat{urldate}{##1}%
-\renewbibmacro*{urldate}{%
-\addthinspace\printtext{[}\printurldate\printtext{]}}%能用高层命令+选项尽量用命令(比如这里的\printurldate),而不用\blx@edtfdate这种更底层的命令
-%
-% 调整doi+eprint+url格式
-%
-% 原理方法:源来自standard.bbx,因为页码后面直接跟引用日期,没有标点所以去掉其中的标点。
-\renewbibmacro*{doi+eprint+url}{%
-% \iftoggle{bbx:doi}%把doi的位置放到url后面
-% {\printfield{doi}}
-% {}%
- %\newunit\newblock
- \iftoggle{bbx:eprint}
- {\iffieldundef{eprint}{}{\newunit\usebibmacro{eprint}}}
- {}%
- %\newunit\newblock
- \iftoggle{bbx:url}
- {\usebibmacro{url+urldate}}
- {}
- \newunit\newblock
- \iftoggle{bbx:doi}
- {\printfield{doi}}
- {}}%
-%
-% 调整页码的格式,即chapter+pages格式
-%
-\renewbibmacro*{chapter+pages}{%
-\iftoggle{bbx:gbstrict}{}{%
- \printfield{chapter}}%
- \iffieldundef{pages}{}{%这里增加一个判断,当没有页码时就不输出
- \setunit{\bibpagespunct}%
- \printfield{pages}}%
- %\newunit %这里的标点去掉
-}%
-%
-% 当location等出版项超过maxitem缩减后不再输出etal
-%
-\DeclareListFormat{location}{%
- \usebibmacro{list:delim}{##1}%
- ##1\isdot}%
-\DeclareListAlias{institution}{location}%
-\DeclareListAlias{publisher}{location}%
-% 新增一个样式用于输出连续出版物的地址,单位,时间,
-% 用于periodical连续出版物的出版社和地址的处理
-%
-% v1.0k,20180425,为出版信息增加字体控制命令,hzz
-% %类似\newbibmacro*{publisher+location+date}
-\newbibmacro*{location+institution+date}{\bibpubfont%
-\iftoggle{bbx:gbpub}%
-{\testCJKfirst{userd}%
-\ifboolexpr{%
-test {\iflistundef{location}} and test {\iflistundef{institution}}%
-}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress}\space :\space\str@nopublisher]}%
-{\printtext{[S.l.\space :\space s.n.\adddot]}}%
-}{%
-\iflistundef{location}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress]}}{\printtext{[S.l.\adddot]}}}%
- {\printlist{location}}%
-\addcolon\addspace%
-\iflistundef{institution}{%
-\iftoggle{ifCJKforgbt}{\printtext{[\str@nopublisher]}}{\printtext{\mkbibbrackets{s.n.}}}}% \bibstring{nopublisher}%[s.n.\adddot]
-{\printlist{institution}}}%
-\setunit{\addcomma\addspace}%
- %\usebibmacro{date}%
- \printfield{year}%
- \bibrangedash%
- \iffieldundef{endyear}{}{\printfield{endyear}}%
- \newunit}%
-{\printlist{location}%
- \iflistundef{institution}%
- {\setunit*{\addcomma\space}}
- {\setunit*{\addcolon\space}}%
- \printlist{institution}%
- \setunit*{\addcomma\space}%
- \usebibmacro{date}%
- \newunit}%
-}%
-%
-% 通用的出版社和地址的处理
-%
-% 原理方法:当没有出版社地址时,直接判断title的信息是否是中文,若为中文,则写出版地不详,否则用英文的字符表示。
-% 事实上title对于每个文献来说是必须的,所以用它判断是最快的,而且一般标题和出版社的语言是一样的。
-% 注意标准standard类型,因为当没有出版项时直接省略,所以做特殊处理
-\renewbibmacro*{publisher+location+date}{\bibpubfont%
-\iftoggle{bbx:gbpub}%
-{\testCJKfirst{userd}%
- \ifboolexpr{ test {\iflistundef{location}} and test {\iflistundef{publisher}} }%
- {\iffieldequalstr{note}{standard}{}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress}\space :\space\str@nopublisher]}{\printtext{[S.l.\space :\space s.n.\adddot]}}}}%
- {\iflistundef{location}{%\adddot
- \iffieldequalstr{note}{standard}{}%%从gbt7714-2015标准第19页看到,标准存在出版项时输出,没有时完全省略。
- {\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress]}\addcolon\addspace}{\printtext{[S.l.\adddot]}\addcolon\addspace}}}% \bibstring{noaddress}
- {\printlist{location}\addcolon\addspace}%%\addcolon\addspace%
- \iflistundef{publisher}{%
- \iffieldequalstr{note}{standard}{}%
- {\iftoggle{ifCJKforgbt}{\printtext{[\str@nopublisher]}\setunit{\adddot\addspace}\setunit*{\addcomma\addspace}}%
- {\printtext{\mkbibbrackets{s.n.}}\setunit{\adddot\addspace}\setunit*{\addcomma\addspace}}}}%
- {\printlist{publisher}}}%
-\setunit*{\addcomma\addspace}%\addcomma\addspace%
-\usebibmacro{date}%%\newunit %去掉这个标点
-}%
-{\printlist{location}%
- \iflistundef{publisher}
- {\setunit*{\addcomma\space}}
- {\setunit*{\addcolon\space}}%
- \printlist{publisher}%
- \setunit*{\addcomma\space}%
- \usebibmacro{date}%%\newunit
- }%
-}%
-%
-% 修改了一个institution+location+date用于manual、report、thesis等类型
-%
-% 20180425,v1.0k,增加了字体控制命令,hzz
-% 20190105,v1.0o,加了一个编组避免\usebibmacro{date}把month和day信息去掉
-\renewbibmacro*{institution+location+date}{\bibpubfont%当没有institution时不处理。
-{\printlist{location}%%加了一个编组避免\usebibmacro{date}把month和day信息去掉
- \iflistundef{institution}
- {\setunit*{\addcomma\space}}
- {\setunit*{\addcolon\space}}%
- \printlist{institution}%
- \setunit*{\addcomma\space}%
- \usebibmacro{date}%
- %\newunit
- }}%
-%
-% 对volume卷信息格式做出修改
-% v1.0o,20190105,hzz
-%
-\DeclareFieldFormat{volume}{%
-\testCJKfirst{userd}%
-\iftoggle{ifCJKforgbt}%
-{\bibstring{serialcn}##1\bibstring{volumecn}}%
-{\bibstring{volume}~##1}%
-}% volume of a book
-\DeclareFieldFormat[article,periodical]{volume}{##1}% volume of a journal
-%
-% 对number册信息格式做出修改
-% v1.0o,20190105,hzz
-%
-\DeclareFieldFormat{number}{##1}%
-\DeclareFieldFormat[book,collection,inbook,%
-incollection,proceedings,inproceedings]{number}{%
-\testCJKfirst{userd}%
-\iftoggle{ifCJKforgbt}%
-{\bibstring{serialcn}##1\bibstring{numbercn}}%
-{##1}%
-}%
-%
-% 对edition版本信息格式做出修改
-%
-\DeclareFieldFormat{edition}{%源来自biblatex.DEF
-\testCJKfirst{userd}%
-\iftoggle{ifCJKforgbt}%
-{\ifinteger{##1}%
-{\printtext{##1\str@edition}}%
-{##1\isdot}}%
-{\ifinteger{##1}%
-{\mkbibordedition{##1}~\bibstring{edition}}%
-{##1\isdot}}}%
-%
-% 对version的版本信息做出修改
-%
-\DeclareFieldFormat{version}{%源来自biblatex.DEF
-\testCJKfirst{userd}%
-\ifinteger{##1}%
-{\iftoggle{ifCJKforgbt}{\printtext{##1\str@edition}}%
-{\mkbibordedition{##1}~\bibstring{version}}}%
-{##1\isdot}}%
-%
-% 修改析出文献的文集的标题与附加标题间的符号
-%
-\renewbibmacro*{booktitle}{%
- \ifboolexpr{%
- test {\iffieldundef{booktitle}}
- and
- test {\iffieldundef{booksubtitle}}
- }%
- {}%
- {\printtext[booktitle]{\bibtitlefont%
- \printfield[titlecase]{booktitle}%
- \setunit{\subtitlepunct}%
- \printfield[titlecase]{booksubtitle}}%
- \newunit%标点换成下一句
- \setunit{\subtitlepunct}}%
- \printfield{booktitleaddon}}%
-%
-% 调整期刊名的格式
-%
-% v1.0k,20180425,增加了字体控制命令,hzz
-\renewbibmacro*{journal+issuetitle}{\bibpubfont%源来自standard.bbx
- \usebibmacro{journal}%
- %\setunit*{\addspace}%
- \setunit*{\addcomma\addspace}%修改为增加一个逗号
- \iffieldundef{series}
- {}
- {\newunit
- \printfield{series}%
- \setunit{\addspace}}%
- %\usebibmacro{volume+number+eid}%
- %\setunit{\addspace}%
- \usebibmacro{issue+date}%
- %\setunit{\addcolon\space}%
- \iffieldundef{volume}{}{\setunit{\addcomma\space}}%
- %换成逗号和空格
- \usebibmacro{issue}%
- \usebibmacro{volume+number+eid}%把卷期放到年份后面
- %\newunit
- }%
-%
-% 调整期刊卷和期的格式
-%
-\renewbibmacro*{volume+number+eid}{%源来自standard.bbx
-\iftoggle{bbx:gbfieldstd}{%
- \printfield{volume}%
- \setunit*{\adddot}%
- \printfield{number}%
- \setunit{\addcomma\space}%
- \printfield{eid}}{%
- \printfield{volume}%
- %\setunit*{\adddot}%去掉点号
- %\printfield{number}%
- \iffieldundef{number}{}{\printtext{\mkbibparens{\printfield{number}}}}%增加一个圆括号
- \iffieldundef{eid}{}{%
- \setunit{\addcomma\space}%
- \printfield{eid}}}}%
-%
-% 调整期刊年份的格式
-%
-\renewbibmacro*{issue+date}{%去掉括号
- \printtext{%去掉了[parens]
- \iffieldundef{issue}
- {%\usebibmacro{date}
- \iffieldundef{note}{\usebibmacro{date}}%判断一下,是否是报纸
- {\iffieldequalstr{note}{news}{\usebibmacro{newsdate}}%判断是否为报纸
- {\usebibmacro{date}}%
- }}%
- {\iftoggle{bbx:gbstrict}{}{\printfield{issue}%
- \setunit*{\addspace}}%
- %\usebibmacro{date}
- \iffieldundef{note}{\usebibmacro{date}}%判断一下,是否是报纸
- {\iffieldequalstr{note}{news}{\usebibmacro{newsdate}}%判断是否为报纸
- {\usebibmacro{date}}%
- }}}%
- %\newunit
- }%
-%
-% 调整页码前的标点和去掉期刊文章等页码后面的标点
-%
-\renewbibmacro*{note+pages}{%源来自standard.bbx
- %\printfield{note}%不要note,note用来判断是否是报纸newspaper
- \iffieldundef{pages}{}{%
- \setunit{\bibpagespunct}%
- \printfield{pages}}%
- %\newunit
- }%
-%
-% 编者的符号修改一下
-% v1.0 2016-07-01
-% v1.0q 2019-03-01 hzz 修改editortype前的标点
-%
-\renewbibmacro*{editor}{%源来自biblatex.DEF
- \ifboolexpr{%
- test \ifuseeditor
- and
- not test {\ifnameundef{editor}}%
- }%
- {\printnames{editor}%
- \iffieldundef{editortype}%增加一个类型判断,用于存在editortype的情况
- {\setunit\addspace}%当没有editortype时,直接用句点
- {%\setunit{\addcomma\space}%
- \usebibmacro{editorstrg}}%
- %\clearname{editor}
- }%
- {}}%
-%
-% 编者类型做一修改
-% v1.0 2016-07-01
-% v1.0q 2019-03-01 hzz 修改editortype不同语言的不同本地化字符串
-%
-\renewbibmacro*{editorstrg}{%源来自biblatex.DEF
- \printtext[editortype]{%
- \iffieldundef{editortype}%
- {%
-% \ifboolexpr{ %这一段去掉,未定义编者类型情况下不处理
-% test {\ifnumgreater{\value{editor}}{1}}
-% or
-% test {\ifandothers{editor}}
-% }
-% {\bibstring{editors}}
-% {\bibstring{editor}}
- }%
- {\ifbibxstring{\thefield{editortype}}%定义编者类型情况下处理,以后根据需要修改
- {\ifboolexpr{%
- test {\ifnumgreater{\value{editor}}{1}}%
- or
- test {\ifandothers{editor}}%
- }%
- {\printdelim{streditortypes}}%
- {\printdelim{streditortype}}}%
- {\thefield{editortype}}}%
- }}%
-%
-% bookauthor域的输出,
-% v1.0q 2019-03-01 hzz
-% 不再对editor和bookauthor做sourcemap,而是下面的宏内逻辑代替,
-% 使得除使用bookauthor外也可以使用editor,便于在使用editor时使用editortype
-\renewbibmacro*{bybookauthor}{%
- \ifnameundef{bookauthor}%
- {\ifnameundef{editor}%
- {}%
- {\ifnamesequal{author}{editor}%
- {}{\usebibmacro{editor}}}%
- }%
- {\ifnamesequal{author}{bookauthor}%
- {}{\printnames{bookauthor}}%
- }%
-}%
-%
-% 修改期刊的标题
-%
-\renewbibmacro*{periodical}{%源来自biblatex.DEF
- \iffieldundef{title}
- {}%
- {\printtext[title]{\bibtitlefont%
- \printfield[titlecase]{title}%
- %\setunit{\subtitlepunct}%
- \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
- {}{\setunit{\subtitlepunct}
- \printfield[titlecase]{subtitle}}%
- %}%把编组结束移到后面去
- \iftoggle{bbx:gbtype}{%
- \iffieldundef{usera}{}{%在标题后直接给出文献标识字母
- \printfield[gbtypeflag]{usera}}}{}%
- }}%
- }%
-%
-% 期刊的标题做修改
-%
-\renewbibmacro*{title+issuetitle}{%源来自standard.BBX
- \usebibmacro{periodical}%
- %\setunit*{\addspace}%
- \setunit*{\adddot\addspace}%标点修改为句点
- \iffieldundef{series}
- {}%
- {\newunit
- \printfield{series}%
- \setunit{\addspace}}%
- \usebibmacro{periodical+issue}%将issue调整到上面来,并修改
-\iffieldundef{number}{}{%%进一步处理有范围的数字
- \multinumberparser{\thefield{number}}}%
- \iffieldundef{volume}%
- {\printfield{year}%
- \printtext{\mkbibparens{\multinumberfirst}}%
- \bibrangedash%
- \iffieldundef{endyear}{}{\printfield{endyear}\printtext{\mkbibparens{\multinumbersecond}}}%
- }%
- {\multivolparser{\thefield{volume}}%
- \printfield{year}%
- \setunit{\addcomma\space}%将冒号修改为逗号
- \printtext{\multivolfirst}%
- \printtext{\mkbibparens{\multinumberfirst}}%
- \bibrangedash%
- \iffieldundef{endyear}{}{%
- \printfield{endyear}%
- \setunit{\addcomma\space}%将冒号修改为逗号
- \printtext{\multivolsecond}%
- \printtext{\mkbibparens{\multinumbersecond}}}%
- }%
- \setunit{\addcomma\space}%
- \printfield{eid}%
- \setunit{\addspace}%
- %\usebibmacro{issue+date}%
- %\setunit{\addcolon\space}%
- \usebibmacro{issue}%
- \newunit}%
-%
-% 修改in:用于inbook、incollection、inproceedings等类型
-% 2018.04.20,v1.0k,renewed marco,by hzz
-% 20190212,v1.0q,增加中英文区分,by hzz
-%
-% 原理方法:使用bibmacro{in:}改变了以前在driver中直接输出//的方式,同时也简化了标点控制。
-\renewbibmacro*{in:}{%
- \iftoggle{bbx:gbpunctin}{\printtext{\allowbreak\texttt{//}\allowbreak}}%\addthinspace
- {\setunit{\adddot\addspace}%
- \iffieldequalstr{userd}{chinese}%
- {\printtext{\bibstring{incn}}}%
- {\printtext{\bibstring{in}}}%
- }}%\newunit\newblock\intitlepunct
-%
-% 修改type域的输出格式
-% 2019.02.12,v1.0q,byhzz
-% 使其可以区分中英文输出不同的格式,比如博士论文英文输出PHD thesis,中文则是博士学位论文
-\DeclareFieldFormat{type}%
-{\iffieldequalstr{userd}{chinese}%
- {\ifbibxstring{##1cn}{\bibxstring{##1cn}}{##1}}%
- {\ifbibstring{##1}{\bibstring{##1}}{##1}}%
-}%
-%
-% book条目类的驱动
-%
-\csdef{blx@bbx@book}{%%源来自standard.bbx文件
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
-\usebibmacro{author/editor+others/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
-\usebibmacro{maintitle+title}%
-\iftoggle{bbx:gbstrict}{}{%
-\newunit
-\printlist{language}%
-\newunit\newblock%
-\usebibmacro{byauthor}%
-\newunit\newblock}%
-\usebibmacro{byeditor+others}%
-\newunit
-\printfield{edition}%
-\newunit\newblock%%
-\iftoggle{bbx:gbstrict}{}{%
-\iffieldundef{maintitle}%
-{\printfield{volume}%
-\printfield{part}}%
-{}%
-\newunit%
-\printfield{volumes}%
-\newunit\newblock%
-\usebibmacro{series+number}}%
-\newunit\newblock%
-%\printfield{note}%
-%\newunit\newblock%
-\usebibmacro{publisher+location+date}%
-%\newunit\newblock %这里标点去掉
-\usebibmacro{chapter+pages}%
- \iffieldundef{url}{}{%当没有网址时也不输出
- \usebibmacro{modifydate}}%带括号的修改或更新日期,
-\usebibmacro{doi+eprint+url}%从下面移动到上面来,因为gbt2015的url需直接放在页码后面。
- \newunit\newblock%
- \printfield{pagetotal}%
- \newunit\newblock%
- \iftoggle{bbx:isbn}
- {\printfield{isbn}}
- {}%
- \newunit\newblock
- %\usebibmacro{doi+eprint+url}%
- %\newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}%
-%
-% 期刊文章,连续出版物中的析出文献的格式
-%
-\csdef{blx@bbx@article}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}%
- \newunit\newblock
- \usebibmacro{bytranslator+others}%
- \newunit\newblock
- \printfield{version}}%
- \newunit\newblock
- %\usebibmacro{in:}% 不使用in来表示期刊等连续出版物
- \usebibmacro{journal+issuetitle}%
- %\newunit
-% \usebibmacro{byeditor+others}%
-% \newunit
- \usebibmacro{note+pages}%
- \iffieldequalstr{note}{news}{}{%当是新闻时不输出修改或更新日期
- \iffieldundef{url}{}{%当没有网址时也不输出
- \iftoggle{bbx:url}{%当url选项为false时,也不输出
- \usebibmacro{modifydate}}{}}}%带括号的修改或更新日期,
- \usebibmacro{doi+eprint+url}%从后面移上来,调整url和页码之间的位置
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{issn}}
- {}%
- \newunit\newblock
- %\usebibmacro{doi+eprint+url}%
- %\newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}%
-%
-% 连续出版物的驱动
-%
-\csdef{blx@bbx@periodical}{%源来自standard.BBX
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{editor}%
- %\setunit{\labelnamepunct}\newblock
- \newunit\newblock %删除上面一行,添加这一行
- \usebibmacro{title+issuetitle}%
- \newunit\newblock%
- \usebibmacro{location+institution+date}%添加这一行用于输出地址,单位和时间
- \newunit\newblock%添加这一行
- \iftoggle{bbx:gbstrict}{}{%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byeditor}%
- \newunit\newblock
- \printfield{note}%
- \newunit\newblock}
- \iftoggle{bbx:isbn}
- {\printfield{issn}}
- {}%
- \newunit\newblock
- \usebibmacro{doi+eprint+url}%
- \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}%
-%
-% 专利文献驱动
-%
-\csdef{blx@bbx@patent}{%源来自standard.BBX
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- %\usebibmacro{title}%
- \usebibmacro{patenttitle}%给出专利专用的标题输出
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}}%
- \newunit\newblock
- \printfield{type}%
- \setunit*{\addspace}%
- %\printfield{number}%已放到patenttitle中处理
- \iflistundef{location}
- {}
- {\setunit*{\addspace}%
- \printtext{%[parens]
- \printlist[][-\value{listtotal}]{location}}}%
- \newunit\newblock
- \usebibmacro{byholder}%
- \newunit\newblock
- \printfield{note}%
- \newunit\newblock
- \usebibmacro{newsdate}%
- %\newunit\newblock
- \usebibmacro{doi+eprint+url}%
- \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}%
-%
-% 在线文献驱动
-%
-\csdef{blx@bbx@online}{%源来自standard.BBX
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/editor+others/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}%
- \newunit\newblock
- \usebibmacro{byeditor+others}%
- \newunit\newblock
- \printfield{note}}%
- \newunit
- \printfield{version}%
- \newunit\newblock
-%\printlist{organization}%
- \printlist{institution}%
- \newunit\newblock
-\ifboolexpr{%
-test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
-}{\usebibmacro{date}}%
-{\usebibmacro{modifydate}}%修改或更新日期,为带括号的时间
- \usebibmacro{url+urldate}%从下面移上来
- \newunit\newblock
- \iftoggle{bbx:eprint}
- {\usebibmacro{eprint}}
- {}%
- \newunit\newblock
- %\usebibmacro{url+urldate}%
- %\newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}%
-%
-% 报告类型驱动
-% 2016-11-11,增加了译者信息
-%
-\csdef{blx@bbx@report}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}}%
- \newunit\newblock
- \usebibmacro{byeditor+others}%增加的译者信息
- \newunit\newblock
- \printfield{type}%
- \setunit*{\addspace}%
- \printfield{number}%
- \newunit\newblock
- \printfield{version}%
- \newunit
- \printfield{note}%
- \newunit\newblock
- \usebibmacro{publisher+location+date}%
- %\newunit\newblock
- \usebibmacro{chapter+pages}%
- \usebibmacro{doi+eprint+url}%
- \newunit
- \printfield{pagetotal}%
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{isrn}}
- {}%
- \newunit\newblock
-% \usebibmacro{doi+eprint+url}%
-% \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}%
-%
-% 手册类型驱动
-% 2016-11-11,增加了译者信息
-%
-%
-\csdef{blx@bbx@manual}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}}%
- \newunit\newblock
- \usebibmacro{byeditor+others}%增加的译者信息
- \newunit\newblock
- \iftoggle{bbx:gbfieldtype}{%
- \printfield{type}%
- \setunit*{\addspace}}{}%
- \printfield{number}%
- \newunit\newblock
- \printfield{version}%
- \newunit
- \printfield{note}%
- \newunit\newblock
- \usebibmacro{institution+location+date}%
- %\newunit\newblock
- \usebibmacro{chapter+pages}%
- \iffieldundef{url}{}{%当没有网址时也不输出修改或更新日期
- \usebibmacro{modifydate}}%修改或更新日期为带括号的时间
- \usebibmacro{doi+eprint+url}%
- \newunit
- \printfield{pagetotal}%
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{isrn}}
- {}%
- \newunit\newblock
-% \usebibmacro{doi+eprint+url}%
-% \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}%
-%
-% 备选类型驱动
-%
-% 利用biblatex的misc驱动
-\csdef{blx@bbx@misc}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/editor+others/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
-\iftoggle{bbx:gbstrict}{}{%
- \newunit
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}%
- \newunit\newblock
- \usebibmacro{byeditor+others}}%
- \newunit\newblock
- \printfield{howpublished}%
- \newunit\newblock
- \printfield{type}%
- \newunit
- \printfield{version}%
- \newunit
- \printfield{note}%
- \newunit\newblock
- \usebibmacro{institution+location+date}%
- %\usebibmacro{organization+location+date}%
- %\newunit\newblock
- \usebibmacro{doi+eprint+url}%
- \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}%
-%
-% 专著中的析出文献的格式修改
-%
-\csdef{blx@bbx@inbook}{%源来自standard.bbx
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
-\usebibmacro{title}%
-\usebibmacro{in:}%
-%\printtext{\texttt{//}\addthinspace}%
- \usebibmacro{bybookauthor}%
- \ifnameundef{bookauthor}{%
- \ifnameundef{editor}{}{\newunit}%
- }{\newunit}%替换下一句
- %\newunit\newblock
-\iffieldundef{series}{}{\usebibmacro{series+number}\setunit{\addcolon\addspace}}%为处理一些存在series的情况而增加
- \usebibmacro{maintitle+booktitle}%
-\iffieldundef{volume}{}{\setunit{\addcolon\addspace}\printfield{volume}}%
-\iffieldundef{number}{}{\setunit{\addcolon\addspace}\printfield{number}}%增加卷和册信息
- \newunit\newblock%
-% \usebibmacro{byeditor+others}%
-% \newunit\newblock
- \printfield{edition}%
- \newunit
- \iftoggle{bbx:gbstrict}{}{%
-% \iffieldundef{maintitle}
-% {\printfield{volume}%
-% \printfield{part}}
-% {}%
-% \newunit
-% \printfield{volumes}%
-% \newunit\newblock
-% \usebibmacro{series+number}
- }%
- \newunit\newblock
- %\printfield{note}%
- %\newunit\newblock
- \usebibmacro{publisher+location+date}%
-%\newunit\newblock
- \usebibmacro{chapter+pages}%
- %\newunit\newblock
- \usebibmacro{doi+eprint+url}%移到上面来
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{isbn}}
- {}%
- \newunit\newblock
- %\usebibmacro{doi+eprint+url}%
-% \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}%
-}{}%
-}
-
-\AtEveryBibitem{\localsetchinesecode}%
-\AtEveryCite{\localsetchinesecode}%
-\AtEveryLositem{\localsetchinesecode}%
+%%
+%% ---------------------------------------------------------------
+%% biblatex-gb7714-2015 --- A biblatex implementation of the
+%% GBT7714-2015 bibliography style,numerical sequence
+%% Maintained by huzhenzhen
+%% E-mail: hzzmail@163.com
+%% Released under the LaTeX Project Public License v1.3c or later
+%% ---------------------------------------------------------------
+%%
+
+%
+% 版本和时间信息
+%
+\def\versionofgbtstyle{2021/04/03 v1.0x}
+\def\versionofbiblatex{\abx@version}
+\ProvidesFile{gb7714-2015ms.bbx}[\versionofgbtstyle biblatex bibliography style]
+%\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求
+
+
+%=====================================================================
+% 加载标准样式
+%=====================================================================
+\RequireBibliographyStyle{numeric-comp}
+\RequirePackage{xstring}%解决texlive2015的biblatex3.0不加载xstring包的问题
+
+%=====================================================================
+% 功能函数
+%=====================================================================
+ %
+ % biblatex版本判断
+ % 20180629,v1.0k,hzz
+ %
+ % 原理方法:适用于3.10以上版本的biblatex,否则给出警告
+ \@ifpackagelater{biblatex}{2017/12/28}{}{
+ \blx@warning@noline{%
+ biblatex version is too old for this style\MessageBreak
+ if errors raised,Please update biblatex to the latest version.}
+ }
+
+
+ %
+ % 判断CJK字符的函数,用于判断作者等信息是否由中文字符构成
+ % v1.0k,20180509,hzz
+ %
+ % 原理方法:用biber中的perl方法代替。因为利用tex函数对字符判断时,当字符在宏
+ % 中时,基于`的方法无法解决GBK编码的问题,基于CJKsymbol的方法无法解决utf-8
+ % 编码用xelatex编译的问题。
+ %
+ % 原理是:利用perl正则将中文标识记录到域中,
+ % 然后利用\iffieldundef和\iffieldequalstr进行判断
+ \providetoggle{ifCJKforgbt}
+ \def\testCJKfirst#1{%
+ \iffieldundef{#1}{\togglefalse{ifCJKforgbt}}{%
+ \iffieldequalstr{#1}{chinese}{\toggletrue{ifCJKforgbt}}{\togglefalse{ifCJKforgbt}}}}
+
+ %
+ % 2个卷的解析函数,用于连续出版物
+ %
+ % 原理方法: 范围起止间隔符号还是用-,而不是与date相同的/,因为有合期期刊的问题,需要用到/符号
+ \newcommand{\multivolparser}[1]{%
+ \IfSubStr{#1}{-}%
+ {\StrBefore{#1}{-}[\multivolfirst]\StrBehind{#1}{-}[\multivolsecond]}%
+ {\def\multivolfirst{#1}\def\multivolsecond{}}%
+ }
+
+
+ %
+ % 2个期的解析函数,用于连续出版物
+ %
+ \newcommand{\multinumberparser}[1]{%
+ \IfSubStr{#1}{-}%
+ {\StrBefore{#1}{-}[\multinumberfirst]\StrBehind{#1}{-}[\multinumbersecond]}%
+ {\def\multinumberfirst{#1}\def\multinumbersecond{}}%
+ }
+
+
+%=====================================================================
+% 数据模型定义
+%=====================================================================
+ %定义类型和载体标识,从gb内容看载体基本属于介质。
+ %为与lee zeping的bst的样式统一,使用mark和medium这两域名
+ %为单个条目的姓名格式控制增加nameformat和namefmtid两个域
+ %为缩略信息文献表增加了shortbooktitle域
+ %为多语言排序增加了lansortorder域
+ \DeclareDatamodelFields[type=field,datatype=literal]{mark,medium,nameformat}
+ \DeclareDatamodelFields[type=field,datatype=integer]{namefmtid}
+ \DeclareDatamodelFields[type=field,datatype=literal]{shortbooktitle}
+ \DeclareDatamodelFields[type=field,datatype=literal]{lansortorder}
+
+ %因为biblatex更新3.14版本以后,biber对于为声明数据模型的条目类型
+ %不再默认读取,而是以空字符串作为条目类型名,自然在条目定义alias时
+ %就会出现问题,因此显式的声明一下newspaper,然后保留后面采用alias的方式
+ %而standard类型则是采用另一种方式直接在sourcemap中转换为其它类型。
+ \@ifpackagelater{biblatex}{2019/11/30}{%2019/12/01 v3.14
+ \DeclareDatamodelEntrytypes{newspaper}%
+ }{}
+
+%=====================================================================
+% 设置宏包选项
+%=====================================================================
+ %
+ % 增加一个控制是否输出文献载体的选项
+ % 20191125,v1,0s,hzz
+ \newtoggle{bbx:gbmedium}
+ \DeclareBibliographyOption{gbmedium}[true]{%biblatex低版本
+ \settoggle{bbx:gbmedium}{#1}}
+ \ExecuteBibliographyOptions{gbmedium}
+
+ %
+ % 增加一个控制是否输出annotation域的选项,该域可以用于在文献条目后面输出一些注释信息
+ % 20190509,v1,0s,hzz
+ \newtoggle{bbx:gbannote}
+ \DeclareBibliographyOption{gbannote}[false]{%biblatex低版本
+ \settoggle{bbx:gbannote}{#1}}
+ \ExecuteBibliographyOptions{gbannote}
+ %
+ %用于在文献条目后面输出注释信息的宏
+ %FieldFormat{annotation}用于设置注释信息的格式
+ \DeclareFieldFormat{annotation}{%
+ \printtext{\addspace(#1)}%
+ }
+ \renewbibmacro*{annotation}{%
+ \iftoggle{bbx:gbannote}%
+ {\iffieldundef{annotation}%
+ {\printfile[annotation]{\bibannotationprefix\thefield{entrykey}.tex}}%
+ {\printfield{annotation}}}%
+ {}%
+ }
+
+
+ %
+ % 增加一个控制是否输出type域的选项
+ % 20190212,v1,0q,hzz
+ \newtoggle{bbx:gbfieldtype}
+ \DeclareBibliographyOption{gbfieldtype}[false]{%biblatex低版本
+ \settoggle{bbx:gbfieldtype}{#1}}
+ \ExecuteBibliographyOptions{gbfieldtype}
+
+ %
+ % 增加一个控制是否根据页码重设脚注数字标号的选项
+ % 20190422,v1,0r,hzz
+ \newtoggle{bbx:gbfnperpage}
+ \DeclareBibliographyOption{gbfnperpage}[false]{%
+ \settoggle{bbx:gbfnperpage}{#1}}
+ \ExecuteBibliographyOptions{gbfnperpage}
+
+ %
+ % 增加一个选项,用于控制是否实现GB/T 7714-2015标准的脚注文献表
+ % 20190203,v1.0p,hzz
+ % 原理方法:默认做patch,文献引用带圈上标数字表示,脚注中的文献用带圈非上标数字做标签
+ % 当前面的脚注中已经存在当前文献,那么当前文献内容不再输出而用同(4)这样的方式
+ % 需要注意的是由于小页环境和表格中的脚注本身的问题,可能会有一些问题
+ \DeclareBibliographyOption{gbfootbib}[false]{%
+ \ifstrequal{#1}{false}{}{\execgbfootbib}}
+ \ExecuteBibliographyOptions{gbfootbib}
+
+ %%
+ \newlength{\footbibmargin}
+ \newlength{\footbiblabelsep}
+ \setlength{\footbibmargin}{1em}%脚注的段落左侧缩进距离
+ \setlength{\footbiblabelsep}{0.5em}%脚注中标记号与脚注段落的间距
+ \def\execgbfootbib%
+ {%
+ %开启引用跟踪计数器,为使用\ifciteseen等测试命令
+ \ExecuteBibliographyOptions{citetracker=true}
+ %
+ %利用footmisc宏包来实现脚注文献的悬挂对齐
+ \AtEndPreamble{
+ \@ifclassloaded{beamer}{}{
+ %beamer类因为其特殊性,为避免冲突不调footmisc。
+ %同时footmisc与hyperref宏包也不兼容,所以使用footmisc时会破坏脚注的超链接
+ %如果要实现超链接可以将下句注释掉,这里留着主要是实现悬挂对齐。
+ %\PassOptionsToPackage{perpage,hang}{footmisc}%
+ %\RequirePackage{footmisc}%
+
+ %重新实现脚注的根据单页重设脚注号码
+ %重新实现脚注的悬挂对齐问题,不再使用footmisc,直接从latex核心代码和hyperref代码进行修改
+ %v1.0q 20190317 hzz
+ %v1.0r 20190422 hzz 根据gbfnperpage选项设置
+ \iftoggle{bbx:gbfnperpage}%
+ {\@addtoreset{footnote}{page}}{}%重设计数器
+
+\@ifpackageloaded{hyperref}{%加载hyperref则对\H@@footnotetext做重定义
+ \long\def\H@@footnotetext##1{\insert\footins{%
+ \reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore
+ \protected@edef\@currentlabel{%
+ \csname p@footnote\endcsname\@thefnmark
+ }%
+ \color@begingroup
+ \leftskip \footbibmargin%增加的左侧缩进
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox%
+ }%
+ \color@endgroup}}%
+
+ \long\def\H@@mpfootnotetext##1{%
+ \global\setbox\@mpfootins\vbox{%
+ \unvbox\@mpfootins
+ \reset@font\footnotesize
+ \hsize\columnwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
+ \leftskip \footbibmargin%增加的左侧缩进
+ \color@begingroup
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox}%
+ \color@endgroup}}
+ }{%否则对latex核心代码中的\@footnotetext做重定义
+ \long\def\@footnotetext##1{\insert\footins{%
+ \reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore
+ \protected@edef\@currentlabel{%
+ \csname p@footnote\endcsname\@thefnmark
+ }%
+ \color@begingroup
+ \leftskip \footbibmargin%增加的左侧缩进
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox%
+ }%
+ \color@endgroup}}%
+
+ \long\def\@mpfootnotetext##1{%
+ \global\setbox\@mpfootins\vbox{%
+ \unvbox\@mpfootins
+ \reset@font\footnotesize
+ \hsize\columnwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
+ \leftskip \footbibmargin%增加的左侧缩进
+ \color@begingroup
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox}%
+ \color@endgroup}}
+ }
+
+ \long\def\@makefntext##1{%增加了脚注标记与正文的间隔
+ \parindent 1em\noindent \hb@xt@ 0em{\hss \@makefnmark\makebox[\footbiblabelsep]{}}##1}
+
+ }
+
+ %
+ %使脚注标记加圈并设置数字的字体为tiny,不使用修改thefootnote的方式
+ \def\@makefnmark{\hbox{\@textsuperscript{\textcircled{\tiny\@thefnmark}}}}
+ %做patch使得脚注内容中的脚注数字标签不上标
+ \pretocmd{\@makefntext}{%
+ \def\@makefnmark{%
+ \hbox{\textcircled{\tiny\@thefnmark}}%
+ }%
+ }{}{}
+ }
+
+ %
+ %判断当前文献是否已经引用过且是做的footfullcite(即已经作为脚注输出文献内容)
+ %记录首次输出时的脚注号码,用于后面再次引用该文献时的输出,比如同(4)。
+ %v1.0q 20190309 区分使脚注标注适应minipage中的情况
+ \newbibmacro*{citesavefn}{%
+ \ifciteseen%当被引用过为true
+ {\ifcsdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}%当已经定义过脚注序号信息
+ {\csgdef{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
+ \str@sameentry\gdef\@thefnmark{\csuse{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}}%
+ \@makefnmark%
+ }}%
+ {\csxdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
+ \ifcsstring{@mpfn}{mpfootnote}{\@alph\c@mpfootnote}{\thefootnote}%
+ }}%
+ }%
+ {\csxdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
+ \ifcsstring{@mpfn}{mpfootnote}{\@alph\c@mpfootnote}{\thefootnote}%
+ %判断在minipage中比较麻烦,这里使用\@mpfn的定义进行判断
+ }}%
+ }
+
+ %
+ %重定义\footfullcite使完成gb7714-2015的脚注文献要求
+ \DeclareCiteCommand{\footfullcite}[\mkbibfootnote]%
+ {\defcounter{maxnames}{\blx@maxbibnames}%局部定义maxnames和minnames计数器
+ \defcounter{minnames}{\blx@minbibnames}%使footfullcite内的作者输出与正文文献表中的一致。
+ \usebibmacro{prenote}%
+ \renewbibmacro*{postnote}{%
+ \iffieldundef{postnote}%
+ {}{\setunit{\addcolon\addspace}\printfield{postnote}}}%与ay样式不同,由于已修改postnote域格式,直接用printfield
+ }%
+ {\usebibmacro{citesavefn}%
+ \ifcsdef{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}%
+ {\csuse{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}\nopunct}%
+ {\usedriver{\DeclareNameAlias{sortname}{default}}{\thefield{entrytype}}}%
+ }%
+ {\multicitedelim}%
+ {\usebibmacro{postnote}}
+
+ }
+
+ %
+ % 增加一个选项,用于控制gb7714的使用范围,即英文文献和中文文献使用不同的样式
+ % 20180814,v1.0m,hzz
+ % 原理方法:
+ % 当gbstyle=true,则所有的文献使用国标样式,否则仅中文文献使用国标样式
+ \newtoggle{bbx:gbstyle}
+ \DeclareBibliographyOption{gbstyle}[true]{%biblatex低版本
+ \settoggle{bbx:gbstyle}{#1}}
+
+ %
+ % 增加一个控制是否输出文献类型和载体标识的选项
+ %
+ % 原理方法:
+ % 对于biblatex3.4以上版本DeclareBibliographyOption命令中的[datatype]如果是boolean,那么是可以省略的
+ % 所以用老版本的不用[datatype]的命令可以兼容所有biblatex版本
+ \newtoggle{bbx:gbtype}
+ %\DeclareBibliographyOption[boolean]{gbtype}[true]{%biblatex高版本
+ \DeclareBibliographyOption{gbtype}[true]{%biblatex低版本
+ \settoggle{bbx:gbtype}{#1}}
+
+ %
+ % 增加一个源文件编码选择选项,当true时可以使用GBK编码。
+ % v1.0k, 2018.05.08, by hzz
+ %
+ % 原理方法:将需要输出的中文字符串用命令形式表示存储,采用utf8编码时采用bbx文档
+ % 内的定义即是utf8编码的中文字符串,但tex源文件是gbk编码时,利用gb7714-2015-gbk.def
+ % 文档内的gbk编码的字符串覆盖。这种覆盖只能在宏包末尾加载时成功实现,所以使用
+ % AtEndOfPackage。该解决思路源自biblatex-caspervector宏包。
+ % 另外注意:
+ % gbk编码的tex文档,利用pdflatex/latex能正确编译,利用xelatex能编译,但中文显示乱码
+ % 在源文档前面增加 XeTeX 原语:\XeTeXinputencoding "GBK" 后,显示正常
+ % utf-8编码的tex文档,利用xelatex能正确编译,而pdflatex/latex不能编译。
+ \newtoggle{bbx:codegbk}
+ \DeclareBibliographyOption{gbcodegbk}[false]{%
+ \settoggle{bbx:codegbk}{#1}}
+
+ \def\str@bibliography{参考文献}
+ \def\str@references{参考文献}
+ \def\str@bytranslator{译}
+ \def\str@andotherscn{等}
+ \def\str@backrefpage{引用页}
+ \def\str@backrefpages{引用页}
+ \def\str@noaddress{出版地不详}
+ \def\str@nopublisher{出版者不详}
+ \def\str@edition{版}
+ \def\str@volumecn{卷}
+ \def\str@numbercn{册}
+ \def\str@serialcn{第}
+ \def\str@sameentry{同}
+ \def\str@incn{见}
+ \def\str@mathesiscn{硕士学位论文}
+ \def\str@phdthesiscn{博士学位论文}
+ \def\str@editorcn{主编}
+
+ \AtEndOfPackage{%
+ \iftoggle{bbx:codegbk}{%
+ \ExecuteBibliographyOptions{texencoding = GBK}
+ \input{gb7714-2015-gbk.def}
+ }{}}
+
+ %
+ % 增加一个严格按GB/T 7714-2015给出著录格式控制域的输出的选项
+ % v1.0k, 2018.05.08, by hzz
+ %
+ % 原理方法:
+ % 默认设置该选项为真,进而不输出GB/T 7714-2015中没有的域的信息
+ % 这样可以避免因为bib文件带有多余的域的信息的输出,比如因为bibtex样式
+ % 可能需要用于中英文判断的language域的信息。
+ \newtoggle{bbx:gbstrict}
+ \DeclareBibliographyOption{gbstrict}[true]{%
+ \settoggle{bbx:gbstrict}{#1}}
+
+ %
+ % 增加一个控制标题域超链接设置的选项
+ % v1.0k, 2018.05.24, by hzz
+ %
+ % 原理方法:
+ % 利用标题域格式来实现,默认设置该选项为false,不做超链接。
+ % 设置为true,则标题设置超链接
+ \newtoggle{bbx:titlelink}
+ \DeclareBibliographyOption{gbtitlelink}[false]{%
+ \settoggle{bbx:titlelink}{#1}}
+
+ %
+ % 增加一个控制参考文献标题是否能够被ctex宏包设置的选项
+ % v1.0l, 2018.07.02, by hzz
+ %
+ % 原理方法:
+ % 重定义biblatex的宏,去除使用本地化字符串的方式,是的可以利用ctexset进行设置
+ \newtoggle{bbx:ctexset}
+ \DeclareBibliographyOption{gbctexset}[true]{%
+ \settoggle{bbx:ctexset}{#1}}
+
+ \AtEndOfPackage{%
+ \iftoggle{bbx:ctexset}{%
+ \def\blx@defbibstrings#1#2{%
+ \def\do##1{\csundef{abx@lstr@##1}\csundef{abx@sstr@##1}}%
+ \abx@dostrings
+ \csuse{abx@strings@#1}%
+ \setkeys{blx@lbx}{#2}%
+ \let\do\blx@defbibstrings@i
+ \csxdef{abx@strings@#1}{\abx@dostrings}%
+ }
+ }{}}
+
+ %
+ % 增加一个恢复域格式为标准样式的控制选项
+ % v1.0k, 2018.05.15, by hzz
+ %
+ % 原理方法:
+ % 默认设置该选项为false,采用国标要求的域格式输出相关域
+ % 当设置该选项为true时,则重新利用标准样式的域格式输出相关的域
+ \newtoggle{bbx:gbfieldstd}
+ \DeclareBibliographyOption{gbfieldstd}[false]{%
+ \settoggle{bbx:gbfieldstd}{#1}%
+ }
+
+ %
+ % 增加一个出版项自动处理控制选项,当true时使用出版者不详等信息补充缺失的出版信息。
+ %
+ \newtoggle{bbx:gbpub}
+ \DeclareBibliographyOption{gbpub}[true]{%
+ %\settoggle{bbx:gbpub}{#1} %或采用下面这一句
+ \ifstrequal{#1}{false}{\togglefalse{bbx:gbpub}}{\toggletrue{bbx:gbpub}}}
+
+ %
+ % 增加控制析出文献来源前的标点符号//输出的选项
+ % v1.0k, 2018.04.20,added in by hzz
+ \newtoggle{bbx:gbpunctin}
+ \DeclareBibliographyOption{gbpunctin}[true]{%
+ \settoggle{bbx:gbpunctin}{#1}}
+
+ %
+ % 增加一个处理佚名或noauthor的控制选项
+ %
+ % 原理方法:在顺序编码制中不需要使用,为与作者年制的兼容性考虑,这里也增加避免报错
+ \DeclareBibliographyOption{gbnoauthor}[true]{}%
+
+
+ %
+ %为日期控制格式增加一个gb7714-2015选项
+ %
+ \csdef{mkdaterangegb7714-2015}#1{%
+ \begingroup
+ \blx@metadateinfo{#1}%
+ \iffieldundef{#1year}
+ {}
+ {\printtext[#1date]{%
+ \blx@gbdate{#1}{}}}%
+ \endgroup}
+
+ \newrobustcmd*{\blx@gbdate}[3][]{%
+ \dateeraprintpre{#2#3year}%
+ \blx@imc@forcezerosy{\thefield{#2#3year}}\ifblank{#1}{}{\printfield{#1}}%
+ \iffieldundef{#2#3month}{}{\hyphen\blx@imc@forcezerosmdt{\thefield{#2#3month}}}%
+ \iffieldundef{#2#3day}{}{\hyphen\blx@imc@forcezerosmdt{\thefield{#2#3day}}}}
+
+ %为姓名格式选择增加的计数器
+ \newcounter{gbnamefmtcase}
+ \def\thegbnamefmtcase{\the\c@gbnamefmtcase}
+ %为数字标签格式选择增加的计数器/命令
+ \newcommand{\mkgbnumlabel}[1]{\mkbibbrackets{#1}}
+ \def\gbbiblabelopt@bracket{\renewcommand{\mkgbnumlabel}[1]{\mkbibbrackets{##1}}}
+ \def\gbbiblabelopt@parens{\renewcommand{\mkgbnumlabel}[1]{\mkbibparens{##1}}}
+ \def\gbbiblabelopt@dot{\renewcommand{\mkgbnumlabel}[1]{##1\adddot}}
+ \def\gbbiblabelopt@plain{\renewcommand{\mkgbnumlabel}[1]{##1}}
+ \def\gbbiblabelopt@box{\renewcommand{\mkgbnumlabel}[1]{\framebox{##1}}}
+ \def\gbbiblabelopt@circle{\renewcommand{\mkgbnumlabel}[1]{\textcircled{##1}}}
+ %为文献表中数字标签对齐方式选择增加的计数器/命令
+ \newcounter{gbalignlabel}
+ \def\thegbalignlabel{\the\c@gbalignlabel}
+ %为引用标签标注/文献表中本地化字符串中英文选择增加的计数器/命令
+ \newcounter{gbcitelocalcase}
+ \newcounter{gbbiblocalcase}
+ \def\thegbcitelocalcase{\the\c@gbcitelocalcase}
+ \def\thegbbiblocalcase{\the\c@gbbiblocalcase}
+
+ % 增加不同语言排序的切换选项
+ % numeric样式,不使用该选项,这里给出仅为兼容性考虑
+ % v1.0q,20190307,hzz
+ %
+ \DeclareBibliographyOption[string]{gblanorder}[chineseahead]{}
+
+
+ %
+ % 增加本地化字符串的中英文切换选项
+ % gbcitelocal指标注中的本地化字符串
+ % gbbiblocal 指文献表中的本地化字符串
+ % gblocal 指设置文献表和标注中的本地化字符串
+ % v1.0o,20190103,hzz
+ %
+ \DeclareBibliographyOption[string]{gbcitelocal}[gb7714-2015]{%
+ \ifstrequal{#1}{gb7714-2015}{\setcounter{gbcitelocalcase}{0}}{}%
+ \ifstrequal{#1}{chinese}{\setcounter{gbcitelocalcase}{1}}{}%
+ \ifstrequal{#1}{english}{\setcounter{gbcitelocalcase}{2}}{}%
+ }
+
+ \DeclareBibliographyOption[string]{gbbiblocal}[gb7714-2015]{%
+ \ifstrequal{#1}{gb7714-2015}{\setcounter{gbbiblocalcase}{0}}{}%
+ \ifstrequal{#1}{chinese}{\setcounter{gbbiblocalcase}{1}}{}%
+ \ifstrequal{#1}{english}{\setcounter{gbbiblocalcase}{2}}{}%
+ }
+
+ \DeclareBibliographyOption[string]{gblocal}[gb7714-2015]{%
+ \ExecuteBibliographyOptions{gbbiblocal=#1}%
+ \ExecuteBibliographyOptions{gbcitelocal=#1}%
+ }
+
+ %
+ % 增加序号标签格式处理选项
+ % v1.0l,20180623,hzz
+ %
+ \DeclareBibliographyOption[string]{gbbiblabel}[bracket]{%
+ \csuse{gbbiblabelopt@#1}
+ }
+
+ %
+ % 增加姓名大小写格式处理选项
+ %
+ \DeclareBibliographyOption[string]{gbnamefmt}[uppercase]{%
+ \ifstrequal{#1}{uppercase}{\setcounter{gbnamefmtcase}{0}}{}%
+ \ifstrequal{#1}{lowercase}{\setcounter{gbnamefmtcase}{1}}{}%
+ \ifstrequal{#1}{givenahead}{\setcounter{gbnamefmtcase}{2}}{}%given-family
+ \ifstrequal{#1}{familyahead}{\setcounter{gbnamefmtcase}{3}}{}
+ \ifstrequal{#1}{pinyin}{\setcounter{gbnamefmtcase}{4}}{}%family-given
+ \ifstrequal{#1}{reverseorder}{\setcounter{gbnamefmtcase}{5}}{}%family-given/given-family
+ }
+
+
+ %
+ % 增加标签对齐选项
+ %
+ % right是默认的右对齐,left是左对齐,gb7714-2015是项对齐方式
+ \DeclareBibliographyOption[string]{gbalign}[right]{%
+ \ifstrequal{#1}{right}{\setcounter{gbalignlabel}{0}}{}
+ \ifstrequal{#1}{left}{\setcounter{gbalignlabel}{1}}{}
+ \ifstrequal{#1}{center}{\setcounter{gbalignlabel}{2}}{}
+ \ifstrequal{#1}{gb7714-2015}{\setaligngbstyle}{}
+ }
+
+
+ %
+ % 选项设置
+ %
+ \ExecuteBibliographyOptions{
+ %firstinits=true, 针对biblatex<3.3版本的选项设置,比如texlive2015中的3.0版
+ giveninits=true, %针对3.3<=biblatex<3.5版本,比如texlive2016中的3.4版
+ sorting=none,
+ useprefix=true, %名字的信息包括前缀
+ date = year, %日期仅写到年
+ maxbibnames = 3,%设置名字最大数量
+ minbibnames = 3, %设置缩减后的名字最小数量
+ maxitems = 1,%设置列表最大数量
+ minitems = 1, %设置缩减后的列表最小数量
+ isbn=false,
+ gbstyle=true,
+ gbtype=true,
+ gbcodegbk=false,
+ gbstrict=true,
+ gbtitlelink=false,
+ gbfieldstd=false,
+ gbpub=true,
+ gbpunctin=true,
+ gbbiblabel=bracket,
+ gbnamefmt=uppercase,
+ gbalign=right,
+ gbctexset=true,
+ %urldate =edtf, %针对3.7<=biblatex<=3.9版本的选项设置,比如texlive2017中的3.7版
+ %eventdate =edtf,%针对3.7<=biblatex<=3.9版本的选项设置,比如texlive2017中的3.7版
+ urldate =gb7714-2015, %iso,针对3.10<=biblatex版本的选项设置,比如texlive2018中的3.11版
+ eventdate =gb7714-2015,
+ gblocal=gb7714-2015,
+ }
+
+
+%=====================================================================
+% 设置本地化字符串
+%=====================================================================
+ %
+ % 新建当地化字符串,用来记录“等”字符、“和”字符
+ %
+ \NewBibliographyString{andotherscn}
+ \NewBibliographyString{andothersincitecn}
+ \NewBibliographyString{andothersincite}
+ \NewBibliographyString{andcn}
+ \NewBibliographyString{andothersjp}
+ \NewBibliographyString{andotherskr}
+ \NewBibliographyString{andjp}
+ \NewBibliographyString{andkr}
+ \NewBibliographyString{andincitecn}
+ \NewBibliographyString{andincite}
+ \NewBibliographyString{volumecn}
+ \NewBibliographyString{numbercn}
+ \NewBibliographyString{serialcn}
+ \NewBibliographyString{incn}
+ \NewBibliographyString{mathesiscn}
+ \NewBibliographyString{phdthesiscn}
+ \NewBibliographyString{editorcn}
+ \NewBibliographyString{editorscn}
+ \NewBibliographyString{bytranslatorcn}
+
+
+ %
+ % 修改一些当地化字符串
+ %
+ % 原理方法:直接利用当地化格式english修改出一些中文的格式,具体修改内容参考english.lbx文件
+ % 当然也可以增加比如上面定义的andotherscn
+ % 注意:在lbx文件和bbx文件中定义本地字符串的不同语法,两个参数和一个参数的区别
+ \DefineBibliographyStrings{english}{
+ bibliography = {\str@bibliography},
+ references = {\str@references},
+ bytranslatorcn = {\str@bytranslator},%\addperiod,%将trans. by 改成 译
+ and = {\addcomma},%将第2和3人名间的and符号改成逗号,用\finalnamedelim命令也可以定义,参见3.9.1节
+ andcn = {\addcomma},%and本地化字符串的中文对应词
+ andincitecn = {\addcomma},%将标注中的分开,便于与文献表中的区分
+ andincite = {\addcomma},
+ %andothers = {et al.}, %将超过3个人名的省略,et al.改成为 等
+ andotherscn = {\str@andotherscn}, %将超过3个人名的省略,et al.改成为 等
+ andothersincitecn={\str@andotherscn},%将标注中的分开,便于与文献表中的区分
+ andothersincite={et al\adddot},
+ backrefpage = {\str@backrefpage:},
+ backrefpages = {\str@backrefpages:},
+ in={in\intitlepunct},
+ volumecn={\str@volumecn},
+ numbercn={\str@numbercn},
+ serialcn={\str@serialcn},
+ andothersjp={他},
+ andotherskr={외},
+ andjp={和},
+ andkr={和},
+ incn={\str@incn\addcolon\addspace},
+ mathesiscn={\str@mathesiscn},
+ phdthesiscn={\str@phdthesiscn},
+ editorscn={\str@editorcn},
+ editorcn={\str@editorcn},
+}
+
+ %
+ % 增加两个命令用于临时的局部的修改本地化字符串
+ % 其中\setlocalbibstring修改缩写字符串,setlocalbiblstring修改长字符串
+ % 注意使用时因为是局部修改,因此要将其与需要修改的引用命令放在一个编组符号内
+ % v1.0t,hzz,20190525
+ \newcommand{\setlocalbibstring}[2]{%
+ \csdef{abx@sstr@#1}{#2}}
+ \newcommand{\setlocalbiblstring}[2]{%
+ \csdef{abx@lstr@#1}{#2}}
+
+%=====================================================================
+% 动态数据修改
+%=====================================================================
+%
+% 各层次的数据映射和动态修改
+%
+% 原理方法:
+% 1. 进行语言包括中英文判断,并设置和记录,比如记录到userf,usere中
+% 2. 增加文献标识符如[M],[J]等,对一些容易混淆的域进行设置以增强兼容性
+% 3. \DeclareSourcemap命令对于biblatex3.11以下版本只能出现一次,3.11版开始支持多个
+% 4. \DeclarestyleSourcemap在biblatex v3.7版开始可以支持出现多次
+% 5. 把作者和译者信息准确的记录到userf,usere中,用于后面判断是否是cjk字符。
+% 注意:这里用userf,usere而不是namee,namef,是因为只有把name列表转成域,才能有效读取姓名中的字符,
+% 如果用namee,namef,name信息会自动解析,所以就不能为cjk判断提供需要的信息
+%
+% 不同的文献类型使用相同的驱动输出可以有5种方法:
+% 1. 是数据源层的映射,将其它类型转换为某一要使用驱动的类型
+% 2. 是样式层映射,也是将其它类型转换为某一要使用驱动的类型
+% 3. 是驱动层映射,也是将其它类型转换为某一要使用驱动的类型
+% 4. 定义驱动类型别名DeclareBibliographyAlias,将其它类型定义为某一要使用驱动的类型的别名
+% 驱动别名定义本质上是做了驱动层映射
+% 5. 直接定义不同的类型的驱动,但驱动内容相同。
+%
+% 关于数据映射和驱动使用的考虑如下:
+% 1. 为避免利用biber输出bib文件时的数据变动,尽量不在数据源层映射做类型转换
+% 2. 为减少代码量,尽量少做内容相同的不同类型驱动
+% 3. 因此类型相关的处理主要在样式层映射、驱动层映射、驱动别名
+% 4. 由于biblatex默认做的驱动别名处理可能增加一些信息比如masterthesis转thesis时增加的type
+% 可以在样式层映射做某些需要避免这种默认处置的转换
+% 5. 当没有避免默认行为的需求时,全部采用驱动别名的方式处理,等价于驱动层的映射
+%
+% 文献类型和驱动考虑如下:
+% 1. 连续出版物及析出文献有其特殊性,因此考虑两类periodical和article
+% newpaper映射为article,并以note域做区分特殊处理
+% 2. 专著和专著中的析出文献是主要的类型,因此考虑book和inbook
+% standard映射为book或inbook,并以note域做区分特殊处理
+% collection和proceedings基本与book类似,因此做book驱动别名处理
+% incollection和inproceedings基本与inbook类似,因此做inbook驱动别名处理
+% 3. 专利类型有其特殊性,考虑patent类型
+% 4. 电子资源类型有其特殊性,考虑online类型
+% 5. 报告类型与book有点类似,出版项处理与book一样,但有时又要有修改和更细日期
+% 因此考虑用一种类型来输出,使用report类型
+% 6. 手册/学位论文等类型与book有点类似,但对于出版项处理时,有缺省时,直接省略,
+% 同时有version和edition的区别,因此考虑用一种类型来输出,使用manual类型
+% 7. 包括报告,学位论文在内的其它所有的类型,都做一个判断,当没有出版项时,
+% 且存在网址信息时,将其转换为online类型输出,否则都做为manual类型输出。
+% 8. 备选类型misc当存在网址时直接转换为online,由于howpublished域可用于描述
+% 更多的信息,因此不存在网址时,独立做一个备选格式
+% 9. 出版项主要以如下方式处理:
+% (a) location+institution+date 仅用于连续出版物
+% (b)publisher+location+date 用于需要完整输出出版项的类型,比如book,collection,proceedings,in*,report
+% (c)institution+location+date 用于出版项缺失时不输出的类型,包括manual,thesis,archive等其他类型
+% (d)printlist{insitution} 用于电子资源,仅输出出版者或组织,为数据映射方便,本来默认的organization域转换为用insitution输出。
+% (e) 不输出,主要用于连续出版物析出的文献
+% 10. 日期以如下方式处理:
+% date 由于存在biblatex选项,因此通过选项控制,数据源为date解析数据或year
+% urldate 由于存在biblatex选项,因此通过选项控制,输出到日,且用[]包围,数据源为urldate
+% newsdate 用于公告日期,公开日期或新闻日期,输出到日,但无包围符号,数据源为date
+% modifydate 用于更新或修改日期,输出到日,且用()包围,数据源为date或enddate或eventdate
+
+\DeclareSourcemap{%\perdatasource{examples.bib}
+\maps[datatype=bibtex]{%
+ \map{%当没有作者时将editor转成author
+ \pernottype{inbook}%因为in系列中editor可能用来表示bookauthor,所以排除
+ \pernottype{inproceedings}
+ \pernottype{incollection}
+ \pernottype{periodical}%因为peridical直接使用editor,所以排除
+ %注意notfield在低版本biblatex中没有
+ %\step[notfield=author,final]%当author不存在,将editor复制给author
+ \step[fieldsource=editor,fieldtarget=author]%并删除editor
+ }
+ \map{%当没有作者时将translator转成author
+ \pernottype{inbook}
+ \pernottype{inproceedings}
+ \pernottype{incollection}
+ %\step[notfield=author,final]%当author不存在,将translator复制给author
+ \step[fieldsource=translator,fieldtarget=author]%并删除translator
+ }
+ \map{%让address和location同步,biblatex中address是location的别名
+ %因此输出的时候只有location信息,但处理过程中是可以存在address的。
+ \step[notfield=address,final]%
+ \step[fieldsource=location,final]
+ \step[fieldset=address,origfieldval]
+ }
+ \map{
+ \step[notfield=location,final]%
+ \step[fieldsource=address,final]
+ \step[fieldset=location,origfieldval]
+ }
+ \map{%处理在bib文件用mark标记文献类型标识符的情况
+ \step[fieldsource=mark,final]
+ \step[fieldset=usera, origfieldval]
+ }
+ \map{%处理在bib文件中直接给出文献的姓名格式为lowercase的情况
+ \step[fieldsource=nameformat,match=lowercase,final]
+ \step[fieldset=namefmtid,fieldvalue={1}]
+ }
+ \map{%处理在bib文件中直接给出文献的姓名格式为givenahead的情况
+ \step[fieldsource=nameformat,match=givenahead,final]
+ \step[fieldset=namefmtid,fieldvalue={2}]
+ }
+ \map{%处理在bib文件中直接给出文献的姓名格式为familyahead的情况
+ \step[fieldsource=nameformat,match=familyahead,final]
+ \step[fieldset=namefmtid,fieldvalue={3}]
+ }
+ \map{%处理在bib文件中直接给出文献的姓名格式为pinyin的情况
+ \step[fieldsource=nameformat,match=pinyin,final]
+ \step[fieldset=namefmtid,fieldvalue={4}]
+ }
+ \map{%根据article确定文献类型标识符
+ \pertype{article}
+ \step[fieldset=usera, fieldvalue={J}]
+ }
+ \map{%根据periodical确定文献类型标识符
+ \pertype{periodical}
+ \step[fieldset=usera, fieldvalue={J}]
+ \step[fieldsource=author] %有时会把author和editor混淆,处理后使用editor
+ \step[fieldset=editor, origfieldval]
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%根据增加一个新闻报纸的类型newspaper确定文献类型标识符
+ \pertype{newspaper}
+ \step[fieldset=usera, fieldvalue={N}]
+ \step[fieldset=note, fieldvalue=news]%因为没有专门的驱动,记录note方便映射为article后判断
+ }
+ \map{%对应增加的一个数据库类型database确定文献类型标识符
+ \pertype{database}
+ \step[fieldset=usera, fieldvalue={DB}]
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%对应增加的一个数据集类型dataset确定文献类型标识符
+ \pertype{dataset}
+ \step[fieldset=usera, fieldvalue={DS}]%
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%对应增加的一个软件类型software确定文献类型标识符
+ \pertype{software}
+ \step[fieldset=usera, fieldvalue={CP}]
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%对应增加的一个舆图类型map确定文献类型标识符
+ \pertype{map}
+ \step[fieldset=usera, fieldvalue={CM}]%
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%对应增加的一个档案类型archive确定文献类型标识符
+ \pertype{archive}
+ \step[fieldset=usera, fieldvalue={A}]
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%因为misc类型本身就是没有类型,而不像其它文献有明确的类型,所以
+ %当misc类型带有网址时,直接将其转换为online类型
+ \pertype{misc}
+ \step[fieldsource=url,final]
+ \step[typesource=misc,typetarget=online]
+ }
+ \map{%对应增加的一个备选类型misc确定文献类型标识符
+ \pertype{misc}
+ \step[fieldset=usera, fieldvalue={Z}]%
+ }
+ \map{
+ \pertype{book}
+ \pertype{inbook}
+ \step[fieldset=usera, fieldvalue={M}]
+ \step[fieldsource=version] %有时会把version和edition混淆,处理后直接用edition
+ \step[fieldset=edition, origfieldval]
+ }
+ \map{%兼容老的standard类型,确定文献类型标识符
+ \pertype{standard}
+ \step[fieldset=usera, fieldvalue={S}]
+ \step[fieldset=note, fieldvalue=standard]%因为没有专门的驱动,记录note方便映射为book和inbook后判断
+ }
+ \map{
+ \pertype{patent}
+ \step[fieldset=usera, fieldvalue={P}]
+ }
+ \map{
+ \pertype{inproceedings}
+ \pertype{conference}%兼容老的conference类型
+ \step[fieldset=usera, fieldvalue={C}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{proceedings}
+ \step[fieldset=usera, fieldvalue={C}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{incollection}
+ \step[fieldset=usera, fieldvalue={G}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{collection}
+ \step[fieldset=usera, fieldvalue={G}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{report}
+ \pertype{techreport}%兼容老的techreport类型
+ \step[fieldset=usera, fieldvalue={R}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{thesis}
+ \pertype{mastersthesis}%兼容老的mastersthesis和phdthesis类型
+ \pertype{phdthesis}
+ \step[fieldset=usera, fieldvalue={D}]
+ \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{
+ \pertype{online}
+ \pertype{electronic}%兼容老的electronic类型
+ \pertype{www}%兼容老的www类型
+ \step[fieldset=usera, fieldvalue={EB}]
+ \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]%因为online的出版项处理类似手册
+ \step[fieldsource=organization]%有时会把organization和institution混淆,处理后使用institution,以增强兼容性
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{
+ \pertype{manual}
+ \step[fieldset=usera, fieldvalue={A}]
+ \step[fieldsource=edition]%有时会把version和edition混淆,处理后使用version
+ \step[fieldset=version, origfieldval]
+ \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ \step[fieldsource=organization]%有时会把organization和institution混淆,处理后使用institution,以增强兼容性
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{
+ \pertype{unpublished}
+ \step[fieldset=usera, fieldvalue={Z}]
+ }
+ \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
+ \step[fieldsource={author}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
+ }
+ \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
+ \step[fieldsource={editor}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
+ }%
+ \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
+ \step[fieldsource={translator}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
+ }%
+ \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
+ \step[fieldsource={bookauthor}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
+ }%
+ \map{%处理一些用year表示date的情况
+ %这样处理将会设置date域,并使得labeldatesource变为空,因为date的前缀为空(如果是urldate,那么labeldatesource就是url)。
+ %同时date域会被biblatex自动解析为year,month,day,并且覆盖原来的year信息
+ \step[fieldsource=year]
+ \step[fieldset=date, origfieldval]
+ }
+ \map{%将entrykey放入keywords中用于后期使用
+ \step[fieldsource=entrykey]
+ \step[fieldset=keywords, origfieldval]
+ }
+ \map{\step[fieldsource=title,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=userd,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=title,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=userd,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=title,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=userd,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=title,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=userd,fieldvalue={korean}]%韩语
+ }
+ \map{%文献题名的中文判断,将信息保存到userd中,避免因为标签生成原因导致title域被清除而产生问题
+ \step[fieldsource=title, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%
+ \step[fieldset=userd, fieldvalue={chinese}]
+ }
+ \map{%将没有设置userd,且存在title域的默认设置为英文
+ \step[fieldsource=title,final]
+ \step[fieldset=userd,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=author,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=userf,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=author,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=userf,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=author,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=userf,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=author,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=userf,fieldvalue={korean}]%韩语
+ }
+ \map{%作者的中文判断
+ \step[fieldsource=author, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]
+ \step[fieldset=userf, fieldvalue={chinese}]
+ }
+ \map{%将没有设置userf,且存在author域的默认设置为英文
+ \step[fieldsource=author,final]
+ \step[fieldset=userf,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=translator,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=usere,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=translator,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=usere,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=translator,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=usere,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=translator,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=usere,fieldvalue={korean}]%韩语
+ }
+ \map{%译者的中文判断
+ \step[fieldsource=translator, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]
+ \step[fieldset=usere, fieldvalue={chinese}]
+ }
+ \map{%将没有设置usere,且存在translator域的默认设置为英文
+ \step[fieldsource=translator,final]
+ \step[fieldset=usere,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=editor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=userc,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=editor,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=userc,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=editor,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=userc,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=editor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=userc,fieldvalue={korean}]%韩语
+ }
+ \map{%编者的中文判断
+ \step[fieldsource=editor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5
+ \step[fieldset=userc, fieldvalue={chinese}]
+ }
+ \map{%将没有设置userc,且存在editor域的默认设置为英文
+ \step[fieldsource=editor,final]
+ \step[fieldset=userc,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=bookauthor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=userb,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=bookauthor,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=userb,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=bookauthor,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=userb,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=bookauthor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=userb,fieldvalue={korean}]%韩语
+ }
+ \map{%编者的中文判断
+ \step[fieldsource=bookauthor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5
+ \step[fieldset=userb, fieldvalue={chinese}]
+ }
+ \map{%将没有设置userc,且存在editor域的默认设置为英文
+ \step[fieldsource=bookauthor,final]
+ \step[fieldset=userb,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=userd,final]%userd存在则用根据标题的语言设定language
+ \step[fieldset=language,origfieldval]%本身language存在则不设定
+ }
+ \map{\step[fieldsource=userf,final]%userd不存在,而userf存在则根据author的语言设定language
+ \step[fieldset=language,origfieldval]
+ }%如果没有作者和标题,那么剩下的最可能有意义的只有网址了,而网址通常是英文的,因此不用再进一步对其它域进行判断了。
+ \map{%将没有设置的language设置成en,即认为不是中文的就是英文的。
+ \step[fieldset=language,fieldvalue={english}]
+ }
+ \map{%一条文献的语言已经设定在language域中,由于出版项相关宏中使用userd判断,
+ %所以将一条文献的主体语言设定到userd中,本身前面userd已经设定,但没有处理无标题的情况,
+ %这里的处理等价于没有标题时,利用作者的语言设定userd,再没有作者,则默认用英文设定userd
+ \step[fieldsource=language]
+ \step[fieldset=userd,origfieldval]
+ }
+ \map{%当文献给出language域时,设置文献要使用的本地化字符串的语言
+ \step[fieldsource=language,match=\regexp{(e|E)(n|N)(g|G)(l|L)(i|I)(s|S)(h|H)},final]
+ \step[fieldset=langid,fieldvalue={english}]
+ }
+ \map{
+ \step[fieldsource=language,match=\regexp{(r|R)(u|U)(s|S)(s|S)(i|I)(a|A)(n|N)},final]
+ \step[fieldset=langid,fieldvalue={russian}]
+ }
+ \map{%
+ \step[fieldsource=language,match=\regexp{(f|F)(r|R)(e|E)(n|N)(c|C)(h|H)},final]
+ \step[fieldset=langid,fieldvalue={french}]
+ }
+ \map{%
+ \step[fieldsource=language,match=\regexp{(c|C)(h|H)(i|I)(n|N)(e|E)(s|S)(e|E)},final]%中日韩语目前都用english,
+ \step[fieldset=langid,fieldvalue={english}]
+ }
+ \map{%
+ \step[fieldsource=language,match=\regexp{(j|J)(a|A)(p|P)(a|A)(n|N)(e|E)(s|S)(e|E)},final]%中日韩语目前都用english,
+ \step[fieldset=langid,fieldvalue={english}]
+ }
+ \map{%
+ \step[fieldsource=language,match=\regexp{(k|K)(o|O)(r|R)(e|E)(a|A)(n|N)},final]%中日韩语目前都用english,
+ \step[fieldset=langid,fieldvalue={english}]
+ }
+}
+}
+
+
+ %
+ % 修改输入的参考文献数据,样式层的操作
+ %
+ % 原理方法:biblatex3.4以上版本map可使用foreach选项来处理特殊字符
+ \DeclareStyleSourcemap{
+ \maps[datatype=bibtex]{
+ \map{%尝试未定义数据模型的standard类型映射为其他类型book或inbook,
+ %standard类型在blx-dm中有出现,但仅定义了类型,域和约束等都没有定义
+ %因为可能要映射两种类型,所以不能在驱动层处理,因为要做判断
+ \step[fieldsource=booktitle,final]%当存在booktitle域是映射为inbook
+ \step[typesource=standard, typetarget=inbook, final]
+ }
+ \map{%尝试未定义数据模型的standard类型映射为book,standard类型在blx-dm中有出现,但仅定义了类型,域和约束等都没有定义
+ \step[typesource=standard, typetarget=book, final]%当不存在booktitle域是映射为book
+ }
+% \map{%先于标准样式的driver层映射,将其先映射过来,并取消type设置
+% \step[typesource=mastersthesis, typetarget=thesis, final]
+% %\step[fieldset=type, fieldvalue=mathesis]
+% }
+% \map{%先于标准样式的driver层映射,将其先映射过来,并取消type设置
+% \step[typesource=phdthesis, typetarget=thesis, final]
+% %\step[fieldset=type, fieldvalue=phdthesis]
+% }
+ \map{%先于标准样式的driver层映射,将其先映射过来,并取消type设置
+ \step[typesource=techreport, typetarget=report, final]
+ %\step[fieldset=type, fieldvalue=techreport]
+ }
+ \map{%
+ \pertype{report}
+ \step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=report,typetarget=online]
+ \step[fieldset=note,fieldvalue={report}]
+ }
+ \map{%
+ \pertype{thesis}
+ \step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=thesis,typetarget=online]
+ }
+ \map{%
+ \pertype{manual}
+ \step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=manual,typetarget=online]
+ }
+ \map{%
+ \pertype{unpublished}
+ \step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=unpublished,typetarget=online]
+ }
+ \map{%
+ \pertype{database}
+ \step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=databasetypetarget=online]
+ }
+ \map{%
+ \pertype{dataset}
+ \step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=dataset,typetarget=online]
+ }
+ \map{%
+ \pertype{software}
+ \step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=software,typetarget=online]
+ }
+ \map{%
+ \pertype{map}
+ \step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=map,typetarget=online]
+ }
+ \map{%
+ \pertype{archive}
+ \step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=archive,typetarget=online]
+ }
+ \map[overwrite]{%这里还必须有overwrite,注意不同版本存在差异,比如texlive2015变16后biber有变化(20161207修改正确)
+ \step[fieldsource=note, final]%将note域信息复制给keywords,用于输出时容易区分标准和报纸
+ \step[fieldset=keywords, fieldvalue={,}, append]
+ \step[fieldset=keywords, origfieldval, append]
+ }
+ \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{
+ \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\#}, replace=\regexp{$1\\\#}]
+ }
+ \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{
+ \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\%}, replace=\regexp{$1\\\%}]
+ }
+ \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,%
+ address,location,institution,organization}]{
+ \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ }
+ }
+
+%
+%驱动别名等价于驱动层映射
+%
+\DeclareBibliographyAlias{newspaper}{article}%
+\DeclareBibliographyAlias{inproceedings}{inbook}%会议论文文献类型驱动
+\DeclareBibliographyAlias{conference}{inbook}%会议论文文献类型驱动
+\DeclareBibliographyAlias{incollection}{inbook}%文集中析出文献类型驱动
+\DeclareBibliographyAlias{collection}{book}%%文集类型驱动
+\DeclareBibliographyAlias{proceedings}{book}%会议论文集文献类型驱动
+\DeclareBibliographyAlias{thesis}{manual}%学位论文驱动
+\DeclareBibliographyAlias{unpublished}{manual}%其它类型驱动
+\DeclareBibliographyAlias{database}{manual}
+\DeclareBibliographyAlias{dataset}{manual}
+\DeclareBibliographyAlias{software}{manual}
+\DeclareBibliographyAlias{map}{manual}
+\DeclareBibliographyAlias{archive}{manual}
+
+
+%=====================================================================
+% 参考文献表环境
+%=====================================================================
+%
+% 列表格式
+%
+% 增加一个\bibitemindent尺寸用于控制list环境的itemindent
+% v1.0l,20180615,hzz
+% v1.0t,20200319,hzz,增加尺寸\biblabelextend使某些字体下标签宽度不足时可增加标签宽度
+\setlength{\bibhang}{\biblabelsep}%
+\newlength{\bibitemindent}
+\setlength{\bibitemindent}{0pt}
+\newlength{\biblabelextend}
+\setlength{\biblabelextend}{0pt}
+
+
+\defbibenvironment{bibliography}
+ {\list
+ {\printtext[labelnumberwidth]{%
+ \printfield{labelprefix}%
+ \printfield{labelnumber}}}
+ {\addtolength{\labelnumberwidth}{\biblabelextend}%
+ \setlength{\labelwidth}{\labelnumberwidth}%
+ \setlength{\labelsep}{\biblabelsep}%
+ \setlength{\leftmargin}{\bibhang}%
+ \addtolength{\leftmargin}{\labelnumberwidth}%
+ \setlength{\itemindent}{\bibitemindent}%
+ \setlength{\itemsep}{\bibitemsep}%
+ \setlength{\parsep}{\bibparsep}}%
+ \renewcommand*{\makelabel}[1]{\hss##1}}
+ {\endlist}
+ {\item}
+
+%
+% 顺序编码制-标签对齐方式处理
+%
+% 原理方法:利用选项提供的计数器数值做选择
+% 左对齐,右对齐为list环境下的处理,此时list环境的\labelwidth只能设置一个,是最宽标签的宽度
+% 项对齐则是在段落环境下做的处理。
+% 左对齐时,参考文献各项内容对齐,序号标签与参考文献项内容的间距可变
+% 右对齐时,参考文献各项内容对齐,序号标签与参考文献项内容的间距相等,标签与页边距离可变
+% 项对齐时,序号标签贴在页边,序号标签与参考文献项内容的间距相等
+% 修改序号标签格式为:
+% \DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}} %源来自numeric.BBX
+% \DeclareFieldFormat{labelnumberwidth}{\ttfamily\mkbibbrackets{#1}\hfill}
+\DeclareFieldFormat{labelnumberwidth}{%
+\ifcase\value{gbalignlabel}%右对齐,整个标签为右对齐
+ \mkgbnumlabel{#1}%
+\or%左对齐,整个标签为左对齐
+ \mkgbnumlabel{#1}\hfill%
+\or%中间对齐,比如:序号数字居于[]中间
+ \hfil\mkgbnumlabel{\hfill#1\hfill}\hfil%
+\fi}
+
+%
+% 修改序号标签格式为以各条参文献为基础进行对齐的方式,即序号与条目内容间隔相等的方式。
+\def\setaligngbstyle{%
+\def\blx@bibitem##1{%
+ \blx@ifdata{##1}
+ {\begingroup
+ \blx@getdata{##1}%
+ \blx@bibcheck
+ \iftoggle{blx@skipentry}{}{%
+ \blx@setdefaultrefcontext{##1}%
+ \global\let\blx@noitem\@empty
+ \blx@setoptions@type\abx@field@entrytype
+ \blx@setoptions@entry
+ \blx@thelabelnumber
+ \addtocounter{instcount}\@ne
+ \blx@initsep
+ \blx@namesep
+ \csuse{blx@item@\blx@theenv}\relax
+% \blx@initsep %移动到上面去,恢复bibnamesep等的作用机制
+% \blx@namesep
+ \csuse{blx@hook@bibitem}%
+ \blx@execute
+ \blx@initunit
+ \blx@anchor
+ \blx@beglangbib
+ \bibsentence
+ \blx@pagetracker
+ \blx@driver\abx@field@entrytype
+ \blx@postpunct
+ \blx@endlangbib}%
+ \par\endgroup}%这里增加了一个\par
+ {}}
+\newlength{\lengthid}
+\newlength{\lengthlw}
+\newcommand{\itemcmd}{%
+\settowidth{\lengthid}{\mkgbnumlabel{\printfield{labelnumber}}}
+\addtolength{\lengthid}{\biblabelsep}
+\setlength{\lengthlw}{\textwidth}
+\addtolength{\lengthlw}{-\lengthid}
+\addvspace{\bibitemsep}%恢复\bibitemsep的作用
+%\parshape 2 0em \textwidth \lengthid \lengthlw
+\hangindent\lengthid
+\mkgbnumlabel{\printfield{labelnumber}}%
+\hspace{\biblabelsep}}
+%
+% 简单的段落环境
+\defbibenvironment{bibliography}
+{\begingroup\setlength{\parindent}{0em}}
+{\endgroup}
+{\itemcmd}}
+
+
+%=====================================================================
+% 设置单元或块等的标点
+%=====================================================================
+\renewrobustcmd*{\bibinithyphendelim}{\addhighpenspace}%用于处理姓名中名部分存在-的情况,比如ZHANG Yu-xin
+\renewcommand*{\subtitlepunct}{\addcolon\addspace} %修改标题和其它标题信息间的标点,来源biblatex.def,
+%
+% 利用set实现的多语言文献不同语言间的分隔符
+% 20170411,双语之间用newline替换par,避免采用gb7714-2015的项对齐方式第二语言间分段导致没有缩进
+%
+% 原理方法:set方法可以参考3.11.5 Entry Sets,4.11.1 Entry Sets
+% 这里调整一下两种语言参考文献的间隔,源来自biblatex.def
+\renewcommand*{\entrysetpunct}{\adddot\newline\nobreak}
+\renewcommand*{\bibpagespunct}{\addcolon\addthinspace}%%页码引用格式的修改,修改为用冒号
+%\renewcommand{\relateddelim}{}%\par
+
+%=====================================================================
+% 修改域的格式,重定义域的输出宏
+%=====================================================================
+%
+% 新增文献类型标识符的格式
+% []前的nobreak,从GB4.1节的例子看不应该加,所以去掉
+% 但因为考虑到cjk字符和[]之间可能添加空格,所以仍然加上
+% 而[]中间的内容,从4.6.2节的例子看也是可以分割的,因此内部的nobreak也可以去掉
+%
+\DeclareFieldFormat{gbtypeflag}{%
+\iftoggle{bbx:gbmedium}%
+{\iftoggle{bbx:url}%
+ {\iffieldundef{url}%当存在url时,增加一个OL标识符
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}}%
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\texttt{/}OL]}}%
+ }%
+ {\ifentrytype{online}%
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\texttt{/}OL]}}%
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}}%
+ }}%
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{]}}%
+}
+
+%
+% 新增用于报纸的文献类型标识符的格式
+%
+\DeclareFieldFormat{gbtypeflagn}{%用于报纸newspaper
+\iftoggle{bbx:gbmedium}%
+{\iftoggle{bbx:url}%
+ {\iffieldundef{url}%当存在url时,增加一个OL标识符
+ {\nobreak\printtext{[}\nobreak N\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
+ {\nobreak\printtext{[}\nobreak N\printtext{\texttt{/}OL]}\nobreak}%
+ }%
+ {\nobreak\printtext{[}\nobreak N\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
+}{\nobreak\printtext{[}\nobreak N\printtext{]}\nobreak}%
+}
+
+%
+% 新增用于标准的文献类型标识符的格式
+%
+\DeclareFieldFormat{gbtypeflags}{%用于标准standard
+\iftoggle{bbx:gbmedium}%
+{\iftoggle{bbx:url}%
+ {\iffieldundef{url}%当存在url时,增加一个OL标识符
+ {\nobreak\printtext{[}\nobreak S\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
+ {\nobreak\printtext{[}\nobreak S\printtext{\texttt{/}OL]}\nobreak}%
+ }%
+ {\nobreak\printtext{[}\nobreak S\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
+}{\nobreak\printtext{[}\nobreak S\printtext{]}\nobreak}%
+}
+
+%
+% 重设title等参考文献信息的输出格式
+%
+% 原理方法:修改来自biblatex.def文件的原格式
+\newcommand{\bibtitlefont}{}
+\newcommand{\bibauthorfont}{}
+\newcommand{\bibpubfont}{}
+
+%
+% 作者信息的输出格式
+%
+% 20180425,v1.0k,为作者增加字体控制命令,Hu Zhenzhen
+% 20180603,v1.0l,增加使用nameformat域来选择姓名格式
+\DeclareNameFormat{namefmtselected}{%
+\iffieldundef{namefmtid}{}%
+{\defcounter{gbnamefmtcase}{\thefield{namefmtid}}}%
+\ifcase\value{gbnamefmtcase}%
+ \ifgiveninits
+ {\usebibmacro{name:gbuppercase}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:gbuppercase}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+\or
+ \ifgiveninits
+ {\usebibmacro{name:gblowercase}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:gblowercase}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+\or
+ \ifgiveninits
+ {\usebibmacro{name:given-family}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:given-family}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+\or
+ \ifgiveninits
+ {\usebibmacro{name:family-given}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:family-given}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+\or
+\usebibmacro{name:gbpinyin}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}%
+\or
+ \ifnumequal{\value{listcount}}{1}
+ {\ifgiveninits
+ {\usebibmacro{name:family-given}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:family-given}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+ \ifboolexpe{%
+ test {\ifdefvoid\namepartgiven}
+ and
+ test {\ifdefvoid\namepartprefix}}
+ {}
+ {\usebibmacro{name:revsdelim}}}
+ {\ifgiveninits
+ {\usebibmacro{name:given-family}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:given-family}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}}%
+\fi
+ \usebibmacro{name:andothers}}
+
+\DeclareNameAlias{default}{namefmtselected}%姓名的默认格式采用可选的模式
+\DeclareNameAlias{sortname}{default}% Used in the bibliography %family-given/given-family
+\DeclareNameAlias{citename}{default}% Default used by \citename
+
+\DeclareDelimFormat[bib,biblist]{andothersdelim}{\addcomma\addspace}
+%\DeclareDelimFormat[textcite]{andothersdelim}{\addspace}%
+
+%GB/T 7714-2015 风格,全部大写
+\newbibmacro*{name:gbuppercase}[4]{\bibauthorfont%
+\renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
+\renewcommand*{\revsdnamepunct}{}%
+ \ifuseprefix%
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifdefvoid{#3}{}{%
+ \ifcapital%
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}%
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifprefchar{}{\bibnamedelimc}}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
+ \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{\MakeUppercase{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%后缀前加逗号
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
+ \ifboolexpe{%
+ test {\ifdefvoid{#2}}
+ and
+ test {\ifdefvoid{#3}}}
+ {}{\revsdnamepunct}%
+ \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{\MakeUppercase{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
+ \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%%后缀前加逗号
+}
+
+%GB/T 7714-2015 风格,大小写不变,根据bib文件内输入原样输出
+\newbibmacro*{name:gblowercase}[4]{\bibauthorfont%
+ \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
+ \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifdefvoid{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifprefchar{}{\bibnamedelimc}}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{{#1}}}\isdot%
+ \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%后缀前加逗号
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{{#1}}}\isdot%
+ \ifboolexpe{%
+ test {\ifdefvoid{#2}}
+ and
+ test {\ifdefvoid{#3}}}
+ {}{\revsdnamepunct}%
+ \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}
+ \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%%后缀前加逗号
+}
+
+%中文常见风格,汉语拼音全拼模式
+\newbibmacro*{name:gbpinyin}[4]{\bibauthorfont%
+\renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉,%来源biblatex2.STY
+\renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
+\renewrobustcmd*{\bibnamedelima}{\mbox{-}}%
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifdefvoid{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifprefchar{}{\bibnamedelimc}}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
+ \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\MakeSentenceCase{\mkbibnamegiven{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
+ \ifboolexpe{%
+ test {\ifdefvoid{#2}}
+ and
+ test {\ifdefvoid{#3}}}
+ {}
+ {\revsdnamepunct}%
+ \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{\MakeCapital{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}
+ \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%
+}
+
+
+\def\UrlFont{\rmfamily}%设置url字体为roman字体%\ttfamily
+%\urlstyle{rm} %使用这句也一样
+\setcounter{biburlnumpenalty}{100} %让url可以在数字后断行
+\setcounter{biburlucpenalty}{100} %让url可以在大写字母后断行
+\setcounter{biburllcpenalty}{100} %让url可以在小写字母后断行
+\DeclareFieldFormat{doi}{%
+ \rmfamily{DOI}\addcolon\space
+ \ifhyperref
+ {\href{https://doi.org/#1}{\nolinkurl{#1}}}
+ {\nolinkurl{#1}}}
+
+\DefineBibliographyExtras{english}{\renewcommand*{\bibrangedash}{-}}%将页码间隔符替换会英文的短横线
+
+%
+% beamer中文献标题后的标点问题
+% v1.0k,20180405,为texlive2017以上版本中的beamer兼容性做的处理,Hu Zhenzhen
+%
+% 原理方法:如下代码处理texlive2017以上版本中,beamer中文献的标题后出现两个点的情况:
+% texlive2017以上的beamer中对macro{title}做了patch,正常情况下不会出现两个点的情况,但由于
+% 之前为了处理texlive2015,2016下的title格式添加了adddot,导致出现两个点的情况,而且也影响
+% 析出文献的//符号的输出,因此再次对macro{title}做patch消除beamer中做apptocmd时添加的\newunitpunct
+\@ifclassloaded{beamer}{
+ \DeclareFieldFormat{title}{#1}%
+ \DeclareFieldFormat[article,patent,thesis,unpublished]{title}{#1}
+ \AtBeginDocument{%
+ \patchcmd{\abx@macro@title}{\newunitpunct}{}{}{}}}{}
+
+
+ %
+ % 专利的公告日期、或报纸的日期的输出宏
+ % 20160701,v1.0,新增加
+ % 20180405,为biblatexv3.10版本,出现多出点bug做处理,Hu Zhenzhen
+ %
+ % 原理方法:加上printtext避免破坏异步标点机制
+ % 本可以用\printdate,但由于date选项设置为year,所以仅会给出年份
+ % 所以无法再用选项设置的方法,印象需要用底层的命令
+ % 这里可以用\blx@isodate,但用自定义的\blx@gbdate,以避免版本判断
+ \newbibmacro*{newsdate}{%%
+ \printtext{\blx@gbdate{}{}}%%\blx@isodate{}{}%
+ }
+
+ \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
+ \ifboolexpr{%
+ test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
+ }%
+ {}%更新或修改日期通常有day信息
+ {\iffieldundef{year}{%
+ \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\printtext{(}\printeventdate\printtext{)}}}%
+ {\printtext{(}\printenddate\printtext{)}}%
+ }{\iffieldequalstr{year}{}{%因为year存在,但为空
+ }{\printtext{(}\blx@gbdate{}{}\printtext{)}}%
+ }%
+ }}%
+
+
+ %
+ % biblatex>v3.8版利用related实现双语文献的处理
+ %
+ %为了实现v3.8以上版本的双语文献,采用related的方法代替set方法,因为set方法已经无法实现了,
+ %因为set不再复制其第一个成员的信息。于是定义一个命令,用于动态的修改数据,即添加related域的信息
+ %其中使用了\DeclareStyleSourcemap,但由于其只能出现在导言区中,因此\defdoublelangentry命令也只能出现在导言区中
+ \newcommand{\defdoublelangentry}[2]{%
+ \edef\entrykeya{#1}
+ \edef\entrykeyb{#2}
+ \DeclareStyleSourcemap{
+ \maps[datatype=bibtex]{
+ \map{
+ \step[fieldsource=entrykey, match=\entrykeya, final]
+ \step[fieldset=related, fieldvalue=\entrykeyb]
+ }
+ }
+ }
+ }
+
+ % 关联文献的输出格式
+ %
+ % 关联文献间的分隔符
+ %
+ \renewcommand{\relateddelim}{\adddot\newline\nobreak}%\par,而作者年样式不需要修改,因为没有项对齐的标签问题
+ %
+ % 关联文献块前的分隔符,针对biblatex>3.11
+ %
+ % 原理方法:因为增加了begrelateddelim钩子,所以不需要重定义related输出宏
+ \ifdef{\begrelateddelim}{\renewcommand{\begrelateddelim}{\adddot\newline\nobreak}}{}
+
+
+
+%
+% 新增一个样式用于调整期刊年份的格式,只打印年份
+%
+\newbibmacro*{periodical+issue}{%
+ \printtext{%去掉了[parens]
+ \iffieldundef{issue}
+ {%\usebibmacro{date}%修改为下一句
+ }%
+ {\printfield{issue}%
+ \setunit*{\addspace}%
+ %\usebibmacro{date}%修改为下一句
+ }%
+ }%
+ %\newunit
+}
+
+%
+% 重设专利title的输出,将文献类型标识符输出出去
+%
+\renewbibmacro*{patenttitle}{%原输出来自biblatex.def文件
+ \ifboolexpr{%
+ test{\iffieldundef{title}}%
+ and%
+ test{\iffieldundef{subtitle}}%
+ }%
+ {}%
+ {\printtext[title]{\bibtitlefont%
+ \printfield[titlecase]{title}%
+ \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
+ {}{\setunit{\subtitlepunct}%
+ \printfield[titlecase]{subtitle}}%
+ \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
+ {\setunit{\subtitlepunct}\printfield{titleaddon}}%
+ \setunit{\subtitlepunct}\printfield{number}%写专利号
+ \iftoggle{bbx:gbtype}{\printfield[gbtypeflag]{usera}}{}%
+ %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
+ %\newunit
+ }%
+}%
+}
+
+%
+% 编者类型的本地化字符串输出
+% v1.0q 2019-03-01 hzz
+% 能对不同条目类型作格式设置的域格式,能对不同环境做格式设置的分隔符
+% 能对不同文境作设置的包括排序,标签等
+% 这里因为考虑可能标注和文献表中存在不同,所以用分隔符来输出本地化字符串
+%
+\DeclareDelimFormat{streditortypes}{%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbbiblocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{\thefield{editortype}scn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{\thefield{editortype}skr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{\thefield{editortype}sjp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
+ \or%
+ \bibstring{\thefield{editortype}scn}%
+ \or%
+ \addcomma\addthinspace\bibstring{\thefield{editortype}s}%
+ \fi}%
+%
+\DeclareDelimFormat{streditortype}{%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbbiblocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{\thefield{editortype}cn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{\thefield{editortype}kr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{\thefield{editortype}jp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
+ \or%
+ \bibstring{\thefield{editortype}cn}%
+ \or%
+ \addcomma\addthinspace\bibstring{\thefield{editortype}}%
+ \fi}%
+
+
+%
+% 修改series域的输出格式
+% 2019.05.01,v1.0r,byhzz
+\renewbibmacro*{series+number}{%
+ \printfield{series}%
+ %\setunit*{\addspace}%
+ %\printfield{number}%
+ %\newunit
+ }
+
+%=====================================================================
+%设置驱动格式
+%=====================================================================
+
+%中文环境的局部化代码
+\def\localsetchinesecode{%
+\ifboolexpr{%
+togl{bbx:gbstyle} or test {\iffieldequalstr{userd}{chinese}}%
+}%
+{%
+\iftoggle{bbx:gbfieldstd}{}{%
+\DeclareFieldFormat{title}{##1\adddot\addthinspace}%
+\DeclareFieldFormat{journaltitle}{##1\isdot}%添加\isdot用于缩写名带点情况,将其转换为缩写点,便于标点的追踪
+\DeclareFieldFormat{issuetitle}{##1}%
+\DeclareFieldFormat{maintitle}{##1}%
+\DeclareFieldFormat{booktitle}{##1}%
+\DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉
+ [article,patent,thesis,unpublished]%
+ {title}{##1\adddot\addthinspace}%\mkbibquote{##1\isdot}
+\DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉
+ [inbook,incollection,inproceedings]%
+ {title}{##1}%\nopunct\unspace
+\DeclareFieldFormat{url}{\url{##1}}%%url相关输出,url域修改如本行,源来自biblatex.def
+%
+% 标题的字母大小写格式修改
+%
+% 注意:修改标题的字母大小写,不能用前面的title的格式而要用titlecase
+% 因为titlecase is applied to the contents of the field directly,title is not
+%\DeclareFieldFormat{titlecase}{\MakeCapital##1}%重设标题格式,将其修改为首字母大写
+\DeclareFieldFormat{titlecase}{\iftoggle{bbx:titlelink}{%
+\iffieldundef{url}{\MakeCapital##1}{%
+\href{\thefield{url}}{##1}}}{\MakeCapital##1}}%重设标题格式,将其修改为首字母大写
+\DeclareFieldFormat{pages}{##1}%去掉前面引导页码的pp.等字符,\mkpageprefix[bookpagination]{##1}
+}%
+%
+% 修改译者位置格式
+% v1.0w,20210401,hzz,增加对英文等其它语言译者的处理
+%
+% 原理方法:修改来自biblatex.def文件的bytranslator+others宏的格式
+\renewbibmacro*{bytranslator+others}{\bibauthorfont%
+ \ifnameundef{translator}
+ {}
+ {\iffieldequalstr{usere}{chinese}{}{\usebibmacro{bytranslator+othersstrg}}
+ %\setunit{\addspace}%
+ \printnames[bytranslator]{translator}%
+ \clearname{translator}%
+ %从macro*{bytranslator+othersstrg}%中可以看到当地化字符串格式的引用前的代码处理
+ %比如生成cotranslator等用于调用cotranslator所代表的当地化字符串
+ \iffieldequalstr{usere}{chinese}{\usebibmacro{bytranslator+othersstrg}}{}%“译”的位置换到下面来,即放到译者后面。
+ %\setunit{\addspace}%
+ \newunit}%
+ \usebibmacro{withothers}}
+%
+\renewbibmacro*{bytranslator+othersstrg}{%
+ \def\abx@tempa{bytranslator}%
+ \ifnamesequal{translator}{commentator}
+ {\appto\abx@tempa{co}%
+ \clearname{commentator}}
+ {\ifnamesequal{translator}{annotator}
+ {\appto\abx@tempa{an}%
+ \clearname{annotator}}
+ {}}%
+ \ifnamesequal{translator}{introduction}
+ {\appto\abx@tempa{in}%
+ \clearname{introduction}}
+ {\ifnamesequal{translator}{foreword}
+ {\appto\abx@tempa{fo}%
+ \clearname{foreword}}
+ {\ifnamesequal{translator}{afterword}
+ {\appto\abx@tempa{af}%
+ \clearname{afterword}}
+ {}}}%
+\iffieldequalstr{usere}{chinese}{\bibstring{bytranslatorcn}}
+ {\bibstring{\abx@tempa}}}
+%
+% 修改作者数量超过限定值,做省略时的处理格式
+% v1.0,20160701,hzz
+% v1.0O,20190103,hzz,修改利用新定义的一个分隔符strandothersdelim
+% v1.0w,20210401,hzz,针对其它语言的译者后的标点与中文不同做处理
+% 原理方法:判断作者或译者是否中文,若中文用字符等,否则用et al. 。
+% \printnames由start-stop控制项数,默认是1和maxnames/minnames
+\renewbibmacro*{name:andothers}{\bibauthorfont%
+ \ifboolexpr{
+ test {\ifnumequal{\value{listcount}}{\value{liststop}}}
+ and
+ test \ifmorenames
+ }{\ifnumgreater{\value{liststop}}{1}%注意这里试图去区分姓名总数大于1的情况,当姓名总数大于1时,最后一个姓名后面先加入一个\finalandcomma
+ {\finalandcomma}%目前国标没有这样的区分要求,如果有需要也是可以这么去做的。
+ {}%
+\printdelim{andothersdelim}\printdelim{strandothersdelim}%
+}{%当是译者的时候需要特殊处理:从7.2节看等,译前面加逗号,但从示例看等和译同时出现时,译前的逗号没有,比如:
+%袁训来, 陈哲, 肖书海, 等.
+%胡泳, 范海燕, 译.
+%潘惠霞, 魏婧, 杨艳, 等译.
+\ifcurrentname{translator}{\iffieldequalstr{usere}{chinese}{\addcomma\addthinspace}{}}{}%为了实现上述第二个示例情况做的处理
+}}
+%
+% 修改省略作者后的本地化字符串,比如et al.
+% v1.0o,20190103,hzz
+%
+% 原理方法:默认情况下判断作者或译者是否中文,若中文用字符andotherscn=“等”,否则用andothers=“et al.”。
+% 非默认情况,根据选项信息,选择选择强制中文或英文
+% 首先设置全局的,然后设置文献表中的,这一等价于将所有的cite命令环境都设置过了
+% 而不用对每一个引用命令单独设置,比如cite,parancite,textcite都设置
+\DeclareDelimFormat{strandothersdelim}{%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbbiblocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andotherscn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andotherskr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andothersjp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\bibstring{andothers}}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\bibstring{andothers}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{andothers}}{}%
+ \or%
+ \bibstring{andotherscn}%
+ \or%
+ \bibstring{andothers}%
+ \fi}%
+%
+% 修改最后一个作者前的字符串,比如 and
+% v1.0o,20190103,hzz
+%
+% 原理方法:默认情况下判断作者或译者是否中文,若中文用字符andcn=“和”,否则用and=“and”。
+% 非默认情况,根据选项信息,选择选择强制中文或英文
+% 首先设置全局的,然后设置文献表中的,这一等价于将所有的cite命令环境都设置过了
+% 而不用对每一个引用命令单独设置,比如cite,parancite,textcite都设置
+\DeclareDelimFormat{finalnamedelim}{%
+ \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
+ \addspace%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbbiblocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andcn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andkr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andjp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\bibstring{and}}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\bibstring{and}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{and}}{}%
+\space%
+ \or%
+ \bibstring{andcn}\space%
+ \or%
+ \bibstring{and}\space%
+ \fi}%
+%
+% url和url日期格式
+%
+ \renewbibmacro*{url+urldate}{%
+ %\usebibmacro{url}%%更换url的位置,放到下面
+ \iffieldundef{urlyear}%
+ {}{%\setunit*{\addspace}%
+ \usebibmacro{urldate}}%
+ \setunit{\addperiod\addspace}%
+ \usebibmacro{url}}%
+ \renewbibmacro*{url}{\printfield{url}}%
+%
+% 重设title的输出
+%
+% 20180425,v1.0k,为标题增加字体控制命令,Hu Zhenzhen
+% 原理方法:将文献类型标识符输出出去,原输出来自biblatex.def文件
+% 利用toggle做标识符是否输出的判断
+\renewbibmacro*{title}{%
+ \ifboolexpr{%
+ test{\iffieldundef{title}}%
+ and
+ test{\iffieldundef{subtitle}}%
+ }%
+ {}%
+ {\printtext[title]{\bibtitlefont%增加字体控制命令
+ \printfield[titlecase]{title}%
+ \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
+ {}{\setunit{\subtitlepunct}%
+ \printfield[titlecase]{subtitle}}%
+ \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
+ {\setunit{\subtitlepunct}\printfield{titleaddon}}%
+ \iftoggle{bbx:gbtype}{%
+ \iffieldundef{note}{\printfield[gbtypeflag]{usera}}%在标题后直接给出文献标识字母,判断一下,是否是报纸和标准
+ {\iffieldequalstr{note}{standard}{\printfield[gbtypeflags]{usera}}%判断是否为标准
+ {\iffieldequalstr{note}{news}{\printfield[gbtypeflagn]{usera}}%判断是否为报纸
+ {\printfield[gbtypeflag]{usera}}}%其它
+ }}{}%
+ %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
+ %\newunit
+}%
+}}%
+%
+% 日期信息的输出格式,针对biblatex<3.7版本
+%
+\DeclareFieldFormat{urldate}{##1}%
+\renewbibmacro*{urldate}{%
+\addthinspace\printtext{[}\printurldate\printtext{]}}%能用高层命令+选项尽量用命令(比如这里的\printurldate),而不用\blx@edtfdate这种更底层的命令
+%
+% 调整doi+eprint+url格式
+%
+% 原理方法:源来自standard.bbx,因为页码后面直接跟引用日期,没有标点所以去掉其中的标点。
+\renewbibmacro*{doi+eprint+url}{%
+% \iftoggle{bbx:doi}%把doi的位置放到url后面
+% {\printfield{doi}}
+% {}%
+ %\newunit\newblock
+ \iftoggle{bbx:eprint}
+ {\iffieldundef{eprint}{}{\newunit\usebibmacro{eprint}}}
+ {}%
+ %\newunit\newblock
+ \iftoggle{bbx:url}
+ {\usebibmacro{url+urldate}}
+ {}
+ \newunit\newblock
+ \iftoggle{bbx:doi}
+ {\printfield{doi}}
+ {}}%
+%
+% 调整页码的格式,即chapter+pages格式
+%
+\renewbibmacro*{chapter+pages}{%
+\iftoggle{bbx:gbstrict}{}{%
+ \printfield{chapter}}%
+ \iffieldundef{pages}{}{%这里增加一个判断,当没有页码时就不输出
+ \setunit{\bibpagespunct}%
+ \printfield{pages}}%
+ %\newunit %这里的标点去掉
+}%
+%
+% 当location等出版项超过maxitem缩减后不再输出etal
+%
+\DeclareListFormat{location}{%
+ \usebibmacro{list:delim}{##1}%
+ ##1\isdot}%
+\DeclareListAlias{institution}{location}%
+\DeclareListAlias{publisher}{location}%
+% 新增一个样式用于输出连续出版物的地址,单位,时间,
+% 用于periodical连续出版物的出版社和地址的处理
+%
+% v1.0k,20180425,为出版信息增加字体控制命令,hzz
+% %类似\newbibmacro*{publisher+location+date}
+\newbibmacro*{location+institution+date}{\bibpubfont%
+\iftoggle{bbx:gbpub}%
+{\testCJKfirst{userd}%
+\ifboolexpr{%
+test {\iflistundef{location}} and test {\iflistundef{institution}}%
+}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress}\space :\space\str@nopublisher]}%
+{\printtext{[S.l.\space :\space s.n.\adddot]}}%
+}{%
+\iflistundef{location}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress]}}{\printtext{[S.l.\adddot]}}}%
+ {\printlist{location}}%
+\addcolon\addspace%
+\iflistundef{institution}{%
+\iftoggle{ifCJKforgbt}{\printtext{[\str@nopublisher]}}{\printtext{\mkbibbrackets{s.n.}}}}% \bibstring{nopublisher}%[s.n.\adddot]
+{\printlist{institution}}}%
+\setunit{\addcomma\addspace}%
+ %\usebibmacro{date}%
+ \printfield{year}%
+ \bibrangedash%
+ \iffieldundef{endyear}{}{\printfield{endyear}}%
+ \newunit}%
+{\printlist{location}%
+ \iflistundef{institution}%
+ {\setunit*{\addcomma\space}}
+ {\setunit*{\addcolon\space}}%
+ \printlist{institution}%
+ \setunit*{\addcomma\space}%
+ \usebibmacro{date}%
+ \newunit}%
+}%
+%
+% 通用的出版社和地址的处理
+%
+% 原理方法:当没有出版社地址时,直接判断title的信息是否是中文,若为中文,则写出版地不详,否则用英文的字符表示。
+% 事实上title对于每个文献来说是必须的,所以用它判断是最快的,而且一般标题和出版社的语言是一样的。
+% 注意标准standard类型,因为当没有出版项时直接省略,所以做特殊处理
+\renewbibmacro*{publisher+location+date}{\bibpubfont%
+\iftoggle{bbx:gbpub}%
+{\testCJKfirst{userd}%
+ \ifboolexpr{ test {\iflistundef{location}} and test {\iflistundef{publisher}} }%
+ {\iffieldequalstr{note}{standard}{}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress}\space :\space\str@nopublisher]}{\printtext{[S.l.\space :\space s.n.\adddot]}}}}%
+ {\iflistundef{location}{%\adddot
+ \iffieldequalstr{note}{standard}{}%%从gbt7714-2015标准第19页看到,标准存在出版项时输出,没有时完全省略。
+ {\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress]}\addcolon\addspace}{\printtext{[S.l.\adddot]}\addcolon\addspace}}}% \bibstring{noaddress}
+ {\printlist{location}\addcolon\addspace}%%\addcolon\addspace%
+ \iflistundef{publisher}{%
+ \iffieldequalstr{note}{standard}{}%
+ {\iftoggle{ifCJKforgbt}{\printtext{[\str@nopublisher]}\setunit{\adddot\addspace}\setunit*{\addcomma\addspace}}%
+ {\printtext{\mkbibbrackets{s.n.}}\setunit{\adddot\addspace}\setunit*{\addcomma\addspace}}}}%
+ {\printlist{publisher}}}%
+\setunit*{\addcomma\addspace}%\addcomma\addspace%
+\usebibmacro{date}%%\newunit %去掉这个标点
+}%
+{\printlist{location}%
+ \iflistundef{publisher}
+ {\setunit*{\addcomma\space}}
+ {\setunit*{\addcolon\space}}%
+ \printlist{publisher}%
+ \setunit*{\addcomma\space}%
+ \usebibmacro{date}%%\newunit
+ }%
+}%
+%
+% 修改了一个institution+location+date用于manual、report、thesis等类型
+%
+% 20180425,v1.0k,增加了字体控制命令,hzz
+% 20190105,v1.0o,加了一个编组避免\usebibmacro{date}把month和day信息去掉
+\renewbibmacro*{institution+location+date}{\bibpubfont%当没有institution时不处理。
+{\printlist{location}%%加了一个编组避免\usebibmacro{date}把month和day信息去掉
+ \iflistundef{institution}
+ {\setunit*{\addcomma\space}}
+ {\setunit*{\addcolon\space}}%
+ \printlist{institution}%
+ \setunit*{\addcomma\space}%
+ \usebibmacro{date}%
+ %\newunit
+ }}%
+%
+% 对volume卷信息格式做出修改
+% v1.0o,20190105,hzz
+%
+\DeclareFieldFormat{volume}{%
+\testCJKfirst{userd}%
+\iftoggle{ifCJKforgbt}%
+{\bibstring{serialcn}##1\bibstring{volumecn}}%
+{\bibstring{volume}~##1}%
+}% volume of a book
+\DeclareFieldFormat[article,periodical]{volume}{##1}% volume of a journal
+%
+% 对number册信息格式做出修改
+% v1.0o,20190105,hzz
+%
+\DeclareFieldFormat{number}{##1}%
+\DeclareFieldFormat[book,collection,inbook,%
+incollection,proceedings,inproceedings]{number}{%
+\testCJKfirst{userd}%
+\iftoggle{ifCJKforgbt}%
+{\bibstring{serialcn}##1\bibstring{numbercn}}%
+{##1}%
+}%
+%
+% 对edition版本信息格式做出修改
+%
+\DeclareFieldFormat{edition}{%源来自biblatex.DEF
+\testCJKfirst{userd}%
+\iftoggle{ifCJKforgbt}%
+{\ifinteger{##1}%
+{\printtext{##1\str@edition}}%
+{##1\isdot}}%
+{\ifinteger{##1}%
+{\mkbibordedition{##1}~\bibstring{edition}}%
+{##1\isdot}}}%
+%
+% 对version的版本信息做出修改
+%
+\DeclareFieldFormat{version}{%源来自biblatex.DEF
+\testCJKfirst{userd}%
+\ifinteger{##1}%
+{\iftoggle{ifCJKforgbt}{\printtext{##1\str@edition}}%
+{\mkbibordedition{##1}~\bibstring{version}}}%
+{##1\isdot}}%
+%
+% 修改析出文献的文集的标题与附加标题间的符号
+%
+\renewbibmacro*{booktitle}{%
+ \ifboolexpr{%
+ test {\iffieldundef{booktitle}}
+ and
+ test {\iffieldundef{booksubtitle}}
+ }%
+ {}%
+ {\printtext[booktitle]{\bibtitlefont%
+ \printfield[titlecase]{booktitle}%
+ \setunit{\subtitlepunct}%
+ \printfield[titlecase]{booksubtitle}}%
+ \newunit%标点换成下一句
+ \setunit{\subtitlepunct}}%
+ \printfield{booktitleaddon}}%
+%
+% 调整期刊名的格式
+%
+% v1.0k,20180425,增加了字体控制命令,hzz
+\renewbibmacro*{journal+issuetitle}{\bibpubfont%源来自standard.bbx
+ \usebibmacro{journal}%
+ %\setunit*{\addspace}%
+ \setunit*{\addcomma\addspace}%修改为增加一个逗号
+ \iffieldundef{series}
+ {}
+ {\newunit
+ \printfield{series}%
+ \setunit{\addspace}}%
+ %\usebibmacro{volume+number+eid}%
+ %\setunit{\addspace}%
+ \usebibmacro{issue+date}%
+ %\setunit{\addcolon\space}%
+ \iffieldundef{volume}{}{\setunit{\addcomma\space}}%
+ %换成逗号和空格
+ \usebibmacro{issue}%
+ \usebibmacro{volume+number+eid}%把卷期放到年份后面
+ %\newunit
+ }%
+%
+% 调整期刊卷和期的格式
+%
+\renewbibmacro*{volume+number+eid}{%源来自standard.bbx
+\iftoggle{bbx:gbfieldstd}{%
+ \printfield{volume}%
+ \setunit*{\adddot}%
+ \printfield{number}%
+ \setunit{\addcomma\space}%
+ \printfield{eid}}{%
+ \printfield{volume}%
+ %\setunit*{\adddot}%去掉点号
+ %\printfield{number}%
+ \iffieldundef{number}{}{\printtext{\mkbibparens{\printfield{number}}}}%增加一个圆括号
+ \iffieldundef{eid}{}{%
+ \setunit{\addcomma\space}%
+ \printfield{eid}}}}%
+%
+% 调整期刊年份的格式
+%
+\renewbibmacro*{issue+date}{%去掉括号
+ \printtext{%去掉了[parens]
+ \iffieldundef{issue}
+ {%\usebibmacro{date}
+ \iffieldundef{note}{\usebibmacro{date}}%判断一下,是否是报纸
+ {\iffieldequalstr{note}{news}{\usebibmacro{newsdate}}%判断是否为报纸
+ {\usebibmacro{date}}%
+ }}%
+ {\iftoggle{bbx:gbstrict}{}{\printfield{issue}%
+ \setunit*{\addspace}}%
+ %\usebibmacro{date}
+ \iffieldundef{note}{\usebibmacro{date}}%判断一下,是否是报纸
+ {\iffieldequalstr{note}{news}{\usebibmacro{newsdate}}%判断是否为报纸
+ {\usebibmacro{date}}%
+ }}}%
+ %\newunit
+ }%
+%
+% 调整页码前的标点和去掉期刊文章等页码后面的标点
+%
+\renewbibmacro*{note+pages}{%源来自standard.bbx
+ %\printfield{note}%不要note,note用来判断是否是报纸newspaper
+ \iffieldundef{pages}{}{%
+ \setunit{\bibpagespunct}%
+ \printfield{pages}}%
+ %\newunit
+ }%
+%
+% 编者的符号修改一下
+% v1.0 2016-07-01
+% v1.0q 2019-03-01 hzz 修改editortype前的标点
+%
+\renewbibmacro*{editor}{%源来自biblatex.DEF
+ \ifboolexpr{%
+ test \ifuseeditor
+ and
+ not test {\ifnameundef{editor}}%
+ }%
+ {\printnames{editor}%
+ \iffieldundef{editortype}%增加一个类型判断,用于存在editortype的情况
+ {\setunit\addspace}%当没有editortype时,直接用句点
+ {%\setunit{\addcomma\space}%
+ \usebibmacro{editorstrg}}%
+ %\clearname{editor}
+ }%
+ {}}%
+%
+% 编者类型做一修改
+% v1.0 2016-07-01
+% v1.0q 2019-03-01 hzz 修改editortype不同语言的不同本地化字符串
+%
+\renewbibmacro*{editorstrg}{%源来自biblatex.DEF
+ \printtext[editortype]{%
+ \iffieldundef{editortype}%
+ {%
+% \ifboolexpr{ %这一段去掉,未定义编者类型情况下不处理
+% test {\ifnumgreater{\value{editor}}{1}}
+% or
+% test {\ifandothers{editor}}
+% }
+% {\bibstring{editors}}
+% {\bibstring{editor}}
+ }%
+ {\ifbibxstring{\thefield{editortype}}%定义编者类型情况下处理,以后根据需要修改
+ {\ifboolexpr{%
+ test {\ifnumgreater{\value{editor}}{1}}%
+ or
+ test {\ifandothers{editor}}%
+ }%
+ {\printdelim{streditortypes}}%
+ {\printdelim{streditortype}}}%
+ {\thefield{editortype}}}%
+ }}%
+%
+% bookauthor域的输出,
+% v1.0q 2019-03-01 hzz
+% 不再对editor和bookauthor做sourcemap,而是下面的宏内逻辑代替,
+% 使得除使用bookauthor外也可以使用editor,便于在使用editor时使用editortype
+\renewbibmacro*{bybookauthor}{%
+ \ifnameundef{bookauthor}%
+ {\ifnameundef{editor}%
+ {}%
+ {\ifnamesequal{author}{editor}%
+ {}{\usebibmacro{editor}}}%
+ }%
+ {\ifnamesequal{author}{bookauthor}%
+ {}{\printnames{bookauthor}}%
+ }%
+}%
+%
+% 修改期刊的标题
+%
+\renewbibmacro*{periodical}{%源来自biblatex.DEF
+ \iffieldundef{title}
+ {}%
+ {\printtext[title]{\bibtitlefont%
+ \printfield[titlecase]{title}%
+ %\setunit{\subtitlepunct}%
+ \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
+ {}{\setunit{\subtitlepunct}
+ \printfield[titlecase]{subtitle}}%
+ %}%把编组结束移到后面去
+ \iftoggle{bbx:gbtype}{%
+ \iffieldundef{usera}{}{%在标题后直接给出文献标识字母
+ \printfield[gbtypeflag]{usera}}}{}%
+ }}%
+ }%
+%
+% 期刊的标题做修改
+%
+\renewbibmacro*{title+issuetitle}{%源来自standard.BBX
+ \usebibmacro{periodical}%
+ %\setunit*{\addspace}%
+ \setunit*{\adddot\addspace}%标点修改为句点
+ \iffieldundef{series}
+ {}%
+ {\newunit
+ \printfield{series}%
+ \setunit{\addspace}}%
+ \usebibmacro{periodical+issue}%将issue调整到上面来,并修改
+\iffieldundef{number}{}{%%进一步处理有范围的数字
+ \multinumberparser{\thefield{number}}}%
+ \iffieldundef{volume}%
+ {\printfield{year}%
+ \printtext{\mkbibparens{\multinumberfirst}}%
+ \bibrangedash%
+ \iffieldundef{endyear}{}{\printfield{endyear}\printtext{\mkbibparens{\multinumbersecond}}}%
+ }%
+ {\multivolparser{\thefield{volume}}%
+ \printfield{year}%
+ \setunit{\addcomma\space}%将冒号修改为逗号
+ \printtext{\multivolfirst}%
+ \printtext{\mkbibparens{\multinumberfirst}}%
+ \bibrangedash%
+ \iffieldundef{endyear}{}{%
+ \printfield{endyear}%
+ \setunit{\addcomma\space}%将冒号修改为逗号
+ \printtext{\multivolsecond}%
+ \printtext{\mkbibparens{\multinumbersecond}}}%
+ }%
+ \setunit{\addcomma\space}%
+ \printfield{eid}%
+ \setunit{\addspace}%
+ %\usebibmacro{issue+date}%
+ %\setunit{\addcolon\space}%
+ \usebibmacro{issue}%
+ \newunit}%
+%
+% 修改in:用于inbook、incollection、inproceedings等类型
+% 2018.04.20,v1.0k,renewed marco,by hzz
+% 20190212,v1.0q,增加中英文区分,by hzz
+%
+% 原理方法:使用bibmacro{in:}改变了以前在driver中直接输出//的方式,同时也简化了标点控制。
+\renewbibmacro*{in:}{%
+ \iftoggle{bbx:gbpunctin}{\printtext{\allowbreak\texttt{//}\allowbreak}}%\addthinspace
+ {\setunit{\adddot\addspace}%
+ \iffieldequalstr{userd}{chinese}%
+ {\printtext{\bibstring{incn}}}%
+ {\printtext{\bibstring{in}}}%
+ }}%\newunit\newblock\intitlepunct
+%
+% 修改type域的输出格式
+% 2019.02.12,v1.0q,byhzz
+% 使其可以区分中英文输出不同的格式,比如博士论文英文输出PHD thesis,中文则是博士学位论文
+\DeclareFieldFormat{type}%
+{\iffieldequalstr{userd}{chinese}%
+ {\ifbibxstring{##1cn}{\bibxstring{##1cn}}{##1}}%
+ {\ifbibstring{##1}{\bibstring{##1}}{##1}}%
+}%
+%
+% book条目类的驱动
+%
+\csdef{blx@bbx@book}{%%源来自standard.bbx文件
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+\usebibmacro{author/editor+others/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+\usebibmacro{maintitle+title}%
+\iftoggle{bbx:gbstrict}{}{%
+\newunit
+\printlist{language}%
+\newunit\newblock%
+\usebibmacro{byauthor}%
+\newunit\newblock}%
+\usebibmacro{byeditor+others}%
+\newunit
+\printfield{edition}%
+\newunit\newblock%%
+\iftoggle{bbx:gbstrict}{}{%
+\iffieldundef{maintitle}%
+{\printfield{volume}%
+\printfield{part}}%
+{}%
+\newunit%
+\printfield{volumes}%
+\newunit\newblock%
+\usebibmacro{series+number}}%
+\newunit\newblock%
+%\printfield{note}%
+%\newunit\newblock%
+\usebibmacro{publisher+location+date}%
+%\newunit\newblock %这里标点去掉
+\usebibmacro{chapter+pages}%
+ \iffieldundef{url}{}{%当没有网址时也不输出
+ \usebibmacro{modifydate}}%带括号的修改或更新日期,
+\usebibmacro{doi+eprint+url}%从下面移动到上面来,因为gbt2015的url需直接放在页码后面。
+ \newunit\newblock%
+ \printfield{pagetotal}%
+ \newunit\newblock%
+ \iftoggle{bbx:isbn}
+ {\printfield{isbn}}
+ {}%
+ \newunit\newblock
+ %\usebibmacro{doi+eprint+url}%
+ %\newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}%
+%
+% 期刊文章,连续出版物中的析出文献的格式
+%
+\csdef{blx@bbx@article}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}%
+ \newunit\newblock
+ \usebibmacro{bytranslator+others}%
+ \newunit\newblock
+ \printfield{version}}%
+ \newunit\newblock
+ %\usebibmacro{in:}% 不使用in来表示期刊等连续出版物
+ \usebibmacro{journal+issuetitle}%
+ %\newunit
+% \usebibmacro{byeditor+others}%
+% \newunit
+ \usebibmacro{note+pages}%
+ \iffieldequalstr{note}{news}{}{%当是新闻时不输出修改或更新日期
+ \iffieldundef{url}{}{%当没有网址时也不输出
+ \iftoggle{bbx:url}{%当url选项为false时,也不输出
+ \usebibmacro{modifydate}}{}}}%带括号的修改或更新日期,
+ \usebibmacro{doi+eprint+url}%从后面移上来,调整url和页码之间的位置
+ \newunit\newblock
+ \iftoggle{bbx:isbn}
+ {\printfield{issn}}
+ {}%
+ \newunit\newblock
+ %\usebibmacro{doi+eprint+url}%
+ %\newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}%
+%
+% 连续出版物的驱动
+%
+\csdef{blx@bbx@periodical}{%源来自standard.BBX
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{editor}%
+ %\setunit{\labelnamepunct}\newblock
+ \newunit\newblock %删除上面一行,添加这一行
+ \usebibmacro{title+issuetitle}%
+ \newunit\newblock%
+ \usebibmacro{location+institution+date}%添加这一行用于输出地址,单位和时间
+ \newunit\newblock%添加这一行
+ \iftoggle{bbx:gbstrict}{}{%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byeditor}%
+ \newunit\newblock
+ \printfield{note}%
+ \newunit\newblock}
+ \iftoggle{bbx:isbn}
+ {\printfield{issn}}
+ {}%
+ \newunit\newblock
+ \usebibmacro{doi+eprint+url}%
+ \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}%
+%
+% 专利文献驱动
+%
+\csdef{blx@bbx@patent}{%源来自standard.BBX
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ %\usebibmacro{title}%
+ \usebibmacro{patenttitle}%给出专利专用的标题输出
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}}%
+ \newunit\newblock
+ \printfield{type}%
+ \setunit*{\addspace}%
+ %\printfield{number}%已放到patenttitle中处理
+ \iflistundef{location}
+ {}
+ {\setunit*{\addspace}%
+ \printtext{%[parens]
+ \printlist[][-\value{listtotal}]{location}}}%
+ \newunit\newblock
+ \usebibmacro{byholder}%
+ \newunit\newblock
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{newsdate}%
+ %\newunit\newblock
+ \usebibmacro{doi+eprint+url}%
+ \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}%
+%
+% 在线文献驱动
+%
+\csdef{blx@bbx@online}{%源来自standard.BBX
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/editor+others/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}%
+ \newunit\newblock
+ \usebibmacro{byeditor+others}%
+ \newunit\newblock
+ \printfield{note}}%
+ \newunit
+ \printfield{version}%
+ \newunit\newblock
+%\printlist{organization}%
+ \printlist{institution}%
+ \newunit\newblock
+\ifboolexpr{%
+test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
+}{\usebibmacro{date}}%
+{\usebibmacro{modifydate}}%修改或更新日期,为带括号的时间
+ \usebibmacro{url+urldate}%从下面移上来
+ \newunit\newblock
+ \iftoggle{bbx:eprint}
+ {\usebibmacro{eprint}}
+ {}%
+ \newunit\newblock
+ %\usebibmacro{url+urldate}%
+ %\newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}%
+%
+% 报告类型驱动
+% 2016-11-11,增加了译者信息
+%
+\csdef{blx@bbx@report}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}}%
+ \newunit\newblock
+ \usebibmacro{byeditor+others}%增加的译者信息
+ \newunit\newblock
+ \printfield{type}%
+ \setunit*{\addspace}%
+ \printfield{number}%
+ \newunit\newblock
+ \printfield{version}%
+ \newunit
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{publisher+location+date}%
+ %\newunit\newblock
+ \usebibmacro{chapter+pages}%
+ \usebibmacro{doi+eprint+url}%
+ \newunit
+ \printfield{pagetotal}%
+ \newunit\newblock
+ \iftoggle{bbx:isbn}
+ {\printfield{isrn}}
+ {}%
+ \newunit\newblock
+% \usebibmacro{doi+eprint+url}%
+% \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}%
+%
+% 手册类型驱动
+% 2016-11-11,增加了译者信息
+%
+%
+\csdef{blx@bbx@manual}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}}%
+ \newunit\newblock
+ \usebibmacro{byeditor+others}%增加的译者信息
+ \newunit\newblock
+ \iftoggle{bbx:gbfieldtype}{%
+ \printfield{type}%
+ \setunit*{\addspace}}{}%
+ \printfield{number}%
+ \newunit\newblock
+ \printfield{version}%
+ \newunit
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{institution+location+date}%
+ %\newunit\newblock
+ \usebibmacro{chapter+pages}%
+ \iffieldundef{url}{}{%当没有网址时也不输出修改或更新日期
+ \usebibmacro{modifydate}}%修改或更新日期为带括号的时间
+ \usebibmacro{doi+eprint+url}%
+ \newunit
+ \printfield{pagetotal}%
+ \newunit\newblock
+ \iftoggle{bbx:isbn}
+ {\printfield{isrn}}
+ {}%
+ \newunit\newblock
+% \usebibmacro{doi+eprint+url}%
+% \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}%
+%
+% 备选类型驱动
+%
+% 利用biblatex的misc驱动
+\csdef{blx@bbx@misc}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/editor+others/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+\iftoggle{bbx:gbstrict}{}{%
+ \newunit
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}%
+ \newunit\newblock
+ \usebibmacro{byeditor+others}}%
+ \newunit\newblock
+ \printfield{howpublished}%
+ \newunit\newblock
+ \printfield{type}%
+ \newunit
+ \printfield{version}%
+ \newunit
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{institution+location+date}%
+ %\usebibmacro{organization+location+date}%
+ %\newunit\newblock
+ \usebibmacro{doi+eprint+url}%
+ \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}%
+%
+% 专著中的析出文献的格式修改
+%
+\csdef{blx@bbx@inbook}{%源来自standard.bbx
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+\usebibmacro{title}%
+\usebibmacro{in:}%
+%\printtext{\texttt{//}\addthinspace}%
+ \usebibmacro{bybookauthor}%
+ \ifnameundef{bookauthor}{%
+ \ifnameundef{editor}{}{\newunit}%
+ }{\newunit}%替换下一句
+ %\newunit\newblock
+\iffieldundef{series}{}{\usebibmacro{series+number}\setunit{\addcolon\addspace}}%为处理一些存在series的情况而增加
+ \usebibmacro{maintitle+booktitle}%
+\iffieldundef{volume}{}{\setunit{\addcolon\addspace}\printfield{volume}}%
+\iffieldundef{number}{}{\setunit{\addcolon\addspace}\printfield{number}}%增加卷和册信息
+ \newunit\newblock%
+% \usebibmacro{byeditor+others}%
+% \newunit\newblock
+ \printfield{edition}%
+ \newunit
+ \iftoggle{bbx:gbstrict}{}{%
+% \iffieldundef{maintitle}
+% {\printfield{volume}%
+% \printfield{part}}
+% {}%
+% \newunit
+% \printfield{volumes}%
+% \newunit\newblock
+% \usebibmacro{series+number}
+ }%
+ \newunit\newblock
+ %\printfield{note}%
+ %\newunit\newblock
+ \usebibmacro{publisher+location+date}%
+%\newunit\newblock
+ \usebibmacro{chapter+pages}%
+ %\newunit\newblock
+ \usebibmacro{doi+eprint+url}%移到上面来
+ \newunit\newblock
+ \iftoggle{bbx:isbn}
+ {\printfield{isbn}}
+ {}%
+ \newunit\newblock
+ %\usebibmacro{doi+eprint+url}%
+% \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}%
+}{}%
+}
+
+\AtEveryBibitem{\localsetchinesecode}%
+\AtEveryCite{\localsetchinesecode}%
+\AtEveryLositem{\localsetchinesecode}%
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ms.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ms.cbx
index 3679a03ae9..f46151d4ed 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ms.cbx
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015ms.cbx
@@ -1,190 +1,200 @@
-%%
-%% ---------------------------------------------------------------
-%% biblatex-gb7714-2015 --- A biblatex implementation of the
-%% GBT7714-2015 citation style,numerical sequence
-%% Maintained by huzhenzhen
-%% E-mail: hzzmail@163.com
-%% Released under the LaTeX Project Public License v1.3c or later
-%% ---------------------------------------------------------------
-%%
-\def\versionofgbtstyle{2021/01/19 v1.0w}
-\ProvidesFile{gb7714-2015ms.cbx}[\versionofgbtstyle biblatex citation style]
-
-%
-% 加载标准样式
-%
-\RequireCitationStyle{numeric-comp} %numeric
-
-
-%
-% 选项设置
-%
-\ExecuteBibliographyOptions{
- autocite = superscript ,
- autopunct = true ,
- %sorting = none ,
- maxcitenames=1,
- mincitenames=1,
-}
-
-%textcite标注命令中的标点设置
-%\DeclareDelimFormat[textcite]{andothersdelim}{\addspace}%
-
-%
-% 定义一个上标方括号wrapper
-%
-\newcommand*\mkbibsuperbracket[1]{%
- \mkbibsuperscript{\mkbibbrackets{#1}}%
-}
-
-% 修改postnote的输出格式
-\DeclareFieldFormat{postnote}{#1}
-
-%
-% 重定义cite命令
-%
-% 方法:\DeclareCiteCommand{\cite}[\mkbibparens]{precode}{loopcode}{sepcode}{postcode}
-% v1.0p版后将cite的处理方式修改为类似pagescite,而不再使用biblatex的标准方式
-\DeclareCiteCommand{\cite}[\mkbibsuperscript]%利用mkbibsuperbracket添加方括号
- {[\usebibmacro{cite:init}%
- \usebibmacro{prenote}}
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {\usebibmacro{cite:dump}]%
- \printfield{postnote}}
-% v1.0p 以前用的方式
-%\DeclareCiteCommand{\cite}[\mkbibsuperbracket]%利用mkbibsuperbracket添加方括号
-% {\usebibmacro{cite:init}%
-% \usebibmacro{prenote}}
-% {\usebibmacro{citeindex}%
-% \usebibmacro{cite:comp}}
-% {}
-% {\usebibmacro{cite:dump}%
-% \usebibmacro{postnote}}
-
-%
-% 定义upcite命令
-% 20180604,v1.0l,hzz
-% 20190409,v1.0r,hzz
-% 方法:对supercite增加[]
-\newrobustcmd*{\upcite}{%
- \cite}
-
-%
-% 重定义parencite命令,以满足标签带页码的国标要求
-%
-\DeclareCiteCommand{\parencite}%[\mkbibbrackets]
- {[\usebibmacro{cite:init}%]
- \usebibmacro{prenote}}%
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {%[
- \usebibmacro{cite:dump}]%
- \mkbibsuperscript{\printfield{postnote}}}
-
-%
-% 新定义pagescite命令,以满足标签带页码的国标要求
-%
-% 原理方法:
-% 1.新增页码输出宏
-\newbibmacro*{postpages}{%
- \iffieldundef{postnote}
- {\printfield[postnote]{pages}}
- {\printfield{postnote}}}
-% 2.新增\pagescite引用命令
-\DeclareCiteCommand{\pagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
- {[\usebibmacro{cite:init}%]直接添加方括号
- \usebibmacro{prenote}%
- }
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {\usebibmacro{cite:dump}]%
- \usebibmacro{postpages}}
-
-%
-% 定义yearpagescite,为与ay样式兼容,等同于\pagescite
-%
-\DeclareCiteCommand{\yearpagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
- {[\usebibmacro{cite:init}%]直接添加方括号
- \usebibmacro{prenote}%
- }
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {\usebibmacro{cite:dump}]%
- \usebibmacro{postpages}}
-
-
-
-%
-% 定义\yearcite命令,为与ay样式兼容,且提供不输出页码的标签格式,
-%
-% 原理方法:等同于\pagescite,但不要页码
-\DeclareCiteCommand{\yearcite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
- {[\usebibmacro{cite:init}%]直接添加方括号
- \usebibmacro{prenote}%
- }
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {\usebibmacro{cite:dump}]}
-
-%
-% 定义\authornumcite命令,输出作者信息,然后在后面带上顺序编码
-% 20180427,v1.0k,增加,hzz
-% gb7714样式新定义的命令都把cite放到最后,比如前面的pagescite,yearcite,这里的\authornumcite
-% 区别于biblatex定义的命令都把cite放到前面,比如citeauthor等。
-%见numeric.CBX
-\newbibmacro*{cite}{%
- \printtext[bibhyperref]{%
- \printfield{labelprefix}%
- \printfield{labelnumber}%
- \ifbool{bbx:subentry}
- {\printfield{entrysetcount}}
- {}}}
-%见numeric.CBX,\DeclareCiteCommand{\cite},
-\DeclareCiteCommand{\authornumcite}%[\mkbibsuperscript]
- {\usebibmacro{prenote}}
- {\iffieldequalstr{userf}{cn}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace
- {\renewcommand*{\andothersdelim}{\addspace}}%
- \printnames{labelname}\mkbibsuperscript{\mkbibbrackets{\usebibmacro{citeindex}%
- \usebibmacro{cite}}}}
- {\multicitedelim}
- {\mkbibsuperscript{\printfield{postnote}}}
-
-
-%
-% 增加如下多个命令
-% 20190409,v1.0r,hzz
-% 方法:利用newcommand或newrobustcmd命令进行定义
-% 注意\citet和\citep命令之所以不用newrobustcmd,是为避免加载natbib模块后产生冲突
-\DeclareCiteCommand{\citet}%
- {\usebibmacro{prenote}}
- {\iffieldequalstr{userf}{cn}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace
- {\renewcommand*{\andothersdelim}{\addspace}}%
- \printnames{labelname}\mkbibsuperscript{\mkbibbrackets{\usebibmacro{citeindex}%
- \usebibmacro{cite}}}}
- {\multicitedelim}
- {\mkbibsuperscript{\printfield{postnote}}}
-
-
-\DeclareCiteCommand{\citep}[\mkbibsuperscript]%利用mkbibsuperbracket添加方括号
- {[\usebibmacro{cite:init}%
- \usebibmacro{prenote}}
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {\usebibmacro{cite:dump}]%
- \printfield{postnote}}
-
-\newrobustcmd*{\citetns}%
- {\textcite}
-
-\newrobustcmd*{\citepns}%
- {\parencite}
-
-\newrobustcmd*{\inlinecite}%
- {\parencite}
+%%
+%% ---------------------------------------------------------------
+%% biblatex-gb7714-2015 --- A biblatex implementation of the
+%% GBT7714-2015 citation style,numerical sequence
+%% Maintained by huzhenzhen
+%% E-mail: hzzmail@163.com
+%% Released under the LaTeX Project Public License v1.3c or later
+%% ---------------------------------------------------------------
+%%
+\def\versionofgbtstyle{2021/04/03 v1.0x}
+\ProvidesFile{gb7714-2015ms.cbx}[\versionofgbtstyle biblatex citation style]
+
+%
+% 加载标准样式
+%
+\RequireCitationStyle{numeric-comp} %numeric
+
+
+%
+% 选项设置
+%
+\ExecuteBibliographyOptions{
+ autocite = superscript ,
+ autopunct = true ,
+ %sorting = none ,
+ maxcitenames=1,
+ mincitenames=1,
+}
+
+%textcite标注命令中的标点设置
+%\DeclareDelimFormat[textcite]{andothersdelim}{\addspace}%
+
+%修改\mkbibsuperscript宏在最后加上一个空白使得xeCJK不会自动在引用标签后面加上中英文之间的空白
+%hzz,v1.0w,2021-0401
+\renewrobustcmd{\mkbibsuperscript}[1]{%
+ \unspace\allowhyphens\textsuperscript{%
+ \begingroup
+ \protected\long\def\mkbibsuperscript##1{%
+ \blx@warning{Nested superscript}%
+ \mkbibbrackets{##1}}%
+ #1\endgroup}\kern\z@}
+
+%
+% 定义一个上标方括号wrapper
+%
+\newcommand*\mkbibsuperbracket[1]{%
+ \mkbibsuperscript{\mkbibbrackets{#1}}%
+}
+
+% 修改postnote的输出格式
+\DeclareFieldFormat{postnote}{#1}
+
+%
+% 重定义cite命令
+%
+% 方法:\DeclareCiteCommand{\cite}[\mkbibparens]{precode}{loopcode}{sepcode}{postcode}
+% v1.0p版后将cite的处理方式修改为类似pagescite,而不再使用biblatex的标准方式
+\DeclareCiteCommand{\cite}[\mkbibsuperscript]%利用mkbibsuperbracket添加方括号
+ {[\usebibmacro{cite:init}%
+ \usebibmacro{prenote}}
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}]%
+ \printfield{postnote}}
+% v1.0p 以前用的方式
+%\DeclareCiteCommand{\cite}[\mkbibsuperbracket]%利用mkbibsuperbracket添加方括号
+% {\usebibmacro{cite:init}%
+% \usebibmacro{prenote}}
+% {\usebibmacro{citeindex}%
+% \usebibmacro{cite:comp}}
+% {}
+% {\usebibmacro{cite:dump}%
+% \usebibmacro{postnote}}
+
+%
+% 定义upcite命令
+% 20180604,v1.0l,hzz
+% 20190409,v1.0r,hzz
+% 方法:对supercite增加[]
+\newrobustcmd*{\upcite}{%
+ \cite}
+
+%
+% 重定义parencite命令,以满足标签带页码的国标要求
+%
+\DeclareCiteCommand{\parencite}%[\mkbibbrackets]
+ {[\usebibmacro{cite:init}%]
+ \usebibmacro{prenote}}%
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {%[
+ \usebibmacro{cite:dump}]%
+ \mkbibsuperscript{\printfield{postnote}}}
+
+%
+% 新定义pagescite命令,以满足标签带页码的国标要求
+%
+% 原理方法:
+% 1.新增页码输出宏
+\newbibmacro*{postpages}{%
+ \iffieldundef{postnote}
+ {\printfield[postnote]{pages}}
+ {\printfield{postnote}}}
+% 2.新增\pagescite引用命令
+\DeclareCiteCommand{\pagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
+ {[\usebibmacro{cite:init}%]直接添加方括号
+ \usebibmacro{prenote}%
+ }
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}]%
+ \usebibmacro{postpages}}
+
+%
+% 定义yearpagescite,为与ay样式兼容,等同于\pagescite
+%
+\DeclareCiteCommand{\yearpagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
+ {[\usebibmacro{cite:init}%]直接添加方括号
+ \usebibmacro{prenote}%
+ }
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}]%
+ \usebibmacro{postpages}}
+
+
+
+%
+% 定义\yearcite命令,为与ay样式兼容,且提供不输出页码的标签格式,
+%
+% 原理方法:等同于\pagescite,但不要页码
+\DeclareCiteCommand{\yearcite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
+ {[\usebibmacro{cite:init}%]直接添加方括号
+ \usebibmacro{prenote}%
+ }
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}]}
+
+%
+% 定义\authornumcite命令,输出作者信息,然后在后面带上顺序编码
+% 20180427,v1.0k,增加,hzz
+% gb7714样式新定义的命令都把cite放到最后,比如前面的pagescite,yearcite,这里的\authornumcite
+% 区别于biblatex定义的命令都把cite放到前面,比如citeauthor等。
+%见numeric.CBX
+\newbibmacro*{cite}{%
+ \printtext[bibhyperref]{%
+ \printfield{labelprefix}%
+ \printfield{labelnumber}%
+ \ifbool{bbx:subentry}
+ {\printfield{entrysetcount}}
+ {}}}
+%见numeric.CBX,\DeclareCiteCommand{\cite},
+\DeclareCiteCommand{\authornumcite}%[\mkbibsuperscript]
+ {\usebibmacro{prenote}}
+ {\iffieldequalstr{userf}{cn}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace
+ {\renewcommand*{\andothersdelim}{\addspace}}%
+ \printnames{labelname}\mkbibsuperscript{\mkbibbrackets{\usebibmacro{citeindex}%
+ \usebibmacro{cite}}}}
+ {\multicitedelim}
+ {\mkbibsuperscript{\printfield{postnote}}}
+
+
+%
+% 增加如下多个命令
+% 20190409,v1.0r,hzz
+% 方法:利用newcommand或newrobustcmd命令进行定义
+% 注意\citet和\citep命令之所以不用newrobustcmd,是为避免加载natbib模块后产生冲突
+\DeclareCiteCommand{\citet}%
+ {\usebibmacro{prenote}}
+ {\iffieldequalstr{userf}{cn}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace
+ {\renewcommand*{\andothersdelim}{\addspace}}%
+ \printnames{labelname}\mkbibsuperscript{\mkbibbrackets{\usebibmacro{citeindex}%
+ \usebibmacro{cite}}}}
+ {\multicitedelim}
+ {\mkbibsuperscript{\printfield{postnote}}}
+
+
+\DeclareCiteCommand{\citep}[\mkbibsuperscript]%利用mkbibsuperbracket添加方括号
+ {[\usebibmacro{cite:init}%
+ \usebibmacro{prenote}}
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}]%
+ \printfield{postnote}}
+
+\newrobustcmd*{\citetns}%
+ {\textcite}
+
+\newrobustcmd*{\citepns}%
+ {\parencite}
+
+\newrobustcmd*{\inlinecite}%
+ {\parencite}
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015mx.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015mx.bbx
index 6ff1d8af16..99b6847fde 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015mx.bbx
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015mx.bbx
@@ -1,3340 +1,3363 @@
-%%
-%% ---------------------------------------------------------------
-%% biblatex-gb7714-2015 --- A biblatex implementation of the
-%% GBT7714-2015 bibliography style,numerical sequence and authoryear mixed style
-%% Maintained by huzhenzhen
-%% E-mail: hzzmail@163.com
-%% Released under the LaTeX Project Public License v1.3c or later
-%% ---------------------------------------------------------------
-%%
-
-%
-% 版本和时间信息
-%
-\def\versionofgbtstyle{2021/01/19 v1.0w}
-\def\versionofbiblatex{\abx@version}
-\ProvidesFile{gb7714-2015mx.bbx}[\versionofgbtstyle biblatex bibliography style]
-%\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求
-
-%=====================================================================
-% 加载标准样式
-%=====================================================================
-\RequireBibliographyStyle{numeric-comp}
-\RequirePackage{xstring}%解决texlive2015的biblatex3.0不加载xstring包的问题
-
-
-%=====================================================================
-% 功能函数
-%=====================================================================
- %
- % 增加一个控制是否输出文献载体的选项
- % 20191125,v1,0s,hzz
- \newtoggle{bbx:gbmedium}
- \DeclareBibliographyOption{gbmedium}[true]{%biblatex低版本
- \settoggle{bbx:gbmedium}{#1}}
- \ExecuteBibliographyOptions{gbmedium}
- %
- % 增加一个控制是否输出annotation域的选项,该域可以用于在文献条目后面输出一些注释信息
- % 20190509,v1,0s,hzz
- \newtoggle{bbx:gbannote}
- \DeclareBibliographyOption{gbannote}[false]{%biblatex低版本
- \settoggle{bbx:gbannote}{#1}}
- \ExecuteBibliographyOptions{gbannote}
- %
- %用于在文献条目后面输出注释信息的宏
- %FieldFormat{annotation}用于设置注释信息的格式
- \DeclareFieldFormat{annotation}{%
- \printtext{\addspace(#1)}%
- }
- \renewbibmacro*{annotation}{%
- \iftoggle{bbx:gbannote}%
- {\iffieldundef{annotation}%
- {\printfile[annotation]{\bibannotationprefix\thefield{entrykey}.tex}}%
- {\printfield{annotation}}}%
- {}%
- }
-
-
- %
- % biblatex版本判断
- % 20180629,v1.0k,hzz
- %
- % 原理方法:适用于3.10以上版本的biblatex,否则给出警告
- \@ifpackagelater{biblatex}{2017/12/28}{}{
- \blx@warning@noline{%
- biblatex version is too old for this style\MessageBreak
- if errors raised,Please update biblatex to the latest version.}
- }
-
- %
- % 判断CJK字符的函数,用于判断作者等信息是否由中文字符构成
- % v1.0k,20180509,hzz
- %
- % 原理方法:用biber中的perl方法代替。因为利用tex函数对字符判断时,当字符在宏
- % 中时,基于`的方法无法解决GBK编码的问题,基于CJKsymbol的方法无法解决utf-8
- % 编码用xelatex编译的问题。
- %
- % 原理是:利用perl正则将中文标识记录到域中,
- % 然后利用\iffieldundef和\iffieldequalstr进行判断
- \providetoggle{ifCJKforgbt}
- \def\testCJKfirst#1{%
- \iffieldundef{#1}{\togglefalse{ifCJKforgbt}}{%
- \iffieldequalstr{#1}{chinese}{\toggletrue{ifCJKforgbt}}{\togglefalse{ifCJKforgbt}}}}
-
- %
- % 2个卷的解析函数,用于连续出版物
- %
- % 原理方法: 范围起止间隔符号还是用-,而不是与date相同的/,因为有合期期刊的问题,需要用到/符号
- \newcommand{\multivolparser}[1]{%
- \IfSubStr{#1}{-}%
- {\StrBefore{#1}{-}[\multivolfirst]\StrBehind{#1}{-}[\multivolsecond]}%
- {\def\multivolfirst{#1}\def\multivolsecond{}}%
- }
-
-
- %
- % 2个期的解析函数,用于连续出版物
- %
- \newcommand{\multinumberparser}[1]{%
- \IfSubStr{#1}{-}%
- {\StrBefore{#1}{-}[\multinumberfirst]\StrBehind{#1}{-}[\multinumbersecond]}%
- {\def\multinumberfirst{#1}\def\multinumbersecond{}}%
- }
-
-%=====================================================================
-% 数据模型定义
-%=====================================================================
- %定义类型和载体标识,从gb内容看载体基本属于介质。
- %为与lee zeping的bst的样式统一,使用mark和medium这两域名
- %为单个条目的姓名格式控制增加nameformat和namefmtid两个域
- %为缩略信息文献表增加了shortbooktitle域
- %为多语言排序增加了lansortorder域
- \DeclareDatamodelFields[type=field,datatype=literal]{mark,medium,nameformat}
- \DeclareDatamodelFields[type=field,datatype=integer]{namefmtid}
- \DeclareDatamodelFields[type=field,datatype=literal]{shortbooktitle}
- \DeclareDatamodelFields[type=field,datatype=literal]{lansortorder}
- %为多样式文献表增加的stylesections、styleaysection域:
- \DeclareDatamodelFields[type=field,datatype=integer]{aysections}
- \DeclareDatamodelFields[type=field,datatype=literal]{styleaysection}
-
- %因为biblatex更新3.14版本以后,biber对于为声明数据模型的条目类型
- %不再默认读取,而是以空字符串作为条目类型名,自然在条目定义alias时
- %就会出现问题,因此显式的声明一下newspaper,然后保留后面采用alias的方式
- %而standard类型则是采用另一种方式直接在sourcemap中转换为其它类型。
- \@ifpackagelater{biblatex}{2019/11/30}{%2019/12/01 v3.14
- \DeclareDatamodelEntrytypes{newspaper}%
- }{}
-
-
-
-%=====================================================================
-% 设置宏包选项
-%=====================================================================
- %
- % 增加一个控制是否输出type域的选项
- % 20190212,v1,0q,hzz
- \newtoggle{bbx:gbfieldtype}
- \DeclareBibliographyOption{gbfieldtype}[false]{%biblatex低版本
- \settoggle{bbx:gbfieldtype}{#1}}
- \ExecuteBibliographyOptions{gbfieldtype}
-
- %
- % 增加一个控制是否根据页码重设脚注数字标号的选项
- % 20190422,v1,0r,hzz
- \newtoggle{bbx:gbfnperpage}
- \DeclareBibliographyOption{gbfnperpage}[false]{%
- \settoggle{bbx:gbfnperpage}{#1}}
- \ExecuteBibliographyOptions{gbfnperpage}
-
- %
- % 增加一个选项,用于控制是否实现GB/T 7714-2015标准的脚注文献表
- % 20190203,v1.0p,hzz
- % 原理方法:默认做patch,文献引用带圈上标数字表示,脚注中的文献用带圈非上标数字做标签
- % 当前面的脚注中已经存在当前文献,那么当前文献内容不再输出而用同(4)这样的方式
- % 需要注意的是由于小页环境和表格中的脚注本身的问题,可能会有一些问题
- \DeclareBibliographyOption{gbfootbib}[false]{%
- \ifstrequal{#1}{false}{}{\execgbfootbib}}
- \ExecuteBibliographyOptions{gbfootbib}
-
- %%
- \newlength{\footbibmargin}
- \newlength{\footbiblabelsep}
- \setlength{\footbibmargin}{1em}%脚注的段落左侧缩进距离
- \setlength{\footbiblabelsep}{0.5em}%脚注中标记号与脚注段落的间距
- \def\execgbfootbib%
- {%
- %开启引用跟踪计数器,为使用\ifciteseen等测试命令
- \ExecuteBibliographyOptions{citetracker=true}
- %
- %利用footmisc宏包来实现脚注文献的悬挂对齐
- \AtEndPreamble{
- \@ifclassloaded{beamer}{}{
- %beamer类因为其特殊性,为避免冲突不调footmisc。
- %同时footmisc与hyperref宏包也不兼容,所以使用footmisc时会破坏脚注的超链接
- %如果要实现超链接可以将下句注释掉,这里留着主要是实现悬挂对齐。
- %\PassOptionsToPackage{perpage,hang}{footmisc}%
- %\RequirePackage{footmisc}%
-
- %重新实现脚注的根据单页重设脚注号码
- %重新实现脚注的悬挂对齐问题,不再使用footmisc,直接从latex核心代码和hyperref代码进行修改
- %v1.0q 20190317 hzz
- %v1.0r 20190422 hzz 根据gbfnperpage选项设置
- \iftoggle{bbx:gbfnperpage}%
- {\@addtoreset{footnote}{page}}{}%重设计数器
-
- \@ifpackageloaded{hyperref}{%加载hyperref则对\H@@footnotetext做重定义
- \long\def\H@@footnotetext##1{\insert\footins{%
- \reset@font\footnotesize
- \interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep
- \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark
- }%
- \color@begingroup
- \leftskip \footbibmargin%增加的左侧缩进
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox%
- }%
- \color@endgroup}}%
-
- \long\def\H@@mpfootnotetext##1{%
- \global\setbox\@mpfootins\vbox{%
- \unvbox\@mpfootins
- \reset@font\footnotesize
- \hsize\columnwidth
- \@parboxrestore
- \protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}%
- \leftskip \footbibmargin%增加的左侧缩进
- \color@begingroup
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox}%
- \color@endgroup}}
- }{%否则对latex核心代码中的\@footnotetext做重定义
- \long\def\@footnotetext##1{\insert\footins{%
- \reset@font\footnotesize
- \interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep
- \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
- \hsize\columnwidth \@parboxrestore
- \protected@edef\@currentlabel{%
- \csname p@footnote\endcsname\@thefnmark
- }%
- \color@begingroup
- \leftskip \footbibmargin%增加的左侧缩进
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox%
- }%
- \color@endgroup}}%
-
- \long\def\@mpfootnotetext##1{%
- \global\setbox\@mpfootins\vbox{%
- \unvbox\@mpfootins
- \reset@font\footnotesize
- \hsize\columnwidth
- \@parboxrestore
- \protected@edef\@currentlabel
- {\csname p@mpfootnote\endcsname\@thefnmark}%
- \leftskip \footbibmargin%增加的左侧缩进
- \color@begingroup
- \@makefntext{%
- \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox}%
- \color@endgroup}}
- }
-
- \long\def\@makefntext##1{%增加了脚注标记与正文的间隔
- \parindent 1em\noindent \hb@xt@ 0em{\hss \@makefnmark\makebox[\footbiblabelsep]{}}##1}
-
- }
-
- %
- %使脚注标记加圈并设置数字的字体为tiny,不使用修改thefootnote的方式
- \def\@makefnmark{\hbox{\@textsuperscript{\textcircled{\tiny\@thefnmark}}}}
- %做patch使得脚注内容中的脚注数字标签不上标
- \pretocmd{\@makefntext}{%
- \def\@makefnmark{%
- \hbox{\textcircled{\tiny\@thefnmark}}%
- }%
- }{}{}
- }
-
- %
- %判断当前文献是否已经引用过且是做的footfullcite(即已经作为脚注输出文献内容)
- %记录首次输出时的脚注号码,用于后面再次引用该文献时的输出,比如同(4)。
- %v1.0q 20190309 区分使脚注标注适应minipage中的情况
- \newbibmacro*{citesavefn}{%
- \ifciteseen%当被引用过为true
- {\ifcsdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}%当已经定义过脚注序号信息
- {\csgdef{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
- \str@sameentry\gdef\@thefnmark{\csuse{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}}%
- \@makefnmark%
- }}%
- {\csxdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
- \ifcsstring{@mpfn}{mpfootnote}{\@alph\c@mpfootnote}{\thefootnote}%
- }}%
- }%
- {\csxdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
- \ifcsstring{@mpfn}{mpfootnote}{\@alph\c@mpfootnote}{\thefootnote}%
- %判断在minipage中比较麻烦,这里使用\@mpfn的定义进行判断
- }}%
- }
-
- %
- %重定义\footfullcite使完成gb7714-2015的脚注文献要求
- \DeclareCiteCommand{\footfullcite}[\mkbibfootnote]%
- {\defcounter{maxnames}{\blx@maxbibnames}%局部定义maxnames和minnames计数器
- \defcounter{minnames}{\blx@minbibnames}%使footfullcite内的作者输出与正文文献表中的一致。
- \usebibmacro{prenote}%
- \renewbibmacro*{postnote}{%
- \iffieldundef{postnote}%
- {}{\setunit{\addcolon\addspace}\printtext{\thefield{postnote}}}}%由于ay样式中没有修改postnote域,此处因为格式需要不使用默认域格式
- }%
- {\usebibmacro{citesavefn}%
- \ifcsdef{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}%
- {\csuse{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}}%\nopunct
- {\usedriver{\DeclareNameAlias{sortname}{default}}{\thefield{entrytype}}}%
- }%
- {\multicitedelim}%
- {\usebibmacro{postnote}}
-
- }
-
- %
- % 增加一个选项,用于控制gb7714的使用范围,即英文文献和中文文献使用不同的样式
- % 20180814,v1.0m,hzz
- % 原理方法:
- % 只为兼容性考虑不做任何处理
- \DeclareBibliographyOption{gbstyle}[true]{%biblatex低版本
- }
-
- %
- % 增加一个控制是否输出文献类型和载体标识的选项
- %
- % 原理方法:
- % 对于biblatex3.4以上版本DeclareBibliographyOption命令中的[datatype]如果是boolean,那么是可以省略的
- % 所以用老版本的不用[datatype]的命令可以兼容所有biblatex版本
- \newtoggle{bbx:gbtype}
- %\DeclareBibliographyOption[boolean]{gbtype}[true]{%biblatex高版本
- \DeclareBibliographyOption{gbtype}[true]{%biblatex低版本
- \settoggle{bbx:gbtype}{#1}}
- \ExecuteBibliographyOptions{gbtype}
-
- %
- % 增加一个源文件编码选择选项,当true时可以使用GBK编码。
- % v1.0k, 2018.05.08, by hzz
- %
- % 原理方法:将需要输出的中文字符串用命令形式表示存储,采用utf8编码时采用bbx文档
- % 内的定义即是utf8编码的中文字符串,但tex源文件是gbk编码时,利用gb7714-2015-gbk.def
- % 文档内的gbk编码的字符串覆盖。这种覆盖只能在宏包末尾加载时成功实现,所以使用
- % AtEndOfPackage。该解决思路源自biblatex-caspervector宏包。
- % 另外注意:
- % gbk编码的tex文档,利用pdflatex/latex能正确编译,利用xelatex能编译,但中文显示乱码
- % 在源文档前面增加 XeTeX 原语:\XeTeXinputencoding "GBK" 后,显示正常
- % utf-8编码的tex文档,利用xelatex能正确编译,而pdflatex/latex不能编译。
- \newtoggle{bbx:codegbk}
- \DeclareBibliographyOption{gbcodegbk}[false]{%
- \settoggle{bbx:codegbk}{#1}}
- \ExecuteBibliographyOptions{gbcodegbk}
-
- \def\str@bibliography{参考文献}
- \def\str@references{参考文献}
- \def\str@bytranslator{译}
- \def\str@andotherscn{等}
- \def\str@backrefpage{引用页}
- \def\str@backrefpages{引用页}
- \def\str@noaddress{出版地不详}
- \def\str@nopublisher{出版者不详}
- \def\str@edition{版}
- \def\str@volumecn{卷}
- \def\str@numbercn{册}
- \def\str@serialcn{第}
- \def\str@sameentry{同}
- \def\str@incn{见}
- \def\str@mathesiscn{硕士学位论文}
- \def\str@phdthesiscn{博士学位论文}
- \def\str@editorcn{主编}
-
- \AtEndOfPackage{%
- \iftoggle{bbx:codegbk}{%
- \ExecuteBibliographyOptions{texencoding = GBK}
- \input{gb7714-2015-gbk.def}
- }{}}
-
- %
- % 增加一个严格按GB/T 7714-2015给出著录格式控制域的输出的选项
- % v1.0k, 2018.05.08, by hzz
- %
- % 原理方法:
- % 默认设置该选项为真,进而不输出GB/T 7714-2015中没有的域的信息
- % 这样可以避免因为bib文件带有多余的域的信息的输出,比如因为bibtex样式
- % 可能需要用于中英文判断的language域的信息。
- \newtoggle{bbx:gbstrict}
- \DeclareBibliographyOption{gbstrict}[true]{%
- \settoggle{bbx:gbstrict}{#1}}
- \ExecuteBibliographyOptions{gbstrict}
-
- %
- % 增加一个控制标题域超链接设置的选项
- % v1.0k, 2018.05.24, by hzz
- %
- % 原理方法:
- % 利用标题域格式来实现,默认设置该选项为false,不做超链接。
- % 设置为true,则标题设置超链接
- \newtoggle{bbx:titlelink}
- \DeclareBibliographyOption{gbtitlelink}[false]{%
- \settoggle{bbx:titlelink}{#1}}
- \ExecuteBibliographyOptions{gbtitlelink}
-
- %
- % 增加一个控制参考文献标题是否能够被ctex宏包设置的选项
- % v1.0l, 2018.07.02, by hzz
- %
- % 原理方法:
- % 重定义biblatex的宏,去除使用本地化字符串的方式,是的可以利用ctexset进行设置
- \newtoggle{bbx:ctexset}
- \DeclareBibliographyOption{gbctexset}[true]{%
- \settoggle{bbx:ctexset}{#1}}
- \ExecuteBibliographyOptions{gbctexset}
-
- \AtEndOfPackage{%
- \iftoggle{bbx:ctexset}{%
- \def\blx@defbibstrings#1#2{%
- \def\do##1{\csundef{abx@lstr@##1}\csundef{abx@sstr@##1}}%
- \abx@dostrings
- \csuse{abx@strings@#1}%
- \setkeys{blx@lbx}{#2}%
- \let\do\blx@defbibstrings@i
- \csxdef{abx@strings@#1}{\abx@dostrings}%
- }
- }{}}
-
-
-
- %
- % 增加一个恢复域格式为标准样式的控制选项
- % v1.0k, 2018.05.15, by hzz
- %
- % 原理方法:
- % 默认设置该选项为false,采用国标要求的域格式输出相关域
- % 当设置该选项为true时,则重新利用标准样式的域格式输出相关的域
- \newtoggle{bbx:gbfieldstd}
- \DeclareBibliographyOption{gbfieldstd}[false]{%
- \settoggle{bbx:gbfieldstd}{#1}%
- \ifstrequal{#1}{false}{}{\execgbfdfmtstd}%
- }
- \ExecuteBibliographyOptions{gbfieldstd}
-
- %
- % 增加一个出版项自动处理控制选项,当true时使用出版者不详等信息补充缺失的出版信息。
- %
- \newtoggle{bbx:gbpub}
- \DeclareBibliographyOption{gbpub}[true]{%
- %\settoggle{bbx:gbpub}{#1} %或采用下面这一句
- \ifstrequal{#1}{false}{\togglefalse{bbx:gbpub}}{\toggletrue{bbx:gbpub}}}
- \ExecuteBibliographyOptions{gbpub}
-
- %
- % 增加控制析出文献来源前的标点符号//输出的选项
- % v1.0k, 2018.04.20,added in by hzz
- \newtoggle{bbx:gbpunctin}
- \DeclareBibliographyOption{gbpunctin}[true]{%
- \settoggle{bbx:gbpunctin}{#1}}
- \ExecuteBibliographyOptions{gbpunctin}
-
-
- %
- % 增加一个处理佚名或noauthor的控制选项
- %
- % 原理方法:顺序编码制中与作者年制都使用
- \DeclareBibliographyOption{gbnoauthor}[true]{%
- \ifstrequal{#1}{false}{}{\dealnoathor}}
- %\ExecuteBibliographyOptions{gbnoauthor=true}%对于需要展开较早(展开层级优先)的选项,这一执行无效,只能用宏包加载时给出的选项。
-
-
-
-
- %
- % 选项设置
- %
- \ExecuteBibliographyOptions{
- sorting=none,
- useprefix=true, %名字的信息包括前缀
- date = year, %日期仅写到年
- maxbibnames = 3,%设置名字最大数量
- minbibnames = 3, %设置缩减后的名字最小数量
- maxitems = 1,%设置列表最大数量
- minitems = 1, %设置缩减后的列表最小数量
- isbn=false,
- sortlocale=zh__pinyin,%zh__big5han,%zh__stroke,%zh__gb2312han,%zh__pinyin,
- }
-
- %
- %为日期相关选项增加选项值gb7714-2015
- %
- \csdef{mkdaterangegb7714-2015}#1{%
- \begingroup
- \blx@metadateinfo{#1}%
- \iffieldundef{#1year}
- {}
- {\printtext[#1date]{%
- \blx@gbdate{#1}{}}}%
- \endgroup}
-
- \newrobustcmd*{\blx@gbdate}[3][]{%
- \dateeraprintpre{#2#3year}%
- \blx@imc@forcezerosy{\thefield{#2#3year}}\ifblank{#1}{}{\printfield{#1}}%
- \iffieldundef{#2#3month}{}{\hyphen\blx@imc@forcezerosmdt{\thefield{#2#3month}}}%
- \iffieldundef{#2#3day}{}{\hyphen\blx@imc@forcezerosmdt{\thefield{#2#3day}}}}
-
-
- %为姓名格式选择增加的计数器
- \newcounter{gbnamefmtcase}
- \def\thegbnamefmtcase{\the\c@gbnamefmtcase}
- %为数字标签格式选择增加的计数器/命令
- \newcommand{\mkgbnumlabel}[1]{\mkbibbrackets{#1}}
- \def\gbbiblabelopt@bracket{\renewcommand{\mkgbnumlabel}[1]{\mkbibbrackets{##1}}}
- \def\gbbiblabelopt@parens{\renewcommand{\mkgbnumlabel}[1]{\mkbibparens{##1}}}
- \def\gbbiblabelopt@dot{\renewcommand{\mkgbnumlabel}[1]{##1\adddot}}
- \def\gbbiblabelopt@plain{\renewcommand{\mkgbnumlabel}[1]{##1}}
- \def\gbbiblabelopt@box{\renewcommand{\mkgbnumlabel}[1]{\framebox{##1}}}
- \def\gbbiblabelopt@circle{\renewcommand{\mkgbnumlabel}[1]{\textcircled{##1}}}
- %为文献表中数字标签对齐方式选择增加的计数器/命令
- \newcounter{gbalignlabel}
- \def\thegbalignlabel{\the\c@gbalignlabel}
- %为引用标签标注/文献表中本地化字符串中英文选择增加的计数器/命令
- \newcounter{gbcitelocalcase}
- \newcounter{gbbiblocalcase}
- \def\thegbcitelocalcase{\the\c@gbcitelocalcase}
- \def\thegbbiblocalcase{\the\c@gbbiblocalcase}
-
-
- %
- % 增加不同语言排序的切换选项,numeric样式,不使用该选项
- % gblanorder=chineseahead的顺序为cn,jp,kr,en,fr,ru
- % gblanorder=englishahead的顺序为en,fr,ru,cn,jp,kr
- % gblanorder=cn;en;ru;fr;jp;kr的顺序为指定的cn;en;ru;fr;jp;kr,自定义内容可以随意写以分号分隔
- % v1.0q,20190307,hzz
- %
- \DeclareBibliographyOption[string]{gblanorder}[chineseahead]{%
- \ifstrequal{#1}{chineseahead}%%中文在前的顺序
- {\gdef\lancnorder{1}\gdef\lanjporder{2}\gdef\lankrorder{3}%
- \gdef\lanenorder{4}\gdef\lanfrorder{5}\gdef\lanruorder{6}}%
- {%
- \ifstrequal{#1}{englishahead}%
- {\execlanodeah\dealsortlan}%
- {\execlanodudf{#1}\dealsortlan}%
- }%
- }
- \ExecuteBibliographyOptions{gblanorder}
-
- \def\execlanodeah{%中文在后的顺序
- \gdef\lancnorder{4}
- \gdef\lanjporder{5}
- \gdef\lankrorder{6}
- \gdef\lanenorder{1}
- \gdef\lanfrorder{2}
- \gdef\lanruorder{3}}
-
- \newcounter{lanordernum}
- \newcommand{\execlanodudf}[1]{%like:cn;en;ru;fr;jp;kr
- \setcounter{lanordernum}{0}
- \DeclareListParser{\parsinglanorder}{;}
- \renewcommand*{\do}[1]{\stepcounter{lanordernum}\csxdef{lan##1order}{\thelanordernum}}
- \parsinglanorder{#1}
- }
-
- %
- % 增加本地化字符串的中英文切换选项
- % gbcitelocal指标注中的本地化字符串
- % gbbiblocal 指文献表中的本地化字符串
- % gblocal 指设置文献表和标注中的本地化字符串
- % v1.0o,20190103,hzz
- %
- \DeclareBibliographyOption[string]{gbcitelocal}[gb7714-2015]{%
- \ifstrequal{#1}{gb7714-2015}{\setcounter{gbcitelocalcase}{0}}{}%
- \ifstrequal{#1}{chinese}{\setcounter{gbcitelocalcase}{1}}{}%
- \ifstrequal{#1}{english}{\setcounter{gbcitelocalcase}{2}}{}%
- }
- \ExecuteBibliographyOptions{gbcitelocal}
-
- \DeclareBibliographyOption[string]{gbbiblocal}[gb7714-2015]{%
- \ifstrequal{#1}{gb7714-2015}{\setcounter{gbbiblocalcase}{0}}{}%
- \ifstrequal{#1}{chinese}{\setcounter{gbbiblocalcase}{1}}{}%
- \ifstrequal{#1}{english}{\setcounter{gbbiblocalcase}{2}}{}%
- }
- \ExecuteBibliographyOptions{gbbiblocal}
-
- \DeclareBibliographyOption[string]{gblocal}[gb7714-2015]{%
- \ExecuteBibliographyOptions{gbbiblocal=#1}%
- \ExecuteBibliographyOptions{gbcitelocal=#1}%
- }
- %\ExecuteBibliographyOptions{gblocal} %默认值已经通过两个相关选项设置
-
- %
- % 增加序号标签格式处理选项
- % v1.0l,20180623,hzz
- %
- \DeclareBibliographyOption[string]{gbbiblabel}[bracket]{%
- \csuse{gbbiblabelopt@#1}
- }
- \ExecuteBibliographyOptions{gbbiblabel}
-
- %
- % 增加姓名大小写格式处理选项
- %
- \DeclareBibliographyOption[string]{gbnamefmt}[uppercase]{%
- \ifstrequal{#1}{uppercase}{\setcounter{gbnamefmtcase}{0}}{}%
- \ifstrequal{#1}{lowercase}{\setcounter{gbnamefmtcase}{1}}{}%
- \ifstrequal{#1}{givenahead}{\setcounter{gbnamefmtcase}{2}}{}%given-family
- \ifstrequal{#1}{familyahead}{\setcounter{gbnamefmtcase}{3}}{}
- \ifstrequal{#1}{pinyin}{\setcounter{gbnamefmtcase}{4}}{}%family-given
- \ifstrequal{#1}{reverseorder}{\setcounter{gbnamefmtcase}{5}}{}%family-given/given-family
- }
- \ExecuteBibliographyOptions{gbnamefmt}
-
- %
- % 增加标签对齐选项
- %
- % right是默认的右对齐,left是左对齐,gb7714-2015是项对齐方式
- \DeclareBibliographyOption[string]{gbalign}[right]{%
- \ifstrequal{#1}{right}{\setcounter{gbalignlabel}{0}}{}
- \ifstrequal{#1}{left}{\setcounter{gbalignlabel}{1}}{}
- \ifstrequal{#1}{center}{\setcounter{gbalignlabel}{2}}{}
- \ifstrequal{#1}{gb7714-2015}{\setaligngbstyle}{}
- }
-
- \ExecuteBibliographyOptions{
- giveninits=true,
- urldate =gb7714-2015, %iso,iso8601,edtf
- eventdate =gb7714-2015,
- labeldateparts=true,
- }
-
-%
-% 针对3.13<=biblatex版本的选项设置,因为内容有限,所以不做版本区分,而用时间直接判断
-%
-% 解决国标中“王临慧, 2010a.”和“王临慧, 等, 2010b.”的问题
-% 在没有这个选项之前无法加上a和b
-% v1.0s,20190828
-\@ifpackagelater{biblatex}{2019/08/16}{%
- \ExecuteBibliographyOptions{%
- nohashothers=true}}{}
-
-%=====================================================================
-% 设置本地化字符串
-%=====================================================================
- %
- % 新建当地化字符串,用来记录“等”字符、“和”字符
- %
- \NewBibliographyString{andotherscn}
- \NewBibliographyString{andothersincitecn}
- \NewBibliographyString{andothersincite}
- \NewBibliographyString{andcn}
- \NewBibliographyString{andothersjp}
- \NewBibliographyString{andotherskr}
- \NewBibliographyString{andjp}
- \NewBibliographyString{andkr}
- \NewBibliographyString{andincitecn}
- \NewBibliographyString{andincite}
- \NewBibliographyString{volumecn}
- \NewBibliographyString{numbercn}
- \NewBibliographyString{serialcn}
- \NewBibliographyString{incn}
- \NewBibliographyString{mathesiscn}
- \NewBibliographyString{phdthesiscn}
- \NewBibliographyString{editorcn}
- \NewBibliographyString{editorscn}
-
-
-
- %
- % 修改一些当地化字符串
- %
- % 原理方法:直接利用当地化格式english修改出一些中文的格式,具体修改内容参考english.lbx文件
- % 当然也可以增加比如上面定义的andotherscn
- % 注意:在lbx文件和bbx文件中定义本地字符串的不同语法,两个参数和一个参数的区别
-
- \DefineBibliographyStrings{english}{
- bibliography = {\str@bibliography},
- references = {\str@references},
- bytranslator= {\str@bytranslator},%\addperiod,%将trans. by 改成 译\addcomma\
- and = {\addcomma},%将第2和3人名间的and符号改成逗号,用\finalnamedelim命令也可以定义,参见3.9.1节
- andcn = {\addcomma},%and本地化字符串的中文对应词
- andincitecn = {\addcomma},%将标注中的分开,便于与文献表中的区分
- andincite = {\addcomma},
- %andothers = {et al.},%将超过3个人名的省略,et al.改成为 等
- andotherscn = {\str@andotherscn},%将超过3个人名的省略,et al.改成为 等
- andothersincitecn={\str@andotherscn},%将标注中的分开,便于与文献表中的区分
- andothersincite={et al\adddot},
- backrefpage = {\str@backrefpage:},
- backrefpages = {\str@backrefpages:},
- in={in\intitlepunct},
- volumecn={\str@volumecn},
- numbercn={\str@numbercn},
- serialcn={\str@serialcn},
- andothersjp={他},
- andotherskr={외},
- andjp={和},
- andkr={和},
- incn={\str@incn\addcolon\addspace},
- mathesiscn={\str@mathesiscn},
- phdthesiscn={\str@phdthesiscn},
- editorscn={\str@editorcn},
- editorcn={\str@editorcn},
-}
-
- %
- % 增加两个命令用于临时的局部的修改本地化字符串
- % 其中\setlocalbibstring修改缩写字符串,setlocalbiblstring修改长字符串
- % 注意使用时因为是局部修改,因此要将其与需要修改的引用命令放在一个编组符号内
- % v1.0t,hzz,20190525
- \newcommand{\setlocalbibstring}[2]{%
- \csdef{abx@sstr@#1}{#2}}
- \newcommand{\setlocalbiblstring}[2]{%
- \csdef{abx@lstr@#1}{#2}}
-
-%=====================================================================
-% 动态数据修改
-%=====================================================================
-%
-% 各层次的数据映射和动态修改
-%
-% 原理方法:
-% 1. 进行语言包括中英文判断,并设置和记录,比如记录到userf,usere中
-% 2. 增加文献标识符如[M],[J]等,对一些容易混淆的域进行设置以增强兼容性
-% 3. \DeclareSourcemap命令对于biblatex3.11以下版本只能出现一次,3.11版开始支持多个
-% 4. \DeclarestyleSourcemap在biblatex v3.7版开始可以支持出现多次
-% 5. 把作者和译者信息准确的记录到userf,usere中,用于后面判断是否是cjk字符。
-% 注意:这里用userf,usere而不是namee,namef,是因为只有把name列表转成域,才能有效读取姓名中的字符,
-% 如果用namee,namef,name信息会自动解析,所以就不能为cjk判断提供需要的信息
-%
-% 不同的文献类型使用相同的驱动输出可以有5种方法:
-% 1. 是数据源层的映射,将其它类型转换为某一要使用驱动的类型
-% 2. 是样式层映射,也是将其它类型转换为某一要使用驱动的类型
-% 3. 是驱动层映射,也是将其它类型转换为某一要使用驱动的类型
-% 4. 定义驱动类型别名DeclareBibliographyAlias,将其它类型定义为某一要使用驱动的类型的别名
-% 驱动别名定义本质上是做了驱动层映射
-% 5. 直接定义不同的类型的驱动,但驱动内容相同。
-%
-% 关于数据映射和驱动使用的考虑如下:
-% 1. 为避免利用biber输出bib文件时的数据变动,尽量不在数据源层映射做类型转换
-% 2. 为减少代码量,尽量少做内容相同的不同类型驱动
-% 3. 因此类型相关的处理主要在样式层映射、驱动层映射、驱动别名
-% 4. 由于biblatex默认做的驱动别名处理可能增加一些信息比如masterthesis转thesis时增加的type
-% 可以在样式层映射做某些需要避免这种默认处置的转换
-% 5. 当没有避免默认行为的需求时,全部采用驱动别名的方式处理,等价于驱动层的映射
-%
-% 文献类型和驱动考虑如下:
-% 1. 连续出版物及析出文献有其特殊性,因此考虑两类periodical和article
-% newpaper映射为article,并以note域做区分特殊处理
-% 2. 专著和专著中的析出文献是主要的类型,因此考虑book和inbook
-% standard映射为book或inbook,并以note域做区分特殊处理
-% collection和proceedings基本与book类似,因此做book驱动别名处理
-% incollection和inproceedings基本与inbook类似,因此做inbook驱动别名处理
-% 3. 专利类型有其特殊性,考虑patent类型
-% 4. 电子资源类型有其特殊性,考虑online类型
-% 5. 报告类型与book有点类似,出版项处理与book一样,但有时又要有修改和更新日期
-% 因此考虑用一种类型来输出,使用report类型
-% 6. 手册/学位论文等类型与book有点类似,但对于出版项处理时,有缺省时,直接省略,
-% 同时有version和edition的区别,因此考虑用一种类型来输出,使用manual类型
-% 7. 包括报告,学位论文在内的其它所有的类型,都做一个判断,当没有出版项时,
-% 且存在网址信息时,将其转换为online类型输出,否则都做为manual类型输出。
-% 8. 备选类型misc当存在网址时直接转换为online,由于howpublished域可用于描述
-% 更多的信息,因此不存在网址时,独立做一个备选格式
-% 9. 出版项主要以如下方式处理:
-% (a) location+institution+date 仅用于连续出版物
-% (b)publisher+location+date 用于需要完整输出出版项的类型,比如book,collection,proceedings,in*,report
-% (c)institution+location+date 用于出版项缺失时不输出的类型,包括manual,thesis,archive等其他类型
-% (d)printlist{insitution} 用于电子资源,仅输出出版者或组织,为数据映射方便,本来默认的organization域转换为用insitution输出。
-% (e) 不输出,主要用于连续出版物析出的文献
-% 10. 日期以如下方式处理:
-% date 由于存在biblatex选项,因此通过选项控制,数据源为date解析数据或year
-% urldate 由于存在biblatex选项,因此通过选项控制,输出到日,且用[]包围,数据源为urldate
-% newsdate 用于公告日期,公开日期或新闻日期,输出到日,但无包围符号,数据源为date
-% modifydate 用于更新或修改日期,输出到日,且用()包围,数据源为date或enddate或eventdate
-
-
-\DeclareSourcemap{
-\maps[datatype=bibtex]{%
- \map{%当没有作者时将editor转成author
- \pernottype{inbook}%因为in系列中editor可能用来表示bookauthor,所以排除
- \pernottype{inproceedings}
- \pernottype{incollection}
- \pernottype{periodical}%因为peridical直接使用editor,所以排除
- %注意notfield在低版本biblatex中没有
- %\step[notfield=author,final]%当author不存在,将editor复制给author
- \step[fieldsource=editor,fieldtarget=author]%并删除editor
- }
- \map{%当没有作者时将translator转成author
- \pernottype{inbook}
- \pernottype{inproceedings}
- \pernottype{incollection}
- %\step[notfield=author,final]%当author不存在,将translator复制给author
- \step[fieldsource=translator,fieldtarget=author]%并删除translator
- }
- \map{%让address和location同步,biblatex中address是location的别名
- %因此输出的时候只有location信息,但处理过程中是可以存在address的。
- %\step[notfield=address,final]
- \step[fieldsource=location,final]
- \step[fieldset=address,origfieldval]
- }
- \map{%让address和location同步
- %\step[notfield=location,final]
- \step[fieldsource=address,final]
- \step[fieldset=location,origfieldval]
- }
- \map{%处理在bib文件用mark标记文献类型标识符的情况
- \step[fieldsource=mark,final]
- \step[fieldset=usera, origfieldval]
- }
- \map{%处理在bib文件中直接给出文献的姓名格式为lowercase的情况
- \step[fieldsource=nameformat,match=lowercase,final]
- \step[fieldset=namefmtid,fieldvalue={1}]
- }
- \map{%处理在bib文件中直接给出文献的姓名格式为givenahead的情况
- \step[fieldsource=nameformat,match=givenahead,final]
- \step[fieldset=namefmtid,fieldvalue={2}]
- }
- \map{%处理在bib文件中直接给出文献的姓名格式为familyahead的情况
- \step[fieldsource=nameformat,match=familyahead,final]
- \step[fieldset=namefmtid,fieldvalue={3}]
- }
- \map{%处理在bib文件中直接给出文献的姓名格式为pinyin的情况
- \step[fieldsource=nameformat,match=pinyin,final]
- \step[fieldset=namefmtid,fieldvalue={4}]
- }
- \map{%根据article确定文献类型标识符
- \pertype{article}
- \step[fieldset=usera, fieldvalue={J}]
- }
- \map{%根据periodical确定文献类型标识符
- \pertype{periodical}
- \step[fieldset=usera, fieldvalue={J}]
- \step[fieldsource=author] %有时会把author和editor混淆,处理后使用editor
- \step[fieldset=editor, origfieldval]
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%根据增加一个新闻报纸的类型newspaper确定文献类型标识符
- \pertype{newspaper}
- \step[fieldset=usera, fieldvalue={N}]
- \step[fieldset=note, fieldvalue=news]%因为没有专门的驱动,记录note方便映射为article后判断
- }
- \map{%对应增加的一个数据库类型database确定文献类型标识符
- \pertype{database}
- \step[fieldset=usera, fieldvalue={DB}]
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%对应增加的一个数据集类型dataset确定文献类型标识符
- \pertype{dataset}
- \step[fieldset=usera, fieldvalue={DS}]%
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%对应增加的一个软件类型software确定文献类型标识符
- \pertype{software}
- \step[fieldset=usera, fieldvalue={CP}]
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%对应增加的一个舆图类型map确定文献类型标识符
- \pertype{map}
- \step[fieldset=usera, fieldvalue={CM}]%
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%对应增加的一个档案类型archive确定文献类型标识符
- \pertype{archive}
- \step[fieldset=usera, fieldvalue={A}]
- \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{%因为misc类型本身就是没有类型,而不像其它文献有明确的类型,所以
- %当misc类型带有网址时,直接将其转换为online类型
- \pertype{misc}
- \step[fieldsource=url,final]
- \step[typesource=misc,typetarget=online]
- }
- \map{%对应增加的一个备选类型misc确定文献类型标识符
- \pertype{misc}
- \step[fieldset=usera, fieldvalue={Z}]%
- }
- \map{
- \pertype{book}
- \pertype{inbook}
- \step[fieldset=usera, fieldvalue={M}]
- \step[fieldsource=version] %有时会把version和edition混淆,处理后直接用edition
- \step[fieldset=edition, origfieldval]
- }
- \map{%兼容老的standard类型,确定文献类型标识符
- \pertype{standard}
- \step[fieldset=usera, fieldvalue={S}]
- \step[fieldset=note, fieldvalue=standard]%因为没有专门的驱动,记录note方便映射为book和inbook后判断
- }
- \map{
- \pertype{patent}
- \step[fieldset=usera, fieldvalue={P}]
- }
- \map{
- \pertype{inproceedings}
- \pertype{conference}%兼容老的conference类型
- \step[fieldset=usera, fieldvalue={C}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{proceedings}
- \step[fieldset=usera, fieldvalue={C}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{incollection}
- \step[fieldset=usera, fieldvalue={G}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{collection}
- \step[fieldset=usera, fieldvalue={G}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{report}
- \pertype{techreport}%兼容老的techreport类型
- \step[fieldset=usera, fieldvalue={R}]
- \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
- \step[fieldset=publisher, origfieldval]
- }
- \map{
- \pertype{thesis}
- \pertype{mastersthesis}%兼容老的mastersthesis和phdthesis类型
- \pertype{phdthesis}
- \step[fieldset=usera, fieldvalue={D}]
- \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- }
- \map{
- \pertype{online}
- \pertype{electronic}%兼容老的electronic类型
- \pertype{www}%兼容老的www类型
- \step[fieldset=usera, fieldvalue={EB}]
- \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]%因为online的出版项处理类似手册
- \step[fieldsource=organization]%有时会把organization和institution混淆,处理后使用institution,以增强兼容性
- \step[fieldset=institution, origfieldval]
- }
- \map{
- \pertype{manual}
- \step[fieldset=usera, fieldvalue={A}]
- \step[fieldsource=edition]%有时会把version和edition混淆,处理后使用version
- \step[fieldset=version, origfieldval]
- \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
- \step[fieldset=institution, origfieldval]
- \step[fieldsource=organization]%有时会把organization和institution混淆,处理后使用institution,以增强兼容性
- \step[fieldset=institution, origfieldval]
- }
- \map{
- \pertype{unpublished}
- \step[fieldset=usera, fieldvalue={Z}]
- }
- \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
- \step[fieldsource={author}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
- }%
- \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
- \step[fieldsource={editor}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
- }%
- \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
- \step[fieldsource={translator}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
- }%
- \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
- \step[fieldsource={bookauthor}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
- }%
- \map{%处理一些用year表示date的情况
- %这样处理将会设置date域,并使得labeldatesource变为空,因为date的前缀为空(如果是urldate,那么labeldatesource就是url)。
- %同时date域会被biblatex自动解析为year,month,day,并且覆盖原来的year信息
- \step[fieldsource=year]
- \step[fieldset=date, origfieldval]
- }
- \map{%将entrykey放入keywords中用于后期使用
- \step[fieldsource=entrykey]
- \step[fieldset=keywords, origfieldval]
- }
- \map{\step[fieldsource=title,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=userd,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=title,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=userd,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=title,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=userd,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=title,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=userd,fieldvalue={korean}]%韩语
- }
- \map{%文献题名的中文判断,将信息保存到userd中,避免因为标签生成原因导致title域被清除而产生问题
- \step[fieldsource=title, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%
- \step[fieldset=userd, fieldvalue={chinese}]
- }
- \map{%将没有设置userd,且存在title域的默认设置为英文
- \step[fieldsource=title,final]
- \step[fieldset=userd,fieldvalue={english}]
- }
- \map{\step[fieldsource=author,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=userf,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=author,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=userf,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=author,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=userf,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=author,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=userf,fieldvalue={korean}]%韩语
- }
- \map{%作者的中文判断
- \step[fieldsource=author, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]
- \step[fieldset=userf, fieldvalue={chinese}]
- }
- \map{%将没有设置userf,且存在author域的默认设置为英文
- \step[fieldsource=author,final]
- \step[fieldset=userf,fieldvalue={english}]
- }
- \map{\step[fieldsource=translator,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=usere,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=translator,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=usere,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=translator,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=usere,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=translator,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=usere,fieldvalue={korean}]%韩语
- }
- \map{%译者的中文判断
- \step[fieldsource=translator, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]
- \step[fieldset=usere, fieldvalue={chinese}]
- }
- \map{%将没有设置usere,且存在translator域的默认设置为英文
- \step[fieldsource=translator,final]
- \step[fieldset=usere,fieldvalue={english}]
- }
- \map{\step[fieldsource=editor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=userc,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=editor,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=userc,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=editor,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=userc,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=editor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=userc,fieldvalue={korean}]%韩语
- }
- \map{%编者的中文判断
- \step[fieldsource=editor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5
- \step[fieldset=userc, fieldvalue={chinese}]
- }
- \map{%将没有设置userc,且存在editor域的默认设置为英文
- \step[fieldsource=editor,final]
- \step[fieldset=userc,fieldvalue={english}]
- }
- \map{\step[fieldsource=bookauthor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
- \step[fieldset=userb,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
- }
- \map{%
- \step[fieldsource=bookauthor,match=\regexp{[\x{0400}-\x{052F}]},final]
- \step[fieldset=userb,fieldvalue={russian}]%俄语
- }
- \map{%
- \step[fieldsource=bookauthor,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
- \step[fieldset=userb,fieldvalue={japanese}]%日语
- } %确定形式后可增加类似andotherscn这样的本地化字符串处理
- \map{%
- \step[fieldsource=bookauthor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
- \step[fieldset=userb,fieldvalue={korean}]%韩语
- }
- \map{%编者的中文判断
- \step[fieldsource=bookauthor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5
- \step[fieldset=userb, fieldvalue={chinese}]
- }
- \map{%将没有设置userc,且存在editor域的默认设置为英文
- \step[fieldsource=bookauthor,final]
- \step[fieldset=userb,fieldvalue={english}]
- }
- \map{\step[fieldsource=userd,final]%userd存在则用根据标题的语言设定language
- \step[fieldset=language,origfieldval]%本身language存在则不设定
- }
- \map{\step[fieldsource=userf,final]%userd不存在,而userf存在则根据author的语言设定language
- \step[fieldset=language,origfieldval]
- }%如果没有作者和标题,那么剩下的最可能有意义的只有网址了,而网址通常是英文的,因此不用再进一步对其它域进行判断了。
- \map{%将没有设置的language设置成en,即认为不是中文的就是英文的。
- \step[fieldset=language,fieldvalue={english}]
- }
- \map{%一条文献的语言已经设定在language域中,由于出版项相关宏中使用userd判断,
- %所以将一条文献的主体语言设定到userd中,本身前面userd已经设定,但没有处理无标题的情况,
- %这里的处理等价于没有标题时,利用作者的语言设定userd,再没有作者,则默认用英文设定userd
- \step[fieldsource=language]
- \step[fieldset=userd,origfieldval]
- }
- \map{%当文献给出language域时,设置文献要使用的本地化字符串的语言
- %biblatex 3.11及以下版本仅有match是区分大小写的,而3.12版开始用matchi来区分大小,而match不区分
- %这里为兼容3.11及以下版本,所以用一个复杂一点的正则表达式
- \step[fieldsource=language,match=\regexp{(e|E)(n|N)(g|G)(l|L)(i|I)(s|S)(h|H)},final]
- \step[fieldset=langid,fieldvalue={english}]
- \step[fieldset=lansortorder,fieldvalue=\lanenorder]
- }
- \map{
- \step[fieldsource=language,match=\regexp{(r|R)(u|U)(s|S)(s|S)(i|I)(a|A)(n|N)},final]
- \step[fieldset=langid,fieldvalue={russian}]
- \step[fieldset=lansortorder,fieldvalue=\lanruorder]
- }
- \map{%
- \step[fieldsource=language,match=\regexp{(f|F)(r|R)(e|E)(n|N)(c|C)(h|H)},final]
- \step[fieldset=langid,fieldvalue={french}]
- \step[fieldset=lansortorder,fieldvalue=\lanfrorder]
- }
- \map{%
- \step[fieldsource=language,match=\regexp{(c|C)(h|H)(i|I)(n|N)(e|E)(s|S)(e|E)},final]%中日韩语目前都用english,
- \step[fieldset=langid,fieldvalue={english}]
- \step[fieldset=lansortorder,fieldvalue=\lancnorder]
- }
- \map{%
- \step[fieldsource=language,match=\regexp{(j|J)(a|A)(p|P)(a|A)(n|N)(e|E)(s|S)(e|E)},final]%中日韩语目前都用english,
- \step[fieldset=langid,fieldvalue={english}]
- \step[fieldset=lansortorder,fieldvalue=\lanjporder]
- }
- \map{%
- \step[fieldsource=language,match=\regexp{(k|K)(o|O)(r|R)(e|E)(a|A)(n|N)},final]%中日韩语目前都用english,
- \step[fieldset=langid,fieldvalue={english}]
- \step[fieldset=lansortorder,fieldvalue=\lankrorder]
- }
-}
-}
-
-
-%
-% 修改输入的参考文献数据,样式层的操作
-%
- \DeclareStyleSourcemap{
- \maps[datatype=bibtex]{
- \map{%尝试未定义数据模型的standard类型映射为其他类型book或inbook,
- %standard类型在blx-dm中有出现,但仅定义了类型,域和约束等都没有定义
- %因为可能要映射两种类型,所以不能在驱动层处理,因为要做判断
- \step[fieldsource=booktitle,final]%当存在booktitle域是映射为inbook
- \step[typesource=standard, typetarget=inbook, final]
- }
- \map{%剩下的全部映射为book
- \step[typesource=standard, typetarget=book, final]
- }
-% \map{%先于标准样式的driver层映射,以取消type设置
-% \step[typesource=mastersthesis, typetarget=thesis, final]
-% %\step[fieldset=type, fieldvalue=mathesis]
-% }
-% \map{%先于标准样式的driver层映射,以取消type设置
-% \step[typesource=phdthesis, typetarget=thesis, final]
-% %\step[fieldset=type, fieldvalue=phdthesis]
-% }
- \map{%先于标准样式的driver层映射,以取消type设置
- \step[typesource=techreport, typetarget=report, final]
- %\step[fieldset=type, fieldvalue=techreport]
- }
- \map{%
- \pertype{report}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=report,typetarget=online]
- \step[fieldset=note,fieldvalue={report}]
- }
- \map{%
- \pertype{thesis}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=thesis,typetarget=online]
- }
- \map{%
- \pertype{manual}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=manual,typetarget=online]
- }
- \map{%
- \pertype{unpublished}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=unpublished,typetarget=online]
- }
- \map{%
- \pertype{database}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=databasetypetarget=online]
- }
- \map{%
- \pertype{dataset}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=dataset,typetarget=online]
- }
- \map{%
- \pertype{software}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=software,typetarget=online]
- }
- \map{%
- \pertype{map}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=map,typetarget=online]
- }
- \map{%
- \pertype{archive}
- %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
- \step[fieldset=location,fieldvalue={}]
- \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
- %3.7以上版本用notfield
- %\step[notfield=address,final]%当address不存在则继续
- \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
- \step[typesource=archive,typetarget=online]
- }
- \map[overwrite]{%这里还必须有overwrite,注意不同版本存在差异,比如texlive2015变16后biber有变化(20161207修改正确)
- \step[fieldsource=note, final]%将note域信息复制给keywords,用于输出时容易区分标准和报纸
- \step[fieldset=keywords, fieldvalue={,}, append]
- \step[fieldset=keywords, origfieldval, append]
- }
- \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{
- \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\#}, replace=\regexp{$1\\\#}]
- }
- \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{
- \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\%}, replace=\regexp{$1\\\%}]
- }
- \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,%
- address,location,institution,organization}]{
- \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
- }
- }
- }
-
-%
-% 佚名/noauthor的处理
-%
-% 原理方法:利用样式层的动态数据修改实现
-\def\dealnoathor{
- \DeclareStyleSourcemap{
- \maps[datatype=bibtex]{
- \map{%默认情况下将空缺作者的中文文献设置为佚名
- \step[fieldsource=language,match={chinese},final]
- \step[fieldset=author, fieldvalue={佚名}]
- }
- \map{%默认情况下将空缺作者的英文文献设置为A{non}
- \step[fieldsource=language,match={english},final]
- \step[fieldset=author, fieldvalue={A{non}}]%noauthor换成Anon,同时为避免大写还加了{}
- }
- }
- }
-}
-
-%
-% 不同语言分集调整的实现方式
-%
-% 原理方法:利用样式层的动态数据修改lansortorder域来实现排序
-\def\dealsortlan{
- \DeclareStyleSourcemap{
- \maps[datatype=bibtex]{
- \map[overwrite]{%当文献给出language域时,设置文献要使用的本地化字符串的语言
- \step[fieldsource=language,match=english,final]
- \step[fieldset=lansortorder,fieldvalue=\lanenorder]
- }
- \map[overwrite]{
- \step[fieldsource=language,match=russian,final]
- \step[fieldset=lansortorder,fieldvalue=\lanruorder]
- }
- \map[overwrite]{%
- \step[fieldsource=language,match=french,final]
- \step[fieldset=lansortorder,fieldvalue=\lanfrorder]
- }
- \map[overwrite]{%
- \step[fieldsource=language,match=chinese,final]%中日韩语目前都用english,
- \step[fieldset=lansortorder,fieldvalue=\lancnorder]
- }
- \map[overwrite]{%
- \step[fieldsource=language,match=japanese,final]%中日韩语目前都用english,
- \step[fieldset=lansortorder,fieldvalue=\lanjporder]
- }
- \map[overwrite]{%
- \step[fieldsource=language,match=korean,final]%中日韩语目前都用english,
- \step[fieldset=lansortorder,fieldvalue=\lankrorder]
- }
- }
- }
-}
-
-
-
-
-%
-%驱动别名等价于驱动层映射
-%
-\DeclareBibliographyAlias{newspaper}{article}%
-\DeclareBibliographyAlias{inproceedings}{inbook}%会议论文文献类型驱动
-\DeclareBibliographyAlias{conference}{inbook}%会议论文文献类型驱动
-\DeclareBibliographyAlias{incollection}{inbook}%文集中析出文献类型驱动
-\DeclareBibliographyAlias{collection}{book}%%文集类型驱动
-\DeclareBibliographyAlias{proceedings}{book}%会议论文集文献类型驱动
-\DeclareBibliographyAlias{thesis}{manual}%学位论文驱动
-\DeclareBibliographyAlias{unpublished}{manual}%其它类型驱动
-\DeclareBibliographyAlias{database}{manual}
-\DeclareBibliographyAlias{dataset}{manual}
-\DeclareBibliographyAlias{software}{manual}
-\DeclareBibliographyAlias{map}{manual}
-\DeclareBibliographyAlias{archive}{manual}
-
-
-%=====================================================================
-% 设置排序格式
-%=====================================================================
-%
-% 排序格式,用降序,及userb域,针对biblatex3.8及以上版本
-%
-\DeclareSortingTemplate{gb7714-2015}{
- \sort{
- \field{presort}
- }
- %\sort[final]{
- %\field{sortkey}
- %}
- \sort{
- \field{lansortorder}%language
- }
- \sort{
- \field{sortkey}
- }
- \sort{%[direction=descending]
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field{volume}
- \literal{0}
- }
- }
-
- %降序的nyt
- \DeclareSortingTemplate{gbnytd}{
- \sort{
- \field{presort}
- }
-% \sort[final]{
-% \field{sortkey}
-% }
- \sort{
- \field{lansortorder}%language
- }
- \sort[direction=descending]{
- \field{sortkey}
- }
- \sort[direction=descending]{%
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field{volume}
- \literal{0}
- }
- }
-
- %降序的ynt
- \DeclareSortingTemplate{gbyntd}{
- \sort{
- \field{presort}
- }
-% \sort[final]{
-% \field{sortkey}
-% }
- \sort{
- \field{lansortorder}%language
- }
- \sort[direction=descending]{
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sortkey}
- }
- \sort{%
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field{volume}
- \literal{0}
- }
- }
-
- %升序的ynt
- \DeclareSortingTemplate{gbynta}{
- \sort{
- \field{presort}
- }
-% \sort[final]{
-% \field{sortkey}
-% }
- \sort{
- \field{lansortorder}%language
- }
- \sort{%[direction=ascending]
- \field{sortyear}
- \field{year}
- }
- \sort{
- \field{sortkey}
- }
- \sort{%
- \field{sortname}
- \field{author}
- \field{editor}
- \field{translator}
- }
- \sort{
- \field{sorttitle}
- \field{title}
- }
- \sort{
- \field{volume}
- \literal{0}
- }
- }
-
-%=====================================================================
-% 参考文献表环境
-%=====================================================================
-%
-% 列表格式
-%
-% 增加一个\bibitemindent尺寸用于控制list环境的itemindent
-% v1.0l,20180615,hzz
-% v1.0t,20200319,hzz,增加尺寸\biblabelextend使某些字体下标签宽度不足时可增加标签宽度
-\setlength{\bibhang}{\biblabelsep}%
-\newlength{\bibitemindent}
-\setlength{\bibitemindent}{0pt}
-\newlength{\biblabelextend}
-\setlength{\biblabelextend}{0pt}
-
-
-\defbibenvironment{bibliography}
- {\list
- {\printtext[labelnumberwidth]{%
- \printfield{labelprefix}%
- \printfield{labelnumber}}}
- {\addtolength{\labelnumberwidth}{\biblabelextend}%
- \setlength{\labelwidth}{\labelnumberwidth}%
- \setlength{\labelsep}{\biblabelsep}%
- \setlength{\leftmargin}{\bibhang}%
- \addtolength{\leftmargin}{\labelnumberwidth}%
- \setlength{\itemindent}{\bibitemindent}%
- \setlength{\itemsep}{\bibitemsep}%
- \setlength{\parsep}{\bibparsep}}%
- \renewcommand*{\makelabel}[1]{\hss##1}}
- {\endlist}
- {\item}
-
-%
-% 顺序编码制-标签对齐方式处理
-%
-% 原理方法:利用选项提供的计数器数值做选择
-% 左对齐,右对齐为list环境下的处理,此时list环境的\labelwidth只能设置一个,是最宽标签的宽度
-% 项对齐则是在段落环境下做的处理。
-% 左对齐时,参考文献各项内容对齐,序号标签与参考文献项内容的间距可变
-% 右对齐时,参考文献各项内容对齐,序号标签与参考文献项内容的间距相等,标签与页边距离可变
-% 项对齐时,序号标签贴在页边,序号标签与参考文献项内容的间距相等
-% 修改序号标签格式为:
-% \DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}} %源来自numeric.BBX
-% \DeclareFieldFormat{labelnumberwidth}{\ttfamily\mkbibbrackets{#1}\hfill}
-\DeclareFieldFormat{labelnumberwidth}{%
-\ifcase\value{gbalignlabel}%右对齐,整个标签为右对齐
- \mkgbnumlabel{#1}%
-\or%左对齐,整个标签为左对齐
- \mkgbnumlabel{#1}\hfill%
-\or%中间对齐,比如:序号数字居于[]中间
- \hfil\mkgbnumlabel{\hfill#1\hfill}\hfil%
-\fi}
-
-%
-% 修改序号标签格式为以各条参文献为基础进行对齐的方式,即序号与条目内容间隔相等的方式。
-\def\setaligngbstyle{%
-\def\blx@bibitem##1{%
- \blx@ifdata{##1}
- {\begingroup
- \blx@getdata{##1}%
- \blx@bibcheck
- \iftoggle{blx@skipentry}{}{%
- \blx@setdefaultrefcontext{##1}%
- \global\let\blx@noitem\@empty
- \blx@setoptions@type\abx@field@entrytype
- \blx@setoptions@entry
- \blx@thelabelnumber
- \addtocounter{instcount}\@ne
- \blx@initsep
- \blx@namesep
- \csuse{blx@item@\blx@theenv}\relax
-% \blx@initsep %移动到上面去,恢复bibnamesep等的作用机制
-% \blx@namesep
- \csuse{blx@hook@bibitem}%
- \blx@execute
- \blx@initunit
- \blx@anchor
- \blx@beglangbib
- \bibsentence
- \blx@pagetracker
- \blx@driver\abx@field@entrytype
- \blx@postpunct
- \blx@endlangbib}%
- \par\endgroup}%这里增加了一个\par
- {}}
-\newlength{\lengthid}
-\newlength{\lengthlw}
-\newcommand{\itemcmd}{%
-\settowidth{\lengthid}{\mkgbnumlabel{\printfield{labelnumber}}}
-\addtolength{\lengthid}{\biblabelsep}
-\setlength{\lengthlw}{\textwidth}
-\addtolength{\lengthlw}{-\lengthid}
-\addvspace{\bibitemsep}%恢复\bibitemsep的作用
-%\parshape 2 0em \textwidth \lengthid \lengthlw
-\hangindent\lengthid
-\mkgbnumlabel{\printfield{labelnumber}}%
-\hspace{\biblabelsep}}
-%
-% 简单的段落环境
-\defbibenvironment{bibliography}
-{\begingroup\setlength{\parindent}{0em}}
-{\endgroup}
-{\itemcmd}}
-
-
-%=====================================================================
-% 设置单元或块等的标点
-%=====================================================================
-\renewrobustcmd*{\bibinithyphendelim}{\addhighpenspace}%用于处理姓名中名部分存在-的情况,比如ZHANG Yu-xin
-\renewcommand*{\subtitlepunct}{\addcolon\addspace} %修改标题和其它标题信息间的标点,来源biblatex.def,
-%
-% 利用set实现的多语言文献不同语言间的分隔符
-% 20170411,双语之间用newline替换par,避免采用gb7714-2015的项对齐方式第二语言间分段导致没有缩进
-%
-% 原理方法:set方法可以参考3.11.5 Entry Sets,4.11.1 Entry Sets
-% 这里调整一下两种语言参考文献的间隔,源来自biblatex.def
-\renewcommand*{\entrysetpunct}{\adddot\newline\nobreak}
-\renewcommand*{\bibpagespunct}{\addcolon\addthinspace}%%页码引用格式的修改,修改为用冒号
-%\renewcommand{\relateddelim}{}%\par
-
-%=====================================================================
-% 修改域的格式,重定义域的输出宏
-%=====================================================================
-%
-% 新增文献类型标识符的格式
-% []前的nobreak,从GB4.1节的例子看不应该加,所以去掉
-% 但因为考虑到cjk字符和[]之间可能添加空格,所以仍然加上
-% 而[]中间的内容,从4.6.2节的例子看也是可以分割的,因此内部的nobreak也可以去掉
-%
-\DeclareFieldFormat{gbtypeflag}{%
-\iftoggle{bbx:gbmedium}%
-{\iftoggle{bbx:url}%
- {\iffieldundef{url}%当存在url时,增加一个OL标识符
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}}%
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\texttt{/}OL]}}%
- }%
- {\ifentrytype{online}%
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\texttt{/}OL]}}%
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}}%
- }}%
- {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{]}}%
-}
-
-%
-% 新增用于报纸的文献类型标识符的格式
-%
-\DeclareFieldFormat{gbtypeflagn}{%用于报纸newspaper
-\iftoggle{bbx:gbmedium}%
-{\iftoggle{bbx:url}%
- {\iffieldundef{url}%当存在url时,增加一个OL标识符
- {\nobreak\printtext{[}\nobreak N\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
- {\nobreak\printtext{[}\nobreak N\printtext{\texttt{/}OL]}\nobreak}%
- }%
- {\nobreak\printtext{[}\nobreak N\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
-}{\nobreak\printtext{[}\nobreak N\printtext{]}\nobreak}%
-}
-
-%
-% 新增用于标准的文献类型标识符的格式
-%
-\DeclareFieldFormat{gbtypeflags}{%用于标准standard
-\iftoggle{bbx:gbmedium}%
-{\iftoggle{bbx:url}%
- {\iffieldundef{url}%当存在url时,增加一个OL标识符
- {\nobreak\printtext{[}\nobreak S\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
- {\nobreak\printtext{[}\nobreak S\printtext{\texttt{/}OL]}\nobreak}%
- }%
- {\nobreak\printtext{[}\nobreak S\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
-}{\nobreak\printtext{[}\nobreak S\printtext{]}\nobreak}%
-}
-
-%
-% 重设title等参考文献信息的输出格式
-%
-% 原理方法:修改来自biblatex.def文件的原格式
-\newcommand{\bibtitlefont}{}
-\newcommand{\bibauthorfont}{}
-\newcommand{\bibpubfont}{}
-
-\DeclareFieldFormat{title}{#1\adddot\addthinspace}
-\DeclareFieldFormat{journaltitle}{#1\isdot}%添加\isdot用于缩写名带点情况,将其转换为缩写点,便于标点的追踪
-\DeclareFieldFormat{issuetitle}{#1}
-\DeclareFieldFormat{maintitle}{#1}
-\DeclareFieldFormat{booktitle}{#1}
-\DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉
- [article,patent,thesis,unpublished]
- {title}{#1\adddot\addthinspace}%\mkbibquote{#1\isdot}
-\DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉
- [inbook,incollection,inproceedings]
- {title}{#1}%\nopunct\unspace
-\DeclareFieldFormat{url}{\url{#1}} %%url相关输出,url域修改如本行,源来自biblatex.def
-\def\UrlFont{\rmfamily}%设置url字体为roman字体%\ttfamily
-%\urlstyle{rm} %使用这句也一样
-\setcounter{biburlnumpenalty}{100} %让url可以在数字后断行
-\setcounter{biburlucpenalty}{100} %让url可以在大写字母后断行
-\setcounter{biburllcpenalty}{100} %让url可以在小写字母后断行
-\DeclareFieldFormat{doi}{%
- \rmfamily{DOI}\addcolon\space
- \ifhyperref
- {\href{https://doi.org/#1}{\nolinkurl{#1}}}
- {\nolinkurl{#1}}}
-%
-% 标题的字母大小写格式修改
-%
-% 注意:修改标题的字母大小写,不能用前面的title的格式而要用titlecase
-% 因为titlecase is applied to the contents of the field directly,title is not
-%\DeclareFieldFormat{titlecase}{\MakeCapital#1}%重设标题格式,将其修改为首字母大写
-\DeclareFieldFormat{titlecase}{\iftoggle{bbx:titlelink}{%
-\iffieldundef{url}{\MakeCapital#1}{%
-\href{\thefield{url}}{#1}}}{\MakeCapital#1}}%重设标题格式,将其修改为首字母大写
-\DeclareFieldFormat{pages}{#1}%去掉前面引导页码的pp.等字符,\mkpageprefix[bookpagination]{#1}
-\DefineBibliographyExtras{english}{\renewcommand*{\bibrangedash}{-}}%将页码间隔符替换会英文的短横线
-\DefineBibliographyExtras{russian}{\renewcommand*{\bibrangedash}{-}}
-
-\def\execgbfdfmtstd{%恢复到标准样式的设置
-\DeclareFieldFormat{title}{\mkbibemph{##1}}
-\DeclareFieldFormat
- [article,inbook,incollection,inproceedings,patent,thesis,unpublished]
- {title}{\mkbibquote{##1\isdot}}
-\DeclareFieldFormat
- [suppbook,suppcollection,suppperiodical]
- {title}{##1}
-\DeclareFieldFormat{journaltitle}{\mkbibemph{##1}}
-\DeclareFieldFormat{issuetitle}{\mkbibemph{##1}}
-\DeclareFieldFormat{maintitle}{\mkbibemph{##1}}
-\DeclareFieldFormat{booktitle}{\mkbibemph{##1}}
-\DeclareFieldFormat{url}{\mkbibacro{URL}\addcolon\space\url{##1}}
-\DeclareFieldFormat{titlecase}{##1}
-\DeclareFieldFormat{pages}{\mkpageprefix[bookpagination]{##1}}
-}
-
-%
-% 文献标题后的标点问题
-% v1.0k,20180405,为texlive2017以上版本中的beamer兼容性做的处理,Hu Zhenzhen
-%
-% 原理方法:如下代码处理texlive2017以上版本中,beamer中文献的标题后出现两个点的情况:
-% texlive2017以上的beamer中对macro{title}做了patch,正常情况下不会出现两个点的情况,但由于
-% 之前为了处理texlive2015,2016下的title格式添加了adddot,导致出现两个点的情况,而且也影响
-% 析出文献的//符号的输出,因此再次对macro{title}做patch消除beamer中做apptocmd时添加的\newunitpunct
- {%texlive 2017对应iftlseven以上版本
- \@ifclassloaded{beamer}{
- \DeclareFieldFormat{title}{#1}%
- \DeclareFieldFormat[article,patent,thesis,unpublished]{title}{#1}
- \AtBeginDocument{%
- \patchcmd{\abx@macro@title}{\newunitpunct}{}{}{}}}{}
- }
-
-
-%
-% 修改译者位置格式
-%
-% 原理方法:修改来自biblatex.def文件的bytranslator+others宏的格式
-\renewbibmacro*{bytranslator+others}{%
- \ifnameundef{translator}
- {}
- {%\usebibmacro{bytranslator+othersstrg}
- %\setunit{\addspace}%
- \printnames[bytranslator]{translator}%
- \clearname{translator}%
- %从macro*{bytranslator+othersstrg}%中可以看到当地化字符串格式的引用前的代码处理
- %比如生成cotranslator等用于调用cotranslator所代表的当地化字符串
- \usebibmacro{bytranslator+othersstrg}%“译”的位置换到下面来,即放到译者后面。
- %\setunit{\addspace}%
- \newunit}%
- \usebibmacro{withothers}}
-
-
-%
-% 修改作者数量超过限定值,做省略时的处理格式
-% v1.0,20160701,hzz
-% v1.0O,20190103,hzz,修改利用新定义的一个分隔符strandothersdelim
-%
-% 原理方法:判断作者或译者是否中文,若中文用字符等,否则用et al. 。
-% \printnames由start-stop控制项数,默认是1和maxnames/minnames
-\renewbibmacro*{name:andothers}{%
- \ifboolexpr{
- test {\ifnumequal{\value{listcount}}{\value{liststop}}}
- and
- test \ifmorenames
- }{\ifnumgreater{\value{liststop}}{1}%注意这里试图去区分姓名总数大于1的情况,当姓名总数大于1时,最后一个姓名后面先加入一个\finalandcomma
- {\finalandcomma}%目前国标没有这样的区分要求,如果有需要也是可以这么去做的。
- {}%
-\printdelim{andothersdelim}\printdelim{strandothersdelim}%
-}{%当是译者的时候需要特殊处理:从7.2节看等,译前面加逗号,但从示例看等和译同时出现时,译前的逗号没有,比如:
-%袁训来, 陈哲, 肖书海, 等.
-%胡泳, 范海燕, 译.
-%潘惠霞, 魏婧, 杨艳, 等译.
-\ifcurrentname{translator}{\addcomma\addthinspace}{}%为了实现上述第二个示例情况做的处理
-}}
-
-
-%
-% 修改省略作者后的本地化字符串,比如et al.
-% v1.0o,20190103,hzz
-%
-% 原理方法:默认情况下判断作者或译者是否中文,若中文用字符andotherscn=“等”,否则用andothers=“et al.”。
-% 非默认情况,根据选项信息,选择选择强制中文或英文
-% 首先设置全局的,然后设置文献表中的,这一等价于将所有的cite命令环境都设置过了
-% 而不用对每一个引用命令单独设置,比如cite,parancite,textcite都设置
-\DeclareDelimFormat{strandothersdelim}{%
- \edef\userfieldabcde{userd}%这里使用\iffieldequalstr{labelnamesource}替代ifcurrentname因为标注中使用ifcurrentname无效
- \iffieldequalstr{labelnamesource}{translator}{\edef\userfieldabcde{usere}}{}%
- \iffieldequalstr{labelnamesource}{editor}{\edef\userfieldabcde{userc}}{}%
- \iffieldequalstr{labelnamesource}{author}{\edef\userfieldabcde{userf}}{}%
- \iffieldequalstr{labelnamesource}{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbcitelocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\ifbibstring{andothersincitecn}{\bibstring{andothersincitecn}}{\bibstring{andothers}}}{}%中文已经通过english本地化字符串定义
- \iffieldequalstr{\userfieldabcde}{korean}{\ifbibstring{andotherskr}{\bibstring{andotherskr}}{\bibstring{andothers}}}{}%韩语未定义,所以与bib中一致
- \iffieldequalstr{\userfieldabcde}{japanese}{\ifbibstring{andothersjp}{\bibstring{andothersjp}}{\bibstring{andothers}}}{}%日与同韩语
- \iffieldequalstr{\userfieldabcde}{english}{\ifbibstring{andothersincite}{\bibstring{andothersincite}}{\bibstring{andothers}}}{}%英语已定义
- \iffieldequalstr{\userfieldabcde}{french}{\bibstring{andothers}}{}%法语未定义,若要定义需要针对french本地化字符串定义
- \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{andothers}}{}%俄语未定义,若要定义需要针对russian本地化字符串定义
- \or%
- \bibstring{andothersincitecn}%
- \or%
- \bibstring{andothersincite}%
- \fi}
-
-
-\DeclareDelimFormat[bib,biblist]{strandothersdelim}{%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbbiblocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andotherscn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andotherskr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andothersjp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\bibstring{andothers}}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\bibstring{andothers}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{andothers}}{}%
- \or%
- \bibstring{andotherscn}%
- \or%
- \bibstring{andothers}%
- \fi}
-
-%
-% 修改最后一个作者前的字符串,比如 and
-% v1.0o,20190103,hzz
-%
-% 原理方法:默认情况下判断作者或译者是否中文,若中文用字符andcn=“和”,否则用and=“and”。
-% 非默认情况,根据选项信息,选择选择强制中文或英文
-% 首先设置全局的,然后设置文献表中的,这一等价于将所有的cite命令环境都设置过了
-% 而不用对每一个引用命令单独设置,比如cite,parancite,textcite都设置
-\DeclareDelimFormat{finalnamedelim}{%
- \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
- \addspace%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbcitelocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andincitecn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andkr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andjp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\bibstring{andincite}}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\bibstring{and}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{and}}{}%
-\space%
- \or%
- \bibstring{andincitecn}\space%
- \or%
- \bibstring{andincite}\space%
- \fi}
-
-\DeclareDelimFormat[bib,biblist]{finalnamedelim}{%
- \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
- \addspace%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbbiblocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andcn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andkr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andjp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\bibstring{and}}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\bibstring{and}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{and}}{}%
-\space%
- \or%
- \bibstring{andcn}\space%
- \or%
- \bibstring{and}\space%
- \fi}
-
-
-%
-% 重设title的输出
-%
-% 20180425,v1.0k,为标题增加字体控制命令,Hu Zhenzhen
-% 原理方法:将文献类型标识符输出出去,原输出来自biblatex.def文件
-% 利用toggle做标识符是否输出的判断
-\renewbibmacro*{title}{%
- \ifboolexpr{%
- test{\iffieldundef{title}}%
- and
- test{\iffieldundef{subtitle}}%
- }%
- {}%
- {\printtext[title]{\bibtitlefont%增加字体控制命令
- \printfield[titlecase]{title}%
- \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
- {}{\setunit{\subtitlepunct}%
- \printfield[titlecase]{subtitle}}%
- \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
- {\setunit{\subtitlepunct}\printfield{titleaddon}}%
- \iftoggle{bbx:gbtype}{%
- \iffieldundef{note}{\printfield[gbtypeflag]{usera}}%在标题后直接给出文献标识字母,判断一下,是否是报纸和标准
- {\iffieldequalstr{note}{standard}{\printfield[gbtypeflags]{usera}}%判断是否为标准
- {\iffieldequalstr{note}{news}{\printfield[gbtypeflagn]{usera}}%判断是否为报纸
- {\printfield[gbtypeflag]{usera}}}%其它
- }}{}%
- %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
- %\newunit
-}%
-}}
-
-%
-% 作者信息的输出格式
-%
-% 20180425,v1.0k,为作者增加字体控制命令,Hu Zhenzhen
-% 20180603,v1.0l,增加使用nameformat域来选择姓名格式
-\DeclareNameFormat{namefmtselected}{%
-\iffieldundef{namefmtid}{}%
-{\defcounter{gbnamefmtcase}{\thefield{namefmtid}}}%
-\ifcase\value{gbnamefmtcase}%
- \ifgiveninits
- {\usebibmacro{name:gbuppercase}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:gbuppercase}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
-\or
- \ifgiveninits
- {\usebibmacro{name:gblowercase}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:gblowercase}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
-\or
- \ifgiveninits
- {\usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
-\or
- \ifgiveninits
- {\usebibmacro{name:family-given}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:family-given}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
-\or
-\usebibmacro{name:gbpinyin}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}%
-\or
- \ifnumequal{\value{listcount}}{1}
- {\ifgiveninits
- {\usebibmacro{name:family-given}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:family-given}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}%
- \ifboolexpe{%
- test {\ifdefvoid\namepartgiven}
- and
- test {\ifdefvoid\namepartprefix}}
- {}
- {\usebibmacro{name:revsdelim}}}
- {\ifgiveninits
- {\usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiveni}
- {\namepartprefix}
- {\namepartsuffix}}
- {\usebibmacro{name:given-family}
- {\namepartfamily}
- {\namepartgiven}
- {\namepartprefix}
- {\namepartsuffix}}}%
-\fi
- \usebibmacro{name:andothers}}
-
-\DeclareNameAlias{default}{namefmtselected}%姓名的默认格式采用可选的模式
-\DeclareNameAlias{sortname}{default}% Used in the bibliography %family-given/given-family
-\DeclareNameAlias{citename}{default}% Default used by \citename
-
-\DeclareDelimFormat[bib,biblist]{andothersdelim}{\addcomma\addspace}
-%\DeclareDelimFormat[textcite]{andothersdelim}{\addspace}%
-
-%GB/T 7714-2015 风格,全部大写
-\newbibmacro*{name:gbuppercase}[4]{\bibauthorfont%
-\renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
-\renewcommand*{\revsdnamepunct}{}%
- \ifuseprefix%
- {\usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifdefvoid{#3}{}{%
- \ifcapital%
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}%
- {\mkbibnameprefix{#3}\isdot}%
- \ifprefchar{}{\bibnamedelimc}}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
- \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{\MakeUppercase{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%后缀前加逗号
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
- \ifboolexpe{%
- test {\ifdefvoid{#2}}
- and
- test {\ifdefvoid{#3}}}
- {}{\revsdnamepunct}%
- \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{\MakeUppercase{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
- \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%%后缀前加逗号
-}
-
-%GB/T 7714-2015 风格,大小写不变,根据bib文件内输入原样输出
-\newbibmacro*{name:gblowercase}[4]{\bibauthorfont%
- \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
- \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
- \ifuseprefix
- {\usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifdefvoid{#3}{}{%
- \ifcapital
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
- {\mkbibnameprefix{#3}\isdot}%
- \ifprefchar{}{\bibnamedelimc}}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{{#1}}}\isdot%
- \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%后缀前加逗号
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{{#1}}}\isdot%
- \ifboolexpe{%
- test {\ifdefvoid{#2}}
- and
- test {\ifdefvoid{#3}}}
- {}{\revsdnamepunct}%
- \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}
- \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%%后缀前加逗号
-}
-
-%中文常见风格,汉语拼音全拼模式
-\newbibmacro*{name:gbpinyin}[4]{\bibauthorfont%
-\renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉,%来源biblatex2.STY
-\renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
-\renewrobustcmd*{\bibnamedelima}{\mbox{-}}%
- \ifuseprefix
- {\usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifdefvoid{#3}{}{%
- \ifcapital
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
- {\mkbibnameprefix{#3}\isdot}%
- \ifprefchar{}{\bibnamedelimc}}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
- \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\MakeSentenceCase{\mkbibnamegiven{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
- \ifboolexpe{%
- test {\ifdefvoid{#2}}
- and
- test {\ifdefvoid{#3}}}
- {}
- {\revsdnamepunct}%
- \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{\MakeCapital{#2}}\isdot}%\MakeCapital
- \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}
- \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%
-}
-
-
-%
-% url和url日期格式
-%
-\renewbibmacro*{url+urldate}{%
- %\usebibmacro{url}%%更换url的位置,放到下面
- \iffieldundef{urlyear}%
- {}{%\setunit*{\addspace}%
- \usebibmacro{urldate}}%
- \setunit{\addperiod\addspace}%
- \usebibmacro{url}}
-\renewbibmacro*{url}{\printfield{url}}
-
-
-%
-% 日期信息的输出格式,针对biblatex>=3.10版本
-%
- \DeclareFieldFormat{urldate}{#1}
- \renewbibmacro*{urldate}{%
- \addthinspace\printtext{[}\printurldate\printtext{]}}%能用高层命令+选项尽量用命令(比如这里的\printurldate),而不用\blx@edtfdate这种更底层的命令
-
- %
- % 专利的公告日期、或报纸的日期的输出宏
- % 20160701,v1.0,新增加
- % 20180405,为biblatexv3.10版本,出现多出点bug做处理,Hu Zhenzhen
- %
- % 原理方法:加上printtext避免破坏异步标点机制
- % 本可以用\printdate,但由于date选项设置为year,所以仅会给出年份
- % 所以无法再用选项设置的方法,印象需要用底层的命令
- % 这里可以用\blx@isodate,但用\blx@gbdate试图避免版本判断
- \newbibmacro*{newsdate}{%%
- \printtext{\blx@gbdate{}{}}%%\blx@isodate{}{}%
- }
-
- %
- \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
- \ifboolexpr{%
- test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
- }%
- {}%更新或修改日期通常有day信息
- {\iffieldundef{year}{%
- \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\printtext{(}\printeventdate\printtext{)}}}%
- {\printtext{(}\printenddate\printtext{)}}%
- }{\iffieldequalstr{year}{}{%因为year存在,但为空
- }{\printtext{(}\blx@gbdate{}{}\printtext{)}}%
- }%
- }}%
-
-
-%
-% biblatex>v3.8版利用related实现双语文献的处理
-%
- %为了实现v3.8以上版本的双语文献,采用related的方法代替set方法,因为set方法已经无法实现了,
- %因为set不再复制其第一个成员的信息。于是定义一个命令,用于动态的修改数据,即添加related域的信息
- %其中使用了\DeclareStyleSourcemap,但由于其只能出现在导言区中,因此\defdoublelangentry命令也只能出现在导言区中
- \newcommand{\defdoublelangentry}[2]{%
- \edef\entrykeya{##1}
- \edef\entrykeyb{##2}
- \DeclareStyleSourcemap{
- \maps[datatype=bibtex]{
- \map{
- \step[fieldsource=entrykey, match=\entrykeya, final]
- \step[fieldset=related, fieldvalue=\entrykeyb]
- }
- }
- }
- }
-
-%
-% 关联文献间的分隔符
-%
-\renewcommand{\relateddelim}{\adddot\newline\nobreak}%\par,而作者年样式不需要修改,因为没有项对齐的标签问题
-
-%
-% 关联文献块前的分隔符,针对biblatex>=3.11
-%
-% 原理方法:因为增加了begrelateddelim钩子,所以不需要重定义related输出宏
-\renewcommand{\begrelateddelim}{\adddot\newline\nobreak}
-
-
-%
-% 调整doi+eprint+url格式
-%
-% 原理方法:源来自standard.bbx,因为页码后面直接跟引用日期,没有标点所以去掉其中的标点。
-\renewbibmacro*{doi+eprint+url}{%
-% \iftoggle{bbx:doi}%把doi的位置放到url后面
-% {\printfield{doi}}
-% {}%
- %\newunit\newblock
- \iftoggle{bbx:eprint}
- {\iffieldundef{eprint}{}{\newunit\usebibmacro{eprint}}}
- {}%
- %\newunit\newblock
- \iftoggle{bbx:url}
- {\usebibmacro{url+urldate}}
- {}
- \newunit\newblock
- \iftoggle{bbx:doi}
- {\printfield{doi}}
- {}}
-
-%
-% 调整页码的格式,即chapter+pages格式
-%
-\renewbibmacro*{chapter+pages}{%
-\iftoggle{bbx:gbstrict}{}{%
- \printfield{chapter}}%
- \iffieldundef{pages}{}{%这里增加一个判断,当没有页码时就不输出
- \setunit{\bibpagespunct}%
- \printfield{pages}}%
- %\newunit %这里的标点去掉
-}
-
-%
-% 当location等出版项超过maxitem缩减后不再输出etal
-%
-\DeclareListFormat{location}{%
- \usebibmacro{list:delim}{#1}%
- #1\isdot}
-\DeclareListAlias{institution}{location}
-\DeclareListAlias{publisher}{location}
-
-% 新增一个样式用于输出连续出版物的地址,单位,时间,
-% 用于periodical连续出版物的出版社和地址的处理
-%
-% v1.0k,20180425,为出版信息增加字体控制命令,hzz
-% %类似\newbibmacro*{publisher+location+date}
-\newbibmacro*{location+institution+date}{\bibpubfont%
-\iftoggle{bbx:gbpub}%
-{\testCJKfirst{userd}%
-\ifboolexpr{%
-test {\iflistundef{location}} and test {\iflistundef{institution}}%
-}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress}\space :\space\str@nopublisher]}%
-{\printtext{[S.l.\space :\space s.n.\adddot]}}%
-}{%
-\iflistundef{location}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress]}}{\printtext{[S.l.\adddot]}}}%
- {\printlist{location}}%
-\addcolon\addspace%
-\iflistundef{institution}{%
-\iftoggle{ifCJKforgbt}{\printtext{[\str@nopublisher]}}{\printtext{\mkbibbrackets{s.n.}}}}%
-{\printlist{institution}}}%
-\setunit{\addcomma\addspace}%
- %\usebibmacro{date}%
- \printfield{year}%
- \bibrangedash%
- \iffieldundef{endyear}{}{\printfield{endyear}}%
- \newunit}%
-{\printlist{location}%
- \iflistundef{institution}%
- {\setunit*{\addcomma\space}}
- {\setunit*{\addcolon\space}}%
- \printlist{institution}%
- \setunit*{\addcomma\space}%
- \usebibmacro{date}%
- \newunit}%
-}
-%
-% 通用的出版社和地址的处理
-%
-% 原理方法:当没有出版社地址时,直接判断title的信息是否是中文,若为中文,则写出版地不详,否则用英文的字符表示。
-% 事实上title对于每个文献来说是必须的,所以用它判断是最快的,而且一般标题和出版社的语言是一样的。
-% 注意标准standard类型,因为当没有出版项时直接省略,所以做特殊处理
-\renewbibmacro*{publisher+location+date}{\bibpubfont%
-\iftoggle{bbx:gbpub}%
-{\testCJKfirst{userd}%
- \ifboolexpr{ test {\iflistundef{location}} and test {\iflistundef{publisher}} }%
- {\iffieldequalstr{note}{standard}{}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress}\space :\space\str@nopublisher]}{\printtext{[S.l.\space :\space s.n.\adddot]}}}}%
- {\iflistundef{location}{%\adddot
- \iffieldequalstr{note}{standard}{}%%从gbt7714-2015标准第19页看到,标准存在出版项时输出,没有时完全省略。
- {\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress]}\addcolon\addspace}{\printtext{[S.l.\adddot]}\addcolon\addspace}}}% \bibstring{noaddress}
- {\printlist{location}\addcolon\addspace}%%\addcolon\addspace%
- \iflistundef{publisher}{%
- \iffieldequalstr{note}{standard}{}%
- {\iftoggle{ifCJKforgbt}{\printtext{[\str@nopublisher]}\setunit{\adddot\addspace}\setunit*{\addcomma\addspace}}%
- {\printtext{\mkbibbrackets{s.n.}}\setunit{\adddot\addspace}\setunit*{\addcomma\addspace}}}}%
- {\printlist{publisher}}}%
-\setunit*{\addcomma\addspace}%\addcomma\addspace%
-\usebibmacro{date}%%\newunit %去掉这个标点
-}%
-{\printlist{location}%
- \iflistundef{publisher}
- {\setunit*{\addcomma\space}}
- {\setunit*{\addcolon\space}}%
- \printlist{publisher}%
- \setunit*{\addcomma\space}%
- \usebibmacro{date}%%\newunit
- }%
-}
-
-%
-% 修改了一个institution+location+date用于manual、report、thesis等类型
-%
-% 20180425,v1.0k,增加了字体控制命令,hzz
-% 20190105,v1.0o,加了一个编组避免\usebibmacro{date}把month和day信息去掉
-\renewbibmacro*{institution+location+date}{\bibpubfont%当没有institution时不处理。
-{\printlist{location}%%加了一个编组避免\usebibmacro{date}把month和day信息去掉
- \iflistundef{institution}
- {\setunit*{\addcomma\space}}
- {\setunit*{\addcolon\space}}%
- \printlist{institution}%
- \setunit*{\addcomma\space}%
- \usebibmacro{date}%
- %\newunit
- }}
-
-%
-% 对volume卷信息格式做出修改
-% v1.0o,20190105,hzz
-%
-\DeclareFieldFormat{volume}{%
-\testCJKfirst{userd}%
-\iftoggle{ifCJKforgbt}%
-{\bibstring{serialcn}#1\bibstring{volumecn}}%
-{\bibstring{volume}~#1}%
-}% volume of a book
-\DeclareFieldFormat[article,periodical]{volume}{#1}% volume of a journal
-
-%
-% 对number册信息格式做出修改
-% v1.0o,20190105,hzz
-%
-\DeclareFieldFormat{number}{#1}%
-\DeclareFieldFormat[book,collection,inbook,%
-incollection,proceedings,inproceedings]{number}{%
-\testCJKfirst{userd}%
-\iftoggle{ifCJKforgbt}%
-{\bibstring{serialcn}#1\bibstring{numbercn}}%
-{#1}%
-}%
-
-%
-% 对edition版本信息格式做出修改
-%
-\DeclareFieldFormat{edition}{%源来自biblatex.DEF
-\testCJKfirst{userd}%
-\iftoggle{ifCJKforgbt}%
-{\ifinteger{#1}%
-{\printtext{#1\str@edition}}%
-{#1\isdot}}%
-{\ifinteger{#1}%
-{\mkbibordedition{#1}~\bibstring{edition}}%
-{#1\isdot}}}
-
-%
-% 对version的版本信息做出修改
-%
-\DeclareFieldFormat{version}{%源来自biblatex.DEF
-\testCJKfirst{userd}%
-\ifinteger{#1}%
-{\iftoggle{ifCJKforgbt}{\printtext{#1\str@edition}}%
-{\mkbibordedition{#1}~\bibstring{version}}}%
-{#1\isdot}}
-
-%
-% 修改析出文献的文集的标题与附加标题间的符号
-%
-\renewbibmacro*{booktitle}{%
- \ifboolexpr{
- test {\iffieldundef{booktitle}}
- and
- test {\iffieldundef{booksubtitle}}
- }
- {}
- {\printtext[booktitle]{\bibtitlefont%
- \printfield[titlecase]{booktitle}%
- \setunit{\subtitlepunct}%
- \printfield[titlecase]{booksubtitle}}%
- \newunit%标点换成下一句
- \setunit{\subtitlepunct}}%
- \printfield{booktitleaddon}}
-
-
-%
-% 调整期刊名的格式
-%
-% v1.0k,20180425,增加了字体控制命令,hzz
-\renewbibmacro*{journal+issuetitle}{\bibpubfont%源来自standard.bbx
- \usebibmacro{journal}%
- %\setunit*{\addspace}%
- \setunit*{\addcomma\addspace}%修改为增加一个逗号
- \iffieldundef{series}
- {}
- {\newunit
- \printfield{series}%
- \setunit{\addspace}}%
- %\usebibmacro{volume+number+eid}%
- %\setunit{\addspace}%
- \usebibmacro{issue+date}%
- %\setunit{\addcolon\space}%
- \iffieldundef{volume}{}{\setunit{\addcomma\space}}%
- %换成逗号和空格
- \usebibmacro{issue}%
- \usebibmacro{volume+number+eid}%把卷期放到年份后面
- %\newunit
- }
-
-
-
-%
-% 调整期刊卷和期的格式
-%
-\renewbibmacro*{volume+number+eid}{%源来自standard.bbx
-\iftoggle{bbx:gbfieldstd}{%
- \printfield{volume}%
- \setunit*{\adddot}%
- \printfield{number}%
- \setunit{\addcomma\space}%
- \printfield{eid}}{%
- \printfield{volume}%
- %\setunit*{\adddot}%去掉点号
- %\printfield{number}%
- \iffieldundef{number}{}{\printtext{\mkbibparens{\printfield{number}}}}%增加一个圆括号
- \iffieldundef{eid}{}{%
- \setunit{\addcomma\space}%
- \printfield{eid}}}}
-
-%
-% 调整期刊年份的格式
-%
-\renewbibmacro*{issue+date}{%去掉括号
- \printtext{%去掉了[parens]
- \iffieldundef{issue}
- {%\usebibmacro{date}
- \iffieldundef{note}{\usebibmacro{date}}%判断一下,是否是报纸
- {\iffieldequalstr{note}{news}{\usebibmacro{newsdate}}%判断是否为报纸
- {\usebibmacro{date}}%
- }}%
- {\iftoggle{bbx:gbstrict}{}{\printfield{issue}%
- \setunit*{\addspace}}%
- %\usebibmacro{date}
- \iffieldundef{note}{\usebibmacro{date}}%判断一下,是否是报纸
- {\iffieldequalstr{note}{news}{\usebibmacro{newsdate}}%判断是否为报纸
- {\usebibmacro{date}}%
- }}}%
- %\newunit
- }
-
-%
-% 调整页码前的标点和去掉期刊文章等页码后面的标点
-%
-\renewbibmacro*{note+pages}{%源来自standard.bbx
- %\printfield{note}%不要note,note用来判断是否是报纸newspaper
- \iffieldundef{pages}{}{
- \setunit{\bibpagespunct}%
- \printfield{pages}}%
- %\newunit
- }
-
-
-%
-% 编者的符号修改一下
-% v1.0 2016-07-01
-% v1.0q 2019-03-01 hzz 修改editortype前的标点
-%
-\renewbibmacro*{editor}{%源来自biblatex.DEF
- \ifboolexpr{
- test \ifuseeditor
- and
- not test {\ifnameundef{editor}}
- }
- {\printnames{editor}%
- \iffieldundef{editortype}%增加一个类型判断,用于存在editortype的情况
- {\setunit\addspace}%当没有editortype时,直接用句点
- {%\setunit{\addcomma\space}%
- \usebibmacro{editorstrg}}%
- %\clearname{editor}
- }%
- {}}
-
-%
-% 编者类型做一修改
-% v1.0 2016-07-01
-% v1.0q 2019-03-01 hzz 修改editortype不同语言的不同本地化字符串
-%
-\renewbibmacro*{editorstrg}{%源来自biblatex.DEF
- \printtext[editortype]{%
- \iffieldundef{editortype}
- {%
-% \ifboolexpr{ %这一段去掉,未定义编者类型情况下不处理
-% test {\ifnumgreater{\value{editor}}{1}}
-% or
-% test {\ifandothers{editor}}
-% }
-% {\bibstring{editors}}
-% {\bibstring{editor}}
- }
- {\ifbibxstring{\thefield{editortype}} %定义编者类型情况下处理,以后根据需要修改
- {\ifboolexpr{
- test {\ifnumgreater{\value{editor}}{1}}
- or
- test {\ifandothers{editor}}
- }
- {\printdelim{streditortypes}}
- {\printdelim{streditortype}}}
- {\thefield{editortype}}}%
- }}
-
-%
-% 编者类型的本地化字符串输出
-% v1.0q 2019-03-01 hzz
-% 能对不同条目类型作格式设置的域格式,能对不同环境做格式设置的分隔符
-% 能对不同文境作设置的包括排序,标签等
-% 这里因为考虑可能标注和文献表中存在不同,所以用分隔符来输出本地化字符串
-%
-\DeclareDelimFormat{streditortypes}{%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbbiblocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{\thefield{editortype}scn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{\thefield{editortype}skr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{\thefield{editortype}sjp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
- \or%
- \bibstring{\thefield{editortype}scn}%
- \or%
- \addcomma\addthinspace\bibstring{\thefield{editortype}s}%
- \fi}
-%
-\DeclareDelimFormat{streditortype}{%
- \edef\userfieldabcde{userd}%
- \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
- \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
- \ifcase\value{gbbiblocalcase}%
- \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{\thefield{editortype}cn}}{}%
- \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{\thefield{editortype}kr}}{}%
- \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{\thefield{editortype}jp}}{}%
- \iffieldequalstr{\userfieldabcde}{english}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
- \iffieldequalstr{\userfieldabcde}{french}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
- \iffieldequalstr{\userfieldabcde}{russian}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
- \or%
- \bibstring{\thefield{editortype}cn}%
- \or%
- \addcomma\addthinspace\bibstring{\thefield{editortype}}%
- \fi}
-
-
-%
-% bookauthor域的输出,
-% v1.0q 2019-03-01 hzz
-% 不再对editor和bookauthor做sourcemap,而是下面的宏内逻辑代替,
-% 使得除使用bookauthor外也可以使用editor,便于在使用editor时使用editortype
-\renewbibmacro*{bybookauthor}{%
- \ifnameundef{bookauthor}%
- {\ifnameundef{editor}%
- {}%
- {\ifnamesequal{author}{editor}%
- {}{\usebibmacro{editor}}}%
- }%
- {\ifnamesequal{author}{bookauthor}%
- {}{\printnames{bookauthor}}%
- }%
-}
-
-%
-% 修改期刊的标题
-%
-\renewbibmacro*{periodical}{%源来自biblatex.DEF
- \iffieldundef{title}
- {}
- {\printtext[title]{\bibtitlefont%
- \printfield[titlecase]{title}%
- %\setunit{\subtitlepunct}%
- \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
- {}{\setunit{\subtitlepunct}
- \printfield[titlecase]{subtitle}}%
- %{}%把编组结束移到后面去
- \iftoggle{bbx:gbtype}{%
- \iffieldundef{usera}{}{%在标题后直接给出文献标识字母
- \printfield[gbtypeflag]{usera}}}{}
- }}
- }
-
-
-%
-% 期刊的标题做修改
-%
-\renewbibmacro*{title+issuetitle}{%源来自standard.BBX
- \usebibmacro{periodical}%
- %\setunit*{\addspace}%
- \setunit*{\adddot\addspace}%标点修改为句点
- \iffieldundef{series}
- {}
- {\newunit
- \printfield{series}%
- \setunit{\addspace}}%
- \usebibmacro{periodical+issue}%将issue调整到上面来,并修改
-\iffieldundef{number}{}{%%进一步处理有范围的数字
- \multinumberparser{\thefield{number}}}%
- \iffieldundef{volume}%
- {\printfield{year}%
- \printtext{\mkbibparens{\multinumberfirst}}%
- \bibrangedash%
- \iffieldundef{endyear}{}{\printfield{endyear}\printtext{\mkbibparens{\multinumbersecond}}}%
- }%
- {\multivolparser{\thefield{volume}}%
- \printfield{year}%
- \setunit{\addcomma\space}%将冒号修改为逗号
- \printtext{\multivolfirst}%
- \printtext{\mkbibparens{\multinumberfirst}}%
- \bibrangedash%
- \iffieldundef{endyear}{}{%
- \printfield{endyear}%
- \setunit{\addcomma\space}%将冒号修改为逗号
- \printtext{\multivolsecond}%
- \printtext{\mkbibparens{\multinumbersecond}}}%
- }%
- \setunit{\addcomma\space}%
- \printfield{eid}%
- \setunit{\addspace}%
- %\usebibmacro{issue+date}%
- %\setunit{\addcolon\space}%
- \usebibmacro{issue}%
- \newunit}
-
-%
-% 新增一个样式用于调整期刊年份的格式,只打印年份
-%
-\newbibmacro*{periodical+issue}{%
- \printtext{%去掉了[parens]
- \iffieldundef{issue}
- {%\usebibmacro{date}%修改为下一句
- }%
- {\printfield{issue}%
- \setunit*{\addspace}%
- %\usebibmacro{date}%修改为下一句
- }%
- }%
- %\newunit
-}
-
-%
-% 重设专利title的输出,将文献类型标识符输出出去
-%
-\newbibmacro*{patenttitle}{%原输出来自biblatex.def文件
- \ifboolexpr{%
- test{\iffieldundef{title}}%
- and%
- test{\iffieldundef{subtitle}}%
- }%
- {}%
- {\printtext[title]{\bibtitlefont%
- \printfield[titlecase]{title}%
- \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
- {}{\setunit{\subtitlepunct}%
- \printfield[titlecase]{subtitle}}%
- \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
- {\setunit{\subtitlepunct}\printfield{titleaddon}}%
- \setunit{\subtitlepunct}\printfield{number}%写专利号
- \iftoggle{bbx:gbtype}{\printfield[gbtypeflag]{usera}}{}%
- %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
- %\newunit
- }%
-}%
-}
-
-
-
-%
-% 修改in:用于inbook、incollection、inproceedings等类型
-% 2018.04.20,v1.0k,renewed marco,by hzz
-% 20190212,v1.0q,增加中英文区分,by hzz
-%
-% 原理方法:使用bibmacro{in:}改变了以前在driver中直接输出//的方式,同时也简化了标点控制。
-\renewbibmacro*{in:}{%
- \iftoggle{bbx:gbpunctin}{\printtext{\allowbreak\texttt{//}\allowbreak}}%\addthinspace
- {\setunit{\adddot\addspace}%
- \iffieldequalstr{userd}{chinese}%
- {\printtext{\bibstring{incn}}}%
- {\printtext{\bibstring{in}}}%
- }}%\newunit\newblock\intitlepunct
-
-%
-% 修改type域的输出格式
-% 2019.02.12,v1.0q,byhzz
-% 使其可以区分中英文输出不同的格式,比如博士论文英文输出PHD thesis,中文则是博士学位论文
-\DeclareFieldFormat{type}%
-{\iffieldequalstr{userd}{chinese}%
- {\ifbibxstring{#1cn}{\bibxstring{#1cn}}{#1}}%
- {\ifbibstring{#1}{\bibstring{#1}}{#1}}%
-}
-
-
-%
-% 修改series域的输出格式
-% 2019.05.01,v1.0r,byhzz
-\renewbibmacro*{series+number}{%
- \printfield{series}%
- %\setunit*{\addspace}%
- %\printfield{number}%
- %\newunit
- }
-
-%=====================================================================
-%设置驱动格式
-%=====================================================================
-%
-% book条目类的驱动
-%
- \DeclareBibliographyDriver{book}{%源来自standard.bbx文件
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
-\usebibmacro{author/editor+others/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
-\usebibmacro{maintitle+title}%
-\iftoggle{bbx:gbstrict}{}{%
-\newunit
-\printlist{language}%
-\newunit\newblock%
-\usebibmacro{byauthor}%
-\newunit\newblock}%
-\usebibmacro{byeditor+others}%
-\newunit
-\printfield{edition}%
-\newunit\newblock%%
-\iftoggle{bbx:gbstrict}{}{%
-\iffieldundef{maintitle}%
-{\printfield{volume}%
-\printfield{part}}%
-{}%
-\newunit%
-\printfield{volumes}%
-\newunit\newblock%
-\usebibmacro{series+number}}%
-\newunit\newblock%
-%\printfield{note}%
-%\newunit\newblock%
-\usebibmacro{publisher+location+date}%
-%\newunit\newblock %这里标点去掉
-\usebibmacro{chapter+pages}%
- \iffieldundef{url}{}{%当没有网址时也不输出
- \usebibmacro{modifydate}}%带括号的修改或更新日期,
-\usebibmacro{doi+eprint+url}%从下面移动到上面来,因为gbt2015的url需直接放在页码后面。
- \newunit\newblock%
- \printfield{pagetotal}%
- \newunit\newblock%
- \iftoggle{bbx:isbn}
- {\printfield{isbn}}
- {}%
- \newunit\newblock
- %\usebibmacro{doi+eprint+url}%
- %\newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-
-%
-% 期刊文章,连续出版物中的析出文献的格式
-%
- \DeclareBibliographyDriver{article}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}%
- \newunit\newblock
- \usebibmacro{bytranslator+others}%
- \newunit\newblock
- \printfield{version}}%
- \newunit\newblock
- %\usebibmacro{in:}% 不使用in来表示期刊等连续出版物
- \usebibmacro{journal+issuetitle}%
- %\newunit
-% \usebibmacro{byeditor+others}%
-% \newunit
- \usebibmacro{note+pages}%
- \iffieldequalstr{note}{news}{}{%当是新闻时不输出修改或更新日期
- \iffieldundef{url}{}{%当没有网址时也不输出
- \iftoggle{bbx:url}{%当url选项为false时,也不输出
- \usebibmacro{modifydate}}{}}}%带括号的修改或更新日期,
- \usebibmacro{doi+eprint+url}%从后面移上来,调整url和页码之间的位置
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{issn}}
- {}%
- \newunit\newblock
- %\usebibmacro{doi+eprint+url}%
- %\newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-
-
-%
-% 连续出版物的驱动
-%
- \DeclareBibliographyDriver{periodical}{%源来自standard.BBX
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{editor}%
- %\setunit{\labelnamepunct}\newblock
- \newunit\newblock %删除上面一行,添加这一行
- \usebibmacro{title+issuetitle}%
- \newunit\newblock%
- \usebibmacro{location+institution+date}%添加这一行用于输出地址,单位和时间
- \newunit\newblock%添加这一行
- \iftoggle{bbx:gbstrict}{}{%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byeditor}%
- \newunit\newblock
- \printfield{note}%
- \newunit\newblock}
- \iftoggle{bbx:isbn}
- {\printfield{issn}}
- {}%
- \newunit\newblock
- \usebibmacro{doi+eprint+url}%
- \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-%
-% 专利文献驱动
-%
- \DeclareBibliographyDriver{patent}{%源来自standard.BBX
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- %\usebibmacro{title}%
- \usebibmacro{patenttitle}%给出专利专用的标题输出
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}}%
- \newunit\newblock
- \printfield{type}%
- \setunit*{\addspace}%
- %\printfield{number}%已放到patenttitle中处理
- \iflistundef{location}
- {}
- {\setunit*{\addspace}%
- \printtext{%[parens]
- \printlist[][-\value{listtotal}]{location}}}%
- \newunit\newblock
- \usebibmacro{byholder}%
- \newunit\newblock
- \printfield{note}%
- \newunit\newblock
- \usebibmacro{newsdate}%
- %\newunit\newblock
- \usebibmacro{doi+eprint+url}%
- \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-
-%
-% 在线文献驱动
-%
-\DeclareBibliographyDriver{online}{%源来自standard.BBX
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/editor+others/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}%
- \newunit\newblock
- \usebibmacro{byeditor+others}%
- \newunit\newblock
- \printfield{note}}%
- \newunit
- \printfield{version}%
- \newunit\newblock
- %\printlist{organization}%
- \printlist{institution}%
- \newunit\newblock
-\ifboolexpr{%
-test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
-}{\usebibmacro{date}}%
-{\usebibmacro{modifydate}}%修改或更新日期,为带括号的时间
- \usebibmacro{url+urldate}%从下面移上来
- \newunit\newblock
- \iftoggle{bbx:eprint}
- {\usebibmacro{eprint}}
- {}%
- \newunit\newblock
- %\usebibmacro{url+urldate}%
- %\newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-
-%
-% 报告类型驱动
-% 当有网址无出版项时,用online输出
-%
-\DeclareBibliographyDriver{report}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}}%
- \newunit\newblock
- \usebibmacro{byeditor+others}%增加的译者信息
- \newunit\newblock
- \printfield{type}%
- \setunit*{\addspace}%
- \printfield{number}%
- \newunit\newblock
- \printfield{version}%
- \newunit
- \printfield{note}%
- \newunit\newblock
- \usebibmacro{publisher+location+date}%
- %\newunit\newblock
- \usebibmacro{chapter+pages}%
- \usebibmacro{doi+eprint+url}%
- \newunit
- \printfield{pagetotal}%
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{isrn}}
- {}%
- \newunit\newblock
-% \usebibmacro{doi+eprint+url}%
-% \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-%
-% 论文、手册类型驱动
-% 2016-11-11,增加了译者信息
-%
-\DeclareBibliographyDriver{manual}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
- \iftoggle{bbx:gbstrict}{}{%
- \newunit%
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}}%
- \newunit\newblock
- \usebibmacro{byeditor+others}%增加的译者信息
- \newunit\newblock
- \iftoggle{bbx:gbfieldtype}{%
- \printfield{type}%
- \setunit*{\addspace}}{}%
- \printfield{number}%
- \newunit\newblock
- \printfield{version}%
- \newunit
- \printfield{note}%
- \newunit\newblock
- \usebibmacro{institution+location+date}%
- %\newunit\newblock
- \usebibmacro{chapter+pages}%
- \iffieldundef{url}{}{%当没有网址时也不输出修改或更新日期
- \usebibmacro{modifydate}}%修改或更新日期为带括号的时间
- \usebibmacro{doi+eprint+url}%
- \newunit
- \printfield{pagetotal}%
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{isrn}}
- {}%
- \newunit\newblock
-% \usebibmacro{doi+eprint+url}%
-% \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-%
-% 备选类型驱动
-%
-% 利用biblatex的misc驱动
-\DeclareBibliographyDriver{misc}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/editor+others/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
- \usebibmacro{title}%
-\iftoggle{bbx:gbstrict}{}{%
- \newunit
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}%
- \newunit\newblock
- \usebibmacro{byeditor+others}}%
- \newunit\newblock
- \printfield{howpublished}%
- \newunit\newblock
- \printfield{type}%
- \newunit
- \printfield{version}%
- \newunit
- \printfield{note}%
- \newunit\newblock
- \usebibmacro{institution+location+date}%
- %\usebibmacro{organization+location+date}%
- %\newunit\newblock
- \usebibmacro{doi+eprint+url}%
- \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-
-%
-% 专著中的析出文献的格式修改
-%
-\DeclareBibliographyDriver{inbook}{%源来自standard.bbx
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/translator+others}%
-\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
-\usebibmacro{title}%
-\usebibmacro{in:}%
-%\printtext{\texttt{//}\addthinspace}%
- \usebibmacro{bybookauthor}%
- \ifnameundef{bookauthor}{%
- \ifnameundef{editor}{}{\newunit}%
- }{\newunit}%替换下一句
- %\newunit\newblock
-\iffieldundef{series}{}{\usebibmacro{series+number}\setunit{\addcolon\addspace}}%为处理一些存在series的情况而增加
- \usebibmacro{maintitle+booktitle}%
-\iffieldundef{volume}{}{\setunit{\addcolon\addspace}\printfield{volume}}%
-\iffieldundef{number}{}{\setunit{\addcolon\addspace}\printfield{number}}%增加卷和册信息
- \newunit\newblock%
-% \usebibmacro{byeditor+others}%
-% \newunit\newblock
- \printfield{edition}%
- \newunit
- \iftoggle{bbx:gbstrict}{}{%
-% \iffieldundef{maintitle}
-% {\printfield{volume}%
-% \printfield{part}}
-% {}%
-% \newunit
-% \printfield{volumes}%
-% \newunit\newblock
-% \usebibmacro{series+number}
- }%
- \newunit\newblock
- %\printfield{note}%
- %\newunit\newblock
- \usebibmacro{publisher+location+date}%
- %\newunit\newblock
- \usebibmacro{chapter+pages}%
- %\newunit\newblock
- \usebibmacro{doi+eprint+url}%移到上面来
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{isbn}}
- {}%
- \newunit\newblock
-% \usebibmacro{doi+eprint+url}%
-% \newunit\newblock
- \usebibmacro{addendum+pubstate}%
- \setunit{\bibpagerefpunct}\newblock
- \usebibmacro{pageref}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{finentry}\usebibmacro{annotation}}
-
-
-%
-%针对不同refsection做不同的格式处理的代码
-%
-
-%
-%默认采用顺序编码制,因此只需增加的是作者年制
-\newrobustcmd{\setaystylesection}[1]{\csxdef{gb@aystyle@section#1}{#1}}
-
-%
-%在AtBeginBibliography处已经无法重定义defbibenvironment{bibliographyay}
-%所以输出只能是用另外定义的环境来实现
-%可以在refsection后面做patch
-%为排序引入newrefcontext
-\apptocmd{\refsection}{
-\edef\gb@refsecnum{\number\c@refsection}%
-\ifcsdef{gb@aystyle@section\gb@refsecnum}%
-{
-\newrefcontext[sorting=gb7714-2015]
-
-\setlength{\bibhang}{1em}
-\setlength{\bibitemindent}{-\bibhang}
-\defbibenvironment{bibliography}
- {\list
- {}
- {\setlength{\leftmargin}{\bibhang}%
- \setlength{\itemindent}{\bibitemindent}%
- \setlength{\itemsep}{\bibitemsep}%
- \setlength{\parsep}{\bibparsep}}}
- {\endlist}
- {\item}
-}{}
-}{}{}
-
-%
-%为排序引入endrefcontext
-%
-\pretocmd{\endrefsection}{
-\edef\gb@refsecnum{\number\c@refsection}%
-\ifcsdef{gb@aystyle@section\gb@refsecnum}%
-{\endrefcontext}{}
-}{}{}
-
-%因为是整个文献表,在打印文献表的时候,增加钩子代码
-%因为下面的钩子是在defbibenvironment的begincode之后,所以对于defbibenvironment相关的设置都是无效的
-\AtBeginBibliography{
-
-\edef\gb@refsecnum{\number\c@refsection}%
-\ifcsdef{gb@aystyle@section\gb@refsecnum}%
-%\ifboolexpr{
-%not test {\ifcsundef{gb@aystyle@section\gb@refsecnum}}
-%and
-%test {\ifcsequal{gb@refsecnum}{gb@aystyle@section\gb@refsecnum}}
-%}
- {
-
- \DeclareDelimFormat{nameyeardelim}{\addcomma\space}
- \DeclareDelimFormat[bib,biblist]{nameyeardelim}{\addcomma\space}
-
- \renewbibmacro*{date}{%
- \iflabeldateisdate
- {}
- {\printdate}}%
-
- \renewbibmacro*{date+extradate}{%
- \iffieldundef{labelyear}
- {}
- {\printtext{%[parens]%这里去掉括号
- \iflabeldateisdate
- {\printdateextra}
- {\printlabeldateextra}}}}%
-
- \newbibmacro*{bbx:savehash}{%
- \savefield{fullhash}{\bbx@lasthash}}
-
- \newbibmacro*{bbx:dashcheck}[2]{}
-
- %注意这里当没有作者只有标题时在年份之前的标点是否需要标准并未涉及,所以未做处理。
- \renewbibmacro*{author}{%以前的date+extrayear变为date+extradate,所以对3.8以上版本重定义一下author
- \ifboolexpr{
- test \ifuseauthor
- and
- not test {\ifnameundef{author}}
- }
- {%
- \usebibmacro{bbx:savehash}%
- \printnames{author}%
- \iffieldundef{authortype}
- {\setunit{\printdelim{nameyeardelim}}}
- {\setunit{\printdelim{authortypedelim}}}%
- \iffieldundef{authortype}
- {}
- {\usebibmacro{authorstrg}%
- \setunit{\printdelim{nameyeardelim}}}
- }%
- {\global\undef\bbx@lasthash
- \usebibmacro{labeltitle}%
- \setunit*{\printdelim{nonameyeardelim}}}%
- \usebibmacro{date+extradate}}
-
- \newbibmacro*{labeltitle}{%
- \iffieldundef{label}
- {\iffieldundef{shorttitle}
- {\printfield{title}%
- \clearfield{title}}
- {\printfield[title]{shorttitle}}}
- {\printfield{label}}}
-
-%
-% 增加一个number带括号的格式,避免使用mkbibparens而引入一个不必要的空格
-%
-\DeclareFieldFormat{addnumflag}{%
-\nobreak\printtext{(}\nobreak #1\nobreak\printtext{)}}
-
-%
-% 调整journal输出
-%
-% 原理方法:首先判断子标题,然后再设置标点。
-% 避免直接设置标点后,当volume不存在时需要使用\nopuct去标点进而引入不必要的空格
-\renewbibmacro*{journal}{%
- \iffieldundef{journaltitle}%
- {}%
- {\printtext[journaltitle]{%
- \printfield[titlecase]{journaltitle}%
- \iffieldundef{journalsubtitle}{}{\setunit{\subtitlepunct}%
- \printfield[titlecase]{journalsubtitle}}}}}
-
-
-
-%
-% 调整期刊卷和期的格式
-%
-\renewbibmacro*{volume+number+eid}{%源来自standard.bbx
-\iftoggle{bbx:gbfieldstd}{%
- \printfield{volume}%
- \setunit*{\adddot}%
- \printfield{number}%
- \setunit{\addcomma\space}%
- \printfield{eid}}{%
- \printfield{volume}%
- %\setunit*{\adddot}%去掉点号
- %\printfield{number}%
- \iffieldundef{number}{}{\printfield[addnumflag]{number}}%区别于顺序编码制
- \iffieldundef{eid}{}{%
- \setunit{\addcomma\space}%
- \printfield{eid}}}}
-
-%
-% 调整期刊年份的格式
-%
-% 原理方法:原在authoryear.BBX中\bbx@opt@mergedate@compact中定义
-% 当issue存在时,才设置newunit。避免直接设置标点后,当volume不存在是需要使用\nopuct去标点进而引入不必要的空格
- \renewbibmacro*{issue+date}{%
- \iffieldundef{issue}%
- {}%
- {\iftoggle{bbx:gbstrict}{}{\printtext[parens]{\printfield{issue}}\newunit}}}
-
-%
-% 编者的符号修改一下
-% v1.0 2016-07-01
-% v1.0q 2019-03-01 hzz 修改editortype前的标点
-%
-\renewbibmacro*{editor}{%
- \ifboolexpr{
- test \ifuseeditor
- and
- not test {\ifnameundef{editor}}
- }
- {\usebibmacro{bbx:dashcheck}
- {%\bibnamedash
- \printnames{editor}%
- }
- {\printnames{editor}%
- %\setunit{\printdelim{editortypedelim}}%
- %\usebibmacro{bbx:savehash}
- }%
- \usebibmacro{editorstrg}%
- %\clearname{editor}%
- \setunit{\printdelim{nameyeardelim}}}%
- {\global\undef\bbx@lasthash
- \usebibmacro{labeltitle}%
- \setunit*{\printdelim{nonameyeardelim}}}%
- \ifboolexpr{%
- test {\ifentrytype{inbook}}
- or
- test {\ifentrytype{incollection}}
- or
- test {\ifentrytype{inproceedings}}
- or
- test {\ifentrytype{conference}}
- }%
- {}%
- {\usebibmacro{date+extradate}}}
-
-
- }{}
-
-
-
-}
-
-
-
-%
-%针对具体条目做处理时的特殊处理
-%
-%\def\localsetrefsectionstyle{%
-%}
-
-%\AtEveryBibitem{\localsetrefsectionstyle}%
-%\AtEveryCite{\localsetchinesecode}%
-%\AtEveryLositem{\localsetchinesecode}%
+%%
+%% ---------------------------------------------------------------
+%% biblatex-gb7714-2015 --- A biblatex implementation of the
+%% GBT7714-2015 bibliography style,numerical sequence and authoryear mixed style
+%% Maintained by huzhenzhen
+%% E-mail: hzzmail@163.com
+%% Released under the LaTeX Project Public License v1.3c or later
+%% ---------------------------------------------------------------
+%%
+
+%
+% 版本和时间信息
+%
+\def\versionofgbtstyle{2021/04/03 v1.0x}
+\def\versionofbiblatex{\abx@version}
+\ProvidesFile{gb7714-2015mx.bbx}[\versionofgbtstyle biblatex bibliography style]
+%\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求
+
+%=====================================================================
+% 加载标准样式
+%=====================================================================
+\RequireBibliographyStyle{numeric-comp}
+\RequirePackage{xstring}%解决texlive2015的biblatex3.0不加载xstring包的问题
+
+
+%=====================================================================
+% 功能函数
+%=====================================================================
+ %
+ % 增加一个控制是否输出文献载体的选项
+ % 20191125,v1,0s,hzz
+ \newtoggle{bbx:gbmedium}
+ \DeclareBibliographyOption{gbmedium}[true]{%biblatex低版本
+ \settoggle{bbx:gbmedium}{#1}}
+ \ExecuteBibliographyOptions{gbmedium}
+ %
+ % 增加一个控制是否输出annotation域的选项,该域可以用于在文献条目后面输出一些注释信息
+ % 20190509,v1,0s,hzz
+ \newtoggle{bbx:gbannote}
+ \DeclareBibliographyOption{gbannote}[false]{%biblatex低版本
+ \settoggle{bbx:gbannote}{#1}}
+ \ExecuteBibliographyOptions{gbannote}
+ %
+ %用于在文献条目后面输出注释信息的宏
+ %FieldFormat{annotation}用于设置注释信息的格式
+ \DeclareFieldFormat{annotation}{%
+ \printtext{\addspace(#1)}%
+ }
+ \renewbibmacro*{annotation}{%
+ \iftoggle{bbx:gbannote}%
+ {\iffieldundef{annotation}%
+ {\printfile[annotation]{\bibannotationprefix\thefield{entrykey}.tex}}%
+ {\printfield{annotation}}}%
+ {}%
+ }
+
+
+ %
+ % biblatex版本判断
+ % 20180629,v1.0k,hzz
+ %
+ % 原理方法:适用于3.10以上版本的biblatex,否则给出警告
+ \@ifpackagelater{biblatex}{2017/12/28}{}{
+ \blx@warning@noline{%
+ biblatex version is too old for this style\MessageBreak
+ if errors raised,Please update biblatex to the latest version.}
+ }
+
+ %
+ % 判断CJK字符的函数,用于判断作者等信息是否由中文字符构成
+ % v1.0k,20180509,hzz
+ %
+ % 原理方法:用biber中的perl方法代替。因为利用tex函数对字符判断时,当字符在宏
+ % 中时,基于`的方法无法解决GBK编码的问题,基于CJKsymbol的方法无法解决utf-8
+ % 编码用xelatex编译的问题。
+ %
+ % 原理是:利用perl正则将中文标识记录到域中,
+ % 然后利用\iffieldundef和\iffieldequalstr进行判断
+ \providetoggle{ifCJKforgbt}
+ \def\testCJKfirst#1{%
+ \iffieldundef{#1}{\togglefalse{ifCJKforgbt}}{%
+ \iffieldequalstr{#1}{chinese}{\toggletrue{ifCJKforgbt}}{\togglefalse{ifCJKforgbt}}}}
+
+ %
+ % 2个卷的解析函数,用于连续出版物
+ %
+ % 原理方法: 范围起止间隔符号还是用-,而不是与date相同的/,因为有合期期刊的问题,需要用到/符号
+ \newcommand{\multivolparser}[1]{%
+ \IfSubStr{#1}{-}%
+ {\StrBefore{#1}{-}[\multivolfirst]\StrBehind{#1}{-}[\multivolsecond]}%
+ {\def\multivolfirst{#1}\def\multivolsecond{}}%
+ }
+
+
+ %
+ % 2个期的解析函数,用于连续出版物
+ %
+ \newcommand{\multinumberparser}[1]{%
+ \IfSubStr{#1}{-}%
+ {\StrBefore{#1}{-}[\multinumberfirst]\StrBehind{#1}{-}[\multinumbersecond]}%
+ {\def\multinumberfirst{#1}\def\multinumbersecond{}}%
+ }
+
+%=====================================================================
+% 数据模型定义
+%=====================================================================
+ %定义类型和载体标识,从gb内容看载体基本属于介质。
+ %为与lee zeping的bst的样式统一,使用mark和medium这两域名
+ %为单个条目的姓名格式控制增加nameformat和namefmtid两个域
+ %为缩略信息文献表增加了shortbooktitle域
+ %为多语言排序增加了lansortorder域
+ \DeclareDatamodelFields[type=field,datatype=literal]{mark,medium,nameformat}
+ \DeclareDatamodelFields[type=field,datatype=integer]{namefmtid}
+ \DeclareDatamodelFields[type=field,datatype=literal]{shortbooktitle}
+ \DeclareDatamodelFields[type=field,datatype=literal]{lansortorder}
+ %为多样式文献表增加的stylesections、styleaysection域:
+ \DeclareDatamodelFields[type=field,datatype=integer]{aysections}
+ \DeclareDatamodelFields[type=field,datatype=literal]{styleaysection}
+
+ %因为biblatex更新3.14版本以后,biber对于为声明数据模型的条目类型
+ %不再默认读取,而是以空字符串作为条目类型名,自然在条目定义alias时
+ %就会出现问题,因此显式的声明一下newspaper,然后保留后面采用alias的方式
+ %而standard类型则是采用另一种方式直接在sourcemap中转换为其它类型。
+ \@ifpackagelater{biblatex}{2019/11/30}{%2019/12/01 v3.14
+ \DeclareDatamodelEntrytypes{newspaper}%
+ }{}
+
+
+
+%=====================================================================
+% 设置宏包选项
+%=====================================================================
+ %
+ % 增加一个控制是否输出type域的选项
+ % 20190212,v1,0q,hzz
+ \newtoggle{bbx:gbfieldtype}
+ \DeclareBibliographyOption{gbfieldtype}[false]{%biblatex低版本
+ \settoggle{bbx:gbfieldtype}{#1}}
+ \ExecuteBibliographyOptions{gbfieldtype}
+
+ %
+ % 增加一个控制是否根据页码重设脚注数字标号的选项
+ % 20190422,v1,0r,hzz
+ \newtoggle{bbx:gbfnperpage}
+ \DeclareBibliographyOption{gbfnperpage}[false]{%
+ \settoggle{bbx:gbfnperpage}{#1}}
+ \ExecuteBibliographyOptions{gbfnperpage}
+
+ %
+ % 增加一个选项,用于控制是否实现GB/T 7714-2015标准的脚注文献表
+ % 20190203,v1.0p,hzz
+ % 原理方法:默认做patch,文献引用带圈上标数字表示,脚注中的文献用带圈非上标数字做标签
+ % 当前面的脚注中已经存在当前文献,那么当前文献内容不再输出而用同(4)这样的方式
+ % 需要注意的是由于小页环境和表格中的脚注本身的问题,可能会有一些问题
+ \DeclareBibliographyOption{gbfootbib}[false]{%
+ \ifstrequal{#1}{false}{}{\execgbfootbib}}
+ \ExecuteBibliographyOptions{gbfootbib}
+
+ %%
+ \newlength{\footbibmargin}
+ \newlength{\footbiblabelsep}
+ \setlength{\footbibmargin}{1em}%脚注的段落左侧缩进距离
+ \setlength{\footbiblabelsep}{0.5em}%脚注中标记号与脚注段落的间距
+ \def\execgbfootbib%
+ {%
+ %开启引用跟踪计数器,为使用\ifciteseen等测试命令
+ \ExecuteBibliographyOptions{citetracker=true}
+ %
+ %利用footmisc宏包来实现脚注文献的悬挂对齐
+ \AtEndPreamble{
+ \@ifclassloaded{beamer}{}{
+ %beamer类因为其特殊性,为避免冲突不调footmisc。
+ %同时footmisc与hyperref宏包也不兼容,所以使用footmisc时会破坏脚注的超链接
+ %如果要实现超链接可以将下句注释掉,这里留着主要是实现悬挂对齐。
+ %\PassOptionsToPackage{perpage,hang}{footmisc}%
+ %\RequirePackage{footmisc}%
+
+ %重新实现脚注的根据单页重设脚注号码
+ %重新实现脚注的悬挂对齐问题,不再使用footmisc,直接从latex核心代码和hyperref代码进行修改
+ %v1.0q 20190317 hzz
+ %v1.0r 20190422 hzz 根据gbfnperpage选项设置
+ \iftoggle{bbx:gbfnperpage}%
+ {\@addtoreset{footnote}{page}}{}%重设计数器
+
+ \@ifpackageloaded{hyperref}{%加载hyperref则对\H@@footnotetext做重定义
+ \long\def\H@@footnotetext##1{\insert\footins{%
+ \reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore
+ \protected@edef\@currentlabel{%
+ \csname p@footnote\endcsname\@thefnmark
+ }%
+ \color@begingroup
+ \leftskip \footbibmargin%增加的左侧缩进
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox%
+ }%
+ \color@endgroup}}%
+
+ \long\def\H@@mpfootnotetext##1{%
+ \global\setbox\@mpfootins\vbox{%
+ \unvbox\@mpfootins
+ \reset@font\footnotesize
+ \hsize\columnwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
+ \leftskip \footbibmargin%增加的左侧缩进
+ \color@begingroup
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox}%
+ \color@endgroup}}
+ }{%否则对latex核心代码中的\@footnotetext做重定义
+ \long\def\@footnotetext##1{\insert\footins{%
+ \reset@font\footnotesize
+ \interlinepenalty\interfootnotelinepenalty
+ \splittopskip\footnotesep
+ \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+ \hsize\columnwidth \@parboxrestore
+ \protected@edef\@currentlabel{%
+ \csname p@footnote\endcsname\@thefnmark
+ }%
+ \color@begingroup
+ \leftskip \footbibmargin%增加的左侧缩进
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox%
+ }%
+ \color@endgroup}}%
+
+ \long\def\@mpfootnotetext##1{%
+ \global\setbox\@mpfootins\vbox{%
+ \unvbox\@mpfootins
+ \reset@font\footnotesize
+ \hsize\columnwidth
+ \@parboxrestore
+ \protected@edef\@currentlabel
+ {\csname p@mpfootnote\endcsname\@thefnmark}%
+ \leftskip \footbibmargin%增加的左侧缩进
+ \color@begingroup
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox}%
+ \color@endgroup}}
+ }
+
+ \long\def\@makefntext##1{%增加了脚注标记与正文的间隔
+ \parindent 1em\noindent \hb@xt@ 0em{\hss \@makefnmark\makebox[\footbiblabelsep]{}}##1}
+
+ }
+
+ %
+ %使脚注标记加圈并设置数字的字体为tiny,不使用修改thefootnote的方式
+ \def\@makefnmark{\hbox{\@textsuperscript{\textcircled{\tiny\@thefnmark}}}}
+ %做patch使得脚注内容中的脚注数字标签不上标
+ \pretocmd{\@makefntext}{%
+ \def\@makefnmark{%
+ \hbox{\textcircled{\tiny\@thefnmark}}%
+ }%
+ }{}{}
+ }
+
+ %
+ %判断当前文献是否已经引用过且是做的footfullcite(即已经作为脚注输出文献内容)
+ %记录首次输出时的脚注号码,用于后面再次引用该文献时的输出,比如同(4)。
+ %v1.0q 20190309 区分使脚注标注适应minipage中的情况
+ \newbibmacro*{citesavefn}{%
+ \ifciteseen%当被引用过为true
+ {\ifcsdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}%当已经定义过脚注序号信息
+ {\csgdef{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
+ \str@sameentry\gdef\@thefnmark{\csuse{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}}%
+ \@makefnmark%
+ }}%
+ {\csxdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
+ \ifcsstring{@mpfn}{mpfootnote}{\@alph\c@mpfootnote}{\thefootnote}%
+ }}%
+ }%
+ {\csxdef{sec\arabic{refsection}\arabic{page}et\thefield{entrykey}}{%
+ \ifcsstring{@mpfn}{mpfootnote}{\@alph\c@mpfootnote}{\thefootnote}%
+ %判断在minipage中比较麻烦,这里使用\@mpfn的定义进行判断
+ }}%
+ }
+
+ %
+ %重定义\footfullcite使完成gb7714-2015的脚注文献要求
+ \DeclareCiteCommand{\footfullcite}[\mkbibfootnote]%
+ {\defcounter{maxnames}{\blx@maxbibnames}%局部定义maxnames和minnames计数器
+ \defcounter{minnames}{\blx@minbibnames}%使footfullcite内的作者输出与正文文献表中的一致。
+ \usebibmacro{prenote}%
+ \renewbibmacro*{postnote}{%
+ \iffieldundef{postnote}%
+ {}{\setunit{\addcolon\addspace}\printtext{\thefield{postnote}}}}%由于ay样式中没有修改postnote域,此处因为格式需要不使用默认域格式
+ }%
+ {\usebibmacro{citesavefn}%
+ \ifcsdef{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}%
+ {\csuse{labelsec\arabic{refsection}\arabic{page}et\thefield{entrykey}}}%\nopunct
+ {\usedriver{\DeclareNameAlias{sortname}{default}}{\thefield{entrytype}}}%
+ }%
+ {\multicitedelim}%
+ {\usebibmacro{postnote}}
+
+ }
+
+ %
+ % 增加一个选项,用于控制gb7714的使用范围,即英文文献和中文文献使用不同的样式
+ % 20180814,v1.0m,hzz
+ % 原理方法:
+ % 只为兼容性考虑不做任何处理
+ \DeclareBibliographyOption{gbstyle}[true]{%biblatex低版本
+ }
+
+ %
+ % 增加一个控制是否输出文献类型和载体标识的选项
+ %
+ % 原理方法:
+ % 对于biblatex3.4以上版本DeclareBibliographyOption命令中的[datatype]如果是boolean,那么是可以省略的
+ % 所以用老版本的不用[datatype]的命令可以兼容所有biblatex版本
+ \newtoggle{bbx:gbtype}
+ %\DeclareBibliographyOption[boolean]{gbtype}[true]{%biblatex高版本
+ \DeclareBibliographyOption{gbtype}[true]{%biblatex低版本
+ \settoggle{bbx:gbtype}{#1}}
+ \ExecuteBibliographyOptions{gbtype}
+
+ %
+ % 增加一个源文件编码选择选项,当true时可以使用GBK编码。
+ % v1.0k, 2018.05.08, by hzz
+ %
+ % 原理方法:将需要输出的中文字符串用命令形式表示存储,采用utf8编码时采用bbx文档
+ % 内的定义即是utf8编码的中文字符串,但tex源文件是gbk编码时,利用gb7714-2015-gbk.def
+ % 文档内的gbk编码的字符串覆盖。这种覆盖只能在宏包末尾加载时成功实现,所以使用
+ % AtEndOfPackage。该解决思路源自biblatex-caspervector宏包。
+ % 另外注意:
+ % gbk编码的tex文档,利用pdflatex/latex能正确编译,利用xelatex能编译,但中文显示乱码
+ % 在源文档前面增加 XeTeX 原语:\XeTeXinputencoding "GBK" 后,显示正常
+ % utf-8编码的tex文档,利用xelatex能正确编译,而pdflatex/latex不能编译。
+ \newtoggle{bbx:codegbk}
+ \DeclareBibliographyOption{gbcodegbk}[false]{%
+ \settoggle{bbx:codegbk}{#1}}
+ \ExecuteBibliographyOptions{gbcodegbk}
+
+ \def\str@bibliography{参考文献}
+ \def\str@references{参考文献}
+ \def\str@bytranslator{译}
+ \def\str@andotherscn{等}
+ \def\str@backrefpage{引用页}
+ \def\str@backrefpages{引用页}
+ \def\str@noaddress{出版地不详}
+ \def\str@nopublisher{出版者不详}
+ \def\str@edition{版}
+ \def\str@volumecn{卷}
+ \def\str@numbercn{册}
+ \def\str@serialcn{第}
+ \def\str@sameentry{同}
+ \def\str@incn{见}
+ \def\str@mathesiscn{硕士学位论文}
+ \def\str@phdthesiscn{博士学位论文}
+ \def\str@editorcn{主编}
+
+ \AtEndOfPackage{%
+ \iftoggle{bbx:codegbk}{%
+ \ExecuteBibliographyOptions{texencoding = GBK}
+ \input{gb7714-2015-gbk.def}
+ }{}}
+
+ %
+ % 增加一个严格按GB/T 7714-2015给出著录格式控制域的输出的选项
+ % v1.0k, 2018.05.08, by hzz
+ %
+ % 原理方法:
+ % 默认设置该选项为真,进而不输出GB/T 7714-2015中没有的域的信息
+ % 这样可以避免因为bib文件带有多余的域的信息的输出,比如因为bibtex样式
+ % 可能需要用于中英文判断的language域的信息。
+ \newtoggle{bbx:gbstrict}
+ \DeclareBibliographyOption{gbstrict}[true]{%
+ \settoggle{bbx:gbstrict}{#1}}
+ \ExecuteBibliographyOptions{gbstrict}
+
+ %
+ % 增加一个控制标题域超链接设置的选项
+ % v1.0k, 2018.05.24, by hzz
+ %
+ % 原理方法:
+ % 利用标题域格式来实现,默认设置该选项为false,不做超链接。
+ % 设置为true,则标题设置超链接
+ \newtoggle{bbx:titlelink}
+ \DeclareBibliographyOption{gbtitlelink}[false]{%
+ \settoggle{bbx:titlelink}{#1}}
+ \ExecuteBibliographyOptions{gbtitlelink}
+
+ %
+ % 增加一个控制参考文献标题是否能够被ctex宏包设置的选项
+ % v1.0l, 2018.07.02, by hzz
+ %
+ % 原理方法:
+ % 重定义biblatex的宏,去除使用本地化字符串的方式,是的可以利用ctexset进行设置
+ \newtoggle{bbx:ctexset}
+ \DeclareBibliographyOption{gbctexset}[true]{%
+ \settoggle{bbx:ctexset}{#1}}
+ \ExecuteBibliographyOptions{gbctexset}
+
+ \AtEndOfPackage{%
+ \iftoggle{bbx:ctexset}{%
+ \def\blx@defbibstrings#1#2{%
+ \def\do##1{\csundef{abx@lstr@##1}\csundef{abx@sstr@##1}}%
+ \abx@dostrings
+ \csuse{abx@strings@#1}%
+ \setkeys{blx@lbx}{#2}%
+ \let\do\blx@defbibstrings@i
+ \csxdef{abx@strings@#1}{\abx@dostrings}%
+ }
+ }{}}
+
+
+
+ %
+ % 增加一个恢复域格式为标准样式的控制选项
+ % v1.0k, 2018.05.15, by hzz
+ %
+ % 原理方法:
+ % 默认设置该选项为false,采用国标要求的域格式输出相关域
+ % 当设置该选项为true时,则重新利用标准样式的域格式输出相关的域
+ \newtoggle{bbx:gbfieldstd}
+ \DeclareBibliographyOption{gbfieldstd}[false]{%
+ \settoggle{bbx:gbfieldstd}{#1}%
+ \ifstrequal{#1}{false}{}{\execgbfdfmtstd}%
+ }
+ \ExecuteBibliographyOptions{gbfieldstd}
+
+ %
+ % 增加一个出版项自动处理控制选项,当true时使用出版者不详等信息补充缺失的出版信息。
+ %
+ \newtoggle{bbx:gbpub}
+ \DeclareBibliographyOption{gbpub}[true]{%
+ %\settoggle{bbx:gbpub}{#1} %或采用下面这一句
+ \ifstrequal{#1}{false}{\togglefalse{bbx:gbpub}}{\toggletrue{bbx:gbpub}}}
+ \ExecuteBibliographyOptions{gbpub}
+
+ %
+ % 增加控制析出文献来源前的标点符号//输出的选项
+ % v1.0k, 2018.04.20,added in by hzz
+ \newtoggle{bbx:gbpunctin}
+ \DeclareBibliographyOption{gbpunctin}[true]{%
+ \settoggle{bbx:gbpunctin}{#1}}
+ \ExecuteBibliographyOptions{gbpunctin}
+
+
+ %
+ % 增加一个处理佚名或noauthor的控制选项
+ %
+ % 原理方法:顺序编码制中与作者年制都使用
+ \DeclareBibliographyOption{gbnoauthor}[true]{%
+ \ifstrequal{#1}{false}{}{\dealnoathor}}
+ %\ExecuteBibliographyOptions{gbnoauthor=true}%对于需要展开较早(展开层级优先)的选项,这一执行无效,只能用宏包加载时给出的选项。
+
+
+
+
+ %
+ % 选项设置
+ %
+ \ExecuteBibliographyOptions{
+ sorting=none,
+ useprefix=true, %名字的信息包括前缀
+ date = year, %日期仅写到年
+ maxbibnames = 3,%设置名字最大数量
+ minbibnames = 3, %设置缩减后的名字最小数量
+ maxitems = 1,%设置列表最大数量
+ minitems = 1, %设置缩减后的列表最小数量
+ isbn=false,
+ sortlocale=zh__pinyin,%zh__big5han,%zh__stroke,%zh__gb2312han,%zh__pinyin,
+ }
+
+ %
+ %为日期相关选项增加选项值gb7714-2015
+ %
+ \csdef{mkdaterangegb7714-2015}#1{%
+ \begingroup
+ \blx@metadateinfo{#1}%
+ \iffieldundef{#1year}
+ {}
+ {\printtext[#1date]{%
+ \blx@gbdate{#1}{}}}%
+ \endgroup}
+
+ \newrobustcmd*{\blx@gbdate}[3][]{%
+ \dateeraprintpre{#2#3year}%
+ \blx@imc@forcezerosy{\thefield{#2#3year}}\ifblank{#1}{}{\printfield{#1}}%
+ \iffieldundef{#2#3month}{}{\hyphen\blx@imc@forcezerosmdt{\thefield{#2#3month}}}%
+ \iffieldundef{#2#3day}{}{\hyphen\blx@imc@forcezerosmdt{\thefield{#2#3day}}}}
+
+
+ %为姓名格式选择增加的计数器
+ \newcounter{gbnamefmtcase}
+ \def\thegbnamefmtcase{\the\c@gbnamefmtcase}
+ %为数字标签格式选择增加的计数器/命令
+ \newcommand{\mkgbnumlabel}[1]{\mkbibbrackets{#1}}
+ \def\gbbiblabelopt@bracket{\renewcommand{\mkgbnumlabel}[1]{\mkbibbrackets{##1}}}
+ \def\gbbiblabelopt@parens{\renewcommand{\mkgbnumlabel}[1]{\mkbibparens{##1}}}
+ \def\gbbiblabelopt@dot{\renewcommand{\mkgbnumlabel}[1]{##1\adddot}}
+ \def\gbbiblabelopt@plain{\renewcommand{\mkgbnumlabel}[1]{##1}}
+ \def\gbbiblabelopt@box{\renewcommand{\mkgbnumlabel}[1]{\framebox{##1}}}
+ \def\gbbiblabelopt@circle{\renewcommand{\mkgbnumlabel}[1]{\textcircled{##1}}}
+ %为文献表中数字标签对齐方式选择增加的计数器/命令
+ \newcounter{gbalignlabel}
+ \def\thegbalignlabel{\the\c@gbalignlabel}
+ %为引用标签标注/文献表中本地化字符串中英文选择增加的计数器/命令
+ \newcounter{gbcitelocalcase}
+ \newcounter{gbbiblocalcase}
+ \def\thegbcitelocalcase{\the\c@gbcitelocalcase}
+ \def\thegbbiblocalcase{\the\c@gbbiblocalcase}
+
+
+ %
+ % 增加不同语言排序的切换选项,numeric样式,不使用该选项
+ % gblanorder=chineseahead的顺序为cn,jp,kr,en,fr,ru
+ % gblanorder=englishahead的顺序为en,fr,ru,cn,jp,kr
+ % gblanorder=cn;en;ru;fr;jp;kr的顺序为指定的cn;en;ru;fr;jp;kr,自定义内容可以随意写以分号分隔
+ % v1.0q,20190307,hzz
+ %
+ \DeclareBibliographyOption[string]{gblanorder}[chineseahead]{%
+ \ifstrequal{#1}{chineseahead}%%中文在前的顺序
+ {\gdef\lancnorder{1}\gdef\lanjporder{2}\gdef\lankrorder{3}%
+ \gdef\lanenorder{4}\gdef\lanfrorder{5}\gdef\lanruorder{6}}%
+ {%
+ \ifstrequal{#1}{englishahead}%
+ {\execlanodeah\dealsortlan}%
+ {\execlanodudf{#1}\dealsortlan}%
+ }%
+ }
+ \ExecuteBibliographyOptions{gblanorder}
+
+ \def\execlanodeah{%中文在后的顺序
+ \gdef\lancnorder{4}
+ \gdef\lanjporder{5}
+ \gdef\lankrorder{6}
+ \gdef\lanenorder{1}
+ \gdef\lanfrorder{2}
+ \gdef\lanruorder{3}}
+
+ \newcounter{lanordernum}
+ \newcommand{\execlanodudf}[1]{%like:cn;en;ru;fr;jp;kr
+ \setcounter{lanordernum}{0}
+ \DeclareListParser{\parsinglanorder}{;}
+ \renewcommand*{\do}[1]{\stepcounter{lanordernum}\csxdef{lan##1order}{\thelanordernum}}
+ \parsinglanorder{#1}
+ }
+
+ %
+ % 增加本地化字符串的中英文切换选项
+ % gbcitelocal指标注中的本地化字符串
+ % gbbiblocal 指文献表中的本地化字符串
+ % gblocal 指设置文献表和标注中的本地化字符串
+ % v1.0o,20190103,hzz
+ %
+ \DeclareBibliographyOption[string]{gbcitelocal}[gb7714-2015]{%
+ \ifstrequal{#1}{gb7714-2015}{\setcounter{gbcitelocalcase}{0}}{}%
+ \ifstrequal{#1}{chinese}{\setcounter{gbcitelocalcase}{1}}{}%
+ \ifstrequal{#1}{english}{\setcounter{gbcitelocalcase}{2}}{}%
+ }
+ \ExecuteBibliographyOptions{gbcitelocal}
+
+ \DeclareBibliographyOption[string]{gbbiblocal}[gb7714-2015]{%
+ \ifstrequal{#1}{gb7714-2015}{\setcounter{gbbiblocalcase}{0}}{}%
+ \ifstrequal{#1}{chinese}{\setcounter{gbbiblocalcase}{1}}{}%
+ \ifstrequal{#1}{english}{\setcounter{gbbiblocalcase}{2}}{}%
+ }
+ \ExecuteBibliographyOptions{gbbiblocal}
+
+ \DeclareBibliographyOption[string]{gblocal}[gb7714-2015]{%
+ \ExecuteBibliographyOptions{gbbiblocal=#1}%
+ \ExecuteBibliographyOptions{gbcitelocal=#1}%
+ }
+ %\ExecuteBibliographyOptions{gblocal} %默认值已经通过两个相关选项设置
+
+ %
+ % 增加序号标签格式处理选项
+ % v1.0l,20180623,hzz
+ %
+ \DeclareBibliographyOption[string]{gbbiblabel}[bracket]{%
+ \csuse{gbbiblabelopt@#1}
+ }
+ \ExecuteBibliographyOptions{gbbiblabel}
+
+ %
+ % 增加姓名大小写格式处理选项
+ %
+ \DeclareBibliographyOption[string]{gbnamefmt}[uppercase]{%
+ \ifstrequal{#1}{uppercase}{\setcounter{gbnamefmtcase}{0}}{}%
+ \ifstrequal{#1}{lowercase}{\setcounter{gbnamefmtcase}{1}}{}%
+ \ifstrequal{#1}{givenahead}{\setcounter{gbnamefmtcase}{2}}{}%given-family
+ \ifstrequal{#1}{familyahead}{\setcounter{gbnamefmtcase}{3}}{}
+ \ifstrequal{#1}{pinyin}{\setcounter{gbnamefmtcase}{4}}{}%family-given
+ \ifstrequal{#1}{reverseorder}{\setcounter{gbnamefmtcase}{5}}{}%family-given/given-family
+ }
+ \ExecuteBibliographyOptions{gbnamefmt}
+
+ %
+ % 增加标签对齐选项
+ %
+ % right是默认的右对齐,left是左对齐,gb7714-2015是项对齐方式
+ \DeclareBibliographyOption[string]{gbalign}[right]{%
+ \ifstrequal{#1}{right}{\setcounter{gbalignlabel}{0}}{}
+ \ifstrequal{#1}{left}{\setcounter{gbalignlabel}{1}}{}
+ \ifstrequal{#1}{center}{\setcounter{gbalignlabel}{2}}{}
+ \ifstrequal{#1}{gb7714-2015}{\setaligngbstyle}{}
+ }
+
+ \ExecuteBibliographyOptions{
+ giveninits=true,
+ urldate =gb7714-2015, %iso,iso8601,edtf
+ eventdate =gb7714-2015,
+ labeldateparts=true,
+ }
+
+%
+% 针对3.13<=biblatex版本的选项设置,因为内容有限,所以不做版本区分,而用时间直接判断
+%
+% 解决国标中“王临慧, 2010a.”和“王临慧, 等, 2010b.”的问题
+% 在没有这个选项之前无法加上a和b
+% v1.0s,20190828
+\@ifpackagelater{biblatex}{2019/08/16}{%
+ \ExecuteBibliographyOptions{%
+ nohashothers=true}}{}
+
+%=====================================================================
+% 设置本地化字符串
+%=====================================================================
+ %
+ % 新建当地化字符串,用来记录“等”字符、“和”字符
+ %
+ \NewBibliographyString{andotherscn}
+ \NewBibliographyString{andothersincitecn}
+ \NewBibliographyString{andothersincite}
+ \NewBibliographyString{andcn}
+ \NewBibliographyString{andothersjp}
+ \NewBibliographyString{andotherskr}
+ \NewBibliographyString{andjp}
+ \NewBibliographyString{andkr}
+ \NewBibliographyString{andincitecn}
+ \NewBibliographyString{andincite}
+ \NewBibliographyString{volumecn}
+ \NewBibliographyString{numbercn}
+ \NewBibliographyString{serialcn}
+ \NewBibliographyString{incn}
+ \NewBibliographyString{mathesiscn}
+ \NewBibliographyString{phdthesiscn}
+ \NewBibliographyString{editorcn}
+ \NewBibliographyString{editorscn}
+ \NewBibliographyString{bytranslatorcn}
+
+
+
+ %
+ % 修改一些当地化字符串
+ %
+ % 原理方法:直接利用当地化格式english修改出一些中文的格式,具体修改内容参考english.lbx文件
+ % 当然也可以增加比如上面定义的andotherscn
+ % 注意:在lbx文件和bbx文件中定义本地字符串的不同语法,两个参数和一个参数的区别
+
+ \DefineBibliographyStrings{english}{
+ bibliography = {\str@bibliography},
+ references = {\str@references},
+ bytranslatorcn = {\str@bytranslator},%\addperiod,%将trans. by 改成 译\addcomma\
+ and = {\addcomma},%将第2和3人名间的and符号改成逗号,用\finalnamedelim命令也可以定义,参见3.9.1节
+ andcn = {\addcomma},%and本地化字符串的中文对应词
+ andincitecn = {\addcomma},%将标注中的分开,便于与文献表中的区分
+ andincite = {\addcomma},
+ %andothers = {et al.},%将超过3个人名的省略,et al.改成为 等
+ andotherscn = {\str@andotherscn},%将超过3个人名的省略,et al.改成为 等
+ andothersincitecn={\str@andotherscn},%将标注中的分开,便于与文献表中的区分
+ andothersincite={et al\adddot},
+ backrefpage = {\str@backrefpage:},
+ backrefpages = {\str@backrefpages:},
+ in={in\intitlepunct},
+ volumecn={\str@volumecn},
+ numbercn={\str@numbercn},
+ serialcn={\str@serialcn},
+ andothersjp={他},
+ andotherskr={외},
+ andjp={和},
+ andkr={和},
+ incn={\str@incn\addcolon\addspace},
+ mathesiscn={\str@mathesiscn},
+ phdthesiscn={\str@phdthesiscn},
+ editorscn={\str@editorcn},
+ editorcn={\str@editorcn},
+}
+
+ %
+ % 增加两个命令用于临时的局部的修改本地化字符串
+ % 其中\setlocalbibstring修改缩写字符串,setlocalbiblstring修改长字符串
+ % 注意使用时因为是局部修改,因此要将其与需要修改的引用命令放在一个编组符号内
+ % v1.0t,hzz,20190525
+ \newcommand{\setlocalbibstring}[2]{%
+ \csdef{abx@sstr@#1}{#2}}
+ \newcommand{\setlocalbiblstring}[2]{%
+ \csdef{abx@lstr@#1}{#2}}
+
+%=====================================================================
+% 动态数据修改
+%=====================================================================
+%
+% 各层次的数据映射和动态修改
+%
+% 原理方法:
+% 1. 进行语言包括中英文判断,并设置和记录,比如记录到userf,usere中
+% 2. 增加文献标识符如[M],[J]等,对一些容易混淆的域进行设置以增强兼容性
+% 3. \DeclareSourcemap命令对于biblatex3.11以下版本只能出现一次,3.11版开始支持多个
+% 4. \DeclarestyleSourcemap在biblatex v3.7版开始可以支持出现多次
+% 5. 把作者和译者信息准确的记录到userf,usere中,用于后面判断是否是cjk字符。
+% 注意:这里用userf,usere而不是namee,namef,是因为只有把name列表转成域,才能有效读取姓名中的字符,
+% 如果用namee,namef,name信息会自动解析,所以就不能为cjk判断提供需要的信息
+%
+% 不同的文献类型使用相同的驱动输出可以有5种方法:
+% 1. 是数据源层的映射,将其它类型转换为某一要使用驱动的类型
+% 2. 是样式层映射,也是将其它类型转换为某一要使用驱动的类型
+% 3. 是驱动层映射,也是将其它类型转换为某一要使用驱动的类型
+% 4. 定义驱动类型别名DeclareBibliographyAlias,将其它类型定义为某一要使用驱动的类型的别名
+% 驱动别名定义本质上是做了驱动层映射
+% 5. 直接定义不同的类型的驱动,但驱动内容相同。
+%
+% 关于数据映射和驱动使用的考虑如下:
+% 1. 为避免利用biber输出bib文件时的数据变动,尽量不在数据源层映射做类型转换
+% 2. 为减少代码量,尽量少做内容相同的不同类型驱动
+% 3. 因此类型相关的处理主要在样式层映射、驱动层映射、驱动别名
+% 4. 由于biblatex默认做的驱动别名处理可能增加一些信息比如masterthesis转thesis时增加的type
+% 可以在样式层映射做某些需要避免这种默认处置的转换
+% 5. 当没有避免默认行为的需求时,全部采用驱动别名的方式处理,等价于驱动层的映射
+%
+% 文献类型和驱动考虑如下:
+% 1. 连续出版物及析出文献有其特殊性,因此考虑两类periodical和article
+% newpaper映射为article,并以note域做区分特殊处理
+% 2. 专著和专著中的析出文献是主要的类型,因此考虑book和inbook
+% standard映射为book或inbook,并以note域做区分特殊处理
+% collection和proceedings基本与book类似,因此做book驱动别名处理
+% incollection和inproceedings基本与inbook类似,因此做inbook驱动别名处理
+% 3. 专利类型有其特殊性,考虑patent类型
+% 4. 电子资源类型有其特殊性,考虑online类型
+% 5. 报告类型与book有点类似,出版项处理与book一样,但有时又要有修改和更新日期
+% 因此考虑用一种类型来输出,使用report类型
+% 6. 手册/学位论文等类型与book有点类似,但对于出版项处理时,有缺省时,直接省略,
+% 同时有version和edition的区别,因此考虑用一种类型来输出,使用manual类型
+% 7. 包括报告,学位论文在内的其它所有的类型,都做一个判断,当没有出版项时,
+% 且存在网址信息时,将其转换为online类型输出,否则都做为manual类型输出。
+% 8. 备选类型misc当存在网址时直接转换为online,由于howpublished域可用于描述
+% 更多的信息,因此不存在网址时,独立做一个备选格式
+% 9. 出版项主要以如下方式处理:
+% (a) location+institution+date 仅用于连续出版物
+% (b)publisher+location+date 用于需要完整输出出版项的类型,比如book,collection,proceedings,in*,report
+% (c)institution+location+date 用于出版项缺失时不输出的类型,包括manual,thesis,archive等其他类型
+% (d)printlist{insitution} 用于电子资源,仅输出出版者或组织,为数据映射方便,本来默认的organization域转换为用insitution输出。
+% (e) 不输出,主要用于连续出版物析出的文献
+% 10. 日期以如下方式处理:
+% date 由于存在biblatex选项,因此通过选项控制,数据源为date解析数据或year
+% urldate 由于存在biblatex选项,因此通过选项控制,输出到日,且用[]包围,数据源为urldate
+% newsdate 用于公告日期,公开日期或新闻日期,输出到日,但无包围符号,数据源为date
+% modifydate 用于更新或修改日期,输出到日,且用()包围,数据源为date或enddate或eventdate
+
+
+\DeclareSourcemap{
+\maps[datatype=bibtex]{%
+ \map{%当没有作者时将editor转成author
+ \pernottype{inbook}%因为in系列中editor可能用来表示bookauthor,所以排除
+ \pernottype{inproceedings}
+ \pernottype{incollection}
+ \pernottype{periodical}%因为peridical直接使用editor,所以排除
+ %注意notfield在低版本biblatex中没有
+ %\step[notfield=author,final]%当author不存在,将editor复制给author
+ \step[fieldsource=editor,fieldtarget=author]%并删除editor
+ }
+ \map{%当没有作者时将translator转成author
+ \pernottype{inbook}
+ \pernottype{inproceedings}
+ \pernottype{incollection}
+ %\step[notfield=author,final]%当author不存在,将translator复制给author
+ \step[fieldsource=translator,fieldtarget=author]%并删除translator
+ }
+ \map{%让address和location同步,biblatex中address是location的别名
+ %因此输出的时候只有location信息,但处理过程中是可以存在address的。
+ %\step[notfield=address,final]
+ \step[fieldsource=location,final]
+ \step[fieldset=address,origfieldval]
+ }
+ \map{%让address和location同步
+ %\step[notfield=location,final]
+ \step[fieldsource=address,final]
+ \step[fieldset=location,origfieldval]
+ }
+ \map{%处理在bib文件用mark标记文献类型标识符的情况
+ \step[fieldsource=mark,final]
+ \step[fieldset=usera, origfieldval]
+ }
+ \map{%处理在bib文件中直接给出文献的姓名格式为lowercase的情况
+ \step[fieldsource=nameformat,match=lowercase,final]
+ \step[fieldset=namefmtid,fieldvalue={1}]
+ }
+ \map{%处理在bib文件中直接给出文献的姓名格式为givenahead的情况
+ \step[fieldsource=nameformat,match=givenahead,final]
+ \step[fieldset=namefmtid,fieldvalue={2}]
+ }
+ \map{%处理在bib文件中直接给出文献的姓名格式为familyahead的情况
+ \step[fieldsource=nameformat,match=familyahead,final]
+ \step[fieldset=namefmtid,fieldvalue={3}]
+ }
+ \map{%处理在bib文件中直接给出文献的姓名格式为pinyin的情况
+ \step[fieldsource=nameformat,match=pinyin,final]
+ \step[fieldset=namefmtid,fieldvalue={4}]
+ }
+ \map{%根据article确定文献类型标识符
+ \pertype{article}
+ \step[fieldset=usera, fieldvalue={J}]
+ }
+ \map{%根据periodical确定文献类型标识符
+ \pertype{periodical}
+ \step[fieldset=usera, fieldvalue={J}]
+ \step[fieldsource=author] %有时会把author和editor混淆,处理后使用editor
+ \step[fieldset=editor, origfieldval]
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%根据增加一个新闻报纸的类型newspaper确定文献类型标识符
+ \pertype{newspaper}
+ \step[fieldset=usera, fieldvalue={N}]
+ \step[fieldset=note, fieldvalue=news]%因为没有专门的驱动,记录note方便映射为article后判断
+ }
+ \map{%对应增加的一个数据库类型database确定文献类型标识符
+ \pertype{database}
+ \step[fieldset=usera, fieldvalue={DB}]
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%对应增加的一个数据集类型dataset确定文献类型标识符
+ \pertype{dataset}
+ \step[fieldset=usera, fieldvalue={DS}]%
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%对应增加的一个软件类型software确定文献类型标识符
+ \pertype{software}
+ \step[fieldset=usera, fieldvalue={CP}]
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%对应增加的一个舆图类型map确定文献类型标识符
+ \pertype{map}
+ \step[fieldset=usera, fieldvalue={CM}]%
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%对应增加的一个档案类型archive确定文献类型标识符
+ \pertype{archive}
+ \step[fieldset=usera, fieldvalue={A}]
+ \step[fieldsource=publisher] %有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{%因为misc类型本身就是没有类型,而不像其它文献有明确的类型,所以
+ %当misc类型带有网址时,直接将其转换为online类型
+ \pertype{misc}
+ \step[fieldsource=url,final]
+ \step[typesource=misc,typetarget=online]
+ }
+ \map{%对应增加的一个备选类型misc确定文献类型标识符
+ \pertype{misc}
+ \step[fieldset=usera, fieldvalue={Z}]%
+ }
+ \map{
+ \pertype{book}
+ \pertype{inbook}
+ \step[fieldset=usera, fieldvalue={M}]
+ \step[fieldsource=version] %有时会把version和edition混淆,处理后直接用edition
+ \step[fieldset=edition, origfieldval]
+ }
+ \map{%兼容老的standard类型,确定文献类型标识符
+ \pertype{standard}
+ \step[fieldset=usera, fieldvalue={S}]
+ \step[fieldset=note, fieldvalue=standard]%因为没有专门的驱动,记录note方便映射为book和inbook后判断
+ }
+ \map{
+ \pertype{patent}
+ \step[fieldset=usera, fieldvalue={P}]
+ }
+ \map{
+ \pertype{inproceedings}
+ \pertype{conference}%兼容老的conference类型
+ \step[fieldset=usera, fieldvalue={C}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{proceedings}
+ \step[fieldset=usera, fieldvalue={C}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{incollection}
+ \step[fieldset=usera, fieldvalue={G}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{collection}
+ \step[fieldset=usera, fieldvalue={G}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{report}
+ \pertype{techreport}%兼容老的techreport类型
+ \step[fieldset=usera, fieldvalue={R}]
+ \step[fieldsource=institution]%有时会把publisher和institution混淆,处理后使用publisher
+ \step[fieldset=publisher, origfieldval]
+ }
+ \map{
+ \pertype{thesis}
+ \pertype{mastersthesis}%兼容老的mastersthesis和phdthesis类型
+ \pertype{phdthesis}
+ \step[fieldset=usera, fieldvalue={D}]
+ \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{
+ \pertype{online}
+ \pertype{electronic}%兼容老的electronic类型
+ \pertype{www}%兼容老的www类型
+ \step[fieldset=usera, fieldvalue={EB}]
+ \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]%因为online的出版项处理类似手册
+ \step[fieldsource=organization]%有时会把organization和institution混淆,处理后使用institution,以增强兼容性
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{
+ \pertype{manual}
+ \step[fieldset=usera, fieldvalue={A}]
+ \step[fieldsource=edition]%有时会把version和edition混淆,处理后使用version
+ \step[fieldset=version, origfieldval]
+ \step[fieldsource=publisher]%有时会把publisher和institution混淆,处理后使用institution
+ \step[fieldset=institution, origfieldval]
+ \step[fieldsource=organization]%有时会把organization和institution混淆,处理后使用institution,以增强兼容性
+ \step[fieldset=institution, origfieldval]
+ }
+ \map{
+ \pertype{unpublished}
+ \step[fieldset=usera, fieldvalue={Z}]
+ }
+ \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
+ \step[fieldsource={author}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
+ }%
+ \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
+ \step[fieldsource={editor}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
+ }%
+ \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
+ \step[fieldsource={translator}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
+ }%
+ \map[overwrite]{%用于处理zotero从cnki导出中文文献姓名中存在逗号的情况
+ \step[fieldsource={bookauthor}, match=\regexp{([\x{2FF0}-\x{9FA5}])\,\s*}, replace=\regexp{$1}]
+ }%
+ \map{%处理一些用year表示date的情况
+ %这样处理将会设置date域,并使得labeldatesource变为空,因为date的前缀为空(如果是urldate,那么labeldatesource就是url)。
+ %同时date域会被biblatex自动解析为year,month,day,并且覆盖原来的year信息
+ \step[fieldsource=year]
+ \step[fieldset=date, origfieldval]
+ }
+ \map{%将entrykey放入keywords中用于后期使用
+ \step[fieldsource=entrykey]
+ \step[fieldset=keywords, origfieldval]
+ }
+ \map{\step[fieldsource=title,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=userd,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=title,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=userd,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=title,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=userd,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=title,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=userd,fieldvalue={korean}]%韩语
+ }
+ \map{%文献题名的中文判断,将信息保存到userd中,避免因为标签生成原因导致title域被清除而产生问题
+ \step[fieldsource=title, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%
+ \step[fieldset=userd, fieldvalue={chinese}]
+ }
+ \map{%将没有设置userd,且存在title域的默认设置为英文
+ \step[fieldsource=title,final]
+ \step[fieldset=userd,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=author,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=userf,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=author,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=userf,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=author,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=userf,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=author,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=userf,fieldvalue={korean}]%韩语
+ }
+ \map{%作者的中文判断
+ \step[fieldsource=author, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]
+ \step[fieldset=userf, fieldvalue={chinese}]
+ }
+ \map{%将没有设置userf,且存在author域的默认设置为英文
+ \step[fieldsource=author,final]
+ \step[fieldset=userf,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=translator,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=usere,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=translator,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=usere,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=translator,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=usere,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=translator,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=usere,fieldvalue={korean}]%韩语
+ }
+ \map{%译者的中文判断
+ \step[fieldsource=translator, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]
+ \step[fieldset=usere, fieldvalue={chinese}]
+ }
+ \map{%将没有设置usere,且存在translator域的默认设置为英文
+ \step[fieldsource=translator,final]
+ \step[fieldset=usere,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=editor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=userc,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=editor,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=userc,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=editor,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=userc,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=editor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=userc,fieldvalue={korean}]%韩语
+ }
+ \map{%编者的中文判断
+ \step[fieldsource=editor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5
+ \step[fieldset=userc, fieldvalue={chinese}]
+ }
+ \map{%将没有设置userc,且存在editor域的默认设置为英文
+ \step[fieldsource=editor,final]
+ \step[fieldset=userc,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=bookauthor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF
+ \step[fieldset=userb,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪
+ }
+ \map{%
+ \step[fieldsource=bookauthor,match=\regexp{[\x{0400}-\x{052F}]},final]
+ \step[fieldset=userb,fieldvalue={russian}]%俄语
+ }
+ \map{%
+ \step[fieldsource=bookauthor,match=\regexp{[\x{3040}-\x{30FF}\x{31F0}-\x{31FF}]},final]
+ \step[fieldset=userb,fieldvalue={japanese}]%日语
+ } %确定形式后可增加类似andotherscn这样的本地化字符串处理
+ \map{%
+ \step[fieldsource=bookauthor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final]
+ \step[fieldset=userb,fieldvalue={korean}]%韩语
+ }
+ \map{%编者的中文判断
+ \step[fieldsource=bookauthor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5
+ \step[fieldset=userb, fieldvalue={chinese}]
+ }
+ \map{%将没有设置userc,且存在editor域的默认设置为英文
+ \step[fieldsource=bookauthor,final]
+ \step[fieldset=userb,fieldvalue={english}]
+ }
+ \map{\step[fieldsource=userd,final]%userd存在则用根据标题的语言设定language
+ \step[fieldset=language,origfieldval]%本身language存在则不设定
+ }
+ \map{\step[fieldsource=userf,final]%userd不存在,而userf存在则根据author的语言设定language
+ \step[fieldset=language,origfieldval]
+ }%如果没有作者和标题,那么剩下的最可能有意义的只有网址了,而网址通常是英文的,因此不用再进一步对其它域进行判断了。
+ \map{%将没有设置的language设置成en,即认为不是中文的就是英文的。
+ \step[fieldset=language,fieldvalue={english}]
+ }
+ \map{%一条文献的语言已经设定在language域中,由于出版项相关宏中使用userd判断,
+ %所以将一条文献的主体语言设定到userd中,本身前面userd已经设定,但没有处理无标题的情况,
+ %这里的处理等价于没有标题时,利用作者的语言设定userd,再没有作者,则默认用英文设定userd
+ \step[fieldsource=language]
+ \step[fieldset=userd,origfieldval]
+ }
+ \map{%当文献给出language域时,设置文献要使用的本地化字符串的语言
+ %biblatex 3.11及以下版本仅有match是区分大小写的,而3.12版开始用matchi来区分大小,而match不区分
+ %这里为兼容3.11及以下版本,所以用一个复杂一点的正则表达式
+ \step[fieldsource=language,match=\regexp{(e|E)(n|N)(g|G)(l|L)(i|I)(s|S)(h|H)},final]
+ \step[fieldset=langid,fieldvalue={english}]
+ \step[fieldset=lansortorder,fieldvalue=\lanenorder]
+ }
+ \map{
+ \step[fieldsource=language,match=\regexp{(r|R)(u|U)(s|S)(s|S)(i|I)(a|A)(n|N)},final]
+ \step[fieldset=langid,fieldvalue={russian}]
+ \step[fieldset=lansortorder,fieldvalue=\lanruorder]
+ }
+ \map{%
+ \step[fieldsource=language,match=\regexp{(f|F)(r|R)(e|E)(n|N)(c|C)(h|H)},final]
+ \step[fieldset=langid,fieldvalue={french}]
+ \step[fieldset=lansortorder,fieldvalue=\lanfrorder]
+ }
+ \map{%
+ \step[fieldsource=language,match=\regexp{(c|C)(h|H)(i|I)(n|N)(e|E)(s|S)(e|E)},final]%中日韩语目前都用english,
+ \step[fieldset=langid,fieldvalue={english}]
+ \step[fieldset=lansortorder,fieldvalue=\lancnorder]
+ }
+ \map{%
+ \step[fieldsource=language,match=\regexp{(j|J)(a|A)(p|P)(a|A)(n|N)(e|E)(s|S)(e|E)},final]%中日韩语目前都用english,
+ \step[fieldset=langid,fieldvalue={english}]
+ \step[fieldset=lansortorder,fieldvalue=\lanjporder]
+ }
+ \map{%
+ \step[fieldsource=language,match=\regexp{(k|K)(o|O)(r|R)(e|E)(a|A)(n|N)},final]%中日韩语目前都用english,
+ \step[fieldset=langid,fieldvalue={english}]
+ \step[fieldset=lansortorder,fieldvalue=\lankrorder]
+ }
+}
+}
+
+
+%
+% 修改输入的参考文献数据,样式层的操作
+%
+ \DeclareStyleSourcemap{
+ \maps[datatype=bibtex]{
+ \map{%尝试未定义数据模型的standard类型映射为其他类型book或inbook,
+ %standard类型在blx-dm中有出现,但仅定义了类型,域和约束等都没有定义
+ %因为可能要映射两种类型,所以不能在驱动层处理,因为要做判断
+ \step[fieldsource=booktitle,final]%当存在booktitle域是映射为inbook
+ \step[typesource=standard, typetarget=inbook, final]
+ }
+ \map{%剩下的全部映射为book
+ \step[typesource=standard, typetarget=book, final]
+ }
+% \map{%先于标准样式的driver层映射,以取消type设置
+% \step[typesource=mastersthesis, typetarget=thesis, final]
+% %\step[fieldset=type, fieldvalue=mathesis]
+% }
+% \map{%先于标准样式的driver层映射,以取消type设置
+% \step[typesource=phdthesis, typetarget=thesis, final]
+% %\step[fieldset=type, fieldvalue=phdthesis]
+% }
+ \map{%先于标准样式的driver层映射,以取消type设置
+ \step[typesource=techreport, typetarget=report, final]
+ %\step[fieldset=type, fieldvalue=techreport]
+ }
+ \map{%
+ \pertype{report}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=report,typetarget=online]
+ \step[fieldset=note,fieldvalue={report}]
+ }
+ \map{%
+ \pertype{thesis}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=thesis,typetarget=online]
+ }
+ \map{%
+ \pertype{manual}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=manual,typetarget=online]
+ }
+ \map{%
+ \pertype{unpublished}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=unpublished,typetarget=online]
+ }
+ \map{%
+ \pertype{database}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=databasetypetarget=online]
+ }
+ \map{%
+ \pertype{dataset}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=dataset,typetarget=online]
+ }
+ \map{%
+ \pertype{software}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=software,typetarget=online]
+ }
+ \map{%
+ \pertype{map}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=map,typetarget=online]
+ }
+ \map{%
+ \pertype{archive}
+ %biblatex3.7以下版本用如下方式来替代,address和location已在sourcemap中同步
+ \step[fieldset=location,fieldvalue={}]
+ \step[fieldsource=location,notmatch=\regexp{.},final]%地址不存在且存在url那么转变为online
+ %3.7以上版本用notfield
+ %\step[notfield=address,final]%当address不存在则继续
+ \step[fieldsource=url,final]%地址不存在且存在url那么转变为online
+ \step[typesource=archive,typetarget=online]
+ }
+ \map[overwrite]{%这里还必须有overwrite,注意不同版本存在差异,比如texlive2015变16后biber有变化(20161207修改正确)
+ \step[fieldsource=note, final]%将note域信息复制给keywords,用于输出时容易区分标准和报纸
+ \step[fieldset=keywords, fieldvalue={,}, append]
+ \step[fieldset=keywords, origfieldval, append]
+ }
+ \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{
+ \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\#}, replace=\regexp{$1\\\#}]
+ }
+ \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{
+ \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\%}, replace=\regexp{$1\\\%}]
+ }
+ \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,%
+ address,location,institution,organization}]{
+ \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}]
+ }
+ }
+ }
+
+%
+% 佚名/noauthor的处理
+%
+% 原理方法:利用样式层的动态数据修改实现
+\def\dealnoathor{
+ \DeclareStyleSourcemap{
+ \maps[datatype=bibtex]{
+ \map{%默认情况下将空缺作者的中文文献设置为佚名
+ \step[fieldsource=language,match={chinese},final]
+ \step[fieldset=author, fieldvalue={佚名}]
+ }
+ \map{%默认情况下将空缺作者的英文文献设置为A{non}
+ \step[fieldsource=language,match={english},final]
+ \step[fieldset=author, fieldvalue={A{non}}]%noauthor换成Anon,同时为避免大写还加了{}
+ }
+ }
+ }
+}
+
+%
+% 不同语言分集调整的实现方式
+%
+% 原理方法:利用样式层的动态数据修改lansortorder域来实现排序
+\def\dealsortlan{
+ \DeclareStyleSourcemap{
+ \maps[datatype=bibtex]{
+ \map[overwrite]{%当文献给出language域时,设置文献要使用的本地化字符串的语言
+ \step[fieldsource=language,match=english,final]
+ \step[fieldset=lansortorder,fieldvalue=\lanenorder]
+ }
+ \map[overwrite]{
+ \step[fieldsource=language,match=russian,final]
+ \step[fieldset=lansortorder,fieldvalue=\lanruorder]
+ }
+ \map[overwrite]{%
+ \step[fieldsource=language,match=french,final]
+ \step[fieldset=lansortorder,fieldvalue=\lanfrorder]
+ }
+ \map[overwrite]{%
+ \step[fieldsource=language,match=chinese,final]%中日韩语目前都用english,
+ \step[fieldset=lansortorder,fieldvalue=\lancnorder]
+ }
+ \map[overwrite]{%
+ \step[fieldsource=language,match=japanese,final]%中日韩语目前都用english,
+ \step[fieldset=lansortorder,fieldvalue=\lanjporder]
+ }
+ \map[overwrite]{%
+ \step[fieldsource=language,match=korean,final]%中日韩语目前都用english,
+ \step[fieldset=lansortorder,fieldvalue=\lankrorder]
+ }
+ }
+ }
+}
+
+
+
+
+%
+%驱动别名等价于驱动层映射
+%
+\DeclareBibliographyAlias{newspaper}{article}%
+\DeclareBibliographyAlias{inproceedings}{inbook}%会议论文文献类型驱动
+\DeclareBibliographyAlias{conference}{inbook}%会议论文文献类型驱动
+\DeclareBibliographyAlias{incollection}{inbook}%文集中析出文献类型驱动
+\DeclareBibliographyAlias{collection}{book}%%文集类型驱动
+\DeclareBibliographyAlias{proceedings}{book}%会议论文集文献类型驱动
+\DeclareBibliographyAlias{thesis}{manual}%学位论文驱动
+\DeclareBibliographyAlias{unpublished}{manual}%其它类型驱动
+\DeclareBibliographyAlias{database}{manual}
+\DeclareBibliographyAlias{dataset}{manual}
+\DeclareBibliographyAlias{software}{manual}
+\DeclareBibliographyAlias{map}{manual}
+\DeclareBibliographyAlias{archive}{manual}
+
+
+%=====================================================================
+% 设置排序格式
+%=====================================================================
+%
+% 排序格式,用降序,及userb域,针对biblatex3.8及以上版本
+%
+\DeclareSortingTemplate{gb7714-2015}{
+ \sort{
+ \field{presort}
+ }
+ %\sort[final]{
+ %\field{sortkey}
+ %}
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort{
+ \field{sortkey}
+ }
+ \sort{%[direction=descending]
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field{volume}
+ \literal{0}
+ }
+ }
+
+ %降序的nyt
+ \DeclareSortingTemplate{gbnytd}{
+ \sort{
+ \field{presort}
+ }
+% \sort[final]{
+% \field{sortkey}
+% }
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort[direction=descending]{
+ \field{sortkey}
+ }
+ \sort[direction=descending]{%
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field{volume}
+ \literal{0}
+ }
+ }
+
+ %降序的ynt
+ \DeclareSortingTemplate{gbyntd}{
+ \sort{
+ \field{presort}
+ }
+% \sort[final]{
+% \field{sortkey}
+% }
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort[direction=descending]{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sortkey}
+ }
+ \sort{%
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field{volume}
+ \literal{0}
+ }
+ }
+
+ %升序的ynt
+ \DeclareSortingTemplate{gbynta}{
+ \sort{
+ \field{presort}
+ }
+% \sort[final]{
+% \field{sortkey}
+% }
+ \sort{
+ \field{lansortorder}%language
+ }
+ \sort{%[direction=ascending]
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sortkey}
+ }
+ \sort{%
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field{volume}
+ \literal{0}
+ }
+ }
+
+%=====================================================================
+% 参考文献表环境
+%=====================================================================
+%
+% 列表格式
+%
+% 增加一个\bibitemindent尺寸用于控制list环境的itemindent
+% v1.0l,20180615,hzz
+% v1.0t,20200319,hzz,增加尺寸\biblabelextend使某些字体下标签宽度不足时可增加标签宽度
+\setlength{\bibhang}{\biblabelsep}%
+\newlength{\bibitemindent}
+\setlength{\bibitemindent}{0pt}
+\newlength{\biblabelextend}
+\setlength{\biblabelextend}{0pt}
+
+
+\defbibenvironment{bibliography}
+ {\list
+ {\printtext[labelnumberwidth]{%
+ \printfield{labelprefix}%
+ \printfield{labelnumber}}}
+ {\addtolength{\labelnumberwidth}{\biblabelextend}%
+ \setlength{\labelwidth}{\labelnumberwidth}%
+ \setlength{\labelsep}{\biblabelsep}%
+ \setlength{\leftmargin}{\bibhang}%
+ \addtolength{\leftmargin}{\labelnumberwidth}%
+ \setlength{\itemindent}{\bibitemindent}%
+ \setlength{\itemsep}{\bibitemsep}%
+ \setlength{\parsep}{\bibparsep}}%
+ \renewcommand*{\makelabel}[1]{\hss##1}}
+ {\endlist}
+ {\item}
+
+%
+% 顺序编码制-标签对齐方式处理
+%
+% 原理方法:利用选项提供的计数器数值做选择
+% 左对齐,右对齐为list环境下的处理,此时list环境的\labelwidth只能设置一个,是最宽标签的宽度
+% 项对齐则是在段落环境下做的处理。
+% 左对齐时,参考文献各项内容对齐,序号标签与参考文献项内容的间距可变
+% 右对齐时,参考文献各项内容对齐,序号标签与参考文献项内容的间距相等,标签与页边距离可变
+% 项对齐时,序号标签贴在页边,序号标签与参考文献项内容的间距相等
+% 修改序号标签格式为:
+% \DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}} %源来自numeric.BBX
+% \DeclareFieldFormat{labelnumberwidth}{\ttfamily\mkbibbrackets{#1}\hfill}
+\DeclareFieldFormat{labelnumberwidth}{%
+\ifcase\value{gbalignlabel}%右对齐,整个标签为右对齐
+ \mkgbnumlabel{#1}%
+\or%左对齐,整个标签为左对齐
+ \mkgbnumlabel{#1}\hfill%
+\or%中间对齐,比如:序号数字居于[]中间
+ \hfil\mkgbnumlabel{\hfill#1\hfill}\hfil%
+\fi}
+
+%
+% 修改序号标签格式为以各条参文献为基础进行对齐的方式,即序号与条目内容间隔相等的方式。
+\def\setaligngbstyle{%
+\def\blx@bibitem##1{%
+ \blx@ifdata{##1}
+ {\begingroup
+ \blx@getdata{##1}%
+ \blx@bibcheck
+ \iftoggle{blx@skipentry}{}{%
+ \blx@setdefaultrefcontext{##1}%
+ \global\let\blx@noitem\@empty
+ \blx@setoptions@type\abx@field@entrytype
+ \blx@setoptions@entry
+ \blx@thelabelnumber
+ \addtocounter{instcount}\@ne
+ \blx@initsep
+ \blx@namesep
+ \csuse{blx@item@\blx@theenv}\relax
+% \blx@initsep %移动到上面去,恢复bibnamesep等的作用机制
+% \blx@namesep
+ \csuse{blx@hook@bibitem}%
+ \blx@execute
+ \blx@initunit
+ \blx@anchor
+ \blx@beglangbib
+ \bibsentence
+ \blx@pagetracker
+ \blx@driver\abx@field@entrytype
+ \blx@postpunct
+ \blx@endlangbib}%
+ \par\endgroup}%这里增加了一个\par
+ {}}
+\newlength{\lengthid}
+\newlength{\lengthlw}
+\newcommand{\itemcmd}{%
+\settowidth{\lengthid}{\mkgbnumlabel{\printfield{labelnumber}}}
+\addtolength{\lengthid}{\biblabelsep}
+\setlength{\lengthlw}{\textwidth}
+\addtolength{\lengthlw}{-\lengthid}
+\addvspace{\bibitemsep}%恢复\bibitemsep的作用
+%\parshape 2 0em \textwidth \lengthid \lengthlw
+\hangindent\lengthid
+\mkgbnumlabel{\printfield{labelnumber}}%
+\hspace{\biblabelsep}}
+%
+% 简单的段落环境
+\defbibenvironment{bibliography}
+{\begingroup\setlength{\parindent}{0em}}
+{\endgroup}
+{\itemcmd}}
+
+
+%=====================================================================
+% 设置单元或块等的标点
+%=====================================================================
+\renewrobustcmd*{\bibinithyphendelim}{\addhighpenspace}%用于处理姓名中名部分存在-的情况,比如ZHANG Yu-xin
+\renewcommand*{\subtitlepunct}{\addcolon\addspace} %修改标题和其它标题信息间的标点,来源biblatex.def,
+%
+% 利用set实现的多语言文献不同语言间的分隔符
+% 20170411,双语之间用newline替换par,避免采用gb7714-2015的项对齐方式第二语言间分段导致没有缩进
+%
+% 原理方法:set方法可以参考3.11.5 Entry Sets,4.11.1 Entry Sets
+% 这里调整一下两种语言参考文献的间隔,源来自biblatex.def
+\renewcommand*{\entrysetpunct}{\adddot\newline\nobreak}
+\renewcommand*{\bibpagespunct}{\addcolon\addthinspace}%%页码引用格式的修改,修改为用冒号
+%\renewcommand{\relateddelim}{}%\par
+
+%=====================================================================
+% 修改域的格式,重定义域的输出宏
+%=====================================================================
+%
+% 新增文献类型标识符的格式
+% []前的nobreak,从GB4.1节的例子看不应该加,所以去掉
+% 但因为考虑到cjk字符和[]之间可能添加空格,所以仍然加上
+% 而[]中间的内容,从4.6.2节的例子看也是可以分割的,因此内部的nobreak也可以去掉
+%
+\DeclareFieldFormat{gbtypeflag}{%
+\iftoggle{bbx:gbmedium}%
+{\iftoggle{bbx:url}%
+ {\iffieldundef{url}%当存在url时,增加一个OL标识符
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}}%
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\texttt{/}OL]}}%
+ }%
+ {\ifentrytype{online}%
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\texttt{/}OL]}}%
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}}%
+ }}%
+ {\nobreak\printtext{[}\nobreak#1\nobreak\printtext{]}}%
+}
+
+%
+% 新增用于报纸的文献类型标识符的格式
+%
+\DeclareFieldFormat{gbtypeflagn}{%用于报纸newspaper
+\iftoggle{bbx:gbmedium}%
+{\iftoggle{bbx:url}%
+ {\iffieldundef{url}%当存在url时,增加一个OL标识符
+ {\nobreak\printtext{[}\nobreak N\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
+ {\nobreak\printtext{[}\nobreak N\printtext{\texttt{/}OL]}\nobreak}%
+ }%
+ {\nobreak\printtext{[}\nobreak N\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
+}{\nobreak\printtext{[}\nobreak N\printtext{]}\nobreak}%
+}
+
+%
+% 新增用于标准的文献类型标识符的格式
+%
+\DeclareFieldFormat{gbtypeflags}{%用于标准standard
+\iftoggle{bbx:gbmedium}%
+{\iftoggle{bbx:url}%
+ {\iffieldundef{url}%当存在url时,增加一个OL标识符
+ {\nobreak\printtext{[}\nobreak S\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
+ {\nobreak\printtext{[}\nobreak S\printtext{\texttt{/}OL]}\nobreak}%
+ }%
+ {\nobreak\printtext{[}\nobreak S\printtext{\iffieldundef{medium}{}{\texttt{/}\thefield{medium}}]}\nobreak}%
+}{\nobreak\printtext{[}\nobreak S\printtext{]}\nobreak}%
+}
+
+%
+% 重设title等参考文献信息的输出格式
+%
+% 原理方法:修改来自biblatex.def文件的原格式
+\newcommand{\bibtitlefont}{}
+\newcommand{\bibauthorfont}{}
+\newcommand{\bibpubfont}{}
+
+\DeclareFieldFormat{title}{#1\adddot\addthinspace}
+\DeclareFieldFormat{journaltitle}{#1\isdot}%添加\isdot用于缩写名带点情况,将其转换为缩写点,便于标点的追踪
+\DeclareFieldFormat{issuetitle}{#1}
+\DeclareFieldFormat{maintitle}{#1}
+\DeclareFieldFormat{booktitle}{#1}
+\DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉
+ [article,patent,thesis,unpublished]
+ {title}{#1\adddot\addthinspace}%\mkbibquote{#1\isdot}
+\DeclareFieldFormat%将期刊等文献的标题中原来带的引号去掉
+ [inbook,incollection,inproceedings]
+ {title}{#1}%\nopunct\unspace
+\DeclareFieldFormat{url}{\url{#1}} %%url相关输出,url域修改如本行,源来自biblatex.def
+\def\UrlFont{\rmfamily}%设置url字体为roman字体%\ttfamily
+%\urlstyle{rm} %使用这句也一样
+\setcounter{biburlnumpenalty}{100} %让url可以在数字后断行
+\setcounter{biburlucpenalty}{100} %让url可以在大写字母后断行
+\setcounter{biburllcpenalty}{100} %让url可以在小写字母后断行
+\DeclareFieldFormat{doi}{%
+ \rmfamily{DOI}\addcolon\space
+ \ifhyperref
+ {\href{https://doi.org/#1}{\nolinkurl{#1}}}
+ {\nolinkurl{#1}}}
+%
+% 标题的字母大小写格式修改
+%
+% 注意:修改标题的字母大小写,不能用前面的title的格式而要用titlecase
+% 因为titlecase is applied to the contents of the field directly,title is not
+%\DeclareFieldFormat{titlecase}{\MakeCapital#1}%重设标题格式,将其修改为首字母大写
+\DeclareFieldFormat{titlecase}{\iftoggle{bbx:titlelink}{%
+\iffieldundef{url}{\MakeCapital#1}{%
+\href{\thefield{url}}{#1}}}{\MakeCapital#1}}%重设标题格式,将其修改为首字母大写
+\DeclareFieldFormat{pages}{#1}%去掉前面引导页码的pp.等字符,\mkpageprefix[bookpagination]{#1}
+\DefineBibliographyExtras{english}{\renewcommand*{\bibrangedash}{-}}%将页码间隔符替换会英文的短横线
+\DefineBibliographyExtras{russian}{\renewcommand*{\bibrangedash}{-}}
+
+\def\execgbfdfmtstd{%恢复到标准样式的设置
+\DeclareFieldFormat{title}{\mkbibemph{##1}}
+\DeclareFieldFormat
+ [article,inbook,incollection,inproceedings,patent,thesis,unpublished]
+ {title}{\mkbibquote{##1\isdot}}
+\DeclareFieldFormat
+ [suppbook,suppcollection,suppperiodical]
+ {title}{##1}
+\DeclareFieldFormat{journaltitle}{\mkbibemph{##1}}
+\DeclareFieldFormat{issuetitle}{\mkbibemph{##1}}
+\DeclareFieldFormat{maintitle}{\mkbibemph{##1}}
+\DeclareFieldFormat{booktitle}{\mkbibemph{##1}}
+\DeclareFieldFormat{url}{\mkbibacro{URL}\addcolon\space\url{##1}}
+\DeclareFieldFormat{titlecase}{##1}
+\DeclareFieldFormat{pages}{\mkpageprefix[bookpagination]{##1}}
+}
+
+%
+% 文献标题后的标点问题
+% v1.0k,20180405,为texlive2017以上版本中的beamer兼容性做的处理,Hu Zhenzhen
+%
+% 原理方法:如下代码处理texlive2017以上版本中,beamer中文献的标题后出现两个点的情况:
+% texlive2017以上的beamer中对macro{title}做了patch,正常情况下不会出现两个点的情况,但由于
+% 之前为了处理texlive2015,2016下的title格式添加了adddot,导致出现两个点的情况,而且也影响
+% 析出文献的//符号的输出,因此再次对macro{title}做patch消除beamer中做apptocmd时添加的\newunitpunct
+ {%texlive 2017对应iftlseven以上版本
+ \@ifclassloaded{beamer}{
+ \DeclareFieldFormat{title}{#1}%
+ \DeclareFieldFormat[article,patent,thesis,unpublished]{title}{#1}
+ \AtBeginDocument{%
+ \patchcmd{\abx@macro@title}{\newunitpunct}{}{}{}}}{}
+ }
+
+
+%
+% 修改译者位置格式
+% v1.0w,20210401,hzz,增加对英文等其它语言译者的处理
+%
+% 原理方法:修改来自biblatex.def文件的bytranslator+others宏的格式
+\renewbibmacro*{bytranslator+others}{\bibauthorfont%
+ \ifnameundef{translator}
+ {}
+ {\iffieldequalstr{usere}{chinese}{}{\usebibmacro{bytranslator+othersstrg}}
+ %\setunit{\addspace}%
+ \printnames[bytranslator]{translator}%
+ \clearname{translator}%
+ %从macro*{bytranslator+othersstrg}%中可以看到当地化字符串格式的引用前的代码处理
+ %比如生成cotranslator等用于调用cotranslator所代表的当地化字符串
+ \iffieldequalstr{usere}{chinese}{\usebibmacro{bytranslator+othersstrg}}{}%“译”的位置换到下面来,即放到译者后面。
+ %\setunit{\addspace}%
+ \newunit}%
+ \usebibmacro{withothers}}
+
+\renewbibmacro*{bytranslator+othersstrg}{%
+ \def\abx@tempa{bytranslator}%
+ \ifnamesequal{translator}{commentator}
+ {\appto\abx@tempa{co}%
+ \clearname{commentator}}
+ {\ifnamesequal{translator}{annotator}
+ {\appto\abx@tempa{an}%
+ \clearname{annotator}}
+ {}}%
+ \ifnamesequal{translator}{introduction}
+ {\appto\abx@tempa{in}%
+ \clearname{introduction}}
+ {\ifnamesequal{translator}{foreword}
+ {\appto\abx@tempa{fo}%
+ \clearname{foreword}}
+ {\ifnamesequal{translator}{afterword}
+ {\appto\abx@tempa{af}%
+ \clearname{afterword}}
+ {}}}%
+\iffieldequalstr{usere}{chinese}{\bibstring{bytranslatorcn}}
+ {\bibstring{\abx@tempa}}}
+
+%
+% 修改作者数量超过限定值,做省略时的处理格式
+% v1.0,20160701,hzz
+% v1.0O,20190103,hzz,修改利用新定义的一个分隔符strandothersdelim
+% v1.0w,20210401,hzz,针对其它语言的译者后的标点与中文不同做处理
+% 原理方法:判断作者或译者是否中文,若中文用字符等,否则用et al. 。
+% \printnames由start-stop控制项数,默认是1和maxnames/minnames
+\renewbibmacro*{name:andothers}{\bibauthorfont%
+ \ifboolexpr{
+ test {\ifnumequal{\value{listcount}}{\value{liststop}}}
+ and
+ test \ifmorenames
+ }{\ifnumgreater{\value{liststop}}{1}%注意这里试图去区分姓名总数大于1的情况,当姓名总数大于1时,最后一个姓名后面先加入一个\finalandcomma
+ {\finalandcomma}%目前国标没有这样的区分要求,如果有需要也是可以这么去做的。
+ {}%
+\printdelim{andothersdelim}\printdelim{strandothersdelim}%
+}{%当是译者的时候需要特殊处理:从7.2节看等,译前面加逗号,但从示例看等和译同时出现时,译前的逗号没有,比如:
+%袁训来, 陈哲, 肖书海, 等.
+%胡泳, 范海燕, 译.
+%潘惠霞, 魏婧, 杨艳, 等译.
+\ifcurrentname{translator}{\iffieldequalstr{usere}{chinese}{\addcomma\addthinspace}{}}{}%为了实现上述第二个示例情况做的处理
+}}
+
+
+%
+% 修改省略作者后的本地化字符串,比如et al.
+% v1.0o,20190103,hzz
+%
+% 原理方法:默认情况下判断作者或译者是否中文,若中文用字符andotherscn=“等”,否则用andothers=“et al.”。
+% 非默认情况,根据选项信息,选择选择强制中文或英文
+% 首先设置全局的,然后设置文献表中的,这一等价于将所有的cite命令环境都设置过了
+% 而不用对每一个引用命令单独设置,比如cite,parancite,textcite都设置
+\DeclareDelimFormat{strandothersdelim}{%
+ \edef\userfieldabcde{userd}%这里使用\iffieldequalstr{labelnamesource}替代ifcurrentname因为标注中使用ifcurrentname无效
+ \iffieldequalstr{labelnamesource}{translator}{\edef\userfieldabcde{usere}}{}%
+ \iffieldequalstr{labelnamesource}{editor}{\edef\userfieldabcde{userc}}{}%
+ \iffieldequalstr{labelnamesource}{author}{\edef\userfieldabcde{userf}}{}%
+ \iffieldequalstr{labelnamesource}{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbcitelocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\ifbibstring{andothersincitecn}{\bibstring{andothersincitecn}}{\bibstring{andothers}}}{}%中文已经通过english本地化字符串定义
+ \iffieldequalstr{\userfieldabcde}{korean}{\ifbibstring{andotherskr}{\bibstring{andotherskr}}{\bibstring{andothers}}}{}%韩语未定义,所以与bib中一致
+ \iffieldequalstr{\userfieldabcde}{japanese}{\ifbibstring{andothersjp}{\bibstring{andothersjp}}{\bibstring{andothers}}}{}%日与同韩语
+ \iffieldequalstr{\userfieldabcde}{english}{\ifbibstring{andothersincite}{\bibstring{andothersincite}}{\bibstring{andothers}}}{}%英语已定义
+ \iffieldequalstr{\userfieldabcde}{french}{\bibstring{andothers}}{}%法语未定义,若要定义需要针对french本地化字符串定义
+ \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{andothers}}{}%俄语未定义,若要定义需要针对russian本地化字符串定义
+ \or%
+ \bibstring{andothersincitecn}%
+ \or%
+ \bibstring{andothersincite}%
+ \fi}
+
+
+\DeclareDelimFormat[bib,biblist]{strandothersdelim}{%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbbiblocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andotherscn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andotherskr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andothersjp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\bibstring{andothers}}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\bibstring{andothers}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{andothers}}{}%
+ \or%
+ \bibstring{andotherscn}%
+ \or%
+ \bibstring{andothers}%
+ \fi}
+
+%
+% 修改最后一个作者前的字符串,比如 and
+% v1.0o,20190103,hzz
+%
+% 原理方法:默认情况下判断作者或译者是否中文,若中文用字符andcn=“和”,否则用and=“and”。
+% 非默认情况,根据选项信息,选择选择强制中文或英文
+% 首先设置全局的,然后设置文献表中的,这一等价于将所有的cite命令环境都设置过了
+% 而不用对每一个引用命令单独设置,比如cite,parancite,textcite都设置
+\DeclareDelimFormat{finalnamedelim}{%
+ \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
+ \addspace%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbcitelocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andincitecn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andkr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andjp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\bibstring{andincite}}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\bibstring{and}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{and}}{}%
+\space%
+ \or%
+ \bibstring{andincitecn}\space%
+ \or%
+ \bibstring{andincite}\space%
+ \fi}
+
+\DeclareDelimFormat[bib,biblist]{finalnamedelim}{%
+ \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
+ \addspace%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{translator}{\edef\userfieldabcde{usere}}{}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{author}{\edef\userfieldabcde{userf}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbbiblocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{andcn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{andkr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{andjp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\bibstring{and}}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\bibstring{and}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\bibstring{and}}{}%
+\space%
+ \or%
+ \bibstring{andcn}\space%
+ \or%
+ \bibstring{and}\space%
+ \fi}
+
+
+%
+% 重设title的输出
+%
+% 20180425,v1.0k,为标题增加字体控制命令,Hu Zhenzhen
+% 原理方法:将文献类型标识符输出出去,原输出来自biblatex.def文件
+% 利用toggle做标识符是否输出的判断
+\renewbibmacro*{title}{%
+ \ifboolexpr{%
+ test{\iffieldundef{title}}%
+ and
+ test{\iffieldundef{subtitle}}%
+ }%
+ {}%
+ {\printtext[title]{\bibtitlefont%增加字体控制命令
+ \printfield[titlecase]{title}%
+ \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
+ {}{\setunit{\subtitlepunct}%
+ \printfield[titlecase]{subtitle}}%
+ \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
+ {\setunit{\subtitlepunct}\printfield{titleaddon}}%
+ \iftoggle{bbx:gbtype}{%
+ \iffieldundef{note}{\printfield[gbtypeflag]{usera}}%在标题后直接给出文献标识字母,判断一下,是否是报纸和标准
+ {\iffieldequalstr{note}{standard}{\printfield[gbtypeflags]{usera}}%判断是否为标准
+ {\iffieldequalstr{note}{news}{\printfield[gbtypeflagn]{usera}}%判断是否为报纸
+ {\printfield[gbtypeflag]{usera}}}%其它
+ }}{}%
+ %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
+ %\newunit
+}%
+}}
+
+%
+% 作者信息的输出格式
+%
+% 20180425,v1.0k,为作者增加字体控制命令,Hu Zhenzhen
+% 20180603,v1.0l,增加使用nameformat域来选择姓名格式
+\DeclareNameFormat{namefmtselected}{%
+\iffieldundef{namefmtid}{}%
+{\defcounter{gbnamefmtcase}{\thefield{namefmtid}}}%
+\ifcase\value{gbnamefmtcase}%
+ \ifgiveninits
+ {\usebibmacro{name:gbuppercase}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:gbuppercase}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+\or
+ \ifgiveninits
+ {\usebibmacro{name:gblowercase}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:gblowercase}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+\or
+ \ifgiveninits
+ {\usebibmacro{name:given-family}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:given-family}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+\or
+ \ifgiveninits
+ {\usebibmacro{name:family-given}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:family-given}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+\or
+\usebibmacro{name:gbpinyin}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}%
+\or
+ \ifnumequal{\value{listcount}}{1}
+ {\ifgiveninits
+ {\usebibmacro{name:family-given}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:family-given}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}%
+ \ifboolexpe{%
+ test {\ifdefvoid\namepartgiven}
+ and
+ test {\ifdefvoid\namepartprefix}}
+ {}
+ {\usebibmacro{name:revsdelim}}}
+ {\ifgiveninits
+ {\usebibmacro{name:given-family}
+ {\namepartfamily}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartsuffix}}
+ {\usebibmacro{name:given-family}
+ {\namepartfamily}
+ {\namepartgiven}
+ {\namepartprefix}
+ {\namepartsuffix}}}%
+\fi
+ \usebibmacro{name:andothers}}
+
+\DeclareNameAlias{default}{namefmtselected}%姓名的默认格式采用可选的模式
+\DeclareNameAlias{sortname}{default}% Used in the bibliography %family-given/given-family
+\DeclareNameAlias{citename}{default}% Default used by \citename
+
+\DeclareDelimFormat[bib,biblist]{andothersdelim}{\addcomma\addspace}
+%\DeclareDelimFormat[textcite]{andothersdelim}{\addspace}%
+
+%GB/T 7714-2015 风格,全部大写
+\newbibmacro*{name:gbuppercase}[4]{\bibauthorfont%
+\renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
+\renewcommand*{\revsdnamepunct}{}%
+ \ifuseprefix%
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifdefvoid{#3}{}{%
+ \ifcapital%
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}%
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifprefchar{}{\bibnamedelimc}}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
+ \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{\MakeUppercase{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%后缀前加逗号
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
+ \ifboolexpe{%
+ test {\ifdefvoid{#2}}
+ and
+ test {\ifdefvoid{#3}}}
+ {}{\revsdnamepunct}%
+ \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{\MakeUppercase{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}%
+ \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%%后缀前加逗号
+}
+
+%GB/T 7714-2015 风格,大小写不变,根据bib文件内输入原样输出
+\newbibmacro*{name:gblowercase}[4]{\bibauthorfont%
+ \renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉
+ \renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifdefvoid{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifprefchar{}{\bibnamedelimc}}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{{#1}}}\isdot%
+ \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%后缀前加逗号
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{{#1}}}\isdot%
+ \ifboolexpe{%
+ test {\ifdefvoid{#2}}
+ and
+ test {\ifdefvoid{#3}}}
+ {}{\revsdnamepunct}%
+ \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}
+ \ifdefvoid{#4}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%%后缀前加逗号
+}
+
+%中文常见风格,汉语拼音全拼模式
+\newbibmacro*{name:gbpinyin}[4]{\bibauthorfont%
+\renewrobustcmd*{\bibinitperiod}{}%将名字简写后的点去掉,%来源biblatex2.STY
+\renewcommand*{\revsdnamepunct}{}%%来源biblatex.def
+\renewrobustcmd*{\bibnamedelima}{\mbox{-}}%
+ \ifuseprefix
+ {\usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \ifdefvoid{#3}{}{%
+ \ifcapital
+ {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
+ {\mkbibnameprefix{#3}\isdot}%
+ \ifprefchar{}{\bibnamedelimc}}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
+ \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\MakeSentenceCase{\mkbibnamegiven{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}
+ {\usebibmacro{name:delim}{#1}%
+ \usebibmacro{name:hook}{#1}%
+ \ifdefvoid{#2}{\mkbibnamefamily{\MakeCapital{#1}}}{\mkbibnamefamily{\MakeUppercase{#1}}}\isdot%
+ \ifboolexpe{%
+ test {\ifdefvoid{#2}}
+ and
+ test {\ifdefvoid{#3}}}
+ {}
+ {\revsdnamepunct}%
+ \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{\MakeCapital{#2}}\isdot}%\MakeCapital
+ \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}
+ \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}%
+}
+
+
+%
+% url和url日期格式
+%
+\renewbibmacro*{url+urldate}{%
+ %\usebibmacro{url}%%更换url的位置,放到下面
+ \iffieldundef{urlyear}%
+ {}{%\setunit*{\addspace}%
+ \usebibmacro{urldate}}%
+ \setunit{\addperiod\addspace}%
+ \usebibmacro{url}}
+\renewbibmacro*{url}{\printfield{url}}
+
+
+%
+% 日期信息的输出格式,针对biblatex>=3.10版本
+%
+ \DeclareFieldFormat{urldate}{#1}
+ \renewbibmacro*{urldate}{%
+ \addthinspace\printtext{[}\printurldate\printtext{]}}%能用高层命令+选项尽量用命令(比如这里的\printurldate),而不用\blx@edtfdate这种更底层的命令
+
+ %
+ % 专利的公告日期、或报纸的日期的输出宏
+ % 20160701,v1.0,新增加
+ % 20180405,为biblatexv3.10版本,出现多出点bug做处理,Hu Zhenzhen
+ %
+ % 原理方法:加上printtext避免破坏异步标点机制
+ % 本可以用\printdate,但由于date选项设置为year,所以仅会给出年份
+ % 所以无法再用选项设置的方法,印象需要用底层的命令
+ % 这里可以用\blx@isodate,但用\blx@gbdate试图避免版本判断
+ \newbibmacro*{newsdate}{%%
+ \printtext{\blx@gbdate{}{}}%%\blx@isodate{}{}%
+ }
+
+ %
+ \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
+ \ifboolexpr{%
+ test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
+ }%
+ {}%更新或修改日期通常有day信息
+ {\iffieldundef{year}{%
+ \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\printtext{(}\printeventdate\printtext{)}}}%
+ {\printtext{(}\printenddate\printtext{)}}%
+ }{\iffieldequalstr{year}{}{%因为year存在,但为空
+ }{\printtext{(}\blx@gbdate{}{}\printtext{)}}%
+ }%
+ }}%
+
+
+%
+% biblatex>v3.8版利用related实现双语文献的处理
+%
+ %为了实现v3.8以上版本的双语文献,采用related的方法代替set方法,因为set方法已经无法实现了,
+ %因为set不再复制其第一个成员的信息。于是定义一个命令,用于动态的修改数据,即添加related域的信息
+ %其中使用了\DeclareStyleSourcemap,但由于其只能出现在导言区中,因此\defdoublelangentry命令也只能出现在导言区中
+ \newcommand{\defdoublelangentry}[2]{%
+ \edef\entrykeya{##1}
+ \edef\entrykeyb{##2}
+ \DeclareStyleSourcemap{
+ \maps[datatype=bibtex]{
+ \map{
+ \step[fieldsource=entrykey, match=\entrykeya, final]
+ \step[fieldset=related, fieldvalue=\entrykeyb]
+ }
+ }
+ }
+ }
+
+%
+% 关联文献间的分隔符
+%
+\renewcommand{\relateddelim}{\adddot\newline\nobreak}%\par,而作者年样式不需要修改,因为没有项对齐的标签问题
+
+%
+% 关联文献块前的分隔符,针对biblatex>=3.11
+%
+% 原理方法:因为增加了begrelateddelim钩子,所以不需要重定义related输出宏
+\renewcommand{\begrelateddelim}{\adddot\newline\nobreak}
+
+
+%
+% 调整doi+eprint+url格式
+%
+% 原理方法:源来自standard.bbx,因为页码后面直接跟引用日期,没有标点所以去掉其中的标点。
+\renewbibmacro*{doi+eprint+url}{%
+% \iftoggle{bbx:doi}%把doi的位置放到url后面
+% {\printfield{doi}}
+% {}%
+ %\newunit\newblock
+ \iftoggle{bbx:eprint}
+ {\iffieldundef{eprint}{}{\newunit\usebibmacro{eprint}}}
+ {}%
+ %\newunit\newblock
+ \iftoggle{bbx:url}
+ {\usebibmacro{url+urldate}}
+ {}
+ \newunit\newblock
+ \iftoggle{bbx:doi}
+ {\printfield{doi}}
+ {}}
+
+%
+% 调整页码的格式,即chapter+pages格式
+%
+\renewbibmacro*{chapter+pages}{%
+\iftoggle{bbx:gbstrict}{}{%
+ \printfield{chapter}}%
+ \iffieldundef{pages}{}{%这里增加一个判断,当没有页码时就不输出
+ \setunit{\bibpagespunct}%
+ \printfield{pages}}%
+ %\newunit %这里的标点去掉
+}
+
+%
+% 当location等出版项超过maxitem缩减后不再输出etal
+%
+\DeclareListFormat{location}{%
+ \usebibmacro{list:delim}{#1}%
+ #1\isdot}
+\DeclareListAlias{institution}{location}
+\DeclareListAlias{publisher}{location}
+
+% 新增一个样式用于输出连续出版物的地址,单位,时间,
+% 用于periodical连续出版物的出版社和地址的处理
+%
+% v1.0k,20180425,为出版信息增加字体控制命令,hzz
+% %类似\newbibmacro*{publisher+location+date}
+\newbibmacro*{location+institution+date}{\bibpubfont%
+\iftoggle{bbx:gbpub}%
+{\testCJKfirst{userd}%
+\ifboolexpr{%
+test {\iflistundef{location}} and test {\iflistundef{institution}}%
+}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress}\space :\space\str@nopublisher]}%
+{\printtext{[S.l.\space :\space s.n.\adddot]}}%
+}{%
+\iflistundef{location}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress]}}{\printtext{[S.l.\adddot]}}}%
+ {\printlist{location}}%
+\addcolon\addspace%
+\iflistundef{institution}{%
+\iftoggle{ifCJKforgbt}{\printtext{[\str@nopublisher]}}{\printtext{\mkbibbrackets{s.n.}}}}%
+{\printlist{institution}}}%
+\setunit{\addcomma\addspace}%
+ %\usebibmacro{date}%
+ \printfield{year}%
+ \bibrangedash%
+ \iffieldundef{endyear}{}{\printfield{endyear}}%
+ \newunit}%
+{\printlist{location}%
+ \iflistundef{institution}%
+ {\setunit*{\addcomma\space}}
+ {\setunit*{\addcolon\space}}%
+ \printlist{institution}%
+ \setunit*{\addcomma\space}%
+ \usebibmacro{date}%
+ \newunit}%
+}
+%
+% 通用的出版社和地址的处理
+%
+% 原理方法:当没有出版社地址时,直接判断title的信息是否是中文,若为中文,则写出版地不详,否则用英文的字符表示。
+% 事实上title对于每个文献来说是必须的,所以用它判断是最快的,而且一般标题和出版社的语言是一样的。
+% 注意标准standard类型,因为当没有出版项时直接省略,所以做特殊处理
+\renewbibmacro*{publisher+location+date}{\bibpubfont%
+\iftoggle{bbx:gbpub}%
+{\testCJKfirst{userd}%
+ \ifboolexpr{ test {\iflistundef{location}} and test {\iflistundef{publisher}} }%
+ {\iffieldequalstr{note}{standard}{}{\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress}\space :\space\str@nopublisher]}{\printtext{[S.l.\space :\space s.n.\adddot]}}}}%
+ {\iflistundef{location}{%\adddot
+ \iffieldequalstr{note}{standard}{}%%从gbt7714-2015标准第19页看到,标准存在出版项时输出,没有时完全省略。
+ {\iftoggle{ifCJKforgbt}{\printtext{[\str@noaddress]}\addcolon\addspace}{\printtext{[S.l.\adddot]}\addcolon\addspace}}}% \bibstring{noaddress}
+ {\printlist{location}\addcolon\addspace}%%\addcolon\addspace%
+ \iflistundef{publisher}{%
+ \iffieldequalstr{note}{standard}{}%
+ {\iftoggle{ifCJKforgbt}{\printtext{[\str@nopublisher]}\setunit{\adddot\addspace}\setunit*{\addcomma\addspace}}%
+ {\printtext{\mkbibbrackets{s.n.}}\setunit{\adddot\addspace}\setunit*{\addcomma\addspace}}}}%
+ {\printlist{publisher}}}%
+\setunit*{\addcomma\addspace}%\addcomma\addspace%
+\usebibmacro{date}%%\newunit %去掉这个标点
+}%
+{\printlist{location}%
+ \iflistundef{publisher}
+ {\setunit*{\addcomma\space}}
+ {\setunit*{\addcolon\space}}%
+ \printlist{publisher}%
+ \setunit*{\addcomma\space}%
+ \usebibmacro{date}%%\newunit
+ }%
+}
+
+%
+% 修改了一个institution+location+date用于manual、report、thesis等类型
+%
+% 20180425,v1.0k,增加了字体控制命令,hzz
+% 20190105,v1.0o,加了一个编组避免\usebibmacro{date}把month和day信息去掉
+\renewbibmacro*{institution+location+date}{\bibpubfont%当没有institution时不处理。
+{\printlist{location}%%加了一个编组避免\usebibmacro{date}把month和day信息去掉
+ \iflistundef{institution}
+ {\setunit*{\addcomma\space}}
+ {\setunit*{\addcolon\space}}%
+ \printlist{institution}%
+ \setunit*{\addcomma\space}%
+ \usebibmacro{date}%
+ %\newunit
+ }}
+
+%
+% 对volume卷信息格式做出修改
+% v1.0o,20190105,hzz
+%
+\DeclareFieldFormat{volume}{%
+\testCJKfirst{userd}%
+\iftoggle{ifCJKforgbt}%
+{\bibstring{serialcn}#1\bibstring{volumecn}}%
+{\bibstring{volume}~#1}%
+}% volume of a book
+\DeclareFieldFormat[article,periodical]{volume}{#1}% volume of a journal
+
+%
+% 对number册信息格式做出修改
+% v1.0o,20190105,hzz
+%
+\DeclareFieldFormat{number}{#1}%
+\DeclareFieldFormat[book,collection,inbook,%
+incollection,proceedings,inproceedings]{number}{%
+\testCJKfirst{userd}%
+\iftoggle{ifCJKforgbt}%
+{\bibstring{serialcn}#1\bibstring{numbercn}}%
+{#1}%
+}%
+
+%
+% 对edition版本信息格式做出修改
+%
+\DeclareFieldFormat{edition}{%源来自biblatex.DEF
+\testCJKfirst{userd}%
+\iftoggle{ifCJKforgbt}%
+{\ifinteger{#1}%
+{\printtext{#1\str@edition}}%
+{#1\isdot}}%
+{\ifinteger{#1}%
+{\mkbibordedition{#1}~\bibstring{edition}}%
+{#1\isdot}}}
+
+%
+% 对version的版本信息做出修改
+%
+\DeclareFieldFormat{version}{%源来自biblatex.DEF
+\testCJKfirst{userd}%
+\ifinteger{#1}%
+{\iftoggle{ifCJKforgbt}{\printtext{#1\str@edition}}%
+{\mkbibordedition{#1}~\bibstring{version}}}%
+{#1\isdot}}
+
+%
+% 修改析出文献的文集的标题与附加标题间的符号
+%
+\renewbibmacro*{booktitle}{%
+ \ifboolexpr{
+ test {\iffieldundef{booktitle}}
+ and
+ test {\iffieldundef{booksubtitle}}
+ }
+ {}
+ {\printtext[booktitle]{\bibtitlefont%
+ \printfield[titlecase]{booktitle}%
+ \setunit{\subtitlepunct}%
+ \printfield[titlecase]{booksubtitle}}%
+ \newunit%标点换成下一句
+ \setunit{\subtitlepunct}}%
+ \printfield{booktitleaddon}}
+
+
+%
+% 调整期刊名的格式
+%
+% v1.0k,20180425,增加了字体控制命令,hzz
+\renewbibmacro*{journal+issuetitle}{\bibpubfont%源来自standard.bbx
+ \usebibmacro{journal}%
+ %\setunit*{\addspace}%
+ \setunit*{\addcomma\addspace}%修改为增加一个逗号
+ \iffieldundef{series}
+ {}
+ {\newunit
+ \printfield{series}%
+ \setunit{\addspace}}%
+ %\usebibmacro{volume+number+eid}%
+ %\setunit{\addspace}%
+ \usebibmacro{issue+date}%
+ %\setunit{\addcolon\space}%
+ \iffieldundef{volume}{}{\setunit{\addcomma\space}}%
+ %换成逗号和空格
+ \usebibmacro{issue}%
+ \usebibmacro{volume+number+eid}%把卷期放到年份后面
+ %\newunit
+ }
+
+
+
+%
+% 调整期刊卷和期的格式
+%
+\renewbibmacro*{volume+number+eid}{%源来自standard.bbx
+\iftoggle{bbx:gbfieldstd}{%
+ \printfield{volume}%
+ \setunit*{\adddot}%
+ \printfield{number}%
+ \setunit{\addcomma\space}%
+ \printfield{eid}}{%
+ \printfield{volume}%
+ %\setunit*{\adddot}%去掉点号
+ %\printfield{number}%
+ \iffieldundef{number}{}{\printtext{\mkbibparens{\printfield{number}}}}%增加一个圆括号
+ \iffieldundef{eid}{}{%
+ \setunit{\addcomma\space}%
+ \printfield{eid}}}}
+
+%
+% 调整期刊年份的格式
+%
+\renewbibmacro*{issue+date}{%去掉括号
+ \printtext{%去掉了[parens]
+ \iffieldundef{issue}
+ {%\usebibmacro{date}
+ \iffieldundef{note}{\usebibmacro{date}}%判断一下,是否是报纸
+ {\iffieldequalstr{note}{news}{\usebibmacro{newsdate}}%判断是否为报纸
+ {\usebibmacro{date}}%
+ }}%
+ {\iftoggle{bbx:gbstrict}{}{\printfield{issue}%
+ \setunit*{\addspace}}%
+ %\usebibmacro{date}
+ \iffieldundef{note}{\usebibmacro{date}}%判断一下,是否是报纸
+ {\iffieldequalstr{note}{news}{\usebibmacro{newsdate}}%判断是否为报纸
+ {\usebibmacro{date}}%
+ }}}%
+ %\newunit
+ }
+
+%
+% 调整页码前的标点和去掉期刊文章等页码后面的标点
+%
+\renewbibmacro*{note+pages}{%源来自standard.bbx
+ %\printfield{note}%不要note,note用来判断是否是报纸newspaper
+ \iffieldundef{pages}{}{
+ \setunit{\bibpagespunct}%
+ \printfield{pages}}%
+ %\newunit
+ }
+
+
+%
+% 编者的符号修改一下
+% v1.0 2016-07-01
+% v1.0q 2019-03-01 hzz 修改editortype前的标点
+%
+\renewbibmacro*{editor}{%源来自biblatex.DEF
+ \ifboolexpr{
+ test \ifuseeditor
+ and
+ not test {\ifnameundef{editor}}
+ }
+ {\printnames{editor}%
+ \iffieldundef{editortype}%增加一个类型判断,用于存在editortype的情况
+ {\setunit\addspace}%当没有editortype时,直接用句点
+ {%\setunit{\addcomma\space}%
+ \usebibmacro{editorstrg}}%
+ %\clearname{editor}
+ }%
+ {}}
+
+%
+% 编者类型做一修改
+% v1.0 2016-07-01
+% v1.0q 2019-03-01 hzz 修改editortype不同语言的不同本地化字符串
+%
+\renewbibmacro*{editorstrg}{%源来自biblatex.DEF
+ \printtext[editortype]{%
+ \iffieldundef{editortype}
+ {%
+% \ifboolexpr{ %这一段去掉,未定义编者类型情况下不处理
+% test {\ifnumgreater{\value{editor}}{1}}
+% or
+% test {\ifandothers{editor}}
+% }
+% {\bibstring{editors}}
+% {\bibstring{editor}}
+ }
+ {\ifbibxstring{\thefield{editortype}} %定义编者类型情况下处理,以后根据需要修改
+ {\ifboolexpr{
+ test {\ifnumgreater{\value{editor}}{1}}
+ or
+ test {\ifandothers{editor}}
+ }
+ {\printdelim{streditortypes}}
+ {\printdelim{streditortype}}}
+ {\thefield{editortype}}}%
+ }}
+
+%
+% 编者类型的本地化字符串输出
+% v1.0q 2019-03-01 hzz
+% 能对不同条目类型作格式设置的域格式,能对不同环境做格式设置的分隔符
+% 能对不同文境作设置的包括排序,标签等
+% 这里因为考虑可能标注和文献表中存在不同,所以用分隔符来输出本地化字符串
+%
+\DeclareDelimFormat{streditortypes}{%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbbiblocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{\thefield{editortype}scn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{\thefield{editortype}skr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{\thefield{editortype}sjp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\addcomma\addthinspace\bibstring{\thefield{editortype}s}}{}%
+ \or%
+ \bibstring{\thefield{editortype}scn}%
+ \or%
+ \addcomma\addthinspace\bibstring{\thefield{editortype}s}%
+ \fi}
+%
+\DeclareDelimFormat{streditortype}{%
+ \edef\userfieldabcde{userd}%
+ \ifcurrentname{editor}{\edef\userfieldabcde{userc}}{}%
+ \ifcurrentname{bookauthor}{\edef\userfieldabcde{userb}}{}%
+ \ifcase\value{gbbiblocalcase}%
+ \iffieldequalstr{\userfieldabcde}{chinese}{\bibstring{\thefield{editortype}cn}}{}%
+ \iffieldequalstr{\userfieldabcde}{korean}{\bibstring{\thefield{editortype}kr}}{}%
+ \iffieldequalstr{\userfieldabcde}{japanese}{\bibstring{\thefield{editortype}jp}}{}%
+ \iffieldequalstr{\userfieldabcde}{english}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
+ \iffieldequalstr{\userfieldabcde}{french}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
+ \iffieldequalstr{\userfieldabcde}{russian}{\addcomma\addthinspace\bibstring{\thefield{editortype}}}{}%
+ \or%
+ \bibstring{\thefield{editortype}cn}%
+ \or%
+ \addcomma\addthinspace\bibstring{\thefield{editortype}}%
+ \fi}
+
+
+%
+% bookauthor域的输出,
+% v1.0q 2019-03-01 hzz
+% 不再对editor和bookauthor做sourcemap,而是下面的宏内逻辑代替,
+% 使得除使用bookauthor外也可以使用editor,便于在使用editor时使用editortype
+\renewbibmacro*{bybookauthor}{%
+ \ifnameundef{bookauthor}%
+ {\ifnameundef{editor}%
+ {}%
+ {\ifnamesequal{author}{editor}%
+ {}{\usebibmacro{editor}}}%
+ }%
+ {\ifnamesequal{author}{bookauthor}%
+ {}{\printnames{bookauthor}}%
+ }%
+}
+
+%
+% 修改期刊的标题
+%
+\renewbibmacro*{periodical}{%源来自biblatex.DEF
+ \iffieldundef{title}
+ {}
+ {\printtext[title]{\bibtitlefont%
+ \printfield[titlecase]{title}%
+ %\setunit{\subtitlepunct}%
+ \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
+ {}{\setunit{\subtitlepunct}
+ \printfield[titlecase]{subtitle}}%
+ %{}%把编组结束移到后面去
+ \iftoggle{bbx:gbtype}{%
+ \iffieldundef{usera}{}{%在标题后直接给出文献标识字母
+ \printfield[gbtypeflag]{usera}}}{}
+ }}
+ }
+
+
+%
+% 期刊的标题做修改
+%
+\renewbibmacro*{title+issuetitle}{%源来自standard.BBX
+ \usebibmacro{periodical}%
+ %\setunit*{\addspace}%
+ \setunit*{\adddot\addspace}%标点修改为句点
+ \iffieldundef{series}
+ {}
+ {\newunit
+ \printfield{series}%
+ \setunit{\addspace}}%
+ \usebibmacro{periodical+issue}%将issue调整到上面来,并修改
+\iffieldundef{number}{}{%%进一步处理有范围的数字
+ \multinumberparser{\thefield{number}}}%
+ \iffieldundef{volume}%
+ {\printfield{year}%
+ \printtext{\mkbibparens{\multinumberfirst}}%
+ \bibrangedash%
+ \iffieldundef{endyear}{}{\printfield{endyear}\printtext{\mkbibparens{\multinumbersecond}}}%
+ }%
+ {\multivolparser{\thefield{volume}}%
+ \printfield{year}%
+ \setunit{\addcomma\space}%将冒号修改为逗号
+ \printtext{\multivolfirst}%
+ \printtext{\mkbibparens{\multinumberfirst}}%
+ \bibrangedash%
+ \iffieldundef{endyear}{}{%
+ \printfield{endyear}%
+ \setunit{\addcomma\space}%将冒号修改为逗号
+ \printtext{\multivolsecond}%
+ \printtext{\mkbibparens{\multinumbersecond}}}%
+ }%
+ \setunit{\addcomma\space}%
+ \printfield{eid}%
+ \setunit{\addspace}%
+ %\usebibmacro{issue+date}%
+ %\setunit{\addcolon\space}%
+ \usebibmacro{issue}%
+ \newunit}
+
+%
+% 新增一个样式用于调整期刊年份的格式,只打印年份
+%
+\newbibmacro*{periodical+issue}{%
+ \printtext{%去掉了[parens]
+ \iffieldundef{issue}
+ {%\usebibmacro{date}%修改为下一句
+ }%
+ {\printfield{issue}%
+ \setunit*{\addspace}%
+ %\usebibmacro{date}%修改为下一句
+ }%
+ }%
+ %\newunit
+}
+
+%
+% 重设专利title的输出,将文献类型标识符输出出去
+%
+\newbibmacro*{patenttitle}{%原输出来自biblatex.def文件
+ \ifboolexpr{%
+ test{\iffieldundef{title}}%
+ and%
+ test{\iffieldundef{subtitle}}%
+ }%
+ {}%
+ {\printtext[title]{\bibtitlefont%
+ \printfield[titlecase]{title}%
+ \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
+ {}{\setunit{\subtitlepunct}%
+ \printfield[titlecase]{subtitle}}%
+ \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
+ {\setunit{\subtitlepunct}\printfield{titleaddon}}%
+ \setunit{\subtitlepunct}\printfield{number}%写专利号
+ \iftoggle{bbx:gbtype}{\printfield[gbtypeflag]{usera}}{}%
+ %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
+ %\newunit
+ }%
+}%
+}
+
+
+
+%
+% 修改in:用于inbook、incollection、inproceedings等类型
+% 2018.04.20,v1.0k,renewed marco,by hzz
+% 20190212,v1.0q,增加中英文区分,by hzz
+%
+% 原理方法:使用bibmacro{in:}改变了以前在driver中直接输出//的方式,同时也简化了标点控制。
+\renewbibmacro*{in:}{%
+ \iftoggle{bbx:gbpunctin}{\printtext{\allowbreak\texttt{//}\allowbreak}}%\addthinspace
+ {\setunit{\adddot\addspace}%
+ \iffieldequalstr{userd}{chinese}%
+ {\printtext{\bibstring{incn}}}%
+ {\printtext{\bibstring{in}}}%
+ }}%\newunit\newblock\intitlepunct
+
+%
+% 修改type域的输出格式
+% 2019.02.12,v1.0q,byhzz
+% 使其可以区分中英文输出不同的格式,比如博士论文英文输出PHD thesis,中文则是博士学位论文
+\DeclareFieldFormat{type}%
+{\iffieldequalstr{userd}{chinese}%
+ {\ifbibxstring{#1cn}{\bibxstring{#1cn}}{#1}}%
+ {\ifbibstring{#1}{\bibstring{#1}}{#1}}%
+}
+
+
+%
+% 修改series域的输出格式
+% 2019.05.01,v1.0r,byhzz
+\renewbibmacro*{series+number}{%
+ \printfield{series}%
+ %\setunit*{\addspace}%
+ %\printfield{number}%
+ %\newunit
+ }
+
+%=====================================================================
+%设置驱动格式
+%=====================================================================
+%
+% book条目类的驱动
+%
+ \DeclareBibliographyDriver{book}{%源来自standard.bbx文件
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+\usebibmacro{author/editor+others/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+\usebibmacro{maintitle+title}%
+\iftoggle{bbx:gbstrict}{}{%
+\newunit
+\printlist{language}%
+\newunit\newblock%
+\usebibmacro{byauthor}%
+\newunit\newblock}%
+\usebibmacro{byeditor+others}%
+\newunit
+\printfield{edition}%
+\newunit\newblock%%
+\iftoggle{bbx:gbstrict}{}{%
+\iffieldundef{maintitle}%
+{\printfield{volume}%
+\printfield{part}}%
+{}%
+\newunit%
+\printfield{volumes}%
+\newunit\newblock%
+\usebibmacro{series+number}}%
+\newunit\newblock%
+%\printfield{note}%
+%\newunit\newblock%
+\usebibmacro{publisher+location+date}%
+%\newunit\newblock %这里标点去掉
+\usebibmacro{chapter+pages}%
+ \iffieldundef{url}{}{%当没有网址时也不输出
+ \usebibmacro{modifydate}}%带括号的修改或更新日期,
+\usebibmacro{doi+eprint+url}%从下面移动到上面来,因为gbt2015的url需直接放在页码后面。
+ \newunit\newblock%
+ \printfield{pagetotal}%
+ \newunit\newblock%
+ \iftoggle{bbx:isbn}
+ {\printfield{isbn}}
+ {}%
+ \newunit\newblock
+ %\usebibmacro{doi+eprint+url}%
+ %\newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+
+%
+% 期刊文章,连续出版物中的析出文献的格式
+%
+ \DeclareBibliographyDriver{article}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}%
+ \newunit\newblock
+ \usebibmacro{bytranslator+others}%
+ \newunit\newblock
+ \printfield{version}}%
+ \newunit\newblock
+ %\usebibmacro{in:}% 不使用in来表示期刊等连续出版物
+ \usebibmacro{journal+issuetitle}%
+ %\newunit
+% \usebibmacro{byeditor+others}%
+% \newunit
+ \usebibmacro{note+pages}%
+ \iffieldequalstr{note}{news}{}{%当是新闻时不输出修改或更新日期
+ \iffieldundef{url}{}{%当没有网址时也不输出
+ \iftoggle{bbx:url}{%当url选项为false时,也不输出
+ \usebibmacro{modifydate}}{}}}%带括号的修改或更新日期,
+ \usebibmacro{doi+eprint+url}%从后面移上来,调整url和页码之间的位置
+ \newunit\newblock
+ \iftoggle{bbx:isbn}
+ {\printfield{issn}}
+ {}%
+ \newunit\newblock
+ %\usebibmacro{doi+eprint+url}%
+ %\newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+
+
+%
+% 连续出版物的驱动
+%
+ \DeclareBibliographyDriver{periodical}{%源来自standard.BBX
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{editor}%
+ %\setunit{\labelnamepunct}\newblock
+ \newunit\newblock %删除上面一行,添加这一行
+ \usebibmacro{title+issuetitle}%
+ \newunit\newblock%
+ \usebibmacro{location+institution+date}%添加这一行用于输出地址,单位和时间
+ \newunit\newblock%添加这一行
+ \iftoggle{bbx:gbstrict}{}{%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byeditor}%
+ \newunit\newblock
+ \printfield{note}%
+ \newunit\newblock}
+ \iftoggle{bbx:isbn}
+ {\printfield{issn}}
+ {}%
+ \newunit\newblock
+ \usebibmacro{doi+eprint+url}%
+ \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+%
+% 专利文献驱动
+%
+ \DeclareBibliographyDriver{patent}{%源来自standard.BBX
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ %\usebibmacro{title}%
+ \usebibmacro{patenttitle}%给出专利专用的标题输出
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}}%
+ \newunit\newblock
+ \printfield{type}%
+ \setunit*{\addspace}%
+ %\printfield{number}%已放到patenttitle中处理
+ \iflistundef{location}
+ {}
+ {\setunit*{\addspace}%
+ \printtext{%[parens]
+ \printlist[][-\value{listtotal}]{location}}}%
+ \newunit\newblock
+ \usebibmacro{byholder}%
+ \newunit\newblock
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{newsdate}%
+ %\newunit\newblock
+ \usebibmacro{doi+eprint+url}%
+ \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+
+%
+% 在线文献驱动
+%
+\DeclareBibliographyDriver{online}{%源来自standard.BBX
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/editor+others/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}%
+ \newunit\newblock
+ \usebibmacro{byeditor+others}%
+ \newunit\newblock
+ \printfield{note}}%
+ \newunit
+ \printfield{version}%
+ \newunit\newblock
+ %\printlist{organization}%
+ \printlist{institution}%
+ \newunit\newblock
+\ifboolexpr{%
+test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
+}{\usebibmacro{date}}%
+{\usebibmacro{modifydate}}%修改或更新日期,为带括号的时间
+ \usebibmacro{url+urldate}%从下面移上来
+ \newunit\newblock
+ \iftoggle{bbx:eprint}
+ {\usebibmacro{eprint}}
+ {}%
+ \newunit\newblock
+ %\usebibmacro{url+urldate}%
+ %\newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+
+%
+% 报告类型驱动
+% 当有网址无出版项时,用online输出
+%
+\DeclareBibliographyDriver{report}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}}%
+ \newunit\newblock
+ \usebibmacro{byeditor+others}%增加的译者信息
+ \newunit\newblock
+ \printfield{type}%
+ \setunit*{\addspace}%
+ \printfield{number}%
+ \newunit\newblock
+ \printfield{version}%
+ \newunit
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{publisher+location+date}%
+ %\newunit\newblock
+ \usebibmacro{chapter+pages}%
+ \usebibmacro{doi+eprint+url}%
+ \newunit
+ \printfield{pagetotal}%
+ \newunit\newblock
+ \iftoggle{bbx:isbn}
+ {\printfield{isrn}}
+ {}%
+ \newunit\newblock
+% \usebibmacro{doi+eprint+url}%
+% \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+%
+% 论文、手册类型驱动
+% 2016-11-11,增加了译者信息
+%
+\DeclareBibliographyDriver{manual}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+ \iftoggle{bbx:gbstrict}{}{%
+ \newunit%
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}}%
+ \newunit\newblock
+ \usebibmacro{byeditor+others}%增加的译者信息
+ \newunit\newblock
+ \iftoggle{bbx:gbfieldtype}{%
+ \printfield{type}%
+ \setunit*{\addspace}}{}%
+ \printfield{number}%
+ \newunit\newblock
+ \printfield{version}%
+ \newunit
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{institution+location+date}%
+ %\newunit\newblock
+ \usebibmacro{chapter+pages}%
+ \iffieldundef{url}{}{%当没有网址时也不输出修改或更新日期
+ \usebibmacro{modifydate}}%修改或更新日期为带括号的时间
+ \usebibmacro{doi+eprint+url}%
+ \newunit
+ \printfield{pagetotal}%
+ \newunit\newblock
+ \iftoggle{bbx:isbn}
+ {\printfield{isrn}}
+ {}%
+ \newunit\newblock
+% \usebibmacro{doi+eprint+url}%
+% \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+%
+% 备选类型驱动
+%
+% 利用biblatex的misc驱动
+\DeclareBibliographyDriver{misc}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/editor+others/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+ \usebibmacro{title}%
+\iftoggle{bbx:gbstrict}{}{%
+ \newunit
+ \printlist{language}%
+ \newunit\newblock
+ \usebibmacro{byauthor}%
+ \newunit\newblock
+ \usebibmacro{byeditor+others}}%
+ \newunit\newblock
+ \printfield{howpublished}%
+ \newunit\newblock
+ \printfield{type}%
+ \newunit
+ \printfield{version}%
+ \newunit
+ \printfield{note}%
+ \newunit\newblock
+ \usebibmacro{institution+location+date}%
+ %\usebibmacro{organization+location+date}%
+ %\newunit\newblock
+ \usebibmacro{doi+eprint+url}%
+ \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+
+%
+% 专著中的析出文献的格式修改
+%
+\DeclareBibliographyDriver{inbook}{%源来自standard.bbx
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/translator+others}%
+\ifnameundef{author}{}{\setunit{\labelnamepunct}\newblock}%这一段用于去除作者不存在时多出的标点
+\usebibmacro{title}%
+\usebibmacro{in:}%
+%\printtext{\texttt{//}\addthinspace}%
+ \usebibmacro{bybookauthor}%
+ \ifnameundef{bookauthor}{%
+ \ifnameundef{editor}{}{\newunit}%
+ }{\newunit}%替换下一句
+ %\newunit\newblock
+\iffieldundef{series}{}{\usebibmacro{series+number}\setunit{\addcolon\addspace}}%为处理一些存在series的情况而增加
+ \usebibmacro{maintitle+booktitle}%
+\iffieldundef{volume}{}{\setunit{\addcolon\addspace}\printfield{volume}}%
+\iffieldundef{number}{}{\setunit{\addcolon\addspace}\printfield{number}}%增加卷和册信息
+ \newunit\newblock%
+% \usebibmacro{byeditor+others}%
+% \newunit\newblock
+ \printfield{edition}%
+ \newunit
+ \iftoggle{bbx:gbstrict}{}{%
+% \iffieldundef{maintitle}
+% {\printfield{volume}%
+% \printfield{part}}
+% {}%
+% \newunit
+% \printfield{volumes}%
+% \newunit\newblock
+% \usebibmacro{series+number}
+ }%
+ \newunit\newblock
+ %\printfield{note}%
+ %\newunit\newblock
+ \usebibmacro{publisher+location+date}%
+ %\newunit\newblock
+ \usebibmacro{chapter+pages}%
+ %\newunit\newblock
+ \usebibmacro{doi+eprint+url}%移到上面来
+ \newunit\newblock
+ \iftoggle{bbx:isbn}
+ {\printfield{isbn}}
+ {}%
+ \newunit\newblock
+% \usebibmacro{doi+eprint+url}%
+% \newunit\newblock
+ \usebibmacro{addendum+pubstate}%
+ \setunit{\bibpagerefpunct}\newblock
+ \usebibmacro{pageref}%
+ \newunit\newblock
+ \iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}
+ {}%
+ \usebibmacro{finentry}\usebibmacro{annotation}}
+
+
+%
+%针对不同refsection做不同的格式处理的代码
+%
+
+%
+%默认采用顺序编码制,因此只需增加的是作者年制
+\newrobustcmd{\setaystylesection}[1]{\csxdef{gb@aystyle@section#1}{#1}}
+
+%
+%在AtBeginBibliography处已经无法重定义defbibenvironment{bibliographyay}
+%所以输出只能是用另外定义的环境来实现
+%可以在refsection后面做patch
+%为排序引入newrefcontext
+\apptocmd{\refsection}{
+\edef\gb@refsecnum{\number\c@refsection}%
+\ifcsdef{gb@aystyle@section\gb@refsecnum}%
+{
+\newrefcontext[sorting=gb7714-2015]
+
+\setlength{\bibhang}{1em}
+\setlength{\bibitemindent}{-\bibhang}
+\defbibenvironment{bibliography}
+ {\list
+ {}
+ {\setlength{\leftmargin}{\bibhang}%
+ \setlength{\itemindent}{\bibitemindent}%
+ \setlength{\itemsep}{\bibitemsep}%
+ \setlength{\parsep}{\bibparsep}}}
+ {\endlist}
+ {\item}
+}{}
+}{}{}
+
+%
+%为排序引入endrefcontext
+%
+\pretocmd{\endrefsection}{
+\edef\gb@refsecnum{\number\c@refsection}%
+\ifcsdef{gb@aystyle@section\gb@refsecnum}%
+{\endrefcontext}{}
+}{}{}
+
+%因为是整个文献表,在打印文献表的时候,增加钩子代码
+%因为下面的钩子是在defbibenvironment的begincode之后,所以对于defbibenvironment相关的设置都是无效的
+\AtBeginBibliography{
+
+\edef\gb@refsecnum{\number\c@refsection}%
+\ifcsdef{gb@aystyle@section\gb@refsecnum}%
+%\ifboolexpr{
+%not test {\ifcsundef{gb@aystyle@section\gb@refsecnum}}
+%and
+%test {\ifcsequal{gb@refsecnum}{gb@aystyle@section\gb@refsecnum}}
+%}
+ {
+
+ \DeclareDelimFormat{nameyeardelim}{\addcomma\space}
+ \DeclareDelimFormat[bib,biblist]{nameyeardelim}{\addcomma\space}
+
+ \renewbibmacro*{date}{%
+ \iflabeldateisdate
+ {}
+ {\printdate}}%
+
+ \renewbibmacro*{date+extradate}{%
+ \iffieldundef{labelyear}
+ {}
+ {\printtext{%[parens]%这里去掉括号
+ \iflabeldateisdate
+ {\printdateextra}
+ {\printlabeldateextra}}}}%
+
+ \newbibmacro*{bbx:savehash}{%
+ \savefield{fullhash}{\bbx@lasthash}}
+
+ \newbibmacro*{bbx:dashcheck}[2]{}
+
+ %注意这里当没有作者只有标题时在年份之前的标点是否需要标准并未涉及,所以未做处理。
+ \renewbibmacro*{author}{%以前的date+extrayear变为date+extradate,所以对3.8以上版本重定义一下author
+ \ifboolexpr{
+ test \ifuseauthor
+ and
+ not test {\ifnameundef{author}}
+ }
+ {%
+ \usebibmacro{bbx:savehash}%
+ \printnames{author}%
+ \iffieldundef{authortype}
+ {\setunit{\printdelim{nameyeardelim}}}
+ {\setunit{\printdelim{authortypedelim}}}%
+ \iffieldundef{authortype}
+ {}
+ {\usebibmacro{authorstrg}%
+ \setunit{\printdelim{nameyeardelim}}}
+ }%
+ {\global\undef\bbx@lasthash
+ \usebibmacro{labeltitle}%
+ \setunit*{\printdelim{nonameyeardelim}}}%
+ \usebibmacro{date+extradate}}
+
+ \newbibmacro*{labeltitle}{%
+ \iffieldundef{label}
+ {\iffieldundef{shorttitle}
+ {\printfield{title}%
+ \clearfield{title}}
+ {\printfield[title]{shorttitle}}}
+ {\printfield{label}}}
+
+%
+% 增加一个number带括号的格式,避免使用mkbibparens而引入一个不必要的空格
+%
+\DeclareFieldFormat{addnumflag}{%
+\nobreak\printtext{(}\nobreak #1\nobreak\printtext{)}}
+
+%
+% 调整journal输出
+%
+% 原理方法:首先判断子标题,然后再设置标点。
+% 避免直接设置标点后,当volume不存在时需要使用\nopuct去标点进而引入不必要的空格
+\renewbibmacro*{journal}{%
+ \iffieldundef{journaltitle}%
+ {}%
+ {\printtext[journaltitle]{%
+ \printfield[titlecase]{journaltitle}%
+ \iffieldundef{journalsubtitle}{}{\setunit{\subtitlepunct}%
+ \printfield[titlecase]{journalsubtitle}}}}}
+
+
+
+%
+% 调整期刊卷和期的格式
+%
+\renewbibmacro*{volume+number+eid}{%源来自standard.bbx
+\iftoggle{bbx:gbfieldstd}{%
+ \printfield{volume}%
+ \setunit*{\adddot}%
+ \printfield{number}%
+ \setunit{\addcomma\space}%
+ \printfield{eid}}{%
+ \printfield{volume}%
+ %\setunit*{\adddot}%去掉点号
+ %\printfield{number}%
+ \iffieldundef{number}{}{\printfield[addnumflag]{number}}%区别于顺序编码制
+ \iffieldundef{eid}{}{%
+ \setunit{\addcomma\space}%
+ \printfield{eid}}}}
+
+%
+% 调整期刊年份的格式
+%
+% 原理方法:原在authoryear.BBX中\bbx@opt@mergedate@compact中定义
+% 当issue存在时,才设置newunit。避免直接设置标点后,当volume不存在是需要使用\nopuct去标点进而引入不必要的空格
+ \renewbibmacro*{issue+date}{%
+ \iffieldundef{issue}%
+ {}%
+ {\iftoggle{bbx:gbstrict}{}{\printtext[parens]{\printfield{issue}}\newunit}}}
+
+%
+% 编者的符号修改一下
+% v1.0 2016-07-01
+% v1.0q 2019-03-01 hzz 修改editortype前的标点
+%
+\renewbibmacro*{editor}{%
+ \ifboolexpr{
+ test \ifuseeditor
+ and
+ not test {\ifnameundef{editor}}
+ }
+ {\usebibmacro{bbx:dashcheck}
+ {%\bibnamedash
+ \printnames{editor}%
+ }
+ {\printnames{editor}%
+ %\setunit{\printdelim{editortypedelim}}%
+ %\usebibmacro{bbx:savehash}
+ }%
+ \usebibmacro{editorstrg}%
+ %\clearname{editor}%
+ \setunit{\printdelim{nameyeardelim}}}%
+ {\global\undef\bbx@lasthash
+ \usebibmacro{labeltitle}%
+ \setunit*{\printdelim{nonameyeardelim}}}%
+ \ifboolexpr{%
+ test {\ifentrytype{inbook}}
+ or
+ test {\ifentrytype{incollection}}
+ or
+ test {\ifentrytype{inproceedings}}
+ or
+ test {\ifentrytype{conference}}
+ }%
+ {}%
+ {\usebibmacro{date+extradate}}}
+
+
+ }{}
+
+
+
+}
+
+
+
+%
+%针对具体条目做处理时的特殊处理
+%
+%\def\localsetrefsectionstyle{%
+%}
+
+%\AtEveryBibitem{\localsetrefsectionstyle}%
+%\AtEveryCite{\localsetchinesecode}%
+%\AtEveryLositem{\localsetchinesecode}%
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015mx.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015mx.cbx
index 52ea63a1d3..c33d610756 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015mx.cbx
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015mx.cbx
@@ -1,466 +1,474 @@
-%%
-%% ---------------------------------------------------------------
-%% biblatex-gb7714-2015 --- A biblatex implementation of the
-%% GBT7714-2015 citation style,numerical sequence
-%% Maintained by huzhenzhen
-%% E-mail: hzzmail@163.com
-%% Released under the LaTeX Project Public License v1.3c or later
-%% ---------------------------------------------------------------
-%%
-\def\versionofgbtstyle{2021/01/19 v1.0w}
-\ProvidesFile{gb7714-2015mx.cbx}[\versionofgbtstyle biblatex citation style]
-
-%
-% 加载标准样式
-%
-\RequireCitationStyle{numeric-comp} %numeric
-
-
-%
-% 选项设置
-%
-\ExecuteBibliographyOptions{
- %autocite = superscript ,
- %autopunct = true ,
- %sorting = none ,
- maxcitenames=1,
- mincitenames=1,
- uniquename=init,%因为使用了名字缩写选项,所以需要设置uniquename=init而不是full避免冲突
- uniquelist=minyear,
- labeldateparts,
- sortcites,
-}
-
-
-
-%
-% 定义一个上标方括号wrapper
-%
-\newcommand*\mkbibsuperbracket[1]{%
- \mkbibsuperscript{\mkbibbrackets{#1}}%
-}
-
-% 修改postnote的输出格式
-\DeclareFieldFormat{postnote}{#1}
-
-%
-% 重定义cite命令
-%
-% 方法:\DeclareCiteCommand{\cite}[\mkbibparens]{precode}{loopcode}{sepcode}{postcode}
-% v1.0p版后将cite的处理方式修改为类似pagescite,而不再使用biblatex的标准方式
-\DeclareCiteCommand{\cite}[\mkbibsuperscript]%利用mkbibsuperbracket添加方括号
- {[\usebibmacro{cite:init}%
- \usebibmacro{prenote}}
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {\usebibmacro{cite:dump}]%
- \printfield{postnote}}
-% v1.0p 以前用的方式
-%\DeclareCiteCommand{\cite}[\mkbibsuperbracket]%利用mkbibsuperbracket添加方括号
-% {\usebibmacro{cite:init}%
-% \usebibmacro{prenote}}
-% {\usebibmacro{citeindex}%
-% \usebibmacro{cite:comp}}
-% {}
-% {\usebibmacro{cite:dump}%
-% \usebibmacro{postnote}}
-
-%
-% 定义upcite命令
-% 20180604,v1.0l,hzz
-% 20190409,v1.0r,hzz
-% 方法:对supercite增加[]
-\newrobustcmd*{\upcite}{%
- \cite}
-
-%
-% 重定义parencite命令,以满足标签带页码的国标要求
-%
-\DeclareCiteCommand{\parencite}%[\mkbibbrackets]
- {[\usebibmacro{cite:init}%]
- \usebibmacro{prenote}}%
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {%[
- \usebibmacro{cite:dump}]%
- \mkbibsuperscript{\printfield{postnote}}}
-
-%
-% 新定义pagescite命令,以满足标签带页码的国标要求
-%
-% 原理方法:
-% 1.新增页码输出宏
-\newbibmacro*{postpages}{%
- \iffieldundef{postnote}
- {\printfield[postnote]{pages}}
- {\printfield{postnote}}}
-% 2.新增\pagescite引用命令
-\DeclareCiteCommand{\pagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
- {[\usebibmacro{cite:init}%]直接添加方括号
- \usebibmacro{prenote}%
- }
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {\usebibmacro{cite:dump}]%
- \usebibmacro{postpages}}
-
-%
-% 定义yearpagescite,为与ay样式兼容,等同于\pagescite
-%
-\DeclareCiteCommand{\yearpagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
- {[\usebibmacro{cite:init}%]直接添加方括号
- \usebibmacro{prenote}%
- }
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {\usebibmacro{cite:dump}]%
- \usebibmacro{postpages}}
-
-%
-% 定义\yearcite命令,为与ay样式兼容,且提供不输出页码的标签格式,
-%
-% 原理方法:等同于\pagescite,但不要页码
-\DeclareCiteCommand{\yearcite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
- {[\usebibmacro{cite:init}%]直接添加方括号
- \usebibmacro{prenote}%
- }
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {\usebibmacro{cite:dump}]}
-
-%
-% 定义\authornumcite命令,输出作者信息,然后在后面带上顺序编码
-% 20180427,v1.0k,增加,hzz
-% gb7714样式新定义的命令都把cite放到最后,比如前面的pagescite,yearcite,这里的\authornumcite
-% 区别于biblatex定义的命令都把cite放到前面,比如citeauthor等。
-%见numeric.CBX
-\newbibmacro*{cite}{%
- \printtext[bibhyperref]{%
- \printfield{labelprefix}%
- \printfield{labelnumber}%
- \ifbool{bbx:subentry}
- {\printfield{entrysetcount}}
- {}}}
-%见numeric.CBX,\DeclareCiteCommand{\cite},
-\DeclareCiteCommand{\authornumcite}%[\mkbibsuperscript]
- {\usebibmacro{prenote}}
- {\iffieldequalstr{userf}{cn}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace
- {\renewcommand*{\andothersdelim}{\addspace}}%
- \printnames{labelname}\mkbibsuperscript{\mkbibbrackets{\usebibmacro{citeindex}%
- \usebibmacro{cite}}}}
- {\multicitedelim}
- {\mkbibsuperscript{\printfield{postnote}}}
-
-
-%
-% 增加如下多个命令
-% 20190409,v1.0r,hzz
-% 方法:利用newcommand或newrobustcmd命令进行定义
-% 注意\citet和\citep命令之所以不用newrobustcmd,是为避免加载natbib模块后产生冲突
-\DeclareCiteCommand{\citet}%
- {\usebibmacro{prenote}}
- {\iffieldequalstr{userf}{cn}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace
- {\renewcommand*{\andothersdelim}{\addspace}}%
- \printnames{labelname}\mkbibsuperscript{\mkbibbrackets{\usebibmacro{citeindex}%
- \usebibmacro{cite}}}}
- {\multicitedelim}
- {\mkbibsuperscript{\printfield{postnote}}}
-
-
-\DeclareCiteCommand{\citep}[\mkbibsuperscript]%利用mkbibsuperbracket添加方括号
- {[\usebibmacro{cite:init}%
- \usebibmacro{prenote}}
- {\usebibmacro{citeindex}%
- \usebibmacro{cite:comp}}
- {}
- {\usebibmacro{cite:dump}]%
- \printfield{postnote}}
-
-\newrobustcmd*{\citetns}%
- {\textcite}
-
-\newrobustcmd*{\citepns}%
- {\parencite}
-
-\newrobustcmd*{\inlinecite}%
- {\parencite}
-
-
-%textcite标注命令中的标点设置
-%\DeclareDelimFormat[textcite]{andothersdelim}{\addspace}%
-
-%textcite标注命令中的标点设置,注意只针对textcite命令。
-\DeclareDelimFormat[textcite]{nameyeardelim}{}%\addcomma\space
-\DeclareDelimFormat[textcite]{andothersdelim}{\iffieldequalstr{userf}{chinese}{\addthinspace}{\addspace}}%
-\AtEveryCitekey{%
-\iffieldequalstr{userf}{chinese}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace
- {\renewcommand*{\andothersdelim}{\addspace}}%
-}
-
-%
-%
-%
-\apptocmd{\refsection}{
-
-%\edef\gb@refsecnum{\number\c@refsection}
-\edef\gb@refsecnum{\number\c@refsection}%
-\ifcsundef{gb@aystyle@section\gb@refsecnum}%
-{}%
-{
-
-\renewcommand*{\iffinalcitedelim}{%
- \ifnumequal{\value{textcitecount}}{\value{textcitetotal}-1}}
-
-\newbibmacro*{cite:init}{%
- \ifnumless{\value{multicitecount}}{2}
- {\global\boolfalse{cbx:parens}%
- \global\undef\cbx@lasthash
- \global\undef\cbx@lastyear}
- {\iffieldundef{prenote}
- {}
- {\global\undef\cbx@lasthash
- \global\undef\cbx@lastyear}}}
-
-\newbibmacro*{cite:reinit}{%
- \global\undef\cbx@lasthash
- \global\undef\cbx@lastyear}
-
-\newbibmacro*{cite}{%
- \iffieldundef{shorthand}
- {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
- {\usebibmacro{cite:label}%
- \setunit{\printdelim{nonameyeardelim}}%
- \usebibmacro{cite:labeldate+extradate}%
- \usebibmacro{cite:reinit}}
- {\iffieldequals{namehash}{\cbx@lasthash}
- {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
- \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
- {\setunit{\addcomma}%
- \usebibmacro{cite:extradate}}
- {\setunit{\compcitedelim}%
- \usebibmacro{cite:labeldate+extradate}%
- \savefield{labelyear}{\cbx@lastyear}}}
- {\printnames{labelname}%
- \setunit{\printdelim{nameyeardelim}}%
- \usebibmacro{cite:labeldate+extradate}%
- \savefield{namehash}{\cbx@lasthash}%
- \savefield{labelyear}{\cbx@lastyear}}}}
- {\usebibmacro{cite:shorthand}%
- \usebibmacro{cite:reinit}}%
- \setunit{\multicitedelim}}
-
-\newbibmacro*{citeyear}{%
- \iffieldundef{shorthand}
- {\iffieldundef{labelyear}
- {\usebibmacro{cite:label}%
- \usebibmacro{cite:reinit}}
- {\iffieldequals{namehash}{\cbx@lasthash}
- {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
- \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
- {\setunit{\addcomma}%
- \usebibmacro{cite:extradate}}
- {\setunit{\compcitedelim}%
- \usebibmacro{cite:labeldate+extradate}%
- \savefield{labelyear}{\cbx@lastyear}}}
- {\usebibmacro{cite:labeldate+extradate}%
- \savefield{namehash}{\cbx@lasthash}%
- \savefield{labelyear}{\cbx@lastyear}}}}
- {\usebibmacro{cite:shorthand}%
- \usebibmacro{cite:reinit}}%
- \setunit{\multicitedelim}}
-
-\newbibmacro*{textcite}{%
- \iffieldequals{namehash}{\cbx@lasthash}
- {\iffieldundef{shorthand}
- {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
- \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
- {\setunit{\addcomma}%
- \usebibmacro{cite:extradate}}
- {\setunit{\compcitedelim}%
- \usebibmacro{cite:labeldate+extradate}%
- \savefield{labelyear}{\cbx@lastyear}}}
- {\setunit{\compcitedelim}%
- \usebibmacro{cite:shorthand}%
- \global\undef\cbx@lastyear}}
- {\ifnameundef{labelname}
- {\iffieldundef{shorthand}
- {\usebibmacro{cite:label}%
- \setunit{%
- \global\booltrue{cbx:parens}%
- \printdelim{nonameyeardelim}\bibopenparen}%
- \ifnumequal{\value{citecount}}{1}
- {\usebibmacro{prenote}}
- {}%
- \usebibmacro{cite:labeldate+extradate}}
- {\usebibmacro{cite:shorthand}}}
- {\printnames{labelname}%
- \setunit{%
- \global\booltrue{cbx:parens}%
- \printdelim{nameyeardelim}\bibopenparen}%
- \ifnumequal{\value{citecount}}{1}
- {\usebibmacro{prenote}}
- {}%
- \iffieldundef{shorthand}
- {\iffieldundef{labelyear}
- {\usebibmacro{cite:label}}
- {\usebibmacro{cite:labeldate+extradate}}%
- \savefield{labelyear}{\cbx@lastyear}}
- {\usebibmacro{cite:shorthand}%
- \global\undef\cbx@lastyear}}%
- \stepcounter{textcitecount}%
- \savefield{namehash}{\cbx@lasthash}}%
- \setunit{%
- \ifbool{cbx:parens}
- {\bibcloseparen\global\boolfalse{cbx:parens}}
- {}%
- \textcitedelim}}
-
-\newbibmacro*{cite:shorthand}{%
- \printtext[bibhyperref]{\printfield{shorthand}}}
-
-%
-% 重定义cite:label,针对biblatex3.8以上版本set条目集的标注(引用)标签
-%
-% 原理方法:当条目是set时,v3.8以上版本,都没有有用的信息(区别于3.7以下版本set复制第一个成员的信息),
-% 于是利用entrykey来给出标签,那么就要set的条目关键字是需要的字符串,注意字符串中间不能有空格
-\renewbibmacro*{cite:label}{%
- \iffieldundef{label}%
- {\iffieldundef{labeltitle}{\printtext[bibhyperref]{\printfield{entrykey}}}%entrykey
- {\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}}%
- {\printtext[bibhyperref]{\printfield{label}}}}
-
-\newbibmacro*{cite:labeldate+extradate}{%
- \iffieldundef{labelyear}
- {}
- {\printtext[bibhyperref]{\printlabeldateextra}}}
-
-\newbibmacro*{cite:extradate}{%
- \iffieldundef{extradate}
- {}
- {\printtext[bibhyperref]{\printfield{extradate}}}}
-
-
-
-%
-% 重定义cite:label,针对biblatex3.8以上版本set条目集的标注(引用)标签
-%
-% 原理方法:当条目是set时,v3.8以上版本,都没有有用的信息(区别于3.7以下版本set复制第一个成员的信息),
-% 于是利用entrykey来给出标签,那么就要set的条目关键字是需要的字符串,注意字符串中间不能有空格
-\renewbibmacro*{cite:label}{%
- \iffieldundef{label}%
- {\iffieldundef{labeltitle}{\printtext[bibhyperref]{\printfield{entrykey}}}%entrykey
- {\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}}%
- {\printtext[bibhyperref]{\printfield{label}}}}
-
-%
-% 重定义cite命令
-%
-% 方法:\DeclareCiteCommand{\cite}[\mkbibparens]{precode}{loopcode}{sepcode}{postcode}
-% v1.0p版后将cite的处理方式修改为类似pagescite,而不再使用biblatex的标准方式
-\DeclareCiteCommand{\cite}
- {\usebibmacro{cite:init}%
- \renewbibmacro*{postnote}{%
- \iffieldundef{postnote}%
- {}%
- {\thefield{postnote}}}%
- (\usebibmacro{prenote}}%)
- {\usebibmacro{citeindex}%
- \usebibmacro{cite}}
- {}
- {%(
- )\mkbibsuperscript{\usebibmacro{postnote}}%\usebibmacro{postnote}
- }
-
-\DeclareCiteCommand{\parencite}[\mkbibparens]
- {\usebibmacro{cite:init}%
- \usebibmacro{prenote}}
- {\usebibmacro{citeindex}%
- \usebibmacro{cite}}
- {}
- {\usebibmacro{postnote}}
-
-%
-% 定义\authornumcite命令,输出作者信息,然后在后面带上顺序编码
-% 20180427,v1.0k,增加,hzz
-% 20190409,v1.0r,hzz
-% 为与顺序编码制兼容,增加了命令,定义与citet相同
-\newbibmacro*{citet}{%
- \iffieldundef{shorthand}
- {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
- {\usebibmacro{cite:label}%
- \setunit{\printdelim{nonameyeardelim}}%
- \usebibmacro{cite:labeldate+extradate}%
- \usebibmacro{cite:reinit}}
- {\iffieldequals{namehash}{\cbx@lasthash}
- {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
- \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
- {\setunit{\addcomma}%
- \usebibmacro{cite:extradate}}
- {\setunit{\compcitedelim}%
- \usebibmacro{cite:labeldate+extradate}%
- \savefield{labelyear}{\cbx@lastyear}}}
- {\printnames{labelname}%
- %\setunit{\printdelim{nameyeardelim}}%
- (\usebibmacro{cite:labeldate+extradate})%
- \savefield{namehash}{\cbx@lasthash}%
- \savefield{labelyear}{\cbx@lastyear}}}}
- {\usebibmacro{cite:shorthand}%
- \usebibmacro{cite:reinit}}%
- \setunit{\multicitedelim}}
-
-\DeclareCiteCommand{\authornumcite}%
- {\usebibmacro{cite:init}%
- \renewbibmacro*{postnote}{%
- \iffieldundef{postnote}%
- {}%
- {\thefield{postnote}}}%
- \usebibmacro{prenote}}%
- {\usebibmacro{citeindex}%
- \usebibmacro{citet}}
- {}
- {\mkbibsuperscript{\usebibmacro{postnote}}%\usebibmacro{postnote}
- }
-
-%
-% 增加如下多个命令
-% 20190409,v1.0r,hzz
-% 方法:利用newcommand或newrobustcmd命令进行定义
-% 注意\citet和\citep命令之所以不用newrobustcmd,是为避免加载natbib模块后产生冲突
-
-%同\authornumcite
-\DeclareCiteCommand{\citet}%
- {\usebibmacro{cite:init}%
- \renewbibmacro*{postnote}{%
- \iffieldundef{postnote}%
- {}%
- {\thefield{postnote}}}%
- \usebibmacro{prenote}}%
- {\usebibmacro{citeindex}%
- \usebibmacro{citet}}
- {}
- {\mkbibsuperscript{\usebibmacro{postnote}}%\usebibmacro{postnote}
- }
-
-%同cite
-\DeclareCiteCommand{\citep}
- {\usebibmacro{cite:init}%
- \renewbibmacro*{postnote}{%
- \iffieldundef{postnote}%
- {}%
- {\thefield{postnote}}}%
- (\usebibmacro{prenote}}%)
- {\usebibmacro{citeindex}%
- \usebibmacro{cite}}
- {}
- {%(
- )\mkbibsuperscript{\usebibmacro{postnote}}%\usebibmacro{postnote}
- }
-
-
-}
-}{}{}
+%%
+%% ---------------------------------------------------------------
+%% biblatex-gb7714-2015 --- A biblatex implementation of the
+%% GBT7714-2015 citation style,numerical sequence
+%% Maintained by huzhenzhen
+%% E-mail: hzzmail@163.com
+%% Released under the LaTeX Project Public License v1.3c or later
+%% ---------------------------------------------------------------
+%%
+\def\versionofgbtstyle{2021/04/03 v1.0x}
+\ProvidesFile{gb7714-2015mx.cbx}[\versionofgbtstyle biblatex citation style]
+
+%
+% 加载标准样式
+%
+\RequireCitationStyle{numeric-comp} %numeric
+
+
+%
+% 选项设置
+%
+\ExecuteBibliographyOptions{
+ %autocite = superscript ,
+ %autopunct = true ,
+ %sorting = none ,
+ maxcitenames=1,
+ mincitenames=1,
+ uniquename=init,%因为使用了名字缩写选项,所以需要设置uniquename=init而不是full避免冲突
+ uniquelist=minyear,
+ labeldateparts,
+ sortcites,
+}
+
+%修改\mkbibsuperscript宏在最后加上一个空白使得xeCJK不会自动在引用标签后面加上中英文之间的空白
+%hzz,v1.0w,2021-0401
+\renewrobustcmd{\mkbibsuperscript}[1]{%
+ \unspace\allowhyphens\textsuperscript{%
+ \begingroup
+ \protected\long\def\mkbibsuperscript##1{%
+ \blx@warning{Nested superscript}%
+ \mkbibbrackets{##1}}%
+ #1\endgroup}\kern\z@}
+
+%
+% 定义一个上标方括号wrapper
+%
+\newcommand*\mkbibsuperbracket[1]{%
+ \mkbibsuperscript{\mkbibbrackets{#1}}%
+}
+
+% 修改postnote的输出格式
+\DeclareFieldFormat{postnote}{#1}
+
+%
+% 重定义cite命令
+%
+% 方法:\DeclareCiteCommand{\cite}[\mkbibparens]{precode}{loopcode}{sepcode}{postcode}
+% v1.0p版后将cite的处理方式修改为类似pagescite,而不再使用biblatex的标准方式
+\DeclareCiteCommand{\cite}[\mkbibsuperscript]%利用mkbibsuperbracket添加方括号
+ {[\usebibmacro{cite:init}%
+ \usebibmacro{prenote}}
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}]%
+ \printfield{postnote}}
+% v1.0p 以前用的方式
+%\DeclareCiteCommand{\cite}[\mkbibsuperbracket]%利用mkbibsuperbracket添加方括号
+% {\usebibmacro{cite:init}%
+% \usebibmacro{prenote}}
+% {\usebibmacro{citeindex}%
+% \usebibmacro{cite:comp}}
+% {}
+% {\usebibmacro{cite:dump}%
+% \usebibmacro{postnote}}
+
+%
+% 定义upcite命令
+% 20180604,v1.0l,hzz
+% 20190409,v1.0r,hzz
+% 方法:对supercite增加[]
+\newrobustcmd*{\upcite}{%
+ \cite}
+
+%
+% 重定义parencite命令,以满足标签带页码的国标要求
+%
+\DeclareCiteCommand{\parencite}%[\mkbibbrackets]
+ {[\usebibmacro{cite:init}%]
+ \usebibmacro{prenote}}%
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {%[
+ \usebibmacro{cite:dump}]%
+ \mkbibsuperscript{\printfield{postnote}}}
+
+%
+% 新定义pagescite命令,以满足标签带页码的国标要求
+%
+% 原理方法:
+% 1.新增页码输出宏
+\newbibmacro*{postpages}{%
+ \iffieldundef{postnote}
+ {\printfield[postnote]{pages}}
+ {\printfield{postnote}}}
+% 2.新增\pagescite引用命令
+\DeclareCiteCommand{\pagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
+ {[\usebibmacro{cite:init}%]直接添加方括号
+ \usebibmacro{prenote}%
+ }
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}]%
+ \usebibmacro{postpages}}
+
+%
+% 定义yearpagescite,为与ay样式兼容,等同于\pagescite
+%
+\DeclareCiteCommand{\yearpagescite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
+ {[\usebibmacro{cite:init}%]直接添加方括号
+ \usebibmacro{prenote}%
+ }
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}]%
+ \usebibmacro{postpages}}
+
+%
+% 定义\yearcite命令,为与ay样式兼容,且提供不输出页码的标签格式,
+%
+% 原理方法:等同于\pagescite,但不要页码
+\DeclareCiteCommand{\yearcite}[\mkbibsuperscript]%\mkbibbrackets,仍然用上标
+ {[\usebibmacro{cite:init}%]直接添加方括号
+ \usebibmacro{prenote}%
+ }
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}]}
+
+%
+% 定义\authornumcite命令,输出作者信息,然后在后面带上顺序编码
+% 20180427,v1.0k,增加,hzz
+% gb7714样式新定义的命令都把cite放到最后,比如前面的pagescite,yearcite,这里的\authornumcite
+% 区别于biblatex定义的命令都把cite放到前面,比如citeauthor等。
+%见numeric.CBX
+\newbibmacro*{cite}{%
+ \printtext[bibhyperref]{%
+ \printfield{labelprefix}%
+ \printfield{labelnumber}%
+ \ifbool{bbx:subentry}
+ {\printfield{entrysetcount}}
+ {}}}
+%见numeric.CBX,\DeclareCiteCommand{\cite},
+\DeclareCiteCommand{\authornumcite}%[\mkbibsuperscript]
+ {\usebibmacro{prenote}}
+ {\iffieldequalstr{userf}{cn}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace
+ {\renewcommand*{\andothersdelim}{\addspace}}%
+ \printnames{labelname}\mkbibsuperscript{\mkbibbrackets{\usebibmacro{citeindex}%
+ \usebibmacro{cite}}}}
+ {\multicitedelim}
+ {\mkbibsuperscript{\printfield{postnote}}}
+
+
+%
+% 增加如下多个命令
+% 20190409,v1.0r,hzz
+% 方法:利用newcommand或newrobustcmd命令进行定义
+% 注意\citet和\citep命令之所以不用newrobustcmd,是为避免加载natbib模块后产生冲突
+\DeclareCiteCommand{\citet}%
+ {\usebibmacro{prenote}}
+ {\iffieldequalstr{userf}{cn}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace
+ {\renewcommand*{\andothersdelim}{\addspace}}%
+ \printnames{labelname}\mkbibsuperscript{\mkbibbrackets{\usebibmacro{citeindex}%
+ \usebibmacro{cite}}}}
+ {\multicitedelim}
+ {\mkbibsuperscript{\printfield{postnote}}}
+
+
+\DeclareCiteCommand{\citep}[\mkbibsuperscript]%利用mkbibsuperbracket添加方括号
+ {[\usebibmacro{cite:init}%
+ \usebibmacro{prenote}}
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}]%
+ \printfield{postnote}}
+
+\newrobustcmd*{\citetns}%
+ {\textcite}
+
+\newrobustcmd*{\citepns}%
+ {\parencite}
+
+\newrobustcmd*{\inlinecite}%
+ {\parencite}
+
+
+%textcite标注命令中的标点设置
+%\DeclareDelimFormat[textcite]{andothersdelim}{\addspace}%
+
+%textcite标注命令中的标点设置,注意只针对textcite命令。
+\DeclareDelimFormat[textcite]{nameyeardelim}{}%\addcomma\space
+\DeclareDelimFormat[textcite]{andothersdelim}{\iffieldequalstr{userf}{chinese}{\addthinspace}{\addspace}}%
+\AtEveryCitekey{%
+\iffieldequalstr{userf}{chinese}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace
+ {\renewcommand*{\andothersdelim}{\addspace}}%
+}
+
+%
+%
+%
+\apptocmd{\refsection}{
+
+%\edef\gb@refsecnum{\number\c@refsection}
+\edef\gb@refsecnum{\number\c@refsection}%
+\ifcsundef{gb@aystyle@section\gb@refsecnum}%
+{}%
+{
+
+\renewcommand*{\iffinalcitedelim}{%
+ \ifnumequal{\value{textcitecount}}{\value{textcitetotal}-1}}
+
+\newbibmacro*{cite:init}{%
+ \ifnumless{\value{multicitecount}}{2}
+ {\global\boolfalse{cbx:parens}%
+ \global\undef\cbx@lasthash
+ \global\undef\cbx@lastyear}
+ {\iffieldundef{prenote}
+ {}
+ {\global\undef\cbx@lasthash
+ \global\undef\cbx@lastyear}}}
+
+\newbibmacro*{cite:reinit}{%
+ \global\undef\cbx@lasthash
+ \global\undef\cbx@lastyear}
+
+\newbibmacro*{cite}{%
+ \iffieldundef{shorthand}
+ {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
+ {\usebibmacro{cite:label}%
+ \setunit{\printdelim{nonameyeardelim}}%
+ \usebibmacro{cite:labeldate+extradate}%
+ \usebibmacro{cite:reinit}}
+ {\iffieldequals{namehash}{\cbx@lasthash}
+ {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
+ \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
+ {\setunit{\addcomma}%
+ \usebibmacro{cite:extradate}}
+ {\setunit{\compcitedelim}%
+ \usebibmacro{cite:labeldate+extradate}%
+ \savefield{labelyear}{\cbx@lastyear}}}
+ {\printnames{labelname}%
+ \setunit{\printdelim{nameyeardelim}}%
+ \usebibmacro{cite:labeldate+extradate}%
+ \savefield{namehash}{\cbx@lasthash}%
+ \savefield{labelyear}{\cbx@lastyear}}}}
+ {\usebibmacro{cite:shorthand}%
+ \usebibmacro{cite:reinit}}%
+ \setunit{\multicitedelim}}
+
+\newbibmacro*{citeyear}{%
+ \iffieldundef{shorthand}
+ {\iffieldundef{labelyear}
+ {\usebibmacro{cite:label}%
+ \usebibmacro{cite:reinit}}
+ {\iffieldequals{namehash}{\cbx@lasthash}
+ {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
+ \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
+ {\setunit{\addcomma}%
+ \usebibmacro{cite:extradate}}
+ {\setunit{\compcitedelim}%
+ \usebibmacro{cite:labeldate+extradate}%
+ \savefield{labelyear}{\cbx@lastyear}}}
+ {\usebibmacro{cite:labeldate+extradate}%
+ \savefield{namehash}{\cbx@lasthash}%
+ \savefield{labelyear}{\cbx@lastyear}}}}
+ {\usebibmacro{cite:shorthand}%
+ \usebibmacro{cite:reinit}}%
+ \setunit{\multicitedelim}}
+
+\newbibmacro*{textcite}{%
+ \iffieldequals{namehash}{\cbx@lasthash}
+ {\iffieldundef{shorthand}
+ {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
+ \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
+ {\setunit{\addcomma}%
+ \usebibmacro{cite:extradate}}
+ {\setunit{\compcitedelim}%
+ \usebibmacro{cite:labeldate+extradate}%
+ \savefield{labelyear}{\cbx@lastyear}}}
+ {\setunit{\compcitedelim}%
+ \usebibmacro{cite:shorthand}%
+ \global\undef\cbx@lastyear}}
+ {\ifnameundef{labelname}
+ {\iffieldundef{shorthand}
+ {\usebibmacro{cite:label}%
+ \setunit{%
+ \global\booltrue{cbx:parens}%
+ \printdelim{nonameyeardelim}\bibopenparen}%
+ \ifnumequal{\value{citecount}}{1}
+ {\usebibmacro{prenote}}
+ {}%
+ \usebibmacro{cite:labeldate+extradate}}
+ {\usebibmacro{cite:shorthand}}}
+ {\printnames{labelname}%
+ \setunit{%
+ \global\booltrue{cbx:parens}%
+ \printdelim{nameyeardelim}\bibopenparen}%
+ \ifnumequal{\value{citecount}}{1}
+ {\usebibmacro{prenote}}
+ {}%
+ \iffieldundef{shorthand}
+ {\iffieldundef{labelyear}
+ {\usebibmacro{cite:label}}
+ {\usebibmacro{cite:labeldate+extradate}}%
+ \savefield{labelyear}{\cbx@lastyear}}
+ {\usebibmacro{cite:shorthand}%
+ \global\undef\cbx@lastyear}}%
+ \stepcounter{textcitecount}%
+ \savefield{namehash}{\cbx@lasthash}}%
+ \setunit{%
+ \ifbool{cbx:parens}
+ {\bibcloseparen\global\boolfalse{cbx:parens}}
+ {}%
+ \textcitedelim}}
+
+\newbibmacro*{cite:shorthand}{%
+ \printtext[bibhyperref]{\printfield{shorthand}}}
+
+%
+% 重定义cite:label,针对biblatex3.8以上版本set条目集的标注(引用)标签
+%
+% 原理方法:当条目是set时,v3.8以上版本,都没有有用的信息(区别于3.7以下版本set复制第一个成员的信息),
+% 于是利用entrykey来给出标签,那么就要set的条目关键字是需要的字符串,注意字符串中间不能有空格
+\renewbibmacro*{cite:label}{%
+ \iffieldundef{label}%
+ {\iffieldundef{labeltitle}{\printtext[bibhyperref]{\printfield{entrykey}}}%entrykey
+ {\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}}%
+ {\printtext[bibhyperref]{\printfield{label}}}}
+
+\newbibmacro*{cite:labeldate+extradate}{%
+ \iffieldundef{labelyear}
+ {}
+ {\printtext[bibhyperref]{\printlabeldateextra}}}
+
+\newbibmacro*{cite:extradate}{%
+ \iffieldundef{extradate}
+ {}
+ {\printtext[bibhyperref]{\printfield{extradate}}}}
+
+
+
+%
+% 重定义cite:label,针对biblatex3.8以上版本set条目集的标注(引用)标签
+%
+% 原理方法:当条目是set时,v3.8以上版本,都没有有用的信息(区别于3.7以下版本set复制第一个成员的信息),
+% 于是利用entrykey来给出标签,那么就要set的条目关键字是需要的字符串,注意字符串中间不能有空格
+\renewbibmacro*{cite:label}{%
+ \iffieldundef{label}%
+ {\iffieldundef{labeltitle}{\printtext[bibhyperref]{\printfield{entrykey}}}%entrykey
+ {\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}}%
+ {\printtext[bibhyperref]{\printfield{label}}}}
+
+%
+% 重定义cite命令
+%
+% 方法:\DeclareCiteCommand{\cite}[\mkbibparens]{precode}{loopcode}{sepcode}{postcode}
+% v1.0p版后将cite的处理方式修改为类似pagescite,而不再使用biblatex的标准方式
+\DeclareCiteCommand{\cite}
+ {\usebibmacro{cite:init}%
+ \renewbibmacro*{postnote}{%
+ \iffieldundef{postnote}%
+ {}%
+ {\thefield{postnote}}}%
+ (\usebibmacro{prenote}}%)
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite}}
+ {}
+ {%(
+ )\mkbibsuperscript{\usebibmacro{postnote}}%\usebibmacro{postnote}
+ }
+
+\DeclareCiteCommand{\parencite}[\mkbibparens]
+ {\usebibmacro{cite:init}%
+ \usebibmacro{prenote}}
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite}}
+ {}
+ {\usebibmacro{postnote}}
+
+%
+% 定义\authornumcite命令,输出作者信息,然后在后面带上顺序编码
+% 20180427,v1.0k,增加,hzz
+% 20190409,v1.0r,hzz
+% 为与顺序编码制兼容,增加了命令,定义与citet相同
+\newbibmacro*{citet}{%
+ \iffieldundef{shorthand}
+ {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
+ {\usebibmacro{cite:label}%
+ \setunit{\printdelim{nonameyeardelim}}%
+ \usebibmacro{cite:labeldate+extradate}%
+ \usebibmacro{cite:reinit}}
+ {\iffieldequals{namehash}{\cbx@lasthash}
+ {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
+ \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
+ {\setunit{\addcomma}%
+ \usebibmacro{cite:extradate}}
+ {\setunit{\compcitedelim}%
+ \usebibmacro{cite:labeldate+extradate}%
+ \savefield{labelyear}{\cbx@lastyear}}}
+ {\printnames{labelname}%
+ %\setunit{\printdelim{nameyeardelim}}%
+ (\usebibmacro{cite:labeldate+extradate})%
+ \savefield{namehash}{\cbx@lasthash}%
+ \savefield{labelyear}{\cbx@lastyear}}}}
+ {\usebibmacro{cite:shorthand}%
+ \usebibmacro{cite:reinit}}%
+ \setunit{\multicitedelim}}
+
+\DeclareCiteCommand{\authornumcite}%
+ {\usebibmacro{cite:init}%
+ \renewbibmacro*{postnote}{%
+ \iffieldundef{postnote}%
+ {}%
+ {\thefield{postnote}}}%
+ \usebibmacro{prenote}}%
+ {\usebibmacro{citeindex}%
+ \usebibmacro{citet}}
+ {}
+ {\mkbibsuperscript{\usebibmacro{postnote}}%\usebibmacro{postnote}
+ }
+
+%
+% 增加如下多个命令
+% 20190409,v1.0r,hzz
+% 方法:利用newcommand或newrobustcmd命令进行定义
+% 注意\citet和\citep命令之所以不用newrobustcmd,是为避免加载natbib模块后产生冲突
+
+%同\authornumcite
+\DeclareCiteCommand{\citet}%
+ {\usebibmacro{cite:init}%
+ \renewbibmacro*{postnote}{%
+ \iffieldundef{postnote}%
+ {}%
+ {\thefield{postnote}}}%
+ \usebibmacro{prenote}}%
+ {\usebibmacro{citeindex}%
+ \usebibmacro{citet}}
+ {}
+ {\mkbibsuperscript{\usebibmacro{postnote}}%\usebibmacro{postnote}
+ }
+
+%同cite
+\DeclareCiteCommand{\citep}
+ {\usebibmacro{cite:init}%
+ \renewbibmacro*{postnote}{%
+ \iffieldundef{postnote}%
+ {}%
+ {\thefield{postnote}}}%
+ (\usebibmacro{prenote}}%)
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite}}
+ {}
+ {%(
+ )\mkbibsuperscript{\usebibmacro{postnote}}%\usebibmacro{postnote}
+ }
+
+
+}
+}{}{}
diff --git a/macros/latex/contrib/conferences/sugconf/README b/macros/latex/contrib/conferences/sugconf/README
index a2f6829570..05e395a269 100644
--- a/macros/latex/contrib/conferences/sugconf/README
+++ b/macros/latex/contrib/conferences/sugconf/README
@@ -1,95 +1,84 @@
- name: 00readme-sugconf.txt
-description: read me for sugconf.cls
- purpose: introduction and explanation
- of LaTeX document class sugconf
- for SAS(R) User Group (SUG) conference authors
- date: 8/10/2006 posted to CTAN
- author: Ronald J. Fehd, SAS-L's macro maven
- TeX User Group (TUG) member
- mailto:RJF2@cdc.gov
- note: SAS-L is the name of listserv
- of the international online SAS user group community
- note: CTAN: Comprehensive TeX Archive Network
- note: License type: Free, LaTeX project public license
- http://www.latex-project.org/lppl/
-
-* SUG authors
-
-LaTeX is a set of macros for the TeX document processing application.
-
-Several years ago I began using LaTeX to write my SUG papers.
-In order to produce a paper which conforms
-to SAS User Group International conference paper guidelines
-it is necessary to modify the LaTeX document class article.
-
-After reviewing several other LaTeX class files: e.g.: acmconf.cls,
-I wrote my own SUGconf.cls and posted it to SAS-L.
-http://www.listserv.uga.edu/cgi-bin/wa?S1=sas-l
-
-The layout produced by the 'sugconf' class
-is based on the description contained in SUGI paper guidelines,
-published by SAS Institute: (2006)
-http://support.sas.com/usergroups/sugi/sugi31/package/WritersGuidelines.pdf
-
-At the 2006 PracTeX conference, a Little Birdie
-(SAS-L euphemism for a SAS Institute employee)
-suggested that it would be a Good Idea to post my class file
-and some examples to CTAN,
-by which act I would then accept responsibility for maintenance.
-
-
-* All SUG conferences now require submission of papers as a .pdf.
-TeX distributions provide pdfLaTeX.exe which produces a .pdf
-from the source text file. (.tex or .ltx or .txt).
-The .pdf can be read with Adobe Reader v5 or greater.
-Note: pdfLaTeX also produces a .dvi, which is easier to review
-while editing and polishing.
-See the command: \pdfoutput= in each .tex file.
-
-* filename extensions
-
-** .bat: windows batch file
- executes pdfLaTeX, input : <filename>.tex
- note: input may be <filename>.txt
- pdfoutput=0: <filename>.dvi
- pdfoutput=1: <filename>.pdf
-** .tex: input : text file containing LaTeX markup commands
-** .pdf: output: Adobe v5 or higher
-
-* Please review the following files
-in order to familiarize yourself with LaTeX markup commands.
-
-** article-example illustrates the LaTeX document class article
-article-example.bat
-article-example.tex
-article-example.pdf
-
-** this file provides the LaTeX document class sugconf based on article
- you must download this file and place it in the same folder
- with your SUG-conf-paper
-
-sugconf.cls
-
-** sugconf-example is a working example of the document class sugconf
- download these files and rename them to <My-SUG-conf-paper>.*
- note: remember to change the filename in the .bat file
- from sugconf-example
- to <My-SUG-conf-paper>
-
-sugconf-example.bat
-sugconf-example.pdf
-sugconf-example.tex
-
-* processing your .tex file with a Windows .bat file
-- - - - article-example.bat - - -
-pdfLaTeX article-example
-- - - - article-example.bat end - - -
-
-note assumption: filename extension is .tex
-to process a text file other than .tex, specify the extension:
-pdfLaTeX article-example.txt
-
-* highly recommended
-I recommend a professional text editor.
-
-\end{document}%00readme-sugconf.txt}
+ name: README
+description: read me for sugconf.cls
+ purpose: introduction and explanation
+ of LaTeX document class sugconf
+ for SAS(R) User Group (SUG) conference authors
+ date: 4/31/2021 posted to CTAN
+ author: Ronald J. Fehd, SAS-L's macro maven
+ TeX User Group (TUG) member
+ mailto:Ron.Fehd.macro.maven@gmail.com
+ note: SAS-L is the name of listserv
+ of the international online SAS user group community
+ http://www.listserv.uga.edu/cgi-bin/wa?S1=sas-l
+ note: CTAN: Comprehensive TeX Archive Network
+ note: License type: Free, LaTeX project public license
+ http://www.latex-project.org/lppl/
+
+* SUG authors
+
+LaTeX is a set of macros for the LaTeX document processing application.
+
+Several years ago I began using LaTeX to write my SUG papers.
+In order to produce a paper which conforms
+to SAS User Group International conference paper guidelines
+it is necessary to modify the LaTeX document class article.
+
+The layout produced by the 'sugconf' class
+is based on the description contained in SUGI paper guidelines,
+published by SAS Institute: (2006)
+http://support.sas.com/usergroups/sugi/sugi31/package/WritersGuidelines.pdf
+note: 2021-04-02 this file is n/a
+
+* All SUG conferences now require submission of papers as a .pdf.
+TeX distributions provide pdflatex.exe which produces a .pdf
+from the source text file. (.tex or .ltx or .txt).
+The .pdf can be read with Adobe Reader v5 or greater.
+
+* filename extensions
+
+** .bat: windows batch file
+ executes pdflatex, input : <filename>.tex
+ note: input may be <filename>.txt
+ output : <filename>.pdf
+** .tex: input : text file containing LaTeX markup commands
+** .pdf: output: Adobe v5 or higher
+
+* Please review the following files
+in order to familiarize yourself with LaTeX markup commands.
+
+** sugconf-template illustrates the LaTeX document class article
+hello-world-article.tex
+hello-world-sugconf.tex
+
+** sugconf-skeleton and sugconf-template are your basic starting documents
+
+sugconf-skeleton.tex
+sugconf-template.tex
+
+** this file provides the LaTeX document class sugconf based on article
+ you must download this file and place it in the same folder
+ with your SUG-conf-paper
+
+sugconf.cls
+
+is available in the TeXlive distribution:
+where <UNC> is Universal Naming Convention for your TeXlive installation folder
+
+<UNC>\texlive\2021\texmf-dist\tex\latex\sugconf
+
+this document is in:
+<UNC>\texlive\2021\texmf-dist\doc\latex\sugconf
+
+* processing your .tex file with a Windows .bat file
+- - - - sugconf-template.bat - - -
+pdflatex sugconf-template
+- - - - sugconf-template.bat end - - -
+
+note assumption: filename extension is .tex
+to process a text file other than .tex, specify the extension:
+pdflatex sugconf-template.txt
+
+* highly recommended
+I recommend a professional text editor.
+
+\end{document}%README
diff --git a/macros/latex/contrib/conferences/sugconf/SUGI-paper-example.txt b/macros/latex/contrib/conferences/sugconf/SUGI-paper-example.txt
deleted file mode 100644
index 79be326ac5..0000000000
--- a/macros/latex/contrib/conferences/sugconf/SUGI-paper-example.txt
+++ /dev/null
@@ -1,86 +0,0 @@
-Paper 999-99
-
-Paper Written for the Annual SUGI Conference
-
-SUGI Author, ABC Corporation, City, State
-SUGI Co-Author, ABC Corporation, City, State
-
-ABSTRACT (HEADER 1)
-
-A brief summary at the beginning highlights the major points of your
-paper. Include the complete names of all SAS products that are
-discussed in the paper, names of operating environments (if
-applicable), and the skill level that the intended audience should
-have. (9-point Arial regular)
-
-INTRODUCTION (HEADER 1)
-
-The introduction explains the purpose and scope of your paper.
-
-MAIN IDEA (Body of Paper, HEADER 1)
-
-This is a main topic in the body of the paper. This is the body of
-the paper. This is the body of the paper. This is the body of the
-paper. This is the body of the paper. This is programming code in
-the body of the paper.
-
-data one;
-set two;
-if mix(var1, var2) > 0 then do;
-run;
-Continuation of body of the paper.
-
-SUB-TOPIC (HEADER 2)
-
-This is a sub-topic in the body of the paper. This is text in the
-sub-topic. This is text in the sub-topic. This is programming code
-in the sub-topic in the body of the paper.
-
-data one;
-set two;
-if mix(var1, var2) > 0 then do;
-run;
-Continuation of body after source code.
-
-ANOTHER MAIN TOPIC (HEADER 1)
-
-This is the text of another main idea. This is the text of another
-main idea. This is the text of another main idea
-
-CONCLUSION (HEADER 1)
-
-The conclusion summarizes the main ideas in your paper. You can also
-use the conclusion to highlight final points and make
-recommendations or predictions.
-
-REFERENCES (HEADER 1)
-
-This section is required only when information that was written,
-tested, or researched by someone other than the author is included
-in the paper.
-
-ACKNOWLEDGMENTS (HEADER 1)
-
-This section is not required. Use this section to thank people who
-were especially helpful to you when you wrote your paper, for
-example, co-workers, reviewers, product developers.
-
-CONTACT INFORMATION (HEADER 1)
-
-Your comments and questions are valued and encouraged.
-Contact the author(s):
-Name
-Enterprise
-Address
-City, State, ZIP
-Work Phone:
-Fax:
-E-mail:
-Web:
-
-SAS and all other SAS Institute Inc. product or service names are
-registered trademarks or trademarks of SAS Institute Inc. in the USA
-and other countries. indicates USA registration.
-
-Other brand and product names are trademarks of their respective
-companies.
diff --git a/macros/latex/contrib/conferences/sugconf/article-example.bat b/macros/latex/contrib/conferences/sugconf/article-example.bat
deleted file mode 100644
index 5f573f79b6..0000000000
--- a/macros/latex/contrib/conferences/sugconf/article-example.bat
+++ /dev/null
@@ -1 +0,0 @@
-pdfLaTeX article-example \ No newline at end of file
diff --git a/macros/latex/contrib/conferences/sugconf/article-example.pdf b/macros/latex/contrib/conferences/sugconf/article-example.pdf
deleted file mode 100644
index c506abd94c..0000000000
--- a/macros/latex/contrib/conferences/sugconf/article-example.pdf
+++ /dev/null
Binary files differ
diff --git a/macros/latex/contrib/conferences/sugconf/article-example.tex b/macros/latex/contrib/conferences/sugconf/article-example.tex
deleted file mode 100644
index 9f77ccae33..0000000000
--- a/macros/latex/contrib/conferences/sugconf/article-example.tex
+++ /dev/null
@@ -1,118 +0,0 @@
-%% name : article-example.tex
-%% description: example of LaTeX document class article
-%% purpose : illustrate use of LaTeX markup
-%% for SAS User Group conference authors
-%% author : Ronald J. Fehd for CTAN
-%% date : 8/4/2006
-%% make : pdflatex article-example
-
-\documentclass{article}%note: font size, default: 10 points
-%\documentclass[12pt]{article}%note: change font size to 12 points
-\pdfoutput=0%out=jobname.dvi
-\pdfoutput=1%out=jobname.pdf
-\renewcommand{\rmdefault}{phv}%Adobe Helvetica san-serif
-
-\title{{\small Paper 999-99}
- \\% LaTeX note: double backslash: newline
- Paper written for an annual SUG conference
- }%end title
-\author{SUGI Author, ABC Corporation, City, State
- \\% LaTeX note: double backslash: newline
- SUGI Co-Author, ABC Corporation, City, State
- }%end author
-\date{\relax}%TeX note: relax: null
-
-\begin{document}\maketitle%
-
-\begin{abstract} %(HEADER 1)? well, not exactly!
-
-A brief summary at the beginning highlights the major points of your
-paper. Include the complete names of all SAS products that are
-discussed in the paper, names of operating environments (if
-applicable), and the skill level that the intended audience should
-have. (9-point Arial regular)
-\end{abstract}
-
-\section{INTRODUCTION (HEADER 1)}
-
-The introduction explains the purpose and scope of your paper.
-
-\section{MAIN IDEA (Body of Paper, HEADER 1)}
-
-This is a main topic in the body of the paper. This is the body of
-the paper. This is the body of the paper. This is the body of the
-paper. %This is the body of the paper.
-
-This is programming code in the body of the paper.
-
-\begin{verbatim}
-data one;
-set two;
-if max(var1, var2) > 0 then do;
-run;
-\end{verbatim}
-
-Continuation of body of the paper.
-
-\subsection{SUB-TOPIC (HEADER 2)}
-
-This is a sub-topic in the body of the paper. This is text in the
-sub-topic. %This is text in the sub-topic.
-This is programming code
-in the sub-topic in the body of the paper.
-
-\begin{verbatim}
-data one;
-set two;
-if min(var1, var2) < 0 then do;
-run;
-\end{verbatim}
-
-Continuation of body after source code.
-
-\section{ANOTHER MAIN TOPIC (HEADER 1)}
-
-This is the text of another main idea. This is the text of another
-main idea. This is the text of another main idea
-
-\section{CONCLUSION (HEADER 1)}
-
-The conclusion summarizes the main ideas in your paper. You can also
-use the conclusion to highlight final points and make
-recommendations or predictions.
-
-\section{REFERENCES (HEADER 1)}
-
-This section is required only when information that was written,
-tested, or researched by someone other than the author is included
-in the paper.
-
-\section{ACKNOWLEDGMENTS (HEADER 1)}
-
-This section is not required. Use this section to thank people who
-were especially helpful to you when you wrote your paper, for
-example, co-workers, reviewers, product developers.
-
-\section{CONTACT INFORMATION (HEADER 1)}
-Your comments and questions are valued and encouraged.
-
-Contact the author(s):
-\begin{tabular}[t]{rl}
-Name & NameFirst NameLast \\
-Enterprise & My Employer \\
-Address & 123 Main St \\
-City, State, ZIP & Anytown, ZZ, 99999 \\
-Work Phone: & 987-654-1234 \\
-Fax: & 987-654-3210 \\
-E-mail: & firstname.lastname@mycompany.com \\
-Web: & mycompany.com \\
-\end{tabular}
-
-SAS and all other SAS Institute Inc. product or service names are
-registered trademarks or trademarks of SAS Institute Inc. in the USA
-and other countries. %
-\textregistered\/ indicates USA registration.
-
-Other brand and product names are trademarks
-of their respective companies.
-\end{document}
diff --git a/macros/latex/contrib/conferences/sugconf/banner-sgf-2021.png b/macros/latex/contrib/conferences/sugconf/banner-sgf-2021.png
new file mode 100644
index 0000000000..533dde76fb
--- /dev/null
+++ b/macros/latex/contrib/conferences/sugconf/banner-sgf-2021.png
Binary files differ
diff --git a/macros/latex/contrib/conferences/sugconf/sugconf-example.bat b/macros/latex/contrib/conferences/sugconf/sugconf-example.bat
deleted file mode 100644
index 5284804820..0000000000
--- a/macros/latex/contrib/conferences/sugconf/sugconf-example.bat
+++ /dev/null
@@ -1 +0,0 @@
-pdfLaTeX sugconf-example \ No newline at end of file
diff --git a/macros/latex/contrib/conferences/sugconf/sugconf-example.pdf b/macros/latex/contrib/conferences/sugconf/sugconf-example.pdf
deleted file mode 100644
index 235899feb9..0000000000
--- a/macros/latex/contrib/conferences/sugconf/sugconf-example.pdf
+++ /dev/null
Binary files differ
diff --git a/macros/latex/contrib/conferences/sugconf/sugconf-example.tex b/macros/latex/contrib/conferences/sugconf/sugconf-example.tex
deleted file mode 100644
index c38e9e8087..0000000000
--- a/macros/latex/contrib/conferences/sugconf/sugconf-example.tex
+++ /dev/null
@@ -1,193 +0,0 @@
-%% name : sugconf-example.tex
-%% description: example of LaTeX document class sugconf
-%% purpose : illustrate use of LaTeX markup
-%% for SAS User Group conference authors
-%% author : Ronald J. Fehd for CTAN
-%% date : 8/10/2006
-%% note : all text after a percent sign (%) is a comment
-%% note : open *.pdf, <Ctrl> D to view pdf description
-%% make : pdflatex sugconf-example
-
-\documentclass{sugconf}%
-%\documentclass[nopagenumbers]{sugconf}%
-\pdfoutput=0%out=jobname.dvi
-\pdfoutput=1%out=jobname.pdf
-
-%macro variables used by sugconf
-\sugconfsubject{writing paper using sugconf class}%
-\sugconfpapernumber{Paper 999-99}%
-%\sugconfpapernumber{\relax}%note: no paper number: warning in log
-\sugconfkeywords{documentclass, LaTeX class, pdfLaTeX,
- sugconf class}%end keywords: see in pdf description
-
-%begin LaTeX document commands
-%% NOTE: do not put newline (\\) in title nor author
- reason: newline cannot be writen into pdf description
-\title{sugconf class example: Paper written for an annual SUG conference
- }%end title
-\author{Ronald J. Fehd, TeX User Group member, Atlanta, GA, USA
- }%end author
-
-%%book: The LaTeX Web Companion, Goossens and Rahtz, pg 43, 64, 65
-\makeatletter%necessary to copy title and author into pdf description
-\usepackage[bookmarks =false%SUGI style guide
- ,pdfauthor ={\@author}%
-% ,pdfauthor ={author and coauthor}%
- ,pdfcreator ={pdfLaTeX sugconf.cls}%
- ,pdfkeywords ={\SUGconfKeywords}%
- ,pdfstartview=FitBH%fit width of page to the window
- ,pdfsubject ={\SUGconfSubject}%
- ,pdftitle ={\@title}%
-]{hyperref}\makeatother\begin{document}%
-\pdfcompresslevel=9%best compression level for text and image
-%end LaTeX document commands
-
-\begin{abstract}%\section{Abstract}
-
-A brief summary at the beginning highlights the major points of your
-paper. Include the complete names of all
-\SASregistered
-\textit{(First use of company name SAS must have \textregistered.)}
-products that are
-discussed in the paper, names of operating environments (if
-applicable), and the skill level that the intended audience should
-have. (9-point Arial regular)
-\textit{Note: sugconf.cls uses Adobe Helvetica san-serif, 10 point.}
-
-\textit{You could use the \LaTeX\ abstract environment,
-illustrated in} \texttt{article-example.pdf} which centers the abstract.
-\begin{verbatim}
-\begin{abstract}
-A brief summary at the beginning
-highlights the major points of your paper.
-\end{abstract}
-\end{verbatim}
-
-Keywords: \SUGconfKeywords.%macro variable provided by sugconf.cls
-\end{abstract}
-
-\section{Introduction}
-
-The introduction explains the purpose and scope of this paper,
-which is to provide SAS user group conference authors
-with a text file, \texttt{sugconf-example.tex},
-for use as a template.
-
-\section{Main Idea}
-
-This is a main topic in the body of the paper.
-\LaTeX markup is simple.
-Instead of highlighting and bolding each topic explanation,
-use the markup keywords: \texttt{section} and \texttt{subsection}.
-%This is the body of the paper. These lines are commented out.
-%This is the body of the paper. This is the body of the paper.
-
-This illustrates markup in the body of the paper.
-
-\begin{verbatim}
-\section{Abstract}%note: is uppercase when printed
-A brief summary ...
-
-\section{Introduction}
-The introduction ...
-
-\subsection{Sub-Topic (Header 2)}
-This idea is ...
-\end{verbatim}
-
-%Continuation of body of the paper.
-This is programming code in the text of the paper.
-\texttt{proc freq data = sashelp.class;}
-That is programming code in the text of the paper.
-
-\subsection{Sub-Topic number 3)}
-
-Typesetting special characters (ampersand and percent sign)
-in your paper requires you to use
-the backslash before the character:
-\%Let mvar = value; \%put mvar \&mvar.;
-This is necessary when using \textit{texttt} as well:
-\texttt{\%Let mvar = value; \%put mvar \&mvar.;}
-
-This is programming code
-in the sub-topic in the body of the paper.
-
-\begin{verbatim}
-data one;
-set two;
-if max(var1, var2) > 0 then do;
-run;
-\end{verbatim}
-
-A single hyphen with spaces around it - is not a dash.
-Text continues -- after source code.
-The previous line contains an \textit{em} dash,
-which is typed as three hyphens;
-Use two hyphens (an \textit{en} dash) to indicate a range: pages 2--4.
-
-\section{Another Main Topic}
-
-This is the text of another main idea.
-When you use \LaTeX\ to write your SAS user group conference paper
-your output is an Adobe pdf (version 1.4, Acrobat 5.x).
-To view the pdf description: Ctrl D.
-%This is the text of another main idea.
-%This is the text of another main idea
-
-\section{Conclusion}
-
-The conclusion summarizes the main ideas in your paper.
-You can also use the conclusion to highlight final points
-and make recommendations or predictions.
-
-\section{References}
-
-This section is required only when information that was written,
-tested, or researched by someone other than the author is included
-in the paper.
-
-\begin{tabular}[t]{llll}
-\textbf{Required}
-& A Guide to \LaTeX, 4e & Helmut Kopka and Patrick W. Daly \\
-& \multicolumn{2}{l}{\tiny\url{
-http://www.amazon.com/gp/product/0321173856/sr=1-1/qid=1154721435/ref=pd_bbs_1/103-4249973-4753405?ie=UTF8&s=books
-}}\\
-\textbf{Recommended}
-& The \LaTeX\ Companion, 2e& Frank Mittelback and Michel Goossens,
- et al. \\
-& \multicolumn{2}{l}{\tiny\url{
-http://www.amazon.com/gp/product/0201362996/ref=pd_sim_b_1/103-4249973-4753405?ie=UTF8
-}}\\
-& The \LaTeX\ Web Companion & Michel Goossens and Sebastian Rahtz,
- et al. \\
-& \multicolumn{2}{l}{\tiny\url{
-http://www.amazon.com/gp/product/0201433117/sr=1-1/qid=1154721919/ref=sr_1_1/103-4249973-4753405?ie=UTF8&s=books
-}}\\
-\end{tabular}
-
-\section{Acknowledgments}
-
-This section is not required. Use this section to thank people who
-were especially helpful to you when you wrote your paper, for
-example, co-workers, reviewers, product developers.
-
-\section{Contact Information}
-Your comments and questions are valued and encouraged.
-
-Contact the author(s):
-%\begin{tabular}[c]{ll}%both columns are left justtified
-\begin{tabular}[t]{rl}%note: double backslash(\\): newline
-Name & Ronald J. Fehd \\
-Enterprise & Centers for Disease Control \\
-%Address & 123 Main St \\
-City, State, ZIP & Atlanta, GA, 30341 \\
-%Work Phone: & 987-654-1234 \\
-%Fax: & 987-654-3210 \\
-E-mail: & \url{mailto:RJF2@cdc.gov} \\
-%Web: & mycompany.com \\
-\end{tabular}
-
-\SASisRegisteredTrademark%macro variable provided by sugconf.cls
-
-\OtherTrademarks%macro variable provided by sugconf.cls
-\end{document}
diff --git a/macros/latex/contrib/conferences/sugconf/sugconf-skeleton.pdf b/macros/latex/contrib/conferences/sugconf/sugconf-skeleton.pdf
new file mode 100644
index 0000000000..954c58999a
--- /dev/null
+++ b/macros/latex/contrib/conferences/sugconf/sugconf-skeleton.pdf
Binary files differ
diff --git a/macros/latex/contrib/conferences/sugconf/sugconf-skeleton.tex b/macros/latex/contrib/conferences/sugconf/sugconf-skeleton.tex
new file mode 100644
index 0000000000..a69163b38a
--- /dev/null
+++ b/macros/latex/contrib/conferences/sugconf/sugconf-skeleton.tex
@@ -0,0 +1,23 @@
+%name: sugconf-skeleton.tex
+\documentclass{sugconf}
+\sugconfbanner{banner-sgf-2021.png}
+\sugconfpapernumber{Paper 999-2021}%
+\title{My First SUG paper}
+\author{John Sall}
+\begin{document}\maketitle
+\section{Abstract} %<heading 1>
+\SASregistered software %provided by sugconf.cls
+ \tableofcontents\hrulefill %rough-draft toc, disable for final
+\section{Introduction} %<heading 1>
+\section{first main topic} %<heading 1>
+\subsection{still upper case}%<heading 2>
+\subsubsection{lower case} %<heading 3>
+\section{conclusion} %<heading 1>
+\begin{thebibliography}{9} %or 99
+\bibitem{example}
+\end{thebibliography}
+\subsection{acknowledgements}%<heading 2>
+\subsection{contact info} %<heading 2>
+\SASisRegisteredTrademark\par%sugconf.cls
+\OtherTrademarks %sugconf.cls optional
+\end{document}
diff --git a/macros/latex/contrib/conferences/sugconf/sugconf-template.pdf b/macros/latex/contrib/conferences/sugconf/sugconf-template.pdf
new file mode 100644
index 0000000000..41829c2e6a
--- /dev/null
+++ b/macros/latex/contrib/conferences/sugconf/sugconf-template.pdf
Binary files differ
diff --git a/macros/latex/contrib/conferences/sugconf/sugconf-template.tex b/macros/latex/contrib/conferences/sugconf/sugconf-template.tex
new file mode 100644
index 0000000000..8466ef0b5a
--- /dev/null
+++ b/macros/latex/contrib/conferences/sugconf/sugconf-template.tex
@@ -0,0 +1,73 @@
+%name: sugconf-template.tex
+\documentclass{sugconf}%loads packages: graphicx, hyperref, inputenc
+\sugconfbanner{banner-sgf-2021.png}
+\sugconfpapernumber{Paper 999-2021, draft of \today}%
+\title{Musings on The Analytical Engine}
+%%note double backslash \\ means 'newline'
+\author{Ada Lovelace \\ Charles Babbage}%multiple authors: A. Berry \\ C. Derby
+\begin{document}\maketitle
+\hypersetup{pdftitle ={What is the name of this paper?}%
+ ,pdfauthor ={R.J. Fehd and LaTeX Krewe}% separate multiple authors by 'and'
+ ,pdfsubject ={sugconf tightlist}%
+ ,pdfkeywords={description enumerate itemize}%
+ }%end pdfinfo notes: open .pdf, <Ctrl> D shows this information
+\section{Abstract}%<heading 1>
+\SASregistered software %provided by sugconf.cls
+
+%\tableofcontents%use to rough-draft toc, disable for final
+
+\section{Introduction}%<heading 1>
+\section{first main topic}%<heading 1>
+\subsection{figures, tables}%<heading 2>
+
+\texttt{\%let mvar = value;} \texttt{\%put echo \&=mvar;}
+
+\begin{verbatim}
+%let mvar = value;
+%put echo &=mvar;
+\end{verbatim}
+
+\section{Conclusion}%<heading 1>
+this is the paragraph of the conclusion.
+
+\vspace{-1\baselineskip}%move up one line
+\begin{thebibliography}{9}%or 99 if cites ge 10, <widest label>
+\addcontentsline{toc}{subsection}{references}%optional, for toc review
+
+%useage: \cite{example} or \nameref{example}
+\bibitem[example]{example}\strut %\vspace{0pt}
+\begin{verbatim}
+\bibitem[label]{cite-key}
+author, (year), "title".
+In: \textit{conference name}.
+\textsc{url:} \url{...}.
+\end{verbatim}
+
+\bibitem[text of label]{cite-key}%note: \nameref{cite-key} returns [text of label]
+author, (year), "title".
+In: \textit{conference}.
+\par\textsc{url:} \url{www.lexjansen.com}.
+
+\end{thebibliography}
+
+\subsection{Acknowledgements}%<heading 2>
+
+\subsection{contact info}%<heading 2>
+
+Your comments and questions are valued and encouraged. Contact the author at:
+
+\begin{center}
+\begin{tabular}[h]{rl}
+name: & Augusta Ada King, Countess of Lovelace\\
+phone: &\href{https://www.youtube.com/watch?v=KOUNkVsx1-s}{634-5789} \\ %(optional)
+enterprise:& Charles Babbage's computer, the Analytical Engine\\ % (optional)
+e-mail: &\url{mailto:alovelace@babbageinstitute.edu}\\
+linkedin: &\url{https://www.linkedin.com/feed/}\\
+web: &\url{https://en.wikipedia.org/wiki/Ada_Lovelace}\\ %(optional)
+\end{tabular}
+\end{center}
+
+\vfill
+\SASisRegisteredTrademark %sugconf.cls
+\vfill \OtherTrademarks %sugconf.cls
+\end{document}
diff --git a/macros/latex/contrib/conferences/sugconf/sugconf.cls b/macros/latex/contrib/conferences/sugconf/sugconf.cls
index 1de50143d4..c97f5d1ea8 100644
--- a/macros/latex/contrib/conferences/sugconf/sugconf.cls
+++ b/macros/latex/contrib/conferences/sugconf/sugconf.cls
@@ -1,157 +1,131 @@
-%% This is file `sugconf.cls' for SAS(R) User Group conference papers
-%% RJF2 2003-Jul-14 A Guide to LaTeX by Kopka and Daly
-%% RJF2 2003-Jul-14 The LaTeX Companion 2e, by Goossens and Mittelbach
-%% RJF2 2004-Feb-27 polishing for SUGI29 template
-%% RJF2 2004-Aug-05 added SASisRegisteredTrademark paragraph
-%% RJF2 2006-Apr-22 added TextWidth, TextWsmall
-%% RJF2 2006-Aug-05 polishing for submission to CTAN
-%% License type: Free, LaTeX project public license
-%% http://www.latex-project.org/lppl/
-%%
-%% usage: see sugconf-example.tex
-%% \documentclass{sugconf}
-%% %\documentclass[nopagenumbers]{sugconf}
-%% \pdfoutput=0%out=jobname.dvi
-%% \pdfoutput=1%out=jobname.pdf
-%% \sugconfpapernumber{Paper 999-99}%
-%% \sugconfsubject{writing paper using sugconf class}%
-%% %\sugconfpapernumber{\relax}%note: no paper number: warning in log
-%% \sugconfkeywords{word1 word2}
-%%
-%% see also SUGpaper.tex in the SAS-L archives of Tue, 13 Jan 2004
-%% http://www.listserv.uga.edu/cgi-bin/wa?A2=ind0401B&L=sas-l&P=R20636
-
-\NeedsTeXFormat{LaTeX2e}
-\pagestyle{plain}%see boolean PageNumbers
-
-\usepackage{ifthen%for newboolean PageNumbers
- }%end usepackage
-
-\newboolean{PageNumbers}%%K&D pg 203
-\setboolean{PageNumbers}{true}
-\let\SUGconfSubject\relax%
-\newcommand{\sugconfsubject}[1]{\def\SUGconfSubject{#1}}
-\let\SUGconfKeywords\relax%
-\newcommand{\sugconfkeywords}[1]{\def\SUGconfKeywords{#1}}
-\let\@papernumber\relax%
-\newcommand{\sugconfpapernumber}[1]{\def\@papernumber{#1}}
-
-\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
-\DeclareOption{nopagenumbers}{\setboolean{PageNumbers}{false}%
- \pagestyle{empty}}%
-\ProcessOptions
-\LoadClass[10pt]{article}
-\AtBeginDocument{\maketitle%
- \ifthenelse{\boolean{PageNumbers}}%%K&D pg 335
- {\relax}%
- %LaTeX Companion pg 92: maketitle -> #1
- {\thispagestyle{empty}}%no page number#1
- \if\@papernumber\relax%
- \@latex@warning{sugconf: You need to specify
- a paper identifier
- using the 'papernumber' macro in the preamble.}
- \fi%
- }%end AtBeginDocument
-%\AtEndDocument{%\label{LastPage}%
-% }%end AtEndDocument
-
-%\fontencoding{OT1}%default
-%\fontencoding{T1}
-% %LaTeX2e font selection fntguide.html
-%\renewcommand{\rmdefault}{pag}%Adobe Avantgar san-serif
-%\renewcommand{\rmdefault}{pbk}%Adobe Bookman serif
-%\renewcommand{\rmdefault}{pbk}%Adobe Courier san-serif
-\renewcommand{\rmdefault}{phv}%Adobe Helvetica san-serif
-%\renewcommand{\rmdefault}{pnc}%Adobe Ncntrsbk serif
-%\renewcommand{\rmdefault}{ppl}%Adobe Palatino serif
-%\renewcommand{\rmdefault}{put}%Adobe Utopia serif
-%\renewcommand{\rmdefault}{ptm}%Adobe Times serif
-\renewcommand{\sfdefault}{phv}%Helvetica
-\renewcommand{\ttdefault}{pcr}%Courier monospace
-
-\newcommand{\SASregistered}%
- {SAS\textsuperscript{\scriptsize\textregistered}\ }
-\newcommand{\SASisRegisteredTrademark}%
- {SAS and all other SAS Institute Inc. product or service %
- names are registered trademarks or trademarks of %
- SAS Institute Inc. in the USA and other countries. %
- \textregistered\/ indicates USA registration.}
-\newcommand{\OtherTrademarks}%
- {Other brand and product names are trademarks
- of their respective companies.}%
-
-\newlength {\TextWidth}%
-\settowidth{\TextWidth}%72 chars per line is between 1.5 and 2* alphabet
-{ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQ}%RSTUVWXYZ}
-%. . . . . . . . . . . . . 12345678901234567890123456
-%. . . . . . . . . . . . . 1.0 1.25 1.5 1.75 2.0
-% letter Q : 17/26=1.65
-%
-\renewcommand{\refname}{\flushleft\normalsize\bfseries REFERENCES}
-%% acmconf.cls: places floats where they should go; per R Pursifull
-\renewcommand{\bottomfraction}{1} \setcounter{topnumber} {10}
-\renewcommand{\textfraction} {0} \setcounter{bottomnumber}{10}
-%
-\setcounter{secnumdepth}{-1}%turn off numbering of headings
-%
-\setlength{\hoffset} {-0.375in} \setlength{\voffset} {-0.25in}
-\setlength{\textwidth} {7.0in} \setlength{\textheight} {9.25in}
-%
-\setlength{\headheight} {0pt} \setlength{\headsep} {0pt}
-\setlength{\topskip } {0pt} \setlength{\topmargin} {0pt}
-\setlength{\evensidemargin}{0pt} \setlength{\oddsidemargin}{0pt}
-\setlength{\columnsep} {0.5in} %space between two columns
-\setlength{\columnseprule} {0pt} %width vertical rule between columns
-\setlength{\parindent} {0pt} %paragraph indent
-\setlength{\parskip} {1.0ex plus 0.125ex minus 0.125ex}
-%\setlength{\parskip} {0.1\baselineskip}
-%
-\newlength{\runInHead}%LaTeX Comp, pg 27
-\setlength{\runInHead}{- \fontdimen2\font plus \fontdimen3\font
- minus \fontdimen4\font}
-\newlength {\TextWsmall}%
-\setlength {\TextWsmall}{\textwidth}
-\addtolength{\TextWsmall}{-\TextWidth}
-%\addtolength{\TextWsmall}{-\columnsep}
-\addtolength{\TextWsmall}{-1.618em}
-%% build title
-\def\@maketitle{%
- \begin{center}%
- \if\@papernumber\relax\else%
- \fontsize{10}{18}\selectfont{\bf\@papernumber\\}\medskip
- \fi%
- \fontsize{14}{18}\selectfont{\bf\@title \\}
- \fontsize{12}{14}\selectfont{ \@author }
- \end{center}%
-}%end maketitle
-
-%% Guide to LaTeX pg 348 C.3.3 Reprogramming the sectioning commands
-%% LaTeX Companion pg 24 2.3.2 Formatting Headings
-\renewcommand{\section}{\@startsection
- {section}% %name
- {1}% %level
- {0pt}% %indent
- {\baselineskip}% %beforeskip
- {0.125\baselineskip}% %afterskip
- {\large\bfseries\uppercase}% %style
- }%end section definition
-\renewcommand{\subsection}{\@startsection
- {subsection}{2}{0pt}{0.5\baselineskip}{1sp}%
- {\normalsize\bfseries\uppercase}%
- }%end section definition
-\renewcommand{\subsubsection}{\@startsection
- {subsubsection}{3}{0pt}{0.5\baselineskip}{\runInHead}%
- {\bfseries}%
- }%end section definition
-\renewcommand{\paragraph}{\@startsection
- {paragraph}{4}{0pt}{0.5\baselineskip}{\runInHead}%
- {\bfseries}%
- }%end section definition
-\renewcommand{\subparagraph}{\@startsection
- {subparagraph}{5}{0pt}{0.5\baselineskip}{\runInHead}%
- {\bfseries}%
- }%end section definition
-
-\renewenvironment{abstract}{\section{ABSTRACT}}{}
-
-\endinput %% SUGconf.cls
+%% This is file 'sugconf.cls' for SAS(R) User Group conference papers
+%% Copyright (C) 2006, 2021 Ronald J. Fehd
+%%
+%% This program is provided under the terms of the
+%% LaTeX Project Public License distributed from CTAN
+%% archives in directory macros/latex/base/lppl.txt.
+%%
+%% Author: Ronald J. Fehd
+%% Ron dot Fehd dot macro dot maven at gmail dot com
+%%
+%% This work has the LPPL maintenance status "author-maintained".
+%%
+%% usage: see sugconf-template.tex
+%% \documentclass{sugconf}
+%% %\documentclass[nopagenumbers]{sugconf}
+%% \sugconfbanner{banner-sgf-2021.png}%
+%% \sugconfpapernumber{Paper 999-99}%
+%% %\sugconfpapernumber{\relax}%note: no paper number: warning in log
+%% \title{this is the title of the paper}
+%% \author{R.J. Fehd and N. Derby}
+%
+\ProvidesClass{sugconf}[2021/04/02 v2021 (RJF)]
+\NeedsTeXFormat{LaTeX2e}
+\pagestyle{plain}%see boolean PageNumbers
+%
+\usepackage[T1]{fontenc}%TEX extended text
+\usepackage[ansinew]{inputenc}%2021-03-16
+\usepackage{graphicx}%2021-03-20 for banner
+\usepackage{ifthen}%for newboolean PageNumbers
+%
+\newboolean{PageNumbers}%%K&D pg 203
+\setboolean{PageNumbers}{true}
+\let\SUGconfSubject\relax%
+\newcommand{\sugconfsubject}[1]{\def\SUGconfSubject{#1}}
+\let\SUGconfKeywords\relax%
+\newcommand{\sugconfkeywords}[1]{\def\SUGconfKeywords{#1}}
+\let\@papernumber\relax%
+\newcommand{\sugconfpapernumber}[1]{\def\@papernumber{#1}}
+\let\@banner\relax%
+\newcommand{\sugconfbanner}[1]{\def\@banner{#1}}
+%
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
+\DeclareOption{nopagenumbers}{\setboolean{PageNumbers}{false}%
+ \pagestyle{empty}}%
+\ProcessOptions
+\LoadClass[10pt]{article}
+\AtEndOfPackage{%
+ \RequirePackage[hyphens]{url}
+ \RequirePackage[bookmarks =false%SUG style guide
+ ,pdfcreator ={pdfLaTeX sugconf.cls}%
+ ,pdfstartview=FitBH%fit width of page to the window
+ ]{hyperref}
+ }%end AtEndOfPackage
+\AtBeginDocument{%
+ \ifthenelse{\boolean{PageNumbers}}%%K&D pg 335
+ {\relax}%
+ {\thispagestyle{empty}}%no page numbers
+ \if\@papernumber\relax%
+ \@latex@warning{sugconf:
+ You need to specify a paper identifier
+ using the 'papernumber' macro in the preamble.}
+ \fi%
+ }%end AtBeginDocument
+%
+%% https://ctan.org/pkg/fntguide
+\renewcommand{\rmdefault}{phv}%Adobe Helvetica san-serif similar to Win Arial
+\renewcommand{\sfdefault}{phv}%Adobe Helvetica san-serif
+\renewcommand{\ttdefault}{pcr}%Adobe Courier monospace
+%
+%% acmconf.cls: places floats where they should go; per R Pursifull
+\renewcommand{\bottomfraction}{1} \setcounter{topnumber} {10}
+\renewcommand{\textfraction} {0} \setcounter{bottomnumber}{10}
+%
+\renewcommand{\refname}{\flushleft\normalsize\bfseries REFERENCES}
+\renewcommand{\contentsname}
+ {table of contents: for review only, disable for final}
+%
+\newcommand{\SASregistered}%
+ {SAS\textsuperscript{\scriptsize\textregistered}\ }
+\newcommand{\SASisRegisteredTrademark}%
+ {SAS and all other SAS Institute Inc. product or service %
+ names are registered trademarks or trademarks of %
+ SAS Institute Inc. in the USA and other countries. %®
+ \textregistered\/ indicates USA registration.}
+\newcommand{\OtherTrademarks}%
+ {Other brand and product names are trademarks
+ of their respective companies.}%
+\providecommand{\tightlist}{% begin{description|enumerate|itemize}\tightlist
+ \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
+%https://tex.stackexchange.com/questions/257418/error-tightlist-converting-md-file-into-pdf-using-pandoc
+%
+\setcounter{secnumdepth}{-1}%turn off numbering of headings
+%
+\setlength{\hoffset} {-0.375in} \setlength{\voffset} {-0.25in}
+\setlength{\textwidth} {7.0in} \setlength{\textheight} {9.25in}
+\setlength{\headheight} {0pt} \setlength{\headsep} {0pt}
+\setlength{\topskip } {0pt} \setlength{\topmargin} {0pt}
+\setlength{\evensidemargin}{0pt} \setlength{\oddsidemargin}{0pt}
+\setlength{\columnsep} {0.5in}%space between two columns
+\setlength{\columnseprule} {0pt} %width vertical rule between columns
+\setlength{\parindent} {0pt} %paragraph indent
+\setlength{\parskip} {1.0ex plus 0.125ex minus 0.125ex}
+%
+\def\@maketitle{%
+ \begin{center}%
+ \if\@banner\relax\else%
+ \includegraphics[width=\textwidth]{\@banner} \\
+ \vspace{-0.6\baselineskip}
+ \fi%
+ \if\@papernumber\relax\else%
+ \textbf{\@papernumber}\\ \bigskip
+ \fi%
+ \textbf{\Large\@title } \\ \medskip
+ \textbf{\large\@author}
+ \end{center}%
+ }%end maketitle
+%
+%% LaTeX 2e reference manual
+\renewcommand{\section}{\@startsection
+ {section}% %name
+ {1}% %level
+ {0pt}% %indent
+ {\baselineskip}% %beforeskip
+ {0.125\baselineskip}% %afterskip
+ {\large\bfseries\uppercase}%style
+ }%end section definition
+\renewcommand{\subsection}{\@startsection
+ {subsection}{2}{0pt}{0.5\baselineskip}{1sp}%
+ {\normalsize\bfseries\uppercase}%
+ }%end subsection definition
+\endinput %% sugconf.cls 2021-04-02 5:32:03 PM
diff --git a/macros/latex/contrib/easybook/doc/easybook-demo.pdf b/macros/latex/contrib/easybook/doc/easybook-demo.pdf
index 3698e95626..fce95a29ed 100644
--- a/macros/latex/contrib/easybook/doc/easybook-demo.pdf
+++ b/macros/latex/contrib/easybook/doc/easybook-demo.pdf
Binary files differ
diff --git a/macros/latex/contrib/easybook/doc/easybook-demo.tex b/macros/latex/contrib/easybook/doc/easybook-demo.tex
index cd8eefc46d..06dca1fb6f 100644
--- a/macros/latex/contrib/easybook/doc/easybook-demo.tex
+++ b/macros/latex/contrib/easybook/doc/easybook-demo.tex
@@ -99,7 +99,7 @@
\url{https://latexstudio.net} \\
\url{https://gitee.com/texl3/easybook}\thanks{Gitee为项目的主要发布地址。}
}
-\date{2021/04/01\hskip\ccwd\relax v1.24b}
+\date{2021/04/03\hskip\ccwd\relax v1.24c}
\frontmatter[roman]
\maketitle
diff --git a/macros/latex/contrib/easybook/doc/easybook.pdf b/macros/latex/contrib/easybook/doc/easybook.pdf
index ffdc2ab9d5..4a11b5636d 100644
--- a/macros/latex/contrib/easybook/doc/easybook.pdf
+++ b/macros/latex/contrib/easybook/doc/easybook.pdf
Binary files differ
diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx
index 05a6d65991..cd6abe176e 100644
--- a/macros/latex/contrib/easybook/easybook.dtx
+++ b/macros/latex/contrib/easybook/easybook.dtx
@@ -55,7 +55,7 @@ The latest version of this license is in
%
% \title{\sffamily easybook书籍文档类}
% \author{瞿毅}
-% \date{2021/04/01\hskip\ccwd\relax v1.24b\thanks{\url{https://gitee.com/texl3/easybook}}}
+% \date{2021/04/03\hskip\ccwd\relax v1.24c\thanks{\url{https://gitee.com/texl3/easybook}}}
% \maketitle
% \begin{abstract}
% \cls{easybook} 是基于 \cls{ctexbook} 书籍文档类创建以极简为风格的模板,可以看作对 \cls{ctexbook} 的进一步包装。虽然\CTeX 文档类提供了较好的中文支持,但想实现个性化功能一般需要在其基础上载入更多宏包来定制。\cls{easybook} 考虑了一些细节并载入一些常用宏包实现一般的排版需求,它适用于排版中英文书籍或笔记,甚至可稍加调整成为学位论文模板。
@@ -67,7 +67,7 @@ The latest version of this license is in
% 模板含有一个使用示例文件 \opt{easybook-demo.tex},编译前建议满足以下的条件
% \begin{itemize}
% \item 使用 \hologo{XeLaTeX}(推荐)或 \hologo{LuaLaTeX} 两种编译方式。
-% \item 由于用到了一些宏包较新的功能,建议安装最新的\TeX 发行版并将所有宏包升级为最新,目前在 \hologo{MiKTeX} 21.2和 \TeX Live 2020可以正常编译。
+% \item 由于用到了一些宏包较新的功能,建议安装最新的\TeX 发行版并将所有宏包升级为最新,目前在 \hologo{MiKTeX} 21.2和 \TeX Live 2021可以正常编译。
% \end{itemize}
%
% \subsection{编译步骤}
@@ -436,7 +436,7 @@ The latest version of this license is in
% includehead = <true|(false)>
% \end{syntax}
% \ding{229} 以上选项路径为 \opt{geoset/...} \\
-% \opt{geoset} 会将前4个选项以外的其它选项交给 \pkg{geometry} 宏包接口命令 \tn{geometry} 处理,并且选项的键值列表与之相同,上面的选项仅是一小部分,支持的参数可查阅宏包帮助文档。当在此设置页面大小时,会覆盖 \opt{paper} 选项的设置。
+% 预置的页面边距与 \cls{Word} 的默认值接近,\opt{geoset} 会将前4个选项以外的其它选项交给 \pkg{geometry} 宏包接口命令 \tn{geometry} 处理,并且选项的键值列表与之相同,上面的选项仅是一小部分,支持的参数可查阅宏包帮助文档。当在此设置页面大小时,会覆盖 \opt{paper} 选项的设置。
% \begin{ctexexam}
% \geoset
% {
@@ -474,7 +474,7 @@ The latest version of this license is in
% \tn{easyhead}\oarg{位置}\marg{内容}
% \tn{easyfoot}\oarg{位置}\marg{内容}
% \end{syntax}
-% 命令 \tn{easyhead} 和 \tn{easyfoot} 的含义与 \tn{fancyhead} 和 \tn{fancyfoot} 相同,它们用于 \opt{head-foot} 选项中,设置的是一个名为 \opt{fancy} 的页面风格。\pkg{fancyhdr} 将页眉页脚分成了左中右和奇数页(odd)、偶数页(even)共12个部分,可选参数中E、O代表偶数、奇数,L、C、R代表左、中、右部分。单面打印时,含有偶数的选项无效。
+% 命令 \tn{easyhead} 和 \tn{easyfoot} 的使用方法与 \tn{fancyhead} 和 \tn{fancyfoot} 完全相同,它们需要在 \opt{head-foot} 选项中使用,设置的是一个名为 \opt{fancy} 的页面风格。\pkg{fancyhdr} 将页眉页脚分成了左中右和奇数页(odd)、偶数页(even)共12个部分,可选参数中E、O代表偶数、奇数,L、C、R代表左、中、右部分。单面打印时,含有偶数的选项无效。
% \begin{ctexexam}
% \hdrset
% {
@@ -484,8 +484,8 @@ The latest version of this license is in
% \easyhead[OL]{\rightmark}
% \easyhead[EL,OR]{\textbf{\thepage}}
% },
-% sec-mark = {\CTEXthesection\hspace{0.5\ccwd}},
-% headrule = {\hrule width \textwidth height 1pt}
+% sec-mark = \CTEXthesection\hspace{0.5\ccwd},
+% headrule = \hrule width \textwidth height 1pt
% }
% \end{ctexexam}
% \end{function}
@@ -538,7 +538,7 @@ The latest version of this license is in
% \begin{function}[added = 2021-01-05]{equation,multline,gather,align}
% \begin{syntax}
% \tn{begin}\marg{环境名}
-% <行间公式>
+% \ <行间公式>
% \tn{end}\marg{环境名}
% \end{syntax}
% \pkg{amsmath} 宏包提供了一系列数学环境,它们可以排布各种对齐或不对齐的公式组。\env{multline} 环境用于一行无法放下的长公式,\env{gather} 环境用于每行居中的公式组,\env{align} 环境用于多列对齐的公式组。
@@ -548,7 +548,7 @@ The latest version of this license is in
% \begin{function}[added = 2021-01-05]{enumerate,itemize,description}
% \begin{syntax}
% \tn{begin}\marg{环境名}\oarg{键值列表}
-% \tn{item} <列表内容>
+% \ \tn{item} <列表内容>
% \tn{end}\marg{环境名}
% \end{syntax}
% \pkg{enumitem} 宏包为系统预置的列表环境 \env{enumerate}、\env{itemize}和 \env{description} 提供了更灵活的标签以及间距的控制,可使用 \tn{setlist} 命令设置原有的三种列表格式。已设置默认格式,若自定义标签可例如
@@ -590,7 +590,7 @@ The latest version of this license is in
% \begin{function}[added = 2021-01-05,updated = 2021-01-08]{theorem,definition,lemma,corollary,proposition,example,remark,proof}
% \begin{syntax}
% \tn{begin}\marg{环境名}
-% <定理内容>
+% \ <定理内容>
% \tn{end}\marg{环境名}
% \end{syntax}
% 这些是已预置的定理环境,定理环境除了注和证明跟随章编号并可带有边框,边框和习题标题盒子可使用 \opt{thmbox = false} 开启,证明末尾会自动添加证明结束符。环境名对应的定理标题名如下
@@ -609,7 +609,7 @@ The latest version of this license is in
% \begin{function}[added = 2021-01-05,updated = 2021-03-19]{exercise}
% \begin{syntax}
% \tn{begin}\marg{exercise}\oarg{颜色名|(LightYellow)}\oarg{编号|(1.)}\parg{标题|(习题)}\oarg{配置选项}
-% \tn{item} <习题内容>
+% \ \tn{item} <习题内容>
% \tn{end}\marg{exercise}
% \end{syntax}
% 习题环境 \env{exercise} 的标题紧接上一节编号并加入目录与页眉,当使用星号环境时不进行编号。三个可选参数中颜色为自定义或 \pkg{xcolor} 包含的颜色名称,正文编号格式与小节 \ref{subsec:sort list} 排序列表相同,标题名默认为摘要。注意,环境具有相同定界符的可选参数只能\textbf{从右往左}省略,省略的参数使用默认值。
@@ -630,7 +630,7 @@ The latest version of this license is in
% \begin{function}[added = 2021-01-05,updated = 2021-03-19]{outline}
% \begin{syntax}
% \tn{begin}\marg{outline}\parg{标题名称}\oarg{配置选项}
-% \tn{item} <摘要内容>
+% \ \tn{item} <摘要内容>
% \tn{end}\marg{outline}
% \end{syntax}
% 摘要盒子可用于章前摘要,它的标题是可选参数,默认标题是摘要。
@@ -646,7 +646,7 @@ The latest version of this license is in
% \begin{function}[added = 2021-01-05,updated = 2021-03-19]{easybox}
% \begin{syntax}
% \tn{begin}\marg{easybox}\oarg{颜色名|(MintCream)}\parg{段落标题}\oarg{配置选项}
-% <盒子内容>
+% \ <盒子内容>
% \tn{end}\marg{easybox}
% \end{syntax}
% 环境 \opt{easybox} 创建一个段落盒子,可以添加可选参数的标题,否则无标题框。当使用带有星号的环境时 \oarg{颜色名} 选项生效,可以自定义背景颜色,否则无背景颜色。
@@ -675,7 +675,7 @@ The latest version of this license is in
% \begin{syntax}
% \tn{lstinline}\oarg{键值列表}\marg{行内代码}
% \tn{begin}\marg{lstlisting}\oarg{键值列表}
-% <行间代码>
+% \ <行间代码>
% \tn{end}\marg{lstlisting}
% \end{syntax}
% 加载 \pkg{listings} 宏包以对代码格式进行高度定制,代码样式可使用 \tn{lstset} 命令设置,\tn{listoflistings} 命令用于输出代码目录。
@@ -721,7 +721,7 @@ The latest version of this license is in
% \tn{index}\marg{标签}
% \tn{printindex}\oarg{索引名}
% \end{syntax}
-% 使用 \pkg{imakeidx} 生成索引,\tn{printindex} 命令用于生成索引目录。仅做了简单的设置如将索引设为双栏并加入目录,其他选项可另外配置。
+% \pkg{imakeidx} 宏包可使用索引的功能,\tn{printindex} 命令用于生成索引目录。仅做了简单的设置如将索引设为双栏并加入目录,其他选项可另外配置。
% \end{function}
%
% \subsubsection{自定义脚注}
@@ -767,18 +767,28 @@ The latest version of this license is in
% \begin{function}[added = 2021-03-14]{spacing}
% \begin{syntax}
% \tn{begin}\marg{spacing}\marg{浮点数}
-% <段落内容>
+% \ <段落内容>
% \tn{end}\marg{spacing}
% \end{syntax}
% 该环境由 \pkg{setspace} 提供,可以指定环境内段落的行距,使用浮点数控制行距倍数。
% \end{function}
+%
+% \subsection{下划线}
+% \begin{function}[added = 2021-04-03]{\uline,\uuline,\uwave}
+% \begin{syntax}
+% \tn{uline}\marg{下划直线}
+% \tn{uuline}\marg{下划双直线}
+% \tn{uwave}\marg{下划波浪线}
+% \end{syntax}
+% \pkg{ulem} 宏包提供了多种下划线命令,下划线的粗细由命令 \tn{ULthickness} 控制,重新定义它需要使用 \tn{renewcommand} 命令。下划线的深度由 \tn{ULdepth} 控制,默认值 \tn{maxdimen} 是一个允许深度根据当前字体变化的特殊标志,当然也可以使用 \tn{setlength} 设定特定深度。
+% \end{function}
% \end{documentation}
%
% \StopEventually{}
%<*class>
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2021/04/01}{1.24b}{beta}
+\ProvidesExplClass{easybook}{2021/04/03}{1.24c}{beta}
\cs_generate_variant:Nn \keys_define:nn {nx}
\cs_generate_variant:Nn \int_to_arabic:n {v}
@@ -943,8 +953,7 @@ The latest version of this license is in
caption-light,subcaption,
tabularx,multirow,booktabs,
tasks,enumitem,
- listings,
- imakeidx
+ listings,imakeidx
}
\ctex_at_end_preamble:n
{
@@ -1807,6 +1816,8 @@ The latest version of this license is in
}
\cs_gset:Npn \tagform@#1
{\maketag@@@{\color{ctex@emph}(\ignorespaces#1\unskip\@@italiccorr)}}
+\ctex_at_end_package:nn {unicode-math}
+ {\unimathsetup{warnings-off = {mathtools-overbracket,mathtools-colon}}}
\ctex_at_end_package:nn {tcolorbox}
{
@@ -2344,5 +2355,4 @@ The latest version of this license is in
}
}
%</class>
-% \Finale
\endinput \ No newline at end of file
diff --git a/macros/latex/contrib/thuthesis/CHANGELOG.md b/macros/latex/contrib/thuthesis/CHANGELOG.md
index 1b80aec497..2532ff0458 100644
--- a/macros/latex/contrib/thuthesis/CHANGELOG.md
+++ b/macros/latex/contrib/thuthesis/CHANGELOG.md
@@ -6,6 +6,18 @@
## [Unreleased]
+## [v7.2.2] - 2021-04-03
+### Changed
+- 修改授权说明的内容和格式,同 2020 年 12 月版 Word 模板一致(#625)。
+- 去掉参考文献的页码前与冒号之间的空格,同步 2020 年 3 月版《指南》的格式修改(#629)。
+- 著者-出版年制参考文献表的著者姓名与年份之间改为逗号。
+
+### Fixed
+- 修正图表等浮动体与文字之间的距离(#614、#617)。
+- 修正表格、算法等浮动体的行距(#619)。
+- 修正了上标式引用后与中文之间多余的空格(#624)。
+- 修正了参考文献的姓名或年份中含有中括号时的引用错误(#630)。
+
## [v7.2.1] - 2021-03-21
### Added
- 在文档中添加更多关于数学公式样式的说明。
@@ -674,7 +686,8 @@
-[Unreleased]: https://github.com/tuna/thuthesis/compare/v7.2.1...HEAD
+[Unreleased]: https://github.com/tuna/thuthesis/compare/v7.2.2...HEAD
+[v7.2.2]: https://github.com/tuna/thuthesis/compare/v7.2.1...v7.2.2
[v7.2.1]: https://github.com/tuna/thuthesis/compare/v7.2.0...v7.2.1
[v7.2.0]: https://github.com/tuna/thuthesis/compare/v7.1.0...v7.2.0
[v7.1.0]: https://github.com/tuna/thuthesis/compare/v7.0.0...v7.1.0
diff --git a/macros/latex/contrib/thuthesis/data/chap02.tex b/macros/latex/contrib/thuthesis/data/chap02.tex
index 8d6c2b070e..d084a3ccc2 100644
--- a/macros/latex/contrib/thuthesis/data/chap02.tex
+++ b/macros/latex/contrib/thuthesis/data/chap02.tex
@@ -140,14 +140,42 @@
Row 38 & & & \\
Row 39 & & & \\
Row 40 & & & \\
- Row 41 & & & \\
- Row 42 & & & \\
- Row 43 & & & \\
- Row 44 & & & \\
- Row 45 & & & \\
- Row 46 & & & \\
- Row 47 & & & \\
- Row 48 & & & \\
- Row 49 & & & \\
- Row 50 & & & \\
\end{longtable}
+
+
+
+\section{算法}
+
+算法环境可以使用 \pkg{algorithms} 或者 \pkg{algorithm2e} 宏包。
+
+\renewcommand{\algorithmicrequire}{\textbf{输入:}\unskip}
+\renewcommand{\algorithmicensure}{\textbf{输出:}\unskip}
+
+\begin{algorithm}
+ \caption{Calculate $y = x^n$}
+ \label{alg1}
+ \small
+ \begin{algorithmic}
+ \REQUIRE $n \geq 0 \vee x \neq 0$
+ \ENSURE $y = x^n$
+
+ \STATE $y \leftarrow 1$
+ \IF{$n < 0$}
+ \STATE $X \leftarrow 1 / x$
+ \STATE $N \leftarrow -n$
+ \ELSE
+ \STATE $X \leftarrow x$
+ \STATE $N \leftarrow n$
+ \ENDIF
+
+ \WHILE{$N \neq 0$}
+ \IF{$N$ is even}
+ \STATE $X \leftarrow X \times X$
+ \STATE $N \leftarrow N / 2$
+ \ELSE[$N$ is odd]
+ \STATE $y \leftarrow y \times X$
+ \STATE $N \leftarrow N - 1$
+ \ENDIF
+ \ENDWHILE
+ \end{algorithmic}
+\end{algorithm}
diff --git a/macros/latex/contrib/thuthesis/ref/refs.bib b/macros/latex/contrib/thuthesis/ref/refs.bib
index 4ca6bccded..7c397888d5 100644
--- a/macros/latex/contrib/thuthesis/ref/refs.bib
+++ b/macros/latex/contrib/thuthesis/ref/refs.bib
@@ -316,7 +316,6 @@
@online{oclc2000about,
author = {{Online Computer Library Center, Inc}},
title = {About {OCLC}: History of Cooperation},
- year = {2000},
urldate = {2000-01-08},
url = {http://www.oclc.org/about/cooperation.en.htm},
}
diff --git a/macros/latex/contrib/thuthesis/spine.pdf b/macros/latex/contrib/thuthesis/spine.pdf
index a029427c31..17f54571d3 100644
--- a/macros/latex/contrib/thuthesis/spine.pdf
+++ b/macros/latex/contrib/thuthesis/spine.pdf
Binary files differ
diff --git a/macros/latex/contrib/thuthesis/thusetup.tex b/macros/latex/contrib/thuthesis/thusetup.tex
index 768e67c27f..dc74d148bd 100644
--- a/macros/latex/contrib/thuthesis/thusetup.tex
+++ b/macros/latex/contrib/thuthesis/thusetup.tex
@@ -135,6 +135,10 @@
% 跨页表格
\usepackage{longtable}
+% 算法
+\usepackage{algorithm}
+\usepackage{algorithmic}
+
% 量和单位
\usepackage{siunitx}
diff --git a/macros/latex/contrib/thuthesis/thuthesis-author-year.bbx b/macros/latex/contrib/thuthesis/thuthesis-author-year.bbx
index ebaa95d168..47ec9ea815 100644
--- a/macros/latex/contrib/thuthesis/thuthesis-author-year.bbx
+++ b/macros/latex/contrib/thuthesis/thuthesis-author-year.bbx
@@ -18,5 +18,3 @@
\setlength{\parsep}{\bibparsep}}}
{\endlist}
{\item}
-
-\renewcommand*{\bibpagespunct}{\addcolon\addthinspace}
diff --git a/macros/latex/contrib/thuthesis/thuthesis-author-year.bst b/macros/latex/contrib/thuthesis/thuthesis-author-year.bst
index 22126985c5..d25269b8e3 100644
--- a/macros/latex/contrib/thuthesis/thuthesis-author-year.bst
+++ b/macros/latex/contrib/thuthesis/thuthesis-author-year.bst
@@ -8,7 +8,7 @@
%% -------------------------------------------------------------------
%% GB/T 7714—2015 BibTeX Style
%% https://github.com/CTeX-org/gbt7714-bibtex-style
-%% Version: 2020/12/17 v2.1
+%% Version: 2021/04/03 v2.1.1
%% -------------------------------------------------------------------
%% Copyright (C) 2016—2021 by Zeping Lee <zepinglee AT gmail.com>
%% -------------------------------------------------------------------
@@ -65,7 +65,7 @@ FUNCTION {load.config}
#0 'uppercase.name :=
#0 'terms.in.macro :=
#1 'year.after.author :=
- #1 'period.after.author :=
+ #0 'period.after.author :=
#1 'sentence.case.title :=
#0 'link.title :=
#1 'title.in.journal :=
@@ -78,7 +78,7 @@ FUNCTION {load.config}
#0 'italic.journal :=
#0 'bold.journal.volume :=
#0 'show.missing.address.publisher :=
- #0 'space.before.pages :=
+ #1 'space.before.pages :=
#0 'only.start.page :=
#1 'show.urldate :=
#1 'show.url :=
@@ -250,6 +250,22 @@ FUNCTION {or}
if$
}
+STRINGS { x y }
+
+FUNCTION {contains}
+{ 'y :=
+ 'x :=
+ y text.length$ 'len :=
+ x text.length$ len - #1 + 'charptr :=
+ { charptr #0 >
+ x charptr len substring$ y = not
+ and
+ }
+ { charptr #1 - 'charptr := }
+ while$
+ charptr #0 >
+}
+
STRINGS { s t }
FUNCTION {output.nonnull}
@@ -713,17 +729,13 @@ FUNCTION {output.bibitem}
"\bibitem[" write$
label ")" *
make.full.names duplicate$ short.list =
- { pop$ }
- { * }
- if$
- 's :=
- s text.length$ 'charptr :=
- { charptr #0 > s charptr #1 substring$ "[" = not and }
- { charptr #1 - 'charptr := }
- while$
- charptr #0 >
- { "{" s * "}" * }
- { s }
+ { pop$ }
+ { duplicate$ "]" contains
+ { "{" swap$ * "}" * }
+ 'skip$
+ if$
+ *
+ }
if$
"]{" * write$
cite$ write$
@@ -1186,21 +1198,6 @@ FUNCTION {extract.after.dash}
if$
}
-FUNCTION {contains.dash}
-{ duplicate$ empty$
- { pop$ #0 }
- { 's :=
- { s empty$ not
- s #1 #1 substring$ "-" = not
- and
- }
- { s #2 global.max$ substring$ 's := }
- while$
- s empty$ not
- }
- if$
-}
-
FUNCTION {extract.before.slash}
{ duplicate$ empty$
{ pop$ "" }
@@ -1245,23 +1242,6 @@ FUNCTION {extract.after.slash}
if$
}
-FUNCTION {contains.slash}
-{ duplicate$ empty$
- { pop$ #0 }
- { 's :=
- { s empty$ not
- s #1 #1 substring$ "-" = not
- and
- s #1 #1 substring$ "/" = not
- and
- }
- { s #2 global.max$ substring$ 's := }
- while$
- s empty$ not
- }
- if$
-}
-
FUNCTION {format.year}
{ year empty$ not
{ year extract.before.slash extra.label * }
@@ -2222,7 +2202,10 @@ FUNCTION {calc.short.authors}
FUNCTION {calc.label}
{ calc.short.authors
- short.list
+ short.list "]" contains
+ { "{" short.list * "}" * }
+ { short.list }
+ if$
"("
*
format.year duplicate$ empty$
@@ -2230,6 +2213,10 @@ FUNCTION {calc.label}
{ pop$ "" }
'skip$
if$
+ duplicate$ "]" contains
+ { "{" swap$ * "}" * }
+ 'skip$
+ if$
*
'label :=
short.label
diff --git a/macros/latex/contrib/thuthesis/thuthesis-bachelor.bst b/macros/latex/contrib/thuthesis/thuthesis-bachelor.bst
index 1dd06bb887..5c08210cb3 100644
--- a/macros/latex/contrib/thuthesis/thuthesis-bachelor.bst
+++ b/macros/latex/contrib/thuthesis/thuthesis-bachelor.bst
@@ -8,7 +8,7 @@
%% -------------------------------------------------------------------
%% GB/T 7714—2015 BibTeX Style
%% https://github.com/CTeX-org/gbt7714-bibtex-style
-%% Version: 2020/12/17 v2.1
+%% Version: 2021/04/03 v2.1.1
%% -------------------------------------------------------------------
%% Copyright (C) 2016—2021 by Zeping Lee <zepinglee AT gmail.com>
%% -------------------------------------------------------------------
@@ -240,6 +240,22 @@ FUNCTION {or}
if$
}
+STRINGS { x y }
+
+FUNCTION {contains}
+{ 'y :=
+ 'x :=
+ y text.length$ 'len :=
+ x text.length$ len - #1 + 'charptr :=
+ { charptr #0 >
+ x charptr len substring$ y = not
+ and
+ }
+ { charptr #1 - 'charptr := }
+ while$
+ charptr #0 >
+}
+
STRINGS { s t }
FUNCTION {output.nonnull}
@@ -703,17 +719,13 @@ FUNCTION {output.bibitem}
"\bibitem[" write$
label ")" *
make.full.names duplicate$ short.list =
- { pop$ }
- { * }
- if$
- 's :=
- s text.length$ 'charptr :=
- { charptr #0 > s charptr #1 substring$ "[" = not and }
- { charptr #1 - 'charptr := }
- while$
- charptr #0 >
- { "{" s * "}" * }
- { s }
+ { pop$ }
+ { duplicate$ "]" contains
+ { "{" swap$ * "}" * }
+ 'skip$
+ if$
+ *
+ }
if$
"]{" * write$
cite$ write$
@@ -1176,21 +1188,6 @@ FUNCTION {extract.after.dash}
if$
}
-FUNCTION {contains.dash}
-{ duplicate$ empty$
- { pop$ #0 }
- { 's :=
- { s empty$ not
- s #1 #1 substring$ "-" = not
- and
- }
- { s #2 global.max$ substring$ 's := }
- while$
- s empty$ not
- }
- if$
-}
-
FUNCTION {extract.before.slash}
{ duplicate$ empty$
{ pop$ "" }
@@ -1235,23 +1232,6 @@ FUNCTION {extract.after.slash}
if$
}
-FUNCTION {contains.slash}
-{ duplicate$ empty$
- { pop$ #0 }
- { 's :=
- { s empty$ not
- s #1 #1 substring$ "-" = not
- and
- s #1 #1 substring$ "/" = not
- and
- }
- { s #2 global.max$ substring$ 's := }
- while$
- s empty$ not
- }
- if$
-}
-
FUNCTION {format.year}
{ year empty$ not
{ year extract.before.slash extra.label * }
@@ -2212,7 +2192,10 @@ FUNCTION {calc.short.authors}
FUNCTION {calc.label}
{ calc.short.authors
- short.list
+ short.list "]" contains
+ { "{" short.list * "}" * }
+ { short.list }
+ if$
"("
*
format.year duplicate$ empty$
@@ -2220,6 +2203,10 @@ FUNCTION {calc.label}
{ pop$ "" }
'skip$
if$
+ duplicate$ "]" contains
+ { "{" swap$ * "}" * }
+ 'skip$
+ if$
*
'label :=
short.label
diff --git a/macros/latex/contrib/thuthesis/thuthesis-bachelor.cbx b/macros/latex/contrib/thuthesis/thuthesis-bachelor.cbx
index acb8a10c94..f791bbc3f6 100644
--- a/macros/latex/contrib/thuthesis/thuthesis-bachelor.cbx
+++ b/macros/latex/contrib/thuthesis/thuthesis-bachelor.cbx
@@ -2,3 +2,11 @@
citation style]
\RequireCitationStyle{gb7714-2015}
+
+\renewrobustcmd{\mkbibsuperscript}[1]{%
+ \unspace\allowhyphens\textsuperscript{%
+ \begingroup
+ \protected\long\def\mkbibsuperscript##1{%
+ \blx@warning{Nested superscript}%
+ \mkbibbrackets{##1}}%
+ #1\endgroup}\kern\z@}
diff --git a/macros/latex/contrib/thuthesis/thuthesis-example.pdf b/macros/latex/contrib/thuthesis/thuthesis-example.pdf
index 2e03185e82..e994bb2e6d 100644
--- a/macros/latex/contrib/thuthesis/thuthesis-example.pdf
+++ b/macros/latex/contrib/thuthesis/thuthesis-example.pdf
Binary files differ
diff --git a/macros/latex/contrib/thuthesis/thuthesis-numeric.bbx b/macros/latex/contrib/thuthesis/thuthesis-numeric.bbx
index c732471bfe..f0d6234eff 100644
--- a/macros/latex/contrib/thuthesis/thuthesis-numeric.bbx
+++ b/macros/latex/contrib/thuthesis/thuthesis-numeric.bbx
@@ -25,5 +25,3 @@
\renewcommand*{\makelabel}[1]{\hss##1}}
{\endlist}
{\item}
-
-\renewcommand*{\bibpagespunct}{\addcolon}
diff --git a/macros/latex/contrib/thuthesis/thuthesis-numeric.bst b/macros/latex/contrib/thuthesis/thuthesis-numeric.bst
index 6c1eaa63d7..9f57d5ed57 100644
--- a/macros/latex/contrib/thuthesis/thuthesis-numeric.bst
+++ b/macros/latex/contrib/thuthesis/thuthesis-numeric.bst
@@ -8,7 +8,7 @@
%% -------------------------------------------------------------------
%% GB/T 7714—2015 BibTeX Style
%% https://github.com/CTeX-org/gbt7714-bibtex-style
-%% Version: 2020/12/17 v2.1
+%% Version: 2021/04/03 v2.1.1
%% -------------------------------------------------------------------
%% Copyright (C) 2016—2021 by Zeping Lee <zepinglee AT gmail.com>
%% -------------------------------------------------------------------
@@ -73,7 +73,7 @@ FUNCTION {load.config}
#0 'italic.journal :=
#0 'bold.journal.volume :=
#0 'show.missing.address.publisher :=
- #0 'space.before.pages :=
+ #1 'space.before.pages :=
#0 'only.start.page :=
#1 'show.urldate :=
#1 'show.url :=
@@ -240,6 +240,22 @@ FUNCTION {or}
if$
}
+STRINGS { x y }
+
+FUNCTION {contains}
+{ 'y :=
+ 'x :=
+ y text.length$ 'len :=
+ x text.length$ len - #1 + 'charptr :=
+ { charptr #0 >
+ x charptr len substring$ y = not
+ and
+ }
+ { charptr #1 - 'charptr := }
+ while$
+ charptr #0 >
+}
+
STRINGS { s t }
FUNCTION {output.nonnull}
@@ -703,17 +719,13 @@ FUNCTION {output.bibitem}
"\bibitem[" write$
label ")" *
make.full.names duplicate$ short.list =
- { pop$ }
- { * }
- if$
- 's :=
- s text.length$ 'charptr :=
- { charptr #0 > s charptr #1 substring$ "[" = not and }
- { charptr #1 - 'charptr := }
- while$
- charptr #0 >
- { "{" s * "}" * }
- { s }
+ { pop$ }
+ { duplicate$ "]" contains
+ { "{" swap$ * "}" * }
+ 'skip$
+ if$
+ *
+ }
if$
"]{" * write$
cite$ write$
@@ -1176,21 +1188,6 @@ FUNCTION {extract.after.dash}
if$
}
-FUNCTION {contains.dash}
-{ duplicate$ empty$
- { pop$ #0 }
- { 's :=
- { s empty$ not
- s #1 #1 substring$ "-" = not
- and
- }
- { s #2 global.max$ substring$ 's := }
- while$
- s empty$ not
- }
- if$
-}
-
FUNCTION {extract.before.slash}
{ duplicate$ empty$
{ pop$ "" }
@@ -1235,23 +1232,6 @@ FUNCTION {extract.after.slash}
if$
}
-FUNCTION {contains.slash}
-{ duplicate$ empty$
- { pop$ #0 }
- { 's :=
- { s empty$ not
- s #1 #1 substring$ "-" = not
- and
- s #1 #1 substring$ "/" = not
- and
- }
- { s #2 global.max$ substring$ 's := }
- while$
- s empty$ not
- }
- if$
-}
-
FUNCTION {format.year}
{ year empty$ not
{ year extract.before.slash extra.label * }
@@ -2212,7 +2192,10 @@ FUNCTION {calc.short.authors}
FUNCTION {calc.label}
{ calc.short.authors
- short.list
+ short.list "]" contains
+ { "{" short.list * "}" * }
+ { short.list }
+ if$
"("
*
format.year duplicate$ empty$
@@ -2220,6 +2203,10 @@ FUNCTION {calc.label}
{ pop$ "" }
'skip$
if$
+ duplicate$ "]" contains
+ { "{" swap$ * "}" * }
+ 'skip$
+ if$
*
'label :=
short.label
diff --git a/macros/latex/contrib/thuthesis/thuthesis-numeric.cbx b/macros/latex/contrib/thuthesis/thuthesis-numeric.cbx
index d13887bf26..249cec7203 100644
--- a/macros/latex/contrib/thuthesis/thuthesis-numeric.cbx
+++ b/macros/latex/contrib/thuthesis/thuthesis-numeric.cbx
@@ -2,3 +2,11 @@
citation style]
\RequireCitationStyle{gb7714-2015}
+
+\renewrobustcmd{\mkbibsuperscript}[1]{%
+ \unspace\allowhyphens\textsuperscript{%
+ \begingroup
+ \protected\long\def\mkbibsuperscript##1{%
+ \blx@warning{Nested superscript}%
+ \mkbibbrackets{##1}}%
+ #1\endgroup}\kern\z@}
diff --git a/macros/latex/contrib/thuthesis/thuthesis.dtx b/macros/latex/contrib/thuthesis/thuthesis.dtx
index 061749cc9a..2a9e07f9b4 100644
--- a/macros/latex/contrib/thuthesis/thuthesis.dtx
+++ b/macros/latex/contrib/thuthesis/thuthesis.dtx
@@ -14,7 +14,7 @@
%
% \iffalse
%<*driver>
-\ProvidesFile{thuthesis.dtx}[2021/03/21 7.2.1 Tsinghua University Thesis Template]
+\ProvidesFile{thuthesis.dtx}[2021/04/03 7.2.2 Tsinghua University Thesis Template]
\documentclass{ltxdoc}
\usepackage{dtx-style}
@@ -1246,7 +1246,7 @@
% \begin{macrocode}
%<cls>\NeedsTeXFormat{LaTeX2e}[2017/04/15]
%<cls>\ProvidesClass{thuthesis}
-%<cls>[2021/03/21 7.2.1 Tsinghua University Thesis Template]
+%<cls>[2021/04/03 7.2.2 Tsinghua University Thesis Template]
% \end{macrocode}
%
% 报错
@@ -1302,7 +1302,7 @@
%<*cls>
\hyphenation{Thu-Thesis}
\def\thuthesis{ThuThesis}
-\def\version{7.2.1}
+\def\version{7.2.2}
\RequirePackage{kvdefinekeys}
\RequirePackage{kvsetkeys}
\RequirePackage{kvoptions}
@@ -2100,6 +2100,10 @@
% 注意重定义 \cs{normalsize} 应在 \pkg{unicode-math} 的 \cs{setmathfont} 前。
%
% 表达式行的行距为单倍行距,段前空 6 磅,段后空 6 磅。
+%
+% \cs{small} 等其他命令通常用于表格等环境中,这部分要求单倍行距,与正文的字号-行距比例不同,
+% 所以保留默认的 1.2 倍字号的行距,作为单倍行距在英文(1.15 倍字号)和中文(1.3倍字号)
+% 两种情况的折衷。
% \begin{macrocode}
\renewcommand\normalsize{%
\@setfontsize\normalsize{12bp}{20bp}%
@@ -2112,35 +2116,6 @@
\ifx\MakeRobust\@undefined \else
\MakeRobust\normalsize
\fi
-\DeclareRobustCommand\small{%
- \@setfontsize\small{10.5bp}{17.5bp}%
- \abovedisplayskip 6bp%
- \abovedisplayshortskip 6bp%
- \belowdisplayshortskip 6bp%
- \def\@listi{\leftmargin\leftmargini
- \topsep \z@skip
- \parsep \z@skip
- \itemsep \z@skip}%
- \belowdisplayskip \abovedisplayskip
-}
-\DeclareRobustCommand\footnotesize{%
- \@setfontsize\footnotesize{9bp}{15bp}%
- \abovedisplayskip 6bp%
- \abovedisplayshortskip 6bp%
- \belowdisplayshortskip 6bp%
- \def\@listi{\leftmargin\leftmargini
- \topsep \z@skip
- \parsep \z@skip
- \itemsep \z@skip}%
- \belowdisplayskip \abovedisplayskip
-}
-\DeclareRobustCommand\scriptsize{\@setfontsize\scriptsize{7.5bp}{12.5bp}}
-\DeclareRobustCommand\tiny{\@setfontsize\tiny{6.5bp}{10.83bp}}
-\DeclareRobustCommand\large{\@setfontsize\large{15bp}{25bp}}
-\DeclareRobustCommand\Large{\@setfontsize\Large{18bp}{30bp}}
-\DeclareRobustCommand\LARGE{\@setfontsize\LARGE{22bp}{36.67bp}}
-\DeclareRobustCommand\huge{\@setfontsize\huge{24bp}{40bp}}
-\DeclareRobustCommand\Huge{\@setfontsize\Huge{26bp}{43.33bp}}
% \end{macrocode}
% \end{macro}
%
@@ -3361,6 +3336,39 @@
\setlength{\@fpbot}{0bp \@plus1.0fil}
% \end{macrocode}
%
+% 由于 LaTeX2e kernel 的问题,图表等浮动体与文字前后的距离不一致,需要进行 patch。
+% 参考 \href{https://github.com/tuna/thuthesis/issues/614}{tuna/thuthesis/issues\#614}、
+% \url{https://www.zhihu.com/question/46618031} 和
+% \url{https://tex.stackexchange.com/a/40363/82731}。
+% \begin{macrocode}
+\patchcmd{\@addtocurcol}%
+ {\vskip \intextsep}%
+ {\edef\save@first@penalty{\the\lastpenalty}\unpenalty
+ \ifnum \lastpenalty = \@M % hopefully the OR penalty
+ \unpenalty
+ \else
+ \penalty \save@first@penalty \relax % put it back
+ \fi
+ \ifnum\outputpenalty <-\@Mii
+ \addvspace\intextsep
+ \vskip\parskip
+ \else
+ \addvspace\intextsep
+ \fi}%
+ {}{\thu@patch@error{\@addtocurcol}}
+\patchcmd{\@addtocurcol}%
+ {\vskip\intextsep \ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi}%
+ {\ifnum\outputpenalty <-\@Mii
+ \aftergroup\vskip\aftergroup\intextsep
+ \aftergroup\nointerlineskip
+ \else
+ \vskip\intextsep
+ \fi}%
+ {}{\thu@patch@error{\@addtocurcol}}
+\patchcmd{\@getpen}{\@M}{\@Mi}
+ {}{\thu@patch@error{\@getpen}}
+% \end{macrocode}
+%
% 下面这组命令使浮动对象的缺省值稍微宽松一点,从而防止幅度对象占据过多的文本页面,
% 也可以防止在很大空白的浮动页上放置很小的图形。
% \begin{macrocode}
@@ -3419,37 +3427,7 @@
\thu@option@hook{number-separator}{\thu@set@number@separator}
% \end{macrocode}
%
-% 研究生要求表单元格中的文字采用 11pt 宋体字,单倍行距。段前空 3 磅,段后空 3 磅。
-% 段前段后的高度直接加到行距上,对于中文,修正后的行距为
-% $11 \times 1.3 + 6 = 20.3$(pt),
-% 而英文版的行距为 $11 \times 1.3 + 6 = 18.65$(pt)。
-% 用户可以手动设置 \cs{arraystretch} 调整表格的行距 。
-% \begin{macrocode}
-\patchcmd\@floatboxreset{%
- \normalsize
-}{%
- \ifthu@language@chinese
- \fontsize{11bp}{20.3bp}\selectfont
- \else
- \fontsize{11bp}{18.65bp}\selectfont
- \fi
-}{}{\thu@patch@error{\@floatboxreset}}
-% \end{macrocode}
-%
-% 对 \pkg{longtable} 跨页表格进行相同的设置。
-% \begin{macrocode}
-\AtEndOfPackageFile*{longtable}{
- \AtBeginEnvironment{longtable}{%
- \ifthu@language@chinese
- \fontsize{11bp}{20.3bp}\selectfont
- \else
- \fontsize{11bp}{18.65bp}\selectfont
- \fi
- }
-}
-% \end{macrocode}
-%
-% 定制浮动图形和表格标题样式,以及改变附录中浮动体的编号规则:
+% 定制浮动图形和表格标题样式:
% \begin{itemize}
% \item 图表标题字体为 11pt
% \item 去掉图表号后面的冒号,图序与图名文字之间空一个汉字符宽度
@@ -3461,14 +3439,17 @@
\ifthu@degree@bachelor
\fontsize{11bp}{15bp}\selectfont
\else
- \fontsize{11bp}{14.3bp}\selectfont
+ \ifthu@language@chinese
+ \fontsize{11bp}{14.3bp}\selectfont
+ \else
+ \fontsize{11bp}{12.65bp}\selectfont
+ \fi
\fi
}
\captionsetup{
font = thu,
labelsep = quad,
- aboveskip = 6bp,
- belowskip = 0bp,
+ skip = 6bp,
figureposition = bottom,
tableposition = top,
}
@@ -3478,6 +3459,50 @@
% \renewcommand{\p@subfigure}{:}
% \end{macrocode}
%
+% 研究生要求表单元格中的文字采用 11pt 宋体字,单倍行距。段前空 3 磅,段后空 3 磅。
+% 对于中文,\cs{arraystretch} 需要调整为 $1 + 6 / (11 \times 1.3) \approx 1.42$。
+% 对于英文,\cs{arraystretch} 需要调整为 $1 + 6 / (11 \times 1.15) \approx 1.47$。
+%
+% 注意不能简单地把行距设为 $\SI{11}{pt} \times 1.3 + \SI{6}{pt} = \SI{20.3}{pt}$,
+% 这会导致含有多行文字的单元格中行距有误。
+%
+% 其他浮动体中(比如 \env{algorithm})的字号默认同表格一致。
+% \begin{macrocode}
+\newcommand\thu@set@table@font{
+ \ifthu@language@chinese
+ \def\thu@table@font{%
+ \fontsize{11bp}{14.3bp}\selectfont
+ \renewcommand\arraystretch{1.42}%
+ }%
+ \else
+ \def\thu@table@font{%
+ \fontsize{11bp}{12.65bp}\selectfont
+ \renewcommand\arraystretch{1.47}%
+ }%
+ \fi
+}
+\thu@set@table@font
+\thu@option@hook{language}{\thu@set@table@font}
+\patchcmd\@floatboxreset{%
+ \normalsize
+}{%
+ \thu@table@font
+}{}{\thu@patch@error{\@floatboxreset}}
+% \end{macrocode}
+%
+% 对 \pkg{longtable} 跨页表格进行相同的设置。
+%
+% 在 Word 模板中按照正确的设置(需要去掉文档网格),
+% 中文模板每页能装下 1 行标题、1 行表头、30 行表身,
+% 英文模板每页能装下 1 行标题、1 行表头、33 行表身。
+% \begin{macrocode}
+\AtEndOfPackageFile*{longtable}{
+ \AtBeginEnvironment{longtable}{%
+ \thu@table@font
+ }
+}
+% \end{macrocode}
+%
% 研究生和本科生都推荐使用三线表,并且要求表的上、下边线为单直线,线粗为 1.5 磅;
% 第三条线为单直线,线粗为 1 磅。
% 这里设置 \pkg{booktabs} 线粗的默认值。
@@ -4835,52 +4860,45 @@
\newcommand{\thu@authorization@frontdate}{%
日\ifthu@degree@bachelor\hspace{1em}\else\hspace{2em}\fi 期:}
\newcommand\thu@copyright@page@graduate{%
- \newgeometry{
- vmargin = 3.8cm,
- hmargin = 3.2cm,
- }%
\begingroup
\ctexset{
chapter = {
format = {\centering\sffamily\erhao},
- beforeskip = 18bp,
- afterskip = 6bp,
+ beforeskip = 40bp,
+ afterskip = 36bp,
},
}%
\thu@chapter*[]{关于学位论文使用授权的说明}%
\thispagestyle{empty}%
\endgroup
- \vskip 50bp%
+ \vskip 13bp%
\begingroup
\fontsize{14bp}{26bp}\selectfont
本人完全了解清华大学有关保留、使用学位论文的规定,即:\par
清华大学拥有在著作权法规定范围内学位论文的使用权,其中包括:%
- (1)已获学位的研究生必须按学校规定提交学位论文,%
- 学校可以采用影印、缩印或其他复制手段保存研究生上交的学位论文;%
+ (1)\nobreak 已获学位的研究生必须按学校规定提交学位论文,%
+ 学校可以采用影印、缩印或其他复制手段保存研究生上交的学位论文;\allowbreak
(2)\nobreak 为教学和科研目的,学校可以将公开的学位论文作为资料在图书馆、资料室等场所供校内师生阅读,%
- 或在校园网上供校内师生浏览部分内容;%
+ 或在校园网上供校内师生浏览部分内容;\allowbreak
\ifthu@degree@doctor
- (3)根据《中华人民共和国学位条例暂行实施办法》及上级教育主管部门具体要求,向国家图书馆报送相应的学位论文。%
+ (3)\nobreak 根据《中华人民共和国学位条例暂行实施办法》及上级教育主管部门具体要求,向国家图书馆报送相应的学位论文。%
\else
- (3)按照上级教育主管部门督导、抽查等要求,报送相应的学位论文。%
+ (3)\nobreak 按照上级教育主管部门督导、抽查等要求,报送相应的学位论文。%
\fi
\par
本人保证遵守上述规定。\par
- \vskip 6bp%
- \textbf{(保密的论文在解密后遵守此规定)}\par
\endgroup
- \vskip1.2cm%
+ \vskip 33bp%
\begingroup
- \noindent\xiaosi
- \hspace*{1.5cm}%
- 作者签名:\thu@underline[7em]\relax\hfill
- 导师签名:\thu@underline[7em]\relax\hspace*{1cm}\\[3pt]%
- \hspace*{1.5cm}%
- 日\hspace{2em}期:\thu@underline[7em]\relax\hfill
- 日\hspace{2em}期:\thu@underline[7em]\relax\hspace*{1cm}%
+ \fontsize{12bp}{23.4bp}\selectfont
+ \parindent\z@
+ \leftskip 43bp%
+ 作者签名:\hspace{4bp}\thu@underline[7em]{}\hspace{47bp}%
+ 导师签名:\hspace{4bp}\thu@underline[7em]{}\par
+ \vskip 6bp%
+ 日\hspace{2em}期:\hspace{4bp}\thu@underline[7em]{}\hspace{47bp}%
+ 日\hspace{2em}期:\hspace{4bp}\thu@underline[7em]{}\par
\endgroup
- \clearpage
- \restoregeometry
}
\newcommand\thu@copyright@page@bachelor{%
\begingroup
@@ -5345,20 +5363,44 @@
%
% 将 \cs{citep} super 式引用的页码改为上标。
% \begin{macrocode}
- \renewcommand\NAT@citesuper[3]{\ifNAT@swa
- \if*#2*\else#2\NAT@spacechar\fi
- % \unskip\kern\p@\textsuperscript{\NAT@@open#1\NAT@@close}%
- % \if*#3*\else\NAT@spacechar#3\fi\else #1\fi\endgroup}
- \unskip\kern\p@\textsuperscript{\NAT@@open#1\NAT@@close\if*#3*\else#3\fi}%
- \else #1\fi\endgroup}
+ \renewcommand\NAT@citesuper[3]{%
+ \ifNAT@swa
+ \if*#2*\else
+ #2\NAT@spacechar
+ \fi
+ % \unskip\kern\p@\textsuperscript{\NAT@@open#1\NAT@@close}%
+ % \if*#3*\else\NAT@spacechar#3\fi\else #1\fi\endgroup}
+ \unskip\kern\p@
+ \textsuperscript{%
+ \NAT@@open#1\NAT@@close
+ \if*#3*\else#3\fi
+ }%
+ \kern\p@
+ \else
+ #1%
+ \fi
+ \endgroup
+ }
% \end{macrocode}
%
% 将 \cs{citep} numbers 式引用的页码改为上标并置于括号外。
% \begin{macrocode}
- \renewcommand\NAT@citenum%
- [3]{\ifNAT@swa\NAT@@open\if*#2*\else#2\NAT@spacechar\fi
- % #1\if*#3*\else\NAT@cmt#3\fi\NAT@@close\else#1\fi\endgroup}
- #1\NAT@@close\textsuperscript{\if*#3*\else#3\fi}\else#1\fi\endgroup}
+ \renewcommand\NAT@citenum[3]{%
+ \ifNAT@swa
+ \NAT@@open
+ \if*#2*\else
+ #2\NAT@spacechar
+ \fi
+ % #1\if*#3*\else\NAT@cmt#3\fi\NAT@@close
+ #1\NAT@@close
+ \if*#3*\else
+ \textsuperscript{#3}%
+ \fi
+ \else
+ #1%
+ \fi
+ \endgroup
+ }
% \end{macrocode}
%
% 修改 \cs{citet} 引用的样式。
@@ -5452,8 +5494,11 @@
% }{}%
\NAT@mbox{\NAT@@close}%
\@ifnum{\NAT@ctype=\z@}{%
- \if*#2*\else\textsuperscript{#2}\fi
+ \if*#2*\else
+ \textsuperscript{#2}%
+ \fi
}{}%
+ \NAT@super@kern
\fi
}{#1}{#2}%
}%
@@ -6391,6 +6436,7 @@
\RequirePackage{fontspec}[2017/01/20]
\RequirePackage{amsmath}
\RequirePackage{unicode-math}
+\RequirePackage{siunitx}
\RequirePackage[UTF8,scheme=chinese]{ctex}
\RequirePackage[
top=2.5cm, bottom=2.5cm,
diff --git a/macros/latex/contrib/thuthesis/thuthesis.pdf b/macros/latex/contrib/thuthesis/thuthesis.pdf
index b1700ca1d3..ff10a7f10f 100644
--- a/macros/latex/contrib/thuthesis/thuthesis.pdf
+++ b/macros/latex/contrib/thuthesis/thuthesis.pdf
Binary files differ
diff --git a/macros/luatex/latex/unitipa/README.txt b/macros/luatex/latex/unitipa/README.txt
index 2d9bc5ba02..ac566a58dc 100644
--- a/macros/luatex/latex/unitipa/README.txt
+++ b/macros/luatex/latex/unitipa/README.txt
@@ -1,9 +1,9 @@
--------------------------------------------------------------------------
Package: unitipa
Author: Niranjan
-Version: 0.2 (13 March, 2021)
+Version: 0.3 (3 April, 2021)
Description: TIPA typefaces with Unicode characters.
-Repository: https://gitlab.com/niranjanvikastambe/unitipa
-Bug tracker: https://gitlab.com/niranjanvikastambe/unitipa/-/issues
+Repository: https://gitlab.com/niruvt/unitipa
+Bug tracker: https://gitlab.com/niruvt/unitipa/-/issues
License: The LaTeX Project Public License v1.3c or later.
--------------------------------------------------------------------------
diff --git a/macros/luatex/latex/unitipa/unitipa.dtx b/macros/luatex/latex/unitipa/unitipa.dtx
index e834a96c02..19722de1cf 100644
--- a/macros/luatex/latex/unitipa/unitipa.dtx
+++ b/macros/luatex/latex/unitipa/unitipa.dtx
@@ -4,10 +4,10 @@
% ---------------------------------------------------------------------------
% Package: unitipa
% Author: Niranjan
-% Version: 0.2 (13 March, 2021)
+% Version: 0.3 (3 April, 2021)
% Description: TIPA typefaces with Unicode characters.
-% Repository: https://gitlab.com/niranjanvikastambe/unitipa
-% Bug tracker: https://gitlab.com/niranjanvikastambe/unitipa/-/issues
+% Repository: https://gitlab.com/niruvt/unitipa
+% Bug tracker: https://gitlab.com/niruvt/unitipa/-/issues
% License: The LaTeX Project Public License v1.3c or later.
% ---------------------------------------------------------------------------
% This work may be distributed and/or modified under the conditions of the
@@ -34,10 +34,10 @@
--------------------------------------------------------------------------
Package: unitipa
Author: Niranjan
-Version: 0.2 (13 March, 2021)
+Version: 0.3 (3 April, 2021)
Description: TIPA typefaces with Unicode characters.
-Repository: https://gitlab.com/niranjanvikastambe/unitipa
-Bug tracker: https://gitlab.com/niranjanvikastambe/unitipa/-/issues
+Repository: https://gitlab.com/niruvt/unitipa
+Bug tracker: https://gitlab.com/niruvt/unitipa/-/issues
License: The LaTeX Project Public License v1.3c or later.
--------------------------------------------------------------------------
%</readme>
@@ -46,8 +46,8 @@ License: The LaTeX Project Public License v1.3c or later.
%</internal>
%<*driver|package>
\def\unitipaname{unitipa}
-\def\unitipaversion{0.2}
-\def\unitipadate{2021/03/13}
+\def\unitipaversion{0.3}
+\def\unitipadate{2021/04/03}
\def\unitipadescription{TIPA typefaces with Unicode characters.}
%</driver|package>
%<*driver>
@@ -75,7 +75,7 @@ urlcolor=blue!60!black%
% {^^A
% Version \unitipaversion\ --- \unitipadate\\[1ex]^^A
% {\small\faIcon{link}\quad\url{https://ctan.org/pkg/unitipa}}\\^^A
-% {\small\faIcon{gitlab}\quad\url{https://gitlab.com/niranjanvikastambe/unitipa}}^^A
+% {\small\faIcon{gitlab}\quad\url{https://gitlab.com/niruvt/unitipa}}^^A
% }
% \maketitle
%
@@ -107,9 +107,9 @@ urlcolor=blue!60!black%
% \item[Open vowels] ɑ\footnote{Reported \textit{\&} added by Heller, Thomas in
% v0.2.
%
-% Bug report - \url{https://gitlab.com/niranjanvikastambe/unitipa/-/issues/1}
+% Bug report - \url{https://gitlab.com/niruvt/unitipa/-/issues/1}
%
-% MR - \url{https://gitlab.com/niranjanvikastambe/unitipa/-/merge_requests/1}
+% MR - \url{https://gitlab.com/niruvt/unitipa/-/merge_requests/1}
% }
% \item[Clicks] ʘ ǀ ǃ ǂ ǁ
% \item[Voiced Implosives] ɓ ɗ ʄ ɠ ʛ
@@ -149,7 +149,7 @@ urlcolor=blue!60!black%
%<*package>
% \end{macrocode}
% \begin{macrocode}
-\ProvidesPackage{unitipa}[2021/03/13 v0.2
+\ProvidesPackage{unitipa}[2021/04/03 v0.3
TIPA typefaces with unicode characters]
\RequirePackage{tipa}
% \end{macrocode}
@@ -469,8 +469,8 @@ TIPA typefaces with unicode characters]
\newunicodechar{ɒ}{\textturnscripta}
%% Open
%% Reported and added by Heller, Thomas on 2021/03/13
-%% Bug report - https://gitlab.com/niranjanvikastambe/unitipa/-/issues/1
-%% MR - https://gitlab.com/niranjanvikastambe/unitipa/-/merge_requests/1
+%% Bug report - https://gitlab.com/niruvt/unitipa/-/issues/1
+%% MR - https://gitlab.com/niruvt/unitipa/-/merge_requests/1
\newunicodechar{ɑ}{\textscripta}
%% Non-Pulmonic
\newunicodechar{ʘ}{\textbullseye}
@@ -519,5 +519,6 @@ TIPA typefaces with unicode characters]
% \RecordChanges
% \changes{v0.1}{2020/09/21}{Initial version}
% \changes{v0.2}{2021/03/13}{Added characters `ɑ' and `ɲ'}
+% \changes{v0.3}{2021/04/03}{Updated repository path}
% \PrintChanges
% \Finale \ No newline at end of file
diff --git a/macros/luatex/latex/unitipa/unitipa.ins b/macros/luatex/latex/unitipa/unitipa.ins
index 7f3e7e2ba1..cf7d5c8061 100644
--- a/macros/luatex/latex/unitipa/unitipa.ins
+++ b/macros/luatex/latex/unitipa/unitipa.ins
@@ -10,8 +10,8 @@
Package: unitipa
Author: Niranjan
Description: TIPA typefaces with Unicode characters.
-Repository: https://gitlab.com/niranjanvikastambe/unitipa
-Bug tracker: https://gitlab.com/niranjanvikastambe/unitipa/-/issues
+Repository: https://gitlab.com/niruvt/unitipa
+Bug tracker: https://gitlab.com/niruvt/unitipa/-/issues
License: The LaTeX Project Public License v1.3c or later.
---------------------------------------------------------------------------
This work may be distributed and/or modified under the conditions of the
diff --git a/macros/luatex/latex/unitipa/unitipa.pdf b/macros/luatex/latex/unitipa/unitipa.pdf
index c6b795dae1..bc8a58090a 100644
--- a/macros/luatex/latex/unitipa/unitipa.pdf
+++ b/macros/luatex/latex/unitipa/unitipa.pdf
Binary files differ
diff --git a/systems/texlive/tlnet/tlpkg/TeXLive/TLCrypto.pm b/systems/texlive/tlnet/tlpkg/TeXLive/TLCrypto.pm
index 516db3c051..4f73cb75f0 100644
--- a/systems/texlive/tlnet/tlpkg/TeXLive/TLCrypto.pm
+++ b/systems/texlive/tlnet/tlpkg/TeXLive/TLCrypto.pm
@@ -1,4 +1,4 @@
-# $Id: TLCrypto.pm 55178 2020-05-17 16:46:24Z karl $
+# $Id: TLCrypto.pm 58709 2021-04-03 12:05:04Z preining $
# TeXLive::TLCrypto.pm - handle checksums and signatures.
# Copyright 2016-2020 Norbert Preining
# This file is licensed under the GNU General Public License version 2
@@ -12,7 +12,7 @@ use TeXLive::TLConfig;
use TeXLive::TLUtils qw(debug ddebug win32 which platform
conv_to_w32_path tlwarn tldie);
-my $svnrev = '$Revision: 55178 $';
+my $svnrev = '$Revision: 58709 $';
my $_modulerevision = ($svnrev =~ m/: ([0-9]+) /) ? $1 : "unknown";
sub module_revision { return $_modulerevision; }
@@ -311,7 +311,7 @@ sub verify_checksum {
my ($file, $checksum_url) = @_;
# don't do anything if we cannot determine a checksum method
# return -2 which is as much as missing signature
- return($VS_UNSIGNED) if (!$::checksum_method);
+ return($VS_UNSIGNED, "no checksum method found") if (!$::checksum_method);
my $checksum_file
= TeXLive::TLUtils::download_to_temp_or_file($checksum_url);
@@ -359,7 +359,7 @@ sub verify_checksum {
# we are still here, so checksum also succeeded
debug("checksum of local copy identical with remote hash\n");
- return(0);
+ return($VS_VERIFIED);
}
# emacs-page
diff --git a/systems/texlive/tlnet/tlpkg/installer/ctan-mirrors.pl b/systems/texlive/tlnet/tlpkg/installer/ctan-mirrors.pl
index 4775916d4d..b42823952f 100644
--- a/systems/texlive/tlnet/tlpkg/installer/ctan-mirrors.pl
+++ b/systems/texlive/tlnet/tlpkg/installer/ctan-mirrors.pl
@@ -9,6 +9,7 @@ $mirrors = {
'South Africa' => {
'http://ftp.sun.ac.za/ftp/CTAN/' => 1,
'http://mirror.ufs.ac.za/ctan/' => 1,
+ 'https://ftp.leg.uct.ac.za/pub/packages/ctan/' => 1,
},
},
'Asia' => {
@@ -150,9 +151,6 @@ $mirrors = {
'Serbia' => {
'http://ctan.mirror.ftn.uns.ac.rs/' => 1,
},
- 'Slovenia' => {
- 'http://ctan.ijs.si/tex-archive/' => 1,
- },
'Spain' => {
'https://ctan.javinator9889.com/' => 1,
'https://osl.ugr.es/CTAN/' => 1,
diff --git a/systems/texlive/tlnet/tlpkg/texlive.tlpdb b/systems/texlive/tlnet/tlpkg/texlive.tlpdb
index 3af4674359..8997bcbdf1 100644
--- a/systems/texlive/tlnet/tlpkg/texlive.tlpdb
+++ b/systems/texlive/tlnet/tlpkg/texlive.tlpdb
@@ -26,7 +26,7 @@ depend container_split_src_files/1
depend frozen/0
depend minrelease/2016
depend release/2021
-depend revision/58704
+depend revision/58710
name 00texlive.image
category TLCore
@@ -4365,7 +4365,7 @@ depend setting_available_architectures:aarch64-linux amd64-freebsd amd64-netbsd
name 00texlive.installer
category TLCore
-revision 58690
+revision 58706
shortdesc TeX Live standalone installer package
longdesc This package defines the files to go into the installer
longdesc archives (install-tl-unx.tar.gz, install-tl.zip) built by the
@@ -249145,7 +249145,7 @@ catalogue-version 1.1
name profcollege
category Package
-revision 58540
+revision 58710
shortdesc A LaTeX package for French maths teachers in college
relocated 1
longdesc This package provides some commands to help French mathematics
@@ -249155,15 +249155,15 @@ longdesc \Pythagore{ABC}{5}{7} to write the entire calculation of AC
longdesc with the Pythagorean theorem, \Trigo[Cosinus]{ABC}{3}{}{60} to
longdesc write the entire calculation of AC with cosine, ... and some
longdesc others.
-containersize 69432
-containerchecksum 470dd4efd8dcef4903a4bab4effe6d7abe2b75d0be387eb4952d1c16f5d7f2013ce3c4811a8fb05a64c468c7c20c6520dd99a3ed1e7ebe2dcdd225657151798c
-doccontainersize 3718148
-doccontainerchecksum 8b018c8ea510bc721a1951ac28ba5898046479f90f722ca0b3a8a96a9a66e8acdcb5c690f2ef300067e9aa2dca0bbf80772f238eaa6a39c858dac9e7f7c387ed
-docfiles size=1042
+containersize 70872
+containerchecksum f9929b2fc8194df27deeba118cfe1c922c42c602df949999154fa5aa37251c6f5dbeef46f25fa9816a97aa2ad37f4dfae52427bd3381e5a2abb63f6cde49f8e6
+doccontainersize 3732556
+doccontainerchecksum fe78de237160707ac036812730a6460a3a63343a5d11df45e1c793a15d8316886f8565160a8fd0db9b7c10fbd519acaf182a7dbb7323f88d1d4f9df292341cd6
+docfiles size=1046
RELOC/doc/latex/profcollege/ProfCollege-doc.pdf details="Package documentation" language="fr"
RELOC/doc/latex/profcollege/ProfCollege-doc.zip
RELOC/doc/latex/profcollege/README details="Readme"
-runfiles size=174
+runfiles size=179
RELOC/metapost/profcollege/PfC-Afficheur.mp
RELOC/metapost/profcollege/PfC-Calculatrice.mp
RELOC/metapost/profcollege/PfC-Constantes.mp
@@ -249180,7 +249180,7 @@ runfiles size=174
catalogue-ctan /macros/latex/contrib/profcollege
catalogue-license lppl1.3c
catalogue-topics maths french teaching
-catalogue-version 0.96
+catalogue-version 0.98
name program
category Package
@@ -298200,15 +298200,15 @@ docfiles size=619
name texlive-docindex
category TLCore
-revision 58679
+revision 58706
shortdesc top-level TeX Live doc.html, etc.
longdesc These files are regenerated as needed, which is often, so we
longdesc make them a separate package. See the tl-update-auto script for
longdesc the process.
-containersize 392
-containerchecksum 8478af193827d8d4f8f0092aacfe2d6428f86e52ffba7db9f66ba50882224e92fb2ebc2b351c6145a6cdfe87f12061a38dea950c77a21b7fcabf54a701bda50a
-doccontainersize 174212
-doccontainerchecksum 6fb6e5efd036b11987904177c70173721e0f47461152f33b6a00aae8ce86520d7656874b98f9ebb0f30c29819dc8fa0975c1deff84c448758aacb3ba2d4a3072
+containersize 388
+containerchecksum 787f58404baffc60d7f82986f1c8dc3b3619a0955c5b3a1b424279cf5dca5900a037e7f21505818da94c0c89d0ce59b11133bef17716fa6248031390eb0857e8
+doccontainersize 174164
+doccontainerchecksum 01730cde63b86fb58be5225a9bf0b2949cce2595eae42c756999f06a859fbc1a7d64748c81fb792cbd343ae4310ab8e07328b2fa5524d7250a2d6c9fb84bbcce
docfiles size=346
doc.html
@@ -298435,7 +298435,7 @@ docfiles size=376
name texlive-scripts
category TLCore
-revision 58690
+revision 58706
shortdesc TeX Live infrastructure programs
longdesc Includes install-tl, tl-portable, rungs, etc.; not needed for
longdesc tlmgr to run but still ours. Not included in tlcritical.
@@ -298443,10 +298443,10 @@ depend texlive-scripts.ARCH
depend texlive.infra
execute addMap mathpple.map
postaction shortcut type=menu name="TeX Live command-line" cmd=TEXDIR/tlpkg/installer/tl-cmd.bat
-containersize 107056
-containerchecksum 29e58da89712f8d22af98c332b39ef8f4d1cde8664b849972d21d11da2627267531d323081c548df07b3f0bbb41d8a92ede2ea9a33a2a0ace33c9e827c1ec066
-doccontainersize 211612
-doccontainerchecksum 77b8f2fc7602e5065bc4d6ed8ac450dace01ca99e33ef1a17df5c9fb098f732067d150c49cb3ccd1cb721f2f1317a633cc75f7169b313be78d018dd577753d43
+containersize 107064
+containerchecksum f88903688e90fcc624424085e53a282f82b9457f19a9a75a50cab5aa775a0e81fff590518e7bf85d2e1823146d2cce72275cd6b85c7c328d01dc3714dbd25f7a
+doccontainersize 211616
+doccontainerchecksum ae23a57dcd5738f26465692f047f11a30bcc26dc26653d1481003afd44e9bdfdd5bd7cb970279a55082f8d3392b28a27a6750df6b9e688ab7bebca70d40ce368
docfiles size=132
texmf-dist/doc/man/man1/fmtutil-sys.1
texmf-dist/doc/man/man1/fmtutil-sys.man1.pdf
diff --git a/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5 b/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5
index ec5d1f4cfa..eaf2f0bcb5 100644
--- a/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5
+++ b/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5
@@ -1 +1 @@
-306e6c3630c1fb99077ae775ab541595 texlive.tlpdb
+5bed0b452306e5af615e4b53535ac940 texlive.tlpdb
diff --git a/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512 b/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512
index ce98e7fde5..dbe815d234 100644
--- a/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512
+++ b/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512
@@ -1 +1 @@
-e766427f03f43baf8114f9eeb92ff59208d569b6051c678b553a9da9b3768c4096cfc67f2ed06515e178d054ba859efe5b3de89bac984a49006bb66c9c805f59 texlive.tlpdb
+f482e892bc03f8e31a7e36d2f45cc55b734dcb188a09d03b654c8b3960aca42a777e13be6e722e012cfcabe18382a9b58c5ed6e7c12030d308ad6d230cfade11 texlive.tlpdb
diff --git a/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc b/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
index 826edaf974..8b4f1a6efd 100644
--- a/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
+++ b/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
@@ -1,10 +1,10 @@
-----BEGIN PGP SIGNATURE-----
-iQEcBAEBCgAGBQJgZ68jAAoJEEzhh34ZQ4xwvnQH/2gQZTufTsu3mzSgJ5nHnj9G
-UTJ9DJA778JvFuLb7t7K5pBTF2TZKk+0nWIZHN/KoCZSGv2XigZduwzUKZvC3ORX
-nNG6Z3i4IJpX1iv3etSm+kPDZ/ZqpL4/BGi1YzQQk5ArPMWJ9+Z3CNaBWq7qV/se
-i5IvbExSpVHPftONv+Ca5eo5Zz839aieh5PKUG+2q81CM8TunUdr3ioiUJ6qY7fg
-iaN+kJ7v3msmOFL2jC9qOGs4o3I3fXOkrrwKWs8Xn9LDjefnDjJ/r8C+p/LjGIKa
-fW8GAL2dweOLSFexwYSTl5HTSK/qUzO6ABvcULO9s1f7nAqAgZcKJlMfbn0aZ3A=
-=RFOE
+iQEcBAEBCgAGBQJgaP+/AAoJEEzhh34ZQ4xwsPQIAKqRXenJKQ/Ov3YXHSnrlNPr
+38T2v1d4u+0XlUgB/AwJ+fDPE502f3KHFJbC9w5tNCyoBvKxtkDyMPHTDSofOPc4
+30UwdK3/DIrS24KDgD1xYb3AwZvnwfkfy4Ww/5WTbYKagvnaM2iHDfRUIyyTOztG
+jxtoHDEnYOcPVlic6HkCjGpPoxvZMngLnMNLgQWFw0s1wm87w13TmwQHviR5zEIA
+8cSMfX7pHDaTEQFGsqZVX5/133CBEXXxx8iQHXu9LzN4u0WKoY4QUXLqNUCuASC5
+RsZtxfUua20Aed6oP3FaE6zX6tFrZlTQdpB8tAeiMIo0PsRyp/mHgDTacKclcqA=
+=8LVx
-----END PGP SIGNATURE-----
diff --git a/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz b/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz
index 4a1b8f7d55..5f9e7569a7 100644
--- a/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz
+++ b/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz
Binary files differ
diff --git a/systems/win32/miktex/tm/packages/next/pr.ini b/systems/win32/miktex/tm/packages/next/pr.ini
index 6b4d16ec21..28a9c78c4d 100644
--- a/systems/win32/miktex/tm/packages/next/pr.ini
+++ b/systems/win32/miktex/tm/packages/next/pr.ini
@@ -1,13 +1,13 @@
[repository]
-date=1617394531
+date=1617480872
lastupd=miktex-arctrl-bin-2.9 miktex-arctrl-bin-x64-2.9 miktex-asymptote-bin-2.9 miktex-asymptote-bin-x64-2.9 miktex-autosp-bin-2.9 miktex-autosp-bin-x64-2.9 miktex-axohelp-bin-2.9 miktex-axohelp-bin-x64-2.9 miktex-bibarts-bin-2.9 miktex-bibarts-bin-x64-2.9 miktex-bibtex-bin-2.9 miktex-bibtex-bin-x64-2.9 miktex-bibtex8bit-bin-2.9 miktex-bibtex8bit-bin-x64-2.9 miktex-bzip2-bin-2.9 miktex-bzip2-bin-x64-2.9 miktex-cairo-bin-2.9 miktex-cairo-bin-x64-2.9 miktex-chktex-bin-2.9 miktex-chktex-bin-x64-2.9
-lstdigest=b921071bb0074de939e189cbd4d4649c
+lstdigest=4c61f71461ef0cbacf2e86d948f030df
numpkg=4077
relstate=next
-version=7762
+version=7763
;;;;This configuration file is signed by a MiKTeX maintainer. The signature follows.
;;;;-----BEGIN MIKTEX SIGNATURE-----
-;;;; signature/miktex: hZp0uC42Gi2jZypOy/XDRXC0pmPE3yVpu54x2AyKVC61TwSCKur5TmW0CcJOEyLyE99t5nmr04Q0UEEodP+6f5TCRgDy/cjyH+tvw5b8TTDdcsXNY3Yoey2Afm5MZliRi6WwIvbXgU7WWDjgNQxcuEVo35qLo3pIWce/qH2bGjY0vZR1EsOOcWnyLQhteBMrsAQFi6S9FmD7dhBkhaXXSZ7ftHzlXW7PWW11PB+EIRPAE9JQf9sAhl0LoCcJU81g4QxXYOH87vCHDe8rs5PHBINTMv8zM/gFBjXEuN+3WQfQn2qYAVeO3NeMt8qAj8N0bq5Cr0tVHjKQWm/fH6I/SQ==
+;;;; signature/miktex: BbU0F+ul1CNWGwFYNBe0AWew+9926Ca/of+IoVCLV1iX+pBa40uuuXJxJRhLy60TCju41uoeGW2BuItJ+awJG5AH5SSShCwxgM8HiRPbFszC5tAlfhU5t3BRr3t9irvfrdAIFTIOKrC0m/a2QKexeSaQPWR4qjuPoG4v3TxcozMDFbCYVxrWsCZAO5i7rYoHMRJPChktsvu/G89WFWl6YBDiVAupuqKq7fdBlqphNqRo/+e6Yj20Op8CMkaoMex/W9BTA4hDhvm0Fv3QSWa9BcztmuZubQmKi4kyY4j2Cb01czY8Yb8f/yaqaUZkxKgRgVhFW0AapHiLVZJjkhfcBQ==
;;;;-----END MIKTEX SIGNATURE-----
diff --git a/systems/win32/miktex/tm/packages/pr.ini b/systems/win32/miktex/tm/packages/pr.ini
index 4e29cea3a4..be028d4ccd 100644
--- a/systems/win32/miktex/tm/packages/pr.ini
+++ b/systems/win32/miktex/tm/packages/pr.ini
@@ -1,13 +1,13 @@
[repository]
-date=1617394276
+date=1617480666
lastupd=addfont babel beamer beamer-rl cmpj covington datetime2 easybook fontsize gastex graphics-def gridpapers hyph-utf8 intopdf jlreq koma-script l3backend langsci latexindent lshort-korean
-lstdigest=76a72b4959c68dd5fc3ca72565af6c8e
+lstdigest=9e103c3bca14dea2eb686d29ec005c07
numpkg=4077
relstate=stable
-version=7762
+version=7763
;;;;This configuration file is signed by a MiKTeX maintainer. The signature follows.
;;;;-----BEGIN MIKTEX SIGNATURE-----
-;;;; signature/miktex: u82HklTuFMWJDSyfS4FIfs+sFcLOT7Gb9PxqWayvqygC8BJj6OKrdiMKoaIsH3xZOEPy67nncnS8px+HBsTFC4j0g2/BgaPHVgeGveoys7MrPJkgORSVRQLY3Cd2CKgxdlkDu+8B4LOqcXLFwGMgtYvhRIRx2pKDpxTj0hZSfq2/dUEUMacRT6hkJmajVBbUlR0eKWx5C0VvXqfWkbTMRWrDSeYBOtRaHBLOzNQd7PwghgBP4rZLiWq7BYkf4vaDDQe76XsA7p5o8xheabvprhRR0FVgDOIVg2p4UQ66Iq/sniZr9SK+kycx7B01LP44MFedOYs5+tDZ5si2s7mBXA==
+;;;; signature/miktex: exnp2tfbiP0oxVgZo+JQz9BgqBUEt1NH4089/WooSikrvtS/lH+e6IIIgC04b1iW5Tcj+SL688qEkmGH6H9xg6o4qWKY5XPTyvXUem5augnGYzkDy5rQbXHBtO9w04IHbD3h+maRu547OuICGrfeaPqS00WE5qCejWallpce5hyQpJY4xV+4xhwK6XBjdEjmvMbzyN4TEoscPPg+6Jkbi3BWbCHGkj7nwDYP62Unl4yo/MeJYmWUbVRfaS0tEIk0Kvr+gIMiuMfbpqmJaMLOZzMe9sovbXE8N+RYdy8crTTq/hbSvSIVWY+yltYBIkNTcR7Cfv+JOb3eMurPg1IHIQ==
;;;;-----END MIKTEX SIGNATURE-----
diff --git a/timestamp b/timestamp
index b5aefaa9fb..d1f94e71c0 100644
--- a/timestamp
+++ b/timestamp
@@ -2,4 +2,4 @@
# The source CTAN of this site's material:
dante.ctan.org
# The year-month-day-hour-minute of this site's material:
-2021-04-03-02-02
+2021-04-04-02-02