summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-06-08 21:18:36 +0000
committerKarl Berry <karl@freefriends.org>2020-06-08 21:18:36 +0000
commit520fec3063ffc0dc67fa9bc435e18770dc071729 (patch)
treebfff3493447d9848d6a7708df6d4bbabc19957c5
parentd43d80f432c70fb2110bdcfb2cdd335858a5b2c7 (diff)
gbt7714 (8jun20)
git-svn-id: svn://tug.org/texlive/trunk@55482 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/bibtex/bst/gbt7714/gbt7714-author-year.bst137
-rw-r--r--Master/texmf-dist/bibtex/bst/gbt7714/gbt7714-numerical.bst133
-rw-r--r--Master/texmf-dist/doc/bibtex/gbt7714/CHANGELOG.md118
-rw-r--r--Master/texmf-dist/doc/bibtex/gbt7714/README.md4
-rw-r--r--Master/texmf-dist/doc/bibtex/gbt7714/gbt7714.pdfbin344133 -> 342504 bytes
-rw-r--r--Master/texmf-dist/source/bibtex/gbt7714/gbt7714.dtx214
-rw-r--r--Master/texmf-dist/source/bibtex/gbt7714/gbt7714.ins4
-rw-r--r--Master/texmf-dist/tex/latex/gbt7714/gbt7714.sty18
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check3
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds1
10 files changed, 502 insertions, 130 deletions
diff --git a/Master/texmf-dist/bibtex/bst/gbt7714/gbt7714-author-year.bst b/Master/texmf-dist/bibtex/bst/gbt7714/gbt7714-author-year.bst
index 65cc492ee71..de890a107a8 100644
--- a/Master/texmf-dist/bibtex/bst/gbt7714/gbt7714-author-year.bst
+++ b/Master/texmf-dist/bibtex/bst/gbt7714/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/14 v2.0.1
+%% Version: 2020/06/08 v2.0.2
%% -------------------------------------------------------------------
%% Copyright (C) 2016-2020 by Zeping Lee <zepinglee AT gmail.com>
%% -------------------------------------------------------------------
@@ -35,10 +35,10 @@ INTEGERS {
italic.journal
bold.journal.volume
show.missing.address.publisher
- space.before.pages
only.start.page
show.url
show.doi
+ show.preprint
show.note
show.english.translation
lang.zh.order
@@ -64,10 +64,10 @@ FUNCTION {load.config}
#0 'italic.journal :=
#0 'bold.journal.volume :=
#1 'show.missing.address.publisher :=
- #0 'space.before.pages :=
#0 'only.start.page :=
#1 'show.url :=
#1 'show.doi :=
+ #0 'show.preprint :=
#0 'show.note :=
#0 'show.english.translation :=
#1 'lang.zh.order :=
@@ -79,12 +79,14 @@ FUNCTION {load.config}
ENTRY
{ address
+ archivePrefix
author
booktitle
date
doi
edition
editor
+ eprint
howpublished
institution
journal
@@ -100,8 +102,8 @@ ENTRY
school
series
title
- translator
translation
+ translator
url
urldate
volume
@@ -493,15 +495,20 @@ FUNCTION {format.names}
{ 's :=
#1 'nameptr :=
s num.names$ 'numnames :=
+ ""
numnames 'namesleft :=
{ namesleft #0 > }
{ s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't :=
+ nameptr #1 >
+ { ", " * }
+ 'skip$
+ if$
nameptr max.num.authors >
- { bbl.et.al
+ { bbl.et.al *
#1 'namesleft :=
}
{ t "others" =
- { bbl.et.al }
+ { bbl.et.al * }
{ t get.str.lang 'name.lang :=
name.lang lang.en =
{ t #1 "{vv~}{ll}{~f{~}}" format.name$
@@ -513,14 +520,11 @@ FUNCTION {format.names}
}
{ t #1 "{ll}{ff}" format.name$ }
if$
+ *
}
if$
}
if$
- nameptr #1 >
- { ", " swap$ * * }
- 'skip$
- if$
nameptr #1 + 'nameptr :=
namesleft #1 - 'namesleft :=
}
@@ -1163,6 +1167,13 @@ FUNCTION {hyphenate}
FUNCTION {format.pages}
{ pages empty$
{ "" }
+ { pages hyphenate }
+ if$
+}
+
+FUNCTION {format.extracted.pages}
+{ pages empty$
+ { "" }
{ pages
only.start.page
'extract.before.dash
@@ -1193,11 +1204,8 @@ FUNCTION {format.journal.number}
FUNCTION {format.journal.pages}
{ pages empty$
{ "" }
- { space.before.pages
- { ": " }
- { ":\penalty0 " }
- if$
- format.pages *
+ { ": "
+ format.extracted.pages *
}
if$
}
@@ -1374,6 +1382,27 @@ FUNCTION {check.electronic}
if$
}
+FUNCTION {format.eprint}
+{ ""
+ archivePrefix empty$ not
+ { archivePrefix * ": " *
+ "\eprint{https://" *
+ archivePrefix "l" change.case$ * ".org/abs/" * eprint * "}{" *
+ eprint * "}" *
+ }
+ { eprint }
+ if$
+}
+
+FUNCTION {output.eprint}
+{ show.preprint eprint empty$ not and
+ { new.block
+ format.eprint output
+ }
+ 'skip$
+ if$
+}
+
FUNCTION {format.note}
{ note empty$ not show.note and
{ note }
@@ -1477,7 +1506,7 @@ FUNCTION {incollection}
format.edition output
new.block
format.address.publisher output
- format.pages bbl.colon output.after
+ format.extracted.pages bbl.colon output.after
format.urldate "" output.after
output.url
output.doi
@@ -1595,6 +1624,47 @@ FUNCTION {electronic}
fin.entry
}
+FUNCTION {preprint}
+{ output.bibitem
+ output.translation
+ author empty$ not
+ { format.authors }
+ { editor empty$ not
+ { format.editors }
+ { "empty author and editor in " cite$ * warning$
+ bbl.anonymous
+ }
+ if$
+ }
+ if$
+ output
+ period.between.author.year
+ 'new.sentence
+ 'skip$
+ if$
+ format.year "year" output.check
+ new.block
+ title.in.journal
+ { format.series.vol.num.title "title" output.check
+ "Z" set.entry.mark
+ format.mark "" output.after
+ new.block
+ }
+ 'skip$
+ if$
+ format.translators output
+ new.sentence
+ format.edition output
+ new.block
+ output.eprint
+ format.pages bbl.colon output.after
+ format.urldate "" output.after
+ output.url
+ new.block
+ format.note output
+ fin.entry
+}
+
FUNCTION {misc}
{ journal empty$ not
'article
@@ -1602,10 +1672,14 @@ FUNCTION {misc}
'incollection
{ publisher empty$ not
'monograph
- { entry.is.electronic
- 'electronic
- { "Z" set.entry.mark
- monograph
+ { eprint empty$ not show.preprint and
+ 'preprint
+ { entry.is.electronic
+ 'electronic
+ { "Z" set.entry.mark
+ monograph
+ }
+ if$
}
if$
}
@@ -1694,10 +1768,7 @@ FUNCTION {techreport}
misc
}
-FUNCTION {unpublished}
-{ "Z" set.entry.mark
- misc
-}
+FUNCTION {unpublished} { misc }
FUNCTION {default.type} { misc }
@@ -2116,17 +2187,21 @@ FUNCTION {begin.bib}
write$ newline$
" \urlstyle{same}\fi"
write$ newline$
- show.doi
- { "\expandafter\ifx\csname href\endcsname\relax"
+ "\expandafter\ifx\csname href\endcsname\relax"
+ write$ newline$
+ " \DeclareUrlCommand\doi{\urlstyle{rm}}"
+ write$ newline$
+ " \def\eprint#1#2{#2}"
write$ newline$
- " \DeclareUrlCommand\doi{\urlstyle{rm}}\else"
+ "\else"
+ write$ newline$
+ " \def\doi#1{\href{https://doi.org/#1}{\nolinkurl{#1}}}"
+ write$ newline$
+ " \let\eprint\href"
write$ newline$
- " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi"
+ "\fi"
write$ newline$
}
- 'skip$
- if$
-}
FUNCTION {end.bib}
{ newline$
diff --git a/Master/texmf-dist/bibtex/bst/gbt7714/gbt7714-numerical.bst b/Master/texmf-dist/bibtex/bst/gbt7714/gbt7714-numerical.bst
index c8424d0242d..c2064c60019 100644
--- a/Master/texmf-dist/bibtex/bst/gbt7714/gbt7714-numerical.bst
+++ b/Master/texmf-dist/bibtex/bst/gbt7714/gbt7714-numerical.bst
@@ -8,7 +8,7 @@
%% -------------------------------------------------------------------
%% GB/T 7714-2015 BibTeX Style
%% https://github.com/CTeX-org/gbt7714-bibtex-style
-%% Version: 2020/03/14 v2.0.1
+%% Version: 2020/06/08 v2.0.2
%% -------------------------------------------------------------------
%% Copyright (C) 2016-2020 by Zeping Lee <zepinglee AT gmail.com>
%% -------------------------------------------------------------------
@@ -35,10 +35,10 @@ INTEGERS {
italic.journal
bold.journal.volume
show.missing.address.publisher
- space.before.pages
only.start.page
show.url
show.doi
+ show.preprint
show.note
show.english.translation
}
@@ -58,22 +58,24 @@ FUNCTION {load.config}
#0 'italic.journal :=
#0 'bold.journal.volume :=
#1 'show.missing.address.publisher :=
- #0 'space.before.pages :=
#0 'only.start.page :=
#1 'show.url :=
#1 'show.doi :=
+ #0 'show.preprint :=
#0 'show.note :=
#0 'show.english.translation :=
}
ENTRY
{ address
+ archivePrefix
author
booktitle
date
doi
edition
editor
+ eprint
howpublished
institution
journal
@@ -89,8 +91,8 @@ ENTRY
school
series
title
- translator
translation
+ translator
url
urldate
volume
@@ -482,15 +484,20 @@ FUNCTION {format.names}
{ 's :=
#1 'nameptr :=
s num.names$ 'numnames :=
+ ""
numnames 'namesleft :=
{ namesleft #0 > }
{ s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't :=
+ nameptr #1 >
+ { ", " * }
+ 'skip$
+ if$
nameptr max.num.authors >
- { bbl.et.al
+ { bbl.et.al *
#1 'namesleft :=
}
{ t "others" =
- { bbl.et.al }
+ { bbl.et.al * }
{ t get.str.lang 'name.lang :=
name.lang lang.en =
{ t #1 "{vv~}{ll}{~f{~}}" format.name$
@@ -502,14 +509,11 @@ FUNCTION {format.names}
}
{ t #1 "{ll}{ff}" format.name$ }
if$
+ *
}
if$
}
if$
- nameptr #1 >
- { ", " swap$ * * }
- 'skip$
- if$
nameptr #1 + 'nameptr :=
namesleft #1 - 'namesleft :=
}
@@ -1152,6 +1156,13 @@ FUNCTION {hyphenate}
FUNCTION {format.pages}
{ pages empty$
{ "" }
+ { pages hyphenate }
+ if$
+}
+
+FUNCTION {format.extracted.pages}
+{ pages empty$
+ { "" }
{ pages
only.start.page
'extract.before.dash
@@ -1182,11 +1193,8 @@ FUNCTION {format.journal.number}
FUNCTION {format.journal.pages}
{ pages empty$
{ "" }
- { space.before.pages
- { ": " }
- { ":\penalty0 " }
- if$
- format.pages *
+ { ": "
+ format.extracted.pages *
}
if$
}
@@ -1363,6 +1371,27 @@ FUNCTION {check.electronic}
if$
}
+FUNCTION {format.eprint}
+{ ""
+ archivePrefix empty$ not
+ { archivePrefix * ": " *
+ "\eprint{https://" *
+ archivePrefix "l" change.case$ * ".org/abs/" * eprint * "}{" *
+ eprint * "}" *
+ }
+ { eprint }
+ if$
+}
+
+FUNCTION {output.eprint}
+{ show.preprint eprint empty$ not and
+ { new.block
+ format.eprint output
+ }
+ 'skip$
+ if$
+}
+
FUNCTION {format.note}
{ note empty$ not show.note and
{ note }
@@ -1458,7 +1487,7 @@ FUNCTION {incollection}
new.block
format.address.publisher output
format.year "year" output.check
- format.pages bbl.colon output.after
+ format.extracted.pages bbl.colon output.after
format.urldate "" output.after
output.url
output.doi
@@ -1562,6 +1591,43 @@ FUNCTION {electronic}
fin.entry
}
+FUNCTION {preprint}
+{ output.bibitem
+ output.translation
+ author empty$ not
+ { format.authors }
+ { editor empty$ not
+ { format.editors }
+ { "empty author and editor in " cite$ * warning$
+ ""
+ }
+ if$
+ }
+ if$
+ output
+ new.block
+ title.in.journal
+ { format.series.vol.num.title "title" output.check
+ "Z" set.entry.mark
+ format.mark "" output.after
+ new.block
+ }
+ 'skip$
+ if$
+ format.translators output
+ new.sentence
+ format.edition output
+ new.block
+ output.eprint
+ format.year "year" output.check
+ format.pages bbl.colon output.after
+ format.urldate "" output.after
+ output.url
+ new.block
+ format.note output
+ fin.entry
+}
+
FUNCTION {misc}
{ journal empty$ not
'article
@@ -1569,10 +1635,14 @@ FUNCTION {misc}
'incollection
{ publisher empty$ not
'monograph
- { entry.is.electronic
- 'electronic
- { "Z" set.entry.mark
- monograph
+ { eprint empty$ not show.preprint and
+ 'preprint
+ { entry.is.electronic
+ 'electronic
+ { "Z" set.entry.mark
+ monograph
+ }
+ if$
}
if$
}
@@ -1661,10 +1731,7 @@ FUNCTION {techreport}
misc
}
-FUNCTION {unpublished}
-{ "Z" set.entry.mark
- misc
-}
+FUNCTION {unpublished} { misc }
FUNCTION {default.type} { misc }
@@ -1937,17 +2004,21 @@ FUNCTION {begin.bib}
write$ newline$
" \urlstyle{same}\fi"
write$ newline$
- show.doi
- { "\expandafter\ifx\csname href\endcsname\relax"
+ "\expandafter\ifx\csname href\endcsname\relax"
+ write$ newline$
+ " \DeclareUrlCommand\doi{\urlstyle{rm}}"
+ write$ newline$
+ " \def\eprint#1#2{#2}"
write$ newline$
- " \DeclareUrlCommand\doi{\urlstyle{rm}}\else"
+ "\else"
+ write$ newline$
+ " \def\doi#1{\href{https://doi.org/#1}{\nolinkurl{#1}}}"
+ write$ newline$
+ " \let\eprint\href"
write$ newline$
- " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi"
+ "\fi"
write$ newline$
}
- 'skip$
- if$
-}
FUNCTION {end.bib}
{ newline$
diff --git a/Master/texmf-dist/doc/bibtex/gbt7714/CHANGELOG.md b/Master/texmf-dist/doc/bibtex/gbt7714/CHANGELOG.md
new file mode 100644
index 00000000000..8267a433477
--- /dev/null
+++ b/Master/texmf-dist/doc/bibtex/gbt7714/CHANGELOG.md
@@ -0,0 +1,118 @@
+# Changelog
+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.2] - 2020-06-08
+### Changed
+- 期刊的页码前默认有空格(#62)
+
+### Added
+- 支持预印本(preprint)文献类型
+
+## [v2.0.1] - 2020-03-14
+### Added
+- 新增选项 `only.start.page`
+- 增加选项 `title.in.journal`
+- 增加选项 `abbreviate.journal`
+- 增加选项 `show.english.translation`
+
+### Fixed
+- 修正 DOI 中含有下划线的问题
+
+## [v2.0] - 2020-03-04
+### Changed
+- 需要用户在主文档使用 `\bibliographystyle` 命令
+- 更改 `bst` 文件名为 `-numerical` 和 `-author-year`
+- 不再默认对顺序编码制的引用标注进行排序
+
+### Added
+- 兼容 `chapterbib` 宏包(#48)
+
+## [v1.1.2] - 2019-11-20
+### Changed
+- 不再依赖 `etoolbox`
+
+### Fixed
+- 修正与 `newtx` 冲突([#42](https://github.com/CTeX-org/gbt7714-bibtex-style/issues/42))
+
+## [v1.1.1] - 2019-03-21
+### Added
+- 允许自定义文种的顺序
+
+## [v1.1] - 2019-01-02
+### Added
+- 允许自定义“et al”
+
+### Changed
+- 修正 series 的 bug
+
+## [v1.0.9] - 2018-08-05
+### Added
+- 增加选项在题名添加超链接
+
+### Changed
+- 不再转换题名 volume 的大小写
+- 修正不显示 url 的选项
+
+## [v1.0.8] - 2018-06-23
+### Added
+- 新增接口供用户自定义样式
+- 支持 howpublished 中的 url
+
+### Changed
+- 使用 `xurl` 的方法改进 URL 断行
+- 使用“~”连接英文姓名
+
+## [v1.0.7] - 2018-05-12
+### Changed
+- 修正了检测 Unicode 语言
+
+## [v1.0.6] - 2018-05-10
+### Changed
+- 文献列表的数字标签左对齐
+- 不再处理中文标题的英文单词的大小写
+
+## [v1.0.5] - 2018-04-18
+### Added
+- 允许著录多个 DOI
+
+## [v1.0.4] - 2018-04-12
+### Changed
+- 页码的连接号由 en dash 改为 hyphen
+
+## [v1.0.3] - 2018-03-29
+### Changed
+- 顺序编码制连续两个文献引用之间使用连接号
+
+## [v1.0.2] - 2018-03-16
+### Changed
+- 正确识别姓名中的“others”
+
+## [v1.0.1] - 2018-03-09
+### Changed
+- 著者出版年制的文献引用不再排序
+
+## [v1.0] - 2018-01-01
+### Changed
+- Initial release.
+
+[Unreleased]: https://github.com/CTeX-org/gbt7714-bibtex-style/compare/v2.0.2...HEAD
+[v2.0.2]: https://github.com/CTeX-org/gbt7714-bibtex-style/compare/v2.0.1...v2.0.2
+[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
+[v1.1]: https://github.com/CTeX-org/gbt7714-bibtex-style/compare/v1.0.9...v1.1
+[v1.0.9]: https://github.com/CTeX-org/gbt7714-bibtex-style/compare/v1.0.8...v1.0.9
+[v1.0.8]: https://github.com/CTeX-org/gbt7714-bibtex-style/compare/v1.0.7...v1.0.8
+[v1.0.7]: https://github.com/CTeX-org/gbt7714-bibtex-style/compare/v1.0.6...v1.0.7
+[v1.0.6]: https://github.com/CTeX-org/gbt7714-bibtex-style/compare/v1.0.5...v1.0.6
+[v1.0.5]: https://github.com/CTeX-org/gbt7714-bibtex-style/compare/v1.0.4...v1.0.5
+[v1.0.4]: https://github.com/CTeX-org/gbt7714-bibtex-style/compare/v1.0.3...v1.0.4
+[v1.0.3]: https://github.com/CTeX-org/gbt7714-bibtex-style/compare/v1.0.2...v1.0.3
+[v1.0.2]: https://github.com/CTeX-org/gbt7714-bibtex-style/compare/v1.0.1...v1.0.2
+[v1.0.1]: https://github.com/CTeX-org/gbt7714-bibtex-style/compare/v1.0...v1.0.1
+[v1.0]: https://github.com/CTeX-org/gbt7714-bibtex-style/releases/tag/v1.0
diff --git a/Master/texmf-dist/doc/bibtex/gbt7714/README.md b/Master/texmf-dist/doc/bibtex/gbt7714/README.md
index 149708f8a72..c582de03578 100644
--- a/Master/texmf-dist/doc/bibtex/gbt7714/README.md
+++ b/Master/texmf-dist/doc/bibtex/gbt7714/README.md
@@ -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) (not accessible)
+- 李志奇 基于biblatex的符合GBT7714-2005的中文文献生成工具
- 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) (not accessible)
+- 吴凯 发布GBT7714-2005.bst version1 Beta版
diff --git a/Master/texmf-dist/doc/bibtex/gbt7714/gbt7714.pdf b/Master/texmf-dist/doc/bibtex/gbt7714/gbt7714.pdf
index fd9f17de94a..f8259fe5c84 100644
--- a/Master/texmf-dist/doc/bibtex/gbt7714/gbt7714.pdf
+++ b/Master/texmf-dist/doc/bibtex/gbt7714/gbt7714.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/bibtex/gbt7714/gbt7714.dtx b/Master/texmf-dist/source/bibtex/gbt7714/gbt7714.dtx
index e42938874cd..d5a77945386 100644
--- a/Master/texmf-dist/source/bibtex/gbt7714/gbt7714.dtx
+++ b/Master/texmf-dist/source/bibtex/gbt7714/gbt7714.dtx
@@ -17,7 +17,7 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{gbt7714}
-%<package> [2020/03/14 v2.0.1 GB/T 7714-2015 BibTeX Style]
+%<package> [2020/06/08 v2.0.2 GB/T 7714-2015 BibTeX Style]
%
%<*driver>
\documentclass[a4paper]{ltxdoc}
@@ -290,10 +290,10 @@
% show.medium.type & |#1| & 显示载体类型标识 \\
% italic.journal & |#0| & 西文期刊名使用斜体 \\
% show.missing.address.publisher & |#1| & 出版项缺失时显示“出版者不详” \\
-% space.before.pages & |#0| & 页码前有空白 \\
% only.start.page & |#0| & 只显示起始页码 \\
% show.url & |#1| & 显示 url \\
% show.doi & |#1| & 显示 doi \\
+% show.preprint & |#0| & 显示预印本 \\
% show.note & |#0| & 显示 note 域的信息 \\
% \bottomrule
% \end{tabular}
@@ -366,16 +366,14 @@
% 吴凯.
% \newblock 发布GBT7714-2005.bst version1 Beta版\allowbreak[EB/OL].
% \newblock 2006.
-% \newblock \url{http://bbs.ctex.org/forum.php?mod=viewthread&tid=33591}
-% (not accessible).
+% \newblock CTeX 论坛(已关闭).
%
% \bibitem[李志奇(2013)]{lqz2013}
% 李志奇.
% \newblock
% 基于biblatex的符合GBT7714-2005的中文文献生成工具\allowbreak[EB/OL].
% \newblock 2013.
-% \newblock \url{http://bbs.ctex.org/forum.php?mod=viewthread&tid=74474}
-% (not accessible).
+% \newblock CTeX 论坛(已关闭).
%
% \bibitem[胡海星(2013)]{hhx2013}
% 胡海星.
@@ -424,33 +422,33 @@
\newif\ifgbt@mmxv
\newif\ifgbt@numerical
\newif\ifgbt@super
-\newcommand\gbt@obselete@option[1]{%
- \PackageWarning{gbt7714}{The option "#1" is obselete}%
+\newcommand\gbt@obsolete@option[1]{%
+ \PackageWarning{gbt7714}{The option "#1" is obsolete}%
}
\DeclareOption{2015}{%
- \gbt@obselete@option{2015}%
+ \gbt@obsolete@option{2015}%
\gbt@legacy@interfacetrue
\gbt@mmxvtrue
}
\DeclareOption{2005}{%
- \gbt@obselete@option{2005}%
+ \gbt@obsolete@option{2005}%
\gbt@legacy@interfacetrue
\gbt@mmxvfalse
}
\DeclareOption{super}{%
- \gbt@obselete@option{super}%
+ \gbt@obsolete@option{super}%
\gbt@legacy@interfacetrue
\gbt@numericaltrue
\gbt@supertrue
}
\DeclareOption{numbers}{%
- \gbt@obselete@option{numbers}%
+ \gbt@obsolete@option{numbers}%
\gbt@legacy@interfacetrue
\gbt@numericaltrue
\gbt@superfalse
}
\DeclareOption{authoryear}{%
- \gbt@obselete@option{authoryear}%
+ \gbt@obsolete@option{authoryear}%
\gbt@legacy@interfacetrue
\gbt@numericalfalse
}
@@ -791,10 +789,10 @@ INTEGERS {
italic.journal
bold.journal.volume
show.missing.address.publisher
- space.before.pages
only.start.page
show.url
show.doi
+ show.preprint
show.note
show.english.translation
%<*authoryear>
@@ -843,7 +841,9 @@ FUNCTION {load.config}
% \end{macrocode}
%
% 英文标题转为 sentence case (句首字母大写,其余小写):
+%<*!nosentencecase>
% \begin{macrocode}
+%</!nosentencecase>
#1 'sentence.case.title :=
%<*nosentencecase>
#0 'sentence.case.title :=
@@ -852,7 +852,9 @@ FUNCTION {load.config}
%
% 在标题添加超链接:
% \begin{macrocode}
+%<*!linktitle>
#0 'link.title :=
+%</!linktitle>
%<*linktitle>
#1 'link.title :=
%</linktitle>
@@ -870,7 +872,9 @@ FUNCTION {load.config}
%
% 著录文献类型标识(比如“[M/OL]“):
% \begin{macrocode}
+%<*!nomark>
#1 'show.mark :=
+%</!nomark>
%<*nomark>
#0 'show.mark :=
%</nomark>
@@ -878,7 +882,9 @@ FUNCTION {load.config}
%
% 是否显示载体类型标识(比如“/OL“):
% \begin{macrocode}
+%<*!no.medium.type>
#1 'show.medium.type :=
+%</!no.medium.type>
%<*no.medium.type>
#0 'show.medium.type :=
%</no.medium.type>
@@ -886,7 +892,9 @@ FUNCTION {load.config}
%
% 使用“//”表示析出文献
% \begin{macrocode}
+%<*!noslash>
#1 'slash.for.extraction :=
+%</!noslash>
%<*noslash>
#0 'slash.for.extraction :=
%</noslash>
@@ -909,7 +917,9 @@ FUNCTION {load.config}
%
% 期刊名使用斜体:
% \begin{macrocode}
+%<*!italicjournal>
#0 'italic.journal :=
+%</!italicjournal>
%<*italicjournal>
#1 'italic.journal :=
%</italicjournal>
@@ -922,26 +932,16 @@ FUNCTION {load.config}
%
% 无出版地或出版者时,著录“出版地不详”,“出版者不详”,“S.l.” 或 “s.n.”:
% \begin{macrocode}
-%<*!noslsn&!thu&!ustc>
+%<*!noslsn&!thu&!ustc&!npr>
#1 'show.missing.address.publisher :=
-%</!noslsn&!thu&!ustc>
-%<*noslsn|thu|ustc>
+%</!noslsn&!thu&!ustc&!npr>
+%<*noslsn|thu|ustc|npr>
#0 'show.missing.address.publisher :=
-%</noslsn|thu|ustc>
+%</noslsn|thu|ustc|npr>
% \end{macrocode}
%
% 页码是否只含起始页:
% \begin{macrocode}
-%<*!space-begore-pages&!npr>
- #0 'space.before.pages :=
-%</!space-begore-pages&!npr>
-%<*space-begore-pages|npr>
- #1 'space.before.pages :=
-%</space-begore-pages|npr>
-% \end{macrocode}
-%
-% 页码前是否有空白:
-% \begin{macrocode}
%<*!only-start-page&!npr>
#0 'only.start.page :=
%</!only-start-page&!npr>
@@ -952,7 +952,9 @@ FUNCTION {load.config}
%
% 是否著录 URL:
% \begin{macrocode}
+%<*!nourl>
#1 'show.url :=
+%</!nourl>
%<*nourl>
#0 'show.url :=
%</nourl>
@@ -968,6 +970,16 @@ FUNCTION {load.config}
%</nodoi|2005>
% \end{macrocode}
%
+% 是否著录 e-print:
+% \begin{macrocode}
+%<*!preprint&!npr>
+ #0 'show.preprint :=
+%</!preprint&!npr>
+%<*preprint|npr>
+ #1 'show.preprint :=
+%</preprint|npr>
+% \end{macrocode}
+%
% 在每一条文献最后输出注释(note)的内容:
% \begin{macrocode}
#0 'show.note :=
@@ -1007,12 +1019,14 @@ FUNCTION {load.config}
% \begin{macrocode}
ENTRY
{ address
+ archivePrefix
author
booktitle
date
doi
edition
editor
+ eprint
howpublished
institution
journal
@@ -1028,8 +1042,8 @@ ENTRY
school
series
title
- translator
translation
+ translator
url
urldate
volume
@@ -1768,15 +1782,20 @@ FUNCTION {format.names}
{ 's :=
#1 'nameptr :=
s num.names$ 'numnames :=
+ ""
numnames 'namesleft :=
{ namesleft #0 > }
{ s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't :=
+ nameptr #1 >
+ { ", " * }
+ 'skip$
+ if$
nameptr max.num.authors >
- { bbl.et.al
+ { bbl.et.al *
#1 'namesleft :=
}
{ t "others" =
- { bbl.et.al }
+ { bbl.et.al * }
{ t get.str.lang 'name.lang :=
name.lang lang.en =
{ t #1 "{vv~}{ll}{~f{~}}" format.name$
@@ -1788,14 +1807,11 @@ FUNCTION {format.names}
}
{ t #1 "{ll}{ff}" format.name$ }
if$
+ *
}
if$
}
if$
- nameptr #1 >
- { ", " swap$ * * }
- 'skip$
- if$
nameptr #1 + 'nameptr :=
namesleft #1 - 'namesleft :=
}
@@ -2655,6 +2671,13 @@ FUNCTION {hyphenate}
FUNCTION {format.pages}
{ pages empty$
{ "" }
+ { pages hyphenate }
+ if$
+}
+
+FUNCTION {format.extracted.pages}
+{ pages empty$
+ { "" }
{ pages
only.start.page
'extract.before.dash
@@ -2693,11 +2716,8 @@ FUNCTION {format.journal.number}
FUNCTION {format.journal.pages}
{ pages empty$
{ "" }
- { space.before.pages
- { ": " }
- { ":\penalty0 " }
- if$
- format.pages *
+ { ": "
+ format.extracted.pages *
}
if$
}
@@ -2888,6 +2908,27 @@ FUNCTION {check.electronic}
if$
}
+FUNCTION {format.eprint}
+{ ""
+ archivePrefix empty$ not
+ { archivePrefix * ": " *
+ "\eprint{https://" *
+ archivePrefix "l" change.case$ * ".org/abs/" * eprint * "}{" *
+ eprint * "}" *
+ }
+ { eprint }
+ if$
+}
+
+FUNCTION {output.eprint}
+{ show.preprint eprint empty$ not and
+ { new.block
+ format.eprint output
+ }
+ 'skip$
+ if$
+}
+
FUNCTION {format.note}
{ note empty$ not show.note and
{ note }
@@ -3040,7 +3081,7 @@ FUNCTION {incollection}
%<*numerical>
format.year "year" output.check
%</numerical>
- format.pages bbl.colon output.after
+ format.extracted.pages bbl.colon output.after
format.urldate "" output.after
output.url
output.doi
@@ -3209,6 +3250,62 @@ FUNCTION {electronic}
% \end{macrocode}
%
+% \subsubsection{预印本}
+%
+% \begin{macrocode}
+FUNCTION {preprint}
+{ output.bibitem
+ output.translation
+ author empty$ not
+ { format.authors }
+ { editor empty$ not
+ { format.editors }
+ { "empty author and editor in " cite$ * warning$
+%<*authoryear>
+ bbl.anonymous
+%</authoryear>
+%<*numerical>
+ ""
+%</numerical>
+ }
+ if$
+ }
+ if$
+ output
+%<*authoryear>
+ period.between.author.year
+ 'new.sentence
+ 'skip$
+ if$
+ format.year "year" output.check
+%</authoryear>
+ new.block
+ title.in.journal
+ { format.series.vol.num.title "title" output.check
+ "Z" set.entry.mark
+ format.mark "" output.after
+ new.block
+ }
+ 'skip$
+ if$
+ format.translators output
+ new.sentence
+ format.edition output
+ new.block
+ output.eprint
+%<*numerical>
+ format.year "year" output.check
+%</numerical>
+ format.pages bbl.colon output.after
+ format.urldate "" output.after
+ output.url
+ new.block
+ format.note output
+ fin.entry
+}
+
+% \end{macrocode}
+%
% \subsubsection{其他文献类型}
%
% A misc is something that doesn't fit elsewhere.
@@ -3226,10 +3323,14 @@ FUNCTION {misc}
'incollection
{ publisher empty$ not
'monograph
- { entry.is.electronic
- 'electronic
- { "Z" set.entry.mark
- monograph
+ { eprint empty$ not show.preprint and
+ 'preprint
+ { entry.is.electronic
+ 'electronic
+ { "Z" set.entry.mark
+ monograph
+ }
+ if$
}
if$
}
@@ -3436,10 +3537,7 @@ FUNCTION {techreport}
%
% Optional: month, year
% \begin{macrocode}
-FUNCTION {unpublished}
-{ "Z" set.entry.mark
- misc
-}
+FUNCTION {unpublished} { misc }
% \end{macrocode}
%
@@ -4127,17 +4225,21 @@ FUNCTION {begin.bib}
write$ newline$
" \urlstyle{same}\fi"
write$ newline$
- show.doi
- { "\expandafter\ifx\csname href\endcsname\relax"
+ "\expandafter\ifx\csname href\endcsname\relax"
+ write$ newline$
+ " \DeclareUrlCommand\doi{\urlstyle{rm}}"
+ write$ newline$
+ " \def\eprint#1#2{#2}"
write$ newline$
- " \DeclareUrlCommand\doi{\urlstyle{rm}}\else"
+ "\else"
+ write$ newline$
+ " \def\doi#1{\href{https://doi.org/#1}{\nolinkurl{#1}}}"
+ write$ newline$
+ " \let\eprint\href"
write$ newline$
- " \providecommand\doi[1]{\href{https://doi.org/#1}{\nolinkurl{#1}}}\fi"
+ "\fi"
write$ newline$
}
- 'skip$
- if$
-}
% \end{macrocode}
%
diff --git a/Master/texmf-dist/source/bibtex/gbt7714/gbt7714.ins b/Master/texmf-dist/source/bibtex/gbt7714/gbt7714.ins
index 5d0ba5e3498..96bd21230b0 100644
--- a/Master/texmf-dist/source/bibtex/gbt7714/gbt7714.ins
+++ b/Master/texmf-dist/source/bibtex/gbt7714/gbt7714.ins
@@ -1,3 +1,5 @@
+% !TeX encoding = UTF-8
+% !TeX program = xetex
\input docstrip.tex
\keepsilent
\askforoverwritefalse
@@ -5,7 +7,7 @@
-------------------------------------------------------------------
GB/T 7714-2015 BibTeX Style
https://github.com/CTeX-org/gbt7714-bibtex-style
-Version: 2020/03/14 v2.0.1
+Version: 2020/06/08 v2.0.2
-------------------------------------------------------------------
Copyright (C) 2016-\the\year by Zeping Lee <zepinglee AT gmail.com>
-------------------------------------------------------------------
diff --git a/Master/texmf-dist/tex/latex/gbt7714/gbt7714.sty b/Master/texmf-dist/tex/latex/gbt7714/gbt7714.sty
index fd7fe5c0941..08673d591f9 100644
--- a/Master/texmf-dist/tex/latex/gbt7714/gbt7714.sty
+++ b/Master/texmf-dist/tex/latex/gbt7714/gbt7714.sty
@@ -8,7 +8,7 @@
%% -------------------------------------------------------------------
%% GB/T 7714-2015 BibTeX Style
%% https://github.com/CTeX-org/gbt7714-bibtex-style
-%% Version: 2020/03/14 v2.0.1
+%% Version: 2020/06/08 v2.0.2
%% -------------------------------------------------------------------
%% Copyright (C) 2016-2020 by Zeping Lee <zepinglee AT gmail.com>
%% -------------------------------------------------------------------
@@ -22,38 +22,38 @@
%% -------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{gbt7714}
- [2020/03/14 v2.0.1 GB/T 7714-2015 BibTeX Style]
+ [2020/06/08 v2.0.2 GB/T 7714-2015 BibTeX Style]
\newif\ifgbt@legacy@interface
\newif\ifgbt@mmxv
\newif\ifgbt@numerical
\newif\ifgbt@super
-\newcommand\gbt@obselete@option[1]{%
- \PackageWarning{gbt7714}{The option "#1" is obselete}%
+\newcommand\gbt@obsolete@option[1]{%
+ \PackageWarning{gbt7714}{The option "#1" is obsolete}%
}
\DeclareOption{2015}{%
- \gbt@obselete@option{2015}%
+ \gbt@obsolete@option{2015}%
\gbt@legacy@interfacetrue
\gbt@mmxvtrue
}
\DeclareOption{2005}{%
- \gbt@obselete@option{2005}%
+ \gbt@obsolete@option{2005}%
\gbt@legacy@interfacetrue
\gbt@mmxvfalse
}
\DeclareOption{super}{%
- \gbt@obselete@option{super}%
+ \gbt@obsolete@option{super}%
\gbt@legacy@interfacetrue
\gbt@numericaltrue
\gbt@supertrue
}
\DeclareOption{numbers}{%
- \gbt@obselete@option{numbers}%
+ \gbt@obsolete@option{numbers}%
\gbt@legacy@interfacetrue
\gbt@numericaltrue
\gbt@superfalse
}
\DeclareOption{authoryear}{%
- \gbt@obselete@option{authoryear}%
+ \gbt@obsolete@option{authoryear}%
\gbt@legacy@interfacetrue
\gbt@numericalfalse
}
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 779b61b75f5..d564a0f6e66 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -1098,6 +1098,9 @@ sub do_tlp {
# Wrong README gets compared.
next if $basefile eq "README" && $file =~ m,/(pmx|cs)/,;
+ # Upstream README is gratuitously different.
+ next if $basefile =~ /^README/ && $file =~ m,/(curve2e|marathi)/,;
+
my $tl_file = "$Master/$file";
if (! -e $tl_file) {
warn "$tl_file: TL file missing\n";
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index 1081bb86b08..a80269c12f2 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -2834,6 +2834,7 @@ my $core_latex = "$Master/texmf-dist/tex/latex";
'luaindex' => 'lualatex --shell-escape',
'luatexja' => 'lualatex',
'mandi' => 'pdflatex-preserve-pdf',
+ 'marathi' => 'tex -8bit',
'mathfont' => 'latex',
'mcmthesis' => 'tex', # requires interaction
'mversion' => 'latex', # requires interaction