Compare commits
5 Commits
dc97a63d06
...
3b9f74603c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b9f74603c | ||
|
|
999d0a1f1c | ||
|
|
236727620e | ||
|
|
eb75a1bde1 | ||
|
|
6aa4d94af2 |
2
Makefile
2
Makefile
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
TITLE = pkuthss
|
TITLE = pkuthss
|
||||||
EXAMPLE = thesis
|
EXAMPLE = thesis
|
||||||
VERSION = 1.8.2
|
VERSION = 1.8.3
|
||||||
|
|
||||||
default: dist
|
default: dist
|
||||||
|
|
||||||
|
|||||||
@ -1,42 +0,0 @@
|
|||||||
# Copyright (c) 2008-2009 solvethis
|
|
||||||
# Copyright (c) 2010-2012,2014-2015,2018 Casper Ti. Vector
|
|
||||||
# Public domain.
|
|
||||||
|
|
||||||
# 被编译的主文件的文件名,不包括扩展名。
|
|
||||||
JOB = thesis
|
|
||||||
# 这个变量的值可以为 latex、pdflatex 或 xelatex。
|
|
||||||
LATEX = latex
|
|
||||||
BIBTEX = biber -l zh__pinyin --output-safechars
|
|
||||||
DVIPDF = dvipdfmx
|
|
||||||
|
|
||||||
# 如果用 LaTeX 编译,则使用 dvipdfmx 将 dvi 转成 pdf。
|
|
||||||
ifeq ($(LATEX), latex)
|
|
||||||
DODVIPDF = $(DVIPDF) $(JOB)
|
|
||||||
endif
|
|
||||||
|
|
||||||
# 区分是 Windows 环境还是类 UNIX 环境。
|
|
||||||
# 如果是后者,则 GNU make 将可以检测到已经定义 PATH 环境变量。
|
|
||||||
ifdef PATH
|
|
||||||
MAKE = make
|
|
||||||
RM = rm -f
|
|
||||||
else
|
|
||||||
MAKE = mingw32-make
|
|
||||||
RM = del
|
|
||||||
endif
|
|
||||||
|
|
||||||
doc:
|
|
||||||
$(LATEX) $(JOB)
|
|
||||||
$(BIBTEX) $(JOB)
|
|
||||||
$(LATEX) $(JOB)
|
|
||||||
$(LATEX) $(JOB)
|
|
||||||
$(DODVIPDF)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(RM) $(JOB).aux $(JOB).bbl $(JOB).bcf $(JOB).blg $(JOB).dvi \
|
|
||||||
$(JOB).lof $(JOB).log $(JOB).lot $(JOB).run.xml $(JOB).toc \
|
|
||||||
$(JOB).out $(JOB).out.bak missfont.log texput.log chap/*.aux
|
|
||||||
|
|
||||||
distclean: clean
|
|
||||||
$(RM) $(JOB).pdf
|
|
||||||
|
|
||||||
# vim:ts=4:sw=4
|
|
||||||
@ -1,5 +1,5 @@
|
|||||||
% Copyright (c) 2008-2009 solvethis
|
% Copyright (c) 2008-2009 solvethis
|
||||||
% Copyright (c) 2010-2016,2018-2019 Casper Ti. Vector
|
% Copyright (c) 2010-2016,2018-2019,2021 Casper Ti. Vector
|
||||||
% Public domain.
|
% Public domain.
|
||||||
%
|
%
|
||||||
% 使用前请先仔细阅读 pkuthss 和 biblatex-caspervector 的文档,
|
% 使用前请先仔细阅读 pkuthss 和 biblatex-caspervector 的文档,
|
||||||
@ -28,16 +28,15 @@
|
|||||||
% 设定文档的基本信息。
|
% 设定文档的基本信息。
|
||||||
\pkuthssinfo{
|
\pkuthssinfo{
|
||||||
cthesisname = {博士研究生学位论文}, ethesisname = {Doctor Thesis},
|
cthesisname = {博士研究生学位论文}, ethesisname = {Doctor Thesis},
|
||||||
ctitle = {测试文档}, etitle = {Test Document},
|
ctitle = {测试文档},
|
||||||
cauthor = {某某},
|
etitle = {Test Document},
|
||||||
eauthor = {Test},
|
cauthor = {某某}, eauthor = {Test}, date = {某年某月},
|
||||||
studentid = {0123456789},
|
studentid = {0123456789}, school = {某某学院},
|
||||||
date = {某年某月},
|
|
||||||
school = {某某学院},
|
|
||||||
cmajor = {某某专业}, emajor = {Some Major},
|
cmajor = {某某专业}, emajor = {Some Major},
|
||||||
direction = {某某方向},
|
direction = {某某方向},
|
||||||
cmentor = {某某教授}, ementor = {Prof.\ Somebody},
|
cmentor = {某某教授}, ementor = {Prof.\ Somebody},
|
||||||
ckeywords = {其一,其二}, ekeywords = {First, Second}
|
ckeywords = {其一,其二},
|
||||||
|
ekeywords = {First, Second}
|
||||||
}
|
}
|
||||||
% 载入参考文献数据库(注意不要省略“.bib”)。
|
% 载入参考文献数据库(注意不要省略“.bib”)。
|
||||||
\addbibresource{thesis.bib}
|
\addbibresource{thesis.bib}
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
2020-11-02, v1.8.3
|
||||||
|
|
||||||
|
* Changes to example template:
|
||||||
|
- ctex-fontset-pkuthss.def: update `\ctex_load_zhmap' usage.
|
||||||
|
- Remove Makefile.
|
||||||
|
|
||||||
|
* Changes to package code:
|
||||||
|
- pkuthss.cls: do not let ulem mess with `\emph'.
|
||||||
|
- pkuthss.cls: make `ugly' title page more compliant.
|
||||||
|
|
||||||
|
* Changes to documentation:
|
||||||
|
- pkuthss-chap[12].tex: `须'/`需' typo.
|
||||||
|
- Remove space around `\zhdigits' in date.
|
||||||
|
- Add pkuthss.bib to copyright lines.
|
||||||
|
|
||||||
|
* Misc:
|
||||||
|
- Minor fixes and cosmetics.
|
||||||
|
|
||||||
2019-11-17, v1.8.2
|
2019-11-17, v1.8.2
|
||||||
|
|
||||||
* Misc:
|
* Misc:
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
% Documentation for pkuthss.
|
% Documentation for pkuthss.
|
||||||
%
|
%
|
||||||
% Copyright (c) 2008-2009 solvethis
|
% Copyright (c) 2008-2009 solvethis
|
||||||
% Copyright (c) 2010-2019 Casper Ti. Vector
|
% Copyright (c) 2010-2019,2021 Casper Ti. Vector
|
||||||
%
|
%
|
||||||
% This work may be distributed and/or modified under the conditions of the
|
% This work may be distributed and/or modified under the conditions of the
|
||||||
% LaTeX Project Public License, either version 1.3 of this license or (at
|
% LaTeX Project Public License, either version 1.3 of this license or (at
|
||||||
@ -163,8 +163,8 @@
|
|||||||
\item \texttt{\bfseries\string\etitle}:设定论文西文标题;
|
\item \texttt{\bfseries\string\etitle}:设定论文西文标题;
|
||||||
\item \texttt{\bfseries\string\cauthor}:设定作者的中文名;
|
\item \texttt{\bfseries\string\cauthor}:设定作者的中文名;
|
||||||
\item \texttt{\bfseries\string\eauthor}:设定作者的西文名;
|
\item \texttt{\bfseries\string\eauthor}:设定作者的西文名;
|
||||||
\item \texttt{\bfseries\string\studentid}:设定作者的学号;
|
|
||||||
\item \texttt{\bfseries\string\date}:设定日期;
|
\item \texttt{\bfseries\string\date}:设定日期;
|
||||||
|
\item \texttt{\bfseries\string\studentid}:设定作者的学号;
|
||||||
\item \texttt{\bfseries\string\school}:设定作者的学院名;
|
\item \texttt{\bfseries\string\school}:设定作者的学院名;
|
||||||
\item \texttt{\bfseries\string\cmajor}:设定作者专业的中文名;
|
\item \texttt{\bfseries\string\cmajor}:设定作者专业的中文名;
|
||||||
\item \texttt{\bfseries\string\emajor}:设定作者专业的西文名;
|
\item \texttt{\bfseries\string\emajor}:设定作者专业的西文名;
|
||||||
|
|||||||
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
版权所有 \copyright\ 2008--2009 solvethis
|
版权所有 \copyright\ 2008--2009 solvethis
|
||||||
\par
|
\par
|
||||||
版权所有 \copyright\ 2010--2019 Casper Ti. Vector
|
版权所有 \copyright\ 2010--2021 Casper Ti. Vector
|
||||||
\vskip 1em
|
\vskip 1em
|
||||||
|
|
||||||
pkuthss 文档类及其说明文档均以 \hologo{LaTeX} Project Public License 发布。
|
pkuthss 文档类及其说明文档均以 \hologo{LaTeX} Project Public License 发布。
|
||||||
|
|||||||
@ -100,12 +100,12 @@ index ac5b0c9..9d2ad60 100644
|
|||||||
-
|
-
|
||||||
% vim:ts=4:sw=4
|
% vim:ts=4:sw=4
|
||||||
diff --git a/doc/example/thesis.tex b/doc/example/thesis.tex
|
diff --git a/doc/example/thesis.tex b/doc/example/thesis.tex
|
||||||
index 30e05de..4d6ee53 100644
|
index 9c5f042..a54d01f 100644
|
||||||
--- a/doc/example/thesis.tex
|
--- a/doc/example/thesis.tex
|
||||||
+++ b/doc/example/thesis.tex
|
+++ b/doc/example/thesis.tex
|
||||||
@@ -16,54 +16,44 @@
|
@@ -12,54 +12,44 @@
|
||||||
|
\documentclass[UTF8]{pkuthss}
|
||||||
% 如果的确须要使脚注按页编号的话,可以去掉后面 footmisc 包的注释。
|
% 如果的确须要使脚注按页编号的话,可以去掉后面 footmisc 包的注释。
|
||||||
% 注意:在启用此设定的情况下,可能要多编译一次以产生正确的脚注编号。
|
|
||||||
%\usepackage[perpage]{footmisc}
|
%\usepackage[perpage]{footmisc}
|
||||||
-
|
-
|
||||||
-% 使用 biblatex 排版参考文献,并规定其格式(详见 biblatex-caspervector 的文档)。
|
-% 使用 biblatex 排版参考文献,并规定其格式(详见 biblatex-caspervector 的文档)。
|
||||||
@ -182,11 +182,11 @@ index 30e05de..4d6ee53 100644
|
|||||||
% 以下为正文之前的部分,默认不进行章节编号。
|
% 以下为正文之前的部分,默认不进行章节编号。
|
||||||
\frontmatter
|
\frontmatter
|
||||||
diff --git a/tex/pkuthss-utf8.def b/tex/pkuthss-utf8.def
|
diff --git a/tex/pkuthss-utf8.def b/tex/pkuthss-utf8.def
|
||||||
index b699685..e4e58b6 100644
|
index 9bc6000..7650e53 100644
|
||||||
--- a/tex/pkuthss-utf8.def
|
--- a/tex/pkuthss-utf8.def
|
||||||
+++ b/tex/pkuthss-utf8.def
|
+++ b/tex/pkuthss-utf8.def
|
||||||
@@ -25,13 +25,13 @@
|
@@ -25,13 +25,13 @@
|
||||||
[2018/07/02 v1.8.0 Labels and captions in UTF-8 encoding
|
[2019/11/17 v1.8.2 Labels and captions in UTF-8 encoding
|
||||||
for the pkuthss document class]
|
for the pkuthss document class]
|
||||||
|
|
||||||
-\def\label@ctitle{题目:}
|
-\def\label@ctitle{题目:}
|
||||||
@ -207,10 +207,10 @@ index b699685..e4e58b6 100644
|
|||||||
\def\label@ckeywords{关键词:}
|
\def\label@ckeywords{关键词:}
|
||||||
\def\label@ekeywords{KEYWORDS:\ }
|
\def\label@ekeywords{KEYWORDS:\ }
|
||||||
diff --git a/tex/pkuthss.cls b/tex/pkuthss.cls
|
diff --git a/tex/pkuthss.cls b/tex/pkuthss.cls
|
||||||
index 9e68dc3..4b8cb00 100644
|
index e34fe2d..477b3f4 100644
|
||||||
--- a/tex/pkuthss.cls
|
--- a/tex/pkuthss.cls
|
||||||
+++ b/tex/pkuthss.cls
|
+++ b/tex/pkuthss.cls
|
||||||
@@ -301,7 +301,7 @@
|
@@ -304,7 +304,7 @@
|
||||||
\fancyhf{}\renewcommand*{\headrulewidth}{0.75bp}
|
\fancyhf{}\renewcommand*{\headrulewidth}{0.75bp}
|
||||||
\fancyfoot[C]{\zihao{5}\normalfont{\thepage}}
|
\fancyfoot[C]{\zihao{5}\normalfont{\thepage}}
|
||||||
\if@twoside
|
\if@twoside
|
||||||
@ -219,7 +219,7 @@ index 9e68dc3..4b8cb00 100644
|
|||||||
\fancyhead[CO]{\zihao{5}\normalfont\thss@int@setcase{\leftmark}}
|
\fancyhead[CO]{\zihao{5}\normalfont\thss@int@setcase{\leftmark}}
|
||||||
\else
|
\else
|
||||||
\fancyhead[C]{\zihao{5}\normalfont\thss@int@setcase{\leftmark}}
|
\fancyhead[C]{\zihao{5}\normalfont\thss@int@setcase{\leftmark}}
|
||||||
@@ -347,13 +347,13 @@
|
@@ -350,13 +350,13 @@
|
||||||
\zihao{1}%
|
\zihao{1}%
|
||||||
\includegraphics[height = 2.4em]{pkulogo}\hspace{0.4em}%
|
\includegraphics[height = 2.4em]{pkulogo}\hspace{0.4em}%
|
||||||
\raisebox{0.4em}{\includegraphics[height = 1.6em]{pkuword}}\\[0.8em]
|
\raisebox{0.4em}{\includegraphics[height = 1.6em]{pkuword}}\\[0.8em]
|
||||||
@ -235,7 +235,7 @@ index 9e68dc3..4b8cb00 100644
|
|||||||
}
|
}
|
||||||
\vfill
|
\vfill
|
||||||
% Information about the author.
|
% Information about the author.
|
||||||
@@ -361,19 +361,19 @@
|
@@ -364,19 +364,19 @@
|
||||||
% Slightly adjust the line skip when using new font size.
|
% Slightly adjust the line skip when using new font size.
|
||||||
\zihao{3}\linespread{1.75}\selectfont
|
\zihao{3}\linespread{1.75}\selectfont
|
||||||
\def\thss@tmp@len{0.56\textwidth}
|
\def\thss@tmp@len{0.56\textwidth}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
% Documentation for pkuthss.
|
% Documentation for pkuthss.
|
||||||
%
|
%
|
||||||
% Copyright (c) 2008-2009 solvethis
|
% Copyright (c) 2008-2009 solvethis
|
||||||
% Copyright (c) 2010-2019 Casper Ti. Vector
|
% Copyright (c) 2010-2020 Casper Ti. Vector
|
||||||
%
|
%
|
||||||
% This work may be distributed and/or modified under the conditions of the
|
% This work may be distributed and/or modified under the conditions of the
|
||||||
% LaTeX Project Public License, either version 1.3 of this license or (at
|
% LaTeX Project Public License, either version 1.3 of this license or (at
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
% Documentation for pkuthss.
|
% Documentation for pkuthss.
|
||||||
%
|
%
|
||||||
% Copyright (c) 2008-2009 solvethis
|
% Copyright (c) 2008-2009 solvethis
|
||||||
% Copyright (c) 2010-2016,2018-2019 Casper Ti. Vector
|
% Copyright (c) 2010-2016,2018-2019,2021 Casper Ti. Vector
|
||||||
%
|
%
|
||||||
% This work may be distributed and/or modified under the conditions of the
|
% This work may be distributed and/or modified under the conditions of the
|
||||||
% LaTeX Project Public License, either version 1.3 of this license or (at
|
% LaTeX Project Public License, either version 1.3 of this license or (at
|
||||||
@ -50,7 +50,7 @@
|
|||||||
tabsize = 4, formatcom = {\ifXeTeX\xeCJKVerbAddon\fi}
|
tabsize = 4, formatcom = {\ifXeTeX\xeCJKVerbAddon\fi}
|
||||||
}
|
}
|
||||||
|
|
||||||
\newcommand*{\docversion}{v1.8.2}
|
\newcommand*{\docversion}{v1.8.3}
|
||||||
\pkuthssinfo{
|
\pkuthssinfo{
|
||||||
cthesisname = {本科生毕业论文}, ethesisname = {Undergraduate Thesis},
|
cthesisname = {本科生毕业论文}, ethesisname = {Undergraduate Thesis},
|
||||||
ctitle = {北京大学学位论文模版\\pkuthss \docversion},
|
ctitle = {北京大学学位论文模版\\pkuthss \docversion},
|
||||||
@ -58,16 +58,14 @@
|
|||||||
PKU dissertation document class\texorpdfstring{\\}{: }%
|
PKU dissertation document class\texorpdfstring{\\}{: }%
|
||||||
pkuthss \docversion%
|
pkuthss \docversion%
|
||||||
},
|
},
|
||||||
cauthor = {盖茨波·钛·维克托},
|
cauthor = {盖茨波·钛·维克托}, eauthor = {Casper Ti.\ Vector},
|
||||||
eauthor = {Casper Ti.\ Vector},
|
date = {\zhdigits{2020}年\zhnumber{11}月},
|
||||||
studentid = {00910???},
|
studentid = {00910???}, school = {化学与分子工程学院},
|
||||||
date = {\zhdigits{2019}年\zhnumber{11}月},
|
|
||||||
school = {化学与分子工程学院},
|
|
||||||
cmajor = {化学(?)}, emajor = {Chemistry ... ?},
|
cmajor = {化学(?)}, emajor = {Chemistry ... ?},
|
||||||
direction = {据说 Casper 自己也不知道},
|
direction = {据说 Casper 自己也不知道},
|
||||||
cmentor = {XX 教授}, ementor = {Prof.\ XX},
|
cmentor = {XX 教授}, ementor = {Prof.\ XX},
|
||||||
ckeywords = {\hologo{LaTeX2e},排版,文档类,\CTeX{}},
|
ckeywords = {\hologo{LaTeX},排版,文档类,\CTeX{}},
|
||||||
ekeywords = {\hologo{LaTeX2e}, Typesetting, Document class, \CTeX{}}
|
ekeywords = {\hologo{LaTeX}, Typesetting, Document class, \CTeX{}}
|
||||||
}
|
}
|
||||||
\addbibresource{pkuthss.bib}
|
\addbibresource{pkuthss.bib}
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
% pkuword.eps
|
% pkuword.eps
|
||||||
|
|
||||||
\ProvidesFile{pkuthss-gbk.def}
|
\ProvidesFile{pkuthss-gbk.def}
|
||||||
[2019/11/17 v1.8.2 Labels and captions in GBK encoding
|
[2020/11/02 v1.8.3 Labels and captions in GBK encoding
|
||||||
for the pkuthss document class]
|
for the pkuthss document class]
|
||||||
|
|
||||||
\def\label@ctitle{题目:}
|
\def\label@ctitle{题目:}
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
% pkuword.eps
|
% pkuword.eps
|
||||||
|
|
||||||
\ProvidesFile{pkuthss-utf8.def}
|
\ProvidesFile{pkuthss-utf8.def}
|
||||||
[2019/11/17 v1.8.2 Labels and captions in UTF-8 encoding
|
[2020/11/02 v1.8.3 Labels and captions in UTF-8 encoding
|
||||||
for the pkuthss document class]
|
for the pkuthss document class]
|
||||||
|
|
||||||
\def\label@ctitle{题目:}
|
\def\label@ctitle{题目:}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
% Peking University dissertation document class
|
% Peking University dissertation document class
|
||||||
%
|
%
|
||||||
% Copyright (c) 2008-2009 solvethis
|
% Copyright (c) 2008-2009 solvethis
|
||||||
% Copyright (c) 2010-2019 Casper Ti. Vector
|
% Copyright (c) 2010-2021 Casper Ti. Vector
|
||||||
%
|
%
|
||||||
% This work may be distributed and/or modified under the conditions of the
|
% This work may be distributed and/or modified under the conditions of the
|
||||||
% LaTeX Project Public License, either version 1.3 of this license or (at
|
% LaTeX Project Public License, either version 1.3 of this license or (at
|
||||||
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
||||||
\ProvidesClass{pkuthss}
|
\ProvidesClass{pkuthss}
|
||||||
[2019/11/17 v1.8.2 Peking University dissertation document class]
|
[2020/11/02 v1.8.3 Peking University dissertation document class]
|
||||||
|
|
||||||
% eg. `\thss@int@boolopt{spacing}{true}' will expand to:
|
% eg. `\thss@int@boolopt{spacing}{true}' will expand to:
|
||||||
% \newif\ifthss@opt@spacing \thss@opt@spacingtrue
|
% \newif\ifthss@opt@spacing \thss@opt@spacingtrue
|
||||||
@ -355,7 +355,7 @@
|
|||||||
\vfill
|
\vfill
|
||||||
% Title of the thesis.
|
% Title of the thesis.
|
||||||
{%
|
{%
|
||||||
\zihao{2}{\label@ctitle}\linespread{1.6}\selectfont%
|
\zihao{2}\linespread{1.6}\selectfont{\label@ctitle}%
|
||||||
\thss@int@fillinblank{2}{0.64\textwidth}{\textbf{\@ctitle}}%
|
\thss@int@fillinblank{2}{0.64\textwidth}{\textbf{\@ctitle}}%
|
||||||
}
|
}
|
||||||
\vfill
|
\vfill
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user