From 17bd2511e84253673e2243c93fe46d4ec47668b6 Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Fri, 6 Mar 2020 18:15:08 +0800 Subject: [PATCH 01/16] Fix release zipping --- Makefile | 8 ++- build.lua | 5 +- gbt7714.dtx | 53 ++----------------- gbt7714.ins | 30 ++--------- test/check.sh | 1 - .../2005/gbt7714-2005-author-year.bst | 2 +- .../2005/gbt7714-2005-numerical.bst | 2 +- variants/gbt7714-variants.ins | 48 +++++++++++++++++ .../thu/thuthesis-author-year.bst | 2 +- .../thu/thuthesis-bachelor.bst | 2 +- .../thu/thuthesis-numeric.bst | 2 +- .../ustc/ustcthesis-authoryear.bst | 2 +- .../ustc/ustcthesis-bachelor.bst | 2 +- .../ustc/ustcthesis-numerical.bst | 2 +- 14 files changed, 71 insertions(+), 90 deletions(-) rename {versions => variants}/2005/gbt7714-2005-author-year.bst (99%) rename {versions => variants}/2005/gbt7714-2005-numerical.bst (99%) create mode 100644 variants/gbt7714-variants.ins rename {versions => variants}/thu/thuthesis-author-year.bst (99%) rename {versions => variants}/thu/thuthesis-bachelor.bst (99%) rename {versions => variants}/thu/thuthesis-numeric.bst (99%) rename {versions => variants}/ustc/ustcthesis-authoryear.bst (99%) rename {versions => variants}/ustc/ustcthesis-bachelor.bst (99%) rename {versions => variants}/ustc/ustcthesis-numerical.bst (99%) diff --git a/Makefile b/Makefile index 254885d..be54faf 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,7 @@ doc : $(NAME).pdf %.sty %-numerical.bst %-author-year.bst : %.ins %.dtx xetex $(TEXOPTS) $< + xetex $(TEXOPTS) variants/gbt7714-variants.ins $(NAME).pdf : $(NAME).dtx FORCE_MAKE $(LATEXMK) $< @@ -46,5 +47,8 @@ cleanall : install : l3build install -ctan : - l3build ctan +ctan : test doc + ln -sf . $(NAME) + zip -r ../$(NAME).zip $(NAME)/{README.md,LICENSE,$(NAME).dtx,$(NAME).ins,\ + $(NAME).pdf,$(NAME).sty,$(NAME)-author-year.bst,$(NAME)-numerical.bst} + rm $(NAME) diff --git a/build.lua b/build.lua index 42c434b..6070265 100644 --- a/build.lua +++ b/build.lua @@ -6,12 +6,9 @@ testfiledir = "./test/testfiles" testsuppdir = testfiledir .. "/support" installfiles = {"*.sty", "*.bst"} -sourcefiles = {"*.dtx"} -tagfiles = {"*.dtx", "*.ins", "CHANGELOG.md"} +tagfiles = {"*.dtx", "*.ins", "CHANGELOG.md", "variants/*.ins"} textfiles = {"*.md", "LICENSE"} -unpackfiles = {"*.dtx"} - checkengines = {"xetex"} stdengine = "xetex" diff --git a/gbt7714.dtx b/gbt7714.dtx index f022e8a..57254ac 100644 --- a/gbt7714.dtx +++ b/gbt7714.dtx @@ -12,58 +12,15 @@ % and version 1.3c or later is part of all distributions of LaTeX % version 2005/12/01 or later. % -%<*internal> -\iffalse -\fi -\begingroup - \def\nameoflatex{LaTeX2e} -\expandafter\endgroup\ifx\nameoflatex\fmtname\else -\csname fi\endcsname -% -%<*install> -\input docstrip.tex -\keepsilent -\askforoverwritefalse -\preamble -------------------------------------------------------------------- -GB/T 7714-2015 BibTeX Style -https://github.com/CTeX-org/gbt7714-bibtex-style -Version: 2020/03/04 v2.0 -------------------------------------------------------------------- -Copyright (C) 2016-\the\year by Zeping Lee -------------------------------------------------------------------- -This file may be distributed and/or modified under the -conditions of the LaTeX Project Public License, either version 1.3c -of this license or (at your option) any later version. -The latest version of this license is in - https://www.latex-project.org/lppl.txt -and version 1.3c or later is part of all distributions of LaTeX -version 2005/12/01 or later. -------------------------------------------------------------------- -\endpreamble -\nopostamble -\generate{ - \file{\jobname.sty}{\from{\jobname.dtx}{package}} - \file{\jobname-numerical.bst}{\from{\jobname.dtx}{2015,numerical}} - \file{\jobname-author-year.bst}{\from{\jobname.dtx}{2015,authoryear}} -} -\endbatchfile -% -%<*internal> -\fi -% -%<*driver> -\ProvidesFile{\jobname.dtx} -% +% \fi +% +% \iffalse %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesPackage{gbt7714} -%<*package> - [2020/03/04 v2.0 GB/T 7714-2015 BibTeX Style] -% +% [2020/03/04 v2.0 GB/T 7714-2015 BibTeX Style] % %<*driver> \documentclass[a4paper]{ltxdoc} -\usepackage[paper=a4paper,margin=1in,left=1.25in]{geometry} \usepackage{hypdoc} \usepackage[UTF8]{ctex} \usepackage{caption} @@ -119,7 +76,7 @@ version 2005/12/01 or later. % % % -% \GetFileInfo{\jobname.dtx} +% \GetFileInfo{gbt7714.sty} % % \title{GB/T 7714-2015 \BibTeX{} style} % \author{Zeping Lee\thanks{zepinglee AT gmail.com}} diff --git a/gbt7714.ins b/gbt7714.ins index 7f09b09..a2161d1 100644 --- a/gbt7714.ins +++ b/gbt7714.ins @@ -20,32 +20,8 @@ version 2005/12/01 or later. \endpreamble \nopostamble \generate{ - \file{\jobname.sty}{\from{\jobname.dtx}{package}} - \file{\jobname-numerical.bst}{\from{\jobname.dtx}{2015,numerical}} - \file{\jobname-author-year.bst}{\from{\jobname.dtx}{2015,authoryear}} - \file{versions/2005/\jobname-2005-numerical.bst}{ - \from{\jobname.dtx}{2005,numerical} - } - \file{versions/2005/\jobname-2005-author-year.bst}{ - \from{\jobname.dtx}{2005,authoryear} - } - \file{versions/thu/thuthesis-numeric.bst}{ - \from{\jobname.dtx}{thu,2005,numerical} - } - \file{versions/thu/thuthesis-author-year.bst}{ - \from{\jobname.dtx}{thu,2005,authoryear} - } - \file{versions/thu/thuthesis-bachelor.bst}{ - \from{\jobname.dtx}{2015,numerical,noslsn} - } - \file{versions/ustc/ustcthesis-authoryear.bst}{ - \from{\jobname.dtx}{ustc,2015,authoryear} - } - \file{versions/ustc/ustcthesis-numerical.bst}{ - \from{\jobname.dtx}{ustc,2015,numerical} - } - \file{versions/ustc/ustcthesis-bachelor.bst}{ - \from{\jobname.dtx}{ustc,2015,numerical,nouppercase,nomark,italicjournal} - } + \file{gbt7714.sty}{\from{gbt7714.dtx}{package}} + \file{gbt7714-numerical.bst}{\from{gbt7714.dtx}{2015,numerical}} + \file{gbt7714-author-year.bst}{\from{gbt7714.dtx}{2015,authoryear}} } \endbatchfile diff --git a/test/check.sh b/test/check.sh index fef4bc9..9c7c71c 100644 --- a/test/check.sh +++ b/test/check.sh @@ -42,7 +42,6 @@ for file in $testfiledir/*.dtx; do if ! diff -q "$bblfile" "$stdfile"; then echo "fails"; succuss=false; - cp -f "$bblfile" "$stdfile"; fi done diff --git a/versions/2005/gbt7714-2005-author-year.bst b/variants/2005/gbt7714-2005-author-year.bst similarity index 99% rename from versions/2005/gbt7714-2005-author-year.bst rename to variants/2005/gbt7714-2005-author-year.bst index 5e48d69..89d6566 100644 --- a/versions/2005/gbt7714-2005-author-year.bst +++ b/variants/2005/gbt7714-2005-author-year.bst @@ -1,5 +1,5 @@ %% -%% This is file `versions/2005/gbt7714-2005-author-year.bst', +%% This is file `variants/2005/gbt7714-2005-author-year.bst', %% generated with the docstrip utility. %% %% The original source files were: diff --git a/versions/2005/gbt7714-2005-numerical.bst b/variants/2005/gbt7714-2005-numerical.bst similarity index 99% rename from versions/2005/gbt7714-2005-numerical.bst rename to variants/2005/gbt7714-2005-numerical.bst index 2b294db..f6bdfe2 100644 --- a/versions/2005/gbt7714-2005-numerical.bst +++ b/variants/2005/gbt7714-2005-numerical.bst @@ -1,5 +1,5 @@ %% -%% This is file `versions/2005/gbt7714-2005-numerical.bst', +%% This is file `variants/2005/gbt7714-2005-numerical.bst', %% generated with the docstrip utility. %% %% The original source files were: diff --git a/variants/gbt7714-variants.ins b/variants/gbt7714-variants.ins new file mode 100644 index 0000000..7657b4b --- /dev/null +++ b/variants/gbt7714-variants.ins @@ -0,0 +1,48 @@ +\input docstrip.tex +\keepsilent +\askforoverwritefalse +\preamble +------------------------------------------------------------------- +GB/T 7714-2015 BibTeX Style +https://github.com/CTeX-org/gbt7714-bibtex-style +Version: 2020/03/04 v2.0 +------------------------------------------------------------------- +Copyright (C) 2016-\the\year by Zeping Lee +------------------------------------------------------------------- +This file may be distributed and/or modified under the +conditions of the LaTeX Project Public License, either version 1.3c +of this license or (at your option) any later version. +The latest version of this license is in + https://www.latex-project.org/lppl.txt +and version 1.3c or later is part of all distributions of LaTeX +version 2005/12/01 or later. +------------------------------------------------------------------- +\endpreamble +\nopostamble +\generate{ + \file{variants/2005/gbt7714-2005-numerical.bst}{ + \from{gbt7714.dtx}{2005,numerical} + } + \file{variants/2005/gbt7714-2005-author-year.bst}{ + \from{gbt7714.dtx}{2005,authoryear} + } + \file{variants/thu/thuthesis-numeric.bst}{ + \from{gbt7714.dtx}{thu,2005,numerical} + } + \file{variants/thu/thuthesis-author-year.bst}{ + \from{gbt7714.dtx}{thu,2005,authoryear} + } + \file{variants/thu/thuthesis-bachelor.bst}{ + \from{gbt7714.dtx}{2015,numerical,noslsn} + } + \file{variants/ustc/ustcthesis-authoryear.bst}{ + \from{gbt7714.dtx}{ustc,2015,authoryear} + } + \file{variants/ustc/ustcthesis-numerical.bst}{ + \from{gbt7714.dtx}{ustc,2015,numerical} + } + \file{variants/ustc/ustcthesis-bachelor.bst}{ + \from{gbt7714.dtx}{ustc,2015,numerical,nouppercase,nomark,italicjournal} + } +} +\endbatchfile diff --git a/versions/thu/thuthesis-author-year.bst b/variants/thu/thuthesis-author-year.bst similarity index 99% rename from versions/thu/thuthesis-author-year.bst rename to variants/thu/thuthesis-author-year.bst index 9c1f1c9..cabc59f 100644 --- a/versions/thu/thuthesis-author-year.bst +++ b/variants/thu/thuthesis-author-year.bst @@ -1,5 +1,5 @@ %% -%% This is file `versions/thu/thuthesis-author-year.bst', +%% This is file `variants/thu/thuthesis-author-year.bst', %% generated with the docstrip utility. %% %% The original source files were: diff --git a/versions/thu/thuthesis-bachelor.bst b/variants/thu/thuthesis-bachelor.bst similarity index 99% rename from versions/thu/thuthesis-bachelor.bst rename to variants/thu/thuthesis-bachelor.bst index 75d3a0f..b6e5032 100644 --- a/versions/thu/thuthesis-bachelor.bst +++ b/variants/thu/thuthesis-bachelor.bst @@ -1,5 +1,5 @@ %% -%% This is file `versions/thu/thuthesis-bachelor.bst', +%% This is file `variants/thu/thuthesis-bachelor.bst', %% generated with the docstrip utility. %% %% The original source files were: diff --git a/versions/thu/thuthesis-numeric.bst b/variants/thu/thuthesis-numeric.bst similarity index 99% rename from versions/thu/thuthesis-numeric.bst rename to variants/thu/thuthesis-numeric.bst index 5421033..af47fe4 100644 --- a/versions/thu/thuthesis-numeric.bst +++ b/variants/thu/thuthesis-numeric.bst @@ -1,5 +1,5 @@ %% -%% This is file `versions/thu/thuthesis-numeric.bst', +%% This is file `variants/thu/thuthesis-numeric.bst', %% generated with the docstrip utility. %% %% The original source files were: diff --git a/versions/ustc/ustcthesis-authoryear.bst b/variants/ustc/ustcthesis-authoryear.bst similarity index 99% rename from versions/ustc/ustcthesis-authoryear.bst rename to variants/ustc/ustcthesis-authoryear.bst index 66b2dfc..81bdb59 100644 --- a/versions/ustc/ustcthesis-authoryear.bst +++ b/variants/ustc/ustcthesis-authoryear.bst @@ -1,5 +1,5 @@ %% -%% This is file `versions/ustc/ustcthesis-authoryear.bst', +%% This is file `variants/ustc/ustcthesis-authoryear.bst', %% generated with the docstrip utility. %% %% The original source files were: diff --git a/versions/ustc/ustcthesis-bachelor.bst b/variants/ustc/ustcthesis-bachelor.bst similarity index 99% rename from versions/ustc/ustcthesis-bachelor.bst rename to variants/ustc/ustcthesis-bachelor.bst index 4a188b4..95567ca 100644 --- a/versions/ustc/ustcthesis-bachelor.bst +++ b/variants/ustc/ustcthesis-bachelor.bst @@ -1,5 +1,5 @@ %% -%% This is file `versions/ustc/ustcthesis-bachelor.bst', +%% This is file `variants/ustc/ustcthesis-bachelor.bst', %% generated with the docstrip utility. %% %% The original source files were: diff --git a/versions/ustc/ustcthesis-numerical.bst b/variants/ustc/ustcthesis-numerical.bst similarity index 99% rename from versions/ustc/ustcthesis-numerical.bst rename to variants/ustc/ustcthesis-numerical.bst index ea420c6..b3e8cdd 100644 --- a/versions/ustc/ustcthesis-numerical.bst +++ b/variants/ustc/ustcthesis-numerical.bst @@ -1,5 +1,5 @@ %% -%% This is file `versions/ustc/ustcthesis-numerical.bst', +%% This is file `variants/ustc/ustcthesis-numerical.bst', %% generated with the docstrip utility. %% %% The original source files were: From f414e98f867f0207c87a831cbafee007713b0cc1 Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Fri, 6 Mar 2020 18:42:35 +0800 Subject: [PATCH 02/16] Update test files --- .gitignore | 2 +- Makefile | 6 ++- test/check.sh | 54 ------------------------ test/save.sh | 2 +- test/test.sh | 77 ++++++++++++++++++++++++++++++++++ test/testbst/support/cases.bib | 0 test/testbst/support/test.tex | 15 +++++++ 7 files changed, 98 insertions(+), 58 deletions(-) delete mode 100644 test/check.sh create mode 100644 test/test.sh delete mode 100644 test/testbst/support/cases.bib create mode 100644 test/testbst/support/test.tex diff --git a/.gitignore b/.gitignore index 0b8bb61..2e72e43 100644 --- a/.gitignore +++ b/.gitignore @@ -29,7 +29,7 @@ build/ ## Bibliography auxiliary files (bibtex/biblatex/biber): *.bbl -!testbst/**/*.bbl +!test/**/*.bbl *.bcf *.blg *-blx.aux diff --git a/Makefile b/Makefile index be54faf..8b401fc 100644 --- a/Makefile +++ b/Makefile @@ -8,13 +8,15 @@ TEXOPTS = -file-line-error -halt-on-error -interaction=nonstopmode LATEXMK = latexmk -xelatex $(TEXOPTS) testbst : bst - bash test/check.sh + bash test/test.sh test: testbst l3build check -save : +savebst: bash test/save.sh + +save : savebst l3build save --quiet super l3build save --quiet numbers l3build save --quiet authoryear diff --git a/test/check.sh b/test/check.sh deleted file mode 100644 index 9c7c71c..0000000 --- a/test/check.sh +++ /dev/null @@ -1,54 +0,0 @@ -testfiledir="test/testbst" -testsuppdir="$testfiledir/support" -unpackdir="build/unpacked"; -testdir="build/test"; -texoptions="-file-line-error -halt-on-error -interaction=nonstopmode" -unpackexe="xetex $texoptions" -checkexe="xelatex $texoptions -no-pdf" -bibtexexe="bibtex" - - -if [ ! -d "$unpackdir" ]; then - mkdir -p "$unpackdir"; -fi -cp -f "gbt7714.dtx" "$unpackdir"; - - -if [ ! -d "$testdir" ]; then - mkdir -p "$testdir"; -fi -cp -f "$testfiledir/support/test.aux" "$testdir"; -cp -f "$testfiledir/support/standard.bib" "$testdir"; - - -succuss=true; -echo "Running checks on"; - -for file in $testfiledir/*.dtx; do - filename=$(basename $file); - testname=$(basename $filename .dtx); - echo " $testname"; - - cp -f "$file" "$unpackdir"; # test bib file - - ( cd "$unpackdir"; $unpackexe $filename > /dev/null; ) - cp -f "$unpackdir/test.bst" "$testdir" - cp -f "$unpackdir/test.bib" "$testdir" - - ( cd $testdir; $bibtexexe test > /dev/null; ) - - bblfile="$testdir/test.bbl"; - stdfile="$testfiledir/$testname.bbl"; - if ! diff -q "$bblfile" "$stdfile"; then - echo "fails"; - succuss=false; - fi -done - -if $succuss; then - echo ""; - echo "All checks passed"; - echo ""; -else - exit 1; -fi diff --git a/test/save.sh b/test/save.sh index 2c91d11..322502f 100644 --- a/test/save.sh +++ b/test/save.sh @@ -38,7 +38,7 @@ for file in $testfiledir/*.dtx; do bblfile="$testdir/test.bbl"; stdfile="$testfiledir/$testname.bbl"; - if ! diff -q "$bblfile" "$stdfile"; then + if ! diff -q "$bblfile" "$stdfile" 2> /dev/null; then cp -f "$bblfile" "$stdfile"; fi done diff --git a/test/test.sh b/test/test.sh new file mode 100644 index 0000000..85fe530 --- /dev/null +++ b/test/test.sh @@ -0,0 +1,77 @@ +testfiledir="test/testbst" +testsuppdir="$testfiledir/support" +unpackdir="build/unpacked"; +testdir="build/test"; +texoptions="-file-line-error -halt-on-error -interaction=nonstopmode" +unpackexe="xetex $texoptions" +checkexe="xelatex $texoptions -no-pdf" +bibtexexe="bibtex" + + +if [ ! -d "$unpackdir" ]; then + mkdir -p "$unpackdir"; +fi +cp -f "gbt7714.dtx" "$unpackdir"; + + +if [ ! -d "$testdir" ]; then + mkdir -p "$testdir"; +fi +cp -f "$testfiledir/support/test.aux" "$testdir"; +cp -f "$testfiledir/support/standard.bib" "$testdir"; + + +if [ -z "$1" ]; then + succuss=true; + echo "Running checks on"; + + for file in $testfiledir/*.dtx; do + filename=$(basename $file); + testname=$(basename $filename .dtx); + echo " $testname"; + + cp -f "$file" "$unpackdir"; # test bib file + + ( cd "$unpackdir"; $unpackexe $filename > /dev/null; ) + cp -f "$unpackdir/test.bst" "$testdir" + cp -f "$unpackdir/test.bib" "$testdir" + + ( cd $testdir; $bibtexexe test > /dev/null; ) + + bblfile="$testdir/test.bbl"; + stdfile="$testfiledir/$testname.bbl"; + if ! diff -q "$bblfile" "$stdfile" 2> /dev/null; then + echo "fails"; + succuss=false; + fi + done + + if $succuss; then + echo ""; + echo "All checks passed"; + echo ""; + else + exit 1; + fi + +else + cp -f "$testfiledir/support/test.tex" "$testdir"; + cp -f "gbt7714.sty" "$testdir"; + testname="$1"; + filename="$testname.dtx"; + file="$testfiledir/$testname.dtx"; + + cp -f "$file" "$unpackdir"; # test bib file + + ( cd "$unpackdir"; $unpackexe $filename > /dev/null; ) + cp -f "$unpackdir/test.bst" "$testdir"; + cp -f "$unpackdir/test.bib" "$testdir"; + + ( cd "$testdir"; latexmk -xelatex test > /dev/null; ) + + bblfile="$testdir/test.bbl"; + stdfile="$testfiledir/$testname.bbl"; + if ! diff -q "$bblfile" "$stdfile" > /dev/null; then + cp -f "$bblfile" "$stdfile"; + fi +fi diff --git a/test/testbst/support/cases.bib b/test/testbst/support/cases.bib deleted file mode 100644 index e69de29..0000000 diff --git a/test/testbst/support/test.tex b/test/testbst/support/test.tex new file mode 100644 index 0000000..ee5e06d --- /dev/null +++ b/test/testbst/support/test.tex @@ -0,0 +1,15 @@ +\documentclass{ctexart} + +\usepackage{gbt7714} + +\begin{document} + +\citestyle{super} + +Foo +\nocite{*} + +\bibliographystyle{test} +\bibliography{standard,test} + +\end{document} From 5ad7a2f1f8002985ccb8715fa9a2aefe8d1f77aa Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Sat, 7 Mar 2020 19:20:08 +0800 Subject: [PATCH 03/16] Add test for npr --- test/testbst/npr.bbl | 897 ++++++++++++++++ test/testbst/npr.dtx | 152 +++ variants/gbt7714-variants.ins | 3 + variants/npr/npr.bst | 1872 +++++++++++++++++++++++++++++++++ 4 files changed, 2924 insertions(+) create mode 100644 test/testbst/npr.bbl create mode 100644 test/testbst/npr.dtx create mode 100644 variants/npr/npr.bst diff --git a/test/testbst/npr.bbl b/test/testbst/npr.bbl new file mode 100644 index 0000000..5e10d84 --- /dev/null +++ b/test/testbst/npr.bbl @@ -0,0 +1,897 @@ +\begin{thebibliography}{134} +\providecommand{\natexlab}[1]{#1} +\providecommand{\url}[1]{#1} +\expandafter\ifx\csname urlstyle\endcsname\relax\else + \urlstyle{same}\fi +\expandafter\ifx\csname href\endcsname\relax + \def\doi#1{#1}\else + \def\doi#1{\href{https://doi.org/#1}{#1}}\fi + +\bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} +陈登原. +\newblock 国史旧闻: 第 1 卷\allowbreak[M]. +\newblock 北京: 中华书局, 2000: 29. + +\bibitem[哈里森·沃尔德伦(2012)]{hali2012jingji} +哈里森·沃尔德伦. +\newblock 经济数学与金融数学\allowbreak[M]. +\newblock 谢远涛, 译. +\newblock 北京: 中国人民大学出版社, 2012: 235-236. + +\bibitem[北京市政协民族和宗教委员会\ + 等(2012)北京市政协民族和宗教委员会 and + 北京联合大学民族与宗教研究所]{beijing2012lidai} +北京市政协民族和宗教委员会, + 北京联合大学民族与宗教研究所. +\newblock 历代王朝与民族宗教\allowbreak[M]. +\newblock 北京: 民族出版社, 2012: 112. + +\bibitem[全国信息与文献标准化技术委员会(2010{\natexlab{a}})]{quanguo2010doubai} +全国信息与文献标准化技术委员会. +\newblock 信息与文献\quad 都柏林核心元数据元素集: GB/T + 25100—2010\allowbreak[S]. +\newblock 北京: 中国标准出版社, 2010{\natexlab{a}}: 2-3. + +\bibitem[徐光宪\ 等(2010)徐光宪 and + 王祥云]{xuguangxian2010wuzhijiegou} +徐光宪, 王祥云. +\newblock 物质结构\allowbreak[M]. +\newblock 北京: 科学出版社, 2010. + +\bibitem[顾炎武(1992)]{guyanwu1992changping} +顾炎武. +\newblock 昌平山水记:京东考古录\allowbreak[M]. +\newblock 北京: 北京古籍出版社, 1992. + +\bibitem[王夫之(1865(清同治四年))]{wangfuzhi1865songlun} +王夫之. +\newblock 宋论\allowbreak[M]. +\newblock 刻本. +\newblock 金陵: 湘乡曾国荃, 1865(清同治四年). + +\bibitem[牛志明\ 等(2012)牛志明, 斯温兰德, and + 雷光春]{niuzhiming2012zonghe} +牛志明, 斯温兰德, 雷光春. +\newblock 综合湿地管理国际研讨会论文集\allowbreak[C]. +\newblock 北京: 海洋出版社, 2012. + +\bibitem[中国第一历史档案馆\ 等(2001)中国第一历史档案馆 and + 辽宁省档案馆]{zhongguo2001zhongguo} +中国第一历史档案馆, 辽宁省档案馆. +\newblock 中国明朝档案总汇\allowbreak[A]. +\newblock 桂林: 广西师范大学出版社, 2001. + +\bibitem[杨保军(2012)]{yangbaojun2012xinwen} +杨保军. +\newblock 新闻道德论\allowbreak[D/OL]. +\newblock 北京: 中国人民大学出版社, 2012\allowbreak[2012-11-01]. +\newblock + \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20101104-BPO-889-1023&cult=CN}. + +\bibitem[赵学功(2001)]{zhaoxuegong2001dangdai} +赵学功. +\newblock 当代美国外交\allowbreak[M/OL]. +\newblock 北京: 社会科学文献出版社, 2001\allowbreak[2014-06-11]. +\newblock \url{http://www.cadal.zju.edu.cn/book/trySinglePage/33023884/1}. + +\bibitem[同济大学土木工程防灾国家重点实验室(2011)]{tongji2011wenchuan} +同济大学土木工程防灾国家重点实验室. +\newblock 汶川地震灾害研究\allowbreak[M/OL]. +\newblock 上海: 同济大学出版社, 2011: 5-6\allowbreak[2013-05-09]. +\newblock + \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20120406-YPT-889-0010}. + +\bibitem[中国造纸学会(2003)]{zaozhi2003zhongguo} +中国造纸学会. +\newblock 中国造纸年鉴:2003\allowbreak[M/OL]. +\newblock 北京: 中国轻工业出版社, 2003\allowbreak[2014-04-25]. +\newblock \url{http://www.cadal.zju.edu.cn/book/view/25010080}. + +\bibitem[Peebles(2001)]{peebles2001probability} +PEEBLES~P~Z, Jr. +\newblock Probability, random variables, and random signal + principles\allowbreak[M]. +\newblock 4th ed. +\newblock New York: McGraw-Hill, 2001. + +\bibitem[Yufin(2000)]{yufin2000geoecology} +YUFIN~S~A. +\newblock 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}\allowbreak[C]. +\newblock Rotterdam: A. A. Balkema, 2000. + +\bibitem[Baldock(2011)]{baldock2011developing} +BALDOCK~P. +\newblock Developing early childhood services: Past, present and + future\allowbreak[M/OL]. +\newblock Rotterdam: Open University Press, 2011: 105\allowbreak[2012-11-27]. +\newblock \url{http://lib.myilibrary.com/Open.aspx?id=312377}. + +\bibitem[Fan et~al.(2013)Fan and Sommers]{fan2013food} +FAN~X, SOMMERS~C~H. +\newblock Food irradiation research and technology\allowbreak[M/OL]. +\newblock 2nd ed. +\newblock Ames, Iowa: Blackwell Publishing, 2013: 25-26\allowbreak[2014-06-26]. +\newblock + \url{http://onlinelibrary.wiley.com/doi/10.1002/9781118422557.ch2/summary}. + +\bibitem[wan(2011)]{wangfuzhi2011zhouyi} +周易外传:卷 5\allowbreak[M]//\allowbreak +王夫之. +\newblock 船山全书: 第 6 册. +\newblock 长沙: 岳麓书社, 2011: 1109. + +\bibitem[程根伟(1999)]{chenggenwei1999hongshui} +程根伟. +\newblock 1998 + 年长江洪水的成因与减灾对策\allowbreak[M]//\allowbreak +许厚泽, 赵其国. +\newblock 长江流域洪涝灾害与科技对策. +\newblock 北京: 科学出版社, 1999: 32-36. + +\bibitem[陈晋镳\ 等(1980)陈晋镳, 张惠民, 朱士兴, 赵震, and + 王振刚]{chenjinbiao1980jixian} +陈晋镳, 张惠民, 朱士兴, 等. +\newblock 蓟县震旦亚界研究\allowbreak[M]//\allowbreak +中国地质科学院天津地质矿产研究所. +\newblock 中国震旦亚界. +\newblock 天津: 天津科学技术出版社, 1980: 56-114. + +\bibitem[马克思(2013)]{makesi2013zhengzhi} +马克思. +\newblock 政治经济学批判\allowbreak[M]//\allowbreak +马克思, 恩格斯. +\newblock 马克思恩格斯全集: 第 35 卷. +\newblock 北京: 人民出版社, 2013: 302. + +\bibitem[贾东琴\ 等(2011)贾东琴 and 柯平]{jiadongqin2011mianxiang} +贾东琴, 柯平. +\newblock + 面向数字素养的高校图书馆数字服务体系研究\allowbreak[C]//\allowbreak +中国图书馆学会. +\newblock 中国图书馆学会年会论文集: 2011 年卷. +\newblock 北京: 国家图书馆出版社, 2011: 45-52. + +\bibitem[Weinstein et~al.(1974)Weinstein and Swertz]{weinstein1974pathogenic} +WEINSTEIN~L, SWERTZ~M~N. +\newblock Pathogenic properties of invading + microorganism\allowbreak[M]//\allowbreak +SODEMAN~W~A, Jr, SODEMAN~W~A. +\newblock Pathologic physiology: mechanisms of disease. +\newblock Philadelphia: Saunders, 1974: 745-772. + +\bibitem[Roberson et~al.(2011)Roberson and Burneson]{roberson2011drinking} +ROBERSON~J~A, BURNESON~E~G. +\newblock Drinking water standards, regulations and + goals\allowbreak[M/OL]//\allowbreak +{American Water Works Association}. +\newblock Water quality \& treatment: a handbook on drinking water. +\newblock 6th ed. +\newblock New York: McGraw-Hill, 2011: 1.1-1.36\allowbreak[2012-12-10]. +\newblock \url{http://lib.myilibrary.com/Open.aspx?id=291430}. + +\bibitem[中华医学会湖北分会(1984)]{zhonghua1984linchuang} +中华医学会湖北分会. +\newblock 临床内科杂志\allowbreak[J]. +\newblock 1984, 1\penalty0 (1)--. +\newblock 武汉: 中华医学会湖北分会, 1984--. + +\bibitem[中国图书馆学会(1957)]{zhongguo1957tushu} +中国图书馆学会. +\newblock 图书馆学通讯\allowbreak[J]. +\newblock 1957\penalty0 (1)--1990\penalty0 (4). +\newblock 北京: 北京图书馆, 1957--1990. + +\bibitem[{American Association for the Advancement of + Science}(1883)]{aaas1883science} +{American Association for the Advancement of Science}. +\newblock Science\allowbreak[J]. +\newblock 1883, 1\penalty0 (1)--. +\newblock Washington, D.C.: American Association for the Advancement of + Science, 1883--. + +\bibitem[袁训来\ 等(2012)袁训来, 陈哲, 肖书海, + et~al.]{yuanxunlai2012lantian} +袁训来, 陈哲, 肖书海, 等. +\newblock 蓝田生物群: + 一个认识多细胞生物起源和早期演化的新窗口\allowbreak[J]. +\newblock 科学通报, 2012, 55\penalty0 (34):\penalty0 3219. + +\bibitem[余建斌(2013)]{yujianbin2013women} +余建斌. +\newblock 我们的科技一直在追赶: + 访中国工程院院长周济\allowbreak[N/OL]. +\newblock 人民日报, 2013-01-12\penalty0 (2)\allowbreak[2013-03-20]. +\newblock + \url{http://paper.people.com.cn/rmrb/html/2013-01/12/nw.D110000renmrb_20130112_5-02.htm}. + +\bibitem[李炳穆(2008{\natexlab{a}})]{libingmu2008hanguo} +李炳穆. +\newblock 韩国图书馆法\allowbreak[J/OL]. +\newblock 图书情报工作, 2008, 52\penalty0 (6):\penalty0 + 6-12\allowbreak[2013-10-25]. +\newblock \url{http://www.docin.com/p-400265742.html}. + +\bibitem[李幼平\ 等(2010)李幼平 and 王莉]{liyouping2010xunzheng} +李幼平, 王莉. +\newblock 循证医学研究方法: 附视频\allowbreak[J/OL]. +\newblock 中华移植杂志(电子版), 2010, 4\penalty0 (3):\penalty0 + 225-228\allowbreak[2014-06-09]. +\newblock \url{http://www.cqvip.com/Read/Read.aspx?id=36658332}. + +\bibitem[武丽丽\ 等(2008)武丽丽, 华一新, 张亚军, + et~al.]{wulili2008beidou} +武丽丽, 华一新, 张亚军, 等. +\newblock “北斗一号”监控管理网设计与实现\allowbreak[J/OL]. +\newblock 测绘科学, 2008, 33\penalty0 (5):\penalty0 + 8-9\allowbreak[2009-10-25]. +\newblock \url{http://vip.calis.edu.cn/CSTJ/Sear.dll?OPAC_CreateDetail}. +\newblock DOI: \doi{10.3771/j.issn.1009-2307.2008.05.002}. + +\bibitem[Kanamori(1998)]{kanamori1998shaking} +KANAMORI~H. +\newblock Shaking without quaking\allowbreak[J]. +\newblock Science, 1998, 279\penalty0 (5359):\penalty0 2063. + +\bibitem[Caplan(1993)]{caplan1993cataloging} +CAPLAN~P. +\newblock Cataloging internet resources\allowbreak[J]. +\newblock The public access computer systems review, 1993, 4\penalty0 + (2):\penalty0 61-66. + +\bibitem[Frese et~al.(2013)Frese, Katus, and Meder]{frese2013next} +FRESE~K~S, KATUS~H~A, MEDER~B. +\newblock Next-generation sequencing: from understanding biology to + personalized medicine\allowbreak[J/OL]. +\newblock Biology, 2013, 2\penalty0 (1):\penalty0 + 378-398\allowbreak[2013-03-19]. +\newblock \url{http://www.mdpi.com/2079-7737/2/1/378}. +\newblock DOI: \doi{10.3390/biology2010378}. + +\bibitem[Myburg et~al.(2014)Myburg, Grattapaglia, Tuskan, + et~al.]{myburg2014genome} +MYBURG~A~A, GRATTAPAGLIA~D, TUSKAN~G~A, et~al. +\newblock The genome of eucalyptus grandis\allowbreak[J/OL]. +\newblock Nature, 2014, 510:\penalty0 356-362\allowbreak[2014-06-25]. +\newblock + \url{http://www.nature.com/nature/journal/v510/n7505/pdf/nature13308.pdf}. +\newblock DOI: \doi{10.1038/nature13308}. + +\bibitem[邓一刚(2006)]{dengyigang2006quanzhineng} +邓一刚. +\newblock 全智能节电器: 200610171314.3\allowbreak[P]. +\newblock 2006-12-13. + +\bibitem[西安电子科技大学(2002)]{xian2002guangzhebian} +西安电子科技大学. +\newblock 光折变自适应光外差探测方法: 01128777.2\allowbreak[P/OL]. +\newblock 2002-03-06\allowbreak[2002-05-28]. +\newblock + \url{http://211.152.9.47/sipoasp/zljs/hyjs-yx-new.asp?recid=01128777.2&leixin=0}. + +\bibitem[Tachibana et~al.(2005)Tachibana, Shimizu, Kobayshi, and + Nakamura]{tachibana2005electronic} +TACHIBANA~R, SHIMIZU~S, KOBAYSHI~S, et~al. +\newblock Electronic watermarking method and system: + US6915001\allowbreak[P/OL]. +\newblock 2005-07-05\allowbreak[2013-11-11]. +\newblock \url{http://www.google.co.in/patents/US6915001}. + +\bibitem[中国互联网络信息中心(2012)]{hulianwang2012di} +中国互联网络信息中心. +\newblock 第 29 + 次中国互联网络发展现状统计报告\allowbreak[R/OL]. +\newblock \allowbreak(2012-01-16)\allowbreak[2013-03-26]. +\newblock + \url{http://www.cnnic.net.cn/hlwfzyj/hlwxzbg/201201/P020120709345264469680}. + +\bibitem[北京市人民政府办公厅(2005)]{beijing2005guanyu} +北京市人民政府办公厅. +\newblock + 关于转发北京市企业投资项目核准暂行实施办法的通知: + 京政办发[2005]37号\allowbreak[A/OL]. +\newblock \allowbreak(2005-07-12)\allowbreak[2011-07-12]. +\newblock \url{http://china.findlaw.cn/fagui/p_1/39934.html}. + +\bibitem[Bawden(2008)]{bawden2008origins} +BAWDEN~D. +\newblock Origins and concepts of digital literacy\allowbreak[EB/OL]. +\newblock \allowbreak(2008-05-04)\allowbreak[2013-03-08]. +\newblock + \url{http://www.soi.city.ac.uk/~dbawden/digital%20literacy%20chapter.pdf}. + +\bibitem[{{Online Computer Library Center, Inc}([2012])}]{oclc2012about} +{Online Computer Library Center, Inc}. +\newblock About {OCLC}: History of cooperation\allowbreak[EB/OL]. +\newblock \allowbreak[2012-03-27]. +\newblock \url{http://www.oclc.org/about/cooperation.en.html}. + +\bibitem[Hopkinson(2009)]{hopkinson2009unimarc} +HOPKINSON~A. +\newblock {UNIMARC} and metadata: Dublin core\allowbreak[EB/OL]. +\newblock \allowbreak(2009-04-22)\allowbreak[2013-03-27]. +\newblock \url{http://archive.ifla.org/IV/ifla64/138-161e.htm}. + +\bibitem[刘乃安(2000)]{liunaian2000shengwu} +刘乃安. +\newblock + 生物质材料热解失重动力学及其分析方法研究\allowbreak[D/OL]. +\newblock 安徽: 中国科学技术大学, 2000: 17-18\allowbreak[2014-08-29]. +\newblock + \url{http://wenku.baidu.com/link?url=GJDJxb4lxBUXnIPmq1XoEGSIr1H8TMLbidW_LjlYu33tpt707u62rKliypU_FBGUmox7ovPNaVIVBALAMd5yfwuKUUOAGYuB7cuZ-BYEhXa}. +\newblock DOI: \doi{10.7666/d.y351065}. + +\bibitem[Deverell et~al.(2013)Deverell and Igler]{deverell2013companion} +DEVERELL~W, IGLER~D. +\newblock A companion to {California} history\allowbreak[D/OL]. +\newblock New York: John Wiley \& Sons, 2013: 21-22\allowbreak[2014-06-24]. +\newblock + \url{http://onlinelibrary.wiley.com/doi/10.1002/9781444305036.ch2/summary}. + +\bibitem[Baker et~al.(1995)Baker and Jackson]{baker1995future} +BAKER~S~K, JACKSON~M~E. +\newblock The future of resource sharing\allowbreak[M]. +\newblock New York: The Haworth Press, 1995. + +\bibitem[Chernik(1982)]{chernik1982introduction} +CHERNIK~B~E. +\newblock Introduction to library services for library + technicians\allowbreak[M]. +\newblock Littleton, Colo.: Libraries Unlimited, Inc., 1982. + +\bibitem[尼葛洛庞帝(1996)]{nigeluopangdi1996shuzi} +尼葛洛庞帝. +\newblock 数字化生存\allowbreak[M]. +\newblock 胡泳, 范海燕, 译. +\newblock 海口: 海南出版社, 1996. + +\bibitem[汪冰(1997)]{wangbing1997dianzi} +汪冰. +\newblock 电子图书馆理论与实践研究\allowbreak[M]. +\newblock 北京: 北京图书馆出版社, 1997: 16. + +\bibitem[杨宗英(1996)]{yangzongying1996dianzi} +杨宗英. +\newblock 电子图书馆的现实模型\allowbreak[J]. +\newblock 中国图书馆学报, 1996\penalty0 (2):\penalty0 24-29. + +\bibitem[Dowler(1995)]{dowler1995research} +DOWLER~L. +\newblock The research university's dilemma: Resource sharing and research in a + transinstitutional environment\allowbreak[J]. +\newblock Journal of library administration, 1995, 21\penalty0 (1/2):\penalty0 + 5-26. + +\bibitem[Sunstein(1996)]{sunstein1996social} +SUNSTEIN~C~R. +\newblock Social norms and social roles\allowbreak[J/OL]. +\newblock Columbia law review, 1996, 96:\penalty0 903\allowbreak[2012-01-26]. +\newblock + \url{http://www.heinonline.org/HOL/Page?handle=hein.journals/clr96&id=913&collection=journals&index=journals/clr}. + +\bibitem[Morri(2010)]{morri2010why} +MORRI~I. +\newblock Why the west rules for now: the patterns of history, and what they + reveal about the future\allowbreak[M]. +\newblock New York: Farrar, Straus and Giroux, 2010. + +\bibitem[罗杰斯(2011)]{luojiesi2011xifang} +罗杰斯. +\newblock 西方文明史: 问题与源头\allowbreak[M]. +\newblock 潘惠霞, 魏婧, 杨艳, 等译. +\newblock 大连: 东北财经大学出版社, 2011: 15-16. + +\bibitem[张忠智(1997)]{zhangzhongzhi1997keji} +张忠智. +\newblock + 科技书刊的总编(主编)的角色要求\allowbreak[C]//\allowbreak +中国科学技术期刊编辑学会. +\newblock + 中国科学技术期刊编辑学会建会十周年学术研讨会论文汇编. +\newblock 北京: 中国科学技术期刊编辑学会学术委员会, 1997: + 33-34. + +\bibitem[中国社会科学院语言研究所词典编辑室(1996)]{zhongguo1996xiandai} +中国社会科学院语言研究所词典编辑室. +\newblock 现代汉语词典\allowbreak[M]. +\newblock 修订本. +\newblock 北京: 商务印书馆, 1996. + +\bibitem[刘彻东(1998)]{liuchedong1998zhongguo} +刘彻东. +\newblock 中国的青年刊物:个性特色为本仁\allowbreak[J]. +\newblock 中国出版, 1998\penalty0 (5):\penalty0 38-39. + +\bibitem[裴丽生(1981)]{peilisheng1981jianghua} +裴丽生. +\newblock + 在中国科协学术期刊编辑工作经验交流会上的讲话\allowbreak[C]//\allowbreak +中国科学技术协会. +\newblock 中国科协学术期刊编辑工作经验交流会资料选. +\newblock 北京: 中国科学技术协会学会工作部, 1981: 2-10. + +\bibitem[张伯伟(2002)]{zhangbowei2002quantang} +张伯伟. +\newblock 全唐五代诗格会考\allowbreak[M]. +\newblock 南京: 江苏古籍出版社, 2002: 288. + +\bibitem[200(2009{\natexlab{a}})]{2009shifutangriji} +师伏堂日记: 第 4 册\allowbreak[M]. +\newblock 北京: 北京图书馆出版社, 2009{\natexlab{a}}: 155. + +\bibitem[胡承正\ 等(2010)胡承正, 周详, and + 缪灵]{huchengzheng2010lilun} +胡承正, 周详, 缪灵. +\newblock 理论物理概论: 上\allowbreak[M]. +\newblock 武汉: 武汉大学出版社, 2010: 112. + +\bibitem[美国妇产科医师学会(2010)]{meiguo2010xinshenger} +美国妇产科医师学会. +\newblock + 新生儿脑病和脑性瘫痪发病机制与病理生理\allowbreak[M]. +\newblock 段涛, 杨慧霞, 译. +\newblock 北京: 人民卫生出版社, 2010: 38-39. + +\bibitem[196(1962)]{1962kangxizidian} +康熙字典: 巳集上: 水部\allowbreak[M]. +\newblock 同文书局影印本. +\newblock 北京: 中华书局, 1962: 50. + +\bibitem[汪昂(1881)]{wangang1881zengding} +汪昂. +\newblock 增订本草备要: 四卷\allowbreak[M]. +\newblock 刻本. +\newblock 京都: 老二酉堂, 1881. + +\bibitem[蒋有绪\ 等(1998)蒋有绪, 郭泉水, 马娟, + et~al.]{jiangyouxu1998zhongguo} +蒋有绪, 郭泉水, 马娟, 等. +\newblock 中国森林群落分类及其群落特征\allowbreak[M]. +\newblock 北京: 科学出版社, 1998. + +\bibitem[中国企业投资协会\ 等(2013)中国企业投资协会, + 台湾并购与私募股权协会, and + 汇盈国际投资集团]{zhongguo2013touzi} +中国企业投资协会, 台湾并购与私募股权协会, + 汇盈国际投资集团. +\newblock 投资台湾: 大陆企业赴台投资指南\allowbreak[M]. +\newblock 北京: 九州出版社, 2013. + +\bibitem[罗斯基(2009)]{luosiji2009zhanqian} +罗斯基. +\newblock 战前中国经济的增长\allowbreak[M]. +\newblock 唐巧天, 毛立坤, 姜修宪, 译. +\newblock 杭州: 浙江大学出版社, 2009. + +\bibitem[库恩(2012)]{kuen2012kexue} +库恩. +\newblock 科学革命的结构: 第 4 版\allowbreak[M]. +\newblock 金吾伦, 胡新和, 译. 2 版. +\newblock 北京: 北京大学出版社, 2012. + +\bibitem[侯文顺(2010)]{houwenshun2010gaofenzi} +侯文顺. +\newblock 高分子物理: + 高分子材料分析、选择与改性\allowbreak[M/OL]. +\newblock 北京: 化学工业出版社, 2010: 119\allowbreak[2012-11-27]. +\newblock + \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20111114-HGS-889-0228}. + +\bibitem[Crawfprd et~al.(1995)Crawfprd and Gorman]{crawfprd1995future} +CRAWFPRD~W, GORMAN~M. +\newblock Future libraries: Dreams, madness, \& reality\allowbreak[M]. +\newblock Chicago: American Library Association, 1995. + +\bibitem[{International Federation of Library Association and + Institutions}(1977)]{ifola1977names} +{International Federation of Library Association and Institutions}. +\newblock Names of persons: National usages for entry in + catalogues\allowbreak[M]. +\newblock 3rd ed. +\newblock London: IFLA International Office for UBC, 1977. + +\bibitem[O'Brien(1994)]{obrien1994introduction} +O'BRIEN~J~A. +\newblock Introduction to information systems\allowbreak[M]. +\newblock 7th ed. +\newblock Burr Ridge, III: Irwin, 1994. + +\bibitem[Kinchy(2012)]{kinchy2012seeds} +KINCHY~A. +\newblock Seeds, sciences, and struggle: the global politics of transgenic + crops\allowbreak[M/OL]. +\newblock Cambridge, Mass.: MIT Press, 2012: 50\allowbreak[2013-07-14]. +\newblock \url{http://lib.myilibrary.com?ID=381443}. + +\bibitem[Praetzellis(2011)]{praetzellis2011death} +PRAETZELLIS~A. +\newblock Death by theory: a tale of mystery and archaeological + theory\allowbreak[M/OL]. +\newblock Rev. ed. +\newblock Rowman \& Littlefield Publishing Group, Inc., 2011: + 13\allowbreak[2012-07-26]. +\newblock \url{http://lib.myilibrary.com/Open.aspx?id=293666}. + +\bibitem[中国职工教育研究会(1985)]{zhigong1985zhigong} +中国职工教育研究会. +\newblock 职工教育研究论文集\allowbreak[G]. +\newblock 北京: 人民教育出版社, 1985. + +\bibitem[中国社会科学院台湾史研究中心(2012)]{shekeyuan2012taiwan} +中国社会科学院台湾史研究中心. +\newblock + 台湾光复六十五周年暨抗战史实学术研讨会论文集\allowbreak[C]. +\newblock 北京: 九州出版社, 2012. + +\bibitem[雷光春(2012)]{leiguangchun2012zonghe} +雷光春. +\newblock + 综合湿地管理:综合湿地管理国际研讨会论文集\allowbreak[C]. +\newblock 北京: 海洋出版社, 2012. + +\bibitem[陈志勇(2011)]{chenzhiyong2011zhongguo} +陈志勇. +\newblock 中国财税文化价值研究: + “中国财税文化国际学术研讨会”论文集\allowbreak[C/OL]. +\newblock 北京: 经济科学出版社, 2011\allowbreak[2013-10-14]. +\newblock + \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.201106228-BPO-889-0135&cult=CN}. + +\bibitem[Babu et~al.(2014)Babu, Nagar, Deep, et~al.]{babu2014proceedings} +BABU~B~V, NAGAR~A~K, DEEP~K, et~al. +\newblock Proceedings of the second international conference on soft computing + for problem solving, december 28--30, 2012\allowbreak[C]. +\newblock New Delhi: Springer, 2014. + +\bibitem[中华人民共和国国务院新闻办公室(2013)]{zhonghua2013guofang} +中华人民共和国国务院新闻办公室. +\newblock 国防白皮书: + 中国武装力量的多样化运用\allowbreak[R/OL]. +\newblock \allowbreak(2013-04-16)\allowbreak[2014-06-11]. +\newblock \url{http://www.mod.gov.cn/affair/2013-04/16/content_4442839.htm}. + +\bibitem[汤万金\ 等(2013)汤万金, 杨跃翔, 刘文, + et~al.]{tangwanjin2013renti} +汤万金, 杨跃翔, 刘文, 等. +\newblock 人体安全重要技术标准研制最终报告: + 7178999X-2006BAK04A10/10.2013\allowbreak[R/OL]. +\newblock \allowbreak(2013-09-30)\allowbreak[2014-06-24]. +\newblock \url{http://www.nstrs.org.cn/xiangxiBG.aspx?id=41707}. + +\bibitem[Calkin et~al.(2011)Calkin, Ager, and Thompson]{calkin2011comparative} +CALKIN~D, AGER~A, THOMPSON~M. +\newblock A comparative risk assessment framework for wildland fire management: + the 2010 cohesive strategy science report: RMRS-GTR-262\allowbreak[R]. +\newblock [S.l.: s.n.], 2011: 8-9. + +\bibitem[{U.S. Department of Transportation Federal Highway + Administration}(1990)]{usdtfha1990guidelines} +{U.S. Department of Transportation Federal Highway Administration}. +\newblock Guidelines for handling excavated acid-producing material: {PB + 91-194001}\allowbreak[R]. +\newblock Springfield: U.S. Department of Commerce National Information + Service, 1990. + +\bibitem[{World Health Organization}(1970)]{who1970factors} +{World Health Organization}. +\newblock Factors regulating the immune response: Report of {WHO Scientific + Group}\allowbreak[R]. +\newblock Geneva: WHO, 1970. + +\bibitem[马欢(2011)]{mahuan2011renlei} +马欢. +\newblock + 人类活动影响下海河流域典型区水循环变化分析\allowbreak[D/OL]. +\newblock 北京: 清华大学, 2011: 27\allowbreak[2013-10-14]. +\newblock + \url{http://www.cnki.net/kcms/detail/detail.aspx?dbcode=CDFD&QueryID=.0&CurRec=11&dbname=CDFDLAST2013&filename=1012035905.nh&uid=WEEvREcwSlJHSldTTGJhYIJRaEhGUXFQWVB6SGZXeisxdmVhV3ZyZkpoUnozeDE1b0paM0NmMjZiQ3p4TUdmcw=}. + +\bibitem[吴云芳(2003)]{wuyunfang2003mianxiang} +吴云芳. +\newblock + 面向中文信息处理的现代汉语并列结构研究\allowbreak[D/OL]. +\newblock 北京: 北京大学, 2003\allowbreak[2013-10-14]. +\newblock + \url{http://thesis.lib.pku.edu.cn/dlib/List.asp?lang=gb&type=Reader&DocGroupID=4&DocID=6328}. + +\bibitem[Calms(1965)]{calms1965infrared} +CALMS~R~B. +\newblock Infrared spectroscopic studies on solid oxygen\allowbreak[D]. +\newblock Berkeley: Univ. of California, 1965. + +\bibitem[张凯军(2012)]{zhangkaijun2012guidao} +张凯军. +\newblock 轨道火车及高速轨道火车紧急安全制动辅助装置: + 201220158825.2\allowbreak[P]. +\newblock 2012-04-05. + +\bibitem[河北绿洲生态环境科技有限公司(2001)]{hebei2001yizhong} +河北绿洲生态环境科技有限公司. +\newblock 一种荒漠化地区生态植被综合培育种植方法: + 01129210.5\allowbreak[P/OL]. +\newblock 2001-10-24\allowbreak[2002-05-28]. +\newblock + \url{http://211.152.9.47/sipoasp/zlijs/hyjs-yx-new.asp?recid=01129210.5&leixin=0}. + +\bibitem[Koseki et~al.(2002)Koseki, Momose, Kawahito, + et~al.]{koseki2002compiler} +KOSEKI~A, MOMOSE~H, KAWAHITO~M, et~al. +\newblock Compiler: US828402\allowbreak[P/OL]. +\newblock 2002-05-25\allowbreak[2002-05-28]. +\newblock + \url{http://FF&p=1&u=netahtml/PTO/search-bool.html&r=5&f=G&1=50&col=AND&d=PG01&sl=IBM.AS.&OS=AN/IBM/RS=AN/IBM}. + +\bibitem[全国信息与文献标准化技术委员会(2010{\natexlab{b}})]{quanguo2010wenxian} +全国信息与文献标准化技术委员会. +\newblock 文献著录: 第 4 部分\quad 非书资料: GB/T + 3792.7—2009\allowbreak[S]. +\newblock 北京: 中国标准出版社, 2010{\natexlab{b}}: 3. + +\bibitem[全国广播电视标准化技术委员会(2007)]{quanguo2007guangbo} +全国广播电视标准化技术委员会. +\newblock 广播电视音像资料编目规范: 第 2 部分\quad 广播资料: + GY/T 202.2—2007\allowbreak[S]. +\newblock 北京: 国家广播电影电视总局广播电视规划院, 2007: 1. + +\bibitem[国家环境保护局科技标准司(1996)]{guojia1996turang} +国家环境保护局科技标准司. +\newblock 土壤环境质量标准: GB 15616—1995\allowbreak[S/OL]. +\newblock 北京: 中国标准出版社, 1996: 2-3\allowbreak[2013-10-14]. +\newblock \url{http://wenku.baidu.com/view/b950a34b767f5acfa1c7cd49.html}. + +\bibitem[200(2009{\natexlab{b}})]{2009information} +Information and documentation---the {Dublin} cord metadata element set: ISO + 15836: 2009\allowbreak[S/OL]. +\newblock 2009\allowbreak[2013-03-24]. +\newblock + \url{http://www.iso.org/iso/home/store/catalogue_tc/catalogue_detail.htm?csnumber=52142}. + +\bibitem[198(1988)]{1988qizhi} +卷 39 乞致仕第一\allowbreak[M]//\allowbreak +苏魏公文集: 下册. +\newblock 北京: 中华书局, 1988: 590. + +\bibitem[白书农(1998)]{baishunong1998zhiwu} +白书农. +\newblock 植物开花研究\allowbreak[M]//\allowbreak +李承森. +\newblock 植物科学进展. +\newblock 北京: 高等教育出版社, 1998: 146-163. + +\bibitem[汪学军(2002)]{wangxuejun2002zhongguo} +汪学军. +\newblock + 中国农业转基因生物研究进展与安全管理\allowbreak[C]//\allowbreak +国家环境保护总局生物安全管理办公室. +\newblock + 中国国家生物安全框架实施国际合作项目研讨会论文集. +\newblock 北京: 中国环境科学出版社, 2002: 22-25. + +\bibitem[国家标准局信息分类编码研究所(1988)]{guojia1988shijie} +国家标准局信息分类编码研究所. +\newblock 世界各国和地区名称代码: GB/T + 2659—1986\allowbreak[S]//\allowbreak +全国文献工作标准化委员会. +\newblock 文献工作国家标准汇编: 3. +\newblock 北京: 中国标准出版社, 1988: 59-92. + +\bibitem[197(1977)]{1977songshi} +宋史卷三: 本纪第三\allowbreak[M]//\allowbreak +宋史: 第 1 册. +\newblock 北京: 中华书局, 1977: 49. + +\bibitem[楼梦鳞\ 等(2011)楼梦鳞 and 杨燕]{loumenglin2011wenchuan} +楼梦鳞, 杨燕. +\newblock 汶川地震基岩地震动特征分析\allowbreak[M/OL]//\allowbreak +同济大学土木工程防灾国家重点实验室. +\newblock 汶川地震震害研究. +\newblock 上海: 同济大学出版社, 2011: 011-012\allowbreak[2013-05-09]. +\newblock + \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20120406-YPT-889-0010}. + +\bibitem[Buseck et~al.(c1980)Buseck, Nord, and Veblen]{buseckc1980subsolidus} +BUSECK~P~R, NORD~G~L, Jr, VEBLEN~D~R. +\newblock Subsolidus phenomena in pyroxenes\allowbreak[M]//\allowbreak +Pyroxense. +\newblock Washington, D.C.: Mineralogical Society of America, c1980: 117-211. + +\bibitem[Fourney(c1971)]{fourneyc1971advances} +FOURNEY~M~E. +\newblock Advances in holographic photoelasticity\allowbreak[C]//\allowbreak +Symposium on Applications of Holography in Mechanics, August 23-25, 1971, + University of Southern California, Los Angeles, California. +\newblock New York: ASME, c1971: 17-38. + +\bibitem[杨洪升(2013)]{yanghongsheng2013siku} +杨洪升. +\newblock 四库馆私家抄校书考略\allowbreak[J]. +\newblock 文献, 2013\penalty0 (1):\penalty0 56-75. + +\bibitem[李炳穆(2008{\natexlab{b}})]{libingmu2008hanguo2} +李炳穆. +\newblock 韩国图书馆法\allowbreak[J]. +\newblock 图书情报工作, 2008, 52\penalty0 (6):\penalty0 6-21. + +\bibitem[于潇\ 等(2012)于潇, 刘义, 柴跃廷, + et~al.]{yuxiao2012hulianwang} +于潇, 刘义, 柴跃廷, 等. +\newblock + 互联网药品可信交易环境中主体资质审核备案模式\allowbreak[J]. +\newblock 清华大学学报(自然科学版), 2012, 52\penalty0 (11):\penalty0 + 1518-1523. + +\bibitem[陈建军(20l0)]{chenjianjun20l0cong} +陈建军. +\newblock 从数字地球到智慧地球\allowbreak[J/OL]. +\newblock 国图资源导刊, 20l0, 7\penalty0 (10):\penalty0 + 93\allowbreak[2013-03-20]. +\newblock \url{http://d.g.wanfangdata.com.cn/Periodical_hunandz201010038.aspx}. +\newblock DOI: \doi{10.3969/j.issn.1672-5603.2010.10.038}. + +\bibitem[Des~Marais et~al.(1992)Des~Marais, Strauss, Summons, + et~al.]{desmarais1992carbon} +DES~MARAIS~D~J, STRAUSS~H, SUMMONS~R~E, et~al. +\newblock Carbon isotope evidence for the stepwise oxidation of the proterozoic + environment\allowbreak[J]. +\newblock Nature, 1992, 359:\penalty0 605-609. + +\bibitem[Saito et~al.(2006)Saito and Miyazaki]{saito2006jadeite} +SAITO~M, MIYAZAKI~K. +\newblock Jadeite-bearing metagabbro in serpentinite mélange of the + {"Kurosegawa Belt" in Izumi Town, Yatsushiro City, Kumamoto Prefecture, + central Kyushu}\allowbreak[J]. +\newblock Bulletin of the geological survey of Japan, 2006, 57\penalty0 + (5/6):\penalty0 169-176. + +\bibitem[Walls et~al.(2013)Walls, Barichivich, and Brown]{walls2013drought} +WALLS~S~C, BARICHIVICH~W~J, BROWN~M~E. +\newblock Drought, deluge and declines: the impact of precipitation extremes on + amphibians in a changing climate\allowbreak[J/OL]. +\newblock Biology, 2013, 2\penalty0 (1):\penalty0 + 399-418\allowbreak[2013-11-04]. +\newblock \url{http://www.mdpi.com/2079-7737/2/1/399}. +\newblock DOI: \doi{10.3390/biology2010399}. + +\bibitem[Franz et~al.(2013)Franz, Danielewicz, Wong, Anderson, and + Boothe]{franz2013phenotypic} +FRANZ~A~K, DANIELEWICZ~M~A, WONG~D~M, et~al. +\newblock Phenotypic screening with oleaginous microalgae reveals modulators of + lipid productivity\allowbreak[J/OL]. +\newblock ACS Chemical biology, 2013, 8:\penalty0 + 1053-1062\allowbreak[2014-06-26]. +\newblock \url{http://pubs.acs.org/doi/ipdf/10.1021/cb300573r}. + +\bibitem[Park et~al.(2010)Park and Tosaka]{park2010metadata} +PARK~J~R, TOSAKA~Y. +\newblock Metadata quality control in digital repositories and collections: + Criteria, semantics, and mechanisms\allowbreak[J/OL]. +\newblock Cataloging \& classification quarterly, 2010, 48\penalty0 + (8):\penalty0 696-715\allowbreak[2013-09-05]. +\newblock + \url{http://www.tandfonline.com/doi/pdf/10.1080/01639374.2010.508711}. + +\bibitem[丁文详(2000)]{dingwenxiang2000shuzi} +丁文详. +\newblock 数字革命与竞争国际化\allowbreak[N]. +\newblock 中国青年报, 2000-11-20\penalty0 (15). + +\bibitem[张田勤(2000)]{zhangtianqin2000zuifan} +张田勤. +\newblock 罪犯 DNA 库与生命伦理学计划\allowbreak[N]. +\newblock 大众科技报, 2000-11-12\penalty0 (7). + +\bibitem[傅刚\ 等(2000)傅刚, 赵承, and 李佳路]{fugang2000dafeng} +傅刚, 赵承, 李佳路. +\newblock 大风沙过后的思考\allowbreak[N/OL]. +\newblock 北京青年报, 2000-01-12\allowbreak[2005-09-28]. +\newblock + \url{http://www.bjyouth.com.cn/Bqb/20000412/GB/4216%5ED0412B1401.htm}. + +\bibitem[刘裕国\ 等(2013)刘裕国, 杨柳, 张洋, + et~al.]{liuyuguo2013wumai} +刘裕国, 杨柳, 张洋, 等. +\newblock 雾霾来袭, 如何突围\allowbreak[N/OL]. +\newblock 人民日报, 2013-01-12\allowbreak[2013-11-06]. +\newblock + \url{http://paper.people.com.cn/rmrb/html/2013-01/12/nw.D110000renmrb_20130112_2-04.htm}. + +\bibitem[萧钰(2001)]{xiaoyu2001chuban} +萧钰. +\newblock 出版业信息化迈入快车道\allowbreak[EB/OL]. +\newblock \allowbreak(2001-12-19)\allowbreak[2002-04-15]. +\newblock \url{http://www.creader.com/news/20011219/200112190019.html}. + +\bibitem[李强(2012)]{liqiang2012huajie} +李强. +\newblock 化解医患矛盾需釜底抽薪\allowbreak[EB/OL]. +\newblock \allowbreak(2012-05-03)\allowbreak[2013-03-25]. +\newblock \url{http://wenku.baidu.com/view/47e4f206b52acfc789ebc92f.html}. + +\bibitem[{{Commonwealth Libraries Bureau of Library Development. Pennsylvania + Department of Education Office}([2013])}]{clbld2013pennsylvania} +{Commonwealth Libraries Bureau of Library Development. Pennsylvania Department + of Education Office}. +\newblock Pennsylvania library laws\allowbreak[EB/OL]. +\newblock \allowbreak[2013-03-24]. +\newblock \url{http://www.racc.edu/yocum/pdf/PALibraryLaws.pdf}. + +\bibitem[201(2012)]{2012dublin} +Dublin core metadata element set: version 1.1\allowbreak[EB/OL]. +\newblock \allowbreak(2012-06-14)\allowbreak[2014-06-11]. +\newblock \url{http://dublincore.org/documents/dces/}. + +\bibitem[魏志勇\ 等(2006)魏志勇, 臧黎慧, 范我, + et~al.]{weizhiyong2006} +魏志勇, 臧黎慧, 范我, 等. +\newblock \allowbreak[J]. +\newblock 核技术, 2006, 29\penalty0 (9):\penalty0 713. + +\bibitem[陈东风\ 等(2005)陈东风, 勾成, 叶春堂, + et~al.]{chendongfeng2005} +陈东风, 勾成, 叶春堂, 等. +\newblock \allowbreak[J]. +\newblock 核技术, 2005, 28\penalty0 (2):\penalty0 127. + +\bibitem[Oed(2004)]{oed2004} +OED~A. +\newblock \allowbreak[J]. +\newblock Nucl Instr Meth A, 2004, 525\penalty0 (1-2):\penalty0 62. + +\bibitem[Rhodes et~al.(1997)Rhodes, Wardle, Boram, et~al.]{rhodes1997} +RHODES~N~J, WARDLE~A~G, BORAM~A~J, et~al. +\newblock \allowbreak[J]. +\newblock Nucl Instr Meth A, 1997, 392\penalty0 (1-3):\penalty0 315. + +\bibitem[Crow et~al.(2004)Crow, Hodges, and Cooper]{crow2004} +CROW~M~L, HODGES~J~P, COOPER~R~G. +\newblock \allowbreak[J]. +\newblock Nucl Instr Meth A, 2004, 529\penalty0 (1-3):\penalty0 287. + +\bibitem[mis()]{misc} +\allowbreak[EB/OL]. +\newblock \url{http://www.detectors.saint-gobain.com/default.aspx}. + +\bibitem[phi(1987)]{philips1987} +Philips data handbook for electron tubes t9\allowbreak[M]. +\newblock [S.l.: s.n.], 1987. + +\bibitem[迟少鹏\ 等(2003)迟少鹏, 夏小米, 周莉, + et~al.]{chishaopeng2003} +迟少鹏, 夏小米, 周莉, 等. +\newblock \allowbreak[J]. +\newblock 高能物理与核物理, 2003, 27\penalty0 (3):\penalty0 257. + +\bibitem[汪晓莲\ 等(2003)汪晓莲, 许咨宗, 侯云珍, + et~al.]{wangxiaolian2003} +汪晓莲, 许咨宗, 侯云珍, 等. +\newblock \allowbreak[J]. +\newblock 高能物理与核物理, 2003, 27\penalty0 (3):\penalty0 257. + +\bibitem[Sackett et~al.(1993)Sackett, Ieki, A, et~al.]{sackett1993} +SACKETT~D, IEKI~K, A~G, et~al. +\newblock \allowbreak[J]. +\newblock Physical Review C, 1993, 48\penalty0 (1):\penalty0 118. + +\bibitem[Sackett et~al.(1997)Sackett, Ieki, A, et~al.]{zecher1997} +SACKETT~D, IEKI~K, A~G, et~al. +\newblock \allowbreak[J]. +\newblock Nucl Instr Meth A, 1997, 401\penalty0 (2-3):\penalty0 329. + +\bibitem[薛梦驰(2009)]{xuemengchi2009} +薛梦驰. +\newblock \allowbreak[J]. +\newblock 电信科学, 2009, 7:\penalty0 57. + +\bibitem[唐军杰\ 等(2013)唐军杰, 王拓, 张强, et~al.]{tangjunjie2013} +唐军杰, 王拓, 张强, 等. +\newblock \allowbreak[J]. +\newblock 发光学报, 2013, 34\penalty0 (1):\penalty0 78. + +\bibitem[WU et~al.(2013)WU, TANG, SUN, et~al.]{wuchong2013} +WU~C, TANG~B, SUN~Z, et~al. +\newblock \allowbreak[J]. +\newblock Radiation Measurements, 2013, 58\penalty0 (11):\penalty0 128. + +\end{thebibliography} diff --git a/test/testbst/npr.dtx b/test/testbst/npr.dtx new file mode 100644 index 0000000..48f14f1 --- /dev/null +++ b/test/testbst/npr.dtx @@ -0,0 +1,152 @@ +%<*internal> +\begingroup + \def\nameoflatex{LaTeX2e} +\expandafter\endgroup\ifx\nameoflatexe\fmtname\else +\csname fi\endcsname +% +%<*install> +\input docstrip.tex +\nopreamble +\keepsilent +\askforoverwritefalse +\nopostamble +\generate{ + \file{test.bst}{\from{gbt7714.dtx}{npr,2015,numerical}} + \file{test.bib}{\from{\jobname.dtx}{bib}} +} +\endbatchfile +% +%<*internal> +\fi +% +%<*driver> +\ProvidesFile{\jobname.dtx} +% +% \fi +% +% \begin{macrocode} +%<*bib> +@article{weizhiyong2006, + author = {魏志勇 and 臧黎慧 and 范我 and others}, + journal = {核技术}, + year = {2006}, + volume = {29}, + number = {9}, + pages = {713}, + translation = {WEI Zhiyong, ZANG Lihui, FAN Wo, \textit{et al}. Nuclear Techniques, 2006, \textbf{29}(9): 713.} +} + +@article{chendongfeng2005, + author = {陈东风 and 勾成 and 叶春堂 and others}, + journal = {核技术}, + year = {2005}, + volume = {28}, + number = {2}, + pages = {127}, + translation = {CHEN Dongfeng, GOU Cheng, YE Chuntang, \textit{et al}. Nuclear Techniques, 2005, \textbf{28}(2): 127.} +} + +@article{oed2004, + author = {Oed, A}, + journal = {Nucl Instr Meth A}, + year = {2004}, + volume = {525}, + number = {1-2}, + pages = {62}, +} + +@article{rhodes1997, + author = {Rhodes, N J and Wardle, A G and Boram, A J and others}, + journal = {Nucl Instr Meth A}, + year = {1997}, + volume = {392}, + number = {1-3}, + pages = {315}, +} + +@article{crow2004, + author = {Crow, M L and Hodges, J P and Cooper, R G}, + journal = {Nucl Instr Meth A}, + year = {2004}, + volume = {529}, + number = {1-3}, + pages = {287}, +} + +@online{misc, + url = {http://www.detectors.saint-gobain.com/default.aspx}, +} + +@book{philips1987, + title = {Philips Data Handbook for Electron Tubes T9}, + year = {1987}, +} + +@article{chishaopeng2003, + author = {迟少鹏 and 夏小米 and 周莉 and others}, + journal = {高能物理与核物理}, + year = {2003}, + volume = {27}, + number = {3}, + pages = {257}, + translation = {CHI Shaopeng, XIA Xiaomi, ZHOU Li, et al. High Energy Physics and Nuclear Physics. 2003, 27(3): 257.} +} + +@article{wangxiaolian2003, + author = {汪晓莲 and 许咨宗 and 侯云珍 and others}, + journal = {高能物理与核物理}, + year = {2003}, + volume = {27}, + number = {3}, + pages = {257}, + translation = {WANG Xiaolian, XU Zizong, HOU Yunzhen, et al. High Energy Physics and Nuclear Physics. 1997, 21(9): 787.} +} + +@article{sackett1993, + author = {Sackett, D and Ieki, K and Galonsky A and others}, + journal = {Physical Review C}, + year = {1993}, + volume = {48}, + number = {1}, + pages = {118}, +} + +@article{zecher1997, + author = {Sackett, D and Ieki, K and Galonsky A and others}, + journal = {Nucl Instr Meth A}, + year = {1997}, + volume = {401}, + number = {2-3}, + pages = {329}, +} + +@article{xuemengchi2009, + author = {薛梦驰}, + journal = {电信科学}, + year = {2009}, + volume = {7}, + pages = {57}, + translation = {XUE Mengchi. Telecommunication Science. 2009, 7: 57.} +} + +@article{tangjunjie2013, + author = {唐军杰 and 王拓 and 张强 and others}, + journal = {发光学报}, + year = {2013}, + volume = {34}, + number = {1}, + pages = {78}, + translation = {TANG Junjie, WANG Tuo, ZHANG Qiang, et al. Chin J Lumi, 2013, 34(1): 78.} +} + +@article{wuchong2013, + author = {WU, Chong and TANG, Bin and SUN, Zhijia and others}, + journal = {Radiation Measurements}, + year = {2013}, + volume = {58}, + number = {11}, + pages = {128}, +} +% +% \end{macrocode} +\endinput diff --git a/variants/gbt7714-variants.ins b/variants/gbt7714-variants.ins index 7657b4b..4a4d476 100644 --- a/variants/gbt7714-variants.ins +++ b/variants/gbt7714-variants.ins @@ -44,5 +44,8 @@ version 2005/12/01 or later. \file{variants/ustc/ustcthesis-bachelor.bst}{ \from{gbt7714.dtx}{ustc,2015,numerical,nouppercase,nomark,italicjournal} } + \file{variants/npr/npr.bst}{ + \from{gbt7714.dtx}{npr,2015,numerical} + } } \endbatchfile diff --git a/variants/npr/npr.bst b/variants/npr/npr.bst new file mode 100644 index 0000000..264f8c4 --- /dev/null +++ b/variants/npr/npr.bst @@ -0,0 +1,1872 @@ +%% +%% This is file `variants/npr/npr.bst', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% gbt7714.dtx (with options: `npr,2015,numerical') +%% ------------------------------------------------------------------- +%% GB/T 7714-2015 BibTeX Style +%% https://github.com/CTeX-org/gbt7714-bibtex-style +%% Version: 2020/03/04 v2.0 +%% ------------------------------------------------------------------- +%% Copyright (C) 2016-2020 by Zeping Lee +%% ------------------------------------------------------------------- +%% This file may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3c +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% https://www.latex-project.org/lppl.txt +%% and version 1.3c or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% ------------------------------------------------------------------- +INTEGERS { + uppercase.name + max.num.authors + period.between.author.year + sentence.case.title + link.title + show.mark + show.medium.type + slash.for.extraction + in.booktitle + italic.jounal + bold.journal.volume + show.missing.address.publisher + show.url + show.doi + show.note +} + +FUNCTION {load.config} +{ + #1 'uppercase.name := + #3 'max.num.authors := + #1 'sentence.case.title := + #0 'link.title := + #1 'show.mark := + #1 'show.medium.type := + #1 'slash.for.extraction := + #0 'in.booktitle := + #0 'italic.jounal := + #0 'bold.journal.volume := + #1 'show.missing.address.publisher := + #1 'show.url := + #1 'show.doi := + #0 'show.note := +} + +ENTRY + { address + author + booktitle + date + doi + edition + editor + howpublished + institution + journal + key + language + mark + medium + note + number + organization + pages + publisher + school + series + title + translator + url + urldate + volume + year + } + { entry.lang entry.is.electronic entry.numbered } + { label extra.label sort.label short.list entry.mark entry.url } + +INTEGERS { output.state before.all mid.sentence after.sentence after.block after.slash } + +INTEGERS { lang.zh lang.ja lang.en lang.ru lang.other } + +INTEGERS { charptr len } + +FUNCTION {init.state.consts} +{ #0 'before.all := + #1 'mid.sentence := + #2 'after.sentence := + #3 'after.block := + #4 'after.slash := + #3 'lang.zh := + #4 'lang.ja := + #1 'lang.en := + #2 'lang.ru := + #0 'lang.other := +} + +FUNCTION {bbl.anonymous} +{ entry.lang lang.zh = + { "佚名" } + { "Anon" } + if$ +} + +FUNCTION {bbl.space} +{ entry.lang lang.zh = + { "\ " } + { " " } + if$ +} + +FUNCTION {bbl.et.al} +{ entry.lang lang.zh = + { "等" } + { entry.lang lang.ja = + { "他" } + { entry.lang lang.ru = + { "идр" } + { "et~al." } + if$ + } + if$ + } + if$ +} + +FUNCTION {citation.et.al} +{ bbl.et.al } + +FUNCTION {bbl.colon} { ": " } + +FUNCTION {bbl.wide.space} { "\quad " } + +FUNCTION {bbl.slash} { "//\allowbreak " } + +FUNCTION {bbl.sine.loco} +{ entry.lang lang.zh = + { "[出版地不详]" } + { "[S.l.]" } + if$ +} + +FUNCTION {bbl.sine.nomine} +{ entry.lang lang.zh = + { "[出版者不详]" } + { "[s.n.]" } + if$ +} + +FUNCTION {bbl.sine.loco.sine.nomine} +{ entry.lang lang.zh = + { "[出版地不详: 出版者不详]" } + { "[S.l.: s.n.]" } + if$ +} + +FUNCTION {not} +{ { #0 } + { #1 } + if$ +} + +FUNCTION {and} +{ 'skip$ + { pop$ #0 } + if$ +} + +FUNCTION {or} +{ { pop$ #1 } + 'skip$ + if$ +} + +STRINGS { s t } + +FUNCTION {output.nonnull} +{ 's := + output.state mid.sentence = + { ", " * write$ } + { output.state after.block = + { add.period$ write$ + newline$ + "\newblock " write$ + } + { output.state before.all = + 'write$ + { output.state after.slash = + { bbl.slash * write$ + newline$ + } + { add.period$ " " * write$ } + if$ + } + if$ + } + if$ + mid.sentence 'output.state := + } + if$ + s +} + +FUNCTION {output} +{ duplicate$ empty$ + 'pop$ + 'output.nonnull + if$ +} + +FUNCTION {output.after} +{ 't := + duplicate$ empty$ + 'pop$ + { 's := + output.state mid.sentence = + { t * write$ } + { output.state after.block = + { add.period$ write$ + newline$ + "\newblock " write$ + } + { output.state before.all = + 'write$ + { output.state after.slash = + { bbl.slash * write$ } + { add.period$ " " * write$ } + if$ + } + if$ + } + if$ + mid.sentence 'output.state := + } + if$ + s + } + if$ +} + +FUNCTION {output.check} +{ 't := + duplicate$ empty$ + { pop$ "empty " t * " in " * cite$ * warning$ } + 'output.nonnull + if$ +} + +FUNCTION {fin.entry} +{ add.period$ + write$ + newline$ +} + +FUNCTION {new.block} +{ output.state before.all = + 'skip$ + { output.state after.slash = + 'skip$ + { after.block 'output.state := } + if$ + } + if$ +} + +FUNCTION {new.sentence} +{ output.state after.block = + 'skip$ + { output.state before.all = + 'skip$ + { output.state after.slash = + 'skip$ + { after.sentence 'output.state := } + if$ + } + if$ + } + if$ +} + +FUNCTION {new.slash} +{ output.state before.all = + 'skip$ + { slash.for.extraction + { after.slash 'output.state := } + { after.block 'output.state := } + if$ + } + if$ +} + +FUNCTION {new.block.checka} +{ empty$ + 'skip$ + 'new.block + if$ +} + +FUNCTION {new.block.checkb} +{ empty$ + swap$ empty$ + and + 'skip$ + 'new.block + if$ +} + +FUNCTION {new.sentence.checka} +{ empty$ + 'skip$ + 'new.sentence + if$ +} + +FUNCTION {new.sentence.checkb} +{ empty$ + swap$ empty$ + and + 'skip$ + 'new.sentence + if$ +} + +FUNCTION {field.or.null} +{ duplicate$ empty$ + { pop$ "" } + 'skip$ + if$ +} + +FUNCTION {italicize} +{ duplicate$ empty$ + { pop$ "" } + { "\textit{" swap$ * "}" * } + if$ +} + +INTEGERS { byte second.byte } + +INTEGERS { char.lang tmp.lang } + +STRINGS { tmp.str } + +FUNCTION {get.str.lang} +{ 'tmp.str := + lang.other 'tmp.lang := + #1 'charptr := + tmp.str text.length$ #1 + 'len := + { charptr len < } + { tmp.str charptr #1 substring$ chr.to.int$ 'byte := + byte #128 < + { charptr #1 + 'charptr := + byte #64 > byte #91 < and byte #96 > byte #123 < and or + { lang.en 'char.lang := } + { lang.other 'char.lang := } + if$ + } + { tmp.str charptr #1 + #1 substring$ chr.to.int$ 'second.byte := + byte #224 < + { charptr #2 + 'charptr := + byte #207 > byte #212 < and + byte #212 = second.byte #176 < and or + { lang.ru 'char.lang := } + { lang.other 'char.lang := } + if$ + } + { byte #240 < + { charptr #3 + 'charptr := + byte #227 > byte #234 < and + { lang.zh 'char.lang := } + { byte #227 = + { second.byte #143 > + { lang.zh 'char.lang := } + { second.byte #128 > second.byte #132 < and + { lang.ja 'char.lang := } + { lang.other 'char.lang := } + if$ + } + if$ + } + { byte #239 = + second.byte #163 > second.byte #172 < and and + { lang.zh 'char.lang := } + { lang.other 'char.lang := } + if$ + } + if$ + } + if$ + } + { charptr #4 + 'charptr := + byte #240 = second.byte #159 > and + { lang.zh 'char.lang := } + { lang.other 'char.lang := } + if$ + } + if$ + } + if$ + } + if$ + char.lang tmp.lang > + { char.lang 'tmp.lang := } + 'skip$ + if$ + } + while$ + tmp.lang +} + +FUNCTION {check.entry.lang} +{ author field.or.null + title field.or.null * + get.str.lang +} + +FUNCTION {set.entry.lang} +{ language empty$ + { check.entry.lang } + { language "english" = language "american" = or language "british" = or + { lang.en } + { language "chinese" = + { lang.zh } + { language "japanese" = + { lang.ja } + { language "russian" = + { lang.ru } + { check.entry.lang } + if$ + } + if$ + } + if$ + } + if$ + } + if$ + 'entry.lang := +} + +FUNCTION {set.entry.numbered} +{ type$ "patent" = + type$ "standard" = or + type$ "techreport" = or + { #1 'entry.numbered := } + { #0 'entry.numbered := } + if$ +} + +INTEGERS { nameptr namesleft numnames name.lang } + +FUNCTION {format.names} +{ 's := + #1 'nameptr := + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := + nameptr max.num.authors > + { bbl.et.al + #1 'namesleft := + } + { t "others" = + { bbl.et.al } + { t get.str.lang 'name.lang := + name.lang lang.en = + { t #1 "{vv~}{ll}{~f{~}}" format.name$ + uppercase.name + { "u" change.case$ } + 'skip$ + if$ + t #1 "{, jj}" format.name$ * + } + { t #1 "{ll}{ff}" format.name$ } + if$ + } + if$ + } + if$ + nameptr #1 > + { ", " swap$ * * } + 'skip$ + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ +} + +FUNCTION {format.key} +{ empty$ + { key field.or.null } + { "" } + if$ +} + +FUNCTION {format.authors} +{ author empty$ not + { author format.names } + { "empty author in " cite$ * warning$ + "" + } + if$ +} + +FUNCTION {format.editors} +{ editor empty$ + { "" } + { editor format.names } + if$ +} + +FUNCTION {format.translators} +{ translator empty$ + { "" } + { translator format.names + entry.lang lang.zh = + { translator num.names$ #3 > + { "译" * } + { ", 译" * } + if$ + } + 'skip$ + if$ + } + if$ +} + +FUNCTION {format.full.names} +{'s := + #1 'nameptr := + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := + t get.str.lang 'name.lang := + name.lang lang.en = + { t #1 "{vv~}{ll}" format.name$ 't := } + { t #1 "{ll}{ff}" format.name$ 't := } + if$ + nameptr #1 > + { + namesleft #1 > + { ", " * t * } + { + numnames #2 > + { "," * } + 'skip$ + if$ + t "others" = + { " et~al." * } + { " and " * t * } + if$ + } + if$ + } + 't + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ +} + +FUNCTION {author.editor.full} +{ author empty$ + { editor empty$ + { "" } + { editor format.full.names } + if$ + } + { author format.full.names } + if$ +} + +FUNCTION {author.full} +{ author empty$ + { "" } + { author format.full.names } + if$ +} + +FUNCTION {editor.full} +{ editor empty$ + { "" } + { editor format.full.names } + if$ +} + +FUNCTION {make.full.names} +{ type$ "book" = + type$ "inbook" = + or + 'author.editor.full + { type$ "collection" = + type$ "proceedings" = + or + 'editor.full + 'author.full + if$ + } + if$ +} + +FUNCTION {output.bibitem} +{ newline$ + "\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 } + if$ + "]{" * write$ + cite$ write$ + "}" write$ + newline$ + "" + before.all 'output.state := +} + +FUNCTION {change.sentence.case} +{ entry.lang lang.en = + { "t" change.case$ } + 'skip$ + if$ +} + +FUNCTION {add.link} +{ url empty$ not + { "\href{" url * "}{" * swap$ * "}" * } + { doi empty$ not + { "\href{http://dx.doi.org/" doi * "}{" * swap$ * "}" * } + 'skip$ + if$ + } + if$ +} + +FUNCTION {format.title} +{ title empty$ + { "" } + { title + sentence.case.title + 'change.sentence.case + 'skip$ + if$ + entry.numbered number empty$ not and + { bbl.colon * number * } + 'skip$ + if$ + link.title + 'add.link + 'skip$ + if$ + } + if$ +} + +FUNCTION {tie.or.space.connect} +{ duplicate$ text.length$ #3 < + { "~" } + { " " } + if$ + swap$ * * +} + +FUNCTION {either.or.check} +{ empty$ + 'pop$ + { "can't use both " swap$ * " fields in " * cite$ * warning$ } + if$ +} + +FUNCTION {is.digit} +{ duplicate$ empty$ + { pop$ #0 } + { chr.to.int$ + duplicate$ "0" chr.to.int$ < + { pop$ #0 } + { "9" chr.to.int$ > + { #0 } + { #1 } + if$ + } + if$ + } + if$ +} + +FUNCTION {is.number} +{ 's := + s empty$ + { #0 } + { s text.length$ 'charptr := + { charptr #0 > + s charptr #1 substring$ is.digit + and + } + { charptr #1 - 'charptr := } + while$ + charptr not + } + if$ +} + +FUNCTION {format.volume} +{ volume empty$ not + { volume is.number + { entry.lang lang.zh = + { "第 " volume * " 卷" * } + { "volume" volume tie.or.space.connect } + if$ + } + { volume } + if$ + } + { "" } + if$ +} + +FUNCTION {format.number} +{ number empty$ not + { number is.number + { entry.lang lang.zh = + { "第 " number * " 册" * } + { "number" number tie.or.space.connect } + if$ + } + { number } + if$ + } + { "" } + if$ +} + +FUNCTION {format.volume.number} +{ volume empty$ not + { format.volume } + { format.number } + if$ +} + +FUNCTION {format.title.vol.num} +{ title + sentence.case.title + 'change.sentence.case + 'skip$ + if$ + entry.numbered + { number empty$ not + { bbl.colon * number * } + 'skip$ + if$ + } + { format.volume.number 's := + s empty$ not + { bbl.colon * s * } + 'skip$ + if$ + } + if$ +} + +FUNCTION {format.series.vol.num.title} +{ format.volume.number 's := + series empty$ not + { series + sentence.case.title + 'change.sentence.case + 'skip$ + if$ + entry.numbered + { bbl.wide.space * } + { bbl.colon * + s empty$ not + { s * bbl.wide.space * } + 'skip$ + if$ + } + if$ + title * + sentence.case.title + 'change.sentence.case + 'skip$ + if$ + entry.numbered number empty$ not and + { bbl.colon * number * } + 'skip$ + if$ + } + { format.title.vol.num } + if$ + link.title + 'add.link + 'skip$ + if$ +} + +FUNCTION {format.booktitle.vol.num} +{ booktitle + entry.numbered + 'skip$ + { format.volume.number 's := + s empty$ not + { bbl.colon * s * } + 'skip$ + if$ + } + if$ +} + +FUNCTION {format.series.vol.num.booktitle} +{ format.volume.number 's := + series empty$ not + { series bbl.colon * + entry.numbered not s empty$ not and + { s * bbl.wide.space * } + 'skip$ + if$ + booktitle * + } + { format.booktitle.vol.num } + if$ + in.booktitle + { duplicate$ empty$ not entry.lang lang.en = and + { "In: " swap$ * } + 'skip$ + if$ + } + 'skip$ + if$ +} + +FUNCTION {format.journal} +{ journal + italic.jounal entry.lang lang.en = and + 'italicize + 'skip$ + if$ +} + +FUNCTION {set.entry.mark} +{ entry.mark empty$ not + 'pop$ + { mark empty$ not + { pop$ mark 'entry.mark := } + { 'entry.mark := } + if$ + } + if$ +} + +FUNCTION {format.mark} +{ show.mark + { entry.mark + show.medium.type + { medium empty$ not + { "/" * medium * } + { entry.is.electronic + { "/OL" * } + 'skip$ + if$ + } + if$ + } + 'skip$ + if$ + 'entry.mark := + "\allowbreak[" entry.mark * "]" * + } + { "" } + if$ +} + +FUNCTION {num.to.ordinal} +{ duplicate$ text.length$ 'charptr := + duplicate$ charptr #1 substring$ 's := + s "1" = + { "st" * } + { s "2" = + { "nd" * } + { s "3" = + { "rd" * } + { "th" * } + if$ + } + if$ + } + if$ +} + +FUNCTION {format.edition} +{ edition empty$ + { "" } + { edition is.number + { entry.lang lang.zh = + { edition " 版" * } + { edition num.to.ordinal " ed." * } + if$ + } + { entry.lang lang.en = + { edition change.sentence.case 's := + s "Revised" = s "Revised edition" = or + { "Rev. ed." } + { s " ed." *} + if$ + } + { edition } + if$ + } + if$ + } + if$ +} + +FUNCTION {format.publisher} +{ publisher empty$ not + { publisher } + { school empty$ not + { school } + { organization empty$ not + { organization } + { institution empty$ not + { institution } + { "" } + if$ + } + if$ + } + if$ + } + if$ +} + +FUNCTION {format.address.publisher} +{ address empty$ not + { address + format.publisher empty$ not + { bbl.colon * format.publisher * } + { entry.is.electronic not show.missing.address.publisher and + { bbl.colon * bbl.sine.nomine * } + 'skip$ + if$ + } + if$ + } + { entry.is.electronic not show.missing.address.publisher and + { format.publisher empty$ not + { bbl.sine.loco bbl.colon * format.publisher * } + { bbl.sine.loco.sine.nomine } + if$ + } + { format.publisher empty$ not + { format.publisher } + { "" } + if$ + } + if$ + } + if$ +} + +FUNCTION {extract.before.dash} +{ duplicate$ empty$ + { pop$ "" } + { 's := + #1 'charptr := + s text.length$ #1 + 'len := + { charptr len < + s charptr #1 substring$ "-" = not + and + } + { charptr #1 + 'charptr := } + while$ + s #1 charptr #1 - substring$ + } + if$ +} + +FUNCTION {extract.after.dash} +{ duplicate$ empty$ + { pop$ "" } + { 's := + #1 'charptr := + s text.length$ #1 + 'len := + { charptr len < + s charptr #1 substring$ "-" = not + and + } + { charptr #1 + 'charptr := } + while$ + { charptr len < + s charptr #1 substring$ "-" = + and + } + { charptr #1 + 'charptr := } + while$ + s charptr global.max$ substring$ + } + 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 {format.year} +{ year empty$ not + { year extract.before.dash } + { date empty$ not + { date extract.before.dash } + { "empty year in " cite$ * warning$ + urldate empty$ not + { "[" urldate extract.before.dash * "]" * } + { "" } + if$ + } + if$ + } + if$ + extra.label * +} + +FUNCTION {format.date} +{ type$ "patent" = type$ "newspaper" = or + date empty$ not and + { date } + { year } + if$ +} + +FUNCTION {format.editdate} +{ date empty$ not + { "\allowbreak(" date * ")" * } + { "" } + if$ +} + +FUNCTION {format.urldate} +{ urldate empty$ not entry.is.electronic and + { "\allowbreak[" urldate * "]" * } + { "" } + if$ +} + +FUNCTION {hyphenate} +{ 't := + "" + { t empty$ not } + { t #1 #1 substring$ "-" = + { "-" * + { t #1 #1 substring$ "-" = } + { t #2 global.max$ substring$ 't := } + while$ + } + { t #1 #1 substring$ * + t #2 global.max$ substring$ 't := + } + if$ + } + while$ +} + +FUNCTION {format.pages} +{ pages empty$ + { "" } + { pages hyphenate } + if$ +} + +FUNCTION {format.journal.volume} +{ volume empty$ not + { bold.journal.volume + { "\textbf{" volume * "}" * } + { volume } + if$ + } + { "" } + if$ +} + +FUNCTION {format.journal.number} +{ number empty$ not + { "\penalty0 (" number * ")" * } + { "" } + if$ +} + +FUNCTION {format.journal.pages} +{ pages empty$ + { "" } + { ":\penalty0 " pages hyphenate * } + if$ +} + +FUNCTION {format.periodical.year.volume.number} +{ year empty$ not + { year extract.before.dash } + { "empty year in periodical " cite$ * warning$ } + if$ + volume empty$ not + { ", " * volume extract.before.dash * } + 'skip$ + if$ + number empty$ not + { "\penalty0 (" * number extract.before.dash * ")" * } + 'skip$ + if$ + year contains.dash + { "--" * + year extract.after.dash empty$ + volume extract.after.dash empty$ and + number extract.after.dash empty$ and not + { year extract.after.dash empty$ not + { year extract.after.dash * } + { year extract.before.dash * } + if$ + volume empty$ not + { ", " * volume extract.after.dash * } + 'skip$ + if$ + number empty$ not + { "\penalty0 (" * number extract.after.dash * ")" * } + 'skip$ + if$ + } + 'skip$ + if$ + } + 'skip$ + if$ +} + +FUNCTION {check.url} +{ url empty$ not + { "\url{" url * "}" * 'entry.url := + #1 'entry.is.electronic := + } + { howpublished empty$ not + { howpublished #1 #5 substring$ "\url{" = + { howpublished 'entry.url := + #1 'entry.is.electronic := + } + 'skip$ + if$ + } + { note empty$ not + { note #1 #5 substring$ "\url{" = + { note 'entry.url := + #1 'entry.is.electronic := + } + 'skip$ + if$ + } + 'skip$ + if$ + } + if$ + } + if$ +} + +FUNCTION {format.url} +{ entry.url empty$ not + { new.block entry.url } + { "" } + if$ +} + +FUNCTION {check.doi} +{ doi empty$ not + { #1 'entry.is.electronic := } + 'skip$ + if$ +} + +FUNCTION {is.in.url} +{ 's := + s empty$ + { #1 } + { entry.url empty$ + { #0 } + { s text.length$ 'len := + entry.url text.length$ 'charptr := + { entry.url charptr len substring$ s = not + charptr #0 > + and + } + { charptr #1 - 'charptr := } + while$ + charptr + } + if$ + } + if$ +} + +FUNCTION {format.doi} +{ "" + doi empty$ not show.doi and + { "" 's := + doi 't := + #0 'numnames := + { t empty$ not} + { t #1 #1 substring$ 'tmp.str := + tmp.str "," = tmp.str " " = or t #2 #1 substring$ empty$ or + { t #2 #1 substring$ empty$ + { s tmp.str * 's := } + 'skip$ + if$ + s empty$ s is.in.url or + 'skip$ + { numnames #1 + 'numnames := + numnames #1 > + { ", " * } + { "DOI: " * } + if$ + "\doi{" s * "}" * * + } + if$ + "" 's := + } + { s tmp.str * 's := } + if$ + t #2 global.max$ substring$ 't := + } + while$ + 's := + s empty$ not + { new.block s } + { "" } + if$ + } + 'skip$ + if$ +} + +FUNCTION {check.electronic} +{ "" 'entry.url := + #0 'entry.is.electronic := + 'check.doi + 'skip$ + if$ + 'check.url + 'skip$ + if$ + medium empty$ not + { medium "MT" = medium "DK" = or medium "CD" = or medium "OL" = or + { #1 'entry.is.electronic := } + 'skip$ + if$ + } + 'skip$ + if$ +} + +FUNCTION {format.note} +{ note empty$ not show.note and + { note } + { "" } + if$ +} + +FUNCTION {empty.misc.check} +{ author empty$ title empty$ + year empty$ + and and + key empty$ not and + { "all relevant fields are empty in " cite$ * warning$ } + 'skip$ + if$ +} + +FUNCTION {monograph} +{ output.bibitem + author empty$ not + { format.authors } + { editor empty$ not + { format.editors } + { "empty author and editor in " cite$ * warning$ + "" + } + if$ + } + if$ + output + new.block + format.series.vol.num.title "title" output.check + "M" set.entry.mark + format.mark "" output.after + new.block + format.translators output + new.sentence + format.edition output + new.block + format.address.publisher output + format.year "year" output.check + format.pages bbl.colon output.after + format.urldate "" output.after + format.url output + format.doi output + new.block + format.note output + fin.entry +} + +FUNCTION {incollection} +{ output.bibitem + format.authors output + author format.key output + new.block + format.title "title" output.check + "M" set.entry.mark + format.mark "" output.after + new.block + format.translators output + new.slash + format.editors output + new.block + format.series.vol.num.booktitle "booktitle" output.check + new.block + format.edition output + new.block + format.address.publisher output + format.year "year" output.check + format.pages bbl.colon output.after + format.urldate "" output.after + format.url output + format.doi output + new.block + format.note output + fin.entry +} + +FUNCTION {periodical} +{ output.bibitem + format.authors output + author format.key output + new.block + format.title "title" output.check + "J" set.entry.mark + format.mark "" output.after + new.block + format.periodical.year.volume.number output + new.block + format.address.publisher output + format.date "year" output.check + format.urldate "" output.after + format.url output + format.doi output + new.block + format.note output + fin.entry +} + +FUNCTION {article} +{ output.bibitem + format.authors output + author format.key output + new.block + format.title "title" output.check + "J" set.entry.mark + format.mark "" output.after + new.block + format.journal "journal" output.check + format.date "year" output.check + format.journal.volume output + format.journal.number "" output.after + format.journal.pages "" output.after + format.urldate "" output.after + format.url output + format.doi output + new.block + format.note output + fin.entry +} + +FUNCTION {patent} +{ output.bibitem + format.authors output + author format.key output + new.block + format.title "title" output.check + "P" set.entry.mark + format.mark "" output.after + new.block + format.date "year" output.check + format.urldate "" output.after + format.url output + format.doi output + new.block + format.note output + fin.entry +} + +FUNCTION {electronic} +{ #1 #1 check.electronic + #1 'entry.is.electronic := + output.bibitem + format.authors output + author format.key output + new.block + format.series.vol.num.title "title" output.check + "EB" set.entry.mark + format.mark "" output.after + new.block + format.address.publisher output + date empty$ + { format.date output } + 'skip$ + if$ + format.pages bbl.colon output.after + format.editdate "" output.after + format.urldate "" output.after + format.url output + format.doi output + new.block + format.note output + fin.entry +} + +FUNCTION {misc} +{ journal empty$ not + 'article + { booktitle empty$ not + 'incollection + { publisher empty$ not + 'monograph + { entry.is.electronic + 'electronic + { "Z" set.entry.mark + monograph + } + if$ + } + if$ + } + if$ + } + if$ + empty.misc.check +} + +FUNCTION {archive} +{ "A" set.entry.mark + misc +} + +FUNCTION {book} { monograph } + +FUNCTION {booklet} { book } + +FUNCTION {collection} +{ "G" set.entry.mark + monograph +} + +FUNCTION {database} +{ "DB" set.entry.mark + electronic +} + +FUNCTION {dataset} +{ "DS" set.entry.mark + electronic +} + +FUNCTION {inbook} { book } + +FUNCTION {inproceedings} +{ "C" set.entry.mark + incollection +} + +FUNCTION {conference} { inproceedings } + +FUNCTION {map} +{ "CM" set.entry.mark + misc +} + +FUNCTION {manual} { monograph } + +FUNCTION {mastersthesis} +{ "D" set.entry.mark + monograph +} + +FUNCTION {newspaper} +{ "N" set.entry.mark + article +} + +FUNCTION {online} +{ "EB" set.entry.mark + electronic +} + +FUNCTION {phdthesis} { mastersthesis } + +FUNCTION {proceedings} +{ "C" set.entry.mark + monograph +} + +FUNCTION {software} +{ "CP" set.entry.mark + electronic +} + +FUNCTION {standard} +{ "S" set.entry.mark + misc +} + +FUNCTION {techreport} +{ "R" set.entry.mark + misc +} + +FUNCTION {unpublished} +{ "Z" set.entry.mark + misc +} + +FUNCTION {default.type} { misc } + +MACRO {jan} {"January"} + +MACRO {feb} {"February"} + +MACRO {mar} {"March"} + +MACRO {apr} {"April"} + +MACRO {may} {"May"} + +MACRO {jun} {"June"} + +MACRO {jul} {"July"} + +MACRO {aug} {"August"} + +MACRO {sep} {"September"} + +MACRO {oct} {"October"} + +MACRO {nov} {"November"} + +MACRO {dec} {"December"} + +MACRO {acmcs} {"ACM Computing Surveys"} + +MACRO {acta} {"Acta Informatica"} + +MACRO {cacm} {"Communications of the ACM"} + +MACRO {ibmjrd} {"IBM Journal of Research and Development"} + +MACRO {ibmsj} {"IBM Systems Journal"} + +MACRO {ieeese} {"IEEE Transactions on Software Engineering"} + +MACRO {ieeetc} {"IEEE Transactions on Computers"} + +MACRO {ieeetcad} + {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} + +MACRO {ipl} {"Information Processing Letters"} + +MACRO {jacm} {"Journal of the ACM"} + +MACRO {jcss} {"Journal of Computer and System Sciences"} + +MACRO {scp} {"Science of Computer Programming"} + +MACRO {sicomp} {"SIAM Journal on Computing"} + +MACRO {tocs} {"ACM Transactions on Computer Systems"} + +MACRO {tods} {"ACM Transactions on Database Systems"} + +MACRO {tog} {"ACM Transactions on Graphics"} + +MACRO {toms} {"ACM Transactions on Mathematical Software"} + +MACRO {toois} {"ACM Transactions on Office Information Systems"} + +MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} + +MACRO {tcs} {"Theoretical Computer Science"} + +FUNCTION {sortify} +{ purify$ + "l" change.case$ +} + +FUNCTION {chop.word} +{ 's := + 'len := + s #1 len substring$ = + { s len #1 + global.max$ substring$ } + 's + if$ +} + +FUNCTION {format.lab.names} +{ 's := + s #1 "{vv~}{ll}{, jj}{, ff}" format.name$ 't := + t get.str.lang 'name.lang := + name.lang lang.en = + { t #1 "{vv~}{ll}" format.name$} + { t #1 "{ll}{ff}" format.name$} + if$ + s num.names$ #1 > + { bbl.space * citation.et.al * } + 'skip$ + if$ +} + +FUNCTION {author.key.label} +{ author empty$ + { key empty$ + { cite$ #1 #3 substring$ } + 'key + if$ + } + { author format.lab.names } + if$ +} + +FUNCTION {author.editor.key.label} +{ author empty$ + { editor empty$ + { key empty$ + { cite$ #1 #3 substring$ } + 'key + if$ + } + { editor format.lab.names } + if$ + } + { author format.lab.names } + if$ +} + +FUNCTION {author.key.organization.label} +{ author empty$ + { key empty$ + { organization empty$ + { cite$ #1 #3 substring$ } + { "The " #4 organization chop.word #3 text.prefix$ } + if$ + } + 'key + if$ + } + { author format.lab.names } + if$ +} + +FUNCTION {editor.key.organization.label} +{ editor empty$ + { key empty$ + { organization empty$ + { cite$ #1 #3 substring$ } + { "The " #4 organization chop.word #3 text.prefix$ } + if$ + } + 'key + if$ + } + { editor format.lab.names } + if$ +} + +FUNCTION {calc.short.authors} +{ type$ "book" = + type$ "inbook" = + or + 'author.editor.key.label + { type$ "collection" = + type$ "proceedings" = + or + { editor empty$ not + 'editor.key.organization.label + 'author.key.organization.label + if$ + } + 'author.key.label + if$ + } + if$ + 'short.list := +} + +FUNCTION {calc.label} +{ calc.short.authors + short.list + "(" + * + format.year duplicate$ empty$ + short.list key field.or.null = or + { pop$ "" } + 'skip$ + if$ + * + 'label := +} + +INTEGERS { seq.num } + +FUNCTION {init.seq} +{ #0 'seq.num :=} + +FUNCTION {int.to.fix} +{ "000000000" swap$ int.to.str$ * + #-1 #10 substring$ +} + +FUNCTION {presort} +{ set.entry.lang + set.entry.numbered + show.url show.doi check.electronic + calc.label + label sortify + " " + * + seq.num #1 + 'seq.num := + seq.num int.to.fix + 'sort.label := + sort.label * + #1 entry.max$ substring$ + 'sort.key$ := +} + +STRINGS { longest.label last.label next.extra } + +INTEGERS { longest.label.width last.extra.num number.label } + +FUNCTION {initialize.longest.label} +{ "" 'longest.label := + #0 int.to.chr$ 'last.label := + "" 'next.extra := + #0 'longest.label.width := + #0 'last.extra.num := + #0 'number.label := +} + +FUNCTION {forward.pass} +{ last.label label = + { last.extra.num #1 + 'last.extra.num := + last.extra.num int.to.chr$ 'extra.label := + } + { "a" chr.to.int$ 'last.extra.num := + "" 'extra.label := + label 'last.label := + } + if$ + number.label #1 + 'number.label := +} + +FUNCTION {reverse.pass} +{ next.extra "b" = + { "a" 'extra.label := } + 'skip$ + if$ + extra.label 'next.extra := + extra.label + duplicate$ empty$ + 'skip$ + { "{\natexlab{" swap$ * "}}" * } + if$ + 'extra.label := + label extra.label * 'label := +} + +FUNCTION {bib.sort.order} +{ sort.label 'sort.key$ := +} + +FUNCTION {begin.bib} +{ preamble$ empty$ + 'skip$ + { preamble$ write$ newline$ } + if$ + "\begin{thebibliography}{" number.label int.to.str$ * "}" * + write$ newline$ + "\providecommand{\natexlab}[1]{#1}" + write$ newline$ + "\providecommand{\url}[1]{#1}" + write$ newline$ + "\expandafter\ifx\csname urlstyle\endcsname\relax\else" + write$ newline$ + " \urlstyle{same}\fi" + write$ newline$ + show.doi + { "\expandafter\ifx\csname href\endcsname\relax" + write$ newline$ + " \def\doi#1{#1}\else" + write$ newline$ + " \def\doi#1{\href{https://doi.org/#1}{#1}}\fi" + write$ newline$ + } + 'skip$ + if$ +} + +FUNCTION {end.bib} +{ newline$ + "\end{thebibliography}" write$ newline$ +} + +READ + +EXECUTE {init.state.consts} + +EXECUTE {load.config} + +EXECUTE {init.seq} + +ITERATE {presort} + +SORT + +EXECUTE {initialize.longest.label} + +ITERATE {forward.pass} + +REVERSE {reverse.pass} + +ITERATE {bib.sort.order} + +SORT + +EXECUTE {begin.bib} + +ITERATE {call.type$} + +EXECUTE {end.bib} From ae46fd5369c52b994732584be98bf568800317b3 Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Sat, 7 Mar 2020 19:49:19 +0800 Subject: [PATCH 04/16] Add option only.start.page --- CHANGELOG.md | 2 + gbt7714-author-year.bst | 11 +- gbt7714-numerical.bst | 11 +- gbt7714.dtx | 21 +- test/save.sh | 2 +- test/test.sh | 11 +- test/testbst/npr.bbl | 83 +-- test/testbst/option-only-start-page.bbl | 822 +++++++++++++++++++++ test/testbst/option-only-start-page.dtx | 31 + test/testbst/thu-authoryear.dtx | 60 -- test/testbst/thu-numerical.dtx | 60 -- variants/2005/gbt7714-2005-author-year.bst | 11 +- variants/2005/gbt7714-2005-numerical.bst | 11 +- variants/npr/npr.bst | 11 +- variants/thu/thuthesis-author-year.bst | 11 +- variants/thu/thuthesis-bachelor.bst | 11 +- variants/thu/thuthesis-numeric.bst | 11 +- variants/ustc/ustcthesis-authoryear.bst | 11 +- variants/ustc/ustcthesis-bachelor.bst | 11 +- variants/ustc/ustcthesis-numerical.bst | 11 +- 20 files changed, 1020 insertions(+), 193 deletions(-) create mode 100644 test/testbst/option-only-start-page.bbl create mode 100644 test/testbst/option-only-start-page.dtx diff --git a/CHANGELOG.md b/CHANGELOG.md index 1702891..7f5255b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Added +- 新增选项 `only.start.page` ## [v2.0] - 2020-03-04 ### Changed diff --git a/gbt7714-author-year.bst b/gbt7714-author-year.bst index 4075739..f51c178 100644 --- a/gbt7714-author-year.bst +++ b/gbt7714-author-year.bst @@ -33,6 +33,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + only.start.page show.url show.doi show.note @@ -57,6 +58,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := + #0 'only.start.page := #1 'show.url := #1 'show.doi := #0 'show.note := @@ -1107,7 +1109,12 @@ FUNCTION {hyphenate} FUNCTION {format.pages} { pages empty$ { "" } - { pages hyphenate } + { pages + only.start.page + 'extract.before.dash + 'hyphenate + if$ + } if$ } @@ -1132,7 +1139,7 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " pages hyphenate * } + { ":\penalty0 " format.pages * } if$ } diff --git a/gbt7714-numerical.bst b/gbt7714-numerical.bst index 8fdb371..9f8a86c 100644 --- a/gbt7714-numerical.bst +++ b/gbt7714-numerical.bst @@ -33,6 +33,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + only.start.page show.url show.doi show.note @@ -51,6 +52,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := + #0 'only.start.page := #1 'show.url := #1 'show.doi := #0 'show.note := @@ -1096,7 +1098,12 @@ FUNCTION {hyphenate} FUNCTION {format.pages} { pages empty$ { "" } - { pages hyphenate } + { pages + only.start.page + 'extract.before.dash + 'hyphenate + if$ + } if$ } @@ -1121,7 +1128,7 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " pages hyphenate * } + { ":\penalty0 " format.pages * } if$ } diff --git a/gbt7714.dtx b/gbt7714.dtx index 57254ac..50069e9 100644 --- a/gbt7714.dtx +++ b/gbt7714.dtx @@ -289,6 +289,7 @@ % show.medium.type & |#1| & 显示载体类型标识 \\ % italic.jounal & |#0| & 西文期刊名使用斜体 \\ % show.missing.address.publisher & |#1| & 出版项缺失时显示“出版者不详” \\ +% only.start.page & |#0| & 只显示起始页码 \\ % show.url & |#1| & 显示 url \\ % show.doi & |#1| & 显示 doi \\ % show.note & |#0| & 显示 note 域的信息 \\ @@ -785,6 +786,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + only.start.page show.url show.doi show.note @@ -901,6 +903,16 @@ FUNCTION {load.config} % % \end{macrocode} % +% 页码是否只含起始页: +% \begin{macrocode} +%<*!only-start-page&!npr> + #0 'only.start.page := +% +%<*only-start-page|npr> + #1 'only.start.page := +% +% \end{macrocode} +% % 是否著录 URL: % \begin{macrocode} #1 'show.url := @@ -2508,7 +2520,12 @@ FUNCTION {hyphenate} FUNCTION {format.pages} { pages empty$ { "" } - { pages hyphenate } + { pages + only.start.page + 'extract.before.dash + 'hyphenate + if$ + } if$ } @@ -2541,7 +2558,7 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " pages hyphenate * } + { ":\penalty0 " format.pages * } if$ } diff --git a/test/save.sh b/test/save.sh index 322502f..e420b1b 100644 --- a/test/save.sh +++ b/test/save.sh @@ -38,7 +38,7 @@ for file in $testfiledir/*.dtx; do bblfile="$testdir/test.bbl"; stdfile="$testfiledir/$testname.bbl"; - if ! diff -q "$bblfile" "$stdfile" 2> /dev/null; then + if ! diff -q "$bblfile" "$stdfile" > /dev/null; then cp -f "$bblfile" "$stdfile"; fi done diff --git a/test/test.sh b/test/test.sh index 85fe530..5fe8e2a 100644 --- a/test/test.sh +++ b/test/test.sh @@ -36,12 +36,13 @@ if [ -z "$1" ]; then cp -f "$unpackdir/test.bst" "$testdir" cp -f "$unpackdir/test.bib" "$testdir" - ( cd $testdir; $bibtexexe test > /dev/null; ) + ( cd $testdir; if ! $bibtexexe test > /dev/null; then $bibtexexe test; fi ) bblfile="$testdir/test.bbl"; stdfile="$testfiledir/$testname.bbl"; - if ! diff -q "$bblfile" "$stdfile" 2> /dev/null; then - echo "fails"; + if ! diff -q "$bblfile" "$stdfile" > /dev/null 2> /dev/null; then + echo " fails"; + cp -f "$bblfile" "$stdfile"; succuss=false; fi done @@ -63,11 +64,11 @@ else cp -f "$file" "$unpackdir"; # test bib file - ( cd "$unpackdir"; $unpackexe $filename > /dev/null; ) + ( cd "$unpackdir"; $unpackexe $filename; ) cp -f "$unpackdir/test.bst" "$testdir"; cp -f "$unpackdir/test.bib" "$testdir"; - ( cd "$testdir"; latexmk -xelatex test > /dev/null; ) + ( cd "$testdir"; latexmk -xelatex test; ) bblfile="$testdir/test.bbl"; stdfile="$testfiledir/$testname.bbl"; diff --git a/test/testbst/npr.bbl b/test/testbst/npr.bbl index 5e10d84..623c06f 100644 --- a/test/testbst/npr.bbl +++ b/test/testbst/npr.bbl @@ -16,7 +16,7 @@ 哈里森·沃尔德伦. \newblock 经济数学与金融数学\allowbreak[M]. \newblock 谢远涛, 译. -\newblock 北京: 中国人民大学出版社, 2012: 235-236. +\newblock 北京: 中国人民大学出版社, 2012: 235. \bibitem[北京市政协民族和宗教委员会\ 等(2012)北京市政协民族和宗教委员会 and @@ -30,7 +30,7 @@ 全国信息与文献标准化技术委员会. \newblock 信息与文献\quad 都柏林核心元数据元素集: GB/T 25100—2010\allowbreak[S]. -\newblock 北京: 中国标准出版社, 2010{\natexlab{a}}: 2-3. +\newblock 北京: 中国标准出版社, 2010{\natexlab{a}}: 2. \bibitem[徐光宪\ 等(2010)徐光宪 and 王祥云]{xuguangxian2010wuzhijiegou} @@ -77,7 +77,7 @@ \bibitem[同济大学土木工程防灾国家重点实验室(2011)]{tongji2011wenchuan} 同济大学土木工程防灾国家重点实验室. \newblock 汶川地震灾害研究\allowbreak[M/OL]. -\newblock 上海: 同济大学出版社, 2011: 5-6\allowbreak[2013-05-09]. +\newblock 上海: 同济大学出版社, 2011: 5\allowbreak[2013-05-09]. \newblock \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20120406-YPT-889-0010}. @@ -113,7 +113,7 @@ BALDOCK~P. FAN~X, SOMMERS~C~H. \newblock Food irradiation research and technology\allowbreak[M/OL]. \newblock 2nd ed. -\newblock Ames, Iowa: Blackwell Publishing, 2013: 25-26\allowbreak[2014-06-26]. +\newblock Ames, Iowa: Blackwell Publishing, 2013: 25\allowbreak[2014-06-26]. \newblock \url{http://onlinelibrary.wiley.com/doi/10.1002/9781118422557.ch2/summary}. @@ -129,7 +129,7 @@ FAN~X, SOMMERS~C~H. 年长江洪水的成因与减灾对策\allowbreak[M]//\allowbreak 许厚泽, 赵其国. \newblock 长江流域洪涝灾害与科技对策. -\newblock 北京: 科学出版社, 1999: 32-36. +\newblock 北京: 科学出版社, 1999: 32. \bibitem[陈晋镳\ 等(1980)陈晋镳, 张惠民, 朱士兴, 赵震, and 王振刚]{chenjinbiao1980jixian} @@ -137,7 +137,7 @@ FAN~X, SOMMERS~C~H. \newblock 蓟县震旦亚界研究\allowbreak[M]//\allowbreak 中国地质科学院天津地质矿产研究所. \newblock 中国震旦亚界. -\newblock 天津: 天津科学技术出版社, 1980: 56-114. +\newblock 天津: 天津科学技术出版社, 1980: 56. \bibitem[马克思(2013)]{makesi2013zhengzhi} 马克思. @@ -152,7 +152,7 @@ FAN~X, SOMMERS~C~H. 面向数字素养的高校图书馆数字服务体系研究\allowbreak[C]//\allowbreak 中国图书馆学会. \newblock 中国图书馆学会年会论文集: 2011 年卷. -\newblock 北京: 国家图书馆出版社, 2011: 45-52. +\newblock 北京: 国家图书馆出版社, 2011: 45. \bibitem[Weinstein et~al.(1974)Weinstein and Swertz]{weinstein1974pathogenic} WEINSTEIN~L, SWERTZ~M~N. @@ -160,7 +160,7 @@ WEINSTEIN~L, SWERTZ~M~N. microorganism\allowbreak[M]//\allowbreak SODEMAN~W~A, Jr, SODEMAN~W~A. \newblock Pathologic physiology: mechanisms of disease. -\newblock Philadelphia: Saunders, 1974: 745-772. +\newblock Philadelphia: Saunders, 1974: 745. \bibitem[Roberson et~al.(2011)Roberson and Burneson]{roberson2011drinking} ROBERSON~J~A, BURNESON~E~G. @@ -169,7 +169,7 @@ ROBERSON~J~A, BURNESON~E~G. {American Water Works Association}. \newblock Water quality \& treatment: a handbook on drinking water. \newblock 6th ed. -\newblock New York: McGraw-Hill, 2011: 1.1-1.36\allowbreak[2012-12-10]. +\newblock New York: McGraw-Hill, 2011: 1.1\allowbreak[2012-12-10]. \newblock \url{http://lib.myilibrary.com/Open.aspx?id=291430}. \bibitem[中华医学会湖北分会(1984)]{zhonghua1984linchuang} @@ -211,14 +211,14 @@ ROBERSON~J~A, BURNESON~E~G. 李炳穆. \newblock 韩国图书馆法\allowbreak[J/OL]. \newblock 图书情报工作, 2008, 52\penalty0 (6):\penalty0 - 6-12\allowbreak[2013-10-25]. + 6\allowbreak[2013-10-25]. \newblock \url{http://www.docin.com/p-400265742.html}. \bibitem[李幼平\ 等(2010)李幼平 and 王莉]{liyouping2010xunzheng} 李幼平, 王莉. \newblock 循证医学研究方法: 附视频\allowbreak[J/OL]. \newblock 中华移植杂志(电子版), 2010, 4\penalty0 (3):\penalty0 - 225-228\allowbreak[2014-06-09]. + 225\allowbreak[2014-06-09]. \newblock \url{http://www.cqvip.com/Read/Read.aspx?id=36658332}. \bibitem[武丽丽\ 等(2008)武丽丽, 华一新, 张亚军, @@ -226,7 +226,7 @@ ROBERSON~J~A, BURNESON~E~G. 武丽丽, 华一新, 张亚军, 等. \newblock “北斗一号”监控管理网设计与实现\allowbreak[J/OL]. \newblock 测绘科学, 2008, 33\penalty0 (5):\penalty0 - 8-9\allowbreak[2009-10-25]. + 8\allowbreak[2009-10-25]. \newblock \url{http://vip.calis.edu.cn/CSTJ/Sear.dll?OPAC_CreateDetail}. \newblock DOI: \doi{10.3771/j.issn.1009-2307.2008.05.002}. @@ -239,14 +239,13 @@ KANAMORI~H. CAPLAN~P. \newblock Cataloging internet resources\allowbreak[J]. \newblock The public access computer systems review, 1993, 4\penalty0 - (2):\penalty0 61-66. + (2):\penalty0 61. \bibitem[Frese et~al.(2013)Frese, Katus, and Meder]{frese2013next} FRESE~K~S, KATUS~H~A, MEDER~B. \newblock Next-generation sequencing: from understanding biology to personalized medicine\allowbreak[J/OL]. -\newblock Biology, 2013, 2\penalty0 (1):\penalty0 - 378-398\allowbreak[2013-03-19]. +\newblock Biology, 2013, 2\penalty0 (1):\penalty0 378\allowbreak[2013-03-19]. \newblock \url{http://www.mdpi.com/2079-7737/2/1/378}. \newblock DOI: \doi{10.3390/biology2010378}. @@ -254,7 +253,7 @@ FRESE~K~S, KATUS~H~A, MEDER~B. et~al.]{myburg2014genome} MYBURG~A~A, GRATTAPAGLIA~D, TUSKAN~G~A, et~al. \newblock The genome of eucalyptus grandis\allowbreak[J/OL]. -\newblock Nature, 2014, 510:\penalty0 356-362\allowbreak[2014-06-25]. +\newblock Nature, 2014, 510:\penalty0 356\allowbreak[2014-06-25]. \newblock \url{http://www.nature.com/nature/journal/v510/n7505/pdf/nature13308.pdf}. \newblock DOI: \doi{10.1038/nature13308}. @@ -318,7 +317,7 @@ HOPKINSON~A. 刘乃安. \newblock 生物质材料热解失重动力学及其分析方法研究\allowbreak[D/OL]. -\newblock 安徽: 中国科学技术大学, 2000: 17-18\allowbreak[2014-08-29]. +\newblock 安徽: 中国科学技术大学, 2000: 17\allowbreak[2014-08-29]. \newblock \url{http://wenku.baidu.com/link?url=GJDJxb4lxBUXnIPmq1XoEGSIr1H8TMLbidW_LjlYu33tpt707u62rKliypU_FBGUmox7ovPNaVIVBALAMd5yfwuKUUOAGYuB7cuZ-BYEhXa}. \newblock DOI: \doi{10.7666/d.y351065}. @@ -326,7 +325,7 @@ HOPKINSON~A. \bibitem[Deverell et~al.(2013)Deverell and Igler]{deverell2013companion} DEVERELL~W, IGLER~D. \newblock A companion to {California} history\allowbreak[D/OL]. -\newblock New York: John Wiley \& Sons, 2013: 21-22\allowbreak[2014-06-24]. +\newblock New York: John Wiley \& Sons, 2013: 21\allowbreak[2014-06-24]. \newblock \url{http://onlinelibrary.wiley.com/doi/10.1002/9781444305036.ch2/summary}. @@ -355,14 +354,14 @@ CHERNIK~B~E. \bibitem[杨宗英(1996)]{yangzongying1996dianzi} 杨宗英. \newblock 电子图书馆的现实模型\allowbreak[J]. -\newblock 中国图书馆学报, 1996\penalty0 (2):\penalty0 24-29. +\newblock 中国图书馆学报, 1996\penalty0 (2):\penalty0 24. \bibitem[Dowler(1995)]{dowler1995research} DOWLER~L. \newblock The research university's dilemma: Resource sharing and research in a transinstitutional environment\allowbreak[J]. \newblock Journal of library administration, 1995, 21\penalty0 (1/2):\penalty0 - 5-26. + 5. \bibitem[Sunstein(1996)]{sunstein1996social} SUNSTEIN~C~R. @@ -381,7 +380,7 @@ MORRI~I. 罗杰斯. \newblock 西方文明史: 问题与源头\allowbreak[M]. \newblock 潘惠霞, 魏婧, 杨艳, 等译. -\newblock 大连: 东北财经大学出版社, 2011: 15-16. +\newblock 大连: 东北财经大学出版社, 2011: 15. \bibitem[张忠智(1997)]{zhangzhongzhi1997keji} 张忠智. @@ -391,7 +390,7 @@ MORRI~I. \newblock 中国科学技术期刊编辑学会建会十周年学术研讨会论文汇编. \newblock 北京: 中国科学技术期刊编辑学会学术委员会, 1997: - 33-34. + 33. \bibitem[中国社会科学院语言研究所词典编辑室(1996)]{zhongguo1996xiandai} 中国社会科学院语言研究所词典编辑室. @@ -402,7 +401,7 @@ MORRI~I. \bibitem[刘彻东(1998)]{liuchedong1998zhongguo} 刘彻东. \newblock 中国的青年刊物:个性特色为本仁\allowbreak[J]. -\newblock 中国出版, 1998\penalty0 (5):\penalty0 38-39. +\newblock 中国出版, 1998\penalty0 (5):\penalty0 38. \bibitem[裴丽生(1981)]{peilisheng1981jianghua} 裴丽生. @@ -410,7 +409,7 @@ MORRI~I. 在中国科协学术期刊编辑工作经验交流会上的讲话\allowbreak[C]//\allowbreak 中国科学技术协会. \newblock 中国科协学术期刊编辑工作经验交流会资料选. -\newblock 北京: 中国科学技术协会学会工作部, 1981: 2-10. +\newblock 北京: 中国科学技术协会学会工作部, 1981: 2. \bibitem[张伯伟(2002)]{zhangbowei2002quantang} 张伯伟. @@ -432,7 +431,7 @@ MORRI~I. \newblock 新生儿脑病和脑性瘫痪发病机制与病理生理\allowbreak[M]. \newblock 段涛, 杨慧霞, 译. -\newblock 北京: 人民卫生出版社, 2010: 38-39. +\newblock 北京: 人民卫生出版社, 2010: 38. \bibitem[196(1962)]{1962kangxizidian} 康熙字典: 巳集上: 水部\allowbreak[M]. @@ -564,7 +563,7 @@ BABU~B~V, NAGAR~A~K, DEEP~K, et~al. CALKIN~D, AGER~A, THOMPSON~M. \newblock A comparative risk assessment framework for wildland fire management: the 2010 cohesive strategy science report: RMRS-GTR-262\allowbreak[R]. -\newblock [S.l.: s.n.], 2011: 8-9. +\newblock [S.l.: s.n.], 2011: 8. \bibitem[{U.S. Department of Transportation Federal Highway Administration}(1990)]{usdtfha1990guidelines} @@ -638,7 +637,7 @@ KOSEKI~A, MOMOSE~H, KAWAHITO~M, et~al. \bibitem[国家环境保护局科技标准司(1996)]{guojia1996turang} 国家环境保护局科技标准司. \newblock 土壤环境质量标准: GB 15616—1995\allowbreak[S/OL]. -\newblock 北京: 中国标准出版社, 1996: 2-3\allowbreak[2013-10-14]. +\newblock 北京: 中国标准出版社, 1996: 2\allowbreak[2013-10-14]. \newblock \url{http://wenku.baidu.com/view/b950a34b767f5acfa1c7cd49.html}. \bibitem[200(2009{\natexlab{b}})]{2009information} @@ -658,7 +657,7 @@ Information and documentation---the {Dublin} cord metadata element set: ISO \newblock 植物开花研究\allowbreak[M]//\allowbreak 李承森. \newblock 植物科学进展. -\newblock 北京: 高等教育出版社, 1998: 146-163. +\newblock 北京: 高等教育出版社, 1998: 146. \bibitem[汪学军(2002)]{wangxuejun2002zhongguo} 汪学军. @@ -667,7 +666,7 @@ Information and documentation---the {Dublin} cord metadata element set: ISO 国家环境保护总局生物安全管理办公室. \newblock 中国国家生物安全框架实施国际合作项目研讨会论文集. -\newblock 北京: 中国环境科学出版社, 2002: 22-25. +\newblock 北京: 中国环境科学出版社, 2002: 22. \bibitem[国家标准局信息分类编码研究所(1988)]{guojia1988shijie} 国家标准局信息分类编码研究所. @@ -675,7 +674,7 @@ Information and documentation---the {Dublin} cord metadata element set: ISO 2659—1986\allowbreak[S]//\allowbreak 全国文献工作标准化委员会. \newblock 文献工作国家标准汇编: 3. -\newblock 北京: 中国标准出版社, 1988: 59-92. +\newblock 北京: 中国标准出版社, 1988: 59. \bibitem[197(1977)]{1977songshi} 宋史卷三: 本纪第三\allowbreak[M]//\allowbreak @@ -687,7 +686,7 @@ Information and documentation---the {Dublin} cord metadata element set: ISO \newblock 汶川地震基岩地震动特征分析\allowbreak[M/OL]//\allowbreak 同济大学土木工程防灾国家重点实验室. \newblock 汶川地震震害研究. -\newblock 上海: 同济大学出版社, 2011: 011-012\allowbreak[2013-05-09]. +\newblock 上海: 同济大学出版社, 2011: 011\allowbreak[2013-05-09]. \newblock \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20120406-YPT-889-0010}. @@ -695,24 +694,24 @@ Information and documentation---the {Dublin} cord metadata element set: ISO BUSECK~P~R, NORD~G~L, Jr, VEBLEN~D~R. \newblock Subsolidus phenomena in pyroxenes\allowbreak[M]//\allowbreak Pyroxense. -\newblock Washington, D.C.: Mineralogical Society of America, c1980: 117-211. +\newblock Washington, D.C.: Mineralogical Society of America, c1980: 117. \bibitem[Fourney(c1971)]{fourneyc1971advances} FOURNEY~M~E. \newblock Advances in holographic photoelasticity\allowbreak[C]//\allowbreak Symposium on Applications of Holography in Mechanics, August 23-25, 1971, University of Southern California, Los Angeles, California. -\newblock New York: ASME, c1971: 17-38. +\newblock New York: ASME, c1971: 17. \bibitem[杨洪升(2013)]{yanghongsheng2013siku} 杨洪升. \newblock 四库馆私家抄校书考略\allowbreak[J]. -\newblock 文献, 2013\penalty0 (1):\penalty0 56-75. +\newblock 文献, 2013\penalty0 (1):\penalty0 56. \bibitem[李炳穆(2008{\natexlab{b}})]{libingmu2008hanguo2} 李炳穆. \newblock 韩国图书馆法\allowbreak[J]. -\newblock 图书情报工作, 2008, 52\penalty0 (6):\penalty0 6-21. +\newblock 图书情报工作, 2008, 52\penalty0 (6):\penalty0 6. \bibitem[于潇\ 等(2012)于潇, 刘义, 柴跃廷, et~al.]{yuxiao2012hulianwang} @@ -720,7 +719,7 @@ Symposium on Applications of Holography in Mechanics, August 23-25, 1971, \newblock 互联网药品可信交易环境中主体资质审核备案模式\allowbreak[J]. \newblock 清华大学学报(自然科学版), 2012, 52\penalty0 (11):\penalty0 - 1518-1523. + 1518. \bibitem[陈建军(20l0)]{chenjianjun20l0cong} 陈建军. @@ -735,7 +734,7 @@ Symposium on Applications of Holography in Mechanics, August 23-25, 1971, DES~MARAIS~D~J, STRAUSS~H, SUMMONS~R~E, et~al. \newblock Carbon isotope evidence for the stepwise oxidation of the proterozoic environment\allowbreak[J]. -\newblock Nature, 1992, 359:\penalty0 605-609. +\newblock Nature, 1992, 359:\penalty0 605. \bibitem[Saito et~al.(2006)Saito and Miyazaki]{saito2006jadeite} SAITO~M, MIYAZAKI~K. @@ -743,14 +742,13 @@ SAITO~M, MIYAZAKI~K. {"Kurosegawa Belt" in Izumi Town, Yatsushiro City, Kumamoto Prefecture, central Kyushu}\allowbreak[J]. \newblock Bulletin of the geological survey of Japan, 2006, 57\penalty0 - (5/6):\penalty0 169-176. + (5/6):\penalty0 169. \bibitem[Walls et~al.(2013)Walls, Barichivich, and Brown]{walls2013drought} WALLS~S~C, BARICHIVICH~W~J, BROWN~M~E. \newblock Drought, deluge and declines: the impact of precipitation extremes on amphibians in a changing climate\allowbreak[J/OL]. -\newblock Biology, 2013, 2\penalty0 (1):\penalty0 - 399-418\allowbreak[2013-11-04]. +\newblock Biology, 2013, 2\penalty0 (1):\penalty0 399\allowbreak[2013-11-04]. \newblock \url{http://www.mdpi.com/2079-7737/2/1/399}. \newblock DOI: \doi{10.3390/biology2010399}. @@ -759,8 +757,7 @@ WALLS~S~C, BARICHIVICH~W~J, BROWN~M~E. FRANZ~A~K, DANIELEWICZ~M~A, WONG~D~M, et~al. \newblock Phenotypic screening with oleaginous microalgae reveals modulators of lipid productivity\allowbreak[J/OL]. -\newblock ACS Chemical biology, 2013, 8:\penalty0 - 1053-1062\allowbreak[2014-06-26]. +\newblock ACS Chemical biology, 2013, 8:\penalty0 1053\allowbreak[2014-06-26]. \newblock \url{http://pubs.acs.org/doi/ipdf/10.1021/cb300573r}. \bibitem[Park et~al.(2010)Park and Tosaka]{park2010metadata} @@ -768,7 +765,7 @@ PARK~J~R, TOSAKA~Y. \newblock Metadata quality control in digital repositories and collections: Criteria, semantics, and mechanisms\allowbreak[J/OL]. \newblock Cataloging \& classification quarterly, 2010, 48\penalty0 - (8):\penalty0 696-715\allowbreak[2013-09-05]. + (8):\penalty0 696\allowbreak[2013-09-05]. \newblock \url{http://www.tandfonline.com/doi/pdf/10.1080/01639374.2010.508711}. diff --git a/test/testbst/option-only-start-page.bbl b/test/testbst/option-only-start-page.bbl new file mode 100644 index 0000000..a293eb9 --- /dev/null +++ b/test/testbst/option-only-start-page.bbl @@ -0,0 +1,822 @@ +\begin{thebibliography}{120} +\providecommand{\natexlab}[1]{#1} +\providecommand{\url}[1]{#1} +\expandafter\ifx\csname urlstyle\endcsname\relax\else + \urlstyle{same}\fi +\expandafter\ifx\csname href\endcsname\relax + \def\doi#1{#1}\else + \def\doi#1{\href{https://doi.org/#1}{#1}}\fi + +\bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} +陈登原. +\newblock 国史旧闻: 第 1 卷\allowbreak[M]. +\newblock 北京: 中华书局, 2000: 29. + +\bibitem[哈里森·沃尔德伦(2012)]{hali2012jingji} +哈里森·沃尔德伦. +\newblock 经济数学与金融数学\allowbreak[M]. +\newblock 谢远涛, 译. +\newblock 北京: 中国人民大学出版社, 2012: 235. + +\bibitem[北京市政协民族和宗教委员会\ + 等(2012)北京市政协民族和宗教委员会 and + 北京联合大学民族与宗教研究所]{beijing2012lidai} +北京市政协民族和宗教委员会, + 北京联合大学民族与宗教研究所. +\newblock 历代王朝与民族宗教\allowbreak[M]. +\newblock 北京: 民族出版社, 2012: 112. + +\bibitem[全国信息与文献标准化技术委员会(2010{\natexlab{a}})]{quanguo2010doubai} +全国信息与文献标准化技术委员会. +\newblock 信息与文献\quad 都柏林核心元数据元素集: GB/T + 25100—2010\allowbreak[S]. +\newblock 北京: 中国标准出版社, 2010{\natexlab{a}}: 2. + +\bibitem[徐光宪\ 等(2010)徐光宪 and + 王祥云]{xuguangxian2010wuzhijiegou} +徐光宪, 王祥云. +\newblock 物质结构\allowbreak[M]. +\newblock 北京: 科学出版社, 2010. + +\bibitem[顾炎武(1992)]{guyanwu1992changping} +顾炎武. +\newblock 昌平山水记:京东考古录\allowbreak[M]. +\newblock 北京: 北京古籍出版社, 1992. + +\bibitem[王夫之(1865(清同治四年))]{wangfuzhi1865songlun} +王夫之. +\newblock 宋论\allowbreak[M]. +\newblock 刻本. +\newblock 金陵: 湘乡曾国荃, 1865(清同治四年). + +\bibitem[牛志明\ 等(2012)牛志明, 斯温兰德, and + 雷光春]{niuzhiming2012zonghe} +牛志明, 斯温兰德, 雷光春. +\newblock 综合湿地管理国际研讨会论文集\allowbreak[C]. +\newblock 北京: 海洋出版社, 2012. + +\bibitem[中国第一历史档案馆\ 等(2001)中国第一历史档案馆 and + 辽宁省档案馆]{zhongguo2001zhongguo} +中国第一历史档案馆, 辽宁省档案馆. +\newblock 中国明朝档案总汇\allowbreak[A]. +\newblock 桂林: 广西师范大学出版社, 2001. + +\bibitem[杨保军(2012)]{yangbaojun2012xinwen} +杨保军. +\newblock 新闻道德论\allowbreak[D/OL]. +\newblock 北京: 中国人民大学出版社, 2012\allowbreak[2012-11-01]. +\newblock + \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20101104-BPO-889-1023&cult=CN}. + +\bibitem[赵学功(2001)]{zhaoxuegong2001dangdai} +赵学功. +\newblock 当代美国外交\allowbreak[M/OL]. +\newblock 北京: 社会科学文献出版社, 2001\allowbreak[2014-06-11]. +\newblock \url{http://www.cadal.zju.edu.cn/book/trySinglePage/33023884/1}. + +\bibitem[同济大学土木工程防灾国家重点实验室(2011)]{tongji2011wenchuan} +同济大学土木工程防灾国家重点实验室. +\newblock 汶川地震灾害研究\allowbreak[M/OL]. +\newblock 上海: 同济大学出版社, 2011: 5\allowbreak[2013-05-09]. +\newblock + \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20120406-YPT-889-0010}. + +\bibitem[中国造纸学会(2003)]{zaozhi2003zhongguo} +中国造纸学会. +\newblock 中国造纸年鉴:2003\allowbreak[M/OL]. +\newblock 北京: 中国轻工业出版社, 2003\allowbreak[2014-04-25]. +\newblock \url{http://www.cadal.zju.edu.cn/book/view/25010080}. + +\bibitem[Peebles(2001)]{peebles2001probability} +PEEBLES~P~Z, Jr. +\newblock Probability, random variables, and random signal + principles\allowbreak[M]. +\newblock 4th ed. +\newblock New York: McGraw-Hill, 2001. + +\bibitem[Yufin(2000)]{yufin2000geoecology} +YUFIN~S~A. +\newblock 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}\allowbreak[C]. +\newblock Rotterdam: A. A. Balkema, 2000. + +\bibitem[Baldock(2011)]{baldock2011developing} +BALDOCK~P. +\newblock Developing early childhood services: Past, present and + future\allowbreak[M/OL]. +\newblock Rotterdam: Open University Press, 2011: 105\allowbreak[2012-11-27]. +\newblock \url{http://lib.myilibrary.com/Open.aspx?id=312377}. + +\bibitem[Fan et~al.(2013)Fan and Sommers]{fan2013food} +FAN~X, SOMMERS~C~H. +\newblock Food irradiation research and technology\allowbreak[M/OL]. +\newblock 2nd ed. +\newblock Ames, Iowa: Blackwell Publishing, 2013: 25\allowbreak[2014-06-26]. +\newblock + \url{http://onlinelibrary.wiley.com/doi/10.1002/9781118422557.ch2/summary}. + +\bibitem[wan(2011)]{wangfuzhi2011zhouyi} +周易外传:卷 5\allowbreak[M]//\allowbreak +王夫之. +\newblock 船山全书: 第 6 册. +\newblock 长沙: 岳麓书社, 2011: 1109. + +\bibitem[程根伟(1999)]{chenggenwei1999hongshui} +程根伟. +\newblock 1998 + 年长江洪水的成因与减灾对策\allowbreak[M]//\allowbreak +许厚泽, 赵其国. +\newblock 长江流域洪涝灾害与科技对策. +\newblock 北京: 科学出版社, 1999: 32. + +\bibitem[陈晋镳\ 等(1980)陈晋镳, 张惠民, 朱士兴, 赵震, and + 王振刚]{chenjinbiao1980jixian} +陈晋镳, 张惠民, 朱士兴, 等. +\newblock 蓟县震旦亚界研究\allowbreak[M]//\allowbreak +中国地质科学院天津地质矿产研究所. +\newblock 中国震旦亚界. +\newblock 天津: 天津科学技术出版社, 1980: 56. + +\bibitem[马克思(2013)]{makesi2013zhengzhi} +马克思. +\newblock 政治经济学批判\allowbreak[M]//\allowbreak +马克思, 恩格斯. +\newblock 马克思恩格斯全集: 第 35 卷. +\newblock 北京: 人民出版社, 2013: 302. + +\bibitem[贾东琴\ 等(2011)贾东琴 and 柯平]{jiadongqin2011mianxiang} +贾东琴, 柯平. +\newblock + 面向数字素养的高校图书馆数字服务体系研究\allowbreak[C]//\allowbreak +中国图书馆学会. +\newblock 中国图书馆学会年会论文集: 2011 年卷. +\newblock 北京: 国家图书馆出版社, 2011: 45. + +\bibitem[Weinstein et~al.(1974)Weinstein and Swertz]{weinstein1974pathogenic} +WEINSTEIN~L, SWERTZ~M~N. +\newblock Pathogenic properties of invading + microorganism\allowbreak[M]//\allowbreak +SODEMAN~W~A, Jr, SODEMAN~W~A. +\newblock Pathologic physiology: mechanisms of disease. +\newblock Philadelphia: Saunders, 1974: 745. + +\bibitem[Roberson et~al.(2011)Roberson and Burneson]{roberson2011drinking} +ROBERSON~J~A, BURNESON~E~G. +\newblock Drinking water standards, regulations and + goals\allowbreak[M/OL]//\allowbreak +{American Water Works Association}. +\newblock Water quality \& treatment: a handbook on drinking water. +\newblock 6th ed. +\newblock New York: McGraw-Hill, 2011: 1.1\allowbreak[2012-12-10]. +\newblock \url{http://lib.myilibrary.com/Open.aspx?id=291430}. + +\bibitem[中华医学会湖北分会(1984)]{zhonghua1984linchuang} +中华医学会湖北分会. +\newblock 临床内科杂志\allowbreak[J]. +\newblock 1984, 1\penalty0 (1)--. +\newblock 武汉: 中华医学会湖北分会, 1984--. + +\bibitem[中国图书馆学会(1957)]{zhongguo1957tushu} +中国图书馆学会. +\newblock 图书馆学通讯\allowbreak[J]. +\newblock 1957\penalty0 (1)--1990\penalty0 (4). +\newblock 北京: 北京图书馆, 1957--1990. + +\bibitem[{American Association for the Advancement of + Science}(1883)]{aaas1883science} +{American Association for the Advancement of Science}. +\newblock Science\allowbreak[J]. +\newblock 1883, 1\penalty0 (1)--. +\newblock Washington, D.C.: American Association for the Advancement of + Science, 1883--. + +\bibitem[袁训来\ 等(2012)袁训来, 陈哲, 肖书海, + et~al.]{yuanxunlai2012lantian} +袁训来, 陈哲, 肖书海, 等. +\newblock 蓝田生物群: + 一个认识多细胞生物起源和早期演化的新窗口\allowbreak[J]. +\newblock 科学通报, 2012, 55\penalty0 (34):\penalty0 3219. + +\bibitem[余建斌(2013)]{yujianbin2013women} +余建斌. +\newblock 我们的科技一直在追赶: + 访中国工程院院长周济\allowbreak[N/OL]. +\newblock 人民日报, 2013-01-12\penalty0 (2)\allowbreak[2013-03-20]. +\newblock + \url{http://paper.people.com.cn/rmrb/html/2013-01/12/nw.D110000renmrb_20130112_5-02.htm}. + +\bibitem[李炳穆(2008{\natexlab{a}})]{libingmu2008hanguo} +李炳穆. +\newblock 韩国图书馆法\allowbreak[J/OL]. +\newblock 图书情报工作, 2008, 52\penalty0 (6):\penalty0 + 6\allowbreak[2013-10-25]. +\newblock \url{http://www.docin.com/p-400265742.html}. + +\bibitem[李幼平\ 等(2010)李幼平 and 王莉]{liyouping2010xunzheng} +李幼平, 王莉. +\newblock 循证医学研究方法: 附视频\allowbreak[J/OL]. +\newblock 中华移植杂志(电子版), 2010, 4\penalty0 (3):\penalty0 + 225\allowbreak[2014-06-09]. +\newblock \url{http://www.cqvip.com/Read/Read.aspx?id=36658332}. + +\bibitem[武丽丽\ 等(2008)武丽丽, 华一新, 张亚军, + et~al.]{wulili2008beidou} +武丽丽, 华一新, 张亚军, 等. +\newblock “北斗一号”监控管理网设计与实现\allowbreak[J/OL]. +\newblock 测绘科学, 2008, 33\penalty0 (5):\penalty0 + 8\allowbreak[2009-10-25]. +\newblock \url{http://vip.calis.edu.cn/CSTJ/Sear.dll?OPAC_CreateDetail}. +\newblock DOI: \doi{10.3771/j.issn.1009-2307.2008.05.002}. + +\bibitem[Kanamori(1998)]{kanamori1998shaking} +KANAMORI~H. +\newblock Shaking without quaking\allowbreak[J]. +\newblock Science, 1998, 279\penalty0 (5359):\penalty0 2063. + +\bibitem[Caplan(1993)]{caplan1993cataloging} +CAPLAN~P. +\newblock Cataloging internet resources\allowbreak[J]. +\newblock The public access computer systems review, 1993, 4\penalty0 + (2):\penalty0 61. + +\bibitem[Frese et~al.(2013)Frese, Katus, and Meder]{frese2013next} +FRESE~K~S, KATUS~H~A, MEDER~B. +\newblock Next-generation sequencing: from understanding biology to + personalized medicine\allowbreak[J/OL]. +\newblock Biology, 2013, 2\penalty0 (1):\penalty0 378\allowbreak[2013-03-19]. +\newblock \url{http://www.mdpi.com/2079-7737/2/1/378}. +\newblock DOI: \doi{10.3390/biology2010378}. + +\bibitem[Myburg et~al.(2014)Myburg, Grattapaglia, Tuskan, + et~al.]{myburg2014genome} +MYBURG~A~A, GRATTAPAGLIA~D, TUSKAN~G~A, et~al. +\newblock The genome of eucalyptus grandis\allowbreak[J/OL]. +\newblock Nature, 2014, 510:\penalty0 356\allowbreak[2014-06-25]. +\newblock + \url{http://www.nature.com/nature/journal/v510/n7505/pdf/nature13308.pdf}. +\newblock DOI: \doi{10.1038/nature13308}. + +\bibitem[邓一刚(2006)]{dengyigang2006quanzhineng} +邓一刚. +\newblock 全智能节电器: 200610171314.3\allowbreak[P]. +\newblock 2006-12-13. + +\bibitem[西安电子科技大学(2002)]{xian2002guangzhebian} +西安电子科技大学. +\newblock 光折变自适应光外差探测方法: 01128777.2\allowbreak[P/OL]. +\newblock 2002-03-06\allowbreak[2002-05-28]. +\newblock + \url{http://211.152.9.47/sipoasp/zljs/hyjs-yx-new.asp?recid=01128777.2&leixin=0}. + +\bibitem[Tachibana et~al.(2005)Tachibana, Shimizu, Kobayshi, and + Nakamura]{tachibana2005electronic} +TACHIBANA~R, SHIMIZU~S, KOBAYSHI~S, et~al. +\newblock Electronic watermarking method and system: + US6915001\allowbreak[P/OL]. +\newblock 2005-07-05\allowbreak[2013-11-11]. +\newblock \url{http://www.google.co.in/patents/US6915001}. + +\bibitem[中国互联网络信息中心(2012)]{hulianwang2012di} +中国互联网络信息中心. +\newblock 第 29 + 次中国互联网络发展现状统计报告\allowbreak[R/OL]. +\newblock \allowbreak(2012-01-16)\allowbreak[2013-03-26]. +\newblock + \url{http://www.cnnic.net.cn/hlwfzyj/hlwxzbg/201201/P020120709345264469680}. + +\bibitem[北京市人民政府办公厅(2005)]{beijing2005guanyu} +北京市人民政府办公厅. +\newblock + 关于转发北京市企业投资项目核准暂行实施办法的通知: + 京政办发[2005]37号\allowbreak[A/OL]. +\newblock \allowbreak(2005-07-12)\allowbreak[2011-07-12]. +\newblock \url{http://china.findlaw.cn/fagui/p_1/39934.html}. + +\bibitem[Bawden(2008)]{bawden2008origins} +BAWDEN~D. +\newblock Origins and concepts of digital literacy\allowbreak[EB/OL]. +\newblock \allowbreak(2008-05-04)\allowbreak[2013-03-08]. +\newblock + \url{http://www.soi.city.ac.uk/~dbawden/digital%20literacy%20chapter.pdf}. + +\bibitem[{{Online Computer Library Center, Inc}([2012])}]{oclc2012about} +{Online Computer Library Center, Inc}. +\newblock About {OCLC}: History of cooperation\allowbreak[EB/OL]. +\newblock \allowbreak[2012-03-27]. +\newblock \url{http://www.oclc.org/about/cooperation.en.html}. + +\bibitem[Hopkinson(2009)]{hopkinson2009unimarc} +HOPKINSON~A. +\newblock {UNIMARC} and metadata: Dublin core\allowbreak[EB/OL]. +\newblock \allowbreak(2009-04-22)\allowbreak[2013-03-27]. +\newblock \url{http://archive.ifla.org/IV/ifla64/138-161e.htm}. + +\bibitem[刘乃安(2000)]{liunaian2000shengwu} +刘乃安. +\newblock + 生物质材料热解失重动力学及其分析方法研究\allowbreak[D/OL]. +\newblock 安徽: 中国科学技术大学, 2000: 17\allowbreak[2014-08-29]. +\newblock + \url{http://wenku.baidu.com/link?url=GJDJxb4lxBUXnIPmq1XoEGSIr1H8TMLbidW_LjlYu33tpt707u62rKliypU_FBGUmox7ovPNaVIVBALAMd5yfwuKUUOAGYuB7cuZ-BYEhXa}. +\newblock DOI: \doi{10.7666/d.y351065}. + +\bibitem[Deverell et~al.(2013)Deverell and Igler]{deverell2013companion} +DEVERELL~W, IGLER~D. +\newblock A companion to {California} history\allowbreak[D/OL]. +\newblock New York: John Wiley \& Sons, 2013: 21\allowbreak[2014-06-24]. +\newblock + \url{http://onlinelibrary.wiley.com/doi/10.1002/9781444305036.ch2/summary}. + +\bibitem[Baker et~al.(1995)Baker and Jackson]{baker1995future} +BAKER~S~K, JACKSON~M~E. +\newblock The future of resource sharing\allowbreak[M]. +\newblock New York: The Haworth Press, 1995. + +\bibitem[Chernik(1982)]{chernik1982introduction} +CHERNIK~B~E. +\newblock Introduction to library services for library + technicians\allowbreak[M]. +\newblock Littleton, Colo.: Libraries Unlimited, Inc., 1982. + +\bibitem[尼葛洛庞帝(1996)]{nigeluopangdi1996shuzi} +尼葛洛庞帝. +\newblock 数字化生存\allowbreak[M]. +\newblock 胡泳, 范海燕, 译. +\newblock 海口: 海南出版社, 1996. + +\bibitem[汪冰(1997)]{wangbing1997dianzi} +汪冰. +\newblock 电子图书馆理论与实践研究\allowbreak[M]. +\newblock 北京: 北京图书馆出版社, 1997: 16. + +\bibitem[杨宗英(1996)]{yangzongying1996dianzi} +杨宗英. +\newblock 电子图书馆的现实模型\allowbreak[J]. +\newblock 中国图书馆学报, 1996\penalty0 (2):\penalty0 24. + +\bibitem[Dowler(1995)]{dowler1995research} +DOWLER~L. +\newblock The research university's dilemma: Resource sharing and research in a + transinstitutional environment\allowbreak[J]. +\newblock Journal of library administration, 1995, 21\penalty0 (1/2):\penalty0 + 5. + +\bibitem[Sunstein(1996)]{sunstein1996social} +SUNSTEIN~C~R. +\newblock Social norms and social roles\allowbreak[J/OL]. +\newblock Columbia law review, 1996, 96:\penalty0 903\allowbreak[2012-01-26]. +\newblock + \url{http://www.heinonline.org/HOL/Page?handle=hein.journals/clr96&id=913&collection=journals&index=journals/clr}. + +\bibitem[Morri(2010)]{morri2010why} +MORRI~I. +\newblock Why the west rules for now: the patterns of history, and what they + reveal about the future\allowbreak[M]. +\newblock New York: Farrar, Straus and Giroux, 2010. + +\bibitem[罗杰斯(2011)]{luojiesi2011xifang} +罗杰斯. +\newblock 西方文明史: 问题与源头\allowbreak[M]. +\newblock 潘惠霞, 魏婧, 杨艳, 等译. +\newblock 大连: 东北财经大学出版社, 2011: 15. + +\bibitem[张忠智(1997)]{zhangzhongzhi1997keji} +张忠智. +\newblock + 科技书刊的总编(主编)的角色要求\allowbreak[C]//\allowbreak +中国科学技术期刊编辑学会. +\newblock + 中国科学技术期刊编辑学会建会十周年学术研讨会论文汇编. +\newblock 北京: 中国科学技术期刊编辑学会学术委员会, 1997: + 33. + +\bibitem[中国社会科学院语言研究所词典编辑室(1996)]{zhongguo1996xiandai} +中国社会科学院语言研究所词典编辑室. +\newblock 现代汉语词典\allowbreak[M]. +\newblock 修订本. +\newblock 北京: 商务印书馆, 1996. + +\bibitem[刘彻东(1998)]{liuchedong1998zhongguo} +刘彻东. +\newblock 中国的青年刊物:个性特色为本仁\allowbreak[J]. +\newblock 中国出版, 1998\penalty0 (5):\penalty0 38. + +\bibitem[裴丽生(1981)]{peilisheng1981jianghua} +裴丽生. +\newblock + 在中国科协学术期刊编辑工作经验交流会上的讲话\allowbreak[C]//\allowbreak +中国科学技术协会. +\newblock 中国科协学术期刊编辑工作经验交流会资料选. +\newblock 北京: 中国科学技术协会学会工作部, 1981: 2. + +\bibitem[张伯伟(2002)]{zhangbowei2002quantang} +张伯伟. +\newblock 全唐五代诗格会考\allowbreak[M]. +\newblock 南京: 江苏古籍出版社, 2002: 288. + +\bibitem[200(2009{\natexlab{a}})]{2009shifutangriji} +师伏堂日记: 第 4 册\allowbreak[M]. +\newblock 北京: 北京图书馆出版社, 2009{\natexlab{a}}: 155. + +\bibitem[胡承正\ 等(2010)胡承正, 周详, and + 缪灵]{huchengzheng2010lilun} +胡承正, 周详, 缪灵. +\newblock 理论物理概论: 上\allowbreak[M]. +\newblock 武汉: 武汉大学出版社, 2010: 112. + +\bibitem[美国妇产科医师学会(2010)]{meiguo2010xinshenger} +美国妇产科医师学会. +\newblock + 新生儿脑病和脑性瘫痪发病机制与病理生理\allowbreak[M]. +\newblock 段涛, 杨慧霞, 译. +\newblock 北京: 人民卫生出版社, 2010: 38. + +\bibitem[196(1962)]{1962kangxizidian} +康熙字典: 巳集上: 水部\allowbreak[M]. +\newblock 同文书局影印本. +\newblock 北京: 中华书局, 1962: 50. + +\bibitem[汪昂(1881)]{wangang1881zengding} +汪昂. +\newblock 增订本草备要: 四卷\allowbreak[M]. +\newblock 刻本. +\newblock 京都: 老二酉堂, 1881. + +\bibitem[蒋有绪\ 等(1998)蒋有绪, 郭泉水, 马娟, + et~al.]{jiangyouxu1998zhongguo} +蒋有绪, 郭泉水, 马娟, 等. +\newblock 中国森林群落分类及其群落特征\allowbreak[M]. +\newblock 北京: 科学出版社, 1998. + +\bibitem[中国企业投资协会\ 等(2013)中国企业投资协会, + 台湾并购与私募股权协会, and + 汇盈国际投资集团]{zhongguo2013touzi} +中国企业投资协会, 台湾并购与私募股权协会, + 汇盈国际投资集团. +\newblock 投资台湾: 大陆企业赴台投资指南\allowbreak[M]. +\newblock 北京: 九州出版社, 2013. + +\bibitem[罗斯基(2009)]{luosiji2009zhanqian} +罗斯基. +\newblock 战前中国经济的增长\allowbreak[M]. +\newblock 唐巧天, 毛立坤, 姜修宪, 译. +\newblock 杭州: 浙江大学出版社, 2009. + +\bibitem[库恩(2012)]{kuen2012kexue} +库恩. +\newblock 科学革命的结构: 第 4 版\allowbreak[M]. +\newblock 金吾伦, 胡新和, 译. 2 版. +\newblock 北京: 北京大学出版社, 2012. + +\bibitem[侯文顺(2010)]{houwenshun2010gaofenzi} +侯文顺. +\newblock 高分子物理: + 高分子材料分析、选择与改性\allowbreak[M/OL]. +\newblock 北京: 化学工业出版社, 2010: 119\allowbreak[2012-11-27]. +\newblock + \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20111114-HGS-889-0228}. + +\bibitem[Crawfprd et~al.(1995)Crawfprd and Gorman]{crawfprd1995future} +CRAWFPRD~W, GORMAN~M. +\newblock Future libraries: Dreams, madness, \& reality\allowbreak[M]. +\newblock Chicago: American Library Association, 1995. + +\bibitem[{International Federation of Library Association and + Institutions}(1977)]{ifola1977names} +{International Federation of Library Association and Institutions}. +\newblock Names of persons: National usages for entry in + catalogues\allowbreak[M]. +\newblock 3rd ed. +\newblock London: IFLA International Office for UBC, 1977. + +\bibitem[O'Brien(1994)]{obrien1994introduction} +O'BRIEN~J~A. +\newblock Introduction to information systems\allowbreak[M]. +\newblock 7th ed. +\newblock Burr Ridge, III: Irwin, 1994. + +\bibitem[Kinchy(2012)]{kinchy2012seeds} +KINCHY~A. +\newblock Seeds, sciences, and struggle: the global politics of transgenic + crops\allowbreak[M/OL]. +\newblock Cambridge, Mass.: MIT Press, 2012: 50\allowbreak[2013-07-14]. +\newblock \url{http://lib.myilibrary.com?ID=381443}. + +\bibitem[Praetzellis(2011)]{praetzellis2011death} +PRAETZELLIS~A. +\newblock Death by theory: a tale of mystery and archaeological + theory\allowbreak[M/OL]. +\newblock Rev. ed. +\newblock Rowman \& Littlefield Publishing Group, Inc., 2011: + 13\allowbreak[2012-07-26]. +\newblock \url{http://lib.myilibrary.com/Open.aspx?id=293666}. + +\bibitem[中国职工教育研究会(1985)]{zhigong1985zhigong} +中国职工教育研究会. +\newblock 职工教育研究论文集\allowbreak[G]. +\newblock 北京: 人民教育出版社, 1985. + +\bibitem[中国社会科学院台湾史研究中心(2012)]{shekeyuan2012taiwan} +中国社会科学院台湾史研究中心. +\newblock + 台湾光复六十五周年暨抗战史实学术研讨会论文集\allowbreak[C]. +\newblock 北京: 九州出版社, 2012. + +\bibitem[雷光春(2012)]{leiguangchun2012zonghe} +雷光春. +\newblock + 综合湿地管理:综合湿地管理国际研讨会论文集\allowbreak[C]. +\newblock 北京: 海洋出版社, 2012. + +\bibitem[陈志勇(2011)]{chenzhiyong2011zhongguo} +陈志勇. +\newblock 中国财税文化价值研究: + “中国财税文化国际学术研讨会”论文集\allowbreak[C/OL]. +\newblock 北京: 经济科学出版社, 2011\allowbreak[2013-10-14]. +\newblock + \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.201106228-BPO-889-0135&cult=CN}. + +\bibitem[Babu et~al.(2014)Babu, Nagar, Deep, et~al.]{babu2014proceedings} +BABU~B~V, NAGAR~A~K, DEEP~K, et~al. +\newblock Proceedings of the second international conference on soft computing + for problem solving, december 28--30, 2012\allowbreak[C]. +\newblock New Delhi: Springer, 2014. + +\bibitem[中华人民共和国国务院新闻办公室(2013)]{zhonghua2013guofang} +中华人民共和国国务院新闻办公室. +\newblock 国防白皮书: + 中国武装力量的多样化运用\allowbreak[R/OL]. +\newblock \allowbreak(2013-04-16)\allowbreak[2014-06-11]. +\newblock \url{http://www.mod.gov.cn/affair/2013-04/16/content_4442839.htm}. + +\bibitem[汤万金\ 等(2013)汤万金, 杨跃翔, 刘文, + et~al.]{tangwanjin2013renti} +汤万金, 杨跃翔, 刘文, 等. +\newblock 人体安全重要技术标准研制最终报告: + 7178999X-2006BAK04A10/10.2013\allowbreak[R/OL]. +\newblock \allowbreak(2013-09-30)\allowbreak[2014-06-24]. +\newblock \url{http://www.nstrs.org.cn/xiangxiBG.aspx?id=41707}. + +\bibitem[Calkin et~al.(2011)Calkin, Ager, and Thompson]{calkin2011comparative} +CALKIN~D, AGER~A, THOMPSON~M. +\newblock A comparative risk assessment framework for wildland fire management: + the 2010 cohesive strategy science report: RMRS-GTR-262\allowbreak[R]. +\newblock [S.l.: s.n.], 2011: 8. + +\bibitem[{U.S. Department of Transportation Federal Highway + Administration}(1990)]{usdtfha1990guidelines} +{U.S. Department of Transportation Federal Highway Administration}. +\newblock Guidelines for handling excavated acid-producing material: {PB + 91-194001}\allowbreak[R]. +\newblock Springfield: U.S. Department of Commerce National Information + Service, 1990. + +\bibitem[{World Health Organization}(1970)]{who1970factors} +{World Health Organization}. +\newblock Factors regulating the immune response: Report of {WHO Scientific + Group}\allowbreak[R]. +\newblock Geneva: WHO, 1970. + +\bibitem[马欢(2011)]{mahuan2011renlei} +马欢. +\newblock + 人类活动影响下海河流域典型区水循环变化分析\allowbreak[D/OL]. +\newblock 北京: 清华大学, 2011: 27\allowbreak[2013-10-14]. +\newblock + \url{http://www.cnki.net/kcms/detail/detail.aspx?dbcode=CDFD&QueryID=.0&CurRec=11&dbname=CDFDLAST2013&filename=1012035905.nh&uid=WEEvREcwSlJHSldTTGJhYIJRaEhGUXFQWVB6SGZXeisxdmVhV3ZyZkpoUnozeDE1b0paM0NmMjZiQ3p4TUdmcw=}. + +\bibitem[吴云芳(2003)]{wuyunfang2003mianxiang} +吴云芳. +\newblock + 面向中文信息处理的现代汉语并列结构研究\allowbreak[D/OL]. +\newblock 北京: 北京大学, 2003\allowbreak[2013-10-14]. +\newblock + \url{http://thesis.lib.pku.edu.cn/dlib/List.asp?lang=gb&type=Reader&DocGroupID=4&DocID=6328}. + +\bibitem[Calms(1965)]{calms1965infrared} +CALMS~R~B. +\newblock Infrared spectroscopic studies on solid oxygen\allowbreak[D]. +\newblock Berkeley: Univ. of California, 1965. + +\bibitem[张凯军(2012)]{zhangkaijun2012guidao} +张凯军. +\newblock 轨道火车及高速轨道火车紧急安全制动辅助装置: + 201220158825.2\allowbreak[P]. +\newblock 2012-04-05. + +\bibitem[河北绿洲生态环境科技有限公司(2001)]{hebei2001yizhong} +河北绿洲生态环境科技有限公司. +\newblock 一种荒漠化地区生态植被综合培育种植方法: + 01129210.5\allowbreak[P/OL]. +\newblock 2001-10-24\allowbreak[2002-05-28]. +\newblock + \url{http://211.152.9.47/sipoasp/zlijs/hyjs-yx-new.asp?recid=01129210.5&leixin=0}. + +\bibitem[Koseki et~al.(2002)Koseki, Momose, Kawahito, + et~al.]{koseki2002compiler} +KOSEKI~A, MOMOSE~H, KAWAHITO~M, et~al. +\newblock Compiler: US828402\allowbreak[P/OL]. +\newblock 2002-05-25\allowbreak[2002-05-28]. +\newblock + \url{http://FF&p=1&u=netahtml/PTO/search-bool.html&r=5&f=G&1=50&col=AND&d=PG01&sl=IBM.AS.&OS=AN/IBM/RS=AN/IBM}. + +\bibitem[全国信息与文献标准化技术委员会(2010{\natexlab{b}})]{quanguo2010wenxian} +全国信息与文献标准化技术委员会. +\newblock 文献著录: 第 4 部分\quad 非书资料: GB/T + 3792.7—2009\allowbreak[S]. +\newblock 北京: 中国标准出版社, 2010{\natexlab{b}}: 3. + +\bibitem[全国广播电视标准化技术委员会(2007)]{quanguo2007guangbo} +全国广播电视标准化技术委员会. +\newblock 广播电视音像资料编目规范: 第 2 部分\quad 广播资料: + GY/T 202.2—2007\allowbreak[S]. +\newblock 北京: 国家广播电影电视总局广播电视规划院, 2007: 1. + +\bibitem[国家环境保护局科技标准司(1996)]{guojia1996turang} +国家环境保护局科技标准司. +\newblock 土壤环境质量标准: GB 15616—1995\allowbreak[S/OL]. +\newblock 北京: 中国标准出版社, 1996: 2\allowbreak[2013-10-14]. +\newblock \url{http://wenku.baidu.com/view/b950a34b767f5acfa1c7cd49.html}. + +\bibitem[200(2009{\natexlab{b}})]{2009information} +Information and documentation---the {Dublin} cord metadata element set: ISO + 15836: 2009\allowbreak[S/OL]. +\newblock 2009\allowbreak[2013-03-24]. +\newblock + \url{http://www.iso.org/iso/home/store/catalogue_tc/catalogue_detail.htm?csnumber=52142}. + +\bibitem[198(1988)]{1988qizhi} +卷 39 乞致仕第一\allowbreak[M]//\allowbreak +苏魏公文集: 下册. +\newblock 北京: 中华书局, 1988: 590. + +\bibitem[白书农(1998)]{baishunong1998zhiwu} +白书农. +\newblock 植物开花研究\allowbreak[M]//\allowbreak +李承森. +\newblock 植物科学进展. +\newblock 北京: 高等教育出版社, 1998: 146. + +\bibitem[汪学军(2002)]{wangxuejun2002zhongguo} +汪学军. +\newblock + 中国农业转基因生物研究进展与安全管理\allowbreak[C]//\allowbreak +国家环境保护总局生物安全管理办公室. +\newblock + 中国国家生物安全框架实施国际合作项目研讨会论文集. +\newblock 北京: 中国环境科学出版社, 2002: 22. + +\bibitem[国家标准局信息分类编码研究所(1988)]{guojia1988shijie} +国家标准局信息分类编码研究所. +\newblock 世界各国和地区名称代码: GB/T + 2659—1986\allowbreak[S]//\allowbreak +全国文献工作标准化委员会. +\newblock 文献工作国家标准汇编: 3. +\newblock 北京: 中国标准出版社, 1988: 59. + +\bibitem[197(1977)]{1977songshi} +宋史卷三: 本纪第三\allowbreak[M]//\allowbreak +宋史: 第 1 册. +\newblock 北京: 中华书局, 1977: 49. + +\bibitem[楼梦鳞\ 等(2011)楼梦鳞 and 杨燕]{loumenglin2011wenchuan} +楼梦鳞, 杨燕. +\newblock 汶川地震基岩地震动特征分析\allowbreak[M/OL]//\allowbreak +同济大学土木工程防灾国家重点实验室. +\newblock 汶川地震震害研究. +\newblock 上海: 同济大学出版社, 2011: 011\allowbreak[2013-05-09]. +\newblock + \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20120406-YPT-889-0010}. + +\bibitem[Buseck et~al.(c1980)Buseck, Nord, and Veblen]{buseckc1980subsolidus} +BUSECK~P~R, NORD~G~L, Jr, VEBLEN~D~R. +\newblock Subsolidus phenomena in pyroxenes\allowbreak[M]//\allowbreak +Pyroxense. +\newblock Washington, D.C.: Mineralogical Society of America, c1980: 117. + +\bibitem[Fourney(c1971)]{fourneyc1971advances} +FOURNEY~M~E. +\newblock Advances in holographic photoelasticity\allowbreak[C]//\allowbreak +Symposium on Applications of Holography in Mechanics, August 23-25, 1971, + University of Southern California, Los Angeles, California. +\newblock New York: ASME, c1971: 17. + +\bibitem[杨洪升(2013)]{yanghongsheng2013siku} +杨洪升. +\newblock 四库馆私家抄校书考略\allowbreak[J]. +\newblock 文献, 2013\penalty0 (1):\penalty0 56. + +\bibitem[李炳穆(2008{\natexlab{b}})]{libingmu2008hanguo2} +李炳穆. +\newblock 韩国图书馆法\allowbreak[J]. +\newblock 图书情报工作, 2008, 52\penalty0 (6):\penalty0 6. + +\bibitem[于潇\ 等(2012)于潇, 刘义, 柴跃廷, + et~al.]{yuxiao2012hulianwang} +于潇, 刘义, 柴跃廷, 等. +\newblock + 互联网药品可信交易环境中主体资质审核备案模式\allowbreak[J]. +\newblock 清华大学学报(自然科学版), 2012, 52\penalty0 (11):\penalty0 + 1518. + +\bibitem[陈建军(20l0)]{chenjianjun20l0cong} +陈建军. +\newblock 从数字地球到智慧地球\allowbreak[J/OL]. +\newblock 国图资源导刊, 20l0, 7\penalty0 (10):\penalty0 + 93\allowbreak[2013-03-20]. +\newblock \url{http://d.g.wanfangdata.com.cn/Periodical_hunandz201010038.aspx}. +\newblock DOI: \doi{10.3969/j.issn.1672-5603.2010.10.038}. + +\bibitem[Des~Marais et~al.(1992)Des~Marais, Strauss, Summons, + et~al.]{desmarais1992carbon} +DES~MARAIS~D~J, STRAUSS~H, SUMMONS~R~E, et~al. +\newblock Carbon isotope evidence for the stepwise oxidation of the proterozoic + environment\allowbreak[J]. +\newblock Nature, 1992, 359:\penalty0 605. + +\bibitem[Saito et~al.(2006)Saito and Miyazaki]{saito2006jadeite} +SAITO~M, MIYAZAKI~K. +\newblock Jadeite-bearing metagabbro in serpentinite mélange of the + {"Kurosegawa Belt" in Izumi Town, Yatsushiro City, Kumamoto Prefecture, + central Kyushu}\allowbreak[J]. +\newblock Bulletin of the geological survey of Japan, 2006, 57\penalty0 + (5/6):\penalty0 169. + +\bibitem[Walls et~al.(2013)Walls, Barichivich, and Brown]{walls2013drought} +WALLS~S~C, BARICHIVICH~W~J, BROWN~M~E. +\newblock Drought, deluge and declines: the impact of precipitation extremes on + amphibians in a changing climate\allowbreak[J/OL]. +\newblock Biology, 2013, 2\penalty0 (1):\penalty0 399\allowbreak[2013-11-04]. +\newblock \url{http://www.mdpi.com/2079-7737/2/1/399}. +\newblock DOI: \doi{10.3390/biology2010399}. + +\bibitem[Franz et~al.(2013)Franz, Danielewicz, Wong, Anderson, and + Boothe]{franz2013phenotypic} +FRANZ~A~K, DANIELEWICZ~M~A, WONG~D~M, et~al. +\newblock Phenotypic screening with oleaginous microalgae reveals modulators of + lipid productivity\allowbreak[J/OL]. +\newblock ACS Chemical biology, 2013, 8:\penalty0 1053\allowbreak[2014-06-26]. +\newblock \url{http://pubs.acs.org/doi/ipdf/10.1021/cb300573r}. + +\bibitem[Park et~al.(2010)Park and Tosaka]{park2010metadata} +PARK~J~R, TOSAKA~Y. +\newblock Metadata quality control in digital repositories and collections: + Criteria, semantics, and mechanisms\allowbreak[J/OL]. +\newblock Cataloging \& classification quarterly, 2010, 48\penalty0 + (8):\penalty0 696\allowbreak[2013-09-05]. +\newblock + \url{http://www.tandfonline.com/doi/pdf/10.1080/01639374.2010.508711}. + +\bibitem[丁文详(2000)]{dingwenxiang2000shuzi} +丁文详. +\newblock 数字革命与竞争国际化\allowbreak[N]. +\newblock 中国青年报, 2000-11-20\penalty0 (15). + +\bibitem[张田勤(2000)]{zhangtianqin2000zuifan} +张田勤. +\newblock 罪犯 DNA 库与生命伦理学计划\allowbreak[N]. +\newblock 大众科技报, 2000-11-12\penalty0 (7). + +\bibitem[傅刚\ 等(2000)傅刚, 赵承, and 李佳路]{fugang2000dafeng} +傅刚, 赵承, 李佳路. +\newblock 大风沙过后的思考\allowbreak[N/OL]. +\newblock 北京青年报, 2000-01-12\allowbreak[2005-09-28]. +\newblock + \url{http://www.bjyouth.com.cn/Bqb/20000412/GB/4216%5ED0412B1401.htm}. + +\bibitem[刘裕国\ 等(2013)刘裕国, 杨柳, 张洋, + et~al.]{liuyuguo2013wumai} +刘裕国, 杨柳, 张洋, 等. +\newblock 雾霾来袭, 如何突围\allowbreak[N/OL]. +\newblock 人民日报, 2013-01-12\allowbreak[2013-11-06]. +\newblock + \url{http://paper.people.com.cn/rmrb/html/2013-01/12/nw.D110000renmrb_20130112_2-04.htm}. + +\bibitem[萧钰(2001)]{xiaoyu2001chuban} +萧钰. +\newblock 出版业信息化迈入快车道\allowbreak[EB/OL]. +\newblock \allowbreak(2001-12-19)\allowbreak[2002-04-15]. +\newblock \url{http://www.creader.com/news/20011219/200112190019.html}. + +\bibitem[李强(2012)]{liqiang2012huajie} +李强. +\newblock 化解医患矛盾需釜底抽薪\allowbreak[EB/OL]. +\newblock \allowbreak(2012-05-03)\allowbreak[2013-03-25]. +\newblock \url{http://wenku.baidu.com/view/47e4f206b52acfc789ebc92f.html}. + +\bibitem[{{Commonwealth Libraries Bureau of Library Development. Pennsylvania + Department of Education Office}([2013])}]{clbld2013pennsylvania} +{Commonwealth Libraries Bureau of Library Development. Pennsylvania Department + of Education Office}. +\newblock Pennsylvania library laws\allowbreak[EB/OL]. +\newblock \allowbreak[2013-03-24]. +\newblock \url{http://www.racc.edu/yocum/pdf/PALibraryLaws.pdf}. + +\bibitem[201(2012)]{2012dublin} +Dublin core metadata element set: version 1.1\allowbreak[EB/OL]. +\newblock \allowbreak(2012-06-14)\allowbreak[2014-06-11]. +\newblock \url{http://dublincore.org/documents/dces/}. + +\end{thebibliography} diff --git a/test/testbst/option-only-start-page.dtx b/test/testbst/option-only-start-page.dtx new file mode 100644 index 0000000..bb0bf57 --- /dev/null +++ b/test/testbst/option-only-start-page.dtx @@ -0,0 +1,31 @@ +%<*internal> +\begingroup + \def\nameoflatex{LaTeX2e} +\expandafter\endgroup\ifx\nameoflatexe\fmtname\else +\csname fi\endcsname +% +%<*install> +\input docstrip.tex +\nopreamble +\keepsilent +\askforoverwritefalse +\nopostamble +\generate{ + \file{test.bst}{\from{gbt7714.dtx}{2015,numerical,only-start-page}} + \file{test.bib}{\from{\jobname.dtx}{bib}} +} +\endbatchfile +% +%<*internal> +\fi +% +%<*driver> +\ProvidesFile{\jobname.dtx} +% +% \fi +% +% \begin{macrocode} +%<*bib> +% +% \end{macrocode} +\endinput diff --git a/test/testbst/thu-authoryear.dtx b/test/testbst/thu-authoryear.dtx index 7538426..bc924fe 100644 --- a/test/testbst/thu-authoryear.dtx +++ b/test/testbst/thu-authoryear.dtx @@ -195,16 +195,6 @@ key = {huo4 si1 ni2}, } -@book{wangfuzhi1865songlun, - author = {王夫之}, - title = {宋论}, - edition = {刻本}, - address = {金陵}, - publisher = {曾氏}, - year = {1865(清同治四年)}, - key = {wang2 fu1 zhi1}, -} - @book{zhaoyaodong1998xinshidai, author = {赵耀东}, title = {新时代的工业工程师}, @@ -236,46 +226,6 @@ key = {quan2 guo2 chu1 ban3 ye4}, } -@techreport{who1970factors, - author = {{World Health Organization}}, - title = {Factors Regulating the Immune Response: Report of {WHO Scientific Group}}, - address = {Geneva}, - publisher = {WHO}, - year = {1970}, -} - -@book{peebles2001probability, - author = {Peebles, Jr, Peyton Z.}, - title = {Probability, Random Variables, and Random Signal Principles}, - edition = {4}, - address = {New York}, - publisher = {McGraw Hill}, - year = {2001}, -} - -@incollection{baishunong1998zhiwu, - author = {白书农}, - title = {植物开花研究}, - editor = {李承森}, - booktitle = {植物科学进展}, - address = {北京}, - publisher = {高等教育出版社}, - year = {1998}, - pages = {146--163}, - key = {bai2 shu1 nong2}, -} - -@incollection{weinstein1974pathogenic, - author = {Weinstein, L and Swertz, M N}, - title = {Pathogenic Properties of Invading Microorganism}, - editor = {Sodeman, Jr, William A and Sodeman, William A}, - booktitle = {Pathologic physiology: mechanisms of disease}, - address = {Philadelphia}, - publisher = {Saunders}, - year = {1974}, - pages = {745--772}, -} - @inproceedings{hanjiren1985lun, author = {韩吉人}, title = {论职工教育的特点}, @@ -309,16 +259,6 @@ key = {zhong1 guo2 tu2 shu1 guan3 xue2 hui4}, } -@periodical{aaas1883science, - author = {{American Association for the Advancement of Science}}, - title = {Science}, - year = {1883--}, - volume = {1}, - number = {1}, - address = {Washington, D.C.}, - publisher = {American Association for the Advancement of Science}, -} - @newspaper{fugang2000fengsha, author = {傅刚 and 赵承 and 李佳路}, title = {大风沙过后的思考}, diff --git a/test/testbst/thu-numerical.dtx b/test/testbst/thu-numerical.dtx index 3a9070c..056c4c5 100644 --- a/test/testbst/thu-numerical.dtx +++ b/test/testbst/thu-numerical.dtx @@ -195,16 +195,6 @@ key = {huo4 si1 ni2}, } -@book{wangfuzhi1865songlun, - author = {王夫之}, - title = {宋论}, - edition = {刻本}, - address = {金陵}, - publisher = {曾氏}, - year = {1865(清同治四年)}, - key = {wang2 fu1 zhi1}, -} - @book{zhaoyaodong1998xinshidai, author = {赵耀东}, title = {新时代的工业工程师}, @@ -236,46 +226,6 @@ key = {quan2 guo2 chu1 ban3 ye4}, } -@techreport{who1970factors, - author = {{World Health Organization}}, - title = {Factors Regulating the Immune Response: Report of {WHO Scientific Group}}, - address = {Geneva}, - publisher = {WHO}, - year = {1970}, -} - -@book{peebles2001probability, - author = {Peebles, Jr, Peyton Z.}, - title = {Probability, Random Variables, and Random Signal Principles}, - edition = {4}, - address = {New York}, - publisher = {McGraw Hill}, - year = {2001}, -} - -@incollection{baishunong1998zhiwu, - author = {白书农}, - title = {植物开花研究}, - editor = {李承森}, - booktitle = {植物科学进展}, - address = {北京}, - publisher = {高等教育出版社}, - year = {1998}, - pages = {146--163}, - key = {bai2 shu1 nong2}, -} - -@incollection{weinstein1974pathogenic, - author = {Weinstein, L and Swertz, M N}, - title = {Pathogenic Properties of Invading Microorganism}, - editor = {Sodeman, Jr, William A and Sodeman, William A}, - booktitle = {Pathologic physiology: mechanisms of disease}, - address = {Philadelphia}, - publisher = {Saunders}, - year = {1974}, - pages = {745--772}, -} - @inproceedings{hanjiren1985lun, author = {韩吉人}, title = {论职工教育的特点}, @@ -309,16 +259,6 @@ key = {zhong1 guo2 tu2 shu1 guan3 xue2 hui4}, } -@periodical{aaas1883science, - author = {{American Association for the Advancement of Science}}, - title = {Science}, - year = {1883--}, - volume = {1}, - number = {1}, - address = {Washington, D.C.}, - publisher = {American Association for the Advancement of Science}, -} - @newspaper{fugang2000fengsha, author = {傅刚 and 赵承 and 李佳路}, title = {大风沙过后的思考}, diff --git a/variants/2005/gbt7714-2005-author-year.bst b/variants/2005/gbt7714-2005-author-year.bst index 89d6566..a5f8213 100644 --- a/variants/2005/gbt7714-2005-author-year.bst +++ b/variants/2005/gbt7714-2005-author-year.bst @@ -33,6 +33,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + only.start.page show.url show.doi show.note @@ -57,6 +58,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := + #0 'only.start.page := #1 'show.url := #0 'show.doi := #0 'show.note := @@ -1107,7 +1109,12 @@ FUNCTION {hyphenate} FUNCTION {format.pages} { pages empty$ { "" } - { pages hyphenate } + { pages + only.start.page + 'extract.before.dash + 'hyphenate + if$ + } if$ } @@ -1132,7 +1139,7 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " pages hyphenate * } + { ":\penalty0 " format.pages * } if$ } diff --git a/variants/2005/gbt7714-2005-numerical.bst b/variants/2005/gbt7714-2005-numerical.bst index f6bdfe2..c803a32 100644 --- a/variants/2005/gbt7714-2005-numerical.bst +++ b/variants/2005/gbt7714-2005-numerical.bst @@ -33,6 +33,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + only.start.page show.url show.doi show.note @@ -51,6 +52,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := + #0 'only.start.page := #1 'show.url := #0 'show.doi := #0 'show.note := @@ -1096,7 +1098,12 @@ FUNCTION {hyphenate} FUNCTION {format.pages} { pages empty$ { "" } - { pages hyphenate } + { pages + only.start.page + 'extract.before.dash + 'hyphenate + if$ + } if$ } @@ -1121,7 +1128,7 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " pages hyphenate * } + { ":\penalty0 " format.pages * } if$ } diff --git a/variants/npr/npr.bst b/variants/npr/npr.bst index 264f8c4..3f3314e 100644 --- a/variants/npr/npr.bst +++ b/variants/npr/npr.bst @@ -33,6 +33,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + only.start.page show.url show.doi show.note @@ -51,6 +52,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := + #1 'only.start.page := #1 'show.url := #1 'show.doi := #0 'show.note := @@ -1096,7 +1098,12 @@ FUNCTION {hyphenate} FUNCTION {format.pages} { pages empty$ { "" } - { pages hyphenate } + { pages + only.start.page + 'extract.before.dash + 'hyphenate + if$ + } if$ } @@ -1121,7 +1128,7 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " pages hyphenate * } + { ":\penalty0 " format.pages * } if$ } diff --git a/variants/thu/thuthesis-author-year.bst b/variants/thu/thuthesis-author-year.bst index cabc59f..ac5077b 100644 --- a/variants/thu/thuthesis-author-year.bst +++ b/variants/thu/thuthesis-author-year.bst @@ -33,6 +33,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + only.start.page show.url show.doi show.note @@ -57,6 +58,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := + #0 'only.start.page := #1 'show.url := #0 'show.doi := #0 'show.note := @@ -1110,7 +1112,12 @@ FUNCTION {hyphenate} FUNCTION {format.pages} { pages empty$ { "" } - { pages hyphenate } + { pages + only.start.page + 'extract.before.dash + 'hyphenate + if$ + } if$ } @@ -1135,7 +1142,7 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " pages hyphenate * } + { ":\penalty0 " format.pages * } if$ } diff --git a/variants/thu/thuthesis-bachelor.bst b/variants/thu/thuthesis-bachelor.bst index b6e5032..cf27b9f 100644 --- a/variants/thu/thuthesis-bachelor.bst +++ b/variants/thu/thuthesis-bachelor.bst @@ -33,6 +33,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + only.start.page show.url show.doi show.note @@ -51,6 +52,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := + #0 'only.start.page := #1 'show.url := #1 'show.doi := #0 'show.note := @@ -1096,7 +1098,12 @@ FUNCTION {hyphenate} FUNCTION {format.pages} { pages empty$ { "" } - { pages hyphenate } + { pages + only.start.page + 'extract.before.dash + 'hyphenate + if$ + } if$ } @@ -1121,7 +1128,7 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " pages hyphenate * } + { ":\penalty0 " format.pages * } if$ } diff --git a/variants/thu/thuthesis-numeric.bst b/variants/thu/thuthesis-numeric.bst index af47fe4..d9aa181 100644 --- a/variants/thu/thuthesis-numeric.bst +++ b/variants/thu/thuthesis-numeric.bst @@ -33,6 +33,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + only.start.page show.url show.doi show.note @@ -51,6 +52,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := + #0 'only.start.page := #1 'show.url := #0 'show.doi := #0 'show.note := @@ -1099,7 +1101,12 @@ FUNCTION {hyphenate} FUNCTION {format.pages} { pages empty$ { "" } - { pages hyphenate } + { pages + only.start.page + 'extract.before.dash + 'hyphenate + if$ + } if$ } @@ -1124,7 +1131,7 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " pages hyphenate * } + { ":\penalty0 " format.pages * } if$ } diff --git a/variants/ustc/ustcthesis-authoryear.bst b/variants/ustc/ustcthesis-authoryear.bst index 81bdb59..59b420c 100644 --- a/variants/ustc/ustcthesis-authoryear.bst +++ b/variants/ustc/ustcthesis-authoryear.bst @@ -33,6 +33,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + only.start.page show.url show.doi show.note @@ -57,6 +58,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := + #0 'only.start.page := #1 'show.url := #1 'show.doi := #0 'show.note := @@ -1107,7 +1109,12 @@ FUNCTION {hyphenate} FUNCTION {format.pages} { pages empty$ { "" } - { pages hyphenate } + { pages + only.start.page + 'extract.before.dash + 'hyphenate + if$ + } if$ } @@ -1132,7 +1139,7 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " pages hyphenate * } + { ":\penalty0 " format.pages * } if$ } diff --git a/variants/ustc/ustcthesis-bachelor.bst b/variants/ustc/ustcthesis-bachelor.bst index 95567ca..ae54275 100644 --- a/variants/ustc/ustcthesis-bachelor.bst +++ b/variants/ustc/ustcthesis-bachelor.bst @@ -33,6 +33,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + only.start.page show.url show.doi show.note @@ -53,6 +54,7 @@ FUNCTION {load.config} #1 'italic.jounal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := + #0 'only.start.page := #1 'show.url := #1 'show.doi := #0 'show.note := @@ -1098,7 +1100,12 @@ FUNCTION {hyphenate} FUNCTION {format.pages} { pages empty$ { "" } - { pages hyphenate } + { pages + only.start.page + 'extract.before.dash + 'hyphenate + if$ + } if$ } @@ -1123,7 +1130,7 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " pages hyphenate * } + { ":\penalty0 " format.pages * } if$ } diff --git a/variants/ustc/ustcthesis-numerical.bst b/variants/ustc/ustcthesis-numerical.bst index b3e8cdd..2beb10a 100644 --- a/variants/ustc/ustcthesis-numerical.bst +++ b/variants/ustc/ustcthesis-numerical.bst @@ -33,6 +33,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + only.start.page show.url show.doi show.note @@ -51,6 +52,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := + #0 'only.start.page := #1 'show.url := #1 'show.doi := #0 'show.note := @@ -1096,7 +1098,12 @@ FUNCTION {hyphenate} FUNCTION {format.pages} { pages empty$ { "" } - { pages hyphenate } + { pages + only.start.page + 'extract.before.dash + 'hyphenate + if$ + } if$ } @@ -1121,7 +1128,7 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " pages hyphenate * } + { ":\penalty0 " format.pages * } if$ } From e1b729eb89dcaef874f66851f0a79cd33330e077 Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Sat, 7 Mar 2020 20:39:16 +0800 Subject: [PATCH 05/16] Add option title.in.journal --- CHANGELOG.md | 1 + gbt7714-author-year.bst | 14 +++++-- gbt7714-numerical.bst | 14 +++++-- gbt7714.dtx | 24 +++++++++-- test/testbst/npr.bbl | 49 ---------------------- variants/2005/gbt7714-2005-author-year.bst | 14 +++++-- variants/2005/gbt7714-2005-numerical.bst | 14 +++++-- variants/npr/npr.bst | 14 +++++-- variants/thu/thuthesis-author-year.bst | 14 +++++-- variants/thu/thuthesis-bachelor.bst | 14 +++++-- variants/thu/thuthesis-numeric.bst | 14 +++++-- variants/ustc/ustcthesis-authoryear.bst | 14 +++++-- variants/ustc/ustcthesis-bachelor.bst | 14 +++++-- variants/ustc/ustcthesis-numerical.bst | 14 +++++-- 14 files changed, 131 insertions(+), 97 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f5255b..5bf4da8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] ### Added - 新增选项 `only.start.page` +- 增加选项 `title.in.journal` ## [v2.0] - 2020-03-04 ### Changed diff --git a/gbt7714-author-year.bst b/gbt7714-author-year.bst index f51c178..967090a 100644 --- a/gbt7714-author-year.bst +++ b/gbt7714-author-year.bst @@ -26,6 +26,7 @@ INTEGERS { period.between.author.year sentence.case.title link.title + title.in.journal show.mark show.medium.type slash.for.extraction @@ -51,6 +52,7 @@ FUNCTION {load.config} #0 'period.between.author.year := #1 'sentence.case.title := #0 'link.title := + #1 'title.in.journal := #1 'show.mark := #1 'show.medium.type := #1 'slash.for.extraction := @@ -1425,10 +1427,14 @@ FUNCTION {article} if$ format.year "year" output.check new.block - format.title "title" output.check - "J" set.entry.mark - format.mark "" output.after - new.block + title.in.journal + { format.title "title" output.check + "J" set.entry.mark + format.mark "" output.after + new.block + } + 'skip$ + if$ format.journal "journal" output.check format.journal.volume output format.journal.number "" output.after diff --git a/gbt7714-numerical.bst b/gbt7714-numerical.bst index 9f8a86c..8c1076f 100644 --- a/gbt7714-numerical.bst +++ b/gbt7714-numerical.bst @@ -26,6 +26,7 @@ INTEGERS { period.between.author.year sentence.case.title link.title + title.in.journal show.mark show.medium.type slash.for.extraction @@ -45,6 +46,7 @@ FUNCTION {load.config} #3 'max.num.authors := #1 'sentence.case.title := #0 'link.title := + #1 'title.in.journal := #1 'show.mark := #1 'show.medium.type := #1 'slash.for.extraction := @@ -1397,10 +1399,14 @@ FUNCTION {article} format.authors output author format.key output new.block - format.title "title" output.check - "J" set.entry.mark - format.mark "" output.after - new.block + title.in.journal + { format.title "title" output.check + "J" set.entry.mark + format.mark "" output.after + new.block + } + 'skip$ + if$ format.journal "journal" output.check format.date "year" output.check format.journal.volume output diff --git a/gbt7714.dtx b/gbt7714.dtx index 50069e9..dc61d49 100644 --- a/gbt7714.dtx +++ b/gbt7714.dtx @@ -285,6 +285,7 @@ % period.between.author.year & |#0| & 著者和年份之间使用句点连接 \\ % sentence.case.title & |#1| & 将西文的题名转为 sentence case \\ % link.title & |#0| & 在题名上添加 url 的超链接 \\ +% title.in.journal & |#1| & 期刊是否显示标题 \\ % show.mark & |#1| & 显示文献类型标识 \\ % show.medium.type & |#1| & 显示载体类型标识 \\ % italic.jounal & |#0| & 西文期刊名使用斜体 \\ @@ -779,6 +780,7 @@ INTEGERS { period.between.author.year sentence.case.title link.title + title.in.journal show.mark show.medium.type slash.for.extraction @@ -851,6 +853,16 @@ FUNCTION {load.config} % % \end{macrocode} % +% 期刊是否含标题: +% \begin{macrocode} +%<*!title-in-journal&!npr> + #1 'title.in.journal := +% +%<*title-in-journal|npr> + #0 'title.in.journal := +% +% \end{macrocode} +% % 著录文献类型标识(比如“[M/OL]“): % \begin{macrocode} #1 'show.mark := @@ -2933,10 +2945,14 @@ FUNCTION {article} format.year "year" output.check % new.block - format.title "title" output.check - "J" set.entry.mark - format.mark "" output.after - new.block + title.in.journal + { format.title "title" output.check + "J" set.entry.mark + format.mark "" output.after + new.block + } + 'skip$ + if$ format.journal "journal" output.check %<*numerical> format.date "year" output.check diff --git a/test/testbst/npr.bbl b/test/testbst/npr.bbl index 623c06f..cf81eb0 100644 --- a/test/testbst/npr.bbl +++ b/test/testbst/npr.bbl @@ -195,28 +195,22 @@ ROBERSON~J~A, BURNESON~E~G. \bibitem[袁训来\ 等(2012)袁训来, 陈哲, 肖书海, et~al.]{yuanxunlai2012lantian} 袁训来, 陈哲, 肖书海, 等. -\newblock 蓝田生物群: - 一个认识多细胞生物起源和早期演化的新窗口\allowbreak[J]. \newblock 科学通报, 2012, 55\penalty0 (34):\penalty0 3219. \bibitem[余建斌(2013)]{yujianbin2013women} 余建斌. -\newblock 我们的科技一直在追赶: - 访中国工程院院长周济\allowbreak[N/OL]. \newblock 人民日报, 2013-01-12\penalty0 (2)\allowbreak[2013-03-20]. \newblock \url{http://paper.people.com.cn/rmrb/html/2013-01/12/nw.D110000renmrb_20130112_5-02.htm}. \bibitem[李炳穆(2008{\natexlab{a}})]{libingmu2008hanguo} 李炳穆. -\newblock 韩国图书馆法\allowbreak[J/OL]. \newblock 图书情报工作, 2008, 52\penalty0 (6):\penalty0 6\allowbreak[2013-10-25]. \newblock \url{http://www.docin.com/p-400265742.html}. \bibitem[李幼平\ 等(2010)李幼平 and 王莉]{liyouping2010xunzheng} 李幼平, 王莉. -\newblock 循证医学研究方法: 附视频\allowbreak[J/OL]. \newblock 中华移植杂志(电子版), 2010, 4\penalty0 (3):\penalty0 225\allowbreak[2014-06-09]. \newblock \url{http://www.cqvip.com/Read/Read.aspx?id=36658332}. @@ -224,7 +218,6 @@ ROBERSON~J~A, BURNESON~E~G. \bibitem[武丽丽\ 等(2008)武丽丽, 华一新, 张亚军, et~al.]{wulili2008beidou} 武丽丽, 华一新, 张亚军, 等. -\newblock “北斗一号”监控管理网设计与实现\allowbreak[J/OL]. \newblock 测绘科学, 2008, 33\penalty0 (5):\penalty0 8\allowbreak[2009-10-25]. \newblock \url{http://vip.calis.edu.cn/CSTJ/Sear.dll?OPAC_CreateDetail}. @@ -232,19 +225,15 @@ ROBERSON~J~A, BURNESON~E~G. \bibitem[Kanamori(1998)]{kanamori1998shaking} KANAMORI~H. -\newblock Shaking without quaking\allowbreak[J]. \newblock Science, 1998, 279\penalty0 (5359):\penalty0 2063. \bibitem[Caplan(1993)]{caplan1993cataloging} CAPLAN~P. -\newblock Cataloging internet resources\allowbreak[J]. \newblock The public access computer systems review, 1993, 4\penalty0 (2):\penalty0 61. \bibitem[Frese et~al.(2013)Frese, Katus, and Meder]{frese2013next} FRESE~K~S, KATUS~H~A, MEDER~B. -\newblock Next-generation sequencing: from understanding biology to - personalized medicine\allowbreak[J/OL]. \newblock Biology, 2013, 2\penalty0 (1):\penalty0 378\allowbreak[2013-03-19]. \newblock \url{http://www.mdpi.com/2079-7737/2/1/378}. \newblock DOI: \doi{10.3390/biology2010378}. @@ -252,7 +241,6 @@ FRESE~K~S, KATUS~H~A, MEDER~B. \bibitem[Myburg et~al.(2014)Myburg, Grattapaglia, Tuskan, et~al.]{myburg2014genome} MYBURG~A~A, GRATTAPAGLIA~D, TUSKAN~G~A, et~al. -\newblock The genome of eucalyptus grandis\allowbreak[J/OL]. \newblock Nature, 2014, 510:\penalty0 356\allowbreak[2014-06-25]. \newblock \url{http://www.nature.com/nature/journal/v510/n7505/pdf/nature13308.pdf}. @@ -353,19 +341,15 @@ CHERNIK~B~E. \bibitem[杨宗英(1996)]{yangzongying1996dianzi} 杨宗英. -\newblock 电子图书馆的现实模型\allowbreak[J]. \newblock 中国图书馆学报, 1996\penalty0 (2):\penalty0 24. \bibitem[Dowler(1995)]{dowler1995research} DOWLER~L. -\newblock The research university's dilemma: Resource sharing and research in a - transinstitutional environment\allowbreak[J]. \newblock Journal of library administration, 1995, 21\penalty0 (1/2):\penalty0 5. \bibitem[Sunstein(1996)]{sunstein1996social} SUNSTEIN~C~R. -\newblock Social norms and social roles\allowbreak[J/OL]. \newblock Columbia law review, 1996, 96:\penalty0 903\allowbreak[2012-01-26]. \newblock \url{http://www.heinonline.org/HOL/Page?handle=hein.journals/clr96&id=913&collection=journals&index=journals/clr}. @@ -400,7 +384,6 @@ MORRI~I. \bibitem[刘彻东(1998)]{liuchedong1998zhongguo} 刘彻东. -\newblock 中国的青年刊物:个性特色为本仁\allowbreak[J]. \newblock 中国出版, 1998\penalty0 (5):\penalty0 38. \bibitem[裴丽生(1981)]{peilisheng1981jianghua} @@ -705,25 +688,20 @@ Symposium on Applications of Holography in Mechanics, August 23-25, 1971, \bibitem[杨洪升(2013)]{yanghongsheng2013siku} 杨洪升. -\newblock 四库馆私家抄校书考略\allowbreak[J]. \newblock 文献, 2013\penalty0 (1):\penalty0 56. \bibitem[李炳穆(2008{\natexlab{b}})]{libingmu2008hanguo2} 李炳穆. -\newblock 韩国图书馆法\allowbreak[J]. \newblock 图书情报工作, 2008, 52\penalty0 (6):\penalty0 6. \bibitem[于潇\ 等(2012)于潇, 刘义, 柴跃廷, et~al.]{yuxiao2012hulianwang} 于潇, 刘义, 柴跃廷, 等. -\newblock - 互联网药品可信交易环境中主体资质审核备案模式\allowbreak[J]. \newblock 清华大学学报(自然科学版), 2012, 52\penalty0 (11):\penalty0 1518. \bibitem[陈建军(20l0)]{chenjianjun20l0cong} 陈建军. -\newblock 从数字地球到智慧地球\allowbreak[J/OL]. \newblock 国图资源导刊, 20l0, 7\penalty0 (10):\penalty0 93\allowbreak[2013-03-20]. \newblock \url{http://d.g.wanfangdata.com.cn/Periodical_hunandz201010038.aspx}. @@ -732,22 +710,15 @@ Symposium on Applications of Holography in Mechanics, August 23-25, 1971, \bibitem[Des~Marais et~al.(1992)Des~Marais, Strauss, Summons, et~al.]{desmarais1992carbon} DES~MARAIS~D~J, STRAUSS~H, SUMMONS~R~E, et~al. -\newblock Carbon isotope evidence for the stepwise oxidation of the proterozoic - environment\allowbreak[J]. \newblock Nature, 1992, 359:\penalty0 605. \bibitem[Saito et~al.(2006)Saito and Miyazaki]{saito2006jadeite} SAITO~M, MIYAZAKI~K. -\newblock Jadeite-bearing metagabbro in serpentinite mélange of the - {"Kurosegawa Belt" in Izumi Town, Yatsushiro City, Kumamoto Prefecture, - central Kyushu}\allowbreak[J]. \newblock Bulletin of the geological survey of Japan, 2006, 57\penalty0 (5/6):\penalty0 169. \bibitem[Walls et~al.(2013)Walls, Barichivich, and Brown]{walls2013drought} WALLS~S~C, BARICHIVICH~W~J, BROWN~M~E. -\newblock Drought, deluge and declines: the impact of precipitation extremes on - amphibians in a changing climate\allowbreak[J/OL]. \newblock Biology, 2013, 2\penalty0 (1):\penalty0 399\allowbreak[2013-11-04]. \newblock \url{http://www.mdpi.com/2079-7737/2/1/399}. \newblock DOI: \doi{10.3390/biology2010399}. @@ -755,15 +726,11 @@ WALLS~S~C, BARICHIVICH~W~J, BROWN~M~E. \bibitem[Franz et~al.(2013)Franz, Danielewicz, Wong, Anderson, and Boothe]{franz2013phenotypic} FRANZ~A~K, DANIELEWICZ~M~A, WONG~D~M, et~al. -\newblock Phenotypic screening with oleaginous microalgae reveals modulators of - lipid productivity\allowbreak[J/OL]. \newblock ACS Chemical biology, 2013, 8:\penalty0 1053\allowbreak[2014-06-26]. \newblock \url{http://pubs.acs.org/doi/ipdf/10.1021/cb300573r}. \bibitem[Park et~al.(2010)Park and Tosaka]{park2010metadata} PARK~J~R, TOSAKA~Y. -\newblock Metadata quality control in digital repositories and collections: - Criteria, semantics, and mechanisms\allowbreak[J/OL]. \newblock Cataloging \& classification quarterly, 2010, 48\penalty0 (8):\penalty0 696\allowbreak[2013-09-05]. \newblock @@ -771,17 +738,14 @@ PARK~J~R, TOSAKA~Y. \bibitem[丁文详(2000)]{dingwenxiang2000shuzi} 丁文详. -\newblock 数字革命与竞争国际化\allowbreak[N]. \newblock 中国青年报, 2000-11-20\penalty0 (15). \bibitem[张田勤(2000)]{zhangtianqin2000zuifan} 张田勤. -\newblock 罪犯 DNA 库与生命伦理学计划\allowbreak[N]. \newblock 大众科技报, 2000-11-12\penalty0 (7). \bibitem[傅刚\ 等(2000)傅刚, 赵承, and 李佳路]{fugang2000dafeng} 傅刚, 赵承, 李佳路. -\newblock 大风沙过后的思考\allowbreak[N/OL]. \newblock 北京青年报, 2000-01-12\allowbreak[2005-09-28]. \newblock \url{http://www.bjyouth.com.cn/Bqb/20000412/GB/4216%5ED0412B1401.htm}. @@ -789,7 +753,6 @@ PARK~J~R, TOSAKA~Y. \bibitem[刘裕国\ 等(2013)刘裕国, 杨柳, 张洋, et~al.]{liuyuguo2013wumai} 刘裕国, 杨柳, 张洋, 等. -\newblock 雾霾来袭, 如何突围\allowbreak[N/OL]. \newblock 人民日报, 2013-01-12\allowbreak[2013-11-06]. \newblock \url{http://paper.people.com.cn/rmrb/html/2013-01/12/nw.D110000renmrb_20130112_2-04.htm}. @@ -822,28 +785,23 @@ Dublin core metadata element set: version 1.1\allowbreak[EB/OL]. \bibitem[魏志勇\ 等(2006)魏志勇, 臧黎慧, 范我, et~al.]{weizhiyong2006} 魏志勇, 臧黎慧, 范我, 等. -\newblock \allowbreak[J]. \newblock 核技术, 2006, 29\penalty0 (9):\penalty0 713. \bibitem[陈东风\ 等(2005)陈东风, 勾成, 叶春堂, et~al.]{chendongfeng2005} 陈东风, 勾成, 叶春堂, 等. -\newblock \allowbreak[J]. \newblock 核技术, 2005, 28\penalty0 (2):\penalty0 127. \bibitem[Oed(2004)]{oed2004} OED~A. -\newblock \allowbreak[J]. \newblock Nucl Instr Meth A, 2004, 525\penalty0 (1-2):\penalty0 62. \bibitem[Rhodes et~al.(1997)Rhodes, Wardle, Boram, et~al.]{rhodes1997} RHODES~N~J, WARDLE~A~G, BORAM~A~J, et~al. -\newblock \allowbreak[J]. \newblock Nucl Instr Meth A, 1997, 392\penalty0 (1-3):\penalty0 315. \bibitem[Crow et~al.(2004)Crow, Hodges, and Cooper]{crow2004} CROW~M~L, HODGES~J~P, COOPER~R~G. -\newblock \allowbreak[J]. \newblock Nucl Instr Meth A, 2004, 529\penalty0 (1-3):\penalty0 287. \bibitem[mis()]{misc} @@ -857,38 +815,31 @@ Philips data handbook for electron tubes t9\allowbreak[M]. \bibitem[迟少鹏\ 等(2003)迟少鹏, 夏小米, 周莉, et~al.]{chishaopeng2003} 迟少鹏, 夏小米, 周莉, 等. -\newblock \allowbreak[J]. \newblock 高能物理与核物理, 2003, 27\penalty0 (3):\penalty0 257. \bibitem[汪晓莲\ 等(2003)汪晓莲, 许咨宗, 侯云珍, et~al.]{wangxiaolian2003} 汪晓莲, 许咨宗, 侯云珍, 等. -\newblock \allowbreak[J]. \newblock 高能物理与核物理, 2003, 27\penalty0 (3):\penalty0 257. \bibitem[Sackett et~al.(1993)Sackett, Ieki, A, et~al.]{sackett1993} SACKETT~D, IEKI~K, A~G, et~al. -\newblock \allowbreak[J]. \newblock Physical Review C, 1993, 48\penalty0 (1):\penalty0 118. \bibitem[Sackett et~al.(1997)Sackett, Ieki, A, et~al.]{zecher1997} SACKETT~D, IEKI~K, A~G, et~al. -\newblock \allowbreak[J]. \newblock Nucl Instr Meth A, 1997, 401\penalty0 (2-3):\penalty0 329. \bibitem[薛梦驰(2009)]{xuemengchi2009} 薛梦驰. -\newblock \allowbreak[J]. \newblock 电信科学, 2009, 7:\penalty0 57. \bibitem[唐军杰\ 等(2013)唐军杰, 王拓, 张强, et~al.]{tangjunjie2013} 唐军杰, 王拓, 张强, 等. -\newblock \allowbreak[J]. \newblock 发光学报, 2013, 34\penalty0 (1):\penalty0 78. \bibitem[WU et~al.(2013)WU, TANG, SUN, et~al.]{wuchong2013} WU~C, TANG~B, SUN~Z, et~al. -\newblock \allowbreak[J]. \newblock Radiation Measurements, 2013, 58\penalty0 (11):\penalty0 128. \end{thebibliography} diff --git a/variants/2005/gbt7714-2005-author-year.bst b/variants/2005/gbt7714-2005-author-year.bst index a5f8213..a4422ca 100644 --- a/variants/2005/gbt7714-2005-author-year.bst +++ b/variants/2005/gbt7714-2005-author-year.bst @@ -26,6 +26,7 @@ INTEGERS { period.between.author.year sentence.case.title link.title + title.in.journal show.mark show.medium.type slash.for.extraction @@ -51,6 +52,7 @@ FUNCTION {load.config} #1 'period.between.author.year := #1 'sentence.case.title := #0 'link.title := + #1 'title.in.journal := #1 'show.mark := #1 'show.medium.type := #1 'slash.for.extraction := @@ -1425,10 +1427,14 @@ FUNCTION {article} if$ format.year "year" output.check new.block - format.title "title" output.check - "J" set.entry.mark - format.mark "" output.after - new.block + title.in.journal + { format.title "title" output.check + "J" set.entry.mark + format.mark "" output.after + new.block + } + 'skip$ + if$ format.journal "journal" output.check format.journal.volume output format.journal.number "" output.after diff --git a/variants/2005/gbt7714-2005-numerical.bst b/variants/2005/gbt7714-2005-numerical.bst index c803a32..09d91eb 100644 --- a/variants/2005/gbt7714-2005-numerical.bst +++ b/variants/2005/gbt7714-2005-numerical.bst @@ -26,6 +26,7 @@ INTEGERS { period.between.author.year sentence.case.title link.title + title.in.journal show.mark show.medium.type slash.for.extraction @@ -45,6 +46,7 @@ FUNCTION {load.config} #3 'max.num.authors := #1 'sentence.case.title := #0 'link.title := + #1 'title.in.journal := #1 'show.mark := #1 'show.medium.type := #1 'slash.for.extraction := @@ -1397,10 +1399,14 @@ FUNCTION {article} format.authors output author format.key output new.block - format.title "title" output.check - "J" set.entry.mark - format.mark "" output.after - new.block + title.in.journal + { format.title "title" output.check + "J" set.entry.mark + format.mark "" output.after + new.block + } + 'skip$ + if$ format.journal "journal" output.check format.date "year" output.check format.journal.volume output diff --git a/variants/npr/npr.bst b/variants/npr/npr.bst index 3f3314e..4909eba 100644 --- a/variants/npr/npr.bst +++ b/variants/npr/npr.bst @@ -26,6 +26,7 @@ INTEGERS { period.between.author.year sentence.case.title link.title + title.in.journal show.mark show.medium.type slash.for.extraction @@ -45,6 +46,7 @@ FUNCTION {load.config} #3 'max.num.authors := #1 'sentence.case.title := #0 'link.title := + #0 'title.in.journal := #1 'show.mark := #1 'show.medium.type := #1 'slash.for.extraction := @@ -1397,10 +1399,14 @@ FUNCTION {article} format.authors output author format.key output new.block - format.title "title" output.check - "J" set.entry.mark - format.mark "" output.after - new.block + title.in.journal + { format.title "title" output.check + "J" set.entry.mark + format.mark "" output.after + new.block + } + 'skip$ + if$ format.journal "journal" output.check format.date "year" output.check format.journal.volume output diff --git a/variants/thu/thuthesis-author-year.bst b/variants/thu/thuthesis-author-year.bst index ac5077b..fb88eb8 100644 --- a/variants/thu/thuthesis-author-year.bst +++ b/variants/thu/thuthesis-author-year.bst @@ -26,6 +26,7 @@ INTEGERS { period.between.author.year sentence.case.title link.title + title.in.journal show.mark show.medium.type slash.for.extraction @@ -51,6 +52,7 @@ FUNCTION {load.config} #1 'period.between.author.year := #1 'sentence.case.title := #0 'link.title := + #1 'title.in.journal := #1 'show.mark := #1 'show.medium.type := #1 'slash.for.extraction := @@ -1428,10 +1430,14 @@ FUNCTION {article} if$ format.year "year" output.check new.block - format.title "title" output.check - "J" set.entry.mark - format.mark "" output.after - new.block + title.in.journal + { format.title "title" output.check + "J" set.entry.mark + format.mark "" output.after + new.block + } + 'skip$ + if$ format.journal "journal" output.check format.journal.volume output format.journal.number "" output.after diff --git a/variants/thu/thuthesis-bachelor.bst b/variants/thu/thuthesis-bachelor.bst index cf27b9f..2146618 100644 --- a/variants/thu/thuthesis-bachelor.bst +++ b/variants/thu/thuthesis-bachelor.bst @@ -26,6 +26,7 @@ INTEGERS { period.between.author.year sentence.case.title link.title + title.in.journal show.mark show.medium.type slash.for.extraction @@ -45,6 +46,7 @@ FUNCTION {load.config} #3 'max.num.authors := #1 'sentence.case.title := #0 'link.title := + #1 'title.in.journal := #1 'show.mark := #1 'show.medium.type := #1 'slash.for.extraction := @@ -1397,10 +1399,14 @@ FUNCTION {article} format.authors output author format.key output new.block - format.title "title" output.check - "J" set.entry.mark - format.mark "" output.after - new.block + title.in.journal + { format.title "title" output.check + "J" set.entry.mark + format.mark "" output.after + new.block + } + 'skip$ + if$ format.journal "journal" output.check format.date "year" output.check format.journal.volume output diff --git a/variants/thu/thuthesis-numeric.bst b/variants/thu/thuthesis-numeric.bst index d9aa181..70b1136 100644 --- a/variants/thu/thuthesis-numeric.bst +++ b/variants/thu/thuthesis-numeric.bst @@ -26,6 +26,7 @@ INTEGERS { period.between.author.year sentence.case.title link.title + title.in.journal show.mark show.medium.type slash.for.extraction @@ -45,6 +46,7 @@ FUNCTION {load.config} #3 'max.num.authors := #1 'sentence.case.title := #0 'link.title := + #1 'title.in.journal := #1 'show.mark := #1 'show.medium.type := #1 'slash.for.extraction := @@ -1400,10 +1402,14 @@ FUNCTION {article} format.authors output author format.key output new.block - format.title "title" output.check - "J" set.entry.mark - format.mark "" output.after - new.block + title.in.journal + { format.title "title" output.check + "J" set.entry.mark + format.mark "" output.after + new.block + } + 'skip$ + if$ format.journal "journal" output.check format.date "year" output.check format.journal.volume output diff --git a/variants/ustc/ustcthesis-authoryear.bst b/variants/ustc/ustcthesis-authoryear.bst index 59b420c..71bfc6b 100644 --- a/variants/ustc/ustcthesis-authoryear.bst +++ b/variants/ustc/ustcthesis-authoryear.bst @@ -26,6 +26,7 @@ INTEGERS { period.between.author.year sentence.case.title link.title + title.in.journal show.mark show.medium.type slash.for.extraction @@ -51,6 +52,7 @@ FUNCTION {load.config} #1 'period.between.author.year := #1 'sentence.case.title := #0 'link.title := + #1 'title.in.journal := #1 'show.mark := #1 'show.medium.type := #1 'slash.for.extraction := @@ -1425,10 +1427,14 @@ FUNCTION {article} if$ format.year "year" output.check new.block - format.title "title" output.check - "J" set.entry.mark - format.mark "" output.after - new.block + title.in.journal + { format.title "title" output.check + "J" set.entry.mark + format.mark "" output.after + new.block + } + 'skip$ + if$ format.journal "journal" output.check format.journal.volume output format.journal.number "" output.after diff --git a/variants/ustc/ustcthesis-bachelor.bst b/variants/ustc/ustcthesis-bachelor.bst index ae54275..3e2bcab 100644 --- a/variants/ustc/ustcthesis-bachelor.bst +++ b/variants/ustc/ustcthesis-bachelor.bst @@ -26,6 +26,7 @@ INTEGERS { period.between.author.year sentence.case.title link.title + title.in.journal show.mark show.medium.type slash.for.extraction @@ -45,6 +46,7 @@ FUNCTION {load.config} #3 'max.num.authors := #1 'sentence.case.title := #0 'link.title := + #1 'title.in.journal := #1 'show.mark := #0 'show.mark := #1 'show.medium.type := @@ -1399,10 +1401,14 @@ FUNCTION {article} format.authors output author format.key output new.block - format.title "title" output.check - "J" set.entry.mark - format.mark "" output.after - new.block + title.in.journal + { format.title "title" output.check + "J" set.entry.mark + format.mark "" output.after + new.block + } + 'skip$ + if$ format.journal "journal" output.check format.date "year" output.check format.journal.volume output diff --git a/variants/ustc/ustcthesis-numerical.bst b/variants/ustc/ustcthesis-numerical.bst index 2beb10a..ef6805a 100644 --- a/variants/ustc/ustcthesis-numerical.bst +++ b/variants/ustc/ustcthesis-numerical.bst @@ -26,6 +26,7 @@ INTEGERS { period.between.author.year sentence.case.title link.title + title.in.journal show.mark show.medium.type slash.for.extraction @@ -45,6 +46,7 @@ FUNCTION {load.config} #3 'max.num.authors := #1 'sentence.case.title := #0 'link.title := + #1 'title.in.journal := #1 'show.mark := #1 'show.medium.type := #1 'slash.for.extraction := @@ -1397,10 +1399,14 @@ FUNCTION {article} format.authors output author format.key output new.block - format.title "title" output.check - "J" set.entry.mark - format.mark "" output.after - new.block + title.in.journal + { format.title "title" output.check + "J" set.entry.mark + format.mark "" output.after + new.block + } + 'skip$ + if$ format.journal "journal" output.check format.date "year" output.check format.journal.volume output From 5ef704638b33beafa300b3f4f586a9f50f3f26b8 Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Sun, 8 Mar 2020 00:14:19 +0800 Subject: [PATCH 06/16] Add option space.before.pages --- CHANGELOG.md | 1 + gbt7714-author-year.bst | 9 ++- gbt7714-numerical.bst | 9 ++- gbt7714.dtx | 19 +++++- test/test.sh | 2 +- test/testbst/npr.bbl | 76 ++++++++++------------ variants/2005/gbt7714-2005-author-year.bst | 9 ++- variants/2005/gbt7714-2005-numerical.bst | 9 ++- variants/npr/npr.bst | 9 ++- variants/thu/thuthesis-author-year.bst | 9 ++- variants/thu/thuthesis-bachelor.bst | 9 ++- variants/thu/thuthesis-numeric.bst | 9 ++- variants/ustc/ustcthesis-authoryear.bst | 9 ++- variants/ustc/ustcthesis-bachelor.bst | 9 ++- variants/ustc/ustcthesis-numerical.bst | 9 ++- 15 files changed, 143 insertions(+), 54 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bf4da8..d1b3c85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Added - 新增选项 `only.start.page` - 增加选项 `title.in.journal` +- 增加选项 `space.before.pages` ## [v2.0] - 2020-03-04 ### Changed diff --git a/gbt7714-author-year.bst b/gbt7714-author-year.bst index 967090a..33108cf 100644 --- a/gbt7714-author-year.bst +++ b/gbt7714-author-year.bst @@ -34,6 +34,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + space.before.pages only.start.page show.url show.doi @@ -60,6 +61,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := + #0 'space.before.pages := #0 'only.start.page := #1 'show.url := #1 'show.doi := @@ -1141,7 +1143,12 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " format.pages * } + { space.before.pages + { ": " } + { ":\penalty0 " } + if$ + format.pages * + } if$ } diff --git a/gbt7714-numerical.bst b/gbt7714-numerical.bst index 8c1076f..7328167 100644 --- a/gbt7714-numerical.bst +++ b/gbt7714-numerical.bst @@ -34,6 +34,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + space.before.pages only.start.page show.url show.doi @@ -54,6 +55,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := + #0 'space.before.pages := #0 'only.start.page := #1 'show.url := #1 'show.doi := @@ -1130,7 +1132,12 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " format.pages * } + { space.before.pages + { ": " } + { ":\penalty0 " } + if$ + format.pages * + } if$ } diff --git a/gbt7714.dtx b/gbt7714.dtx index dc61d49..0bcf726 100644 --- a/gbt7714.dtx +++ b/gbt7714.dtx @@ -290,6 +290,7 @@ % show.medium.type & |#1| & 显示载体类型标识 \\ % italic.jounal & |#0| & 西文期刊名使用斜体 \\ % show.missing.address.publisher & |#1| & 出版项缺失时显示“出版者不详” \\ +% space.before.pages & |#0| & 页码前有空白 \\ % only.start.page & |#0| & 只显示起始页码 \\ % show.url & |#1| & 显示 url \\ % show.doi & |#1| & 显示 doi \\ @@ -788,6 +789,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + space.before.pages only.start.page show.url show.doi @@ -917,6 +919,16 @@ FUNCTION {load.config} % % 页码是否只含起始页: % \begin{macrocode} +%<*!space-begore-pages&!npr> + #0 'space.before.pages := +% +%<*space-begore-pages|npr> + #1 'space.before.pages := +% +% \end{macrocode} +% +% 页码前是否有空白: +% \begin{macrocode} %<*!only-start-page&!npr> #0 'only.start.page := % @@ -2570,7 +2582,12 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " format.pages * } + { space.before.pages + { ": " } + { ":\penalty0 " } + if$ + format.pages * + } if$ } diff --git a/test/test.sh b/test/test.sh index 5fe8e2a..85ae05b 100644 --- a/test/test.sh +++ b/test/test.sh @@ -41,7 +41,7 @@ if [ -z "$1" ]; then bblfile="$testdir/test.bbl"; stdfile="$testfiledir/$testname.bbl"; if ! diff -q "$bblfile" "$stdfile" > /dev/null 2> /dev/null; then - echo " fails"; + echo " differs"; cp -f "$bblfile" "$stdfile"; succuss=false; fi diff --git a/test/testbst/npr.bbl b/test/testbst/npr.bbl index cf81eb0..58d8337 100644 --- a/test/testbst/npr.bbl +++ b/test/testbst/npr.bbl @@ -195,7 +195,7 @@ ROBERSON~J~A, BURNESON~E~G. \bibitem[袁训来\ 等(2012)袁训来, 陈哲, 肖书海, et~al.]{yuanxunlai2012lantian} 袁训来, 陈哲, 肖书海, 等. -\newblock 科学通报, 2012, 55\penalty0 (34):\penalty0 3219. +\newblock 科学通报, 2012, 55\penalty0 (34): 3219. \bibitem[余建斌(2013)]{yujianbin2013women} 余建斌. @@ -205,43 +205,40 @@ ROBERSON~J~A, BURNESON~E~G. \bibitem[李炳穆(2008{\natexlab{a}})]{libingmu2008hanguo} 李炳穆. -\newblock 图书情报工作, 2008, 52\penalty0 (6):\penalty0 - 6\allowbreak[2013-10-25]. +\newblock 图书情报工作, 2008, 52\penalty0 (6): 6\allowbreak[2013-10-25]. \newblock \url{http://www.docin.com/p-400265742.html}. \bibitem[李幼平\ 等(2010)李幼平 and 王莉]{liyouping2010xunzheng} 李幼平, 王莉. -\newblock 中华移植杂志(电子版), 2010, 4\penalty0 (3):\penalty0 +\newblock 中华移植杂志(电子版), 2010, 4\penalty0 (3): 225\allowbreak[2014-06-09]. \newblock \url{http://www.cqvip.com/Read/Read.aspx?id=36658332}. \bibitem[武丽丽\ 等(2008)武丽丽, 华一新, 张亚军, et~al.]{wulili2008beidou} 武丽丽, 华一新, 张亚军, 等. -\newblock 测绘科学, 2008, 33\penalty0 (5):\penalty0 - 8\allowbreak[2009-10-25]. +\newblock 测绘科学, 2008, 33\penalty0 (5): 8\allowbreak[2009-10-25]. \newblock \url{http://vip.calis.edu.cn/CSTJ/Sear.dll?OPAC_CreateDetail}. \newblock DOI: \doi{10.3771/j.issn.1009-2307.2008.05.002}. \bibitem[Kanamori(1998)]{kanamori1998shaking} KANAMORI~H. -\newblock Science, 1998, 279\penalty0 (5359):\penalty0 2063. +\newblock Science, 1998, 279\penalty0 (5359): 2063. \bibitem[Caplan(1993)]{caplan1993cataloging} CAPLAN~P. -\newblock The public access computer systems review, 1993, 4\penalty0 - (2):\penalty0 61. +\newblock The public access computer systems review, 1993, 4\penalty0 (2): 61. \bibitem[Frese et~al.(2013)Frese, Katus, and Meder]{frese2013next} FRESE~K~S, KATUS~H~A, MEDER~B. -\newblock Biology, 2013, 2\penalty0 (1):\penalty0 378\allowbreak[2013-03-19]. +\newblock Biology, 2013, 2\penalty0 (1): 378\allowbreak[2013-03-19]. \newblock \url{http://www.mdpi.com/2079-7737/2/1/378}. \newblock DOI: \doi{10.3390/biology2010378}. \bibitem[Myburg et~al.(2014)Myburg, Grattapaglia, Tuskan, et~al.]{myburg2014genome} MYBURG~A~A, GRATTAPAGLIA~D, TUSKAN~G~A, et~al. -\newblock Nature, 2014, 510:\penalty0 356\allowbreak[2014-06-25]. +\newblock Nature, 2014, 510: 356\allowbreak[2014-06-25]. \newblock \url{http://www.nature.com/nature/journal/v510/n7505/pdf/nature13308.pdf}. \newblock DOI: \doi{10.1038/nature13308}. @@ -341,16 +338,15 @@ CHERNIK~B~E. \bibitem[杨宗英(1996)]{yangzongying1996dianzi} 杨宗英. -\newblock 中国图书馆学报, 1996\penalty0 (2):\penalty0 24. +\newblock 中国图书馆学报, 1996\penalty0 (2): 24. \bibitem[Dowler(1995)]{dowler1995research} DOWLER~L. -\newblock Journal of library administration, 1995, 21\penalty0 (1/2):\penalty0 - 5. +\newblock Journal of library administration, 1995, 21\penalty0 (1/2): 5. \bibitem[Sunstein(1996)]{sunstein1996social} SUNSTEIN~C~R. -\newblock Columbia law review, 1996, 96:\penalty0 903\allowbreak[2012-01-26]. +\newblock Columbia law review, 1996, 96: 903\allowbreak[2012-01-26]. \newblock \url{http://www.heinonline.org/HOL/Page?handle=hein.journals/clr96&id=913&collection=journals&index=journals/clr}. @@ -384,7 +380,7 @@ MORRI~I. \bibitem[刘彻东(1998)]{liuchedong1998zhongguo} 刘彻东. -\newblock 中国出版, 1998\penalty0 (5):\penalty0 38. +\newblock 中国出版, 1998\penalty0 (5): 38. \bibitem[裴丽生(1981)]{peilisheng1981jianghua} 裴丽生. @@ -688,51 +684,49 @@ Symposium on Applications of Holography in Mechanics, August 23-25, 1971, \bibitem[杨洪升(2013)]{yanghongsheng2013siku} 杨洪升. -\newblock 文献, 2013\penalty0 (1):\penalty0 56. +\newblock 文献, 2013\penalty0 (1): 56. \bibitem[李炳穆(2008{\natexlab{b}})]{libingmu2008hanguo2} 李炳穆. -\newblock 图书情报工作, 2008, 52\penalty0 (6):\penalty0 6. +\newblock 图书情报工作, 2008, 52\penalty0 (6): 6. \bibitem[于潇\ 等(2012)于潇, 刘义, 柴跃廷, et~al.]{yuxiao2012hulianwang} 于潇, 刘义, 柴跃廷, 等. -\newblock 清华大学学报(自然科学版), 2012, 52\penalty0 (11):\penalty0 - 1518. +\newblock 清华大学学报(自然科学版), 2012, 52\penalty0 (11): 1518. \bibitem[陈建军(20l0)]{chenjianjun20l0cong} 陈建军. -\newblock 国图资源导刊, 20l0, 7\penalty0 (10):\penalty0 - 93\allowbreak[2013-03-20]. +\newblock 国图资源导刊, 20l0, 7\penalty0 (10): 93\allowbreak[2013-03-20]. \newblock \url{http://d.g.wanfangdata.com.cn/Periodical_hunandz201010038.aspx}. \newblock DOI: \doi{10.3969/j.issn.1672-5603.2010.10.038}. \bibitem[Des~Marais et~al.(1992)Des~Marais, Strauss, Summons, et~al.]{desmarais1992carbon} DES~MARAIS~D~J, STRAUSS~H, SUMMONS~R~E, et~al. -\newblock Nature, 1992, 359:\penalty0 605. +\newblock Nature, 1992, 359: 605. \bibitem[Saito et~al.(2006)Saito and Miyazaki]{saito2006jadeite} SAITO~M, MIYAZAKI~K. -\newblock Bulletin of the geological survey of Japan, 2006, 57\penalty0 - (5/6):\penalty0 169. +\newblock Bulletin of the geological survey of Japan, 2006, 57\penalty0 (5/6): + 169. \bibitem[Walls et~al.(2013)Walls, Barichivich, and Brown]{walls2013drought} WALLS~S~C, BARICHIVICH~W~J, BROWN~M~E. -\newblock Biology, 2013, 2\penalty0 (1):\penalty0 399\allowbreak[2013-11-04]. +\newblock Biology, 2013, 2\penalty0 (1): 399\allowbreak[2013-11-04]. \newblock \url{http://www.mdpi.com/2079-7737/2/1/399}. \newblock DOI: \doi{10.3390/biology2010399}. \bibitem[Franz et~al.(2013)Franz, Danielewicz, Wong, Anderson, and Boothe]{franz2013phenotypic} FRANZ~A~K, DANIELEWICZ~M~A, WONG~D~M, et~al. -\newblock ACS Chemical biology, 2013, 8:\penalty0 1053\allowbreak[2014-06-26]. +\newblock ACS Chemical biology, 2013, 8: 1053\allowbreak[2014-06-26]. \newblock \url{http://pubs.acs.org/doi/ipdf/10.1021/cb300573r}. \bibitem[Park et~al.(2010)Park and Tosaka]{park2010metadata} PARK~J~R, TOSAKA~Y. -\newblock Cataloging \& classification quarterly, 2010, 48\penalty0 - (8):\penalty0 696\allowbreak[2013-09-05]. +\newblock Cataloging \& classification quarterly, 2010, 48\penalty0 (8): + 696\allowbreak[2013-09-05]. \newblock \url{http://www.tandfonline.com/doi/pdf/10.1080/01639374.2010.508711}. @@ -785,24 +779,24 @@ Dublin core metadata element set: version 1.1\allowbreak[EB/OL]. \bibitem[魏志勇\ 等(2006)魏志勇, 臧黎慧, 范我, et~al.]{weizhiyong2006} 魏志勇, 臧黎慧, 范我, 等. -\newblock 核技术, 2006, 29\penalty0 (9):\penalty0 713. +\newblock 核技术, 2006, 29\penalty0 (9): 713. \bibitem[陈东风\ 等(2005)陈东风, 勾成, 叶春堂, et~al.]{chendongfeng2005} 陈东风, 勾成, 叶春堂, 等. -\newblock 核技术, 2005, 28\penalty0 (2):\penalty0 127. +\newblock 核技术, 2005, 28\penalty0 (2): 127. \bibitem[Oed(2004)]{oed2004} OED~A. -\newblock Nucl Instr Meth A, 2004, 525\penalty0 (1-2):\penalty0 62. +\newblock Nucl Instr Meth A, 2004, 525\penalty0 (1-2): 62. \bibitem[Rhodes et~al.(1997)Rhodes, Wardle, Boram, et~al.]{rhodes1997} RHODES~N~J, WARDLE~A~G, BORAM~A~J, et~al. -\newblock Nucl Instr Meth A, 1997, 392\penalty0 (1-3):\penalty0 315. +\newblock Nucl Instr Meth A, 1997, 392\penalty0 (1-3): 315. \bibitem[Crow et~al.(2004)Crow, Hodges, and Cooper]{crow2004} CROW~M~L, HODGES~J~P, COOPER~R~G. -\newblock Nucl Instr Meth A, 2004, 529\penalty0 (1-3):\penalty0 287. +\newblock Nucl Instr Meth A, 2004, 529\penalty0 (1-3): 287. \bibitem[mis()]{misc} \allowbreak[EB/OL]. @@ -815,31 +809,31 @@ Philips data handbook for electron tubes t9\allowbreak[M]. \bibitem[迟少鹏\ 等(2003)迟少鹏, 夏小米, 周莉, et~al.]{chishaopeng2003} 迟少鹏, 夏小米, 周莉, 等. -\newblock 高能物理与核物理, 2003, 27\penalty0 (3):\penalty0 257. +\newblock 高能物理与核物理, 2003, 27\penalty0 (3): 257. \bibitem[汪晓莲\ 等(2003)汪晓莲, 许咨宗, 侯云珍, et~al.]{wangxiaolian2003} 汪晓莲, 许咨宗, 侯云珍, 等. -\newblock 高能物理与核物理, 2003, 27\penalty0 (3):\penalty0 257. +\newblock 高能物理与核物理, 2003, 27\penalty0 (3): 257. \bibitem[Sackett et~al.(1993)Sackett, Ieki, A, et~al.]{sackett1993} SACKETT~D, IEKI~K, A~G, et~al. -\newblock Physical Review C, 1993, 48\penalty0 (1):\penalty0 118. +\newblock Physical Review C, 1993, 48\penalty0 (1): 118. \bibitem[Sackett et~al.(1997)Sackett, Ieki, A, et~al.]{zecher1997} SACKETT~D, IEKI~K, A~G, et~al. -\newblock Nucl Instr Meth A, 1997, 401\penalty0 (2-3):\penalty0 329. +\newblock Nucl Instr Meth A, 1997, 401\penalty0 (2-3): 329. \bibitem[薛梦驰(2009)]{xuemengchi2009} 薛梦驰. -\newblock 电信科学, 2009, 7:\penalty0 57. +\newblock 电信科学, 2009, 7: 57. \bibitem[唐军杰\ 等(2013)唐军杰, 王拓, 张强, et~al.]{tangjunjie2013} 唐军杰, 王拓, 张强, 等. -\newblock 发光学报, 2013, 34\penalty0 (1):\penalty0 78. +\newblock 发光学报, 2013, 34\penalty0 (1): 78. \bibitem[WU et~al.(2013)WU, TANG, SUN, et~al.]{wuchong2013} WU~C, TANG~B, SUN~Z, et~al. -\newblock Radiation Measurements, 2013, 58\penalty0 (11):\penalty0 128. +\newblock Radiation Measurements, 2013, 58\penalty0 (11): 128. \end{thebibliography} diff --git a/variants/2005/gbt7714-2005-author-year.bst b/variants/2005/gbt7714-2005-author-year.bst index a4422ca..bc81ff0 100644 --- a/variants/2005/gbt7714-2005-author-year.bst +++ b/variants/2005/gbt7714-2005-author-year.bst @@ -34,6 +34,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + space.before.pages only.start.page show.url show.doi @@ -60,6 +61,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := + #0 'space.before.pages := #0 'only.start.page := #1 'show.url := #0 'show.doi := @@ -1141,7 +1143,12 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " format.pages * } + { space.before.pages + { ": " } + { ":\penalty0 " } + if$ + format.pages * + } if$ } diff --git a/variants/2005/gbt7714-2005-numerical.bst b/variants/2005/gbt7714-2005-numerical.bst index 09d91eb..1909a9c 100644 --- a/variants/2005/gbt7714-2005-numerical.bst +++ b/variants/2005/gbt7714-2005-numerical.bst @@ -34,6 +34,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + space.before.pages only.start.page show.url show.doi @@ -54,6 +55,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := + #0 'space.before.pages := #0 'only.start.page := #1 'show.url := #0 'show.doi := @@ -1130,7 +1132,12 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " format.pages * } + { space.before.pages + { ": " } + { ":\penalty0 " } + if$ + format.pages * + } if$ } diff --git a/variants/npr/npr.bst b/variants/npr/npr.bst index 4909eba..0bd55f2 100644 --- a/variants/npr/npr.bst +++ b/variants/npr/npr.bst @@ -34,6 +34,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + space.before.pages only.start.page show.url show.doi @@ -54,6 +55,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := + #1 'space.before.pages := #1 'only.start.page := #1 'show.url := #1 'show.doi := @@ -1130,7 +1132,12 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " format.pages * } + { space.before.pages + { ": " } + { ":\penalty0 " } + if$ + format.pages * + } if$ } diff --git a/variants/thu/thuthesis-author-year.bst b/variants/thu/thuthesis-author-year.bst index fb88eb8..407b6d2 100644 --- a/variants/thu/thuthesis-author-year.bst +++ b/variants/thu/thuthesis-author-year.bst @@ -34,6 +34,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + space.before.pages only.start.page show.url show.doi @@ -60,6 +61,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := + #0 'space.before.pages := #0 'only.start.page := #1 'show.url := #0 'show.doi := @@ -1144,7 +1146,12 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " format.pages * } + { space.before.pages + { ": " } + { ":\penalty0 " } + if$ + format.pages * + } if$ } diff --git a/variants/thu/thuthesis-bachelor.bst b/variants/thu/thuthesis-bachelor.bst index 2146618..5c41ec0 100644 --- a/variants/thu/thuthesis-bachelor.bst +++ b/variants/thu/thuthesis-bachelor.bst @@ -34,6 +34,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + space.before.pages only.start.page show.url show.doi @@ -54,6 +55,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := + #0 'space.before.pages := #0 'only.start.page := #1 'show.url := #1 'show.doi := @@ -1130,7 +1132,12 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " format.pages * } + { space.before.pages + { ": " } + { ":\penalty0 " } + if$ + format.pages * + } if$ } diff --git a/variants/thu/thuthesis-numeric.bst b/variants/thu/thuthesis-numeric.bst index 70b1136..c2b142f 100644 --- a/variants/thu/thuthesis-numeric.bst +++ b/variants/thu/thuthesis-numeric.bst @@ -34,6 +34,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + space.before.pages only.start.page show.url show.doi @@ -54,6 +55,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := + #0 'space.before.pages := #0 'only.start.page := #1 'show.url := #0 'show.doi := @@ -1133,7 +1135,12 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " format.pages * } + { space.before.pages + { ": " } + { ":\penalty0 " } + if$ + format.pages * + } if$ } diff --git a/variants/ustc/ustcthesis-authoryear.bst b/variants/ustc/ustcthesis-authoryear.bst index 71bfc6b..f5d2d15 100644 --- a/variants/ustc/ustcthesis-authoryear.bst +++ b/variants/ustc/ustcthesis-authoryear.bst @@ -34,6 +34,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + space.before.pages only.start.page show.url show.doi @@ -60,6 +61,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := + #0 'space.before.pages := #0 'only.start.page := #1 'show.url := #1 'show.doi := @@ -1141,7 +1143,12 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " format.pages * } + { space.before.pages + { ": " } + { ":\penalty0 " } + if$ + format.pages * + } if$ } diff --git a/variants/ustc/ustcthesis-bachelor.bst b/variants/ustc/ustcthesis-bachelor.bst index 3e2bcab..abdabe1 100644 --- a/variants/ustc/ustcthesis-bachelor.bst +++ b/variants/ustc/ustcthesis-bachelor.bst @@ -34,6 +34,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + space.before.pages only.start.page show.url show.doi @@ -56,6 +57,7 @@ FUNCTION {load.config} #1 'italic.jounal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := + #0 'space.before.pages := #0 'only.start.page := #1 'show.url := #1 'show.doi := @@ -1132,7 +1134,12 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " format.pages * } + { space.before.pages + { ": " } + { ":\penalty0 " } + if$ + format.pages * + } if$ } diff --git a/variants/ustc/ustcthesis-numerical.bst b/variants/ustc/ustcthesis-numerical.bst index ef6805a..725f2d6 100644 --- a/variants/ustc/ustcthesis-numerical.bst +++ b/variants/ustc/ustcthesis-numerical.bst @@ -34,6 +34,7 @@ INTEGERS { italic.jounal bold.journal.volume show.missing.address.publisher + space.before.pages only.start.page show.url show.doi @@ -54,6 +55,7 @@ FUNCTION {load.config} #0 'italic.jounal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := + #0 'space.before.pages := #0 'only.start.page := #1 'show.url := #1 'show.doi := @@ -1130,7 +1132,12 @@ FUNCTION {format.journal.number} FUNCTION {format.journal.pages} { pages empty$ { "" } - { ":\penalty0 " format.pages * } + { space.before.pages + { ": " } + { ":\penalty0 " } + if$ + format.pages * + } if$ } From 9dde0a41b79d83dd90f4cd120443f17e3e6435a9 Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Sun, 8 Mar 2020 01:43:42 +0800 Subject: [PATCH 07/16] Add option abbreviate.journal --- CHANGELOG.md | 1 + gbt7714-author-year.bst | 37 +++++++++ gbt7714-numerical.bst | 37 +++++++++ gbt7714.dtx | 88 ++++++++++++++++++++++ test/testbst/npr.bbl | 2 +- tools/abbr-journal.py | 50 ++++++++++++ variants/2005/gbt7714-2005-author-year.bst | 37 +++++++++ variants/2005/gbt7714-2005-numerical.bst | 37 +++++++++ variants/npr/npr.bst | 77 +++++++++++++++++++ variants/thu/thuthesis-author-year.bst | 37 +++++++++ variants/thu/thuthesis-bachelor.bst | 37 +++++++++ variants/thu/thuthesis-numeric.bst | 37 +++++++++ variants/ustc/ustcthesis-authoryear.bst | 37 +++++++++ variants/ustc/ustcthesis-bachelor.bst | 37 +++++++++ variants/ustc/ustcthesis-numerical.bst | 37 +++++++++ 15 files changed, 587 insertions(+), 1 deletion(-) create mode 100644 tools/abbr-journal.py diff --git a/CHANGELOG.md b/CHANGELOG.md index d1b3c85..22104e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - 新增选项 `only.start.page` - 增加选项 `title.in.journal` - 增加选项 `space.before.pages` +- 增加选项 `abbreviate.journal` ## [v2.0] - 2020-03-04 ### Changed diff --git a/gbt7714-author-year.bst b/gbt7714-author-year.bst index 33108cf..42c7078 100644 --- a/gbt7714-author-year.bst +++ b/gbt7714-author-year.bst @@ -31,6 +31,7 @@ INTEGERS { show.medium.type slash.for.extraction in.booktitle + abbreviate.journal italic.jounal bold.journal.volume show.missing.address.publisher @@ -58,6 +59,7 @@ FUNCTION {load.config} #1 'show.medium.type := #1 'slash.for.extraction := #0 'in.booktitle := + #0 'abbreviate.journal := #0 'italic.jounal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := @@ -869,8 +871,43 @@ FUNCTION {format.series.vol.num.booktitle} if$ } +FUNCTION {remove.period} +{ 't := + "" 's := + { t empty$ not } + { t #1 #1 substring$ 'tmp.str := + tmp.str "." = not + { s tmp.str * 's := } + 'skip$ + if$ + t #2 global.max$ substring$ 't := + } + while$ + s +} + +FUNCTION {abbreviate} +{ remove.period + 't := + t "l" change.case$ 's := + "" + s "physical review letters" = + { "Phys Rev Lett" } + 'skip$ + if$ + 's := + s empty$ + { t } + { pop$ s } + if$ +} + FUNCTION {format.journal} { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ italic.jounal entry.lang lang.en = and 'italicize 'skip$ diff --git a/gbt7714-numerical.bst b/gbt7714-numerical.bst index 7328167..174b715 100644 --- a/gbt7714-numerical.bst +++ b/gbt7714-numerical.bst @@ -31,6 +31,7 @@ INTEGERS { show.medium.type slash.for.extraction in.booktitle + abbreviate.journal italic.jounal bold.journal.volume show.missing.address.publisher @@ -52,6 +53,7 @@ FUNCTION {load.config} #1 'show.medium.type := #1 'slash.for.extraction := #0 'in.booktitle := + #0 'abbreviate.journal := #0 'italic.jounal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := @@ -858,8 +860,43 @@ FUNCTION {format.series.vol.num.booktitle} if$ } +FUNCTION {remove.period} +{ 't := + "" 's := + { t empty$ not } + { t #1 #1 substring$ 'tmp.str := + tmp.str "." = not + { s tmp.str * 's := } + 'skip$ + if$ + t #2 global.max$ substring$ 't := + } + while$ + s +} + +FUNCTION {abbreviate} +{ remove.period + 't := + t "l" change.case$ 's := + "" + s "physical review letters" = + { "Phys Rev Lett" } + 'skip$ + if$ + 's := + s empty$ + { t } + { pop$ s } + if$ +} + FUNCTION {format.journal} { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ italic.jounal entry.lang lang.en = and 'italicize 'skip$ diff --git a/gbt7714.dtx b/gbt7714.dtx index 0bcf726..dbb1c01 100644 --- a/gbt7714.dtx +++ b/gbt7714.dtx @@ -786,6 +786,7 @@ INTEGERS { show.medium.type slash.for.extraction in.booktitle + abbreviate.journal italic.jounal bold.journal.volume show.missing.address.publisher @@ -894,6 +895,16 @@ FUNCTION {load.config} #0 'in.booktitle := % \end{macrocode} % +% 期刊名使用缩写: +% \begin{macrocode} +%<*!abbreviate-journal&!npr> + #0 'abbreviate.journal := +% +%<*abbreviate-journal|npr> + #1 'abbreviate.journal := +% +% \end{macrocode} +% % 期刊名使用斜体: % \begin{macrocode} #0 'italic.jounal := @@ -2192,8 +2203,85 @@ FUNCTION {format.series.vol.num.booktitle} if$ } +FUNCTION {remove.period} +{ 't := + "" 's := + { t empty$ not } + { t #1 #1 substring$ 'tmp.str := + tmp.str "." = not + { s tmp.str * 's := } + 'skip$ + if$ + t #2 global.max$ substring$ 't := + } + while$ + s +} + +FUNCTION {abbreviate} +{ remove.period + 't := + t "l" change.case$ 's := + "" + s "physical review letters" = + { "Phys Rev Lett" } + 'skip$ + if$ +%<*npr> + s "china physics c" = + { "Chin Phys C" } + 'skip$ + if$ + s "chinese physics letters" = + { "Chin Phys Lett" } + 'skip$ + if$ + s "nuclear instruments and methods in physics research section a" = + { "Nucl Instr and Meth A" } + 'skip$ + if$ + s "nuclear instruments and methods in physics research section a: accelerators, spectrometers, detectors and associated equipment" = + { "Nucl Instr and Meth A" } + 'skip$ + if$ + s "nuclear instruments and methods in physics research section b" = + { "Nucl Instr and Meth B" } + 'skip$ + if$ + s "nuclear instruments and methods in physics research section b: beam interactions with materials and atoms" = + { "Nucl Instr and Meth B" } + 'skip$ + if$ + s "physical review c" = + { "Phys Rev C" } + 'skip$ + if$ + s "physical review d" = + { "Phys Rev D" } + 'skip$ + if$ + s "physical review e" = + { "Phys Rev E" } + 'skip$ + if$ + s "physics letters b" = + { "Phys Lett B" } + 'skip$ + if$ +% + 's := + s empty$ + { t } + { pop$ s } + if$ +} + FUNCTION {format.journal} { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ italic.jounal entry.lang lang.en = and 'italicize 'skip$ diff --git a/test/testbst/npr.bbl b/test/testbst/npr.bbl index 58d8337..4d41cce 100644 --- a/test/testbst/npr.bbl +++ b/test/testbst/npr.bbl @@ -818,7 +818,7 @@ Philips data handbook for electron tubes t9\allowbreak[M]. \bibitem[Sackett et~al.(1993)Sackett, Ieki, A, et~al.]{sackett1993} SACKETT~D, IEKI~K, A~G, et~al. -\newblock Physical Review C, 1993, 48\penalty0 (1): 118. +\newblock Phys Rev C, 1993, 48\penalty0 (1): 118. \bibitem[Sackett et~al.(1997)Sackett, Ieki, A, et~al.]{zecher1997} SACKETT~D, IEKI~K, A~G, et~al. diff --git a/tools/abbr-journal.py b/tools/abbr-journal.py new file mode 100644 index 0000000..b342918 --- /dev/null +++ b/tools/abbr-journal.py @@ -0,0 +1,50 @@ +abbrs = { + 'China Physics C': 'Chin Phys C', + 'Chinese Physics Letters': 'Chin Phys Lett', + 'Nuclear Instruments and Methods in Physics Research Section A': 'Nucl Instr and Meth A', + 'Nuclear Instruments and Methods in Physics Research Section A: Accelerators, Spectrometers, Detectors and Associated Equipment': 'Nucl Instr and Meth A', + 'Nuclear Instruments and Methods in Physics Research Section B': 'Nucl Instr and Meth B', + 'Nuclear Instruments and Methods in Physics Research Section B: Beam Interactions with Materials and Atoms': 'Nucl Instr and Meth B', + 'Physical Review C': 'Phys Rev C', + 'Physical Review D': 'Phys Rev D', + 'Physical Review E': 'Phys Rev E', + 'Physical Review Letters': 'Phys Rev Lett', + 'Physics Letters B': 'Phys Lett B', +} + +lines = [] + +lines.append('''\ +FUNCTION {abbreviate.journal} +{ 't := + t "l" change.case$ 's := +''') + +# for k, v in abbrs.items(): +# lines.append(f' s "{k.lower()}" =\n {{ "{v}" }} {{\n') +# lines.append(f' t\n') +# for _ in range(len(abbrs)): +# lines.append(f' }} if$\n') + +for k, v in abbrs.items(): + k = k.replace('.', '').lower() + lines.append(f' s "{k}" =\n') + lines.append(f' {{ "{v}" }}\n') + lines.append(f' \'skip$\n') + lines.append(f' if$\n') + +lines.append('''\ + \'s := + s empty$ + { t } + { s } + if$ +} +''') + + +for line in lines: + print(line, end='') + +with open('abbr.bst', 'w') as f: + f.writelines(lines) diff --git a/variants/2005/gbt7714-2005-author-year.bst b/variants/2005/gbt7714-2005-author-year.bst index bc81ff0..4ccecae 100644 --- a/variants/2005/gbt7714-2005-author-year.bst +++ b/variants/2005/gbt7714-2005-author-year.bst @@ -31,6 +31,7 @@ INTEGERS { show.medium.type slash.for.extraction in.booktitle + abbreviate.journal italic.jounal bold.journal.volume show.missing.address.publisher @@ -58,6 +59,7 @@ FUNCTION {load.config} #1 'show.medium.type := #1 'slash.for.extraction := #0 'in.booktitle := + #0 'abbreviate.journal := #0 'italic.jounal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := @@ -869,8 +871,43 @@ FUNCTION {format.series.vol.num.booktitle} if$ } +FUNCTION {remove.period} +{ 't := + "" 's := + { t empty$ not } + { t #1 #1 substring$ 'tmp.str := + tmp.str "." = not + { s tmp.str * 's := } + 'skip$ + if$ + t #2 global.max$ substring$ 't := + } + while$ + s +} + +FUNCTION {abbreviate} +{ remove.period + 't := + t "l" change.case$ 's := + "" + s "physical review letters" = + { "Phys Rev Lett" } + 'skip$ + if$ + 's := + s empty$ + { t } + { pop$ s } + if$ +} + FUNCTION {format.journal} { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ italic.jounal entry.lang lang.en = and 'italicize 'skip$ diff --git a/variants/2005/gbt7714-2005-numerical.bst b/variants/2005/gbt7714-2005-numerical.bst index 1909a9c..d12879f 100644 --- a/variants/2005/gbt7714-2005-numerical.bst +++ b/variants/2005/gbt7714-2005-numerical.bst @@ -31,6 +31,7 @@ INTEGERS { show.medium.type slash.for.extraction in.booktitle + abbreviate.journal italic.jounal bold.journal.volume show.missing.address.publisher @@ -52,6 +53,7 @@ FUNCTION {load.config} #1 'show.medium.type := #1 'slash.for.extraction := #0 'in.booktitle := + #0 'abbreviate.journal := #0 'italic.jounal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := @@ -858,8 +860,43 @@ FUNCTION {format.series.vol.num.booktitle} if$ } +FUNCTION {remove.period} +{ 't := + "" 's := + { t empty$ not } + { t #1 #1 substring$ 'tmp.str := + tmp.str "." = not + { s tmp.str * 's := } + 'skip$ + if$ + t #2 global.max$ substring$ 't := + } + while$ + s +} + +FUNCTION {abbreviate} +{ remove.period + 't := + t "l" change.case$ 's := + "" + s "physical review letters" = + { "Phys Rev Lett" } + 'skip$ + if$ + 's := + s empty$ + { t } + { pop$ s } + if$ +} + FUNCTION {format.journal} { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ italic.jounal entry.lang lang.en = and 'italicize 'skip$ diff --git a/variants/npr/npr.bst b/variants/npr/npr.bst index 0bd55f2..622bc06 100644 --- a/variants/npr/npr.bst +++ b/variants/npr/npr.bst @@ -31,6 +31,7 @@ INTEGERS { show.medium.type slash.for.extraction in.booktitle + abbreviate.journal italic.jounal bold.journal.volume show.missing.address.publisher @@ -52,6 +53,7 @@ FUNCTION {load.config} #1 'show.medium.type := #1 'slash.for.extraction := #0 'in.booktitle := + #1 'abbreviate.journal := #0 'italic.jounal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := @@ -858,8 +860,83 @@ FUNCTION {format.series.vol.num.booktitle} if$ } +FUNCTION {remove.period} +{ 't := + "" 's := + { t empty$ not } + { t #1 #1 substring$ 'tmp.str := + tmp.str "." = not + { s tmp.str * 's := } + 'skip$ + if$ + t #2 global.max$ substring$ 't := + } + while$ + s +} + +FUNCTION {abbreviate} +{ remove.period + 't := + t "l" change.case$ 's := + "" + s "physical review letters" = + { "Phys Rev Lett" } + 'skip$ + if$ + s "china physics c" = + { "Chin Phys C" } + 'skip$ + if$ + s "chinese physics letters" = + { "Chin Phys Lett" } + 'skip$ + if$ + s "nuclear instruments and methods in physics research section a" = + { "Nucl Instr and Meth A" } + 'skip$ + if$ + s "nuclear instruments and methods in physics research section a: accelerators, spectrometers, detectors and associated equipment" = + { "Nucl Instr and Meth A" } + 'skip$ + if$ + s "nuclear instruments and methods in physics research section b" = + { "Nucl Instr and Meth B" } + 'skip$ + if$ + s "nuclear instruments and methods in physics research section b: beam interactions with materials and atoms" = + { "Nucl Instr and Meth B" } + 'skip$ + if$ + s "physical review c" = + { "Phys Rev C" } + 'skip$ + if$ + s "physical review d" = + { "Phys Rev D" } + 'skip$ + if$ + s "physical review e" = + { "Phys Rev E" } + 'skip$ + if$ + s "physics letters b" = + { "Phys Lett B" } + 'skip$ + if$ + 's := + s empty$ + { t } + { pop$ s } + if$ +} + FUNCTION {format.journal} { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ italic.jounal entry.lang lang.en = and 'italicize 'skip$ diff --git a/variants/thu/thuthesis-author-year.bst b/variants/thu/thuthesis-author-year.bst index 407b6d2..5a16760 100644 --- a/variants/thu/thuthesis-author-year.bst +++ b/variants/thu/thuthesis-author-year.bst @@ -31,6 +31,7 @@ INTEGERS { show.medium.type slash.for.extraction in.booktitle + abbreviate.journal italic.jounal bold.journal.volume show.missing.address.publisher @@ -58,6 +59,7 @@ FUNCTION {load.config} #1 'show.medium.type := #1 'slash.for.extraction := #0 'in.booktitle := + #0 'abbreviate.journal := #0 'italic.jounal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := @@ -869,8 +871,43 @@ FUNCTION {format.series.vol.num.booktitle} if$ } +FUNCTION {remove.period} +{ 't := + "" 's := + { t empty$ not } + { t #1 #1 substring$ 'tmp.str := + tmp.str "." = not + { s tmp.str * 's := } + 'skip$ + if$ + t #2 global.max$ substring$ 't := + } + while$ + s +} + +FUNCTION {abbreviate} +{ remove.period + 't := + t "l" change.case$ 's := + "" + s "physical review letters" = + { "Phys Rev Lett" } + 'skip$ + if$ + 's := + s empty$ + { t } + { pop$ s } + if$ +} + FUNCTION {format.journal} { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ italic.jounal entry.lang lang.en = and 'italicize 'skip$ diff --git a/variants/thu/thuthesis-bachelor.bst b/variants/thu/thuthesis-bachelor.bst index 5c41ec0..56eda5e 100644 --- a/variants/thu/thuthesis-bachelor.bst +++ b/variants/thu/thuthesis-bachelor.bst @@ -31,6 +31,7 @@ INTEGERS { show.medium.type slash.for.extraction in.booktitle + abbreviate.journal italic.jounal bold.journal.volume show.missing.address.publisher @@ -52,6 +53,7 @@ FUNCTION {load.config} #1 'show.medium.type := #1 'slash.for.extraction := #0 'in.booktitle := + #0 'abbreviate.journal := #0 'italic.jounal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := @@ -858,8 +860,43 @@ FUNCTION {format.series.vol.num.booktitle} if$ } +FUNCTION {remove.period} +{ 't := + "" 's := + { t empty$ not } + { t #1 #1 substring$ 'tmp.str := + tmp.str "." = not + { s tmp.str * 's := } + 'skip$ + if$ + t #2 global.max$ substring$ 't := + } + while$ + s +} + +FUNCTION {abbreviate} +{ remove.period + 't := + t "l" change.case$ 's := + "" + s "physical review letters" = + { "Phys Rev Lett" } + 'skip$ + if$ + 's := + s empty$ + { t } + { pop$ s } + if$ +} + FUNCTION {format.journal} { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ italic.jounal entry.lang lang.en = and 'italicize 'skip$ diff --git a/variants/thu/thuthesis-numeric.bst b/variants/thu/thuthesis-numeric.bst index c2b142f..8bc7260 100644 --- a/variants/thu/thuthesis-numeric.bst +++ b/variants/thu/thuthesis-numeric.bst @@ -31,6 +31,7 @@ INTEGERS { show.medium.type slash.for.extraction in.booktitle + abbreviate.journal italic.jounal bold.journal.volume show.missing.address.publisher @@ -52,6 +53,7 @@ FUNCTION {load.config} #1 'show.medium.type := #1 'slash.for.extraction := #0 'in.booktitle := + #0 'abbreviate.journal := #0 'italic.jounal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := @@ -858,8 +860,43 @@ FUNCTION {format.series.vol.num.booktitle} if$ } +FUNCTION {remove.period} +{ 't := + "" 's := + { t empty$ not } + { t #1 #1 substring$ 'tmp.str := + tmp.str "." = not + { s tmp.str * 's := } + 'skip$ + if$ + t #2 global.max$ substring$ 't := + } + while$ + s +} + +FUNCTION {abbreviate} +{ remove.period + 't := + t "l" change.case$ 's := + "" + s "physical review letters" = + { "Phys Rev Lett" } + 'skip$ + if$ + 's := + s empty$ + { t } + { pop$ s } + if$ +} + FUNCTION {format.journal} { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ italic.jounal entry.lang lang.en = and 'italicize 'skip$ diff --git a/variants/ustc/ustcthesis-authoryear.bst b/variants/ustc/ustcthesis-authoryear.bst index f5d2d15..6fa912b 100644 --- a/variants/ustc/ustcthesis-authoryear.bst +++ b/variants/ustc/ustcthesis-authoryear.bst @@ -31,6 +31,7 @@ INTEGERS { show.medium.type slash.for.extraction in.booktitle + abbreviate.journal italic.jounal bold.journal.volume show.missing.address.publisher @@ -58,6 +59,7 @@ FUNCTION {load.config} #1 'show.medium.type := #1 'slash.for.extraction := #0 'in.booktitle := + #0 'abbreviate.journal := #0 'italic.jounal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := @@ -869,8 +871,43 @@ FUNCTION {format.series.vol.num.booktitle} if$ } +FUNCTION {remove.period} +{ 't := + "" 's := + { t empty$ not } + { t #1 #1 substring$ 'tmp.str := + tmp.str "." = not + { s tmp.str * 's := } + 'skip$ + if$ + t #2 global.max$ substring$ 't := + } + while$ + s +} + +FUNCTION {abbreviate} +{ remove.period + 't := + t "l" change.case$ 's := + "" + s "physical review letters" = + { "Phys Rev Lett" } + 'skip$ + if$ + 's := + s empty$ + { t } + { pop$ s } + if$ +} + FUNCTION {format.journal} { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ italic.jounal entry.lang lang.en = and 'italicize 'skip$ diff --git a/variants/ustc/ustcthesis-bachelor.bst b/variants/ustc/ustcthesis-bachelor.bst index abdabe1..a0d9190 100644 --- a/variants/ustc/ustcthesis-bachelor.bst +++ b/variants/ustc/ustcthesis-bachelor.bst @@ -31,6 +31,7 @@ INTEGERS { show.medium.type slash.for.extraction in.booktitle + abbreviate.journal italic.jounal bold.journal.volume show.missing.address.publisher @@ -53,6 +54,7 @@ FUNCTION {load.config} #1 'show.medium.type := #1 'slash.for.extraction := #0 'in.booktitle := + #0 'abbreviate.journal := #0 'italic.jounal := #1 'italic.jounal := #0 'bold.journal.volume := @@ -860,8 +862,43 @@ FUNCTION {format.series.vol.num.booktitle} if$ } +FUNCTION {remove.period} +{ 't := + "" 's := + { t empty$ not } + { t #1 #1 substring$ 'tmp.str := + tmp.str "." = not + { s tmp.str * 's := } + 'skip$ + if$ + t #2 global.max$ substring$ 't := + } + while$ + s +} + +FUNCTION {abbreviate} +{ remove.period + 't := + t "l" change.case$ 's := + "" + s "physical review letters" = + { "Phys Rev Lett" } + 'skip$ + if$ + 's := + s empty$ + { t } + { pop$ s } + if$ +} + FUNCTION {format.journal} { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ italic.jounal entry.lang lang.en = and 'italicize 'skip$ diff --git a/variants/ustc/ustcthesis-numerical.bst b/variants/ustc/ustcthesis-numerical.bst index 725f2d6..ab66699 100644 --- a/variants/ustc/ustcthesis-numerical.bst +++ b/variants/ustc/ustcthesis-numerical.bst @@ -31,6 +31,7 @@ INTEGERS { show.medium.type slash.for.extraction in.booktitle + abbreviate.journal italic.jounal bold.journal.volume show.missing.address.publisher @@ -52,6 +53,7 @@ FUNCTION {load.config} #1 'show.medium.type := #1 'slash.for.extraction := #0 'in.booktitle := + #0 'abbreviate.journal := #0 'italic.jounal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := @@ -858,8 +860,43 @@ FUNCTION {format.series.vol.num.booktitle} if$ } +FUNCTION {remove.period} +{ 't := + "" 's := + { t empty$ not } + { t #1 #1 substring$ 'tmp.str := + tmp.str "." = not + { s tmp.str * 's := } + 'skip$ + if$ + t #2 global.max$ substring$ 't := + } + while$ + s +} + +FUNCTION {abbreviate} +{ remove.period + 't := + t "l" change.case$ 's := + "" + s "physical review letters" = + { "Phys Rev Lett" } + 'skip$ + if$ + 's := + s empty$ + { t } + { pop$ s } + if$ +} + FUNCTION {format.journal} { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ italic.jounal entry.lang lang.en = and 'italicize 'skip$ From 9d1d1a46e4b9dffa78270ce0ebb40bbec70038f5 Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Sun, 8 Mar 2020 01:45:31 +0800 Subject: [PATCH 08/16] Fix a typo --- gbt7714-author-year.bst | 6 +++--- gbt7714-numerical.bst | 6 +++--- gbt7714.dtx | 10 +++++----- variants/2005/gbt7714-2005-author-year.bst | 6 +++--- variants/2005/gbt7714-2005-numerical.bst | 6 +++--- variants/npr/npr.bst | 6 +++--- variants/thu/thuthesis-author-year.bst | 6 +++--- variants/thu/thuthesis-bachelor.bst | 6 +++--- variants/thu/thuthesis-numeric.bst | 6 +++--- variants/ustc/ustcthesis-authoryear.bst | 6 +++--- variants/ustc/ustcthesis-bachelor.bst | 8 ++++---- variants/ustc/ustcthesis-numerical.bst | 6 +++--- 12 files changed, 39 insertions(+), 39 deletions(-) diff --git a/gbt7714-author-year.bst b/gbt7714-author-year.bst index 42c7078..55b37e2 100644 --- a/gbt7714-author-year.bst +++ b/gbt7714-author-year.bst @@ -32,7 +32,7 @@ INTEGERS { slash.for.extraction in.booktitle abbreviate.journal - italic.jounal + italic.journal bold.journal.volume show.missing.address.publisher space.before.pages @@ -60,7 +60,7 @@ FUNCTION {load.config} #1 'slash.for.extraction := #0 'in.booktitle := #0 'abbreviate.journal := - #0 'italic.jounal := + #0 'italic.journal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := #0 'space.before.pages := @@ -908,7 +908,7 @@ FUNCTION {format.journal} 'abbreviate 'skip$ if$ - italic.jounal entry.lang lang.en = and + italic.journal entry.lang lang.en = and 'italicize 'skip$ if$ diff --git a/gbt7714-numerical.bst b/gbt7714-numerical.bst index 174b715..bf62faa 100644 --- a/gbt7714-numerical.bst +++ b/gbt7714-numerical.bst @@ -32,7 +32,7 @@ INTEGERS { slash.for.extraction in.booktitle abbreviate.journal - italic.jounal + italic.journal bold.journal.volume show.missing.address.publisher space.before.pages @@ -54,7 +54,7 @@ FUNCTION {load.config} #1 'slash.for.extraction := #0 'in.booktitle := #0 'abbreviate.journal := - #0 'italic.jounal := + #0 'italic.journal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := #0 'space.before.pages := @@ -897,7 +897,7 @@ FUNCTION {format.journal} 'abbreviate 'skip$ if$ - italic.jounal entry.lang lang.en = and + italic.journal entry.lang lang.en = and 'italicize 'skip$ if$ diff --git a/gbt7714.dtx b/gbt7714.dtx index dbb1c01..13b0d0f 100644 --- a/gbt7714.dtx +++ b/gbt7714.dtx @@ -288,7 +288,7 @@ % title.in.journal & |#1| & 期刊是否显示标题 \\ % show.mark & |#1| & 显示文献类型标识 \\ % show.medium.type & |#1| & 显示载体类型标识 \\ -% italic.jounal & |#0| & 西文期刊名使用斜体 \\ +% italic.journal & |#0| & 西文期刊名使用斜体 \\ % show.missing.address.publisher & |#1| & 出版项缺失时显示“出版者不详” \\ % space.before.pages & |#0| & 页码前有空白 \\ % only.start.page & |#0| & 只显示起始页码 \\ @@ -787,7 +787,7 @@ INTEGERS { slash.for.extraction in.booktitle abbreviate.journal - italic.jounal + italic.journal bold.journal.volume show.missing.address.publisher space.before.pages @@ -907,9 +907,9 @@ FUNCTION {load.config} % % 期刊名使用斜体: % \begin{macrocode} - #0 'italic.jounal := + #0 'italic.journal := %<*italicjournal> - #1 'italic.jounal := + #1 'italic.journal := % % \end{macrocode} % @@ -2282,7 +2282,7 @@ FUNCTION {format.journal} 'abbreviate 'skip$ if$ - italic.jounal entry.lang lang.en = and + italic.journal entry.lang lang.en = and 'italicize 'skip$ if$ diff --git a/variants/2005/gbt7714-2005-author-year.bst b/variants/2005/gbt7714-2005-author-year.bst index 4ccecae..dff16e6 100644 --- a/variants/2005/gbt7714-2005-author-year.bst +++ b/variants/2005/gbt7714-2005-author-year.bst @@ -32,7 +32,7 @@ INTEGERS { slash.for.extraction in.booktitle abbreviate.journal - italic.jounal + italic.journal bold.journal.volume show.missing.address.publisher space.before.pages @@ -60,7 +60,7 @@ FUNCTION {load.config} #1 'slash.for.extraction := #0 'in.booktitle := #0 'abbreviate.journal := - #0 'italic.jounal := + #0 'italic.journal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := #0 'space.before.pages := @@ -908,7 +908,7 @@ FUNCTION {format.journal} 'abbreviate 'skip$ if$ - italic.jounal entry.lang lang.en = and + italic.journal entry.lang lang.en = and 'italicize 'skip$ if$ diff --git a/variants/2005/gbt7714-2005-numerical.bst b/variants/2005/gbt7714-2005-numerical.bst index d12879f..5010608 100644 --- a/variants/2005/gbt7714-2005-numerical.bst +++ b/variants/2005/gbt7714-2005-numerical.bst @@ -32,7 +32,7 @@ INTEGERS { slash.for.extraction in.booktitle abbreviate.journal - italic.jounal + italic.journal bold.journal.volume show.missing.address.publisher space.before.pages @@ -54,7 +54,7 @@ FUNCTION {load.config} #1 'slash.for.extraction := #0 'in.booktitle := #0 'abbreviate.journal := - #0 'italic.jounal := + #0 'italic.journal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := #0 'space.before.pages := @@ -897,7 +897,7 @@ FUNCTION {format.journal} 'abbreviate 'skip$ if$ - italic.jounal entry.lang lang.en = and + italic.journal entry.lang lang.en = and 'italicize 'skip$ if$ diff --git a/variants/npr/npr.bst b/variants/npr/npr.bst index 622bc06..ed9b818 100644 --- a/variants/npr/npr.bst +++ b/variants/npr/npr.bst @@ -32,7 +32,7 @@ INTEGERS { slash.for.extraction in.booktitle abbreviate.journal - italic.jounal + italic.journal bold.journal.volume show.missing.address.publisher space.before.pages @@ -54,7 +54,7 @@ FUNCTION {load.config} #1 'slash.for.extraction := #0 'in.booktitle := #1 'abbreviate.journal := - #0 'italic.jounal := + #0 'italic.journal := #0 'bold.journal.volume := #1 'show.missing.address.publisher := #1 'space.before.pages := @@ -937,7 +937,7 @@ FUNCTION {format.journal} 'abbreviate 'skip$ if$ - italic.jounal entry.lang lang.en = and + italic.journal entry.lang lang.en = and 'italicize 'skip$ if$ diff --git a/variants/thu/thuthesis-author-year.bst b/variants/thu/thuthesis-author-year.bst index 5a16760..2af6afc 100644 --- a/variants/thu/thuthesis-author-year.bst +++ b/variants/thu/thuthesis-author-year.bst @@ -32,7 +32,7 @@ INTEGERS { slash.for.extraction in.booktitle abbreviate.journal - italic.jounal + italic.journal bold.journal.volume show.missing.address.publisher space.before.pages @@ -60,7 +60,7 @@ FUNCTION {load.config} #1 'slash.for.extraction := #0 'in.booktitle := #0 'abbreviate.journal := - #0 'italic.jounal := + #0 'italic.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #0 'space.before.pages := @@ -908,7 +908,7 @@ FUNCTION {format.journal} 'abbreviate 'skip$ if$ - italic.jounal entry.lang lang.en = and + italic.journal entry.lang lang.en = and 'italicize 'skip$ if$ diff --git a/variants/thu/thuthesis-bachelor.bst b/variants/thu/thuthesis-bachelor.bst index 56eda5e..0ca828f 100644 --- a/variants/thu/thuthesis-bachelor.bst +++ b/variants/thu/thuthesis-bachelor.bst @@ -32,7 +32,7 @@ INTEGERS { slash.for.extraction in.booktitle abbreviate.journal - italic.jounal + italic.journal bold.journal.volume show.missing.address.publisher space.before.pages @@ -54,7 +54,7 @@ FUNCTION {load.config} #1 'slash.for.extraction := #0 'in.booktitle := #0 'abbreviate.journal := - #0 'italic.jounal := + #0 'italic.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #0 'space.before.pages := @@ -897,7 +897,7 @@ FUNCTION {format.journal} 'abbreviate 'skip$ if$ - italic.jounal entry.lang lang.en = and + italic.journal entry.lang lang.en = and 'italicize 'skip$ if$ diff --git a/variants/thu/thuthesis-numeric.bst b/variants/thu/thuthesis-numeric.bst index 8bc7260..d53d4fd 100644 --- a/variants/thu/thuthesis-numeric.bst +++ b/variants/thu/thuthesis-numeric.bst @@ -32,7 +32,7 @@ INTEGERS { slash.for.extraction in.booktitle abbreviate.journal - italic.jounal + italic.journal bold.journal.volume show.missing.address.publisher space.before.pages @@ -54,7 +54,7 @@ FUNCTION {load.config} #1 'slash.for.extraction := #0 'in.booktitle := #0 'abbreviate.journal := - #0 'italic.jounal := + #0 'italic.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #0 'space.before.pages := @@ -897,7 +897,7 @@ FUNCTION {format.journal} 'abbreviate 'skip$ if$ - italic.jounal entry.lang lang.en = and + italic.journal entry.lang lang.en = and 'italicize 'skip$ if$ diff --git a/variants/ustc/ustcthesis-authoryear.bst b/variants/ustc/ustcthesis-authoryear.bst index 6fa912b..0899922 100644 --- a/variants/ustc/ustcthesis-authoryear.bst +++ b/variants/ustc/ustcthesis-authoryear.bst @@ -32,7 +32,7 @@ INTEGERS { slash.for.extraction in.booktitle abbreviate.journal - italic.jounal + italic.journal bold.journal.volume show.missing.address.publisher space.before.pages @@ -60,7 +60,7 @@ FUNCTION {load.config} #1 'slash.for.extraction := #0 'in.booktitle := #0 'abbreviate.journal := - #0 'italic.jounal := + #0 'italic.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #0 'space.before.pages := @@ -908,7 +908,7 @@ FUNCTION {format.journal} 'abbreviate 'skip$ if$ - italic.jounal entry.lang lang.en = and + italic.journal entry.lang lang.en = and 'italicize 'skip$ if$ diff --git a/variants/ustc/ustcthesis-bachelor.bst b/variants/ustc/ustcthesis-bachelor.bst index a0d9190..b075c1b 100644 --- a/variants/ustc/ustcthesis-bachelor.bst +++ b/variants/ustc/ustcthesis-bachelor.bst @@ -32,7 +32,7 @@ INTEGERS { slash.for.extraction in.booktitle abbreviate.journal - italic.jounal + italic.journal bold.journal.volume show.missing.address.publisher space.before.pages @@ -55,8 +55,8 @@ FUNCTION {load.config} #1 'slash.for.extraction := #0 'in.booktitle := #0 'abbreviate.journal := - #0 'italic.jounal := - #1 'italic.jounal := + #0 'italic.journal := + #1 'italic.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #0 'space.before.pages := @@ -899,7 +899,7 @@ FUNCTION {format.journal} 'abbreviate 'skip$ if$ - italic.jounal entry.lang lang.en = and + italic.journal entry.lang lang.en = and 'italicize 'skip$ if$ diff --git a/variants/ustc/ustcthesis-numerical.bst b/variants/ustc/ustcthesis-numerical.bst index ab66699..6e769a3 100644 --- a/variants/ustc/ustcthesis-numerical.bst +++ b/variants/ustc/ustcthesis-numerical.bst @@ -32,7 +32,7 @@ INTEGERS { slash.for.extraction in.booktitle abbreviate.journal - italic.jounal + italic.journal bold.journal.volume show.missing.address.publisher space.before.pages @@ -54,7 +54,7 @@ FUNCTION {load.config} #1 'slash.for.extraction := #0 'in.booktitle := #0 'abbreviate.journal := - #0 'italic.jounal := + #0 'italic.journal := #0 'bold.journal.volume := #0 'show.missing.address.publisher := #0 'space.before.pages := @@ -897,7 +897,7 @@ FUNCTION {format.journal} 'abbreviate 'skip$ if$ - italic.jounal entry.lang lang.en = and + italic.journal entry.lang lang.en = and 'italicize 'skip$ if$ From d4c8adbc815821d7dc6fdd211d8a42c8e105ce5d Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Sun, 8 Mar 2020 13:52:55 +0800 Subject: [PATCH 09/16] Add option show.english.translation --- CHANGELOG.md | 1 + gbt7714-author-year.bst | 90 ++++- gbt7714-numerical.bst | 90 ++++- gbt7714.dtx | 100 ++++- gbt7714.sty | 1 + test/test.sh | 11 +- test/testbst/npr.bbl | 433 +++++++++++++-------- test/testbst/npr.dtx | 12 +- test/testbst/support/test.tex | 1 + variants/2005/gbt7714-2005-author-year.bst | 90 ++++- variants/2005/gbt7714-2005-numerical.bst | 90 ++++- variants/npr/npr.bst | 90 ++++- variants/thu/thuthesis-author-year.bst | 90 ++++- variants/thu/thuthesis-bachelor.bst | 90 ++++- variants/thu/thuthesis-numeric.bst | 90 ++++- variants/ustc/ustcthesis-authoryear.bst | 90 ++++- variants/ustc/ustcthesis-bachelor.bst | 90 ++++- variants/ustc/ustcthesis-numerical.bst | 90 ++++- 18 files changed, 1126 insertions(+), 423 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22104e2..1a10598 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - 增加选项 `title.in.journal` - 增加选项 `space.before.pages` - 增加选项 `abbreviate.journal` +- 增加选项 `show.english.translation` ## [v2.0] - 2020-03-04 ### Changed diff --git a/gbt7714-author-year.bst b/gbt7714-author-year.bst index 55b37e2..19dff73 100644 --- a/gbt7714-author-year.bst +++ b/gbt7714-author-year.bst @@ -40,6 +40,7 @@ INTEGERS { show.url show.doi show.note + show.english.translation lang.zh.order lang.ja.order lang.en.order @@ -68,6 +69,7 @@ FUNCTION {load.config} #1 'show.url := #1 'show.doi := #0 'show.note := + #0 'show.english.translation := #1 'lang.zh.order := #2 'lang.ja.order := #3 'lang.en.order := @@ -99,6 +101,7 @@ ENTRY series title translator + translation url urldate volume @@ -280,6 +283,12 @@ FUNCTION {output.check} FUNCTION {fin.entry} { add.period$ write$ + show.english.translation entry.lang lang.zh = and + { ")" + write$ + } + 'skip$ + if$ newline$ } @@ -1257,9 +1266,15 @@ FUNCTION {check.url} } FUNCTION {format.url} +{ entry.url +} + +FUNCTION {output.url} { entry.url empty$ not - { new.block entry.url } - { "" } + { new.block + entry.url output + } + 'skip$ if$ } @@ -1293,7 +1308,7 @@ FUNCTION {is.in.url} FUNCTION {format.doi} { "" - doi empty$ not show.doi and + doi empty$ not { "" 's := doi 't := #0 'numnames := @@ -1321,11 +1336,16 @@ FUNCTION {format.doi} t #2 global.max$ substring$ 't := } while$ - 's := - s empty$ not - { new.block s } - { "" } - if$ + } + 'skip$ + if$ +} + +FUNCTION {output.doi} +{ doi empty$ not show.doi and + show.english.translation entry.lang lang.zh = and not and + { new.block + format.doi output } 'skip$ if$ @@ -1357,6 +1377,30 @@ FUNCTION {format.note} if$ } +FUNCTION {output.translation} +{ show.english.translation entry.lang lang.zh = and + { translation empty$ not + { translation } + { "[English translation missing!]" } + if$ + " (in Chinese)" * output + write$ + format.doi duplicate$ empty$ not + { newline$ + write$ + } + 'pop$ + if$ + " \\" write$ + newline$ + "(" write$ + "" + before.all 'output.state := + } + 'skip$ + if$ +} + FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ @@ -1369,6 +1413,7 @@ FUNCTION {empty.misc.check} FUNCTION {monograph} { output.bibitem + output.translation author empty$ not { format.authors } { editor empty$ not @@ -1397,8 +1442,8 @@ FUNCTION {monograph} format.address.publisher output format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1406,6 +1451,7 @@ FUNCTION {monograph} FUNCTION {incollection} { output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1429,8 +1475,8 @@ FUNCTION {incollection} format.address.publisher output format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1438,6 +1484,7 @@ FUNCTION {incollection} FUNCTION {periodical} { output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1454,8 +1501,8 @@ FUNCTION {periodical} new.block format.address.publisher output format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1463,6 +1510,7 @@ FUNCTION {periodical} FUNCTION {article} { output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1484,8 +1532,8 @@ FUNCTION {article} format.journal.number "" output.after format.journal.pages "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1493,6 +1541,7 @@ FUNCTION {article} FUNCTION {patent} { output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1507,8 +1556,8 @@ FUNCTION {patent} new.block format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1518,6 +1567,7 @@ FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1534,8 +1584,8 @@ FUNCTION {electronic} format.pages bbl.colon output.after format.editdate "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry diff --git a/gbt7714-numerical.bst b/gbt7714-numerical.bst index bf62faa..fb7244d 100644 --- a/gbt7714-numerical.bst +++ b/gbt7714-numerical.bst @@ -40,6 +40,7 @@ INTEGERS { show.url show.doi show.note + show.english.translation } FUNCTION {load.config} @@ -62,6 +63,7 @@ FUNCTION {load.config} #1 'show.url := #1 'show.doi := #0 'show.note := + #0 'show.english.translation := } ENTRY @@ -88,6 +90,7 @@ ENTRY series title translator + translation url urldate volume @@ -269,6 +272,12 @@ FUNCTION {output.check} FUNCTION {fin.entry} { add.period$ write$ + show.english.translation entry.lang lang.zh = and + { ")" + write$ + } + 'skip$ + if$ newline$ } @@ -1246,9 +1255,15 @@ FUNCTION {check.url} } FUNCTION {format.url} +{ entry.url +} + +FUNCTION {output.url} { entry.url empty$ not - { new.block entry.url } - { "" } + { new.block + entry.url output + } + 'skip$ if$ } @@ -1282,7 +1297,7 @@ FUNCTION {is.in.url} FUNCTION {format.doi} { "" - doi empty$ not show.doi and + doi empty$ not { "" 's := doi 't := #0 'numnames := @@ -1310,11 +1325,16 @@ FUNCTION {format.doi} t #2 global.max$ substring$ 't := } while$ - 's := - s empty$ not - { new.block s } - { "" } - if$ + } + 'skip$ + if$ +} + +FUNCTION {output.doi} +{ doi empty$ not show.doi and + show.english.translation entry.lang lang.zh = and not and + { new.block + format.doi output } 'skip$ if$ @@ -1346,6 +1366,30 @@ FUNCTION {format.note} if$ } +FUNCTION {output.translation} +{ show.english.translation entry.lang lang.zh = and + { translation empty$ not + { translation } + { "[English translation missing!]" } + if$ + " (in Chinese)" * output + write$ + format.doi duplicate$ empty$ not + { newline$ + write$ + } + 'pop$ + if$ + " \\" write$ + newline$ + "(" write$ + "" + before.all 'output.state := + } + 'skip$ + if$ +} + FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ @@ -1358,6 +1402,7 @@ FUNCTION {empty.misc.check} FUNCTION {monograph} { output.bibitem + output.translation author empty$ not { format.authors } { editor empty$ not @@ -1382,8 +1427,8 @@ FUNCTION {monograph} format.year "year" output.check format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1391,6 +1436,7 @@ FUNCTION {monograph} FUNCTION {incollection} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1410,8 +1456,8 @@ FUNCTION {incollection} format.year "year" output.check format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1419,6 +1465,7 @@ FUNCTION {incollection} FUNCTION {periodical} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1431,8 +1478,8 @@ FUNCTION {periodical} format.address.publisher output format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1440,6 +1487,7 @@ FUNCTION {periodical} FUNCTION {article} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1457,8 +1505,8 @@ FUNCTION {article} format.journal.number "" output.after format.journal.pages "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1466,6 +1514,7 @@ FUNCTION {article} FUNCTION {patent} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1475,8 +1524,8 @@ FUNCTION {patent} new.block format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1486,6 +1535,7 @@ FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := output.bibitem + output.translation format.authors output author format.key output new.block @@ -1501,8 +1551,8 @@ FUNCTION {electronic} format.pages bbl.colon output.after format.editdate "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry diff --git a/gbt7714.dtx b/gbt7714.dtx index 13b0d0f..70f4836 100644 --- a/gbt7714.dtx +++ b/gbt7714.dtx @@ -472,6 +472,7 @@ % 定义接口切换引用文献的标注法,可用 \cs{citestyle} 调用 \opt{numerical} % 或 \opt{authoryear},参见 \pkg{natbib}。 % \begin{macrocode} +\renewcommand\newblock{\space} \newcommand\bibstyle@super{\bibpunct{[}{]}{,}{s}{,}{\textsuperscript{,}}} \newcommand\bibstyle@numbers{\bibpunct{[}{]}{,}{n}{,}{,}} \newcommand\bibstyle@authoryear{\bibpunct{(}{)}{;}{a}{,}{,}} @@ -795,6 +796,7 @@ INTEGERS { show.url show.doi show.note + show.english.translation %<*authoryear> lang.zh.order lang.ja.order @@ -971,6 +973,16 @@ FUNCTION {load.config} #0 'show.note := % \end{macrocode} % +% 中文文献是否显示英文翻译 +% \begin{macrocode} +%<*!show-english-translation&!npr> + #0 'show.english.translation := +% +%<*show-english-translation|npr> + #1 'show.english.translation := +% +% \end{macrocode} +% % 参考文献表按照“著者-出版年”组织时,各个文种的顺序: % \begin{macrocode} %<*authoryear> @@ -1017,6 +1029,7 @@ ENTRY series title translator + translation url urldate volume @@ -1393,6 +1406,12 @@ FUNCTION {output.check} FUNCTION {fin.entry} { add.period$ write$ + show.english.translation entry.lang lang.zh = and + { ")" + write$ + } + 'skip$ + if$ newline$ } @@ -2757,9 +2776,15 @@ FUNCTION {check.url} } FUNCTION {format.url} +{ entry.url +} + +FUNCTION {output.url} { entry.url empty$ not - { new.block entry.url } - { "" } + { new.block + entry.url output + } + 'skip$ if$ } @@ -2797,7 +2822,7 @@ FUNCTION {is.in.url} FUNCTION {format.doi} { "" - doi empty$ not show.doi and + doi empty$ not { "" 's := doi 't := #0 'numnames := @@ -2825,11 +2850,16 @@ FUNCTION {format.doi} t #2 global.max$ substring$ 't := } while$ - 's := - s empty$ not - { new.block s } - { "" } - if$ + } + 'skip$ + if$ +} + +FUNCTION {output.doi} +{ doi empty$ not show.doi and + show.english.translation entry.lang lang.zh = and not and + { new.block + format.doi output } 'skip$ if$ @@ -2861,6 +2891,30 @@ FUNCTION {format.note} if$ } +FUNCTION {output.translation} +{ show.english.translation entry.lang lang.zh = and + { translation empty$ not + { translation } + { "[English translation missing!]" } + if$ + " (in Chinese)" * output + write$ + format.doi duplicate$ empty$ not + { newline$ + write$ + } + 'pop$ + if$ + " \\" write$ + newline$ + "(" write$ + "" + before.all 'output.state := + } + 'skip$ + if$ +} + % \end{macrocode} % % The function empty.misc.check complains if all six fields are empty, and @@ -2894,6 +2948,7 @@ FUNCTION {empty.misc.check} % \begin{macrocode} FUNCTION {monograph} { output.bibitem + output.translation author empty$ not { format.authors } { editor empty$ not @@ -2932,8 +2987,8 @@ FUNCTION {monograph} % format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -2954,6 +3009,7 @@ FUNCTION {monograph} % \begin{macrocode} FUNCTION {incollection} { output.bibitem + output.translation format.authors output author format.key output %<*authoryear> @@ -2982,8 +3038,8 @@ FUNCTION {incollection} % format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -2996,6 +3052,7 @@ FUNCTION {incollection} % \begin{macrocode} FUNCTION {periodical} { output.bibitem + output.translation format.authors output author format.key output %<*authoryear> @@ -3017,8 +3074,8 @@ FUNCTION {periodical} format.date "year" output.check % format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -3040,6 +3097,7 @@ FUNCTION {periodical} % \begin{macrocode} FUNCTION {article} { output.bibitem + output.translation format.authors output author format.key output %<*authoryear> @@ -3066,8 +3124,8 @@ FUNCTION {article} format.journal.number "" output.after format.journal.pages "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -3081,6 +3139,7 @@ FUNCTION {article} % \begin{macrocode} FUNCTION {patent} { output.bibitem + output.translation format.authors output author format.key output %<*authoryear> @@ -3097,8 +3156,8 @@ FUNCTION {patent} new.block format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -3112,6 +3171,7 @@ FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := output.bibitem + output.translation format.authors output author format.key output %<*authoryear> @@ -3136,8 +3196,8 @@ FUNCTION {electronic} format.pages bbl.colon output.after format.editdate "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry diff --git a/gbt7714.sty b/gbt7714.sty index 92d2e5e..c7416db 100644 --- a/gbt7714.sty +++ b/gbt7714.sty @@ -63,6 +63,7 @@ \ProcessOptions\relax \RequirePackage[compress]{natbib} \RequirePackage{url} +\renewcommand\newblock{\space} \newcommand\bibstyle@super{\bibpunct{[}{]}{,}{s}{,}{\textsuperscript{,}}} \newcommand\bibstyle@numbers{\bibpunct{[}{]}{,}{n}{,}{,}} \newcommand\bibstyle@authoryear{\bibpunct{(}{)}{;}{a}{,}{,}} diff --git a/test/test.sh b/test/test.sh index 85ae05b..738dfc4 100644 --- a/test/test.sh +++ b/test/test.sh @@ -22,7 +22,7 @@ cp -f "$testfiledir/support/standard.bib" "$testdir"; if [ -z "$1" ]; then - succuss=true; + fails=0; echo "Running checks on"; for file in $testfiledir/*.dtx; do @@ -43,17 +43,16 @@ if [ -z "$1" ]; then if ! diff -q "$bblfile" "$stdfile" > /dev/null 2> /dev/null; then echo " differs"; cp -f "$bblfile" "$stdfile"; - succuss=false; + fails=$((fails+1)); fi done - if $succuss; then - echo ""; + echo ""; + if [ $fails == 0 ]; then echo "All checks passed"; echo ""; - else - exit 1; fi + exit $fails; else cp -f "$testfiledir/support/test.tex" "$testdir"; diff --git a/test/testbst/npr.bbl b/test/testbst/npr.bbl index 4d41cce..24d8b22 100644 --- a/test/testbst/npr.bbl +++ b/test/testbst/npr.bbl @@ -8,84 +8,97 @@ \def\doi#1{\href{https://doi.org/#1}{#1}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} -陈登原. +[English translation missing!] (in Chinese) \\ +(陈登原. \newblock 国史旧闻: 第 1 卷\allowbreak[M]. -\newblock 北京: 中华书局, 2000: 29. +\newblock 北京: 中华书局, 2000: 29.) \bibitem[哈里森·沃尔德伦(2012)]{hali2012jingji} -哈里森·沃尔德伦. +[English translation missing!] (in Chinese) \\ +(哈里森·沃尔德伦. \newblock 经济数学与金融数学\allowbreak[M]. \newblock 谢远涛, 译. -\newblock 北京: 中国人民大学出版社, 2012: 235. +\newblock 北京: 中国人民大学出版社, 2012: 235.) \bibitem[北京市政协民族和宗教委员会\ 等(2012)北京市政协民族和宗教委员会 and 北京联合大学民族与宗教研究所]{beijing2012lidai} -北京市政协民族和宗教委员会, +[English translation missing!] (in Chinese) \\ +(北京市政协民族和宗教委员会, 北京联合大学民族与宗教研究所. \newblock 历代王朝与民族宗教\allowbreak[M]. -\newblock 北京: 民族出版社, 2012: 112. +\newblock 北京: 民族出版社, 2012: 112.) \bibitem[全国信息与文献标准化技术委员会(2010{\natexlab{a}})]{quanguo2010doubai} -全国信息与文献标准化技术委员会. +[English translation missing!] (in Chinese) \\ +(全国信息与文献标准化技术委员会. \newblock 信息与文献\quad 都柏林核心元数据元素集: GB/T 25100—2010\allowbreak[S]. -\newblock 北京: 中国标准出版社, 2010{\natexlab{a}}: 2. +\newblock 北京: 中国标准出版社, 2010{\natexlab{a}}: 2.) \bibitem[徐光宪\ 等(2010)徐光宪 and 王祥云]{xuguangxian2010wuzhijiegou} -徐光宪, 王祥云. +[English translation missing!] (in Chinese) \\ +(徐光宪, 王祥云. \newblock 物质结构\allowbreak[M]. -\newblock 北京: 科学出版社, 2010. +\newblock 北京: 科学出版社, 2010.) \bibitem[顾炎武(1992)]{guyanwu1992changping} -顾炎武. +[English translation missing!] (in Chinese) \\ +(顾炎武. \newblock 昌平山水记:京东考古录\allowbreak[M]. -\newblock 北京: 北京古籍出版社, 1992. +\newblock 北京: 北京古籍出版社, 1992.) \bibitem[王夫之(1865(清同治四年))]{wangfuzhi1865songlun} -王夫之. +[English translation missing!] (in Chinese) \\ +(王夫之. \newblock 宋论\allowbreak[M]. \newblock 刻本. -\newblock 金陵: 湘乡曾国荃, 1865(清同治四年). +\newblock 金陵: 湘乡曾国荃, 1865(清同治四年).) \bibitem[牛志明\ 等(2012)牛志明, 斯温兰德, and 雷光春]{niuzhiming2012zonghe} -牛志明, 斯温兰德, 雷光春. +[English translation missing!] (in Chinese) \\ +(牛志明, 斯温兰德, 雷光春. \newblock 综合湿地管理国际研讨会论文集\allowbreak[C]. -\newblock 北京: 海洋出版社, 2012. +\newblock 北京: 海洋出版社, 2012.) \bibitem[中国第一历史档案馆\ 等(2001)中国第一历史档案馆 and 辽宁省档案馆]{zhongguo2001zhongguo} -中国第一历史档案馆, 辽宁省档案馆. +[English translation missing!] (in Chinese) \\ +(中国第一历史档案馆, 辽宁省档案馆. \newblock 中国明朝档案总汇\allowbreak[A]. -\newblock 桂林: 广西师范大学出版社, 2001. +\newblock 桂林: 广西师范大学出版社, 2001.) \bibitem[杨保军(2012)]{yangbaojun2012xinwen} -杨保军. +[English translation missing!] (in Chinese) \\ +(杨保军. \newblock 新闻道德论\allowbreak[D/OL]. \newblock 北京: 中国人民大学出版社, 2012\allowbreak[2012-11-01]. \newblock - \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20101104-BPO-889-1023&cult=CN}. + \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20101104-BPO-889-1023&cult=CN}.) \bibitem[赵学功(2001)]{zhaoxuegong2001dangdai} -赵学功. +[English translation missing!] (in Chinese) \\ +(赵学功. \newblock 当代美国外交\allowbreak[M/OL]. \newblock 北京: 社会科学文献出版社, 2001\allowbreak[2014-06-11]. -\newblock \url{http://www.cadal.zju.edu.cn/book/trySinglePage/33023884/1}. +\newblock \url{http://www.cadal.zju.edu.cn/book/trySinglePage/33023884/1}.) \bibitem[同济大学土木工程防灾国家重点实验室(2011)]{tongji2011wenchuan} -同济大学土木工程防灾国家重点实验室. +[English translation missing!] (in Chinese) \\ +(同济大学土木工程防灾国家重点实验室. \newblock 汶川地震灾害研究\allowbreak[M/OL]. \newblock 上海: 同济大学出版社, 2011: 5\allowbreak[2013-05-09]. \newblock - \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20120406-YPT-889-0010}. + \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20120406-YPT-889-0010}.) \bibitem[中国造纸学会(2003)]{zaozhi2003zhongguo} -中国造纸学会. +[English translation missing!] (in Chinese) \\ +(中国造纸学会. \newblock 中国造纸年鉴:2003\allowbreak[M/OL]. \newblock 北京: 中国轻工业出版社, 2003\allowbreak[2014-04-25]. -\newblock \url{http://www.cadal.zju.edu.cn/book/view/25010080}. +\newblock \url{http://www.cadal.zju.edu.cn/book/view/25010080}.) \bibitem[Peebles(2001)]{peebles2001probability} PEEBLES~P~Z, Jr. @@ -118,41 +131,46 @@ FAN~X, SOMMERS~C~H. \url{http://onlinelibrary.wiley.com/doi/10.1002/9781118422557.ch2/summary}. \bibitem[wan(2011)]{wangfuzhi2011zhouyi} -周易外传:卷 5\allowbreak[M]//\allowbreak +[English translation missing!] (in Chinese) \\ +(周易外传:卷 5\allowbreak[M]//\allowbreak 王夫之. \newblock 船山全书: 第 6 册. -\newblock 长沙: 岳麓书社, 2011: 1109. +\newblock 长沙: 岳麓书社, 2011: 1109.) \bibitem[程根伟(1999)]{chenggenwei1999hongshui} -程根伟. +[English translation missing!] (in Chinese) \\ +(程根伟. \newblock 1998 年长江洪水的成因与减灾对策\allowbreak[M]//\allowbreak 许厚泽, 赵其国. \newblock 长江流域洪涝灾害与科技对策. -\newblock 北京: 科学出版社, 1999: 32. +\newblock 北京: 科学出版社, 1999: 32.) \bibitem[陈晋镳\ 等(1980)陈晋镳, 张惠民, 朱士兴, 赵震, and 王振刚]{chenjinbiao1980jixian} -陈晋镳, 张惠民, 朱士兴, 等. +[English translation missing!] (in Chinese) \\ +(陈晋镳, 张惠民, 朱士兴, 等. \newblock 蓟县震旦亚界研究\allowbreak[M]//\allowbreak 中国地质科学院天津地质矿产研究所. \newblock 中国震旦亚界. -\newblock 天津: 天津科学技术出版社, 1980: 56. +\newblock 天津: 天津科学技术出版社, 1980: 56.) \bibitem[马克思(2013)]{makesi2013zhengzhi} -马克思. +[English translation missing!] (in Chinese) \\ +(马克思. \newblock 政治经济学批判\allowbreak[M]//\allowbreak 马克思, 恩格斯. \newblock 马克思恩格斯全集: 第 35 卷. -\newblock 北京: 人民出版社, 2013: 302. +\newblock 北京: 人民出版社, 2013: 302.) \bibitem[贾东琴\ 等(2011)贾东琴 and 柯平]{jiadongqin2011mianxiang} -贾东琴, 柯平. +[English translation missing!] (in Chinese) \\ +(贾东琴, 柯平. \newblock 面向数字素养的高校图书馆数字服务体系研究\allowbreak[C]//\allowbreak 中国图书馆学会. \newblock 中国图书馆学会年会论文集: 2011 年卷. -\newblock 北京: 国家图书馆出版社, 2011: 45. +\newblock 北京: 国家图书馆出版社, 2011: 45.) \bibitem[Weinstein et~al.(1974)Weinstein and Swertz]{weinstein1974pathogenic} WEINSTEIN~L, SWERTZ~M~N. @@ -173,16 +191,18 @@ ROBERSON~J~A, BURNESON~E~G. \newblock \url{http://lib.myilibrary.com/Open.aspx?id=291430}. \bibitem[中华医学会湖北分会(1984)]{zhonghua1984linchuang} -中华医学会湖北分会. +[English translation missing!] (in Chinese) \\ +(中华医学会湖北分会. \newblock 临床内科杂志\allowbreak[J]. \newblock 1984, 1\penalty0 (1)--. -\newblock 武汉: 中华医学会湖北分会, 1984--. +\newblock 武汉: 中华医学会湖北分会, 1984--.) \bibitem[中国图书馆学会(1957)]{zhongguo1957tushu} -中国图书馆学会. +[English translation missing!] (in Chinese) \\ +(中国图书馆学会. \newblock 图书馆学通讯\allowbreak[J]. \newblock 1957\penalty0 (1)--1990\penalty0 (4). -\newblock 北京: 北京图书馆, 1957--1990. +\newblock 北京: 北京图书馆, 1957--1990.) \bibitem[{American Association for the Advancement of Science}(1883)]{aaas1883science} @@ -194,32 +214,37 @@ ROBERSON~J~A, BURNESON~E~G. \bibitem[袁训来\ 等(2012)袁训来, 陈哲, 肖书海, et~al.]{yuanxunlai2012lantian} -袁训来, 陈哲, 肖书海, 等. -\newblock 科学通报, 2012, 55\penalty0 (34): 3219. +[English translation missing!] (in Chinese) \\ +(袁训来, 陈哲, 肖书海, 等. +\newblock 科学通报, 2012, 55\penalty0 (34): 3219.) \bibitem[余建斌(2013)]{yujianbin2013women} -余建斌. +[English translation missing!] (in Chinese) \\ +(余建斌. \newblock 人民日报, 2013-01-12\penalty0 (2)\allowbreak[2013-03-20]. \newblock - \url{http://paper.people.com.cn/rmrb/html/2013-01/12/nw.D110000renmrb_20130112_5-02.htm}. + \url{http://paper.people.com.cn/rmrb/html/2013-01/12/nw.D110000renmrb_20130112_5-02.htm}.) \bibitem[李炳穆(2008{\natexlab{a}})]{libingmu2008hanguo} -李炳穆. +[English translation missing!] (in Chinese) \\ +(李炳穆. \newblock 图书情报工作, 2008, 52\penalty0 (6): 6\allowbreak[2013-10-25]. -\newblock \url{http://www.docin.com/p-400265742.html}. +\newblock \url{http://www.docin.com/p-400265742.html}.) \bibitem[李幼平\ 等(2010)李幼平 and 王莉]{liyouping2010xunzheng} -李幼平, 王莉. +[English translation missing!] (in Chinese) \\ +(李幼平, 王莉. \newblock 中华移植杂志(电子版), 2010, 4\penalty0 (3): 225\allowbreak[2014-06-09]. -\newblock \url{http://www.cqvip.com/Read/Read.aspx?id=36658332}. +\newblock \url{http://www.cqvip.com/Read/Read.aspx?id=36658332}.) \bibitem[武丽丽\ 等(2008)武丽丽, 华一新, 张亚军, et~al.]{wulili2008beidou} -武丽丽, 华一新, 张亚军, 等. +[English translation missing!] (in Chinese) +DOI: \doi{10.3771/j.issn.1009-2307.2008.05.002} \\ +(武丽丽, 华一新, 张亚军, 等. \newblock 测绘科学, 2008, 33\penalty0 (5): 8\allowbreak[2009-10-25]. -\newblock \url{http://vip.calis.edu.cn/CSTJ/Sear.dll?OPAC_CreateDetail}. -\newblock DOI: \doi{10.3771/j.issn.1009-2307.2008.05.002}. +\newblock \url{http://vip.calis.edu.cn/CSTJ/Sear.dll?OPAC_CreateDetail}.) \bibitem[Kanamori(1998)]{kanamori1998shaking} KANAMORI~H. @@ -244,16 +269,18 @@ MYBURG~A~A, GRATTAPAGLIA~D, TUSKAN~G~A, et~al. \newblock DOI: \doi{10.1038/nature13308}. \bibitem[邓一刚(2006)]{dengyigang2006quanzhineng} -邓一刚. +[English translation missing!] (in Chinese) \\ +(邓一刚. \newblock 全智能节电器: 200610171314.3\allowbreak[P]. -\newblock 2006-12-13. +\newblock 2006-12-13.) \bibitem[西安电子科技大学(2002)]{xian2002guangzhebian} -西安电子科技大学. +[English translation missing!] (in Chinese) \\ +(西安电子科技大学. \newblock 光折变自适应光外差探测方法: 01128777.2\allowbreak[P/OL]. \newblock 2002-03-06\allowbreak[2002-05-28]. \newblock - \url{http://211.152.9.47/sipoasp/zljs/hyjs-yx-new.asp?recid=01128777.2&leixin=0}. + \url{http://211.152.9.47/sipoasp/zljs/hyjs-yx-new.asp?recid=01128777.2&leixin=0}.) \bibitem[Tachibana et~al.(2005)Tachibana, Shimizu, Kobayshi, and Nakamura]{tachibana2005electronic} @@ -264,20 +291,22 @@ TACHIBANA~R, SHIMIZU~S, KOBAYSHI~S, et~al. \newblock \url{http://www.google.co.in/patents/US6915001}. \bibitem[中国互联网络信息中心(2012)]{hulianwang2012di} -中国互联网络信息中心. +[English translation missing!] (in Chinese) \\ +(中国互联网络信息中心. \newblock 第 29 次中国互联网络发展现状统计报告\allowbreak[R/OL]. \newblock \allowbreak(2012-01-16)\allowbreak[2013-03-26]. \newblock - \url{http://www.cnnic.net.cn/hlwfzyj/hlwxzbg/201201/P020120709345264469680}. + \url{http://www.cnnic.net.cn/hlwfzyj/hlwxzbg/201201/P020120709345264469680}.) \bibitem[北京市人民政府办公厅(2005)]{beijing2005guanyu} -北京市人民政府办公厅. +[English translation missing!] (in Chinese) \\ +(北京市人民政府办公厅. \newblock 关于转发北京市企业投资项目核准暂行实施办法的通知: 京政办发[2005]37号\allowbreak[A/OL]. \newblock \allowbreak(2005-07-12)\allowbreak[2011-07-12]. -\newblock \url{http://china.findlaw.cn/fagui/p_1/39934.html}. +\newblock \url{http://china.findlaw.cn/fagui/p_1/39934.html}.) \bibitem[Bawden(2008)]{bawden2008origins} BAWDEN~D. @@ -299,13 +328,14 @@ HOPKINSON~A. \newblock \url{http://archive.ifla.org/IV/ifla64/138-161e.htm}. \bibitem[刘乃安(2000)]{liunaian2000shengwu} -刘乃安. +[English translation missing!] (in Chinese) +DOI: \doi{10.7666/d.y351065} \\ +(刘乃安. \newblock 生物质材料热解失重动力学及其分析方法研究\allowbreak[D/OL]. \newblock 安徽: 中国科学技术大学, 2000: 17\allowbreak[2014-08-29]. \newblock - \url{http://wenku.baidu.com/link?url=GJDJxb4lxBUXnIPmq1XoEGSIr1H8TMLbidW_LjlYu33tpt707u62rKliypU_FBGUmox7ovPNaVIVBALAMd5yfwuKUUOAGYuB7cuZ-BYEhXa}. -\newblock DOI: \doi{10.7666/d.y351065}. + \url{http://wenku.baidu.com/link?url=GJDJxb4lxBUXnIPmq1XoEGSIr1H8TMLbidW_LjlYu33tpt707u62rKliypU_FBGUmox7ovPNaVIVBALAMd5yfwuKUUOAGYuB7cuZ-BYEhXa}.) \bibitem[Deverell et~al.(2013)Deverell and Igler]{deverell2013companion} DEVERELL~W, IGLER~D. @@ -326,19 +356,22 @@ CHERNIK~B~E. \newblock Littleton, Colo.: Libraries Unlimited, Inc., 1982. \bibitem[尼葛洛庞帝(1996)]{nigeluopangdi1996shuzi} -尼葛洛庞帝. +[English translation missing!] (in Chinese) \\ +(尼葛洛庞帝. \newblock 数字化生存\allowbreak[M]. \newblock 胡泳, 范海燕, 译. -\newblock 海口: 海南出版社, 1996. +\newblock 海口: 海南出版社, 1996.) \bibitem[汪冰(1997)]{wangbing1997dianzi} -汪冰. +[English translation missing!] (in Chinese) \\ +(汪冰. \newblock 电子图书馆理论与实践研究\allowbreak[M]. -\newblock 北京: 北京图书馆出版社, 1997: 16. +\newblock 北京: 北京图书馆出版社, 1997: 16.) \bibitem[杨宗英(1996)]{yangzongying1996dianzi} -杨宗英. -\newblock 中国图书馆学报, 1996\penalty0 (2): 24. +[English translation missing!] (in Chinese) \\ +(杨宗英. +\newblock 中国图书馆学报, 1996\penalty0 (2): 24.) \bibitem[Dowler(1995)]{dowler1995research} DOWLER~L. @@ -357,105 +390,121 @@ MORRI~I. \newblock New York: Farrar, Straus and Giroux, 2010. \bibitem[罗杰斯(2011)]{luojiesi2011xifang} -罗杰斯. +[English translation missing!] (in Chinese) \\ +(罗杰斯. \newblock 西方文明史: 问题与源头\allowbreak[M]. \newblock 潘惠霞, 魏婧, 杨艳, 等译. -\newblock 大连: 东北财经大学出版社, 2011: 15. +\newblock 大连: 东北财经大学出版社, 2011: 15.) \bibitem[张忠智(1997)]{zhangzhongzhi1997keji} -张忠智. +[English translation missing!] (in Chinese) \\ +(张忠智. \newblock 科技书刊的总编(主编)的角色要求\allowbreak[C]//\allowbreak 中国科学技术期刊编辑学会. \newblock 中国科学技术期刊编辑学会建会十周年学术研讨会论文汇编. \newblock 北京: 中国科学技术期刊编辑学会学术委员会, 1997: - 33. + 33.) \bibitem[中国社会科学院语言研究所词典编辑室(1996)]{zhongguo1996xiandai} -中国社会科学院语言研究所词典编辑室. +[English translation missing!] (in Chinese) \\ +(中国社会科学院语言研究所词典编辑室. \newblock 现代汉语词典\allowbreak[M]. \newblock 修订本. -\newblock 北京: 商务印书馆, 1996. +\newblock 北京: 商务印书馆, 1996.) \bibitem[刘彻东(1998)]{liuchedong1998zhongguo} -刘彻东. -\newblock 中国出版, 1998\penalty0 (5): 38. +[English translation missing!] (in Chinese) \\ +(刘彻东. +\newblock 中国出版, 1998\penalty0 (5): 38.) \bibitem[裴丽生(1981)]{peilisheng1981jianghua} -裴丽生. +[English translation missing!] (in Chinese) \\ +(裴丽生. \newblock 在中国科协学术期刊编辑工作经验交流会上的讲话\allowbreak[C]//\allowbreak 中国科学技术协会. \newblock 中国科协学术期刊编辑工作经验交流会资料选. -\newblock 北京: 中国科学技术协会学会工作部, 1981: 2. +\newblock 北京: 中国科学技术协会学会工作部, 1981: 2.) \bibitem[张伯伟(2002)]{zhangbowei2002quantang} -张伯伟. +[English translation missing!] (in Chinese) \\ +(张伯伟. \newblock 全唐五代诗格会考\allowbreak[M]. -\newblock 南京: 江苏古籍出版社, 2002: 288. +\newblock 南京: 江苏古籍出版社, 2002: 288.) \bibitem[200(2009{\natexlab{a}})]{2009shifutangriji} -师伏堂日记: 第 4 册\allowbreak[M]. -\newblock 北京: 北京图书馆出版社, 2009{\natexlab{a}}: 155. +[English translation missing!] (in Chinese) \\ +(师伏堂日记: 第 4 册\allowbreak[M]. +\newblock 北京: 北京图书馆出版社, 2009{\natexlab{a}}: 155.) \bibitem[胡承正\ 等(2010)胡承正, 周详, and 缪灵]{huchengzheng2010lilun} -胡承正, 周详, 缪灵. +[English translation missing!] (in Chinese) \\ +(胡承正, 周详, 缪灵. \newblock 理论物理概论: 上\allowbreak[M]. -\newblock 武汉: 武汉大学出版社, 2010: 112. +\newblock 武汉: 武汉大学出版社, 2010: 112.) \bibitem[美国妇产科医师学会(2010)]{meiguo2010xinshenger} -美国妇产科医师学会. +[English translation missing!] (in Chinese) \\ +(美国妇产科医师学会. \newblock 新生儿脑病和脑性瘫痪发病机制与病理生理\allowbreak[M]. \newblock 段涛, 杨慧霞, 译. -\newblock 北京: 人民卫生出版社, 2010: 38. +\newblock 北京: 人民卫生出版社, 2010: 38.) \bibitem[196(1962)]{1962kangxizidian} -康熙字典: 巳集上: 水部\allowbreak[M]. +[English translation missing!] (in Chinese) \\ +(康熙字典: 巳集上: 水部\allowbreak[M]. \newblock 同文书局影印本. -\newblock 北京: 中华书局, 1962: 50. +\newblock 北京: 中华书局, 1962: 50.) \bibitem[汪昂(1881)]{wangang1881zengding} -汪昂. +[English translation missing!] (in Chinese) \\ +(汪昂. \newblock 增订本草备要: 四卷\allowbreak[M]. \newblock 刻本. -\newblock 京都: 老二酉堂, 1881. +\newblock 京都: 老二酉堂, 1881.) \bibitem[蒋有绪\ 等(1998)蒋有绪, 郭泉水, 马娟, et~al.]{jiangyouxu1998zhongguo} -蒋有绪, 郭泉水, 马娟, 等. +[English translation missing!] (in Chinese) \\ +(蒋有绪, 郭泉水, 马娟, 等. \newblock 中国森林群落分类及其群落特征\allowbreak[M]. -\newblock 北京: 科学出版社, 1998. +\newblock 北京: 科学出版社, 1998.) \bibitem[中国企业投资协会\ 等(2013)中国企业投资协会, 台湾并购与私募股权协会, and 汇盈国际投资集团]{zhongguo2013touzi} -中国企业投资协会, 台湾并购与私募股权协会, +[English translation missing!] (in Chinese) \\ +(中国企业投资协会, 台湾并购与私募股权协会, 汇盈国际投资集团. \newblock 投资台湾: 大陆企业赴台投资指南\allowbreak[M]. -\newblock 北京: 九州出版社, 2013. +\newblock 北京: 九州出版社, 2013.) \bibitem[罗斯基(2009)]{luosiji2009zhanqian} -罗斯基. +[English translation missing!] (in Chinese) \\ +(罗斯基. \newblock 战前中国经济的增长\allowbreak[M]. \newblock 唐巧天, 毛立坤, 姜修宪, 译. -\newblock 杭州: 浙江大学出版社, 2009. +\newblock 杭州: 浙江大学出版社, 2009.) \bibitem[库恩(2012)]{kuen2012kexue} -库恩. +[English translation missing!] (in Chinese) \\ +(库恩. \newblock 科学革命的结构: 第 4 版\allowbreak[M]. \newblock 金吾伦, 胡新和, 译. 2 版. -\newblock 北京: 北京大学出版社, 2012. +\newblock 北京: 北京大学出版社, 2012.) \bibitem[侯文顺(2010)]{houwenshun2010gaofenzi} -侯文顺. +[English translation missing!] (in Chinese) \\ +(侯文顺. \newblock 高分子物理: 高分子材料分析、选择与改性\allowbreak[M/OL]. \newblock 北京: 化学工业出版社, 2010: 119\allowbreak[2012-11-27]. \newblock - \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20111114-HGS-889-0228}. + \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20111114-HGS-889-0228}.) \bibitem[Crawfprd et~al.(1995)Crawfprd and Gorman]{crawfprd1995future} CRAWFPRD~W, GORMAN~M. @@ -493,29 +542,33 @@ PRAETZELLIS~A. \newblock \url{http://lib.myilibrary.com/Open.aspx?id=293666}. \bibitem[中国职工教育研究会(1985)]{zhigong1985zhigong} -中国职工教育研究会. +[English translation missing!] (in Chinese) \\ +(中国职工教育研究会. \newblock 职工教育研究论文集\allowbreak[G]. -\newblock 北京: 人民教育出版社, 1985. +\newblock 北京: 人民教育出版社, 1985.) \bibitem[中国社会科学院台湾史研究中心(2012)]{shekeyuan2012taiwan} -中国社会科学院台湾史研究中心. +[English translation missing!] (in Chinese) \\ +(中国社会科学院台湾史研究中心. \newblock 台湾光复六十五周年暨抗战史实学术研讨会论文集\allowbreak[C]. -\newblock 北京: 九州出版社, 2012. +\newblock 北京: 九州出版社, 2012.) \bibitem[雷光春(2012)]{leiguangchun2012zonghe} -雷光春. +[English translation missing!] (in Chinese) \\ +(雷光春. \newblock 综合湿地管理:综合湿地管理国际研讨会论文集\allowbreak[C]. -\newblock 北京: 海洋出版社, 2012. +\newblock 北京: 海洋出版社, 2012.) \bibitem[陈志勇(2011)]{chenzhiyong2011zhongguo} -陈志勇. +[English translation missing!] (in Chinese) \\ +(陈志勇. \newblock 中国财税文化价值研究: “中国财税文化国际学术研讨会”论文集\allowbreak[C/OL]. \newblock 北京: 经济科学出版社, 2011\allowbreak[2013-10-14]. \newblock - \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.201106228-BPO-889-0135&cult=CN}. + \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.201106228-BPO-889-0135&cult=CN}.) \bibitem[Babu et~al.(2014)Babu, Nagar, Deep, et~al.]{babu2014proceedings} BABU~B~V, NAGAR~A~K, DEEP~K, et~al. @@ -524,19 +577,21 @@ BABU~B~V, NAGAR~A~K, DEEP~K, et~al. \newblock New Delhi: Springer, 2014. \bibitem[中华人民共和国国务院新闻办公室(2013)]{zhonghua2013guofang} -中华人民共和国国务院新闻办公室. +[English translation missing!] (in Chinese) \\ +(中华人民共和国国务院新闻办公室. \newblock 国防白皮书: 中国武装力量的多样化运用\allowbreak[R/OL]. \newblock \allowbreak(2013-04-16)\allowbreak[2014-06-11]. -\newblock \url{http://www.mod.gov.cn/affair/2013-04/16/content_4442839.htm}. +\newblock \url{http://www.mod.gov.cn/affair/2013-04/16/content_4442839.htm}.) \bibitem[汤万金\ 等(2013)汤万金, 杨跃翔, 刘文, et~al.]{tangwanjin2013renti} -汤万金, 杨跃翔, 刘文, 等. +[English translation missing!] (in Chinese) \\ +(汤万金, 杨跃翔, 刘文, 等. \newblock 人体安全重要技术标准研制最终报告: 7178999X-2006BAK04A10/10.2013\allowbreak[R/OL]. \newblock \allowbreak(2013-09-30)\allowbreak[2014-06-24]. -\newblock \url{http://www.nstrs.org.cn/xiangxiBG.aspx?id=41707}. +\newblock \url{http://www.nstrs.org.cn/xiangxiBG.aspx?id=41707}.) \bibitem[Calkin et~al.(2011)Calkin, Ager, and Thompson]{calkin2011comparative} CALKIN~D, AGER~A, THOMPSON~M. @@ -559,20 +614,22 @@ CALKIN~D, AGER~A, THOMPSON~M. \newblock Geneva: WHO, 1970. \bibitem[马欢(2011)]{mahuan2011renlei} -马欢. +[English translation missing!] (in Chinese) \\ +(马欢. \newblock 人类活动影响下海河流域典型区水循环变化分析\allowbreak[D/OL]. \newblock 北京: 清华大学, 2011: 27\allowbreak[2013-10-14]. \newblock - \url{http://www.cnki.net/kcms/detail/detail.aspx?dbcode=CDFD&QueryID=.0&CurRec=11&dbname=CDFDLAST2013&filename=1012035905.nh&uid=WEEvREcwSlJHSldTTGJhYIJRaEhGUXFQWVB6SGZXeisxdmVhV3ZyZkpoUnozeDE1b0paM0NmMjZiQ3p4TUdmcw=}. + \url{http://www.cnki.net/kcms/detail/detail.aspx?dbcode=CDFD&QueryID=.0&CurRec=11&dbname=CDFDLAST2013&filename=1012035905.nh&uid=WEEvREcwSlJHSldTTGJhYIJRaEhGUXFQWVB6SGZXeisxdmVhV3ZyZkpoUnozeDE1b0paM0NmMjZiQ3p4TUdmcw=}.) \bibitem[吴云芳(2003)]{wuyunfang2003mianxiang} -吴云芳. +[English translation missing!] (in Chinese) \\ +(吴云芳. \newblock 面向中文信息处理的现代汉语并列结构研究\allowbreak[D/OL]. \newblock 北京: 北京大学, 2003\allowbreak[2013-10-14]. \newblock - \url{http://thesis.lib.pku.edu.cn/dlib/List.asp?lang=gb&type=Reader&DocGroupID=4&DocID=6328}. + \url{http://thesis.lib.pku.edu.cn/dlib/List.asp?lang=gb&type=Reader&DocGroupID=4&DocID=6328}.) \bibitem[Calms(1965)]{calms1965infrared} CALMS~R~B. @@ -580,18 +637,20 @@ CALMS~R~B. \newblock Berkeley: Univ. of California, 1965. \bibitem[张凯军(2012)]{zhangkaijun2012guidao} -张凯军. +[English translation missing!] (in Chinese) \\ +(张凯军. \newblock 轨道火车及高速轨道火车紧急安全制动辅助装置: 201220158825.2\allowbreak[P]. -\newblock 2012-04-05. +\newblock 2012-04-05.) \bibitem[河北绿洲生态环境科技有限公司(2001)]{hebei2001yizhong} -河北绿洲生态环境科技有限公司. +[English translation missing!] (in Chinese) \\ +(河北绿洲生态环境科技有限公司. \newblock 一种荒漠化地区生态植被综合培育种植方法: 01129210.5\allowbreak[P/OL]. \newblock 2001-10-24\allowbreak[2002-05-28]. \newblock - \url{http://211.152.9.47/sipoasp/zlijs/hyjs-yx-new.asp?recid=01129210.5&leixin=0}. + \url{http://211.152.9.47/sipoasp/zlijs/hyjs-yx-new.asp?recid=01129210.5&leixin=0}.) \bibitem[Koseki et~al.(2002)Koseki, Momose, Kawahito, et~al.]{koseki2002compiler} @@ -602,22 +661,26 @@ KOSEKI~A, MOMOSE~H, KAWAHITO~M, et~al. \url{http://FF&p=1&u=netahtml/PTO/search-bool.html&r=5&f=G&1=50&col=AND&d=PG01&sl=IBM.AS.&OS=AN/IBM/RS=AN/IBM}. \bibitem[全国信息与文献标准化技术委员会(2010{\natexlab{b}})]{quanguo2010wenxian} -全国信息与文献标准化技术委员会. +[English translation missing!] (in Chinese) \\ +(全国信息与文献标准化技术委员会. \newblock 文献著录: 第 4 部分\quad 非书资料: GB/T 3792.7—2009\allowbreak[S]. -\newblock 北京: 中国标准出版社, 2010{\natexlab{b}}: 3. +\newblock 北京: 中国标准出版社, 2010{\natexlab{b}}: 3.) \bibitem[全国广播电视标准化技术委员会(2007)]{quanguo2007guangbo} -全国广播电视标准化技术委员会. +[English translation missing!] (in Chinese) \\ +(全国广播电视标准化技术委员会. \newblock 广播电视音像资料编目规范: 第 2 部分\quad 广播资料: GY/T 202.2—2007\allowbreak[S]. -\newblock 北京: 国家广播电影电视总局广播电视规划院, 2007: 1. +\newblock 北京: 国家广播电影电视总局广播电视规划院, 2007: + 1.) \bibitem[国家环境保护局科技标准司(1996)]{guojia1996turang} -国家环境保护局科技标准司. +[English translation missing!] (in Chinese) \\ +(国家环境保护局科技标准司. \newblock 土壤环境质量标准: GB 15616—1995\allowbreak[S/OL]. \newblock 北京: 中国标准出版社, 1996: 2\allowbreak[2013-10-14]. -\newblock \url{http://wenku.baidu.com/view/b950a34b767f5acfa1c7cd49.html}. +\newblock \url{http://wenku.baidu.com/view/b950a34b767f5acfa1c7cd49.html}.) \bibitem[200(2009{\natexlab{b}})]{2009information} Information and documentation---the {Dublin} cord metadata element set: ISO @@ -627,47 +690,53 @@ Information and documentation---the {Dublin} cord metadata element set: ISO \url{http://www.iso.org/iso/home/store/catalogue_tc/catalogue_detail.htm?csnumber=52142}. \bibitem[198(1988)]{1988qizhi} -卷 39 乞致仕第一\allowbreak[M]//\allowbreak +[English translation missing!] (in Chinese) \\ +(卷 39 乞致仕第一\allowbreak[M]//\allowbreak 苏魏公文集: 下册. -\newblock 北京: 中华书局, 1988: 590. +\newblock 北京: 中华书局, 1988: 590.) \bibitem[白书农(1998)]{baishunong1998zhiwu} -白书农. +[English translation missing!] (in Chinese) \\ +(白书农. \newblock 植物开花研究\allowbreak[M]//\allowbreak 李承森. \newblock 植物科学进展. -\newblock 北京: 高等教育出版社, 1998: 146. +\newblock 北京: 高等教育出版社, 1998: 146.) \bibitem[汪学军(2002)]{wangxuejun2002zhongguo} -汪学军. +[English translation missing!] (in Chinese) \\ +(汪学军. \newblock 中国农业转基因生物研究进展与安全管理\allowbreak[C]//\allowbreak 国家环境保护总局生物安全管理办公室. \newblock 中国国家生物安全框架实施国际合作项目研讨会论文集. -\newblock 北京: 中国环境科学出版社, 2002: 22. +\newblock 北京: 中国环境科学出版社, 2002: 22.) \bibitem[国家标准局信息分类编码研究所(1988)]{guojia1988shijie} -国家标准局信息分类编码研究所. +[English translation missing!] (in Chinese) \\ +(国家标准局信息分类编码研究所. \newblock 世界各国和地区名称代码: GB/T 2659—1986\allowbreak[S]//\allowbreak 全国文献工作标准化委员会. \newblock 文献工作国家标准汇编: 3. -\newblock 北京: 中国标准出版社, 1988: 59. +\newblock 北京: 中国标准出版社, 1988: 59.) \bibitem[197(1977)]{1977songshi} -宋史卷三: 本纪第三\allowbreak[M]//\allowbreak +[English translation missing!] (in Chinese) \\ +(宋史卷三: 本纪第三\allowbreak[M]//\allowbreak 宋史: 第 1 册. -\newblock 北京: 中华书局, 1977: 49. +\newblock 北京: 中华书局, 1977: 49.) \bibitem[楼梦鳞\ 等(2011)楼梦鳞 and 杨燕]{loumenglin2011wenchuan} -楼梦鳞, 杨燕. +[English translation missing!] (in Chinese) \\ +(楼梦鳞, 杨燕. \newblock 汶川地震基岩地震动特征分析\allowbreak[M/OL]//\allowbreak 同济大学土木工程防灾国家重点实验室. \newblock 汶川地震震害研究. \newblock 上海: 同济大学出版社, 2011: 011\allowbreak[2013-05-09]. \newblock - \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20120406-YPT-889-0010}. + \url{http://apabi.lib.pku.edu.cn/usp/pku/pub.mvc?pid=book.detail&metaid=m.20120406-YPT-889-0010}.) \bibitem[Buseck et~al.(c1980)Buseck, Nord, and Veblen]{buseckc1980subsolidus} BUSECK~P~R, NORD~G~L, Jr, VEBLEN~D~R. @@ -683,23 +752,28 @@ Symposium on Applications of Holography in Mechanics, August 23-25, 1971, \newblock New York: ASME, c1971: 17. \bibitem[杨洪升(2013)]{yanghongsheng2013siku} -杨洪升. -\newblock 文献, 2013\penalty0 (1): 56. +[English translation missing!] (in Chinese) \\ +(杨洪升. +\newblock 文献, 2013\penalty0 (1): 56.) \bibitem[李炳穆(2008{\natexlab{b}})]{libingmu2008hanguo2} -李炳穆. -\newblock 图书情报工作, 2008, 52\penalty0 (6): 6. +[English translation missing!] (in Chinese) \\ +(李炳穆. +\newblock 图书情报工作, 2008, 52\penalty0 (6): 6.) \bibitem[于潇\ 等(2012)于潇, 刘义, 柴跃廷, et~al.]{yuxiao2012hulianwang} -于潇, 刘义, 柴跃廷, 等. -\newblock 清华大学学报(自然科学版), 2012, 52\penalty0 (11): 1518. +[English translation missing!] (in Chinese) \\ +(于潇, 刘义, 柴跃廷, 等. +\newblock 清华大学学报(自然科学版), 2012, 52\penalty0 (11): 1518.) \bibitem[陈建军(20l0)]{chenjianjun20l0cong} -陈建军. +[English translation missing!] (in Chinese) +DOI: \doi{10.3969/j.issn.1672-5603.2010.10.038} \\ +(陈建军. \newblock 国图资源导刊, 20l0, 7\penalty0 (10): 93\allowbreak[2013-03-20]. -\newblock \url{http://d.g.wanfangdata.com.cn/Periodical_hunandz201010038.aspx}. -\newblock DOI: \doi{10.3969/j.issn.1672-5603.2010.10.038}. +\newblock + \url{http://d.g.wanfangdata.com.cn/Periodical_hunandz201010038.aspx}.) \bibitem[Des~Marais et~al.(1992)Des~Marais, Strauss, Summons, et~al.]{desmarais1992carbon} @@ -731,37 +805,43 @@ PARK~J~R, TOSAKA~Y. \url{http://www.tandfonline.com/doi/pdf/10.1080/01639374.2010.508711}. \bibitem[丁文详(2000)]{dingwenxiang2000shuzi} -丁文详. -\newblock 中国青年报, 2000-11-20\penalty0 (15). +[English translation missing!] (in Chinese) \\ +(丁文详. +\newblock 中国青年报, 2000-11-20\penalty0 (15).) \bibitem[张田勤(2000)]{zhangtianqin2000zuifan} -张田勤. -\newblock 大众科技报, 2000-11-12\penalty0 (7). +[English translation missing!] (in Chinese) \\ +(张田勤. +\newblock 大众科技报, 2000-11-12\penalty0 (7).) \bibitem[傅刚\ 等(2000)傅刚, 赵承, and 李佳路]{fugang2000dafeng} -傅刚, 赵承, 李佳路. +[English translation missing!] (in Chinese) \\ +(傅刚, 赵承, 李佳路. \newblock 北京青年报, 2000-01-12\allowbreak[2005-09-28]. \newblock - \url{http://www.bjyouth.com.cn/Bqb/20000412/GB/4216%5ED0412B1401.htm}. + \url{http://www.bjyouth.com.cn/Bqb/20000412/GB/4216%5ED0412B1401.htm}.) \bibitem[刘裕国\ 等(2013)刘裕国, 杨柳, 张洋, et~al.]{liuyuguo2013wumai} -刘裕国, 杨柳, 张洋, 等. +[English translation missing!] (in Chinese) \\ +(刘裕国, 杨柳, 张洋, 等. \newblock 人民日报, 2013-01-12\allowbreak[2013-11-06]. \newblock - \url{http://paper.people.com.cn/rmrb/html/2013-01/12/nw.D110000renmrb_20130112_2-04.htm}. + \url{http://paper.people.com.cn/rmrb/html/2013-01/12/nw.D110000renmrb_20130112_2-04.htm}.) \bibitem[萧钰(2001)]{xiaoyu2001chuban} -萧钰. +[English translation missing!] (in Chinese) \\ +(萧钰. \newblock 出版业信息化迈入快车道\allowbreak[EB/OL]. \newblock \allowbreak(2001-12-19)\allowbreak[2002-04-15]. -\newblock \url{http://www.creader.com/news/20011219/200112190019.html}. +\newblock \url{http://www.creader.com/news/20011219/200112190019.html}.) \bibitem[李强(2012)]{liqiang2012huajie} -李强. +[English translation missing!] (in Chinese) \\ +(李强. \newblock 化解医患矛盾需釜底抽薪\allowbreak[EB/OL]. \newblock \allowbreak(2012-05-03)\allowbreak[2013-03-25]. -\newblock \url{http://wenku.baidu.com/view/47e4f206b52acfc789ebc92f.html}. +\newblock \url{http://wenku.baidu.com/view/47e4f206b52acfc789ebc92f.html}.) \bibitem[{{Commonwealth Libraries Bureau of Library Development. Pennsylvania Department of Education Office}([2013])}]{clbld2013pennsylvania} @@ -778,13 +858,17 @@ Dublin core metadata element set: version 1.1\allowbreak[EB/OL]. \bibitem[魏志勇\ 等(2006)魏志勇, 臧黎慧, 范我, et~al.]{weizhiyong2006} -魏志勇, 臧黎慧, 范我, 等. -\newblock 核技术, 2006, 29\penalty0 (9): 713. +WEI Zhiyong, ZANG Lihui, FAN Wo, et al. Nuclear Techniques, 2006, 29(9): 713. + (in Chinese) \\ +(魏志勇, 臧黎慧, 范我, 等. +\newblock 核技术, 2006, 29\penalty0 (9): 713.) \bibitem[陈东风\ 等(2005)陈东风, 勾成, 叶春堂, et~al.]{chendongfeng2005} -陈东风, 勾成, 叶春堂, 等. -\newblock 核技术, 2005, 28\penalty0 (2): 127. +CHEN Dongfeng, GOU Cheng, YE Chuntang, et al. Nuclear Techniques, 2005, 28(2): + 127. (in Chinese) \\ +(陈东风, 勾成, 叶春堂, 等. +\newblock 核技术, 2005, 28\penalty0 (2): 127.) \bibitem[Oed(2004)]{oed2004} OED~A. @@ -808,13 +892,17 @@ Philips data handbook for electron tubes t9\allowbreak[M]. \bibitem[迟少鹏\ 等(2003)迟少鹏, 夏小米, 周莉, et~al.]{chishaopeng2003} -迟少鹏, 夏小米, 周莉, 等. -\newblock 高能物理与核物理, 2003, 27\penalty0 (3): 257. +CHI Shaopeng, XIA Xiaomi, ZHOU Li, et al. High Energy Physics and Nuclear + Physics. 2003, 27(3): 257. (in Chinese) \\ +(迟少鹏, 夏小米, 周莉, 等. +\newblock 高能物理与核物理, 2003, 27\penalty0 (3): 257.) \bibitem[汪晓莲\ 等(2003)汪晓莲, 许咨宗, 侯云珍, et~al.]{wangxiaolian2003} -汪晓莲, 许咨宗, 侯云珍, 等. -\newblock 高能物理与核物理, 2003, 27\penalty0 (3): 257. +WANG Xiaolian, XU Zizong, HOU Yunzhen, et al. High Energy Physics and Nuclear + Physics. 1997, 21(9): 787. (in Chinese) \\ +(汪晓莲, 许咨宗, 侯云珍, 等. +\newblock 高能物理与核物理, 2003, 27\penalty0 (3): 257.) \bibitem[Sackett et~al.(1993)Sackett, Ieki, A, et~al.]{sackett1993} SACKETT~D, IEKI~K, A~G, et~al. @@ -825,12 +913,15 @@ SACKETT~D, IEKI~K, A~G, et~al. \newblock Nucl Instr Meth A, 1997, 401\penalty0 (2-3): 329. \bibitem[薛梦驰(2009)]{xuemengchi2009} -薛梦驰. -\newblock 电信科学, 2009, 7: 57. +XUE Mengchi. Telecommunication Science. 2009, 7: 57. (in Chinese) \\ +(薛梦驰. +\newblock 电信科学, 2009, 7: 57.) \bibitem[唐军杰\ 等(2013)唐军杰, 王拓, 张强, et~al.]{tangjunjie2013} -唐军杰, 王拓, 张强, 等. -\newblock 发光学报, 2013, 34\penalty0 (1): 78. +TANG Junjie, WANG Tuo, ZHANG Qiang, et al. Chin J Lumi, 2013, 34(1): 78. (in + Chinese) \\ +(唐军杰, 王拓, 张强, 等. +\newblock 发光学报, 2013, 34\penalty0 (1): 78.) \bibitem[WU et~al.(2013)WU, TANG, SUN, et~al.]{wuchong2013} WU~C, TANG~B, SUN~Z, et~al. diff --git a/test/testbst/npr.dtx b/test/testbst/npr.dtx index 48f14f1..22b96ef 100644 --- a/test/testbst/npr.dtx +++ b/test/testbst/npr.dtx @@ -33,7 +33,7 @@ volume = {29}, number = {9}, pages = {713}, - translation = {WEI Zhiyong, ZANG Lihui, FAN Wo, \textit{et al}. Nuclear Techniques, 2006, \textbf{29}(9): 713.} + translation = {WEI Zhiyong, ZANG Lihui, FAN Wo, et al. Nuclear Techniques, 2006, 29(9): 713.}, } @article{chendongfeng2005, @@ -43,7 +43,7 @@ volume = {28}, number = {2}, pages = {127}, - translation = {CHEN Dongfeng, GOU Cheng, YE Chuntang, \textit{et al}. Nuclear Techniques, 2005, \textbf{28}(2): 127.} + translation = {CHEN Dongfeng, GOU Cheng, YE Chuntang, et al. Nuclear Techniques, 2005, 28(2): 127.}, } @article{oed2004, @@ -89,7 +89,7 @@ volume = {27}, number = {3}, pages = {257}, - translation = {CHI Shaopeng, XIA Xiaomi, ZHOU Li, et al. High Energy Physics and Nuclear Physics. 2003, 27(3): 257.} + translation = {CHI Shaopeng, XIA Xiaomi, ZHOU Li, et al. High Energy Physics and Nuclear Physics. 2003, 27(3): 257.}, } @article{wangxiaolian2003, @@ -99,7 +99,7 @@ volume = {27}, number = {3}, pages = {257}, - translation = {WANG Xiaolian, XU Zizong, HOU Yunzhen, et al. High Energy Physics and Nuclear Physics. 1997, 21(9): 787.} + translation = {WANG Xiaolian, XU Zizong, HOU Yunzhen, et al. High Energy Physics and Nuclear Physics. 1997, 21(9): 787.}, } @article{sackett1993, @@ -126,7 +126,7 @@ year = {2009}, volume = {7}, pages = {57}, - translation = {XUE Mengchi. Telecommunication Science. 2009, 7: 57.} + translation = {XUE Mengchi. Telecommunication Science. 2009, 7: 57.}, } @article{tangjunjie2013, @@ -136,7 +136,7 @@ volume = {34}, number = {1}, pages = {78}, - translation = {TANG Junjie, WANG Tuo, ZHANG Qiang, et al. Chin J Lumi, 2013, 34(1): 78.} + translation = {TANG Junjie, WANG Tuo, ZHANG Qiang, et al. Chin J Lumi, 2013, 34(1): 78.}, } @article{wuchong2013, diff --git a/test/testbst/support/test.tex b/test/testbst/support/test.tex index ee5e06d..8d65876 100644 --- a/test/testbst/support/test.tex +++ b/test/testbst/support/test.tex @@ -1,6 +1,7 @@ \documentclass{ctexart} \usepackage{gbt7714} +\usepackage{hyperref} \begin{document} diff --git a/variants/2005/gbt7714-2005-author-year.bst b/variants/2005/gbt7714-2005-author-year.bst index dff16e6..f380077 100644 --- a/variants/2005/gbt7714-2005-author-year.bst +++ b/variants/2005/gbt7714-2005-author-year.bst @@ -40,6 +40,7 @@ INTEGERS { show.url show.doi show.note + show.english.translation lang.zh.order lang.ja.order lang.en.order @@ -68,6 +69,7 @@ FUNCTION {load.config} #1 'show.url := #0 'show.doi := #0 'show.note := + #0 'show.english.translation := #1 'lang.zh.order := #2 'lang.ja.order := #3 'lang.en.order := @@ -99,6 +101,7 @@ ENTRY series title translator + translation url urldate volume @@ -280,6 +283,12 @@ FUNCTION {output.check} FUNCTION {fin.entry} { add.period$ write$ + show.english.translation entry.lang lang.zh = and + { ")" + write$ + } + 'skip$ + if$ newline$ } @@ -1257,9 +1266,15 @@ FUNCTION {check.url} } FUNCTION {format.url} +{ entry.url +} + +FUNCTION {output.url} { entry.url empty$ not - { new.block entry.url } - { "" } + { new.block + entry.url output + } + 'skip$ if$ } @@ -1293,7 +1308,7 @@ FUNCTION {is.in.url} FUNCTION {format.doi} { "" - doi empty$ not show.doi and + doi empty$ not { "" 's := doi 't := #0 'numnames := @@ -1321,11 +1336,16 @@ FUNCTION {format.doi} t #2 global.max$ substring$ 't := } while$ - 's := - s empty$ not - { new.block s } - { "" } - if$ + } + 'skip$ + if$ +} + +FUNCTION {output.doi} +{ doi empty$ not show.doi and + show.english.translation entry.lang lang.zh = and not and + { new.block + format.doi output } 'skip$ if$ @@ -1357,6 +1377,30 @@ FUNCTION {format.note} if$ } +FUNCTION {output.translation} +{ show.english.translation entry.lang lang.zh = and + { translation empty$ not + { translation } + { "[English translation missing!]" } + if$ + " (in Chinese)" * output + write$ + format.doi duplicate$ empty$ not + { newline$ + write$ + } + 'pop$ + if$ + " \\" write$ + newline$ + "(" write$ + "" + before.all 'output.state := + } + 'skip$ + if$ +} + FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ @@ -1369,6 +1413,7 @@ FUNCTION {empty.misc.check} FUNCTION {monograph} { output.bibitem + output.translation author empty$ not { format.authors } { editor empty$ not @@ -1397,8 +1442,8 @@ FUNCTION {monograph} format.address.publisher output format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1406,6 +1451,7 @@ FUNCTION {monograph} FUNCTION {incollection} { output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1429,8 +1475,8 @@ FUNCTION {incollection} format.address.publisher output format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1438,6 +1484,7 @@ FUNCTION {incollection} FUNCTION {periodical} { output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1454,8 +1501,8 @@ FUNCTION {periodical} new.block format.address.publisher output format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1463,6 +1510,7 @@ FUNCTION {periodical} FUNCTION {article} { output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1484,8 +1532,8 @@ FUNCTION {article} format.journal.number "" output.after format.journal.pages "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1493,6 +1541,7 @@ FUNCTION {article} FUNCTION {patent} { output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1507,8 +1556,8 @@ FUNCTION {patent} new.block format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1518,6 +1567,7 @@ FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1534,8 +1584,8 @@ FUNCTION {electronic} format.pages bbl.colon output.after format.editdate "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry diff --git a/variants/2005/gbt7714-2005-numerical.bst b/variants/2005/gbt7714-2005-numerical.bst index 5010608..c926893 100644 --- a/variants/2005/gbt7714-2005-numerical.bst +++ b/variants/2005/gbt7714-2005-numerical.bst @@ -40,6 +40,7 @@ INTEGERS { show.url show.doi show.note + show.english.translation } FUNCTION {load.config} @@ -62,6 +63,7 @@ FUNCTION {load.config} #1 'show.url := #0 'show.doi := #0 'show.note := + #0 'show.english.translation := } ENTRY @@ -88,6 +90,7 @@ ENTRY series title translator + translation url urldate volume @@ -269,6 +272,12 @@ FUNCTION {output.check} FUNCTION {fin.entry} { add.period$ write$ + show.english.translation entry.lang lang.zh = and + { ")" + write$ + } + 'skip$ + if$ newline$ } @@ -1246,9 +1255,15 @@ FUNCTION {check.url} } FUNCTION {format.url} +{ entry.url +} + +FUNCTION {output.url} { entry.url empty$ not - { new.block entry.url } - { "" } + { new.block + entry.url output + } + 'skip$ if$ } @@ -1282,7 +1297,7 @@ FUNCTION {is.in.url} FUNCTION {format.doi} { "" - doi empty$ not show.doi and + doi empty$ not { "" 's := doi 't := #0 'numnames := @@ -1310,11 +1325,16 @@ FUNCTION {format.doi} t #2 global.max$ substring$ 't := } while$ - 's := - s empty$ not - { new.block s } - { "" } - if$ + } + 'skip$ + if$ +} + +FUNCTION {output.doi} +{ doi empty$ not show.doi and + show.english.translation entry.lang lang.zh = and not and + { new.block + format.doi output } 'skip$ if$ @@ -1346,6 +1366,30 @@ FUNCTION {format.note} if$ } +FUNCTION {output.translation} +{ show.english.translation entry.lang lang.zh = and + { translation empty$ not + { translation } + { "[English translation missing!]" } + if$ + " (in Chinese)" * output + write$ + format.doi duplicate$ empty$ not + { newline$ + write$ + } + 'pop$ + if$ + " \\" write$ + newline$ + "(" write$ + "" + before.all 'output.state := + } + 'skip$ + if$ +} + FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ @@ -1358,6 +1402,7 @@ FUNCTION {empty.misc.check} FUNCTION {monograph} { output.bibitem + output.translation author empty$ not { format.authors } { editor empty$ not @@ -1382,8 +1427,8 @@ FUNCTION {monograph} format.year "year" output.check format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1391,6 +1436,7 @@ FUNCTION {monograph} FUNCTION {incollection} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1410,8 +1456,8 @@ FUNCTION {incollection} format.year "year" output.check format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1419,6 +1465,7 @@ FUNCTION {incollection} FUNCTION {periodical} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1431,8 +1478,8 @@ FUNCTION {periodical} format.address.publisher output format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1440,6 +1487,7 @@ FUNCTION {periodical} FUNCTION {article} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1457,8 +1505,8 @@ FUNCTION {article} format.journal.number "" output.after format.journal.pages "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1466,6 +1514,7 @@ FUNCTION {article} FUNCTION {patent} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1475,8 +1524,8 @@ FUNCTION {patent} new.block format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1486,6 +1535,7 @@ FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := output.bibitem + output.translation format.authors output author format.key output new.block @@ -1501,8 +1551,8 @@ FUNCTION {electronic} format.pages bbl.colon output.after format.editdate "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry diff --git a/variants/npr/npr.bst b/variants/npr/npr.bst index ed9b818..369be7a 100644 --- a/variants/npr/npr.bst +++ b/variants/npr/npr.bst @@ -40,6 +40,7 @@ INTEGERS { show.url show.doi show.note + show.english.translation } FUNCTION {load.config} @@ -62,6 +63,7 @@ FUNCTION {load.config} #1 'show.url := #1 'show.doi := #0 'show.note := + #1 'show.english.translation := } ENTRY @@ -88,6 +90,7 @@ ENTRY series title translator + translation url urldate volume @@ -269,6 +272,12 @@ FUNCTION {output.check} FUNCTION {fin.entry} { add.period$ write$ + show.english.translation entry.lang lang.zh = and + { ")" + write$ + } + 'skip$ + if$ newline$ } @@ -1286,9 +1295,15 @@ FUNCTION {check.url} } FUNCTION {format.url} +{ entry.url +} + +FUNCTION {output.url} { entry.url empty$ not - { new.block entry.url } - { "" } + { new.block + entry.url output + } + 'skip$ if$ } @@ -1322,7 +1337,7 @@ FUNCTION {is.in.url} FUNCTION {format.doi} { "" - doi empty$ not show.doi and + doi empty$ not { "" 's := doi 't := #0 'numnames := @@ -1350,11 +1365,16 @@ FUNCTION {format.doi} t #2 global.max$ substring$ 't := } while$ - 's := - s empty$ not - { new.block s } - { "" } - if$ + } + 'skip$ + if$ +} + +FUNCTION {output.doi} +{ doi empty$ not show.doi and + show.english.translation entry.lang lang.zh = and not and + { new.block + format.doi output } 'skip$ if$ @@ -1386,6 +1406,30 @@ FUNCTION {format.note} if$ } +FUNCTION {output.translation} +{ show.english.translation entry.lang lang.zh = and + { translation empty$ not + { translation } + { "[English translation missing!]" } + if$ + " (in Chinese)" * output + write$ + format.doi duplicate$ empty$ not + { newline$ + write$ + } + 'pop$ + if$ + " \\" write$ + newline$ + "(" write$ + "" + before.all 'output.state := + } + 'skip$ + if$ +} + FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ @@ -1398,6 +1442,7 @@ FUNCTION {empty.misc.check} FUNCTION {monograph} { output.bibitem + output.translation author empty$ not { format.authors } { editor empty$ not @@ -1422,8 +1467,8 @@ FUNCTION {monograph} format.year "year" output.check format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1431,6 +1476,7 @@ FUNCTION {monograph} FUNCTION {incollection} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1450,8 +1496,8 @@ FUNCTION {incollection} format.year "year" output.check format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1459,6 +1505,7 @@ FUNCTION {incollection} FUNCTION {periodical} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1471,8 +1518,8 @@ FUNCTION {periodical} format.address.publisher output format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1480,6 +1527,7 @@ FUNCTION {periodical} FUNCTION {article} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1497,8 +1545,8 @@ FUNCTION {article} format.journal.number "" output.after format.journal.pages "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1506,6 +1554,7 @@ FUNCTION {article} FUNCTION {patent} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1515,8 +1564,8 @@ FUNCTION {patent} new.block format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1526,6 +1575,7 @@ FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := output.bibitem + output.translation format.authors output author format.key output new.block @@ -1541,8 +1591,8 @@ FUNCTION {electronic} format.pages bbl.colon output.after format.editdate "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry diff --git a/variants/thu/thuthesis-author-year.bst b/variants/thu/thuthesis-author-year.bst index 2af6afc..1488a2e 100644 --- a/variants/thu/thuthesis-author-year.bst +++ b/variants/thu/thuthesis-author-year.bst @@ -40,6 +40,7 @@ INTEGERS { show.url show.doi show.note + show.english.translation lang.zh.order lang.ja.order lang.en.order @@ -68,6 +69,7 @@ FUNCTION {load.config} #1 'show.url := #0 'show.doi := #0 'show.note := + #0 'show.english.translation := #1 'lang.zh.order := #2 'lang.ja.order := #3 'lang.en.order := @@ -99,6 +101,7 @@ ENTRY series title translator + translation url urldate volume @@ -280,6 +283,12 @@ FUNCTION {output.check} FUNCTION {fin.entry} { add.period$ write$ + show.english.translation entry.lang lang.zh = and + { ")" + write$ + } + 'skip$ + if$ newline$ } @@ -1260,9 +1269,15 @@ FUNCTION {check.url} } FUNCTION {format.url} +{ entry.url +} + +FUNCTION {output.url} { entry.url empty$ not - { new.block entry.url } - { "" } + { new.block + entry.url output + } + 'skip$ if$ } @@ -1296,7 +1311,7 @@ FUNCTION {is.in.url} FUNCTION {format.doi} { "" - doi empty$ not show.doi and + doi empty$ not { "" 's := doi 't := #0 'numnames := @@ -1324,11 +1339,16 @@ FUNCTION {format.doi} t #2 global.max$ substring$ 't := } while$ - 's := - s empty$ not - { new.block s } - { "" } - if$ + } + 'skip$ + if$ +} + +FUNCTION {output.doi} +{ doi empty$ not show.doi and + show.english.translation entry.lang lang.zh = and not and + { new.block + format.doi output } 'skip$ if$ @@ -1360,6 +1380,30 @@ FUNCTION {format.note} if$ } +FUNCTION {output.translation} +{ show.english.translation entry.lang lang.zh = and + { translation empty$ not + { translation } + { "[English translation missing!]" } + if$ + " (in Chinese)" * output + write$ + format.doi duplicate$ empty$ not + { newline$ + write$ + } + 'pop$ + if$ + " \\" write$ + newline$ + "(" write$ + "" + before.all 'output.state := + } + 'skip$ + if$ +} + FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ @@ -1372,6 +1416,7 @@ FUNCTION {empty.misc.check} FUNCTION {monograph} { output.bibitem + output.translation author empty$ not { format.authors } { editor empty$ not @@ -1400,8 +1445,8 @@ FUNCTION {monograph} format.address.publisher output format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1409,6 +1454,7 @@ FUNCTION {monograph} FUNCTION {incollection} { output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1432,8 +1478,8 @@ FUNCTION {incollection} format.address.publisher output format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1441,6 +1487,7 @@ FUNCTION {incollection} FUNCTION {periodical} { output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1457,8 +1504,8 @@ FUNCTION {periodical} new.block format.address.publisher output format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1466,6 +1513,7 @@ FUNCTION {periodical} FUNCTION {article} { output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1487,8 +1535,8 @@ FUNCTION {article} format.journal.number "" output.after format.journal.pages "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1496,6 +1544,7 @@ FUNCTION {article} FUNCTION {patent} { output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1510,8 +1559,8 @@ FUNCTION {patent} new.block format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1521,6 +1570,7 @@ FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1537,8 +1587,8 @@ FUNCTION {electronic} format.pages bbl.colon output.after format.editdate "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry diff --git a/variants/thu/thuthesis-bachelor.bst b/variants/thu/thuthesis-bachelor.bst index 0ca828f..b4655c7 100644 --- a/variants/thu/thuthesis-bachelor.bst +++ b/variants/thu/thuthesis-bachelor.bst @@ -40,6 +40,7 @@ INTEGERS { show.url show.doi show.note + show.english.translation } FUNCTION {load.config} @@ -62,6 +63,7 @@ FUNCTION {load.config} #1 'show.url := #1 'show.doi := #0 'show.note := + #0 'show.english.translation := } ENTRY @@ -88,6 +90,7 @@ ENTRY series title translator + translation url urldate volume @@ -269,6 +272,12 @@ FUNCTION {output.check} FUNCTION {fin.entry} { add.period$ write$ + show.english.translation entry.lang lang.zh = and + { ")" + write$ + } + 'skip$ + if$ newline$ } @@ -1246,9 +1255,15 @@ FUNCTION {check.url} } FUNCTION {format.url} +{ entry.url +} + +FUNCTION {output.url} { entry.url empty$ not - { new.block entry.url } - { "" } + { new.block + entry.url output + } + 'skip$ if$ } @@ -1282,7 +1297,7 @@ FUNCTION {is.in.url} FUNCTION {format.doi} { "" - doi empty$ not show.doi and + doi empty$ not { "" 's := doi 't := #0 'numnames := @@ -1310,11 +1325,16 @@ FUNCTION {format.doi} t #2 global.max$ substring$ 't := } while$ - 's := - s empty$ not - { new.block s } - { "" } - if$ + } + 'skip$ + if$ +} + +FUNCTION {output.doi} +{ doi empty$ not show.doi and + show.english.translation entry.lang lang.zh = and not and + { new.block + format.doi output } 'skip$ if$ @@ -1346,6 +1366,30 @@ FUNCTION {format.note} if$ } +FUNCTION {output.translation} +{ show.english.translation entry.lang lang.zh = and + { translation empty$ not + { translation } + { "[English translation missing!]" } + if$ + " (in Chinese)" * output + write$ + format.doi duplicate$ empty$ not + { newline$ + write$ + } + 'pop$ + if$ + " \\" write$ + newline$ + "(" write$ + "" + before.all 'output.state := + } + 'skip$ + if$ +} + FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ @@ -1358,6 +1402,7 @@ FUNCTION {empty.misc.check} FUNCTION {monograph} { output.bibitem + output.translation author empty$ not { format.authors } { editor empty$ not @@ -1382,8 +1427,8 @@ FUNCTION {monograph} format.year "year" output.check format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1391,6 +1436,7 @@ FUNCTION {monograph} FUNCTION {incollection} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1410,8 +1456,8 @@ FUNCTION {incollection} format.year "year" output.check format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1419,6 +1465,7 @@ FUNCTION {incollection} FUNCTION {periodical} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1431,8 +1478,8 @@ FUNCTION {periodical} format.address.publisher output format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1440,6 +1487,7 @@ FUNCTION {periodical} FUNCTION {article} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1457,8 +1505,8 @@ FUNCTION {article} format.journal.number "" output.after format.journal.pages "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1466,6 +1514,7 @@ FUNCTION {article} FUNCTION {patent} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1475,8 +1524,8 @@ FUNCTION {patent} new.block format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1486,6 +1535,7 @@ FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := output.bibitem + output.translation format.authors output author format.key output new.block @@ -1501,8 +1551,8 @@ FUNCTION {electronic} format.pages bbl.colon output.after format.editdate "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry diff --git a/variants/thu/thuthesis-numeric.bst b/variants/thu/thuthesis-numeric.bst index d53d4fd..573d0d9 100644 --- a/variants/thu/thuthesis-numeric.bst +++ b/variants/thu/thuthesis-numeric.bst @@ -40,6 +40,7 @@ INTEGERS { show.url show.doi show.note + show.english.translation } FUNCTION {load.config} @@ -62,6 +63,7 @@ FUNCTION {load.config} #1 'show.url := #0 'show.doi := #0 'show.note := + #0 'show.english.translation := } ENTRY @@ -88,6 +90,7 @@ ENTRY series title translator + translation url urldate volume @@ -269,6 +272,12 @@ FUNCTION {output.check} FUNCTION {fin.entry} { add.period$ write$ + show.english.translation entry.lang lang.zh = and + { ")" + write$ + } + 'skip$ + if$ newline$ } @@ -1249,9 +1258,15 @@ FUNCTION {check.url} } FUNCTION {format.url} +{ entry.url +} + +FUNCTION {output.url} { entry.url empty$ not - { new.block entry.url } - { "" } + { new.block + entry.url output + } + 'skip$ if$ } @@ -1285,7 +1300,7 @@ FUNCTION {is.in.url} FUNCTION {format.doi} { "" - doi empty$ not show.doi and + doi empty$ not { "" 's := doi 't := #0 'numnames := @@ -1313,11 +1328,16 @@ FUNCTION {format.doi} t #2 global.max$ substring$ 't := } while$ - 's := - s empty$ not - { new.block s } - { "" } - if$ + } + 'skip$ + if$ +} + +FUNCTION {output.doi} +{ doi empty$ not show.doi and + show.english.translation entry.lang lang.zh = and not and + { new.block + format.doi output } 'skip$ if$ @@ -1349,6 +1369,30 @@ FUNCTION {format.note} if$ } +FUNCTION {output.translation} +{ show.english.translation entry.lang lang.zh = and + { translation empty$ not + { translation } + { "[English translation missing!]" } + if$ + " (in Chinese)" * output + write$ + format.doi duplicate$ empty$ not + { newline$ + write$ + } + 'pop$ + if$ + " \\" write$ + newline$ + "(" write$ + "" + before.all 'output.state := + } + 'skip$ + if$ +} + FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ @@ -1361,6 +1405,7 @@ FUNCTION {empty.misc.check} FUNCTION {monograph} { output.bibitem + output.translation author empty$ not { format.authors } { editor empty$ not @@ -1385,8 +1430,8 @@ FUNCTION {monograph} format.year "year" output.check format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1394,6 +1439,7 @@ FUNCTION {monograph} FUNCTION {incollection} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1413,8 +1459,8 @@ FUNCTION {incollection} format.year "year" output.check format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1422,6 +1468,7 @@ FUNCTION {incollection} FUNCTION {periodical} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1434,8 +1481,8 @@ FUNCTION {periodical} format.address.publisher output format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1443,6 +1490,7 @@ FUNCTION {periodical} FUNCTION {article} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1460,8 +1508,8 @@ FUNCTION {article} format.journal.number "" output.after format.journal.pages "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1469,6 +1517,7 @@ FUNCTION {article} FUNCTION {patent} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1478,8 +1527,8 @@ FUNCTION {patent} new.block format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1489,6 +1538,7 @@ FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := output.bibitem + output.translation format.authors output author format.key output new.block @@ -1504,8 +1554,8 @@ FUNCTION {electronic} format.pages bbl.colon output.after format.editdate "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry diff --git a/variants/ustc/ustcthesis-authoryear.bst b/variants/ustc/ustcthesis-authoryear.bst index 0899922..2c42626 100644 --- a/variants/ustc/ustcthesis-authoryear.bst +++ b/variants/ustc/ustcthesis-authoryear.bst @@ -40,6 +40,7 @@ INTEGERS { show.url show.doi show.note + show.english.translation lang.zh.order lang.ja.order lang.en.order @@ -68,6 +69,7 @@ FUNCTION {load.config} #1 'show.url := #1 'show.doi := #0 'show.note := + #0 'show.english.translation := #1 'lang.zh.order := #2 'lang.ja.order := #3 'lang.en.order := @@ -99,6 +101,7 @@ ENTRY series title translator + translation url urldate volume @@ -280,6 +283,12 @@ FUNCTION {output.check} FUNCTION {fin.entry} { add.period$ write$ + show.english.translation entry.lang lang.zh = and + { ")" + write$ + } + 'skip$ + if$ newline$ } @@ -1257,9 +1266,15 @@ FUNCTION {check.url} } FUNCTION {format.url} +{ entry.url +} + +FUNCTION {output.url} { entry.url empty$ not - { new.block entry.url } - { "" } + { new.block + entry.url output + } + 'skip$ if$ } @@ -1293,7 +1308,7 @@ FUNCTION {is.in.url} FUNCTION {format.doi} { "" - doi empty$ not show.doi and + doi empty$ not { "" 's := doi 't := #0 'numnames := @@ -1321,11 +1336,16 @@ FUNCTION {format.doi} t #2 global.max$ substring$ 't := } while$ - 's := - s empty$ not - { new.block s } - { "" } - if$ + } + 'skip$ + if$ +} + +FUNCTION {output.doi} +{ doi empty$ not show.doi and + show.english.translation entry.lang lang.zh = and not and + { new.block + format.doi output } 'skip$ if$ @@ -1357,6 +1377,30 @@ FUNCTION {format.note} if$ } +FUNCTION {output.translation} +{ show.english.translation entry.lang lang.zh = and + { translation empty$ not + { translation } + { "[English translation missing!]" } + if$ + " (in Chinese)" * output + write$ + format.doi duplicate$ empty$ not + { newline$ + write$ + } + 'pop$ + if$ + " \\" write$ + newline$ + "(" write$ + "" + before.all 'output.state := + } + 'skip$ + if$ +} + FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ @@ -1369,6 +1413,7 @@ FUNCTION {empty.misc.check} FUNCTION {monograph} { output.bibitem + output.translation author empty$ not { format.authors } { editor empty$ not @@ -1397,8 +1442,8 @@ FUNCTION {monograph} format.address.publisher output format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1406,6 +1451,7 @@ FUNCTION {monograph} FUNCTION {incollection} { output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1429,8 +1475,8 @@ FUNCTION {incollection} format.address.publisher output format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1438,6 +1484,7 @@ FUNCTION {incollection} FUNCTION {periodical} { output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1454,8 +1501,8 @@ FUNCTION {periodical} new.block format.address.publisher output format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1463,6 +1510,7 @@ FUNCTION {periodical} FUNCTION {article} { output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1484,8 +1532,8 @@ FUNCTION {article} format.journal.number "" output.after format.journal.pages "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1493,6 +1541,7 @@ FUNCTION {article} FUNCTION {patent} { output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1507,8 +1556,8 @@ FUNCTION {patent} new.block format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1518,6 +1567,7 @@ FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := output.bibitem + output.translation format.authors output author format.key output period.between.author.year @@ -1534,8 +1584,8 @@ FUNCTION {electronic} format.pages bbl.colon output.after format.editdate "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry diff --git a/variants/ustc/ustcthesis-bachelor.bst b/variants/ustc/ustcthesis-bachelor.bst index b075c1b..700e228 100644 --- a/variants/ustc/ustcthesis-bachelor.bst +++ b/variants/ustc/ustcthesis-bachelor.bst @@ -40,6 +40,7 @@ INTEGERS { show.url show.doi show.note + show.english.translation } FUNCTION {load.config} @@ -64,6 +65,7 @@ FUNCTION {load.config} #1 'show.url := #1 'show.doi := #0 'show.note := + #0 'show.english.translation := } ENTRY @@ -90,6 +92,7 @@ ENTRY series title translator + translation url urldate volume @@ -271,6 +274,12 @@ FUNCTION {output.check} FUNCTION {fin.entry} { add.period$ write$ + show.english.translation entry.lang lang.zh = and + { ")" + write$ + } + 'skip$ + if$ newline$ } @@ -1248,9 +1257,15 @@ FUNCTION {check.url} } FUNCTION {format.url} +{ entry.url +} + +FUNCTION {output.url} { entry.url empty$ not - { new.block entry.url } - { "" } + { new.block + entry.url output + } + 'skip$ if$ } @@ -1284,7 +1299,7 @@ FUNCTION {is.in.url} FUNCTION {format.doi} { "" - doi empty$ not show.doi and + doi empty$ not { "" 's := doi 't := #0 'numnames := @@ -1312,11 +1327,16 @@ FUNCTION {format.doi} t #2 global.max$ substring$ 't := } while$ - 's := - s empty$ not - { new.block s } - { "" } - if$ + } + 'skip$ + if$ +} + +FUNCTION {output.doi} +{ doi empty$ not show.doi and + show.english.translation entry.lang lang.zh = and not and + { new.block + format.doi output } 'skip$ if$ @@ -1348,6 +1368,30 @@ FUNCTION {format.note} if$ } +FUNCTION {output.translation} +{ show.english.translation entry.lang lang.zh = and + { translation empty$ not + { translation } + { "[English translation missing!]" } + if$ + " (in Chinese)" * output + write$ + format.doi duplicate$ empty$ not + { newline$ + write$ + } + 'pop$ + if$ + " \\" write$ + newline$ + "(" write$ + "" + before.all 'output.state := + } + 'skip$ + if$ +} + FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ @@ -1360,6 +1404,7 @@ FUNCTION {empty.misc.check} FUNCTION {monograph} { output.bibitem + output.translation author empty$ not { format.authors } { editor empty$ not @@ -1384,8 +1429,8 @@ FUNCTION {monograph} format.year "year" output.check format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1393,6 +1438,7 @@ FUNCTION {monograph} FUNCTION {incollection} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1412,8 +1458,8 @@ FUNCTION {incollection} format.year "year" output.check format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1421,6 +1467,7 @@ FUNCTION {incollection} FUNCTION {periodical} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1433,8 +1480,8 @@ FUNCTION {periodical} format.address.publisher output format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1442,6 +1489,7 @@ FUNCTION {periodical} FUNCTION {article} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1459,8 +1507,8 @@ FUNCTION {article} format.journal.number "" output.after format.journal.pages "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1468,6 +1516,7 @@ FUNCTION {article} FUNCTION {patent} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1477,8 +1526,8 @@ FUNCTION {patent} new.block format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1488,6 +1537,7 @@ FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := output.bibitem + output.translation format.authors output author format.key output new.block @@ -1503,8 +1553,8 @@ FUNCTION {electronic} format.pages bbl.colon output.after format.editdate "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry diff --git a/variants/ustc/ustcthesis-numerical.bst b/variants/ustc/ustcthesis-numerical.bst index 6e769a3..8a650d6 100644 --- a/variants/ustc/ustcthesis-numerical.bst +++ b/variants/ustc/ustcthesis-numerical.bst @@ -40,6 +40,7 @@ INTEGERS { show.url show.doi show.note + show.english.translation } FUNCTION {load.config} @@ -62,6 +63,7 @@ FUNCTION {load.config} #1 'show.url := #1 'show.doi := #0 'show.note := + #0 'show.english.translation := } ENTRY @@ -88,6 +90,7 @@ ENTRY series title translator + translation url urldate volume @@ -269,6 +272,12 @@ FUNCTION {output.check} FUNCTION {fin.entry} { add.period$ write$ + show.english.translation entry.lang lang.zh = and + { ")" + write$ + } + 'skip$ + if$ newline$ } @@ -1246,9 +1255,15 @@ FUNCTION {check.url} } FUNCTION {format.url} +{ entry.url +} + +FUNCTION {output.url} { entry.url empty$ not - { new.block entry.url } - { "" } + { new.block + entry.url output + } + 'skip$ if$ } @@ -1282,7 +1297,7 @@ FUNCTION {is.in.url} FUNCTION {format.doi} { "" - doi empty$ not show.doi and + doi empty$ not { "" 's := doi 't := #0 'numnames := @@ -1310,11 +1325,16 @@ FUNCTION {format.doi} t #2 global.max$ substring$ 't := } while$ - 's := - s empty$ not - { new.block s } - { "" } - if$ + } + 'skip$ + if$ +} + +FUNCTION {output.doi} +{ doi empty$ not show.doi and + show.english.translation entry.lang lang.zh = and not and + { new.block + format.doi output } 'skip$ if$ @@ -1346,6 +1366,30 @@ FUNCTION {format.note} if$ } +FUNCTION {output.translation} +{ show.english.translation entry.lang lang.zh = and + { translation empty$ not + { translation } + { "[English translation missing!]" } + if$ + " (in Chinese)" * output + write$ + format.doi duplicate$ empty$ not + { newline$ + write$ + } + 'pop$ + if$ + " \\" write$ + newline$ + "(" write$ + "" + before.all 'output.state := + } + 'skip$ + if$ +} + FUNCTION {empty.misc.check} { author empty$ title empty$ year empty$ @@ -1358,6 +1402,7 @@ FUNCTION {empty.misc.check} FUNCTION {monograph} { output.bibitem + output.translation author empty$ not { format.authors } { editor empty$ not @@ -1382,8 +1427,8 @@ FUNCTION {monograph} format.year "year" output.check format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1391,6 +1436,7 @@ FUNCTION {monograph} FUNCTION {incollection} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1410,8 +1456,8 @@ FUNCTION {incollection} format.year "year" output.check format.pages bbl.colon output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1419,6 +1465,7 @@ FUNCTION {incollection} FUNCTION {periodical} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1431,8 +1478,8 @@ FUNCTION {periodical} format.address.publisher output format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1440,6 +1487,7 @@ FUNCTION {periodical} FUNCTION {article} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1457,8 +1505,8 @@ FUNCTION {article} format.journal.number "" output.after format.journal.pages "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1466,6 +1514,7 @@ FUNCTION {article} FUNCTION {patent} { output.bibitem + output.translation format.authors output author format.key output new.block @@ -1475,8 +1524,8 @@ FUNCTION {patent} new.block format.date "year" output.check format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry @@ -1486,6 +1535,7 @@ FUNCTION {electronic} { #1 #1 check.electronic #1 'entry.is.electronic := output.bibitem + output.translation format.authors output author format.key output new.block @@ -1501,8 +1551,8 @@ FUNCTION {electronic} format.pages bbl.colon output.after format.editdate "" output.after format.urldate "" output.after - format.url output - format.doi output + output.url + output.doi new.block format.note output fin.entry From fe2f439aeaba1f0fa19fbe8099e1748effdecd95 Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Mon, 9 Mar 2020 10:20:23 +0800 Subject: [PATCH 10/16] Fix missing journal --- gbt7714-author-year.bst | 20 ++++++++++++-------- gbt7714-numerical.bst | 20 ++++++++++++-------- gbt7714.dtx | 20 ++++++++++++-------- variants/2005/gbt7714-2005-author-year.bst | 20 ++++++++++++-------- variants/2005/gbt7714-2005-numerical.bst | 20 ++++++++++++-------- variants/npr/npr.bst | 20 ++++++++++++-------- variants/thu/thuthesis-author-year.bst | 20 ++++++++++++-------- variants/thu/thuthesis-bachelor.bst | 20 ++++++++++++-------- variants/thu/thuthesis-numeric.bst | 20 ++++++++++++-------- variants/ustc/ustcthesis-authoryear.bst | 20 ++++++++++++-------- variants/ustc/ustcthesis-bachelor.bst | 20 ++++++++++++-------- variants/ustc/ustcthesis-numerical.bst | 20 ++++++++++++-------- 12 files changed, 144 insertions(+), 96 deletions(-) diff --git a/gbt7714-author-year.bst b/gbt7714-author-year.bst index 19dff73..6f7da80 100644 --- a/gbt7714-author-year.bst +++ b/gbt7714-author-year.bst @@ -912,14 +912,18 @@ FUNCTION {abbreviate} } FUNCTION {format.journal} -{ journal - abbreviate.journal - 'abbreviate - 'skip$ - if$ - italic.journal entry.lang lang.en = and - 'italicize - 'skip$ +{ journal empty$ not + { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ + italic.journal entry.lang lang.en = and + 'italicize + 'skip$ + if$ + } + { "" } if$ } diff --git a/gbt7714-numerical.bst b/gbt7714-numerical.bst index fb7244d..6a3daea 100644 --- a/gbt7714-numerical.bst +++ b/gbt7714-numerical.bst @@ -901,14 +901,18 @@ FUNCTION {abbreviate} } FUNCTION {format.journal} -{ journal - abbreviate.journal - 'abbreviate - 'skip$ - if$ - italic.journal entry.lang lang.en = and - 'italicize - 'skip$ +{ journal empty$ not + { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ + italic.journal entry.lang lang.en = and + 'italicize + 'skip$ + if$ + } + { "" } if$ } diff --git a/gbt7714.dtx b/gbt7714.dtx index 70f4836..1dcb9c3 100644 --- a/gbt7714.dtx +++ b/gbt7714.dtx @@ -2296,14 +2296,18 @@ FUNCTION {abbreviate} } FUNCTION {format.journal} -{ journal - abbreviate.journal - 'abbreviate - 'skip$ - if$ - italic.journal entry.lang lang.en = and - 'italicize - 'skip$ +{ journal empty$ not + { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ + italic.journal entry.lang lang.en = and + 'italicize + 'skip$ + if$ + } + { "" } if$ } diff --git a/variants/2005/gbt7714-2005-author-year.bst b/variants/2005/gbt7714-2005-author-year.bst index f380077..ba5072a 100644 --- a/variants/2005/gbt7714-2005-author-year.bst +++ b/variants/2005/gbt7714-2005-author-year.bst @@ -912,14 +912,18 @@ FUNCTION {abbreviate} } FUNCTION {format.journal} -{ journal - abbreviate.journal - 'abbreviate - 'skip$ - if$ - italic.journal entry.lang lang.en = and - 'italicize - 'skip$ +{ journal empty$ not + { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ + italic.journal entry.lang lang.en = and + 'italicize + 'skip$ + if$ + } + { "" } if$ } diff --git a/variants/2005/gbt7714-2005-numerical.bst b/variants/2005/gbt7714-2005-numerical.bst index c926893..b7064ba 100644 --- a/variants/2005/gbt7714-2005-numerical.bst +++ b/variants/2005/gbt7714-2005-numerical.bst @@ -901,14 +901,18 @@ FUNCTION {abbreviate} } FUNCTION {format.journal} -{ journal - abbreviate.journal - 'abbreviate - 'skip$ - if$ - italic.journal entry.lang lang.en = and - 'italicize - 'skip$ +{ journal empty$ not + { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ + italic.journal entry.lang lang.en = and + 'italicize + 'skip$ + if$ + } + { "" } if$ } diff --git a/variants/npr/npr.bst b/variants/npr/npr.bst index 369be7a..ef81760 100644 --- a/variants/npr/npr.bst +++ b/variants/npr/npr.bst @@ -941,14 +941,18 @@ FUNCTION {abbreviate} } FUNCTION {format.journal} -{ journal - abbreviate.journal - 'abbreviate - 'skip$ - if$ - italic.journal entry.lang lang.en = and - 'italicize - 'skip$ +{ journal empty$ not + { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ + italic.journal entry.lang lang.en = and + 'italicize + 'skip$ + if$ + } + { "" } if$ } diff --git a/variants/thu/thuthesis-author-year.bst b/variants/thu/thuthesis-author-year.bst index 1488a2e..5d3611e 100644 --- a/variants/thu/thuthesis-author-year.bst +++ b/variants/thu/thuthesis-author-year.bst @@ -912,14 +912,18 @@ FUNCTION {abbreviate} } FUNCTION {format.journal} -{ journal - abbreviate.journal - 'abbreviate - 'skip$ - if$ - italic.journal entry.lang lang.en = and - 'italicize - 'skip$ +{ journal empty$ not + { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ + italic.journal entry.lang lang.en = and + 'italicize + 'skip$ + if$ + } + { "" } if$ } diff --git a/variants/thu/thuthesis-bachelor.bst b/variants/thu/thuthesis-bachelor.bst index b4655c7..536c793 100644 --- a/variants/thu/thuthesis-bachelor.bst +++ b/variants/thu/thuthesis-bachelor.bst @@ -901,14 +901,18 @@ FUNCTION {abbreviate} } FUNCTION {format.journal} -{ journal - abbreviate.journal - 'abbreviate - 'skip$ - if$ - italic.journal entry.lang lang.en = and - 'italicize - 'skip$ +{ journal empty$ not + { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ + italic.journal entry.lang lang.en = and + 'italicize + 'skip$ + if$ + } + { "" } if$ } diff --git a/variants/thu/thuthesis-numeric.bst b/variants/thu/thuthesis-numeric.bst index 573d0d9..8976fd9 100644 --- a/variants/thu/thuthesis-numeric.bst +++ b/variants/thu/thuthesis-numeric.bst @@ -901,14 +901,18 @@ FUNCTION {abbreviate} } FUNCTION {format.journal} -{ journal - abbreviate.journal - 'abbreviate - 'skip$ - if$ - italic.journal entry.lang lang.en = and - 'italicize - 'skip$ +{ journal empty$ not + { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ + italic.journal entry.lang lang.en = and + 'italicize + 'skip$ + if$ + } + { "" } if$ } diff --git a/variants/ustc/ustcthesis-authoryear.bst b/variants/ustc/ustcthesis-authoryear.bst index 2c42626..ebc53c3 100644 --- a/variants/ustc/ustcthesis-authoryear.bst +++ b/variants/ustc/ustcthesis-authoryear.bst @@ -912,14 +912,18 @@ FUNCTION {abbreviate} } FUNCTION {format.journal} -{ journal - abbreviate.journal - 'abbreviate - 'skip$ - if$ - italic.journal entry.lang lang.en = and - 'italicize - 'skip$ +{ journal empty$ not + { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ + italic.journal entry.lang lang.en = and + 'italicize + 'skip$ + if$ + } + { "" } if$ } diff --git a/variants/ustc/ustcthesis-bachelor.bst b/variants/ustc/ustcthesis-bachelor.bst index 700e228..9d0ef8b 100644 --- a/variants/ustc/ustcthesis-bachelor.bst +++ b/variants/ustc/ustcthesis-bachelor.bst @@ -903,14 +903,18 @@ FUNCTION {abbreviate} } FUNCTION {format.journal} -{ journal - abbreviate.journal - 'abbreviate - 'skip$ - if$ - italic.journal entry.lang lang.en = and - 'italicize - 'skip$ +{ journal empty$ not + { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ + italic.journal entry.lang lang.en = and + 'italicize + 'skip$ + if$ + } + { "" } if$ } diff --git a/variants/ustc/ustcthesis-numerical.bst b/variants/ustc/ustcthesis-numerical.bst index 8a650d6..59e28dd 100644 --- a/variants/ustc/ustcthesis-numerical.bst +++ b/variants/ustc/ustcthesis-numerical.bst @@ -901,14 +901,18 @@ FUNCTION {abbreviate} } FUNCTION {format.journal} -{ journal - abbreviate.journal - 'abbreviate - 'skip$ - if$ - italic.journal entry.lang lang.en = and - 'italicize - 'skip$ +{ journal empty$ not + { journal + abbreviate.journal + 'abbreviate + 'skip$ + if$ + italic.journal entry.lang lang.en = and + 'italicize + 'skip$ + if$ + } + { "" } if$ } From ea967143deb24a07b8f492e18e32606b8deeb57f Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Mon, 9 Mar 2020 10:51:00 +0800 Subject: [PATCH 11/16] Fix underscore in DOI --- CHANGELOG.md | 3 +++ gbt7714-author-year.bst | 4 ++-- gbt7714-numerical.bst | 4 ++-- gbt7714.dtx | 4 ++-- test/testbst/2015-authoryear.bbl | 4 ++-- test/testbst/2015-numerical.bbl | 4 ++-- test/testbst/npr.bbl | 4 ++-- test/testbst/option-italicjournal.bbl | 4 ++-- test/testbst/option-linktitle.bbl | 4 ++-- test/testbst/option-no-medium-type.bbl | 4 ++-- test/testbst/option-nomark.bbl | 4 ++-- test/testbst/option-nosentencase.bbl | 4 ++-- test/testbst/option-noslash.bbl | 4 ++-- test/testbst/option-noslsn.bbl | 4 ++-- test/testbst/option-nouppercase.bbl | 4 ++-- test/testbst/option-nourl.bbl | 4 ++-- test/testbst/option-only-start-page.bbl | 4 ++-- test/testbst/ustc-authoryear.bbl | 4 ++-- test/testbst/ustc-bachelor.bbl | 4 ++-- test/testbst/ustc-numerical.bbl | 4 ++-- variants/2005/gbt7714-2005-author-year.bst | 4 ++-- variants/2005/gbt7714-2005-numerical.bst | 4 ++-- variants/npr/npr.bst | 4 ++-- variants/thu/thuthesis-author-year.bst | 4 ++-- variants/thu/thuthesis-bachelor.bst | 4 ++-- variants/thu/thuthesis-numeric.bst | 4 ++-- variants/ustc/ustcthesis-authoryear.bst | 4 ++-- variants/ustc/ustcthesis-bachelor.bst | 4 ++-- variants/ustc/ustcthesis-numerical.bst | 4 ++-- 29 files changed, 59 insertions(+), 56 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a10598..06eae1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - 增加选项 `abbreviate.journal` - 增加选项 `show.english.translation` +### Fixed +- 修正 DOI 中含有下划线的问题 + ## [v2.0] - 2020-03-04 ### Changed - 需要用户在主文档使用 `\bibliographystyle` 命令 diff --git a/gbt7714-author-year.bst b/gbt7714-author-year.bst index 6f7da80..e0dcfa4 100644 --- a/gbt7714-author-year.bst +++ b/gbt7714-author-year.bst @@ -2119,9 +2119,9 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \def\doi#1{#1}\else" + " \providecommand\doi[1]{\nolinkurl{#1}}\else" write$ newline$ - " \def\doi#1{\href{https://doi.org/#1}{#1}}\fi" + " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ } 'skip$ diff --git a/gbt7714-numerical.bst b/gbt7714-numerical.bst index 6a3daea..717eba1 100644 --- a/gbt7714-numerical.bst +++ b/gbt7714-numerical.bst @@ -1940,9 +1940,9 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \def\doi#1{#1}\else" + " \providecommand\doi[1]{\nolinkurl{#1}}\else" write$ newline$ - " \def\doi#1{\href{https://doi.org/#1}{#1}}\fi" + " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ } 'skip$ diff --git a/gbt7714.dtx b/gbt7714.dtx index 1dcb9c3..0c885e2 100644 --- a/gbt7714.dtx +++ b/gbt7714.dtx @@ -4130,9 +4130,9 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \def\doi#1{#1}\else" + " \providecommand\doi[1]{\nolinkurl{#1}}\else" write$ newline$ - " \def\doi#1{\href{https://doi.org/#1}{#1}}\fi" + " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ } 'skip$ diff --git a/test/testbst/2015-authoryear.bbl b/test/testbst/2015-authoryear.bbl index e69d4b7..059ad0a 100644 --- a/test/testbst/2015-authoryear.bbl +++ b/test/testbst/2015-authoryear.bbl @@ -4,8 +4,8 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \def\doi#1{#1}\else - \def\doi#1{\href{https://doi.org/#1}{#1}}\fi + \providecommand\doi[1]{\nolinkurl{#1}}\else + \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[刘彻东(1998)]{liuchedong1998zhongguo} 刘彻东, 1998. diff --git a/test/testbst/2015-numerical.bbl b/test/testbst/2015-numerical.bbl index c39cf0d..bb9f79f 100644 --- a/test/testbst/2015-numerical.bbl +++ b/test/testbst/2015-numerical.bbl @@ -4,8 +4,8 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \def\doi#1{#1}\else - \def\doi#1{\href{https://doi.org/#1}{#1}}\fi + \providecommand\doi[1]{\nolinkurl{#1}}\else + \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} 陈登原. diff --git a/test/testbst/npr.bbl b/test/testbst/npr.bbl index 24d8b22..0d45d24 100644 --- a/test/testbst/npr.bbl +++ b/test/testbst/npr.bbl @@ -4,8 +4,8 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \def\doi#1{#1}\else - \def\doi#1{\href{https://doi.org/#1}{#1}}\fi + \providecommand\doi[1]{\nolinkurl{#1}}\else + \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} [English translation missing!] (in Chinese) \\ diff --git a/test/testbst/option-italicjournal.bbl b/test/testbst/option-italicjournal.bbl index 174b7e6..7a3d389 100644 --- a/test/testbst/option-italicjournal.bbl +++ b/test/testbst/option-italicjournal.bbl @@ -4,8 +4,8 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \def\doi#1{#1}\else - \def\doi#1{\href{https://doi.org/#1}{#1}}\fi + \providecommand\doi[1]{\nolinkurl{#1}}\else + \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} 陈登原. diff --git a/test/testbst/option-linktitle.bbl b/test/testbst/option-linktitle.bbl index 7466db3..db4a6ab 100644 --- a/test/testbst/option-linktitle.bbl +++ b/test/testbst/option-linktitle.bbl @@ -4,8 +4,8 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \def\doi#1{#1}\else - \def\doi#1{\href{https://doi.org/#1}{#1}}\fi + \providecommand\doi[1]{\nolinkurl{#1}}\else + \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} 陈登原. diff --git a/test/testbst/option-no-medium-type.bbl b/test/testbst/option-no-medium-type.bbl index b5cb4ae..35a51ea 100644 --- a/test/testbst/option-no-medium-type.bbl +++ b/test/testbst/option-no-medium-type.bbl @@ -4,8 +4,8 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \def\doi#1{#1}\else - \def\doi#1{\href{https://doi.org/#1}{#1}}\fi + \providecommand\doi[1]{\nolinkurl{#1}}\else + \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} 陈登原. diff --git a/test/testbst/option-nomark.bbl b/test/testbst/option-nomark.bbl index 8ea8917..f1ec525 100644 --- a/test/testbst/option-nomark.bbl +++ b/test/testbst/option-nomark.bbl @@ -4,8 +4,8 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \def\doi#1{#1}\else - \def\doi#1{\href{https://doi.org/#1}{#1}}\fi + \providecommand\doi[1]{\nolinkurl{#1}}\else + \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} 陈登原. diff --git a/test/testbst/option-nosentencase.bbl b/test/testbst/option-nosentencase.bbl index c39cf0d..bb9f79f 100644 --- a/test/testbst/option-nosentencase.bbl +++ b/test/testbst/option-nosentencase.bbl @@ -4,8 +4,8 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \def\doi#1{#1}\else - \def\doi#1{\href{https://doi.org/#1}{#1}}\fi + \providecommand\doi[1]{\nolinkurl{#1}}\else + \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} 陈登原. diff --git a/test/testbst/option-noslash.bbl b/test/testbst/option-noslash.bbl index d3d69d9..18ad1f9 100644 --- a/test/testbst/option-noslash.bbl +++ b/test/testbst/option-noslash.bbl @@ -4,8 +4,8 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \def\doi#1{#1}\else - \def\doi#1{\href{https://doi.org/#1}{#1}}\fi + \providecommand\doi[1]{\nolinkurl{#1}}\else + \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} 陈登原. diff --git a/test/testbst/option-noslsn.bbl b/test/testbst/option-noslsn.bbl index 66e2ec0..f1258f3 100644 --- a/test/testbst/option-noslsn.bbl +++ b/test/testbst/option-noslsn.bbl @@ -4,8 +4,8 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \def\doi#1{#1}\else - \def\doi#1{\href{https://doi.org/#1}{#1}}\fi + \providecommand\doi[1]{\nolinkurl{#1}}\else + \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} 陈登原. diff --git a/test/testbst/option-nouppercase.bbl b/test/testbst/option-nouppercase.bbl index 8c8bfc8..5a76520 100644 --- a/test/testbst/option-nouppercase.bbl +++ b/test/testbst/option-nouppercase.bbl @@ -4,8 +4,8 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \def\doi#1{#1}\else - \def\doi#1{\href{https://doi.org/#1}{#1}}\fi + \providecommand\doi[1]{\nolinkurl{#1}}\else + \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} 陈登原. diff --git a/test/testbst/option-nourl.bbl b/test/testbst/option-nourl.bbl index a89efa3..b43b1b4 100644 --- a/test/testbst/option-nourl.bbl +++ b/test/testbst/option-nourl.bbl @@ -4,8 +4,8 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \def\doi#1{#1}\else - \def\doi#1{\href{https://doi.org/#1}{#1}}\fi + \providecommand\doi[1]{\nolinkurl{#1}}\else + \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} 陈登原. diff --git a/test/testbst/option-only-start-page.bbl b/test/testbst/option-only-start-page.bbl index a293eb9..a1e1abc 100644 --- a/test/testbst/option-only-start-page.bbl +++ b/test/testbst/option-only-start-page.bbl @@ -4,8 +4,8 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \def\doi#1{#1}\else - \def\doi#1{\href{https://doi.org/#1}{#1}}\fi + \providecommand\doi[1]{\nolinkurl{#1}}\else + \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} 陈登原. diff --git a/test/testbst/ustc-authoryear.bbl b/test/testbst/ustc-authoryear.bbl index 1398202..0ab4bf6 100644 --- a/test/testbst/ustc-authoryear.bbl +++ b/test/testbst/ustc-authoryear.bbl @@ -4,8 +4,8 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \def\doi#1{#1}\else - \def\doi#1{\href{https://doi.org/#1}{#1}}\fi + \providecommand\doi[1]{\nolinkurl{#1}}\else + \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[刘彻东(1998)]{liuchedong1998zhongguo} 刘彻东. 1998. diff --git a/test/testbst/ustc-bachelor.bbl b/test/testbst/ustc-bachelor.bbl index 6659a33..e0604e6 100644 --- a/test/testbst/ustc-bachelor.bbl +++ b/test/testbst/ustc-bachelor.bbl @@ -4,8 +4,8 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \def\doi#1{#1}\else - \def\doi#1{\href{https://doi.org/#1}{#1}}\fi + \providecommand\doi[1]{\nolinkurl{#1}}\else + \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} 陈登原. diff --git a/test/testbst/ustc-numerical.bbl b/test/testbst/ustc-numerical.bbl index 859d48a..5a6eb81 100644 --- a/test/testbst/ustc-numerical.bbl +++ b/test/testbst/ustc-numerical.bbl @@ -4,8 +4,8 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \def\doi#1{#1}\else - \def\doi#1{\href{https://doi.org/#1}{#1}}\fi + \providecommand\doi[1]{\nolinkurl{#1}}\else + \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} 陈登原. diff --git a/variants/2005/gbt7714-2005-author-year.bst b/variants/2005/gbt7714-2005-author-year.bst index ba5072a..8a742c8 100644 --- a/variants/2005/gbt7714-2005-author-year.bst +++ b/variants/2005/gbt7714-2005-author-year.bst @@ -2119,9 +2119,9 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \def\doi#1{#1}\else" + " \providecommand\doi[1]{\nolinkurl{#1}}\else" write$ newline$ - " \def\doi#1{\href{https://doi.org/#1}{#1}}\fi" + " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ } 'skip$ diff --git a/variants/2005/gbt7714-2005-numerical.bst b/variants/2005/gbt7714-2005-numerical.bst index b7064ba..5870ca6 100644 --- a/variants/2005/gbt7714-2005-numerical.bst +++ b/variants/2005/gbt7714-2005-numerical.bst @@ -1940,9 +1940,9 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \def\doi#1{#1}\else" + " \providecommand\doi[1]{\nolinkurl{#1}}\else" write$ newline$ - " \def\doi#1{\href{https://doi.org/#1}{#1}}\fi" + " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ } 'skip$ diff --git a/variants/npr/npr.bst b/variants/npr/npr.bst index ef81760..234d5ef 100644 --- a/variants/npr/npr.bst +++ b/variants/npr/npr.bst @@ -1980,9 +1980,9 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \def\doi#1{#1}\else" + " \providecommand\doi[1]{\nolinkurl{#1}}\else" write$ newline$ - " \def\doi#1{\href{https://doi.org/#1}{#1}}\fi" + " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ } 'skip$ diff --git a/variants/thu/thuthesis-author-year.bst b/variants/thu/thuthesis-author-year.bst index 5d3611e..4ebb56c 100644 --- a/variants/thu/thuthesis-author-year.bst +++ b/variants/thu/thuthesis-author-year.bst @@ -2133,9 +2133,9 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \def\doi#1{#1}\else" + " \providecommand\doi[1]{\nolinkurl{#1}}\else" write$ newline$ - " \def\doi#1{\href{https://doi.org/#1}{#1}}\fi" + " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ } 'skip$ diff --git a/variants/thu/thuthesis-bachelor.bst b/variants/thu/thuthesis-bachelor.bst index 536c793..895914b 100644 --- a/variants/thu/thuthesis-bachelor.bst +++ b/variants/thu/thuthesis-bachelor.bst @@ -1940,9 +1940,9 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \def\doi#1{#1}\else" + " \providecommand\doi[1]{\nolinkurl{#1}}\else" write$ newline$ - " \def\doi#1{\href{https://doi.org/#1}{#1}}\fi" + " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ } 'skip$ diff --git a/variants/thu/thuthesis-numeric.bst b/variants/thu/thuthesis-numeric.bst index 8976fd9..b397cd0 100644 --- a/variants/thu/thuthesis-numeric.bst +++ b/variants/thu/thuthesis-numeric.bst @@ -1954,9 +1954,9 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \def\doi#1{#1}\else" + " \providecommand\doi[1]{\nolinkurl{#1}}\else" write$ newline$ - " \def\doi#1{\href{https://doi.org/#1}{#1}}\fi" + " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ } 'skip$ diff --git a/variants/ustc/ustcthesis-authoryear.bst b/variants/ustc/ustcthesis-authoryear.bst index ebc53c3..2746082 100644 --- a/variants/ustc/ustcthesis-authoryear.bst +++ b/variants/ustc/ustcthesis-authoryear.bst @@ -2119,9 +2119,9 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \def\doi#1{#1}\else" + " \providecommand\doi[1]{\nolinkurl{#1}}\else" write$ newline$ - " \def\doi#1{\href{https://doi.org/#1}{#1}}\fi" + " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ } 'skip$ diff --git a/variants/ustc/ustcthesis-bachelor.bst b/variants/ustc/ustcthesis-bachelor.bst index 9d0ef8b..ff292a2 100644 --- a/variants/ustc/ustcthesis-bachelor.bst +++ b/variants/ustc/ustcthesis-bachelor.bst @@ -1942,9 +1942,9 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \def\doi#1{#1}\else" + " \providecommand\doi[1]{\nolinkurl{#1}}\else" write$ newline$ - " \def\doi#1{\href{https://doi.org/#1}{#1}}\fi" + " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ } 'skip$ diff --git a/variants/ustc/ustcthesis-numerical.bst b/variants/ustc/ustcthesis-numerical.bst index 59e28dd..a19a0d5 100644 --- a/variants/ustc/ustcthesis-numerical.bst +++ b/variants/ustc/ustcthesis-numerical.bst @@ -1940,9 +1940,9 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \def\doi#1{#1}\else" + " \providecommand\doi[1]{\nolinkurl{#1}}\else" write$ newline$ - " \def\doi#1{\href{https://doi.org/#1}{#1}}\fi" + " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ } 'skip$ From d2a7a31087d08bb41d1195883ab8b0ba5bb3cec4 Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Fri, 13 Mar 2020 16:34:01 +0800 Subject: [PATCH 12/16] Update CI --- .github/workflows/install-texlive.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install-texlive.sh b/.github/workflows/install-texlive.sh index 4859363..9b7a05f 100644 --- a/.github/workflows/install-texlive.sh +++ b/.github/workflows/install-texlive.sh @@ -4,7 +4,8 @@ INSTALL="/tmp/install-texlive"; mkdir -p "$INSTALL"; curl -sSL "$REMOTE/install-tl-unx.tar.gz" | tar -xz -C "$INSTALL" \ --strip-components=1; -"$INSTALL/install-tl" -profile .github/workflows/texlive.profile; +"$INSTALL/install-tl" -no-gui -repository $REMOTE \ + -profile .github/workflows/texlive.profile; export PATH="/tmp/texlive/bin/x86_64-linux:$PATH"; From 5e23da86948b521cb520c1befdf601e16196cdac Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Fri, 13 Mar 2020 16:58:46 +0800 Subject: [PATCH 13/16] Remove duplicate code --- gbt7714.dtx | 2 -- 1 file changed, 2 deletions(-) diff --git a/gbt7714.dtx b/gbt7714.dtx index 0c885e2..9026a1d 100644 --- a/gbt7714.dtx +++ b/gbt7714.dtx @@ -425,8 +425,6 @@ \newcommand\gbt@obselete@option[1]{% \PackageWarning{gbt7714}{The option "#1" is obselete}% } -\DeclareOption{authoryear}{} - \DeclareOption{2015}{% \gbt@obselete@option{2015}% \gbt@legacy@interfacetrue From 79b3399a1b8b84d34e49136036f532412d633376 Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Sat, 14 Mar 2020 23:13:06 +0800 Subject: [PATCH 14/16] Update doc --- README.md | 6 +++--- gbt7714.dtx | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7afe22f..149708f 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ and English) for each biblilography entry. - Homepage: https://github.com/CTeX-org/gbt7714-bibtex-style - Maintainer: Zeping Lee -- Email: zeinglee AT gmail DOT com +- Email: zepinglee AT gmail DOT com - License: LaTeX Project Public License 1.3c or later ## 新特性 @@ -147,6 +147,6 @@ and English) for each biblilography entry. - 胡振震 [hushidong/biblatex-gb7714-2015](https://github.com/hushidong/biblatex-gb7714-2015) - 沈周 [szsdk/biblatex-gbt77142005](https://github.com/szsdk/biblatex-gbt77142005) - 胡海星 [Haixing-Hu/GBT7714-2005-BibTeX-Style](https://github.com/Haixing-Hu/GBT7714-2005-BibTeX-Style) -- 李志奇 [基于biblatex的符合GBT7714-2005的中文文献生成工具](http://bbs.ctex.org/forum.php?mod=viewthread&tid=74474) +- 李志奇 [基于biblatex的符合GBT7714-2005的中文文献生成工具](http://bbs.ctex.org/forum.php?mod=viewthread&tid=74474) (not accessible) - Casper Ti. Vector [CasperVector/biblatex-caspervector](https://github.com/CasperVector/biblatex-caspervector) -- 吴凯 [发布GBT7714-2005.bst version1 Beta版](http://bbs.ctex.org/forum.php?mod=viewthread&tid=33591) +- 吴凯 [发布GBT7714-2005.bst version1 Beta版](http://bbs.ctex.org/forum.php?mod=viewthread&tid=33591) (not accessible) diff --git a/gbt7714.dtx b/gbt7714.dtx index 9026a1d..3c26bdb 100644 --- a/gbt7714.dtx +++ b/gbt7714.dtx @@ -366,14 +366,16 @@ % 吴凯. % \newblock 发布GBT7714-2005.bst version1 Beta版\allowbreak[EB/OL]. % \newblock 2006. -% \newblock \url{http://bbs.ctex.org/forum.php?mod=viewthread&tid=33591}. +% \newblock \url{http://bbs.ctex.org/forum.php?mod=viewthread&tid=33591} +% (not accessible). % % \bibitem[李志奇(2013)]{lqz2013} % 李志奇. % \newblock % 基于biblatex的符合GBT7714-2005的中文文献生成工具\allowbreak[EB/OL]. % \newblock 2013. -% \newblock \url{http://bbs.ctex.org/forum.php?mod=viewthread&tid=74474}. +% \newblock \url{http://bbs.ctex.org/forum.php?mod=viewthread&tid=74474} +% (not accessible). % % \bibitem[胡海星(2013)]{hhx2013} % 胡海星. From 67791d8230baa2593d619fd85684da30d3a737f8 Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Sun, 15 Mar 2020 00:06:32 +0800 Subject: [PATCH 15/16] Fix doi when hyperref not loaded --- gbt7714-author-year.bst | 2 +- gbt7714-numerical.bst | 2 +- gbt7714.dtx | 2 +- test/testbst/2015-authoryear.bbl | 2 +- test/testbst/2015-numerical.bbl | 2 +- test/testbst/npr.bbl | 2 +- test/testbst/option-italicjournal.bbl | 2 +- test/testbst/option-linktitle.bbl | 2 +- test/testbst/option-no-medium-type.bbl | 2 +- test/testbst/option-nomark.bbl | 2 +- test/testbst/option-nosentencase.bbl | 2 +- test/testbst/option-noslash.bbl | 2 +- test/testbst/option-noslsn.bbl | 2 +- test/testbst/option-nouppercase.bbl | 2 +- test/testbst/option-nourl.bbl | 2 +- test/testbst/option-only-start-page.bbl | 2 +- test/testbst/ustc-authoryear.bbl | 2 +- test/testbst/ustc-bachelor.bbl | 2 +- test/testbst/ustc-numerical.bbl | 2 +- variants/2005/gbt7714-2005-author-year.bst | 2 +- variants/2005/gbt7714-2005-numerical.bst | 2 +- variants/npr/npr.bst | 2 +- variants/thu/thuthesis-author-year.bst | 2 +- variants/thu/thuthesis-bachelor.bst | 2 +- variants/thu/thuthesis-numeric.bst | 2 +- variants/ustc/ustcthesis-authoryear.bst | 2 +- variants/ustc/ustcthesis-bachelor.bst | 2 +- variants/ustc/ustcthesis-numerical.bst | 2 +- 28 files changed, 28 insertions(+), 28 deletions(-) diff --git a/gbt7714-author-year.bst b/gbt7714-author-year.bst index e0dcfa4..57ae555 100644 --- a/gbt7714-author-year.bst +++ b/gbt7714-author-year.bst @@ -2119,7 +2119,7 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \providecommand\doi[1]{\nolinkurl{#1}}\else" + " \DeclareUrlCommand\doi{\urlstyle{rm}}\else" write$ newline$ " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ diff --git a/gbt7714-numerical.bst b/gbt7714-numerical.bst index 717eba1..d144e8f 100644 --- a/gbt7714-numerical.bst +++ b/gbt7714-numerical.bst @@ -1940,7 +1940,7 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \providecommand\doi[1]{\nolinkurl{#1}}\else" + " \DeclareUrlCommand\doi{\urlstyle{rm}}\else" write$ newline$ " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ diff --git a/gbt7714.dtx b/gbt7714.dtx index 3c26bdb..13c509a 100644 --- a/gbt7714.dtx +++ b/gbt7714.dtx @@ -4130,7 +4130,7 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \providecommand\doi[1]{\nolinkurl{#1}}\else" + " \DeclareUrlCommand\doi{\urlstyle{rm}}\else" write$ newline$ " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ diff --git a/test/testbst/2015-authoryear.bbl b/test/testbst/2015-authoryear.bbl index 059ad0a..9be6601 100644 --- a/test/testbst/2015-authoryear.bbl +++ b/test/testbst/2015-authoryear.bbl @@ -4,7 +4,7 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \providecommand\doi[1]{\nolinkurl{#1}}\else + \DeclareUrlCommand\doi{\urlstyle{rm}}\else \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[刘彻东(1998)]{liuchedong1998zhongguo} diff --git a/test/testbst/2015-numerical.bbl b/test/testbst/2015-numerical.bbl index bb9f79f..1aab973 100644 --- a/test/testbst/2015-numerical.bbl +++ b/test/testbst/2015-numerical.bbl @@ -4,7 +4,7 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \providecommand\doi[1]{\nolinkurl{#1}}\else + \DeclareUrlCommand\doi{\urlstyle{rm}}\else \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} diff --git a/test/testbst/npr.bbl b/test/testbst/npr.bbl index 0d45d24..20bba87 100644 --- a/test/testbst/npr.bbl +++ b/test/testbst/npr.bbl @@ -4,7 +4,7 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \providecommand\doi[1]{\nolinkurl{#1}}\else + \DeclareUrlCommand\doi{\urlstyle{rm}}\else \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} diff --git a/test/testbst/option-italicjournal.bbl b/test/testbst/option-italicjournal.bbl index 7a3d389..64c8835 100644 --- a/test/testbst/option-italicjournal.bbl +++ b/test/testbst/option-italicjournal.bbl @@ -4,7 +4,7 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \providecommand\doi[1]{\nolinkurl{#1}}\else + \DeclareUrlCommand\doi{\urlstyle{rm}}\else \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} diff --git a/test/testbst/option-linktitle.bbl b/test/testbst/option-linktitle.bbl index db4a6ab..fbd2ea3 100644 --- a/test/testbst/option-linktitle.bbl +++ b/test/testbst/option-linktitle.bbl @@ -4,7 +4,7 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \providecommand\doi[1]{\nolinkurl{#1}}\else + \DeclareUrlCommand\doi{\urlstyle{rm}}\else \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} diff --git a/test/testbst/option-no-medium-type.bbl b/test/testbst/option-no-medium-type.bbl index 35a51ea..3fa6993 100644 --- a/test/testbst/option-no-medium-type.bbl +++ b/test/testbst/option-no-medium-type.bbl @@ -4,7 +4,7 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \providecommand\doi[1]{\nolinkurl{#1}}\else + \DeclareUrlCommand\doi{\urlstyle{rm}}\else \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} diff --git a/test/testbst/option-nomark.bbl b/test/testbst/option-nomark.bbl index f1ec525..8fb6806 100644 --- a/test/testbst/option-nomark.bbl +++ b/test/testbst/option-nomark.bbl @@ -4,7 +4,7 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \providecommand\doi[1]{\nolinkurl{#1}}\else + \DeclareUrlCommand\doi{\urlstyle{rm}}\else \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} diff --git a/test/testbst/option-nosentencase.bbl b/test/testbst/option-nosentencase.bbl index bb9f79f..1aab973 100644 --- a/test/testbst/option-nosentencase.bbl +++ b/test/testbst/option-nosentencase.bbl @@ -4,7 +4,7 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \providecommand\doi[1]{\nolinkurl{#1}}\else + \DeclareUrlCommand\doi{\urlstyle{rm}}\else \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} diff --git a/test/testbst/option-noslash.bbl b/test/testbst/option-noslash.bbl index 18ad1f9..b492bcd 100644 --- a/test/testbst/option-noslash.bbl +++ b/test/testbst/option-noslash.bbl @@ -4,7 +4,7 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \providecommand\doi[1]{\nolinkurl{#1}}\else + \DeclareUrlCommand\doi{\urlstyle{rm}}\else \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} diff --git a/test/testbst/option-noslsn.bbl b/test/testbst/option-noslsn.bbl index f1258f3..89c8bab 100644 --- a/test/testbst/option-noslsn.bbl +++ b/test/testbst/option-noslsn.bbl @@ -4,7 +4,7 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \providecommand\doi[1]{\nolinkurl{#1}}\else + \DeclareUrlCommand\doi{\urlstyle{rm}}\else \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} diff --git a/test/testbst/option-nouppercase.bbl b/test/testbst/option-nouppercase.bbl index 5a76520..a6f7d30 100644 --- a/test/testbst/option-nouppercase.bbl +++ b/test/testbst/option-nouppercase.bbl @@ -4,7 +4,7 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \providecommand\doi[1]{\nolinkurl{#1}}\else + \DeclareUrlCommand\doi{\urlstyle{rm}}\else \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} diff --git a/test/testbst/option-nourl.bbl b/test/testbst/option-nourl.bbl index b43b1b4..c841a3f 100644 --- a/test/testbst/option-nourl.bbl +++ b/test/testbst/option-nourl.bbl @@ -4,7 +4,7 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \providecommand\doi[1]{\nolinkurl{#1}}\else + \DeclareUrlCommand\doi{\urlstyle{rm}}\else \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} diff --git a/test/testbst/option-only-start-page.bbl b/test/testbst/option-only-start-page.bbl index a1e1abc..a39e75a 100644 --- a/test/testbst/option-only-start-page.bbl +++ b/test/testbst/option-only-start-page.bbl @@ -4,7 +4,7 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \providecommand\doi[1]{\nolinkurl{#1}}\else + \DeclareUrlCommand\doi{\urlstyle{rm}}\else \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} diff --git a/test/testbst/ustc-authoryear.bbl b/test/testbst/ustc-authoryear.bbl index 0ab4bf6..cae6d0b 100644 --- a/test/testbst/ustc-authoryear.bbl +++ b/test/testbst/ustc-authoryear.bbl @@ -4,7 +4,7 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \providecommand\doi[1]{\nolinkurl{#1}}\else + \DeclareUrlCommand\doi{\urlstyle{rm}}\else \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[刘彻东(1998)]{liuchedong1998zhongguo} diff --git a/test/testbst/ustc-bachelor.bbl b/test/testbst/ustc-bachelor.bbl index e0604e6..5b56291 100644 --- a/test/testbst/ustc-bachelor.bbl +++ b/test/testbst/ustc-bachelor.bbl @@ -4,7 +4,7 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \providecommand\doi[1]{\nolinkurl{#1}}\else + \DeclareUrlCommand\doi{\urlstyle{rm}}\else \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} diff --git a/test/testbst/ustc-numerical.bbl b/test/testbst/ustc-numerical.bbl index 5a6eb81..10e0bb3 100644 --- a/test/testbst/ustc-numerical.bbl +++ b/test/testbst/ustc-numerical.bbl @@ -4,7 +4,7 @@ \expandafter\ifx\csname urlstyle\endcsname\relax\else \urlstyle{same}\fi \expandafter\ifx\csname href\endcsname\relax - \providecommand\doi[1]{\nolinkurl{#1}}\else + \DeclareUrlCommand\doi{\urlstyle{rm}}\else \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi \bibitem[陈登原(2000)]{chendengyuan2000guoshijiuwen} diff --git a/variants/2005/gbt7714-2005-author-year.bst b/variants/2005/gbt7714-2005-author-year.bst index 8a742c8..ac189f7 100644 --- a/variants/2005/gbt7714-2005-author-year.bst +++ b/variants/2005/gbt7714-2005-author-year.bst @@ -2119,7 +2119,7 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \providecommand\doi[1]{\nolinkurl{#1}}\else" + " \DeclareUrlCommand\doi{\urlstyle{rm}}\else" write$ newline$ " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ diff --git a/variants/2005/gbt7714-2005-numerical.bst b/variants/2005/gbt7714-2005-numerical.bst index 5870ca6..7977ada 100644 --- a/variants/2005/gbt7714-2005-numerical.bst +++ b/variants/2005/gbt7714-2005-numerical.bst @@ -1940,7 +1940,7 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \providecommand\doi[1]{\nolinkurl{#1}}\else" + " \DeclareUrlCommand\doi{\urlstyle{rm}}\else" write$ newline$ " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ diff --git a/variants/npr/npr.bst b/variants/npr/npr.bst index 234d5ef..e498d01 100644 --- a/variants/npr/npr.bst +++ b/variants/npr/npr.bst @@ -1980,7 +1980,7 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \providecommand\doi[1]{\nolinkurl{#1}}\else" + " \DeclareUrlCommand\doi{\urlstyle{rm}}\else" write$ newline$ " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ diff --git a/variants/thu/thuthesis-author-year.bst b/variants/thu/thuthesis-author-year.bst index 4ebb56c..3249edc 100644 --- a/variants/thu/thuthesis-author-year.bst +++ b/variants/thu/thuthesis-author-year.bst @@ -2133,7 +2133,7 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \providecommand\doi[1]{\nolinkurl{#1}}\else" + " \DeclareUrlCommand\doi{\urlstyle{rm}}\else" write$ newline$ " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ diff --git a/variants/thu/thuthesis-bachelor.bst b/variants/thu/thuthesis-bachelor.bst index 895914b..cb73207 100644 --- a/variants/thu/thuthesis-bachelor.bst +++ b/variants/thu/thuthesis-bachelor.bst @@ -1940,7 +1940,7 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \providecommand\doi[1]{\nolinkurl{#1}}\else" + " \DeclareUrlCommand\doi{\urlstyle{rm}}\else" write$ newline$ " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ diff --git a/variants/thu/thuthesis-numeric.bst b/variants/thu/thuthesis-numeric.bst index b397cd0..e9bb914 100644 --- a/variants/thu/thuthesis-numeric.bst +++ b/variants/thu/thuthesis-numeric.bst @@ -1954,7 +1954,7 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \providecommand\doi[1]{\nolinkurl{#1}}\else" + " \DeclareUrlCommand\doi{\urlstyle{rm}}\else" write$ newline$ " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ diff --git a/variants/ustc/ustcthesis-authoryear.bst b/variants/ustc/ustcthesis-authoryear.bst index 2746082..c27d3d3 100644 --- a/variants/ustc/ustcthesis-authoryear.bst +++ b/variants/ustc/ustcthesis-authoryear.bst @@ -2119,7 +2119,7 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \providecommand\doi[1]{\nolinkurl{#1}}\else" + " \DeclareUrlCommand\doi{\urlstyle{rm}}\else" write$ newline$ " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ diff --git a/variants/ustc/ustcthesis-bachelor.bst b/variants/ustc/ustcthesis-bachelor.bst index ff292a2..696d1f8 100644 --- a/variants/ustc/ustcthesis-bachelor.bst +++ b/variants/ustc/ustcthesis-bachelor.bst @@ -1942,7 +1942,7 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \providecommand\doi[1]{\nolinkurl{#1}}\else" + " \DeclareUrlCommand\doi{\urlstyle{rm}}\else" write$ newline$ " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ diff --git a/variants/ustc/ustcthesis-numerical.bst b/variants/ustc/ustcthesis-numerical.bst index a19a0d5..59680e1 100644 --- a/variants/ustc/ustcthesis-numerical.bst +++ b/variants/ustc/ustcthesis-numerical.bst @@ -1940,7 +1940,7 @@ FUNCTION {begin.bib} show.doi { "\expandafter\ifx\csname href\endcsname\relax" write$ newline$ - " \providecommand\doi[1]{\nolinkurl{#1}}\else" + " \DeclareUrlCommand\doi{\urlstyle{rm}}\else" write$ newline$ " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi" write$ newline$ From b27e8cb4573deff0f547609b6254b435fb2c2325 Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Sat, 14 Mar 2020 23:16:23 +0800 Subject: [PATCH 16/16] Release version v2.0.1 --- CHANGELOG.md | 5 ++++- gbt7714-author-year.bst | 2 +- gbt7714-numerical.bst | 2 +- gbt7714.dtx | 2 +- gbt7714.ins | 2 +- gbt7714.sty | 6 ++---- variants/2005/gbt7714-2005-author-year.bst | 2 +- variants/2005/gbt7714-2005-numerical.bst | 2 +- variants/gbt7714-variants.ins | 2 +- variants/npr/npr.bst | 2 +- variants/thu/thuthesis-author-year.bst | 2 +- variants/thu/thuthesis-bachelor.bst | 2 +- variants/thu/thuthesis-numeric.bst | 2 +- variants/ustc/ustcthesis-authoryear.bst | 2 +- variants/ustc/ustcthesis-bachelor.bst | 2 +- variants/ustc/ustcthesis-numerical.bst | 2 +- 16 files changed, 20 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06eae1b..fa93762 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] + +## [v2.0.1] - 2020-03-14 ### Added - 新增选项 `only.start.page` - 增加选项 `title.in.journal` @@ -91,7 +93,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Changed - Initial release. -[Unreleased]: https://github.com/CTeX-org/gbt7714-bibtex-style/compare/v2.0...HEAD +[Unreleased]: https://github.com/CTeX-org/gbt7714-bibtex-style/compare/v2.0.1...HEAD +[v2.0.1]: https://github.com/CTeX-org/gbt7714-bibtex-style/compare/v2.0...v2.0.1 [v2.0]: https://github.com/CTeX-org/gbt7714-bibtex-style/compare/v1.1.2...v2.0 [v1.1.2]: https://github.com/CTeX-org/gbt7714-bibtex-style/compare/v1.1.1...v1.1.2 [v1.1.1]: https://github.com/CTeX-org/gbt7714-bibtex-style/compare/v1.1...v1.1.1 diff --git a/gbt7714-author-year.bst b/gbt7714-author-year.bst index 57ae555..65cc492 100644 --- a/gbt7714-author-year.bst +++ b/gbt7714-author-year.bst @@ -8,7 +8,7 @@ %% ------------------------------------------------------------------- %% GB/T 7714-2015 BibTeX Style %% https://github.com/CTeX-org/gbt7714-bibtex-style -%% Version: 2020/03/04 v2.0 +%% Version: 2020/03/14 v2.0.1 %% ------------------------------------------------------------------- %% Copyright (C) 2016-2020 by Zeping Lee %% ------------------------------------------------------------------- diff --git a/gbt7714-numerical.bst b/gbt7714-numerical.bst index d144e8f..c8424d0 100644 --- a/gbt7714-numerical.bst +++ b/gbt7714-numerical.bst @@ -8,7 +8,7 @@ %% ------------------------------------------------------------------- %% GB/T 7714-2015 BibTeX Style %% https://github.com/CTeX-org/gbt7714-bibtex-style -%% Version: 2020/03/04 v2.0 +%% Version: 2020/03/14 v2.0.1 %% ------------------------------------------------------------------- %% Copyright (C) 2016-2020 by Zeping Lee %% ------------------------------------------------------------------- diff --git a/gbt7714.dtx b/gbt7714.dtx index 13c509a..e429388 100644 --- a/gbt7714.dtx +++ b/gbt7714.dtx @@ -17,7 +17,7 @@ % \iffalse %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesPackage{gbt7714} -% [2020/03/04 v2.0 GB/T 7714-2015 BibTeX Style] +% [2020/03/14 v2.0.1 GB/T 7714-2015 BibTeX Style] % %<*driver> \documentclass[a4paper]{ltxdoc} diff --git a/gbt7714.ins b/gbt7714.ins index a2161d1..5d0ba5e 100644 --- a/gbt7714.ins +++ b/gbt7714.ins @@ -5,7 +5,7 @@ ------------------------------------------------------------------- GB/T 7714-2015 BibTeX Style https://github.com/CTeX-org/gbt7714-bibtex-style -Version: 2020/03/04 v2.0 +Version: 2020/03/14 v2.0.1 ------------------------------------------------------------------- Copyright (C) 2016-\the\year by Zeping Lee ------------------------------------------------------------------- diff --git a/gbt7714.sty b/gbt7714.sty index c7416db..fd7fe5c 100644 --- a/gbt7714.sty +++ b/gbt7714.sty @@ -8,7 +8,7 @@ %% ------------------------------------------------------------------- %% GB/T 7714-2015 BibTeX Style %% https://github.com/CTeX-org/gbt7714-bibtex-style -%% Version: 2020/03/04 v2.0 +%% Version: 2020/03/14 v2.0.1 %% ------------------------------------------------------------------- %% Copyright (C) 2016-2020 by Zeping Lee %% ------------------------------------------------------------------- @@ -22,7 +22,7 @@ %% ------------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{gbt7714} - [2020/03/04 v2.0 GB/T 7714-2015 BibTeX Style] + [2020/03/14 v2.0.1 GB/T 7714-2015 BibTeX Style] \newif\ifgbt@legacy@interface \newif\ifgbt@mmxv \newif\ifgbt@numerical @@ -30,8 +30,6 @@ \newcommand\gbt@obselete@option[1]{% \PackageWarning{gbt7714}{The option "#1" is obselete}% } -\DeclareOption{authoryear}{} - \DeclareOption{2015}{% \gbt@obselete@option{2015}% \gbt@legacy@interfacetrue diff --git a/variants/2005/gbt7714-2005-author-year.bst b/variants/2005/gbt7714-2005-author-year.bst index ac189f7..2bb906c 100644 --- a/variants/2005/gbt7714-2005-author-year.bst +++ b/variants/2005/gbt7714-2005-author-year.bst @@ -8,7 +8,7 @@ %% ------------------------------------------------------------------- %% GB/T 7714-2015 BibTeX Style %% https://github.com/CTeX-org/gbt7714-bibtex-style -%% Version: 2020/03/04 v2.0 +%% Version: 2020/03/14 v2.0.1 %% ------------------------------------------------------------------- %% Copyright (C) 2016-2020 by Zeping Lee %% ------------------------------------------------------------------- diff --git a/variants/2005/gbt7714-2005-numerical.bst b/variants/2005/gbt7714-2005-numerical.bst index 7977ada..9a6b224 100644 --- a/variants/2005/gbt7714-2005-numerical.bst +++ b/variants/2005/gbt7714-2005-numerical.bst @@ -8,7 +8,7 @@ %% ------------------------------------------------------------------- %% GB/T 7714-2015 BibTeX Style %% https://github.com/CTeX-org/gbt7714-bibtex-style -%% Version: 2020/03/04 v2.0 +%% Version: 2020/03/14 v2.0.1 %% ------------------------------------------------------------------- %% Copyright (C) 2016-2020 by Zeping Lee %% ------------------------------------------------------------------- diff --git a/variants/gbt7714-variants.ins b/variants/gbt7714-variants.ins index 4a4d476..f3175b7 100644 --- a/variants/gbt7714-variants.ins +++ b/variants/gbt7714-variants.ins @@ -5,7 +5,7 @@ ------------------------------------------------------------------- GB/T 7714-2015 BibTeX Style https://github.com/CTeX-org/gbt7714-bibtex-style -Version: 2020/03/04 v2.0 +Version: 2020/03/14 v2.0.1 ------------------------------------------------------------------- Copyright (C) 2016-\the\year by Zeping Lee ------------------------------------------------------------------- diff --git a/variants/npr/npr.bst b/variants/npr/npr.bst index e498d01..d9a1e77 100644 --- a/variants/npr/npr.bst +++ b/variants/npr/npr.bst @@ -8,7 +8,7 @@ %% ------------------------------------------------------------------- %% GB/T 7714-2015 BibTeX Style %% https://github.com/CTeX-org/gbt7714-bibtex-style -%% Version: 2020/03/04 v2.0 +%% Version: 2020/03/14 v2.0.1 %% ------------------------------------------------------------------- %% Copyright (C) 2016-2020 by Zeping Lee %% ------------------------------------------------------------------- diff --git a/variants/thu/thuthesis-author-year.bst b/variants/thu/thuthesis-author-year.bst index 3249edc..e8952a9 100644 --- a/variants/thu/thuthesis-author-year.bst +++ b/variants/thu/thuthesis-author-year.bst @@ -8,7 +8,7 @@ %% ------------------------------------------------------------------- %% GB/T 7714-2015 BibTeX Style %% https://github.com/CTeX-org/gbt7714-bibtex-style -%% Version: 2020/03/04 v2.0 +%% Version: 2020/03/14 v2.0.1 %% ------------------------------------------------------------------- %% Copyright (C) 2016-2020 by Zeping Lee %% ------------------------------------------------------------------- diff --git a/variants/thu/thuthesis-bachelor.bst b/variants/thu/thuthesis-bachelor.bst index cb73207..aeba435 100644 --- a/variants/thu/thuthesis-bachelor.bst +++ b/variants/thu/thuthesis-bachelor.bst @@ -8,7 +8,7 @@ %% ------------------------------------------------------------------- %% GB/T 7714-2015 BibTeX Style %% https://github.com/CTeX-org/gbt7714-bibtex-style -%% Version: 2020/03/04 v2.0 +%% Version: 2020/03/14 v2.0.1 %% ------------------------------------------------------------------- %% Copyright (C) 2016-2020 by Zeping Lee %% ------------------------------------------------------------------- diff --git a/variants/thu/thuthesis-numeric.bst b/variants/thu/thuthesis-numeric.bst index e9bb914..525a40c 100644 --- a/variants/thu/thuthesis-numeric.bst +++ b/variants/thu/thuthesis-numeric.bst @@ -8,7 +8,7 @@ %% ------------------------------------------------------------------- %% GB/T 7714-2015 BibTeX Style %% https://github.com/CTeX-org/gbt7714-bibtex-style -%% Version: 2020/03/04 v2.0 +%% Version: 2020/03/14 v2.0.1 %% ------------------------------------------------------------------- %% Copyright (C) 2016-2020 by Zeping Lee %% ------------------------------------------------------------------- diff --git a/variants/ustc/ustcthesis-authoryear.bst b/variants/ustc/ustcthesis-authoryear.bst index c27d3d3..f6caddb 100644 --- a/variants/ustc/ustcthesis-authoryear.bst +++ b/variants/ustc/ustcthesis-authoryear.bst @@ -8,7 +8,7 @@ %% ------------------------------------------------------------------- %% GB/T 7714-2015 BibTeX Style %% https://github.com/CTeX-org/gbt7714-bibtex-style -%% Version: 2020/03/04 v2.0 +%% Version: 2020/03/14 v2.0.1 %% ------------------------------------------------------------------- %% Copyright (C) 2016-2020 by Zeping Lee %% ------------------------------------------------------------------- diff --git a/variants/ustc/ustcthesis-bachelor.bst b/variants/ustc/ustcthesis-bachelor.bst index 696d1f8..1e371b3 100644 --- a/variants/ustc/ustcthesis-bachelor.bst +++ b/variants/ustc/ustcthesis-bachelor.bst @@ -8,7 +8,7 @@ %% ------------------------------------------------------------------- %% GB/T 7714-2015 BibTeX Style %% https://github.com/CTeX-org/gbt7714-bibtex-style -%% Version: 2020/03/04 v2.0 +%% Version: 2020/03/14 v2.0.1 %% ------------------------------------------------------------------- %% Copyright (C) 2016-2020 by Zeping Lee %% ------------------------------------------------------------------- diff --git a/variants/ustc/ustcthesis-numerical.bst b/variants/ustc/ustcthesis-numerical.bst index 59680e1..cf58392 100644 --- a/variants/ustc/ustcthesis-numerical.bst +++ b/variants/ustc/ustcthesis-numerical.bst @@ -8,7 +8,7 @@ %% ------------------------------------------------------------------- %% GB/T 7714-2015 BibTeX Style %% https://github.com/CTeX-org/gbt7714-bibtex-style -%% Version: 2020/03/04 v2.0 +%% Version: 2020/03/14 v2.0.1 %% ------------------------------------------------------------------- %% Copyright (C) 2016-2020 by Zeping Lee %% -------------------------------------------------------------------