init template version
This commit is contained in:
parent
133ca4b502
commit
0a87a1da42
19
Makefile
19
Makefile
@ -1,19 +0,0 @@
|
||||
# Copyright (c) 2011-2014,2019 Casper Ti. Vector
|
||||
# Public domain.
|
||||
|
||||
TITLE = pkuthss
|
||||
EXAMPLE = thesis
|
||||
VERSION = 1.9.1
|
||||
|
||||
default: dist
|
||||
|
||||
qa:
|
||||
utils/qa
|
||||
|
||||
bump:
|
||||
utils/bump VERSION=$(VERSION)
|
||||
|
||||
dist clean distclean:
|
||||
utils/dist TITLE=$(TITLE) EXAMPLE=$(EXAMPLE) VERSION=$(VERSION) $@
|
||||
|
||||
# vim:ts=4:sw=4
|
||||
@ -2,7 +2,7 @@
|
||||
% Public domain.
|
||||
|
||||
\begin{cabstract}
|
||||
\pkuthssffaq % 中文测试文字。
|
||||
% \pkuthssffaq % 中文测试文字。
|
||||
\end{cabstract}
|
||||
|
||||
\ifblind\begin{beabstract}\else\begin{eabstract}\fi
|
||||
|
||||
@ -2,6 +2,6 @@
|
||||
% Public domain.
|
||||
|
||||
\chapter{致谢}
|
||||
\pkuthssffaq % 中文测试文字。
|
||||
% \pkuthssffaq % 中文测试文字。
|
||||
|
||||
% vim:ts=4:sw=4
|
||||
|
||||
@ -349,11 +349,11 @@
|
||||
% Emblem and inscription of the university, and type of thesis.
|
||||
{%
|
||||
\ifthss@opt@ugly%
|
||||
\zihao{-0}\includegraphics[height = 1.9em]{pkulogo}\hspace{0.3em}%
|
||||
\raisebox{0.32em}{\includegraphics[height = 1.3em]{pkuword}}\\[0.5em]
|
||||
\zihao{-0}\hspace{0.3em}%
|
||||
\\[0.5em]
|
||||
\else%
|
||||
\zihao{1}\includegraphics[height = 2.4em]{pkulogo}\hspace{0.4em}%
|
||||
\raisebox{0.4em}{\includegraphics[height = 1.6em]{pkuword}}\\[0.8em]
|
||||
\zihao{1}\hspace{0.4em}%
|
||||
\\[0.8em]
|
||||
\fi%
|
||||
{\bfseries\ifx\thesiscover\empty{\cthesisname}\else{\thesiscover}\fi}%
|
||||
}
|
||||
@ -22,8 +22,9 @@
|
||||
% 若须在排序中实现更复杂的需求,请参考 biblatex-caspervector 的文档。
|
||||
% biblatex-caspervector 也有一个“ugly”选项,使其更像国标格式;此外也可考虑
|
||||
% 改用 style = gb7714-2015 并去掉之后两选项,详见 biblatex-gb7714-2015 的文档。
|
||||
\usepackage[backend = biber, style = caspervector, utf8, sorting = ecnyt]{biblatex}
|
||||
\usepackage[backend = biber, seconds = true, style = caspervector, utf8, sorting = none]{biblatex}
|
||||
|
||||
\hypersetup{colorlinks = true, allcolors = blue}
|
||||
% 对于 linespread 值的计算过程有兴趣的同学可以参考 pkuthss.cls。
|
||||
\renewcommand*{\bibfont}{\zihao{5}\linespread{1.27}\selectfont}
|
||||
% 按学校要求设定参考文献列表的段间距。
|
||||
@ -108,8 +109,8 @@
|
||||
\mainmatter
|
||||
% 各章节。
|
||||
\include{chap/chap1}
|
||||
\include{chap/chap2}
|
||||
\include{chap/chap3}
|
||||
% \include{chap/chap2}
|
||||
% \include{chap/chap3}
|
||||
|
||||
% 正文中的附录部分。
|
||||
\appendix
|
||||
@ -117,14 +118,14 @@
|
||||
% 如果同时要使参考文献列表参与章节编号,可将“bibintoc”改为“bibnumbered”。
|
||||
\printbibliography[heading = bibintoc]
|
||||
% 各附录。
|
||||
\include{chap/encl1}
|
||||
% \include{chap/encl1}
|
||||
|
||||
% 以下为正文之后的部分,默认不进行章节编号。
|
||||
\backmatter
|
||||
% 致谢。
|
||||
\ifblind\else\include{chap/ack}\fi
|
||||
% 原创性声明和使用授权说明。
|
||||
\include{chap/origin}
|
||||
% \include{chap/origin}
|
||||
\end{document}
|
||||
|
||||
% vim:ts=4:sw=4
|
||||
|
||||
@ -1,63 +0,0 @@
|
||||
2011/12/21,ver 1.3(包括前面所有 alpha、beta 和 rc 版本):
|
||||
--- 进一步重构,
|
||||
将核心设置集中于 pkuthss 文档类中,
|
||||
常见的额外设置集中于 pkuthss-extra 宏包中。
|
||||
--- 统一宏的命名规则。
|
||||
--- 支持使用 key=val 语法进行文档信息的设置,使文档结构更加清晰。
|
||||
--- 设定 pdf 元数据时使用英文的文档信息,绕过字符编码的问题。
|
||||
--- 在文档中加入一份代码的 listing,
|
||||
以尽量避免不断有人抱怨的文档类代码“乱码”的问题。
|
||||
--- 去掉了 FAQ 部分,
|
||||
因为其中内容或是比较陈旧,或是已经在前面提到。
|
||||
--- 重新选择 license,尽量减少对用户不必要的约束。
|
||||
|
||||
2010/11/30,ver 1.2(包括前面所有 beta 版本):
|
||||
--- 支持 UTF-8 和 GBK 编码。
|
||||
支持 XeLaTeX(但不可和 GBK 同用)。
|
||||
--- 较大规模重构:
|
||||
定义了一些新命令以实现一些重复的代码的功能,
|
||||
删除了冗余代码和一些用处不大的旧命令,调整了目录结构。
|
||||
--- 将部分重复代码统一,
|
||||
并把一些将来可能引起不兼容的命令以标准 LaTeX 命令代替。
|
||||
--- 考虑到现在的 ctex 宏包已经对中文排版的格式做出了较好的设定,
|
||||
并且已经较好地支持了 hyperref,
|
||||
删除了类文件中规定排版格式的部分代码,
|
||||
且去除了对 ifpdf 宏包的直接依赖。
|
||||
--- 统一各处的长度单位,均使用 pt 或 em,以免引起困惑。
|
||||
--- 从美的角度调整了部分排版格式,
|
||||
特别是去掉了所有用 poor man's bold 实现的“粗宋体”。
|
||||
|
||||
2008/03/13,ver 1.1:
|
||||
--- 更正了“geometry”,将纸张大小设为“a4paper”。
|
||||
--- 更新了 chaps/mydefs.tex,将“colorlinks”设为“false”,
|
||||
因为带颜色的链接在黑白打印机上打出来往往颜色很浅。
|
||||
--- 更正了 chaps/sample.bib,将“SOURCE”改为“URL”。
|
||||
这样 BibTeX 虽然又会 Warning,不过这样概念上更正确,
|
||||
而且结果还不错。
|
||||
--- 删除了 pkuthss.cls 和 pkuthss.def 的部分内容,
|
||||
因为最后的两个声明都不必装订到论文中。
|
||||
|
||||
2007/12/12,ver 1.0 rc4:
|
||||
--- 将“\bibstyle”设为“chinesebst”。
|
||||
|
||||
2007/09/05,ver 1.0 rc3:
|
||||
--- 封面页作了小的调整,当标题只有一行时也不会产生 Warning。
|
||||
现在的实现方法使用的是标准的 LaTeX box。
|
||||
--- 加入了“graphicx”的版本要求。
|
||||
|
||||
2007/09/04,ver 1.0 rc2:
|
||||
--- 在 preamble 部分现在可使用中文。
|
||||
--- 更正了版心尺寸,即在“geometry”的选项中加入“includeheadfoot”。
|
||||
--- 改进了 pkulogo.ps ,并提供了 img/Makefile。
|
||||
|
||||
2007/09/02,ver 1.0 rc1:
|
||||
--- 由于“\ifx\pdfoutput\undefined”在 teTeX-3.0 中不起作用,
|
||||
改为使用“ifpdf”宏包。
|
||||
--- sample.tex and chaps/1.tex changed accordingly。
|
||||
--- Linux/Unix 的默认编译方式改为使用 pdflatex,见 Makefile。
|
||||
--- 消除了运行 BibTeX 时出现的一个 Warning。
|
||||
|
||||
2007/09/01,ver 1.0 beta:
|
||||
--- 最初的尝试。
|
||||
|
||||
# vim:ts=4:sw=4
|
||||
@ -1,543 +0,0 @@
|
||||
2021-10-16, v1.9.1
|
||||
|
||||
* API changes:
|
||||
- Support `mentorlines' like casthss.
|
||||
|
||||
* Changes to example template:
|
||||
- thesis.tex: more obvious hints on `ugly', new note on `hidelinks'.
|
||||
- copy.tex, origin.tex: minor update according to school requirements.
|
||||
|
||||
* Changes to package code:
|
||||
- Merge common parts from pkuthss-*.def into pkuthss.def.
|
||||
- Also "uglify" the keywords label.
|
||||
|
||||
* Misc:
|
||||
- ChangeLog.txt: typo (thank @fjn308).
|
||||
- Minor fixes and cosmetics.
|
||||
|
||||
2021-03-29, v1.9.0
|
||||
|
||||
* API changes:
|
||||
- Add support for double-blind review (thank @Kurapikov).
|
||||
- Add `\thesiscover' for possibly different thesis name on the cover.
|
||||
|
||||
* Changes to package code:
|
||||
- Greatly improve format compliance (thank @Kurapikov).
|
||||
|
||||
* Changes to documentation:
|
||||
- More notes about table font and GB/T 7714.
|
||||
- Avoid undefined `\textepsilon'.
|
||||
|
||||
* Misc:
|
||||
- Minor fixes and cosmetics.
|
||||
|
||||
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
|
||||
|
||||
* Misc:
|
||||
- CTAN now also wants README in the TDS archive.
|
||||
- `README' -> `README.txt' do avoid collision with the `readme' directory.
|
||||
- Fix ignored `\docversion' update.
|
||||
|
||||
2019-11-15, v1.8.1
|
||||
|
||||
* Changes to example template:
|
||||
- Migrate to latexmk (also for packaging).
|
||||
- ctex-fontset-pkuthss.def: `[ simkai.ttf ]' etc is no longer supported.
|
||||
- spine.tex: fix garbled characters and hbox warnings with pdflatex.
|
||||
|
||||
* Changes to package code:
|
||||
- pkuthss.cls: work around the `\lvert already defined' error.
|
||||
- pkuthss.cls: fix section title spacing below the page header.
|
||||
- pkuthss.cls: adjust titlepage spacing.
|
||||
|
||||
* Changes to documentation:
|
||||
- Synchronise with the current code.
|
||||
- Use \mbox around \supercite by default.
|
||||
- Improve verbatims.
|
||||
|
||||
* Misc:
|
||||
- Completion of some previous commits.
|
||||
- Migrate to Gitea, "for obvious reasons".
|
||||
- Minor fixes and cosmetics.
|
||||
|
||||
2018-07-02, v1.8.0
|
||||
|
||||
* Changes to example template:
|
||||
- Add the spine template.
|
||||
|
||||
* Changes to package code:
|
||||
- Fix footnote format, in multiple aspects.
|
||||
- pkuthss.cls: fix header/footer spacing.
|
||||
- pkuthss.cls: fix displaymath spacing.
|
||||
- pkuthss.cls: adjust list margins.
|
||||
- pkuthss.cls: make chapter pages more tolerant of vertical spacing.
|
||||
|
||||
* Changes to documentation:
|
||||
- pkuthss.bib: use the `edition' field now supported by blx-caspervector.
|
||||
- doc: fix "需"/"须" typo.
|
||||
|
||||
* Misc:
|
||||
- qa: automate the `需'/`须' check, and do not check whitespaces in patches.
|
||||
- Minor fixes and cosmetics.
|
||||
|
||||
2018-06-12, v1.7.6
|
||||
|
||||
* Changes to example template:
|
||||
- nty -> nyt sorting following biblatex-caspervector upstream.
|
||||
- doc: shorten chapter filenames.
|
||||
- Assign numbers to `intro' and `concl' by default.
|
||||
- Makefile: `JOBNAME' -> `JOB', saving some typing.
|
||||
- Fix Makefile portability.
|
||||
- doc: "英文" -> "西文".
|
||||
|
||||
* Changes to package code:
|
||||
- pkuthss.cls: fix spacing between chapter mark/name.
|
||||
- pkuthss.cls: fix toc depth and format.
|
||||
- pkuthss.cls: simplify page style setup.
|
||||
- `pkuthss@...' -> `thss@...'
|
||||
|
||||
* Misc:
|
||||
- Minor fixes and cosmetics.
|
||||
|
||||
2018-05-12, v1.7.5
|
||||
|
||||
* Changes to example template:
|
||||
- doc: Fix missing accented characters with xelatex.
|
||||
- Remove ctex-xecjk-winfonts.def for ctex < v2.x.
|
||||
- Make.bat: support xelatex now that we no longer provide the GBK example.
|
||||
- thesis.tex: fix FAQ subsection reference (thank @peiyangium).
|
||||
|
||||
* Changes to package code:
|
||||
- pkuthss.cls: fix subsubsection captions.
|
||||
- pkuthss.cls: remove kludge for tocloft with ctex < v2.x.
|
||||
|
||||
* Changes to documentation:
|
||||
- Add patch file for English dissertations.
|
||||
|
||||
* Misc:
|
||||
- (A lot?) more HTTPS.
|
||||
- Minor fixes and cosmetics.
|
||||
|
||||
2017-03-01, v1.7.4
|
||||
|
||||
* API changes:
|
||||
- pkuthss.cls: provide undocumented option for uglification.
|
||||
|
||||
* Changes to example template:
|
||||
- ctex-fontset-pkuthss.def: follow LaTeX3 change.
|
||||
- copyright.tex: fix now inaccurate comment.
|
||||
|
||||
* Changes to package code:
|
||||
- Remove support for ctex < v2.x.
|
||||
- Replace CJKfntef's `\CJKunderline' with ulem's `\uline'.
|
||||
- pkuthss.cls: tweak newtxmath setup.
|
||||
|
||||
* Misc:
|
||||
- Minor fixes and cosmetics.
|
||||
|
||||
2016-05-24, v1.7.3
|
||||
|
||||
* Changes to package code:
|
||||
- Replace subfig with subcaption.
|
||||
- pkuthss.cls: fix `PDF destination not defined' regression.
|
||||
- pkuthss.cls: add code in case the font size infractions get caught.
|
||||
|
||||
* Changes to documentation:
|
||||
- pkuthss-chap2.tex: add hint about copying internal files before changes.
|
||||
- Sanitise the README bibliography.
|
||||
|
||||
* Misc:
|
||||
- Minor fixes and cosmetics.
|
||||
|
||||
2016-03-22, v1.7.2
|
||||
|
||||
* Changes to documentation:
|
||||
- pkuthss-chap1.tex: note biblatex-caspervector's dependence on biber.
|
||||
|
||||
* Misc:
|
||||
- Fix missing bib due to inconsistency on author's computer.
|
||||
- Minor fixes and cosmetics.
|
||||
|
||||
2016-03-17, v1.7.1
|
||||
|
||||
* Changes to example template:
|
||||
- Fix TOC and heading of copyright / originauth pages.
|
||||
- Also remind user to remove `\pkuthssffaq' from chap/.
|
||||
|
||||
* Changes to package code:
|
||||
- pkuthss.cls: load ifpdf and ifxetex by ourselves (thank @LeoLiu).
|
||||
|
||||
* Changes to documentation:
|
||||
- pkuthss.tex: follow biblatex-caspervector change about name sorting.
|
||||
- Update hint about split sorting.
|
||||
|
||||
* Misc:
|
||||
- Minor fixes and cosmetics.
|
||||
|
||||
2015-12-16, v1.7.0
|
||||
|
||||
* API changes:
|
||||
- pkuthss-extra.sty merged into pkuthss.cls; `extra' removed accordingly.
|
||||
- `footfmt' renamed to `pkufoot'; `colorlinks' removed.
|
||||
|
||||
* Changes to example template:
|
||||
- {,pkuthss-}copyright.tex: use `\specialchap'.
|
||||
|
||||
* Changes to package code:
|
||||
- pkuthss.cls: fix pdf bookmark level.
|
||||
|
||||
* Changes to documentation:
|
||||
- Format overhaul of documentation code.
|
||||
|
||||
* Misc:
|
||||
- Minor fixes and cosmetics.
|
||||
|
||||
2015-12-15, v1.6.4
|
||||
|
||||
* API changes:
|
||||
- New package option: `pkufont'.
|
||||
|
||||
* Changes to example template:
|
||||
- Loading of newtx packages moved into package code.
|
||||
- originauth.tex: `\square' -> `\Box'.
|
||||
- ctex-fontset-pkuthss.def: comment out li/you to avoid surprises.
|
||||
|
||||
* Changes to package code:
|
||||
- Fix maths fonts with newtx when using XeLaTeX, thanks to @LeoLiu.
|
||||
- pkuthss.cls: work around non-hyperlinked citations.
|
||||
- `\pkuthssextra@int@boolopt' -> `\pkuthss@int@boolopt'.
|
||||
- pkuthss.cls: remove unnecessary `\AtEndofClass'.
|
||||
|
||||
* Changes to documentation:
|
||||
- pkuthss.bib: pku-thesisstyle updated to v2.0, no substantial changes.
|
||||
- pkuthss-acknowledge.tex: some "lyric" text.
|
||||
|
||||
* Misc:
|
||||
- Homepage moved to GitLab.
|
||||
- Minor fixes and cosmetics.
|
||||
|
||||
2015-06-30, v1.6.3
|
||||
|
||||
* Changes to documentation:
|
||||
- Disambiguate file names wrt CTAN recommendation.
|
||||
- pkuthss-chap2.tex: fix some minor details.
|
||||
|
||||
* Misc:
|
||||
- dist: reduce duplication in zipballs according to CTAN recommendation.
|
||||
|
||||
2015-05-30, v1.6.2
|
||||
|
||||
* Changes to example template:
|
||||
- Template in GBK no longer provided because of UTF-8 popularisation.
|
||||
- Add font configuration files.
|
||||
- Previously overlooked format update about `copyright' and `originauth'.
|
||||
- Make.bat: add `pause' to ease debugging; `clear' -> `clean'.
|
||||
|
||||
* Changes to package code:
|
||||
- pkuthss.cls: refine `beforeskip' for `\chapter'.
|
||||
|
||||
* Changes to documentation:
|
||||
- Makefile: default to the latex/biber/xelatex/xelatex procedure.
|
||||
- acknowledge.tex: Casper was here.
|
||||
|
||||
* Misc:
|
||||
- Adapt to ctex 2.x.
|
||||
- Somehow alleviate the sorting issue with biblatex 3.0.
|
||||
- Minor fixes and cosmetics.
|
||||
|
||||
2015-05-16, v1.6.1
|
||||
|
||||
* Changes to example template:
|
||||
- Fix support for `openany'.
|
||||
- Use more lightweight `latexsym' instead of `amssymb' for `\Box'.
|
||||
|
||||
* Changes to package code:
|
||||
- Fix support for `openany'.
|
||||
|
||||
* Changes to documentation:
|
||||
- Add note (and rant) about required format of bibliographies.
|
||||
|
||||
* Misc:
|
||||
- Remove bibtex support because of upstream changes.
|
||||
- Minor fixes and cosmetics.
|
||||
|
||||
2015-04-28, v1.6.0
|
||||
|
||||
* API changes:
|
||||
- New package option: `footfmt' and `pkuspace'.
|
||||
- `tightlist' option merged into `spacing'; `caption' option removed.
|
||||
|
||||
* Changes to example template:
|
||||
- Some changes regarding updates in school regulation.
|
||||
- thesis.tex: add color package for `\pkuthssffaq' with noncolorlinks.
|
||||
- chap/: again try to make enca(1) happy.
|
||||
|
||||
* Changes to package code:
|
||||
- Major changes regarding updates in school regulation.
|
||||
|
||||
* Changes to documentation:
|
||||
- Reorganise section tree.
|
||||
|
||||
* Misc:
|
||||
- Update URL of project homepage.
|
||||
- Fixes to packaging scripts regarding CTAN requirements.
|
||||
- Minor fixes and aesthetic improvements.
|
||||
|
||||
2014-07-07, v1.5.5
|
||||
|
||||
* Changes to example template:
|
||||
- Use the most frequently asked questions as the sample text.
|
||||
- Revert the black TOC, considering the new sample text.
|
||||
|
||||
* Changes to package code:
|
||||
- pkuthss.cls: use `\PassOptionsToPackage' for *packages*.
|
||||
- pkuthss-extra.sty: `hidelinks' does not hold a value.
|
||||
|
||||
* Changes to documentation:
|
||||
- Update info on `colorlinks'.
|
||||
|
||||
* Misc:
|
||||
- Minor improvements.
|
||||
|
||||
2014-07-04, v1.5.4
|
||||
|
||||
* Changes to example template:
|
||||
- Make TOC black, as stupidly required by PKU Library.
|
||||
|
||||
* Changes to documentation:
|
||||
- Re-sort and re-organise common problems.
|
||||
|
||||
* Misc:
|
||||
- Minor fixes and improvements.
|
||||
|
||||
2014-05-23, v1.5.3
|
||||
|
||||
* Changes to example template:
|
||||
- No longer require gbk2uni.
|
||||
- Exemplify `\cite', `\parencite' and `\supercite'.
|
||||
|
||||
* Changes to package code:
|
||||
- Use `\newcommand*'/`\renewcommand*' when appropriate.
|
||||
- Fix bookmarks in pdflatex/gbk compilation by introducing xCJK2uni.
|
||||
|
||||
* Changes to documentation:
|
||||
- No longer recommend the CTeX Suite.
|
||||
- Remove installation hints (already included in TeX Live).
|
||||
- Discourage bibtex usage with UTF-8.
|
||||
- hologo is back, and now we have proper XeLaTeX logo.
|
||||
|
||||
* Misc:
|
||||
- Minor fixes and improvements.
|
||||
|
||||
2014-04-17, v1.5.2
|
||||
|
||||
* Changes to example template:
|
||||
- Barcode moved to current dir instead of (removed) img/.
|
||||
|
||||
* Misc:
|
||||
- dist: fix zipball permissions.
|
||||
- README: previously forgotten updates.
|
||||
- Minor improvements.
|
||||
|
||||
2014-04-16, v1.5.1
|
||||
|
||||
* API changes:
|
||||
- pkulogo and pkuword are moved into tex/ and relicensed to LPPL.
|
||||
|
||||
* Changes to package code:
|
||||
- Improve eps-to-pdf related script.
|
||||
|
||||
* Changes to documentation:
|
||||
- Remove now legacy package code listings.
|
||||
|
||||
* Misc:
|
||||
- qa: fix whitespace check.
|
||||
- Minor improvements.
|
||||
|
||||
2014-04-11, v1.5.0
|
||||
|
||||
* Changes to example template:
|
||||
- Just split from documentation.
|
||||
- Now also offer pdf for the example template.
|
||||
|
||||
* Changes to documentation:
|
||||
- Relicense to LPPL v1.3+ (not including the example template).
|
||||
|
||||
* Misc:
|
||||
- Switch to the x.y.z version scheme, thus no longer use alpha/beta/rc.
|
||||
- Utility Makefiles easier to reason about.
|
||||
- Minor improvements.
|
||||
|
||||
2014-04-11, v1.4
|
||||
|
||||
* Changes to package code:
|
||||
- pkuthss.cls: do not disable `\uppercase' in `nouppermark' mode.
|
||||
|
||||
* Changes to documentation:
|
||||
- Remove support for CRLF (except for Windows .bat's), as required by CTAN.
|
||||
|
||||
* Misc:
|
||||
- Minor fixes and improvements.
|
||||
|
||||
2013-12-26, v1.4 rc4
|
||||
|
||||
* API changes:
|
||||
- Add `caption' option to customise caption fonts.
|
||||
- Remove `\label@cmentorb'; `\label@cmentora' -> `\label@cmentor'.
|
||||
- Move `[no]uppermark' to pkuthss.cls.
|
||||
|
||||
* Changes to package code:
|
||||
- Consider `oneside' in page style.
|
||||
|
||||
* Changes to documentation:
|
||||
- Add support for 2-dimensional bar code.
|
||||
- Add and refine lots of hints.
|
||||
|
||||
* Misc:
|
||||
- Minor fixes and improvements.
|
||||
|
||||
2013-04-07, v1.4 rc3
|
||||
|
||||
* Misc:
|
||||
- Update copyright notices.
|
||||
- Minor fixes and improvements.
|
||||
|
||||
2013-03-30, v1.4 rc2
|
||||
|
||||
* Changes to package code:
|
||||
- Use the internal hyperref support in ctex 1.02c+.
|
||||
- Remove usage of etoolbox.
|
||||
|
||||
* Changes to documentation:
|
||||
- Add hint for split sorting with biblatex.
|
||||
|
||||
* Misc:
|
||||
- Minor improvements.
|
||||
|
||||
2013-01-10, v1.4 rc1
|
||||
|
||||
* Changes to documentation:
|
||||
- Remove troublesome `hologo' package.
|
||||
- chap3.tex: add notice about biblatex's `\bibname' issue.
|
||||
- introduction.tex: update info about location of example source code.
|
||||
|
||||
* Misc:
|
||||
- README: add not-intended-as-documentation notice.
|
||||
|
||||
2012-11-12, v1.4 beta3
|
||||
|
||||
* Misc:
|
||||
- Fix incorrect CTAN support.
|
||||
- utils/dist: Fix date conversion code again.
|
||||
|
||||
2012-10-11, v1.4 beta2
|
||||
|
||||
* Changes to package code:
|
||||
- Adjust pkulogo/pkuword typesetting according to
|
||||
<http://web5.pku.edu.cn/bs/images/cgzs/images1/13.png>
|
||||
|
||||
* Changes to documentation:
|
||||
- Add (more) useful notices and hints.
|
||||
- Bibliography sanitation.
|
||||
|
||||
* Misc:
|
||||
- Add CTAN support.
|
||||
- utils/bump: Improve date conversion code.
|
||||
|
||||
2012-05-31, v1.4 beta1
|
||||
|
||||
* Changes to documentation:
|
||||
- Use `biber -l zh__pinyin'.
|
||||
- Add notice for biber in the "compilation" section.
|
||||
- Recommend users to use standalone TeXLive.
|
||||
- Minor adjustment to documentation order.
|
||||
|
||||
* Misc:
|
||||
- Minor fixes and improvements.
|
||||
- Add QA test for biblatex-caspervector version.
|
||||
- Remove spaces and tabs on blank lines, add related QA check.
|
||||
|
||||
2012-05-30, v1.4 alpha3
|
||||
|
||||
* API changes:
|
||||
- `[no]tocbibind' -> `[no]pdftoc', functionality reduced (see below).
|
||||
- `[no]upcite' removed since biblatex supports it quite flexibly.
|
||||
|
||||
* Changes to package code:
|
||||
- Remove uses of tocbibind because it crashes with biblatex.
|
||||
|
||||
* Changes to documentation:
|
||||
- Use biblatex for bibliography formatting.
|
||||
- Add instructions for natbib, remove instructions for natbib.
|
||||
- (Re)add the FAQ section.
|
||||
- Use more printer-friendly colours.
|
||||
- Enhance `doc/Make.bat' with bat's `call'.
|
||||
- Use the hologo package for TeX logos.
|
||||
- Use tabs in `pkuthss.bib'.
|
||||
- Update bib file for Casper's biblatex style.
|
||||
- `thanks.tex' -> `acknowledge.tex'
|
||||
- Use better determined format for .bib files.
|
||||
|
||||
* Misc:
|
||||
- Split Makefile functionalities to executable in `utils/'.
|
||||
- `maintcheck' -> `qa', `revbump' -> `bump'.
|
||||
- Split encoding and line terminator stuffs to `enclt'.
|
||||
- `dist' now automatically joins biblatex-caspervector files.
|
||||
- Update find(1) usage.
|
||||
- QA script updated.
|
||||
- Use sed(1)'s `y' instead of python's `str.translate()' in `bump'.
|
||||
- Add appropriate copyright notices.
|
||||
- Add indentation modelines.
|
||||
|
||||
2012-05-12, v1.4 alpha2
|
||||
|
||||
* Changes to package code:
|
||||
- Fix positioning of boxes on title page.
|
||||
- Unify code that fill in blanks on the title page.
|
||||
- Merge ctex-kit updates with minor modifications.
|
||||
|
||||
* Changes to documentation:
|
||||
- Add indication for customising title page by modifying `pkuthss.cls'.
|
||||
|
||||
* Misc:
|
||||
- Add `maintcheck' and `revbump' to root Makefile to ease automation.
|
||||
|
||||
2012-04-13, v1.4 alpha1
|
||||
|
||||
* API changes:
|
||||
- `[no]linkcolor' -> `[no]colorlinks'.
|
||||
- `[no]pdfmeta' -> `[no]pdfprop'.
|
||||
- `\setpdfmetadata' -> `\setpdfproperties'.
|
||||
|
||||
* Changes to package code:
|
||||
- Simplify package code with `\@nameuse' and `\@namedef'.
|
||||
- Use `导\hspace{2em}师:' for title page and `导师:' for abstract.
|
||||
|
||||
* Changes to documentation:
|
||||
- Fix typos: "模板" -> "模版".
|
||||
- Indicate that `texdoc' requires pkuthss be installed "regular"ly.
|
||||
- Improve spacing details.
|
||||
|
||||
* Misc:
|
||||
- Update copyright notices.
|
||||
- Revise Makefiles.
|
||||
|
||||
# vim:ts=4:sw=4
|
||||
@ -1 +0,0 @@
|
||||
../../example/chap/origin.tex
|
||||
@ -1,39 +0,0 @@
|
||||
% Documentation for pkuthss.
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2014,2021 Casper Ti. Vector
|
||||
%
|
||||
% 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
|
||||
% your option) any later version.
|
||||
% The latest version of this license is in
|
||||
% https://www.latex-project.org/lppl.txt
|
||||
% and version 1.3 or later is part of all distributions of LaTeX version
|
||||
% 2005/12/01 or later.
|
||||
%
|
||||
% This work has the LPPL maintenance status `maintained'.
|
||||
% The current maintainer of this work is Casper Ti. Vector.
|
||||
%
|
||||
% This work consists of the following files:
|
||||
% pkuthss.tex
|
||||
% pkuthss.bib
|
||||
% chap/pkuthss-copy.tex
|
||||
% chap/pkuthss-abs.tex
|
||||
% chap/pkuthss-intro.tex
|
||||
% chap/pkuthss-chap1.tex
|
||||
% chap/pkuthss-chap2.tex
|
||||
% chap/pkuthss-chap3.tex
|
||||
% chap/pkuthss-concl.tex
|
||||
% chap/pkuthss-encl1.tex
|
||||
% chap/pkuthss-ack.tex
|
||||
|
||||
\begin{cabstract}
|
||||
本文介绍了 pkuthss 文档模版所提供的功能。
|
||||
\end{cabstract}
|
||||
|
||||
\ifblind\begin{beabstract}\else\begin{eabstract}\fi
|
||||
This document describes the the functions provided by
|
||||
the pkuthss document template.
|
||||
\ifblind\end{beabstract}\else\end{eabstract}\fi
|
||||
|
||||
% vim:ts=4:sw=4
|
||||
@ -1,53 +0,0 @@
|
||||
% Documentation for pkuthss.
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2012,2015,2021 Casper Ti. Vector
|
||||
%
|
||||
% 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
|
||||
% your option) any later version.
|
||||
% The latest version of this license is in
|
||||
% https://www.latex-project.org/lppl.txt
|
||||
% and version 1.3 or later is part of all distributions of LaTeX version
|
||||
% 2005/12/01 or later.
|
||||
%
|
||||
% This work has the LPPL maintenance status `maintained'.
|
||||
% The current maintainer of this work is Casper Ti. Vector.
|
||||
%
|
||||
% This work consists of the following files:
|
||||
% pkuthss.tex
|
||||
% pkuthss.bib
|
||||
% chap/pkuthss-copy.tex
|
||||
% chap/pkuthss-abs.tex
|
||||
% chap/pkuthss-intro.tex
|
||||
% chap/pkuthss-chap1.tex
|
||||
% chap/pkuthss-chap2.tex
|
||||
% chap/pkuthss-chap3.tex
|
||||
% chap/pkuthss-concl.tex
|
||||
% chap/pkuthss-encl1.tex
|
||||
% chap/pkuthss-ack.tex
|
||||
|
||||
\chapter{致谢}
|
||||
|
||||
感谢北大未名 BBS 上 MathTools 版和 Thesis 版诸位同学的支持。
|
||||
特别感谢 pkuthss 模版的最初创作者 solvethis 网友,
|
||||
不断地对 Casper 提出的诸多问题予以解答的 cauchy 网友,
|
||||
以及在论文格式合规性和双盲版论文格式上有主要贡献的 Kurapica 网友~:)
|
||||
|
||||
此外还要感谢 \parencite{pku-thesisstyle} 的作者,
|
||||
让我校在学位论文格式要求的繁复程度上离隔壁更近了一步,
|
||||
同时还达成了用 \hologo{TeX} 排版出和 M\$ Word 一样审美水平论文的伟大成就。
|
||||
|
||||
最后要感谢 \verb|sed|、\verb|grep|、\verb|sort| 这些 Unix 工具,
|
||||
它们每天陪伴 Casper,从不让 Casper 对它们的期望落空,它是 Casper 最好的朋友。
|
||||
|
||||
\vspace{1em}
|
||||
\begin{quotation}
|
||||
\small This series of books is affectionately dedicated to the
|
||||
Type 650 computer once installed at Case Institute of Technology,
|
||||
in remembrance of many pleasant evenings.
|
||||
|
||||
\rightline{--- Donald E.\ Knuth, \emph{The Art of Computer Programming}}
|
||||
\end{quotation}
|
||||
|
||||
% vim:ts=4:sw=4
|
||||
@ -1,166 +0,0 @@
|
||||
% Documentation for pkuthss.
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2019 Casper Ti. Vector
|
||||
%
|
||||
% 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
|
||||
% your option) any later version.
|
||||
% The latest version of this license is in
|
||||
% https://www.latex-project.org/lppl.txt
|
||||
% and version 1.3 or later is part of all distributions of LaTeX version
|
||||
% 2005/12/01 or later.
|
||||
%
|
||||
% This work has the LPPL maintenance status `maintained'.
|
||||
% The current maintainer of this work is Casper Ti. Vector.
|
||||
%
|
||||
% This work consists of the following files:
|
||||
% pkuthss.tex
|
||||
% pkuthss.bib
|
||||
% chap/pkuthss-copy.tex
|
||||
% chap/pkuthss-abs.tex
|
||||
% chap/pkuthss-intro.tex
|
||||
% chap/pkuthss-chap1.tex
|
||||
% chap/pkuthss-chap2.tex
|
||||
% chap/pkuthss-chap3.tex
|
||||
% chap/pkuthss-concl.tex
|
||||
% chap/pkuthss-encl1.tex
|
||||
% chap/pkuthss-ack.tex
|
||||
|
||||
\chapter{使用介绍}
|
||||
\section{系统要求}\label{sec:req}
|
||||
|
||||
正确编译需要以下几部分:
|
||||
\begin{itemize}
|
||||
\item 一个基本的 \hologo{TeX} 发行版。
|
||||
\item CJK 或 XeCJK(供 \hologo{XeLaTeX} 使用)宏包。
|
||||
\item ctex\cupercite{ctex} 宏包(提供了 ctexbook 文档类)。
|
||||
\item 中文字体。
|
||||
\item 如果要使用 biblatex 进行文献列表和引用的排版的话,
|
||||
还需要 biblatex\cupercite{biblatex} 宏包;
|
||||
\item 如果要对中文文献进行按汉语拼音的排序的话,
|
||||
还需要 biber\cupercite{biber} 程序。
|
||||
\item 如果使用默认的文献列表和引用样式的话,还需要作者编写的 biblatex 样式
|
||||
(biblatex-caspervector\cupercite{biblatex-caspervector}),
|
||||
此样式要求使用 biber 程序。
|
||||
\item 如果须要使用 latexmk 来实现自动编译,还需要 latexmk 工具。
|
||||
\end{itemize}
|
||||
|
||||
\myemph{最新}的\myemph{完全版} \hologo{TeX} Live 系统(\myemph{%
|
||||
注:某些 Linux 发行版软件仓库中的 \hologo{TeX} Live 有问题,
|
||||
建议使用独立安装版的 \hologo{TeX} Live%
|
||||
\unemph{\footnote{\url{https://www.tug.org/texlive/}.}}。%
|
||||
})都已经包含除中文字体之外所有要求的项目。%
|
||||
\myemph{%
|
||||
为了获得最好的支持,
|
||||
我们建议用户使用最新、完全版的 \hologo{TeX} 系统和各宏包。%
|
||||
}
|
||||
|
||||
中文字体需要用户自行获得。\myemph{%
|
||||
注:一些中文字体的字库不全,只有 GB2312 字符集内字符的字体信息。
|
||||
这种情况通常会造成编译生成的 pdf 文件中缺少部分字符,
|
||||
其中一种典型症状是“〇”字显示不出来。
|
||||
如果要使用中易公司的字体,
|
||||
则建议使用 Windows Vista 及其以后版本提供的宋体、黑体、楷体和仿宋体,
|
||||
以及 Microsoft Office 2003 及其以后版本提供的隶书和幼圆体,
|
||||
这些字体是 GB18030 字符集的,不存在上述问题。%
|
||||
}
|
||||
|
||||
\section{模版文件}\label{sec:doc-dir}
|
||||
|
||||
在正确安装 pkuthss 文档模版之后,在终端/命令提示符中执行
|
||||
\begin{Verbatim}
|
||||
texdoc pkuthss
|
||||
\end{Verbatim}
|
||||
打开的 pdf 文件所在目录中包含两个子目录和相应的两个 pdf 文件,
|
||||
其中 \verb|readme/| 为说明文档(即本文档)的源代码,%
|
||||
\verb|example/| 为文档模版的源代码,%
|
||||
\verb|pkuthss.pdf| 和 \verb|example.pdf|
|
||||
分别为说明文档和文档模版的 pdf 文件。
|
||||
|
||||
\verb|example/| 目录下的源代码使用的是 UTF-8 编码,
|
||||
在现在 \hologo{TeX} 用户常用的编辑器中均已经有了良好的支持。
|
||||
用户可以将 \verb|example/| 中的所有内容复制到合适的目录,
|
||||
并在此目录中根据模版修改出自己的论文。
|
||||
|
||||
\myemph{%
|
||||
注意:在 1.4 rc4 之后版本的 pkuthss 文档模版中,
|
||||
除了 \texttt{Make.bat} 之外,所有文件均是 LF(\texttt{\string\n})换行。
|
||||
在 Windows 下用“记事本”打开这些文件时,
|
||||
所有的换行会变成某个奇怪的字符,而所有文字会挤在一行上。
|
||||
这是“记事本”的固有问题,
|
||||
因此 pkuthss 文档模版的作者建议用户使用支持 LF 换行的文本编辑器编辑文件。%
|
||||
}
|
||||
|
||||
模版中的关键文件有:
|
||||
\begin{itemize}
|
||||
\item \verb|ctexopts.cfg|、\verb|ctex-fontset-pkuthss.def|:
|
||||
比较常用的字体配置,适用于 2.0 及以后版本的
|
||||
ctex\cupercite{ctex} 宏包。
|
||||
\item \verb|latexmkrc|:
|
||||
被 latexmk 工具读取的配置文件,用于使编译工作自动化。
|
||||
\item \verb|Make.bat|:%
|
||||
方便 Windows 用户使用的批处理文件,会调用 latexmk。
|
||||
\item \verb|spine.tex|:书脊的源文件,具体用法请参考其中代码。
|
||||
\item \verb|thesis.tex|:示例模版的主文件。
|
||||
|
||||
\item \verb|chap/|:目录,包含各章节内容:
|
||||
\begin{itemize}
|
||||
\item \verb|copy.tex|:版权声明部分。
|
||||
\item \verb|origin.tex|:
|
||||
原创性声明和使用授权说明部分\cupercite{pku-originauth}。
|
||||
\end{itemize}
|
||||
\myemph{%
|
||||
注:pkuthss 文档模版可排版学校要求的二维码,
|
||||
请参考 \texttt{copy.tex} 和 \texttt{origin.tex} 中的相关注释。%
|
||||
}
|
||||
\end{itemize}
|
||||
|
||||
\section{编译方式}\label{sec:compile}
|
||||
|
||||
pkuthss 文档模版支持三种编译方式,即
|
||||
\begin{itemize}
|
||||
\item \hologo{LaTeX} -- dvipdfmx 方式:\\
|
||||
依次执行 \verb|latex|,\verb|biber|,%
|
||||
\verb|latex|,\verb|latex| 和 \verb|dvipdfmx|。
|
||||
\item \hologo{pdfLaTeX} 方式:\\
|
||||
依次执行 \verb|pdflatex|,\verb|biber|,%
|
||||
\verb|pdflatex| 和 \verb|pdflatex|。
|
||||
\item \hologo{XeLaTeX} 方式:\\
|
||||
依次执行 \verb|xelatex|,\verb|biber|,%
|
||||
\verb|xelatex| 和 \verb|xelatex|。
|
||||
\end{itemize}
|
||||
\myemph{%
|
||||
注意:在特定情形下,\texttt{latex}/\texttt{pdflatex}/\texttt{xelatex}
|
||||
步骤可能须要执行多于 2 次,而下文推荐的 latexmk 工具会自动处理这类情形。
|
||||
此外,\hologo{XeLaTeX} 对非 UTF-8 编码的支持不好,
|
||||
因此 \hologo{XeLaTeX} 方式的编译不支持 GBK 编码。%
|
||||
}
|
||||
|
||||
pkuthss 文档模版附带的 \verb|latexmkrc| 中已经对这三种编译方式进行了完整的
|
||||
配置。用户只须要在 \verb|latexmkrc| 中通过设定变量 \verb|default_files|
|
||||
的值指定被编译的主文件名,并通过设定变量 \verb|pdf_mode| 的值指定采用
|
||||
哪种编译方式,即可通过在主文件所在目录调用 latexmk 工具来实现自动编译:
|
||||
类 UNIX 环境下大致如下
|
||||
\begin{Verbatim}
|
||||
cd /path/to/directory/with/thesis.tex
|
||||
latexmk
|
||||
\end{Verbatim}
|
||||
而在 Windows 环境下大致如下
|
||||
\begin{Verbatim}
|
||||
cd \path\to\directory\with\thesis.tex
|
||||
latexmk
|
||||
\end{Verbatim}
|
||||
|
||||
Windows 用户也可以使用批处理文件 \verb|Make.bat|:
|
||||
在主文件所在目录双击此文件,它便会调用 latexmk 进行编译。\myemph{%
|
||||
注意:%
|
||||
Windows 批处理对于 LF(\texttt{\string\n})换行的批处理文件支持有问题。
|
||||
在命令提示符(cmd)下执行这些批处理文件时没有问题,
|
||||
但双击文件图标执行时可能就会出错。
|
||||
\hologo{TeX} Live 中安装的 \texttt{Make.bat} 和
|
||||
CTAN 上提供的压缩包里的 \texttt{Make.bat}
|
||||
在正常情况下应该是 CRLF(\texttt{\string\r\string\n})换行的。%
|
||||
}
|
||||
|
||||
% vim:ts=4:sw=4
|
||||
@ -1,360 +0,0 @@
|
||||
% Documentation for pkuthss.
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2019,2021 Casper Ti. Vector
|
||||
%
|
||||
% 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
|
||||
% your option) any later version.
|
||||
% The latest version of this license is in
|
||||
% https://www.latex-project.org/lppl.txt
|
||||
% and version 1.3 or later is part of all distributions of LaTeX version
|
||||
% 2005/12/01 or later.
|
||||
%
|
||||
% This work has the LPPL maintenance status `maintained'.
|
||||
% The current maintainer of this work is Casper Ti. Vector.
|
||||
%
|
||||
% This work consists of the following files:
|
||||
% pkuthss.tex
|
||||
% pkuthss.bib
|
||||
% chap/pkuthss-copy.tex
|
||||
% chap/pkuthss-abs.tex
|
||||
% chap/pkuthss-intro.tex
|
||||
% chap/pkuthss-chap1.tex
|
||||
% chap/pkuthss-chap2.tex
|
||||
% chap/pkuthss-chap3.tex
|
||||
% chap/pkuthss-concl.tex
|
||||
% chap/pkuthss-encl1.tex
|
||||
% chap/pkuthss-ack.tex
|
||||
|
||||
\chapter{pkuthss 文档模版提供的功能}
|
||||
\section{pkuthss 文档类提供的选项}\label{sec:options}
|
||||
|
||||
除非特别说明,否则这一节提到的选项中都是不带“\verb|no|”的版本被启用。
|
||||
|
||||
\begin{itemize}
|
||||
\item \textbf{\texttt{[no]uppermark}}:
|
||||
是否在页眉中将章节名中的小写字母转换为大写字母。
|
||||
就目前而言,这样的转换存在着一些较为严重的缺陷\footnote{%
|
||||
准确地说是 \texttt{\string\MakeUppercase} 宏的问题:
|
||||
其在某些地方的转换不够健壮,
|
||||
例如 \texttt{\string\cite\string{ctex\string}}
|
||||
会被转换成 \texttt{\string\cite\string{CTEX\string}}。%
|
||||
},因此不建议使用。
|
||||
基于上述考虑,\myemph{%
|
||||
pkuthss 文档类默认启用 \texttt{nouppermark} 选项,
|
||||
即不在页眉中使用大写的章节名%
|
||||
}。
|
||||
|
||||
\item \textbf{\texttt{[no]pkufont}}:
|
||||
是否根据学校对论文格式的要求\cupercite{pku-thesisstyle}%
|
||||
将西文字体改为类似于 Times New Roman / Arial 的字体。
|
||||
|
||||
\item \textbf{\texttt{[no]pkufoot}}\footnote{%
|
||||
此选项等价于 1.6.4 及以前版本 pkuthss-extra 宏包的
|
||||
\texttt{[no]footfmt} 选项;
|
||||
更改名称是为了使文档类选项名更加规则。%
|
||||
}:
|
||||
是否根据学校对论文格式的要求\cupercite{pku-thesisstyle}%
|
||||
修改和脚注相关的一些格式。
|
||||
具体地说,启用 \verb|pkufoot| 选项后会进行以下几项设置:
|
||||
\begin{itemize}
|
||||
\item 脚注参用带圈的编号。
|
||||
\item 页脚中脚注编号使用正文(而非上标)字体。
|
||||
\item 页脚中脚注编号和脚注文本之间默认间隔一个空格。
|
||||
\end{itemize}
|
||||
|
||||
\item \textbf{\texttt{[no]pkuspace}}:
|
||||
是否根据学校对论文格式的要求\cupercite{pku-thesisstyle}%
|
||||
修改排版中的一些间距及相关设置。
|
||||
具体地说,启用 \verb|pkuspace| 选项后会按
|
||||
\parencite{pku-thesisstyle} 中的要求修改以下几项设置:
|
||||
\begin{itemize}
|
||||
\item 正文的行距。
|
||||
\item 目录中条目的缩进方式。
|
||||
\item 图表标题的字号,以及标题中编号和标题文字之间的间隔方式
|
||||
(例如图 \ref{fig:example} 所示)。
|
||||
\end{itemize}
|
||||
|
||||
\begin{figure}[htbp!]
|
||||
\centering
|
||||
\includegraphics[width = 0.5\textwidth]{pkuword}
|
||||
\caption{示例插图}\label{fig:example}
|
||||
\end{figure}
|
||||
|
||||
\item \textbf{\texttt{[no]spacing}}\footnote{%
|
||||
因为代码重构的缘故,
|
||||
此选项同时提供 1.5.5 及以前版本 pkuthss-extra 宏包
|
||||
中 \texttt{[no]tightlist} 选项所提供的功能。%
|
||||
}:
|
||||
是否采用一些常用的调整间距的额外版式设定。
|
||||
具体地说,启用 \verb|spacing| 选项后会进行以下几项设置:
|
||||
\begin{itemize}
|
||||
\item 调用 setspace 宏包以使某些细节处的空间安排更美观。
|
||||
\item 采用比 \hologo{LaTeX} 默认设定更加紧密的枚举环境%
|
||||
\footnote{%
|
||||
在枚举环境(itemize、enumerate 和 description)中,
|
||||
每个条目的内容较少时,条目往往显得稀疏;
|
||||
在参考文献列表中也有类似的现象。
|
||||
启用 \texttt{spacing} 选项后,
|
||||
将去掉这些环境中额外增加的(垂直)间隔。%
|
||||
}。
|
||||
\item 调整枚举环境的缩进,以适应中文排版中的习惯。
|
||||
\end{itemize}
|
||||
|
||||
\item \textbf{\texttt{[no]spechap}}\footnote{%
|
||||
“spechap”是“\textbf{spec}ial \textbf{chap}ter”的缩写。%
|
||||
}:
|
||||
是否启用第 \ref{ssec:misc} 小节中介绍的 \verb|\specialchap| 命令。
|
||||
|
||||
\item \textbf{\texttt{[no]pdftoc}}\footnote{%
|
||||
此选项部分等价于 1.4 alpha2 及以前版本 pkuthss-extra 宏包
|
||||
的 \texttt{[no]tocbibind} 选项。
|
||||
因为 tocbibind 宏包和 biblatex 宏包冲突,%
|
||||
pkuthss 文档类不再调用 tocbibind 宏包。%
|
||||
}:
|
||||
启用 \verb|pdftoc| 选项后,
|
||||
用 \verb|\tableofcontents| 命令生成目录时会自动添加“目录”的 pdf 书签。
|
||||
|
||||
\item \textbf{\texttt{[no]pdfprop}}:
|
||||
是否自动根据设定的论文文档信息(如作者、标题等)
|
||||
设置生成的 pdf 文档的相应属性。\myemph{%
|
||||
注意:该选项实际上是在 \texttt{\string\maketitle} 时生效的,
|
||||
这是因为考虑到
|
||||
通常用户在调用 \texttt{\string\maketitle} 前
|
||||
已经设置好所有的文档信息。
|
||||
若用户不调用 \texttt{\string\maketitle},
|
||||
则须在设定完文档信息之后自行调用
|
||||
第 \ref{ssec:misc} 小节中介绍的
|
||||
\texttt{\string\setpdfproperties} 命令以完成
|
||||
pdf 文档属性的设定。%
|
||||
}
|
||||
|
||||
\item \textbf{其余文档类选项}:%
|
||||
pkuthss 文档类以 ctexbook 文档类为基础,
|
||||
其接受的其余所有文档类选项均被传递给 ctexbook。
|
||||
其中可能最常用的选项是 \verb|GBK| 和 \verb|UTF8|:
|
||||
它们选择源代码使用的字符编码,默认使用 \verb|GBK|。
|
||||
\end{itemize}
|
||||
|
||||
例如,如果须要使用 UTF-8 编码撰写论文,
|
||||
则应在载入 pkuthss 文档类时加上 \verb|UTF8| 选项:
|
||||
\begin{Verbatim}
|
||||
\documentclass[UTF8, ...]{pkuthss} % “...”代表其它的选项。
|
||||
\end{Verbatim}
|
||||
|
||||
又例如,文档默认情况下是双面模式,每章都从右页(奇数页)开始。
|
||||
如果希望改成一章可以从任意页开始,可以这样设置:
|
||||
\begin{Verbatim}
|
||||
\documentclass[openany, ...]{pkuthss} % 每章从任意页开始。
|
||||
\end{Verbatim}
|
||||
|
||||
\section{pkuthss 文档类提供的命令和环境}
|
||||
\subsection{设定文档信息的命令}\label{ssec:set-cmd}
|
||||
|
||||
这一类命令的语法为
|
||||
\begin{Verbatim}
|
||||
\commandname{具体信息} % commandname 为具体命令的名称。
|
||||
\end{Verbatim}
|
||||
|
||||
这些命令总结如下:
|
||||
\begin{itemize}
|
||||
\item \texttt{\bfseries\string\ctitle}:设定论文中文标题\footnote{%
|
||||
因为 pkuthss 内部实现机制的缘故,\myemph{双盲版论文的(中文和西文)
|
||||
标题如须强制换行,必须使用 pkuthss 提供的 \texttt{\string\thssnl}
|
||||
命令而非 \texttt{\string\\}},否则会出错。%
|
||||
};
|
||||
\item \texttt{\bfseries\string\etitle}:设定论文西文标题;
|
||||
\item \texttt{\bfseries\string\cauthor}:设定作者的中文名;
|
||||
\item \texttt{\bfseries\string\eauthor}:设定作者的西文名;
|
||||
\item \texttt{\bfseries\string\date}:设定日期;
|
||||
\item \texttt{\bfseries\string\studentid}:设定作者的学号;
|
||||
\item \texttt{\bfseries\string\school}:设定作者的学院名;
|
||||
\item \texttt{\bfseries\string\cmajor}:设定作者专业(二级学科)的中文名;
|
||||
\item \texttt{\bfseries\string\emajor}:设定作者专业(二级学科)的西文名;
|
||||
\item \texttt{\bfseries\string\direction}:设定作者的研究方向;
|
||||
\item \texttt{\bfseries\string\cmentor}:设定导师的中文名;
|
||||
\item \texttt{\bfseries\string\ementor}:设定导师的西文名;
|
||||
\item \texttt{\bfseries\string\ckeywords}:设定中文关键词;
|
||||
\item \texttt{\bfseries\string\ekeywords}:设定西文关键词;
|
||||
\item \texttt{\bfseries\string\blindid}:设定论文编号(双盲评审用);
|
||||
\item \texttt{\bfseries\string\discipline}:设定一级学科(双盲评审用)。
|
||||
\end{itemize}
|
||||
排版双盲版论文时除了要去掉致谢等章节、隐去论文中其它可能泄露个人信息的部分外,
|
||||
还应注意在排版封面时须使用 \verb|\makeblind| 而非 \verb|\maketitle| 命令。
|
||||
|
||||
例如,如果要设定专业为“化学”(“Chemistry”),则可以使用以下命令:
|
||||
\begin{Verbatim}
|
||||
\cmajor{化学}
|
||||
\emajor{Chemistry}
|
||||
\end{Verbatim}
|
||||
|
||||
\subsection{自身存储文档信息的命令}
|
||||
|
||||
这一类命令的语法为
|
||||
\begin{Verbatim}
|
||||
% commandname 为具体的命令名。
|
||||
\renewcommand{\commandname}{具体信息}
|
||||
\end{Verbatim}
|
||||
|
||||
这些命令总结如下:
|
||||
\begin{itemize}
|
||||
\item \texttt{\bfseries\string\cuniversity}:大学的中文名。
|
||||
\item \texttt{\bfseries\string\euniversity}:大学的西文名。
|
||||
\item \texttt{\bfseries\string\cthesisname}:论文类别的中文名。
|
||||
\item \texttt{\bfseries\string\ethesisname}:论文类别的西文名。
|
||||
\item \texttt{\bfseries\string\thesiscover}:封面显示的论文类别\footnote{%
|
||||
出于兼容性的考虑,如果 \texttt{\string\thesiscover} 为空,
|
||||
那么封面将显示 \texttt{\string\cthesisname}。%
|
||||
}。
|
||||
\item \texttt{\bfseries\string\mentorlines}:封面“导师”部分的行数。
|
||||
\item \texttt{\bfseries\string\cabstractname}:摘要的中文标题。
|
||||
\item \texttt{\bfseries\string\eabstractname}:摘要的西文标题。
|
||||
\end{itemize}
|
||||
|
||||
例如,如果要设定论文的类别为“博士学位论文”(“Doctor Thesis”),
|
||||
但封面要显示“博士研究生学位论文”,则可以使用以下命令:
|
||||
\begin{Verbatim}
|
||||
\renewcommand{\cthesisname}{博士学位论文}
|
||||
\renewcommand{\ethesisname}{Doctor Thesis}
|
||||
\renewcommand{\thesiscover}{博士研究生学位论文}
|
||||
\end{Verbatim}
|
||||
|
||||
\subsection{以“key = value”格式设置文档信息}
|
||||
|
||||
用户可以通过 \verb|\pkuthssinfo| 命令集中设定文档信息,其语法为:
|
||||
\begin{Verbatim}
|
||||
% key1、key2、value1、value2 等为具体文档信息的项目名和内容。
|
||||
\pkuthssinfo{key1 = value1, key2 = value2, ...}
|
||||
\end{Verbatim}
|
||||
其中文档信息的项目名为前面提到的设定文档信息的命令名
|
||||
或自身存储文档信息的命令名(不带反斜杠)。
|
||||
|
||||
当文档信息的内容包含了逗号等有干扰的字符时,
|
||||
可以用大括号将这一项文档信息的全部内容括起来。\myemph{%
|
||||
我们建议用户总用大括号将文档信息的内容括起来,
|
||||
以避免很多不必要的麻烦。%
|
||||
}
|
||||
|
||||
例如,前面提到的文档信息的设置可以集中地写成:
|
||||
\begin{Verbatim}
|
||||
\pkuthssinfo{
|
||||
..., % “...”代表其它的设定。
|
||||
cthesisname = {本科生毕业论文},
|
||||
ethesisname = {Undergraduate Thesis},
|
||||
cmajor = {化学}, emajor = {Chemistry}
|
||||
}
|
||||
\end{Verbatim}
|
||||
|
||||
\subsection{其它命令和环境}\label{ssec:misc}
|
||||
|
||||
\texttt{\bfseries cabstract} 和 \texttt{\bfseries eabstract} 环境用于编写
|
||||
中西文摘要;\texttt{\bfseries beabstract} 环境用于编写双盲评审版的西文摘要。
|
||||
用户只须要写摘要的正文;标题、作者、导师、专业等部分会自动生成。
|
||||
|
||||
\texttt{\bfseries\string\specialchap} 命令
|
||||
用于开始不进行标号但计入目录的一章,
|
||||
并合理安排其页眉。\myemph{%
|
||||
注意:须要启用 \texttt{spechap} 选项才能使用此命令。
|
||||
另外,在此章内的节或小节等命令应使用带星号的版本,
|
||||
例如 \texttt{\string\section\string*} 等,
|
||||
以免造成章节编号混乱。%
|
||||
}%
|
||||
例如,本文档中的“序言”一章就是用 \verb|\specialchap{序言}|
|
||||
这条命令开始的。%
|
||||
|
||||
\texttt{\bfseries\string\setpdfproperties} 命令
|
||||
用于根据用户设定的文档信息自动设定生成的 pdf 文档的属性。
|
||||
此命令会在用户调用 \verb|\maketitle| 命令时被自动调用,
|
||||
因此通常不需要用户自己使用;
|
||||
但用户有时可能不须要输出封面,从而不会调用 \verb|\maketitle| 命令,
|
||||
此时就须要在设定完文档信息之后调用 \verb|\setpdfproperties|。%
|
||||
\myemph{注意:须要启用 \texttt{pdfprop} 选项才能使用此命令。}
|
||||
|
||||
\texttt{\bfseries\string\thssnl} 命令用于在双盲版论文的(中文和西文)标题中
|
||||
强制换行,见第 \ref{ssec:set-cmd} 小节中关于 \verb|\ctitle| 说明的脚注。
|
||||
|
||||
\section{从其它文档类和宏包继承的功能}\label{sec:thirdparty}
|
||||
|
||||
pkuthss 文档类建立在 ctexbook\cupercite{ctex} 文档类之上,
|
||||
并调用了 geometry\cupercite{geometry}、fancyhdr\cupercite{fancyhdr}、%
|
||||
hyperref\cupercite{hyperref}、graphicx\cupercite{graphicx}
|
||||
和 ulem\cupercite{ulem} 等几个宏包。
|
||||
因此,ctexbook 文档类和这些宏包所提供的功能均可以使用。
|
||||
|
||||
例如,用户如果想将目录的标题改为“目{\quad\quad}录”,
|
||||
则可以使用 ctexbook 文档类提供的 \verb|\ctexset| 命令:
|
||||
\begin{Verbatim}
|
||||
\ctexset[contentsname = {目{\quad\quad}录}]
|
||||
\end{Verbatim}
|
||||
|
||||
在默认的配置下,%
|
||||
pkuthss 文档模版使用作者编写的 biblatex\cupercite{biblatex} 样式%
|
||||
\cupercite{biblatex-caspervector}进行参考文献和引用的排版,
|
||||
用户可以使用它以及 biblatex 本身所提供的功能。
|
||||
例如,用户可以分别使用 \verb|\cite|、\verb|\parencite| 和 \verb|\supercite|
|
||||
生成未格式化的、带方括号的和上标且带方括号的引用标记:
|
||||
\begin{Verbatim}
|
||||
\cite{ctex},\parencite{ctex},\supercite{ctex}
|
||||
\end{Verbatim}
|
||||
在本文中将产生“\cite{ctex},\parencite{ctex},\supercite{ctex}”。
|
||||
|
||||
就目前而言,在 biblatex 中,通过更复杂的设置,
|
||||
还可以满足例如被引用的文献按照引用顺序排序,
|
||||
而未引用的文献按照西文文献在前、中文文献在后排序这样的需求,
|
||||
详见 biblatex-caspervector 的文档\cupercite{biblatex-caspervector}。
|
||||
|
||||
除此之外,pkuthss 文档类还可能调用以下这些宏包:
|
||||
\begin{itemize}
|
||||
\item 启用 \verb|pkufont| 选项时会调用
|
||||
newtxtext 和 newtxmath\cupercite{newtx} 宏包,
|
||||
否则会调用 latexsym\cupercite{latexsym} 宏包。
|
||||
\item 启用 \verb|pkufoot| 选项时会调用
|
||||
tikz\cupercite{tikz} 和 scrextend\cupercite{scrextend} 宏包。
|
||||
\item 启用 \verb|pkuspace| 选项时会调用
|
||||
tocloft\cupercite{tocloft}、caption\cupercite{caption} 和
|
||||
subcaption\cupercite{subcaption} 宏包。
|
||||
\item 启用 \verb|spacing| 选项时会调用 setspace 和
|
||||
enumitem\cupercite{enumitem} 宏包。
|
||||
\end{itemize}
|
||||
因此在启用相应选项时,用户可以使用对应宏包所提供的功能。
|
||||
|
||||
\section{高级设置}\label{sec:advanced}
|
||||
|
||||
pkuthss 文档模版的实现是简洁、清晰、灵活的。
|
||||
当一些细节的自定义无法通过模版提供的外部接口实现时,
|
||||
我们鼓励用户(在适当理解相关部分代码的前提下)
|
||||
通过修改 pkuthss 文档类的源文件进行自定义。
|
||||
在目前常用的 \hologo{TeX} 系统中,
|
||||
假设 pkuthss 的说明文档所在目录具有下述形式的路径:
|
||||
\begin{Verbatim}
|
||||
# 说明文档所在目录($TEXMFDIST 的形式见下面几行):
|
||||
$TEXMFDIST/doc/latex/pkuthss/
|
||||
# 若用户使用 Windows 下的 TeX Live 系统,则 $TEXMFDIST 一般类似于:
|
||||
C:\texlive\2015\texmf-dist
|
||||
# 若用户使用类 Unix 下的 TeX Live 系统,则 $TEXMFDIST 一般类似于:
|
||||
/usr/local/texlive/2015/texmf-dist
|
||||
\end{Verbatim}
|
||||
则其源文件所在目录应该位于以下目录:
|
||||
\begin{Verbatim}
|
||||
$TEXMFDIST/tex/latex/pkuthss/
|
||||
\end{Verbatim}
|
||||
|
||||
如果的确须要修改 pkuthss 文档类的源文件,\myemph{%
|
||||
建议用户将 \texttt{pkuthss.cls} 或其它须要修改的文件
|
||||
复制到被编译的主文件所在的目录,
|
||||
然后对此副本进行修改%
|
||||
}\footnote{%
|
||||
能这样做的原因是目前常用的 \hologo{TeX} 系统在读取编译用到的文件时,
|
||||
会优先考虑工作目录(即主文件所在目录)中的文件。%
|
||||
}。这样做的目的主要是使用户不必在每次调整文档类文件时都去上述路径修改;
|
||||
同时这样也可以在(万一须要)更新 \hologo{TeX} 系统时,
|
||||
防止用户修改过的文档类文件在更新中被自动覆盖掉。
|
||||
|
||||
一个常见的需求是封面中部分内容(特别是论文的标题、专业和研究方向)太长,
|
||||
超出了在预设的空间。
|
||||
此时,用户可以修改 \verb|pkuthss.cls| 里 \verb|\maketitle| 定义中
|
||||
\verb|\thss@int@fillinblank| 宏的参数来改变带下划线的空白的行数和行宽,
|
||||
具体方法可以参考该文件中和 \verb|\mentorlines| 相关的代码。
|
||||
|
||||
% vim:ts=4:sw=4
|
||||
@ -1,143 +0,0 @@
|
||||
% Documentation for pkuthss.
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2019,2021 Casper Ti. Vector
|
||||
%
|
||||
% 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
|
||||
% your option) any later version.
|
||||
% The latest version of this license is in
|
||||
% https://www.latex-project.org/lppl.txt
|
||||
% and version 1.3 or later is part of all distributions of LaTeX version
|
||||
% 2005/12/01 or later.
|
||||
%
|
||||
% This work has the LPPL maintenance status `maintained'.
|
||||
% The current maintainer of this work is Casper Ti. Vector.
|
||||
%
|
||||
% This work consists of the following files:
|
||||
% pkuthss.tex
|
||||
% pkuthss.bib
|
||||
% chap/pkuthss-copy.tex
|
||||
% chap/pkuthss-abs.tex
|
||||
% chap/pkuthss-intro.tex
|
||||
% chap/pkuthss-chap1.tex
|
||||
% chap/pkuthss-chap2.tex
|
||||
% chap/pkuthss-chap3.tex
|
||||
% chap/pkuthss-concl.tex
|
||||
% chap/pkuthss-encl1.tex
|
||||
% chap/pkuthss-ack.tex
|
||||
|
||||
\chapter{问题及其解决}
|
||||
\section{文档中已经提到的常见问题(按重要性排序)}
|
||||
|
||||
文档默认情况下是双面模式,章末可能产生空白页,
|
||||
解决方式见第 \ref{sec:options} 节。
|
||||
|
||||
双盲版论文的(中文和西文)标题只能使用 pkuthss 提供的
|
||||
\verb|\thssnl| 命令而非 \verb|\\| 换行,见第 \ref{sec:options} 节。
|
||||
|
||||
通过一些设置,还可以满足例如被引用的文献按照引用顺序排序,
|
||||
而未引用的文献按照西文文献在前、中文文献在后排序这样的需求,
|
||||
见第 \ref{sec:thirdparty} 节。
|
||||
|
||||
一些高级设置,如封面中部分内容长度超过预设空间容量时的设置,
|
||||
见第 \ref{sec:advanced} 节。
|
||||
|
||||
中文字体字库不全(只包含 GB2312 字符集内字符)时,
|
||||
生成的 pdf 文档中可能缺少部分字符,解决方式见第 \ref{sec:req} 节。
|
||||
使用过旧的 \hologo{TeX} 系统和各宏包,
|
||||
或使用某些 Linux 发行版软件仓库所提供的 \hologo{TeX} Live 时,
|
||||
可能引起一些问题,详见第 \ref{sec:req} 节。
|
||||
|
||||
Windows 批处理对于 LF(\texttt{\string\n})换行的批处理文件支持有问题,
|
||||
诊断方式见第 \ref{sec:compile} 节。
|
||||
Windows 的“记事本”程序在查看 LF(\texttt{\string\n})
|
||||
换行的文本文件时存在着一些问题,
|
||||
因此建议用户使用支持 LF 换行的文本编辑器编辑文件,
|
||||
详见第 \ref{sec:doc-dir} 节。
|
||||
|
||||
\section{上游宏包可能引起的问题}
|
||||
|
||||
biblatex\cupercite{biblatex} 宏包会自行设定 \verb|\bibname|,
|
||||
故会覆盖通过 \verb|\ctexset| 设定的参考文献列表标题。
|
||||
使用 biblatex 的用户可以使用 \verb|\printbibliography| 的
|
||||
\verb|title| 选项来手动设定参考文献列表的标题,例如:
|
||||
\begin{Verbatim}
|
||||
\printbibliography[title = {文献}, ...] % “...”为其它选项。
|
||||
\end{Verbatim}
|
||||
|
||||
hyperref\cupercite{hyperref} 宏包和一些宏包可能发生冲突。
|
||||
关于如何避免这些冲突,
|
||||
可以参考 hyperref 宏包 README 文件中的“Package Compatibility”一节。
|
||||
此文件通常和执行 \verb|texdoc hyperref|
|
||||
时打开的 pdf 文件位于同一目录中。
|
||||
hyperref 默认会在输出的 pdf 文件中用彩色框来标记链接,
|
||||
这些彩色框只会显示在屏幕上,不会被打印出来;
|
||||
如有特殊需求,也可以在文章的导言区加入以下代码以完全去掉彩色框:
|
||||
\begin{Verbatim}
|
||||
\hypersetup{hidelinks}
|
||||
\end{Verbatim}
|
||||
|
||||
biber 运行时有一定概率出现形如(目录名可能稍有不同)
|
||||
\begin{Verbatim}
|
||||
data source .../par-xxxxxxxx/cache-xxxxxxxx/
|
||||
inc/lib/Biber/LaTeX/recode_data.xml not found in .
|
||||
\end{Verbatim}
|
||||
的错误。
|
||||
这种错误一般是 biber 在自解压阶段被终止之后,
|
||||
未删除 \verb|.../par-xxxxxxxx/| 这个临时目录就重新运行 biber 时出现。
|
||||
遇到这种情况时,删除掉上述临时目录及其所有内容,
|
||||
再重新运行 biber 通常便可解决问题。
|
||||
|
||||
就目前而言,amsthm\cupercite{amsthm} 宏包在后于 newtxmath\cupercite{newtx}
|
||||
宏包被调用时会导致以下的错误:
|
||||
\begin{Verbatim}
|
||||
! LaTeX Error: Command \openbox already defined.
|
||||
Or name \end... illegal, see p.192 of the manual.
|
||||
\end{Verbatim}
|
||||
解决此问题的最简单方法是在通过
|
||||
\begin{Verbatim}
|
||||
\usepackage{amsthm}
|
||||
\end{Verbatim}
|
||||
调用 amsthm 宏包之前加入以下命令:
|
||||
\begin{Verbatim}
|
||||
\let\openbox\relax
|
||||
\end{Verbatim}
|
||||
|
||||
\section{文档格式可能存在的问题}
|
||||
|
||||
目前在 \hologo{LaTeX} 中似乎没有一个可以很好地替代其它各类似宏包的
|
||||
用于排版表格的宏包,而 pkuthss 文档模版的作者也无意假定用户使用
|
||||
某一个宏包,因此模版并未尝试设定表格的默认字号,\myemph{用户
|
||||
须自行按学校规定\cupercite{pku-thesisstyle}进行设置}。
|
||||
|
||||
学校对学位论文格式的规定显然没有考虑到非 MS Word 类排版工具的工作方式,
|
||||
因此 pkuthss 文档模版只是对其要求的格式进行模仿,
|
||||
而在一些小的细节上可能有所出入。
|
||||
|
||||
biblatex-caspervector\cupercite{biblatex-caspervector}
|
||||
所实现的格式和 \parencite{pku-thesisstyle} 的规定并不一致,
|
||||
但其作者没有精力也不愿意去实现后者所规定的比原格式更丑陋得多的格式。
|
||||
国标 GB/T 7714-2015 现在已经有了 biblatex-gb7714-2015%
|
||||
\cupercite{biblatex-gb7714-2015} 这一 biblatex 实现,用户也可以考虑使用。
|
||||
|
||||
\section{反馈意见和建议}
|
||||
|
||||
关于 pkuthss 文档模版的意见和建议,
|
||||
请在北大未名 BBS 的 MathTools 版或 pkuthss 项目主页的 issue tracker%
|
||||
\footnote{\url{https://gitea.com/CasperVector/pkuthss/issues}.}%
|
||||
上提出,
|
||||
或通过电子邮件\footnote%
|
||||
{\href{mailto:CasperVector@gmail.com}{\texttt{CasperVector@gmail.com}}.}%
|
||||
告知模版维护者。
|
||||
上述三种反馈方法中,建议用户尽量采用靠前的方法。
|
||||
|
||||
在进行反馈时,请尽量确保已经仔细阅读本文档中的说明。
|
||||
如果是通过 BBS 或电子邮件进行反馈,
|
||||
请在标题中说明是关于 pkuthss 文档模版的反馈;
|
||||
如果是错误报告,请说明所使用 pkuthss 模版的版本、
|
||||
自己使用的操作系统和 \hologo{TeX} 系统的类型和版本;
|
||||
同时强烈建议附上一个出错的最小例子及其相应的编译日志(\verb|.log| 文件),
|
||||
在文件较长时请使用附件。
|
||||
|
||||
% vim:ts=4:sw=4
|
||||
@ -1,35 +0,0 @@
|
||||
% Documentation for pkuthss.
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2012 Casper Ti. Vector
|
||||
%
|
||||
% 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
|
||||
% your option) any later version.
|
||||
% The latest version of this license is in
|
||||
% https://www.latex-project.org/lppl.txt
|
||||
% and version 1.3 or later is part of all distributions of LaTeX version
|
||||
% 2005/12/01 or later.
|
||||
%
|
||||
% This work has the LPPL maintenance status `maintained'.
|
||||
% The current maintainer of this work is Casper Ti. Vector.
|
||||
%
|
||||
% This work consists of the following files:
|
||||
% pkuthss.tex
|
||||
% pkuthss.bib
|
||||
% chap/pkuthss-copy.tex
|
||||
% chap/pkuthss-abs.tex
|
||||
% chap/pkuthss-intro.tex
|
||||
% chap/pkuthss-chap1.tex
|
||||
% chap/pkuthss-chap2.tex
|
||||
% chap/pkuthss-chap3.tex
|
||||
% chap/pkuthss-concl.tex
|
||||
% chap/pkuthss-encl1.tex
|
||||
% chap/pkuthss-ack.tex
|
||||
|
||||
\specialchap{结论}
|
||||
|
||||
pkuthss 文档模版结构较为简洁、清晰、灵活,较为易于学习和使用。
|
||||
希望它能为各位须要使用 \hologo{LaTeX} 撰写学位论文的同学提供一些帮助。
|
||||
|
||||
% vim:ts=4:sw=4
|
||||
@ -1,50 +0,0 @@
|
||||
% Documentation for pkuthss.
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2016 Casper Ti. Vector
|
||||
%
|
||||
% 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
|
||||
% your option) any later version.
|
||||
% The latest version of this license is in
|
||||
% https://www.latex-project.org/lppl.txt
|
||||
% and version 1.3 or later is part of all distributions of LaTeX version
|
||||
% 2005/12/01 or later.
|
||||
%
|
||||
% This work has the LPPL maintenance status `maintained'.
|
||||
% The current maintainer of this work is Casper Ti. Vector.
|
||||
%
|
||||
% This work consists of the following files:
|
||||
% pkuthss.tex
|
||||
% pkuthss.bib
|
||||
% chap/pkuthss-copy.tex
|
||||
% chap/pkuthss-abs.tex
|
||||
% chap/pkuthss-intro.tex
|
||||
% chap/pkuthss-chap1.tex
|
||||
% chap/pkuthss-chap2.tex
|
||||
% chap/pkuthss-chap3.tex
|
||||
% chap/pkuthss-concl.tex
|
||||
% chap/pkuthss-encl1.tex
|
||||
% chap/pkuthss-ack.tex
|
||||
|
||||
\chapter*{版权声明}
|
||||
\thispagestyle{empty}
|
||||
|
||||
版权所有 \copyright\ 2008--2009 solvethis
|
||||
\par
|
||||
版权所有 \copyright\ 2010--2021 Casper Ti. Vector
|
||||
\par
|
||||
版权所有 \copyright\ 2021 Kurapica
|
||||
\vskip 1em
|
||||
|
||||
pkuthss 文档类及其说明文档均以 \hologo{LaTeX} Project Public License 发布。
|
||||
随 pkuthss 提供的模版源代码中,除以下文件
|
||||
\begin{itemize}
|
||||
\item \verb|chap/copy.tex|
|
||||
\item \verb|chap/origin.tex|
|
||||
\end{itemize}
|
||||
以 New BSD License 发布,
|
||||
以及参考文献和引用列表使用的样式文件版权声明见相应文件中说明以外,
|
||||
其余所有文件发布在公有领域(public domain)。
|
||||
|
||||
% vim:ts=4:sw=4
|
||||
@ -1,41 +0,0 @@
|
||||
% Documentation for pkuthss.
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2012,2014 Casper Ti. Vector
|
||||
%
|
||||
% 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
|
||||
% your option) any later version.
|
||||
% The latest version of this license is in
|
||||
% https://www.latex-project.org/lppl.txt
|
||||
% and version 1.3 or later is part of all distributions of LaTeX version
|
||||
% 2005/12/01 or later.
|
||||
%
|
||||
% This work has the LPPL maintenance status `maintained'.
|
||||
% The current maintainer of this work is Casper Ti. Vector.
|
||||
%
|
||||
% This work consists of the following files:
|
||||
% pkuthss.tex
|
||||
% pkuthss.bib
|
||||
% chap/pkuthss-copy.tex
|
||||
% chap/pkuthss-abs.tex
|
||||
% chap/pkuthss-intro.tex
|
||||
% chap/pkuthss-chap1.tex
|
||||
% chap/pkuthss-chap2.tex
|
||||
% chap/pkuthss-chap3.tex
|
||||
% chap/pkuthss-concl.tex
|
||||
% chap/pkuthss-encl1.tex
|
||||
% chap/pkuthss-ack.tex
|
||||
|
||||
\chapter{更新记录}
|
||||
\raggedbottom
|
||||
|
||||
\section{1.3 版以后的更新记录}
|
||||
\VerbatimInput{ChangeLog.txt}
|
||||
|
||||
\section{1.3 及其以前版本的更新记录}
|
||||
\VerbatimInput[baselinestretch = 1.1]{ChangeLog-upto-1.3.txt}
|
||||
|
||||
\flushbottom
|
||||
|
||||
% vim:ts=4:sw=4
|
||||
@ -1,68 +0,0 @@
|
||||
% Documentation for pkuthss.
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2012,2014-2015,2018-2019 Casper Ti. Vector
|
||||
%
|
||||
% 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
|
||||
% your option) any later version.
|
||||
% The latest version of this license is in
|
||||
% https://www.latex-project.org/lppl.txt
|
||||
% and version 1.3 or later is part of all distributions of LaTeX version
|
||||
% 2005/12/01 or later.
|
||||
%
|
||||
% This work has the LPPL maintenance status `maintained'.
|
||||
% The current maintainer of this work is Casper Ti. Vector.
|
||||
%
|
||||
% This work consists of the following files:
|
||||
% pkuthss.tex
|
||||
% pkuthss.bib
|
||||
% chap/pkuthss-copy.tex
|
||||
% chap/pkuthss-abs.tex
|
||||
% chap/pkuthss-intro.tex
|
||||
% chap/pkuthss-chap1.tex
|
||||
% chap/pkuthss-chap2.tex
|
||||
% chap/pkuthss-chap3.tex
|
||||
% chap/pkuthss-concl.tex
|
||||
% chap/pkuthss-encl1.tex
|
||||
% chap/pkuthss-ack.tex
|
||||
|
||||
\specialchap{序言}
|
||||
|
||||
本文档是北京大学论文文档模版 pkuthss 的说明文档。
|
||||
|
||||
pkuthss 文档模版由三部分构成:
|
||||
\begin{itemize}
|
||||
\item \textbf{pkuthss 文档类}:
|
||||
其中根据学校的格式规范\cupercite{pku-thesisstyle}%
|
||||
实现了学位论文所需的基本格式要求,
|
||||
主要包括对排版格式的设定和提供设置论文信息的命令;
|
||||
此外也实现了学位论文中用户可能较多用到的一些额外功能,
|
||||
例如自动在目录中加入参考文献和索引的条目和
|
||||
自动根据用户设定的文档信息对所生成 pdf 的作者、标题等属性进行设置等。
|
||||
\item \textbf{说明文档}:
|
||||
说明文档即本文档,
|
||||
在安装(见第 \ref{sec:req} 节)之后应该可以用 \hologo{TeX} 系统提供的
|
||||
\verb|texdoc| 命令调出:
|
||||
\begin{Verbatim}
|
||||
texdoc pkuthss
|
||||
\end{Verbatim}
|
||||
\item \textbf{论文模版}:
|
||||
模版的源代码(及由此生成的 pdf 文档)
|
||||
和本文档的 pdf 文件处于同一目录下。
|
||||
用户只须按照模版中的框架修改代码,即可写出自己的论文。
|
||||
\end{itemize}
|
||||
|
||||
在此之前,包括 dypang\cupercite{dypang}、FerretL\cupercite{FerretL}、%
|
||||
lwolf\cupercite{lwolf}、Langpku\cupercite{Langpku}、%
|
||||
solvethis\cupercite{solvethis} 等的数位网友均做过学位论文模版的工作。
|
||||
本论文模版是 solvethis 的 pkuthss 模版的更新版本,
|
||||
更新的重点是重构和对新文档类、宏包的支持。
|
||||
|
||||
pkuthss 文档模版现在的维护者是 Casper Ti. Vector\footnote%
|
||||
{\href{mailto:CasperVector@gmail.com}{\texttt{CasperVector@gmail.com}}.}。%
|
||||
pkuthss 文档模版目前托管在 Gitea 上,
|
||||
其项目主页是:\\
|
||||
\hspace*{\parindent}\url{https://gitea.com/CasperVector/pkuthss}
|
||||
|
||||
% vim:ts=4:sw=4
|
||||
@ -1,10 +0,0 @@
|
||||
# Copyright (c) 2019 Casper Ti. Vector
|
||||
# Public domain.
|
||||
|
||||
@default_files = ('pkuthss');
|
||||
$pdf_mode = 5;
|
||||
$dvipdf = "dvipdfmx %O -o %D %S";
|
||||
$bibtex_use = 1.5;
|
||||
$biber = "biber -l zh__pinyin --output-safechars %O %S";
|
||||
$clean_ext = "run.xml";
|
||||
|
||||
@ -1,284 +0,0 @@
|
||||
diff --git a/doc/example/chap/abs.tex b/doc/example/chap/abs.tex
|
||||
index ea215a8..8ad4294 100644
|
||||
--- a/doc/example/chap/abs.tex
|
||||
+++ b/doc/example/chap/abs.tex
|
||||
@@ -2,7 +2,7 @@
|
||||
% Public domain.
|
||||
|
||||
\begin{cabstract}
|
||||
- \pkuthssffaq % 中文测试文字。
|
||||
+ 中文摘要。
|
||||
\end{cabstract}
|
||||
|
||||
\ifblind\begin{beabstract}\else\begin{eabstract}\fi
|
||||
diff --git a/doc/example/chap/ack.tex b/doc/example/chap/ack.tex
|
||||
index 4af4d39..09de33d 100644
|
||||
--- a/doc/example/chap/ack.tex
|
||||
+++ b/doc/example/chap/ack.tex
|
||||
@@ -1,7 +1,7 @@
|
||||
% Copyright (c) 2014,2016 Casper Ti. Vector
|
||||
% Public domain.
|
||||
|
||||
-\chapter{致谢}
|
||||
-\pkuthssffaq % 中文测试文字。
|
||||
+\chapter{Acknowledgements}
|
||||
+Test text.
|
||||
|
||||
% vim:ts=4:sw=4
|
||||
diff --git a/doc/example/chap/chap1.tex b/doc/example/chap/chap1.tex
|
||||
index 3d631f3..6e46b13 100644
|
||||
--- a/doc/example/chap/chap1.tex
|
||||
+++ b/doc/example/chap/chap1.tex
|
||||
@@ -1,7 +1,7 @@
|
||||
% Copyright (c) 2014,2016,2018 Casper Ti. Vector
|
||||
% Public domain.
|
||||
|
||||
-\chapter{引言}
|
||||
-\pkuthssffaq % 中文测试文字。
|
||||
+\chapter{Introduction}
|
||||
+Test text.
|
||||
|
||||
% vim:ts=4:sw=4
|
||||
diff --git a/doc/example/chap/chap2.tex b/doc/example/chap/chap2.tex
|
||||
index 85f7008..da8c177 100644
|
||||
--- a/doc/example/chap/chap2.tex
|
||||
+++ b/doc/example/chap/chap2.tex
|
||||
@@ -1,7 +1,7 @@
|
||||
% Copyright (c) 2014,2016 Casper Ti. Vector
|
||||
% Public domain.
|
||||
|
||||
-\chapter{章节}
|
||||
-\pkuthssffaq % 中文测试文字。
|
||||
+\chapter{Some chapter}
|
||||
+Test text.
|
||||
|
||||
% vim:ts=4:sw=4
|
||||
diff --git a/doc/example/chap/chap3.tex b/doc/example/chap/chap3.tex
|
||||
index ed66f12..ae221d6 100644
|
||||
--- a/doc/example/chap/chap3.tex
|
||||
+++ b/doc/example/chap/chap3.tex
|
||||
@@ -1,7 +1,7 @@
|
||||
% Copyright (c) 2014,2016,2018 Casper Ti. Vector
|
||||
% Public domain.
|
||||
|
||||
-\chapter{结论和展望}
|
||||
-\pkuthssffaq % 中文测试文字。
|
||||
+\chapter{Conclusion}
|
||||
+Test text.
|
||||
|
||||
% vim:ts=4:sw=4
|
||||
diff --git a/doc/example/chap/encl1.tex b/doc/example/chap/encl1.tex
|
||||
index 9834829..4296e9a 100644
|
||||
--- a/doc/example/chap/encl1.tex
|
||||
+++ b/doc/example/chap/encl1.tex
|
||||
@@ -1,7 +1,7 @@
|
||||
% Copyright (c) 2014,2016 Casper Ti. Vector
|
||||
% Public domain.
|
||||
|
||||
-\chapter{附件}
|
||||
-\pkuthssffaq % 中文测试文字。
|
||||
+\chapter{Some appendix}
|
||||
+Test text.
|
||||
|
||||
% vim:ts=4:sw=4
|
||||
diff --git a/doc/example/thesis.bib b/doc/example/thesis.bib
|
||||
index ac5b0c9..9d2ad60 100644
|
||||
--- a/doc/example/thesis.bib
|
||||
+++ b/doc/example/thesis.bib
|
||||
@@ -7,13 +7,4 @@
|
||||
language = {english},
|
||||
}
|
||||
|
||||
-@article{test-zh,
|
||||
- author = {作者},
|
||||
- title = {标题},
|
||||
- type = {J},
|
||||
- journal = {期刊},
|
||||
- date = {2014-04-01},
|
||||
- language = {chinese},
|
||||
-}
|
||||
-
|
||||
% vim:ts=4:sw=4
|
||||
diff --git a/doc/example/thesis.tex b/doc/example/thesis.tex
|
||||
index dbfd379..6a8767a 100644
|
||||
--- a/doc/example/thesis.tex
|
||||
+++ b/doc/example/thesis.tex
|
||||
@@ -14,36 +14,43 @@
|
||||
\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}
|
||||
+% 使用 biblatex 排版参考文献,并规定其格式(详见 biblatex 的文档)。
|
||||
+\usepackage[backend = biber]{biblatex}
|
||||
|
||||
% 对于 linespread 值的计算过程有兴趣的同学可以参考 pkuthss.cls。
|
||||
\renewcommand*{\bibfont}{\zihao{5}\linespread{1.27}\selectfont}
|
||||
% 按学校要求设定参考文献列表的段间距。
|
||||
\setlength{\bibitemsep}{3bp}
|
||||
|
||||
+\ctexset{
|
||||
+ contentsname = {Contents},
|
||||
+ listfigurename = {List of Figures},
|
||||
+ listtablename = {List of Tables},
|
||||
+ figurename = {Figure},
|
||||
+ tablename = {Table},
|
||||
+ indexname = {Index},
|
||||
+ appendixname = {Appendix},
|
||||
+ part/name = {\partname\space},
|
||||
+ part/number = {\thepart},
|
||||
+ chapter/name = {\chaptername\space},
|
||||
+ chapter/number = {\thechapter},
|
||||
+}
|
||||
+
|
||||
% 如是双盲版论文,将 \blindfalse 改为 \blindtrue。后面可用
|
||||
% \ifblind 根据是否双盲来条件地启用代码(参见本文件后面部分)。
|
||||
\newif\ifblind\blindfalse
|
||||
% 设定文档的基本信息。
|
||||
\pkuthssinfo{
|
||||
- cthesisname = {博士学位论文}, ethesisname = {Doctor Thesis},
|
||||
- thesiscover = {博士研究生学位论文},
|
||||
+ ethesisname = {Doctor Thesis},
|
||||
% 长标题可用 \thssnl 强制换行,不能用“\\”(双盲版会出错)。
|
||||
- ctitle = {测试文档},
|
||||
etitle = {Test Document},
|
||||
- cauthor = {某某}, eauthor = {Test}, date = {某年某月},
|
||||
- studentid = {0123456789}, school = {某某学院},
|
||||
- cmajor = {某某专业}, emajor = {Some Major},
|
||||
- direction = {某某方向}, mentorlines = {2},
|
||||
- cmentor = {某甲教授\\某乙教授},
|
||||
+ eauthor = {Test},
|
||||
+ date = {Month Year}, studentid = {0123456789},
|
||||
+ school = {Some School},
|
||||
+ emajor = {Some Major},
|
||||
+ direction = {Some Research Division},
|
||||
+ mentorlines = {2},
|
||||
+ cmentor = {Prof.\ Somebody\\Prof.\ Someone},
|
||||
ementor = {Prof.\ Somebody and Prof.\ Someone},
|
||||
ckeywords = {其一,其二},
|
||||
ekeywords = {First, Second},
|
||||
@@ -54,34 +61,6 @@
|
||||
% 载入参考文献数据库(注意不要省略“.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\{hidelinks\}}。
|
||||
-
|
||||
- 若要避免章末空白页,请在调用 pkuthss 文档类时加入 \texttt{openany} 选项。
|
||||
-
|
||||
- 如果编译时不出参考文献,
|
||||
- 请参考 \texttt{texdoc pkuthss}“问题及其解决”一章
|
||||
- “上游宏包可能引起的问题”一节中关于 biber 的说明。
|
||||
-
|
||||
- 因无法假定用户使用哪种方式排版表格,用户须自行保证表格字号符合学校规定。%
|
||||
-}
|
||||
-
|
||||
\begin{document}
|
||||
% 以下为正文之前的部分,默认不进行章节编号。
|
||||
\frontmatter
|
||||
diff --git a/tex/pkuthss-utf8.def b/tex/pkuthss-utf8.def
|
||||
index afed37b..e74e4bf 100644
|
||||
--- a/tex/pkuthss-utf8.def
|
||||
+++ b/tex/pkuthss-utf8.def
|
||||
@@ -27,13 +27,13 @@
|
||||
[2021/03/29 v1.9.0 Labels and captions in UTF-8 encoding
|
||||
for the pkuthss document class]
|
||||
|
||||
-\def\label@ctitle{题目:}
|
||||
-\def\label@cauthor{姓\hphantom{汉字}名:}
|
||||
-\def\label@studentid{学\hphantom{汉字}号:}
|
||||
-\def\label@school{院\hphantom{汉字}系:}
|
||||
-\def\label@cmajor{专\hphantom{汉字}业:}
|
||||
-\def\label@direction{研究方向:}
|
||||
-\def\label@cmentor{导\hphantom{汉字}师:}
|
||||
+\def\label@ctitle{Title: }
|
||||
+\def\label@cauthor{Name}
|
||||
+\def\label@studentid{Student ID}
|
||||
+\def\label@school{Affiliation}
|
||||
+\def\label@cmajor{Major}
|
||||
+\def\label@direction{Research Division}
|
||||
+\def\label@cmentor{Supervisor}
|
||||
\def\label@ckeywords{关键词:}
|
||||
\def\label@blindcover{(匿名评阅论文封面)}
|
||||
\def\label@blindctitle{中文题目:}
|
||||
diff --git a/tex/pkuthss.cls b/tex/pkuthss.cls
|
||||
index 6ee4e69..5f782f6 100644
|
||||
--- a/tex/pkuthss.cls
|
||||
+++ b/tex/pkuthss.cls
|
||||
@@ -305,7 +305,7 @@
|
||||
\fancyhf{}\renewcommand*{\headrulewidth}{0.75bp}
|
||||
\fancyfoot[C]{\zihao{5}\normalfont{\thepage}}
|
||||
\if@twoside
|
||||
- \fancyhead[CE]{\zihao{5}\normalfont{\cuniversity\cthesisname}}
|
||||
+ \fancyhead[CE]{\zihao{5}\normalfont{{\euniversity} {\ethesisname}}}
|
||||
\fancyhead[CO]{\zihao{5}\normalfont\thss@int@setcase{\leftmark}}
|
||||
\else
|
||||
\fancyhead[C]{\zihao{5}\normalfont\thss@int@setcase{\leftmark}}
|
||||
@@ -355,14 +355,14 @@
|
||||
\zihao{1}\includegraphics[height = 2.4em]{pkulogo}\hspace{0.4em}%
|
||||
\raisebox{0.4em}{\includegraphics[height = 1.6em]{pkuword}}\\[0.8em]
|
||||
\fi%
|
||||
- {\bfseries\ifx\thesiscover\empty{\cthesisname}\else{\thesiscover}\fi}%
|
||||
+ {\bfseries\ethesisname}%
|
||||
}
|
||||
\vfill
|
||||
% Title of the thesis.
|
||||
{%
|
||||
\ifthss@opt@ugly\zihao{-1}\else\zihao{2}\fi%
|
||||
\linespread{1.6}\selectfont{\label@ctitle}%
|
||||
- \thss@int@fillinblank{2}{0.64\textwidth}{\textbf{\@ctitle}}%
|
||||
+ \thss@int@fillinblank{2}{0.64\textwidth}{\textbf{\@etitle}}%
|
||||
}
|
||||
\vfill
|
||||
% Information about the author.
|
||||
@@ -370,18 +370,18 @@
|
||||
% Slightly adjust the line skip when using new font size.
|
||||
\zihao{3}\linespread{1.75}\selectfont
|
||||
\def\thss@tmp@len{0.56\textwidth}
|
||||
- \begin{tabular}{l@{\extracolsep{0.2em}}c}
|
||||
- {\bfseries\label@cauthor} &
|
||||
- \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@cauthor} \\
|
||||
- {\bfseries\label@studentid} &
|
||||
+ \begin{tabular}{c@{\extracolsep{0.2em}}c@{\extracolsep{0.2em}}c}
|
||||
+ {\bfseries\label@cauthor} & : &
|
||||
+ \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@eauthor} \\
|
||||
+ {\bfseries\label@studentid} & : &
|
||||
\thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@studentid} \\
|
||||
- {\bfseries\label@school} &
|
||||
+ {\bfseries\label@school} & : &
|
||||
\thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@school} \\
|
||||
- {\bfseries\label@cmajor} &
|
||||
- \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@cmajor} \\
|
||||
- {\bfseries\label@direction} &
|
||||
+ {\bfseries\label@cmajor} & : &
|
||||
+ \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@emajor} \\
|
||||
+ {\bfseries\label@direction} & : &
|
||||
\thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@direction} \\
|
||||
- {\bfseries\label@cmentor} &
|
||||
+ {\bfseries\label@cmentor} & : &
|
||||
\thss@int@fillinblank{\mentorlines}%
|
||||
{\thss@tmp@len}{\fangsong\@cmentor} \\
|
||||
\end{tabular}%
|
||||
@ -1,303 +0,0 @@
|
||||
% Documentation for pkuthss.
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2021 Casper Ti. Vector
|
||||
%
|
||||
% 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
|
||||
% your option) any later version.
|
||||
% The latest version of this license is in
|
||||
% https://www.latex-project.org/lppl.txt
|
||||
% and version 1.3 or later is part of all distributions of LaTeX version
|
||||
% 2005/12/01 or later.
|
||||
%
|
||||
% This work has the LPPL maintenance status `maintained'.
|
||||
% The current maintainer of this work is Casper Ti. Vector.
|
||||
%
|
||||
% This work consists of the following files:
|
||||
% pkuthss.tex
|
||||
% pkuthss.bib
|
||||
% chap/pkuthss-copy.tex
|
||||
% chap/pkuthss-abs.tex
|
||||
% chap/pkuthss-intro.tex
|
||||
% chap/pkuthss-chap1.tex
|
||||
% chap/pkuthss-chap2.tex
|
||||
% chap/pkuthss-chap3.tex
|
||||
% chap/pkuthss-concl.tex
|
||||
% chap/pkuthss-encl1.tex
|
||||
% chap/pkuthss-ack.tex
|
||||
|
||||
@online{amsthm,
|
||||
author = {{Publications Technical Group, American Mathematical Society}},
|
||||
title = {Using the amsthm Package},
|
||||
edition = {Ver.~2.20.3},
|
||||
type = {M/OL},
|
||||
date = {2017-09},
|
||||
url = {https://ctan.org/pkg/amsthm},
|
||||
urldate = {2019-11-15},
|
||||
language = {english},
|
||||
}
|
||||
|
||||
@online{biber,
|
||||
author = {Kime, Philip and Charette, Fran\c{c}ois},
|
||||
title = {Biber: A backend bibliography processor for biblatex},
|
||||
edition = {Ver.~2.7},
|
||||
type = {M/OL},
|
||||
date = {2016-12-05},
|
||||
url = {https://ctan.org/pkg/biber},
|
||||
urldate = {2017-03-01},
|
||||
language = {english},
|
||||
}
|
||||
|
||||
@online{biblatex,
|
||||
author = {Lehman, Philipp},
|
||||
title = {The biblatex Package: Programmable Bibliographies and Citations},
|
||||
edition = {Ver.~3.7},
|
||||
type = {M/OL},
|
||||
date = {2016-11-16},
|
||||
url = {https://ctan.org/pkg/biblatex},
|
||||
urldate = {2017-03-01},
|
||||
language = {english},
|
||||
}
|
||||
|
||||
@online{biblatex-caspervector,
|
||||
author = {Vector, Casper Ti.},
|
||||
title = {biblatex 参考文献和引用样式:caspervector},
|
||||
edition = {Ver.~0.3.3},
|
||||
type = {M/OL},
|
||||
date = {2018-06-29},
|
||||
url = {https://ctan.org/pkg/biblatex-caspervector},
|
||||
urldate = {2018-07-02},
|
||||
language = {chinese},
|
||||
}
|
||||
|
||||
@online{biblatex-gb7714-2015,
|
||||
author = {胡振震},
|
||||
title = {符合 GB/T 7714-2015 标准的 biblatex 参考文献样式},
|
||||
edition = {Ver.~0.1w},
|
||||
type = {M/OL},
|
||||
date = {2021-01-19},
|
||||
url = {https://ctan.org/pkg/biblatex-gb7714-2015},
|
||||
urldate = {2021-03-04},
|
||||
language = {chinese},
|
||||
}
|
||||
|
||||
@online{caption,
|
||||
author = {Sommerfeldt, Alex},
|
||||
title = {Customizing captions of floating environments},
|
||||
type = {M/OL},
|
||||
date = {2011-11-02},
|
||||
url = {https://ctan.org/pkg/caption},
|
||||
urldate = {2017-03-01},
|
||||
language = {english},
|
||||
}
|
||||
|
||||
@online{ctex,
|
||||
author = {{ctex.org}},
|
||||
title = {\CTeX 宏集手册},
|
||||
edition = {Ver.~2.4.8},
|
||||
type = {M/OL},
|
||||
date = {2017-02-23},
|
||||
url = {https://ctan.org/pkg/ctex},
|
||||
urldate = {2017-03-01},
|
||||
language = {chinese},
|
||||
}
|
||||
|
||||
@online{enumitem,
|
||||
author = {Bezos, Javier},
|
||||
title = {Customizing lists with the enumitem package (Version 3.5.2)},
|
||||
type = {M/OL},
|
||||
date = {2011-09-28},
|
||||
url = {https://ctan.org/pkg/enumitem},
|
||||
urldate = {2017-03-01},
|
||||
language = {english},
|
||||
}
|
||||
|
||||
@online{fancyhdr,
|
||||
author = {van Oostrum, Piet},
|
||||
title = {Page layout in \hologo{LaTeX}},
|
||||
edition = {Ver.~3.8},
|
||||
type = {M/OL},
|
||||
date = {2016-09-06},
|
||||
url = {https://ctan.org/pkg/fancyhdr},
|
||||
urldate = {2017-03-01},
|
||||
language = {english},
|
||||
}
|
||||
|
||||
@online{geometry,
|
||||
author = {Umeki, Hideo},
|
||||
title = {The geometry package},
|
||||
edition = {Ver.~5.6},
|
||||
type = {M/OL},
|
||||
date = {2010-09-12},
|
||||
url = {https://ctan.org/pkg/geometry},
|
||||
urldate = {2017-03-01},
|
||||
language = {english},
|
||||
}
|
||||
|
||||
@online{graphicx,
|
||||
author = {Carlisle, D. P.},
|
||||
title = {Packages in the `graphics' bundle},
|
||||
type = {M/OL},
|
||||
date = {2016-12-23},
|
||||
url = {https://ctan.org/pkg/graphicx},
|
||||
urldate = {2017-03-01},
|
||||
language = {english},
|
||||
}
|
||||
|
||||
@online{hyperref,
|
||||
author = {Rahtz, Sebastian and Oberdiek, Heiko},
|
||||
title = {Hypertext marks in \hologo{LaTeX}: a manual for hyperref},
|
||||
edition = {Ver.~6.82q},
|
||||
type = {M/OL},
|
||||
date = {2012-11},
|
||||
url = {https://ctan.org/pkg/hyperref},
|
||||
urldate = {2017-03-01},
|
||||
language = {english},
|
||||
}
|
||||
|
||||
@online{latexsym,
|
||||
author = {Mittelbach, Frank},
|
||||
title = {The \hologo{LaTeX} symbol fonts for use with \hologo{LaTeX2e}},
|
||||
edition = {Ver.~2.2e},
|
||||
type = {M/OL},
|
||||
date = {1998-08-17},
|
||||
url = {https://ctan.org/tex-archive/macros/latex/base},
|
||||
urldate = {2017-03-01},
|
||||
language = {english},
|
||||
}
|
||||
|
||||
@online{newtx,
|
||||
author = {Sharpe, Michael},
|
||||
title = {New TX font package},
|
||||
type = {M/OL},
|
||||
date = {2017-01-30},
|
||||
url = {https://ctan.org/pkg/newtx},
|
||||
urldate = {2017-03-01},
|
||||
language = {english},
|
||||
}
|
||||
|
||||
@online{scrextend,
|
||||
author = {Kohm, Markus},
|
||||
title = {KOMA-Script: a versatile \hologo{LaTeX2e} bundle},
|
||||
type = {M/OL},
|
||||
date = {2017-01-02},
|
||||
url = {https://ctan.org/pkg/koma-script},
|
||||
urldate = {2017-03-01},
|
||||
language = {english},
|
||||
}
|
||||
|
||||
@online{subcaption,
|
||||
author = {Sommerfeldt, Alex},
|
||||
title = {The subcaption package},
|
||||
edition = {Ver.~1.1-75},
|
||||
type = {M/OL},
|
||||
date = {2013-04-16},
|
||||
url = {https://ctan.org/pkg/subcaption},
|
||||
urldate = {2017-03-01},
|
||||
language = {english},
|
||||
}
|
||||
|
||||
@online{tikz,
|
||||
author = {Till Tantau},
|
||||
title = {The TikZ and PGF Packages: Manual for version 3.0.1a},
|
||||
type = {M/OL},
|
||||
date = {2015-08-29},
|
||||
url = {https://ctan.org/pkg/pgf},
|
||||
urldate = {2017-03-01},
|
||||
language = {english},
|
||||
}
|
||||
|
||||
@online{tocloft,
|
||||
author = {Robertson, Will},
|
||||
title = {The tocloft package},
|
||||
edition = {Ver.~2.3f},
|
||||
type = {M/OL},
|
||||
date = {2013-05-02},
|
||||
url = {https://ctan.org/pkg/tocloft},
|
||||
urldate = {2017-03-01},
|
||||
language = {english},
|
||||
}
|
||||
|
||||
@online{ulem,
|
||||
author = {Arseneau, Donald},
|
||||
title = {The ulem package: underlining for emphasis},
|
||||
type = {M/OL},
|
||||
date = {2011-03-18},
|
||||
url = {https://ctan.org/pkg/ulem},
|
||||
urldate = {2017-03-01},
|
||||
language = {english},
|
||||
}
|
||||
|
||||
@online{dypang,
|
||||
author = {dypang},
|
||||
title = {北京大学硕博论文模版(测试版)},
|
||||
type = {EB/OL},
|
||||
date = {2005-04-05},
|
||||
url = {https://bdwm.net/a.php?b/Thesis/M.1112645491.A/D10F612.rar},
|
||||
urldate = {2017-03-01},
|
||||
language = {chinese},
|
||||
}
|
||||
|
||||
@online{FerretL,
|
||||
author = {FerretL},
|
||||
title = {新的 pku 博士论文模板},
|
||||
type = {EB/OL},
|
||||
date = {2007-03-27},
|
||||
url = {https://bdwm.net/a.php?b/Thesis/M.1174982168.A/4270722.rar},
|
||||
urldate = {2017-03-01},
|
||||
language = {chinese},
|
||||
}
|
||||
|
||||
@online{lwolf,
|
||||
author = {lwolf},
|
||||
title = {学士(硕/博)毕业论文模板 [基于 dypang 的模板]},
|
||||
type = {EB/OL},
|
||||
date = {2007-05-15},
|
||||
url = {https://bdwm.net/a.php?b/MathTools/M.1179239165.A/5A2D5A2.rar},
|
||||
urldate = {2017-03-01},
|
||||
language = {chinese},
|
||||
}
|
||||
|
||||
@online{Langpku,
|
||||
author = {Langpku},
|
||||
title = {Re: 关于置底模版的问题和一些修改},
|
||||
type = {EB/OL},
|
||||
date = {2007-06-01},
|
||||
url = {https://bdwm.net/a.php?b/MathTools/M.1180676700.A/DBB7810.zip},
|
||||
urldate = {2017-03-01},
|
||||
language = {chinese},
|
||||
}
|
||||
|
||||
@online{solvethis,
|
||||
author = {solvethis},
|
||||
title = {Re: 学位论文模板更新},
|
||||
type = {EB/OL},
|
||||
date = {2008-03-13},
|
||||
url = {https://bdwm.net/a.php?b/Thesis/M.1205377509.A/9413ED2.rar},
|
||||
urldate = {2017-03-01},
|
||||
language = {chinese},
|
||||
}
|
||||
|
||||
@online{pku-originauth,
|
||||
author = {北京大学研究生院},
|
||||
title = {北京大学学位论文原创性声明和使用授权说明(末页限重新申请学位使用)},
|
||||
type = {M/OL},
|
||||
date = {2014-04-16},
|
||||
url = {http://grs.pku.edu.cn/document/20140416144734027222.doc},
|
||||
urldate = {2015-04-26},
|
||||
language = {chinese},
|
||||
}
|
||||
|
||||
@online{pku-thesisstyle,
|
||||
author = {北京大学学位办公室},
|
||||
title = {北京大学研究生学位论文写作指南},
|
||||
edition = {Ver.~2.0},
|
||||
type = {M/OL},
|
||||
date = {2015-06-11},
|
||||
url = {http://grs.pku.edu.cn/document/20150611115317661150.pdf},
|
||||
urldate = {2015-12-14},
|
||||
language = {chinese},
|
||||
}
|
||||
|
||||
% vim:ts=4:sw=4
|
||||
@ -1,105 +0,0 @@
|
||||
% Documentation for pkuthss.
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2016,2018-2019,2021 Casper Ti. Vector
|
||||
%
|
||||
% 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
|
||||
% your option) any later version.
|
||||
% The latest version of this license is in
|
||||
% https://www.latex-project.org/lppl.txt
|
||||
% and version 1.3 or later is part of all distributions of LaTeX version
|
||||
% 2005/12/01 or later.
|
||||
%
|
||||
% This work has the LPPL maintenance status `maintained'.
|
||||
% The current maintainer of this work is Casper Ti. Vector.
|
||||
%
|
||||
% This work consists of the following files:
|
||||
% pkuthss.tex
|
||||
% pkuthss.bib
|
||||
% chap/pkuthss-copy.tex
|
||||
% chap/pkuthss-abs.tex
|
||||
% chap/pkuthss-intro.tex
|
||||
% chap/pkuthss-chap1.tex
|
||||
% chap/pkuthss-chap2.tex
|
||||
% chap/pkuthss-chap3.tex
|
||||
% chap/pkuthss-concl.tex
|
||||
% chap/pkuthss-encl1.tex
|
||||
% chap/pkuthss-ack.tex
|
||||
|
||||
\documentclass[UTF8]{pkuthss}
|
||||
\usepackage[
|
||||
backend = biber, style = caspervector, utf8,
|
||||
sorting = ecnyt, giveninits = true, sortgiveninits = true
|
||||
]{biblatex}
|
||||
\usepackage{iftex, fancyvrb, hologo}
|
||||
|
||||
\hypersetup{colorlinks = true, allcolors = blue}
|
||||
\ctexset{linestretch = 2\ccwd}
|
||||
\setlength{\hfuzz}{3pt}
|
||||
\setlength{\bibitemsep}{3bp}
|
||||
\renewcommand*{\bibfont}{\zihao{5}\linespread{1.27}\selectfont}
|
||||
|
||||
\newcommand*{\cupercite}[1]{\supercite{#1}\mbox{}}
|
||||
\newcommand{\myemph}[1]{\emph{\textcolor{red}{#1}}}
|
||||
\newcommand{\unemph}[1]{\textup{\textcolor{black}{#1}}}
|
||||
\RecustomVerbatimEnvironment{Verbatim}{Verbatim}%
|
||||
{frame = single, tabsize = 4, formatcom = {\ifXeTeX\xeCJKVerbAddon\fi}}
|
||||
\RecustomVerbatimCommand{\VerbatimInput}{VerbatimInput}{
|
||||
fontsize = {\small}, baselinestretch = 1,
|
||||
tabsize = 4, formatcom = {\ifXeTeX\xeCJKVerbAddon\fi}
|
||||
}
|
||||
|
||||
\newif\ifblind\blindfalse
|
||||
\newcommand*{\docversion}{v1.9.1}
|
||||
\pkuthssinfo{
|
||||
cthesisname = {本科生毕业论文}, ethesisname = {Undergraduate Thesis},
|
||||
ctitle = {北京大学学位论文模版{\thssnl}pkuthss \docversion},
|
||||
etitle = {%
|
||||
PKU dissertation document class%
|
||||
\texorpdfstring{\thssnl}{: }pkuthss \docversion%
|
||||
},
|
||||
cauthor = {盖茨波·钛·维克托}, eauthor = {Casper Ti.\ Vector},
|
||||
date = {\zhdigits{2021}年\zhnumber{10}月},
|
||||
studentid = {00910???}, school = {化学与分子工程学院},
|
||||
cmajor = {应用化学}, emajor = {Applied Chemistry},
|
||||
direction = {据说 Casper 自己也不知道}, mentorlines = {2},
|
||||
cmentor = {XX 教授\\YY 教授},
|
||||
ementor = {Prof.\ XX and Prof.\ YY},
|
||||
ckeywords = {\hologo{LaTeX},排版,文档类,\CTeX{}},
|
||||
ekeywords = {\hologo{LaTeX}, Typesetting, Document class, \CTeX{}},
|
||||
blindid = {???01900}, discipline = {化学}
|
||||
}
|
||||
\addbibresource{pkuthss.bib}
|
||||
|
||||
\begin{document}
|
||||
\frontmatter
|
||||
\pagestyle{empty}
|
||||
\ifblind\makeblind\else\maketitle\fi
|
||||
\cleardoublepage
|
||||
\include{chap/pkuthss-copy}
|
||||
|
||||
\cleardoublepage
|
||||
\pagestyle{plain}
|
||||
\setcounter{page}{0}
|
||||
\pagenumbering{Roman}
|
||||
\include{chap/pkuthss-abs}
|
||||
\tableofcontents
|
||||
|
||||
\mainmatter
|
||||
\include{chap/pkuthss-intro}
|
||||
\include{chap/pkuthss-chap1}
|
||||
\include{chap/pkuthss-chap2}
|
||||
\include{chap/pkuthss-chap3}
|
||||
\include{chap/pkuthss-concl}
|
||||
|
||||
\appendix
|
||||
\printbibliography[heading = bibintoc]
|
||||
\include{chap/pkuthss-encl1}
|
||||
|
||||
\backmatter
|
||||
\ifblind\else\include{chap/pkuthss-ack}\fi
|
||||
\include{chap/origin}
|
||||
\end{document}
|
||||
|
||||
% vim:ts=4:sw=4
|
||||
16
tex/Makefile
16
tex/Makefile
@ -1,16 +0,0 @@
|
||||
# Copyright (c) 2008-2009 solvethis
|
||||
# Copyright (c) 2010-2012,2014 Casper Ti. Vector
|
||||
# Public domain.
|
||||
|
||||
PDFS = pkulogo.pdf pkuword.pdf
|
||||
PS2PDF = ps2pdf -dEPSCrop
|
||||
|
||||
all: $(PDFS)
|
||||
|
||||
%.pdf: %.eps
|
||||
$(PS2PDF) $< $@
|
||||
|
||||
clean:
|
||||
$(RM) $(PDFS)
|
||||
|
||||
# vim:ts=4:sw=4
|
||||
141
tex/pkulogo.eps
141
tex/pkulogo.eps
@ -1,141 +0,0 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%BoundingBox: 0 0 400 400
|
||||
%%Pages: 1
|
||||
%%Page: 1 1
|
||||
|
||||
% Peking University dissertation document class
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2012,2014 Casper Ti. Vector
|
||||
%
|
||||
% 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
|
||||
% your option) any later version.
|
||||
% The latest version of this license is in
|
||||
% https://www.latex-project.org/lppl.txt
|
||||
% and version 1.3 or later is part of all distributions of LaTeX version
|
||||
% 2005/12/01 or later.
|
||||
%
|
||||
% This work has the LPPL maintenance status `maintained'.
|
||||
% The current maintainer of this work is Casper Ti. Vector.
|
||||
%
|
||||
% This work consists of the following files:
|
||||
% pkuthss.cls
|
||||
% pkuthss.def
|
||||
% pkuthss-gbk.def
|
||||
% pkuthss-utf8.def
|
||||
% pkulogo.eps
|
||||
% pkuword.eps
|
||||
|
||||
% 设置北大红的色值(http://web5.pku.edu.cn/bs/cjwt/,问题 5)。
|
||||
% 要想将颜色改为黑色,只须将下面一行改为“0 setgray”即可。
|
||||
0.0 1.0 1.0 0.45 setcmykcolor
|
||||
% 设置线的属性。
|
||||
1 setlinecap
|
||||
1 setlinejoin
|
||||
|
||||
% 将坐标原点移到图片的中心。
|
||||
200 200 translate
|
||||
% 作出外圆。
|
||||
newpath
|
||||
6 setlinewidth
|
||||
0 0 195 0 360 arc
|
||||
stroke
|
||||
% 作出内圆。
|
||||
newpath
|
||||
5 setlinewidth
|
||||
0 0 143 0 360 arc
|
||||
stroke
|
||||
|
||||
% 描出“北大”字样。
|
||||
newpath
|
||||
0 setlinewidth
|
||||
-10 101 moveto
|
||||
-10 101 -10 38 lineto
|
||||
-10 35 -14 29 -19 28 curveto
|
||||
-30 28 -60 15 -89 -26 curveto
|
||||
-104 -39 -108 -24 -105 -16 curveto
|
||||
-76 27 -36 45 -32 45 curveto
|
||||
-30 46 -29 47 -29 49 curveto
|
||||
-29 49 -29 68 lineto
|
||||
-29 69 -30 69 -31 69 curveto
|
||||
-38 67 -58 63 -83 42 curveto
|
||||
-95 35 -103 49 -94 57 curveto
|
||||
-72 74 -53 83 -31 88 curveto
|
||||
-30 88 -29 89 -29 90 curveto
|
||||
-29 90 -29 102 lineto
|
||||
-29 111 -10 111 -10 101 curveto
|
||||
10 101 moveto
|
||||
10 101 10 38 lineto
|
||||
10 35 14 29 19 28 curveto
|
||||
30 28 60 15 89 -26 curveto
|
||||
104 -39 108 -24 105 -16 curveto
|
||||
76 27 36 45 32 45 curveto
|
||||
30 46 29 47 29 49 curveto
|
||||
29 49 29 68 lineto
|
||||
29 69 30 69 31 69 curveto
|
||||
38 67 58 63 83 42 curveto
|
||||
95 35 103 49 94 57 curveto
|
||||
72 74 53 83 31 88 curveto
|
||||
30 88 29 89 29 90 curveto
|
||||
29 90 29 102 lineto
|
||||
29 111 10 111 10 101 curveto
|
||||
-11 5 moveto
|
||||
-11 4 -11 4 -12 4 curveto
|
||||
-33 2 -65 -25 -80 -58 curveto
|
||||
-82 -71 -70 -74 -63 -64 curveto
|
||||
-45 -32 -27 -17 -12 -15 curveto
|
||||
-11 -15 -11 -15 -11 -16 curveto
|
||||
-11 -16 -11 -35 lineto
|
||||
-11 -38 -11 -38 -13 -40 curveto
|
||||
-28 -48 -34 -57 -45 -85 curveto
|
||||
-48 -97 -32 -103 -28 -94 curveto
|
||||
-15 -44 15 -44 28 -94 curveto
|
||||
32 -103 48 -97 45 -85 curveto
|
||||
34 -57 28 -48 13 -40 curveto
|
||||
11 -38 11 -38 11 -35 curveto
|
||||
11 -35 11 -16 lineto
|
||||
11 -15 11 -15 12 -15 curveto
|
||||
27 -17 45 -32 63 -64 curveto
|
||||
70 -74 82 -71 80 -58 curveto
|
||||
65 -25 33 2 12 4 curveto
|
||||
11 4 11 4 11 5 curveto
|
||||
11 5 11 12 lineto
|
||||
11 25 -11 25 -11 12 curveto
|
||||
-11 12 -11 5 lineto
|
||||
133 0 moveto
|
||||
0 0 133 0 360 arc
|
||||
% 对刚作出的线条执行奇偶相间的填充,使中间空出的“北大”字样就是透明的。
|
||||
% 从而,即使页面带背景色,插入这个图片时也会很正常。
|
||||
eofill
|
||||
|
||||
% 添加文字“PEKING UNIVERSITY 1898”。
|
||||
/Times-Bold findfont 40 scalefont setfont
|
||||
/offset { dup stringwidth pop 2 div neg 155 moveto show } def
|
||||
|
||||
gsave 112 rotate (P) offset grestore
|
||||
gsave 98 rotate (E) offset grestore
|
||||
gsave 84 rotate (K) offset grestore
|
||||
gsave 70 rotate (I) offset grestore
|
||||
gsave 56 rotate (N) offset grestore
|
||||
gsave 41 rotate (G) offset grestore
|
||||
gsave 15 rotate (U) offset grestore
|
||||
gsave (N) offset grestore
|
||||
gsave -14 rotate (I) offset grestore
|
||||
gsave -28 rotate (V) offset grestore
|
||||
gsave -42 rotate (E) offset grestore
|
||||
gsave -56 rotate (R) offset grestore
|
||||
gsave -70 rotate (S) offset grestore
|
||||
gsave -84 rotate (I) offset grestore
|
||||
gsave -98 rotate (T) offset grestore
|
||||
gsave -112 rotate (Y) offset grestore
|
||||
|
||||
/onset { dup stringwidth pop 2 div neg -182 moveto show } def
|
||||
|
||||
gsave -24 rotate (1) onset grestore
|
||||
gsave -8 rotate (8) onset grestore
|
||||
gsave 8 rotate (9) onset grestore
|
||||
gsave 24 rotate (8) onset grestore
|
||||
|
||||
showpage
|
||||
%%EOF
|
||||
@ -1,51 +0,0 @@
|
||||
% Peking University dissertation document class
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2013,2015,2021 Casper Ti. Vector
|
||||
% Copyright (c) 2021 Kurapica
|
||||
%
|
||||
% 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
|
||||
% your option) any later version.
|
||||
% The latest version of this license is in
|
||||
% https://www.latex-project.org/lppl.txt
|
||||
% and version 1.3 or later is part of all distributions of LaTeX version
|
||||
% 2005/12/01 or later.
|
||||
%
|
||||
% This work has the LPPL maintenance status `maintained'.
|
||||
% The current maintainer of this work is Casper Ti. Vector.
|
||||
%
|
||||
% This work consists of the following files:
|
||||
% pkuthss.cls
|
||||
% pkuthss.def
|
||||
% pkuthss-gbk.def
|
||||
% pkuthss-utf8.def
|
||||
% pkulogo.eps
|
||||
% pkuword.eps
|
||||
|
||||
\ProvidesFile{pkuthss-gbk.def}
|
||||
[2021/10/16 v1.9.1 Labels and captions in GBK encoding
|
||||
for the pkuthss document class]
|
||||
|
||||
\def\label@ctitle{题目:}
|
||||
\def\label@cauthor{姓\hphantom{汉字}名:}
|
||||
\def\label@studentid{学\hphantom{汉字}号:}
|
||||
\def\label@school{院\hphantom{汉字}系:}
|
||||
\def\label@cmajor{专\hphantom{汉字}业:}
|
||||
\def\label@direction{研究方向:}
|
||||
\def\label@cmentor{导\hphantom{汉字}师:}
|
||||
\def\label@ckeywords{关键词:}
|
||||
\def\label@blindcover{(匿名评阅论文封面)}
|
||||
\def\label@blindctitle{中文题目:}
|
||||
\def\label@blindetitle{英文题目:}
|
||||
\def\label@blinddiscipline{一级学科:}
|
||||
\def\label@blindmajor{二级学科:}
|
||||
\def\label@blindid{论文编号:}
|
||||
|
||||
\def\titlepagename{封面}
|
||||
\def\cuniversity{北京大学}
|
||||
\def\cthesisname{博士学位论文}
|
||||
\def\cabstractname{摘要}
|
||||
|
||||
\endinput
|
||||
% vim:ft=tex:ts=2:sw=2
|
||||
268
tex/pkuword.eps
268
tex/pkuword.eps
@ -1,268 +0,0 @@
|
||||
%!PS-Adobe-2.0 EPSF-2.0
|
||||
%%BoundingBox: 0 0 525 150
|
||||
%%Pages: 1
|
||||
%%Page: 1 1
|
||||
|
||||
% Peking University dissertation document class
|
||||
%
|
||||
% Copyright (c) 2008-2009 solvethis
|
||||
% Copyright (c) 2010-2012,2014 Casper Ti. Vector
|
||||
%
|
||||
% 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
|
||||
% your option) any later version.
|
||||
% The latest version of this license is in
|
||||
% https://www.latex-project.org/lppl.txt
|
||||
% and version 1.3 or later is part of all distributions of LaTeX version
|
||||
% 2005/12/01 or later.
|
||||
%
|
||||
% This work has the LPPL maintenance status `maintained'.
|
||||
% The current maintainer of this work is Casper Ti. Vector.
|
||||
%
|
||||
% This work consists of the following files:
|
||||
% pkuthss.cls
|
||||
% pkuthss.def
|
||||
% pkuthss-gbk.def
|
||||
% pkuthss-utf8.def
|
||||
% pkulogo.eps
|
||||
% pkuword.eps
|
||||
|
||||
% 设置北大红的色值(http://web5.pku.edu.cn/bs/cjwt/,问题 5)。
|
||||
% 要想将颜色改为黑色,只须将下面一行改为“0 setgray”即可。
|
||||
0.0 1.0 1.0 0.45 setcmykcolor
|
||||
% 缩放和平移。
|
||||
0.702957 0.602957 scale
|
||||
-30 -9 translate
|
||||
|
||||
% “北”。
|
||||
newpath
|
||||
74 224 moveto
|
||||
85.9 214.1 110.4 207.3 105 187 curveto
|
||||
106 176.3 111.5 166.3 108 155 curveto
|
||||
112.3 125.8 104.7 99 103 71 curveto
|
||||
100.3 59.5 96.9 47.3 91 38 curveto
|
||||
81.8 36 87.7 47.3 86 52 curveto
|
||||
88.3 56.7 86.2 62 84 66 curveto
|
||||
83 66 82 66 81 66 curveto
|
||||
70.7 51.3 53.5 42.7 41 31 curveto
|
||||
37.6 31.1 33.9 30.3 32 34 curveto
|
||||
32.6 40.3 30.8 46.8 32 52 curveto
|
||||
30.2 54 31.3 57.3 31 60 curveto
|
||||
43.6 65.3 42.7 79.6 47 90 curveto
|
||||
59 103.5 50 123.3 47 138 curveto
|
||||
54.7 135.5 63.5 135.7 69 128 curveto
|
||||
74.1 126.1 81.7 125.9 83 119 curveto
|
||||
84.9 118.4 85.8 119.9 87 121 curveto
|
||||
87 133.3 87 145.7 87 158 curveto
|
||||
86.2 176.4 91.3 203.1 71 215 curveto
|
||||
67.6 220.4 61.6 223.4 64 230 curveto
|
||||
68.7 231.2 70.2 224.9 74 224 curveto
|
||||
85 102 moveto
|
||||
87.3 94.7 85.2 86.7 83 80 curveto
|
||||
73.4 67.6 58.4 63.9 46 56 curveto
|
||||
42.7 55.1 40.4 57.1 40 60 curveto
|
||||
46 74 57.7 85.7 63 100 curveto
|
||||
65.7 103 69.7 102.6 73 104 curveto
|
||||
78.5 106.2 80.1 113.5 85 115 curveto
|
||||
88 110.7 83.5 107 85 102 curveto
|
||||
eofill
|
||||
newpath
|
||||
176 176 moveto
|
||||
184.2 165.9 175.8 148 187 140 curveto
|
||||
192.6 149.1 209.4 149.9 205 164 curveto
|
||||
206 165.1 202.5 172.3 208 171 curveto
|
||||
206.9 159.6 220 161 226 156 curveto
|
||||
231.2 157.2 228.8 148.7 228 146 curveto
|
||||
223.7 140 223 131.6 215 128 curveto
|
||||
205 124.2 195.7 127.8 187 121 curveto
|
||||
187 115 187 109 187 103 curveto
|
||||
181.5 99.2 175.8 93.7 175 87 curveto
|
||||
188.7 76.3 201.5 91.8 216 91 curveto
|
||||
221.9 93 226.5 97.9 234 96 curveto
|
||||
235.1 91.6 232.3 91.4 231 88 curveto
|
||||
230 76.1 218.3 77.6 211 72 curveto
|
||||
200.8 70.8 188.8 71.6 183 62 curveto
|
||||
175.5 63.2 167.5 63 162 69 curveto
|
||||
150.9 87.6 151.2 111 146 132 curveto
|
||||
141.1 158 154 179.1 157 203 curveto
|
||||
161.7 194.2 176.5 188.7 176 176 curveto
|
||||
closepath
|
||||
fill
|
||||
|
||||
% “京”。
|
||||
newpath
|
||||
351 221 moveto
|
||||
349.4 215.9 349.3 209.3 343 207 curveto
|
||||
332.9 217.2 312.8 180.1 322 206 curveto
|
||||
322.3 218.3 314.3 227.2 311 238 curveto
|
||||
309.3 244.7 315.9 244.8 320 243 curveto
|
||||
329.3 239.7 338.7 234.2 346 228 curveto
|
||||
346.6 225.2 350.4 223.8 351 221 curveto
|
||||
closepath
|
||||
fill
|
||||
newpath
|
||||
361 183 moveto
|
||||
352.3 176.8 341.6 170.9 333 162 curveto
|
||||
329.4 152.3 319 150.7 312 145 curveto
|
||||
300.2 142.3 291.2 148.7 284 155 curveto
|
||||
282.8 159.1 287.7 161.1 290 163 curveto
|
||||
303.2 171.4 320.3 170.3 333 180 curveto
|
||||
341.8 183.3 351 185.6 361 186 curveto
|
||||
361 185 361 184 361 183 curveto
|
||||
closepath
|
||||
fill
|
||||
newpath
|
||||
357 135 moveto
|
||||
361.8 126.8 349.9 127.4 347 122 curveto
|
||||
341.4 114.9 332.9 110.9 329 104 curveto
|
||||
327.3 101.3 322.5 100 324 96 curveto
|
||||
326.1 92.8 330.4 96.3 333 98 curveto
|
||||
337.3 100.7 341.7 97.3 346 97 curveto
|
||||
343.8 86.8 332.7 85.7 326 80 curveto
|
||||
322.5 79.3 318.3 77.9 317 74 curveto
|
||||
312.2 64.9 322.3 60.7 321 52 curveto
|
||||
323.8 41 328.2 28 325 17 curveto
|
||||
317.4 16.8 319.5 25.8 314 29 curveto
|
||||
311.8 32.7 304.6 30.9 306 37 curveto
|
||||
309.5 37.7 313.7 39.1 315 43 curveto
|
||||
314.3 48.7 316.7 55.6 313 60 curveto
|
||||
311.1 60.3 309.6 59.5 308 59 curveto
|
||||
293.5 46.9 284.8 31.5 271 20 curveto
|
||||
264.2 18.7 260.4 24.7 259 30 curveto
|
||||
257.8 32.6 258 35.9 258 39 curveto
|
||||
276.8 39.2 288.7 56.3 304 65 curveto
|
||||
307.5 64.9 309.3 69 312 71 curveto
|
||||
313.3 74.6 309.9 76.3 309 79 curveto
|
||||
308.3 85.9 319.3 93.8 311 98 curveto
|
||||
306.6 97.1 300.6 97.6 299 92 curveto
|
||||
304.1 80.4 294.9 72.3 289 64 curveto
|
||||
287.6 63.3 287.4 65.7 286 65 curveto
|
||||
277.5 80.5 281 99.7 283 117 curveto
|
||||
287.1 115.7 290.3 112.3 294 110 curveto
|
||||
309.9 114.8 321.3 130.8 337 136 curveto
|
||||
343 134.2 351.6 135.3 357 135 curveto
|
||||
closepath
|
||||
fill
|
||||
newpath
|
||||
374 62 moveto
|
||||
374 57.7 374 53.3 374 49 curveto
|
||||
368.6 46.4 362.1 40.9 357 48 curveto
|
||||
351.7 57.8 341.8 69.4 350 81 curveto
|
||||
359.3 77.8 371.6 73.3 374 62 curveto
|
||||
closepath
|
||||
fill
|
||||
|
||||
% “大”。
|
||||
newpath
|
||||
501 224 moveto
|
||||
507.6 216 519.8 213 519 202 curveto
|
||||
510.5 194.5 518.5 184 516 174 curveto
|
||||
513.8 166.3 516.2 156.7 514 149 curveto
|
||||
514.3 146.1 517.5 145.7 520 146 curveto
|
||||
537.1 151 538.8 182.5 560 171 curveto
|
||||
557.7 161.3 549.5 155.7 542 149 curveto
|
||||
533.4 140.8 521.6 133.8 514 123 curveto
|
||||
512.2 101.2 508.4 78.4 488 66 curveto
|
||||
476 57.9 463 52.2 449 49 curveto
|
||||
447.3 51.2 438.3 44.3 442 51 curveto
|
||||
450.7 56.3 458.9 62.7 468 67 curveto
|
||||
482.2 77.4 486.1 93.8 491 109 curveto
|
||||
484.7 113.3 478.3 105.7 472 104 curveto
|
||||
456.1 97.9 445.1 86.2 430 78 curveto
|
||||
424.8 75.9 419.1 72.1 413 75 curveto
|
||||
406.8 81.8 408.2 93 408 101 curveto
|
||||
411.9 101.9 410.9 97.2 414 96 curveto
|
||||
436.6 97.6 452.7 115.2 474 120 curveto
|
||||
480.7 125.8 491.4 124.2 496 133 curveto
|
||||
500.2 163 498.3 195.4 486 221 curveto
|
||||
487.2 223.7 488.1 229.2 493 227 curveto
|
||||
495 224.5 497.7 223.5 501 224 curveto
|
||||
closepath
|
||||
fill
|
||||
newpath
|
||||
557 86 moveto
|
||||
564 76.3 578.2 71.9 574 58 curveto
|
||||
568.3 51.9 560.3 51.5 552 52 curveto
|
||||
550.3 54.4 550.8 58.5 552 61 curveto
|
||||
548.5 71.2 540.4 81.9 545 93 curveto
|
||||
548.4 91.3 552.1 86.2 557 86 curveto
|
||||
closepath
|
||||
fill
|
||||
|
||||
% 学。
|
||||
newpath
|
||||
640 130 moveto
|
||||
639.8 124 641.2 115.7 635 114 curveto
|
||||
628.1 111.5 630.1 119.8 626 122 curveto
|
||||
625.8 131.8 626.8 139.7 624 148 curveto
|
||||
634.8 146.6 632.8 135.8 640 130 curveto
|
||||
closepath
|
||||
fill
|
||||
newpath
|
||||
733 248 moveto
|
||||
738 233.7 720.5 224.5 721 210 curveto
|
||||
728.7 202 735.5 214.1 744 213 curveto
|
||||
753.3 220.2 762.3 213.3 773 214 curveto
|
||||
768.4 191.6 756.7 169.5 737 156 curveto
|
||||
736.5 154.6 736.3 153.1 735 152 curveto
|
||||
740.1 145.1 758.1 154.4 754 140 curveto
|
||||
746.5 116.3 724.8 109.9 705 101 curveto
|
||||
715.3 113.3 728.2 123.7 736 138 curveto
|
||||
733 143.2 726.9 137.7 723 136 curveto
|
||||
703.9 117.4 683.8 101.3 660 94 curveto
|
||||
652.2 91.7 644 90.4 635 91 curveto
|
||||
635.9 98.4 645.4 97.9 650 103 curveto
|
||||
673.8 121.1 701.1 130.5 726 146 curveto
|
||||
726.6 147.9 725.1 148.8 724 150 curveto
|
||||
716.7 151.2 712 146 706 144 curveto
|
||||
705.5 149.3 711 153.3 709 158 curveto
|
||||
704 160 699.6 166.5 694 164 curveto
|
||||
686.8 160.8 686.1 147.6 677 150 curveto
|
||||
677.2 159.5 697.7 166.9 684 176 curveto
|
||||
694.5 171.8 700.6 182.7 705 189 curveto
|
||||
705.8 191.9 705.5 193 703 195 curveto
|
||||
699.4 194.7 696.9 191.6 693 192 curveto
|
||||
693.6 196.3 699.8 198.2 699 203 curveto
|
||||
694.9 208.7 686.3 203.7 684 212 curveto
|
||||
684.1 216.3 689.1 212.2 692 213 curveto
|
||||
695.3 212 699.5 214.5 703 216 curveto
|
||||
718.6 222.2 724.8 240.5 726 255 curveto
|
||||
729.2 254.8 729.6 249.9 733 248 curveto
|
||||
748 193 moveto
|
||||
743.7 180.6 733.5 168.9 725 160 curveto
|
||||
724.5 167.3 722.5 174 719 180 curveto
|
||||
710.8 180.5 719.2 163.3 708 168 curveto
|
||||
696.3 179.3 716.2 187.4 718 198 curveto
|
||||
728 202.3 738 194.7 748 193 curveto
|
||||
eofill
|
||||
newpath
|
||||
640 195 moveto
|
||||
643.7 193 646.5 188.9 651 189 curveto
|
||||
661.3 177.5 670.8 165.7 671 150 curveto
|
||||
667.8 144.8 662.5 140.5 657 139 curveto
|
||||
653.4 161.3 643.8 182 627 198 curveto
|
||||
625.5 199.7 625.5 203.3 627 205 curveto
|
||||
632.2 203.8 635.2 197.3 640 195 curveto
|
||||
closepath
|
||||
fill
|
||||
newpath
|
||||
732 82 moveto
|
||||
727.7 76.8 729.2 66.5 720 66 curveto
|
||||
713.6 65.1 703.7 68.2 702 60 curveto
|
||||
702.4 47.8 712 38.2 707 25 curveto
|
||||
704 12.5 688.9 12 678 10 curveto
|
||||
675.5 16.8 666.3 14.1 663 19 curveto
|
||||
675.2 21.9 691.3 19.6 697 34 curveto
|
||||
692.9 41.6 697.4 53.6 690 59 curveto
|
||||
670.3 53.8 653.1 42.5 636 31 curveto
|
||||
631.1 29.7 626.4 25.1 621 28 curveto
|
||||
620.2 35.6 610.3 39.5 614 49 curveto
|
||||
617.7 54.2 624 53 629 55 curveto
|
||||
654.8 67.1 680.6 79.3 709 85 curveto
|
||||
711.4 88.3 717 87.2 720 86 curveto
|
||||
723.4 86.2 729.3 86.3 732 82 curveto
|
||||
closepath
|
||||
fill
|
||||
|
||||
showpage
|
||||
%%EOF
|
||||
19
utils/bump
19
utils/bump
@ -1,19 +0,0 @@
|
||||
#!/usr/bin/make -f
|
||||
#
|
||||
# Copyright (c) 2012-2016,2018 Casper Ti. Vector
|
||||
# Public domain.
|
||||
|
||||
NUMDATE = $(shell date '+%Y/%m/%d')
|
||||
CNDATE = $(shell date '+\\zhdigits{%Y}年\\zhnumber{%-m}月')
|
||||
|
||||
revbump:
|
||||
sed -i '/\\Provides/,+1 s;\[[^ ]* [^ ]*;[$(NUMDATE) v$(VERSION);g' \
|
||||
tex/*
|
||||
sed -i -e '/date = / s;{[^,]\+},$$;{$(CNDATE)},;g' \
|
||||
-e '/\\newcommand\*{\\docversion}/ s;{[^{}]\+}$$;{v$(VERSION)};g' \
|
||||
doc/readme/pkuthss.tex
|
||||
@echo '$@: remember to update the change log and copyright lines'
|
||||
@echo '$@: remember to tag the commit and push tags'
|
||||
@echo '$@: remember to add new download on project homepage'
|
||||
|
||||
# vim:ts=4:sw=4
|
||||
69
utils/dist
69
utils/dist
@ -1,69 +0,0 @@
|
||||
#!/usr/bin/make -f
|
||||
#
|
||||
# Copyright (c) 2011-2015,2019 Casper Ti. Vector
|
||||
# Public domain.
|
||||
|
||||
CP = cp -a
|
||||
MV = mv -f
|
||||
MD = mkdir -p
|
||||
RM = rm -rf
|
||||
ZIP = zip -rT
|
||||
MAKE = make
|
||||
LMK = latexmk
|
||||
SELF = utils/dist
|
||||
PERM = find . -type d -exec chmod 755 '{}' + && \
|
||||
find . -type f -exec chmod 644 '{}' +
|
||||
|
||||
dist:
|
||||
$(SELF) distclean
|
||||
$(SELF) dist-ctan
|
||||
$(SELF) clean
|
||||
|
||||
tex-dist: tex/
|
||||
$(CP) tex/ $@
|
||||
cd $@ && $(MAKE) && rm -f Makefile
|
||||
|
||||
doc-dist: doc/
|
||||
# Make the directory.
|
||||
$(MD) $@/
|
||||
# Example src and pdf.
|
||||
cd doc/example/ && $(LMK) && $(LMK) -c && $(RM) *.xdv
|
||||
$(MV) doc/example/$(EXAMPLE).pdf $@/example.pdf
|
||||
$(CP) doc/example/ $@/example
|
||||
# Readme src and pdf.
|
||||
cd doc/readme/ && $(LMK) && $(LMK) -c && $(RM) *.xdv
|
||||
$(MV) doc/readme/$(TITLE).pdf $@/
|
||||
$(CP) doc/readme/ $@/readme
|
||||
|
||||
dir-tds: README.txt tex-dist doc-dist
|
||||
$(MD) $@/tex/latex/ $@/doc/latex/
|
||||
$(CP) tex-dist/ $@/tex/latex/$(TITLE)
|
||||
$(CP) doc-dist/ $@/doc/latex/$(TITLE)
|
||||
$(CP) README.txt $@/doc/latex/$(TITLE)
|
||||
|
||||
dist-tds: $(TITLE).tds.zip
|
||||
$(TITLE).tds.zip: dir-tds
|
||||
cd $< && $(PERM) && $(ZIP) ../$@ tex/ doc/
|
||||
|
||||
dir-ctan: README.txt tex-dist doc-dist $(TITLE).tds.zip
|
||||
$(MD) $@/$(TITLE)/
|
||||
$(CP) README.txt $@/$(TITLE)/
|
||||
$(CP) tex-dist/ $@/$(TITLE)/tex
|
||||
$(CP) doc-dist/ $@/$(TITLE)/doc
|
||||
$(MV) $(TITLE).tds.zip $@/
|
||||
|
||||
dist-ctan: $(TITLE)-$(VERSION).zip
|
||||
$(TITLE)-$(VERSION).zip: dir-ctan
|
||||
cd $< && $(PERM) && \
|
||||
$(ZIP) -y ../$@ $(TITLE)/ $(TITLE).tds.zip
|
||||
|
||||
clean:
|
||||
cd doc/readme/ && $(LMK) -C
|
||||
cd doc/example/ && $(LMK) -C
|
||||
$(RM) dir-ctan/ dir-tds/ tex-dist/ doc-dist/
|
||||
|
||||
distclean:
|
||||
$(SELF) clean
|
||||
$(RM) $(TITLE).tds.zip $(TITLE)-$(VERSION).zip
|
||||
|
||||
# vim:ts=4:sw=4
|
||||
62
utils/qa
62
utils/qa
@ -1,62 +0,0 @@
|
||||
#!/usr/bin/make -f
|
||||
#
|
||||
# Copyright (c) 2012,2014,2018 Casper Ti. Vector
|
||||
# Public domain.
|
||||
|
||||
FIND_GBK = '(' -name '*gbk*' -o -name '*.bat*' ')'
|
||||
FIND_CRLF = -name '*.bat*'
|
||||
FIND_VCS = '(' -type d -name '.git' -prune ')'
|
||||
|
||||
# IGNORE "error"s intentionally.
|
||||
.IGNORE qa: enc lt sync spell blank tail
|
||||
|
||||
enc:
|
||||
@echo '======================================================================'
|
||||
@echo '$@: check file encodings'
|
||||
@echo '----------------------------------------------------------------------'
|
||||
! find . -not $(FIND_VCS) $(FIND_GBK) \
|
||||
-type f -exec file '{}' '+' | grep -vE 'GB|ISO-8859|ASCII'
|
||||
! find . -not $(FIND_VCS) -not $(FIND_GBK) \
|
||||
-type f -exec file '{}' '+' | grep -E 'GB|ISO-8859'
|
||||
@echo
|
||||
|
||||
lt:
|
||||
@echo '======================================================================'
|
||||
@echo '$@: check line terminators'
|
||||
@echo '----------------------------------------------------------------------'
|
||||
! find . -not $(FIND_VCS) $(FIND_CRLF) \
|
||||
-type f -exec file '{}' '+' | grep -vE 'CRLF'
|
||||
! find . -not $(FIND_VCS) -not $(FIND_CRLF) \
|
||||
-type f -exec file '{}' '+' | grep -E 'CRLF'
|
||||
@echo
|
||||
|
||||
sync:
|
||||
@echo '======================================================================'
|
||||
@echo '$@: keep GBK and UTF-8 files synchronised'
|
||||
@echo '----------------------------------------------------------------------'
|
||||
iconv -f GBK tex/pkuthss-gbk.def | diff - tex/pkuthss-utf8.def
|
||||
@echo
|
||||
|
||||
spell:
|
||||
@echo '======================================================================'
|
||||
@echo '$@: "模板" -> "模版"; "绪言" -> "序言"; maybe "需" -> "须"'
|
||||
@echo '----------------------------------------------------------------------'
|
||||
grep -rE --exclude-dir=.git '需|模板|绪言' .
|
||||
@echo
|
||||
|
||||
blank:
|
||||
@echo '======================================================================'
|
||||
@echo '$@: check for trailing spaces and tabs'
|
||||
@echo '----------------------------------------------------------------------'
|
||||
! grep -r --exclude-dir=.git '[ ]\+$$' --exclude '*.patch' .
|
||||
@echo
|
||||
|
||||
tail:
|
||||
@echo '======================================================================'
|
||||
@echo '$@: remember to update documentation after modifications'
|
||||
@echo '$@: remember to update patch(es)'
|
||||
@echo '$@: remember to update copyright lines'
|
||||
@echo '$@: remember to review `git diff`'
|
||||
@echo '======================================================================'
|
||||
|
||||
# vim:ts=4:sw=4
|
||||
Loading…
Reference in New Issue
Block a user