summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-numeric.bst
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-numeric.bst')
-rw-r--r--Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-numeric.bst156
1 files changed, 75 insertions, 81 deletions
diff --git a/Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-numeric.bst b/Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-numeric.bst
index 73a96082be9..824aadb94b7 100644
--- a/Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-numeric.bst
+++ b/Master/texmf-dist/bibtex/bst/thuthesis/thuthesis-numeric.bst
@@ -1,12 +1,12 @@
%%
-%% This is file `gbt-7714-2015-numerical.bst',
+%% This is file `gbt7714-unsrt.bst',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
-%% gbt-7714-2015.dtx (with options: `numerical')
+%% gbt7714.dtx (with options: `numerical')
%%
-%% Copyright (C) 2016-2017 by Zeping Lee <zepinglee AT gmail.com>
+%% Copyright (C) 2016-2018 by Zeping Lee <zepinglee AT gmail.com>
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -25,32 +25,25 @@ ENTRY
{ address
author
booktitle
- chapter
date
doi
- eid
edition
editor
- howpublished
institution
- isbn
- issn
journal
key
language
mark
- media
- month
- note
+ medium
number
organization
pages
+ pinyin
publisher
school
series
title
translator
- type
url
urldate
volume
@@ -61,7 +54,7 @@ ENTRY
INTEGERS { output.state before.all mid.sentence after.sentence after.block after.slash }
-INTEGERS { lang.zh lang.ja lang.en lang.ru }
+INTEGERS { lang.zh lang.ja lang.en lang.ru lang.other }
INTEGERS { charptr stringlength }
@@ -71,10 +64,11 @@ FUNCTION {init.state.consts}
#2 'after.sentence :=
#3 'after.block :=
#4 'after.slash :=
- #2 'lang.zh :=
- #3 'lang.ja :=
- #0 'lang.en :=
- #1 'lang.ru :=
+ #3 'lang.zh :=
+ #4 'lang.ja :=
+ #1 'lang.en :=
+ #2 'lang.ru :=
+ #0 'lang.other :=
}
STRINGS { s t }
@@ -290,13 +284,17 @@ INTEGERS { ascii }
FUNCTION {get.char.lang}
{ chr.to.int$ 'ascii :=
- ascii #227 > ascii #234 < and
- { lang.zh }
- { ascii #227 =
- { lang.ja }
- { ascii #207 > ascii #212 < and
- { lang.ru }
- { lang.en }
+ ascii #64 > ascii #91 < and ascii #96 > ascii #123 < and or
+ { lang.en }
+ { ascii #227 > ascii #234 < and
+ { lang.zh }
+ { ascii #227 =
+ { lang.ja }
+ { ascii #207 > ascii #212 < and
+ { lang.ru }
+ { lang.en }
+ if$
+ }
if$
}
if$
@@ -304,21 +302,21 @@ FUNCTION {get.char.lang}
if$
}
-INTEGERS { char.lang lang }
+INTEGERS { char.lang tmp.lang }
STRINGS { tmp.str }
FUNCTION {get.str.lang}
{ 'tmp.str :=
- lang.en 'lang :=
+ lang.other 'tmp.lang :=
tmp.str empty$
{ "Empty string!" warning$ }
{ #1 'charptr :=
tmp.str text.length$ #1 + 'stringlength :=
{ charptr stringlength < }
{ tmp.str charptr #1 substring$ get.char.lang 'char.lang :=
- char.lang lang >
- { char.lang 'lang := }
+ char.lang tmp.lang >
+ { char.lang 'tmp.lang := }
'skip$
if$
@@ -334,7 +332,7 @@ FUNCTION {get.str.lang}
while$
}
if$
- lang
+ tmp.lang
}
FUNCTION {is.in.chinese}
@@ -355,35 +353,33 @@ FUNCTION {format.anonymous}
if$
}
-INTEGERS { nameptr namesleft numnames name.lang}
+INTEGERS { nameptr namesleft numnames name.lang }
FUNCTION {format.names}
{ 's :=
#1 'nameptr :=
s num.names$ 'numnames :=
numnames 'namesleft :=
- { namesleft #0 > nameptr #4 < and }
+ { 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}{ f{~}}{, jj}" format.name$ 't := }
- { t #1 "{ll}{ff}" format.name$ 't := }
- if$
- nameptr #1 >
- { namesleft #1 >
- { ", " * t * }
- { t "others" =
- { ", " * format.et.al * }
- { ", " * t * }
+ nameptr #4 =
+ { format.et.al
+ #1 'namesleft :=
+ }
+ { t "others" =
+ { format.et.al }
+ { t get.str.lang 'name.lang :=
+ name.lang lang.en =
+ { t #1 "{vv~}{ll}{ f{~}}{, jj}" format.name$ }
+ { t #1 "{ll}{ff}" format.name$ }
if$
}
if$
- nameptr #3 = namesleft #1 > and
- { ", " * format.et.al * }
- 'skip$
- if$
}
- 't
+ if$
+ nameptr #1 >
+ { ", " swap$ * * }
+ 'skip$
if$
nameptr #1 + 'nameptr :=
namesleft #1 - 'namesleft :=
@@ -453,8 +449,8 @@ FUNCTION {set.mark}
{ pop$ mark 'entry.mark := }
{ 'entry.mark := }
if$
- media empty$ not
- { entry.mark "/" * media * 'entry.mark := }
+ medium empty$ not
+ { entry.mark "/" * medium * 'entry.mark := }
{ url empty$ not
{ entry.mark "/OL" * 'entry.mark := }
'skip$
@@ -534,7 +530,9 @@ FUNCTION {make.full.names}
type$ "inbook" =
or
'author.editor.full
- { type$ "proceedings" =
+ { type$ "collection" =
+ type$ "proceedings" =
+ or
'editor.full
'author.full
if$
@@ -558,23 +556,15 @@ FUNCTION {output.bibitem}
before.all 'output.state :=
}
-
-FUNCTION {n.dashify}
+FUNCTION {hyphenate}
{ 't :=
""
{ t empty$ not }
{ t #1 #1 substring$ "-" =
- { t #1 #2 substring$ "--" = not
- { "--" *
- t #2 global.max$ substring$ 't :=
- }
- { { t #1 #1 substring$ "-" = }
- { "-" *
- t #2 global.max$ substring$ 't :=
- }
- while$
- }
- if$
+ { "-" *
+ { t #1 #1 substring$ "-" = }
+ { t #2 global.max$ substring$ 't := }
+ while$
}
{ t #1 #1 substring$ *
t #2 global.max$ substring$ 't :=
@@ -858,7 +848,7 @@ FUNCTION {format.address}
FUNCTION {format.sine.nomine}
{ is.in.chinese
- { "[出版地不详]" }
+ { "[出版者不详]" }
{ "[s.n.]" }
if$
}
@@ -920,7 +910,7 @@ FUNCTION {format.address.publisher}
FUNCTION {format.pages}
{ pages empty$
{ "" }
- { pages n.dashify }
+ { pages hyphenate }
if$
}
@@ -984,9 +974,9 @@ FUNCTION {format.in.ed.booktitle}
}
FUNCTION {empty.misc.check}
-{ author empty$ title empty$ howpublished empty$
- month empty$ year empty$ note empty$
- and and and and and
+{ author empty$ title empty$
+ year empty$
+ and and
key empty$ not and
{ "all relevant fields are empty in " cite$ * warning$ }
'skip$
@@ -1198,17 +1188,20 @@ FUNCTION {online}
FUNCTION {misc}
{ journal empty$ not
- { article.in.journal }
+ 'article.in.journal
{ booktitle empty$ not
- { incollection }
+ 'incollection
{ url empty$ not
- { online }
- { monograph }
+ 'online
+ { "Z" set.mark
+ monograph
+ }
if$
}
if$
}
if$
+ empty.misc.check
}
FUNCTION {archive}
@@ -1222,7 +1215,8 @@ FUNCTION {book} { monograph }
FUNCTION {collection}
{ "G" set.mark
- monograph }
+ monograph
+}
FUNCTION {database}
{ "DB" set.mark
@@ -1276,7 +1270,7 @@ FUNCTION {proceedings}
monograph
}
-FUNCTION {program}
+FUNCTION {software}
{ "CP" set.mark
misc
}
@@ -1365,7 +1359,7 @@ EXECUTE {init.state.consts}
FUNCTION {set.entry.lang}
{ language empty$
{ author field.or.null title field.or.null * get.str.lang }
- { language "english" =
+ { language "english" = language "american" = or language "british" = or
{ lang.en }
{ language "chinese" =
{ lang.zh }
@@ -1373,7 +1367,7 @@ FUNCTION {set.entry.lang}
{ lang.ja }
{ language "russian" =
{ lang.ru }
- { lang.en }
+ { lang.other }
if$
}
if$
@@ -1476,10 +1470,10 @@ FUNCTION {calc.short.authors}
{ type$ "book" =
type$ "inbook" =
or
- type$ "collection" =
- or
'author.editor.key.label
- { type$ "proceedings" =
+ { type$ "collection" =
+ type$ "proceedings" =
+ or
{ editor empty$ not
'editor.key.organization.label
'author.key.organization.label
@@ -1497,7 +1491,7 @@ FUNCTION {calc.label}
short.list
"("
*
- format.year extract.before.dash duplicate$ empty$
+ format.year duplicate$ empty$
short.list key field.or.null = or
{ pop$ "" }
'skip$
@@ -1604,7 +1598,7 @@ FUNCTION {begin.bib}
write$ newline$
"\providecommand{\href}[2]{\url{#2}}"
write$ newline$
- "\providecommand{\doi}[1]{DOI: \href{http://dx.doi.org/#1}{#1}}"
+ "\providecommand{\doi}[1]{DOI: \href{https://doi.org/#1}{#1}}"
write$ newline$
"\expandafter\ifx\csname urlstyle\endcsname\relax\relax\else"
write$ newline$