summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-06-11 23:07:59 +0000
committerKarl Berry <karl@freefriends.org>2016-06-11 23:07:59 +0000
commit05fd0dcbb7c348f3e41ed7d500a2e2cf64f7c4b4 (patch)
tree7a20c14f00aaaafeddbff95a81fedc959289b16f /Master
parent876b86d0b964599f049d2ae7d670b73308961d4a (diff)
cquthesis (11jun16)
git-svn-id: svn://tug.org/texlive/trunk@41372 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/bibtex/bst/cquthesis/cqunumerical.bst1759
-rw-r--r--Master/texmf-dist/doc/latex/cquthesis/README-Chinese.md70
-rw-r--r--Master/texmf-dist/doc/latex/cquthesis/README.md55
-rw-r--r--Master/texmf-dist/doc/latex/cquthesis/contents/ack.tex5
-rw-r--r--Master/texmf-dist/doc/latex/cquthesis/contents/analysis.tex516
-rw-r--r--Master/texmf-dist/doc/latex/cquthesis/contents/appendix.tex90
-rw-r--r--Master/texmf-dist/doc/latex/cquthesis/contents/conclusion.tex15
-rw-r--r--Master/texmf-dist/doc/latex/cquthesis/contents/cover.tex84
-rw-r--r--Master/texmf-dist/doc/latex/cquthesis/contents/denotation.tex14
-rw-r--r--Master/texmf-dist/doc/latex/cquthesis/contents/experiment.tex35
-rw-r--r--Master/texmf-dist/doc/latex/cquthesis/contents/introduction.tex61
-rw-r--r--Master/texmf-dist/doc/latex/cquthesis/cquthesis.cwl95
-rw-r--r--Master/texmf-dist/doc/latex/cquthesis/cquthesis.pdfbin0 -> 519644 bytes
-rw-r--r--Master/texmf-dist/doc/latex/cquthesis/dtx-style.sty138
-rw-r--r--Master/texmf-dist/doc/latex/cquthesis/figures/CQUbadge.pdfbin0 -> 68916 bytes
-rw-r--r--Master/texmf-dist/doc/latex/cquthesis/figures/README8
-rw-r--r--Master/texmf-dist/doc/latex/cquthesis/main.tex80
-rw-r--r--Master/texmf-dist/doc/latex/cquthesis/ref/refs.bib435
-rw-r--r--Master/texmf-dist/source/latex/cquthesis/cquthesis.dtx2233
-rw-r--r--Master/texmf-dist/source/latex/cquthesis/cquthesis.ins98
-rw-r--r--Master/texmf-dist/tex/latex/cquthesis/cquthesis.cfg269
-rw-r--r--Master/texmf-dist/tex/latex/cquthesis/cquthesis.cls733
-rw-r--r--Master/texmf-dist/tex/latex/cquthesis/cquthesis.sty61
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rw-r--r--Master/tlpkg/tlpsrc/collection-publishers.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/cquthesis.tlpsrc0
26 files changed, 6856 insertions, 1 deletions
diff --git a/Master/texmf-dist/bibtex/bst/cquthesis/cqunumerical.bst b/Master/texmf-dist/bibtex/bst/cquthesis/cqunumerical.bst
new file mode 100644
index 00000000000..d8ab668594f
--- /dev/null
+++ b/Master/texmf-dist/bibtex/bst/cquthesis/cqunumerical.bst
@@ -0,0 +1,1759 @@
+%%
+%% This is file `cqunumerical.bst',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% cquthesis.dtx (with options: `bst')
+%%
+%% This is a generated file.
+%%
+%% Copyright (C) 2016-2016 by Zhennan Li <i@nanmu.me>
+%% This file may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3 of this license or (at your option) any later
+%% version. The latest version of this license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%%
+%% This is the .bst file of the cquthesis package with LaTeX2e.
+%%
+%% This file contains code from USTC TeX User Group:
+%%
+%% https://github.com/ustctug/gbt-7714-20155
+%%
+%% The author would like to acknowledge the contributors for their efforts and, essentially, beautiful mind.
+%%
+ENTRY
+ { address
+ author
+ booktitle
+ chapter
+ citedate
+ doi
+ eid
+ edition
+ editor
+ editdate
+ howpublished
+ institution
+ isbn
+ issn
+ journal
+ key
+ language
+ mark
+ media
+ month
+ note
+ number
+ organization
+ pages
+ publisher
+ school
+ series
+ title
+ translator
+ type
+ url
+ volume
+ year
+ }
+ { lang }
+ { label extra.label sort.label short.list }
+
+INTEGERS { output.state before.all mid.sentence after.sentence after.block }
+INTEGERS { lang.zh lang.ja lang.en lang.ru lang.default }
+
+FUNCTION {init.state.consts}
+{ #0 'before.all :=
+ #1 'mid.sentence :=
+ #2 'after.sentence :=
+ #3 'after.block :=
+ #4 'lang.zh :=
+ #5 'lang.ja :=
+ #1 'lang.en :=
+ #3 'lang.ru :=
+ #0 'lang.default :=
+}
+
+STRINGS { s t }
+
+FUNCTION {debug}
+{ 's :=
+ duplicate$
+ "DEBUG: " s * " -> `" *
+ swap$ * "'" *
+ top$
+}
+
+FUNCTION {debug.int}
+{ 's :=
+ duplicate$ int.to.str$
+ "DEBUG: " s * " == " *
+ swap$ *
+ top$
+}
+
+FUNCTION {output.nonnull}
+{ 's :=
+ output.state mid.sentence =
+ { ", " * write$ }
+ { output.state after.block =
+ { add.period$ write$
+ newline$
+ "\newblock " write$
+ }
+ { output.state before.all =
+ 'write$
+ { add.period$ " " * write$ }
+ 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 =
+ { t * write$
+ newline$
+ "\newblock " write$
+ }
+ { output.state before.all =
+ 'write$
+ { t * write$ }
+ if$
+ }
+ if$
+ mid.sentence 'output.state :=
+ }
+ if$
+ s
+ }
+ if$
+}
+
+FUNCTION {punct.colon}
+{ ": "
+}
+
+FUNCTION {punct.slash}
+{ "//"
+}
+
+FUNCTION {punct.space}
+{ " "
+}
+
+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$
+ { after.block 'output.state := }
+ if$
+}
+
+FUNCTION {new.sentence}
+{ output.state after.block =
+ 'skip$
+ { output.state before.all =
+ 'skip$
+ { after.sentence 'output.state := }
+ if$
+ }
+ if$
+}
+
+FUNCTION {not}
+{ { #0 }
+ { #1 }
+ if$
+}
+
+FUNCTION {and}
+{ 'skip$
+ { pop$ #0 }
+ if$
+}
+
+FUNCTION {or}
+{ { pop$ #1 }
+ 'skip$
+ 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 {emphasize}
+{ duplicate$ empty$
+ { pop$ "" }
+ { "\emph{" swap$ * "}" * }
+ if$
+}
+
+FUNCTION {is.in.chinese}
+{ lang lang.zh =
+}
+
+FUNCTION {format.et.al}
+{ is.in.chinese
+ { "等"}
+ { "et~al." }
+ if$
+}
+
+FUNCTION {format.anonymous}
+{ is.in.chinese
+ { "佚名"}
+ { "Anon, " year * }
+ if$
+}
+
+INTEGERS { nameptr namesleft numnames }
+
+FUNCTION {format.names}
+{ 's :=
+ #1 'nameptr :=
+ s num.names$ 'numnames :=
+ numnames 'namesleft :=
+ { namesleft #0 > nameptr #4 < and }
+ { s nameptr "{vv~}{ll}{ f{ }}{, jj}" format.name$ 't :=
+ nameptr #1 >
+ { namesleft #1 >
+ { ", " * t * }
+ { t "others" =
+ { ", " * format.et.al * }
+ { ", " * t * }
+ if$
+ }
+ if$
+ nameptr #3 = namesleft #1 > and
+ { ", " * format.et.al * }
+ 'skip$
+ if$
+ }
+ 't
+ if$
+ nameptr #1 + 'nameptr :=
+ namesleft #1 - 'namesleft :=
+ }
+ while$
+}
+
+FUNCTION {format.key}
+{ empty$
+ { key field.or.null }
+ { "" }
+ if$
+}
+
+FUNCTION {format.authors}
+{ author empty$
+ { "" }
+ { author format.names }
+ if$
+}
+
+FUNCTION {format.editors}
+{ editor empty$
+ { "" }
+ { editor format.names
+ }
+ if$
+}
+
+FUNCTION {format.translators}
+{ translator empty$
+ { "" }
+ { translator format.names
+ is.in.chinese
+ { ",译" * }
+ 'skip$
+ if$
+ }
+ if$
+}
+
+FUNCTION {format.isbn}
+{ isbn empty$
+ { "" }
+ { new.block "ISBN " isbn * }
+ if$
+}
+
+FUNCTION {format.issn}
+{ issn empty$
+ { "" }
+ { new.block "ISSN " issn * }
+ if$
+}
+
+FUNCTION {format.url}
+{ url empty$
+ { "" }
+ { new.block "\url{" url * "}" * }
+ if$
+}
+
+FUNCTION {format.doi}
+{ doi empty$
+ { "" }
+ { new.block "\doi{" doi * "}" * }
+ if$
+}
+
+FUNCTION {format.title}
+{ title empty$
+ { "" }
+ { title "t" change.case$ }
+ if$
+}
+
+FUNCTION {format.mark}
+{ mark empty$
+ 'skip$
+ { pop$ mark }
+ if$
+ "[" swap$ *
+ media empty$
+ { url empty$
+ 'skip$
+ { "/OL" * }
+ if$
+ }
+ { "/" * media * }
+ if$
+ "]" *
+}
+
+FUNCTION {format.full.names}
+{'s :=
+ #1 'nameptr :=
+ s num.names$ 'numnames :=
+ numnames 'namesleft :=
+ { namesleft #0 > }
+ { s nameptr
+ "{vv~}{ll}" format.name$ 't :=
+ 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$ "proceedings" =
+ '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 {n.dashify}
+{ 't :=
+ ""
+ { t empty$ not }
+ { t #1 #1 substring$ "-" =
+ { t #1 #2 substring$ "--" = not
+ { "--" *
+ t #2 global.max$ substring$ 't :=
+ }
+ { { t #1 #1 substring$ "-" = }
+ { "-" *
+ t #2 global.max$ substring$ 't :=
+ }
+ while$
+ }
+ if$
+ }
+ { t #1 #1 substring$ *
+ t #2 global.max$ substring$ 't :=
+ }
+ if$
+ }
+ while$
+}
+
+FUNCTION {format.date}
+{ year duplicate$ empty$
+ { "empty year in " cite$ * warning$
+ pop$ "" }
+ 'skip$
+ if$
+ month empty$
+ 'skip$
+ { month
+ " " * swap$ *
+ }
+ if$
+ extra.label *
+}
+
+FUNCTION {format.editdate}
+{ editdate empty$
+ { "" }
+ { "(" citedate * ")" * }
+ if$
+}
+
+FUNCTION {format.citedate}
+{ citedate empty$
+ { "" }
+ { "[" citedate * "]" * }
+ 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$
+}
+
+INTEGERS { charptr stringlength }
+
+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.bvolume}
+{ volume empty$
+ { "" }
+ { volume is.number
+ { is.in.chinese
+ { "第" volume * "卷" * }
+ { "volume" volume tie.or.space.connect }
+ if$
+ }
+ { volume }
+ if$
+ }
+ if$
+}
+
+FUNCTION {format.number}
+{ number empty$
+ { "" }
+ { number is.number
+ { is.in.chinese
+ { "第" volume * "册" * }
+ { "number" number tie.or.space.connect }
+ if$
+ }
+ { number }
+ if$
+ }
+ if$
+}
+
+FUNCTION {format.number.series}
+{ volume empty$
+ { number empty$
+ { series field.or.null }
+ { output.state mid.sentence =
+ { "number" }
+ { "Number" }
+ if$
+ number tie.or.space.connect
+ series empty$
+ { "there's a number but no series in " cite$ * warning$ }
+ { " in " * series * }
+ if$
+ }
+ if$
+ }
+ { "" }
+ if$
+}
+
+FUNCTION {format.series.volume.title}
+{ series empty$
+ { title
+ volume empty$
+ 'skip$
+ { ": " * format.bvolume * }
+ if$
+ }
+ { series
+ volume empty$
+ { number empty$
+ 'skip$
+ { ": " * format.number * }
+ if$ }
+ { volume empty$
+ 'skip$
+ { ": " * format.bvolume * }
+ if$
+ }
+ if$
+ "\hspace{1em}" * title *
+ }
+ if$
+}
+
+FUNCTION {format.journal}
+{ journal
+ is.in.chinese
+ 'skip$
+ { "\ustcjournal{" swap$ * "}" * }
+ 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
+ { is.in.chinese
+ { edition "版" * }
+ { edition num.to.ordinal " ed." * }
+ if$
+ }
+ { edition "t" change.case$
+ edition "Revised" =
+ { "Rev. ed." }
+ { edition "Revised edition" =
+ { "Rev. ed." }
+ 'skip$
+ if$
+ }
+ if$
+ }
+ if$
+ }
+ if$
+}
+
+FUNCTION {format.address}
+{ address empty$
+ { url empty$
+ { is.in.chinese
+ { "[出版地不详]" }
+ { "[S.l.]" }
+ if$
+ }
+ { "" }
+ if$
+ }
+ { address }
+ if$
+}
+
+FUNCTION {format.publisher}
+{ publisher empty$
+ { url empty$
+ { is.in.chinese
+ { "[出版者不详]" }
+ { "[s.n.]" }
+ if$
+ }
+ { "" }
+ if$
+ }
+ { publisher }
+ if$
+}
+
+INTEGERS { multiresult }
+
+FUNCTION {multi.page.check}
+{ 't :=
+ #0 'multiresult :=
+ { multiresult not
+ t empty$ not
+ and
+ }
+ { t #1 #1 substring$
+ duplicate$ "-" =
+ swap$ duplicate$ "," =
+ swap$ "+" =
+ or or
+ { #1 'multiresult := }
+ { t #2 global.max$ substring$ 't := }
+ if$
+ }
+ while$
+ multiresult
+}
+
+FUNCTION {format.pages}
+{ pages empty$
+ { "" }
+ { pages }
+ if$
+}
+
+FUNCTION {format.eid}
+{ eid empty$
+ { "" }
+ { "art." eid tie.or.space.connect }
+ if$
+}
+
+FUNCTION {format.vol.num.pages}
+{ volume field.or.null
+ number empty$
+ 'skip$
+ { "\penalty0 (" number * ")" * *
+ volume empty$
+ { "there's a number but no volume in " cite$ * warning$ }
+ 'skip$
+ if$
+ }
+ if$
+ pages empty$
+ 'skip$
+ { duplicate$ empty$
+ { pop$ format.pages }
+ { ":\penalty0 " * pages n.dashify * }
+ if$
+ }
+ if$
+}
+
+FUNCTION {format.vol.num.eid}
+{ volume field.or.null
+ number empty$
+ 'skip$
+ { "\penalty0 (" number * ")" * *
+ volume empty$
+ { "there's a number but no volume in " cite$ * warning$ }
+ 'skip$
+ if$
+ }
+ if$
+ eid empty$
+ 'skip$
+ { duplicate$ empty$
+ { pop$ format.eid }
+ { ":\penalty0 " * eid * }
+ if$
+ }
+ if$
+}
+
+FUNCTION {format.chapter.pages}
+{ chapter empty$
+ 'format.pages
+ { type empty$
+ { "chapter" }
+ { type "l" change.case$ }
+ if$
+ chapter tie.or.space.connect
+ pages empty$
+ 'skip$
+ { ", " * format.pages * }
+ if$
+ }
+ if$
+}
+
+FUNCTION {format.in.ed.booktitle}
+{ booktitle empty$
+ { "" }
+ { editor empty$
+ { "In " booktitle emphasize * }
+ { "In " format.editors * ", " * booktitle emphasize * }
+ if$
+ }
+ if$
+}
+
+FUNCTION {empty.misc.check}
+{ author empty$ title empty$ howpublished empty$
+ month empty$ year empty$ note empty$
+ and and and and and
+ key empty$ not and
+ { "all relevant fields are empty in " cite$ * warning$ }
+ 'skip$
+ if$
+}
+
+FUNCTION {format.thesis.type}
+{ type empty$
+ 'skip$
+ { pop$
+ type "t" change.case$
+ }
+ if$
+}
+
+FUNCTION {format.tr.number}
+{ type empty$
+ { "Technical Report" }
+ 'type
+ if$
+ number empty$
+ { "t" change.case$ }
+ { number tie.or.space.connect }
+ if$
+}
+
+FUNCTION {format.article.crossref}
+{ key empty$
+ { journal empty$
+ { "need key or journal for " cite$ * " to crossref " * crossref *
+ warning$
+ ""
+ }
+ { "In \emph{" journal * "}" * }
+ if$
+ }
+ { "In " }
+ if$
+ " \citet{" * crossref * "}" *
+}
+
+FUNCTION {format.book.crossref}
+{ volume empty$
+ { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
+ "In "
+ }
+ { "Volume" volume tie.or.space.connect
+ " of " *
+ }
+ if$
+ editor empty$
+ editor field.or.null author field.or.null =
+ or
+ { key empty$
+ { series empty$
+ { "need editor, key, or series for " cite$ * " to crossref " *
+ crossref * warning$
+ "" *
+ }
+ { "\emph{" * series * "}" * }
+ if$
+ }
+ 'skip$
+ if$
+ }
+ 'skip$
+ if$
+ " \citet{" * crossref * "}" *
+}
+
+FUNCTION {format.incoll.inproc.crossref}
+{ editor empty$
+ editor field.or.null author field.or.null =
+ or
+ { key empty$
+ { booktitle empty$
+ { "need editor, key, or booktitle for " cite$ * " to crossref " *
+ crossref * warning$
+ ""
+ }
+ { "In \emph{" booktitle * "}" * }
+ if$
+ }
+ { "In " }
+ if$
+ }
+ { "In " }
+ if$
+ " \citet{" * crossref * "}" *
+}
+
+FUNCTION {archive}
+{ output.bibitem
+ format.authors output
+ author format.key output
+ new.block
+ format.series.volume.title "title" output.check
+ "A" format.mark "" output.after
+ new.block
+ format.translators output
+ new.block
+ format.edition output
+ new.sentence
+ format.address output
+ format.publisher punct.colon output.after
+ format.date "year" output.check
+ format.pages punct.colon output.after
+ format.citedate "" output.after
+ format.url output
+ format.doi output
+ fin.entry
+}
+
+FUNCTION {article}
+{ output.bibitem
+ format.authors "author" output.check
+ author format.key output
+ new.block
+ format.title "title" output.check
+ journal empty$
+ { "M" format.mark "" output.after
+ new.block
+ format.translators output
+ new.block
+ format.editors punct.slash output.after
+ new.block
+ booktitle "booktitle" output.check
+ new.block
+ format.bvolume punct.colon output.after
+ new.block
+ format.edition output
+ new.block
+ format.address output
+ format.publisher punct.colon output.after
+ format.date "year" output.check
+ format.pages punct.colon output.after
+ }
+ { "J" format.mark "" output.after
+ new.block
+ format.journal "journal" output.check
+ new.block
+ format.date "year" output.check
+ format.vol.num.pages output
+ }
+ if$
+ format.citedate "" output.after
+ format.url output
+ format.doi output
+ fin.entry
+}
+
+FUNCTION {book}
+{ output.bibitem
+ author empty$
+ { format.editors "author and editor" output.check
+ editor format.key output
+ }
+ { format.authors output.nonnull
+ crossref missing$
+ { "author and editor" editor either.or.check }
+ 'skip$
+ if$
+ }
+ if$
+ new.block
+ format.series.volume.title "title" output.check
+ "M" format.mark "" output.after
+ new.block
+ format.translators output
+ new.block
+ format.edition output
+ new.sentence
+ format.address output
+ format.publisher punct.colon output.after
+ format.date "year" output.check
+ format.pages punct.colon output.after
+ format.citedate "" output.after
+ format.url output
+ format.doi output
+ fin.entry
+}
+
+FUNCTION {collection}
+{ output.bibitem
+ author empty$
+ { format.editors "author and editor" output.check
+ editor format.key output
+ }
+ { format.authors output.nonnull
+ crossref missing$
+ { "author and editor" editor either.or.check }
+ 'skip$
+ if$
+ }
+ if$
+ new.block
+ format.series.volume.title "title" output.check
+ "G" format.mark "" output.after
+ new.block
+ format.translators output
+ new.block
+ format.edition output
+ new.sentence
+ format.address output
+ format.publisher punct.colon output.after
+ format.date "year" output.check
+ format.pages punct.colon output.after
+ format.citedate "" output.after
+ format.url output
+ format.doi output
+ fin.entry
+}
+
+FUNCTION {database}
+{ output.bibitem
+ format.authors output
+ author format.key output
+ new.block
+ format.series.volume.title "title" output.check
+ "DB" format.mark "" output.after
+ new.block
+ format.date "year" output.check
+ format.editdate "" output.after
+ format.citedate "" output.after
+ format.url output
+ format.doi output
+ fin.entry
+}
+
+FUNCTION {dataset}
+{ output.bibitem
+ format.authors output
+ author format.key output
+ new.block
+ format.series.volume.title "title" output.check
+ "DS" format.mark "" output.after
+ new.block
+ format.translators output
+ new.block
+ format.edition output
+ new.sentence
+ format.address output
+ format.publisher punct.colon output.after
+ format.date "year" output.check
+ format.pages punct.colon output.after
+ format.editdate "" output.after
+ format.citedate "" output.after
+ format.url output
+ format.doi output
+ fin.entry
+}
+
+FUNCTION {inbook} { book }
+
+FUNCTION {incollection} { book }
+
+FUNCTION {inproceedings}
+{ output.bibitem
+ format.authors "author" output.check
+ author format.key output
+ new.block
+ format.title "title" output.check
+ "C" format.mark "" output.after
+ new.block
+ format.translators output
+ new.block
+ editor empty$
+ { organization }
+ { format.editors }
+ if$ punct.slash output.after
+ new.block
+ booktitle "booktitle" output.check
+ new.block
+ format.bvolume punct.colon output.after
+ new.block
+ format.edition output
+ new.sentence
+ format.address output
+ publisher empty$
+ { organization }
+ { format.publisher }
+ if$ punct.colon output.after
+ format.date "year" output.check
+ format.pages punct.colon output.after
+ format.citedate "" output.after
+ format.url output
+ format.doi output
+ fin.entry
+}
+
+FUNCTION {conference} { inproceedings }
+
+FUNCTION {manual}
+{ output.bibitem
+ format.authors output
+ author format.key output
+ new.block
+ format.series.volume.title "title" output.check
+ organization address new.block.checkb
+ organization output
+ format.address output
+ format.edition output
+ format.date output
+ format.url output
+ new.block
+ note output
+ fin.entry
+}
+
+FUNCTION {map}
+{ output.bibitem
+ format.authors output
+ author format.key output
+ new.block
+ format.series.volume.title "title" output.check
+ "CM" format.mark "" output.after
+ new.block
+ format.translators output
+ new.block
+ format.edition output
+ new.sentence
+ format.address output
+ format.publisher punct.colon output.after
+ format.date "year" output.check
+ format.pages punct.colon output.after
+ format.citedate "" output.after
+ format.url output
+ format.doi output
+ fin.entry
+}
+
+FUNCTION {mastersthesis}
+{ output.bibitem
+ format.authors output
+ author format.key output
+ new.block
+ format.series.volume.title "title" output.check
+ "D" format.mark ": [Master]" * "" output.after
+ new.block
+ format.translators output
+ new.block
+ format.edition output
+ new.sentence
+ format.address output
+ school empty$
+ { format.publisher }
+ { school }
+ if$ punct.colon output.after
+ format.date "year" output.check
+ format.pages punct.colon output.after
+ format.citedate "" output.after
+ format.url output
+ format.doi output
+ fin.entry
+}
+
+FUNCTION {misc}
+{ output.bibitem
+ format.authors output
+ author format.key output
+ new.block
+ format.series.volume.title "title" output.check
+ "M" format.mark "" output.after
+ new.block
+ format.translators output
+ new.block
+ format.edition output
+ new.sentence
+ format.address output
+ format.publisher punct.colon output.after
+ format.date "year" output.check
+ format.pages punct.colon output.after
+ format.citedate "" output.after
+ format.url output
+ format.doi output
+ fin.entry
+}
+
+FUNCTION {newspaper}
+{ output.bibitem
+ format.authors "author" output.check
+ author format.key output
+ new.block
+ format.title "title" output.check
+ "N" format.mark "" output.after
+ new.block
+ journal "journal" output.check
+ new.block
+ format.date "year" output.check
+ format.vol.num.pages output
+ format.citedate "" output.after
+ format.url output
+ format.doi output
+ fin.entry
+}
+
+FUNCTION {patent}
+{ output.bibitem
+ format.authors output
+ author format.key output
+ new.block
+ format.title "title" output.check
+ "P" format.mark "" output.after
+ new.block
+ format.date "year" output.check
+ format.citedate "" output.after
+ format.url output
+ format.doi output
+ fin.entry
+}
+
+FUNCTION {phdthesis}
+{ output.bibitem
+ format.authors output
+ author format.key output
+ new.block
+ format.series.volume.title "title" output.check
+ "D" format.mark ": [PhD]" * "" output.after
+ new.block
+ format.translators output
+ new.block
+ format.edition output
+ new.sentence
+ format.address output
+ school empty$
+ { format.publisher }
+ { school }
+ if$ punct.colon output.after
+ format.date "year" output.check
+ format.pages punct.colon output.after
+ format.citedate "" output.after
+ format.url output
+ format.doi output
+ fin.entry
+}
+
+FUNCTION {proceedings}
+{ output.bibitem
+ format.editors output
+ editor format.key output
+ new.block
+ format.series.volume.title "title" output.check
+ "C" format.mark "" output.after
+ new.block
+ format.translators output
+ new.block
+ format.edition output
+ new.sentence
+ format.address output
+ publisher empty$
+ { organization }
+ { format.publisher }
+ if$ punct.colon output.after
+ format.date "year" output.check
+ format.pages punct.colon output.after
+ format.citedate "" output.after
+ format.url output
+ format.doi output
+ fin.entry
+}
+
+FUNCTION {program}
+{ output.bibitem
+ format.authors output
+ author format.key output
+ new.block
+ format.series.volume.title "title" output.check
+ "CP" format.mark "" output.after
+ new.block
+ format.date "year" output.check
+ format.editdate "" output.after
+ format.citedate "" output.after
+ format.url output
+ format.doi output
+ fin.entry
+}
+
+FUNCTION {standard}
+{ output.bibitem
+ format.authors output
+ author format.key output
+ new.block
+ format.series.volume.title "title" output.check
+ "S" format.mark "" output.after
+ new.block
+ format.translators output
+ new.block
+ format.edition output
+ new.sentence
+ format.address output
+ format.publisher punct.colon output.after
+ format.date "year" output.check
+ format.pages punct.colon output.after
+ format.citedate "" output.after
+ format.url output
+ format.doi output
+ fin.entry
+}
+
+FUNCTION {techreport}
+{ output.bibitem
+ author empty$
+ { institution output
+ institution format.key output
+ }
+ { format.authors output
+ author format.key output
+ }
+ if$
+ new.block
+ format.series.volume.title "title" output.check
+ "R" format.mark "" output.after
+ new.block
+ format.translators output
+ new.block
+ format.edition output
+ new.sentence
+ format.address output
+ format.publisher punct.colon output.after
+ format.date "year" output.check
+ format.pages punct.colon output.after
+ format.editdate "" output.after
+ format.citedate "" output.after
+ format.url output
+ format.doi output
+ fin.entry
+}
+
+FUNCTION {unpublished}
+{ output.bibitem
+ format.authors "author" output.check
+ author format.key output
+ new.block
+ format.title "title" output.check
+ new.block
+ note "note" output.check
+ format.date output
+ format.url output
+ fin.entry
+}
+
+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"}
+
+
+READ
+
+EXECUTE {init.state.consts}
+
+INTEGERS { ascii }
+
+FUNCTION {char.lang}
+{ chr.to.int$ 'ascii :=
+ ascii #31 > ascii #128 < and
+ { lang.en }
+ { ascii #227 > ascii #234 < and
+ { lang.zh }
+ { ascii #227 =
+ { lang.ja }
+ { lang.default }
+ if$
+ }
+ if$
+ }
+ if$
+}
+
+FUNCTION {set.language}
+{ language empty$
+ { lang.default 'lang :=
+ author field.or.null title field.or.null * 's :=
+ s empty$
+ 'skip$
+ { #1 'charptr :=
+ s text.length$ #1 + 'stringlength :=
+ { charptr stringlength < }
+ { s charptr #1 substring$ char.lang
+ duplicate$ #3 >
+ { charptr #2 + 'charptr := }
+ 'skip$
+ if$
+ duplicate$ lang >
+ { 'lang := }
+ 'pop$
+ if$
+ charptr #1 + 'charptr :=
+ }
+ while$
+ }
+ if$
+ }
+ { language "en" =
+ { lang.en }
+ { language "zh" =
+ { lang.zh }
+ { language "ja" =
+ { lang.ja }
+ { lang.default }
+ if$
+ }
+ if$
+ }
+ if$
+ 'lang :=
+ }
+ if$
+}
+
+FUNCTION {sortify}
+{ purify$
+ "l" change.case$
+}
+
+INTEGERS { len }
+
+FUNCTION {chop.word}
+{ 's :=
+ 'len :=
+ s #1 len substring$ =
+ { s len #1 + global.max$ substring$ }
+ 's
+ if$
+}
+
+FUNCTION {format.lab.names}
+{ 's :=
+ s #1 "{vv~}{ll}" format.name$
+ s num.names$ #1 >
+ { ", " * format.et.al * }
+ 'skip$
+ if$
+}
+
+FUNCTION {author.key.label}
+{ author empty$
+ { key empty$
+ { cite$ #1 #3 substring$ }
+ 'key
+ if$
+ }
+ { author format.lab.names }
+ if$
+}
+
+FUNCTION {author.editor.key.label}
+{ author empty$
+ { editor empty$
+ { key empty$
+ { cite$ #1 #3 substring$ }
+ 'key
+ if$
+ }
+ { editor format.lab.names }
+ if$
+ }
+ { author format.lab.names }
+ if$
+}
+
+FUNCTION {author.key.organization.label}
+{ author empty$
+ { key empty$
+ { organization empty$
+ { cite$ #1 #3 substring$ }
+ { "The " #4 organization chop.word #3 text.prefix$ }
+ if$
+ }
+ 'key
+ if$
+ }
+ { author format.lab.names }
+ if$
+}
+
+FUNCTION {editor.key.organization.label}
+{ editor empty$
+ { key empty$
+ { organization empty$
+ { cite$ #1 #3 substring$ }
+ { "The " #4 organization chop.word #3 text.prefix$ }
+ if$
+ }
+ 'key
+ if$
+ }
+ { editor format.lab.names }
+ if$
+}
+
+FUNCTION {calc.short.authors}
+{ type$ "book" =
+ type$ "inbook" =
+ or
+ 'author.editor.key.label
+ { type$ "proceedings" =
+ 'editor.key.organization.label
+ { type$ "manual" =
+ 'author.key.organization.label
+ 'author.key.label
+ if$
+ }
+ if$
+ }
+ if$
+ 'short.list :=
+}
+
+FUNCTION {calc.label}
+{ calc.short.authors
+ short.list
+ "("
+ *
+ year duplicate$ empty$
+ short.list key field.or.null = or
+ { pop$ "" }
+ 'skip$
+ if$
+ *
+ 'label :=
+}
+
+INTEGERS { seq.num }
+
+FUNCTION {init.seq}
+{ #0 'seq.num :=}
+
+EXECUTE {init.seq}
+
+FUNCTION {int.to.fix}
+{ "000000000" swap$ int.to.str$ *
+ #-1 #10 substring$
+}
+
+
+FUNCTION {presort}
+{ set.language
+ calc.label
+ label sortify
+ " "
+ *
+ seq.num #1 + 'seq.num :=
+ seq.num int.to.fix
+ 'sort.label :=
+ sort.label *
+ #1 entry.max$ substring$
+ 'sort.key$ :=
+}
+
+ITERATE {presort}
+
+SORT
+
+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 :=
+}
+
+EXECUTE {initialize.longest.label}
+
+ITERATE {forward.pass}
+
+REVERSE {reverse.pass}
+
+FUNCTION {bib.sort.order}
+{ sort.label 'sort.key$ :=
+}
+
+ITERATE {bib.sort.order}
+
+SORT
+
+FUNCTION {begin.bib}
+{ preamble$ empty$
+ 'skip$
+ { preamble$ write$ newline$ }
+ if$
+ "\bibpunct{[}{]}{,}{s}{,}{,}"
+ write$ newline$
+ "\begin{thebibliography}{" number.label int.to.str$ * "}" *
+ write$ newline$
+ "\ifx\ustcjournal\undefined\newcommand\ustcjournal{\relax}\fi"
+ write$ newline$
+ "\providecommand{\natexlab}[1]{#1}"
+ write$ newline$
+ "\providecommand{\url}[1]{\texttt{#1}}"
+ write$ newline$
+ "\expandafter\ifx\csname urlstyle\endcsname\relax"
+ write$ newline$
+ " \providecommand{\doi}[1]{DOI: #1}\else"
+ write$ newline$
+ " \providecommand{\doi}{DOI: \begingroup \urlstyle{rm}\Url}\fi"
+ write$ newline$
+}
+
+EXECUTE {begin.bib}
+
+ITERATE {call.type$}
+
+FUNCTION {end.bib}
+{ newline$
+ "\end{thebibliography}" write$ newline$
+}
+
+EXECUTE {end.bib}
+
+%%
+%% End of file `cqunumerical.bst'.
diff --git a/Master/texmf-dist/doc/latex/cquthesis/README-Chinese.md b/Master/texmf-dist/doc/latex/cquthesis/README-Chinese.md
new file mode 100644
index 00000000000..a9527b2e870
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cquthesis/README-Chinese.md
@@ -0,0 +1,70 @@
+# 嗨,这里是CQUThesis!
+CQUThesis表示的是**C**hong**Q**ing **U**niversity **Thesis**.
+
+本宏包是重庆大学毕业论文的`\LaTeX{}`模板,支持学士、硕士、博士论文的排版。合理使用本宏包可以大大减轻重庆大学毕业生在毕业论文撰写过程中的排版工作量。
+
+CQUThesis根据重庆大学《重庆大学本科设计(论文)撰写规范化要求(2007年修订版)》和《重庆大学博士、硕士论文撰写格式标准(2007年修订版)》编写,力求合规,简洁,易于实现,用户友好。
+
+# 模板特色
+* 支持重庆大学本科(文学、理工)、硕士(学术、专业)、博士的毕业论文格式;
+* 内置封面、目录、索引、授权书等论文部件,可按需自动生成;
+* 自动侦测文档页数,生成相应的单面打印/双面打印PDF文件;
+* 预置一批按毕业论文环境优化过的宏包和小功能,包含国际标准单位、化学式支持、三线表等,可按需开启。
+
+![CQUThesis-Poster](https://cloud.githubusercontent.com/assets/8143068/15363773/68c6b380-1d4c-11e6-9627-4d892facb333.png)
+
+# 获取CQUThesis
+## 下载
+版本 | 下载地址 | 描述
+--- | --- | ---
+开发版 |[点我下载](https://github.com/nanmu42/cquthesis/zipball/master) | 最新的功能,最快的BugFix
+发行版 |[CTAN下载页面](https://www.ctan.org/pkg/cquthesis)| 定期更新,和TeX Live等发行版一同发行
+
+排版示例和用户文档随版本发布,如果需要单独下载,请参阅后文。
+
+## 部署
+为了降低新手使用模板的难度,默认情况下,模板文件`cquthesis.cls`, `cquthesis.cfg`已经先行从`cquthesis.dtx`中提取出来,您无需再执行任何操作。但如果您确实需要(如更新或自己编译用户文档)或者对`cquthesis.dtx`文件感兴趣,您可参阅和本文件同目录的`README-English.md`,内有详情。
+
+请编译`main.tex`获得排版示例,如果您对LaTeX比较熟悉,请直接参照排版示例进行部署。其中`图1.1`为CQUThesis文件结构。下面是一些相对详细的提示。
+
+请创建一个新的文件夹作为根目录。
+
+必要文件列举如下:
+* 模板文件:`cquthesis.cls`, `cquthesis.cfg`, `cquthesis.sty`以及`cqunumberical.bst`,位于根目录;
+* 内容文件夹:`contents`, `figures`, `ref`(推荐),都位于根目录;
+* `contents`内的必要文件:`ack.tex`, `appendix.tex`, `cover.tex`, `denotation.tex`,将这些文件按文件结构安排至根目录中;
+* 最后请将`main.tex`置于根目录,工作即可开始。
+
+## 更新
+需要更新时,请从Github下载zip文档后解压,覆盖掉原始的模板文件,使用命令行定位到文件夹,运行:
+`latex cquthesis.ins`
+即可完成更新。
+
+# 文档
+ 文档 | 描述
+ --- | ---
+ 排版示例 | 请编译`main.tex`获得
+ 用户文档 | 随模板发布,也可[点我下载](https://github.com/nanmu42/CQUThesis/files/308798/cquthesis.pdf)
+
+# 提问和支持
+* [Github Issues](https://github.com/nanmu42/CQUThesis/issues)
+* 造访重庆大学7117工作室寻求支持
+
+# 用户协议
+1. 本模板按照[LaTeX Project Public License](https://latex-project.org/lppl/lppl-1-3.txt)发布,协议版本号为1.3或以后的任何版本(随你意);
+1. 重庆大学教务处和研究生院只提供毕业论文写作指南,不提供官方模板,也不会授权或认证第三方模板为官方模板。
+这个模板是按照写作指南的参考实现,模板作者自当尽力,但不保证审查老师不提意见。任何由于本模板而引起的论文格式审查问题与本模板作者无关。
+
+# About CQUThesis
+CQUThesis stands for Chongqing University Thesis Template for LaTeX, bearing the ability to support bachelor, master, doctor dissertations.
+
+# 致谢 / Acknowledgements
+这个模板是站在巨人肩膀上的成果,感谢LaTeX 2e计划,感谢[CTeX社区](https://github.com/CTeX-org/ctex-kit)提供的中文解决方案,感谢薛瑞尼副教授的[先驱之作](https://github.com/xueruini/thuthesis),感谢[中国科学技术大学TeX用户组](https://github.com/ustctug/gbt-7714-20155)。向你们致以真诚的问候和感激!
+
+世界因你们更美好。
+
+The author would like to acknowledge these contributors for their efforts and, essentially, beautiful mind:
+
+* [The CTeX Community](https://github.com/CTeX-org/ctex-kit)
+* [XUE, Ruini](https://github.com/xueruini/thuthesis)
+* [USTC TeX User Group](https://github.com/ustctug/gbt-7714-20155)
diff --git a/Master/texmf-dist/doc/latex/cquthesis/README.md b/Master/texmf-dist/doc/latex/cquthesis/README.md
new file mode 100644
index 00000000000..32637c86b89
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cquthesis/README.md
@@ -0,0 +1,55 @@
+# About CQUThesis
+CQUThesis stands for Chongqing University Thesis Template for LaTeX, bearing the ability to support bachelor, master, doctor dissertations with grace and speed.
+
+# Installing
+* To create the package file, run:
+```
+ latex cquthesis.ins
+```
+* To finish the installation you have to move the following files into a directory searched by TeX:(The recommended directory is TEXMF/tex/latex/cquthesis)
+
+ cquthesis.cls
+ cquthesis.cfg
+ cqunumerical.bst
+
+* To produce the documentation please run these command:
+```
+ xelatex cquthesis.dtx
+ makeindex -s gind.ist -o cquthesis.ind cquthesis.idx
+ makeindex -s gglo.ist -o cquthesis.gls cquthesis.glo
+ xelatex cquthesis.dtx
+ xelatex cquthesis.dtx
+```
+
+* Run these command will get you a typeseting example:
+```
+ xelatex main.tex
+ bibtex main.tex
+ xelatex main.tex
+ xelatex main.tex
+```
+* For further info, please go to: https://github.com/nanmu42/CQUThesis
+
+Happy TeXing!
+
+# Acknowledgements
+The author would like to acknowledge these contributors for their efforts and, essentially, beautiful mind:
+
+* [The CTeX Community](https://github.com/CTeX-org/ctex-kit)
+* [XUE, Ruini](https://github.com/xueruini/thuthesis)
+* [USTC TeX User Group](https://github.com/ustctug/gbt-7714-20155)
+
+# Question, Contribution and Contact
+Feel free to raise any question, and any possible contribution is highly appreciated.
+Submit a issue at [Github](https://github.com/nanmu42/CQUThesis).
+Write in English or Chinese is needed. Thank you.
+
+# About the Author
+Zhennan Li (i at nanmu dot me) proudly presents this work for you.
+
+# License
+This whole project may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 of this license or (at your option) any later version. The latest version of this license is in:
+
+http://www.latex-project.org/lppl.txt
+
+and version 1.3 or later is part of all distributions of LaTeX version 2005/12/01 or later. \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/cquthesis/contents/ack.tex b/Master/texmf-dist/doc/latex/cquthesis/contents/ack.tex
new file mode 100644
index 00000000000..25b11b9c7e9
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cquthesis/contents/ack.tex
@@ -0,0 +1,5 @@
+\chapter{致\hskip\ccwd{}谢}
+% \chapterstar{}命令用于生成不编号的\chapter,这个命令提供目录和页眉内容的支持
+这个模板是站在巨人肩膀上的成果,感谢\LaTeXe{}计划,感谢CTeX开发组提供的中文解决方案,感谢薛瑞尼副教授(Github: xueruini/ThuThesis),感谢WeiJianWen同学(Github: weijianwen/SJTUThesis),感谢中国科学技术大学TeX用户组(Github: ustctug/gbt-7714-2015)。向你们致以真诚的问候和感激!
+
+世界因你们更美好。
diff --git a/Master/texmf-dist/doc/latex/cquthesis/contents/analysis.tex b/Master/texmf-dist/doc/latex/cquthesis/contents/analysis.tex
new file mode 100644
index 00000000000..8f3b6f11a18
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cquthesis/contents/analysis.tex
@@ -0,0 +1,516 @@
+\chapter{实验结果和分析}
+
+\section{字体命令}\label{txt:FreqCmd}
+{\kaishu 玲珑骰子安红豆,入骨相思知不知。\hfill ——温庭筠}
+
+{\fangsong 愿得一心人,白头不相离。\hfill ——卓文君}
+
+{\ifcsname youyuan\endcsname\youyuan\else[无 \cs{youyuan} 字体。]\fi 去年今日此门中,人面桃花相映红。\hfill ——崔护}
+
+{\heiti 入我相思门,知我相思苦。\hfill ——李白}
+
+{\ifcsname lishu\endcsname\lishu\else[无 \cs{lishu} 字体。]\fi 此情可待成追忆?只是当时已惘然。\hfill ——李商隐}
+
+{\songti 雨打梨花深闭门,忘了青春,误了青春。\hfill ——唐寅}
+
+使用\cs{textbf}和\cs{textit}以及\cs{underline}的效果分别如下:
+
+这句话的\textbf{文字}分别\textit{使用}了三种命令来\underline{处理}。
+
+The \textbf{words} in this sentences are \textit{processed} with three different \underline{cmd}.
+
+\section{表格样本}
+
+\subsection{基本表格}
+\label{sec:basictable}
+
+模板中关于表格的宏包有三个: \pkg{booktabs}、\pkg{array} 和\pkg{longtabular}。三线表可以用 \pkg{booktabs}提供的 \cs{toprule}、\cs{midrule} 和 \cs{bottomrule}。它们与\pkg{longtable} 能很好的配合使用。
+\begin{table}[htb]
+ \centering
+ \begin{minipage}[t]{0.9\linewidth} % 如果想在表格中使用脚注,minipage是个不错的办法
+ \caption[模板文件]{模板文件。如果表格的标题很长,那么在表格索引中就会很不美观,所以要像 chapter 那样在前面用中括号写一个简短的标题。这个标题会出现在索引中。}
+ \label{tab:template-files}
+ \begin{tabularx}{\linewidth}{lX}
+ \toprule[1.5pt]
+ {\heiti 文件名} & {\heiti 描述} \\
+ \midrule[1pt]
+ cquthesis.cls & 模板类文件\footnote{这是一个脚注}\\
+ cquthesis.cfg & 模板配置文件\footnote{这是又一个脚注}\\
+ cqunumberical.bst & 参考文献 BIB\TeX\ 样式文件。\\
+ cquthesis.sty & 常用的包和命令写在这里,减轻主文件的负担。\footnote{同一页上的脚注最多支持到10个}\\
+ \bottomrule[1.5pt]
+ \end{tabularx}
+ \end{minipage}
+\end{table}
+
+首先来看一个最简单的表格。\autoref{tab:template-files} 列举了本模板主要文件及其功能。请大家注意三线表中各条线对应的命令。这个例子还展示了如何在表格中正确使用脚注。由于 \LaTeX{} 本身不支持在表格中使用\cs{footnote},所以我们不得不将表格放在小页中,而且最好将表格的宽度设置为小页的宽度,这样脚注看起来才更美观。
+
+\subsection{复杂表格}
+\label{sec:complicatedtable}
+
+我们经常会在表格下方标注数据来源,或者对表格里面的条目进行解释。前面的脚注是一种不错的方法,如果不喜欢脚注,可以在表格后面写注释,比如\autoref{tab:tabexamp1}。
+\begin{table}[htbp]
+ \centering
+ \caption{复杂表格示例 1}
+ \label{tab:tabexamp1}
+ \begin{minipage}[t]{0.8\textwidth}
+ \begin{tabularx}{\linewidth}{|l|X|X|X|X|}
+ \hline
+ \multirow{2}*{\diagbox[width=5em]{x}{y}} & \multicolumn{2}{c|}{First Half} & \multicolumn{2}{c|}{Second Half}\\\cline{2-5}
+ & 1st Qtr &2nd Qtr&3rd Qtr&4th Qtr \\ \hline
+ East$^{*}$ & 20.4& 27.4& 90& 20.4 \\
+ West$^{**}$ & 30.6 & 38.6 & 34.6 & 31.6 \\ \hline
+ \end{tabularx}\\[2pt]
+ \footnotesize
+ *:东部\\
+ **:西部
+ \end{minipage}
+\end{table}
+
+此外,表~\ref{tab:tabexamp1} 同时还演示了另外两个功能:1)通过 \pkg{tabularx} 的\texttt{|X|} 扩展实现表格自动放大;2)通过命令 \cs{diagbox} 在表头部分插入反斜线。
+
+\begin{table}[htbp]
+ \noindent\begin{minipage}{0.5\textwidth}
+ \centering
+ \caption{第一个并排子表格}
+ \label{tab:parallel1}
+ \begin{tabular}{p{2cm}p{2cm}}
+ \toprule[1.5pt]
+ No. & Name \\\midrule[1pt]
+ \xuhao[1] & Fox \\
+ \xuhao & Panda \\
+ \xuhao & Dog \\
+ \bottomrule[1.5pt]
+ \end{tabular}
+ \end{minipage}%
+ \setxuhao[2]
+ \begin{minipage}{0.5\textwidth}
+ \centering
+ \caption{第二个并排子表格}
+ \label{tab:parallel2}
+ \begin{tabular}{p{2cm}p{2cm}}
+ \toprule[1.5pt]
+ No. & Name \\\midrule[1pt]
+ \xuhao[1] & Charlie \\
+ \xuhao & Jack \\
+ \xuhao & Tom \\
+ \bottomrule[1.5pt]
+ \end{tabular}
+ \end{minipage}
+\end{table}
+
+\begin{table}[htbp]
+ \centering
+ \caption{并排子表格}
+ \label{tab:subtable}
+ \subcaptionbox{第一个子表格}
+ {
+ \begin{tabular}{p{2cm}p{2cm}}
+ \toprule[1.5pt]
+ 111 & 222 \\\midrule[1pt]
+ 222 & 333 \\\bottomrule[1.5pt]
+ \end{tabular}
+ }
+ \hskip2cm
+ \subcaptionbox{第二个子表格}
+ {
+ \begin{tabular}{p{2cm}p{2cm}}
+ \toprule[1.5pt]
+ 111 & 222 \\\midrule[1pt]
+ 222 & 333 \\\bottomrule[1.5pt]
+ \end{tabular}
+ }
+\end{table}
+
+不可否认 \LaTeX{} 的表格功能没有想象中的那么强大,不过只要足够认真,足够细致,同样可以排出来非常复杂非常漂亮的表格。
+
+\tabref{tab:parallel1}和\tabref{tab:parallel2}展示了\cs{xuhao}和\cs{xuhao}\texttt{[1]}的使用,可以达到自动编号的效果。不过要记得在每次使用之前使用\cs{resetxuhao},或者\cs{xuhao}\texttt{[1]}。使用\cs{setxuhao}\oarg{1-6}可以更改序号的标记方式,如\tabref{tab:parallel2}所示。详细用法请参阅用户手册。
+
+\begin{longtable}[c]{c*{6}{r}}
+ \caption{实验数据}\label{tab:performance}\\
+ \toprule[1.5pt]
+ 测试程序 & \multicolumn{1}{c}{正常运行} & \multicolumn{1}{c}{同步} & \multicolumn{1}{c}{检查点} & \multicolumn{1}{c}{卷回恢复}
+ & \multicolumn{1}{c}{进程迁移} & \multicolumn{1}{c}{检查点} \\
+ & \multicolumn{1}{c}{时间 (s)}& \multicolumn{1}{c}{时间 (s)}&
+ \multicolumn{1}{c}{时间 (s)}& \multicolumn{1}{c}{时间 (s)}& \multicolumn{1}{c}{
+ 时间 (s)}& 文件(KB)\\\midrule[1pt]
+ \endfirsthead
+ \multicolumn{7}{c}{续表~\thetable\hskip1em 实验数据}\\
+ \toprule[1.5pt]
+ 测试程序 & \multicolumn{1}{c}{正常运行} & \multicolumn{1}{c}{同步} & \multicolumn{1}{c}{检查点} & \multicolumn{1}{c}{卷回恢复}
+ & \multicolumn{1}{c}{进程迁移} & \multicolumn{1}{c}{检查点} \\
+ & \multicolumn{1}{c}{时间 (s)}& \multicolumn{1}{c}{时间 (s)}&
+ \multicolumn{1}{c}{时间 (s)}& \multicolumn{1}{c}{时间 (s)}& \multicolumn{1}{c}{
+ 时间 (s)}& 文件(KB)\\\midrule[1pt]
+ \endhead
+ \hline
+ \multicolumn{7}{r}{续下页}
+ \endfoot
+ \endlastfoot
+ CG.A.2 & 23.05 & 0.002 & 0.116 & 0.035 & 0.589 & 32491 \\
+ CG.A.4 & 15.06 & 0.003 & 0.067 & 0.021 & 0.351 & 18211 \\
+ CG.A.8 & 13.38 & 0.004 & 0.072 & 0.023 & 0.210 & 9890 \\
+ CG.B.2 & 867.45 & 0.002 & 0.864 & 0.232 & 3.256 & 228562 \\
+ CG.B.4 & 501.61 & 0.003 & 0.438 & 0.136 & 2.075 & 123862 \\
+ CG.B.8 & 384.65 & 0.004 & 0.457 & 0.108 & 1.235 & 63777 \\
+ MG.A.2 & 112.27 & 0.002 & 0.846 & 0.237 & 3.930 & 236473 \\
+ MG.A.4 & 59.84 & 0.003 & 0.442 & 0.128 & 2.070 & 123875 \\
+ MG.A.8 & 31.38 & 0.003 & 0.476 & 0.114 & 1.041 & 60627 \\
+ MG.B.2 & 526.28 & 0.002 & 0.821 & 0.238 & 4.176 & 236635 \\
+ MG.B.4 & 280.11 & 0.003 & 0.432 & 0.130 & 1.706 & 123793 \\
+ MG.B.8 & 148.29 & 0.003 & 0.442 & 0.116 & 0.893 & 60600 \\
+ LU.A.2 & 2116.54 & 0.002 & 0.110 & 0.030 & 0.532 & 28754 \\
+ LU.A.4 & 1102.50 & 0.002 & 0.069 & 0.017 & 0.255 & 14915 \\
+ LU.A.8 & 574.47 & 0.003 & 0.067 & 0.016 & 0.192 & 8655 \\
+ LU.B.2 & 9712.87 & 0.002 & 0.357 & 0.104 & 1.734 & 101975 \\
+ LU.B.4 & 4757.80 & 0.003 & 0.190 & 0.056 & 0.808 & 53522 \\
+ LU.B.8 & 2444.05 & 0.004 & 0.222 & 0.057 & 0.548 & 30134 \\
+ CG.B.2 & 867.45 & 0.002 & 0.864 & 0.232 & 3.256 & 228562 \\
+ CG.B.4 & 501.61 & 0.003 & 0.438 & 0.136 & 2.075 & 123862 \\
+ CG.B.8 & 384.65 & 0.004 & 0.457 & 0.108 & 1.235 & 63777 \\
+ MG.A.2 & 112.27 & 0.002 & 0.846 & 0.237 & 3.930 & 236473 \\
+ MG.A.4 & 59.84 & 0.003 & 0.442 & 0.128 & 2.070 & 123875 \\
+ MG.A.8 & 31.38 & 0.003 & 0.476 & 0.114 & 1.041 & 60627 \\
+ MG.B.2 & 526.28 & 0.002 & 0.821 & 0.238 & 4.176 & 236635 \\
+ MG.B.4 & 280.11 & 0.003 & 0.432 & 0.130 & 1.706 & 123793 \\
+ MG.B.8 & 148.29 & 0.003 & 0.442 & 0.116 & 0.893 & 60600 \\
+ LU.A.2 & 2116.54 & 0.002 & 0.110 & 0.030 & 0.532 & 28754 \\
+ LU.A.4 & 1102.50 & 0.002 & 0.069 & 0.017 & 0.255 & 14915 \\
+ LU.A.8 & 574.47 & 0.003 & 0.067 & 0.016 & 0.192 & 8655 \\
+ LU.B.2 & 9712.87 & 0.002 & 0.357 & 0.104 & 1.734 & 101975 \\
+ LU.B.4 & 4757.80 & 0.003 & 0.190 & 0.056 & 0.808 & 53522 \\
+ LU.B.8 & 2444.05 & 0.004 & 0.222 & 0.057 & 0.548 & 30134 \\
+ EP.A.2 & 123.81 & 0.002 & 0.010 & 0.003 & 0.074 & 1834 \\
+ EP.A.4 & 61.92 & 0.003 & 0.011 & 0.004 & 0.073 & 1743 \\
+ EP.A.8 & 31.06 & 0.004 & 0.017 & 0.005 & 0.073 & 1661 \\
+ EP.B.2 & 495.49 & 0.001 & 0.009 & 0.003 & 0.196 & 2011 \\
+ EP.B.4 & 247.69 & 0.002 & 0.012 & 0.004 & 0.122 & 1663 \\
+ EP.B.8 & 126.74 & 0.003 & 0.017 & 0.005 & 0.083 & 1656 \\
+ \bottomrule[1.5pt]
+\end{longtable}
+
+如果你要排版的表格长度超过一页,那么推荐使用 \pkg{longtable} 或者 \pkg{supertabular}宏包,模板对 \pkg{longtable} 进行了相应的设置,所以用起来可能简单一些。表~\ref{tab:performance} 就是 \pkg{longtable} 的简单示例。
+
+\section{定理环境}
+\label{sec:theorem}
+
+给大家演示一下各种和证明有关的环境:
+
+\begin{assumption}
+ 假设以下数学方程成立:
+ \begin{eqnarray}
+ \label{eq:eqnxmp}
+ c & = & a^2 - b^2\\
+ & = & (a+b)(a-b)
+ \end{eqnarray}
+\end{assumption}
+
+\begin{assumption}
+ 依然假设以下数学方程成立,注意整个系统是自动编号的:
+ \begin{eqnarray}
+ \label{eq:eqnxmp2}
+ c & = & a^2 - b^2\\
+ & = & (a+b)(a-b)
+ \end{eqnarray}
+\end{assumption}
+
+\begin{definition}
+ 我们定义\ref{eq:eqnxmp}中的方程名称为\cquthesis 。你看,环境里是可以相互引用的。
+\end{definition}
+
+\begin{proposition}
+ 曾子曰:「吾日三省吾身 —— 为人谋而不忠乎?与朋友交而不信乎?传不习乎?」
+\end{proposition}
+
+多么凄美的命题啊!其日牛马嘶,新妇入青庐,奄奄黄昏后,寂寂人定初,我命绝今日,
+魂去尸长留,揽裙脱丝履,举身赴清池,府吏闻此事,心知长别离,徘徊庭树下,自挂东南
+枝。
+
+\begin{remark}
+ 天不言自高,水不言自流。
+ \begin{gather*}
+ \begin{split}
+ \varphi(x,z)
+ &=z-\gamma_{10}x-\gamma_{mn}x^mz^n\\
+ &=z-Mr^{-1}x-Mr^{-(m+n)}x^mz^n
+ \end{split}\\[6pt]
+ \begin{align} \zeta^0&=(\xi^0)^2,\\
+ \zeta^1 &=\xi^0\xi^1,\\
+ \zeta^2 &=(\xi^1)^2,
+ \end{align}
+ \end{gather*}
+\end{remark}
+
+天尊地卑,乾坤定矣。卑高以陈,贵贱位矣。 动静有常,刚柔断矣。方以类聚,物以群分,
+吉凶生矣。在天成象,在地成形,变化见矣。鼓之以雷霆,润之以风雨,日月运行,一寒一
+暑,乾道成男,坤道成女。乾知大始,坤作成物。乾以易知,坤以简能。易则易知,简则易
+从。易知则有亲,易从则有功。有亲则可久,有功则可大。可久则贤人之德,可大则贤人之
+业。易简,而天下矣之理矣;天下之理得,而成位乎其中矣。
+
+\begin{axiom}
+ 两点间直线段距离最短。
+ \begin{align}
+ x&\equiv y+1\pmod{m^2}\\
+ x&\equiv y+1\mod{m^2}\\
+ x&\equiv y+1\pod{m^2}
+ \end{align}
+\end{axiom}
+
+《彖曰》:大哉乾元,万物资始,乃统天。云行雨施,品物流形。大明始终,六位时成,时
+乘六龙以御天。乾道变化,各正性命,保合大和,乃利贞。首出庶物,万国咸宁。
+
+《象曰》:天行健,君子以自强不息。潜龙勿用,阳在下也。见龙再田,德施普也。终日乾
+乾,反复道也。或跃在渊,进无咎也。飞龙在天,大人造也。亢龙有悔,盈不可久也。用九,
+天德不可为首也。   
+
+\begin{lemma}
+ 《猫和老鼠》是我最爱看的动画片。
+ \begin{multline*}%\tag*{[a]} % 这个不出现在索引中
+ \int_a^b\biggl\{\int_a^b[f(x)^2g(y)^2+f(y)^2g(x)^2]
+ -2f(x)g(x)f(y)g(y)\,dx\biggr\}\,dy \\
+ =\int_a^b\biggl\{g(y)^2\int_a^bf^2+f(y)^2
+ \int_a^b g^2-2f(y)g(y)\int_a^b fg\biggr\}\,dy
+ \end{multline*}
+\end{lemma}
+
+行行重行行,与君生别离。相去万余里,各在天一涯。道路阻且长,会面安可知。胡马依北
+风,越鸟巢南枝。相去日已远,衣带日已缓。浮云蔽白日,游子不顾返。思君令人老,岁月
+忽已晚。 弃捐勿复道,努力加餐饭。
+
+\begin{theorem}\label{the:theorem1}
+ 犯我强汉者,虽远必诛\hfill —— 陈汤(汉)
+\end{theorem}
+\begin{subequations}
+ \begin{align}
+ y & = 1 \\
+ y & = 0
+ \end{align}
+\end{subequations}
+道可道,非常道。名可名,非常名。无名天地之始;有名万物之母。故常无,欲以观其妙;
+常有,欲以观其徼。此两者,同出而异名,同谓之玄。玄之又玄,众妙之门。上善若水。水
+善利万物而不争,处众人之所恶,故几于道。曲则全,枉则直,洼则盈,敝则新,少则多,
+多则惑。人法地,地法天,天法道,道法自然。知人者智,自知者明。胜人者有力,自胜
+者强。知足者富。强行者有志。不失其所者久。死而不亡者寿。
+
+\begin{proof}
+ 燕赵古称多感慨悲歌之士。董生举进士,连不得志于有司,怀抱利器,郁郁适兹土,吾
+ 知其必有合也。董生勉乎哉?
+
+ 夫以子之不遇时,苟慕义强仁者,皆爱惜焉,矧燕、赵之士出乎其性者哉!然吾尝闻
+ 风俗与化移易,吾恶知其今不异于古所云邪?聊以吾子之行卜之也。董生勉乎哉?
+
+ 吾因子有所感矣。为我吊望诸君之墓,而观于其市,复有昔时屠狗者乎?为我谢
+ 曰:“明天子在上,可以出而仕矣!” \hfill —— 韩愈《送董邵南序》
+\end{proof}
+
+\begin{corollary}
+ 四川话配音的《猫和老鼠》是世界上最好看最好听最有趣的动画片。
+ \begin{alignat}{3}
+ V_i & =v_i - q_i v_j, & \qquad X_i & = x_i - q_i x_j,
+ & \qquad U_i & = u_i,
+ \qquad \text{for $i\ne j$;}\label{eq:B}\\
+ V_j & = v_j, & \qquad X_j & = x_j,
+ & \qquad U_j & u_j + \sum_{i\ne j} q_i u_i.
+ \end{alignat}
+\end{corollary}
+
+迢迢牵牛星,皎皎河汉女。
+纤纤擢素手,札札弄机杼。
+终日不成章,泣涕零如雨。
+河汉清且浅,相去复几许。
+盈盈一水间,脉脉不得语。
+
+\begin{example}
+ 大家来看这个例子。
+ \begin{equation}
+ \label{ktc}
+ \left\{\begin{array}{l}
+ \nabla f({\mbox{\boldmath $x$}}^*)-\sum\limits_{j=1}^p\lambda_j\nabla g_j({\mbox{\boldmath $x$}}^*)=0\\[0.3cm]
+ \lambda_jg_j({\mbox{\boldmath $x$}}^*)=0,\quad j=1,2,\cdots,p\\[0.2cm]
+ \lambda_j\ge 0,\quad j=1,2,\cdots,p.
+ \end{array}\right.
+ \end{equation}
+\end{example}
+
+\begin{exercise}
+ 清列出 Andrew S. Tanenbaum 和 W. Richard Stevens 的所有著作。
+\end{exercise}
+
+\begin{conjecture} \textit{Poincare Conjecture} If in a closed three-dimensional
+ space, any closed curves can shrink to a point continuously, this space can be
+ deformed to a sphere.
+\end{conjecture}
+
+\begin{problem}
+ 回答还是不回答,是个问题。
+\end{problem}
+
+如何引用定理~\ref{the:theorem1} 呢?加上 \cs{label} 使用 \cs{ref} 即可。
+
+\section{参考文献}
+\label{sec:bib}
+重庆大学的要求是参考文献以上标的形式标注于论述之后,就像这样:
+
+研究表明\cite{r1},早睡早起有益身体健康。如果想同时引用多个文献\cite{r2,r3,r4,r6},只需要在\csgo{cite}{\null}中用逗号分开\textsf{citeKey}就好。
+
+\cquthesis 同时提供正文模式的参考文献引用功能\cs{inlinecite},适用于以下情况:
+
+文献\inlinecite{r6}表明,文献\inlinecite{r7,r8,r9}所述的情况是有理论依据的。
+
+\section{数学公式}
+\label{sec:equation}
+贝叶斯公式如式~(\ref{equ:chap1:bayes}),其中 $p(y|\mathbf{x})$ 为后验;
+$p(\mathbf{x})$ 为先验;分母 $p(\mathbf{x})$ 为归一化因子。
+\begin{equation}
+\label{equ:chap1:bayes}
+p(y|\mathbf{x}) = \frac{p(\mathbf{x},y)}{p(\mathbf{x})}=
+\frac{p(\mathbf{x}|y)p(y)}{p(\mathbf{x})}
+\end{equation}
+
+论文里面公式越多,\TeX{} 就越 happy。再看一个 \pkg{amsmath} 的例子:
+\newcommand{\envert}[1]{\left\lvert#1\right\rvert}
+\begin{equation}\label{detK2}
+\det\mathbf{K}(t=1,t_1,\dots,t_n)=\sum_{I\in\mathbf{n}}(-1)^{\envert{I}}
+\prod_{i\in I}t_i\prod_{j\in I}(D_j+\lambda_jt_j)\det\mathbf{A}
+^{(\lambda)}(\overline{I}|\overline{I})=0.
+\end{equation}
+
+前面定理示例部分列举了很多公式环境,可以说把常见的情况都覆盖了,大家在写公式的时候一定要好好看 \pkg{amsmath} 的文档,并参考模板中的用法:
+\begin{multline*}%\tag{[b]} % 这个出现在索引中的
+\int_a^b\biggl\{\int_a^b[f(x)^2g(y)^2+f(y)^2g(x)^2]
+-2f(x)g(x)f(y)g(y)\,dx\biggr\}\,dy \\
+=\int_a^b\biggl\{g(y)^2\int_a^bf^2+f(y)^2
+\int_a^b g^2-2f(y)g(y)\int_a^b fg\biggr\}\,dy
+\end{multline*}
+
+这里还有一个多级规划公式,这个公式使用\csgo{listeq}{索引名}手动加入了目录后的索引。
+\begin{equation}\label{bilevel}
+\left\{\begin{array}{l}
+\max\limits_{{\mbox{\footnotesize\boldmath $x$}}} F(x,y_1^*,y_2^*,\cdots,y_m^*)\\[0.2cm]
+\mbox{subject to:}\\[0.1cm]
+\qquad G(x)\le 0\\[0.1cm]
+\qquad(y_1^*,y_2^*,\cdots,y_m^*)\mbox{ solves problems }(i=1,2,\cdots,m)\\[0.1cm]
+\qquad\left\{\begin{array}{l}
+\max\limits_{{\mbox{\footnotesize\boldmath $y_i$}}}f_i(x,y_1,y_2,\cdots,y_m)\\[0.2cm]
+\mbox{subject to:}\\[0.1cm]
+\qquad g_i(x,y_1,y_2,\cdots,y_m)\le 0.
+\end{array}\right.
+\end{array}\right.
+\end{equation}\listeq{多级规划公式}
+这些跟规划相关的公式都来自于清华大学刘宝碇老师《不确定规划》的课件。以上的许多例子由清华大学的薛瑞尼同学编写。
+
+\section{化学方程式}
+
+使用\pkg{mhchem}的\csgo{ce}{化学式或方程式}能够让你很容易地表示出各种化学式和化学方程:
+
+例如:
+\begin{center}
+ \ce{C6H5-CHO}\\ \ce{A\bond{~--}B\bond{~=}C\bond{-~-}D}\\ \ce{SO4^2- + Ba^2+ -> BaSO4 v}
+\end{center}
+
+复杂一点的方程式也不在话下,如\eqref{eq:chem}:
+\begin{equation}\label{eq:chem}
+ \ce{Zn^2+
+ <=>[+ 2OH-][+ 2H+]
+ $\underset{\text{amphoteres Hydroxid}}{\ce{Zn(OH)2 v}}$ <=>[+ 2OH-][+ 2H+]
+ $\underset{\text{Hydroxozikat}}{\ce{[Zn(OH)4]^2-}}$
+ }
+\end{equation}\eqlist{复杂的化学方程式}
+
+这个方程式嵌套在了\pkg{equation}环境中,可用\cs{eqlist}(\cs{listeq}的别名,作用相同)来编排到索引中。
+
+如果你需要一次列举多个化学式,可以用\cs{cec}命令,例如,\csgo{cec}{H2O,HCl,CCl4}的输出为\cec{H2O,HCl,CCl4}。
+
+\section{国际单位制(SI Unit)}
+
+\cquthesis 采用\pkg{siunitx}作为国际单位制支持宏包,以下是一些使用例子,这个包的文档写得非常不错,请在命令行里输入\texttt{texdoc siunitx}察看。
+\begin{center}
+ \num{.3e45}\\
+ \num{1.654 x 2.34 x 3.430}\\
+ \si{\kilogram\metre\per\second}\\
+ \SIlist{0.13;0.67;0.80}{\milli\metre}
+\end{center}
+
+
+\section{绘图}
+\label{sec:draw}
+
+本模板不预先装载任何绘图包(如 \pkg{pstricks,pgf} 等),完全由用户来决定。个人觉得 \pkg{pgf} 不错,不依赖于 Postscript。此外还有很多针对 \LaTeX{} 的GUI 作图工具,如 XFig(jFig), WinFig, Tpx, Ipe, Dia, Inkscape, LaTeXPiX,jPicEdt, jaxdraw 等等。
+
+\section{插图}
+\label{sec:graphs}
+
+推荐《\LaTeXe\ 插图指南》。关于子图形的使用细节请参看 \pkg{subcaption} 宏包的说明文档。
+
+\subsection{一个图形}
+\label{sec:onefig}
+一般图形都是处在浮动环境中。之所以称为浮动是指最终排版效果图形的位置不一定与源文
+件中的位置对应\footnote{这是\LaTeX 的一个设计特性。},这也是刚使
+用 \LaTeX{} 同学可能遇到的问题。如果要强制固定浮动图形的位置,请使用 \pkg{float} 宏包,
+它提供了 \texttt{[H]} 参数,比如图~\ref{fig:xfig1}。
+\begin{figure}[htb] % use float package if you want it here
+ \centering
+ \includegraphics[height=4cm]{CQUbadge.pdf}
+ \caption{重庆大学校徽}
+ \label{fig:xfig1}
+\end{figure}
+
+大学之道,在明明德,在亲民,在止于至善。知止而后有定;定而后能静;静而后能安;安
+而后能虑;虑而后能得。物有本末,事有终始。知所先后,则近道矣。古之欲明明德于天
+下者,先治其国;欲治其国者,先齐其家;欲齐其家者,先修其身;欲修其身者,先正其心;
+欲正其心者,先诚其意;欲诚其意者,先致其知;致知在格物。物格而后知至;知至而后
+意诚;意诚而后心正;心正而后身 修;身修而后家齐;家齐而后国治;国治而后天下
+平。自天子以至于庶人,壹是皆以修身为本。其本乱而未治者 否矣。其所厚者薄,而其所
+薄者厚,未之有也!
+
+\hfill —— 《大学》
+
+
+\subsection{多个图形}
+\label{sec:multifig}
+
+如果多个图形相互独立,并不共用一个图形计数器,那么用 \texttt{minipage} 或者\texttt{parbox} 就可以。否则,请参看
+图~\ref{fig:big1-subcaptionbox},它包含两个小图,分别是图~\ref{fig:subfig1}和图~\ref{fig:subfig2}。推荐使用\cs{subcaptionbox},因为可以像图~\ref{fig:big1-subcaptionbox} 那样对齐子图的标题,也可以使用\pkg{subcaption}宏包的\cs{subcaption}(放在minipage中,用法同\cs{caption})或是\pkg{subfigure}、\pkg{subtable}环境,像图~\ref{fig:big1-subfigure},不要再用 \cs{subfloat}、\cs{subfigure} 和 \cs{subtable}。
+
+\begin{figure}[h]
+ \centering%
+ \subcaptionbox{第一个小图形\label{fig:subfig1}}[3cm] %标题的长度,超过则会换行,如下一个小图。
+ {\includegraphics[height=4cm]{CQUbadge.pdf}}%
+ \hspace{4em}%
+ \subcaptionbox{第二个小图形,注意这个图略矮些。如果标题很长的话,它会自动换行\label{fig:subfig2}}
+ {\includegraphics[height=3cm]{CQUbadge.pdf}}
+ \caption{包含子图形的大图形(subcaptionbox示例)}
+ \label{fig:big1-subcaptionbox}
+\end{figure}
+\begin{figure}[ht]
+ \centering%
+ \begin{subfigure}{3cm}
+ \includegraphics[height=4cm]{CQUbadge.pdf}
+ \caption{第一个小图形}
+ \end{subfigure}%
+ \hspace{4em}%
+ \begin{subfigure}{0.5\textwidth}
+ \includegraphics[height=3cm]{CQUbadge.pdf}
+ \caption{第二个小图形,注意这个图略矮些。subfigure中同一行的子图在顶端对齐。}
+ \end{subfigure}
+ \caption{包含子图形的大图形(subfigure示例)}
+ \label{fig:big1-subfigure}
+\end{figure}
+
+如果要把编号的两个图形并排,那么小页就非常有用了。
+\begin{figure}
+ \begin{minipage}{0.48\textwidth}
+ \centering
+ \includegraphics[height=5cm]{CQUbadge.pdf}
+ \caption{并排第一个图}
+ \label{fig:parallel1}
+ \end{minipage}\hfill
+ \begin{minipage}{0.48\textwidth}
+ \centering
+ \includegraphics[height=5cm]{CQUbadge.pdf}
+ \caption{并排第二个图}
+ \label{fig:parallel2}
+ \end{minipage}
+\end{figure}
+
+测试用途:theequation值为:\theequation ,thefigure值为:\thefigure ,thetable值为:\thetable
diff --git a/Master/texmf-dist/doc/latex/cquthesis/contents/appendix.tex b/Master/texmf-dist/doc/latex/cquthesis/contents/appendix.tex
new file mode 100644
index 00000000000..95bd81cab29
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cquthesis/contents/appendix.tex
@@ -0,0 +1,90 @@
+\chapter{附\hskip\ccwd{}录}
+\section{作者在攻读博士学位期间发表和拟发表论文目录}
+\subsection{测试第三级目录2}
+\subsubsection{四级目录1}
+水陆草木之花,可爱者甚蕃。晋陶渊明独爱菊。自李唐来,世人盛爱牡丹。予独爱莲之出淤泥而不染,濯清涟而不妖,中通外直,不蔓不枝,香远益清,亭亭净植,可远观而不可亵玩焉。
+\subsubsection{四级目录2}
+予谓菊,花之隐逸者也;牡丹,花之富贵者也;莲,花之君子者也。噫!菊之爱,陶后鲜有闻。莲之爱,同予者何人?牡丹之爱,宜乎众矣!
+\subsubsection{四级目录3}
+予谓菊,花之隐逸者也;牡丹,花之富贵者也;莲,花之君子者也。噫!菊之爱,陶后鲜有闻。莲之爱,同予者何人?牡丹之爱,宜乎众矣!
+
+\section{作者在攻读博士学位期间参加的科研项目}
+\xuhaotype[1]
+\xuhao[1] \xuhao \xuhao \xuhao \xuhao \xuhao[1] \xuhao \xuhao \xuhao \xuhao
+
+\setxuhao[2]
+\xuhao[1] \xuhao \xuhao \xuhao \xuhao \xuhao[1] \xuhao \xuhao \xuhao \xuhao
+
+\setxuhao[3]
+\xuhao[1] \xuhao \xuhao \xuhao \xuhao \xuhao[1] \xuhao \xuhao \xuhao \xuhao
+
+\setxuhao[4]
+\xuhao[1] \xuhao \xuhao \xuhao \xuhao \xuhao[1] \xuhao \xuhao \xuhao \xuhao
+
+\setxuhao[5]
+\xuhao[1] \xuhao \xuhao \xuhao \xuhao \xuhao[1] \xuhao \xuhao \xuhao \xuhao
+
+\setxuhao[6]
+\xuhao[1] \xuhao \xuhao \xuhao \xuhao \xuhao[1] \xuhao \xuhao \xuhao \xuhao
+
+\section{关于声明书和授权书}
+声明和授权部分支持扫描页替换,请在\pkg{main.tex}中设置。
+
+\section{程序源代码}
+以下是一段供排版测试的Python程序源代码:
+\begin{Python}
+# 这是一行注释
+
+import pandas as pd
+import matplotlib.pyplot as plt
+import numpy as np
+import seaborn as sns
+import os
+
+lengthSummary = pd.DataFrame()
+lengthSum = lengthPool.groupby(['Pretreatment','Atmosphere'])
+for name, group in lengthSum:
+ sumBuffer = group.describe()
+ sumBuffer.columns = [(name[0]+' '+name[1])]
+ lengthSummary = pd.concat([lengthSummary,sumBuffer], axis = 1)
+lengthSummary.to_csv('lengthSummary.csv')
+
+\end{Python}
+
+\section{附录的图和表}
+以下内容用来测试附录中的插图和插表是否正常,主要的关注点在题注:
+
+\begin{figure}[tbh]
+\centering
+\includegraphics[width=0.5\linewidth]{CQUbadge}
+\caption{附录插图测试}
+\label{fig:cqubadge}
+\end{figure}
+
+\begin{figure}[tbh]
+ \centering
+ \includegraphics[width=0.5\linewidth]{CQUbadge}
+ \caption{附录插图测试}
+ \label{fig:cqubadge2}
+\end{figure}
+
+\begin{table}[htb]
+ \centering\colsep[24pt]
+ \caption{本课题研究的两个自变量}
+ \label{tab:inroVarible}
+ \begin{tabularx}{\linewidth}{cl}
+ \toprule
+ \headcell{自变量} & \headcell{自变量可取的值} \\
+ \midrule\setxuhao[6]
+ 是否接触大气 & \xuhao[1] 接触大气 \xuhao 氮气保护 \\\setxuhao[2]
+ 溶解方式 & \xuhao[1] 超声30min \xuhao 搅拌1h \xuhao 静置12h\\
+ 表格的第三行 & \bigcell{使用\cs{bigcell}\\可主动换行}\\
+ \bottomrule
+ \end{tabularx}
+\end{table}
+
+\begin{equation}
+\alpha\beta\gamma\delta\epsilon\varepsilon\zeta\eta = AB\Gamma\varGamma Z
+\end{equation}\eqlist{附录中的公式编号}
+
+测试用途:theequation值为:\theequation ,thefigure值为:\thefigure ,thetable值为:\thetable
diff --git a/Master/texmf-dist/doc/latex/cquthesis/contents/conclusion.tex b/Master/texmf-dist/doc/latex/cquthesis/contents/conclusion.tex
new file mode 100644
index 00000000000..4d72732a3a5
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cquthesis/contents/conclusion.tex
@@ -0,0 +1,15 @@
+\chapter{结论}
+\section{关于开发}\label{sec:dev}
+本项目开源托管于Github,地址为\url{https://github.com/nanmu42/CQUThesis}
+\section{关于下载}
+\begin{itemize}
+ \item 发行版本,托管于\texttt{CTAN},\url{https://www.ctan.org/pkg/cquthesis};
+ \item 开发版本,位于Github,参见\ref{sec:dev}节。
+\end{itemize}
+\section{求助方案}
+\begin{itemize}
+ \item 在Github提交Issue;
+ \item 造访重庆大学7117工作室寻求支持
+\end{itemize}
+\section{Happy Texing!}
+祝你好运! \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/cquthesis/contents/cover.tex b/Master/texmf-dist/doc/latex/cquthesis/contents/cover.tex
new file mode 100644
index 00000000000..96a01a3eec1
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cquthesis/contents/cover.tex
@@ -0,0 +1,84 @@
+\cqusetup{
+% ************ 注意 ************
+% * 1. \cqusetup{}中不能出现全空的行,如果需要全空行请在行首注释
+% * 2. 不需要的配置信息可以放心地坐视不理、留空、删除或注释(都不会有影响)
+% *
+% ********************************
+% ===================
+% 论文的中英文题目
+% ===================
+ ctitle = {\ce{C60}表面的纳米形貌的可控性转变\\兼论\LaTeX{}在论文排版中的运用},
+ etitle = {To Use \LaTeX{} in the Typeseting of\\Graduating Work for CQU},
+% ===================
+% 作者部分的信息
+% ===================
+ cauthor = 李振楠, % 你的姓名,以下每项都以英文逗号结束
+ eauthor = Zhennan~Li, % 姓名拼音,~代表不会断行的空格
+ studentid = 20128888, % 仅本科生,学号
+ csupervisor = 孙麟~~教授, % 导师的姓名
+ esupervisor = {Prof.~Lin Sun}, % 导师的姓名拼音
+ cpsupervisor = 丁小明~~工程师, % 仅专硕,兼职导师姓名
+ epsupervisor = Eng.~Xiaoming~Ding, % 仅专硕,兼职导师姓名拼音
+ cclass = 工学, % 博士生和学硕填学科门类,学硕填学科类型
+ edgree = {Degree of Master of Enginnering}, % 专硕填Professional Degree,其他按实情填写
+% 提示:如果内容太长,可以用\zihao{}命令控制字号,作用范围:{}内
+ cmajor = {\zihao{-4}材料科学与工程(材料科学专业方向)}, % 专硕不需填,填写专业名称
+ emajor = Material Science and Engineering, % % 专硕不需填,填写专业英文名称
+% ===================
+% 底部的学院名称和日期
+% ===================
+ cdepartment = 材料科学与工程学院, %学院名称
+ edepartment = College of Material Science and Engineering, %学院英文名称
+% ===================
+% 封面的日期可以自动生成(注释掉时),也可以解除注释手动指定,例如:二〇一六年五月
+% ===================
+% mycdate = {中文日期},
+% myedate = {Date in English},
+% ===================
+% 论文的关键词,使用英文逗号分隔
+% ===================
+ ckeywords = {重庆大学,\LaTeX,\LaTeXe,论文,模板},
+ ekeywords = {bachelor, master, doctor, all support, white space is okay here,doctor, all support, white space is okay here}
+ }% End of \cqusetup
+% ===================
+%
+% 论文的摘要
+%
+% ===================
+\begin{cabstract} % 中文摘要
+ 本文档是\cquthesis{}的示例文档。
+
+ \cquthesis{}是重庆大学毕业论文的\LaTeX{}模板,支持学士、硕士、博士论文的排版。合理使用本模板可以大大减轻重庆大学毕业生在毕业论文撰写过程中的排版工作量。
+
+ \cquthesis{}根据重庆大学《重庆大学本科设计(论文)撰写规范化要求(2007年修订版)》和《重庆大学博士、硕士论文撰写格式标准(2007年修订版)》编写,力求合规,简洁,易于实现,用户友好。
+
+ 本模板的特色:
+ \begin{itemize}
+ \item 支持重庆大学本科(文学、理工)、硕士(学术、专业)、博士的毕业论文格式;
+ \item 内置封面、目录、索引、授权书等论文部件,可按需自动生成;
+ \item 自动侦测文档页数,生成相应的单面打印/双面打印PDF文件;
+ \item 预置一批优化过的宏包和小功能,包含国际标准单位、化学式支持、三线表等,可按需开启。
+ \end{itemize}
+\end{cabstract}
+% 如果习惯关键字跟在摘要文字后面,可以用直接命令来设置,如下:
+% \ckeywords{重庆大学,\LaTeX,\LaTeXe,论文,模板}
+
+\begin{eabstract} % 英文摘要
+ LaTeX is a document preparation system for high-quality typesetting. It is most often used for medium-to-large technical or scientific documents but it can be used for almost any form of publishing.
+
+ LaTeX contains features for:
+\begin{enumerate}
+ \item Typesetting journal articles, technical reports, books, and slide presentations.
+ \item Control over large documents containing sectioning, cross-references, tables and figures.
+ \item Typesetting of complex mathematical formulas.
+ \item Advanced typesetting of mathematics with AMS-LaTeX.
+ \item Automatic generation of bibliographies and indexes.
+ \item Multi-lingual typesetting.
+ \item Inclusion of artwork, and process or spot colour.
+ \item Using PostScript or Metafont fonts.
+ \end{enumerate}
+ (Quote from \textit{https://latex-project.org/intro.html})
+\end{eabstract}
+
+% \ekeywords{bachelor, master, doctor, all support, white space is okay here}
+% 封面和摘要配置完成
diff --git a/Master/texmf-dist/doc/latex/cquthesis/contents/denotation.tex b/Master/texmf-dist/doc/latex/cquthesis/contents/denotation.tex
new file mode 100644
index 00000000000..5a82002dac1
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cquthesis/contents/denotation.tex
@@ -0,0 +1,14 @@
+% !TeX encoding = UTF-8
+% 环境用两个长度参数,分别定义左边距以及词条和解释的水平距离,可自己调试以达美观(全去掉时默认:20mm,30mm)
+\begin{denotation}[10mm][40mm]
+ \item[CQU] 重庆大学(Chongqing University)的英文缩写
+ \item[\LaTeX] 一个很棒的排版系统
+ \item[\LaTeXe] 一个很棒的排版系统的最新稳定版
+ \item[\XeTeX] \LaTeX{}的好兄弟,事实上他有很多个兄弟,但是这个兄弟对各种语言的支持能力都很强
+ \item[CTeX宏集] 成套的中文\LaTeX{}解决方案,由一帮天才们开发
+ \item[\ce{H2SO4}] 硫酸
+ \item[$ e^{\pi{}i}+1=0$] 一个集自然界五大常数一体的炫酷方程
+ \item[\ce{2H2 + O2 -> 2H2O}] 一个昂贵的生成生命之源的方程式
+\end{denotation}
+
+\endinput
diff --git a/Master/texmf-dist/doc/latex/cquthesis/contents/experiment.tex b/Master/texmf-dist/doc/latex/cquthesis/contents/experiment.tex
new file mode 100644
index 00000000000..50c9c26beca
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cquthesis/contents/experiment.tex
@@ -0,0 +1,35 @@
+\chapter{实验参数和流程}
+\section{5分钟语法参考}
+
+{\kaishu 要流畅使用\cquthesis 需要用户对\LaTeX 以及\textsc{Bib}\TeX 有一定了解,下面这个语法参考只能起到抛砖引玉的作用。如果你从来没有接触过\LaTeX 或者\XeTeX ,建议先学习相关知识,磨刀不误砍柴工。}
+\medskip
+\begin{itemize}
+ \item \LaTeX 源文件中,主要有三种元素:你的文字,命令,以及环境;
+ \item 直接输入即可你想要写的文字即可,对于英文,文字间多于一个的空格都会转为一个空格;
+ \item 如果你想开启一个新的自然段,请在写新内容前空一个(或多个)全空的行;
+ \item \LaTeX 的命令{\heiti 全部}都以\cs{ }开头,例如\cs{XeTeX}可以生成\XeTeX ;
+ \item 有的命令{\heiti 必须}带参数,比如\cs{zihao\{-4\}}可以将命令之后的内容的字号调整为小四;
+ \item 有的命令能带可选参数,例如\cs{usingpackage\{metalogo\}}可以载入\pkg{metalogo}宏包;
+ \item 宏包中有宏包作者自己定义的命令,能够让你更容易地完成某些事情,比如\pkg{mhchem}能够引入让你方便地表示化学式的命令\cs{ce};
+ \item \LaTeX 的源代码主要分为两个部分,导言部分和文档部分。其中,文档部分以\cs{begin\{document\}}开头,以\cs{end\{document\}}结尾,只有在这个范围内你才能完成排版工作;
+ \item \LaTeX 对(简单或复杂的)数学式的支持是其一大亮点,数学环境使用\texttt{\${ }\$}包裹;
+ \item 环境由\csgo{begin}{环境名}开头,以\csgo{end}{环境名}结尾,是的,文档部分是一个巨大的环境;
+ \item 报错说没有这个命令?检查是否载入了必要的宏包,再检查命令后面是否直接跟随了汉字,在它们之间加个空格就好;
+ \item \LaTeX 是一门语言,新手经常会遇到无法编译通过的语法错误,这时建议你仔细检查花括号是否平衡,命令是否敲错,参数数目和类型是否正确,如果还是不行,可以在网络上搜索一番或者问问同事。
+ \item 命令之间或者之内的空格和缩进以及回车不是必须的,事实上没有它们\LaTeX 也可以正常工作,但是代码的可读性就会大打折扣了;
+ \item 对了,使用\texttt{\%}来开启一个行注释,注释的内容不参与编译,你可以在这里写下自己的小秘密;
+ \item 有质量的国内\TeX 社区是\textsc{CTeX}社区,更有质量的国外的是\textsf{StackExchange};
+ \item \TeX\textsc{Studio}是一个很棒的\LaTeX 编辑环境,推荐你尝试一番。
+\end{itemize}
+
+\section{查询文档}
+在你对宏包或者环境包有疑问的时候,可以再命令行中输入:
+
+\texttt{texdoc 宏包或环境名称}
+
+回车后对应的用户文档会自动打开。
+
+
+
+
+
diff --git a/Master/texmf-dist/doc/latex/cquthesis/contents/introduction.tex b/Master/texmf-dist/doc/latex/cquthesis/contents/introduction.tex
new file mode 100644
index 00000000000..d6a440c60f1
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cquthesis/contents/introduction.tex
@@ -0,0 +1,61 @@
+\chapter{绪论}
+\section{欢迎!}
+欢迎来到\cquthesis{}示例文档!
+
+本文档使用\cquthesis{}本身作为模板,即\pkg{cquthesis.cls}, \pkg{cquthesis.sty}和\pkg{cquthesis.cfg},旨在展现\cquthesis{}的使用方法。请结合\cquthesis{}用户手册和本文档源代码进行学习和操作。
+
+祝毕设成功,答辩拿优!Happy Texing!
+
+本文档编译时使用的\cquthesis{}版本为\version{}。
+
+请注意到\url{https://github.com/nanmu42/CQUThesis}检查更新。
+
+\section{关于\LaTeX{}}
+\noindent{\heiti{}提示:}{\kaishu{}下面是一些基本思路和知识,如果你已经对\LaTeX{}比较熟悉,请直接跳转到第\ref{txt:FreqCmd}节。}
+
+
+\subsection{\LaTeX{}小史}
+\LaTeX{}是\TeX{}的改进版本,后者由Knuth(高德纳)在上世纪七十年代研发,包含\TeX{}排版程序和Plain \TeX{}宏集这两部分。Plain \TeX{}可以看做是一种既定语法的编程语言,源代码对应文件后缀为\pkg{.tex},而\TeX{}程序对源代码进行解析,编译,得到排版结果。上世纪八十年代,\LaTeX{}对Plain \TeX{}的语言体系进行了升级和重构,使得\TeX{}的易用性获得了质的提升。
+
+\TeX{}有着很多分支,比如\LaTeX{}, \LuaTeX{}和\XeTeX{}。每个分支的产生都是为了解决不同的问题。其中,\XeTeX{}提供了对东亚字体(中日韩)的原生支持。
+
+
+\subsection{\LaTeX{}背后的思路}
+
+\LaTeX{}的思路也许你已经有所耳闻,即{\heiti{}内容和样式分离。}它有些像HTML编辑器,遵循\textsf{WYTIWYG}原则\footnote{What you think is what you get. 所想即所得。}。这也是它和Word这一类遵循\qthis{所见即所得}\footnote{\textsf{WYSIWYG} -- What you see is what you get.}原则的文档编辑器的最大不同。
+
+在你使用\LaTeX{}写作的时候,大部分时间你只需要关心内容本身,而\LaTeX{}就像你的编辑,按照样式要求(模板和宏包)为你排版。
+
+
+\section{\cquthesis{}背后的思路}
+
+\cquthesis{}秉承\LaTeX{}的思路,旨在为你解决论文内容以外的大部分问题。
+
+出于性能和管理方面的考虑,\cquthesis{}使用分布式的源文件方案,将论文的各个部分(通常以章为单位)分散到tex文件中,然后在主文档\pkg{main.tex}中统一处理。\figref{fig:filetree}展示了一个可能的文件目录情况。
+\begin{figure}[htb]
+ \dirtree{%
+ .1 \myfolder{pink}{工作文件夹}.
+ .2 \myfolder{cyan}{\pkg{cquthesis.cls}}.
+ .2 \myfolder{cyan}{\pkg{cquthesis.cfg}}.
+ .2 \myfolder{cyan}{\pkg{cquthesis.sty}}.
+ .2 \myfolder{cyan}{main.tex}.
+ .2 \myfolder{cyan}{contents}.
+ .3 \myfolder{lime}{introduction.tex}.
+ .3 \myfolder{lime}{experiment.tex}.
+ .3 \myfolder{lime}{analysis.tex}.
+ .3 \myfolder{lime}{conclusion.tex}.
+ .2 \myfolder{cyan}{figures}.
+ .3 \myfolder{lime}{myCat.png}.
+ .3 \myfolder{lime}{dogEatsSandwiches.jpg}.
+ .2 \myfolder{cyan}{ref}.
+ .3 \myfolder{lime}{refs.bib}.
+ }%\dirtree
+\caption[\cquthesis{}文件结构图示]{\cquthesis{}文件结构图示,出于测试的原因,这个标题被故意填充得很长,这里,你可以结合本文文档代码看到插图索引中是如何处理这个问题的。}
+\label{fig:filetree}
+\end{figure}
+
+
+
+
+
+
diff --git a/Master/texmf-dist/doc/latex/cquthesis/cquthesis.cwl b/Master/texmf-dist/doc/latex/cquthesis/cquthesis.cwl
new file mode 100644
index 00000000000..a5675907e2c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cquthesis/cquthesis.cwl
@@ -0,0 +1,95 @@
+#Written by Zhennan Li 2016/06/10
+#include:amsmath
+#include:array
+#include:booktabs
+#include:tabularx
+#include:longtable
+#include:multirow
+#include:diagbox
+#include:graphicx
+#include:hyperref
+#include:xparse
+#include:ntheorem
+#include:metalogo
+#include:xcolor
+#include:mhchem
+#include:siunitx
+#include:upgreek
+#include:subcaption
+\backmatter#S
+\bigcell{content}#t
+\begin{cabstract}#S
+\begin{denotation}#S
+\begin{eabstract}#S
+\begin{Cplus}#n
+\begin{Python}#n
+\begin{axiom}#n
+\begin{theorem}#n
+\begin{definition}#n
+\begin{proposition}#n
+\begin{lemma}#n
+\begin{conjecture}#n
+\begin{proof}#n
+\begin{corollary}#n
+\begin{example}#n
+\begin{exercise}#n
+\begin{assumption}#n
+\begin{remark}#n
+\begin{problem}#n
+\end{cabstract}#S
+\end{denotation}#S
+\end{eabstract}#S
+\end{Cplus}#n
+\end{Python}#n
+\end{axiom}#n
+\end{theorem}#n
+\end{definition}#n
+\end{proposition}#n
+\end{lemma}#n
+\end{conjecture}#n
+\end{proof}#n
+\end{corollary}#n
+\end{example}#n
+\end{exercise}#n
+\end{assumption}#n
+\end{remark}#n
+\end{problem}#n
+\ccwd#n
+\colsep{length}#t
+\cquthesis#n
+\cquauthpage#n
+\cquauthpage[scanedFile]#n
+\cqusetup{key=value,}#n
+\ctexset{key=value,}#n
+\ding{number}#n
+\eqlist{name}#n
+\frontmatter#S
+\fangsong#n
+\figref#S
+\heiti#n
+\headcell{content}#t
+\inlinecite{bibid}#c
+\onlinecite{bibid}#c
+\kaishu#n
+\listeq{name}#n
+\listofequations#S
+\lishu#n
+\mainmatter#S
+\makeabstract#S
+\makecover#S
+\resetrownum#n
+\resetxuhao#n
+\rownum#n
+\rownum[1]#n
+\rownumseparator#n
+\rownumtype[1-6]#n
+\songti#n
+\setxuhao#S
+\tabref#S
+\version#n
+\xuhao#n
+\xuhao[1]#n
+\xuhaoseparator#n
+\xuhaotype[1-6]#n
+\youyuan#n
+\zihao{num}#n \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/cquthesis/cquthesis.pdf b/Master/texmf-dist/doc/latex/cquthesis/cquthesis.pdf
new file mode 100644
index 00000000000..84a9f3e3908
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cquthesis/cquthesis.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/cquthesis/dtx-style.sty b/Master/texmf-dist/doc/latex/cquthesis/dtx-style.sty
new file mode 100644
index 00000000000..81273520106
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cquthesis/dtx-style.sty
@@ -0,0 +1,138 @@
+%%
+%% This is file `dtx-style.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% cquthesis.dtx (with options: `dtx-style')
+%%
+%% This is a generated file.
+%%
+%% Copyright (C) 2016-2016 by Zhennan Li <i@nanmu.me>
+%% This file may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3 of this license or (at your option) any later
+%% version. The latest version of this license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%%
+\ProvidesPackage{dtx-style}
+\RequirePackage{hypdoc}
+\RequirePackage[UTF8,scheme=chinese]{ctex}
+\RequirePackage{newpxtext}
+\RequirePackage{newpxmath}
+\RequirePackage[
+top=2.5cm, bottom=2.5cm,
+left=4cm, right=2cm,
+headsep=3mm]{geometry}
+\RequirePackage{array,longtable,booktabs}
+\RequirePackage{listings}
+\RequirePackage{fancyhdr}
+\RequirePackage{xcolor}
+\RequirePackage{enumitem}
+\RequirePackage{etoolbox}
+\RequirePackage{metalogo}
+\RequirePackage{graphicx}
+\RequirePackage{xspace}
+
+\colorlet{cqu@macro}{blue!60!black}
+\colorlet{cqu@env}{blue!70!black}
+\colorlet{cqu@option}{purple}
+\patchcmd{\PrintMacroName}{\MacroFont}{\MacroFont\bfseries\color{cqu@macro}}{}{}
+\patchcmd{\PrintDescribeMacro}{\MacroFont}{\MacroFont\bfseries\color{cqu@macro}}{}{}
+\patchcmd{\PrintDescribeEnv}{\MacroFont}{\MacroFont\bfseries\color{cqu@env}}{}{}
+\patchcmd{\PrintEnvName}{\MacroFont}{\MacroFont\bfseries\color{cqu@env}}{}{}
+
+\appto{\TeX}{\xspace}
+\appto{\LaTeX}{\xspace}
+\appto{\XeTeX}{\xspace}
+
+\def\DescribeOption{%
+\leavevmode\@bsphack\begingroup\MakePrivateLetters%
+\Describe@Option}
+\def\Describe@Option#1{\endgroup
+\marginpar{\raggedleft\PrintDescribeOption{#1}}%
+\cqu@special@index{option}{#1}\@esphack\ignorespaces}
+\def\PrintDescribeOption#1{\strut \MacroFont\bfseries\sffamily\color{cqu@option} #1\ }
+\def\cqu@special@index#1#2{\@bsphack
+\begingroup
+\HD@target
+\let\HDorg@encapchar\encapchar
+\edef\encapchar usage{%
+\HDorg@encapchar hdclindex{\the\c@HD@hypercount}{usage}%
+}%
+\index{#2\actualchar{\string\ttfamily\space#2}
+(#1)\encapchar usage}%
+\index{#1:\levelchar#2\actualchar
+{\string\ttfamily\space#2}\encapchar usage}%
+\endgroup
+\@esphack}
+
+\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=2,
+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}}
+
+\lstdefinestyle{lstStyleShell}{%
+style=lstStyleBase,
+frame=l,
+rulecolor=\color{blue},
+language=bash}
+
+\lstdefinestyle{lstStyleLaTeX}{%
+style=lstStyleBase,
+frame=l,
+rulecolor=\color{cyan},
+language=[LaTeX]TeX}
+
+\lstnewenvironment{latex}{\lstset{style=lstStyleLaTeX}}{}
+\lstnewenvironment{shell}{\lstset{style=lstStyleShell}}{}
+
+\setlist{nosep}
+
+\DeclareDocumentCommand{\option}{m}{\textsf{#1}\xspace}
+\DeclareDocumentCommand{\env}{m}{\texttt{#1}\xspace}
+\DeclareDocumentCommand{\pkg}{s m}{%
+\texttt{#2}\xspace\IfBooleanF#1{\cqu@special@index{package}{#2}}}
+\DeclareDocumentCommand{\file}{s m}{%
+\texttt{#2}\xspace\IfBooleanF#1{\cqu@special@index{file}{#2}}}
+\newcommand{\myentry}[1]{%
+\marginpar{\raggedleft\color{purple}\bfseries\strut #1}}
+\newcommand{\note}[1]{{%
+\color{magenta}{\noindent\bfseries 说明:}\emph{#1}}}
+
+\def\cquthesis{\textsc{Cqu}\-\textsc{Thesis}}
+\endinput
+%%
+%% End of file `dtx-style.sty'.
diff --git a/Master/texmf-dist/doc/latex/cquthesis/figures/CQUbadge.pdf b/Master/texmf-dist/doc/latex/cquthesis/figures/CQUbadge.pdf
new file mode 100644
index 00000000000..f479d51b728
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cquthesis/figures/CQUbadge.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/cquthesis/figures/README b/Master/texmf-dist/doc/latex/cquthesis/figures/README
new file mode 100644
index 00000000000..e9ddd0ca282
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cquthesis/figures/README
@@ -0,0 +1,8 @@
+Notice For CTAN
+
+The file "CQUbadge.pdf" is a vector graph in PDF format, which can be transformed loselessly to .eps file. Thus, it should be regarded as "Source File".
+
+The .eps version is deprecated due to its unreasonable file size(~1.2 MB).
+
+Zhennan Li
+Author of CQUThesis, LATEX Thesis Template for Chongqing University. \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/cquthesis/main.tex b/Master/texmf-dist/doc/latex/cquthesis/main.tex
new file mode 100644
index 00000000000..d51b68c3c77
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cquthesis/main.tex
@@ -0,0 +1,80 @@
+% !TeX encoding = UTF-8
+%% \textbf{重庆大学}通用毕业论文\LaTeXe{}模板
+%%% 使用前请先阅读使用文档和用户协议,内有详细介绍。Happy Texing! :)
+%% =======================================================
+\documentclass%
+ [type=bachelor, ]{cquthesis}%
+% 可用选项:
+% type=[bachelor|master|doctor], % 必选,毕业论文类型,以下项目不填时为默认
+% liberalformat, % 可选,仅适用本科生,使用文学类论文标题格式,默认未打开
+% proffesionalmaster=[true|false], % 可选,仅适用研究生,是(true)否(false)专业硕士,默认为否
+% printmode=[oneside|twoside|auto], % 可选,论文打印方式,默认采用auto按页数要求自动判定
+% openany,|openright, % 可选,双面打印时每章的第一页仅右页开启,默认左右页开启(openany)
+% seriftoc, % 可选,目录中的不同级别采用不同的字号和字体,适用于三级标题很多的情况
+% continuoustoc, % 可选,目录和索引不会自动新开一页,适用于索引内容较少时
+% draft, % 写作期间可选,不渲染图片,关闭外围功能,加快预览速度,默认未开启
+
+% 请在cquthesis.sty文件中定义其他会用到的宏包和自己的变量
+% 这样可以防止main.tex太过臃肿。
+\usepackage{cquthesis}
+
+% 定义所有的图片文件在 figures 子目录下
+\graphicspath{{figures/}}
+
+%*** 写作时,使用这个命令只渲染你想查看的部分,提升工作效率,定稿时注释掉整行
+%\includeonly{contents/experiment,contents/analysis,}
+
+\begin{document}
+
+\input{contents/cover}
+\makecover %%% 封面部分
+
+
+\frontmatter %%%前置部分(封面后绪论前)
+%% 摘要
+\makeabstract
+%% 目录,注意需要多次编译才能更新
+\tableofcontents
+%% 插图索引,可选,如不用可注释掉
+\listoffigures
+%% 表格索引,可选
+\listoftables
+%% 公式索引,可选
+\listofequations
+%% 符号对照表,可选
+\input{contents/denotation}
+
+
+\mainmatter %%% 主体部分(绪论开始,结论为止)
+%* 子文件的多少和内容由你决定(最好以章为单位),基本原则是提速预览、脉络清晰、管理容易。
+
+
+\include{contents/introduction}
+\include{contents/experiment}
+\include{contents/analysis}
+\include{contents/conclusion}
+%\include{contents/yourFreeChoise}
+
+
+\backmatter %%% 后置部分(致谢、参考文献、附录等)
+
+
+%% 致谢
+\include{contents/ack}
+%% 参考文献
+% 顺序编码制:cqunumerical
+% 注意:至少需要引用一篇参考文献,否则下面两行会引起编译错误。
+\bibliographystyle{cqunumerical}
+\bibliography{ref/refs}
+
+
+%% 附录(按ABC...分节,证明、推导、程序、个人简历等)
+\appendix
+
+% 个人简历
+\include{contents/appendix}
+%% 原创声明和授权说明书,可选:用扫描页替换
+%\cquauthpage[contents/authscan.pdf]
+\cquauthpage
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/cquthesis/ref/refs.bib b/Master/texmf-dist/doc/latex/cquthesis/ref/refs.bib
new file mode 100644
index 00000000000..dd9a1e5fbc6
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cquthesis/ref/refs.bib
@@ -0,0 +1,435 @@
+% Encoding: UTF-8
+
+@Article{r1,
+ author = {Li, Zhen and Ding, Youting and Kang, Weijun and Li, Cui and Lin, Dong and Wang, Xueyuan and Chen, Zhiwen and Wu, Minghong and Pan, Dengyu},
+ title = {Reduction Mechanism and Capacitive Properties of Highly Electrochemically Reduced TiO2~{N}anotube Arrays},
+ journal = {ELECTROCHIMICA ACTA},
+ year = {2015},
+ volume = {161},
+ pages = {40--47},
+ month = apr,
+ abstract = {{H}ighly reduced and ordered {T}i{O}2 nanotube arrays have been fabricated
+ using two-step anodization and three-electrode reduction. {A}
+ proton-electron coupled reduction mechanism has been proposed based on
+ the combined paradigms of a conventional energy-band model and chemical
+ evolution of basic building blocks of {T}i{O}2. {U}nder optimized reduction
+ conditions, about 22\% of {T}i4+ ions in tube surface regions are
+ converted into {T}i3+ ions while the morphology of the highly reduced {T}i{O}2
+ nanotube arrays keeps unchanged. {T}he reduced nanotube arrays show
+ superior electrochemical properties such as high areal capacitance, good
+ rate capability, and high cycling stability. {T}he areal capacitance of
+ the reduced electrode is 24.07 m{F} cm(-2) at a scan rate of 10 m{V} s(-1),
+ much higher than that of the pristine {T}i{O}2 nanotube arrays (0.02 m{F}
+ cm(-2)). {T}his kind of highly reduced one-dimensional oxide
+ nanostructures can find a large array of applications in
+ supercapacitors, photocatalysis, electrochromic display, and {L}i ion
+ batteries. ({C}) 2015 {P}ublished by {E}lsevier {L}td.},
+ address = {THE BOULEVARD, LANGFORD LANE, KIDLINGTON, OXFORD OX5 1GB, ENGLAND},
+ affiliation = {Wu, MH (Reprint Author), Shanghai Univ, Shanghai Appl Radiat Inst, Shangda Rd 99, Shanghai 200444, Peoples R China. Li, Zhen; Ding, Youting; Kang, Weijun; Li, Cui; Lin, Dong; Wang, Xueyuan; Pan, Dengyu, Shanghai Univ, Inst Nanochem \& Nanobiol, Shanghai 200444, Peoples R China. Chen, Zhiwen; Wu, Minghong, Shanghai Univ, Shanghai Appl Radiat Inst, Shanghai 200444, Peoples R China.},
+ author-email = {mhwu@shu.edu.cn dypan617@shu.edu.cn},
+ doc-delivery-number = {CE2ZV},
+ doi = {10.1016/j.electacta.2014.12.132},
+ eissn = {1873-3859},
+ funding-acknowledgement = {National Natural Science Foundation of China {[}21471098, 91233102, 11174194, 11025526]; Program for Changjiang Scholars and Innovative Research Team in University {[}IRT13078]; Innovation Program of Shanghai Municipal Education Commission {[}13YZ017, 13ZZ076]; Science and Technology Commission of Shanghai Municipality {[}13230500600]; Shanghai Post-doctoral Scientific Program {[}13R21413100]},
+ funding-text = {This work has been supported by National Natural Science Foundation of China (No. 21471098, 91233102, 11174194, 11025526), Program for Changjiang Scholars and Innovative Research Team in University (No. IRT13078), Innovation Program of Shanghai Municipal Education Commission (No. 13YZ017, 13ZZ076), Science and Technology Commission of Shanghai Municipality (No. 13230500600) and Shanghai Post-doctoral Scientific Program (13R21413100).},
+ issn = {0013-4686},
+ journal-iso = {Electrochim. Acta},
+ keywords = {Titanium dioxide nanotube arrays; Supercapacitors; Electrochemical reduction; Proton-electron coupled reduction mechanism},
+ keywords-plus = {OXIDE NANOPARTICLES; VISIBLE-LIGHT; SUPERCAPACITORS; PERFORMANCE; FABRICATION; EFFICIENT; TITANIUM; WATER; ELECTRODES; GRAPHENE},
+ language = {English},
+ number-of-cited-references = {38},
+ publisher = {PERGAMON-ELSEVIER SCIENCE LTD},
+ research-areas = {Electrochemistry},
+ times-cited = {4},
+ type = {Article},
+ unique-id = {ISI:000351693500006},
+ web-of-science-categories = {Electrochemistry}
+}
+
+@Article{r2,
+ author = {Zhang, Yulian and Yu, Dongliang and Gao, Mingqi and Li, Dongdong and Song, Ye and Jin, Rong and Ma, Weihua and Zhu, Xufei},
+ title = {Growth of anodic TiO2 nanotubes in mixed electrolytes and novel method to extend nanotube diameter},
+ journal = {ELECTROCHIMICA ACTA},
+ year = {2015},
+ volume = {160},
+ pages = {33--42},
+ month = apr,
+ abstract = {{I}t is well known anodic {T}i{O}2 nanotubes ({ATNT}s) can be obtained by the
+ anodization of {T}i foils in fluoride-containing solutions, and the
+ nanotube diameter is proportional to the applied voltages. {H}owever, the
+ growth kinetics of {ATNT}s and the relationship between structural
+ features and anodizing parameters still remain unclear. {C}hallenges
+ always remain in the fabrication of {ATNT}s with large diameters due to
+ the undesired breakdown event under the high voltage in {NH}4{F} solutions.
+ {H}ere, an interesting approach is first proposed to overcome these
+ particular challenges. {A} series of constant current anodizing processes
+ in fluoride-free {H}3{PO}4 solutions, {NH}4{F} solutions of different
+ concentrations (0.7 wt\%, 0.5 wt\% and 0.2 wt \%), and different mixed
+ electrolytes containing both {NH}4{F} and {H}3{PO}4, have been compared in
+ detail. {A}nd we mainly focused on the influence of the different ratios
+ of {NH}4{F} and {H}3{PO}4 on the outer diameters of {ATNT}s and the correlation
+ between two types of films. {T}he interesting results show that the
+ nanotube diameter greatly increases with {H}3{PO}4 amount in the solutions
+ with a given concentration of {NH}4{F}. {I}n contrast, the nanotube length
+ decreases with the increase of {H}3{PO}4 amount in the solutions with a
+ given concentration of {NH}4{F}. {T}he experimental findings and the undesired
+ breakdown phenomenon can be elucidated by the theory of the electronic
+ current and ionic current rather than by the field-assisted dissolution.
+ ({C}) 2015 {E}lsevier {L}td. {A}ll rights reserved.},
+ address = {THE BOULEVARD, LANGFORD LANE, KIDLINGTON, OXFORD OX5 1GB, ENGLAND},
+ affiliation = {Li, DD (Reprint Author), Chinese Acad Sci, Shanghai Adv Res Inst, Shanghai 201210, Peoples R China. Zhang, Yulian; Yu, Dongliang; Song, Ye; Jin, Rong; Ma, Weihua; Zhu, Xufei, Nanjing Univ Sci \& Technol, Key Lab Soft Chem \& Funct Mat, Educ Minist, Nanjing 210094, Jiangsu, Peoples R China. Zhang, Yulian; Yu, Dongliang; Li, Dongdong, Chinese Acad Sci, Shanghai Adv Res Inst, Shanghai 201210, Peoples R China. Gao, Mingqi, Hebei Normal Univ Sci \& Technol, Dept Phys, Qinhuangdao 066004, Peoples R China.},
+ author-email = {lidd@sari.ac.cn zhuxufei.njust@163.com},
+ doc-delivery-number = {CD5GL},
+ doi = {10.1016/j.electacta.2015.02.058},
+ eissn = {1873-3859},
+ funding-acknowledgement = {National Natural Science Foundation of China {[}61171043, 51102271, 51377085, 21276127]; Science and Technology Commission of Shanghai Municipality {[}14JC1492900]},
+ funding-text = {This work was supported financially by the National Natural Science Foundation of China (Grants 61171043, 51102271, 51377085, 21276127) and the Science and Technology Commission of Shanghai Municipality (14JC1492900).},
+ issn = {0013-4686},
+ journal-iso = {Electrochim. Acta},
+ keywords = {TiO2 nanotubes; Anodization; Mixed electrolyte; Constant current},
+ keywords-plus = {OXIDE-FILMS; ANODIZATION; MORPHOLOGY; TITANIUM; ARRAYS; FABRICATION; ALUMINUM; MECHANISM; SUBSTRATE; OXIDATION},
+ language = {English},
+ number-of-cited-references = {58},
+ orcid-numbers = {Li, Dongdong/0000-0003-3219-181X},
+ publisher = {PERGAMON-ELSEVIER SCIENCE LTD},
+ research-areas = {Electrochemistry},
+ researcherid-numbers = {Li, Dongdong/A-2703-2011},
+ times-cited = {2},
+ type = {Article},
+ unique-id = {ISI:000351115900006},
+ web-of-science-categories = {Electrochemistry}
+}
+
+@Article{r3,
+ author = {Xue, Yujing and Sun, Yan and Wang, Guixin and Yan, Kangping and Zhao, Jingyong},
+ title = {Effect of NH4{F} concentration and controlled-charge consumption on the photocatalytic hydrogen generation of TiO2 nanotube arrays},
+ journal = {ELECTROCHIMICA ACTA},
+ year = {2015},
+ volume = {155},
+ pages = {312--320},
+ month = feb,
+ abstract = {{S}elf-organized {T}i{O}2 nanotube arrays ({T}i{O}2 {N}ts) for hydrogen evolution
+ were successfully fabricated by electrochemical anodization in ethylene
+ glycol-based electrolytes with various {NH}4{F} concentrations. {H}ydrogen
+ production by photocatalytic water splitting was performed in a
+ two-compartment photoelectrochemical ({PEC}) cell without any applied
+ voltage. {T}he effect of {NH}4{F} concentration on the morphological
+ structure, {PEC} performance and hydrogen evolution of {T}i{O}2 samples were
+ systematically investigated. {T}i{O}2 anodized with 0.50 wt\% of {NH}4{F}
+ concentration for 60 min exhibited highest hydrogen evolution of 2.53 m{L}
+ h(-1) cm(-2) and maximum photoconversion efficiency of 4.39\%. {B}ased on
+ the above results and the different current-time curves during
+ anodization processes, another series of {T}i{O}2 nanotube arrays samples
+ with the equal charge consumption (designated as {T}i{O}2 {N}ts-{EC}) were
+ synthesized by controlling the anodization time in electrolytes
+ containing different {NH}4{F} concentrations. {C}ompared with {T}i{O}2 {N}ts
+ prepared at the same {NH}4{F} concentration for 60 min, hydrogen production
+ and {PEC} properties of {T}i{O}2 {N}ts-{EC} samples have been obviously enhanced,
+ especially for the sample prepared at 1.25 wt\% {NH}4{F} concentrations.
+ {M}oreover, despite the difference of {NH}4{F} concentration in electrolyte,
+ the {T}i{O}2 {N}ts-{EC} samples exhibit comparable {PEC} performances. {T}hese
+ results indicated that the anodization charge-density play a crucial
+ role in the hydrogen generation of {T}i{O}2 {N}ts. {T}he results benefit the
+ enhancement of the hydrogen production of {T}i{O}2 {N}ts. ({C}) 2015 {E}lsevier
+ {L}td. {A}ll rights reserved.},
+ address = {THE BOULEVARD, LANGFORD LANE, KIDLINGTON, OXFORD OX5 1GB, ENGLAND},
+ affiliation = {Yan, KP (Reprint Author), Sichuan Univ, Coll Chem Engn, Chengdu 610065, Peoples R China. Xue, Yujing; Wang, Guixin; Yan, Kangping; Zhao, Jingyong, Sichuan Univ, Coll Chem Engn, Chengdu 610065, Peoples R China. Sun, Yan, Chengdu Univ, Coll Ind Mfg, Chengdu, Peoples R China.},
+ doc-delivery-number = {CB3RX},
+ doi = {10.1016/j.electacta.2014.12.134},
+ eissn = {1873-3859},
+ issn = {0013-4686},
+ journal-iso = {Electrochim. Acta},
+ keywords = {TiO2 nanotubes; NH4F concentration; anodization charge; hydrogen production; photoelectrochemical performance},
+ keywords-plus = {SENSITIZED SOLAR-CELLS; ANODIZATION PARAMETERS; ANODIC GROWTH; WATER; MORPHOLOGY; PERFORMANCE; PHOTOELECTRODES; TEMPERATURE; FABRICATION; EFFICIENCY},
+ language = {English},
+ number-of-cited-references = {50},
+ orcid-numbers = {Wang, Guixin wang/0000-0002-4850-9207},
+ publisher = {PERGAMON-ELSEVIER SCIENCE LTD},
+ research-areas = {Electrochemistry},
+ researcherid-numbers = {Wang, Guixin wang/I-8445-2014},
+ times-cited = {2},
+ type = {Article},
+ unique-id = {ISI:000349547100040},
+ web-of-science-categories = {Electrochemistry}
+}
+
+@InProceedings{r4,
+ author = {Mahshid, S. and Dolati, A. and Goodarzi, M. and Askari, M. and Ghahramaninezhad, A.},
+ title = {Self-organized Titanium Oxide Nanotubes Prepared in Phosphate Electrolytes: Effect of Voltage and Fluorine Concentration},
+ booktitle = {NANOTECHNOLOGY (GENERAL) - 217\textsuperscript{TH} ECS MEETING},
+ year = {2010},
+ editor = {Bock, C and Traversa, E},
+ volume = {28},
+ number = {7},
+ series = {ECS Transactions},
+ pages = {67--74},
+ address = {65 S MAIN ST, PENNINGTON, NJ 08534-2839 USA},
+ organization = {Electrochem Soc (ECS)},
+ publisher = {ELECTROCHEMICAL SOC INC},
+ note = {Symposium on Nanotechnology General Session Held During the 217\textsuperscript{th} Meeting of the Electrochemical-Society (ECS), Vancouver, CANADA, APR 25-30, 2010},
+ abstract = {{T}i{O}2 a nanotube array was prepared using an anodization process. {T}he
+ process proceeded in a two-electrode cell containing of platinum sheet
+ as the cathode electrode. {T}wo phosphate-base electrolyte solutions
+ containing different amounts of {HF} and {NH}4{F} were prepared. {D}ifferent
+ concentration of fluorine ions were examined in respected electrolytes.
+ {C}urrent transient techniques were used to produce the {T}i{O}2 nanotubes at
+ constant voltage of 18-25{V}. {I}t was revealed that anodization at 18-22{V},
+ in so-called electrolytes would end up to nano-tubular structure.
+ {H}owever the tubular structure prepared at 20{V} and from phosphate
+ electrolyte containing of 0.5 wt\% {NH}4{F} as well as 0.5 wt\% {HF}, was
+ recognized the best. {T}he results were also confirmed by {S}canning
+ {E}lectron {M}icroscopy ({SEM}) images. {P}hase characterization of the nanotube
+ oxide layer was carried out using x-ray diffraction ({XRD}) method.},
+ affiliation = {Mahshid, S (Reprint Author), Sharif Univ Technol, Dept Mat Sci \& Engn, Tehran 111559466, Iran. Mahshid, S.; Dolati, A.; Goodarzi, M.; Askari, M.; Ghahramaninezhad, A., Sharif Univ Technol, Dept Mat Sci \& Engn, Tehran 111559466, Iran.},
+ doc-delivery-number = {BDU71},
+ doi = {10.1149/1.3491775},
+ isbn = {978-1-56677-833-6},
+ issn = {1938-5862},
+ keywords-plus = {TIO2 NANOTUBES; ARRAYS; ANODIZATION; GROWTH},
+ language = {English},
+ number-of-cited-references = {12},
+ research-areas = {Electrochemistry; Science \& Technology - Other Topics},
+ times-cited = {3},
+ type = {Proceedings Paper},
+ unique-id = {ISI:000314958100009},
+ web-of-science-categories = {Electrochemistry; Nanoscience \& Nanotechnology}
+}
+
+@Article{r5,
+ author = {Albu, Sergiu P. and Schmuki, Patrik},
+ title = {Influence of anodization parameters on the expansion factor of TiO2 nanotubes},
+ journal = {ELECTROCHIMICA ACTA},
+ year = {2013},
+ volume = {91},
+ pages = {90--95},
+ month = feb,
+ abstract = {{G}rowth of titania nanotubes was carried out in fluoride containing
+ electrolytes using photolithographically defined thin film patterns to
+ determine the amount of expansion when the metal is converted to oxide.
+ {T}his expansion of {T}i{O}2 nanotubes is studied for a large set of
+ electrochemical conditions. {W}e show that this parameter strongly depends
+ on the applied anodization potential and the water content in the
+ electrolyte whereas the fluoride content is only of minor influence.
+ {E}xpansion factors were found to vary between 1.3 and 2.8 depending on
+ the anodizing parameters. {T}his variation is explained in terms of
+ efficiency of oxide growth, as well as of chemical composition, density,
+ and porosity of the {T}i{O}2 nanotubular array. ({C}) 2012 {E}lsevier {L}td. {A}ll
+ rights reserved.},
+ address = {THE BOULEVARD, LANGFORD LANE, KIDLINGTON, OXFORD OX5 1GB, ENGLAND},
+ affiliation = {Schmuki, P (Reprint Author), Univ Erlangen Nurnberg, Inst Surface Sci \& Corros LKO, Dept Mat Sci, Martensstr 7, D-91058 Erlangen, Germany. Albu, Sergiu P.; Schmuki, Patrik, Univ Erlangen Nurnberg, Inst Surface Sci \& Corros LKO, Dept Mat Sci, D-91058 Erlangen, Germany.},
+ author-email = {schmuki@ww.uni-erlangen.de},
+ doc-delivery-number = {113ZB},
+ doi = {10.1016/j.electacta.2012.12.094},
+ funding-acknowledgement = {DFG; DFG Cluster of Excellence EAM},
+ funding-text = {We would like to acknowledge DFG and DFG Cluster of Excellence EAM for financial support.},
+ issn = {0013-4686},
+ journal-iso = {Electrochim. Acta},
+ keywords = {TiO2 nanotubes; Pilling-Bedworth ratio; Anodization; Photolithography; Organic electrolyte},
+ keywords-plus = {HEXAGONAL PORE ARRAYS; ANODIC ALUMINA; SELF-ORGANIZATION; ETHYLENE-GLYCOL; WATER-CONTENT; GROWTH; FILMS; OXIDE; TITANIUM; ELECTROLYTES},
+ language = {English},
+ number-of-cited-references = {23},
+ publisher = {PERGAMON-ELSEVIER SCIENCE LTD},
+ research-areas = {Electrochemistry},
+ times-cited = {21},
+ type = {Article},
+ unique-id = {ISI:000316707400013},
+ web-of-science-categories = {Electrochemistry}
+}
+
+@Article{r6,
+ author = {Roy, Poulomi and Berger, Steffen and Schmuki, Patrik},
+ title = {TiO2~{N}anotubes: Synthesis and Applications},
+ journal = {ANGEWANDTE CHEMIE-INTERNATIONAL EDITION},
+ year = {2011},
+ volume = {50},
+ number = {13},
+ pages = {2904--2939},
+ address = {BOSCHSTRASSE 12, D-69469 WEINHEIM, GERMANY},
+ affiliation = {Schmuki, P (Reprint Author), Univ Erlangen Nurnberg, Dept Mat Sci, WW4-LKO, Martensstr 7, D-91058 Erlangen, Germany. Roy, Poulomi; Berger, Steffen; Schmuki, Patrik, Univ Erlangen Nurnberg, Dept Mat Sci, WW4-LKO, D-91058 Erlangen, Germany.},
+ author-email = {schmuki@ww.uni-erlangen.de},
+ doc-delivery-number = {734KS},
+ doi = {10.1002/anie.201001374},
+ funding-acknowledgement = {DFG},
+ funding-text = {The authors would like to acknowledge the DFG for financial support and Prof. Dr. S. Virtanen, S. P. Albu, W. Wei, C. Das, I. Paramasivam, H. Jha, S. Bauer, H. Hilderbrand, R. Hahn, N. Shrestha, H. Tsuchiya, and K. Yasuda for their contributions.},
+ issn = {1433-7851},
+ journal-iso = {Angew. Chem.-Int. Edit.},
+ keywords = {anodization; electrochemistry; nanotubes; semiconductors; titanium dioxide},
+ keywords-plus = {SENSITIZED SOLAR-CELLS; HIGH-ASPECT-RATIO; ANODIC OXIDE-FILMS; ATOMIC LAYER DEPOSITION; ENHANCED ELECTROCHROMIC PROPERTIES; ONE-DIMENSIONAL NANOSTRUCTURES; SURFACE-PLASMON RESONANCE; MESENCHYMAL STEM-CELLS; NANOPOROUS TA2O5 FILMS; GEL TEMPLATE SYNTHESIS},
+ language = {English},
+ number-of-cited-references = {446},
+ publisher = {WILEY-V C H VERLAG GMBH},
+ research-areas = {Chemistry},
+ times-cited = {872},
+ type = {Review},
+ unique-id = {ISI:000288333600005},
+ web-of-science-categories = {Chemistry, Multidisciplinary}
+}
+
+@Article{r7,
+ author = {Sulka, Grzegorz D. and Kapusta-Kolodziej, Joanna and Brzozka, Agnieszka and Jaskula, Marian},
+ title = {Anodic growth of TiO2 nanopore arrays at various temperatures},
+ journal = {ELECTROCHIMICA ACTA},
+ year = {2013},
+ volume = {104},
+ pages = {526--535},
+ month = aug,
+ note = {3\textsuperscript{rd} International Symposium on Surface Imaging/Spectroscopy at the Solid/Liquid Interface (ISSIS), Polish Acad Sci, J Haber Inst Catalysis \& Surface Chem, Krakow, POLAND, MAY 27-JUN 01, 2012},
+ abstract = {{N}anoporous anodic titanium oxide ({ATO}) layers with different cell sizes,
+ pore diameters and the thicknesses are successfully grown by three-step
+ self-organized anodization in ethylene glycol containing 0.38 wt\% of
+ {NH}4{F} and 1.79 wt\% of {H}2{O} at applied potential differences ranging from
+ 30 {V} to 70 {V} at various electrolyte temperatures. {A} relatively high
+ growth speed (about 40 mu m h(-1)) of nanopore arrays is achieved at 30
+ degrees {C} under the potential difference of 70 {V}. {T}he morphology and the
+ structure of {ATO} layers are directly affected by anodizing conditions,
+ especially temperature and potential difference. {I}t was found that the
+ oxide thickness and the cell size are linearly dependent on anodizing
+ potential difference. {O}n the other hand, the anodizing temperature in
+ the range of 10-30 degrees {C} does not affect the cell size in {ATO} films.
+ {A}nalyses of the pore diameter, pore circularity and regularity of the
+ pore arrangement suggests that nanoporous anodic titania with the best
+ pore arrangement can be formed in a controlled manner by anodization
+ performed at 50 {V} and 20 degrees {C}. {S}urprisingly, below and above this
+ critical potential difference and temperature, pore diameters are
+ smaller and obtained {ATO} structures are less regular. {A}t higher
+ anodizing temperatures, the regularity of pore arrangement observed at
+ the surface and the pore diameter are considerably affected by the
+ precipitated hydrous titanium dioxide. ({C}) 2013 {E}lsevier {L}td. {A}ll rights
+ reserved.},
+ address = {THE BOULEVARD, LANGFORD LANE, KIDLINGTON, OXFORD OX5 1GB, ENGLAND},
+ affiliation = {Sulka, GD (Reprint Author), Jagiellonian Univ, Dept Phys Chem \& Electrochem, Ingardena 3, PL-30060 Krakow, Poland. Sulka, Grzegorz D.; Kapusta-Kolodziej, Joanna; Jaskula, Marian, Jagiellonian Univ, Dept Phys Chem \& Electrochem, PL-30060 Krakow, Poland. Brzozka, Agnieszka, AGH Univ Sci \& Technol, Fac Nonferrous Met, PL-30059 Krakow, Poland.},
+ author-email = {sulka@chemia.uj.edu.pl},
+ doc-delivery-number = {180NF},
+ doi = {10.1016/j.electacta.2012.12.121},
+ issn = {0013-4686},
+ journal-iso = {Electrochim. Acta},
+ keywords = {Anodization; Porous titania; Nanostructures; Nanopores; Nanotubes},
+ keywords-plus = {SENSITIZED SOLAR-CELLS; ALIGNED TITANIA NANOTUBES; ELECTROCHEMICAL ANODIZATION; HYDROGEN GENERATION; MU-M; OXIDE; FABRICATION; DIAMETER; LAYERS; LENGTH},
+ language = {English},
+ number-of-cited-references = {63},
+ orcid-numbers = {Sulka, Grzegorz/0000-0001-7431-617X},
+ organization = {Univ Warsaw, Fac Chem; Electrochem Soc; Shim Pol; KGHM; ECOREN; Azoty Tarnow; nLab},
+ publisher = {PERGAMON-ELSEVIER SCIENCE LTD},
+ research-areas = {Electrochemistry},
+ researcherid-numbers = {Sulka, Grzegorz/H-1416-2014 },
+ times-cited = {25},
+ type = {Article; Proceedings Paper},
+ unique-id = {ISI:000321601200064},
+ web-of-science-categories = {Electrochemistry}
+}
+
+@Article{r8,
+ author = {Garcia-Vergara, S. J. and Skeldon, P. and Thompson, G. E. and Habazaki, H.},
+ title = {A flow model of porous anodic film growth on aluminium},
+ journal = {ELECTROCHIMICA ACTA},
+ year = {2006},
+ volume = {52},
+ number = {2},
+ pages = {681--687},
+ month = oct,
+ abstract = {{T}he development of pores in a classical porous anodic film formed on
+ aluminium in phosphoric acid solution is investigated. {T}he study employs
+ a tungsten tracer layer that is incorporated into the anodic film from
+ the aluminium substrate, followed by detection of the tracer by
+ transmission electron microscopy and {R}utherford backscattering
+ spectroscopy. {D}istortions of the tungsten layer on entry into the film
+ and retention of tungsten species in the film are compatible with
+ porosity arising mainly from flow of anodic oxide beneath the pore bases
+ towards the cell walls. {T}he behaviour is contrary to expectations of a
+ dissolution model of pore formation. (c) 2006 {E}lsevier {L}td. {A}ll rights
+ reserved.},
+ address = {THE BOULEVARD, LANGFORD LANE, KIDLINGTON, OXFORD OX5 1GB, ENGLAND},
+ affiliation = {Skeldon, P (Reprint Author), Univ Manchester, Ctr Corros \& Protect, Sch Mat, POB 88, Manchester M60 1QD, Lancs, England. Univ Manchester, Ctr Corros \& Protect, Sch Mat, Manchester M60 1QD, Lancs, England. Hokkaido Univ, Grad Sch Engn, Kita Ku, Sapporo, Hokkaido 0608628, Japan.},
+ author-email = {p.skeldon@manchester.ac.uk},
+ doc-delivery-number = {107IJ},
+ doi = {10.1016/j.electacta.2006.05.054},
+ issn = {0013-4686},
+ journal-iso = {Electrochim. Acta},
+ keywords = {aluminium; anodizing; anodic oxide; porous film},
+ keywords-plus = {OXIDE-FILMS; ACID ELECTROLYTES; OXYGEN BUBBLES; OXIDATION; MICROANALYSIS; MECHANISM; BEHAVIOR; TUNGSTEN; DENSITY; ALLOYS},
+ language = {English},
+ number-of-cited-references = {33},
+ orcid-numbers = {Habazaki, Hiroki/0000-0002-7172-8811},
+ publisher = {PERGAMON-ELSEVIER SCIENCE LTD},
+ research-areas = {Electrochemistry},
+ researcherid-numbers = {Habazaki, Hiroki/C-5388-2012},
+ times-cited = {143},
+ type = {Article},
+ unique-id = {ISI:000242164000039},
+ web-of-science-categories = {Electrochemistry}
+}
+
+@Article{r9,
+ author = {LeClere, D. J. and Velota, A. and Skeldon, P. and Thompson, G. E. and Berger, S. and Kunze, J. and Schmuki, P. and Habazaki, H. and Nagata, S.},
+ title = {Tracer investigation of pore formation in anodic titania},
+ journal = {JOURNAL OF THE ELECTROCHEMICAL SOCIETY},
+ year = {2008},
+ volume = {155},
+ number = {9},
+ pages = {487--494},
+ abstract = {{U}sing a sputtering-deposited titanium substrate, incorporating six
+ equally spaced nanolayers of {T}i-{W} alloy, the volume and composition
+ changes accompanying the formation of porous anodic films on titanium in
+ 0.5 wt \% {NH}(4){F} in glycerol are investigated. {T}he findings reveal
+ amorphous films with nanotubes of {T}i{O}(2), containing fluoride ions and
+ possibly glycerol derivatives. {T}ungsten and titanium species are lost to
+ the electrolyte at differing rates during anodizing, leading to an
+ enrichment of tungsten in the film relative to the composition of the
+ substrate. {T}he spacing of tungsten-containing bands in the film is
+ similar to 2.3 that of the original alloy layers during growth of the
+ major pores. {T}he generation of the nanotubes can be explained either by
+ field-assisted flow of film material within the barrier layer to the
+ pore walls, with cation and anion transport numbers of anodic titania in
+ the barrier layer region similar to those of barrier films and with
+ field-assisted ejection of {T}i(4+) ions to the electrolyte, or by
+ field-assisted dissolution, but with a reduction in cation transport
+ number. ({C}) 2008 {T}he {E}lectrochemical {S}ociety.},
+ address = {65 SOUTH MAIN STREET, PENNINGTON, NJ 08534 USA},
+ affiliation = {LeClere, DJ (Reprint Author), Univ Manchester, Sch Mat, Ctr Corros \& Protect, Manchester M60 1QD, Lancs, England. LeClere, D. J.; Velota, A.; Skeldon, P.; Thompson, G. E., Univ Manchester, Sch Mat, Ctr Corros \& Protect, Manchester M60 1QD, Lancs, England. Berger, S.; Kunze, J.; Schmuki, P., Univ Erlangen Nurnberg, Dept Mat Sci, D-91058 Erlangen, Germany. Habazaki, H., Hokkaido Univ, Grad Sch Engn, Kita Ku, Sapporo, Hokkaido 0608628, Japan. Nagata, S., Tohoku Univ, Inst Mat Res, Sendai, Miyagi 9808577, Japan.},
+ author-email = {p.skeldon@manchester.ac.uk},
+ doc-delivery-number = {331UT},
+ doi = {10.1149/1.2946727},
+ issn = {0013-4651},
+ journal-iso = {J. Electrochem. Soc.},
+ keywords-plus = {OXIDE-FILMS; SELF-ORGANIZATION; IONIC TRANSPORT; TIO2 NANOTUBES; FLUORIDE IONS; ALUMINA FILMS; OXIDATION; GROWTH; ELECTROLYTES; ANODIZATION},
+ language = {English},
+ number-of-cited-references = {50},
+ orcid-numbers = {Habazaki, Hiroki/0000-0002-7172-8811 },
+ publisher = {ELECTROCHEMICAL SOC INC},
+ research-areas = {Electrochemistry; Materials Science},
+ researcherid-numbers = {Habazaki, Hiroki/C-5388-2012 Nagata, Shinji/A-1796-2015},
+ times-cited = {57},
+ type = {Article},
+ unique-id = {ISI:000258038800030},
+ web-of-science-categories = {Electrochemistry; Materials Science, Coatings \& Films}
+}
+
+@Article{z1,
+ author = {胡壮麒 and 刘丽荣 and 金涛 and 孙晓峰},
+ title = {镍基单晶高温合金的发展},
+ journal = {航空发动机},
+ year = {2005},
+ volume = {31},
+ number = {3},
+ pages = {1--7}
+}
+
+@Article{z2,
+ author = {徐启华 and 师军},
+ title = {基于支持向量机的航空发动机故障诊断},
+ journal = {航空动力学报},
+ year = {2005},
+ volume = {20},
+ number = {2},
+ pages = {298--302}
+}
+
+@Article{z3,
+ author = {左洪福 and 张海军 and 戎翔},
+ title = {基于比例风险模型的航空发动机视情维修决策},
+ journal = {航空动力学报},
+ year = {2006},
+ volume = {21},
+ number = {4},
+ pages = {716--721}
+}
diff --git a/Master/texmf-dist/source/latex/cquthesis/cquthesis.dtx b/Master/texmf-dist/source/latex/cquthesis/cquthesis.dtx
new file mode 100644
index 00000000000..1fcc59f1257
--- /dev/null
+++ b/Master/texmf-dist/source/latex/cquthesis/cquthesis.dtx
@@ -0,0 +1,2233 @@
+% \iffalse meta-comment
+%
+% Copyright (C) 2016 by Zhennan Li <i@nanmu.me>
+%
+% This file may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in:
+%
+% http://www.latex-project.org/lppl.txt
+%
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% \fi
+%
+% \iffalse
+%<*driver>
+\ProvidesFile{cquthesis.dtx}[2016/06/09 v0.9.7 Chongqing University Thesis Template]
+\documentclass{ltxdoc}
+\usepackage{dtx-style}
+
+\EnableCrossrefs
+\CodelineIndex
+\RecordChanges
+
+\begin{document}
+ \DocInput{\jobname.dtx}
+\end{document}
+%</driver>
+% \fi
+%
+% \CheckSum{0}
+%
+% \CharacterTable
+% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+% Digits \0\1\2\3\4\5\6\7\8\9
+% Exclamation \! Double quote \" Hash (number) \#
+% Dollar \$ Percent \% Ampersand \&
+% Acute accent \' Left paren \( Right paren \)
+% Asterisk \* Plus \+ Comma \,
+% Minus \- Point \. Solidus \/
+% Colon \: Semicolon \; Less than \<
+% Equals \= Greater than \> Question mark \?
+% Commercial at \@ Left bracket \[ Backslash \\
+% Right bracket \] Circumflex \^ Underscore \_
+% Grave accent \` Left brace \{ Vertical bar \|
+% Right brace \} Tilde \~}
+%
+% \DoNotIndex{\newenvironment,\@bsphack,\@empty,\@esphack,\sfcode}
+% \DoNotIndex{\addtocounter,\label,\let,\linewidth,\newcounter}
+% \DoNotIndex{\noindent,\normalfont,\par,\parskip,\phantomsection}
+% \DoNotIndex{\providecommand,\ProvidesPackage,\refstepcounter}
+% \DoNotIndex{\RequirePackage,\setcounter,\setlength,\string,\strut}
+% \DoNotIndex{\textbackslash,\texttt,\ttfamily,\usepackage}
+% \DoNotIndex{\begin,\end,\begingroup,\endgroup,\par,\\}
+% \DoNotIndex{\if,\ifx,\ifdim,\ifnum,\ifcase,\else,\or,\fi}
+% \DoNotIndex{\let,\def,\xdef,\edef,\newcommand,\renewcommand}
+% \DoNotIndex{\expandafter,\csname,\endcsname,\relax,\protect}
+% \DoNotIndex{\Huge,\huge,\LARGE,\Large,\large,\normalsize}
+% \DoNotIndex{\small,\footnotesize,\scriptsize,\tiny}
+% \DoNotIndex{\normalfont,\bfseries,\slshape,\sffamily,\interlinepenalty}
+% \DoNotIndex{\textbf,\textit,\textsf,\textsc}
+% \DoNotIndex{\hfil,\par,\hskip,\vskip,\vspace,\quad}
+% \DoNotIndex{\centering,\raggedright,\ref}
+% \DoNotIndex{\c@secnumdepth,\@startsection,\@setfontsize}
+% \DoNotIndex{\ ,\@plus,\@minus,\p@,\z@,\@m,\@M,\@ne,\m@ne}
+% \DoNotIndex{\@@par,\DeclareOperation,\RequirePackage,\LoadClass}
+% \DoNotIndex{\AtBeginDocument,\AtEndDocument}
+%
+% \GetFileInfo{\jobname.dtx}
+%
+% \changes{v0.0.1}{2016/04/03}{模板开始编写。}
+% \changes{v0.6.9}{2016/05/09}{主体功能完工,迁移模板到生产环境中继续开发。}
+% \changes{v0.7.5}{2016/05/10}{生产环境建立,模板完成测试。}
+% \changes{v0.8.1}{2016/05/12}{重绘了论文封面,增加了专业硕士选项。}
+% \changes{v0.8.5}{2016/05/13}{完成了示例文件。}
+% \changes{v0.8.7}{2016/05/14}{上线前最后一批修正。}
+% \changes{v0.8.9}{2016/05/15}{模板登陆Github,开始参与2016年重庆大学毕业设计工作。}
+% \changes{v0.9.4}{2016/05/19}{用户文档撰写完成,CQUThesis提交至CTAN审核。}
+% \changes{v0.9.7}{2016/06/09}{参与了2016年重庆大学毕业设计工作后,模板根据实际测试情况作了一番改进,Beta测试落下帷幕。}
+% \changes{v0.9.7}{2016/06/09}{拆分了\file{cquthesis.sty}宏包,将其大部分内容并入\file{cquthesis.cls}和\file{cquthesis.cfg}。}
+%
+% \def\indexname{代码索引}
+% \def\glossaryname{更新记录}
+% \IndexPrologue{\section{\indexname}}
+% \GlossaryPrologue{\section{\glossaryname}}
+%
+% \title{\bfseries\color{blue!50!black}\cquthesis:重庆大学毕业论文\LaTeX 模板}
+% \author{{\fangsong 李振楠}\\[5pt]\texttt{i@nanmu.me}}
+% \date{\fileversion\ (\filedate)}
+% \maketitle\thispagestyle{empty}
+% \vspace{\stretch{1}}
+% \begin{center}
+% \includegraphics[height=7cm]{figures/CQUbadge}
+% \end{center}
+% \vspace{\stretch{2}}
+% \begin{abstract}\noindent
+% \cquthesis{}是重庆大学毕业论文的\LaTeX{}模板,支持学士(文学、理工)、硕士(学术、专业)、博士论文的排版。
+% \end{abstract}
+% \vspace{\stretch{1}}
+% \def\abstractname{用户协议}
+% \begin{abstract}\noindent
+% \begin{enumerate}
+% \item 本模板按照LaTeX Project Public License发布,协议版本号为1.3或以后的任何版本(随你意);
+% \item 重庆大学教务处和研究生院只提供毕业论文写作指南,不提供官方模板,也不会授权或认证第三方模板为官方模板。 这个模板是按照写作指南的参考实现,模板作者自当尽力,但不保证审查老师不提意见。任何由于本模板而引起的论文格式审查问题与本模板作者无关。
+% \end{enumerate}
+% \vskip2cm
+% \end{abstract}
+%
+%
+% \clearpage
+% \pagestyle{fancy}
+% \begin{multicols}{2}[
+% \setlength{\columnseprule}{.4pt}
+% \setlength{\columnsep}{18pt}]
+% \tableofcontents
+% \end{multicols}
+% \clearpage
+%
+% \section{欢迎!}
+%\cquthesis{}是重庆大学毕业论文的\LaTeX{}模板,支持学士、硕士、博士论文的排版。合理使用本模板可以大大减轻重庆大学毕业生在毕业论文撰写过程中的排版工作量。
+%
+%\cquthesis{}根据重庆大学《重庆大学本科设计(论文)撰写规范化要求(2007年修订版)》和《重庆大学博士、硕士论文撰写格式标准(2007年修订版)》编写,力求合规,简洁,易于实现,用户友好。
+%
+% 本模板的特色:
+%\begin{itemize}
+% \item 支持重庆大学本科(文学、理工)、硕士(学术、专业)、博士的毕业论文格式;
+% \item 内置封面、目录、索引、授权书等论文部件,可按需自动生成;
+% \item 自动侦测文档页数,生成相应的单面打印/双面打印PDF文件;
+% \item 预置一批优化过的宏包和小功能,包含国际标准单位、化学式支持、三线表等,可按需开启。
+% \end{itemize}
+%
+% 本文档将尽量完整的介绍模板的使用方法,如有不清楚之处可以参考示例文档或者根据第~\ref{sec:howtoask}节说明提问,有兴趣者都可以参与完善此手册,也非常欢迎对代码的贡献。
+%
+% \note{模板的作用在于减少论文写作过程中格式调整的时间,前提是遵守模板的用法,否则即便用了\cquthesis 也难以保证输出的论文符合学校规范。}
+%
+% \section{安装}
+% \label{sec:installation}
+%
+% \subsection{系统要求}
+% \label{sec:sysrequire}
+% 本模板用到的宏包比较多,这些包在常见的\TeX{}发行版中都有,推荐使用\textbf{TeX Live},本模板在Windows和Mac环境下的\textbf{TeX Live}发行版中都进行了编译测试。
+%
+% 截止本文档编译时,本模板(\cquthesis)已经被收录到Mik\TeX 中。
+%
+% \note{在条件允许的情况下,强烈推荐您使用\XeTeX 引擎进行编译工作。}
+%
+% \subsection{获取\cquthesis}
+% 请造访\cquthesis{ } \href{https://github.com/nanmu42/cquthesis}{Github主页}下载最新的版本。
+%
+% 本宏包在CTAN官方库中也有镜像,镜像定期更新,可以\href{http://www.ctan.org/pkg/cquthesis}{造访这个页面}查看。
+%
+% 除此之外,\cquthesis{}不拥有也不维护任何其他镜像。
+%
+%
+% \subsection{模板的组成部分}
+% 下表列出了 \cquthesis{} 的主要文件及其功能介绍:
+%
+% \begin{longtable}{l|p{8cm}}
+% \toprule
+% {\heiti 文件(夹)} & {\heiti 功能描述}\\\midrule
+% \endfirsthead
+% \midrule
+% {\heiti 文件(夹)} & {\heiti 功能描述}\\\midrule
+% \endhead
+% \endfoot
+% \endlastfoot
+% cquthesis.ins & \textsc{DocStrip} 驱动文件(用于安装或更新) \\
+% cquthesis.dtx & \textsc{DocStrip} 源文件(用于安装或更新)\\\midrule
+% cquthesis.cls & \LaTeX 模板文件\\
+% cquthesis.cfg & 模板配置文件\\
+% cqunumerical.bst & 参考文献样式文件\\
+% cquthesis.cwl & 代码自动补全配置文件\\\midrule
+% main.tex & 示例文档主文件\\
+% contents/ & 示例文档章节具体内容\\
+% figures/ & 示例文档图片路径\\
+% ref/ & 示例文档参考文献目录\\
+% cquthesis.sty & 为示例文档加载其它宏包\\\midrule
+% README-English & 英文安装提示,推荐中高阶用户阅读\\
+% README.md & Readme\\
+% \textbf{cquthesis.pdf} & 用户手册(本文档)\\\bottomrule
+% \end{longtable}
+%
+% \note{\file{cquthesis.cls}和\file{cquthesis.cfg}以及\file{cqunumerical.bst}可以由\file{cquthesis.ins}和\file{cquthesis.dtx}生成。}
+%
+% \subsection{安装}
+% \label{sec:install}
+% 下载\cquthesis{}的\file*{.zip}压缩包后请将整个文件夹解压出来,进入文件夹后:
+% \begin{itemize}
+% \item Window用户请在文件夹空白处{\heiti 按住Shift键再点击书鼠标右键},选择“在此处打开命令窗口”,运行下列命令:
+%
+% \begin{shell}
+% latex cquthesis.ins
+% \end{shell}
+% \item Linux和Mac用户请在Bash窗口中进行如下操作:
+%
+% \begin{shell}
+% cd cquthesis
+% latex cquthesis.ins
+% \end{shell}
+%\end{itemize}
+%
+% 之后将生成的文件放到\LaTeX{}能够侦测到的地方,安装即可完成。
+%
+% \subsection{升级}
+% \cquthesis 的升级很方便,下载最新的开发版,将zip文件中的\file{cquthesis.dtx} 和\file{cquthesis.ins} 覆盖掉工作文件夹中的相应文件,之后再运行一次\ref{sec:install}节中的命令即可。
+%
+% \subsection{编译用户手册}
+% 如果您需要编译用户手册,请定位到解压后的文件夹,运行下列命令:
+% \begin{shell}
+% xelatex cquthesis.dtx
+% makeindex -s gind.ist -o cquthesis.ind cquthesis.idx
+% makeindex -s gglo.ist -o cquthesis.gls cquthesis.glo
+% xelatex cquthesis.dtx
+% xelatex cquthesis.dtx
+% \end{shell}
+%
+% \section{使用说明}
+% \label{sec:usage}
+% 本手册假定用户已经能处理一般的 \LaTeX{} 文档,并对\BibTeX{} 有一定了解。如果从来没有接触过 \TeX 和 \LaTeX,建议先学习相关的基础知识。磨刀不误砍柴工!
+%
+% 对\LaTeX 还不熟悉的同学,推荐参考\href{http://bbs.ctex.org/forum.php?mod=viewthread&tid=68619}{《\LaTeX{}学习笔记》}。
+%
+%
+% \subsection{代码自动补全}
+% \cquthesis 为支持代码自动补全的\LaTeX 编辑器提供了代码补全配置文件\file{cquthesis.cwl}。如果您的编辑器有代码补全功能(如\TeX Studio),那么您可以将\file{cquthesis.cwl}放置在编辑器可以识别的位置,即可享受代码着色和代码自动补全带来的便利。
+%
+% 支持代码补全功能的编辑器有很多种,这里无法一一枚举,关于\file{cquthesis.cwl}的放置位置,请使用搜索引擎查找答案。推荐的关键词:“您的编辑器名称”+ cwl + location。
+%
+% 对于Windows平台的\TeX Studio用户,您可使用【Win+R】快捷键打开“运行”,在其中输入:
+%
+% \begin{shell}
+% %APPDATA%\texstudio\completion\user
+% \end{shell}
+%
+% 然后在打开的文件夹中放入\file{cquthesis.cwl},重启\TeX Studio即可。Linux和Mac的\TeX Studio用户可参照这个思路进行操作。
+%
+% \subsection{示例文件}
+% \cquthesis 是一个功能高度专门化的文档类,没有示例文档的用户会发现很难下手。推荐新用户从模板自带的示例文档入手,里面包括了论文写作用到的所有命令及其使用方法,只需要用自己的内容进行相应替换就可以。对于不清楚的命令可以查阅本手册。下面的例子描述了模板中章节的组织形式,来自于示例文档,具体内容可以参考模板附带的 \file{main.tex} 和 \file{contents/}。
+%
+% 您可以在您熟悉的IDE(写作环境)中对\file{main.tex}进行编译,推荐使用\XeTeX 进行编译,一般来说,\LaTeX 的编译原则就是多次运行编译命令,直到不再出现警告。这里提供命令行编译方法供您参考:
+%
+% \begin{shell}
+% # 示意:定位到文件夹
+% cd cquthesis
+% # 1.发现文件中的引用关系,文件后缀\textsf{.tex}可省略
+% xelatex main
+% # 2.编译参考文件源文件,生成\textsf{.bbl}文件
+% bibtex main
+% # 3.解决文件中的交叉引用
+% xelatex main
+% # 4.生成完整的pdf文件
+% xelatex main
+% # 5.更新目录
+% xelatex main
+% \end{shell}
+%
+% 下面是示例文件中主文件\file{main.tex}的内容:
+%
+% \lstinputlisting[style=lstStyleLaTeX]{main.tex}
+%
+% \subsection{论文选项}
+% \DescribeOption{type=}
+% 选择论文类型,必须项,当前支持:\option{bachelor},\option{master},\option{doctor}。如:
+% \begin{latex}
+% % 博士论文
+% \documentclass[type=doctor,]{cquthesis}
+%
+% % 硕士论文
+% \documentclass[type=master,]{cquthesis}
+% \end{latex}
+%
+% \DescribeOption{liberalformat}
+% 本科生可选,开启后将使用文学类标题格式,使用中文数字对各级标题进行计数,本选项默认关闭。
+%
+% \note{以下所有可选项在不使用时自动取默认值。}
+%
+% \DescribeOption{proffesionalmaster=}
+% 研究生可选,值为\textsf{true}时按专业硕士要求排版(影响封面),值为\textsf{false}时按学术硕士要求排版,默认值为\textsf{false},例如:
+% \begin{latex}
+% % 学术硕士论文
+% \documentclass[type=master,proffesionalmaster=false,]{cquthesis}
+% % 上面相当于:
+% \documentclass[type=master,]{cquthesis}
+%
+% % 专业硕士论文
+% \documentclass[type=master,proffesionalmaster=true,]{cquthesis}
+% \end{latex}
+% \DescribeOption{printmode=}
+% 可选项,确定单双页打印模式,有三个值可用:
+% \begin{description}
+% \item[\option{auto}] 模板会按照学校要求和论文类型自动判定打印模式;
+% \item[\option{oneside}] 强制以单页模式打印,适合最后提交电子版时;
+% \item[\option{twoside}] 强制以双页模式打印。
+% \end{description}
+%
+% 默认采用自动判定。
+%
+% \DescribeOption{openany}
+% \DescribeOption{openright}
+% 正规出版物的章节出现在奇数页,也就是右手边的页面,这就是 \option{openright},在这种情况下,如果前一章的最后一页也是奇数,那么模板会自动生成一个纯粹的空白页以保证新章节右开。这个选项适合页数较多的论文,您可根据实际情况和个人喜好选择是否开启。默认值\option{openany},本选项在单页打印时自动失效。
+%
+% \DescribeOption{seriftoc}
+% 开启此项,目录中的不同级别会采用不同的字号和字体,这是按照学校word样例的实现。但是,蹊跷的是,样例里的这些做法在官方文件里却没有体现,而且一二级标题字号差别太大,个人观点有碍美观,所以这里列为可选项,适用于三级标题很多的情况。本选项默认关闭。
+%
+% \DescribeOption{continuoustoc}
+% 使用后论文的目录和索引不会自动开启新页,转而以连续的形式编排,这个选项适合索引内容较少但又想使用索引的用户。在开启后,您可能需要在\file{main.tex}中使用\cs{clearpage}来对索引部分进行手动分页。本选项默认关闭。
+%
+% \DescribeOption{abstractopenright}
+% 开启此项,双页打印模式时中英文摘要右开,这算是开发中的一个彩蛋。本选项默认关闭。
+%
+% \DescribeOption{draft}
+% 草稿模式,推荐在写作时开启。这个模式下,\LaTeX 不会加载图片,不会渲染文档内超链接,部分宏包会跳过一些工作以降低编译难度,结合\cs{includeonly}命令可以大大提高预览速度,例如:
+%
+% \begin{latex}
+% % 这是代码片段
+% \includeonly{contents/experiment,contents/analysis,}
+% \include{contents/intrduction}
+% \include{contents/experiment}
+% \include{contents/analysis}
+% \include{contents/conclusion}
+% \end{latex}
+%
+% 此时\LaTeX 只会渲染\file*{contents/experiment}和\file*{contents/analysis},从而加速预览。
+% \subsection{中文字体}
+% \label{sec:chinese-fonts}
+%
+% \subsubsection{字体配置}
+% \label{sec:font-config}
+% 正确配置中文字体是使用模板的第一步。模板调用 \CTeX 宏包,提供如下字体使用方式:
+% \begin{itemize}
+% \item 基于传统 \pkg{CJK} 包,使用 \LaTeX、Pdf\LaTeX\ 编译。
+% \item 基于 \pkg{xeCJK} 包,使用 \XeLaTeX\ 编译。(推荐方法)
+% \end{itemize}
+%
+% 模板默认使用 \CTeX 的字体配置。关于中文字体安装、配置的所有问题不在本模板讨论范围。
+%
+% \subsubsection{字体命令}
+% \label{sec:fontcmds}
+% \myentry{字体}
+% \DescribeMacro{\songti}
+% \DescribeMacro{\fangsong}
+% \DescribeMacro{\heiti}
+% \DescribeMacro{\kaishu}
+% 用来切换宋体、仿宋、黑体、楷体四种基本字体。
+%
+% \begin{latex}
+% {\songti 爆竹声中一岁除,春风送暖入屠苏。}
+% {\fangsong 家家乞巧望秋月,穿尽红丝几万条。}
+% {\heiti 黄沙百战穿金甲,不破楼兰终不还。}
+% {\kaishu 君不见走马川行雪海边,平沙莽莽黄入天。}
+% \end{latex}
+%
+% 效果如下:
+%
+% {\songti 爆竹声中一岁除,春风送暖入屠苏。}\space
+% {\fangsong 家家乞巧望秋月,穿尽红丝几万条。}
+%
+% {\heiti 黄沙百战穿金甲,不破楼兰终不还。}\space
+% {\kaishu 君不见走马川行雪海边,平沙莽莽黄入天。}
+%
+% \DescribeMacro{\zihao}
+% \cquthesis 使用\CTeX 的原生字体命令,使用中文字号:
+% \begin{latex}
+% \zihao{-4} % 后文使用小四号
+% {\zihao{2} 使用二号字的段落} % 大括号外又回到小四号
+% \end{latex}
+%
+% \subsection{封面信息和摘要}
+% \label{sec:titlepage}
+% \subsubsection{设置方法}
+% 封面信息提供两种配置方法:一是通过统一设置命令\cs{cqusetup} 通过\emph{key=value}形式完成;二是每个信息利用命令独立设置,其中命令的名字跟 \emph{key} 相同。两种方式可以交叉使用,并按顺序执行(即对同一项,后来的设置会覆盖前面的)。以 \texttt{c} 开头的命令跟中文相关,\texttt{e} 开头则为对应的英文。
+%
+% \DescribeMacro{\cqusetup}
+% \cs{cqusetup} 用法与常见 \emph{key=value}命令相同,如下:
+% \begin{latex}
+% \cqusetup{
+% key1 = value1,
+% key2 = {a value, with comma},
+% }
+% % 可以多次调用
+% \cqusetup{
+% key3 = value3,
+% key1 = anothervalue, % 覆盖 value1
+% }
+% \end{latex}
+%
+% \note{\cs{cqusetup} 使用 \pkg{kvoptions} 机制,所以配置项之间不能有空行,否则会报错。}
+%
+% 大多数命令的使用方法都是: \cs{command}\marg{arg},例外者将具体指出。这些命令都在示例文档的 \file{contents/cover.tex} 中。
+%
+% \subsubsection{文章标题}
+% \DescribeMacro{\ctitle}
+% \DescribeMacro{\etitle}
+% 设置论文的中文标题和英文标题,标题中可以使用两个右斜杠进行手动换行。
+% \begin{latex}
+% \ctitle{论文标题//这是标题的第二行//第三行//最好别有第四行}
+% \etitle{Title in English// the 2nd line}
+% % 以上命令和以下命令等价:
+% \cqusetup{
+% ctitle={论文中文题目},
+% etitle={Thesis English Title},
+% }
+% \end{latex}
+%
+% \note{下文描述的所有命令都有和自己等价的\cs{cqusetup}形式,请留意。}
+%
+% \subsubsection{个人信息}
+%
+% \DescribeMacro{\cauthor}
+% \DescribeMacro{\eauthor}
+% 作者信息,其中英文信息使用拼音书写。
+%
+% \DescribeMacro{\csupervisor}
+% \DescribeMacro{\esupervisor}
+% 导师的中英文信息,填写范例:
+% \begin{latex}
+% \cqusetup{
+% csupervisor = {匡振义~~教授}, % 使用连字符来进行不会断行的空格
+% esupervisor = {Prof. Zhenyi Kuang},
+% }%
+% \end{latex}
+%
+% \DescribeMacro{\cpsupervisor}
+% \DescribeMacro{\epsupervisor}
+% 仅专硕填写,兼职导师姓名和拼音。
+%
+% \note{在\file{cover.tex}中自己用不上的字段可以坐视不理、注释、删除(随你意)。模板在v 0.9.7 版本后更新了运作机制,\textbf{不再需要}主动注释掉不需要的字段以获得正确的封面排版。}
+%
+% \DescribeMacro{\cmajor}
+% \DescribeMacro{\emajor}
+% 填写自己的专业名称,专硕不用这个字段。在专业名称太长的时候封面可能会不够美观,这时可以使用\cs{zihao}来调整这一个字段的字号大小。详情请见\file{cover.tex}。
+%
+% \subsubsection{成文日期}
+%
+% \DescribeMacro{\mycdate}
+% \DescribeMacro{\myedate}
+% 自行指定封面的中英文成文日期。
+%
+% 默认情况下,封面底部的中英文成文日期自动生成,如果您需要自行指定成文日期,请取消\file{cover.tex}中\cs{mycdate}和\cs{myedate}的注释,按参考格式填入日期。
+%
+% \subsubsection{关键词和摘要}
+% \myentry{关键词}
+% \DescribeMacro{\ckeywords}
+% \DescribeMacro{\ekeywords}
+% 关键词用英文逗号分割写入相应的命令中,模板会解析各关键词并生成符合不同论文格式。
+% 要求的关键词格式。
+%
+% \begin{latex}
+% \cqusetup{
+% ckeywords={关键词 1, 关键词 2},
+% ekeywords={keyword 1, keyword 2}
+% }
+% % 等价:
+% \ckeywords{关键词 1, 关键词 2}
+% \ekeywords{keyword 1, keyword 2}
+% \end{latex}
+%
+% \myentry{摘要}
+% \DescribeEnv{cabstract}
+% \DescribeEnv{eabstract}
+% 摘要只能使用环境命令来设置,不支持\cs{cqusetup}。
+%
+% \begin{latex}
+% \begin{cabstract}
+% 摘要请写在这里…
+% \end{cabstract}
+%
+% \begin{eabstract}
+% Here comes the abstract in English...
+% \end{eabstract}
+% \end{latex}
+%
+% \subsection{前置部分}
+%
+% 以下内容对应\file{main.tex}中的内容。
+% \subsubsection{封面}
+% \DescribeMacro{\makecover}
+% 生成封面,包含中英文封面。
+%
+% \myentry{开启前置部分}
+% \DescribeMacro{\frontmatter}
+% 前置部分标识符,其后的命令将被模板认作属于前置部分。前置部分包含封面后到绪论前的内容。
+%
+% \DescribeMacro{\makeabstract}
+% 生成中英文摘要。
+%
+% \subsubsection{目录和索引表}
+% 目录、插图、表格和公式等索引命令分别如下,将其插入到期望的位置即可:
+%
+% \DescribeMacro{\tableofcontents}
+% \DescribeMacro{\listoffigures}
+% \DescribeMacro{\listoftables}
+% \DescribeMacro{\listofequations}
+% \begin{longtable}{ll}
+% \toprule
+% {\heiti 用途} & {\heiti 命令} \\
+% \midrule
+% 目录 & \cs{tableofcontents} \\
+% 插图索引 & \cs{listoffigures} \\
+% 表格索引 & \cs{listoftables} \\
+% 公式索引 & \cs{listofequations} \\
+% \bottomrule
+% \end{longtable}
+%
+% \LaTeX{} 默认支持插图和表格索引,是通过 \cs{caption} 命令完成的,因此它们必须出现在浮动环境中,否则不被计数。
+%
+% \subsubsection{符号对照表}
+% \DescribeEnv{denotation}
+% 主要符号表环境,跟 \env{description} 类似,使用方法参见示例文件。带两个个可选参数,用来指定列表左侧缩进和列表左右距离。(全去掉时默认:20mm,30mm)
+% \begin{latex}
+% \begin{denotation}
+% \item[E] 能量
+% \item[m] 质量
+% \item[c] 光速
+% \end{denotation}
+% \end{latex}
+%
+% 如果默认符号列的宽度不满意,可以通过参数来调整:
+% \begin{latex}
+% \begin{denotation}[10mm][40mm] % 左侧缩进10mm,左右距离40mm
+% \item[E] 能量
+% \item[m] 质量
+% \item[c] 光速
+% \end{denotation}
+% \end{latex}
+%
+% \subsection{主体部分}
+%
+% \myentry{开启主体部分}
+% \DescribeMacro{\mainmatter}
+% 主体部分标识符,其后的命令将被模板认作属于主体部分。主体部分包含从绪论到结论的所有内容。
+%
+% \DescribeMacro{\include}
+% 使用该命令从\file{contents/}中导入子文件,配合\cs{includeonly}\marg{子文件名}命令可加速预览。
+%
+% \subsection{后置部分}
+%
+% \myentry{开启后置部分}
+% \DescribeMacro{\backmatter}
+% 后置部分标识符,其后的命令将被模板认作属于后置部分。后置部分包含从致谢开始的所有内容。
+%
+% \myentry{致谢}
+% 致谢部分使用普通的\cs{chapter}命令创建即可。
+%
+% \DescribeMacro{\bibliographystyle}
+% \DescribeMacro{\bibliography}
+% 定义参考文献样式,指定参考文献源。
+%
+% 其中参考文献的\textsf{.bib文件}推荐使用\textsf{Jabref}来进行处理。
+%
+% \note{如果您的文献资料来源于Web of Science一类的数据库导出,那么您很可能需要使用\textsf{Jabref}一类的文献bib数据管理工具对数据进行清理,以去除每个字段外围的双层花括号(目前已知DOI字段的双层括号会使得参考文献列表出现格式问题)。清理过程是自动而无害的。}
+%
+%
+% \DescribeMacro{\cquauthpage}
+% 生成原创说明和授权书,这个命令可以带一个\oarg{PDF文件地址}作为参数。这样,在您和您的导师签名之后,您可以单独扫描一下签过名的原创说明和授权书,以\cs{cquauthpage}\oarg{pdf文件地址}的形式将扫描页放入论文的PDF文件中的对应位置。
+%
+% \subsection{宏包和特色功能}
+% \subsubsection{数学环境}
+% \label{sec:math}
+% \cquthesis{} 定义了常用的数学环境:
+%
+% \begin{center}
+% \begin{tabular}{*{7}{l}}\toprule
+% axiom & theorem & definition & proposition & lemma & conjecture &\\
+% 公理 & 定理 & 定义 & 命题 & 引理 & 猜想 &\\\midrule
+% proof & corollary & example & exercise & assumption & remark & problem \\
+% 证明 & 推论 & 例子& 练习 & 假设 & 注释 & 问题\\\bottomrule
+% \end{tabular}
+% \end{center}
+%
+% 比如:
+% \begin{latex}
+% \begin{definition}
+% 道千乘之国,敬事而信,节用而爱人,使民以时。
+% \end{definition}
+% \end{latex}
+% 产生(自动编号):
+% \medskip
+%
+% \noindent\framebox[\linewidth][l]{{\heiti 定义~1.1~~~} % {道千乘之国,敬事而信,节用而爱人,使民以时。}}
+%
+% \smallskip
+% 列举出来的数学环境毕竟是有限的,如果想用\emph{胡说}这样的数学环境,那么可以定义:
+% \begin{latex}
+% \newtheorem{nonsense}{胡说}[chapter]
+% \end{latex}
+%
+% 然后这样使用:
+% \begin{latex}
+% \begin{nonsense}
+% 契丹武士要来中原夺武林秘笈。—— 慕容博
+% \end{nonsense}
+% \end{latex}
+% 产生(自动编号):
+%
+% \medskip
+% \noindent\framebox[\linewidth][l]{{\heiti 胡说~1.1~~~} % {契丹武士要来中原夺武林秘笈。—— 慕容博}}
+%
+% \subsubsection{引用方式}
+%
+% \DescribeMacro{\inlinecite}
+% \DescribeMacro{\onlinecite}
+% 参考文献引用有两种模式:(1)上标模式。比如``同样的工作有多$^{[1,2]}$\ldots''。(2)正文模式。比如``文[3]中详细说明了\ldots''。其中上标模式使用远比正文模式频繁,所以为了符合使用习惯,上标模式仍然用常规的\cs{cite}\marg{key},而\cs{inlinecite}\marg{key} 则用来生成正文模式。
+%
+% 出于易用性考虑,\cs{onlinecite}被安排为\cs{inlinecite}的别名,两者的作用完全一致,可相互替换。
+%
+% \subsubsection{自动编号}
+%
+% \DescribeMacro{\xuhao}
+% \DescribeMacro{\xuhaotype}
+% \DescribeMacro{\resetxuhao}
+% \DescribeMacro{\xuhaoseparator}
+% \DescribeMacro{\rownum}
+% \DescribeMacro{\rownumtype}
+% \DescribeMacro{\resetrownum}
+% \DescribeMacro{\rownumseparator}
+% \cs{xuhao}命令用来解决表格序号列手动编号的烦恼,这个命令也可以用在行内列表等场景,其中:
+%\begin{itemize}
+% \item \cs{xuhao}\oarg{1}用于将计数器设置为1,并输出1;
+% \item \cs{xuhao}不带参数时每次使用将计数器加1,并输出这个值;
+% \item \cs{xuhaotype}\oarg{1-6}可设置\cs{xuhao}的输出类型,1--6分别为阿拉伯数字、大写字母、小写字母、大写罗马数字、小写罗马数字、带圈数字(这一项仅支持1--10的数)
+% \item \cs{resetxuhao}用于重置计数器为1,但不作输出;
+% \item \cs{xuhaoseparator}用于定义每个序号之后的分割符,默认为空,您可以使用\cs{renewcommand}来更新其定义。
+%\end{itemize}
+%
+% \begin{latex}
+% \xuhaotype[3]
+% \renewcommand{\xuhaoseparator}{.}
+% \xuhao[1] \xuhao \xuhao \xuhao[1] \xuhao \xuhao \xuhao \xuhao
+% % 输出为:a. b. c. a. b. c. d. e.
+% \end{latex}
+%
+% \note{考虑到不同用户的语言习惯,\cs{rownum}, \cs{rownumtype}, \cs{resetrownum}分别是\cs{xuhao}, \cs{xuhaotype}, \cs{resetxuhao}的别名,可以相互替换。}
+%
+% 向前兼容:老旧命令\cs{setxuhao}和\cs{xuhaotype}的作用相同。
+%
+% \subsubsection{表格命令}
+% 在表格中,\cs{bigcell}内的内容可以自主换行;\cs{headcell}括起的内容会在单元格中居中和加黑;\cs{colsep}用来设定列间距,默认值为12pt,这个命令在表格开始绘制之前有效。
+%
+% 使用范例请参阅示例文档的附录部分。
+%
+% 本模板已经自动载入了许多表格相关的宏包:
+% \begin{itemize}
+% \item 如果您是熟练的\LaTeX 用户,\pkg{array}, \pkg{tabularx}, \pkg{booktabs}, \pkg{longtable}, \pkg{multirow}和\pkg{diagbox}会是您得力的助手,其中,\pkg{tabularx}和\pkg{longtable}的字号已经预先适配为五号字;
+% \item \cquthesis 还预先载入了\pkg{tabu}宏包,如果您熟悉这个宏包,或者愿意负担一些学习成本,那么\pkg{tabu}宏包的强大功能会让您满意。
+% \end{itemize}
+%
+% \subsection{其他说明}
+% 本文档的最后一节有宏索引,对中阶及以上用户或许会有帮助。
+%
+% \subsection{提问和新功能需求}\label{sec:howtoask}
+% 遇到难以解决的问题了?欢迎您向我反馈,您可以:
+% \begin{itemize}
+% \item 在Github上\href{https://github.com/nanmu42/cquthesis/issues}{提交Issue};
+% \item 莅临重庆大学7117工作室垂询
+%\end{itemize}
+%
+% 大家的反馈是模板提高的机会。
+% \section{致谢}
+% 这个模板是站在巨人肩膀上的成果,感谢\LaTeXe{}计划,感谢CTeX开发组提供的中文解决方案,感谢薛瑞尼副教授(Github: xueruini/ThuThesis),感谢WeiJianWen同学(Github: weijianwen/SJTUThesis),感谢中国科学技术大学TeX用户组(Github: ustctug/gbt-7714-2015)。向你们致以真诚的问候和感激!
+%
+% 世界因你们更美好。
+%
+% \StopEventually{\PrintChanges\PrintIndex}
+% \clearpage
+% \section{实现细节}
+% 下面这些内容面向\LaTeX 宏包开发者或者对\cquthesis 开发感兴趣的用户,如果您有任何意见或建议或想法,都欢迎到Github\href{https://github.com/nanmu42/cquthesis/issues}{提交Issue}。您对模板开发或者本文档的撰写的任何贡献都会受到诚挚欢迎!
+% \subsection{模板信息}
+% \begin{macrocode}
+%<cls>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+%<cls>\ProvidesClass{cquthesis}
+%<cfg>\ProvidesFile{cquthesis.cfg}
+%<cls|cfg>[2016/06/09 v0.9.7 Chongqing University Thesis Template]
+% \end{macrocode}
+% 定义一些开发常量:
+% \begin{macrocode}
+%<*cls>
+\hyphenation{Cqu-Thesis}
+\newcommand{\cquthesis}{\textsc{CquThesis}}
+\def\version{0.9.7}
+%</cls>
+% \end{macrocode}
+% \file{cquthesis.cfg}有一些难以分类的常量:
+% \changes{v0.9.0}{2016/05/16}{把目录加入到了PDF书签中。}
+% \begin{macrocode}
+%<*cfg>
+\def\cqueqshortname {式}
+\def\cqu@denotation@name {主要符号对照表}
+\def\listofequationsname {重要算式索引}
+\def\cqu@bib@name {参考文献}
+\def\cqu@tocnameinbkmark {目{ }录}
+\newcommand{\parenthesesthis}[1]{(#1)}
+%</cfg>
+% \end{macrocode}
+% \subsection{选项的定义和处理}
+% 使用Key=Value方式进行选项设置,定义前缀和族。
+% \begin{macrocode}
+%<*cls>
+\RequirePackage{kvoptions}
+\SetupKeyvalOptions{
+ family=cqu,
+ prefix=cqu@,
+ setkeys=\kvsetkeys}
+% \end{macrocode}
+% 定义用户类型
+% \begin{macrocode}
+\newif\ifcqu@bachelor
+\newif\ifcqu@master
+\newif\ifcqu@doctor
+\cqu@bachelorfalse\cqu@masterfalse\cqu@doctorfalse
+\define@key{cqu}{type}{%
+ \expandafter\csname cqu@#1true\endcsname}
+% \end{macrocode}
+% 定义是否使用本科文学类论文标题格式
+% \begin{macrocode}
+\DeclareBoolOption{liberalformat}
+% \end{macrocode}
+% 专业硕士标记
+% \begin{macrocode}
+\DeclareBoolOption[true]{academic}
+\DeclareComplementaryOption{proffesionalmaster}{academic}
+% \end{macrocode}
+% 每个章首页是否右开
+% \begin{macrocode}
+\DeclareBoolOption[true]{openany}
+\DeclareComplementaryOption{openright}{openany}
+% \end{macrocode}
+% 双页模式下英文摘要页右开
+% \begin{macrocode}
+\DeclareBoolOption[false]{abstractopenright}
+% \end{macrocode}
+% 论文是单面打印还是双面打印(默认:自动,手动模式一般不用)
+% \begin{macrocode}
+\newif\if@onesideprint
+\newif\if@twosideprint
+\newif\if@autoprint
+\@onesideprintfalse\@twosideprintfalse\@autoprintfalse
+\define@key{cqu}{printmode}{%
+ \expandafter\csname @#1printtrue\endcsname}
+% \end{macrocode}
+% 论文是否保密(默认:关),尚未支持,在计划中
+% \begin{macrocode}
+\DeclareBoolOption[false]{secret}
+% \end{macrocode}
+% 目录中的不同级别采用不同的字号和字体,适用于三级标题很多的情况
+% \begin{macrocode}
+\DeclareBoolOption[false]{seriftoc}
+% \end{macrocode}
+% 目录和索引不会自动新开一页,适用于索引内容较少时
+% \begin{macrocode}
+\DeclareBoolOption{continuoustoc}
+% \end{macrocode}
+% 传递选项给CTeXBook
+% \begin{macrocode}
+\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{ctexbook}}
+% \end{macrocode}
+% 打开默认选项,处理选项
+% \begin{macrocode}
+\kvsetkeys{cqu}{}
+\ProcessKeyvalOptions*
+\PassOptionsToPackage{no-math}{fontspec}
+% \end{macrocode}
+% 为CTeXBook定义选项,使用CTeX原生的的Openright和Openany解决方案:
+% \begin{macrocode}
+\ifcqu@openany
+ \LoadClass[openany,a4paper,oneside,UTF8,zihao=-4,scheme=plain,linespread=1.39,space=auto]{ctexbook}
+\else
+ \LoadClass[openright,a4paper,oneside,UTF8,zihao=-4,scheme=plain,linespread=1.39,space=auto]{ctexbook}
+\fi
+% \end{macrocode}
+% 用户必须提供用户类型:
+% \begin{macrocode}
+\ifcqu@bachelor\relax\else
+ \ifcqu@master\relax\else
+ \ifcqu@doctor\relax\else
+ \ClassError{cquthesis}%
+ {Specified thesis type is obligatory: \MessageBreak
+ type=[bachelor|master|doctor]}{}
+ \fi
+ \fi
+\fi
+% \end{macrocode}
+% 如果没有指定合适的打印方式则缺省使用自动模式
+% \begin{macrocode}
+\if@autoprint\relax\else
+ \if@onesideprint\relax\else
+ \if@twosideprint\relax\else
+ \ClassWarning{cquthesis}%
+ {Unexpected or missing print mode, processing with AUTO: \MessageBreak
+ printmode=[oneside|twoside|auto]}{}
+ \@autoprinttrue
+ \fi
+ \fi
+\fi
+% \end{macrocode}
+% \subsection{载入宏包}
+%
+% 使用成熟的宏包而不是自己造轮子几乎总是一个不错的选择,\LaTeX 的强大之处就在这诸多宏包。
+%
+% 这几个宏包用于提升\LaTeXe 的命令定义和命令处理性能
+% \begin{macrocode}
+\RequirePackage{etoolbox}
+\RequirePackage{xparse}
+\RequirePackage{environ}
+\RequirePackage{calc}
+\RequirePackage{ifxetex}
+% \end{macrocode}
+%
+% 数学是\LaTeX 关心的大问题,这里先引入\pkg{amsmath}宏包,避免一些载入顺序引发的问题:
+% \begin{macrocode}
+\RequirePackage{fontspec}
+\RequirePackage{amsmath}
+% \end{macrocode}
+%
+% 一些字体相关的宏包:
+% \begin{macrocode}
+\RequirePackage[defaultsups]{newtxtext}
+\RequirePackage{newtxmath}
+\RequirePackage{pifont}
+\RequirePackage{CJKfntef}
+% \end{macrocode}
+%
+% 解决各种文档部件需求,如表格、题注、插图等
+% \changes{v0.9.41}{2016/05/25}{修正了\pkg{tgcursor}使\cs{textbf}失效的Bug,现在起使用\pkg{courier}代替。}
+% \begin{macrocode}
+\RequirePackage[labelformat=simple]{subcaption}
+\RequirePackage{array}
+\RequirePackage{tabularx}
+\RequirePackage{booktabs}
+\RequirePackage{longtable}
+\RequirePackage{multirow}
+\RequirePackage{diagbox}
+\RequirePackage{tabu}
+\RequirePackage{courier}
+\RequirePackage{graphicx}
+\RequirePackage{pdfpages}
+\RequirePackage[shortlabels,inline]{enumitem}
+\RequirePackage[amsmath,thmmarks,hyperref]{ntheorem}
+% \end{macrocode}
+%
+% 解决页面类问题和脚注,其中\pkg{varwidth}用来代替老版本中的\pkg{pbox}。\pkg{xcolor}用来提供色彩支持,\pkg{metalogo}用来提供\cs{XeTeX}等命令支持。
+% \begin{macrocode}
+\RequirePackage{changepage}
+\RequirePackage{afterpage}
+\RequirePackage[bottom,perpage,hang,symbol*]{footmisc}
+\raggedbottom
+\RequirePackage{varwidth}
+\RequirePackage{xcolor}
+\RequirePackage{metalogo}
+\RequirePackage{xspace}
+% \end{macrocode}
+%
+% 参考文献格式和优化:
+% \begin{macrocode}
+\RequirePackage[numbers,square,comma,super,sort&compress]{natbib}
+% \end{macrocode}
+%
+% \changes{v0.9.7}{2016/06/09}{目录、图录和表录的章节间隔不再突兀了。}
+% 删除默认模板(\file{book.cls})在章之间引入的垂直间隔。要放在\pkg{hyperref}之前才会生效。
+% \begin{macrocode}
+\patchcmd{\@chapter}{\addtocontents{lof}{\protect\addvspace{10\p@}}}{}{}{} % lof
+\patchcmd{\@chapter}{\addtocontents{lot}{\protect\addvspace{10\p@}}}{}{}{} % lot
+% \end{macrocode}
+%
+% 文档超链接
+% \begin{macrocode}
+\RequirePackage[hyperfootnotes=false,]{hyperref}
+% \end{macrocode}
+%
+% 配置超链接
+% \begin{macrocode}
+\hypersetup{%
+ linktoc=all,
+ bookmarksnumbered=true,
+ bookmarksopen=true,
+ bookmarksopenlevel=1,
+ breaklinks=true,
+ colorlinks=false,
+ plainpages=false,
+ pdfborder=0 0 0}
+\urlstyle{same}
+% \end{macrocode}
+%
+% 对\XeTeX 进行专门配置,解决一些字体问题:
+% \begin{macrocode}
+\ifxetex
+\def\CJK@null{\kern\CJKnullspace\Unicode{48}{7}\kern\CJKnullspace}
+\defaultfontfeatures{Mapping=tex-text}
+\fi
+\RequirePackage{tocloft}
+\ifxetex
+\hypersetup{%
+ CJKbookmarks=true}
+\else
+\hypersetup{%
+ unicode=true,
+ CJKbookmarks=false}
+\fi
+% \end{macrocode}
+%
+% \subsection{页面类设置}
+% \subsubsection{页面功能}
+% \begin{macro}{\cleardoublepage}
+% 首页右开的时候,全空的左页不留页眉页脚
+% \begin{macrocode}
+\let\cqu@cleardoublepage\cleardoublepage
+\renewcommand{\cleardoublepage}{%
+ \clearpage{\pagestyle{style@empty}\cqu@cleardoublepage}
+}%\cleardoublepage
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\cqu@addblankpage}
+% 用来在强制完成空页工作,注意这里的pagestyle调整范围在花括号之内
+% \begin{macrocode}
+\newcommand\cqu@addblankpage{%
+ \afterpage{%
+ {\null\pagestyle{style@empty}\clearpage}}}
+% \end{macrocode}
+% \end{macro}
+%
+% \subsubsection{论文的三个部分}
+% \begin{macro}{\frontmatter}
+% \begin{macro}{\mainmatter}
+% \begin{macro}{\backmatter}
+% \changes{v0.9.0}{2016/05/16}{修正了不该编号的致谢页眉。}
+% 用来在\file{main.tex}中开启不同的文章部分:前置、主体、后置
+% \begin{macrocode}
+\newif\if@backmatter
+\renewcommand{\frontmatter}{%
+ \@backmatterfalse
+ \cleardoublepage
+ \pagenumbering{Roman}
+ \pagestyle{style@normal}
+ \ctexset{chapter/numbering = false,}
+}
+\renewcommand{\mainmatter}{%
+ \@backmatterfalse
+ \cleardoublepage
+ \pagenumbering{arabic}
+ \pagestyle{style@normal}
+ \ctexset{chapter/numbering = true,}
+}
+\renewcommand{\backmatter}{%
+ \@backmattertrue
+ \cleardoublepage
+ \ctexset{chapter/numbering = false,
+ section/number = \Alph{section},
+ section/name = {,.},
+ subsection/number = \CTEXthesection{}\arabic{subsection},}%
+ \setcounter{chapter}{0}
+}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% \subsubsection{页面设置}
+% 定义页面,页眉页脚,先建立页面环境,完成分页再决定单双面打印
+% \begin{macrocode}
+\RequirePackage{geometry}
+\geometry{
+ a4paper, ignoreall, nomarginpar,
+ inner=25mm, outer=25mm, top=30mm, bottom=25mm,
+ bindingoffset=10mm, head=16mm, headsep=5mm, foot=15mm, footnotesep=5mm}
+% \end{macrocode}
+%
+% \subsubsection{单双页打印的自动判定}
+% 重庆大学的单双面打印和论文实际页数有关,此处读取前置部分后的最大页码,自动判断是否需要双面打印。很有趣,本科生70页想要双面打印比硕士生60页还难。此处立flag用来配合\cs{cqu@addblankpage}
+% \begin{macrocode}
+\RequirePackage{totcount}
+\regtotcounter[auxfile=maxpage.aux]{page}
+\if@autoprint
+ \ifcqu@bachelor
+ \ifnum\totvalue{page}>70 \@twosideprinttrue\else\@onesideprinttrue\fi
+ \else
+ \ifnum \totvalue{page}>60 \@twosideprinttrue\else\@onesideprinttrue\fi
+ \fi
+\fi
+% \end{macrocode}
+%
+% 在log中记录下打印模式:
+% \begin{macrocode}
+\if@onesideprint
+ \ClassWarning{cquthesis}{Printing under oneside mode.}{}
+\else
+ \if@twosideprint
+ \geometry{twoside}
+ \ClassWarning{cquthesis}{Printing under twoside mode.}{}
+ \fi
+\fi
+% \end{macrocode}
+%
+% \subsubsection{页眉和页脚}
+% 页眉页脚共有三种模式: 1. 页眉页脚全空(用于标题页、主体部分另页右开等);2. 用来修正双页打印时的页眉遮挡问题(右开的索引页眉不再是\cs{cqu@thesisname});3. 页眉页脚齐全(用于一般正文页面,这里自动判定用户类型和打印单双面)。
+%
+% 定制页眉页脚模式,全部以style@开头。
+% \begin{macrocode}
+\RequirePackage{fancyhdr}
+\fancypagestyle{style@empty}{%
+ \fancyhf{}
+ \renewcommand{\headrulewidth}{0pt}
+ \renewcommand{\footrulewidth}{0pt}}
+\fancypagestyle{style@fixhead}{%
+ \fancyhead{}
+ \fancyhead[C]{\zihao{-5}\songti\leftmark}
+ \fancyfoot{}
+ \fancyfoot[C]{\zihao{-5}\thepage}
+ \renewcommand{\headrulewidth}{0.4pt}
+ \renewcommand{\footrulewidth}{0pt}}
+\fancypagestyle{style@normal}{%
+ \fancyhead{}
+ \if@twosideprint
+ \fancyhead[EC]{\zihao{-5}\songti\cqu@thesisname}
+ \fancyhead[OC]{\zihao{-5}\songti\leftmark}
+ \else
+ \fancyhead[L]{\zihao{-5}\songti\cqu@thesisname}
+ \fancyhead[R]{\zihao{-5}\songti\leftmark}
+ \fi
+ \fancyfoot{}
+ \fancyfoot[C]{\zihao{-5}\thepage}
+ \renewcommand{\headrulewidth}{0.4pt}
+ \renewcommand{\footrulewidth}{0pt}}
+% \end{macrocode}
+% \begin{macro}{\cqu@fixhead}
+% 修正页眉遮挡,这个命令要在标题生成的地方使用
+% \begin{macrocode}
+\newcommand{\cqu@fixhead}{%
+ \if@twosideprint %仅双页打印需要修正
+ \checkoddpage
+ \ifoddpage\relax\else
+ \thispagestyle{style@fixhead}
+ \fi
+ \fi
+}%\cqu@fixhead
+% \end{macrocode}
+% \end{macro}
+% 修正fancyhdr的问题,同时让页眉不显示第0章的编号:
+% \begin{macrocode}
+\AtBeginDocument{%
+ \pagestyle{style@empty}
+ \renewcommand{\chaptermark}[1]{%
+ \ifnum\value{chapter}>0%
+ \@mkboth{\CTEXthechapter\hskip\ccwd#1}{}%
+ \else
+ \@mkboth{#1}{}%
+ \fi}}%\chaptermark
+% \end{macrocode}
+%
+% \subsection{段落设置}
+% LaTeX使用\cs{if@afterindent}来决定要不要让标题后的第一个自然段缩进,中文环境下好像并没有个人喜好之类的问题,我们这里让它一直为True。
+% \begin{macrocode}
+\let\@afterindentfalse\@afterindenttrue
+\@afterindenttrue
+% \end{macrocode}
+% 每个自然段之间空1/10行距,增加可读性
+% \begin{macrocode}
+\setlength{\parskip}{0.1\baselineskip}
+% \end{macrocode}
+% 全文首行缩进两字符,全角标点,去掉列表中项目之间的额外间隔(enumitem)
+% \begin{macrocode}
+\ctexset{%
+ punct=quanjiao,
+ autoindent=true,
+ space=auto}
+\setlist{
+ nosep,
+ itemjoin = {{;}}
+}%setlist
+%</cls>
+% \end{macrocode}
+%
+% \subsection{各级标题}
+% 各级标题设置:
+% \begin{macrocode}
+%<*cfg>
+\ctexset{%
+ chapter = {%
+ pagestyle = style@normal,
+ name = {},
+ format = \sffamily\heiti\centering,
+ nameformat = \zihao{3},
+ titleformat = \zihao{3},
+ aftername = \hskip\ccwd,
+ number = {\ifcqu@liberalformat\chinese{chapter}\else\thechapter\fi},
+ beforeskip = 13bp,
+ afterskip = 24bp,
+ },
+ section = {%
+ name = {},
+ format = \sffamily\heiti\raggedright,
+ nameformat = \bfseries\zihao{-3},
+ titleformat = \zihao{-3},
+ aftername = \hskip\ccwd,
+ number = {\ifcqu@liberalformat\parenthesesthis{\chinese{section}}\else\thesection\fi},
+ beforeskip = 24bp \@plus 1ex \@minus .2ex,
+ afterskip = 6bp \@plus .2ex,
+ },
+ subsection = {%
+ name = {},
+ format = \sffamily\heiti\raggedright,
+ nameformat = \bfseries\zihao{4},
+ titleformat = \zihao{4},
+ aftername = \hskip\ccwd,
+ number = {\ifcqu@liberalformat\arabic{subsection}\else\thesubsection\fi},
+ beforeskip = 16bp \@plus 1ex \@minus .2ex,
+ afterskip = 6bp \@plus .2ex,
+ },
+ subsubsection = {
+ name = {},
+ runin = false,
+ indent = \parindent,
+ aftertitle = {},
+ numbering = true,
+ number = {\ifcqu@liberalformat\parenthesesthis{\arabic{subsubsection}}\else\@circlenum{subsubsection}\fi},
+ numberformat+ = {\ifcqu@liberalformat\relax\else\zihao{4}\fi},
+ beforeskip = 1ex plus 0.5ex minus .2ex,
+ afterskip = 1bp \@plus .1ex,
+ },
+ appendix = {%
+ numbering = false,
+ name = {},
+ },
+% \end{macrocode}
+% 出于各级标题间区分度的考虑,不支持五级及以上的标题:
+% \begin{macrocode}
+ paragraph = {
+ name = {},
+ runin = true,
+ aftertitle = {\ClassError{cquthesis}%
+ {Level-5 and below sections are unsupported intentionally.}{}},
+ beforeskip = 1ex plus 0.5ex minus .2ex,
+ afterskip = 1em,
+ },
+ subparagraph = {
+ name = {},
+ runin = true,
+ indent = \parindent,
+ indent = 0pt,
+ aftertitle = {\ClassError{cquthesis}%
+ {Level-5 and below sections are unsupported intentionally.}{}},
+ beforeskip = 1ex plus 0.5ex minus .2ex,
+ afterskip = 1em,
+ },
+ appendixname=附录,
+ contentsname={目\hskip\ccwd 录},
+ listfigurename={插图索引},
+ listtablename={表格索引},
+ figurename=图,
+ tablename=表,
+ bibname=参考文献,
+ indexname=索引,
+}
+%</cfg>
+% \end{macrocode}
+%
+% \subsection{文档部件}
+% \subsubsection{带圈数字}
+% \begin{macro}{\@circlenum}
+% \changes{v0.8.9}{2016/05/15}{修正了\cs{@circlenum}无法在嵌套在\env{minipage}中的表格中正常运作的问题,问题原因没有具体查清,但是使用\pkg{footmisc}另外造轮子过了。清华的模板也有这个问题,已提交Issue协助修正。}
+% 带圈数字功能,最多处理10个。注意这里\cs{@circlenum}要接受的是\textsf{counter}里的值,所以需要\cs{value}来处理,如果用数字直接做\cs{@circlenum}的参数,要去掉\cs{value}才能编译通过,另外,\cs{ding}接受的参数为字符串,所以这里要用上\cs{the}。
+%
+% 这个命令用于生成第四级标题。
+% \begin{macrocode}
+%<*cls>
+\def\@circlenum#1{%
+ \ifnum \value{#1} >10
+ \ClassError{cquthesis}%
+ {More than 10 subsubsections in a subsection cannot be handled.}{}
+ \fi
+ \ding{\the\numexpr\value{#1}+171\relax}%
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \subsubsection{脚注}
+% 设置分割线、字号和悬挂缩进
+% \begin{macrocode}
+\def\footnoterule{\vskip-3\p@\hrule\@width0.3\textwidth\@height0.4\p@\vskip2.6\p@}
+\let\cqu@footnotesize\footnotesize
+\renewcommand{\footnotesize}{\cqu@footnotesize\zihao{-5}}
+\footnotemargin1.5em\relax
+% \end{macrocode}
+%
+% 脚注部分将标注换为正文大小,这个过程是动态的:
+% \begin{macrocode}
+\let\cqu@makefnmark\@makefnmark
+\def\cqu@@makefnmark{\mbox{{\normalfont\@thefnmark}}}
+\pretocmd{\@makefntext}{\let\@makefnmark\cqu@@makefnmark}{}{}
+\apptocmd{\@makefntext}{\let\@makefnmark\cqu@makefnmark}{}{}
+%</cls>
+% \end{macrocode}
+% footmisc定义新脚注symbol,minipage需要额外定义一行,脚注不能大于10
+% \begin{macrocode}
+%<*cfg>
+\DefineFNsymbols{cqufnsymbol}{
+ {\ding{172}} {\ding{173}}
+ {\ding{174}} {\ding{175}}
+ {\ding{176}} {\ding{177}}
+ {\ding{178}} {\ding{179}}
+ {\ding{180}} {\ding{181}}
+}%cqufnsymbol
+\setfnsymbol{cqufnsymbol}
+\renewcommand\thempfootnote{\fnsymbol{mpfootnote}}
+\pretocmd{\thefootnote}{%
+ \ifnum \value{footnote} >10
+ \ClassError{cquthesis}%
+ {More than 10 footnotes in a single page are not supported.}{}
+ \fi
+}{}{}
+\pretocmd{\thempfootnote}{%
+ \ifnum \value{mpfootnote} >10
+ \ClassError{cquthesis}%
+ {More than 10 footnotes in a single page are not supported.}{}
+ \fi
+}{}{}
+%</cfg>
+% \end{macrocode}
+%
+% \subsubsection{数学公式和定理环境}
+% 数学公式断行
+% \begin{macrocode}
+%<*cls>
+\allowdisplaybreaks[4]
+\let\cqu@tagform@\tagform@
+\renewcommand{\eqref}[1]{\cqueqshortname\textup{(\ref{#1})}}
+% \end{macrocode}
+%
+% 定理环境
+% \begin{macrocode}
+\theorembodyfont{\rmfamily\songti}
+\theoremheaderfont{\rmfamily\heiti}
+%</cls>
+% \end{macrocode}
+%
+% 定理环境中文定义在.cfg中完成
+% \begin{macrocode}
+%<*cfg>
+\theoremsymbol{\ensuremath{\square}}
+\newtheorem*{proof}{证明}
+\theoremstyle{plain}
+\theoremsymbol{}
+\theoremseparator{:}
+\newtheorem{assumption}{假设}[chapter]
+\newtheorem{definition}{定义}[chapter]
+\newtheorem{proposition}{命题}[chapter]
+\newtheorem{lemma}{引理}[chapter]
+\newtheorem{theorem}{定理}[chapter]
+\newtheorem{axiom}{公理}[chapter]
+\newtheorem{corollary}{推论}[chapter]
+\newtheorem{exercise}{练习}[chapter]
+\newtheorem{example}{例}[chapter]
+\newtheorem{remark}{注释}[chapter]
+\newtheorem{problem}{问题}[chapter]
+\newtheorem{conjecture}{猜想}[chapter]
+%</cfg>
+% \end{macrocode}
+%
+% \subsubsection{化学式和国际标准单位}
+% 很棒的化学式和方程支持。不过这里需要补足中文排版中的空格尴尬:
+% \begin{macrocode}
+%<*cls>
+\RequirePackage[version=4]{mhchem}
+\AtBeginDocument{\pretocmd{\ce}{{ }}{}{}}
+% \end{macrocode}
+% \begin{macro}{\cec}
+% 在命令里使用逗号快速分隔多个化学式:
+% \begin{macrocode}
+\newcommand{\cec}[1]{\cesplit{{\,\ }{\0}}{#1}}
+% \end{macrocode}
+% \end{macro}
+% SI单位支持
+% \begin{macrocode}
+\RequirePackage{siunitx}
+\RequirePackage{upgreek}
+\ifxetex
+\sisetup{%
+ math-micro = {\upmu},
+ text-micro = {\textmu},
+}%\sisetup
+\fi
+%</cls>
+% \end{macrocode}
+%<*cfg>
+% \begin{macrocode}
+\sisetup{%
+ list-final-separator = {和},
+ list-pair-separator = {和},
+ range-phrase = {$ \sim $},
+}%\sisetup
+% \end{macrocode}
+%
+% \subsubsection{自动交叉引用}
+% \begin{macro}{\autoref}
+% 使用\cs{autoref}可以进行自动判定目标类型的交叉引用,这里对其进行定制:
+% \begin{macrocode}
+% 这里定制\autoref{label}
+\AtBeginDocument{%
+ \def\figureautorefname{图}
+ \def\tableautorefname{表}
+ \def\partautorefname{卷}
+ \def\appendixautorefname{附录}
+ \def\equationautorefname{式}
+ \def\Itemautorefname{列表}
+ \def\chapterautorefname{章}
+ \def\sectionautorefname{节}
+ \def\subsectionautorefname{小节}
+ \def\subsubsectionautorefname{条目}
+ \def\paragraphautorefname{自然段}
+ \def\Hfootnoteautorefname{脚注}
+ \def\AMSautorefname{式}
+ \def\theoremautorefname{理论}
+ \def\pageautorefname{页}
+}%\AtBeginDocument
+%</cfg>
+% \end{macrocode}
+% \end{macro}
+%
+% \subsubsection{浮动对象}
+% 设定浮动对象与文字的间距
+% \begin{macrocode}
+%<*cls>
+\setlength{\floatsep}{20bp \@plus4pt \@minus1pt}
+\setlength{\intextsep}{24bp \@plus4pt \@minus2pt}
+\setlength{\textfloatsep}{20bp \@plus4pt \@minus2pt}
+\setlength{\@fptop}{0bp \@plus1.0fil}
+\setlength{\@fpsep}{12bp \@plus2.0fil}
+\setlength{\@fpbot}{0bp \@plus1.0fil}
+% \end{macrocode}
+% 让浮动对象缺省值更宽松
+% \begin{macrocode}
+\renewcommand{\textfraction}{0.15}
+\renewcommand{\topfraction}{0.85}
+\renewcommand{\bottomfraction}{0.65}
+\renewcommand{\floatpagefraction}{0.60}
+% \end{macrocode}
+%
+% \subsubsection{题注和表格}
+% 主体部分的题注和后置部分的题注需要做分别支持。
+% \begin{macro}{\thefigure}
+% \begin{macro}{\thetable}
+% \begin{macro}{\theequation}
+% 重新定义了图、表、公式的计数系统:
+% \begin{macrocode}
+\AtBeginDocument{%
+ \renewcommand{\thefigure}{%
+ \if@backmatter
+ \CTEXthesection \@arabic \c@figure
+ \else
+ \ifnum \c@chapter >\z@ \thechapter .\fi \@arabic \c@figure
+ \fi}
+ \renewcommand{\thetable}{%
+ \if@backmatter
+ \CTEXthesection \@arabic \c@table
+ \else
+ \ifnum \c@chapter >\z@ \thechapter .\fi \@arabic \c@table
+ \fi}
+ \renewcommand{\theequation}{%
+ \if@backmatter
+ \CTEXthesection \@arabic \c@equation
+ \else
+ \ifnum \c@chapter >\z@ \thechapter .\fi \@arabic \c@equation
+ \fi}
+}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% 定制表格和插图的题注样式:
+% \begin{macrocode}
+\def\cqu@tabular{\zihao{5}\@tabular}
+\DeclareCaptionLabelFormat{cqu}{{\zihao{5}\songti #1~\rmfamily #2}}
+\DeclareCaptionLabelSeparator{cqu}{\hspace{\ccwd}}
+\DeclareCaptionFont{cqu}{\zihao{5}}
+\captionsetup{labelformat=cqu,labelsep=cqu,font=cqu}
+\captionsetup[table]{position=top,belowskip={12bp-\intextsep},aboveskip=6bp}
+\captionsetup[figure]{position=bottom,belowskip={12bp-\intextsep},aboveskip=6bp}
+\captionsetup[sub]{font=cqu,skip=6bp}
+\renewcommand{\thesubfigure}{(\alph{subfigure})}
+\renewcommand{\thesubtable}{(\alph{subtable})}
+% \end{macrocode}
+% 调整表格字号,调整每列之间的间距,单元格内垂直居中
+% \begin{macrocode}
+\AtBeginEnvironment{tabularx}{\begingroup\zihao{5}}
+\AtEndEnvironment{tabularx}{\endgroup}
+\setlength{\tabcolsep}{12pt}
+\renewcommand{\tabularxcolumn}[1]{m{#1}}
+% \end{macrocode}
+% \begin{macro}{\bigcell}
+% \begin{macro}{\headcell}
+% \begin{macro}{\colsep}
+% 在表格中,\cs{bigcell}内的内容可以主动换行;\cs{headcell}用来做表头;\cs{colsep}用来设定列间距,默认值为12pt。
+% \begin{macrocode}
+\newcommand{\bigcell}[1]{\vspace{6pt}\begin{varwidth}{\linewidth}#1\end{varwidth}\vspace{6pt}}
+\newcommand{\headcell}[1]{\multicolumn{1}{c}{\heiti #1}}
+\newcommand{\colsep}[1][12pt]{\setlength{\tabcolsep}{#1}}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% longtable方面也需要做设置
+% \begin{macrocode}
+\let\cqu@LT@array\LT@array
+\def\LT@array{\zihao{5}\cqu@LT@array}
+% \end{macrocode}
+%
+% \subsubsection{代码环境}
+% 载入\pkg{listings}宏包,定义基础代码环境:
+% \begin{macrocode}
+\RequirePackage{listings}
+\lstdefinestyle{lstStyleBase}{%
+ basicstyle=\scriptsize\ttfamily,
+ aboveskip=\medskipamount,
+ belowskip=\medskipamount,
+ lineskip=0pt,
+ boxpos=c,
+ showlines=false,
+ extendedchars=true,
+ upquote=true,
+ tabsize=2,
+ showtabs=false,
+ showspaces=false,
+ showstringspaces=false,
+ numbers=left,
+ numberstyle=\tiny,
+ linewidth=\linewidth,
+ xleftmargin=4pt,
+ xrightmargin=0pt,
+ resetmargins=false,
+ breaklines=true,
+ breakatwhitespace=false,
+ breakindent=0pt,
+ breakautoindent=true,
+ columns=flexible,
+ keepspaces=true,
+ framesep=3pt,
+ rulesep=2pt,
+ framerule=1pt,
+ backgroundcolor=\color{gray!5},
+ stringstyle=\color{green!40!black!100},
+ keywordstyle=\bfseries\color{blue!50!black},
+ commentstyle=\slshape\color{black!60}}
+\lstdefinestyle{lstStyleCplus}{%
+ style=lstStyleBase,
+ frame=l,
+ rulecolor=\color{blue},
+ language=C++}
+\lstdefinestyle{lstStylePython}{%
+ style=lstStyleBase,
+ frame=l,
+ rulecolor=\color{cyan},
+ language=Python}
+% \end{macrocode}
+% \begin{environment}{Cplus}
+% \begin{environment}{Python}
+% \cquthesis 内置了两个代码环境,\env{Cplus}和\env{Python},您可以参照代码在\file{cquthesis.sty}中定义自己的环境。
+% \begin{macrocode}
+\lstnewenvironment{Cplus}{\lstset{style=lstStylePython}}{}
+\lstnewenvironment{Python}{\lstset{style=lstStyleCplus}}{}
+% \end{macrocode}
+% \end{environment}
+% \end{environment}
+%
+% \subsubsection{自定义计数器}
+% 这个计数器可以在很多环境下使用,例如表格中的序号,文章中行内的编号等等:
+% \begin{macro}{\xuhao}
+% \begin{macro}{\resetxuhao}
+% \begin{macro}{\xuhaotype}
+% \begin{macro}{\xuhaoseparator}
+% \cs{xuhao}会自增并输出内容,\cs{resetxuhao}或者\cs{xuhao}\oarg{1}会将序号置为1,后者会输出,\cs{xuhaotype}用来设定序号风格,\cs{xuhaoseparator}为序号之后的分隔符,可以用\cs{renewcommand}来定义。
+% \begin{macrocode}
+\newcounter{cquXuHao}
+\newcounter{cquXuHaoType}
+\setcounter{cquXuHaoType}{1}
+\newcommand{\xuhaoseparator}{}
+\newcommand{\xuhaotype}[1][1]{
+ \ifnum #1>6 \ClassError{cquthesis}%
+ {Available choices from 1-6.}{}%
+ \fi
+ \setcounter{cquXuHaoType}{#1}
+}%\xuhaotype
+\newcommand{\output@xuhao}{%
+ \ifcase\value{cquXuHaoType}
+ \or \arabic{cquXuHao} %1
+ \or \Alph{cquXuHao} %2
+ \or \alph{cquXuHao} %3
+ \or \Roman{cquXuHao} %4
+ \or \roman{cquXuHao} %5
+ \or \ifnum\value{cquXuHao}>9\ClassError{cquthesis}%
+ {Xuhao(rownum) of type-6 must be under 10.}{}%
+ \else\fnsymbol{cquXuHao}
+ \fi %6
+ \fi
+}%\output@xuhao
+\newcommand{\xuhao}[1][0]{
+ \ifcase #1
+ \stepcounter{cquXuHao} %0
+ \output@xuhao\xuhaoseparator\xspace
+ \or \resetxuhao\stepcounter{cquXuHao} %1
+ \output@xuhao\xuhaoseparator\xspace
+ \fi
+}%\xuhao
+\newcommand{\resetxuhao}{\setcounter{cquXuHao}{0}}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \begin{macro}{\rownum}
+% \begin{macro}{\resetrownum}
+% \begin{macro}{\rownumtype}
+% \begin{macro}{\rownumseparator}
+% 考虑到不同用户的喜好,这里设定一组别名,同时处理\cs{setxuhao}这个兼容性问题。
+% \begin{macrocode}
+\let\rownum\xuhao
+\let\resetrownum\resetxuhao
+\let\rownumtype\xuhaotype
+\let\setxuhao\xuhaotype
+\let\rownumseparator\xuhaoseparator
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% \subsection{封面绘制}
+% \subsubsection{信息录入}
+% \begin{macro}{\cqu@def@term}
+% 定义一个Key--Definer:
+% \begin{macrocode}
+\def\cqu@def@term #1{%
+ \define@key{cqu}{#1}{\csname #1\endcsname{##1}}
+ \expandafter\gdef\csname #1\endcsname##1{%
+ \expandafter\gdef\csname cqu@#1\endcsname{##1}}
+ \csname #1\endcsname{}}
+% \end{macrocode}
+% \end{macro}
+% 下面定义一批会用在封面的变量:
+%
+% 论文的中英文题目(封面第二行)
+% \begin{macrocode}
+\cqu@def@term{ctitle}
+\cqu@def@term{etitle}
+% \end{macrocode}
+%
+% 作者的信息(校徽下方)
+% \begin{macrocode}
+\cqu@def@term{cauthor}
+\cqu@def@term{eauthor}
+\cqu@def@term{studentid}
+\cqu@def@term{csupervisor}
+\cqu@def@term{esupervisor}
+\cqu@def@term{cpsupervisor}
+\cqu@def@term{epsupervisor}
+\cqu@def@term{cmajor}
+\cqu@def@term{emajor}
+\cqu@def@term{cclass}
+\cqu@def@term{edgree}
+% \end{macrocode}
+%
+% 底部的学院名称和日期
+% \begin{macrocode}
+\cqu@def@term{cdepartment}
+\cqu@def@term{edepartment}
+\cqu@def@term{mycdate}
+\cqu@def@term{myedate}
+%</cls>
+% \end{macrocode}
+% 日期的中英文支持
+% \begin{macrocode}
+%<*cfg>
+\newcommand{\MONTH}{%
+ \ifcase\the\month
+ \or January% 1
+ \or February% 2
+ \or March% 3
+ \or April% 4
+ \or May% 5
+ \or June% 6
+ \or July% 7
+ \or August% 8
+ \or September% 9
+ \or October% 10
+ \or November% 11
+ \or December% 12
+ \fi}
+\def\cdate{\zhdigits{\the\year}年\zhnumber{\the\month}月}
+\def\edate{\MONTH{ }\the\year}
+%</cfg>
+% \end{macrocode}
+%
+% 收集关键词并且做关键词分割
+% \begin{macrocode}
+%<*cls>
+\def\cqu@parse@keywords#1{
+ \define@key{cqu}{#1}{\csname #1\endcsname{##1}}
+ \expandafter\gdef\csname cqu@#1\endcsname{}
+ \expandafter\gdef\csname #1\endcsname##1{
+ \@for\reserved@a:=##1\do{
+ \expandafter\ifx\csname cqu@#1\endcsname\@empty\else
+ \expandafter\g@addto@macro\csname cqu@#1\endcsname{%
+ \ignorespaces\csname cqu@#1@separator\endcsname}
+ \fi
+ \expandafter\expandafter\expandafter\g@addto@macro%
+ \expandafter\csname cqu@#1\expandafter\endcsname\expandafter{\reserved@a}}}}
+\cqu@parse@keywords{ckeywords}
+\cqu@parse@keywords{ekeywords}
+% \end{macrocode}
+%
+% 使用kvoptions提供key=value格式支持
+% \begin{macrocode}
+\def\cqusetup{\kvsetkeys{cqu}}
+% \end{macrocode}
+%
+% \subsubsection{绘制中文封面}
+% \begin{macro}{\make@cover@CN}
+% \changes{v0.9.7}{2016/06/09}{使用\pkg{varwidth}代替了\pkg{pbox}。}
+% 基本上的思路是能复用就复用,姓名那几行分为左右两个\env{varwidth}:
+% \begin{macrocode}
+\newcommand{\make@cover@CN}{%
+ \thispagestyle{style@empty}
+ \begin{center}
+ \rule{0mm}{15mm}
+ \heiti
+ \ifcqu@bachelor
+ \zihao{-2}\cqu@thesistypenameCN
+ \\ \vspace{\stretch{1}}
+ \zihao{2}\cqu@ctitle
+ \\ \vspace{\stretch{2}}
+ \includegraphics[width=6cm]{CQUbadge.pdf}
+ \\ \vspace{\stretch{2}}
+ \else
+ \zihao{2}\cqu@ctitle
+ \\ \vspace{\stretch{1}}
+ \includegraphics[width=6cm]{CQUbadge.pdf}
+ \\ \vspace{\stretch{1}}
+ \zihao{-2}\cqu@thesistypenameCN
+ \ifcqu@master{}\\\cqu@mastertype\fi
+ \\ \vspace{\stretch{2}}
+ \fi
+ \ifcqu@bachelor
+ \zihao{3}
+ \begin{varwidth}{\textwidth}
+ \begin{CJKfilltwosides}{4.5\ccwd}
+ \cqu@studentCN\cqu@title@separatorCN\\
+ \cqu@studentnumCN\cqu@title@separatorCN\\
+ \cqu@supervisorCN\cqu@title@separatorCN\\
+ \cqu@majorCN\cqu@title@separatorCN
+ \end{CJKfilltwosides}
+ \end{varwidth}
+ \else
+ \zihao{3}
+ \begin{varwidth}{\textwidth}
+ \begin{CJKfilltwosides}{4.5\ccwd}
+ \cqu@studentCN\cqu@title@separatorCN\\
+ \cqu@supervisorCN\cqu@title@separatorCN\\
+ \ifcqu@academic
+ \cqu@majorCN\cqu@title@separatorCN\\
+ \else
+ \cqu@psupervisorCN\cqu@title@separatorCN\\
+ \fi
+ \cqu@majorclassCN\cqu@title@separatorCN
+ \end{CJKfilltwosides}
+ \end{varwidth}
+ \fi
+ \hskip.5\ccwd
+ \zihao{3}
+ \begin{varwidth}{\textwidth}%
+ \mbox{\cqu@cauthor}\\
+ \ifcqu@bachelor\mbox{\cqu@studentid}\\\fi
+ \cqu@csupervisor\\ %不要放在盒子里
+ \ifcqu@academic %这里有点复杂
+ \mbox{\cqu@cmajor}
+ \ifcqu@bachelor\relax\else\\\cqu@cclass\fi
+ \else
+ \cqu@cpsupervisor\\
+ \cqu@cclass
+ \fi
+ \end{varwidth}
+ \\ \vspace{\stretch{2}}
+ \zihao{-2}\cqu@universitynameCN\cqu@cdepartment\\[1mm]
+ \zihao{3}\ifdefempty{\cqu@mycdate}{\cdate}{\cqu@mycdate}
+ \vspace{10mm}
+ \end{center}}
+% \end{macrocode}
+% \end{macro}
+%
+% \subsubsection{绘制英文封面}
+% \begin{macro}{\make@cover@EN}
+% 英文封面由于不需要汉字两端对齐,相对来说排版难度低一些:
+% \begin{macrocode}
+\newcommand{\make@cover@EN}{%
+ \cleardoublepage
+ \thispagestyle{style@empty}
+ \begin{center}
+ \rule{0mm}{15mm}
+ \sffamily
+ \ifcqu@bachelor
+ \zihao{-2}\cqu@thesistypenameEN
+ \\ \vspace{\stretch{2}}
+ \zihao{-1}\textbf{\cqu@etitle}
+ \\ \vspace{\stretch{1}}
+ \includegraphics[width=5cm]{CQUbadge.pdf}
+ \\ \vspace{\stretch{2}}
+ \zihao{3}\textbf{\cqu@studentEN\cqu@title@separatorEN\mbox{\cqu@eauthor}}\\
+ \cqu@supervisorEN\cqu@title@separatorEN\mbox{\cqu@esupervisor}\\
+ \cqu@majorEN\cqu@title@separatorEN\mbox{\cqu@emajor}
+ \else
+ \zihao{-1}\textbf{\cqu@etitle}
+ \\ \vspace{\stretch{2}}
+ \includegraphics[width=5cm]{CQUbadge.pdf}
+ \\ \vspace{\stretch{2}}
+ \zihao{3}\cqu@thesistypenameEN
+ \\[1mm]
+ \cqu@workby
+ \\[2mm]
+ \zihao{3}\mbox{\textbf{\cqu@eauthor}}
+ \\ \vspace{\stretch{1}}
+ \textbf{\cqu@supervisorEN\cqu@title@separatorEN}\textbf{\cqu@esupervisor}\\
+ \ifcqu@academic\relax\else\textbf{\cqu@psupervisorEN\cqu@title@separatorEN\cqu@epsupervisor}\\\fi
+ \textbf{\cqu@majorEN\cqu@title@separatorEN}\mbox{\textbf{\cqu@emajor}}
+ \fi
+ \\ \vspace{\stretch{2}}
+ \zihao{-2}\cqu@edepartment\\\cqu@universitynameEN\\[1mm]
+ \ifdefempty{\cqu@myedate}{\textbf{\edate}}{\textbf{\cqu@myedate}}
+ \vspace{10mm}
+ \end{center}}
+% \end{macrocode}
+% \end{macro}
+%
+% \subsubsection{PDF文件属性配置}
+% \begin{macro}{\makecover}
+% 定义一个总体调用的\cs{makecover},在画封面的同时把PDF属性也做了:
+% \begin{macrocode}
+\def\makecover{%
+ \hypersetup{%
+ pdftitle = {\cqu@ctitle},
+ pdfauthor = {\cqu@cauthor},
+ pdfsubject = {\cqu@thesistypenameCN},
+ pdfkeywords = {\cqu@ckeywords},
+ pdfcreator = {CQUThesis--v\version, a LaTeX template.}
+ }
+ \phantomsection
+ \pdfbookmark[-1]{\cqu@ctitle}{ctitle}
+ \make@cover@CN
+ \make@cover@EN
+}%makecover
+% \end{macrocode}
+% \end{macro}
+%
+% \subsection{摘要}
+% \subsubsection{信息收集}
+% 论文的中英文摘要
+% \begin{macrocode}
+\newcommand{\cqu@@cabstract}[1]{\long\gdef\cqu@cabstract{#1}}
+\newenvironment{cabstract}{\Collect@Body\cqu@@cabstract}{}
+\newcommand{\cqu@@eabstract}[1]{\long\gdef\cqu@eabstract{#1}}
+\newenvironment{eabstract}{\Collect@Body\cqu@@eabstract}{}
+% \end{macrocode}
+%
+% \subsubsection{生成摘要}
+% \begin{macro}{\makeabstract}
+% 生成摘要的命令
+% \begin{macrocode}
+\def\makeabstract{%
+ \cleardoublepage
+ \normalsize
+ \cqu@makeabstract
+}%makeabstract
+\newcommand{\cqu@makeabstract}{%
+ \clearpage
+ \chapter[\cqu@cabstract@tocname]{\cqu@cabstract@name}
+ \pagestyle{style@normal}
+ \cqu@fixhead
+ \pagenumbering{Roman}
+ \cqu@cabstract
+ \vskip12bp
+ \cqu@put@kw{\heiti\cqu@ckw@title\cqu@title@separatorCN}{\cqu@ckeywords}
+ \if@twosideprint\ifcqu@openany\ifcqu@abstractopenright\cqu@addblankpage\fi\fi\fi
+ \chapter[\cqu@eabstract@tocname]{\sffamily\textbf{\cqu@eabstract@name}}
+ \cqu@fixhead
+ \cqu@eabstract
+ \vskip12bp
+ \cqu@put@kw{\textbf{\cqu@ekw@title\cqu@title@separatorEN}}{\cqu@ekeywords}
+}
+% \end{macrocode}
+% \end{macro}
+% 排版关键词:
+% \begin{macrocode}
+\newbox\cqu@kw
+\newcommand{\cqu@put@kw}[2]{%
+ \begingroup
+ \setbox\cqu@kw=\hbox{#1}
+ \noindent\hangindent\wd\cqu@kw\hangafter1
+ \box\cqu@kw#2\par
+ \endgroup}
+% \end{macrocode}
+%
+% \subsection{独创声明和授权书}
+% \begin{macro}{\cquauthpage}
+% 绘制独创性声明和授权书页面
+% \begin{macrocode}
+\NewDocumentCommand{\cqu@makeauth}{o}{%
+ \clearpage
+ \thispagestyle{style@empty}
+ \IfNoValueTF{#1}{%
+ \rule{0mm}{5mm}
+ \begin{center}
+ \zihao{3}
+ \begin{CJKfilltwosides}{6\ccwd}
+ \heiti{}\cqu@innotitle
+ \end{CJKfilltwosides}
+ \end{center}
+ \vspace{2mm}
+ \zihao{-4}
+ \par\cqu@innobody
+ \\[5mm]
+ \par\cqu@innosignature\hfill\cqu@signdate
+ \vspace{15mm}
+ \begin{center}
+ \zihao{3}\heiti
+ \cqu@authtitle
+ \end{center}
+ \vspace{2mm}
+ \zihao{-4}
+ \par\cqu@authbody
+ \\[15mm]
+ \begin{minipage}{\textwidth}
+ \begin{minipage}{15\ccwd}
+ \cqu@authsignaturestu\\[10mm]
+ \cqu@signdate
+ \end{minipage}
+ \hfill
+ \begin{minipage}{15\ccwd}
+ \cqu@authsignaturesup\\[10mm]
+ \cqu@signdate
+ \end{minipage}
+ \end{minipage}
+ }{
+ \includepdf{#1}
+}
+}%\cqu@makeauth
+\let\cquauthpage\cqu@makeauth
+%</cls>
+% \end{macrocode}
+% \end{macro}
+% 定义封面用到的文字常量
+% \begin{macrocode}
+%<*cfg>
+\def\cqu@ckeywords@separator{,}
+\def\cqu@ekeywords@separator{, }
+\def\cqu@title@separatorCN{:}
+\def\cqu@title@separatorEN{:~}
+\def\cqu@cabstract@tocname{中文摘要}
+\def\cqu@eabstract@tocname{英文摘要}
+\def\cqu@cabstract@name{摘\hskip\ccwd{}要}
+\def\cqu@eabstract@name{ABSTRACT}
+\def\cqu@ckw@title{关键词}
+\def\cqu@ekw@title{Key words}
+\def\cqu@workby{by}
+\ifcqu@bachelor
+ \def\cqu@thesistypenameCN{重庆大学本科学生毕业设计(论文)}
+ \def\cqu@thesistypenameEN{Graduation Design(Thesis) of Chongqing University}
+ \def\cqu@studentCN{学生}
+ \def\cqu@studentEN{Undergraduate}
+ \def\cqu@studentnumCN{学号}
+ \def\cqu@supervisorCN{指导教师}
+ \def\cqu@supervisorEN{Supervisor}
+ \def\cqu@majorCN{专业}
+ \def\cqu@majorEN{Major}
+ \def\cqu@universitynameCN{重庆大学}
+ \def\cqu@universitynameEN{Chongqing University}
+\else
+ \ifcqu@master
+ \def\cqu@thesistypenameCN{重庆大学硕士学位论文}
+ \def\cqu@thesistypenameEN{A Thesis Submitted to Chongqing University\\%
+ in Partial Fulfillment of the Requirement for%
+ \ifcqu@academic{ }the\fi\\\cqu@edgree}
+ \def\cqu@studentCN{学生姓名}
+ \def\cqu@supervisorCN{指导教师}
+ \def\cqu@supervisorEN{Supervisor}
+ \def\cqu@psupervisorCN{兼职导师}
+ \def\cqu@psupervisorEN{Pluralistic~Supervisor}
+ \def\cqu@majorCN{专业}
+ \def\cqu@majorEN{Specialty}
+ \ifcqu@academic
+ \def\cqu@mastertype{(学术学位)}
+ \def\cqu@majorclassCN{学科门类}
+ \else
+ \def\cqu@mastertype{(专业学位)}
+ \def\cqu@majorclassCN{学位类型}
+ \fi
+ \def\cqu@universitynameCN{重庆大学}
+ \def\cqu@universitynameEN{Chongqing University, Chongqing, China}
+ \else
+ \ifcqu@doctor
+ \def\cqu@thesistypenameCN{重庆大学博士学位论文}
+ \def\cqu@thesistypenameEN{A Thesis Submitted to Chongqing University\\%
+ in Partial Fulfillment of the Requirement for the\\\cqu@edgree}
+ \def\cqu@studentCN{学生姓名}
+ \def\cqu@studentEN{Ph.D. Candidate}
+ \def\cqu@supervisorCN{指导教师}
+ \def\cqu@supervisorEN{Supervisor}
+ \def\cqu@majorCN{学科专业}
+ \def\cqu@majorclassCN{学科门类}
+ \def\cqu@majorEN{Specialty}
+ \def\cqu@universitynameCN{重庆大学}
+ \def\cqu@universitynameEN{Chongqing University}
+ \else
+ \ClassWarning{cquthesis}%
+ {Specified thesis type is obligatory: \MessageBreak
+ type=[bachelor|master|doctor](How did you bypass the type check?)}{}
+ \fi
+ \fi
+\fi
+\def\cqu@innotitle{独创性声明}
+\def\cqu@innobody{%
+ 本人声明所呈交的学位论文是本人在导师指导下进行的研究工作及取得的研究成果。据我所知,除了文中特别标注和致谢的地方外,论文中不包含其他人已经发表或撰写中的研究成果,也不包含为获得重庆大学或其他教育机构的学位或证书而使用过的材料。与我一同工作的同志对本文所做的任何贡献均已在论文中做了明确的说明并表示谢意。}
+\def\cqu@innosignature{学位论文作者签名:}
+\def\cqu@authtitle{学位论文版权使用授权书}
+\def\cqu@authcheckpart{%
+ 保\hskip\ccwd{}密(\hskip2\ccwd),在\rule{3\ccwd}{0.15mm}年解密后适用本授权书。\\
+ 不保密(\hskip2\ccwd)。}
+\def\cqu@authbody{
+ 本学位论文作者完全了解重庆大学有关保留、使用学位论文的规定,有权保留并向国家有关部门或机构送交论文的复印件和磁盘,允许论文被查阅和借阅。本人授权重庆大学可以把学位论文的全部或部分内容编入有关数据库进行检索,可以采用影印、缩印或扫描等复制手段保存、汇编学位论文。
+ \\[\baselineskip]
+ \indent\parbox{7\ccwd}{本学位论文属于}\hskip\ccwd\parbox{.6\textwidth}{\cqu@authcheckpart}
+ \\[\baselineskip]
+ \indent(请只在上述一个括号内打“\ding{51}”)}
+\def\cqu@authsignaturestu{学位论文作者签名:}
+\def\cqu@authsignaturesup{导师签名:}
+\def\cqu@signdate{签字日期:\hskip3\ccwd{}年\hskip2\ccwd{}月\hskip2\ccwd{}日}
+%</cfg>
+% \end{macrocode}
+% \subsection{主要符号对照表}
+% \begin{environment}{denotation}
+% 定义主要符号对照表
+% \begin{macrocode}
+%<*cls>
+\newlist{cqu@denotation}{description}{1}
+\setlist[cqu@denotation]{%
+ nosep,
+ font = \normalfont,
+ align = left,
+ leftmargin = !,
+ labelindent = 0mm,
+ labelwidth = 25mm,
+ labelsep* = 5mm,
+ itemindent = 0mm,
+}%\setlist
+\NewDocumentEnvironment{denotation}{O{20mm} O{30mm}}{%
+ \chapter*{\cqu@denotation@name}
+ \chaptermark{\cqu@denotation@name}\cqu@fixhead
+ \zihao{-4}\begin{cqu@denotation}[labelindent = #1,labelwidth=#2,]
+ }{
+\end{cqu@denotation}}%\denotation
+% \end{macrocode}
+% \end{environment}
+%
+% \subsection{目录}
+% \subsubsection{定制目录}
+% 目录深度和计数器深度,减小章节之间的垂直间隔:
+% \begin{macrocode}
+\setcounter{tocdepth}{2}
+\setcounter{secnumdepth}{3}
+\setlength{\cftbeforechapskip}{1mm}
+% \end{macrocode}
+% 调整subsection的目录缩进
+% \begin{macrocode}
+\ifcqu@liberalformat
+ \cftsetindents{chapter}{0em}{1.5em}
+ \cftsetindents{section}{1.9em}{0.9em}
+ \cftsetindents{subsection}{4.0em}{1.5em}
+\else
+ \cftsetindents{chapter}{0em}{1.5em}
+ \cftsetindents{section}{1.5em}{2.2em}
+ \cftsetindents{subsection}{3.7em}{2.9em}
+\fi
+% \end{macrocode}
+% 目录中的不同级别采用不同的字号和字体,这是按照学校word样例的实现,但是蹊跷的是,样例里的这些做法在官方文件里却没有体现,所以这里列为可选项,适用于三级标题很多的情况:
+% \begin{macrocode}
+\ifcqu@seriftoc
+ \renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}
+ \renewcommand{\cftchapfont}{\zihao{4}\sffamily\heiti}
+ \renewcommand{\cftsecfont}{\zihao{5}\sffamily\heiti}
+ \renewcommand{\cftsubsecfont}{\zihao{5}}
+\fi
+% \end{macrocode}
+% \subsubsection{公式索引}
+% \begin{macrocode}
+\newlistof[chapter]{equations}{equ}{\listofequationsname}
+\newcommand{\listeq}[1]{%
+ \addcontentsline{equ}{equations}{\protect\numberline{\theequation}#1}\par}
+\setlength{\cftequationsnumwidth}{2.5em}
+\let\eqlist\listeq
+% \end{macrocode}
+%
+% 正确输出页眉页脚
+% \begin{macrocode}
+\tocloftpagestyle{style@normal}
+%</cls>
+% \end{macrocode}
+%
+% 决定论文页眉名称 这个变量不能含有格式
+% \begin{macrocode}
+%<cfg>\let\cqu@thesisname\cqu@thesistypenameCN
+% \end{macrocode}
+%
+% 目录和索引标题居中,包含\cs{fixhead}
+% \changes{v0.9.0}{2016/05/16}{把目录加到了PDF书签中。}
+% \begin{macrocode}
+%<*cls>
+\renewcommand{\cfttoctitlefont}{%
+ \phantomsection\pdfbookmark[0]{\cqu@tocnameinbkmark}{toc}\cqu@fixhead\hfill\heiti\zihao{3}}
+\renewcommand{\cftloftitlefont}{\cqu@fixhead\hfill\heiti\zihao{3}}
+\renewcommand{\cftlottitlefont}{\cqu@fixhead\hfill\heiti\zihao{3}}
+\renewcommand{\cftequtitlefont}{\cqu@fixhead\hfill\heiti\zihao{3}}
+\renewcommand{\cftaftertoctitle}{\hfill}
+\renewcommand{\cftafterloftitle}{\hfill}
+\renewcommand{\cftafterlottitle}{\hfill}
+\renewcommand{\cftafterequtitle}{\hfill}
+% \end{macrocode}
+%
+% 重写使用tocloft宏包情况下的目录和索引生成,每次生成新开一页
+% \begin{macrocode}
+\ifcqu@continuoustoc\relax\else
+ \renewcommand{\@cfttocstart}{\clearpage}
+ \renewcommand{\@cfttocfinish}{\clearpage}
+\fi
+% \end{macrocode}
+%
+% \begin{macro}{\chapterstar}
+% 定义自己的章节命令\cs{chapterstar},不编号,有目录有页眉(这个命令暂时没用上,还待观察)
+% \begin{macrocode}
+\newcommand{\chapterstar}[1]{%
+ \chapter*{#1}%
+ \phantomsection
+ \@mkboth{#1}{}
+ \addcontentsline{toc}{chapter}{#1}}
+% \end{macrocode}
+% \end{macro}
+%
+% \subsection{参考文献}
+% \changes{v0.9.7}{2016/06/09}{参考文献现在能正确地显示为五号字了。}
+% \begin{macro}{\inlinecite}
+% \begin{macro}{\onlinecite}
+% 定义\cs{inlinecite}和\cs{onlinecite}
+% \begin{macrocode}
+\bibpunct{[}{]}{,}{s}{}{,}
+\renewcommand\NAT@citesuper[3]{\ifNAT@swa%
+ \unskip\kern\p@\textsuperscript{\NAT@@open #1\NAT@@close}%
+ \if*#3*\else\ (#3)\fi\else #1\fi\endgroup}
+\DeclareRobustCommand\inlinecite{\@inlinecite}
+\def\@inlinecite#1{\begingroup\let\@cite\NAT@citenum\citep{#1}\endgroup}
+\let\onlinecite\inlinecite
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% 将参考文献加入目录和pdf书签中
+% \begin{macrocode}
+\pretocmd{\bibliography}{%
+ \clearpage\phantomsection\addcontentsline{toc}{chapter}{\cqu@bib@name}}{}{}
+% \end{macrocode}
+%
+% 参考文献使用五号字,同时优化参考文献占用的空间
+% \begin{macrocode}
+\AtBeginDocument{%
+\pretocmd{\bibliography}{\begingroup\zihao{5}}{}{}
+\apptocmd{\bibliography}{\endgroup}{}{}
+}%AtBeginDocument
+\renewcommand\@biblabel[1]{\zihao{5}[#1]}
+\renewenvironment{thebibliography}[1]
+{\chapter*{\cqu@bib@name
+ \@mkboth{\cqu@bib@name}{}}%
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \setlength{\parsep}{1mm}
+ \setlength{\labelsep}{0.5em}
+ \setlength{\itemsep}{0.05pc}
+ \setlength{\listparindent}{0in}
+ \setlength{\itemindent}{0in}
+ \setlength{\rightmargin}{0in}
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty\clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m
+}{%
+\def\@noitemerr
+{\@latex@warning{Empty `thebibliography' environment}}%
+\endlist \vskip.2in}
+% \end{macrocode}
+%
+%\subsection{载入配置文件}
+% 配置文件用于降低主文件的压力:
+% \begin{macrocode}
+\AtEndOfClass{\input{cquthesis.cfg}}
+%</cls>
+% \end{macrocode}
+%
+% \iffalse
+% \begin{macrocode}
+%<*dtx-style>
+\ProvidesPackage{dtx-style}
+\RequirePackage{hypdoc}
+\RequirePackage[UTF8,scheme=chinese]{ctex}
+\RequirePackage{newpxtext}
+\RequirePackage{newpxmath}
+\RequirePackage[
+top=2.5cm, bottom=2.5cm,
+left=4cm, right=2cm,
+headsep=3mm]{geometry}
+\RequirePackage{array,longtable,booktabs}
+\RequirePackage{listings}
+\RequirePackage{fancyhdr}
+\RequirePackage{xcolor}
+\RequirePackage{enumitem}
+\RequirePackage{etoolbox}
+\RequirePackage{metalogo}
+\RequirePackage{graphicx}
+\RequirePackage{xspace}
+
+\colorlet{cqu@macro}{blue!60!black}
+\colorlet{cqu@env}{blue!70!black}
+\colorlet{cqu@option}{purple}
+\patchcmd{\PrintMacroName}{\MacroFont}{\MacroFont\bfseries\color{cqu@macro}}{}{}
+\patchcmd{\PrintDescribeMacro}{\MacroFont}{\MacroFont\bfseries\color{cqu@macro}}{}{}
+\patchcmd{\PrintDescribeEnv}{\MacroFont}{\MacroFont\bfseries\color{cqu@env}}{}{}
+\patchcmd{\PrintEnvName}{\MacroFont}{\MacroFont\bfseries\color{cqu@env}}{}{}
+
+\appto{\TeX}{\xspace}
+\appto{\LaTeX}{\xspace}
+\appto{\XeTeX}{\xspace}
+
+\def\DescribeOption{%
+ \leavevmode\@bsphack\begingroup\MakePrivateLetters%
+ \Describe@Option}
+\def\Describe@Option#1{\endgroup
+ \marginpar{\raggedleft\PrintDescribeOption{#1}}%
+ \cqu@special@index{option}{#1}\@esphack\ignorespaces}
+\def\PrintDescribeOption#1{\strut \MacroFont\bfseries\sffamily\color{cqu@option} #1\ }
+\def\cqu@special@index#1#2{\@bsphack
+ \begingroup
+ \HD@target
+ \let\HDorg@encapchar\encapchar
+ \edef\encapchar usage{%
+ \HDorg@encapchar hdclindex{\the\c@HD@hypercount}{usage}%
+ }%
+ \index{#2\actualchar{\string\ttfamily\space#2}
+ (#1)\encapchar usage}%
+ \index{#1:\levelchar#2\actualchar
+ {\string\ttfamily\space#2}\encapchar usage}%
+ \endgroup
+ \@esphack}
+
+\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=2,
+ 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}}
+
+\lstdefinestyle{lstStyleShell}{%
+ style=lstStyleBase,
+ frame=l,
+ rulecolor=\color{blue},
+ language=bash}
+
+\lstdefinestyle{lstStyleLaTeX}{%
+ style=lstStyleBase,
+ frame=l,
+ rulecolor=\color{cyan},
+ language=[LaTeX]TeX}
+
+\lstnewenvironment{latex}{\lstset{style=lstStyleLaTeX}}{}
+\lstnewenvironment{shell}{\lstset{style=lstStyleShell}}{}
+
+\setlist{nosep}
+
+\DeclareDocumentCommand{\option}{m}{\textsf{#1}\xspace}
+\DeclareDocumentCommand{\env}{m}{\texttt{#1}\xspace}
+\DeclareDocumentCommand{\pkg}{s m}{%
+ \texttt{#2}\xspace\IfBooleanF#1{\cqu@special@index{package}{#2}}}
+\DeclareDocumentCommand{\file}{s m}{%
+ \texttt{#2}\xspace\IfBooleanF#1{\cqu@special@index{file}{#2}}}
+\newcommand{\myentry}[1]{%
+ \marginpar{\raggedleft\color{purple}\bfseries\strut #1}}
+\newcommand{\note}[1]{{%
+ \color{magenta}{\noindent\bfseries 说明:}\emph{#1}}}
+
+\def\cquthesis{\textsc{Cqu}\-\textsc{Thesis}}
+%</dtx-style>
+% \end{macrocode}
+% \fi
+%
+% \Finale
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/source/latex/cquthesis/cquthesis.ins b/Master/texmf-dist/source/latex/cquthesis/cquthesis.ins
new file mode 100644
index 00000000000..640e2915d63
--- /dev/null
+++ b/Master/texmf-dist/source/latex/cquthesis/cquthesis.ins
@@ -0,0 +1,98 @@
+%%
+%% Copyright (C) 2016 by Zhennan Li <i@nanmu.me>
+%%
+%%
+%% This file is part of the CQUThesis package project.
+%%
+%% This file may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3 of this license or (at your option) any later
+%% version. The latest version of this license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%%
+\input docstrip.tex
+
+\askforoverwritefalse
+\keepsilent
+
+\usedir{tex/latex/cquthesis}
+
+\preamble
+
+This is a generated file.
+
+Copyright (C) 2016-\the\year by Zhennan Li <i@nanmu.me>
+This file may be distributed and/or modified under the
+conditions of the LaTeX Project Public License, either
+version 1.3 of this license or (at your option) any later
+version. The latest version of this license is in:
+
+http://www.latex-project.org/lppl.txt
+
+and version 1.3 or later is part of all distributions of
+LaTeX version 2005/12/01 or later.
+
+\endpreamble
+
+\declarepreamble\cfgpreamble
+
+This is a generated file.
+
+Copyright (C) 2016-\the\year by Zhennan Li <i@nanmu.me>
+This file may be distributed and/or modified under the
+conditions of the LaTeX Project Public License, either
+version 1.3 of this license or (at your option) any later
+version. The latest version of this license is in:
+
+http://www.latex-project.org/lppl.txt
+
+and version 1.3 or later is part of all distributions of
+LaTeX version 2005/12/01 or later.
+
+This is the configuration file of the cquthesis package with LaTeX2e.
+
+\endpreamble
+
+\generate{%
+ \file{\jobname.cls}{\from{\jobname.dtx}{cls}}
+ \usepreamble\cfgpreamble
+ \file{\jobname.cfg}{\from{\jobname.dtx}{cfg}}
+ \usepreamble\defaultpreamble\usepostamble\defaultpostamble
+ \file{dtx-style.sty}{\from{\jobname.dtx}{dtx-style}}}
+
+\ifToplevel{%
+ \Msg{**************************CQUThesis INFO******************}
+ \Msg{*}
+ \Msg{* To finish the installation you have to move the following}
+ \Msg{* files into a directory searched by TeX:}
+ \Msg{*}
+ \Msg{* The recommended directory is TEXMF/tex/latex/cquthesis}
+ \Msg{*}
+ \Msg{* \space\space cquthesis.cls}
+ \Msg{* \space\space cquthesis.cfg}
+ \Msg{* \space\space cqunumerical.bst}
+ \Msg{*}
+ \Msg{* To produce the documentation please run these command:}
+ \Msg{* \space xelatex cquthesis.dtx}
+ \Msg{* \space makeindex -s gind.ist -o cquthesis.ind cquthesis.idx}
+ \Msg{* \space makeindex -s gglo.ist -o cquthesis.gls cquthesis.glo}
+ \Msg{* \space xelatex cquthesis.dtx}
+ \Msg{* \space xelatex cquthesis.dtx}
+ \Msg{*}
+ \Msg{* Run these command will get you a typeseting example:}
+ \Msg{* \space xelatex main.tex}
+ \Msg{* \space bibtex main.tex}
+ \Msg{* \space xelatex main.tex}
+ \Msg{* \space xelatex main.tex}
+ \Msg{*}
+ \Msg{* For further info, please go to:}
+ \Msg{* \space\space https://github.com/nanmu42/CQUThesis}
+ \Msg{*}
+ \Msg{* Happy TeXing!}
+ \Msg{***********************************************************}}
+
+\endbatchfile \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/cquthesis/cquthesis.cfg b/Master/texmf-dist/tex/latex/cquthesis/cquthesis.cfg
new file mode 100644
index 00000000000..c31fb325562
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/cquthesis/cquthesis.cfg
@@ -0,0 +1,269 @@
+%%
+%% This is file `cquthesis.cfg',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% cquthesis.dtx (with options: `cfg')
+%%
+%% This is a generated file.
+%%
+%% Copyright (C) 2016-2016 by Zhennan Li <i@nanmu.me>
+%% This file may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3 of this license or (at your option) any later
+%% version. The latest version of this license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%%
+%% This is the configuration file of the cquthesis package with LaTeX2e.
+%%
+\ProvidesFile{cquthesis.cfg}
+[2016/06/09 v0.9.7 Chongqing University Thesis Template]
+\def\cqueqshortname {式}
+\def\cqu@denotation@name {主要符号对照表}
+\def\listofequationsname {重要算式索引}
+\def\cqu@bib@name {参考文献}
+\def\cqu@tocnameinbkmark {目{ }录}
+\newcommand{\parenthesesthis}[1]{(#1)}
+\ctexset{%
+chapter = {%
+pagestyle = style@normal,
+name = {},
+format = \sffamily\heiti\centering,
+nameformat = \zihao{3},
+titleformat = \zihao{3},
+aftername = \hskip\ccwd,
+number = {\ifcqu@liberalformat\chinese{chapter}\else\thechapter\fi},
+beforeskip = 13bp,
+afterskip = 24bp,
+},
+section = {%
+name = {},
+format = \sffamily\heiti\raggedright,
+nameformat = \bfseries\zihao{-3},
+titleformat = \zihao{-3},
+aftername = \hskip\ccwd,
+number = {\ifcqu@liberalformat\parenthesesthis{\chinese{section}}\else\thesection\fi},
+beforeskip = 24bp \@plus 1ex \@minus .2ex,
+afterskip = 6bp \@plus .2ex,
+},
+subsection = {%
+name = {},
+format = \sffamily\heiti\raggedright,
+nameformat = \bfseries\zihao{4},
+titleformat = \zihao{4},
+aftername = \hskip\ccwd,
+number = {\ifcqu@liberalformat\arabic{subsection}\else\thesubsection\fi},
+beforeskip = 16bp \@plus 1ex \@minus .2ex,
+afterskip = 6bp \@plus .2ex,
+},
+subsubsection = {
+name = {},
+runin = false,
+indent = \parindent,
+aftertitle = {},
+numbering = true,
+number = {\ifcqu@liberalformat\parenthesesthis{\arabic{subsubsection}}\else\@circlenum{subsubsection}\fi},
+numberformat+ = {\ifcqu@liberalformat\relax\else\zihao{4}\fi},
+beforeskip = 1ex plus 0.5ex minus .2ex,
+afterskip = 1bp \@plus .1ex,
+},
+appendix = {%
+numbering = false,
+name = {},
+},
+paragraph = {
+name = {},
+runin = true,
+aftertitle = {\ClassError{cquthesis}%
+{Level-5 and below sections are unsupported intentionally.}{}},
+beforeskip = 1ex plus 0.5ex minus .2ex,
+afterskip = 1em,
+},
+subparagraph = {
+name = {},
+runin = true,
+indent = \parindent,
+indent = 0pt,
+aftertitle = {\ClassError{cquthesis}%
+{Level-5 and below sections are unsupported intentionally.}{}},
+beforeskip = 1ex plus 0.5ex minus .2ex,
+afterskip = 1em,
+},
+appendixname=附录,
+contentsname={目\hskip\ccwd 录},
+listfigurename={插图索引},
+listtablename={表格索引},
+figurename=图,
+tablename=表,
+bibname=参考文献,
+indexname=索引,
+}
+\DefineFNsymbols{cqufnsymbol}{
+{\ding{172}} {\ding{173}}
+{\ding{174}} {\ding{175}}
+{\ding{176}} {\ding{177}}
+{\ding{178}} {\ding{179}}
+{\ding{180}} {\ding{181}}
+}%cqufnsymbol
+\setfnsymbol{cqufnsymbol}
+\renewcommand\thempfootnote{\fnsymbol{mpfootnote}}
+\pretocmd{\thefootnote}{%
+\ifnum \value{footnote} >10
+\ClassError{cquthesis}%
+{More than 10 footnotes in a single page are not supported.}{}
+\fi
+}{}{}
+\pretocmd{\thempfootnote}{%
+\ifnum \value{mpfootnote} >10
+\ClassError{cquthesis}%
+{More than 10 footnotes in a single page are not supported.}{}
+\fi
+}{}{}
+\theoremsymbol{\ensuremath{\square}}
+\newtheorem*{proof}{证明}
+\theoremstyle{plain}
+\theoremsymbol{}
+\theoremseparator{:}
+\newtheorem{assumption}{假设}[chapter]
+\newtheorem{definition}{定义}[chapter]
+\newtheorem{proposition}{命题}[chapter]
+\newtheorem{lemma}{引理}[chapter]
+\newtheorem{theorem}{定理}[chapter]
+\newtheorem{axiom}{公理}[chapter]
+\newtheorem{corollary}{推论}[chapter]
+\newtheorem{exercise}{练习}[chapter]
+\newtheorem{example}{例}[chapter]
+\newtheorem{remark}{注释}[chapter]
+\newtheorem{problem}{问题}[chapter]
+\newtheorem{conjecture}{猜想}[chapter]
+\sisetup{%
+list-final-separator = {和},
+list-pair-separator = {和},
+range-phrase = {$ \sim $},
+}%\sisetup
+\AtBeginDocument{%
+\def\figureautorefname{图}
+\def\tableautorefname{表}
+\def\partautorefname{卷}
+\def\appendixautorefname{附录}
+\def\equationautorefname{式}
+\def\Itemautorefname{列表}
+\def\chapterautorefname{章}
+\def\sectionautorefname{节}
+\def\subsectionautorefname{小节}
+\def\subsubsectionautorefname{条目}
+\def\paragraphautorefname{自然段}
+\def\Hfootnoteautorefname{脚注}
+\def\AMSautorefname{式}
+\def\theoremautorefname{理论}
+\def\pageautorefname{页}
+}%\AtBeginDocument
+\newcommand{\MONTH}{%
+\ifcase\the\month
+\or January% 1
+\or February% 2
+\or March% 3
+\or April% 4
+\or May% 5
+\or June% 6
+\or July% 7
+\or August% 8
+\or September% 9
+\or October% 10
+\or November% 11
+\or December% 12
+\fi}
+\def\cdate{\zhdigits{\the\year}年\zhnumber{\the\month}月}
+\def\edate{\MONTH{ }\the\year}
+\def\cqu@ckeywords@separator{,}
+\def\cqu@ekeywords@separator{, }
+\def\cqu@title@separatorCN{:}
+\def\cqu@title@separatorEN{:~}
+\def\cqu@cabstract@tocname{中文摘要}
+\def\cqu@eabstract@tocname{英文摘要}
+\def\cqu@cabstract@name{摘\hskip\ccwd{}要}
+\def\cqu@eabstract@name{ABSTRACT}
+\def\cqu@ckw@title{关键词}
+\def\cqu@ekw@title{Key words}
+\def\cqu@workby{by}
+\ifcqu@bachelor
+\def\cqu@thesistypenameCN{重庆大学本科学生毕业设计(论文)}
+\def\cqu@thesistypenameEN{Graduation Design(Thesis) of Chongqing University}
+\def\cqu@studentCN{学生}
+\def\cqu@studentEN{Undergraduate}
+\def\cqu@studentnumCN{学号}
+\def\cqu@supervisorCN{指导教师}
+\def\cqu@supervisorEN{Supervisor}
+\def\cqu@majorCN{专业}
+\def\cqu@majorEN{Major}
+\def\cqu@universitynameCN{重庆大学}
+\def\cqu@universitynameEN{Chongqing University}
+\else
+\ifcqu@master
+\def\cqu@thesistypenameCN{重庆大学硕士学位论文}
+\def\cqu@thesistypenameEN{A Thesis Submitted to Chongqing University\\%
+in Partial Fulfillment of the Requirement for%
+\ifcqu@academic{ }the\fi\\\cqu@edgree}
+\def\cqu@studentCN{学生姓名}
+\def\cqu@supervisorCN{指导教师}
+\def\cqu@supervisorEN{Supervisor}
+\def\cqu@psupervisorCN{兼职导师}
+\def\cqu@psupervisorEN{Pluralistic~Supervisor}
+\def\cqu@majorCN{专业}
+\def\cqu@majorEN{Specialty}
+\ifcqu@academic
+\def\cqu@mastertype{(学术学位)}
+\def\cqu@majorclassCN{学科门类}
+\else
+\def\cqu@mastertype{(专业学位)}
+\def\cqu@majorclassCN{学位类型}
+\fi
+\def\cqu@universitynameCN{重庆大学}
+\def\cqu@universitynameEN{Chongqing University, Chongqing, China}
+\else
+\ifcqu@doctor
+\def\cqu@thesistypenameCN{重庆大学博士学位论文}
+\def\cqu@thesistypenameEN{A Thesis Submitted to Chongqing University\\%
+in Partial Fulfillment of the Requirement for the\\\cqu@edgree}
+\def\cqu@studentCN{学生姓名}
+\def\cqu@studentEN{Ph.D. Candidate}
+\def\cqu@supervisorCN{指导教师}
+\def\cqu@supervisorEN{Supervisor}
+\def\cqu@majorCN{学科专业}
+\def\cqu@majorclassCN{学科门类}
+\def\cqu@majorEN{Specialty}
+\def\cqu@universitynameCN{重庆大学}
+\def\cqu@universitynameEN{Chongqing University}
+\else
+\ClassWarning{cquthesis}%
+{Specified thesis type is obligatory: \MessageBreak
+type=[bachelor|master|doctor](How did you bypass the type check?)}{}
+\fi
+\fi
+\fi
+\def\cqu@innotitle{独创性声明}
+\def\cqu@innobody{%
+本人声明所呈交的学位论文是本人在导师指导下进行的研究工作及取得的研究成果。据我所知,除了文中特别标注和致谢的地方外,论文中不包含其他人已经发表或撰写中的研究成果,也不包含为获得重庆大学或其他教育机构的学位或证书而使用过的材料。与我一同工作的同志对本文所做的任何贡献均已在论文中做了明确的说明并表示谢意。}
+\def\cqu@innosignature{学位论文作者签名:}
+\def\cqu@authtitle{学位论文版权使用授权书}
+\def\cqu@authcheckpart{%
+保\hskip\ccwd{}密(\hskip2\ccwd),在\rule{3\ccwd}{0.15mm}年解密后适用本授权书。\\
+不保密(\hskip2\ccwd)。}
+\def\cqu@authbody{
+本学位论文作者完全了解重庆大学有关保留、使用学位论文的规定,有权保留并向国家有关部门或机构送交论文的复印件和磁盘,允许论文被查阅和借阅。本人授权重庆大学可以把学位论文的全部或部分内容编入有关数据库进行检索,可以采用影印、缩印或扫描等复制手段保存、汇编学位论文。
+\\[\baselineskip]
+\indent\parbox{7\ccwd}{本学位论文属于}\hskip\ccwd\parbox{.6\textwidth}{\cqu@authcheckpart}
+\\[\baselineskip]
+\indent(请只在上述一个括号内打“\ding{51}”)}
+\def\cqu@authsignaturestu{学位论文作者签名:}
+\def\cqu@authsignaturesup{导师签名:}
+\def\cqu@signdate{签字日期:\hskip3\ccwd{}年\hskip2\ccwd{}月\hskip2\ccwd{}日}
+\let\cqu@thesisname\cqu@thesistypenameCN
+\endinput
+%%
+%% End of file `cquthesis.cfg'.
diff --git a/Master/texmf-dist/tex/latex/cquthesis/cquthesis.cls b/Master/texmf-dist/tex/latex/cquthesis/cquthesis.cls
new file mode 100644
index 00000000000..702854e3f7b
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/cquthesis/cquthesis.cls
@@ -0,0 +1,733 @@
+%%
+%% This is file `cquthesis.cls',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% cquthesis.dtx (with options: `cls')
+%%
+%% This is a generated file.
+%%
+%% Copyright (C) 2016-2016 by Zhennan Li <i@nanmu.me>
+%% This file may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3 of this license or (at your option) any later
+%% version. The latest version of this license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%%
+\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+\ProvidesClass{cquthesis}
+[2016/06/09 v0.9.7 Chongqing University Thesis Template]
+\hyphenation{Cqu-Thesis}
+\newcommand{\cquthesis}{\textsc{CquThesis}}
+\def\version{0.9.7}
+\RequirePackage{kvoptions}
+\SetupKeyvalOptions{
+family=cqu,
+prefix=cqu@,
+setkeys=\kvsetkeys}
+\newif\ifcqu@bachelor
+\newif\ifcqu@master
+\newif\ifcqu@doctor
+\cqu@bachelorfalse\cqu@masterfalse\cqu@doctorfalse
+\define@key{cqu}{type}{%
+\expandafter\csname cqu@#1true\endcsname}
+\DeclareBoolOption{liberalformat}
+\DeclareBoolOption[true]{academic}
+\DeclareComplementaryOption{proffesionalmaster}{academic}
+\DeclareBoolOption[true]{openany}
+\DeclareComplementaryOption{openright}{openany}
+\DeclareBoolOption[false]{abstractopenright}
+\newif\if@onesideprint
+\newif\if@twosideprint
+\newif\if@autoprint
+\@onesideprintfalse\@twosideprintfalse\@autoprintfalse
+\define@key{cqu}{printmode}{%
+\expandafter\csname @#1printtrue\endcsname}
+\DeclareBoolOption[false]{secret}
+\DeclareBoolOption[false]{seriftoc}
+\DeclareBoolOption{continuoustoc}
+\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{ctexbook}}
+\kvsetkeys{cqu}{}
+\ProcessKeyvalOptions*
+\PassOptionsToPackage{no-math}{fontspec}
+\ifcqu@openany
+\LoadClass[openany,a4paper,oneside,UTF8,zihao=-4,scheme=plain,linespread=1.39,space=auto]{ctexbook}
+\else
+\LoadClass[openright,a4paper,oneside,UTF8,zihao=-4,scheme=plain,linespread=1.39,space=auto]{ctexbook}
+\fi
+\ifcqu@bachelor\relax\else
+\ifcqu@master\relax\else
+\ifcqu@doctor\relax\else
+\ClassError{cquthesis}%
+{Specified thesis type is obligatory: \MessageBreak
+type=[bachelor|master|doctor]}{}
+\fi
+\fi
+\fi
+\if@autoprint\relax\else
+\if@onesideprint\relax\else
+\if@twosideprint\relax\else
+\ClassWarning{cquthesis}%
+{Unexpected or missing print mode, processing with AUTO: \MessageBreak
+printmode=[oneside|twoside|auto]}{}
+\@autoprinttrue
+\fi
+\fi
+\fi
+\RequirePackage{etoolbox}
+\RequirePackage{xparse}
+\RequirePackage{environ}
+\RequirePackage{calc}
+\RequirePackage{ifxetex}
+\RequirePackage{fontspec}
+\RequirePackage{amsmath}
+\RequirePackage[defaultsups]{newtxtext}
+\RequirePackage{newtxmath}
+\RequirePackage{pifont}
+\RequirePackage{CJKfntef}
+\RequirePackage[labelformat=simple]{subcaption}
+\RequirePackage{array}
+\RequirePackage{tabularx}
+\RequirePackage{booktabs}
+\RequirePackage{longtable}
+\RequirePackage{multirow}
+\RequirePackage{diagbox}
+\RequirePackage{tabu}
+\RequirePackage{courier}
+\RequirePackage{graphicx}
+\RequirePackage{pdfpages}
+\RequirePackage[shortlabels,inline]{enumitem}
+\RequirePackage[amsmath,thmmarks,hyperref]{ntheorem}
+\RequirePackage{changepage}
+\RequirePackage{afterpage}
+\RequirePackage[bottom,perpage,hang,symbol*]{footmisc}
+\raggedbottom
+\RequirePackage{varwidth}
+\RequirePackage{xcolor}
+\RequirePackage{metalogo}
+\RequirePackage{xspace}
+\RequirePackage[numbers,square,comma,super,sort&compress]{natbib}
+\patchcmd{\@chapter}{\addtocontents{lof}{\protect\addvspace{10\p@}}}{}{}{} % lof
+\patchcmd{\@chapter}{\addtocontents{lot}{\protect\addvspace{10\p@}}}{}{}{} % lot
+\RequirePackage[hyperfootnotes=false,]{hyperref}
+\hypersetup{%
+linktoc=all,
+bookmarksnumbered=true,
+bookmarksopen=true,
+bookmarksopenlevel=1,
+breaklinks=true,
+colorlinks=false,
+plainpages=false,
+pdfborder=0 0 0}
+\urlstyle{same}
+\ifxetex
+\def\CJK@null{\kern\CJKnullspace\Unicode{48}{7}\kern\CJKnullspace}
+\defaultfontfeatures{Mapping=tex-text}
+\fi
+\RequirePackage{tocloft}
+\ifxetex
+\hypersetup{%
+CJKbookmarks=true}
+\else
+\hypersetup{%
+unicode=true,
+CJKbookmarks=false}
+\fi
+\let\cqu@cleardoublepage\cleardoublepage
+\renewcommand{\cleardoublepage}{%
+\clearpage{\pagestyle{style@empty}\cqu@cleardoublepage}
+}%\cleardoublepage
+\newcommand\cqu@addblankpage{%
+\afterpage{%
+{\null\pagestyle{style@empty}\clearpage}}}
+\newif\if@backmatter
+\renewcommand{\frontmatter}{%
+\@backmatterfalse
+\cleardoublepage
+\pagenumbering{Roman}
+\pagestyle{style@normal}
+\ctexset{chapter/numbering = false,}
+}
+\renewcommand{\mainmatter}{%
+\@backmatterfalse
+\cleardoublepage
+\pagenumbering{arabic}
+\pagestyle{style@normal}
+\ctexset{chapter/numbering = true,}
+}
+\renewcommand{\backmatter}{%
+\@backmattertrue
+\cleardoublepage
+\ctexset{chapter/numbering = false,
+section/number = \Alph{section},
+section/name = {,.},
+subsection/number = \CTEXthesection{}\arabic{subsection},}%
+\setcounter{chapter}{0}
+}
+\RequirePackage{geometry}
+\geometry{
+a4paper, ignoreall, nomarginpar,
+inner=25mm, outer=25mm, top=30mm, bottom=25mm,
+bindingoffset=10mm, head=16mm, headsep=5mm, foot=15mm, footnotesep=5mm}
+\RequirePackage{totcount}
+\regtotcounter[auxfile=maxpage.aux]{page}
+\if@autoprint
+\ifcqu@bachelor
+\ifnum\totvalue{page}>70 \@twosideprinttrue\else\@onesideprinttrue\fi
+\else
+\ifnum \totvalue{page}>60 \@twosideprinttrue\else\@onesideprinttrue\fi
+\fi
+\fi
+\if@onesideprint
+\ClassWarning{cquthesis}{Printing under oneside mode.}{}
+\else
+\if@twosideprint
+\geometry{twoside}
+\ClassWarning{cquthesis}{Printing under twoside mode.}{}
+\fi
+\fi
+\RequirePackage{fancyhdr}
+\fancypagestyle{style@empty}{%
+\fancyhf{}
+\renewcommand{\headrulewidth}{0pt}
+\renewcommand{\footrulewidth}{0pt}}
+\fancypagestyle{style@fixhead}{%
+\fancyhead{}
+\fancyhead[C]{\zihao{-5}\songti\leftmark}
+\fancyfoot{}
+\fancyfoot[C]{\zihao{-5}\thepage}
+\renewcommand{\headrulewidth}{0.4pt}
+\renewcommand{\footrulewidth}{0pt}}
+\fancypagestyle{style@normal}{%
+\fancyhead{}
+\if@twosideprint
+\fancyhead[EC]{\zihao{-5}\songti\cqu@thesisname}
+\fancyhead[OC]{\zihao{-5}\songti\leftmark}
+\else
+\fancyhead[L]{\zihao{-5}\songti\cqu@thesisname}
+\fancyhead[R]{\zihao{-5}\songti\leftmark}
+\fi
+\fancyfoot{}
+\fancyfoot[C]{\zihao{-5}\thepage}
+\renewcommand{\headrulewidth}{0.4pt}
+\renewcommand{\footrulewidth}{0pt}}
+\newcommand{\cqu@fixhead}{%
+\if@twosideprint %仅双页打印需要修正
+\checkoddpage
+\ifoddpage\relax\else
+\thispagestyle{style@fixhead}
+\fi
+\fi
+}%\cqu@fixhead
+\AtBeginDocument{%
+\pagestyle{style@empty}
+\renewcommand{\chaptermark}[1]{%
+\ifnum\value{chapter}>0%
+\@mkboth{\CTEXthechapter\hskip\ccwd#1}{}%
+\else
+\@mkboth{#1}{}%
+\fi}}%\chaptermark
+\let\@afterindentfalse\@afterindenttrue
+\@afterindenttrue
+\setlength{\parskip}{0.1\baselineskip}
+\ctexset{%
+punct=quanjiao,
+autoindent=true,
+space=auto}
+\setlist{
+nosep,
+itemjoin = {{;}}
+}%setlist
+\def\@circlenum#1{%
+\ifnum \value{#1} >10
+\ClassError{cquthesis}%
+{More than 10 subsubsections in a subsection cannot be handled.}{}
+\fi
+\ding{\the\numexpr\value{#1}+171\relax}%
+}
+\def\footnoterule{\vskip-3\p@\hrule\@width0.3\textwidth\@height0.4\p@\vskip2.6\p@}
+\let\cqu@footnotesize\footnotesize
+\renewcommand{\footnotesize}{\cqu@footnotesize\zihao{-5}}
+\footnotemargin1.5em\relax
+\let\cqu@makefnmark\@makefnmark
+\def\cqu@@makefnmark{\mbox{{\normalfont\@thefnmark}}}
+\pretocmd{\@makefntext}{\let\@makefnmark\cqu@@makefnmark}{}{}
+\apptocmd{\@makefntext}{\let\@makefnmark\cqu@makefnmark}{}{}
+\allowdisplaybreaks[4]
+\let\cqu@tagform@\tagform@
+\renewcommand{\eqref}[1]{\cqueqshortname\textup{(\ref{#1})}}
+\theorembodyfont{\rmfamily\songti}
+\theoremheaderfont{\rmfamily\heiti}
+\RequirePackage[version=4]{mhchem}
+\AtBeginDocument{\pretocmd{\ce}{{ }}{}{}}
+\newcommand{\cec}[1]{\cesplit{{\,\ }{\0}}{#1}}
+\RequirePackage{siunitx}
+\RequirePackage{upgreek}
+\ifxetex
+\sisetup{%
+math-micro = {\upmu},
+text-micro = {\textmu},
+}%\sisetup
+\fi
+\setlength{\floatsep}{20bp \@plus4pt \@minus1pt}
+\setlength{\intextsep}{24bp \@plus4pt \@minus2pt}
+\setlength{\textfloatsep}{20bp \@plus4pt \@minus2pt}
+\setlength{\@fptop}{0bp \@plus1.0fil}
+\setlength{\@fpsep}{12bp \@plus2.0fil}
+\setlength{\@fpbot}{0bp \@plus1.0fil}
+\renewcommand{\textfraction}{0.15}
+\renewcommand{\topfraction}{0.85}
+\renewcommand{\bottomfraction}{0.65}
+\renewcommand{\floatpagefraction}{0.60}
+\AtBeginDocument{%
+\renewcommand{\thefigure}{%
+\if@backmatter
+\CTEXthesection \@arabic \c@figure
+\else
+\ifnum \c@chapter >\z@ \thechapter .\fi \@arabic \c@figure
+\fi}
+\renewcommand{\thetable}{%
+\if@backmatter
+\CTEXthesection \@arabic \c@table
+\else
+\ifnum \c@chapter >\z@ \thechapter .\fi \@arabic \c@table
+\fi}
+\renewcommand{\theequation}{%
+\if@backmatter
+\CTEXthesection \@arabic \c@equation
+\else
+\ifnum \c@chapter >\z@ \thechapter .\fi \@arabic \c@equation
+\fi}
+}
+\def\cqu@tabular{\zihao{5}\@tabular}
+\DeclareCaptionLabelFormat{cqu}{{\zihao{5}\songti #1~\rmfamily #2}}
+\DeclareCaptionLabelSeparator{cqu}{\hspace{\ccwd}}
+\DeclareCaptionFont{cqu}{\zihao{5}}
+\captionsetup{labelformat=cqu,labelsep=cqu,font=cqu}
+\captionsetup[table]{position=top,belowskip={12bp-\intextsep},aboveskip=6bp}
+\captionsetup[figure]{position=bottom,belowskip={12bp-\intextsep},aboveskip=6bp}
+\captionsetup[sub]{font=cqu,skip=6bp}
+\renewcommand{\thesubfigure}{(\alph{subfigure})}
+\renewcommand{\thesubtable}{(\alph{subtable})}
+\AtBeginEnvironment{tabularx}{\begingroup\zihao{5}}
+\AtEndEnvironment{tabularx}{\endgroup}
+\setlength{\tabcolsep}{12pt}
+\renewcommand{\tabularxcolumn}[1]{m{#1}}
+\newcommand{\bigcell}[1]{\vspace{6pt}\begin{varwidth}{\linewidth}#1\end{varwidth}\vspace{6pt}}
+\newcommand{\headcell}[1]{\multicolumn{1}{c}{\heiti #1}}
+\newcommand{\colsep}[1][12pt]{\setlength{\tabcolsep}{#1}}
+\let\cqu@LT@array\LT@array
+\def\LT@array{\zihao{5}\cqu@LT@array}
+\RequirePackage{listings}
+\lstdefinestyle{lstStyleBase}{%
+basicstyle=\scriptsize\ttfamily,
+aboveskip=\medskipamount,
+belowskip=\medskipamount,
+lineskip=0pt,
+boxpos=c,
+showlines=false,
+extendedchars=true,
+upquote=true,
+tabsize=2,
+showtabs=false,
+showspaces=false,
+showstringspaces=false,
+numbers=left,
+numberstyle=\tiny,
+linewidth=\linewidth,
+xleftmargin=4pt,
+xrightmargin=0pt,
+resetmargins=false,
+breaklines=true,
+breakatwhitespace=false,
+breakindent=0pt,
+breakautoindent=true,
+columns=flexible,
+keepspaces=true,
+framesep=3pt,
+rulesep=2pt,
+framerule=1pt,
+backgroundcolor=\color{gray!5},
+stringstyle=\color{green!40!black!100},
+keywordstyle=\bfseries\color{blue!50!black},
+commentstyle=\slshape\color{black!60}}
+\lstdefinestyle{lstStyleCplus}{%
+style=lstStyleBase,
+frame=l,
+rulecolor=\color{blue},
+language=C++}
+\lstdefinestyle{lstStylePython}{%
+style=lstStyleBase,
+frame=l,
+rulecolor=\color{cyan},
+language=Python}
+\lstnewenvironment{Cplus}{\lstset{style=lstStylePython}}{}
+\lstnewenvironment{Python}{\lstset{style=lstStyleCplus}}{}
+\newcounter{cquXuHao}
+\newcounter{cquXuHaoType}
+\setcounter{cquXuHaoType}{1}
+\newcommand{\xuhaoseparator}{}
+\newcommand{\xuhaotype}[1][1]{
+\ifnum #1>6 \ClassError{cquthesis}%
+{Available choices from 1-6.}{}%
+\fi
+\setcounter{cquXuHaoType}{#1}
+}%\xuhaotype
+\newcommand{\output@xuhao}{%
+\ifcase\value{cquXuHaoType}
+\or \arabic{cquXuHao} %1
+\or \Alph{cquXuHao} %2
+\or \alph{cquXuHao} %3
+\or \Roman{cquXuHao} %4
+\or \roman{cquXuHao} %5
+\or \ifnum\value{cquXuHao}>9\ClassError{cquthesis}%
+{Xuhao(rownum) of type-6 must be under 10.}{}%
+\else\fnsymbol{cquXuHao}
+\fi %6
+\fi
+}%\output@xuhao
+\newcommand{\xuhao}[1][0]{
+\ifcase #1
+\stepcounter{cquXuHao} %0
+\output@xuhao\xuhaoseparator\xspace
+\or \resetxuhao\stepcounter{cquXuHao} %1
+\output@xuhao\xuhaoseparator\xspace
+\fi
+}%\xuhao
+\newcommand{\resetxuhao}{\setcounter{cquXuHao}{0}}
+\let\rownum\xuhao
+\let\resetrownum\resetxuhao
+\let\rownumtype\xuhaotype
+\let\setxuhao\xuhaotype
+\let\rownumseparator\xuhaoseparator
+\def\cqu@def@term #1{%
+\define@key{cqu}{#1}{\csname #1\endcsname{##1}}
+\expandafter\gdef\csname #1\endcsname##1{%
+\expandafter\gdef\csname cqu@#1\endcsname{##1}}
+\csname #1\endcsname{}}
+\cqu@def@term{ctitle}
+\cqu@def@term{etitle}
+\cqu@def@term{cauthor}
+\cqu@def@term{eauthor}
+\cqu@def@term{studentid}
+\cqu@def@term{csupervisor}
+\cqu@def@term{esupervisor}
+\cqu@def@term{cpsupervisor}
+\cqu@def@term{epsupervisor}
+\cqu@def@term{cmajor}
+\cqu@def@term{emajor}
+\cqu@def@term{cclass}
+\cqu@def@term{edgree}
+\cqu@def@term{cdepartment}
+\cqu@def@term{edepartment}
+\cqu@def@term{mycdate}
+\cqu@def@term{myedate}
+\def\cqu@parse@keywords#1{
+\define@key{cqu}{#1}{\csname #1\endcsname{##1}}
+\expandafter\gdef\csname cqu@#1\endcsname{}
+\expandafter\gdef\csname #1\endcsname##1{
+\@for\reserved@a:=##1\do{
+\expandafter\ifx\csname cqu@#1\endcsname\@empty\else
+\expandafter\g@addto@macro\csname cqu@#1\endcsname{%
+\ignorespaces\csname cqu@#1@separator\endcsname}
+\fi
+\expandafter\expandafter\expandafter\g@addto@macro%
+\expandafter\csname cqu@#1\expandafter\endcsname\expandafter{\reserved@a}}}}
+\cqu@parse@keywords{ckeywords}
+\cqu@parse@keywords{ekeywords}
+\def\cqusetup{\kvsetkeys{cqu}}
+\newcommand{\make@cover@CN}{%
+\thispagestyle{style@empty}
+\begin{center}
+\rule{0mm}{15mm}
+\heiti
+\ifcqu@bachelor
+\zihao{-2}\cqu@thesistypenameCN
+\\ \vspace{\stretch{1}}
+\zihao{2}\cqu@ctitle
+\\ \vspace{\stretch{2}}
+\includegraphics[width=6cm]{CQUbadge.pdf}
+\\ \vspace{\stretch{2}}
+\else
+\zihao{2}\cqu@ctitle
+\\ \vspace{\stretch{1}}
+\includegraphics[width=6cm]{CQUbadge.pdf}
+\\ \vspace{\stretch{1}}
+\zihao{-2}\cqu@thesistypenameCN
+\ifcqu@master{}\\\cqu@mastertype\fi
+\\ \vspace{\stretch{2}}
+\fi
+\ifcqu@bachelor
+\zihao{3}
+\begin{varwidth}{\textwidth}
+\begin{CJKfilltwosides}{4.5\ccwd}
+\cqu@studentCN\cqu@title@separatorCN\\
+\cqu@studentnumCN\cqu@title@separatorCN\\
+\cqu@supervisorCN\cqu@title@separatorCN\\
+\cqu@majorCN\cqu@title@separatorCN
+\end{CJKfilltwosides}
+\end{varwidth}
+\else
+\zihao{3}
+\begin{varwidth}{\textwidth}
+\begin{CJKfilltwosides}{4.5\ccwd}
+\cqu@studentCN\cqu@title@separatorCN\\
+\cqu@supervisorCN\cqu@title@separatorCN\\
+\ifcqu@academic
+\cqu@majorCN\cqu@title@separatorCN\\
+\else
+\cqu@psupervisorCN\cqu@title@separatorCN\\
+\fi
+\cqu@majorclassCN\cqu@title@separatorCN
+\end{CJKfilltwosides}
+\end{varwidth}
+\fi
+\hskip.5\ccwd
+\zihao{3}
+\begin{varwidth}{\textwidth}%
+\mbox{\cqu@cauthor}\\
+\ifcqu@bachelor\mbox{\cqu@studentid}\\\fi
+\cqu@csupervisor\\ %不要放在盒子里
+\ifcqu@academic %这里有点复杂
+\mbox{\cqu@cmajor}
+\ifcqu@bachelor\relax\else\\\cqu@cclass\fi
+\else
+\cqu@cpsupervisor\\
+\cqu@cclass
+\fi
+\end{varwidth}
+\\ \vspace{\stretch{2}}
+\zihao{-2}\cqu@universitynameCN\cqu@cdepartment\\[1mm]
+\zihao{3}\ifdefempty{\cqu@mycdate}{\cdate}{\cqu@mycdate}
+\vspace{10mm}
+\end{center}}
+\newcommand{\make@cover@EN}{%
+\cleardoublepage
+\thispagestyle{style@empty}
+\begin{center}
+\rule{0mm}{15mm}
+\sffamily
+\ifcqu@bachelor
+\zihao{-2}\cqu@thesistypenameEN
+\\ \vspace{\stretch{2}}
+\zihao{-1}\textbf{\cqu@etitle}
+\\ \vspace{\stretch{1}}
+\includegraphics[width=5cm]{CQUbadge.pdf}
+\\ \vspace{\stretch{2}}
+\zihao{3}\textbf{\cqu@studentEN\cqu@title@separatorEN\mbox{\cqu@eauthor}}\\
+\cqu@supervisorEN\cqu@title@separatorEN\mbox{\cqu@esupervisor}\\
+\cqu@majorEN\cqu@title@separatorEN\mbox{\cqu@emajor}
+\else
+\zihao{-1}\textbf{\cqu@etitle}
+\\ \vspace{\stretch{2}}
+\includegraphics[width=5cm]{CQUbadge.pdf}
+\\ \vspace{\stretch{2}}
+\zihao{3}\cqu@thesistypenameEN
+\\[1mm]
+\cqu@workby
+\\[2mm]
+\zihao{3}\mbox{\textbf{\cqu@eauthor}}
+\\ \vspace{\stretch{1}}
+\textbf{\cqu@supervisorEN\cqu@title@separatorEN}\textbf{\cqu@esupervisor}\\
+\ifcqu@academic\relax\else\textbf{\cqu@psupervisorEN\cqu@title@separatorEN\cqu@epsupervisor}\\\fi
+\textbf{\cqu@majorEN\cqu@title@separatorEN}\mbox{\textbf{\cqu@emajor}}
+\fi
+\\ \vspace{\stretch{2}}
+\zihao{-2}\cqu@edepartment\\\cqu@universitynameEN\\[1mm]
+\ifdefempty{\cqu@myedate}{\textbf{\edate}}{\textbf{\cqu@myedate}}
+\vspace{10mm}
+\end{center}}
+\def\makecover{%
+\hypersetup{%
+pdftitle = {\cqu@ctitle},
+pdfauthor = {\cqu@cauthor},
+pdfsubject = {\cqu@thesistypenameCN},
+pdfkeywords = {\cqu@ckeywords},
+pdfcreator = {CQUThesis--v\version, a LaTeX template.}
+}
+\phantomsection
+\pdfbookmark[-1]{\cqu@ctitle}{ctitle}
+\make@cover@CN
+\make@cover@EN
+}%makecover
+\newcommand{\cqu@@cabstract}[1]{\long\gdef\cqu@cabstract{#1}}
+\newenvironment{cabstract}{\Collect@Body\cqu@@cabstract}{}
+\newcommand{\cqu@@eabstract}[1]{\long\gdef\cqu@eabstract{#1}}
+\newenvironment{eabstract}{\Collect@Body\cqu@@eabstract}{}
+\def\makeabstract{%
+\cleardoublepage
+\normalsize
+\cqu@makeabstract
+}%makeabstract
+\newcommand{\cqu@makeabstract}{%
+\clearpage
+\chapter[\cqu@cabstract@tocname]{\cqu@cabstract@name}
+\pagestyle{style@normal}
+\cqu@fixhead
+\pagenumbering{Roman}
+\cqu@cabstract
+\vskip12bp
+\cqu@put@kw{\heiti\cqu@ckw@title\cqu@title@separatorCN}{\cqu@ckeywords}
+\if@twosideprint\ifcqu@openany\ifcqu@abstractopenright\cqu@addblankpage\fi\fi\fi
+\chapter[\cqu@eabstract@tocname]{\sffamily\textbf{\cqu@eabstract@name}}
+\cqu@fixhead
+\cqu@eabstract
+\vskip12bp
+\cqu@put@kw{\textbf{\cqu@ekw@title\cqu@title@separatorEN}}{\cqu@ekeywords}
+}
+\newbox\cqu@kw
+\newcommand{\cqu@put@kw}[2]{%
+\begingroup
+\setbox\cqu@kw=\hbox{#1}
+\noindent\hangindent\wd\cqu@kw\hangafter1
+\box\cqu@kw#2\par
+\endgroup}
+\NewDocumentCommand{\cqu@makeauth}{o}{%
+\clearpage
+\thispagestyle{style@empty}
+\IfNoValueTF{#1}{%
+\rule{0mm}{5mm}
+\begin{center}
+\zihao{3}
+\begin{CJKfilltwosides}{6\ccwd}
+\heiti{}\cqu@innotitle
+\end{CJKfilltwosides}
+\end{center}
+\vspace{2mm}
+\zihao{-4}
+\par\cqu@innobody
+\\[5mm]
+\par\cqu@innosignature\hfill\cqu@signdate
+\vspace{15mm}
+\begin{center}
+\zihao{3}\heiti
+\cqu@authtitle
+\end{center}
+\vspace{2mm}
+\zihao{-4}
+\par\cqu@authbody
+\\[15mm]
+\begin{minipage}{\textwidth}
+\begin{minipage}{15\ccwd}
+\cqu@authsignaturestu\\[10mm]
+\cqu@signdate
+\end{minipage}
+\hfill
+\begin{minipage}{15\ccwd}
+\cqu@authsignaturesup\\[10mm]
+\cqu@signdate
+\end{minipage}
+\end{minipage}
+}{
+\includepdf{#1}
+}
+}%\cqu@makeauth
+\let\cquauthpage\cqu@makeauth
+\newlist{cqu@denotation}{description}{1}
+\setlist[cqu@denotation]{%
+nosep,
+font = \normalfont,
+align = left,
+leftmargin = !,
+labelindent = 0mm,
+labelwidth = 25mm,
+labelsep* = 5mm,
+itemindent = 0mm,
+}%\setlist
+\NewDocumentEnvironment{denotation}{O{20mm} O{30mm}}{%
+\chapter*{\cqu@denotation@name}
+\chaptermark{\cqu@denotation@name}\cqu@fixhead
+\zihao{-4}\begin{cqu@denotation}[labelindent = #1,labelwidth=#2,]
+}{
+\end{cqu@denotation}}%\denotation
+\setcounter{tocdepth}{2}
+\setcounter{secnumdepth}{3}
+\setlength{\cftbeforechapskip}{1mm}
+\ifcqu@liberalformat
+\cftsetindents{chapter}{0em}{1.5em}
+\cftsetindents{section}{1.9em}{0.9em}
+\cftsetindents{subsection}{4.0em}{1.5em}
+\else
+\cftsetindents{chapter}{0em}{1.5em}
+\cftsetindents{section}{1.5em}{2.2em}
+\cftsetindents{subsection}{3.7em}{2.9em}
+\fi
+\ifcqu@seriftoc
+\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}
+\renewcommand{\cftchapfont}{\zihao{4}\sffamily\heiti}
+\renewcommand{\cftsecfont}{\zihao{5}\sffamily\heiti}
+\renewcommand{\cftsubsecfont}{\zihao{5}}
+\fi
+\newlistof[chapter]{equations}{equ}{\listofequationsname}
+\newcommand{\listeq}[1]{%
+\addcontentsline{equ}{equations}{\protect\numberline{\theequation}#1}\par}
+\setlength{\cftequationsnumwidth}{2.5em}
+\let\eqlist\listeq
+\tocloftpagestyle{style@normal}
+\renewcommand{\cfttoctitlefont}{%
+\phantomsection\pdfbookmark[0]{\cqu@tocnameinbkmark}{toc}\cqu@fixhead\hfill\heiti\zihao{3}}
+\renewcommand{\cftloftitlefont}{\cqu@fixhead\hfill\heiti\zihao{3}}
+\renewcommand{\cftlottitlefont}{\cqu@fixhead\hfill\heiti\zihao{3}}
+\renewcommand{\cftequtitlefont}{\cqu@fixhead\hfill\heiti\zihao{3}}
+\renewcommand{\cftaftertoctitle}{\hfill}
+\renewcommand{\cftafterloftitle}{\hfill}
+\renewcommand{\cftafterlottitle}{\hfill}
+\renewcommand{\cftafterequtitle}{\hfill}
+\ifcqu@continuoustoc\relax\else
+\renewcommand{\@cfttocstart}{\clearpage}
+\renewcommand{\@cfttocfinish}{\clearpage}
+\fi
+\newcommand{\chapterstar}[1]{%
+\chapter*{#1}%
+\phantomsection
+\@mkboth{#1}{}
+\addcontentsline{toc}{chapter}{#1}}
+\bibpunct{[}{]}{,}{s}{}{,}
+\renewcommand\NAT@citesuper[3]{\ifNAT@swa%
+\unskip\kern\p@\textsuperscript{\NAT@@open #1\NAT@@close}%
+\if*#3*\else\ (#3)\fi\else #1\fi\endgroup}
+\DeclareRobustCommand\inlinecite{\@inlinecite}
+\def\@inlinecite#1{\begingroup\let\@cite\NAT@citenum\citep{#1}\endgroup}
+\let\onlinecite\inlinecite
+\pretocmd{\bibliography}{%
+\clearpage\phantomsection\addcontentsline{toc}{chapter}{\cqu@bib@name}}{}{}
+\AtBeginDocument{%
+\pretocmd{\bibliography}{\begingroup\zihao{5}}{}{}
+\apptocmd{\bibliography}{\endgroup}{}{}
+}%AtBeginDocument
+\renewcommand\@biblabel[1]{\zihao{5}[#1]}
+\renewenvironment{thebibliography}[1]
+{\chapter*{\cqu@bib@name
+\@mkboth{\cqu@bib@name}{}}%
+\list{\@biblabel{\@arabic\c@enumiv}}%
+{\settowidth\labelwidth{\@biblabel{#1}}%
+\leftmargin\labelwidth
+\advance\leftmargin\labelsep
+\setlength{\parsep}{1mm}
+\setlength{\labelsep}{0.5em}
+\setlength{\itemsep}{0.05pc}
+\setlength{\listparindent}{0in}
+\setlength{\itemindent}{0in}
+\setlength{\rightmargin}{0in}
+\@openbib@code
+\usecounter{enumiv}%
+\let\p@enumiv\@empty
+\renewcommand\theenumiv{\@arabic\c@enumiv}}%
+\sloppy
+\clubpenalty4000
+\@clubpenalty\clubpenalty
+\widowpenalty4000%
+\sfcode`\.\@m
+}{%
+\def\@noitemerr
+{\@latex@warning{Empty `thebibliography' environment}}%
+\endlist \vskip.2in}
+\AtEndOfClass{\input{cquthesis.cfg}}
+\endinput
+%%
+%% End of file `cquthesis.cls'.
diff --git a/Master/texmf-dist/tex/latex/cquthesis/cquthesis.sty b/Master/texmf-dist/tex/latex/cquthesis/cquthesis.sty
new file mode 100644
index 00000000000..7687abb02bc
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/cquthesis/cquthesis.sty
@@ -0,0 +1,61 @@
+\ProvidesPackage{cquthesis}[2016/06/09 The place for your beloved packages and customization.]
+
+%=====你可以在这里使用\RequirePackage[包选项]{包名称}导入想用的Package=======
+%=====以及定义你自己的功能和常量=======
+\newcommand{\speakyourlove}[1][Mom]{\emph{#1, I Love You!}}
+
+
+
+
+
+
+
+
+
+% 晶向指数支持,如果需要请取消下面两行注释:
+% \RequirePackage{miller}
+% \pretocmd{\hkl}{{ }}{}{}
+
+
+% 这两个个宏包仅供参考,未必使用:
+% \RequirePackage{floatflt} % 图文混排用宏包
+% \RequirePackage{rotating} % 图形和表格的控制旋转
+
+%========一些推荐功能=========
+% 用中文双引号括起文字
+\newcommand{\qthis}[1]{{“}#1{”}}
+%交叉引用图X、表X、方程X(此处为向前兼容,强烈推荐使用\autoref{label})
+\newcommand{\figref}[1]{图\ref{#1}}
+\newcommand{\tabref}[1]{表\ref{#1}}
+%\eqref已经改写过
+
+%================================
+%**********代码开发区域***********
+%================================
+
+% 借用 ltxdoc 里面的几个命令。
+\def\cmd#1{\cs{\expandafter\cmd@to@cs\string#1}}
+\def\cmd@to@cs#1#2{\char\number`#2\relax}
+\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}}
+\DeclareRobustCommand\csgo[2]{\cs{#1\{#2\}}}
+
+\newcommand*{\meta}[1]{{%
+ \ensuremath{\langle}\rmfamily\itshape#1\/\ensuremath{\rangle}}}
+\providecommand\marg[1]{%
+ {\ttfamily\char`\{}\meta{#1}{\ttfamily\char`\}}}
+\providecommand\oarg[1]{%
+ {\ttfamily[}\meta{#1}{\ttfamily]}}
+\providecommand\parg[1]{%
+ {\ttfamily(}\meta{#1}{\ttfamily)}}
+\providecommand\pkg[1]{{\sffamily#1}}
+
+% 文件夹列表
+\usepackage{dirtree}
+% The following is a dummy icon command
+\newcommand\myicon[1]{{\color{#1}\rule{2ex}{2ex}}}
+% If you have actual icon images, use \includegraphics to include them
+% If you are generating them, put in the appropriate code for them here
+% now we make a command for a folder/file which inserts the icon and its label
+% adjust this as needed. If you only have 2 icons, then you could create
+% a \myfile and \myfolder command with the icon fixed.
+\newcommand{\myfolder}[2]{\myicon{#1}\ {#2}} \ No newline at end of file
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 519040d8795..e85aedc0cb3 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -167,7 +167,7 @@ my @TLP_working = qw(
coordsys copyedit copyrightbox coseoul
countriesofeurope counttexruns courier-scaled courseoutline coursepaper
coverpage covington
- cprotect
+ cprotect cquthesis
crbox crimson crop
crossreference crossrefware crossword crosswrd cryptocode cryst
cs csbulletin cslatex csplain csquotes csquotes-de csvsimple cstex
diff --git a/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc b/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc
index 23701d44912..173a660a159 100644
--- a/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc
@@ -37,6 +37,7 @@ depend classicthesis
depend cleanthesis
depend cmpj
depend confproc
+depend cquthesis
depend dccpaper
depend dithesis
depend ebook
diff --git a/Master/tlpkg/tlpsrc/cquthesis.tlpsrc b/Master/tlpkg/tlpsrc/cquthesis.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/cquthesis.tlpsrc