├── pkuthss-gbk.def ├── ctexopts.cfg ├── chap ├── ack.tex ├── chap2.tex ├── encl1.tex ├── chap1.tex ├── chap3.tex ├── abs.tex ├── copy.tex ├── sheet.tex └── origin.tex ├── .gitignore ├── thesis.bib ├── Make.bat ├── README.md ├── latexmkrc ├── spine.tex ├── pkuthss-utf8.def ├── ctex-fontset-pkuthss.def ├── thesis.tex ├── pkulogo.eps ├── pkuword.eps └── pkuthss.cls /pkuthss-gbk.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wongsingfo/pku-grad-thesis/HEAD/pkuthss-gbk.def -------------------------------------------------------------------------------- /ctexopts.cfg: -------------------------------------------------------------------------------- 1 | \ProvidesExplFile{\ExplFileName}{}{}{} 2 | \keys_set:nn { ctex / option } { fontset = pkuthss } 3 | \endinput 4 | % vim:ft=tex 5 | -------------------------------------------------------------------------------- /chap/ack.tex: -------------------------------------------------------------------------------- 1 | % Copyright (c) 2014,2016 Casper Ti. Vector 2 | % Public domain. 3 | 4 | \chapter{致谢} 5 | \pkuthssffaq % 中文测试文字。 6 | 7 | % vim:ts=4:sw=4 8 | -------------------------------------------------------------------------------- /chap/chap2.tex: -------------------------------------------------------------------------------- 1 | % Copyright (c) 2014,2016 Casper Ti. Vector 2 | % Public domain. 3 | 4 | \chapter{章节} 5 | \pkuthssffaq % 中文测试文字。 6 | 7 | % vim:ts=4:sw=4 8 | -------------------------------------------------------------------------------- /chap/encl1.tex: -------------------------------------------------------------------------------- 1 | % Copyright (c) 2014,2016 Casper Ti. Vector 2 | % Public domain. 3 | 4 | \chapter{附件} 5 | \pkuthssffaq % 中文测试文字。 6 | 7 | % vim:ts=4:sw=4 8 | -------------------------------------------------------------------------------- /chap/chap1.tex: -------------------------------------------------------------------------------- 1 | % Copyright (c) 2014,2016,2018 Casper Ti. Vector 2 | % Public domain. 3 | 4 | \chapter{引言} 5 | \pkuthssffaq % 中文测试文字。 6 | 7 | % vim:ts=4:sw=4 8 | -------------------------------------------------------------------------------- /chap/chap3.tex: -------------------------------------------------------------------------------- 1 | % Copyright (c) 2014,2016,2018 Casper Ti. Vector 2 | % Public domain. 3 | 4 | \chapter{结论和展望} 5 | \pkuthssffaq % 中文测试文字。 6 | 7 | % vim:ts=4:sw=4 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *.swp 3 | 4 | *.aux 5 | *.log 6 | *.bbl 7 | *.bcf 8 | *.blg 9 | *.fdb_latexmk 10 | *.fls 11 | *.out 12 | *.run.xml 13 | *.synctex.gz 14 | *.toc 15 | *.xdv 16 | *.synctex(busy) 17 | 18 | *.pdf 19 | 20 | 21 | -------------------------------------------------------------------------------- /chap/abs.tex: -------------------------------------------------------------------------------- 1 | % Copyright (c) 2014,2016,2021 Casper Ti. Vector 2 | % Public domain. 3 | 4 | \begin{cabstract} 5 | \pkuthssffaq % 中文测试文字。 6 | \end{cabstract} 7 | 8 | \ifblind\begin{beabstract}\else\begin{eabstract}\fi 9 | Test of the English abstract. 10 | \ifblind\end{beabstract}\else\end{eabstract}\fi 11 | 12 | % vim:ts=4:sw=4 13 | -------------------------------------------------------------------------------- /thesis.bib: -------------------------------------------------------------------------------- 1 | @article{test-en, 2 | author = {Author}, 3 | title = {Title}, 4 | type = {J}, 5 | journal = {Journal}, 6 | date = {2014-04-01}, 7 | language = {english}, 8 | } 9 | 10 | @article{test-zh, 11 | author = {作者}, 12 | title = {标题}, 13 | type = {J}, 14 | journal = {期刊}, 15 | date = {2014-04-01}, 16 | language = {chinese}, 17 | } 18 | 19 | % vim:ts=4:sw=4 20 | -------------------------------------------------------------------------------- /Make.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | @rem Copyright (c) 2008-2009 solvethis 4 | @rem Copyright (c) 2010-2012,2019 Casper Ti. Vector 5 | @rem Public domain. 6 | 7 | if "%1"=="" goto doc 8 | if "%1"=="doc" goto doc 9 | if "%1"=="clean" (goto clean) else (goto usage) 10 | 11 | :doc 12 | latexmk 13 | goto end 14 | 15 | :clean 16 | latexmk -c 17 | goto end 18 | 19 | :usage 20 | echo %0 [doc] [clean] 21 | goto end 22 | 23 | :end 24 | pause 25 | 26 | @rem vim:ts=4:sw=4 27 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # pku-grad-thesis 2 | 3 | 北京大学本科生毕业论文 latex 模版,基于 pkuthss 1.9.0 修改。 4 | 5 | 因为本科生毕业论文格式要求和博士学位论文有所不同,所以该项目主要对格式文件 `pkuthss.cls` 进行了修改和补充,包括:字体字号的设置、页眉的设置、文献的排序、导师评阅表的添加等。 6 | 7 | ## 编译配置 8 | 9 | 1. 从 https://fontzone.net/ 下载并安装中文字体。所需要的字体文件有:`simsun.ttf`, `simfang.ttf` (搜关键词 fangsong), `simhei.ttf`, `KaiTi.ttf`。字体安装完成后可能要重启一下系统。 10 | 1. 安装 Latex 11 | - MacOS: 从 http://www.tug.org/mactex/ 下载并安装 MacTeX。 12 | - Windows: 从 https://www.tug.org/texlive/ 下载并安装 Texlive-full. 13 | 14 | ## 编译命令 15 | 16 | 在终端下,输入命令: 17 | 18 | ```shell 19 | # 切换工作目录 20 | cd pku-grad-thesis 21 | # 编译 22 | latexmk 23 | ``` 24 | 25 | 清理编译产生的中间文件: 26 | 27 | ``` 28 | latexmk -c 29 | ``` 30 | 31 | ## IDE 配置 32 | 33 | ### Visual Studio Code 34 | 35 | 1. 安装插件 LaTeX Workshop 36 | 2. 在左侧的插件页面中,选择 Build LaTeX project 中的 Recipe: latexmk (latexmkrc) 37 | 38 | ### TeXstudio 39 | 40 | 1. 将选项的 Build 页面卡中 Build & View 的一项修改为: 41 | 42 | ``` 43 | latexmk -silent -synctex=1 % | txs:///view-pdf 44 | ``` 45 | 46 | 2. 选择编译并查看 47 | -------------------------------------------------------------------------------- /latexmkrc: -------------------------------------------------------------------------------- 1 | # vim: set ft=perl: 2 | # Copyright (c) 2019 Casper Ti. Vector 3 | # Public domain. 4 | # Credit to http://ctan.math.washington.edu/tex-archive/support/latexmk/latexmk.pdf 5 | 6 | @default_files = ('thesis.tex'); 7 | 8 | # Generate pdf using: 9 | # 1, generate a pdf version of the document using pdflatex, using the command specified by the $pdflatex variable. 10 | # 3:generate a pdf version of the document from the dvi file, by using the command specified by the $dvipdf variable. 11 | # 5:generate a pdf version (and an xdv version) of the document using xelatex, using the commands specified by the 12 | # $xelatex and xdvipdfmx variables. 13 | $pdf_mode = 5; 14 | 15 | $xelatex = 'xelatex -synctex=1 -interaction=nonstopmode --shell-escape -no-pdf %O %S'; 16 | $xdvipdfmx = "xdvipdfmx -q -E -o %D %O %S"; 17 | 18 | $bibtex_use = 1.5; 19 | 20 | $biber = "biber -l zh__pinyin --output-safechars %O %S"; 21 | 22 | # latexmk -c 时自动删除 .run.xml 文件。 23 | $clean_ext = "run.xml"; 24 | 25 | $makeindex = "makeindex -s gind.ist %O -o %D %S"; -------------------------------------------------------------------------------- /spine.tex: -------------------------------------------------------------------------------- 1 | % Copyright (c) 2018-2019 Casper Ti. Vector 2 | % Public domain. 3 | 4 | \documentclass[UTF8, zihao = -4]{ctexart} 5 | \usepackage{calc, geometry, graphicx} 6 | \usepackage[defaultsups]{newtxtext} 7 | \usepackage[cmintegrals, varg]{newtxmath} 8 | \pagestyle{empty} 9 | \newlength{\colpad} 10 | \newcommand{\colwidth}{0.99\ccwd} 11 | 12 | % 设定论文纸尺寸。 13 | \geometry{paperwidth = 460mm, paperheight = 297mm, margin = 0cm} 14 | % 设定页面宽度、背面 logo 直径和书脊上下边界宽度。 15 | \newcommand{\miniwidth}{210mm} 16 | \newcommand{\logowidth}{64mm} 17 | \newcommand{\vertmargin}{\fill} 18 | % 减号前的值为论文厚度。 19 | \setlength{\colpad}{(10mm - \colwidth) / 2} 20 | 21 | \begin{document} 22 | \centering 23 | \begin{minipage}[b][\textheight][b]{\miniwidth} 24 | \vspace*{\fill}\par 25 | \centerline{\includegraphics[width = \logowidth]{pkulogo}}\par 26 | \vspace*{\fill}\par 27 | \end{minipage} 28 | \hspace{\colpad} 29 | \begin{minipage}[b][\textheight][b]{\colwidth} 30 | \bfseries\linespread{1}\selectfont 31 | \vspace*{\vertmargin}\par 32 | % 标题、年份和学号。 33 | 测试文档\par\vfill 34 | \rotatebox{-90}{2018}\par\vfill\rotatebox{-90}{0123456789}\par 35 | \vspace*{\vertmargin}\par 36 | \end{minipage} 37 | \hspace{\colpad} 38 | \begin{minipage}[b][\textheight][b]{\miniwidth} 39 | % thesis.pdf 应事先编译好,此处会自动提取其首页。 40 | % 因为要插入 pdf 图片,本文档应用 pdflatex 或 xelatex 编译。 41 | \includegraphics[height = \textheight, page = 1]{thesis} 42 | \end{minipage} 43 | \end{document} 44 | 45 | % vim:ts=4:sw=4 46 | -------------------------------------------------------------------------------- /pkuthss-utf8.def: -------------------------------------------------------------------------------- 1 | % Peking University dissertation document class 2 | % 3 | % Copyright (c) 2008-2009 solvethis 4 | % Copyright (c) 2010-2013,2015,2021 Casper Ti. Vector 5 | % Copyright (c) 2021 Kurapica 6 | % 7 | % This work may be distributed and/or modified under the conditions of the 8 | % LaTeX Project Public License, either version 1.3 of this license or (at 9 | % your option) any later version. 10 | % The latest version of this license is in 11 | % https://www.latex-project.org/lppl.txt 12 | % and version 1.3 or later is part of all distributions of LaTeX version 13 | % 2005/12/01 or later. 14 | % 15 | % This work has the LPPL maintenance status `maintained'. 16 | % The current maintainer of this work is Casper Ti. Vector. 17 | % 18 | % This work consists of the following files: 19 | % pkuthss.cls 20 | % pkuthss-gbk.def 21 | % pkuthss-utf8.def 22 | % pkulogo.eps 23 | % pkuword.eps 24 | 25 | \ProvidesFile{pkuthss-utf8.def} 26 | [2021/03/29 v1.9.0 Labels and captions in UTF-8 encoding 27 | for the pkuthss document class] 28 | 29 | \def\label@ctitle{题目:} 30 | \def\label@cauthor{姓\hphantom{汉字}名:} 31 | \def\label@studentid{学\hphantom{汉字}号:} 32 | \def\label@school{院\hphantom{汉字}系:} 33 | \def\label@cmajor{本科专业:} 34 | \def\label@direction{研究方向:} 35 | \def\label@cmentor{指导老师:} 36 | \def\label@ementor{Directed by\ } 37 | \def\label@ckeywords{关键词:} 38 | \def\label@ekeywords{Keywords:\ } 39 | \def\label@blindcover{(匿名评阅论文封面)} 40 | \def\label@blindctitle{中文题目:} 41 | \def\label@blindetitle{英文题目:} 42 | \def\label@blinddiscipline{一级学科:} 43 | \def\label@blindmajor{二级学科:} 44 | \def\label@blindid{论文编号:} 45 | 46 | \def\titlepagename{封面} 47 | \def\cuniversity{北京大学} 48 | \def\euniversity{Peking University} 49 | \def\cthesisname{本科生毕业论文} 50 | \def\ethesisname{Doctor Thesis} 51 | \def\thesiscover{} 52 | \def\cabstractname{摘要} 53 | \def\eabstractname{Abstract} 54 | 55 | \endinput 56 | % vim:ft=tex:ts=2:sw=2 57 | -------------------------------------------------------------------------------- /chap/copy.tex: -------------------------------------------------------------------------------- 1 | % Copyright (c) 2008-2009 solvethis 2 | % Copyright (c) 2010-2017 Casper Ti. Vector 3 | % All rights reserved. 4 | % 5 | % Redistribution and use in source and binary forms, with or without 6 | % modification, are permitted provided that the following conditions are 7 | % met: 8 | % 9 | % * Redistributions of source code must retain the above copyright notice, 10 | % this list of conditions and the following disclaimer. 11 | % * Redistributions in binary form must reproduce the above copyright 12 | % notice, this list of conditions and the following disclaimer in the 13 | % documentation and/or other materials provided with the distribution. 14 | % * Neither the name of Peking University nor the names of its contributors 15 | % may be used to endorse or promote products derived from this software 16 | % without specific prior written permission. 17 | % 18 | % THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 19 | % IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 20 | % THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21 | % PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 22 | % CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 23 | % EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 24 | % PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 25 | % PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 26 | % LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 27 | % NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 28 | % SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | 30 | % 此处不用 \specialchap,因为学校要求目录不包括其自己及其之前的内容。 31 | \chapter*{版权声明} 32 | % 综合学校的书面要求及 Word 模版来看,版权声明页不用加页眉、页脚。 33 | \thispagestyle{empty} 34 | 35 | 任何收存和保管本论文各种版本的单位和个人, 36 | 未经本论文作者同意,不得将本论文转借他人, 37 | 亦不得随意复制、抄录、拍照或以任何方式传播。 38 | 否则一旦引起有碍作者著作权之问题,将可能承担法律责任。 39 | 40 | % 若须排版二维码,请将二维码图片重命名为“barcode”, 41 | % 转为合适的图片格式,并放在当前目录下,然后去掉下面 2 行的注释。 42 | %\vfill\noindent 43 | %\includegraphics[height = 5em]{barcode} 44 | 45 | % vim:ts=4:sw=4 46 | -------------------------------------------------------------------------------- /ctex-fontset-pkuthss.def: -------------------------------------------------------------------------------- 1 | \ProvidesExplFile{\ExplFileName}{}{}{} 2 | 3 | \sys_if_engine_pdftex:TF 4 | { 5 | \ctex_zhmap_case:nnn 6 | { 7 | \ctex_punct_set:n { windows } 8 | \setCJKmainfont 9 | [ BoldFont = simhei.ttf , ItalicFont = simkai.ttf ] { simsun.ttc } 10 | \setCJKsansfont { simhei.ttf } 11 | \setCJKmonofont { simfang.ttf } 12 | \setCJKfamilyfont { zhkai } { simkai.ttf } 13 | \setCJKfamilyfont { zhfs } { simfang.ttf } 14 | \setCJKfamilyfont { zhsong } { simsun.ttc } 15 | \setCJKfamilyfont { zhhei } { simhei.ttf } 16 | %\setCJKfamilyfont { zhli } { simli.ttf } 17 | %\setCJKfamilyfont { zhyou } { simyou.ttf } 18 | \ctex_punct_map_family:nn { \CJKrmdefault } { zhsong } 19 | \ctex_punct_map_family:nn { \CJKsfdefault } { zhhei } 20 | \ctex_punct_map_family:nn { \CJKttdefault } { zhfs } 21 | \ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai } 22 | \ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei } 23 | } 24 | { 25 | \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { windows } 26 | \ctex_punct_set:n { windows } 27 | \ctex_punct_map_family:nn { \CJKrmdefault } { zhsong } 28 | \ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei } 29 | \ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai } 30 | } 31 | { 32 | \tl_set:Nn \CJKrmdefault { rm } 33 | \tl_set:Nn \CJKsfdefault { sf } 34 | \tl_set:Nn \CJKttdefault { tt } 35 | } 36 | } 37 | { 38 | \setCJKmainfont 39 | [ BoldFont = SimHei , ItalicFont = KaiTi ] { SimSun } 40 | \setCJKsansfont { SimHei } 41 | \setCJKmonofont { FangSong } 42 | \setCJKfamilyfont { zhsong } { SimSun } 43 | \setCJKfamilyfont { zhhei } { SimHei } 44 | \setCJKfamilyfont { zhkai } { KaiTi } 45 | \setCJKfamilyfont { zhfs } { FangSong } 46 | %\setCJKfamilyfont { zhli } { LiSu } 47 | %\setCJKfamilyfont { zhyou } { YouYuan } 48 | } 49 | 50 | \NewDocumentCommand \songti { } { \CJKfamily { zhsong } } 51 | \NewDocumentCommand \heiti { } { \CJKfamily { zhhei } } 52 | \NewDocumentCommand \fangsong { } { \CJKfamily { zhfs } } 53 | \NewDocumentCommand \kaishu { } { \CJKfamily { zhkai } } 54 | %\NewDocumentCommand \lishu { } { \CJKfamily { zhli } } 55 | %\NewDocumentCommand \youyuan { } { \CJKfamily { zhyou } } 56 | 57 | \endinput 58 | % vim:ft=tex:ts=2:sw=2:et 59 | -------------------------------------------------------------------------------- /chap/sheet.tex: -------------------------------------------------------------------------------- 1 | 2 | \thispagestyle{empty} 3 | \newgeometry{left=2cm, right=2cm, top=2.64cm, bottom=2.54cm} 4 | \renewcommand\arraystretch{1.2} 5 | 6 | \begin{center} 7 | {\songti\zihao{3}{北京大学本科毕业论文导师评阅表}} 8 | \end{center} 9 | 10 | \def\mentorcomment{Lorem Ipsum,也称乱数假文或者哑元文本, 是印刷及排版领域所常用的虚拟文字。由于曾经一台匿名的打印机刻意打乱了一盒印刷字体从而造出一本字体样品书,Lorem Ipsum从西元15世纪起就被作为此领域的标准文本使用。它不仅延续了五个世纪,还通过了电子排版的挑战,其雏形却依然保存至今。在1960年代,“Leatraset”公司发布了印刷着Lorem Ipsum段落的纸张,从而广泛普及了它的使用。最近,计算机桌面出版软件“Aldus PageMaker”也通过同样的方式使Lorem Ipsum落入大众的视野。} 11 | 12 | \begin{table}[H] 13 | \centering 14 | \begin{tabular}{|llllll|} 15 | \hline 16 | \multicolumn{1}{|p{4em}|}{学生姓名} & \multicolumn{1}{p{3em}|}{某某某} & \multicolumn{1}{p{5em}|}{学生学号} & \multicolumn{1}{l|}{1700012345} & \multicolumn{1}{p{4em}|}{论文成绩} & \multicolumn{1}{r|}{}\\ 17 | \hline 18 | \multicolumn{1}{|p{4em}|}{学院(系)} & \multicolumn{3}{l|}{信息科学技术学院} & \multicolumn{1}{p{6em}|}{学生所在专业} & \multicolumn{1}{l|}{计算机科学与技术} \\ 19 | \hline 20 | \multicolumn{1}{|r|}{\multirow{2}[2]{*}{导师姓名}} & 21 | \multicolumn{1}{l|}{\multirow{2}[2]{*}{某某}} & 22 | \multicolumn{1}{p{5em}|}{导师单位/} & 23 | \multicolumn{1}{c|}{\multirow{2}[2]{*}{\makecell{单位}}} & 24 | \multicolumn{1}{p{6em}|}{\multirow{2}[2]{*}{导师职称}} & 25 | \multirow{2}[2]{*}{职称} \\ 26 | \multicolumn{1}{|r|}{} & 27 | \multicolumn{1}{r|}{} & 28 | \multicolumn{1}{p{5em}|}{所在研究所} & 29 | \multicolumn{1}{c|}{} & 30 | \multicolumn{1}{r|}{} & \\ 31 | \hline 32 | \multicolumn{2}{|p{9em}|}{\centering{论文题目}} & 33 | \multicolumn{4}{c|}{乱数假文} \\ 34 | \multicolumn{2}{|p{9em}|}{\centering{(中、英文)}} & 35 | \multicolumn{4}{c|}{\makecell{Lorem Ipsum}} \\ 36 | \hline 37 | \multicolumn{6}{|p{35.88em}|}{\center{导师评语}} \\ 38 | \multicolumn{6}{|p{35.88em}|}{\centering\kaishu{(包含对论文的性质、难度、分量、综合训练等是否符合培养目标的目的等评价)}} \\ 39 | \multicolumn{6}{|c|}{} \\ 40 | \multicolumn{6}{|p{35.88em}|}{\quad\quad\mentorcomment} \\ 41 | \multicolumn{6}{|c|}{} \\ 42 | \multicolumn{6}{|c|}{} \\ 43 | \multicolumn{6}{|c|}{} \\ 44 | \multicolumn{6}{|c|}{} \\ 45 | \multicolumn{6}{|p{35.88em}|}{ \hfill 导师签名:\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad } \\ 46 | \multicolumn{6}{|c|}{} \\ 47 | \multicolumn{6}{|p{35.88em}|}{\hfill 年 \qquad\quad 月 \qquad\quad 日 \qquad\qquad\qquad} \\ 48 | \multicolumn{6}{|r|}{} \\ 49 | \hline 50 | \end{tabular} 51 | \end{table} 52 | 53 | \renewcommand\arraystretch{1} 54 | \restoregeometry 55 | 56 | -------------------------------------------------------------------------------- /chap/origin.tex: -------------------------------------------------------------------------------- 1 | % Copyright (c) 2008-2009 solvethis 2 | % Copyright (c) 2010-2017,2021 Casper Ti. Vector 3 | % Copyright (c) 2021 Kurapica 4 | % All rights reserved. 5 | % 6 | % Redistribution and use in source and binary forms, with or without 7 | % modification, are permitted provided that the following conditions are 8 | % met: 9 | % 10 | % * Redistributions of source code must retain the above copyright notice, 11 | % this list of conditions and the following disclaimer. 12 | % * Redistributions in binary form must reproduce the above copyright 13 | % notice, this list of conditions and the following disclaimer in the 14 | % documentation and/or other materials provided with the distribution. 15 | % * Neither the name of Peking University nor the names of its contributors 16 | % may be used to endorse or promote products derived from this software 17 | % without specific prior written permission. 18 | % 19 | % THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 20 | % IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 21 | % THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22 | % PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 23 | % CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 24 | % EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 25 | % PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 26 | % PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 27 | % LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 28 | % NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 29 | % SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | { 32 | \ctexset{section = { 33 | format+ = {\centering}, beforeskip = {40bp}, afterskip = {15bp} 34 | }} 35 | \specialchap{北京大学学位论文原创性声明和使用授权说明} 36 | 37 | % 学校书面要求本页面不要页码,但在给出的 Word 模版中又有页码。 38 | % 此处以学校书面要求为准。 39 | \thispagestyle{empty} 40 | \mbox{}\vspace*{-3em} 41 | \section*{原创性声明} 42 | 43 | 本人郑重声明: 44 | 所呈交的学位论文,是本人在导师的指导下,独立进行研究工作所取得的成果。 45 | 除文中已经注明引用的内容外, 46 | 本论文不含任何其他个人或集体已经发表或撰写过的作品或成果。 47 | 对本文的研究做出重要贡献的个人和集体,均已在文中以明确方式标明。 48 | 本声明的法律结果由本人承担。 49 | \vskip 1em 50 | \rightline{% 51 | 论文作者签名:\hspace{5em}% 52 | 日期:\hspace{2em}年\hspace{2em}月\hspace{2em}日% 53 | } 54 | 55 | \section*{% 56 | 学位论文使用授权说明\\[-0.33em] 57 | \textmd{\zihao{5}(必须装订在提交学校图书馆的印刷本)}% 58 | } 59 | 60 | 本人完全了解北京大学关于收集、保存、使用学位论文的规定,即: 61 | \begin{itemize} 62 | \item 按照学校要求提交学位论文的印刷本和电子版本; 63 | \item 学校有权保存学位论文的印刷本和电子版, 64 | 并提供目录检索与阅览服务,在校园网上提供服务; 65 | \item 学校可以采用影印、缩印、数字化或其它复制手段保存论文; 66 | \item 因某种特殊原因须要延迟发布学位论文电子版, 67 | 授权学校在 $\Box$\nobreakspace{}一年 / 68 | $\Box$\nobreakspace{}两年 / 69 | $\Box$\nobreakspace{}三年以后在校园网上全文发布。 70 | \end{itemize} 71 | \centerline{(保密论文在解密后遵守此规定)} 72 | \vskip 1em 73 | \rightline{% 74 | 论文作者签名:\hspace{5em}导师签名:\hspace{5em}% 75 | 日期:\hspace{2em}年\hspace{2em}月\hspace{2em}日% 76 | } 77 | 78 | % 若须排版二维码,请将二维码图片重命名为“barcode”, 79 | % 转为合适的图片格式,并放在当前目录下,然后去掉下面 2 行的注释。 80 | %\vfill\noindent 81 | %\includegraphics[height = 5em]{barcode} 82 | } 83 | 84 | % vim:ts=4:sw=4 85 | -------------------------------------------------------------------------------- /thesis.tex: -------------------------------------------------------------------------------- 1 | % Copyright (c) 2008-2009 solvethis 2 | % Copyright (c) 2010-2016,2018-2019,2021 Casper Ti. Vector 3 | % Copyright (c) 2021 Kurapica 4 | % Public domain. 5 | % 6 | % 使用前请先仔细阅读 pkuthss 和 biblatex-caspervector 的文档, 7 | % 特别是其中的 FAQ 部分和用红色强调的部分。 8 | % 两者可在终端/命令提示符中用 9 | % texdoc pkuthss 10 | % texdoc biblatex-caspervector 11 | % 调出。 12 | 13 | % 为使用单页设置,可以在 [] 加入"oneside"选项 14 | \documentclass[UTF8,oneside]{pkuthss} 15 | % 如果的确须要使脚注按页编号的话,可以去掉后面 footmisc 包的注释。 16 | %\usepackage[perpage]{footmisc} 17 | 18 | % 使用 biblatex 排版参考文献,并规定其格式(详见 biblatex-caspervector 的文档)。 19 | % 这里按照西文文献在前,中文文献在后排序(“sorting = ecnyt”); 20 | % 若须按照中文文献在前,西文文献在后排序,请设置“sorting = cenyt”; 21 | % 若须按照引用顺序排序,请设置“sorting = none”。 22 | % 若须在排序中实现更复杂的需求,请参考 biblatex-caspervector 的文档。 23 | % biblatex-caspervector 也有一个“ugly”选项,使其更像国标格式;此外也可考虑 24 | % 改用 style = gb7714-2015 并去掉之后两选项,详见 biblatex-gb7714-2015 的文档。 25 | \usepackage[backend = biber, style = caspervector, utf8, sorting = none]{biblatex} 26 | 27 | % 在此处添加需要的 packages 28 | \usepackage{multirow} 29 | \usepackage{makecell} 30 | \usepackage{float} 31 | 32 | % 对于 linespread 值的计算过程有兴趣的同学可以参考 pkuthss.cls。 33 | \renewcommand*{\bibfont}{\zihao{5}\linespread{1.27}\selectfont} 34 | % 按学校要求设定参考文献列表的段间距。 35 | \setlength{\bibitemsep}{3bp} 36 | 37 | % 如是双盲版论文,将 \blindfalse 改为 \blindtrue。后面可用 38 | % \ifblind 根据是否双盲来条件地启用代码(参见本文件后面部分)。 39 | \newif\ifblind\blindfalse 40 | % 设定文档的基本信息。 41 | \pkuthssinfo{ 42 | cthesisname = {本科生毕业论文}, ethesisname = {Thesis}, 43 | thesiscover = {本科生毕业论文}, 44 | % 长标题可用 \thssnl 强制换行,不能用“\\”(双盲版会出错)。 45 | ctitle = {测试文档 abc}, 46 | etitle = {Test Document}, 47 | % Use ~ to add non-breaking space 48 | cauthor = {某某}, eauthor = {Test}, date = {二〇二一~年~六~月}, 49 | studentid = {0123456789}, school = {某某学院}, 50 | cmajor = {某某专业}, emajor = {Some Major}, 51 | % direction = {某某方向}, % 本科毕业无需填方向 52 | cmentor = {某某教授}, ementor = {Prof.\ Somebody}, 53 | ckeywords = {其一,其二}, 54 | ekeywords = {First, Second}, 55 | % 以下两项无双盲评审需求的用户可保持原状。 56 | % 注意 discipline/major 分别指一/二级学科。 57 | % blindid = {9876543210}, discipline = {某某学科} 58 | } 59 | % 载入参考文献数据库(注意不要省略“.bib”)。 60 | \addbibresource{thesis.bib} 61 | 62 | % 普通用户可删除此段,并相应地删除 chap/*.tex 中的 63 | % “\pkuthssffaq % 中文测试文字。”一行。 64 | \usepackage{color} 65 | \def\pkuthssffaq{% 66 | \emph{\textcolor{red}{pkuthss 文档模版最常见问题:}} 67 | 68 | \texttt{\string\cite}、\texttt{\string\parencite} % 69 | 和 \texttt{\string\supercite} 三个命令分别产生% 70 | 未格式化的、带方括号的和上标且带方括号的引用标记:% 71 | \cite{test-en},\parencite{test-zh}、\supercite{test-en, test-zh}。 72 | 73 | 若要避免章末空白页,请在调用 pkuthss 文档类时加入 \texttt{openany} 选项。 74 | 75 | 如果编译时不出参考文献, 76 | 请参考 \texttt{texdoc pkuthss}“问题及其解决”一章 77 | “上游宏包可能引起的问题”一节中关于 biber 的说明。 78 | 79 | 因无法假定用户使用哪种方式排版表格,用户须自行保证表格字号符合学校规定。% 80 | } 81 | 82 | \begin{document} 83 | % 以下为正文之前的部分,默认不进行章节编号。 84 | \frontmatter 85 | % 此后到下一 \pagestyle 命令之前不排版页眉或页脚。 86 | \pagestyle{empty} 87 | % 自动生成封面。 88 | \ifblind\makeblind\else\maketitle\fi 89 | 90 | % 论文导师评阅表 91 | \include{chap/sheet} 92 | 93 | % 版权声明。封面要求单面打印,故须新开右页。 94 | \cleardoublepage 95 | \include{chap/copy} 96 | 97 | % 此后到下一 \pagestyle 命令之前正常排版页眉和页脚。 98 | \cleardoublepage 99 | \pagestyle{plain} 100 | % 重置页码计数器,用大写罗马数字排版此部分页码。 101 | \setcounter{page}{0} 102 | \pagenumbering{Roman} 103 | % 中西文摘要。 104 | \include{chap/abs} 105 | % 自动生成目录。 106 | \tableofcontents 107 | 108 | % 以下为正文部分,默认要进行章节编号。 109 | \mainmatter 110 | % 各章节。 111 | \include{chap/chap1} 112 | \include{chap/chap2} 113 | \include{chap/chap3} 114 | 115 | % 正文中的附录部分。 116 | \appendix 117 | % 排版参考文献列表。bibintoc 选项使“参考文献”出现在目录中; 118 | % 如果同时要使参考文献列表参与章节编号,可将“bibintoc”改为“bibnumbered”。 119 | \printbibliography[heading = bibintoc] 120 | % 各附录。 121 | \include{chap/encl1} 122 | 123 | % 以下为正文之后的部分,默认不进行章节编号。 124 | \backmatter 125 | % 致谢。 126 | \ifblind\else\include{chap/ack}\fi 127 | % 原创性声明和使用授权说明。 128 | \include{chap/origin} 129 | \end{document} 130 | 131 | % vim:ts=4:sw=4 132 | -------------------------------------------------------------------------------- /pkulogo.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-2.0 EPSF-2.0 2 | %%BoundingBox: 0 0 400 400 3 | %%Pages: 1 4 | %%Page: 1 1 5 | 6 | % Peking University dissertation document class 7 | % 8 | % Copyright (c) 2008-2009 solvethis 9 | % Copyright (c) 2010-2012,2014 Casper Ti. Vector 10 | % 11 | % This work may be distributed and/or modified under the conditions of the 12 | % LaTeX Project Public License, either version 1.3 of this license or (at 13 | % your option) any later version. 14 | % The latest version of this license is in 15 | % https://www.latex-project.org/lppl.txt 16 | % and version 1.3 or later is part of all distributions of LaTeX version 17 | % 2005/12/01 or later. 18 | % 19 | % This work has the LPPL maintenance status `maintained'. 20 | % The current maintainer of this work is Casper Ti. Vector. 21 | % 22 | % This work consists of the following files: 23 | % pkuthss.cls 24 | % pkuthss-gbk.def 25 | % pkuthss-utf8.def 26 | % pkulogo.eps 27 | % pkuword.eps 28 | 29 | % 设置北大红的色值(http://web5.pku.edu.cn/bs/cjwt/,问题 5)。 30 | % 要想将颜色改为黑色,只须将下面一行改为“0 setgray”即可。 31 | 0.0 1.0 1.0 0.45 setcmykcolor 32 | % 设置线的属性。 33 | 1 setlinecap 34 | 1 setlinejoin 35 | 36 | % 将坐标原点移到图片的中心。 37 | 200 200 translate 38 | % 作出外圆。 39 | newpath 40 | 6 setlinewidth 41 | 0 0 195 0 360 arc 42 | stroke 43 | % 作出内圆。 44 | newpath 45 | 5 setlinewidth 46 | 0 0 143 0 360 arc 47 | stroke 48 | 49 | % 描出“北大”字样。 50 | newpath 51 | 0 setlinewidth 52 | -10 101 moveto 53 | -10 101 -10 38 lineto 54 | -10 35 -14 29 -19 28 curveto 55 | -30 28 -60 15 -89 -26 curveto 56 | -104 -39 -108 -24 -105 -16 curveto 57 | -76 27 -36 45 -32 45 curveto 58 | -30 46 -29 47 -29 49 curveto 59 | -29 49 -29 68 lineto 60 | -29 69 -30 69 -31 69 curveto 61 | -38 67 -58 63 -83 42 curveto 62 | -95 35 -103 49 -94 57 curveto 63 | -72 74 -53 83 -31 88 curveto 64 | -30 88 -29 89 -29 90 curveto 65 | -29 90 -29 102 lineto 66 | -29 111 -10 111 -10 101 curveto 67 | 10 101 moveto 68 | 10 101 10 38 lineto 69 | 10 35 14 29 19 28 curveto 70 | 30 28 60 15 89 -26 curveto 71 | 104 -39 108 -24 105 -16 curveto 72 | 76 27 36 45 32 45 curveto 73 | 30 46 29 47 29 49 curveto 74 | 29 49 29 68 lineto 75 | 29 69 30 69 31 69 curveto 76 | 38 67 58 63 83 42 curveto 77 | 95 35 103 49 94 57 curveto 78 | 72 74 53 83 31 88 curveto 79 | 30 88 29 89 29 90 curveto 80 | 29 90 29 102 lineto 81 | 29 111 10 111 10 101 curveto 82 | -11 5 moveto 83 | -11 4 -11 4 -12 4 curveto 84 | -33 2 -65 -25 -80 -58 curveto 85 | -82 -71 -70 -74 -63 -64 curveto 86 | -45 -32 -27 -17 -12 -15 curveto 87 | -11 -15 -11 -15 -11 -16 curveto 88 | -11 -16 -11 -35 lineto 89 | -11 -38 -11 -38 -13 -40 curveto 90 | -28 -48 -34 -57 -45 -85 curveto 91 | -48 -97 -32 -103 -28 -94 curveto 92 | -15 -44 15 -44 28 -94 curveto 93 | 32 -103 48 -97 45 -85 curveto 94 | 34 -57 28 -48 13 -40 curveto 95 | 11 -38 11 -38 11 -35 curveto 96 | 11 -35 11 -16 lineto 97 | 11 -15 11 -15 12 -15 curveto 98 | 27 -17 45 -32 63 -64 curveto 99 | 70 -74 82 -71 80 -58 curveto 100 | 65 -25 33 2 12 4 curveto 101 | 11 4 11 4 11 5 curveto 102 | 11 5 11 12 lineto 103 | 11 25 -11 25 -11 12 curveto 104 | -11 12 -11 5 lineto 105 | 133 0 moveto 106 | 0 0 133 0 360 arc 107 | % 对刚作出的线条执行奇偶相间的填充,使中间空出的“北大”字样就是透明的。 108 | % 从而,即使页面带背景色,插入这个图片时也会很正常。 109 | eofill 110 | 111 | % 添加文字“PEKING UNIVERSITY 1898”。 112 | /Times-Bold findfont 40 scalefont setfont 113 | /offset { dup stringwidth pop 2 div neg 155 moveto show } def 114 | 115 | gsave 112 rotate (P) offset grestore 116 | gsave 98 rotate (E) offset grestore 117 | gsave 84 rotate (K) offset grestore 118 | gsave 70 rotate (I) offset grestore 119 | gsave 56 rotate (N) offset grestore 120 | gsave 41 rotate (G) offset grestore 121 | gsave 15 rotate (U) offset grestore 122 | gsave (N) offset grestore 123 | gsave -14 rotate (I) offset grestore 124 | gsave -28 rotate (V) offset grestore 125 | gsave -42 rotate (E) offset grestore 126 | gsave -56 rotate (R) offset grestore 127 | gsave -70 rotate (S) offset grestore 128 | gsave -84 rotate (I) offset grestore 129 | gsave -98 rotate (T) offset grestore 130 | gsave -112 rotate (Y) offset grestore 131 | 132 | /onset { dup stringwidth pop 2 div neg -182 moveto show } def 133 | 134 | gsave -24 rotate (1) onset grestore 135 | gsave -8 rotate (8) onset grestore 136 | gsave 8 rotate (9) onset grestore 137 | gsave 24 rotate (8) onset grestore 138 | 139 | showpage 140 | %%EOF 141 | -------------------------------------------------------------------------------- /pkuword.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-2.0 EPSF-2.0 2 | %%BoundingBox: 0 0 525 150 3 | %%Pages: 1 4 | %%Page: 1 1 5 | 6 | % Peking University dissertation document class 7 | % 8 | % Copyright (c) 2008-2009 solvethis 9 | % Copyright (c) 2010-2012,2014 Casper Ti. Vector 10 | % 11 | % This work may be distributed and/or modified under the conditions of the 12 | % LaTeX Project Public License, either version 1.3 of this license or (at 13 | % your option) any later version. 14 | % The latest version of this license is in 15 | % https://www.latex-project.org/lppl.txt 16 | % and version 1.3 or later is part of all distributions of LaTeX version 17 | % 2005/12/01 or later. 18 | % 19 | % This work has the LPPL maintenance status `maintained'. 20 | % The current maintainer of this work is Casper Ti. Vector. 21 | % 22 | % This work consists of the following files: 23 | % pkuthss.cls 24 | % pkuthss-gbk.def 25 | % pkuthss-utf8.def 26 | % pkulogo.eps 27 | % pkuword.eps 28 | 29 | % 设置北大红的色值(http://web5.pku.edu.cn/bs/cjwt/,问题 5)。 30 | % 要想将颜色改为黑色,只须将下面一行改为“0 setgray”即可。 31 | 0.0 1.0 1.0 0.45 setcmykcolor 32 | % 缩放和平移。 33 | 0.702957 0.602957 scale 34 | -30 -9 translate 35 | 36 | % “北”。 37 | newpath 38 | 74 224 moveto 39 | 85.9 214.1 110.4 207.3 105 187 curveto 40 | 106 176.3 111.5 166.3 108 155 curveto 41 | 112.3 125.8 104.7 99 103 71 curveto 42 | 100.3 59.5 96.9 47.3 91 38 curveto 43 | 81.8 36 87.7 47.3 86 52 curveto 44 | 88.3 56.7 86.2 62 84 66 curveto 45 | 83 66 82 66 81 66 curveto 46 | 70.7 51.3 53.5 42.7 41 31 curveto 47 | 37.6 31.1 33.9 30.3 32 34 curveto 48 | 32.6 40.3 30.8 46.8 32 52 curveto 49 | 30.2 54 31.3 57.3 31 60 curveto 50 | 43.6 65.3 42.7 79.6 47 90 curveto 51 | 59 103.5 50 123.3 47 138 curveto 52 | 54.7 135.5 63.5 135.7 69 128 curveto 53 | 74.1 126.1 81.7 125.9 83 119 curveto 54 | 84.9 118.4 85.8 119.9 87 121 curveto 55 | 87 133.3 87 145.7 87 158 curveto 56 | 86.2 176.4 91.3 203.1 71 215 curveto 57 | 67.6 220.4 61.6 223.4 64 230 curveto 58 | 68.7 231.2 70.2 224.9 74 224 curveto 59 | 85 102 moveto 60 | 87.3 94.7 85.2 86.7 83 80 curveto 61 | 73.4 67.6 58.4 63.9 46 56 curveto 62 | 42.7 55.1 40.4 57.1 40 60 curveto 63 | 46 74 57.7 85.7 63 100 curveto 64 | 65.7 103 69.7 102.6 73 104 curveto 65 | 78.5 106.2 80.1 113.5 85 115 curveto 66 | 88 110.7 83.5 107 85 102 curveto 67 | eofill 68 | newpath 69 | 176 176 moveto 70 | 184.2 165.9 175.8 148 187 140 curveto 71 | 192.6 149.1 209.4 149.9 205 164 curveto 72 | 206 165.1 202.5 172.3 208 171 curveto 73 | 206.9 159.6 220 161 226 156 curveto 74 | 231.2 157.2 228.8 148.7 228 146 curveto 75 | 223.7 140 223 131.6 215 128 curveto 76 | 205 124.2 195.7 127.8 187 121 curveto 77 | 187 115 187 109 187 103 curveto 78 | 181.5 99.2 175.8 93.7 175 87 curveto 79 | 188.7 76.3 201.5 91.8 216 91 curveto 80 | 221.9 93 226.5 97.9 234 96 curveto 81 | 235.1 91.6 232.3 91.4 231 88 curveto 82 | 230 76.1 218.3 77.6 211 72 curveto 83 | 200.8 70.8 188.8 71.6 183 62 curveto 84 | 175.5 63.2 167.5 63 162 69 curveto 85 | 150.9 87.6 151.2 111 146 132 curveto 86 | 141.1 158 154 179.1 157 203 curveto 87 | 161.7 194.2 176.5 188.7 176 176 curveto 88 | closepath 89 | fill 90 | 91 | % “京”。 92 | newpath 93 | 351 221 moveto 94 | 349.4 215.9 349.3 209.3 343 207 curveto 95 | 332.9 217.2 312.8 180.1 322 206 curveto 96 | 322.3 218.3 314.3 227.2 311 238 curveto 97 | 309.3 244.7 315.9 244.8 320 243 curveto 98 | 329.3 239.7 338.7 234.2 346 228 curveto 99 | 346.6 225.2 350.4 223.8 351 221 curveto 100 | closepath 101 | fill 102 | newpath 103 | 361 183 moveto 104 | 352.3 176.8 341.6 170.9 333 162 curveto 105 | 329.4 152.3 319 150.7 312 145 curveto 106 | 300.2 142.3 291.2 148.7 284 155 curveto 107 | 282.8 159.1 287.7 161.1 290 163 curveto 108 | 303.2 171.4 320.3 170.3 333 180 curveto 109 | 341.8 183.3 351 185.6 361 186 curveto 110 | 361 185 361 184 361 183 curveto 111 | closepath 112 | fill 113 | newpath 114 | 357 135 moveto 115 | 361.8 126.8 349.9 127.4 347 122 curveto 116 | 341.4 114.9 332.9 110.9 329 104 curveto 117 | 327.3 101.3 322.5 100 324 96 curveto 118 | 326.1 92.8 330.4 96.3 333 98 curveto 119 | 337.3 100.7 341.7 97.3 346 97 curveto 120 | 343.8 86.8 332.7 85.7 326 80 curveto 121 | 322.5 79.3 318.3 77.9 317 74 curveto 122 | 312.2 64.9 322.3 60.7 321 52 curveto 123 | 323.8 41 328.2 28 325 17 curveto 124 | 317.4 16.8 319.5 25.8 314 29 curveto 125 | 311.8 32.7 304.6 30.9 306 37 curveto 126 | 309.5 37.7 313.7 39.1 315 43 curveto 127 | 314.3 48.7 316.7 55.6 313 60 curveto 128 | 311.1 60.3 309.6 59.5 308 59 curveto 129 | 293.5 46.9 284.8 31.5 271 20 curveto 130 | 264.2 18.7 260.4 24.7 259 30 curveto 131 | 257.8 32.6 258 35.9 258 39 curveto 132 | 276.8 39.2 288.7 56.3 304 65 curveto 133 | 307.5 64.9 309.3 69 312 71 curveto 134 | 313.3 74.6 309.9 76.3 309 79 curveto 135 | 308.3 85.9 319.3 93.8 311 98 curveto 136 | 306.6 97.1 300.6 97.6 299 92 curveto 137 | 304.1 80.4 294.9 72.3 289 64 curveto 138 | 287.6 63.3 287.4 65.7 286 65 curveto 139 | 277.5 80.5 281 99.7 283 117 curveto 140 | 287.1 115.7 290.3 112.3 294 110 curveto 141 | 309.9 114.8 321.3 130.8 337 136 curveto 142 | 343 134.2 351.6 135.3 357 135 curveto 143 | closepath 144 | fill 145 | newpath 146 | 374 62 moveto 147 | 374 57.7 374 53.3 374 49 curveto 148 | 368.6 46.4 362.1 40.9 357 48 curveto 149 | 351.7 57.8 341.8 69.4 350 81 curveto 150 | 359.3 77.8 371.6 73.3 374 62 curveto 151 | closepath 152 | fill 153 | 154 | % “大”。 155 | newpath 156 | 501 224 moveto 157 | 507.6 216 519.8 213 519 202 curveto 158 | 510.5 194.5 518.5 184 516 174 curveto 159 | 513.8 166.3 516.2 156.7 514 149 curveto 160 | 514.3 146.1 517.5 145.7 520 146 curveto 161 | 537.1 151 538.8 182.5 560 171 curveto 162 | 557.7 161.3 549.5 155.7 542 149 curveto 163 | 533.4 140.8 521.6 133.8 514 123 curveto 164 | 512.2 101.2 508.4 78.4 488 66 curveto 165 | 476 57.9 463 52.2 449 49 curveto 166 | 447.3 51.2 438.3 44.3 442 51 curveto 167 | 450.7 56.3 458.9 62.7 468 67 curveto 168 | 482.2 77.4 486.1 93.8 491 109 curveto 169 | 484.7 113.3 478.3 105.7 472 104 curveto 170 | 456.1 97.9 445.1 86.2 430 78 curveto 171 | 424.8 75.9 419.1 72.1 413 75 curveto 172 | 406.8 81.8 408.2 93 408 101 curveto 173 | 411.9 101.9 410.9 97.2 414 96 curveto 174 | 436.6 97.6 452.7 115.2 474 120 curveto 175 | 480.7 125.8 491.4 124.2 496 133 curveto 176 | 500.2 163 498.3 195.4 486 221 curveto 177 | 487.2 223.7 488.1 229.2 493 227 curveto 178 | 495 224.5 497.7 223.5 501 224 curveto 179 | closepath 180 | fill 181 | newpath 182 | 557 86 moveto 183 | 564 76.3 578.2 71.9 574 58 curveto 184 | 568.3 51.9 560.3 51.5 552 52 curveto 185 | 550.3 54.4 550.8 58.5 552 61 curveto 186 | 548.5 71.2 540.4 81.9 545 93 curveto 187 | 548.4 91.3 552.1 86.2 557 86 curveto 188 | closepath 189 | fill 190 | 191 | % 学。 192 | newpath 193 | 640 130 moveto 194 | 639.8 124 641.2 115.7 635 114 curveto 195 | 628.1 111.5 630.1 119.8 626 122 curveto 196 | 625.8 131.8 626.8 139.7 624 148 curveto 197 | 634.8 146.6 632.8 135.8 640 130 curveto 198 | closepath 199 | fill 200 | newpath 201 | 733 248 moveto 202 | 738 233.7 720.5 224.5 721 210 curveto 203 | 728.7 202 735.5 214.1 744 213 curveto 204 | 753.3 220.2 762.3 213.3 773 214 curveto 205 | 768.4 191.6 756.7 169.5 737 156 curveto 206 | 736.5 154.6 736.3 153.1 735 152 curveto 207 | 740.1 145.1 758.1 154.4 754 140 curveto 208 | 746.5 116.3 724.8 109.9 705 101 curveto 209 | 715.3 113.3 728.2 123.7 736 138 curveto 210 | 733 143.2 726.9 137.7 723 136 curveto 211 | 703.9 117.4 683.8 101.3 660 94 curveto 212 | 652.2 91.7 644 90.4 635 91 curveto 213 | 635.9 98.4 645.4 97.9 650 103 curveto 214 | 673.8 121.1 701.1 130.5 726 146 curveto 215 | 726.6 147.9 725.1 148.8 724 150 curveto 216 | 716.7 151.2 712 146 706 144 curveto 217 | 705.5 149.3 711 153.3 709 158 curveto 218 | 704 160 699.6 166.5 694 164 curveto 219 | 686.8 160.8 686.1 147.6 677 150 curveto 220 | 677.2 159.5 697.7 166.9 684 176 curveto 221 | 694.5 171.8 700.6 182.7 705 189 curveto 222 | 705.8 191.9 705.5 193 703 195 curveto 223 | 699.4 194.7 696.9 191.6 693 192 curveto 224 | 693.6 196.3 699.8 198.2 699 203 curveto 225 | 694.9 208.7 686.3 203.7 684 212 curveto 226 | 684.1 216.3 689.1 212.2 692 213 curveto 227 | 695.3 212 699.5 214.5 703 216 curveto 228 | 718.6 222.2 724.8 240.5 726 255 curveto 229 | 729.2 254.8 729.6 249.9 733 248 curveto 230 | 748 193 moveto 231 | 743.7 180.6 733.5 168.9 725 160 curveto 232 | 724.5 167.3 722.5 174 719 180 curveto 233 | 710.8 180.5 719.2 163.3 708 168 curveto 234 | 696.3 179.3 716.2 187.4 718 198 curveto 235 | 728 202.3 738 194.7 748 193 curveto 236 | eofill 237 | newpath 238 | 640 195 moveto 239 | 643.7 193 646.5 188.9 651 189 curveto 240 | 661.3 177.5 670.8 165.7 671 150 curveto 241 | 667.8 144.8 662.5 140.5 657 139 curveto 242 | 653.4 161.3 643.8 182 627 198 curveto 243 | 625.5 199.7 625.5 203.3 627 205 curveto 244 | 632.2 203.8 635.2 197.3 640 195 curveto 245 | closepath 246 | fill 247 | newpath 248 | 732 82 moveto 249 | 727.7 76.8 729.2 66.5 720 66 curveto 250 | 713.6 65.1 703.7 68.2 702 60 curveto 251 | 702.4 47.8 712 38.2 707 25 curveto 252 | 704 12.5 688.9 12 678 10 curveto 253 | 675.5 16.8 666.3 14.1 663 19 curveto 254 | 675.2 21.9 691.3 19.6 697 34 curveto 255 | 692.9 41.6 697.4 53.6 690 59 curveto 256 | 670.3 53.8 653.1 42.5 636 31 curveto 257 | 631.1 29.7 626.4 25.1 621 28 curveto 258 | 620.2 35.6 610.3 39.5 614 49 curveto 259 | 617.7 54.2 624 53 629 55 curveto 260 | 654.8 67.1 680.6 79.3 709 85 curveto 261 | 711.4 88.3 717 87.2 720 86 curveto 262 | 723.4 86.2 729.3 86.3 732 82 curveto 263 | closepath 264 | fill 265 | 266 | showpage 267 | %%EOF 268 | -------------------------------------------------------------------------------- /pkuthss.cls: -------------------------------------------------------------------------------- 1 | % Peking University dissertation document class 2 | % 3 | % Copyright (c) 2008-2009 solvethis 4 | % Copyright (c) 2010-2021 Casper Ti. Vector 5 | % Copyright (c) 2021 Kurapica 6 | % 7 | % This work may be distributed and/or modified under the conditions of the 8 | % LaTeX Project Public License, either version 1.3 of this license or (at 9 | % your option) any later version. 10 | % The latest version of this license is in 11 | % https://www.latex-project.org/lppl.txt 12 | % and version 1.3 or later is part of all distributions of LaTeX version 13 | % 2005/12/01 or later. 14 | % 15 | % This work has the LPPL maintenance status `maintained'. 16 | % The current maintainer of this work is Casper Ti. Vector. 17 | % 18 | % This work consists of the following files: 19 | % pkuthss.cls 20 | % pkuthss-gbk.def 21 | % pkuthss-utf8.def 22 | % pkulogo.eps 23 | % pkuword.eps 24 | 25 | \NeedsTeXFormat{LaTeX2e}[1995/12/01] 26 | \ProvidesClass{pkuthss} 27 | [2021/03/29 v1.9.0 Peking University dissertation document class] 28 | 29 | % eg. `\thss@int@boolopt{spacing}{true}' will expand to: 30 | % \newif\ifthss@opt@spacing \thss@opt@spacingtrue 31 | % \DeclareOption{spacing}{\thss@opt@spacingtrue} 32 | % \DeclareOption{nospacing}{\thss@opt@spacingfalse} 33 | \def\thss@int@boolopt#1#2{ 34 | \expandafter\newif\csname ifthss@opt@#1\endcsname 35 | \@nameuse{thss@opt@#1#2} 36 | \DeclareOption{#1}{\@nameuse{thss@opt@#1true}} 37 | \DeclareOption{no#1}{\@nameuse{thss@opt@#1false}} 38 | } 39 | % Process the encoding options. 40 | \newif\ifthss@opt@gbk \thss@opt@gbktrue 41 | \DeclareOption{GBK}{\thss@opt@gbktrue\PassOptionsToClass{GBK}{ctexbook}} 42 | \DeclareOption{UTF8}{\thss@opt@gbkfalse\PassOptionsToClass{UTF8}{ctexbook}} 43 | % Whether to enable `\Uppercase' (works problematically) in heading marks. 44 | \thss@int@boolopt{uppermark}{false} 45 | % Whether to modify fonts according to school regulation. 46 | \thss@int@boolopt{pkufont}{true} 47 | % Whether to modify footnote format according to school regulation. 48 | \thss@int@boolopt{pkufoot}{true} 49 | % Whether to modify spacing according to school regulation. 50 | \thss@int@boolopt{pkuspace}{true} 51 | % Whether to use some common settings for adjusting spacing. 52 | \thss@int@boolopt{spacing}{true} 53 | % Add PDF bookmark for table of contents. 54 | \thss@int@boolopt{pdftoc}{true} 55 | % Whether to enable the `\spacialchap' command. 56 | \thss@int@boolopt{spechap}{true} 57 | % Whether to automatically set up properties for generated PDF from user 58 | % defined document information (author, title, etc.). 59 | \thss@int@boolopt{pdfprop}{true} 60 | % Whether to disable some infractions intended to make the style less ugly. 61 | % ugly 选项是 pkuthuss 作者的私货。当 ugly 为 true 时,使用的是学校要求的格式。当 ugly 62 | % 为 false 时,使用的是作者自定义的格式。 63 | % 在本科生毕业模版中,我们忽略此选项。 64 | \thss@int@boolopt{ugly}{false} 65 | % Pass all other options to `ctexbook' document class. 66 | \DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}} 67 | % Process all class options now. 68 | \ProcessOptions\relax 69 | 70 | % Prevent fontspec (loaded by xeCJK) from interfering with newtxmath. 71 | \ifthss@opt@pkufont\PassOptionsToPackage{no-math}{fontspec}\fi 72 | % Work around the `\lvert already defined' error. 73 | % cf. . 74 | \ifthss@opt@pkufont\RequirePackage{amsmath}\fi 75 | % pkuthss is based on ctexbook; we use `xiao 4' as default font size. 76 | \LoadClass[zihao = -4]{ctexbook}[2014/03/06] 77 | % ctex 2.x no longer loads ifpdf and ifxetex by itself. 78 | \RequirePackage{ifpdf, ifxetex} 79 | % Provides support for `key = val' grammar. 80 | \RequirePackage{keyval} 81 | % Graphics support. 82 | \RequirePackage{graphicx}[1999/02/16] 83 | % Provides utilities for setting up page layout. 84 | \RequirePackage{geometry} 85 | % fancyhdr provides utilities for setting up headers and footers. 86 | \RequirePackage{fancyhdr} 87 | % Provides `\uline' used in `\maketitle' (but do not mess with `\emph'). 88 | \RequirePackage[normalem]{ulem} 89 | % `\AtEndOfClass' used to avoid `PDF destination not defined' with setspace. 90 | \AtEndOfClass{\RequirePackage{hyperref}} 91 | 92 | \ifthss@opt@gbk 93 | \input{pkuthss-gbk.def} 94 | \ifxetex 95 | % No support for XeLaTeX compilation in non-unicode encoding, i.e. GBK. 96 | \ClassError{pkuthss}% 97 | {XeLaTeX compilation is not supported without UTF-8}% 98 | {% 99 | XeLaTeX compilation without UTF-8 is very problematic.\MessageBreak 100 | Therefore please use UTF-8 encoding for the LaTeX code.% 101 | } 102 | \fi 103 | \else 104 | \input{pkuthss-utf8.def} 105 | \fi 106 | 107 | \ifthss@opt@pkufont 108 | % 将西文字体改为类似于Times New Roman / Arial 的字体 109 | % Use Times New Roman / Arial according to school regulation. 110 | % Option used to prevent newtxtext from manipulating footnote marks. 111 | \RequirePackage[defaultsups]{newtxtext} 112 | \RequirePackage[cmintegrals, varg]{newtxmath} 113 | \else 114 | % Provides `\Box' for originauth.tex if newtx is absent. 115 | \RequirePackage{latexsym} 116 | \fi 117 | 118 | \ifthss@opt@pkufoot 119 | % Handle the `Unparsed material' issue with latex/dvipdfmx compilation. 120 | \unless\ifxetex\unless\ifpdf 121 | \newcommand*{\pgfsysdriver}{pgfsys-dvipdfm.def} 122 | \fi\fi 123 | % Circled text, cf. . 124 | \RequirePackage{tikz} 125 | \newcommand*{\thss@int@circled}[1]{% 126 | \scalebox{0.8}{\tikz[baseline = (char.base)]{ 127 | \node[ 128 | shape = circle, draw = black, minimum size = 1.25em, inner sep = 0pt 129 | ] (char) {#1}; 130 | }}% 131 | } 132 | % Use circled numbers as footnote symbols. Does not affect title page, but 133 | % footnote is rarely used in dissertation covers ;) 134 | \renewcommand*{\thefootnote}% 135 | {\protect\thss@int@circled{\arabic{footnote}}} 136 | % Provides utility to modify footnote spacing. 137 | % Option used to make sure it does not render interleaf pages totally blank. 138 | \RequirePackage[cleardoublepage = current]{scrextend} 139 | % Set up footnote spacing: whole paragraph indent 2 ccwd, 0.5 ccwd after mark. 140 | \deffootnote{2\ccwd}{0pt}{\thefootnotemark\hspace{0.5\ccwd}} 141 | \fi 142 | 143 | \ifthss@opt@pkuspace 144 | % lineskip / baselineskip = 20 bp / (12 bp * (6 / 5)). 145 | \linespread{1.39}\selectfont 146 | % Provides utilities for setting TOC format; `titles' applied to avoid 147 | % interfering with LaTeX's own title mechanism. 148 | \RequirePackage[titles]{tocloft} 149 | \setlength{\cftbeforechapskip}{6bp plus 1bp} 150 | \setlength{\cftsecindent}{\ccwd} 151 | \setlength{\cftsubsecindent}{2\ccwd} 152 | \setlength{\cftsubsubsecindent}{4\ccwd} 153 | % `caption' modifies font size and separator of captions. `subcaption' 154 | % provides functions similar to `subfigure'/`subfig' but does not clash with 155 | % `tocloft'; it clashes with `subfigure'/`subfig', but the error message will 156 | % say they cannot be used simultaneously. 157 | \RequirePackage{caption, subcaption} 158 | \ifthss@opt@ugly 159 | \DeclareCaptionFont{capfsize}{\fontsize{11bp}{13.2bp}} 160 | \else 161 | \DeclareCaptionFont{capfsize}{\zihao{5}} 162 | \fi 163 | \DeclareCaptionLabelSeparator{quad}{\quad} 164 | \captionsetup{font = capfsize, labelsep = quad} 165 | \captionsetup[sub]{font = capfsize} 166 | \fi 167 | 168 | \ifthss@opt@spacing 169 | % Make spacing nicer in some situations (eg. footnotes and verbatims). 170 | \RequirePackage{setspace} 171 | % Remove superfluous spacing between footnotes. 172 | \setlength{\footnotesep}{0pt} 173 | % Lists often appear to be too sparse when items are just one or two lines 174 | % long. Here we cancel the extra vertical spacing between list items. 175 | % The list margin is adjusted due to Chinese typesetting traditions. 176 | \RequirePackage{enumitem} 177 | \setlist{nolistsep, leftmargin = 1.5\parindent} 178 | \fi 179 | 180 | \ifthss@opt@spechap 181 | % This command is used to start a chapter without numbering, and correctly set 182 | % up the headers and footers in the chapter. 183 | \newcommand{\specialchap}[1]{% 184 | \chapter*{#1}\addcontentsline{toc}{chapter}{#1} 185 | \markboth{#1}{}\phantomsection% 186 | } 187 | \fi 188 | 189 | \AtBeginDocument{ 190 | % Set up spacing for displayed formulae. 191 | \setlength{\abovedisplayskip}{\belowdisplayshortskip} 192 | \setlength{\belowdisplayskip}{\abovedisplayskip} 193 | 194 | \ifthss@opt@pdftoc 195 | % Add PDF bookmark for table of contents. 196 | \let\thss@tmp@tableofcontents\tableofcontents 197 | \renewcommand{\tableofcontents}{% 198 | \thss@int@pdfmark{\contentsname}{contents} 199 | \thss@tmp@tableofcontents% 200 | } 201 | \fi 202 | 203 | \ifthss@opt@pdfprop 204 | % Automatically generate properties for generated PDF. 205 | % Use English properties to avoid problems with character encodings. 206 | \newcommand*{\setpdfproperties}{% 207 | \hypersetup{ 208 | pdfauthor = {\@eauthor}, pdftitle = {\@etitle}, 209 | pdfsubject = {\euniversity\ \ethesisname}, pdfkeywords = {\@ekeywords} 210 | }% 211 | } 212 | % Set up the properties when generating the title page because the document 213 | % information should have been all defined before this. 214 | \let\thss@tmp@maketitle\maketitle 215 | % NOTE: `\hypersetup' must appear before `\maketitle', otherwise it might 216 | % not act as expected. 217 | \renewcommand{\maketitle}{\setpdfproperties\thss@tmp@maketitle} 218 | \fi 219 | } 220 | 221 | % eg. `\thss@int@infoitema{ctitle}' will expand to: 222 | % \def\ctitle#1{\def\@ctitle{#1}} 223 | % \define@key{thss@info}{ctitle}{\ctitle{#1}} 224 | \def\thss@int@infoitema#1{ 225 | \@namedef{#1}##1{\@namedef{@#1}{##1}} 226 | \define@key{thss@info}{#1}{\@nameuse{#1}{##1}} 227 | } 228 | % eg. `\thss@int@infoitemb{cuniversity}' will expand to: 229 | % \define@key{thss@info}{cuniversity}{\def\cuniversity{#1}} 230 | \def\thss@int@infoitemb#1{ 231 | \define@key{thss@info}{#1}{\@namedef{#1}{##1}} 232 | } 233 | % Set up document information entries. 234 | \thss@int@infoitema{ctitle} 235 | \thss@int@infoitema{etitle} 236 | \thss@int@infoitema{cauthor} 237 | \thss@int@infoitema{eauthor} 238 | \thss@int@infoitema{studentid} 239 | \thss@int@infoitema{date} 240 | \thss@int@infoitema{school} 241 | \thss@int@infoitema{cmajor} 242 | \thss@int@infoitema{emajor} 243 | \thss@int@infoitema{direction} 244 | \thss@int@infoitema{cmentor} 245 | \thss@int@infoitema{ementor} 246 | \thss@int@infoitema{ckeywords} 247 | \thss@int@infoitema{ekeywords} 248 | \thss@int@infoitema{blindid} 249 | \thss@int@infoitema{discipline} 250 | \thss@int@infoitemb{cuniversity} 251 | \thss@int@infoitemb{euniversity} 252 | \thss@int@infoitemb{cthesisname} 253 | \thss@int@infoitemb{ethesisname} 254 | \thss@int@infoitemb{thesiscover} 255 | \thss@int@infoitemb{cabstractname} 256 | \thss@int@infoitemb{eabstractname} 257 | % Set up document information using the `key = value' grammar. 258 | \newcommand*{\pkuthssinfo}[1]{\setkeys{thss@info}{#1}} 259 | % Becomes \newline in the \makeblind scope. 260 | \newcommand{\thssnl}{\\} 261 | 262 | % Set up page layout. 263 | \geometry{a4paper, hmargin = 2.6cm, headheight = 0.5cm, headsep = 0.6cm} 264 | \ifthss@opt@ugly 265 | \geometry{top = 3.1cm, bottom = 3.0cm, footskip = 0.8cm} 266 | \else 267 | \geometry{top = 3.0cm, bottom = 3.1cm, footskip = 1.1cm} 268 | \fi 269 | 270 | % Set up chapter/section/... captions. 271 | % The `*skip' values are not supposed to be modified by the `ugly' option: 272 | % the actual style of the school's guide and Word template seem to be different 273 | % from the written specification (when applied verbatim in LaTeX), and here the 274 | % actual style is used. 275 | \setcounter{secnumdepth}{3} 276 | \setcounter{tocdepth}{2} 277 | \ctexset{ 278 | chapter = {beforeskip = {0bp}, afterskip = {18bp plus 0.2ex}}, 279 | section = 280 | {beforeskip = {20bp plus 1ex minus 0.2ex}, afterskip = {5bp plus 0.2ex}}, 281 | subsection = 282 | {beforeskip = {12bp plus 1ex minus 0.2ex}, afterskip = {5bp plus 0.2ex}}, 283 | subsubsection = 284 | {beforeskip = {12bp plus 1ex minus 0.2ex}, afterskip = {5bp plus 0.2ex}} 285 | } 286 | 287 | % 设置标题字号 288 | \ctexset{ 289 | % 二号、黑体、居中 290 | chapter = {format = {\zihao{2}\heiti\centering}}, 291 | % 三号、宋体/Time new roman、加粗 292 | section = {format = {\zihao{3}\bfseries}}, 293 | % 四号,宋体/Time new roman,加粗 294 | subsection = {format = {\zihao{4}\bfseries}}, 295 | % 小四,宋体/Time new roman,加粗 296 | subsubsection = {format = {\zihao{-4}\bfseries}} 297 | } 298 | 299 | % `\MakeUppercase' works problematically. 300 | % eg. it converts `\cite{ctex}' into `\cite{CTEX}'. 301 | % This option can disable `\MakeUppercase' in left/right heading marks. 302 | \ifthss@opt@uppermark 303 | \def\thss@int@setcase#1{#1} 304 | \else 305 | % Code copied from fancyhdr's `\nouppercase', with the redefinition of 306 | % `\uppercase' dropped to avoid disrupting CJKutf8. 307 | % cf. . 308 | \def\thss@int@setcase#1{% 309 | \let\MakeUppercase\relax% 310 | \expandafter\let\csname MakeUppercase \endcsname\relax% 311 | #1% 312 | } 313 | \fi 314 | % The actual page style setup. 315 | \fancypagestyle{plain}{ 316 | \fancyhf{}\renewcommand*{\headrulewidth}{0.75bp} 317 | \fancyfoot[C]{\zihao{5}\normalfont{\thepage}} 318 | 319 | \iffalse % 不分开考虑奇偶页 320 | \fancyhead[CE]{\zihao{5}\normalfont{\cuniversity\cthesisname}} 321 | \fancyhead[CO]{\zihao{5}\normalfont\thss@int@setcase{\leftmark}} 322 | \else 323 | % 单双面使用同样的页眉 324 | \fancyhead[L]{\zihao{5}\normalfont{\cuniversity\cthesisname}} 325 | \fancyhead[R]{\zihao{5}\normalfont\thss@int@setcase{\leftmark}} 326 | \fi 327 | } 328 | \pagestyle{plain} 329 | 330 | % This places a bookmark pointing to somewhere near the page header; 331 | % Result of simple `\chapter{...} \pdfbookmark{...}' does not look nice, 332 | % because the bookmark will point to somewhere below the chapter mark. 333 | \def\thss@int@pdfmark#1#2{% 334 | \if@openright\cleardoublepage\else\clearpage\fi 335 | \pdfbookmark[0]{#1}{#2}% 336 | } 337 | 338 | % Usage: \thss@int@fillinblank{(number of lines)}{(line width)}{(contents)} 339 | \def\thss@int@fillinblank#1#2#3{% 340 | \makebox[0pt][l]{\parbox[t]{#2}{\centering{#3}}}\mbox{}% 341 | \parbox[t]{#2}{% 342 | \newcount\thss@tmp@linecount 343 | \thss@tmp@linecount=#1 344 | \loop\ifnum\thss@tmp@linecount>0 345 | % Fill specified space with underline on the bottom line. `\underline' 346 | % draws line on the baseline (not the bottom line), and this is why 347 | % `\uline' is used here instead. 348 | \ifnum\thss@tmp@linecount=1 349 | \uline{\makebox[#2]{}} 350 | \else 351 | \uline{\makebox[#2]{}}\\ 352 | \fi 353 | \advance\thss@tmp@linecount by -1\relax 354 | \repeat% 355 | }% 356 | } 357 | 358 | % 封面 359 | % Set up format of the title page (cover). 360 | \renewcommand{\maketitle}{% 361 | \thss@int@pdfmark{\titlepagename}{titlepage} 362 | % Make the title page centered. 363 | \begin{titlepage}\centering 364 | % Emblem and inscription of the university, and type of thesis. 365 | {% 366 | % 小初 367 | \zihao{-0}\includegraphics[height = 1.9em]{pkulogo}\hspace{0.3em}% 368 | \raisebox{0.32em}{\includegraphics[height = 1.3em]{pkuword}}\\[0.5em] 369 | 370 | {\bfseries\ifx\thesiscover\empty{\cthesisname}\else{\thesiscover}\fi}% 371 | } 372 | \vfill 373 | % Title of the thesis. 374 | {% 375 | \newcommand{\titlelabel}{% 题目标签 376 | \zihao{3}\bfseries 377 | \linespread{1.6}\selectfont{\label@ctitle} 378 | } 379 | \titlelabel 380 | { 381 | \thss@int@fillinblank 382 | {3} % 标题行数 383 | {0.64\textwidth} 384 | { 385 | {\zihao{2}\bfseries\kaishu\@ctitle}%中文标题,楷体二号加粗 386 | \\ % 换行 387 | {\zihao{3}\bfseries\@etitle}%英文标题 388 | } 389 | } 390 | } 391 | \vfill 392 | % Information about the author. 393 | {% 394 | % Slightly adjust the line skip when using new font size. 395 | \zihao{3}\linespread{1.75}\selectfont 396 | \def\thss@tmp@len{0.56\textwidth} 397 | \begin{tabular}{l@{\extracolsep{0.2em}}c} 398 | {\bfseries\label@cauthor} & 399 | \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@cauthor} \\ 400 | {\bfseries\label@studentid} & 401 | \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@studentid} \\ 402 | % 院系 403 | {\bfseries\label@school} & 404 | \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@school} \\ 405 | % 本科专业 406 | {\bfseries\label@cmajor} & 407 | \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@cmajor} \\ 408 | % 不需要填研究方向 409 | %{\bfseries\label@direction} & 410 | %\thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@direction} \\ 411 | % 指导老师 412 | {\bfseries\label@cmentor} & 413 | \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@cmentor} \\ 414 | \end{tabular}% 415 | } 416 | \vfill 417 | % 日期:楷体小二 418 | {\zihao{-2}\kaishu\@date} 419 | \par\end{titlepage}% 420 | } 421 | 422 | % Typeset the title page for double-blind review. 423 | \newcommand{\makeblind}{% 424 | \thss@int@pdfmark{\titlepagename}{titlepage} 425 | \begin{titlepage}\renewcommand{\thssnl}{\newline} 426 | \centering\zihao{3}\selectfont\fangsong\vspace*{0.5cm} 427 | {\zihao{-0}\heiti\cuniversity\cthesisname}\\[0.36\baselineskip] 428 | {\zihao{-2}\fangsong\label@blindcover}% 429 | \par\vspace{4\baselineskip} 430 | \renewcommand{\arraystretch}{1.25} 431 | \begin{tabular}{lp{0.75\textwidth}} 432 | \label@blindctitle & {\@ctitle} \\ 433 | \label@blindetitle & {\@etitle} \\\\ 434 | \label@blinddiscipline & {\@discipline} \\ 435 | \label@blindmajor & {\@cmajor} \\ 436 | \label@blindid & {\@blindid} \\ 437 | \end{tabular}\par\vfill 438 | {\@date}\par\vspace*{0.5cm} 439 | \end{titlepage}% 440 | } 441 | 442 | % Typeset the Chinese abstract. 443 | \newenvironment{cabstract}{% 444 | \thss@int@pdfmark{\cabstractname}{cabstract} 445 | \chapter*{\cabstractname}\markboth{\cabstractname}{}% 446 | }{% Keywords at the bottom of the page. 447 | \vfill\noindent\textbf{\label@ckeywords}{\@ckeywords}% 448 | } 449 | 450 | % Typeset the English abstract. 451 | \newenvironment{eabstract}{% 452 | \thss@int@pdfmark{\eabstractname}{eabstract} 453 | \chapter*{\bfseries\eabstractname}\markboth{\eabstractname}{} 454 | % \begin{center} 455 | % {\@eauthor} ({\@emajor})\\ 456 | % {\label@ementor}{\@ementor}\\[2em] 457 | % \textbf{\sffamily\eabstractname} 458 | % \end{center}\par% 459 | }{% Keywords at the bottom of the page. 460 | \vfill\noindent\textbf{\label@ekeywords}{\@ekeywords}% 461 | } 462 | 463 | % Typeset the English abstract for double-blind review. 464 | \newenvironment{beabstract}{% 465 | \thss@int@pdfmark{\eabstractname}{eabstract} 466 | \chapter*{\sffamily\@etitle}\markboth{\eabstractname}{} 467 | \begin{center}\textbf{\sffamily\eabstractname}\end{center}\par% 468 | }{% Keywords at the bottom of the page. 469 | \vfill\noindent\textbf{\label@ekeywords}{\@ekeywords}% 470 | } 471 | 472 | \endinput 473 | % vim:ft=tex:ts=2:sw=2 474 | --------------------------------------------------------------------------------