| 1 |
diff --git a/doc/example/chap/abs.tex b/doc/example/chap/abs.tex |
| 2 |
index ea215a8..8ad4294 100644 |
| 3 |
--- a/doc/example/chap/abs.tex |
| 4 |
+++ b/doc/example/chap/abs.tex |
| 5 |
@@ -2,7 +2,7 @@ |
| 6 |
% Public domain. |
| 7 |
|
| 8 |
\begin{cabstract} |
| 9 |
- \pkuthssffaq % 中文测试文字。 |
| 10 |
+ 中文摘要。 |
| 11 |
\end{cabstract} |
| 12 |
|
| 13 |
\ifblind\begin{beabstract}\else\begin{eabstract}\fi |
| 14 |
diff --git a/doc/example/chap/ack.tex b/doc/example/chap/ack.tex |
| 15 |
index 4af4d39..09de33d 100644 |
| 16 |
--- a/doc/example/chap/ack.tex |
| 17 |
+++ b/doc/example/chap/ack.tex |
| 18 |
@@ -1,7 +1,7 @@ |
| 19 |
% Copyright (c) 2014,2016 Casper Ti. Vector |
| 20 |
% Public domain. |
| 21 |
|
| 22 |
-\chapter{致谢} |
| 23 |
-\pkuthssffaq % 中文测试文字。 |
| 24 |
+\chapter{Acknowledgements} |
| 25 |
+Test text. |
| 26 |
|
| 27 |
% vim:ts=4:sw=4 |
| 28 |
diff --git a/doc/example/chap/chap1.tex b/doc/example/chap/chap1.tex |
| 29 |
index 3d631f3..6e46b13 100644 |
| 30 |
--- a/doc/example/chap/chap1.tex |
| 31 |
+++ b/doc/example/chap/chap1.tex |
| 32 |
@@ -1,7 +1,7 @@ |
| 33 |
% Copyright (c) 2014,2016,2018 Casper Ti. Vector |
| 34 |
% Public domain. |
| 35 |
|
| 36 |
-\chapter{引言} |
| 37 |
-\pkuthssffaq % 中文测试文字。 |
| 38 |
+\chapter{Introduction} |
| 39 |
+Test text. |
| 40 |
|
| 41 |
% vim:ts=4:sw=4 |
| 42 |
diff --git a/doc/example/chap/chap2.tex b/doc/example/chap/chap2.tex |
| 43 |
index 85f7008..da8c177 100644 |
| 44 |
--- a/doc/example/chap/chap2.tex |
| 45 |
+++ b/doc/example/chap/chap2.tex |
| 46 |
@@ -1,7 +1,7 @@ |
| 47 |
% Copyright (c) 2014,2016 Casper Ti. Vector |
| 48 |
% Public domain. |
| 49 |
|
| 50 |
-\chapter{章节} |
| 51 |
-\pkuthssffaq % 中文测试文字。 |
| 52 |
+\chapter{Some chapter} |
| 53 |
+Test text. |
| 54 |
|
| 55 |
% vim:ts=4:sw=4 |
| 56 |
diff --git a/doc/example/chap/chap3.tex b/doc/example/chap/chap3.tex |
| 57 |
index ed66f12..ae221d6 100644 |
| 58 |
--- a/doc/example/chap/chap3.tex |
| 59 |
+++ b/doc/example/chap/chap3.tex |
| 60 |
@@ -1,7 +1,7 @@ |
| 61 |
% Copyright (c) 2014,2016,2018 Casper Ti. Vector |
| 62 |
% Public domain. |
| 63 |
|
| 64 |
-\chapter{结论和展望} |
| 65 |
-\pkuthssffaq % 中文测试文字。 |
| 66 |
+\chapter{Conclusion} |
| 67 |
+Test text. |
| 68 |
|
| 69 |
% vim:ts=4:sw=4 |
| 70 |
diff --git a/doc/example/chap/encl1.tex b/doc/example/chap/encl1.tex |
| 71 |
index 9834829..4296e9a 100644 |
| 72 |
--- a/doc/example/chap/encl1.tex |
| 73 |
+++ b/doc/example/chap/encl1.tex |
| 74 |
@@ -1,7 +1,7 @@ |
| 75 |
% Copyright (c) 2014,2016 Casper Ti. Vector |
| 76 |
% Public domain. |
| 77 |
|
| 78 |
-\chapter{附件} |
| 79 |
-\pkuthssffaq % 中文测试文字。 |
| 80 |
+\chapter{Some appendix} |
| 81 |
+Test text. |
| 82 |
|
| 83 |
% vim:ts=4:sw=4 |
| 84 |
diff --git a/doc/example/thesis.bib b/doc/example/thesis.bib |
| 85 |
index ac5b0c9..9d2ad60 100644 |
| 86 |
--- a/doc/example/thesis.bib |
| 87 |
+++ b/doc/example/thesis.bib |
| 88 |
@@ -7,13 +7,4 @@ |
| 89 |
language = {english}, |
| 90 |
} |
| 91 |
|
| 92 |
-@article{test-zh, |
| 93 |
- author = {作者}, |
| 94 |
- title = {标题}, |
| 95 |
- type = {J}, |
| 96 |
- journal = {期刊}, |
| 97 |
- date = {2014-04-01}, |
| 98 |
- language = {chinese}, |
| 99 |
-} |
| 100 |
- |
| 101 |
% vim:ts=4:sw=4 |
| 102 |
diff --git a/doc/example/thesis.tex b/doc/example/thesis.tex |
| 103 |
index dbfd379..6a8767a 100644 |
| 104 |
--- a/doc/example/thesis.tex |
| 105 |
+++ b/doc/example/thesis.tex |
| 106 |
@@ -14,36 +14,43 @@ |
| 107 |
\documentclass[UTF8]{pkuthss} |
| 108 |
% 如果的确须要使脚注按页编号的话,可以去掉后面 footmisc 包的注释。 |
| 109 |
%\usepackage[perpage]{footmisc} |
| 110 |
- |
| 111 |
-% 使用 biblatex 排版参考文献,并规定其格式(详见 biblatex-caspervector 的文档)。 |
| 112 |
-% 这里按照西文文献在前,中文文献在后排序(“sorting = ecnyt”); |
| 113 |
-% 若须按照中文文献在前,西文文献在后排序,请设置“sorting = cenyt”; |
| 114 |
-% 若须按照引用顺序排序,请设置“sorting = none”。 |
| 115 |
-% 若须在排序中实现更复杂的需求,请参考 biblatex-caspervector 的文档。 |
| 116 |
-% biblatex-caspervector 也有一个“ugly”选项,使其更像国标格式;此外也可考虑 |
| 117 |
-% 改用 style = gb7714-2015 并去掉之后两选项,详见 biblatex-gb7714-2015 的文档。 |
| 118 |
-\usepackage[backend = biber, style = caspervector, utf8, sorting = ecnyt]{biblatex} |
| 119 |
+% 使用 biblatex 排版参考文献,并规定其格式(详见 biblatex 的文档)。 |
| 120 |
+\usepackage[backend = biber]{biblatex} |
| 121 |
|
| 122 |
% 对于 linespread 值的计算过程有兴趣的同学可以参考 pkuthss.cls。 |
| 123 |
\renewcommand*{\bibfont}{\zihao{5}\linespread{1.27}\selectfont} |
| 124 |
% 按学校要求设定参考文献列表的段间距。 |
| 125 |
\setlength{\bibitemsep}{3bp} |
| 126 |
|
| 127 |
+\ctexset{ |
| 128 |
+ contentsname = {Contents}, |
| 129 |
+ listfigurename = {List of Figures}, |
| 130 |
+ listtablename = {List of Tables}, |
| 131 |
+ figurename = {Figure}, |
| 132 |
+ tablename = {Table}, |
| 133 |
+ indexname = {Index}, |
| 134 |
+ appendixname = {Appendix}, |
| 135 |
+ part/name = {\partname\space}, |
| 136 |
+ part/number = {\thepart}, |
| 137 |
+ chapter/name = {\chaptername\space}, |
| 138 |
+ chapter/number = {\thechapter}, |
| 139 |
+} |
| 140 |
+ |
| 141 |
% 如是双盲版论文,将 \blindfalse 改为 \blindtrue。后面可用 |
| 142 |
% \ifblind 根据是否双盲来条件地启用代码(参见本文件后面部分)。 |
| 143 |
\newif\ifblind\blindfalse |
| 144 |
% 设定文档的基本信息。 |
| 145 |
\pkuthssinfo{ |
| 146 |
- cthesisname = {博士学位论文}, ethesisname = {Doctor Thesis}, |
| 147 |
- thesiscover = {博士研究生学位论文}, |
| 148 |
+ ethesisname = {Doctor Thesis}, |
| 149 |
% 长标题可用 \thssnl 强制换行,不能用“\\”(双盲版会出错)。 |
| 150 |
- ctitle = {测试文档}, |
| 151 |
etitle = {Test Document}, |
| 152 |
- cauthor = {某某}, eauthor = {Test}, date = {某年某月}, |
| 153 |
- studentid = {0123456789}, school = {某某学院}, |
| 154 |
- cmajor = {某某专业}, emajor = {Some Major}, |
| 155 |
- direction = {某某方向}, mentorlines = {2}, |
| 156 |
- cmentor = {某甲教授\\某乙教授}, |
| 157 |
+ eauthor = {Test}, |
| 158 |
+ date = {Month Year}, studentid = {0123456789}, |
| 159 |
+ school = {Some School}, |
| 160 |
+ emajor = {Some Major}, |
| 161 |
+ direction = {Some Research Division}, |
| 162 |
+ mentorlines = {2}, |
| 163 |
+ cmentor = {Prof.\ Somebody\\Prof.\ Someone}, |
| 164 |
ementor = {Prof.\ Somebody and Prof.\ Someone}, |
| 165 |
ckeywords = {其一,其二}, |
| 166 |
ekeywords = {First, Second}, |
| 167 |
@@ -54,34 +61,6 @@ |
| 168 |
% 载入参考文献数据库(注意不要省略“.bib”)。 |
| 169 |
\addbibresource{thesis.bib} |
| 170 |
|
| 171 |
-% 普通用户可删除此段,并相应地删除 chap/*.tex 中的 |
| 172 |
-% “\pkuthssffaq % 中文测试文字。”一行。 |
| 173 |
-\usepackage{color} |
| 174 |
-\def\pkuthssffaq{% |
| 175 |
- \emph{\textcolor{red}{pkuthss 文档模版最常见问题:}} |
| 176 |
- |
| 177 |
- \texttt{\string\cite}、\texttt{\string\parencite} % |
| 178 |
- 和 \texttt{\string\supercite} 三个命令分别产生% |
| 179 |
- 未格式化的、带方括号的和上标且带方括号的引用标记:% |
| 180 |
- \cite{test-en},\parencite{test-zh}、\supercite{test-en, test-zh}。 |
| 181 |
- |
| 182 |
- 若格式审查时提示字号或其它格式细节问题,请启用 pkuthss 的 \texttt{ugly} |
| 183 |
- 选项,同时可以考虑启用 biblatex-caspervector 的 \texttt{ugly} 选项 |
| 184 |
- 或者换用 biblatex-gb7714-2015,详见 \texttt{thesis.tex} 中相关注释。 |
| 185 |
- |
| 186 |
- 生成的 PDF 文件中标记链接的彩色框不会出现在打印版论文中。 |
| 187 |
- 如仍须去掉,可在 \texttt{thesis.tex} 导言区加入 |
| 188 |
- \texttt{\string\hypersetup\{hidelinks\}}。 |
| 189 |
- |
| 190 |
- 若要避免章末空白页,请在调用 pkuthss 文档类时加入 \texttt{openany} 选项。 |
| 191 |
- |
| 192 |
- 如果编译时不出参考文献, |
| 193 |
- 请参考 \texttt{texdoc pkuthss}“问题及其解决”一章 |
| 194 |
- “上游宏包可能引起的问题”一节中关于 biber 的说明。 |
| 195 |
- |
| 196 |
- 因无法假定用户使用哪种方式排版表格,用户须自行保证表格字号符合学校规定。% |
| 197 |
-} |
| 198 |
- |
| 199 |
\begin{document} |
| 200 |
% 以下为正文之前的部分,默认不进行章节编号。 |
| 201 |
\frontmatter |
| 202 |
diff --git a/tex/pkuthss-utf8.def b/tex/pkuthss-utf8.def |
| 203 |
index e1d9566..7cfbd32 100644 |
| 204 |
--- a/tex/pkuthss-utf8.def |
| 205 |
+++ b/tex/pkuthss-utf8.def |
| 206 |
@@ -27,13 +27,13 @@ |
| 207 |
[2021/10/16 v1.9.1 Labels and captions in UTF-8 encoding |
| 208 |
for the pkuthss document class] |
| 209 |
|
| 210 |
-\def\label@ctitle{题目:} |
| 211 |
-\def\label@cauthor{姓\hphantom{汉字}名:} |
| 212 |
-\def\label@studentid{学\hphantom{汉字}号:} |
| 213 |
-\def\label@school{院\hphantom{汉字}系:} |
| 214 |
-\def\label@cmajor{专\hphantom{汉字}业:} |
| 215 |
-\def\label@direction{研究方向:} |
| 216 |
-\def\label@cmentor{导\hphantom{汉字}师:} |
| 217 |
+\def\label@ctitle{Title: } |
| 218 |
+\def\label@cauthor{Name} |
| 219 |
+\def\label@studentid{Student ID} |
| 220 |
+\def\label@school{Affiliation} |
| 221 |
+\def\label@cmajor{Major} |
| 222 |
+\def\label@direction{Research Division} |
| 223 |
+\def\label@cmentor{Supervisor} |
| 224 |
\def\label@ckeywords{关键词:} |
| 225 |
\def\label@blindcover{(匿名评阅论文封面)} |
| 226 |
\def\label@blindctitle{中文题目:} |
| 227 |
diff --git a/tex/pkuthss.cls b/tex/pkuthss.cls |
| 228 |
index 5aaf3ae..68bc3a4 100644 |
| 229 |
--- a/tex/pkuthss.cls |
| 230 |
+++ b/tex/pkuthss.cls |
| 231 |
@@ -332,7 +332,7 @@ |
| 232 |
\fancyhf{}\renewcommand*{\headrulewidth}{0.75bp} |
| 233 |
\fancyfoot[C]{\zihao{5}\normalfont{\thepage}} |
| 234 |
\if@twoside |
| 235 |
- \fancyhead[CE]{\zihao{5}\normalfont{\cuniversity\cthesisname}} |
| 236 |
+ \fancyhead[CE]{\zihao{5}\normalfont{{\euniversity} {\ethesisname}}} |
| 237 |
\fancyhead[CO]{\zihao{5}\normalfont\thss@int@setcase{\leftmark}} |
| 238 |
\else |
| 239 |
\fancyhead[C]{\zihao{5}\normalfont\thss@int@setcase{\leftmark}} |
| 240 |
@@ -382,14 +382,14 @@ |
| 241 |
\zihao{1}\includegraphics[height = 2.4em]{pkulogo}\hspace{0.4em}% |
| 242 |
\raisebox{0.4em}{\includegraphics[height = 1.6em]{pkuword}}\\[0.8em] |
| 243 |
\fi% |
| 244 |
- {\bfseries\ifx\thesiscover\empty{\cthesisname}\else{\thesiscover}\fi}% |
| 245 |
+ {\bfseries\ethesisname}% |
| 246 |
} |
| 247 |
\vfill |
| 248 |
% Title of the thesis. |
| 249 |
{% |
| 250 |
\ifthss@opt@ugly\zihao{-1}\else\zihao{2}\fi% |
| 251 |
\linespread{1.6}\selectfont{\label@ctitle}% |
| 252 |
- \thss@int@fillinblank{2}{0.64\textwidth}{\textbf{\@ctitle}}% |
| 253 |
+ \thss@int@fillinblank{2}{0.64\textwidth}{\textbf{\@etitle}}% |
| 254 |
} |
| 255 |
\vfill |
| 256 |
% Information about the author. |
| 257 |
@@ -397,18 +397,18 @@ |
| 258 |
% Slightly adjust the line skip when using new font size. |
| 259 |
\zihao{3}\linespread{1.75}\selectfont |
| 260 |
\def\thss@tmp@len{0.56\textwidth} |
| 261 |
- \begin{tabular}{l@{\extracolsep{0.2em}}c} |
| 262 |
- {\bfseries\label@cauthor} & |
| 263 |
- \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@cauthor} \\ |
| 264 |
- {\bfseries\label@studentid} & |
| 265 |
+ \begin{tabular}{c@{\extracolsep{0.2em}}c@{\extracolsep{0.2em}}c} |
| 266 |
+ {\bfseries\label@cauthor} & : & |
| 267 |
+ \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@eauthor} \\ |
| 268 |
+ {\bfseries\label@studentid} & : & |
| 269 |
\thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@studentid} \\ |
| 270 |
- {\bfseries\label@school} & |
| 271 |
+ {\bfseries\label@school} & : & |
| 272 |
\thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@school} \\ |
| 273 |
- {\bfseries\label@cmajor} & |
| 274 |
- \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@cmajor} \\ |
| 275 |
- {\bfseries\label@direction} & |
| 276 |
+ {\bfseries\label@cmajor} & : & |
| 277 |
+ \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@emajor} \\ |
| 278 |
+ {\bfseries\label@direction} & : & |
| 279 |
\thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@direction} \\ |
| 280 |
- {\bfseries\label@cmentor} & |
| 281 |
+ {\bfseries\label@cmentor} & : & |
| 282 |
\thss@int@fillinblank{\mentorlines}% |
| 283 |
{\thss@tmp@len}{\fangsong\@cmentor} \\ |
| 284 |
\end{tabular}% |