Initial commit

This commit is contained in:
2023-12-07 15:07:03 +08:00
commit 46de811811
18 changed files with 524 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
*.acn
*.acr
*.alg
*.aux
*.bak
*.bbl
*.bcf
*.blg
*.brf
*.bst
*.dvi
*.fdb_latexmk
*.fls
*.glg
*.glo
*.gls
*.idx
*.ilg
*.ind
*.ist
*.lof
*.log
*.lol
*.lot
*.maf
*.mtc
*.mtc1
*.nav
*.nlo
*.nls
*.out
*.pdf
*.pyg
*.run.xml
*.snm
*.synctex.gz
*.tex.backup
*.tex~
*.thm
*.toc
*.vrb
*.xdy
*.xml
*blx.bib
.bak
.mtc
build/
+3
View File
@@ -0,0 +1,3 @@
[submodule "thesis-starter"]
path = thesis-starter
url = ssh://git@gitlab.jun.com:222/Junior/thesis-starter.git
+26
View File
@@ -0,0 +1,26 @@
@echo off
@rem Copyright (c) 2008-2009 solvethis
@rem Copyright (c) 2010-2012,2019 Casper Ti. Vector
@rem Public domain.
if "%1"=="" goto doc
if "%1"=="doc" goto doc
if "%1"=="clean" (goto clean) else (goto usage)
:doc
latexmk
goto end
:clean
latexmk -c
goto end
:usage
echo %0 [doc] [clean]
goto end
:end
pause
@rem vim:ts=4:sw=4
+12
View File
@@ -0,0 +1,12 @@
% Copyright (c) 2014,2016,2021 Casper Ti. Vector
% Public domain.
\begin{cabstract}
\pkuthssffaq % 中文测试文字。
\end{cabstract}
\ifblind\begin{beabstract}\else\begin{eabstract}\fi
Test of the English abstract.
\ifblind\end{beabstract}\else\end{eabstract}\fi
% vim:ts=4:sw=4
+7
View File
@@ -0,0 +1,7 @@
% Copyright (c) 2014,2016 Casper Ti. Vector
% Public domain.
\chapter{致谢}
\pkuthssffaq % 中文测试文字。
% vim:ts=4:sw=4
+7
View File
@@ -0,0 +1,7 @@
% Copyright (c) 2014,2016,2018 Casper Ti. Vector
% Public domain.
\chapter{引言}
\pkuthssffaq % 中文测试文字。
% vim:ts=4:sw=4
+7
View File
@@ -0,0 +1,7 @@
% Copyright (c) 2014,2016 Casper Ti. Vector
% Public domain.
\chapter{章节}
\pkuthssffaq % 中文测试文字。
% vim:ts=4:sw=4
+7
View File
@@ -0,0 +1,7 @@
% Copyright (c) 2014,2016,2018 Casper Ti. Vector
% Public domain.
\chapter{结论和展望}
\pkuthssffaq % 中文测试文字。
% vim:ts=4:sw=4
+45
View File
@@ -0,0 +1,45 @@
% Copyright (c) 2008-2009 solvethis
% Copyright (c) 2010-2017,2021 Casper Ti. Vector
% All rights reserved.
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provided that the following conditions are
% met:
%
% * Redistributions of source code must retain the above copyright notice,
% this list of conditions and the following disclaimer.
% * Redistributions in binary form must reproduce the above copyright
% notice, this list of conditions and the following disclaimer in the
% documentation and/or other materials provided with the distribution.
% * Neither the name of Peking University nor the names of its contributors
% may be used to endorse or promote products derived from this software
% without specific prior written permission.
%
% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
% IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
% THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
% PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
% CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
% EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
% PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
% PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
% LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
% NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
% SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
% 此处不用 \specialchap,因为学校要求目录不包括其自己及其之前的内容。
\chapter*{版权声明}
% 综合学校的书面要求及 Word 模版来看,版权声明页不用加页眉、页脚。
\thispagestyle{empty}
任何收存和保管本论文各种版本的单位和个人,
未经本论文作者同意,不得将本论文转借他人,
亦不得随意复制、抄录、拍照或以任何方式传播。
否则,引起有碍作者著作权之问题,将可能承担法律责任。
% 若须排版二维码,请将二维码图片重命名为“barcode”,
% 转为合适的图片格式,并放在当前目录下,然后去掉下面 2 行的注释。
%\vfill\noindent
%\includegraphics[height = 5em]{barcode}
% vim:ts=4:sw=4
+7
View File
@@ -0,0 +1,7 @@
% Copyright (c) 2014,2016 Casper Ti. Vector
% Public domain.
\chapter{附件}
\pkuthssffaq % 中文测试文字。
% vim:ts=4:sw=4
+84
View File
@@ -0,0 +1,84 @@
% Copyright (c) 2008-2009 solvethis
% Copyright (c) 2010-2017,2021 Casper Ti. Vector
% Copyright (c) 2021 Kurapica
% All rights reserved.
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provided that the following conditions are
% met:
%
% * Redistributions of source code must retain the above copyright notice,
% this list of conditions and the following disclaimer.
% * Redistributions in binary form must reproduce the above copyright
% notice, this list of conditions and the following disclaimer in the
% documentation and/or other materials provided with the distribution.
% * Neither the name of Peking University nor the names of its contributors
% may be used to endorse or promote products derived from this software
% without specific prior written permission.
%
% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
% IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
% THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
% PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
% CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
% EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
% PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
% PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
% LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
% NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
% SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
{
\ctexset{section = {
format+ = {\centering}, beforeskip = {40bp}, afterskip = {15bp}
}}
\specialchap{北京大学学位论文原创性声明和使用授权说明}
% 学校书面要求本页面不要页码,但在给出的 Word 模版中又有页码。
% 此处以学校书面要求为准。
\thispagestyle{empty}
\mbox{}\vspace*{-3em}
\section*{原创性声明}
本人郑重声明:
所呈交的学位论文,是本人在导师的指导下,独立进行研究工作所取得的成果。
除文中已经注明引用的内容外,
本论文不含任何其他个人或集体已经发表或撰写过的作品或成果。
对本文的研究做出重要贡献的个人和集体,均已在文中以明确方式标明。
本声明的法律结果由本人承担。
\vskip 1em
\rightline{%
论文作者签名:\hspace{5em}%
日期:\hspace{2em}年\hspace{2em}月\hspace{2em}日%
}
\section*{%
学位论文使用授权说明\\[-0.33em]
\textmd{\zihao{5}(必须装订在提交学校图书馆的印刷本)}%
}
本人完全了解北京大学关于收集、保存、使用学位论文的规定,即:
\begin{itemize}
\item 按照学校要求提交学位论文的印刷本和电子版本;
\item 学校有权保存学位论文的印刷本和电子版,
并提供目录检索与阅览服务,在校园网上提供服务;
\item 学校可以采用影印、缩印、数字化或其它复制手段保存论文;
\item 因某种特殊原因须要延迟发布学位论文电子版,
授权学校 $\Box$\nobreakspace{}一年 /
$\Box$\nobreakspace{}两年 /
$\Box$\nobreakspace{}三年以后,在校园网上全文发布。
\end{itemize}
\centerline{(保密论文在解密后遵守此规定)}
\vskip 1em
\rightline{%
论文作者签名:\hspace{5em}导师签名:\hspace{5em}%
日期:\hspace{2em}年\hspace{2em}月\hspace{2em}日%
}
% 若须排版二维码,请将二维码图片重命名为“barcode”,
% 转为合适的图片格式,并放在当前目录下,然后去掉下面 2 行的注释。
%\vfill\noindent
%\includegraphics[height = 5em]{barcode}
}
% vim:ts=4:sw=4
+58
View File
@@ -0,0 +1,58 @@
\ProvidesExplFile{\ExplFileName}{}{}{}
\sys_if_engine_pdftex:TF
{
\ctex_zhmap_case:nnn
{
\ctex_punct_set:n { windows }
\setCJKmainfont
[ BoldFont = simhei.ttf , ItalicFont = simkai.ttf ] { simsun.ttc }
\setCJKsansfont { simhei.ttf }
\setCJKmonofont { simfang.ttf }
\setCJKfamilyfont { zhkai } { simkai.ttf }
\setCJKfamilyfont { zhfs } { simfang.ttf }
\setCJKfamilyfont { zhsong } { simsun.ttc }
\setCJKfamilyfont { zhhei } { simhei.ttf }
%\setCJKfamilyfont { zhli } { simli.ttf }
%\setCJKfamilyfont { zhyou } { simyou.ttf }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
\ctex_punct_map_family:nn { \CJKsfdefault } { zhhei }
\ctex_punct_map_family:nn { \CJKttdefault } { zhfs }
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei }
}
{
\ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { windows }
\ctex_punct_set:n { windows }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei }
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
}
{
\tl_set:Nn \CJKrmdefault { rm }
\tl_set:Nn \CJKsfdefault { sf }
\tl_set:Nn \CJKttdefault { tt }
}
}
{
\setCJKmainfont
[ BoldFont = SimHei , ItalicFont = KaiTi ] { SimSun }
\setCJKsansfont { SimHei }
\setCJKmonofont { FangSong }
\setCJKfamilyfont { zhsong } { SimSun }
\setCJKfamilyfont { zhhei } { SimHei }
\setCJKfamilyfont { zhkai } { KaiTi }
\setCJKfamilyfont { zhfs } { FangSong }
%\setCJKfamilyfont { zhli } { LiSu }
%\setCJKfamilyfont { zhyou } { YouYuan }
}
\NewDocumentCommand \songti { } { \CJKfamily { zhsong } }
\NewDocumentCommand \heiti { } { \CJKfamily { zhhei } }
\NewDocumentCommand \fangsong { } { \CJKfamily { zhfs } }
\NewDocumentCommand \kaishu { } { \CJKfamily { zhkai } }
%\NewDocumentCommand \lishu { } { \CJKfamily { zhli } }
%\NewDocumentCommand \youyuan { } { \CJKfamily { zhyou } }
\endinput
% vim:ft=tex:ts=2:sw=2:et
+4
View File
@@ -0,0 +1,4 @@
\ProvidesExplFile{\ExplFileName}{}{}{}
\keys_set:nn { ctex / option } { fontset = pkuthss }
\endinput
% vim:ft=tex
+14
View File
@@ -0,0 +1,14 @@
# Copyright (c) 2019 Casper Ti. Vector
# Public domain.
@default_files = ('thesis');
# 5:xelatex;3:latex(+ dvipdfmx);1:pdflatex。
$pdf_mode = 5;
# 用 latex 模式编译时,使用 dvipdfmx 而非默认的 dvipdf。
$dvipdf = "dvipdfmx %O -o %D %S";
# 此选项相关说明见 texdoc latexmk。
$bibtex_use = 1.5;
$biber = "biber -l zh__pinyin --output-safechars %O %S";
# latexmk -c 时自动删除 .run.xml 文件。
$clean_ext = "run.xml";
+46
View File
@@ -0,0 +1,46 @@
% Copyright (c) 2018-2019,2022 Casper Ti. Vector
% Public domain.
\documentclass[UTF8, zihao = -4]{ctexart}
\usepackage{calc, geometry, graphicx}
% 如须用 xelatex 编译,请参考 pkuthss.cls 修改字体设置。
\usepackage{textcomp, mathptmx}
\usepackage[scaled = 0.95]{helvet}
\pagestyle{empty}
\newlength{\colpad}
\newcommand{\colwidth}{0.99\ccwd}
% 设定论文纸尺寸。
\geometry{paperwidth = 460mm, paperheight = 297mm, margin = 0cm}
% 设定页面宽度、背面 logo 直径和书脊上下边界宽度。
\newcommand{\miniwidth}{210mm}
\newcommand{\logowidth}{64mm}
\newcommand{\vertmargin}{\fill}
% 减号前的值为论文厚度。
\setlength{\colpad}{(10mm - \colwidth) / 2}
\begin{document}
\centering
\begin{minipage}[b][\textheight][b]{\miniwidth}
\vspace*{\fill}\par
\centerline{\includegraphics[width = \logowidth]{pkulogo}}\par
\vspace*{\fill}\par
\end{minipage}
\hspace{\colpad}
\begin{minipage}[b][\textheight][b]{\colwidth}
\bfseries\linespread{1}\selectfont
\vspace*{\vertmargin}\par
% 标题、年份和学号。
测试文档\par\vfill
\rotatebox{-90}{2018}\par\vfill\rotatebox{-90}{0123456789}\par
\vspace*{\vertmargin}\par
\end{minipage}
\hspace{\colpad}
\begin{minipage}[b][\textheight][b]{\miniwidth}
% thesis.pdf 应事先编译好,此处会自动提取其首页。
% 因为要插入 pdf 图片,本文档应用 pdflatex 编译。
\includegraphics[height = \textheight, page = 1]{thesis}
\end{minipage}
\end{document}
% vim:ts=4:sw=4
+1
Submodule thesis-starter added at 53b2ae3688
+19
View File
@@ -0,0 +1,19 @@
@article{test-en,
author = {Author},
title = {Title},
type = {J},
journal = {Journal},
date = {2014-04-01},
language = {english},
}
@article{test-zh,
author = {作者},
title = {标题},
type = {J},
journal = {期刊},
date = {2014-04-01},
language = {chinese},
}
% vim:ts=4:sw=4
+130
View File
@@ -0,0 +1,130 @@
% Copyright (c) 2008-2009 solvethis
% Copyright (c) 2010-2016,2018-2019,2021-2022 Casper Ti. Vector
% Copyright (c) 2021 Kurapica
% Public domain.
%
% 使用前请先仔细阅读 pkuthss 和 biblatex-caspervector 的文档,
% 特别是其中的 FAQ 部分和用红色强调的部分。
% 两者可在终端/命令提示符中用
% texdoc pkuthss
% texdoc biblatex-caspervector
% 调出。
% 如果格式审查提示字号不严格符合标准,可以在 [] 中加入“ugly”选项。
\documentclass[UTF8]{pkuthss}
% 如果的确须要使脚注按页编号的话,可以去掉后面 footmisc 包的注释。
%\usepackage[perpage]{footmisc}
% 使用 biblatex 排版参考文献,并规定其格式(详见 biblatex-caspervector 的文档)。
% 这里按照西文文献在前,中文文献在后排序(“sorting = ecnyt”);
% 若须按照中文文献在前,西文文献在后排序,请设置“sorting = cenyt”;
% 若须按照引用顺序排序,请设置“sorting = none”。
% 若须在排序中实现更复杂的需求,请参考 biblatex-caspervector 的文档。
% biblatex-caspervector 也有一个“ugly”选项,使其更像国标格式;此外也可考虑
% 改用 style = gb7714-2015 并去掉之后两选项,详见 biblatex-gb7714-2015 的文档。
\usepackage[backend = biber, style = caspervector, utf8, sorting = ecnyt]{biblatex}
% 对于 linespread 值的计算过程有兴趣的同学可以参考 pkuthss.cls。
\renewcommand*{\bibfont}{\zihao{5}\linespread{1.27}\selectfont}
% 按学校要求设定参考文献列表的段间距。
\setlength{\bibitemsep}{3bp}
% 如是双盲版论文,将 \blindfalse 改为 \blindtrue。后面可用
% \ifblind 根据是否双盲来条件地启用代码(参见本文件后面部分)。
\newif\ifblind\blindfalse
% 设定文档的基本信息。
\pkuthssinfo{
cthesisname = {博士学位论文}, ethesisname = {Doctor Thesis},
thesiscover = {博士研究生学位论文},
% 长标题可用 \thssnl 强制换行,不能用“\\”(双盲版会出错)。
ctitle = {测试文档},
etitle = {Test Document},
cauthor = {某某}, eauthor = {Test}, date = {某年某月},
studentid = {0123456789}, school = {某某学院},
cmajor = {某某专业}, emajor = {Some Major},
direction = {某某方向}, mentorlines = {2},
cmentor = {某甲教授\\某乙教授},
ementor = {Prof.\ Somebody and Prof.\ Someone},
ckeywords = {其一,其二},
ekeywords = {First, Second},
% 以下两项无双盲评审需求的用户可保持原状。
% 注意 discipline/major 分别指一/二级学科。
blindid = {9876543210}, discipline = {某某学科}
}
% 载入参考文献数据库(注意不要省略“.bib”)。
\addbibresource{thesis.bib}
% 普通用户可删除此段,并相应地删除 chap/*.tex 中的
% “\pkuthssffaq % 中文测试文字。”一行。
\usepackage{color}
\def\pkuthssffaq{%
\emph{\textcolor{red}{pkuthss 文档模版最常见问题:}}
\texttt{\string\cite}、\texttt{\string\parencite} %
和 \texttt{\string\supercite} 三个命令分别产生%
未格式化的、带方括号的和上标且带方括号的引用标记:%
\cite{test-en},\parencite{test-zh}、\supercite{test-en, test-zh}。
若格式审查时提示字号或其它格式细节问题,请启用 pkuthss 的 \texttt{ugly}
选项,同时可以考虑启用 biblatex-caspervector 的 \texttt{ugly} 选项
或者换用 biblatex-gb7714-2015,详见 \texttt{thesis.tex} 中相关注释。
生成的 PDF 文件中标记链接的彩色框不会出现在打印版论文中。
如仍须去掉,可在 \texttt{thesis.tex} 导言区加入
\texttt{\string\hypersetup\string{hidelinks\string}}。
若要避免章末空白页,请在调用 pkuthss 文档类时加入 \texttt{openany} 选项。
如果编译时不出参考文献,
请参考 \texttt{texdoc pkuthss}“问题及其解决”一章
“上游宏包可能引起的问题”一节中关于 biber 的说明。
因无法假定用户使用哪种方式排版表格,用户须自行保证表格字号符合学校规定。%
}
\begin{document}
% 以下为正文之前的部分,默认不进行章节编号。
\frontmatter
% 此后到下一 \pagestyle 命令之前不排版页眉或页脚。
\pagestyle{empty}
% 自动生成封面。
\ifblind\makeblind\else\maketitle\fi
% 版权声明。封面要求单面打印,故须新开右页。
\cleardoublepage
\include{chap/copy}
% 此后到下一 \pagestyle 命令之前正常排版页眉和页脚。
\cleardoublepage
\pagestyle{plain}
% 重置页码计数器,用大写罗马数字排版此部分页码。
\setcounter{page}{0}
\pagenumbering{Roman}
% 中西文摘要。
\include{chap/abs}
% 自动生成目录。
\tableofcontents
% 以下为正文部分,默认要进行章节编号。
\mainmatter
% 各章节。
\include{chap/chap1}
\include{chap/chap2}
\include{chap/chap3}
% 正文中的附录部分。
\appendix
% 排版参考文献列表。bibintoc 选项使“参考文献”出现在目录中;
% 如果同时要使参考文献列表参与章节编号,可将“bibintoc”改为“bibnumbered”。
\printbibliography[heading = bibintoc]
% 各附录。
\include{chap/encl1}
% 以下为正文之后的部分,默认不进行章节编号。
\backmatter
% 致谢。
\ifblind\else\include{chap/ack}\fi
% 原创性声明和使用授权说明。
\include{chap/origin}
\end{document}
% vim:ts=4:sw=4