From 1160927a8602c14c2a6c4dd058dc6726394c8b8b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 9 Jun 2020 20:35:20 +0000 Subject: shtthesis (8jun20) git-svn-id: svn://tug.org/texlive/trunk@55494 c570f23f-e606-0410-a88d-b1316a301751 --- .../bst/shtthesis/shtthesis-gbt7714-plain.bst | 2017 ++++++++++++++++++++ Master/texmf-dist/doc/latex/shtthesis/CHANGELOG.md | 141 ++ Master/texmf-dist/doc/latex/shtthesis/LICENSE | 674 +++++++ Master/texmf-dist/doc/latex/shtthesis/README.md | 51 + .../texmf-dist/doc/latex/shtthesis/reference.bib | 159 ++ .../doc/latex/shtthesis/shtthesis-user-guide.pdf | Bin 0 -> 2817574 bytes .../doc/latex/shtthesis/shtthesis-user-guide.tex | 619 ++++++ .../texmf-dist/tex/latex/shtthesis/shtthesis.cls | 1285 +++++++++++++ Master/tlpkg/bin/tlpkg-ctan-check | 3 +- Master/tlpkg/tlpsrc/collection-publishers.tlpsrc | 1 + Master/tlpkg/tlpsrc/shtthesis.tlpsrc | 0 11 files changed, 4949 insertions(+), 1 deletion(-) create mode 100644 Master/texmf-dist/bibtex/bst/shtthesis/shtthesis-gbt7714-plain.bst create mode 100644 Master/texmf-dist/doc/latex/shtthesis/CHANGELOG.md create mode 100644 Master/texmf-dist/doc/latex/shtthesis/LICENSE create mode 100644 Master/texmf-dist/doc/latex/shtthesis/README.md create mode 100644 Master/texmf-dist/doc/latex/shtthesis/reference.bib create mode 100644 Master/texmf-dist/doc/latex/shtthesis/shtthesis-user-guide.pdf create mode 100644 Master/texmf-dist/doc/latex/shtthesis/shtthesis-user-guide.tex create mode 100644 Master/texmf-dist/tex/latex/shtthesis/shtthesis.cls create mode 100644 Master/tlpkg/tlpsrc/shtthesis.tlpsrc (limited to 'Master') diff --git a/Master/texmf-dist/bibtex/bst/shtthesis/shtthesis-gbt7714-plain.bst b/Master/texmf-dist/bibtex/bst/shtthesis/shtthesis-gbt7714-plain.bst new file mode 100644 index 00000000000..038e8416a2f --- /dev/null +++ b/Master/texmf-dist/bibtex/bst/shtthesis/shtthesis-gbt7714-plain.bst @@ -0,0 +1,2017 @@ +%% +%% This is file `gbt7714-plain.bst', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% gbt7714.dtx (with options: `2015,authoryear') +%% ------------------------------------------------------------------- +%% GB/T 7714-2015 BibTeX Style +%% https://github.com/CTeX-org/gbt7714-bibtex-style +%% Version: 2019/01/02 v1.1 +%% ------------------------------------------------------------------- +%% Copyright (C) 2016-2019 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 + 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 := + #0 'period.between.author.year := + #1 'sentence.case.title := + #0 'link.title := + #1 'show.mark := + #1 'slash.for.extraction := + #0 'in.booktitle := + #0 'italic.jounal := + #0 'bold.journal.volume := + #0 '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} +{ entry.lang lang.zh = + { "等" } + { "{\bibetal}" } + if$ +} + +FUNCTION {citation.and} { "{\biband}" } + +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$ + bbl.anonymous + } + 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 write$ + ")" make.full.names duplicate$ short.list = + { pop$ } + { * } + 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 + '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 + { medium empty$ not + { entry.mark "/" * medium * 'entry.mark := } + { entry.is.electronic + { entry.mark "/OL" * 'entry.mark := } + 'skip$ + if$ + } + if$ + "\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$ + bbl.anonymous + } + 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.name} +{ "{vv~}{ll}{, jj}{, ff}" format.name$ + duplicate$ get.str.lang 'name.lang := + name.lang lang.zh = name.lang lang.ja = or + { #1 "{ll}{ff}" format.name$ } + { #1 "{vv~}{ll}" format.name$ } + if$ +} + +FUNCTION {format.lab.names} +{ 's := + s #1 format.lab.name + s num.names$ #2 = name.lang lang.en = name.lang lang.ru = or and + { s #2 format.lab.name 't := + t "others" = + { bbl.space * citation.et.al * } + { " " * citation.and * " " * t * } + if$ + } + { s num.names$ #1 > + { bbl.space * citation.et.al * } + 'skip$ + if$ + } + 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 := +} + +FUNCTION {sort.language.label} +{ entry.lang lang.zh = + { "a zh " } + { entry.lang lang.ja = + { "b ja " } + { entry.lang lang.en = + { "c en " } + { entry.lang lang.ru = + { "d ru " } + { "e other " } + if$ + } + if$ + } + if$ + } + if$ +} + +FUNCTION {sort.format.names} +{ 's := + #1 'nameptr := + "" + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { + s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't := + nameptr #1 > + { + " " * + namesleft #1 = t "others" = and + { "zzzzz" * } + { numnames #2 > nameptr #2 = and + { "zz" * year field.or.null * " " * } + 'skip$ + if$ + t sortify * + } + if$ + } + { t sortify * } + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ +} + +FUNCTION {sort.format.title} +{ 't := + "A " #2 + "An " #3 + "The " #4 t chop.word + chop.word + chop.word + sortify + #1 global.max$ substring$ +} + +FUNCTION {anonymous.sort} +{ entry.lang lang.zh = + { "yi4 ming2" } + { "anon" } + if$ +} + +FUNCTION {warn.empty.key} +{ entry.lang lang.zh = + { "empty key in " cite$ * warning$ } + 'skip$ + if$ +} + +FUNCTION {author.sort} +{ key empty$ + { warn.empty.key + author empty$ + { anonymous.sort } + { author sort.format.names } + if$ + } + { key sortify } + if$ +} + +FUNCTION {author.editor.sort} +{ key empty$ + { warn.empty.key + author empty$ + { editor empty$ + { anonymous.sort } + { editor sort.format.names } + if$ + } + { author sort.format.names } + if$ + } + { key sortify } + if$ +} + +FUNCTION {author.organization.sort} +{ key empty$ + { warn.empty.key + author empty$ + { organization empty$ + { anonymous.sort } + { "The " #4 organization chop.word sortify } + if$ + } + { author sort.format.names } + if$ + } + { key sortify } + if$ +} + +FUNCTION {editor.organization.sort} +{ key empty$ + { warn.empty.key + editor empty$ + { organization empty$ + { anonymous.sort } + { "The " #4 organization chop.word sortify } + if$ + } + { editor sort.format.names } + if$ + } + { key sortify } + if$ +} + +FUNCTION {presort} +{ set.entry.lang + set.entry.numbered + show.url show.doi check.electronic + calc.label + label sortify + " " + * + sort.language.label + type$ "book" = + type$ "inbook" = + or + 'author.editor.sort + { type$ "collection" = + type$ "proceedings" = + or + 'editor.organization.sort + 'author.sort + if$ + } + if$ + * + " " + * + year field.or.null sortify + * + " " + * + cite$ + * + #1 entry.max$ substring$ + '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\relax\else" + write$ newline$ + " \urlstyle{same}\fi" + write$ newline$ + show.doi + { "\providecommand{\href}[2]{\url{#2}}" + write$ newline$ + "\providecommand{\doi}[1]{\href{https://doi.org/#1}{#1}}" + write$ newline$ + } + 'skip$ + if$ +} + +FUNCTION {end.bib} +{ newline$ + "\end{thebibliography}" write$ newline$ +} + +READ + +EXECUTE {init.state.consts} + +EXECUTE {load.config} + +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} diff --git a/Master/texmf-dist/doc/latex/shtthesis/CHANGELOG.md b/Master/texmf-dist/doc/latex/shtthesis/CHANGELOG.md new file mode 100644 index 00000000000..4c25a665ca3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/shtthesis/CHANGELOG.md @@ -0,0 +1,141 @@ +# 项目修改记录 + +`sht-thesis` 项目派生于 `ucasthesis`,一个在 GPLv3 License 下分发的项目。根据该许可证条款,`sht-thesis` 项目列出基于 `ucasthesis` (commit `faad94b` 之后) 的所有修改条目: + +## 2020-06-05 + +项目名称改为 shtthesis,并完全重构项目结构。 + +> Release: v0.2.0 + +1. 重构项目结构,只需指定 `\documentclass{shtthesis}` 即可满足基本排版格式要求; +2. 提供 `\shtsetup` 命令统一设定论文信息: + ```latex + \shtsetup{ + title = {论文标题}, + title* = {Title~of~Thesis}, + author = {作者姓名}, + author* = {Name~of~Author}, + % ... + } + ``` +3. 根据重构后的模板类重新编写了使用说明文档; +4. 正文章节不再仅开始于奇数页。 + +## 2020-02-26 + +> Release: v0.1.1 + +1. 将 ctex-fontset-noto.def 中楷书和仿宋字体修改为 Fandol 系列,以避免可能的侵权问题; +2. 将封面标题 `\bfesries` 修改为 `\heiti`,以确保英文以衬线字体排版; + +## 2020-02-14 + +1. 在 Style/ucasthesis.cls 中设置 `\paragraph{}` 行首缩进 2 中文字符; + +## 2020-02-13 + +> Release: v0.1.0 + +1. 修改 Style/artratex.sty 和 Style/ucasthesis.cls,配置 `unicode-math` 中 `\math***` 宏的排版方式为 `sym`,以解决附录 A.2 中 `\mathbf` 无效,以及各 `\math***` 宏无法正确设定希腊字母及符号的问题; +2. 移除 pdfTeX 支持(使用 pdfTeX 编译将直接报错),将针对 `unicode-math` 定义的数学宏移至 Style/artracom.sty 中; +3. 修改 Style/ucasthesis.cfg 和 Style/ucasthesis.cls,使封面符合上科大规范需求; + +## 2020-02-12 + +1. 支持将字体文件放置在在 `Fonts` 文件夹中,修改字体配置文件名为 `ctex-fontset-source.def`; +2. 将 `ctex-fontset-source.def` 中楷体替换为华文楷体,以确保楷体正确加粗; +3. 修改 `Style/artratex.sty`,将西文字体修改为: + - Serif: XITS + - Sans Serif: TeX Gyre Hero + - Monospace: TeX Gyre Cursor + + 同时,去除对 `\mathsf` 和 `\mathtt` 的不正确字形覆盖; +4. 修改 `Style/ucasthesis.cls` 中目录及章节标题的 `format`,将 `\sffamily` 替换为 `\heiti`,以确保在西文非衬线字体被设为 TeX Gyre Hero 后,各级标题仍以西文衬线+中文黑体排版; + +## 2020-02-10 + +1. 在 Style/artratex.sty 中取消等宽字体设置,默认不开启 `font=noto`; + +## 2020-02-07 + +1. 修改 Style/ucasthesis.cfg 以符合上科大学位论文封面、声明页要求; +2. 在 Style/artratex.sty 中设置 Courier 为默认等宽字体; + +## 2020-02-06 + +1. 显式地在项目根目录添加包含 GPLv3 完整内容的 License 文件; +2. 添加 .gitignore 文件; +3. 修改 README.md 以包含新的项目名称及相关说明; +4. 将两个项目的改动统一放置在 CHANGELOG.md 文件中; +5. 将 `Img/ucas_logo.pdf` 替换为 `Img/shanghaitech_logo.pdf` +6. 增加字体设置 ctex-fontset-noto.def,将主要字体替换为: + - 思源宋体 + - 思源黑体 + - 方正楷体_GBK(中文斜体) + - 方正新楷体(中文粗斜体) + - 方正仿宋_GBK(中文等宽体) + - 方正刻本仿宋简体(中文粗等宽体) + + 其中,思源系列字体(Google 发行版为 Noto 系列)开源免费,所用方正字体对个人非商用免费,可前往[方正字库官网](https://www.foundertype.com/)申请下载使用。 + +## 以下修改来自 `ucasthesis` (commit `faad94b` 及之前) + +* `2020-01-09` **重要通知**:模板样式进行了修改,请查看下面的修改描述,以决定是否需要更新。 + +* `2020-01-09` 根据 [NineSH, issue #223](https://github.com/mohuangrui/ucasthesis/issues/223) 修复`bicaption`错误。 + +* `2019-12-06` 移除 commit 中的二进制文件,以极大减少 Fork 后的文件大小。 + +* `2019-10-12` 根据 [huiwenzhang, issue #198](https://github.com/mohuangrui/ucasthesis/issues/198) 修复`mainmatter`下`\chapter*`的页眉错误。 + +* `2019-10-12` 根据 [Fancy0609, muzimuzhi, issue #195](https://github.com/mohuangrui/ucasthesis/issues/195) 调整由`AutoFakeBold`控制的伪粗体加粗程度。 + +* `2019-10-11` 根据 [Pantrick, issue #190](https://github.com/mohuangrui/ucasthesis/issues/190) 采用 [muzimuzhi](https://github.com/muzimuzhi) 提供的方法实现`\advisor{}`和`\institute{}`的自动换行功能。 + +* `2019-08-01` 根据 [vectorliu, issue #183](https://github.com/mohuangrui/ucasthesis/issues/183) 修改英文模式下的`plain`选项为`scheme=plain`以消除对`Algorithm`样式的修改。 + +* `2019-06-15` 根据 [HaorenWang, issue #177](https://github.com/mohuangrui/ucasthesis/issues/177) 调整矢量、矩阵、张量字体样式。 + +* `2019-06-09` 根据 [DRjy, issue #170](https://github.com/mohuangrui/ucasthesis/issues/170) 轻微缩减目录中编号与标题的间距;根据 [e71828, issue #174](https://github.com/mohuangrui/ucasthesis/issues/174) 轻微增加页眉中编号与标题的间距。 + +* `2019-05-25` 根据 [CDMA2019, issue #169](https://github.com/mohuangrui/ucasthesis/issues/169) 提供横排图表环境下页眉页脚的横排,具体使用见 [横排图表](https://github.com/mohuangrui/ucasthesis/wiki/横排图表)。 + +* `2019-04-24` 拓展模版兼容 [博后报告](https://github.com/mohuangrui/ucasthesis/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98#%E5%A6%82%E4%BD%95%E5%A1%AB%E5%86%99%E5%8D%9A%E5%A3%AB%E5%90%8E%E7%9A%84-frontinfotex-)。修复 [gsp2014, issue #156](https://github.com/mohuangrui/ucasthesis/issues/156) 文献引用中的连字符的间断显示和上标引用中逗号下沉。 + +* `2019-04-19` 修复 [nihaomiao, issue #117](https://github.com/mohuangrui/ucasthesis/issues/117)`\mathbf`失效问题。 + +* `2019-04-16` 修复国际生需要的`plain`模式下无法改变英文章标题字体大小的问题。 + +* `2019-04-09` 对部分宏命令进行调整,无功能及样式上的修改。若需更新,建议参考 [更新指南](https://github.com/mohuangrui/ucasthesis/wiki/更新指南)。 + +* `2019-04-04` 根据 [liuy334, songchunlin, issue #134](https://github.com/mohuangrui/ucasthesis/issues/134) ,调整行距使`LaTeX`版与`Word`版的行数和每行字数相一致。 + +* `2019-03-28` 根据 [zssasa, allenwoods, issue #49](https://github.com/mohuangrui/ucasthesis/issues/49) ,修复`bicaption`对`longtable`的兼容性。根据 [BowenHou, issue #133](https://github.com/mohuangrui/ucasthesis/issues/133) ,使下划线能对长标题自动换行。 + +* `2019-03-25` 根据 [DRjy, muzimuzhi, issue #127](https://github.com/mohuangrui/ucasthesis/issues/127) ,为`摘要`等无需在目录中显示的结构元素建立书签。根据 [muzimuzhi, issue #130](https://github.com/mohuangrui/ucasthesis/issues/130) ,修正对`\voffset`的使用。 + +* `2019-03-14` 根据 [opt-gaobin, issue #121](https://github.com/mohuangrui/ucasthesis/issues/121) ,修正中文标点使下划线断掉的问题。根据 [Guoqiang Zhang, email; weili-ict, issue #120](https://github.com/mohuangrui/ucasthesis/issues/120) ,修复`\proofname`命令对2015年及更早`LaTeX`编译器的兼容性问题。 + +* `2019-02-20` 根据 [opt-gaobin, issue #100](https://github.com/mohuangrui/ucasthesis/issues/100) ,增加定理、定义、证明等数学环境。根据 [DRjy, issue #102](https://github.com/mohuangrui/ucasthesis/issues/102) ,调整`\mathcal`字体样式。根据 [zike Liu, email] ,适当缩减目录列表的缩进。根据 [xiaoyaoE, issue #105](https://github.com/mohuangrui/ucasthesis/issues/105) ,使数字字体和英文字体一致。完善中文版和国际版之间的中英格式切换。 + +* `2019-01-10` 根据 [mnpengjk, issue #57](https://github.com/mohuangrui/ucasthesis/issues/57) , 将公式编号前加点纳入模版默认,更多讨论可见:[琐屑细节](https://github.com/mohuangrui/ucasthesis/wiki/琐屑细节) 。根据 [yunyun2019, issue #95](https://github.com/mohuangrui/ucasthesis/issues/95) ,采用 [zepinglee](https://github.com/zepinglee) 基于国标样式为`ucas`所定制文献样式:[ucas 样式分支](https://github.com/CTeX-org/gbt7714-bibtex-style/tree/ucas) ,文献样式更多讨论可见:[文献样式](https://github.com/mohuangrui/ucasthesis/wiki/%E6%96%87%E7%8C%AE%E6%A0%B7%E5%BC%8F)。根据 [邵岳林, email] ,将附录复原为常规的排版设置,若需将附录置于参考文献后,请见:[琐屑细节](https://github.com/mohuangrui/ucasthesis/wiki/琐屑细节)。 + +* `2018-04-03` 根据国科大本科部陆晴老师和本科部学位办丁云云老师的复审审核建议再次修复一些样式细节问题。 + +* `2018-04-02` 模板进行了重大更新,修复了样式、字体、格式等许多问题。 + + * 根据国科大本科部陆晴老师的建议对模版样式进行了诸多拓展和修正,并完善对本科生论文元素的兼容性。 + * 在 [ctex](https://github.com/CTeX-org/ctex-kit) 开发者的帮助下解决了如何多次调用`Times New Roman`而不导致黑体调用错误的问题。根据 [twn1993, email],修复默认黑体为微软雅黑而不是`SimHei`的问题。 + * 繁复折腾测试后终于找出一个在`ctex`默认黑体替换粗宋体设定环境内全局`AutoFakeBold`失效状态下折衷特定字体库不全条件下生僻字显示和系统默认字重不全条件下粗宋体显示以及不同操作系统下如何平衡上述字库自重矛盾还有根据操作系统自动调用所带有的`Times`字体的方案。 + * 设定论文封面据英文学位名如自动切换。密级据是否填写自动显示。 + +* `2018-03-22` 演示表标题居表上,加粗图表标注,设置长图表标题悬挂缩进(由于`bicaption`宏包无法正确接受`caption`宏包的`margin`选项,图表中英标题第一行无法正确同步缩进,从而放弃第一行的缩进),强调多图中子图标题的规范使用,通过摘要和符号列表演示标题不在目录中显示却仍在页眉中显示。根据 [赵永明, email],设置双语图表标题和`bicaption`不在图形列表和表格列表中显示英文标题。 + +* `2018-03-21` 根据 [zhanglinbo, issue #42](https://github.com/mohuangrui/ucasthesis/issues/42) ,使用 [xiaoyao9933](https://github.com/xiaoyao9933/UCASthesis) 制作的`ucas_logo.pdf`使学校`logo`放大不失真。根据 [Starsky Wong, issue #41](https://github.com/mohuangrui/ucasthesis/issues/41) ,设置标题英文设为`Times New Roman`。根据 [will0n, issue #29](https://github.com/mohuangrui/ucasthesis/issues/29) ,[Man-Ting-Fang, issue #26](https://github.com/mohuangrui/ucasthesis/issues/26) ,[diyiliaoya, issue #12](https://github.com/mohuangrui/ucasthesis/issues/12) ,和 [赵永明, email] ,矫正一些格式细节问题。根据 [tangjie1992, issue #30](https://github.com/mohuangrui/ucasthesis/issues/30) ,配置算法环境。 + +* `2018-02-04` 在 [ctex](https://github.com/CTeX-org/ctex-kit) 开发者的帮助下修复误用字体命令导致的粗宋体异常。然后,将模板兼容性进一步扩展为兼容操作系统`Windows`,`Linux`,`MacOS`和`LaTeX `编译引擎`pdflatex`,`xelatex`,`lualatex`。移除`microtype`宏包以提高编译效率。 + +* `2018-01-28` 基于国科大`2018`新版论文规范进行了重大修改,采用新的封面、声明、页眉页脚样式。展示标题中使用数学公式。 + +* `2017-05-14` 根据 [赵永明, email] ,增加`\citepns{}`和`\citetns{}`命令提供上标引用下混合非上标引用的需求。根据 [臧光明, email] ,添加设定论文为`thesis`或`dissertation`的命令。 \ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/shtthesis/LICENSE b/Master/texmf-dist/doc/latex/shtthesis/LICENSE new file mode 100644 index 00000000000..ff622a9d075 --- /dev/null +++ b/Master/texmf-dist/doc/latex/shtthesis/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + sht-thesis, a LaTeX template for thesis writing in ShanghaiTech University. + Copyright (C) 2020 Li Rundong + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + sht-thesis Copyright (C) 2020 Li Rundong + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/Master/texmf-dist/doc/latex/shtthesis/README.md b/Master/texmf-dist/doc/latex/shtthesis/README.md new file mode 100644 index 00000000000..cbb743db2a7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/shtthesis/README.md @@ -0,0 +1,51 @@ +# ShangHaiTech university THESIS (shtthesis) +![Build](https://github.com/lirundong/sht-thesis/workflows/Build/badge.svg) + +`shtthesis` project, forked from [`ucasthesis`](https://github.com/mohuangrui/ucasthesis), is an **unofficial** LaTeX thesis template for ShanghaiTech University and satisfies all format requirements in 《上海科技大学研究生学位论文撰写规范(初稿)》. The user just need to set `\documentclass{shtthesis}` and to setup mandatory information via `\shtsetup`, then his or her thesis document will be typeset properly: +```latex +\documentclass{shtthesis} + +\shtsetup{ + title = {论文标题}, + title* = {Title~of~Thesis}, + author = {作者姓名}, + author* = {Name~of~Author}, + % ... +} + +\begin{document} +% ... +``` + +## Get the Template +- Stable version: + - GitHub Release: please refer to [release](https://github.com/lirundong/sht-thesis/releases) page, and download required files based on release information + - CTAN: TODO + + Note that `shtthesis` package in CTAN does not include the university logo file. Please download [`shanghaitech-logo.pdf`](shanghaitech-logo.pdf) from this repository and put it in the root of your project folder. +- Develop version: directly clone the GitHub repo + ```bash + git clone https://github.com/lirundong/sht-thesis.git + ``` + +Please, read through [the user's guide](shtthesis-user-guide.pdf) before continuing. + +## Get Started +After cloning or downloading this template, please + +0. Install a modern TeX distribution **in full scheme**: + - Windows or Linux: [TeX Live](https://www.tug.org/texlive/) + - macOS: [MacTeX](https://www.tug.org/mactex/) +1. Open your terminal (CMD for Windows users) and switch to this directory, compile this template by `latexmk` tool with LuaLaTeX or XeLaTeX engine (**note**: pdfLaTeX is not supported): + ```bash + latexmk -pdflua + # if you prefer XeLaTeX engine: + # latexmk -pdfxe + ``` + the output file `shtthesis-user-guide.pdf` is the compiled user guide document +2. Open the document source file [shtthesis-user-guide.tex](shtthesis-user-guide.tex) and enjoy TeXing :smirk: + +## License +- The copyright of ShanghaiTech University logo (`shanghaitech-logo.pdf`) is owned by ShanghaiTech University +- `shtthesis-gbt7714-plain.bst` is modified from [gbt7714](https://github.com/CTeX-org/gbt7714-bibtex-style) project and is licensed under LaTeX Project Public License v1.3c, see [lppl-1.3c](https://www.latex-project.org/lppl/lppl-1-3c.txt) for details +- The rest of `shtthesis` project is licensed under GNU Public License v3, see [LICENSE](LICENSE) for details diff --git a/Master/texmf-dist/doc/latex/shtthesis/reference.bib b/Master/texmf-dist/doc/latex/shtthesis/reference.bib new file mode 100644 index 00000000000..f7bbcaf919c --- /dev/null +++ b/Master/texmf-dist/doc/latex/shtthesis/reference.bib @@ -0,0 +1,159 @@ +@book{wikibook2014latex, + title={http://en.wikibooks.org/wiki/LaTeX}, + author={Wikibook}, + year={2014}, + publisher={On-line Resources} +} +@book{lamport1986document, + title={Document Preparation System}, + author={Lamport, Leslie}, + year={1986}, + publisher={Addison-Wesley Reading, MA} +} +@article{chen2005zhulu, + title={著录文后参考文献的规则及注意事项}, + author={陈浩元}, + key={Chen Hao Yuan}, + journal={编辑学报}, + volume={17}, + number={6}, + pages={413--415}, + year={2005} +} +@book{chu2004tushu, + title={图书馆数字参考咨询服务研究}, + author={初景利}, + key={Chu Jing Li}, + year={2004}, + address={北京}, + publisher={北京图书馆出版社} +} +@article{stamerjohanns2009mathml, + title={{MathML}-aware article conversion from {LaTeX}}, + author={Stamerjohanns, Heinrich and Ginev, Deyan and David, Catalin and Misev, Dimitar and Zamdzhiev, Vladimir and Kohlhase, Michael}, + journal={Towards a Digital Mathematics Library}, + volume={16}, + number={2}, + pages={109--120}, + year={2009}, + publisher={Masaryk University Press} +} +@article{betts2005aging, + title={Aging reduces center-surround antagonism in visual motion processing}, + author={Betts, Lisa R and Taylor, Christopher P}, + journal={Neuron}, + volume={45}, + number={3}, + pages={361--366}, + year={2005}, + publisher={Elsevier} +} + +@article{bravo1990comparative, + title={Comparative study of visual inter and intrahemispheric cortico-cortical connections in five native Chilean rodents}, + author={Bravo, Hermes and Olavarria, Jaime}, + journal={Anatomy and embryology}, + volume={181}, + number={1}, + pages={67--73}, + year={1990}, + publisher={Springer} +} +@book{hls2012jinji, + author = {哈里森·沃尔德伦}, + key = {Haliseng Woerdelun}, + translator = {谢远涛}, + title = {经济数学与金融数学}, + address = {北京}, + publisher = {中国人民大学出版社}, + year = {2012}, + pages = {235--236}, +} +@proceedings{niu2013zonghe, + editor = {牛志明 and 斯温兰德 and 雷光春}, + key = {Niu Zhi Ming Siwenlande Lei Guang Chun}, + title = {综合湿地管理国际研讨会论文集}, + address = {北京}, + publisher = {海洋出版社}, + year = {2013}, +} +@incollection{chen1980zhongguo, + author = {陈晋镳 and 张惠民 and 朱士兴 and 赵震 and + 王振刚}, + key = {Chen Jing Ao Zhang Hui Ming Zhu Shi Xing Zhao Zhen Wang Zhen Gang}, + title = {蓟县震旦亚界研究}, + editor = {中国地质科学院天津地质矿产研究所}, + booktitle = {中国震旦亚界}, + address = {天津}, + publisher = {天津科学技术出版社}, + year = {1980}, + pages = {56--114}, +} +@article{yuan2012lana, + author = {袁训来 and 陈哲 and 肖书海}, + key = {Yuan xun lai Chen zhe Xiao shu Hai}, + title = {蓝田生物群: 一个认识多细胞生物起源和早期演化的新窗口 -- 篇一}, + journal = {科学通报}, + year = {2012}, + volume = {57}, + number = {34}, + pages = {3219}, +} +@article{yuan2012lanb, + author = {袁训来 and 陈哲 and 肖书海}, + key = {Yuan xun lai Chen zhe Xiao shu Hai}, + title = {蓝田生物群: 一个认识多细胞生物起源和早期演化的新窗口 -- 篇二}, + journal = {科学通报}, + year = {2012}, + volume = {57}, + number = {34}, + pages = {3219}, +} +@article{yuan2012lanc, + author = {袁训来 and 陈哲 and 肖书海}, + key = {Yuan xun lai Chen zhe Xiao shu Hai}, + title = {蓝田生物群: 一个认识多细胞生物起源和早期演化的新窗口 -- 篇三}, + journal = {科学通报}, + year = {2012}, + volume = {57}, + number = {34}, + pages = {3219}, +} +@article{walls2013drought, + author = {Walls, Susan C. and Barichivich, William J. and Brown, Mary + E.}, + title = {Drought, deluge and declines: the impact of precipitation + extremes on amphibians in a changing climate}, + journal = {Biology}, + year = {2013}, + volume = {2}, + number = {1}, + pages = {399--418}, + urldate = {2013-11-04}, + url = {http://www.mdpi.com/2079-7737/2/1/399}, + doi = {10.3390/biology2010399}, +} +@article{Bohan1928, + author = { ボハン, デ}, + title = { 過去及び現在に於ける英国と会 }, + journal = { 日本時報 }, + year = { 1928 }, + volume = { 17 }, + pages = { 5-9 }, + edition = { 9 }, + hyphenation = { japanese }, + language = { japanese } +} + +@article{Dubrovin1906, + author = { Дубровин, А. И }, + title = { Открытое письмо Председателя Главного Совета Союза Русского Народа Санкт-Петербургскому Антонию, Первенствующему члену Священного Синода }, + journal = { Вече }, + year = { 1906 }, + volume = { }, + edition = { 97 }, + month = { 7 дек. 1906 }, + pages = { 1-3 }, + hyphenation = { russian }, + language = { russian } +} diff --git a/Master/texmf-dist/doc/latex/shtthesis/shtthesis-user-guide.pdf b/Master/texmf-dist/doc/latex/shtthesis/shtthesis-user-guide.pdf new file mode 100644 index 00000000000..675e9169438 Binary files /dev/null and b/Master/texmf-dist/doc/latex/shtthesis/shtthesis-user-guide.pdf differ diff --git a/Master/texmf-dist/doc/latex/shtthesis/shtthesis-user-guide.tex b/Master/texmf-dist/doc/latex/shtthesis/shtthesis-user-guide.tex new file mode 100644 index 00000000000..467f72fd2e3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/shtthesis/shtthesis-user-guide.tex @@ -0,0 +1,619 @@ +\documentclass{shtthesis} + +\shtsetup{ + degree = {master}, + degree-name = {工学硕士}, + degree-name* = {Master~of~Science~in~Engineering}, + secret-level = {白给}, + title = {\ShtThesis~v\version~使用说明}, + title* = {A~User's~Guide\\to\\\ShtThesis~v\version}, + keywords = {上海科技大学,学位论文,\LaTeX{}}, + keywords* = {ShanghaiTech~University, Thesis, \LaTeX{}}, + author = {李润东}, + author* = {Li~Rundong}, + institution = {上海科技大学信息科学与技术学院}, + institution* = {School~of~Information~Science~and~Technology\\% + ShanghaiTech~University}, + supervisor = {范睿~副教授}, + supervisor* = {Professor~Fan~Rui}, + supervisor-institution = {上海科技大学信息科学与技术学院}, + discipline-level-1 = {计算机科学与技术}, + discipline-level-1* = {Computer~Science~and~Technology}, +} + +\definecolor{shtred}{RGB}{146,46,23} +% `latex' and `shell' environments are adapted from `thuthesis' +\usepackage{listings} +\newcommand\prompt{\textup{\$}} +\lstdefinestyle{lstStyleBase}{% + basicstyle=\small\ttfamily, + aboveskip=\medskipamount, + belowskip=\medskipamount, + lineskip=0pt, + boxpos=c, + showlines=false, + extendedchars=true, + upquote=true, + tabsize=2, + showtabs=false, + showspaces=false, + showstringspaces=false, + numbers=none, + linewidth=\linewidth, + xleftmargin=4pt, + xrightmargin=0pt, + resetmargins=false, + breaklines=true, + breakatwhitespace=false, + breakindent=0pt, + breakautoindent=true, + columns=flexible, + keepspaces=true, + gobble=0, + framesep=3pt, + rulesep=1pt, + framerule=1pt, + backgroundcolor=\color{gray!5}, + stringstyle=\color{green!40!black!100}, + keywordstyle=\bfseries\color{blue!50!black}, + commentstyle=\slshape\color{black!60}, + escapeinside={`'}, +} +\lstdefinestyle{lstStyleShell}{% + style=lstStyleBase, + frame=l, + rulecolor=\color{shtred}, + language=bash} +\lstdefinestyle{lstStyleLaTeX}{% + style=lstStyleBase, + frame=l, + rulecolor=\color{shtred}, + language=[LaTeX]TeX} +\lstnewenvironment{latex}{\lstset{style=lstStyleLaTeX}}{} +\lstnewenvironment{shell}{\lstset{style=lstStyleShell}}{} + +\usepackage{hologo} +\usepackage{ifluatex} +\ifluatex + \ifthenelse{\equal{\currentfontset}{windows}}{ + \newfontface\EmojiFont{Segoe UI Emoji}[Renderer=HarfBuzz] + }{ + \ifthenelse{\equal{\currentfontset}{mac}}{ + \newfontface\EmojiFont{Apple Color Emoji}[Renderer=HarfBuzz] + }{ + \newfontface\EmojiFont{Noto Color Emoji}[Renderer=HarfBuzz] + } + } +\else + \providecommand{\EmojiFont}{\emph{Current \LaTeX{} engine does not support Emoji}} +\fi +\providecommand{\emoji}[1]{% + \begingroup% + \ifluatex% + \EmojiFont #1% + \else% + \EmojiFont% + \fi% + \endgroup% +} +\IfFontExistsTF{Times New Roman}{ + \providefontfamily\timesnewroman{Times New Roman} +}{ + \providecommand{\timesnewroman}{\emph{Times New Roman missing}} +} +\IfFontExistsTF{Times}{ + \providefontfamily\timesfamily{Times} +}{ + \providecommand{\timesfamily}{\emph{Times missing}} +} +\IfFontExistsTF{XITS-Regular.otf}{ + \providefontfamily\xitsfamily{XITS-Regular.otf} +}{ + \providecommand{\xitsfamily}{\emph{XITS missing}} +} + +\usepackage{subcaption} +\usepackage{ctable} +\usepackage{bicaption} +\captionsetup[figure][bi-second]{name=Figure} +\captionsetup[table][bi-second]{name=Table} + +\begin{document} + +\maketitle + +\frontmatter +\begin{abstract} + 本文档阐述 \shtthesis 的使用方法,包括其编译方式、文档类选项、文档类提供的功能及其他便于用户(\emph{也就是正在阅读这篇文档的您})快速撰写符合上海科技大学要求的学位论文的技术要点。 + + \shtthesis 旨在以最简实现和最小依赖完整覆盖《上海科技大学研究生学位论文撰写规范(初稿)》的所有格式要求,且不为用户额外设限。从 v\version 起,仅需指定 documentclass 为 \shtthesis 即可满足基本排版要求。文档通过 \verb|\shtsetup| 命令统一设定学位论文信息,且仅提供满足格式需求的最少额外命令以保证兼容性。用户可根据自身撰文习惯,引入额外的宏包和命令完成学位论文撰写。 +\end{abstract} + +\begin{abstract*} + We elaborate on the usage of document class \shtthesis, including its compiling process, class options, provided functionalities, and other technical points to facilitate the user (that is, \emph{you}) to quickly develop their thesis to meet the format requirements of ShanghaiTech University. + + \shtthesis is intended to cover all requirements in 《上海科技大学研究生学位论文撰写规范(初稿)》with minimal function set and introduce no restriction to the user. Beginning with v\version, specifying documentclass to \shtthesis is sufficient for the basic thesis typesetting requirements. This document class uses \verb|\shtsetup| to uniformly set up thesis information and only provides minimum auxiliary commands to meet all format requirements. The user can import other packages and functionalities according to their writing habits. +\end{abstract*} + +\makeindices + +\begin{nomenclatures} + \header[单位]{符号}{说明} + \item[${m^{2} \cdot s^{-2} \cdot K^{-1}}$]{$R$}{the gas constant} + \item[${m^{2} \cdot s^{-2} \cdot K^{-1}}$]{$C_v$}{specific heat capacity at constant volume} + \item[${m^{2} \cdot s^{-2} \cdot K^{-1}}$]{$C_p$}{specific heat capacity at constant pressure} + \item[${m^{2} \cdot s^{-2}}$]{$E$}{specific total energy} + \item[${kg \cdot m \cdot s^{-3} \cdot K^{-1}}$]{$k$}{thermal conductivity} + \item[${kg \cdot m^{-1} \cdot s^{-2}}$]{$S_{ij}$}{deviatoric stress tensor} + \item[${kg \cdot m^{-1} \cdot s^{-2}}$]{$\tau_{ij}$}{viscous stress tensor} + \item[${1}$]{$\delta_{ij}$}{Kronecker tensor} +\end{nomenclatures} + +\begin{nomenclatures}[缩写] + \header{缩写}{全称} + \item{CFD}{Computational Fluid Dynamics} + \item{CFL}{Courant-Friedrichs-Lewy} + \item{WENO}{Weighted Essentially Non-oscillatory} + \item{ZND}{Zel'dovich-von Neumann-Doering} +\end{nomenclatures} + +\begin{nomenclatures}[算子 \& 说明] + \item{$\Delta$}{difference} + \item{$\nabla$}{gradient operator} + \item{$\delta^{\pm}$}{upwind-biased interpolation scheme} +\end{nomenclatures} + +\mainmatter +\chapter{模板介绍} +\shtthesis (\textbf{S}hang\textbf{h}ai\textbf{T}ech University \textbf{THESIS}) 是根据《上海科技大学研究生学位论文撰写规范(初稿)》(下文简称《规范》)编写的、适用于上海科技大学学位论文写作的\emph{非官方} \LaTeX 模板。目前版本(v\version)提供了博士、硕士学位论文排版选项,且能够自动生成用于盲审的匿名版以及最终提交的打印版论文。 + +这篇文档将尽量详细地阐释 \shtthesis 的使用方法和技巧。由于这篇文档直接使用 \shtthesis 排版,所以其源代码文件 \texttt{\jobname.tex} 也可以作为一个实际样例以供读者参考使用。 + +我们计划在 \shtthesis 后续版本中加入本科学位论文的排版选项,因此亟需有上海科技大学本科论文排版经验的同学参与到 \shtthesis 项目中。我们也计划将该使用说明和模板文件 \verb|shtthesis.cls| 统一重构为 \verb|.dtx| 文件。同时,我们也非常希望得到用户宝贵的反馈和建议。若您有意为 \shtthesis 贡献 issues 和 pull requests,请移步至项目主页 \url{https://github.com/lirundong/sht-thesis}。 + +\chapter{模板使用} +\section{模板安装} +\shtthesis 提供的文档类型文件为 \verb|shtthesis.cls|,封面所需的上海科技大学校徽文件为 \verb|shanghaitech-logo.pdf|,参考文献 GBT-7714 格式文件为 \verb|shtthesis-gbt7714-plain.bst|,用户仅需将这三个文件拷贝至自己论文的工作目录下即可完成安装。假设用户的论文文件为 \verb|thesis.tex|,则工作目录中必要的文件包括: +\begin{center} + \begin{tabular}{ll} + \toprule + 文件名称 & 说明 \\ + \midrule + \verb|shtthesis.cls| & 模板文档类文件 \\ + \verb|shanghaitech-logo.pdf| & 上海科技大学校徽 \\ + \verb|shtthesis-gbt7714-plain.bst| & 参考文献格式文件 \\ + \verb|thesis.tex| & 论文文件 \\ + \verb|reference.bib| & 参考文献默认文件名 \\ + \bottomrule + \end{tabular} +\end{center} + +\paragraph{注意} +为避免版权问题,上传至 CTAN 的 \shtthesis 并不包含校徽文件。如果用户直接使用 \TeX{} Live 分发的 \shtthesis,则需要至项目主页下载校徽文件\footnote{校徽文件在 GitHub 项目下的链接为 \url{https://github.com/lirundong/shtthesis/raw/master/shanghaitech-logo.pdf}},并将 \verb|shanghaitech-logo.pdf| 与 \verb|thesis.tex| 放置在同一目录下。 + +\section{文档编译} +\shtthesis 支持使用 \hologo{XeLaTeX} 和 \hologo{LuaLaTeX} 编译(注意,\emph{不支持} \hologo{pdfLaTeX})。尝试编译本文档的源代码 \texttt{\jobname.tex} 至 PDF 文件是了解 \shtthesis 编译流程最直观的方法。我们推荐在最新的 \hologo{TeX} Live 环境下,使用 \verb|latexmk| 工具进行编译。Windows 及 Linux 用户请下载安装 \hologo{TeX} Live (\url{https://www.tug.org/texlive/}),macOS 用户请下载安装 Mac\hologo{TeX} (\url{https://www.tug.org/mactex/})。不推荐在 overleaf 等在线平台编译使用 \shtthesis,项目主页不接受与 overleaf 相关的 issues。 + +在完成环境配置后,即可使用 \verb|latexmk| 工具完成编译。使用 \hologo{XeLaTeX} 引擎进行编译的命令为: +\begin{shell} +`\prompt' latexmk -pdfxe +\end{shell} +若使用 \hologo{LuaLaTeX} 引擎,则编译命令为: +\begin{shell} +`\prompt' latexmk -pdflua +\end{shell} +一般来说,\hologo{XeLaTeX} 引擎的编译速度较快且占用资源较少,而 \hologo{LuaLaTeX} 引擎的编译结果似乎有更好的跨平台规范性。在 \shtthesis 开发过程中,曾出现过在 macOS 下 \hologo{XeLaTeX} 编译的 PDF 在 Windows 下无法打开,而 \hologo{LuaLaTeX} 编译结果正常的情况。若使用 LuaHB\hologo{TeX} 引擎编译,还可进一步使用 emoji 等特殊功能。例如:\emoji{ 👴🏻👴🏼👴🏽👴🏾👴🏿👴👨🏻‍🦳🎅🏻🦹🏻‍♂️🕵🏼‍♂️👨🏼‍⚕️👨🏼‍🌾👨🏼‍🍳👨🏼‍💼👨🏼‍🔧👨🏼‍🔬👨🏼‍🎨👨🏼‍🚒👨🏼‍✈️👨🏼‍⚖️🧔🏼🤵🏼🧙🏻‍♂️🧖🏼‍♂️👨🏼‍🌾👮🏼‍♂️👨🏼‍🏫👨🏼‍🚀}。LuaHB\hologo{TeX} 引擎是 \hologo{TeX} Live 2020 中 \hologo{LuaLaTeX} 的默认实现,在 \hologo{TeX} Live 2019 下使用 LuaHB\hologo{TeX} 的方法为: +\begin{shell} +`\prompt' latexmk -pdflua -pdflualatex=lualatex-dev +\end{shell} + +\section{载入模板类} +模板安装完成后,在论文文件 \verb|thesis.tex| 开头使用 +\begin{latex} +\documentclass{shtthesis} +\end{latex} +即可载入模板。\shtthesis 接受的类参数包括:用于生成盲审论文的 \verb|anonymous| 选项,用于生成打印版论文的 \verb|print| 选项,以及传递给 \textsf{cexbook} 的其他选项。 + +\subsection{\texttt{anonymous} 选项} \label{sec::option_anonymous} +为方便生成盲审所需的匿名版论文,在文档类传入 \verb|anonymous| 即可将论文中英文封面的作者信息、导师信息,以及附录中的作者简历替换为匿名字符串,将作者论文发表、专利申请记录替换为匿名版本,并隐去文末的致谢部分: +\begin{latex} +\documentclass[anonymous]{shtthesis} +\end{latex} +\shtthesis 默认的匿名字符串为连续的三个英文星号“***”,该字符串可使通过 \verb|\shtsetup| 的 anonymous-str 选项修改: +\begin{latex} +\shtsetup{ + anonymous-str = XXX, % 作者、导师姓名在匿名环境下显示为 XXX +} +\end{latex} +\verb|\shtsetup| 命令的使用方法详见第~\ref{sec::setup_info} 节。 + +\subsection{\texttt{print} 选项} +传入 \verb|print| 选项后,论文中所有超链接变为黑色(包括文献引用、URL 等),以避免黑白打印后彩色链接内容呈浅灰色影响观感;同时将奇数页、偶数页的内侧页边距分别增加 0.63 厘米以便于装订。 +\begin{latex} +\documentclass[print]{shtthesis} +\end{latex} + +\subsection{传递给 \textsf{ctexbook} 的其他选项} +\shtthesis 实际使用 \CTeX 宏包提供的 \textsf{ctexbook} 文档类排版,除 \verb|anonymous| 和 \verb|print| 外的其余类参数会传递给 \textsf{ctexbook}。其中需要注意的选项为 fontset,即设定论文所用的字体集。\CTeX 宏包自身能够根据编译平台选择合适的字体集,但有时会出现平台识别失败从而回退至 \TeX Live 提供的最基础的 Fandol 字体集导致缺字的情况。此时可以手动设置相应的 fontset,例如在 Windows 平台下设置 \verb|fontset=windows|,在 macOS 平台下设置 \verb|fontset=mac|: +\begin{latex} +\documentclass[fontset=windows]{shtthesis} +\end{latex} +不同字符集所用字体见表~\ref{tab::fonts}。 + +\begin{table}[htb] + \centering + \caption{不同字符集下 \shtthesis 所用字体} + \label{tab::fonts} + \begin{subtable}{\columnwidth} + \centering + \caption{\shtthesis 所用中文字体} + \label{tab::chs_fonts} + \begin{tabular}{l *{3}{c}} + \toprule + & Windows & Mac & Fandol \\ + \midrule + \songti 宋体 & \songti 中易宋体 & \songti 华文宋体简体 & \songti Fandol 宋体 \\ + \heiti 黑体 & \heiti 中易黑体 & \heiti 华文黑体简体 & \heiti Fandol 黑体 \\ + \kaishu 楷书 & \kaishu 中易楷体 & \kaishu 华文楷体简体 & \kaishu Fandol 楷体 \\ + \fangsong 仿宋 & \fangsong 中易仿宋 & \fangsong 华文仿宋简体 & \fangsong Fandol 仿宋 \\ + \bottomrule + \end{tabular} + \end{subtable} + \newline + \vspace{12pt} + \newline + \begin{subtable}{\columnwidth} + \centering + \caption{\shtthesis 所用英文字体(全平台一致)} + \label{tab::eng_fonts} + \begin{tabular}{*{3}{c}} + \toprule + \textrm{Serif} & \textsf{Sans Serif} & \texttt{Typewriter} \\ + \midrule + \textrm{\TeX{} Gyre Termes} & \textsf{\TeX{} Gyre Heros} & \texttt{\TeX{} Gyre Cursor} \\ + \bottomrule + \end{tabular} + \end{subtable} +\end{table} + +用户可以在不显著违反《规范》的前提下按照自身需求自定义字符集(例如在排版正文英文字体时,{\rmfamily \TeX{} Gyre Termes}、{\xitsfamily XITS}、{\timesfamily Times} 和 {\timesnewroman Times New Roman} 几种字体几乎没有明显区别,见表~\ref{tab::serif_fonts}),或通过其他设置调整 \textsf{ctexbook} 的排版行为。\textsf{ctexbook} 使用方法详见 \CTeX 文档。\footnote{\url{http://mirrors.ctan.org/language/chinese/ctex/ctex.pdf}} + +\begin{table}[htb] + \centering + \caption{不同英文衬线字体测试} + \label{tab::serif_fonts} + \begin{tabular}{ll} + \toprule + Font Name & Content \\ + \midrule + \rmfamily \TeX{} Gyre Termes & \rmfamily The quick brown fox jumps over the lazy dog. \\ + \xitsfamily XITS & \xitsfamily The quick brown fox jumps over the lazy dog. \\ + \timesfamily Times & \timesfamily The quick brown fox jumps over the lazy dog. \\ + \timesnewroman Times New Roman & \timesnewroman The quick brown fox jumps over the lazy dog. \\ + \bottomrule + \end{tabular} +\end{table} + +\section{学位及封面信息} \label{sec::setup_info} +\shtthesis 需要知晓学位类型(v\version 支持 master 和 doctor)才能进行进一步排版;其次根据《规范》,博士学位论文和硕士学位论文需要在中英文封面中,依次列出论文密级、论文标题、作者姓名、导师信息、学位类别、一级学科、学校/学院名称及论文完成时间,并在中英文摘要之后列出论文关键词。以上信息均可通过 \verb|\shtsetup| 命令,在论文导言区(即 \verb|\documentclass| 之后、\verb|\begin{document}| 之前)以 key=value 方式统一设定。用户可以一次性调用 \verb|\shtsetup| 设定所有信息,也可分多次设定。例如: +\begin{latex} +\shtsetup{ + degree = {master}, + degree-name = {工学硕士}, + degree-name* = {Master~of~Science~in~Engineering}, + secret-level = {白给}, + title = {\ShtThesis~v\version~使用说明}, + title* = {A~User's~Guide\\to\\\ShtThesis~v\version}, + keywords = {上海科技大学,学位论文,\LaTeX{}}, + keywords* = {ShanghaiTech~University, Thesis, \LaTeX{}}, + author = {李润东}, + author* = {Li~Rundong}, + institution = {上海科技大学信息科学与技术学院}, + institution* = {School~of~Information~Science~and~Technology\\% + ShanghaiTech~University}, + supervisor = {范睿~副教授}, + supervisor* = {Professor~Fan~Rui}, + supervisor-institution = {上海科技大学信息科学与技术学院}, + discipline-level-1 = {计算机科学与技术}, + discipline-level-1* = {Computer~Science~and~Technology}, + date = {2020~年~6~月}, + date* = {June,~2020}, +} +\end{latex} +其中,表示中文信息条目的 key 为 \verb|-| 连接的小写单词(例如 \verb|degree-name|),由 \verb|*| 结尾的 key 一般表示对应的英文条目(例如 \verb|degree-name*|);value 可以在前后添加大括号,也可以不添加。特别需要注意 \verb|\shtsetup| 命令内\emph{不能有空行}。 + +\subsection{学位信息} +需要设定的学位信息包括:学位类型(degree)、学位名称(degree-name)和英文学位名称(degree-name*),具体见表~\ref{tab::degree_info}。学位类型会影响 \shtthesis 的中英文封面内容。 +\begin{table}[htb] +\centering +\caption{通过\texttt{shtsetup}设定的学位信息} \label{tab::degree_info} +\small +\begin{tabular}{llp{0.5\columnwidth}} + \toprule + key & value 样例 & 说明 \\ + \midrule + degree & doctor & v\version 目前支持硕士(master)和博士(doctor)论文排版 \\ + degree-name & 学术型博士 & 中文学位名称,《规范》中学术型学位中文名称包括:学术型博士、理学硕士、工学硕士 \\ + degree-name* & Doctor~of~Philosophy & 英文学位名称,《规范》中上述学位对应的英文名称为:Doctor~of~Philosophy、Master~of~Natural~Science、Master~of~Science~in~Engineering \\ + \bottomrule +\end{tabular} +\end{table} + +\subsection{论文标题信息} +设定论文中英文标题和涉密等级。中文标题(title)和英文标题(title*)中可以包含换行符。涉密等级(secret-level)会以“密级:\uline{XXX}”显示在中文封面右上角,未设定涉密等级则不显示相关信息。 + +\subsection{作者信息} +需要设定的作者信息包括:作者中英文姓名(author 和 author*)、一级学科中英文名称(discipline-level-1 和 discipline-level-1*)和学校/学院中英文名称(institution 和 institution*)。注意《规范》要求以姓氏拼音在前、名字拼音在后、中间以半角空格分隔的格式书写英文姓名。 +\begin{latex} +\shtsetup{ + author = 李润东, + author* = {Li~Rundong}, % 正确写法 + % author* = {Rundong~Li}, % 错误写法 +} +\end{latex} + +在设定学校/学院名称时,中文名称(institution)不可带换行符,英文名称(institution*)应在学院、学校名称间加入换行符,否则封面排版会出现错误。 +\begin{latex} +\shtsetup{ + institution = 上海科技大学信息科学与技术学院, + institution* = {School~of~Information~Science~and~Technology\\% + ShanghaiTech~University}, +} +\end{latex} + +\subsection{导师信息} +需要设定的导师信息包括:导师中英文姓名(supervisor 和 supervisor*)和导师单位中文名称(supervisor-institution)。注意在中文封面中,导师姓名和单位分两行显示在“指导教师”条目下。根据《规范》,导师中文姓名(supervisor)应包含导师职称,如教授、副教授、助理教授、研究员、副研究员,以一个半角空格跟随在姓名之后;导师英文姓名(supervisor*)则统一以“Professor”开头,与英文姓名以一个半角空格隔开。导师单位中文名称(supervisor-institution)不可包含换行符。 +\begin{latex} +\shtsetup{ + supervisor = {范睿~副教授}, + supervisor* = {Professor~Fan~Rui}, + supervisor-institution = {上海科技大学信息科学与技术学院}, +} +\end{latex} + +\subsection{成文日期} +通过 date 和 date* 分别设置中英文成文日期,日期内容请参考《规范》,日期格式为: +\begin{latex} +\shtsetup{ + date = {2020~年~6~月}, + date* = {June,~2020}, +} +\end{latex} + +\section{前言部分} +《规范》规定论文前言部分应包含论文原创性声明和授权使用声明、中英文摘要、目录及图形、表格列表。若有需要,可加入符号列表。\shtthesis 会自动生成目录和图表列表,在不设置 \verb|anonymous| 选项时会自动生成声明页。\shtthesis 提供了摘要和符号列表环境,以便于用户生成中英文摘要和符号列表。 + +\subsection{论文摘要及关键词} +论文中英文摘要在正文部分 \verb|\frontmatter| 之后、\verb|\makeindices| 之前,分别在 \verb|abstract| 和 \verb|abstract*| 环境中输入。摘要环境对内容没有限制。 +\begin{latex} +\begin{abstract} + 中文摘要内容... +\end{abstract} + +\begin{abstract*} + English abstract content... +\end{abstract*} +\end{latex} + +论文中英文关键词在 \verb|\shtsetup| 命令中分别以 keywords 和 keywords* 设定。注意 \shtthesis v\version 中尚未实现分词处理,此处输入的 value 会不经任何预处理,直接插入至正文中排版。因此,中文关键词(keywords)之间应该以中文逗号“,”隔开且不包含空格;英文关键词(keywords*)之间应该以半角逗号“,”隔开,并在每一半角逗号后跟随一个半角空格。 +\begin{latex} +\shtsetup{ + keywords = {上海科技大学,学位论文,\LaTeX{}}, + keywords* = {ShanghaiTech~University, Thesis, \LaTeX{}}, +} +\end{latex} + +\subsection{目录及图形、表格、符号列表} +\shtthesis 重载了 \verb|\makeindices| 命令,可一次生成目录、图形列表和表格列表。默认目录中正文标题列出至第 3 级(即 subsection),若包含附录则目录中只列出“附录”一项(附录各级标题仍会生成 PDF 书签),图形、表格列表中列出图表标题的全部内容。对于特别长的图形、表格标题,可以在 \verb|\caption| 命令中指定短标题,从而使列表条目更为简明: +\begin{latex} +\begin{figure} + \caption[出现在图形列表内的短标题]{出现在正文中的长标题} + % ... +\end{figure} +\end{latex} + +\shtthesis 提供了 \verb|nomenclatures| 环境用于生成符号列表,使用方法为: +\begin{latex} +\begin{nomenclatures}[`\emph{caption}'] + \head[`\emph{unitCap}']{`\emph{symbCap}'}{`\emph{descriptionCap}'} + \item[`\emph{unit}']{`\emph{symb}'}{`\emph{description}'} + % ... +\end{nomenclatures} +\end{latex} +每次 \verb|nomenclatures| 调用会分别生成一组符号列表,每一 \verb|\item| 会生成一行符号描述。若 caption 不为空则会为当前组生成一个不编号的 section 级的标题。\verb|\head| 为可选指令,会为当前组生成一个“表头”,但必须在 \verb|\item| 之前列出。\verb|\item| 接受一个可选参数 unit 作为符号的单位,若其不为空则在当前行右对齐出现。\verb|nomenclatures| 的使用样例可以参考 \texttt{\jobname.tex} 中“符号列表”部分。注意在 \shtthesis v\version 中 \verb|\item| 的 description 折行后会出现排版错误,故暂时不支持较长的符号描述。 + +\section{正文部分} +\shtthesis 正文部分的书写与一般 \LaTeX 项目无异。为保证兼容性,\shtthesis 除修改公式编号格式以符合《规范》要求外,不提供证明、定理等任何额外环境。文献引用目前只支持“著者——出版年”格式。 + +\subsection{编号公式} +\shtthesis 通过 \textsf{mathtools} 宏包在公式编号前添加 $\ldots$ 以符合《规范》对公式编号的格式要求,如: +\begin{align} +P(A|B) &= \frac{P(A)P(B|A)}{P(B)} \label{eq::bayesian} +\end{align} +同时重载了 \verb|\eqref|,使得公式编号格式修改后,其引用仍与 \textsf{amsmath} 无异:贝叶斯定理~\eqref{eq::bayesian}。 + +\subsection{文献引用} \label{sec::citation} +\shtthesis 目前仅通过 \textsf{natbib} 支持“著者——出版年”格式的引用,可以使用 \verb|\citet| 进行文本形式的引用 \citet{Bohan1928},使用 \verb|\citep| 进行括号形式的引用 \citep{yuan2012lanc},以及使用 \verb|\citeyear| 进行年份引用 \citeyear{walls2013drought}。当引用内容是组成正文的一部分时,应使用文本形式的引用,否则使用括号形式的引用。一个实用的区分技巧是,如果你在做口头介绍时会说出引用内容,就应使用文本形式的引用,否则使用括号形式的引用。 + +\shtthesis 默认使用的参考文献文件为 reference.bib,若使用其他文件则需在 \verb|\makebiblio| 命令后指明 +\begin{latex} +\makebiblio[mybiblio] % 读取 mybiblio.bib 文件 +\end{latex} +需要注意若文献条目的作者姓名非英文,则需额外增加 key 字段指定作者英文姓名,并在姓氏拼英后加注音调,以确保文献条目在文末的参考文献中正确排列。例如 \citet{bravo1990comparative} 无需额外处理,而 \citet{chen1980zhongguo} 对应的 bib 条目需修改为 +\begin{latex} +@incollection{chen1980zhongguo, + author = {陈晋镳 and 张惠民 and 朱士兴 and 赵震 and 王振刚}, + key = {Chen2 Jing Ao Zhang1 Hui Ming Zhu1 Shi Xing Zhao4 Zhen Wang2 Zhen Gang}, + title = {蓟县震旦亚界研究}, + editor = {中国地质科学院天津地质矿产研究所}, + booktitle = {中国震旦亚界}, + address = {天津}, + publisher = {天津科学技术出版社}, + year = {1980}, + pages = {56--114}, +} +\end{latex} + +\subsection{列表环境} +\shtthesis 微调了编号列表(\verb|enumerate|)和非编号列表(\verb|itemize|)环境,以适应中文排版惯例。编号列表默认使用数字编号: +\begin{enumerate} + \item 起来,饥寒交迫的奴隶! + \item 起来,全世界受苦的人! + \item 满腔的热血已经沸腾, + \item 要为真理而斗争! +\end{enumerate} +也可以在 \verb|\begin{enumerate}| 之后,以短标签(short label)形式指定编号格式。例如,使用小写字母+半角括号作为编号: +\begin{enumerate}[a)] + \item 旧世界打个落花流水, + \item 奴隶们起来,起来! + \item 不要说我们一无所有, + \item 我们要做天下的主人! +\end{enumerate} +还可以通过 \verb|resume*| 参数,“继续”被中断的列表编号: +\begin{enumerate}[a), resume*] + \item 这是最后的斗争, + \item 团结起来到明天, + \item 英特纳雄耐尔 + \item 就一定要实现! +\end{enumerate} + +关键字(\verb|description|)环境在每一条目关键字后增加了加粗全角冒号“\textbf{:}”以适应中文排版惯例。例如:《中华人民共和国劳动法》 +\begin{description} + \item[第一章第三条] 劳动者享有平等就业和选择职业的权利、取得劳动报酬的权利、休息休假的权利、获得劳动安全卫生保护的权利、接受职业技能培训的权利、享受社会保险和福利的权利、提请劳动争议处理的权利以及法律规定的其他劳动权利。 + \item[第四章第三十六条] 国家实行劳动者每日工作时间不超过八小时、平均每周工作时间不超过四十四小时的工时制度。 + \item[第四章第四十一条] 用人单位由于生产经营需要,经与工会和劳动者协商后可以延长工作时间,一般每日不得超过一小时;因特殊原因需要延长工作时间的,在保障劳动者身体健康的条件下延长工作时间每日不得超过三小时,但是每月不得超过三十六小时。 + \item[第四章第四十三条] 用人单位不得违反本法规定延长劳动者的工作时间。 +\end{description} + +\subsection{双语图表标题} +《规范》要求正文中所有图形、表格标题使用中英双语。此需求可以通过 \textsf{bicaption} 宏包实现,如图~\ref{img::sht_logo} 所示。 +\begin{figure}[htb] + \centering + \IfFileExists{shanghaitech-logo.pdf}{% + \includegraphics[width=0.5\columnwidth]{shanghaitech-logo.pdf}% + }{% + \missingfigure{\small 校徽文件 \texttt{shanghaitech-logo.pdf} 缺失}% + }% + \bicaption{上海科技大学校徽}{School logo of ShanghaiTech University} + \label{img::sht_logo} +\end{figure} + +由于在排版较长的、自包含的图表标题时,使用双语图表标题会导致可读性下降,\shtthesis 默认不载入 \textsf{bicaption} 宏包。( \shtthesis 作者在 2020 年学位申请时并未使用双语标题。)若确实需要双语标题,可在导言区内手动载入并设定 \textsf{bicaption}: +\begin{latex} +\usepackage{bicaption} +\captionsetup[figure][bi-second]{name=Figure} +\captionsetup[table][bi-second]{name=Table} +\end{latex} + +\section{附录及其他内容} \label{sec::backmatter} +正文完成后,使用 \verb|\makebiblio| 命令可生成参考文献,若需读取自定义 bib 文件请参考第~\ref{sec::citation} 节。使用 \verb|\appendix| 命令后,即可像书写正文一样书写附录。默认目录中只显示“附录”一项,不显示附录各级标题。 +\begin{latex} +\appendix +\chapter{...} +% ... +\end{latex} + +《规范》要求在文末依此列出致谢、作者简历、攻读学位期间发表的论文与研究成果。用户可使用 \shtthesis 提供的相应环境 \verb|acknowledgement|、\verb|resume|、\verb|publications|、\verb|patterns| 和 \verb|projects| 进行排版。同时为了生成符合盲审要求的论文,\shtthesis 也提供了对应的\emph{匿名环境} \verb|publications*|、\verb|patterns*| 和 \verb|projects*|。在打开 \verb|anonymous| 选项(第~\ref{sec::option_anonymous} 节)后,论文中不出现“致谢”一节,作者简历内容替换为匿名字符串,其他小节使用匿名环境内容排版。注意在第一次使用任一上述环境前,需要使用 \verb|\backmatter| 切换至后记模式。 + +\subsection{致谢} +在 \verb|acknowledgement| 环境内书写致谢,致谢内容在匿名模式下不显示。 +\begin{latex} +\begin{acknowledgement} + 致谢信息…… +\end{acknowledgement} +\end{latex} + +\subsection{简历及科研成果} +此部分需要依此书写个人简历(\verb|resume| 环境)、已发表(或正式接受)的学术论文(\verb|publications| 和 \verb|publications*| 环境)、申请或已获得的专利(\verb|patterns| 和 \verb|patterns*| 环境)、参加的研究项目及获奖情况(\verb|projects| 和 \verb|projects*|)。根据是否匿名分别显示非匿名环境内容和匿名环境内容。 +\begin{latex} +\begin{resume} + 个人简历…… (仅非匿名环境显示) +\end{resume} + +\begin{publications} + 论文发表记录…… (非匿名时显示) +\end{publications} + +\begin{publications*} + 论文发表记录…… (匿名时显示) +\end{publications*} +% ... +\end{latex} + +\makebiblio + +\appendix +\chapter{其他排版细节测试} +本章中的测试材料,数学公式部分来自 \textsf{ucasthesis} 附录 B\footnote{\url{https://github.com/mohuangrui/ucasthesis/blob/master/Tex/Appendix.tex}},生僻字部分来自《生僻字大全(按部首分类)》\footnote{\url{http://xh.5156edu.com/page/z4745m2559j18770.html}}。 + +\section{排版数学公式} +\providecommand{\Vector}[1]{\ensuremath{\mathbf{ #1 }}} +\providecommand{\Tensor}[1]{\ensuremath{\mathbf{\mathsf{ #1 }}}} +\begin{equation} + \begin{cases} + \frac{\partial \rho}{\partial t} + \nabla\cdot(\rho\Vector{V}) = 0 \\ + \frac{\partial (\rho\Vector{V})}{\partial t} + \nabla\cdot(\rho\Vector{V}\Vector{V}) = \nabla\cdot\Tensor{\sigma} \\ + \frac{\partial (\rho E)}{\partial t} + \nabla\cdot(\rho E\Vector{V}) = \nabla\cdot(k\nabla T) + \nabla\cdot(\Tensor{\sigma}\cdot\Vector{V}) + \end{cases} +\end{equation} +\begin{equation} + \frac{\partial }{\partial t}\int\limits_{\Omega} u \, \mathrm{d}\Omega + \int\limits_{S} \Vector{n}\cdot(u\Vector{V}) \, \mathrm{d}S = \dot{\phi} +\end{equation} +\[ + \begin{split} + \mathcal{L} \{f\}(s) &= \int _{0^{-}}^{\infty} f(t) e^{-st} \, \mathrm{d}t, \ + \mathscr{L} \{f\}(s) = \int _{0^{-}}^{\infty} f(t) e^{-st} \, \mathrm{d}t\\ + \mathcal{F} {\bigl (} f(x+x_{0}) {\bigr )} &= \mathcal{F} {\bigl (} f(x) {\bigr )} e^{2\pi i\xi x_{0}}, \ + \mathscr{F} {\bigl (} f(x+x_{0}) {\bigr )} = \mathscr{F} {\bigl (} f(x) {\bigr )} e^{2\pi i\xi x_{0}} + \end{split} +\] + +Ordinary math: $A,F,L,2,3,5,\sigma$. \verb|\mathrm|: $\mathrm{A,F,L,2,3,5,\sigma}$. + +\verb|\mathbf|: $\mathbf{A,F,L,2,3,5,\sigma}$. \verb|\mathit|: $\mathit{A,F,L,2,3,5,\sigma}$. + +\verb|\mathsf|: $\mathsf{A,F,L,2,3,5,\sigma}$. \verb|\mathtt|: $\mathtt{A,F,L,2,3,5,\sigma}$. + +\verb|\mathfrak|: $\mathfrak{A,F,L,2,3,5,\sigma}$. \verb|\mathbb|: $\mathbb{A,F,L,2,3,5,\sigma}$. + +\verb|\mathcal|: $\mathcal{A,F,L,2,3,5,\sigma}$. \verb|\mathscr|: $\mathscr{A,F,L,2,3,5,\sigma}$. + +\section{排版生僻字} +{\songti 叧叨叭叱叴叵叺叻叼叽叾卟叿吀吁吂吅吆吇吋吒吔吖吘吙吚吜吡吢吣吤吥吧吩吪吭吮吰吱吲呐吷吺吽呁呃呄呅呇呉呋呋呌呍呎呏呐呒呓呔呕呗呙呚呛呜呝呞呟呠呡呢呣呤呥呦呧周呩呪呫呬呭呮呯呰呱呲呴呶呵呷呸呹呺呻呾呿咀咁咂咃咄咅咇咈咉咊咋咍咎咐咑咓咔咕咖咗咘咙咚咛咜咝咞咟咠咡咢咣咤咥咦咧咨咩咪咫咬咭咮咯咰咲咳咴咵咶啕咹咺咻呙咽咾咿哂哃哅哆哇哈哊哋哌哎哏哐哑哒哓哔哕哖哗哘哙哚哛哜哝哞哟哠咔哣哤哦哧哩哪哫哬哯哰唝哵哶哷哸哹哻哼哽哾哿唀唁唂唃呗唅唆唈唉唊唋唌唍唎唏唑唒唓唔唣唖唗唘唙吣唛唜唝唞唟唠唡唢唣唤唥唦唧唨唩唪唫唬唭唯唰唲唳唴唵唶唷念唹唺唻唼唽唾唿啀啁啃啄啅啇啈啉啋啌啍啎问啐啑啒启啔啕啖啖啘啙啚啛啜啝哑启啠啡唡衔啥啦啧啨啩啪啫啬啭啮啯啰啱啲啳啴啵啶啷啹啺啻啼啽啾啿喀喁喂喃善喅喆喇喈喉喊喋喌喍喎喏喐喑喒喓喔喕喖喗喙喛喞喟喠喡喢喣喤喥喦喨喩喯喭喯喰喱哟喳喴喵営喷喸喹喺喼喽喾喿嗀嗁嗂嗃嗄嗅呛啬嗈嗉唝嗋嗌嗍吗嗏嗐嗑嗒嗓嗕嗖嗗嗘嗙呜嗛嗜嗝嗞嗟嗠嗡嗢嗧嗨唢嗪嗫嗬嗭嗮嗰嗱嗲嗳嗴嗵哔嗷嗸嗹嗺嗻嗼嗽嗾嗿嘀嘁嘂嘃嘄嘅嘅嘇嘈嘉嘊嘋嘌喽嘎嘏嘐嘑嘒嘓呕嘕啧嘘嘙嘚嘛唛嘝嘞嘞嘟嘠嘡嘢嘣嘤嘥嘦嘧嘨哗嘪嘫嘬嘭唠啸囍嘴哓嘶嘷呒嘹嘺嘻嘼啴嘾嘿噀噂噃噄咴噆噇噈噉噊噋噌噍噎噏噐噑噒嘘噔噕噖噗噘噙噚噛噜咝噞噟哒噡噢噣噤哝哕噧噩噪噫噬噭噮嗳噰噱哙噳喷噵噶噷吨噺噻噼噽噾噿咛嚁嚂嚃嚄嚅嚆吓嚈嚉嚊嚋哜嚍嚎嚏尝嚑嚒嚓嚔噜嚖嚗嚘啮嚚嚛嚜嚝嚞嚟嚠嚡嚢嚣嚤呖嚧咙嚩咙嚧嚪嚫嚬嚭嚯嚰嚱亸喾嚵嘤嚷嚸嚹嚺嚻嚼嚽嚾嚿啭嗫嚣囃囄冁囆囇呓囊囋囍囎囏囐嘱囒啮囔囕囖} + +{\heiti 圠圡圢圤圥圦圧圩圪圫圬圮圯地圱圲圳圴圵圶圷圸圹圻圼埢鴪址坁坂坃坄坅坆坈坉坊坋坌坍坒坓坔坕坖坘坙坜坞坢坣坥坧坨坩坪坫坬坭坮坯垧坱坲坳坴坶坸坹坺坻坼坽坾坿垀垁垃垅垆垇垈垉垊垌垍垎垏垐垑垓垔垕垖垗垘垙垚垛垜垝垞垟垠垡垤垥垧垨垩垪垫垬垭垮垯垰垱垲垲垳垴埯垶垷垸垹垺垺垻垼垽垾垽垿埀埁埂埃埄埅埆埇埈埉埊埋埌埍城埏埐埑埒埓埔埕埖埗埘埙埚埛野埝埞域埠垭埢埣埤埥埦埧埨埩埪埫埬埭埮埯埰埱埲埳埴埵埶执埸培基埻崎埽埾埿堀堁堃堄坚堆堇堈堉垩堋堌堍堎堏堐堑堒堓堔堕垴堗堘堙堚堛堜埚堞堟堠堢堣堥堦堧堨堩堫堬堭堮尧堰报堲堳场堶堷堸堹堺堻堼堽堾堼堾碱塀塁塂塃塄塅塇塆塈塉块茔塌塍塎垲塐塑埘塓塕塖涂塘塙冢塛塜塝塟塠墘塣墘塥塦塧塨塩塪填塬塭塮塯塰塱塲塳塴尘塶塷塸堑塺塻塼塽塾塿墀墁墂墄墅墆墇墈墉垫墋墌墍墎墏墐墒墒墓墔墕墖墘墖墚墛坠墝增墠墡墢墣墤墥墦墧墨墩墪樽墬墭堕墯墰墱墲坟墴墵垯墷墸墹墺墙墼墽垦墿壀壁壂壃壄壅壆坛壈壉壊垱壌壍埙壏壐壑壒压壔壕壖壗垒圹垆壛壜壝垄壠壡坜壣壤壥壦壧壨坝塆圭} + +{\kaishu 奵奺奻奼奾奿妀妁妅妉妊妋妌妍妎妏妐妑妔妕妗妘妚妛妜妟妠妡妢妤妦妧妩妫妭妮妯妰妱妲妴妵妶妷妸妺妼妽妿姀姁姂姃姄姅姆姇姈姉姊姌姗姎姏姒姕姖姘姙姛姝姞姟姠姡姢姣姤姥奸姧姨姩姫姬姭姮姯姰姱姲姳姴姵姶姷姸姹姺姻姼姽姾娀威娂娅娆娈娉娊娋娌娍娎娏娐娑娒娓娔娕娖娗娙娚娱娜娝娞娟娠娡娢娣娤娥娦娧娨娩娪娫娬娭娮娯娰娱娲娳娴娵娷娸娹娺娻娽娾娿婀娄婂婃婄婅婇婈婋婌婍婎婏婐婑婒婓婔婕婖婗婘婙婛婜婝婞婟婠婡婢婣婤婥妇婧婨婩婪婫娅婮婯婰婱婲婳婵婷婸婹婺婻婼婽婾婿媀媁媂媄媃媅媪媈媉媊媋媌媍媎媏媐媑媒媓媔媕媖媗媘媙媚媛媜媝媜媞媟媠媡媢媣媤媥媦媨媩媪媫媬媭妫媰媱媲媳媴媵媶媷媸媹媺媻媪媾嫀嫃嫄嫅嫆嫇嫈嫉嫊袅嫌嫍嫎嫏嫐嫑嫒嫓嫔嫕嫖妪嫘嫙嫚嫛嫜嫝嫞嫟嫠嫡嫢嫣嫤嫥嫦嫧嫨嫧嫩嫪嫫嫬嫭嫮嫯嫰嫱嫲嫳嫴嫳妩嫶嫷嫸嫹嫺娴嫼嫽嫾婳妫嬁嬂嬃嬄嬅嬆嬇娆嬉嬊娇嬍嬎嬏嬐嬑嬒嬓嬔嬕嬖嬗嬘嫱嬚嬛嬜嬞嬟嬠嫒嬢嬣嬥嬦嬧嬨嬩嫔嬫嬬奶嬬嬮嬯婴嬱嬲嬳嬴嬵嬶嬷婶嬹嬺嬻嬼嬽嬾嬿孀孁孂娘孄孅孆孇孆孈孉孊娈孋孊孍孎孏嫫婿媚} + +{\fangsong 敳屮屰屲屳屴屵屶屷屸屹屺屻屼屽屾屿岃岄岅岆岇岈岉岊岋岌岍岎岏岐岑岒岓岔岕岖岘岙岚岜岝岞岟岠岗岢岣岤岥岦岧岨岪岫岬岮岯岰岲岴岵岶岷岹岺岻岼岽岾岿峀峁峂峃峄峅峆峇峈峉峊峋峌峍峎峏峐峑峒峓崓峖峗峘峚峙峛峜峝峞峟峠峢峣峤峥峦峧峨峩峪峬峫峭峮峯峱峲峳岘峵峷峸峹峺峼峾峿崀崁崂崃崄崅崆崇崈崉崊崋崌崃崎崏崐崒崓崔崕崖崘崚崛崜崝崞崟岽崡峥崣崤崥崦崧崨崩崪崫崬崭崮崯崰崱崲嵛崴崵崶崷崸崹崺崻崼崽崾崿嵀嵁嵂嵃嵄嵅嵆嵇嵈嵉嵊嵋嵌嵍嵎嵏岚嵑岩嵓嵔嵕嵖嵗嵘嵙嵚嵛嵜嵝嵞嵟嵠嵡嵢嵣嵤嵥嵦嵧嵨嵩嵪嵫嵬嵭嵮嵯嵰嵱嵲嵳嵴嵵嵶嵷嵸嵹嵺嵻嵼嵽嵾嵿嶀嵝嶂嶃崭嶅嶆岖嶈嶉嶊嶋嶌嶍嶎嶏嶐嶑嶒嶓嵚嶕嶖嶘嶙嶚嶛嶜嶝嶞嶟峤嶡峣嶣嶤嶥嶦峄峃嶩嶪嶫嶬嶭崄嶯嶰嶱嶲嶳岙嶵嶶嶷嵘嶹岭嶻屿岳帋巀巁巂巃巄巅巆巇巈巉巊岿巌巍巎巏巐巑峦巓巅巕岩巗巘巙巚} + +\backmatter +\begin{acknowledgement} +\shtthesis 派生于中国科学院大学论文模板 \textsf{ucasthesis}\footnote{\url{https://github.com/mohuangrui/ucasthesis},使用 GPLv3 许可证分发。},v0.2.0 开发过程中参考了清华大学论文模板 \textsf{thuthesis}\footnote{\url{https://github.com/tuna/thuthesis},使用 LPPL-1.3c 许可证分发},特别是 \verb|\thusetup| 命令的设计和实现。这些项目中流淌的智慧,以及项目作者们的专业态度和共享精神使得 \shtthesis 的开发及完善成为可能。 +\end{acknowledgement} + +\begin{resume} + 李润东,\shtthesis 项目初版作者及维护者,热爱摸鱼。 +\end{resume} + +\begin{publications} + 论文发表…… (非匿名环境) +\end{publications} + +\begin{publications*} + 论文发表…… (匿名环境) +\end{publications*} + +\begin{patterns} + 专利申请或授权记录…… (非匿名环境) +\end{patterns} + +\begin{patterns*} + 专利申请或授权记录…… (匿名环境) +\end{patterns*} + +\begin{projects} + 个人参与的科研项目、获奖情况…… (仅非匿名环境显示) +\end{projects} + +\end{document} diff --git a/Master/texmf-dist/tex/latex/shtthesis/shtthesis.cls b/Master/texmf-dist/tex/latex/shtthesis/shtthesis.cls new file mode 100644 index 00000000000..ecaa022e92b --- /dev/null +++ b/Master/texmf-dist/tex/latex/shtthesis/shtthesis.cls @@ -0,0 +1,1285 @@ +% ============================================================================== +% Identification +% ============================================================================== +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{shtthesis}[% + 2020/06/05 % + v0.2.0 % + An Unofficial Thesis Template for ShanghaiTech University% +] +\hyphenation{sht-thesis} +\hyphenation{Sht-Thesis} +\RequirePackage{xspace} +\newcommand\shtthesis{\textup{\sffamily shtthesis}\xspace} +\newcommand\ShtThesis{\textup{\sffamily ShtThesis}\xspace} +\newcommand\version{0.2.0\xspace} +\newcommand\versiondate{2020/06/05\xspace} +% ============================================================================== +% Options and Declarations +% ============================================================================== +\RequirePackage{kvdefinekeys} +\RequirePackage{kvsetkeys} +\RequirePackage{kvoptions} +\RequirePackage{datetime} +% ------------------------------------------------------------------------------ +% Define \shtsetup command +% +% Following key-value setup mechanism is adapted from `thuthesis'. +% thuthesis (https://github.com/xueruini/thuthesis) is licensed under the +% conditions of the LaTeX Project Public License, either version 1.3. +% ------------------------------------------------------------------------------ +\SetupKeyvalOptions{ + family = sht, + prefix = {sht@}, + setkeys = \kvsetkeys, +} +\newcommand\sht@error[1]{% + \ClassError{shtthesis}{#1}{}% +} +\newcommand\shtsetup{% + \kvsetkeys{sht}% +} +\newcommand\sht@define@key[1]{% + \kvsetkeys{sht@key}{#1}% +} +\kv@set@family@handler{sht@key}{% + \@namedef{sht@#1@@name}{#1}% + \def\sht@@default{}% + \def\sht@@choices{}% + \kv@define@key{sht@value}{name}{% + \@namedef{sht@#1@@name}{##1}% + }% + \kv@define@key{sht@value}{code}{% + \@namedef{sht@#1@@code}{##1}% + }% + \@namedef{sht@#1@@check}{}% + \@namedef{sht@#1@@code}{}% + \@namedef{sht@#1@@hook}{% + \expandafter\ifx\csname\@currname.\@currext-h@@k\endcsname\relax + \@nameuse{sht@#1@@code}% + \else + \AtEndOfClass{% + \@nameuse{sht@#1@@code}% + }% + \fi + }% + \kv@define@key{sht@value}{choices}{% + \def\sht@@choices{##1}% + \@namedef{sht@#1@@reset}{}% + \@namedef{sht@#1@@check}{% + \@ifundefined{% + ifsht@\@nameuse{sht@#1@@name}@\@nameuse{sht@\@nameuse{sht@#1@@name}}% + }{% + \sht@error{Invalid value "#1 = \@nameuse{sht@\@nameuse{sht@#1@@name}}"}% + }% + \@nameuse{sht@#1@@reset}% + \@nameuse{sht@\@nameuse{sht@#1@@name}@\@nameuse{sht@\@nameuse{sht@#1@@name}}true}% + }% + }% + \kv@define@key{sht@value}{default}{% + \def\sht@@default{##1}% + }% + \kvsetkeys{sht@value}{#2}% + \@namedef{sht@\@nameuse{sht@#1@@name}}{}% + \kv@set@family@handler{sht@choice}{% + \ifx\sht@@default\@empty + \def\sht@@default{##1}% + \fi + \expandafter\newif\csname ifsht@\@nameuse{sht@#1@@name}@##1\endcsname + \expandafter\g@addto@macro\csname sht@#1@@reset\endcsname{% + \@nameuse{sht@\@nameuse{sht@#1@@name}@##1false}% + }% + }% + \kvsetkeys@expandafter{sht@choice}{\sht@@choices}% + \expandafter\let\csname sht@\@nameuse{sht@#1@@name}\endcsname\sht@@default + \expandafter\ifx\csname sht@\@nameuse{sht@#1@@name}\endcsname\@empty\else + \@nameuse{sht@#1@@check}% + \@nameuse{sht@#1@@hook}% + \fi + \kv@define@key{sht}{#1}{% + \@namedef{sht@\@nameuse{sht@#1@@name}}{##1}% + \@nameuse{sht@#1@@check}% + \@nameuse{sht@#1@@hook}% + }% +} +% ------------------------------------------------------------------------------ +% Options for \shtsetup +% ------------------------------------------------------------------------------ +\sht@define@key{ + degree = { + choices = { + bachelor, + master, + doctor, + postdoc, + }, + default = doctor, + }, + degree-type = { + choices = { + academic, + professional, + }, + name = degree@type, + }, + degree-name = { + default = {工学博士}, + name = degree@name, + }, + degree-name* = { + default = {Doctor~of~Philosophy}, + name = degree@name@en, + }, + language = { + choices = { + chinese, + english, + }, + }, + secret-level = { + name = secret@level, + }, + secret-year = { + name = secret@year, + }, + title = { + default = {标题}, + }, + title* = { + default = {Title}, + name = title@en, + }, + keywords, + keywords* = { + name = keywords@en, + }, + author = { + default = {姓名}, + }, + author* = { + default = {Name of author}, + name = author@en, + }, + supervisor = { + default = {导师姓名}, + }, + supervisor* = { + default = {Name of supervisor}, + name = supervisor@en, + }, + supervisor-institution = { + name = supervisor@institution, + }, + supervisor-institution* = { + name = supervisor@institution@en, + }, + associate-supervisor = { + name = associate@supervisor, + }, + associate-supervisor* = { + name = associate@supervisor@en, + }, + associate-supervisor-institution = { + name = associate@supervisor@institution, + }, + associate-supervisor-institution* = { + name = associate@supervisor@institution@en, + }, + joint-supervisor = { + name = joint@supervisor, + }, + joint-supervisor* = { + name = joint@supervisor@en, + }, + joint-supervisor-institution = { + name = joint@supervisor@institution, + }, + joint-supervisor-institution* = { + name = joint@supervisor@institution@en, + }, + institution = { + % default = {上海科技大学信息科学与技术学院}, + }, + institution* = { + % default = {% + % School~of~Information~Science~and~Technology\\% + % ShanghaiTech~University% + % }, + name = institution@en + }, + discipline = { + % default = {计算机科学与技术}, + }, + discipline* = { + % default = {Computer Science and Technology}, + name = discipline@en, + }, + date = { + default = {\the\year~年~\the\month~月}, + }, + date* = { + default = {\monthname,~\the\year}, + name = date@en, + }, + clc, + udc, + id, + discipline-level-1 = { + default = {一级学科名称}, + name = discipline@level@i, + }, + discipline-level-1* = { + default = {Name of Level-one Discipline}, + name = discipline@level@i@en, + }, + discipline-level-2 = { + default = {二级学科名称}, + name = discipline@level@ii, + }, + discipline-level-2* = { + default = {Name of Level-two Discipline}, + name = discipline@level@ii@en, + }, + start-date = { + name = start@date, + default = {\the\year-\two@digits{\month}-\two@digits{\day}}, + }, + end-date = { + name = end@date, + default = {\the\year-\two@digits{\month}-\two@digits{\day}}, + }, + anonymous-str = { + name = anonymous@str, + default = {***}, + } +} +% ------------------------------------------------------------------------------ +% Class options +% ------------------------------------------------------------------------------ +\PassOptionsToClass{ + UTF8, + a4paper, + twoside, + openany, + zihao = -4, + scheme = plain, +}{ctexbook} +\SetupKeyvalOptions{ + family = sht, + prefix = sht@, +} +\DeclareBoolOption[false]{anonymous} +\DeclareBoolOption[false]{print} +\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{ctexbook}} +\ProcessKeyvalOptions* +% ------------------------------------------------------------------------------ +% Load minimum mandatory packages +% ------------------------------------------------------------------------------ +\LoadClass{ctexbook} +\RequirePackage[hyperref, table]{xcolor} +\RequirePackage{geometry} +\RequirePackage{calc} +\RequirePackage{verbatim} +\RequirePackage{etoolbox} +\RequirePackage{ifthen} +\RequirePackage{graphicx} +\RequirePackage{todonotes} +\RequirePackage{indentfirst} +\RequirePackage[normalem]{ulem} +\RequirePackage{fancyhdr} +\RequirePackage{tocvsec2} +\RequirePackage{letltxmacro} +\RequirePackage{fontspec}[2016/12/27] +\RequirePackage{caption} +\RequirePackage{natbib} +\RequirePackage[shortlabels, inline]{enumitem} +\RequirePackage{amsmath} +\RequirePackage{mathtools} +\RequirePackage[ + mathrm = sym, + mathit = sym, + mathbf = sym, + mathtt = sym, +]{unicode-math} +\AtEndPreamble{ + \RequirePackage{hyperref} + \hypersetup{ + pdfencoding = auto, + psdextra = true, + bookmarksnumbered = true, + pdftitle = {\sht@title}, + pdfauthor = {\sht@author}, + } + \ifsht@print + \hypersetup{ + hidelinks, + colorlinks = false, + } + \else + \hypersetup{ + colorlinks = true, + linkcolor = black, + citecolor = blue, + urlcolor = blue, + } + \fi +} +% ============================================================================== +% Format Specifications +% ============================================================================== +% ------------------------------------------------------------------------------ +% Basic information +% ------------------------------------------------------------------------------ +\def\@title{\sht@title} +\def\@author{\sht@author} +\def\contentsname{目\hspace{1\ccwd}录} +\def\listfigurename{图形列表} +\def\listtablename{表格列表} +\def\appendixname{附录} +\def\indexname{索引} +\def\refname{参考文献} +\def\bibname{参考文献} +\def\tablename{表} +\def\figurename{图} +\def\bibetal{等} +\def\biband{和} +% ------------------------------------------------------------------------------ +% Geometry and layouts +% ------------------------------------------------------------------------------ +\geometry{ + top = 2.54cm, + bottom = 2.54cm, + headheight = 12pt, % 9bp, + headsep = 17.5pt, % 2.54cm - 9bp, + footskip = 2.54cm - 1.75cm, +} +\ifsht@print + \def\binding@width{0.63cm} + \geometry{ + inner = 3.17cm + \binding@width, + outer = 3.17cm - \binding@width, + } +\else + \geometry{ + inner = 3.17cm, + outer = 3.17cm, + } +\fi +\setlength{\parskip}{0.5ex plus 0.25ex minus 0.25ex} +\setlength{\parindent}{2\ccwd} +\linespread{1.6} +\raggedbottom +% ------------------------------------------------------------------------------ +% Headers and footers +% ------------------------------------------------------------------------------ +\pagestyle{fancy} +\fancypagestyle{CenteralPageNumbered}{ + \fancyhf{} + \pagenumbering{Roman} + \fancyhead[C]{ + \footnotesize + \ifnumodd{\value{page}}{ + \nouppercase\leftmark + }{ + \nouppercase\@title + } + } + \fancyfoot[C]{ + \footnotesize + \thepage + } + \renewcommand{\headrulewidth}{0.8pt} + \renewcommand{\footrulewidth}{0pt} +} +\fancypagestyle{LRPageNumbered}{ + \fancyhf{} + \fancyhead[C]{ + \footnotesize + \ifnumodd{\value{page}}{ + \nouppercase\leftmark + }{ + \nouppercase\@title + } + } + \fancyfoot[C]{ + \footnotesize + \ifnumodd{\value{page}}{ + \hspace*{\fill} + \thepage + }{ + \thepage + \hspace*{\fill} + } + } + \renewcommand{\headrulewidth}{0.8pt} + \renewcommand{\footrulewidth}{0pt} +} +\fancypagestyle{LRPageNumberedAppendix}{ + \fancyhf{} + \fancyhead[C]{ + \footnotesize + \ifnumodd{\value{page}}{% + 附\hspace{1\ccwd}录% + }{ + \nouppercase\@title + } + } + \fancyfoot[C]{ + \footnotesize + \ifnumodd{\value{page}}{ + \hspace*{\fill} + \thepage + }{ + \thepage + \hspace*{\fill} + } + } + \renewcommand{\headrulewidth}{0.8pt} + \renewcommand{\footrulewidth}{0pt} +} +\fancypagestyle{LRPageNumberedWithoutHead}{ + \fancyhf{} + \fancyfoot[C]{ + \footnotesize + \ifnumodd{\value{page}}{ + \hspace*{\fill} + \thepage + }{ + \thepage + \hspace*{\fill} + } + } + \renewcommand{\headrulewidth}{0pt} + \renewcommand{\footrulewidth}{0pt} +} +\fancypagestyle{Plain}{} +\providecommand{\frontmatter}{} +\LetLtxMacro{\TmpFrontmatter}{\frontmatter} +\renewcommand{\frontmatter}{% + \TmpFrontmatter% + \pagestyle{CenteralPageNumbered}% +} +\providecommand{\mainmatter}{} +\LetLtxMacro{\TmpMainmatter}{\mainmatter} +\renewcommand{\mainmatter}{% + \TmpMainmatter% + \pagestyle{LRPageNumbered}% +} +% ------------------------------------------------------------------------------ +% Font utilities +% ------------------------------------------------------------------------------ +\newcommand\sht@fontset{\csname g__ctex_fontset_tl\endcsname} +\newcommand\currentfontset{\sht@fontset} +% ------------------------------------------------------------------------------ +% English fonts +% ------------------------------------------------------------------------------ +\setmainfont{texgyretermes} [ + Extension = .otf, + UprightFont = *-regular, + BoldFont = *-bold, + ItalicFont = *-italic, + BoldItalicFont = *-bolditalic, + Ligatures = TeX, +] +\setsansfont{texgyreheros} [ + Extension = .otf, + UprightFont = *-regular, + BoldFont = *-bold, + ItalicFont = *-italic, + BoldItalicFont = *-bolditalic, + Ligatures = TeX, +] +\setmonofont{texgyrecursor} [ + Extension = .otf, + UprightFont = *-regular, + BoldFont = *-bold, + ItalicFont = *-italic, + BoldItalicFont = *-bolditalic, + Ligatures = CommonOff, +] +% ------------------------------------------------------------------------------ +% Chinese fonts +% ------------------------------------------------------------------------------ +\ifthenelse{\equal{\sht@fontset}{windows}}{ + \def\fake@bold@factor{2.5} + \IfFileExists{C:/bootfont.bin}{ + \def\windows@kaiti{KaiTi_GB2312} + }{ + \def\windows@kaiti{KaiTi} + } + \setCJKmainfont[ + AutoFakeBold = \fake@bold@factor, + ItalicFont = \windows@kaiti, + ]{SimSun} + \setCJKsansfont[ + AutoFakeBold = \fake@bold@factor, + ]{SimHei} + \setCJKfamilyfont{zhsong}[ + AutoFakeBold = \fake@bold@factor, + ]{SimSun} + \setCJKfamilyfont{zhhei}[ + AutoFakeBold = \fake@bold@factor, + ]{SimHei} + \setCJKfamilyfont{zhkai}[ + AutoFakeBold = \fake@bold@factor, + ]{\windows@kaiti} +}{ + \ifthenelse{\equal{\sht@fontset}{mac}}{ + \setCJKmainfont[ + UprightFont = * Regular, + BoldFont = * Bold, + ItalicFont = Kaiti SC Regular, + BoldItalicFont = Kaiti SC Bold, + ]{Songti SC} + \setCJKsansfont[ + UprightFont = * Light, + BoldFont = * Medium, + ]{Heiti SC} + \setCJKfamilyfont{zhsong}[ + UprightFont = * Regular, + BoldFont = * Bold, + ]{Songti SC} + \setCJKfamilyfont{zhhei}[ + UprightFont = * Light, + BoldFont = * Medium, + ]{Heiti SC} + \setCJKfamilyfont{zhkai}[ + UprightFont = * Regular, + BoldFont = * Bold, + ]{Kaiti SC} + }{ + \IfFontExistsTF{Source Han Serif SC}{ + \def\unix@songti{Source Han Serif SC} + \def\unix@songti@bold{Source Han Serif SC Bold} + }{ + \IfFontExistsTF{Noto Serif CJK SC}{ + \def\unix@songti{Noto Serif CJK SC} + \def\unix@songti@bold{Noto Serif CJK SC Bold} + }{ + \def\unix@songti{FandolSong-Regular.otf} + \def\unix@songti@bold{FandolSong-Bold.otf} + } + } + \IfFontExistsTF{Source Han Sans SC}{ + \def\unix@heiti{Source Han Sans SC} + \def\unix@heiti@bold{Source Han Sans SC Bold} + }{ + \IfFontExistsTF{Noto Sans CJK SC}{ + \def\unix@heiti{Noto Sans CJK SC} + \def\unix@heiti@bold{Noto Sans CJK SC Bold} + }{ + \def\unix@heiti{FandolHei-Regular.otf} + \def\unix@heiti@bold{FandolHei-Bold.otf} + } + } + \IfFontExistsTF{STKaiti}{ + \def\unix@kaiti{STKaiti} + }{ + \IfFontExistsTF{Kaiti}{ + \def\unix@kaiti{Kaiti} + }{ + \def\unix@kaiti{FandolKai-Regular.otf} + } + } + \IfFontExistsTF{STFangsong}{ + \def\unix@fangsong{STFangsong} + }{ + \IfFontExistsTF{FangSong}{ + \def\unix@fangsong{FangSong} + }{ + \def\unix@fangsong{FandolFang-Regular.otf} + } + } + \setCJKmainfont[ + BoldFont = \unix@songti@bold, + ItalicFont = \unix@kaiti, + ]{\unix@songti} + \setCJKsansfont[ + BoldFont = \unix@heiti@bold, + ]{\unix@heiti} + \setCJKmonofont{\unix@fangsong} + \setCJKfamilyfont{zhsong}[ + BoldFont = \unix@songti@bold, + ]{\unix@songti} + \setCJKfamilyfont{zhhei}[ + BoldFont = \unix@heiti@bold, + ]{\unix@heiti} + \setCJKfamilyfont{zhkai}{\unix@kaiti} + \setCJKfamilyfont{zhfs}{\unix@fangsong} + \providecommand{\songti}{\CJKfamily{zhsong}} + \providecommand{\heiti}{\CJKfamily{zhhei}} + \providecommand{\kaishu}{\CJKfamily{zhkai}} + \providecommand{\fangsong}{\CJKfamily{zhfs}} + } +} +% ------------------------------------------------------------------------------ +% Math content specifications +% +% Following setup is adapted from `thuthesis' +% ------------------------------------------------------------------------------ +\unimathsetup{ + math-style = ISO, + bold-style = ISO, + nabla = upright, + partial = upright, +} +\protected\def\le{\leqslant} +\protected\def\ge{\geqslant} +\AtBeginDocument{% + \renewcommand\leq{\leqslant}% + \renewcommand\geq{\geqslant}% +} +\removenolimits{% + \int\iint\iiint\iiiint\oint\oiint\oiiint + \intclockwise\varointclockwise\ointctrclockwise\sumint + \intbar\intBar\fint\cirfnint\awint\rppolint + \scpolint\npolint\pointint\sqint\intlarhk\intx + \intcap\intcup\upint\lowint +} +\AtBeginDocument{% + \renewcommand{\Re}{\operatorname{Re}}% + \renewcommand{\Im}{\operatorname{Im}}% +} +\newcommand\bm{\symbf} +\renewcommand\boldsymbol{\symbf} +\newcommand\square{\mdlgwhtsquare} +\AtBeginDocument{% + \renewcommand\checkmark{\ensuremath{✓}}% +} +\allowdisplaybreaks[4] +\newtagform{dots}{\ldots\ (}{)} +\usetagform{dots} +\renewcommand{\eqref}[1]{\textup{(\ref{#1})}} +% ------------------------------------------------------------------------------ +% Math fonts +% ------------------------------------------------------------------------------ +\IfFontExistsTF{XITSMath-Regular.otf}{ + \setmathfont{XITSMath-Regular} [ + Extension = .otf, + BoldFont = XITSMath-Bold, + StylisticSet = 8, + ] + \setmathfont{XITSMath-Regular.otf} [ + range = {cal, bfcal}, + StylisticSet = 1, + ] + \setmathfont{XITSMath-Regular.otf} [ + range = {scr, bfscr}, + StylisticSet = 2, + ] +}{ + \setmathfont{xits-math} [ + Extension = .otf, + BoldFont = *bold, + StylisticSet = 8, + ] + \setmathfont{xits-math.otf} [ + range = {cal, bfcal}, + StylisticSet = 1, + ] + \setmathfont{xits-math.otf} [ + range = {scr, bfscr}, + StylisticSet = 2, + ] +} +\IfFontExistsTF{FiraMath-Regular.otf}{ + \setmathfontface\mathsf{FiraMath-Regular.otf} +}{} +% ------------------------------------------------------------------------------ +% Utility functions for ToC and bookmarks +% ------------------------------------------------------------------------------ +\newcommand{\artxmaincnt}{% + \ifcsname c@chapter\endcsname% + chapter% + \else% + section% + \fi% +} +\long\def\artxaux#1{} +\newcommand{\intotocnostar}[3]{% + % [<\chapter|...>,<*>,] + #1#2{% + \phantomsection% + \addcontentsline{toc}{\expandafter\artxaux\string#1}{#3}% + #3% + } + \markboth{\MakeUppercase{#3}}{}% +} +\newcommand{\intotocstar}[3][\artxmaincnt]{% + % [<chapter|...>,<extra commands>,<title>] + #2% + \phantomsection% + \addcontentsline{toc}{#1}{#3}% + \markboth{\MakeUppercase{#3}}{}% +} +\newcommand{\intotoc}{\@ifstar{\intotocstar}{\intotocnostar}} +\newcommand{\intobmknostar}[4][0]{% + % [<level>,<\chapter|...>,<*>,<title>] + #2#3{% + \phantomsection% + \Hy@writebookmark% + {}% + {#4}% + {\@currentHref}% + {#1}% + {toc}% + #4% + }% + \markboth{\MakeUppercase{#4}}{}% +} +\newcommand{\intobmkstar}[3][0]{% + % [<level>,<extra commands>,<title>] + #2% + \phantomsection% + \Hy@writebookmark% + {}% + {#3}% + {\@currentHref}% + {#1}% + {toc}% + \markboth{\MakeUppercase{#3}}{}% +} +\newcommand{\intobmk}{\@ifstar{\intobmkstar}{\intobmknostar}} +% ------------------------------------------------------------------------------ +% Table of contents, figures and tables +% ------------------------------------------------------------------------------ +\DeclareCaptionFont{wuhaocuti}{\zihao{5}\bfseries} +\captionsetup{ + format = plain, + hangindent = 2.0em, + skip = 8pt, + labelsep = quad, + font = {wuhaocuti}, +} +\def\@dotsep{1.5mu} +\def\@pnumwidth{2em} +\def\@tocrmarg{2em} +\def\@chaptervspace{1ex} +% [<level>,<indent>,<numwidth>,<title>,<page>] +\renewcommand*{\@dottedtocline}[5]{ + \ifnum #1>\c@tocdepth \else + \vskip \z@ \@plus.2\p@ + {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip + \parindent #2\relax\@afterindenttrue + \interlinepenalty\@M + \leavevmode \zihao{-4}\heiti + \@tempdima #3\relax + \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip + {#4}\nobreak + \leaders\hbox{$\m@th\mkern \@dotsep \cdot\mkern \@dotsep$}\hfill + \nobreak + \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}% + \par\penalty\@highpenalty}% + \fi +} +% [<title>,<page>] +\renewcommand*{\l@part}[2]{ + \ifnum \c@tocdepth >-2\relax + \addpenalty{-\@highpenalty}% + \addvspace{2.25em \@plus\p@}% + \setlength\@tempdima{3em}% + \begingroup + \parindent \z@ \rightskip \@pnumwidth + \parfillskip -\@pnumwidth + {\leavevmode + \zihao{4}\heiti #1 + \leaders\hbox{$\m@th\mkern \@dotsep \cdot\mkern \@dotsep$} + \hfil \hb@xt@\@pnumwidth{\hss #2}}\par + \nobreak + \global\@nobreaktrue + \everypar{\global\@nobreakfalse\everypar{}}% + \endgroup + \fi +} +% [<title>,<page>] +\renewcommand*{\l@chapter}[2]{ + \ifnum \c@tocdepth >\m@ne + \addpenalty{-\@highpenalty}% + \vskip \@chaptervspace \@plus\p@ + \setlength\@tempdima{1.5em}% + \begingroup + \parindent \z@ \rightskip \@pnumwidth + \parfillskip -\@pnumwidth + \leavevmode \zihao{4}\heiti + \advance\leftskip\@tempdima + \hskip -\leftskip + #1\nobreak + \leaders\hbox{$\m@th\mkern \@dotsep \cdot\mkern \@dotsep$} + \hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par + \penalty\@highpenalty + \endgroup + \fi +} +\renewcommand*\l@section{\@dottedtocline{1}{1em}{1.8em}} +\renewcommand*\l@subsection{\@dottedtocline{2}{2em}{2.8em}} +\renewcommand*\l@subsubsection{\@dottedtocline{3}{3em}{3.8em}} +\renewcommand*\l@paragraph{\@dottedtocline{4}{4em}{4.8em}} +\renewcommand*\l@subparagraph{\@dottedtocline{5}{5em}{5.8em}} +\renewcommand*\l@figure{\@dottedtocline{1}{1em}{1.8em}} +\renewcommand*\l@table{\@dottedtocline{1}{1em}{1.8em}} +\setcounter{tocdepth}{2} +\setcounter{secnumdepth}{3} +\newcommand{\makeindices}{% + \begingroup% + \linespread{1.2}% + \intobmk*{\cleardoublepage}{\contentsname}% + \tableofcontents% + \intobmk*{\cleardoublepage}{\listfigurename}% + \listoffigures% + \intobmk*{\cleardoublepage}{\listtablename}% + \listoftables% + \endgroup% +} +% ------------------------------------------------------------------------------ +% Content specifications +% ------------------------------------------------------------------------------ +\ctexset { + chapter = { + format = \bfseries\heiti\zihao{4}\linespread{1.0}\centering, + nameformat = {}, + numberformat = \rmfamily, + titleformat = {}, + name = {第, 章}, + number = \arabic{chapter}, + aftername = \hspace{1\ccwd}, + beforeskip = {7pt}, + afterskip = {18pt}, + pagestyle = Plain, + }, + section = { + format = \heiti\normalsize\linespread{1.0}\raggedright, + nameformat = {}, + numberformat = \rmfamily, + titleformat = {}, + aftername = \hspace{1\ccwd}, + beforeskip = {24pt}, + afterskip = {6pt}, + }, + subsection = { + format = \heiti\normalsize\linespread{1.0}\raggedright, + nameformat = {}, + numberformat = \rmfamily, + titleformat = {}, + aftername = \hspace{1\ccwd}, + beforeskip = {12pt}, + afterskip = {6pt}, + }, + paragraph = { + indent = 2\ccwd, + beforeskip = {0pt}, + afterskip = {1\ccwd}, + }, + punct = quanjiao, + space = auto, + autoindent = true, +} +% ------------------------------------------------------------------------------ +% List environments +% ------------------------------------------------------------------------------ +\newcommand{\textbf@with@colon}[1]{\textbf{#1:}} +\setlist{ + nosep, + labelindent = 2\ccwd, + labelwidth = *, + labelsep = 0.5\ccwd, + leftmargin = 0em, + itemindent = *, + listparindent = 2\ccwd, +} +\setlist[description]{ + labelsep = 0em, + format = \normalfont\textbf@with@colon, +} +% ============================================================================== +% Cover Generation +% ============================================================================== +\def\ulhshift{-4em} +\newcommand{\ulunify}[1]{\uline{#1}} +\newcommand{\ulenhance}[2][1pt]{% + \def\ULthickness{#1}% + \setlength{\ULdepth}{0.3em}% + \expandafter\ulunify\expandafter{#2}% +} +\newcommand{\ulextend}[2][350pt]{% + \hbox to #1 {\hfill \hspace*{\ulhshift} #2 \hfill}% +} +\newcommand\sht@schoollogo{% + \IfFileExists{shanghaitech-logo.pdf}{% + \includegraphics[width=10.48cm]{shanghaitech-logo.pdf}% + }{% + \missingfigure[figwidth=10.48cm, figheight=2.79cm]{% + \small 校徽文件 \texttt{shanghaitech-logo.pdf} 缺失,请至\href{https://github.com/lirundong/shtthesis/raw/master/shanghaitech-logo.pdf}{项目主页}下载!% + }% + }% +} +\renewcommand{\maketitle}{% + \ifthenelse{\equal{\sht@degree}{doctor}}{ + \sht@maketitle@graduate{博士} + \sht@maketitle@graduate@en{dissertation} + }{ + \ifthenelse{\equal{\sht@degree}{master}}{ + \sht@maketitle@graduate{硕士} + \sht@maketitle@graduate@en{thesis} + }{ + \sht@error{Degree type `\sht@degree' is not supported yet} + } + } + \ifthenelse{\not \boolean{sht@anonymous}}{% + \makedeclarations% + }{} +} +% ------------------------------------------------------------------------------ +% PhD/Master covers +% ------------------------------------------------------------------------------ +\newcommand{\sht@maketitle@graduate}[1]{% + \intobmk*{\cleardoublepage}{封面} + \thispagestyle{empty} + \begin{center} + \linespread{1.6}\zihao{4}\bfseries + \hfill{} + \ifdefempty{\sht@secret@level}{}{% + 密级:% + \ulenhance{% + \ulextend[50pt]{% + \hspace*{-\ulhshift} \zihao{5} \sht@secret@level% + }% + }% + } + + \vspace*{\stretch{4}} + + \sht@schoollogo + + \vspace*{\stretch{2}} + + {\zihao{1}\heiti #1学位论文} + + \vspace*{\stretch{3}} + + {\zihao{-3}\heiti \ulenhance[1.5pt]{\sht@title}} + + \vspace*{\stretch{3}} + + { + \songti + \def\tabcolsep{1pt} + \def\arraystretch{1.3} + \begin{tabular}{llc} + 作者姓名:& + \multicolumn{2}{c}{\ulenhance[1.2pt]{\ulextend{% + \ifsht@anonymous% + \sht@anonymous@str% + \else% + \sht@author% + \fi% + }}} \\ + 指导教师:& + \multicolumn{2}{c}{\ulenhance[1.2pt]{\ulextend{% + \ifsht@anonymous% + \sht@anonymous@str% + \else% + \sht@supervisor% + \fi% + }}} \\ + \ifdefempty{\sht@supervisor@institution}{}{ & + \multicolumn{2}{c}{\ulenhance[1.2pt]{\ulextend{\sht@supervisor@institution}}} \\ + } + 学位类别:& + \multicolumn{2}{c}{\ulenhance[1.2pt]{\ulextend{\sht@degree@name}}} \\ + 一级学科:& + \multicolumn{2}{c}{\ulenhance[1.2pt]{\ulextend{\sht@discipline@level@i}}} \\ + \multicolumn{2}{l}{学校/学院名称:} & + \ulenhance[1.2pt]{\ulextend[318pt]{\sht@institution}} \\ + \end{tabular} + } + + \vspace*{\stretch{4}} + + \sht@date + + \vspace{\stretch{4}} + \end{center} + \clearpage + \thispagestyle{empty} + \cleardoublepage +} +\newcommand{\sht@maketitle@graduate@en}[1]{ + \intobmk*{\cleardoublepage}{Cover} + \thispagestyle{empty} + \begin{center} + \linespread{1.6} + \zihao{4}\bfseries + + \vspace*{50pt} + + {\zihao{-3}\bfseries \ulenhance[1.5pt]{\sht@title@en}} + + \vspace*{\stretch{3}} + + { + A~#1~submitted~to\\ + ShanghaiTech~University\\ + in~partial~fulfillment~of~the~requirement\\ + for~the~degree~of\\ + \ifthenelse{\equal{\sht@degree}{doctor}}{ + Doctor~of~Philosophy\\ + }{ + \sht@degree@name@en\\ + } + in~\sht@discipline@level@i@en + + By + + \ifsht@anonymous% + \sht@anonymous@str% + \else% + \sht@author@en% + \fi% + + Supervisor:~% + \ifsht@anonymous% + \sht@anonymous@str% + \else% + \sht@supervisor@en% + \fi% + } + + \vspace*{\stretch{3}} + + {\sht@institution@en} + + \vspace*{\stretch{1}} + + {\sht@date@en} + + \vspace{\stretch{3}} + \end{center} + \clearpage + \thispagestyle{empty} + \cleardoublepage +} +% ------------------------------------------------------------------------------ +% Declarations +% ------------------------------------------------------------------------------ +\newcommand{\makedeclarations}{% + \intobmk*{\cleardoublepage}{声明} + \thispagestyle{empty} + { + \linespread{1.6}\zihao{-4} + + \vspace*{2ex} + + \begin{center} + {\zihao{4}\bfseries\sffamily 上海科技大学\\研究生学位论文原创性声明} + \end{center} + + 本人郑重声明:所呈交的学位论文是本人在导师的指导下独立进行研究工作所取得的成果。% + 尽我所知,除文中已经注明引用的内容外,本论文不包含任何其他个人或集体已经发表或撰写% + 过的研究成果。对论文所涉及的研究工作做出贡献的其他个人和集体,均已在文中以明确方式% + 标明或致谢。 + + \vspace*{3ex} + + {\hfill{} {作者签名:\hspace*{14em}}} + + {\hfill{} {日\quad\quad 期:\hspace*{14em}}} + + \vspace*{6ex} + + \begin{center} + {\zihao{4}\bfseries\sffamily 上海科技大学\\学位论文授权使用声明} + \end{center} + + 本人完全了解并同意遵守上海科技大学有关保存和使用学位论文的规定,即上海科技大学有权% + 保留送交学位论文的副本,允许该论文被查阅,可以按照学术研究公开原则和保护知识产权% + 的原则公布该论文的全部或部分内容,可以采用影印、缩印或其他复制手段保存、汇编本% + 学位论文。 + + 涉密及延迟公开的学位论文在解密或延迟期后适用本声明。 + + \vspace*{3ex} + + {\hfill{} {作者签名:\hspace*{10em} 导师签名:\hspace*{9em}}} + + {\hfill{} {日\quad\quad 期:\hspace*{10em} 日\quad\quad 期:\hspace*{9em}}} + + \vspace{3ex} + } + \clearpage + \thispagestyle{empty} + \cleardoublepage +} +% ------------------------------------------------------------------------------ +% Abstract +% ------------------------------------------------------------------------------ +\newenvironment{abstract}{% + \cleardoublepage% + \intobmk\chapter*{摘\hspace{1\ccwd}要}% +}{% + \vspace{\baselineskip}% + \par\noindent{\bfseries 关键词:} \sht@keywords% +} +\newenvironment{abstract*}{% + \cleardoublepage% + \intobmk\chapter*{Abstract}% +}{% + \vspace{\baselineskip}% + \par\noindent{\bfseries Key Words:} \sht@keywords@en% +} +% ------------------------------------------------------------------------------ +% Nomenclatures +% ------------------------------------------------------------------------------ +\newcounter{sht@nomenclature@cnt} +\setcounter{sht@nomenclature@cnt}{0} +\def\sht@null@arg{} +\newenvironment{nomenclatures}[1][\sht@null@arg]{% + \ifnum\thesht@nomenclature@cnt=0 + \cleardoublepage + \intobmk\chapter*{符号列表}% + \fi + \stepcounter{sht@nomenclature@cnt} + \ifthenelse{\not \equal{#1}{\sht@null@arg}}{ + \section*{#1} + }{ + \par\vspace{24pt} + } + \renewcommand{\item}[3][\sht@null@arg]{ + \ifthenelse{\not \equal{##1}{\sht@null@arg}}{ + \par\noindent\makebox[0.15\columnwidth][l]{##2}{{##3}\hfill{##1}} + }{ + \par\noindent\makebox[0.15\columnwidth][l]{##2}{##3} + } + } + \providecommand{\header}[3][\sht@null@arg]{ + \item[\textbf{##1}]{\textbf{##2}}{\textbf{##3}} + } +}{ +} +% ------------------------------------------------------------------------------ +% Bibliography +% ------------------------------------------------------------------------------ +\providecommand{\bibstyle@authoryear}{\bibpunct{(}{)}{;}{a}{,}{,}} +\citestyle{authoryear} +\bibliographystyle{shtthesis-gbt7714-plain} +\setlength{\bibsep}{0.0ex plus 0.2ex minus 0.2ex} +\renewcommand*{\bibfont}{\small} +\providecommand{\makebiblio}[1][reference]{% + \intotoc*{\cleardoublepage}{\bibname}% + \bibliography{#1}% +} +% ------------------------------------------------------------------------------ +% Appendix +% ------------------------------------------------------------------------------ +\LetLtxMacro{\origin@appendix}{\appendix} +\renewcommand{\appendix}{% + \origin@appendix + \intotoc*{\cleardoublepage}{\appendixname}% + \settocdepth{part}% + \pagestyle{LRPageNumberedAppendix}% +} +% ------------------------------------------------------------------------------ +% Backmatter +% ------------------------------------------------------------------------------ +\providecommand{\backmatter}{} +\LetLtxMacro{\origin@backmatter}{\backmatter} +\renewcommand{\backmatter}{% + \origin@backmatter% + \settocdepth{chapter}% + \pagestyle{LRPageNumbered}% +} +\newcounter{sht@resume@cnt} +\setcounter{sht@resume@cnt}{0} +\newcommand{\sht@check@resume@title}{ + \ifnum\thesht@resume@cnt=0 + \cleardoublepage + \chapter{作者简历及攻读学位期间发表的学术论文与研究成果} + \fi + \stepcounter{sht@resume@cnt} +} +\newenvironment{resume}{% + \sht@check@resume@title + \section*{作者简历:} + \ifsht@anonymous + \sht@anonymous@str\par + \comment + \fi +}{% + \ifsht@anonymous + \endcomment + \fi +} +\newenvironment{publications}{% + \sht@check@resume@title + \ifsht@anonymous + \comment + \fi + \section*{已发表(或正式接受)的学术论文:} +}{% + \ifsht@anonymous + \endcomment + \fi +} +\newenvironment{publications*}{% + \sht@check@resume@title + \ifthenelse{\not \boolean{sht@anonymous}}{ + \comment + }{} + \section*{已发表(或正式接受)的学术论文:} +}{% + \ifthenelse{\not \boolean{sht@anonymous}}{ + \endcomment + }{} +} +\renewenvironment{patterns}{% + \sht@check@resume@title + \ifsht@anonymous + \comment + \fi + \section*{申请或已获得的专利:} +}{% + \ifsht@anonymous + \endcomment + \fi +} +\newenvironment{patterns*}{% + \sht@check@resume@title + \ifthenelse{\not \boolean{sht@anonymous}}{ + \comment + }{} + \section*{申请或已获得的专利:} +}{% + \ifthenelse{\not \boolean{sht@anonymous}}{ + \endcomment + }{} +} +\newenvironment{projects}{% + \sht@check@resume@title + \section*{参加的研究项目及获奖情况:} + \ifsht@anonymous + \sht@anonymous@str\par + \comment + \fi +}{% + \ifsht@anonymous + \endcomment + \fi +} +\newenvironment{acknowledgement}{% + \ifsht@anonymous + \comment + \else + \cleardoublepage + \chapter[致谢]{致\hspace{1\ccwd}谢}\chaptermark{致\hspace{1\ccwd}谢}% + \fi +}{% + \ifsht@anonymous + \endcomment + \fi +} +% ============================================================================== +% Post-processing +% ============================================================================== +\AtEndDocument{ + \cleardoublepage +} +\endinput diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index d564a0f6e66..9358e634ee2 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -662,7 +662,8 @@ my @TLP_working = qw( sf298 sffms sfg sfmath sgame shade shadethm shadow shadowtext shapepar shapes shdoc shipunov shobhika short-math-guide shortmathj shorttoc - show2e showcharinbox showdim showexpl showhyphens showlabels showtags + show2e showcharinbox showdim showexpl showhyphens showlabels + showtags shtthesis shuffle sidecap sidenotes sides signchart silence simple-resume-cv simple-thesis-dissertation simplebnf simplecd simplecv diff --git a/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc b/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc index 8bfa80c18e8..45e54277971 100644 --- a/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc @@ -167,6 +167,7 @@ depend sduthesis depend seuthesis depend seuthesix depend shortmathj +depend shtthesis depend soton depend sphdthesis depend spie diff --git a/Master/tlpkg/tlpsrc/shtthesis.tlpsrc b/Master/tlpkg/tlpsrc/shtthesis.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d -- cgit v1.2.3