diff options
Diffstat (limited to 'macros/latex/contrib/pkuthss')
41 files changed, 3579 insertions, 0 deletions
diff --git a/macros/latex/contrib/pkuthss/README b/macros/latex/contrib/pkuthss/README new file mode 100644 index 0000000000..a023ed09c8 --- /dev/null +++ b/macros/latex/contrib/pkuthss/README @@ -0,0 +1,18 @@ +pkuthss: LaTeX template for dissertations in Peking University +-------------------------------------------------------------- + +Maintainer: Casper Ti. Vector <CasperVector@gmail.com> +Homepage: <https://gitlab.com/CasperVector/pkuthss> + +License: +* New BSD License for `copyright.tex' and `originauth.tex'. +* LaTeX Project Public License 1.3 or later for files in `tex/' and + `doc/readme/', except for those mentioned above. +* Public domain for all other files. + +This package provides a simple, clear and flexible LaTeX template for +dissertations in Peking University. + +This file (README) is *NOT* intended as the documentation for this +package; please see the file `readme.pdf' instead. + diff --git a/macros/latex/contrib/pkuthss/doc/example.pdf b/macros/latex/contrib/pkuthss/doc/example.pdf Binary files differnew file mode 100644 index 0000000000..2dd693f222 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/example.pdf diff --git a/macros/latex/contrib/pkuthss/doc/example/Make.bat b/macros/latex/contrib/pkuthss/doc/example/Make.bat new file mode 100644 index 0000000000..e57cca77a4 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/example/Make.bat @@ -0,0 +1,39 @@ +@echo off
+
+@rem Copyright (c) 2008-2009 solvethis
+@rem Copyright (c) 2010-2012 Casper Ti. Vector
+@rem Public domain.
+
+set JOB=thesis
+@rem 这个变量的值可以为 latex、pdflatex 或 xelatex。
+set LATEX=latex
+set BIBTEX=biber -l zh__pinyin --output-safechars
+set DVIPDF=dvipdfmx
+
+if "%LATEX%"=="latex" (set DODVIPDF=%DVIPDF% %JOB%
+) else (set DODVIPDF=echo No need to run %DVIPDF%.)
+if "%1"=="" goto doc
+if "%1"=="doc" goto doc
+if "%1"=="clean" (goto clean) else (goto usage)
+
+:doc
+%LATEX% %JOB%
+%BIBTEX% %JOB%
+%LATEX% %JOB%
+%LATEX% %JOB%
+%DODVIPDF%
+goto end
+
+:clean
+del *.aux *.bbl *.bcf *.blg *.dvi *.lof *.log *.lot *.run.xml *.toc *.out
+del missfont.log chap\*.aux
+goto end
+
+:usage
+echo %0 [doc] [clean]
+goto end
+
+:end
+pause
+
+@rem vim:ts=4:sw=4
diff --git a/macros/latex/contrib/pkuthss/doc/example/Makefile b/macros/latex/contrib/pkuthss/doc/example/Makefile new file mode 100644 index 0000000000..7437115a33 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/example/Makefile @@ -0,0 +1,42 @@ +# Copyright (c) 2008-2009 solvethis +# Copyright (c) 2010-2012,2014-2015,2018 Casper Ti. Vector +# Public domain. + +# 琚紪璇戠殑涓绘枃浠剁殑鏂囦欢鍚嶏紝涓嶅寘鎷墿灞曞悕銆 +JOB = thesis +# 杩欎釜鍙橀噺鐨勫煎彲浠ヤ负 latex銆乸dflatex 鎴 xelatex銆 +LATEX = latex +BIBTEX = biber -l zh__pinyin --output-safechars +DVIPDF = dvipdfmx + +# 濡傛灉鐢 LaTeX 缂栬瘧锛屽垯浣跨敤 dvipdfmx 灏 dvi 杞垚 pdf銆 +ifeq ($(LATEX), latex) + DODVIPDF = $(DVIPDF) $(JOB) +endif + +# 鍖哄垎鏄 Windows 鐜杩樻槸绫 UNIX 鐜銆 +# 濡傛灉鏄悗鑰咃紝鍒 GNU make 灏嗗彲浠ユ娴嬪埌宸茬粡瀹氫箟 PATH 鐜鍙橀噺銆 +ifdef PATH + MAKE = make + RM = rm -f +else + MAKE = mingw32-make + RM = del +endif + +doc: + $(LATEX) $(JOB) + $(BIBTEX) $(JOB) + $(LATEX) $(JOB) + $(LATEX) $(JOB) + $(DODVIPDF) + +clean: + $(RM) $(JOB).aux $(JOB).bbl $(JOB).bcf $(JOB).blg $(JOB).dvi \ + $(JOB).lof $(JOB).log $(JOB).lot $(JOB).run.xml $(JOB).toc \ + $(JOB).out $(JOB).out.bak missfont.log texput.log chap/*.aux + +distclean: clean + $(RM) $(JOB).pdf + +# vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/example/chap/abs.tex b/macros/latex/contrib/pkuthss/doc/example/chap/abs.tex new file mode 100644 index 0000000000..305792f836 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/example/chap/abs.tex @@ -0,0 +1,12 @@ +% Copyright (c) 2014,2016 Casper Ti. Vector +% Public domain. + +\begin{cabstract} + \pkuthssffaq % 涓枃娴嬭瘯鏂囧瓧銆 +\end{cabstract} + +\begin{eabstract} + Test of the English abstract. +\end{eabstract} + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/example/chap/ack.tex b/macros/latex/contrib/pkuthss/doc/example/chap/ack.tex new file mode 100644 index 0000000000..4af4d39cd8 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/example/chap/ack.tex @@ -0,0 +1,7 @@ +% Copyright (c) 2014,2016 Casper Ti. Vector +% Public domain. + +\chapter{鑷磋阿} +\pkuthssffaq % 涓枃娴嬭瘯鏂囧瓧銆 + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/example/chap/chap1.tex b/macros/latex/contrib/pkuthss/doc/example/chap/chap1.tex new file mode 100644 index 0000000000..3d631f38fd --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/example/chap/chap1.tex @@ -0,0 +1,7 @@ +% Copyright (c) 2014,2016,2018 Casper Ti. Vector +% Public domain. + +\chapter{寮曡█} +\pkuthssffaq % 涓枃娴嬭瘯鏂囧瓧銆 + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/example/chap/chap2.tex b/macros/latex/contrib/pkuthss/doc/example/chap/chap2.tex new file mode 100644 index 0000000000..85f70084a8 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/example/chap/chap2.tex @@ -0,0 +1,7 @@ +% Copyright (c) 2014,2016 Casper Ti. Vector +% Public domain. + +\chapter{绔犺妭} +\pkuthssffaq % 涓枃娴嬭瘯鏂囧瓧銆 + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/example/chap/chap3.tex b/macros/latex/contrib/pkuthss/doc/example/chap/chap3.tex new file mode 100644 index 0000000000..ed66f12d78 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/example/chap/chap3.tex @@ -0,0 +1,7 @@ +% Copyright (c) 2014,2016,2018 Casper Ti. Vector +% Public domain. + +\chapter{缁撹鍜屽睍鏈泒 +\pkuthssffaq % 涓枃娴嬭瘯鏂囧瓧銆 + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/example/chap/copy.tex b/macros/latex/contrib/pkuthss/doc/example/chap/copy.tex new file mode 100644 index 0000000000..8204715289 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/example/chap/copy.tex @@ -0,0 +1,45 @@ +% Copyright (c) 2008-2009 solvethis +% Copyright (c) 2010-2017 Casper Ti. Vector +% All rights reserved. +% +% Redistribution and use in source and binary forms, with or without +% modification, are permitted provided that the following conditions are +% met: +% +% * Redistributions of source code must retain the above copyright notice, +% this list of conditions and the following disclaimer. +% * Redistributions in binary form must reproduce the above copyright +% notice, this list of conditions and the following disclaimer in the +% documentation and/or other materials provided with the distribution. +% * Neither the name of Peking University nor the names of its contributors +% may be used to endorse or promote products derived from this software +% without specific prior written permission. +% +% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS +% IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +% THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +% PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR +% CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +% EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +% PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +% PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +% LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +% NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +% SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +% 姝ゅ涓嶇敤 \specialchap锛屽洜涓哄鏍¤姹傜洰褰曚笉鍖呮嫭鍏惰嚜宸卞強鍏朵箣鍓嶇殑鍐呭銆 +\chapter*{鐗堟潈澹版槑} +% 缁煎悎瀛︽牎鐨勪功闈㈣姹傚強 Word 妯$増鏉ョ湅锛岀増鏉冨0鏄庨〉涓嶇敤鍔犻〉鐪夈侀〉鑴氥 +\thispagestyle{empty} + +浠讳綍鏀跺瓨鍜屼繚绠℃湰璁烘枃鍚勭鐗堟湰鐨勫崟浣嶅拰涓汉锛 +鏈粡鏈鏂囦綔鑰呭悓鎰忥紝涓嶅緱灏嗘湰璁烘枃杞熶粬浜猴紝 +浜︿笉寰楅殢鎰忓鍒躲佹妱褰曘佹媿鐓ф垨浠ヤ换浣曟柟寮忎紶鎾 +鍚﹀垯涓鏃﹀紩璧锋湁纰嶄綔鑰呰憲浣滄潈涔嬮棶棰橈紝灏嗗彲鑳芥壙鎷呮硶寰嬭矗浠汇 + +% 鑻ラ』鎺掔増浜岀淮鐮侊紝璇峰皢浜岀淮鐮佸浘鐗囬噸鍛藉悕涓衡渂arcode鈥濓紝 +% 杞负鍚堥傜殑鍥剧墖鏍煎紡锛屽苟鏀惧湪褰撳墠鐩綍涓嬶紝鐒跺悗鍘绘帀涓嬮潰 2 琛岀殑娉ㄩ噴銆 +%\vfill\noindent +%\includegraphics[height = 5em]{barcode} + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/example/chap/encl1.tex b/macros/latex/contrib/pkuthss/doc/example/chap/encl1.tex new file mode 100644 index 0000000000..9834829098 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/example/chap/encl1.tex @@ -0,0 +1,7 @@ +% Copyright (c) 2014,2016 Casper Ti. Vector +% Public domain. + +\chapter{闄勪欢} +\pkuthssffaq % 涓枃娴嬭瘯鏂囧瓧銆 + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/example/chap/origin.tex b/macros/latex/contrib/pkuthss/doc/example/chap/origin.tex new file mode 100644 index 0000000000..49d25b5425 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/example/chap/origin.tex @@ -0,0 +1,82 @@ +% Copyright (c) 2008-2009 solvethis +% Copyright (c) 2010-2017 Casper Ti. Vector +% All rights reserved. +% +% Redistribution and use in source and binary forms, with or without +% modification, are permitted provided that the following conditions are +% met: +% +% * Redistributions of source code must retain the above copyright notice, +% this list of conditions and the following disclaimer. +% * Redistributions in binary form must reproduce the above copyright +% notice, this list of conditions and the following disclaimer in the +% documentation and/or other materials provided with the distribution. +% * Neither the name of Peking University nor the names of its contributors +% may be used to endorse or promote products derived from this software +% without specific prior written permission. +% +% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS +% IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +% THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +% PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR +% CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +% EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +% PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +% PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +% LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +% NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +% SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +{ + \ctexset{section = { + format+ = {\centering}, beforeskip = {40bp}, afterskip = {15bp} + }} + + % 瀛︽牎涔﹂潰瑕佹眰鏈〉闈笉瑕侀〉鐮侊紝浣嗗湪缁欏嚭鐨 Word 妯$増涓張鏈夐〉鐮佷笖缂栧叆浜嗙洰褰曘 + % 姝ゅ浠 Word 妯$増涓哄疄闄呮爣鍑嗚繘琛岃瀹氥 + \specialchap{鍖椾含澶у瀛︿綅璁烘枃鍘熷垱鎬у0鏄庡拰浣跨敤鎺堟潈璇存槑} + \mbox{}\vspace*{-3em} + \section*{鍘熷垱鎬у0鏄巬 + + 鏈汉閮戦噸澹版槑锛 + 鎵鍛堜氦鐨勫浣嶈鏂囷紝鏄湰浜哄湪瀵煎笀鐨勬寚瀵间笅锛岀嫭绔嬭繘琛岀爺绌跺伐浣滄墍鍙栧緱鐨勬垚鏋溿 + 闄ゆ枃涓凡缁忔敞鏄庡紩鐢ㄧ殑鍐呭澶栵紝 + 鏈鏂囦笉鍚换浣曞叾浠栦釜浜烘垨闆嗕綋宸茬粡鍙戣〃鎴栨挵鍐欒繃鐨勪綔鍝佹垨鎴愭灉銆 + 瀵规湰鏂囩殑鐮旂┒鍋氬嚭閲嶈璐$尞鐨勪釜浜哄拰闆嗕綋锛屽潎宸插湪鏂囦腑浠ユ槑纭柟寮忔爣鏄庛 + 鏈0鏄庣殑娉曞緥缁撴灉鐢辨湰浜烘壙鎷呫 + \vskip 1em + \rightline{% + 璁烘枃浣滆呯鍚嶏細\hspace{5em}% + 鏃ユ湡锛歕hspace{2em}骞碶hspace{2em}鏈圽hspace{2em}鏃% + } + + \section*{% + 瀛︿綅璁烘枃浣跨敤鎺堟潈璇存槑\\[-0.33em] + \textmd{\zihao{5}锛堝繀椤昏璁㈠湪鎻愪氦瀛︽牎鍥句功棣嗙殑鍗板埛鏈級}% + } + + 鏈汉瀹屽叏浜嗚В鍖椾含澶у鍏充簬鏀堕泦銆佷繚瀛樸佷娇鐢ㄥ浣嶈鏂囩殑瑙勫畾锛屽嵆锛 + \begin{itemize} + \item 鎸夌収瀛︽牎瑕佹眰鎻愪氦瀛︿綅璁烘枃鐨勫嵃鍒锋湰鍜岀數瀛愮増鏈紱 + \item 瀛︽牎鏈夋潈淇濆瓨瀛︿綅璁烘枃鐨勫嵃鍒锋湰鍜岀數瀛愮増锛 + 骞舵彁渚涚洰褰曟绱笌闃呰鏈嶅姟锛屽湪鏍″洯缃戜笂鎻愪緵鏈嶅姟锛 + \item 瀛︽牎鍙互閲囩敤褰卞嵃銆佺缉鍗般佹暟瀛楀寲鎴栧叾瀹冨鍒舵墜娈典繚瀛樿鏂囷紱 + \item 鍥犳煇绉嶇壒娈婂師鍥犻』瑕佸欢杩熷彂甯冨浣嶈鏂囩數瀛愮増锛 + 鎺堟潈瀛︽牎鍦 $\Box$\nobreakspace{}涓骞 / + $\Box$\nobreakspace{}涓ゅ勾 / + $\Box$\nobreakspace{}涓夊勾浠ュ悗鍦ㄦ牎鍥綉涓婂叏鏂囧彂甯冦 + \end{itemize} + \centerline{锛堜繚瀵嗚鏂囧湪瑙e瘑鍚庨伒瀹堟瑙勫畾锛墋 + \vskip 1em + \rightline{% + 璁烘枃浣滆呯鍚嶏細\hspace{5em}瀵煎笀绛惧悕锛歕hspace{5em}% + 鏃ユ湡锛歕hspace{2em}骞碶hspace{2em}鏈圽hspace{2em}鏃% + } + + % 鑻ラ』鎺掔増浜岀淮鐮侊紝璇峰皢浜岀淮鐮佸浘鐗囬噸鍛藉悕涓衡渂arcode鈥濓紝 + % 杞负鍚堥傜殑鍥剧墖鏍煎紡锛屽苟鏀惧湪褰撳墠鐩綍涓嬶紝鐒跺悗鍘绘帀涓嬮潰 2 琛岀殑娉ㄩ噴銆 + %\vfill\noindent + %\includegraphics[height = 5em]{barcode} +} + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/example/ctex-fontset-pkuthss.def b/macros/latex/contrib/pkuthss/doc/example/ctex-fontset-pkuthss.def new file mode 100644 index 0000000000..2febb6122d --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/example/ctex-fontset-pkuthss.def @@ -0,0 +1,58 @@ +\ProvidesExplFile{\ExplFileName}{}{}{} + +\sys_if_engine_pdftex:TF + { + \ctex_zhmap_case:nnn + { + \ctex_punct_set:n { windows } + \setCJKmainfont + [ BoldFont = simhei.ttf , ItalicFont = simkai.ttf ] { simsun.ttc } + \setCJKsansfont { simhei.ttf } + \setCJKmonofont { simfang.ttf } + \setCJKfamilyfont { zhkai } { simkai.ttf } + \setCJKfamilyfont { zhfs } { simfang.ttf } + \setCJKfamilyfont { zhsong } { simsun.ttc } + \setCJKfamilyfont { zhhei } { simhei.ttf } + %\setCJKfamilyfont { zhli } { simli.ttf } + %\setCJKfamilyfont { zhyou } { simyou.ttf } + \ctex_punct_map_family:nn { \CJKrmdefault } { zhsong } + \ctex_punct_map_family:nn { \CJKsfdefault } { zhhei } + \ctex_punct_map_family:nn { \CJKttdefault } { zhfs } + \ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai } + \ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei } + } + { + \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { zhwindowsfonts } + \ctex_punct_set:n { windows } + \ctex_punct_map_family:nn { \CJKrmdefault } { zhsong } + \ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei } + \ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai } + } + { + \tl_set:Nn \CJKrmdefault { rm } + \tl_set:Nn \CJKsfdefault { sf } + \tl_set:Nn \CJKttdefault { tt } + } + } + { + \setCJKmainfont + [ BoldFont = SimHei , ItalicFont = [ simkai.ttf ] ] { SimSun } + \setCJKsansfont { SimHei } + \setCJKmonofont { [ simfang.ttf ] } + \setCJKfamilyfont { zhsong } { SimSun } + \setCJKfamilyfont { zhhei } { SimHei } + \setCJKfamilyfont { zhkai } { [ simkai.ttf ] } + \setCJKfamilyfont { zhfs } { [ simfang.ttf ] } + %\setCJKfamilyfont { zhli } { LiSu } + %\setCJKfamilyfont { zhyou } { YouYuan } + } + +\NewDocumentCommand \songti { } { \CJKfamily { zhsong } } +\NewDocumentCommand \heiti { } { \CJKfamily { zhhei } } +\NewDocumentCommand \fangsong { } { \CJKfamily { zhfs } } +\NewDocumentCommand \kaishu { } { \CJKfamily { zhkai } } +%\NewDocumentCommand \lishu { } { \CJKfamily { zhli } } +%\NewDocumentCommand \youyuan { } { \CJKfamily { zhyou } } + +\endinput +% vim:ft=tex:ts=2:sw=2:et diff --git a/macros/latex/contrib/pkuthss/doc/example/ctexopts.cfg b/macros/latex/contrib/pkuthss/doc/example/ctexopts.cfg new file mode 100644 index 0000000000..0dc8094ed5 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/example/ctexopts.cfg @@ -0,0 +1,4 @@ +\ProvidesExplFile{\ExplFileName}{}{}{} +\keys_set:nn { ctex / option } { fontset = pkuthss } +\endinput +% vim:ft=tex diff --git a/macros/latex/contrib/pkuthss/doc/example/spine.tex b/macros/latex/contrib/pkuthss/doc/example/spine.tex new file mode 100644 index 0000000000..27b28feac3 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/example/spine.tex @@ -0,0 +1,45 @@ +% Copyright (c) 2018 Casper Ti. Vector +% Public domain. + +\documentclass[zihao = -4]{ctexart} +\usepackage{calc, geometry, graphicx} +\usepackage[defaultsups]{newtxtext} +\usepackage[cmintegrals, varg]{newtxmath} +\pagestyle{empty} +\newlength{\colpad} +\newcommand{\colwidth}{\ccwd} + +% 璁惧畾璁烘枃绾稿昂瀵搞 +\geometry{paperwidth = 460mm, paperheight = 297mm, margin = 0cm} +% 璁惧畾椤甸潰瀹藉害銆佽儗闈 logo 鐩村緞鍜屼功鑴婁笂涓嬭竟鐣屽搴︺ +\newcommand{\miniwidth}{210mm} +\newcommand{\logowidth}{64mm} +\newcommand{\vertmargin}{\fill} +% 鍑忓彿鍓嶇殑鍊间负璁烘枃鍘氬害銆 +\setlength{\colpad}{(10mm - \colwidth) / 2} + +\begin{document} +\centering +\begin{minipage}[b][\textheight][b]{\miniwidth} + \vspace*{\fill}\par + \centerline{\includegraphics[width = \logowidth]{pkulogo}}\par + \vspace*{\fill}\par +\end{minipage} +\hspace{\colpad} +\begin{minipage}[b][\textheight][b]{\colwidth} + \bfseries\linespread{1}\selectfont + \vspace*{\vertmargin}\par + % 鏍囬銆佸勾浠藉拰瀛﹀彿銆 + 娴嬭瘯鏂囨。\par\vfill + \rotatebox{-90}{2018}\par\vfill\rotatebox{-90}{0123456789}\par + \vspace*{\vertmargin}\par +\end{minipage} +\hspace{\colpad} +\begin{minipage}[b][\textheight][b]{\miniwidth} + % thesis.pdf 搴斾簨鍏堢紪璇戝ソ锛屾澶勪細鑷姩鎻愬彇鍏堕椤点 + % 鍥犱负瑕佹彃鍏 pdf 鍥剧墖锛屾湰鏂囨。搴旂敤 pdflatex 鎴 xelatex 缂栬瘧銆 + \includegraphics[height = \textheight, page = 1]{thesis} +\end{minipage} +\end{document} + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/example/thesis.bib b/macros/latex/contrib/pkuthss/doc/example/thesis.bib new file mode 100644 index 0000000000..ac5b0c9978 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/example/thesis.bib @@ -0,0 +1,19 @@ +@article{test-en, + author = {Author}, + title = {Title}, + type = {J}, + journal = {Journal}, + date = {2014-04-01}, + language = {english}, +} + +@article{test-zh, + author = {浣滆厎, + title = {鏍囬}, + type = {J}, + journal = {鏈熷垔}, + date = {2014-04-01}, + language = {chinese}, +} + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/example/thesis.tex b/macros/latex/contrib/pkuthss/doc/example/thesis.tex new file mode 100644 index 0000000000..30e05dec55 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/example/thesis.tex @@ -0,0 +1,112 @@ +% Copyright (c) 2008-2009 solvethis +% Copyright (c) 2010-2016,2018 Casper Ti. Vector +% Public domain. +% +% 浣跨敤鍓嶈鍏堜粩缁嗛槄璇 pkuthss 鍜 biblatex-caspervector 鐨勬枃妗o紝 +% 鐗瑰埆鏄叾涓殑 FAQ 閮ㄥ垎鍜岀敤绾㈣壊寮鸿皟鐨勯儴鍒嗐 +% 涓よ呭彲鍦ㄧ粓绔/鍛戒护鎻愮ず绗︿腑鐢 +% texdoc pkuthss +% texdoc biblatex-caspervector +% 璋冨嚭銆 + +% 閲囩敤浜嗚嚜瀹氫箟鐨勶紙鍖呮嫭澶у皬鍐欎笉鍚屼簬鍘熸枃浠剁殑锛夊瓧浣撴枃浠跺悕锛 +% 骞舵敼鍔 ctex.cfg 绛夐厤缃枃浠剁殑鐢ㄦ埛璇疯嚜琛屽姞鍏 nofonts 閫夐」锛 +% 鍏跺畠鐢ㄦ埛涓嶇敤鍔犲叆 nofonts 閫夐」锛屽姞鍏ヤ箣鍚庡弽鑰屼細浜х敓閿欒銆 +\documentclass[UTF8]{pkuthss} +% 濡傛灉鐨勭‘椤昏浣胯剼娉ㄦ寜椤电紪鍙风殑璇濓紝鍙互鍘绘帀鍚庨潰 footmisc 鍖呯殑娉ㄩ噴銆 +% 娉ㄦ剰锛氬湪鍚敤姝よ瀹氱殑鎯呭喌涓嬶紝鍙兘瑕佸缂栬瘧涓娆′互浜х敓姝g‘鐨勮剼娉ㄧ紪鍙枫 +%\usepackage[perpage]{footmisc} + +% 浣跨敤 biblatex 鎺掔増鍙傝冩枃鐚紝骞惰瀹氬叾鏍煎紡锛堣瑙 biblatex-caspervector 鐨勬枃妗o級銆 +% 杩欓噷鎸夌収瑗挎枃鏂囩尞鍦ㄥ墠锛屼腑鏂囨枃鐚湪鍚庢帓搴忥紙鈥渟orting = ecnyt鈥濓級锛 +% 鑻ラ』鎸夌収涓枃鏂囩尞鍦ㄥ墠锛岃タ鏂囨枃鐚湪鍚庢帓搴忥紝璇疯缃渟orting = cenyt鈥濓紱 +% 鑻ラ』鎸夌収寮曠敤椤哄簭鎺掑簭锛岃璁剧疆鈥渟orting = none鈥濄 +% 鑻ラ』鍦ㄦ帓搴忎腑瀹炵幇鏇村鏉傜殑闇姹傦紝璇峰弬鑰 biblatex-caspervector 鐨勬枃妗c +\usepackage[backend = biber, style = caspervector, utf8, sorting = ecnyt]{biblatex} + +% 瀵逛簬 linespread 鍊肩殑璁$畻杩囩▼鏈夊叴瓒g殑鍚屽鍙互鍙傝 pkuthss.cls銆 +\renewcommand*{\bibfont}{\zihao{5}\linespread{1.27}\selectfont} +% 鎸夊鏍¤姹傝瀹氬弬鑰冩枃鐚垪琛ㄧ殑娈甸棿璺濄 +\setlength{\bibitemsep}{3bp} + +% 璁惧畾鏂囨。鐨勫熀鏈俊鎭 +\pkuthssinfo{ + cthesisname = {鍗氬+鐮旂┒鐢熷浣嶈鏂噠, ethesisname = {Doctor Thesis}, + ctitle = {娴嬭瘯鏂囨。}, etitle = {Test Document}, + cauthor = {鏌愭煇}, + eauthor = {Test}, + studentid = {0123456789}, + date = {鏌愬勾鏌愭湀}, + school = {鏌愭煇瀛﹂櫌}, + cmajor = {鏌愭煇涓撲笟}, emajor = {Some Major}, + direction = {鏌愭煇鏂瑰悜}, + cmentor = {鏌愭煇鏁欐巿}, ementor = {Prof.\ Somebody}, + ckeywords = {鍏朵竴锛屽叾浜寎, ekeywords = {First, Second} +} +% 杞藉叆鍙傝冩枃鐚暟鎹簱锛堟敞鎰忎笉瑕佺渷鐣モ.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{openany} 閫夐」銆 + + 濡傛灉缂栬瘧鏃朵笉鍑哄弬鑰冩枃鐚紝 + 璇峰弬鑰 \texttt{texdoc pkuthss}鈥滈棶棰樺強鍏惰В鍐斥濅竴绔 + 鈥滀笂娓稿畯鍖呭彲鑳藉紩璧风殑闂鈥濅竴鑺備腑鍏充簬 biber 鐨勮鏄庛% +} + +\begin{document} + % 浠ヤ笅涓烘鏂囦箣鍓嶇殑閮ㄥ垎锛岄粯璁や笉杩涜绔犺妭缂栧彿銆 + \frontmatter + % 姝ゅ悗鍒颁笅涓 \pagestyle 鍛戒护涔嬪墠涓嶆帓鐗堥〉鐪夋垨椤佃剼銆 + \pagestyle{empty} + % 鑷姩鐢熸垚灏侀潰銆 + \maketitle + % 鐗堟潈澹版槑銆傚皝闈㈣姹傚崟闈㈡墦鍗帮紝鏁呴』鏂板紑鍙抽〉銆 + \cleardoublepage + \include{chap/copy} + + % 姝ゅ悗鍒颁笅涓 \pagestyle 鍛戒护涔嬪墠姝e父鎺掔増椤电湁鍜岄〉鑴氥 + \cleardoublepage + \pagestyle{plain} + % 閲嶇疆椤电爜璁℃暟鍣紝鐢ㄥぇ鍐欑綏椹暟瀛楁帓鐗堟閮ㄥ垎椤电爜銆 + \setcounter{page}{0} + \pagenumbering{Roman} + % 涓タ鏂囨憳瑕併 + \include{chap/abs} + % 鑷姩鐢熸垚鐩綍銆 + \tableofcontents + + % 浠ヤ笅涓烘鏂囬儴鍒嗭紝榛樿瑕佽繘琛岀珷鑺傜紪鍙枫 + \mainmatter + % 鍚勭珷鑺傘 + \include{chap/chap1} + \include{chap/chap2} + \include{chap/chap3} + + % 姝f枃涓殑闄勫綍閮ㄥ垎銆 + \appendix + % 鎺掔増鍙傝冩枃鐚垪琛ㄣ俠ibintoc 閫夐」浣库滃弬鑰冩枃鐚濆嚭鐜板湪鐩綍涓紱 + % 濡傛灉鍚屾椂瑕佷娇鍙傝冩枃鐚垪琛ㄥ弬涓庣珷鑺傜紪鍙凤紝鍙皢鈥渂ibintoc鈥濇敼涓衡渂ibnumbered鈥濄 + \printbibliography[heading = bibintoc] + % 鍚勯檮褰曘 + \include{chap/encl1} + + % 浠ヤ笅涓烘鏂囦箣鍚庣殑閮ㄥ垎锛岄粯璁や笉杩涜绔犺妭缂栧彿銆 + \backmatter + % 鑷磋阿銆 + \include{chap/ack} + % 鍘熷垱鎬у0鏄庡拰浣跨敤鎺堟潈璇存槑銆 + \include{chap/origin} +\end{document} + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/readme.pdf b/macros/latex/contrib/pkuthss/doc/readme.pdf Binary files differnew file mode 100644 index 0000000000..54815bdc7e --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/readme.pdf diff --git a/macros/latex/contrib/pkuthss/doc/readme/ChangeLog-upto-1.3.txt b/macros/latex/contrib/pkuthss/doc/readme/ChangeLog-upto-1.3.txt new file mode 100644 index 0000000000..7f3d30b4d5 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/readme/ChangeLog-upto-1.3.txt @@ -0,0 +1,63 @@ +2011/12/21锛寁er 1.3锛堝寘鎷墠闈㈡墍鏈 alpha銆乥eta 鍜 rc 鐗堟湰锛夛細 +--- 杩涗竴姝ラ噸鏋勶紝 + 灏嗘牳蹇冭缃泦涓簬 pkuthss 鏂囨。绫讳腑锛 + 甯歌鐨勯澶栬缃泦涓簬 pkuthss-extra 瀹忓寘涓 +--- 缁熶竴瀹忕殑鍛藉悕瑙勫垯銆 +--- 鏀寔浣跨敤 key=val 璇硶杩涜鏂囨。淇℃伅鐨勮缃紝浣挎枃妗g粨鏋勬洿鍔犳竻鏅般 +--- 璁惧畾 pdf 鍏冩暟鎹椂浣跨敤鑻辨枃鐨勬枃妗d俊鎭紝缁曡繃瀛楃缂栫爜鐨勯棶棰樸 +--- 鍦ㄦ枃妗d腑鍔犲叆涓浠戒唬鐮佺殑 listing锛 + 浠ュ敖閲忛伩鍏嶄笉鏂湁浜烘姳鎬ㄧ殑鏂囨。绫讳唬鐮佲滀贡鐮佲濈殑闂銆 +--- 鍘绘帀浜 FAQ 閮ㄥ垎锛 + 鍥犱负鍏朵腑鍐呭鎴栨槸姣旇緝闄堟棫锛屾垨鏄凡缁忓湪鍓嶉潰鎻愬埌銆 +--- 閲嶆柊閫夋嫨 license锛屽敖閲忓噺灏戝鐢ㄦ埛涓嶅繀瑕佺殑绾︽潫銆 + +2010/11/30锛寁er 1.2锛堝寘鎷墠闈㈡墍鏈 beta 鐗堟湰锛夛細 +--- 鏀寔 UTF-8 鍜 GBK 缂栫爜銆 + 鏀寔 XeLaTeX锛堜絾涓嶅彲鍜 GBK 鍚岀敤锛夈 +--- 杈冨ぇ瑙勬ā閲嶆瀯锛 + 瀹氫箟浜嗕竴浜涙柊鍛戒护浠ュ疄鐜颁竴浜涢噸澶嶇殑浠g爜鐨勫姛鑳斤紝 + 鍒犻櫎浜嗗啑浣欎唬鐮佸拰涓浜涚敤澶勪笉澶х殑鏃у懡浠わ紝璋冩暣浜嗙洰褰曠粨鏋勩 +--- 灏嗛儴鍒嗛噸澶嶄唬鐮佺粺涓锛 + 骞舵妸涓浜涘皢鏉ュ彲鑳藉紩璧蜂笉鍏煎鐨勫懡浠や互鏍囧噯 LaTeX 鍛戒护浠f浛銆 +--- 鑰冭檻鍒扮幇鍦ㄧ殑 ctex 瀹忓寘宸茬粡瀵逛腑鏂囨帓鐗堢殑鏍煎紡鍋氬嚭浜嗚緝濂界殑璁惧畾锛 + 骞朵笖宸茬粡杈冨ソ鍦版敮鎸佷簡 hyperref锛 + 鍒犻櫎浜嗙被鏂囦欢涓瀹氭帓鐗堟牸寮忕殑閮ㄥ垎浠g爜锛 + 涓斿幓闄や簡瀵 ifpdf 瀹忓寘鐨勭洿鎺ヤ緷璧栥 +--- 缁熶竴鍚勫鐨勯暱搴﹀崟浣嶏紝鍧囦娇鐢 pt 鎴 em锛屼互鍏嶅紩璧峰洶鎯戙 +--- 浠庣編鐨勮搴﹁皟鏁翠簡閮ㄥ垎鎺掔増鏍煎紡锛 + 鐗瑰埆鏄幓鎺変簡鎵鏈夌敤 poor man's bold 瀹炵幇鐨勨滅矖瀹嬩綋鈥濄 + +2008/03/13锛寁er 1.1锛 +--- 鏇存浜嗏済eometry鈥濓紝灏嗙焊寮犲ぇ灏忚涓衡渁4paper鈥濄 +--- 鏇存柊浜 chaps/mydefs.tex锛屽皢鈥渃olorlinks鈥濊涓衡渇alse鈥濓紝 + 鍥犱负甯﹂鑹茬殑閾炬帴鍦ㄩ粦鐧芥墦鍗版満涓婃墦鍑烘潵寰寰棰滆壊寰堟祬銆 +--- 鏇存浜 chaps/sample.bib锛屽皢鈥淪OURCE鈥濇敼涓衡淯RL鈥濄 + 杩欐牱 BibTeX 铏界劧鍙堜細 Warning锛屼笉杩囪繖鏍锋蹇典笂鏇存纭紝 + 鑰屼笖缁撴灉杩樹笉閿欍 +--- 鍒犻櫎浜 pkuthss.cls 鍜 pkuthss.def 鐨勯儴鍒嗗唴瀹癸紝 + 鍥犱负鏈鍚庣殑涓や釜澹版槑閮戒笉蹇呰璁㈠埌璁烘枃涓 + +2007/12/12锛寁er 1.0 rc4锛 +--- 灏嗏淺bibstyle鈥濊涓衡渃hinesebst鈥濄 + +2007/09/05锛寁er 1.0 rc3锛 +--- 灏侀潰椤典綔浜嗗皬鐨勮皟鏁达紝褰撴爣棰樺彧鏈変竴琛屾椂涔熶笉浼氫骇鐢 Warning銆 + 鐜板湪鐨勫疄鐜版柟娉曚娇鐢ㄧ殑鏄爣鍑嗙殑 LaTeX box銆 +--- 鍔犲叆浜嗏済raphicx鈥濈殑鐗堟湰瑕佹眰銆 + +2007/09/04锛寁er 1.0 rc2锛 +--- 鍦 preamble 閮ㄥ垎鐜板湪鍙娇鐢ㄤ腑鏂囥 +--- 鏇存浜嗙増蹇冨昂瀵革紝鍗冲湪鈥済eometry鈥濈殑閫夐」涓姞鍏モ渋ncludeheadfoot鈥濄 +--- 鏀硅繘浜 pkulogo.ps 锛屽苟鎻愪緵浜 img/Makefile銆 + +2007/09/02锛寁er 1.0 rc1锛 +--- 鐢变簬鈥淺ifx\pdfoutput\undefined鈥濆湪 teTeX-3.0 涓笉璧蜂綔鐢紝 + 鏀逛负浣跨敤鈥渋fpdf鈥濆畯鍖呫 +--- sample.tex and chaps/1.tex changed accordingly銆 +--- Linux/Unix 鐨勯粯璁ょ紪璇戞柟寮忔敼涓轰娇鐢 pdflatex锛岃 Makefile銆 +--- 娑堥櫎浜嗚繍琛 BibTeX 鏃跺嚭鐜扮殑涓涓 Warning銆 + +2007/09/01锛寁er 1.0 beta锛 +--- 鏈鍒濈殑灏濊瘯銆 + +# vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/readme/ChangeLog.txt b/macros/latex/contrib/pkuthss/doc/readme/ChangeLog.txt new file mode 100644 index 0000000000..f1f002704c --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/readme/ChangeLog.txt @@ -0,0 +1,463 @@ +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 diff --git a/macros/latex/contrib/pkuthss/doc/readme/Makefile b/macros/latex/contrib/pkuthss/doc/readme/Makefile new file mode 100644 index 0000000000..8835cd28e6 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/readme/Makefile @@ -0,0 +1,38 @@ +# Copyright (c) 2008-2009 solvethis +# Copyright (c) 2010-2012,2014-2015,2018 Casper Ti. Vector +# Public domain. + +JOB = pkuthss +BIBTEX = biber -l zh__pinyin --output-safechars +DVIPDF = dvipdfmx +MAKE = make +RM = rm -f + +ifndef LATEX + LATEX1 = latex + LATEX2 = xelatex +else + LATEX1 = $(LATEX) + LATEX2 = $(LATEX) +endif + +ifeq ($(LATEX), latex) + DODVIPDF = $(DVIPDF) $(JOB) +endif + +doc: + $(LATEX1) $(JOB) + $(BIBTEX) $(JOB) + $(LATEX2) $(JOB) + $(LATEX2) $(JOB) + $(DODVIPDF) + +clean: + $(RM) $(JOB).aux $(JOB).bbl $(JOB).bcf $(JOB).blg $(JOB).dvi \ + $(JOB).lof $(JOB).log $(JOB).lot $(JOB).run.xml $(JOB).toc \ + $(JOB).out $(JOB).out.bak missfont.log texput.log chap/*.aux + +distclean: clean + $(RM) $(JOB).pdf + +# vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/readme/chap/origin.tex b/macros/latex/contrib/pkuthss/doc/readme/chap/origin.tex new file mode 120000 index 0000000000..f91c8dc415 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/readme/chap/origin.tex @@ -0,0 +1 @@ +../../example/chap/origin.tex
\ No newline at end of file diff --git a/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-abs.tex b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-abs.tex new file mode 100644 index 0000000000..5dc80d5285 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-abs.tex @@ -0,0 +1,38 @@ +% Documentation for pkuthss. +% +% Copyright (c) 2008-2009 solvethis +% Copyright (c) 2010-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 +% 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} + +\begin{eabstract} + This document describes the the functions provided by + the pkuthss document template. +\end{eabstract} + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-ack.tex b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-ack.tex new file mode 100644 index 0000000000..0fd606b7b0 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-ack.tex @@ -0,0 +1,51 @@ +% Documentation for pkuthss. +% +% Copyright (c) 2008-2009 solvethis +% Copyright (c) 2010-2012,2015 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 +% 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 缃戝弸 :) + +姝ゅ杩樿鎰熻阿 \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 diff --git a/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-chap1.tex b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-chap1.tex new file mode 100644 index 0000000000..3eaa29114b --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-chap1.tex @@ -0,0 +1,190 @@ +% Documentation for pkuthss. +% +% Copyright (c) 2008-2009 solvethis +% Copyright (c) 2010-2018 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 +% 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} + +姝g‘缂栬瘧闇瑕佷互涓嬪嚑閮ㄥ垎锛 +\begin{itemize} + \item 涓涓熀鏈殑 \hologo{TeX} 鍙戣鐗堛 + \item CJK 鎴 XeCJK锛堜緵 \hologo{XeLaTeX} 浣跨敤锛夊畯鍖呫 + \item ctex\supercite{ctex} 瀹忓寘锛堟彁渚涗簡 ctexbook 鏂囨。绫伙級銆 + \item 涓枃瀛椾綋銆 + \item 濡傛灉瑕佷娇鐢 biblatex 杩涜鏂囩尞鍒楄〃鍜屽紩鐢ㄧ殑鎺掔増鐨勮瘽锛 + 杩橀渶瑕 biblatex\supercite{biblatex} 瀹忓寘锛 + \item 濡傛灉瑕佸涓枃鏂囩尞杩涜鎸夋眽璇嫾闊崇殑鎺掑簭鐨勮瘽锛 + 杩橀渶瑕 biber\supercite{biber} 绋嬪簭銆 + \item 濡傛灉浣跨敤榛樿鐨勬枃鐚垪琛ㄥ拰寮曠敤鏍峰紡鐨勮瘽锛岃繕闇瑕佷綔鑰呯紪鍐欑殑 biblatex 鏍峰紡 + 锛坆iblatex-caspervector\supercite{biblatex-caspervector}锛夛紝 + 姝ゆ牱寮忚姹備娇鐢 biber 绋嬪簭銆 + \item 濡傛灉椤昏浣跨敤 Makefile 鏉ュ疄鐜拌嚜鍔ㄧ紪璇戯紝杩橀渶瑕 Make 宸ュ叿锛 + 浣嗗鏋滀娇鐢ㄧ敱鎵瑰鐞嗗疄鐜扮殑浼淢akefile鈥濆氨涓嶇敤浜嗐 +\end{itemize} + +\myemph{鏈鏂皚鐨刓myemph{瀹屽叏鐗坿 \hologo{TeX} Live 绯荤粺锛圽myemph{% + 娉細鏌愪簺 Linux 鍙戣鐗堣蒋浠朵粨搴撲腑鐨 \hologo{TeX} Live 鏈夐棶棰橈紝 + 寤鸿浣跨敤鐙珛瀹夎鐗堢殑 \hologo{TeX} Live% + \unemph{\footnote{\url{https://www.tug.org/texlive/}.}}銆% +}锛夐兘宸茬粡鍖呭惈闄や腑鏂囧瓧浣撳拰 Make 涔嬪鎵鏈夎姹傜殑椤圭洰銆% +\myemph{% + 涓轰簡鑾峰緱鏈濂界殑鏀寔锛 + 鎴戜滑寤鸿鐢ㄦ埛浣跨敤鏈鏂般佸畬鍏ㄧ増鐨 \hologo{TeX} 绯荤粺鍜屽悇瀹忓寘銆% +} + +涓枃瀛椾綋椤昏鐢ㄦ埛鑷鑾峰緱銆俓myemph{% + 娉細涓浜涗腑鏂囧瓧浣撶殑瀛楀簱涓嶅叏锛屽彧鏈 GB2312 瀛楃闆嗗唴瀛楃鐨勫瓧浣撲俊鎭 + 杩欑鎯呭喌閫氬父浼氶犳垚缂栬瘧鐢熸垚鐨 pdf 鏂囦欢涓己灏戦儴鍒嗗瓧绗︼紝 + 鍏朵腑涓绉嶅吀鍨嬬棁鐘舵槸鈥溿団濆瓧鏄剧ず涓嶅嚭鏉ャ + 濡傛灉瑕佷娇鐢ㄤ腑鏄撳叕鍙哥殑瀛椾綋锛 + 鍒欏缓璁娇鐢 Windows Vista 鍙婂叾浠ュ悗鐗堟湰鎻愪緵鐨勫畫浣撱侀粦浣撱佹シ浣撳拰浠垮畫浣擄紝 + 浠ュ強 Microsoft Office 2003 鍙婂叾浠ュ悗鐗堟湰鎻愪緵鐨勯毝涔﹀拰骞煎渾浣擄紝 + 杩欎簺瀛椾綋鏄 GB18030 瀛楃闆嗙殑锛屼笉瀛樺湪涓婅堪闂銆% +} + +Linux 鐢ㄦ埛鍙互浠庤蒋浠舵簮鑾峰緱 GNU 鐨 make锛 +鍏跺畠绫 UNIX 绯荤粺搴旇涔熶細鎻愪緵 make 宸ュ叿锛岃鍙傞槄鐩稿簲鐨勬枃妗d互鑾峰緱甯姪銆% +Windows 鐢ㄦ埛鍙互浠庝互涓嬪湴鍧涓嬭浇 Windows 涓嬬殑 GNU make 宸ュ叿锛歕\ +\hspace*{\parindent}% +\url{http://gnuwin32.sourceforge.net/packages/make.htm} + +\section{妯$増鏂囦欢}\label{sec:doc-dir} + +鍦ㄦ纭畨瑁 pkuthss 鏂囨。妯$増涔嬪悗锛屽湪缁堢/鍛戒护鎻愮ず绗︿腑鎵ц +\begin{Verbatim}[frame = single] +texdoc pkuthss +\end{Verbatim} +鎵鎵撳紑鐨 pdf 鏂囦欢鎵鍦ㄧ殑鍚屼竴鐩綍涓寘鍚袱涓瓙鐩綍鍜岀浉搴旂殑涓や釜 pdf 鏂囦欢锛 +鍏朵腑 \verb|readme/| 涓鸿鏄庢枃妗o紙鍗虫湰鏂囨。锛夌殑婧愪唬鐮侊紝% +\verb|example/| 涓烘枃妗fā鐗堢殑婧愪唬鐮侊紝% +\verb|readme.pdf| 鍜 \verb|example.pdf| +鍒嗗埆涓鸿鏄庢枃妗e拰鏂囨。妯$増鐨 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|Makefile|锛 + 琚 Make 宸ュ叿璋冪敤鐨 Makefile锛岀敤浜庝娇缂栬瘧宸ヤ綔鑷姩鍖栥 + \item \verb|Make.bat|锛% + Windows 涓嬬殑浼淢akefile鈥濓紝鐢 Windows 鎵瑰鐞嗗疄鐜般 + + \item \verb|chap/|锛氱洰褰曪紝鍖呭惈鍚勭珷鑺傚唴瀹癸細 + \begin{itemize} + \item \verb|copyright.tex|锛氱増鏉冨0鏄庨儴鍒嗐 + \item \verb|originauth.tex|锛 + 鍘熷垱鎬у0鏄庡拰浣跨敤鎺堟潈璇存槑閮ㄥ垎\supercite{pku-originauth}銆 + \end{itemize} + \myemph{% + 娉細pkuthss 鏂囨。妯$増鏀寔鎺掔増瀛︽牎瑕佹眰鐨勪簩缁寸爜锛 + 璇峰弬鑰 \texttt{copyright.tex} 鍜 + \texttt{originauth.tex} 涓殑鐩稿叧娉ㄩ噴銆% + } + + \item \verb|misc/|锛 + 鐩綍锛岀洰鍓嶅寘鍚瘮杈冨父鐢ㄧ殑瀛椾綋閰嶇疆锛 + \begin{itemize} + \item \verb|ctexopts.cfg|銆乗verb|ctex-fontset-pkuthss.def|锛 + 閫傜敤浜 2.0 鍙婁互鍚庣増鏈殑 ctex\supercite{ctex} 瀹忓寘銆 + \item \verb|ctex-xecjk-windows.def|锛 + 閫傜敤浜 2.0 浠ュ墠鐗堟湰鐨 ctex 瀹忓寘銆 + \end{itemize} + 浣跨敤鏃讹紝 + 璇峰皢鍜岀敤鎴风郴缁熶腑 ctex 瀹忓寘鐗堟湰鐩稿尮閰嶇殑\myemph{鎵鏈墋閰嶇疆鏂囦欢 + 澶嶅埗鍒版ā鐗堢殑涓荤洰褰曚腑銆 +\end{itemize} + +\section{缂栬瘧鏂瑰紡}\label{sec:compile} + +棣栨缂栬瘧鍓嶏紝璇峰皢 \verb|misc/| 鐩綍涓拰鐢ㄦ埛绯荤粺涓 +ctex 瀹忓寘鐗堟湰鐩稿尮閰嶇殑閰嶇疆鏂囦欢澶嶅埗鍒版ā鐗堢殑涓荤洰褰曚腑锛 +璇﹁绗 \ref{sec:doc-dir} 鑺傘 + +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{% + 娉ㄦ剰锛歕hologo{XeLaTeX} 瀵归潪 UTF-8 缂栫爜鐨勬敮鎸佷笉濂斤紝 + 鍥犳 \hologo{XeLaTeX} 鏂瑰紡鐨勭紪璇戜笉鏀寔 GBK 缂栫爜銆% +} + +pkuthss 鏂囨。妯$増闄勫甫鐨 Makefile 涓凡缁忓杩欎笁绉嶇紪璇戞柟寮忚繘琛屼簡瀹屾暣鐨勯厤缃 +鐢ㄦ埛鍙』瑕佸湪 Makefile 涓氳繃璁惧畾鍙橀噺 \verb|JOB| 鐨勫兼寚瀹氳缂栬瘧鐨勪富鏂囦欢鍚嶏紝 +骞堕氳繃璁惧畾鍙橀噺 \verb|LATEX| 鐨勫兼寚瀹氶噰鐢ㄥ摢绉嶇紪璇戞柟寮忥紝 +鍗冲彲閫氳繃鍦ㄤ富鏂囦欢鎵鍦ㄧ洰褰曡皟鐢 Make 宸ュ叿鏉ュ疄鐜拌嚜鍔ㄧ紪璇戯細 +濡傛灉鏄湪绫 UNIX 鐜涓嬶紝鍒欑敤鎴峰簲璇ヨ皟鐢ㄧ殑鍛戒护鍚嶄负 \verb|make|锛 +\begin{Verbatim}[frame = single] +cd /path/to/directory/with/thesis.tex +make +\end{Verbatim} +鑰屽鏋滄槸鍦 Windows 鐜涓嬶紝鍒欑敤鎴峰簲璇ヨ皟鐢ㄧ殑鍛戒护鍚嶅彲鑳戒负 \verb|mingw32-make|锛 +\begin{Verbatim}[frame = single] +cd \path\to\directory\with\thesis.tex +mingw32-make +\end{Verbatim} + +鐢ㄦ埛濡傛灉涓嶆兂閰嶇疆 Windows 涓嬬殑 GNU Make锛 +鍒欎篃鍙互浣跨敤鐢 Windows 鎵瑰鐞嗗疄鐜扮殑浼淢akefile鈥濓紝 +閫氳繃鍦ㄤ富鏂囦欢鎵鍦ㄧ洰褰曡皟鐢 \verb|make|\footnote{% + Windows 灏嗘壒澶勭悊鏂囦欢浣滀负鍙墽琛屾枃浠讹紝璋冪敤鏃跺彲浠ヤ笉鏄惧紡鍦版寚鍑烘墿灞曞悕銆% +}锛 +\begin{Verbatim}[frame = single] +cd \path\to\directory\with\thesis.tex +make +\end{Verbatim} +\myemph{% + 娉ㄦ剰锛% + Windows 鎵瑰鐞嗗浜 LF锛圽texttt{\string\n}锛夋崲琛岀殑鎵瑰鐞嗘枃浠舵敮鎸佹湁闂銆 + 鍦ㄥ懡浠ゆ彁绀虹锛坈md锛変笅鎵ц杩欎簺鎵瑰鐞嗘枃浠舵椂娌℃湁闂锛 + 浣嗗弻鍑绘枃浠跺浘鏍囨墽琛屾椂鍙兘灏变細鍑洪敊銆 + \hologo{TeX} Live 涓畨瑁呯殑 \texttt{Make.bat} 鍜 + CTAN 涓婃彁渚涚殑鍘嬬缉鍖呴噷鐨 \texttt{Make.bat} + 鏈夊彲鑳芥槸 LF锛圽texttt{\string\n}锛夋崲琛岀殑銆% +} + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-chap2.tex b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-chap2.tex new file mode 100644 index 0000000000..1ab1b3e9cd --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-chap2.tex @@ -0,0 +1,357 @@ +% Documentation for pkuthss. +% +% Copyright (c) 2008-2009 solvethis +% Copyright (c) 2010-2018 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 +% 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}}锛 + 鏄惁鏍规嵁瀛︽牎瀵硅鏂囨牸寮忕殑瑕佹眰\mbox{\supercite{pku-thesisstyle}}% + 灏嗚タ鏂囧瓧浣撴敼涓虹被浼间簬 Times New Roman / Arial 鐨勫瓧浣撱 + + \item \textbf{\texttt{[no]pkufoot}}\footnote{% + 姝ら夐」绛変环浜 1.6.4 鍙婁互鍓嶇増鏈 pkuthss-extra 瀹忓寘鐨 + \texttt{[no]footfmt} 閫夐」锛 + 鏇存敼鍚嶇О鏄负浜嗕娇鏂囨。绫婚夐」鍚嶆洿鍔犺鍒欍% + }锛 + 鏄惁鏍规嵁瀛︽牎瀵硅鏂囨牸寮忕殑瑕佹眰\mbox{\supercite{pku-thesisstyle}}% + 淇敼鍜岃剼娉ㄧ浉鍏崇殑涓浜涙牸寮忋 + 鍏蜂綋鍦拌锛屽惎鐢 \verb|pkufoot| 閫夐」鍚庝細杩涜浠ヤ笅鍑犻」璁剧疆锛 + \begin{itemize} + \item 鑴氭敞鍙傜敤甯﹀湀鐨勭紪鍙枫 + \item 椤佃剼涓剼娉ㄧ紪鍙蜂娇鐢ㄦ鏂囷紙鑰岄潪涓婃爣锛夊瓧浣撱 + \item 椤佃剼涓剼娉ㄧ紪鍙峰拰鑴氭敞鏂囨湰涔嬮棿榛樿闂撮殧涓涓┖鏍笺 + \end{itemize} + + \item \textbf{\texttt{[no]pkuspace}}锛 + 鏄惁鏍规嵁瀛︽牎瀵硅鏂囨牸寮忕殑瑕佹眰\mbox{\supercite{pku-thesisstyle}}% + 淇敼鎺掔増涓殑涓浜涢棿璺濆強鐩稿叧璁剧疆銆 + 鍏蜂綋鍦拌锛屽惎鐢 \verb|pkuspace| 閫夐」鍚庝細鎸 + \parencite{pku-thesisstyle} 涓殑瑕佹眰淇敼浠ヤ笅鍑犻」璁剧疆锛 + \begin{itemize} + \item 姝f枃鐨勮璺濄 + \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{% + 鍥犱负浠g爜閲嶆瀯鐨勭紭鏁咃紝 + 姝ら夐」鍚屾椂鎻愪緵 1.5.5 鍙婁互鍓嶇増鏈 pkuthss-extra 瀹忓寘 + 涓 \texttt{[no]tightlist} 閫夐」鎵鎻愪緵鐨勫姛鑳姐% + }锛 + 鏄惁閲囩敤涓浜涘父鐢ㄧ殑璋冩暣闂磋窛鐨勯澶栫増寮忚瀹氥 + 鍏蜂綋鍦拌锛屽惎鐢 \verb|spacing| 閫夐」鍚庝細杩涜浠ヤ笅鍑犻」璁剧疆锛 + \begin{itemize} + \item 鑷姩蹇界暐 CJK 鏂囧瓧涔嬮棿鐨勭┖鐧借 + 淇濈暀锛圕JK 鏂囧瓧涓庤タ鏂囦箣闂寸瓑鐨勶級鍏跺畠绌虹櫧銆 + \item 璋冪敤 setspace 瀹忓寘浠ヤ娇鏌愪簺缁嗚妭澶勭殑绌洪棿瀹夋帓鏇寸編瑙傘 + \item 閲囩敤姣 \hologo{LaTeX} 榛樿璁惧畾鏇村姞绱у瘑鐨勬灇涓剧幆澧% + \footnote{% + 鍦ㄦ灇涓剧幆澧冿紙itemize銆乪numerate 鍜 description锛変腑锛 + 姣忎釜鏉$洰鐨勫唴瀹硅緝灏戞椂锛屾潯鐩線寰鏄惧緱绋鐤忥紱 + 鍦ㄥ弬鑰冩枃鐚垪琛ㄤ腑涔熸湁绫讳技鐨勭幇璞° + 鍚敤 \texttt{spacing} 閫夐」鍚庯紝 + 灏嗗幓鎺夎繖浜涚幆澧冧腑棰濆澧炲姞鐨勶紙鍨傜洿锛夐棿闅斻% + }銆 + \end{itemize} + + \item \textbf{\texttt{[no]spechap}}\footnote{% + 鈥渟pechap鈥濇槸鈥淺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}}锛 + 鏄惁鑷姩鏍规嵁璁惧畾鐨勮鏂囨枃妗d俊鎭紙濡備綔鑰呫佹爣棰樼瓑锛 + 璁剧疆鐢熸垚鐨 pdf 鏂囨。鐨勭浉搴斿睘鎬с俓myemph{% + 娉ㄦ剰锛氳閫夐」瀹為檯涓婃槸鍦 \texttt{\string\maketitle} 鏃剁敓鏁堢殑锛 + 杩欐槸鍥犱负鑰冭檻鍒 + 閫氬父鐢ㄦ埛鍦ㄨ皟鐢 \texttt{\string\maketitle} 鍓 + 宸茬粡璁剧疆濂芥墍鏈夌殑鏂囨。淇℃伅銆 + 鑻ョ敤鎴蜂笉璋冪敤 \texttt{\string\maketitle}锛 + 鍒欓』鍦ㄨ瀹氬畬鏂囨。淇℃伅涔嬪悗鑷璋冪敤 + 绗 \ref{ssec:misc} 灏忚妭涓粙缁嶇殑 + \texttt{\string\setpdfproperties} 鍛戒护浠ュ畬鎴 + pdf 鏂囨。灞炴х殑璁惧畾銆% + } + + \item \textbf{鍏朵綑鏂囨。绫婚夐」}锛% + pkuthss 鏂囨。绫讳互 ctexbook 鏂囨。绫讳负鍩虹锛 + 鍏舵帴鍙楃殑鍏朵綑鎵鏈夋枃妗g被閫夐」鍧囪浼犻掔粰 ctexbook銆 + 鍏朵腑鍙兘鏈甯哥敤鐨勯夐」鏄 \verb|GBK| 鍜 \verb|UTF8|锛 + 瀹冧滑閫夋嫨婧愪唬鐮佷娇鐢ㄧ殑瀛楃缂栫爜锛岄粯璁や娇鐢 \verb|GBK|銆 +\end{itemize} + +渚嬪锛屽鏋滈』瑕佷娇鐢 UTF-8 缂栫爜鎾板啓璁烘枃锛 +鍒欏簲鍦ㄨ浇鍏 pkuthss 鏂囨。绫绘椂鍔犱笂 \verb|UTF8| 閫夐」锛 +\begin{Verbatim}[frame = single] +\documentclass[UTF8, ...]{pkuthss} % 鈥...鈥濅唬琛ㄥ叾瀹冪殑閫夐」銆 +\end{Verbatim} + +鍙堜緥濡傦紝鏂囨。榛樿鎯呭喌涓嬫槸鍙岄潰妯″紡锛屾瘡绔犻兘浠庡彸椤碉紙濂囨暟椤碉級寮濮嬨 +濡傛灉甯屾湜鏀规垚涓绔犲彲浠ヤ粠浠绘剰椤靛紑濮嬶紝鍙互杩欐牱璁剧疆锛 +\begin{Verbatim}[frame = single] +\documentclass[openany, ...]{pkuthss} % 姣忕珷浠庝换鎰忛〉寮濮嬨 +\end{Verbatim} + +\section{pkuthss 鏂囨。绫绘彁渚涚殑鍛戒护鍜岀幆澧儅 +\subsection{璁惧畾鏂囨。淇℃伅鐨勫懡浠 + +杩欎竴绫诲懡浠ょ殑璇硶涓 +\begin{Verbatim}[frame = single] +\commandname{鍏蜂綋淇℃伅} % commandname 涓哄叿浣撳懡浠ょ殑鍚嶇О銆 +\end{Verbatim} + +杩欎簺鍛戒护鎬荤粨濡備笅锛 +\begin{itemize} + \item \texttt{\bfseries\string\ctitle}锛氳瀹氳鏂囦腑鏂囨爣棰橈紱 + \item \texttt{\bfseries\string\etitle}锛氳瀹氳鏂囪タ鏂囨爣棰橈紱 + \item \texttt{\bfseries\string\cauthor}锛氳瀹氫綔鑰呯殑涓枃鍚嶏紱 + \item \texttt{\bfseries\string\eauthor}锛氳瀹氫綔鑰呯殑瑗挎枃鍚嶏紱 + \item \texttt{\bfseries\string\studentid}锛氳瀹氫綔鑰呯殑瀛﹀彿锛 + \item \texttt{\bfseries\string\date}锛氳瀹氭棩鏈燂紱 + \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}锛氳瀹氳タ鏂囧叧閿瘝銆 +\end{itemize} + +渚嬪锛屽鏋滆璁惧畾涓撲笟涓衡滃寲瀛︹濓紙鈥淐hemistry鈥濓級锛屽垯鍙互浣跨敤浠ヤ笅鍛戒护锛 +\begin{Verbatim}[frame = single] +\cmajor{鍖栧} +\emajor{Chemistry} +\end{Verbatim} + +\subsection{鑷韩瀛樺偍鏂囨。淇℃伅鐨勫懡浠 + +杩欎竴绫诲懡浠ょ殑璇硶涓 +\begin{Verbatim}[frame = single] +% 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\cabstractname}锛氭憳瑕佺殑涓枃鏍囬銆 + \item \texttt{\bfseries\string\eabstractname}锛氭憳瑕佺殑瑗挎枃鏍囬銆 +\end{itemize} + +渚嬪锛 +濡傛灉瑕佽瀹氳鏂囩殑绫诲埆涓衡滄湰绉戠敓姣曚笟璁烘枃鈥濓紙鈥淯ndergraduate Thesis鈥濓級锛 +鍒欏彲浠ヤ娇鐢ㄤ互涓嬪懡浠わ細 +\begin{Verbatim}[frame = single] +\renewcommand{\cthesisname}{鏈鐢熸瘯涓氳鏂噠 +\renewcommand{\ethesisname}{Undergraduate Thesis} +\end{Verbatim} + +\subsection{浠モ渒ey = value鈥濇牸寮忚缃枃妗d俊鎭瘆 + +鐢ㄦ埛鍙互閫氳繃 \verb|\pkuthssinfo| 鍛戒护闆嗕腑璁惧畾鏂囨。淇℃伅锛屽叾璇硶涓猴細 +\begin{Verbatim}[frame = single] +% key1銆乲ey2銆乿alue1銆乿alue2 绛変负鍏蜂綋鏂囨。淇℃伅鐨勯」鐩悕鍜屽唴瀹广 +\pkuthssinfo{key1 = value1, key2 = value2, ...} +\end{Verbatim} +鍏朵腑鏂囨。淇℃伅鐨勯」鐩悕涓哄墠闈㈡彁鍒扮殑璁惧畾鏂囨。淇℃伅鐨勫懡浠ゅ悕 +鎴栬嚜韬瓨鍌ㄦ枃妗d俊鎭殑鍛戒护鍚嶏紙涓嶅甫鍙嶆枩鏉狅級銆 + +褰撴枃妗d俊鎭殑鍐呭鍖呭惈浜嗛楀彿绛夋湁骞叉壈鐨勫瓧绗︽椂锛 +鍙互鐢ㄥぇ鎷彿灏嗚繖涓椤规枃妗d俊鎭殑鍏ㄩ儴鍐呭鎷捣鏉ャ俓myemph{% + 鎴戜滑寤鸿鐢ㄦ埛鎬荤敤澶ф嫭鍙峰皢鏂囨。淇℃伅鐨勫唴瀹规嫭璧锋潵锛 + 浠ラ伩鍏嶅緢澶氫笉蹇呰鐨勯夯鐑︺% +} + +渚嬪锛屽墠闈㈡彁鍒扮殑鏂囨。淇℃伅鐨勮缃彲浠ラ泦涓湴鍐欐垚锛 +\begin{Verbatim}[frame = single, tabsize = 4] +\pkuthssinfo{ + ..., % 鈥...鈥濅唬琛ㄥ叾瀹冪殑璁惧畾銆 + cthesisname = {鏈鐢熸瘯涓氳鏂噠, + ethesisname = {Undergraduate Thesis}, + cmajor = {鍖栧}, emajor = {Chemistry} +} +\end{Verbatim} + +\subsection{鍏跺畠鍛戒护鍜岀幆澧儅\label{ssec:misc} + +\texttt{\bfseries cabstract} 鍜 \texttt{\bfseries eabstract} +鐜鐢ㄤ簬缂栧啓涓タ鏂囨憳瑕併 +鐢ㄦ埛鍙』瑕佸啓鎽樿鐨勬鏂囷紱鏍囬銆佷綔鑰呫佸甯堛佷笓涓氱瓑閮ㄥ垎浼氳嚜鍔ㄧ敓鎴愩 + +\texttt{\bfseries\string\specialchap} 鍛戒护 +鐢ㄤ簬寮濮嬩笉杩涜鏍囧彿浣嗚鍏ョ洰褰曠殑涓绔狅紝 +骞跺悎鐞嗗畨鎺掑叾椤电湁銆俓myemph{% + 娉ㄦ剰锛氶』瑕佸惎鐢 \texttt{spechap} 閫夐」鎵嶈兘浣跨敤姝ゅ懡浠ゃ + 鍙﹀锛屽湪姝ょ珷鍐呯殑鑺傛垨灏忚妭绛夊懡浠ゅ簲浣跨敤甯︽槦鍙风殑鐗堟湰锛 + 渚嬪 \texttt{\string\section\string*} 绛夛紝 + 浠ュ厤閫犳垚绔犺妭缂栧彿娣蜂贡銆% +}% +渚嬪锛屾湰鏂囨。涓殑鈥滃簭瑷鈥濅竴绔犲氨鏄敤 \verb|\specialchap{搴忚█}| +杩欐潯鍛戒护寮濮嬬殑銆% + +\texttt{\bfseries\string\setpdfproperties} 鍛戒护 +鐢ㄤ簬鏍规嵁鐢ㄦ埛璁惧畾鐨勬枃妗d俊鎭嚜鍔ㄨ瀹氱敓鎴愮殑 pdf 鏂囨。鐨勫睘鎬с +姝ゅ懡浠や細鍦ㄧ敤鎴疯皟鐢 \verb|\maketitle| 鍛戒护鏃惰鑷姩璋冪敤锛 +鍥犳閫氬父涓嶉』瑕佺敤鎴疯嚜宸变娇鐢紱 +浣嗙敤鎴锋湁鏃跺彲鑳戒笉椤昏杈撳嚭灏侀潰锛屼粠鑰屼笉浼氳皟鐢 \verb|\maketitle| 鍛戒护锛 +姝ゆ椂灏遍』瑕佸湪璁惧畾瀹屾枃妗d俊鎭箣鍚庤皟鐢 \verb|\setpdfproperties|銆% +\myemph{娉ㄦ剰锛氶』瑕佸惎鐢 \texttt{pdfprop} 閫夐」鎵嶈兘浣跨敤姝ゅ懡浠ゃ倉 + +\section{浠庡叾瀹冩枃妗g被鍜屽畯鍖呯户鎵跨殑鍔熻兘}\label{sec:thirdparty} + +pkuthss 鏂囨。绫诲缓绔嬪湪 ctexbook\supercite{ctex} 鏂囨。绫讳箣涓婏紝 +骞惰皟鐢ㄤ簡 geometry\supercite{geometry}銆乫ancyhdr\supercite{fancyhdr}銆% +hyperref\supercite{hyperref}銆乬raphicx\supercite{graphicx} +鍜 ulem\supercite{ulem} 绛夊嚑涓畯鍖呫 +鍥犳锛宑texbook 鏂囨。绫诲拰杩欎簺瀹忓寘鎵鎻愪緵鐨勫姛鑳藉潎鍙互浣跨敤銆 + +渚嬪锛岀敤鎴峰鏋滄兂灏嗙洰褰曠殑鏍囬鏀逛负鈥滅洰{\quad\quad}褰曗濓紝 +鍒欏彲浠ヤ娇鐢 ctexbook 鏂囨。绫绘彁渚涚殑 \verb|\ctexset| 鍛戒护锛 +\begin{Verbatim}[frame = single] +\ctexset[contentsname = {鐩畕\quad\quad}褰晑] +\end{Verbatim} + +鍦ㄩ粯璁ょ殑閰嶇疆涓嬶紝% +pkuthss 鏂囨。妯$増浣跨敤浣滆呯紪鍐欑殑 biblatex\supercite{biblatex} 鏍峰紡% +\mbox{\supercite{biblatex-caspervector}}杩涜鍙傝冩枃鐚拰寮曠敤鐨勬帓鐗堬紝 +鐢ㄦ埛鍙互浣跨敤瀹冧互鍙 biblatex 鏈韩鎵鎻愪緵鐨勫姛鑳姐 +渚嬪锛岀敤鎴峰彲浠ュ垎鍒娇鐢 \verb|\cite|銆乗verb|\parencite| 鍜 \verb|\supercite| +鐢熸垚鏈牸寮忓寲鐨勩佸甫鏂规嫭鍙风殑鍜屼笂鏍囦笖甯︽柟鎷彿鐨勫紩鐢ㄦ爣璁帮細 +\begin{Verbatim}[frame = single] +\cite{ctex}锛孿parencite{ctex}锛孿supercite{ctex} +\end{Verbatim} +鍦ㄦ湰鏂囦腑灏嗕骇鐢熲淺cite{ctex}锛孿parencite{ctex}锛孿supercite{ctex}鈥濄 + +灏辩洰鍓嶈岃█锛屽湪\myemph{闄 3.0--3.3 涔嬪鐗堟湰鐨剗 biblatex 涓紝 +閫氳繃鏇村鏉傜殑璁剧疆锛岃繕鍙互婊¤冻渚嬪琚紩鐢ㄧ殑鏂囩尞鎸夌収寮曠敤椤哄簭鎺掑簭锛 +鑰屾湭寮曠敤鐨勬枃鐚寜鐓цタ鏂囨枃鐚湪鍓嶃佷腑鏂囨枃鐚湪鍚庢帓搴忚繖鏍风殑闇姹傦紝 +璇﹁ biblatex-caspervector 鐨勬枃妗supercite{biblatex-caspervector}銆 + +闄ゆ涔嬪锛宲kuthss 鏂囨。绫昏繕鍙兘璋冪敤浠ヤ笅杩欎簺瀹忓寘锛 +\begin{itemize} + \item 鍚敤 \verb|pkufont| 閫夐」鏃朵細璋冪敤 + newtxtext 鍜 newtxmath\supercite{newtx} 瀹忓寘锛 + 鍚﹀垯浼氳皟鐢 latexsym\supercite{latexsym} 瀹忓寘銆 + \item 鍚敤 \verb|pkufoot| 閫夐」鏃朵細璋冪敤 + tikz\supercite{tikz} 鍜 scrextend\supercite{scrextend} 瀹忓寘銆 + \item 鍚敤 \verb|pkuspace| 閫夐」鏃朵細璋冪敤 + tocloft\supercite{tocloft}銆乧aption\supercite{caption} 鍜 + subcaption\supercite{subcaption} 瀹忓寘銆 + \item 鍚敤 \verb|spacing| 閫夐」鏃朵細璋冪敤 setspace 鍜 + enumitem\supercite{enumitem} 瀹忓寘銆 +\end{itemize} +鍥犳鍦ㄥ惎鐢ㄧ浉搴旈夐」鏃讹紝鐢ㄦ埛鍙互浣跨敤瀵瑰簲瀹忓寘鎵鎻愪緵鐨勫姛鑳姐 + +\section{楂樼骇璁剧疆}\label{sec:advanced} + +pkuthss 鏂囨。妯$増鐨勫疄鐜版槸绠娲併佹竻鏅般佺伒娲荤殑銆 +褰撲竴浜涚粏鑺傜殑鑷畾涔夋棤娉曢氳繃妯$増鎻愪緵鐨勫閮ㄦ帴鍙e疄鐜版椂锛 +鎴戜滑榧撳姳鐢ㄦ埛锛堝湪閫傚綋鐞嗚В鐩稿叧閮ㄥ垎浠g爜鐨勫墠鎻愪笅锛 +閫氳繃淇敼 pkuthss 鏂囨。绫荤殑婧愭枃浠惰繘琛岃嚜瀹氫箟銆 +鍦ㄧ洰鍓嶅父鐢ㄧ殑 \hologo{TeX} 绯荤粺涓紝 +鍋囪 pkuthss 鐨勮鏄庢枃妗f墍鍦ㄧ洰褰曞叿鏈変笅杩板舰寮忕殑璺緞锛 +\begin{Verbatim}[frame = single] +# 璇存槑鏂囨。鎵鍦ㄧ洰褰曪紙$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}[frame = single] +$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| 瀹忕殑鍙傛暟鏉ユ敼鍙 +甯︿笅鍒掔嚎鐨勭┖鐧界殑琛屾暟鍜岃瀹斤紝鍏惰娉曚负锛 +\begin{Verbatim}[frame = single] +\thss@int@fillinblank{琛屾暟}{琛屽}{鍐呭} +\end{Verbatim} +渚嬪锛屽鏋溾滅爺绌舵柟鍚戔濅竴鏍忛渶瑕佷袱琛岀殑绌虹櫧锛 +鍙互灏 \verb|pkuthss.cls| 閲岀殑 +\begin{Verbatim}[frame = single] +\thss@int@fillinblank{1}{\thss@tmp@len}{\kaishu\@direction} +\end{Verbatim} +鏀逛负 +\begin{Verbatim}[frame = single] +\thss@int@fillinblank{2}{\thss@tmp@len}{\kaishu\@direction} +\end{Verbatim} +褰撶劧锛屼负浜嗙編瑙傦紝鍙互灏嗗浜庝竴琛岀殑閮ㄥ垎绉诲埌灏侀潰涓綔鑰呬俊鎭儴鍒嗙殑鏈涓嬫柟銆 + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-chap3.tex b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-chap3.tex new file mode 100644 index 0000000000..bde028dd98 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-chap3.tex @@ -0,0 +1,142 @@ +% Documentation for pkuthss. +% +% Copyright (c) 2008-2009 solvethis +% Copyright (c) 2010-2018 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 +% 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{闂鍙婂叾瑙e喅} +\section{鏂囨。涓凡缁忔彁鍒扮殑甯歌闂锛堟寜閲嶈鎬ф帓搴忥級} + +鏂囨。榛樿鎯呭喌涓嬫槸鍙岄潰妯″紡锛岀珷鏈彲鑳戒骇鐢熺┖鐧介〉锛 +瑙e喅鏂瑰紡瑙佺 \ref{sec:options} 鑺傘 + +閫氳繃涓浜涜缃紝杩樺彲浠ユ弧瓒充緥濡傝寮曠敤鐨勬枃鐚寜鐓у紩鐢ㄩ『搴忔帓搴忥紝 +鑰屾湭寮曠敤鐨勬枃鐚寜鐓цタ鏂囨枃鐚湪鍓嶃佷腑鏂囨枃鐚湪鍚庢帓搴忚繖鏍风殑闇姹傦紝 +瑙佺 \ref{sec:thirdparty} 鑺傘 + +涓浜涢珮绾ц缃紝濡傚皝闈腑閮ㄥ垎鍐呭闀垮害瓒呰繃棰勮绌洪棿瀹归噺鏃剁殑璁剧疆锛 +瑙佺 \ref{sec:advanced} 鑺傘 + +涓枃瀛椾綋瀛楀簱涓嶅叏锛堝彧鍖呭惈 GB2312 瀛楃闆嗗唴瀛楃锛夋椂锛 +鐢熸垚鐨 pdf 鏂囨。涓彲鑳界己灏戦儴鍒嗗瓧绗︼紝瑙e喅鏂瑰紡瑙佺 \ref{sec:req} 鑺傘 +浣跨敤杩囨棫鐨 \hologo{TeX} 绯荤粺鍜屽悇瀹忓寘锛 +鎴栦娇鐢ㄦ煇浜 Linux 鍙戣鐗堣蒋浠朵粨搴撴墍鎻愪緵鐨 \hologo{TeX} Live 鏃讹紝 +鍙兘寮曡捣涓浜涢棶棰橈紝璇﹁绗 \ref{sec:req} 鑺傘 + +Windows 鎵瑰鐞嗗浜 LF锛圽texttt{\string\n}锛夋崲琛岀殑鎵瑰鐞嗘枃浠舵敮鎸佹湁闂锛 +瑙e喅鏂瑰紡瑙佺 \ref{sec:compile} 鑺傘 +Windows 鐨勨滆浜嬫湰鈥濈▼搴忓湪鏌ョ湅 LF锛圽texttt{\string\n}锛 +鎹㈣鐨勬枃鏈枃浠舵椂瀛樺湪鐫涓浜涢棶棰橈紝 +鍥犳寤鸿鐢ㄦ埛浣跨敤鏀寔 LF 鎹㈣鐨勬枃鏈紪杈戝櫒缂栬緫鏂囦欢锛 +璇﹁绗 \ref{sec:doc-dir} 鑺傘 + +\section{涓婃父瀹忓寘鍙兘寮曡捣鐨勯棶棰榼 + +biblatex\supercite{biblatex} 瀹忓寘浼氳嚜琛岃瀹 \verb|\bibname|锛 +鏁呬細瑕嗙洊閫氳繃 \verb|\ctexset| 璁惧畾鐨勫弬鑰冩枃鐚垪琛ㄦ爣棰樸 +浣跨敤 biblatex 鐨勭敤鎴峰彲浠ヤ娇鐢 \verb|\printbibliography| 鐨 +\verb|title| 閫夐」鏉ユ墜鍔ㄨ瀹氬弬鑰冩枃鐚垪琛ㄧ殑鏍囬锛屼緥濡傦細 +\begin{Verbatim}[frame = single] +\printbibliography[title = {鏂囩尞}, ...] % 鈥...鈥濅负鍏跺畠閫夐」銆 +\end{Verbatim} + +hyperref\supercite{hyperref} 瀹忓寘鍜屼竴浜涘畯鍖呭彲鑳藉彂鐢熷啿绐併 +鍏充簬濡備綍閬垮厤杩欎簺鍐茬獊锛 +鍙互鍙傝 hyperref 瀹忓寘 README 鏂囦欢涓殑鈥淧ackage Compatibility鈥濅竴鑺傘 +姝ゆ枃浠堕氬父鍜屾墽琛 \verb|texdoc hyperref| +鏃舵墦寮鐨 pdf 鏂囦欢浣嶄簬鍚屼竴鐩綍涓 + +浣跨敤 \hologo{XeLaTeX} 鐨勭敤鎴峰彲鑳藉湪宸茬粡瀹夎瀛椾綋鐨勬儏鍐典笅閬囧埌褰㈠锛堝叾涓 +\verb|xxxxxxxx| 涓哄叿浣撳瓧浣撳悕锛 +\begin{Verbatim}[frame = single, fontsize = {\small}] +! fontspec error: "font-not-found" +! The font "xxxxxxxx" cannot be found. +! See the fontspec documentation for further information. +! For immediate help type H <return>. +\end{Verbatim} +鐨勯敊璇 +杩欑閿欒涓鑸槸锛堜富瑕佹槸闈 Windows 骞冲彴鐨勶級鐢ㄦ埛閲囩敤浜嗚嚜瀹氫箟鐨 +锛堝寘鎷ぇ灏忓啓涓嶅悓浜庡師鏂囦欢鐨勶級瀛椾綋鏂囦欢鍚嶏紝 +骞舵敼鍔 \verb|ctex.cfg| 绛夐厤缃枃浠朵箣鍚庢病鏈夊湪璋冪敤 +pkuthss 鏂囨。绫绘椂鍔犲叆 \verb|nofonts| 閫夐」锛 +鍙堜娇鐢 \verb|xelatex| 缂栬瘧閫犳垚鐨勶紝浣跨敤 +\begin{Verbatim}[frame = single] +\documentclass[nofonts, ...]{pkuthss} % 鈥...鈥濅唬琛ㄥ叾瀹冪殑閫夐」銆 +\end{Verbatim} +鍗冲彲瑙e喅姝ら棶棰樸 + +biber 杩愯鏃舵湁涓瀹氭鐜囧嚭鐜板舰濡傦紙鐩綍鍚嶅彲鑳界◢鏈変笉鍚岋級 +\begin{Verbatim}[frame = single, fontsize = {\small}] +data source .../par-xxxxxxxx/cache-xxxxxxxx/ + inc/lib/Biber/LaTeX/recode_data.xml not found in . +\end{Verbatim} +鐨勯敊璇 +杩欑閿欒涓鑸槸 biber 鍦ㄨ嚜瑙e帇闃舵琚粓姝箣鍚庯紝 +鏈垹闄 \verb|.../par-xxxxxxxx/| 杩欎釜涓存椂鐩綍灏遍噸鏂拌繍琛 biber 鏃跺嚭鐜般 +閬囧埌杩欑鎯呭喌鏃讹紝鍒犻櫎鎺変笂杩颁复鏃剁洰褰曞強鍏舵墍鏈夊唴瀹癸紝 +鍐嶉噸鏂拌繍琛 biber 閫氬父渚垮彲瑙e喅闂銆 + +caption\supercite{caption} 瀹忓寘瀵逛簬鍏朵笉璁よ瘑鐨勫畯鍖呭潎浼氭彁绀 +\begin{Verbatim}[frame = single, fontsize = {\small}] +Package caption Warning: Unsupported document class (or package) detected, +(caption) usage of the caption package is not recommended. +See the caption package documentation for explanation. +\end{Verbatim} +pkuthss 鏂囨。妯$増鍩轰簬 ctexbook 鏂囨。绫伙紝鑰屽悗鑰呭熀浜庢爣鍑嗙殑 book 鏂囨。绫伙紝 +鍥犳杩欎釜璀﹀憡骞朵笉褰卞搷鐢ㄦ埛姝e父浣跨敤\footnote{% + \url{http://bbs.ctex.org/forum.php?mod=redirect&goto=findpost&ptid=63117&pid=402145}.% +}銆 + +\section{鏂囨。鏍煎紡鍙兘瀛樺湪鐨勯棶棰榼 + +瀛︽牎瀵瑰浣嶈鏂囨牸寮忕殑瑙勫畾\mbox{\supercite{pku-thesisstyle}}% +鏄剧劧娌℃湁鑰冭檻鍒伴潪 MS Word 绫绘帓鐗堝伐鍏风殑宸ヤ綔鏂瑰紡锛 +鍥犳 pkuthss 鏂囨。妯$増鍙槸瀵瑰叾瑕佹眰鐨勬牸寮忚繘琛屾ā浠匡紝 +鑰屽湪涓浜涘皬鐨勭粏鑺備笂鍙兘鏈夋墍鍑哄叆銆 + +biblatex-caspervector\supercite{biblatex-caspervector} 鎵瀹炵幇鐨勬牸寮忓拰 +\parencite{pku-thesisstyle} 鐨勮瀹氬苟涓嶄竴鑷达紝 +浣嗗叾浣滆呮殏鏃舵病鏈夌簿鍔涗篃涓嶆効鎰忓幓瀹炵幇鍚庤呮墍瑙勫畾鐨勬瘮鍘熸牸寮忔洿涓戦檵寰楀鐨勬牸寮忋 + +\section{鍙嶉鎰忚鍜屽缓璁畗 + +鍏充簬 pkuthss 鏂囨。妯$増鐨勬剰瑙佸拰寤鸿锛 +璇峰湪鍖楀ぇ鏈悕 BBS 鐨 MathTools 鐗堟垨 pkuthss 椤圭洰涓婚〉鐨 issue tracker% +\footnote{\url{https://gitlab.com/CasperVector/pkuthss/issues}.}% +涓婃彁鍑猴紝 +鎴栭氳繃鐢靛瓙閭欢\footnote% +{\href{mailto:CasperVector@gmail.com}{\texttt{CasperVector@gmail.com}}.}% +鍛婄煡妯$増缁存姢鑰呫 +涓婅堪涓夌鍙嶉鏂规硶涓紝寤鸿鐢ㄦ埛灏介噺閲囩敤闈犲墠鐨勬柟娉曘 + +鍦ㄨ繘琛屽弽棣堟椂锛岃灏介噺纭繚宸茬粡浠旂粏闃呰鏈枃妗d腑鐨勮鏄庛 +濡傛灉鏄氳繃 BBS 鎴栫數瀛愰偖浠惰繘琛屽弽棣堬紝 +璇峰湪鏍囬涓鏄庢槸鍏充簬 pkuthss 鏂囨。妯$増鐨勫弽棣堬紱 +濡傛灉鏄敊璇姤鍛婏紝璇疯鏄庢墍浣跨敤 pkuthss 妯$増鐨勭増鏈 +鑷繁浣跨敤鐨勬搷浣滅郴缁熷拰 \hologo{TeX} 绯荤粺鐨勭被鍨嬪拰鐗堟湰锛 +鍚屾椂寮虹儓寤鸿闄勪笂涓涓嚭閿欑殑鏈灏忎緥瀛愬強鍏剁浉搴旂殑缂栬瘧鏃ュ織锛圽verb|.log| 鏂囦欢锛夛紝 +鍦ㄦ枃浠惰緝闀挎椂璇蜂娇鐢ㄩ檮浠躲 + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-concl.tex b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-concl.tex new file mode 100644 index 0000000000..4d71382198 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-concl.tex @@ -0,0 +1,34 @@ +% 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 +% 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 diff --git a/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-copy.tex b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-copy.tex new file mode 100644 index 0000000000..74b2cc186a --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-copy.tex @@ -0,0 +1,47 @@ +% 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 +% 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--2017 Casper Ti. Vector +\vskip 1em + +pkuthss 鏂囨。绫诲強鍏惰鏄庢枃妗e潎浠 \hologo{LaTeX} Project Public License 鍙戝竷銆 +闅 pkuthss 鎻愪緵鐨勬ā鐗堟簮浠g爜涓紝闄や互涓嬫枃浠 +\begin{itemize} + \item \verb|chap/copyright.tex| + \item \verb|chap/originauth.tex| +\end{itemize} +浠 New BSD License 鍙戝竷锛 +浠ュ強鍙傝冩枃鐚拰寮曠敤鍒楄〃浣跨敤鐨勬牱寮忔枃浠剁増鏉冨0鏄庤鐩稿簲鏂囦欢涓鏄庝互澶栵紝 +鍏朵綑鎵鏈夋枃浠跺彂甯冨湪鍏湁棰嗗煙锛坧ublic domain锛夈 + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-encl1.tex b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-encl1.tex new file mode 100644 index 0000000000..30c397b6e1 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-encl1.tex @@ -0,0 +1,44 @@ +% 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 +% 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[ + tabsize = 4, fontsize = {\small}, baselinestretch = 1 +]{ChangeLog.txt} + +\section{1.3 鍙婂叾浠ュ墠鐗堟湰鐨勬洿鏂拌褰晑 +\VerbatimInput[ + tabsize = 4, fontsize = {\small}, baselinestretch = 1.1 +]{ChangeLog-upto-1.3.txt} + +\flushbottom + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-intro.tex b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-intro.tex new file mode 100644 index 0000000000..db16f7776b --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-intro.tex @@ -0,0 +1,67 @@ +% Documentation for pkuthss. +% +% Copyright (c) 2008-2009 solvethis +% Copyright (c) 2010-2012,2014-2015,2018 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 +% 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{搴忚█} + +鏈枃妗f槸鍖椾含澶у璁烘枃鏂囨。妯$増 pkuthss 鐨勮鏄庢枃妗c + +pkuthss 鏂囨。妯$増鐢变笁閮ㄥ垎鏋勬垚锛 +\begin{itemize} + \item \textbf{pkuthss 鏂囨。绫粆锛 + 鍏朵腑鏍规嵁瀛︽牎鐨勬牸寮忚鑼僜mbox{\supercite{pku-thesisstyle}}% + 瀹炵幇浜嗗浣嶈鏂囨墍闇鐨勫熀鏈牸寮忚姹傦紝 + 涓昏鍖呮嫭瀵规帓鐗堟牸寮忕殑璁惧畾鍜屾彁渚涜缃鏂囦俊鎭殑鍛戒护锛 + 姝ゅ涔熷疄鐜颁簡瀛︿綅璁烘枃涓敤鎴峰彲鑳借緝澶氱敤鍒扮殑涓浜涢澶栧姛鑳斤紝 + 渚嬪鑷姩鍦ㄧ洰褰曚腑鍔犲叆鍙傝冩枃鐚拰绱㈠紩鐨勬潯鐩拰 + 鑷姩鏍规嵁鐢ㄦ埛璁惧畾鐨勬枃妗d俊鎭鎵鐢熸垚 pdf 鐨勪綔鑰呫佹爣棰樼瓑灞炴ц繘琛岃缃瓑銆 + \item \textbf{璇存槑鏂囨。}锛 + 璇存槑鏂囨。鍗虫湰鏂囨。锛 + 鍦ㄥ畨瑁咃紙瑙佺 \ref{sec:req} 鑺傦級涔嬪悗搴旇鍙互鐢 \hologo{TeX} 绯荤粺鎻愪緵鐨 + \verb|texdoc| 鍛戒护璋冨嚭锛 +\begin{Verbatim}[frame = single] +texdoc pkuthss +\end{Verbatim} + \item \textbf{璁烘枃妯$増}锛 + 妯$増鐨勬簮浠g爜锛堝強鐢辨鐢熸垚鐨 pdf 鏂囨。锛 + 鍜屾湰鏂囨。鐨 pdf 鏂囦欢澶勪簬鍚屼竴鐩綍涓嬨 + 鐢ㄦ埛鍙』鎸夌収妯$増涓殑妗嗘灦淇敼浠g爜锛屽嵆鍙啓鍑鸿嚜宸辩殑璁烘枃銆 +\end{itemize} + +鍦ㄦ涔嬪墠锛屽寘鎷 dypang\supercite{dypang}銆丗erretL\supercite{FerretL}銆% +lwolf\supercite{lwolf}銆丩angpku\supercite{Langpku}銆% +solvethis\supercite{solvethis} 绛夌殑鏁颁綅缃戝弸鍧囧仛杩囧浣嶈鏂囨ā鐗堢殑宸ヤ綔銆 +鏈鏂囨ā鐗堟槸 solvethis 鐨 pkuthss 妯$増鐨勬洿鏂扮増鏈紝 +鏇存柊鐨勯噸鐐规槸閲嶆瀯鍜屽鏂版枃妗g被銆佸畯鍖呯殑鏀寔銆 + +pkuthss 鏂囨。妯$増鐜板湪鐨勭淮鎶よ呮槸 Casper Ti. Vector\footnote% +{\href{mailto:CasperVector@gmail.com}{\texttt{CasperVector@gmail.com}}.}銆% +pkuthss 鏂囨。妯$増鐩墠鎵樼鍦 GitLab 涓婏紝 +鍏堕」鐩富椤垫槸锛歕\ +\hspace*{\parindent}\url{https://gitlab.com/CasperVector/pkuthss} + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/doc/readme/pkuthss-english.patch b/macros/latex/contrib/pkuthss/doc/readme/pkuthss-english.patch new file mode 100644 index 0000000000..a4c13c0357 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/readme/pkuthss-english.patch @@ -0,0 +1,275 @@ +diff --git a/doc/example/chap/abs.tex b/doc/example/chap/abs.tex +index b930654..cfa6cd3 100644 +--- a/doc/example/chap/abs.tex ++++ b/doc/example/chap/abs.tex +@@ -2,7 +2,7 @@ + % Public domain. + + \begin{cabstract} +- \pkuthssffaq % 涓枃娴嬭瘯鏂囧瓧 ++ 涓枃鎽樿銆 + \end{cabstract} + + \begin{eabstract} +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 d7a575f..baed091 100644 +--- a/doc/example/thesis.tex ++++ b/doc/example/thesis.tex +@@ -14,53 +14,44 @@ + % 鍏跺畠鐢ㄦ埛涓嶇敤鍔犲叆 nofonts 閫夐」锛屽姞鍏ヤ箣鍚庡弽鑰屼細浜х敓閿欒銆 + \documentclass[UTF8]{pkuthss} + +-% 浣跨敤 biblatex 鎺掔増鍙傝冩枃鐚紝骞惰瀹氬叾鏍煎紡锛堣瑙 biblatex-caspervector 鐨勬枃妗o級銆 +-% 杩欓噷鎸夌収瑗挎枃鏂囩尞鍦ㄥ墠锛屼腑鏂囨枃鐚湪鍚庢帓搴忥紙鈥渟orting = ecnyt鈥濓級锛 +-% 鑻ラ』鎸夌収涓枃鏂囩尞鍦ㄥ墠锛岃タ鏂囨枃鐚湪鍚庢帓搴忥紝璇疯缃渟orting = cenyt鈥濓紱 +-% 鑻ラ』鎸夌収寮曠敤椤哄簭鎺掑簭锛岃璁剧疆鈥渟orting = none鈥濄 +-% 鑻ラ』鍦ㄦ帓搴忎腑瀹炵幇鏇村鏉傜殑闇姹傦紝璇峰弬鑰 biblatex-caspervector 鐨勬枃妗c +-\usepackage[backend = biber, style = caspervector, utf8, sorting = ecnyt]{biblatex} ++% 浣跨敤 biblatex 鎺掔増鍙傝冩枃鐚紝骞惰瀹氬叾鏍煎紡锛堣瑙 biblatex 鐨勬枃妗o級銆 ++\usepackage[backend = biber]{biblatex} + + % 鎸夊鏍¤姹傝瀹氬弬鑰冩枃鐚垪琛ㄤ腑鐨勬潯鐩箣鍐呭強涔嬮棿鐨勮窛绂汇 + \setlength{\bibitemsep}{3bp} + % 瀵逛簬 linespread 鍊肩殑璁$畻杩囩▼鏈夊叴瓒g殑鍚屽鍙互鍙傝 pkuthss.cls銆 + \renewcommand*{\bibfont}{\zihao{5}\linespread{1.27}\selectfont} + ++\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}, ++} ++ + % 璁惧畾鏂囨。鐨勫熀鏈俊鎭 + \pkuthssinfo{ +- cthesisname = {鍗氬+鐮旂┒鐢熷浣嶈鏂噠, ethesisname = {Doctor Thesis}, +- ctitle = {娴嬭瘯鏂囨。}, etitle = {Test Document}, +- cauthor = {鏌愭煇}, ++ ethesisname = {Doctor Thesis}, ++ etitle = {Test Document}, + eauthor = {Test}, + studentid = {0123456789}, +- date = {鏌愬勾鏌愭湀}, +- school = {鏌愭煇瀛﹂櫌}, +- cmajor = {鏌愭煇涓撲笟}, emajor = {Some Major}, +- direction = {鏌愭煇鏂瑰悜}, +- cmentor = {鏌愭煇鏁欐巿}, ementor = {Prof.\ Somebody}, ++ date = {Some Date}, ++ school = {Some School}, ++ emajor = {Some Major}, ++ direction = {Some Direction}, ++ ementor = {Prof.\ Somebody}, + ckeywords = {鍏朵竴锛屽叾浜寎, ekeywords = {First, Second} + } + % 杞藉叆鍙傝冩枃鐚暟鎹簱锛堟敞鎰忎笉瑕佺渷鐣モ.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{openany} 閫夐」銆 +- +- 濡傛灉缂栬瘧鏃朵笉鍑哄弬鑰冩枃鐚紝 +- 璇峰弬鑰 \texttt{texdoc pkuthss}鈥滈棶棰樺強鍏惰В鍐斥濅竴绔 +- 鈥滀笂娓稿畯鍖呭彲鑳藉紩璧风殑闂鈥濅竴鑺備腑鍏充簬 biber 鐨勮鏄庛% +-} +- + \begin{document} + % 浠ヤ笅涓烘鏂囦箣鍓嶇殑閮ㄥ垎锛岄粯璁や笉杩涜绔犺妭缂栧彿銆 + \frontmatter +@@ -94,7 +85,7 @@ + \appendix + % 鎺掔増鍙傝冩枃鐚垪琛ㄣ俠ibintoc 閫夐」浣库滃弬鑰冩枃鐚濆嚭鐜板湪鐩綍涓紱 + % 濡傛灉鍚屾椂瑕佷娇鍙傝冩枃鐚垪琛ㄥ弬涓庣珷鑺傜紪鍙凤紝鍙皢鈥渂ibintoc鈥濇敼涓衡渂ibnumbered鈥濄 +- \printbibliography[heading = bibintoc] ++ \printbibliography[heading = bibintoc, title = Reference] + % 鍚勯檮褰曘 + \include{chap/encl1} + +diff --git a/tex/pkuthss-utf8.def b/tex/pkuthss-utf8.def +index c2c951b..d453918 100644 +--- a/tex/pkuthss-utf8.def ++++ b/tex/pkuthss-utf8.def +@@ -25,13 +25,13 @@ + [2017/03/01 v1.7.4 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@ementor{Directed by\ } + \def\label@ckeywords{鍏抽敭璇嶏細} + \def\label@ekeywords{KEYWORDS:\ } +diff --git a/tex/pkuthss.cls b/tex/pkuthss.cls +index 6208799..a785d69 100644 +--- a/tex/pkuthss.cls ++++ b/tex/pkuthss.cls +@@ -300,7 +300,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}} +@@ -349,13 +349,13 @@ + \zihao{1}% + \includegraphics[height = 2.4em]{pkulogo}\hspace{0.4em}% + \raisebox{0.4em}{\includegraphics[height = 1.6em]{pkuword}}\\[0.8em] +- {\bfseries{\cthesisname}}% ++ {\bfseries{\ethesisname}}% + } + \vfill + % Title of the thesis. + {% + \zihao{2}{\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. +@@ -363,19 +363,19 @@ + % 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} & +- \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@cmentor} \\ ++ {\bfseries\label@cmentor} & : & ++ \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@ementor} \\ + \end{tabular}% + } + \vfill diff --git a/macros/latex/contrib/pkuthss/doc/readme/pkuthss.bib b/macros/latex/contrib/pkuthss/doc/readme/pkuthss.bib new file mode 100644 index 0000000000..ea9e83124a --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/readme/pkuthss.bib @@ -0,0 +1,252 @@ +@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 鍙傝冩枃鐚拰寮曠敤鏍峰紡锛歝aspervector}, + 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{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 = {鍖椾含澶у瀛︿綅璁烘枃鍘熷垱鎬у0鏄庡拰浣跨敤鎺堟潈璇存槑锛堟湯椤甸檺閲嶆柊鐢宠瀛︿綅浣跨敤锛墋, + 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 diff --git a/macros/latex/contrib/pkuthss/doc/readme/pkuthss.tex b/macros/latex/contrib/pkuthss/doc/readme/pkuthss.tex new file mode 100644 index 0000000000..bf0cd252a0 --- /dev/null +++ b/macros/latex/contrib/pkuthss/doc/readme/pkuthss.tex @@ -0,0 +1,96 @@ +% Documentation for pkuthss. +% +% Copyright (c) 2008-2009 solvethis +% Copyright (c) 2010-2016,2018 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 +% 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{fancyvrb, hologo} + +\setlength{\hfuzz}{3pt} +\ctexset{linestretch = 2\ccwd} +\renewcommand*{\bibfont}{\zihao{5}\linespread{1.27}\selectfont} +\setlength{\bibitemsep}{3bp} + +\hypersetup{colorlinks = true, allcolors = blue} +\newcommand{\myemph}[1]{\emph{\textcolor{red}{#1}}} +\newcommand{\unemph}[1]{\textup{\textcolor{black}{#1}}} +\newcommand{\docversion}{v1.8.0} + +\pkuthssinfo{ + cthesisname = {鏈鐢熸瘯涓氳鏂噠, ethesisname = {Undergraduate Thesis}, + ctitle = {鍖椾含澶у瀛︿綅璁烘枃妯$増\\pkuthss \docversion}, + etitle = {% + PKU dissertation document class\texorpdfstring{\\}{: }% + pkuthss \docversion% + }, + cauthor = {鐩栬尐娉⒙烽挍路缁村厠鎵榼, + eauthor = {Casper Ti.\ Vector}, + studentid = {00910???}, + date = {\zhdigits{2018}骞碶zhnumber{7}鏈坿, + school = {鍖栧涓庡垎瀛愬伐绋嬪闄, + cmajor = {鍖栧锛堬紵锛墋, emajor = {Chemistry ... ?}, + direction = {鎹 Casper 鑷繁涔熶笉鐭ラ亾}, + cmentor = {XX 鏁欐巿}, ementor = {Prof.\ XX}, + ckeywords = {\hologo{LaTeX2e}锛屾帓鐗堬紝鏂囨。绫伙紝\CTeX{}}, + ekeywords = {\hologo{LaTeX2e}, Typesetting, Document class, \CTeX{}} +} +\addbibresource{pkuthss.bib} + +\begin{document} + \frontmatter + \pagestyle{empty} + \maketitle + \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 + \include{chap/pkuthss-ack} + \include{chap/origin} +\end{document} + +% vim:ts=4:sw=4 diff --git a/macros/latex/contrib/pkuthss/tex/pkulogo.eps b/macros/latex/contrib/pkuthss/tex/pkulogo.eps new file mode 100644 index 0000000000..35c1a90dfb --- /dev/null +++ b/macros/latex/contrib/pkuthss/tex/pkulogo.eps @@ -0,0 +1,140 @@ +%!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-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 + +% 娣诲姞鏂囧瓧鈥淧EKING 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 diff --git a/macros/latex/contrib/pkuthss/tex/pkulogo.pdf b/macros/latex/contrib/pkuthss/tex/pkulogo.pdf Binary files differnew file mode 100644 index 0000000000..4d4fd3a58a --- /dev/null +++ b/macros/latex/contrib/pkuthss/tex/pkulogo.pdf diff --git a/macros/latex/contrib/pkuthss/tex/pkuthss-gbk.def b/macros/latex/contrib/pkuthss/tex/pkuthss-gbk.def new file mode 100644 index 0000000000..8c39301e69 --- /dev/null +++ b/macros/latex/contrib/pkuthss/tex/pkuthss-gbk.def @@ -0,0 +1,48 @@ +% Peking University dissertation document class +% +% Copyright (c) 2008-2009 solvethis +% Copyright (c) 2010-2013,2015 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-gbk.def +% pkuthss-utf8.def +% pkulogo.eps +% pkuword.eps + +\ProvidesFile{pkuthss-gbk.def} + [2018/07/02 v1.8.0 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@ementor{Directed by\ } +\def\label@ckeywords{关键词:} +\def\label@ekeywords{KEYWORDS:\ } + +\def\titlepagename{封面} +\def\cuniversity{北京大学} +\def\euniversity{Peking University} +\def\cthesisname{博士研究生学位论文} +\def\ethesisname{Doctor Thesis} +\def\cabstractname{摘要} +\def\eabstractname{ABSTRACT} + +\endinput +% vim:ft=tex:ts=2:sw=2 diff --git a/macros/latex/contrib/pkuthss/tex/pkuthss-utf8.def b/macros/latex/contrib/pkuthss/tex/pkuthss-utf8.def new file mode 100644 index 0000000000..b6996850e4 --- /dev/null +++ b/macros/latex/contrib/pkuthss/tex/pkuthss-utf8.def @@ -0,0 +1,48 @@ +% Peking University dissertation document class +% +% Copyright (c) 2008-2009 solvethis +% Copyright (c) 2010-2013,2015 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-gbk.def +% pkuthss-utf8.def +% pkulogo.eps +% pkuword.eps + +\ProvidesFile{pkuthss-utf8.def} + [2018/07/02 v1.8.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@ementor{Directed by\ } +\def\label@ckeywords{鍏抽敭璇嶏細} +\def\label@ekeywords{KEYWORDS:\ } + +\def\titlepagename{灏侀潰} +\def\cuniversity{鍖椾含澶у} +\def\euniversity{Peking University} +\def\cthesisname{鍗氬+鐮旂┒鐢熷浣嶈鏂噠 +\def\ethesisname{Doctor Thesis} +\def\cabstractname{鎽樿} +\def\eabstractname{ABSTRACT} + +\endinput +% vim:ft=tex:ts=2:sw=2 diff --git a/macros/latex/contrib/pkuthss/tex/pkuthss.cls b/macros/latex/contrib/pkuthss/tex/pkuthss.cls new file mode 100644 index 0000000000..9e68dc3585 --- /dev/null +++ b/macros/latex/contrib/pkuthss/tex/pkuthss.cls @@ -0,0 +1,407 @@ +% Peking University dissertation document class +% +% Copyright (c) 2008-2009 solvethis +% Copyright (c) 2010-2018 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-gbk.def +% pkuthss-utf8.def +% pkulogo.eps +% pkuword.eps + +\NeedsTeXFormat{LaTeX2e}[1995/12/01] +\ProvidesClass{pkuthss} + [2018/07/02 v1.8.0 Peking University dissertation document class] + +% eg. `\thss@int@boolopt{spacing}{true}' will expand to: +% \newif\ifthss@opt@spacing \thss@opt@spacingtrue +% \DeclareOption{spacing}{\thss@opt@spacingtrue} +% \DeclareOption{nospacing}{\thss@opt@spacingfalse} +\def\thss@int@boolopt#1#2{ + \expandafter\newif\csname ifthss@opt@#1\endcsname + \@nameuse{thss@opt@#1#2} + \DeclareOption{#1}{\@nameuse{thss@opt@#1true}} + \DeclareOption{no#1}{\@nameuse{thss@opt@#1false}} +} +% Process the encoding options. +\newif\ifthss@opt@gbk \thss@opt@gbktrue +\DeclareOption{GBK}{\thss@opt@gbktrue\PassOptionsToClass{GBK}{ctexbook}} +\DeclareOption{UTF8}{\thss@opt@gbkfalse\PassOptionsToClass{UTF8}{ctexbook}} +% Whether to enable `\Uppercase' (works problematically) in heading marks. +\thss@int@boolopt{uppermark}{false} +% Whether to modify fonts according to school regulation. +\thss@int@boolopt{pkufont}{true} +% Whether to modify footnote format according to school regulation. +\thss@int@boolopt{pkufoot}{true} +% Whether to modify spacing according to school regulation. +\thss@int@boolopt{pkuspace}{true} +% Whether to use some common settings for adjusting spacing. +\thss@int@boolopt{spacing}{true} +% Add PDF bookmark for table of contents. +\thss@int@boolopt{pdftoc}{true} +% Whether to enable the `\spacialchap' command. +\thss@int@boolopt{spechap}{true} +% Whether to automatically set up properties for generated PDF from user +% defined document information (author, title, etc.). +\thss@int@boolopt{pdfprop}{true} +% Whether to disable some infractions intended to make the style less ugly. +\thss@int@boolopt{ugly}{false} +% Pass all other options to `ctexbook' document class. +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}} +% Process all class options now. +\ProcessOptions\relax + +% Prevent fontspec (loaded by xeCJK) from interfering with newtxmath. +\ifthss@opt@pkufont\PassOptionsToPackage{no-math}{fontspec}\fi +% pkuthss is based on ctexbook; we use `xiao 4' as default font size. +\LoadClass[zihao = -4]{ctexbook}[2014/03/06] +% ctex 2.x no longer loads ifpdf and ifxetex by itself. +\RequirePackage{ifpdf, ifxetex} +% Provides support for `key = val' grammar. +\RequirePackage{keyval} +% Graphics support. +\RequirePackage{graphicx}[1999/02/16] +% Provides utilities for setting up page layout. +\RequirePackage{geometry} +% fancyhdr provides utilities for setting up headers and footers. +\RequirePackage{fancyhdr} +% Provides `\uline' used in `\maketitle'. +\RequirePackage{ulem} +% `\AtEndOfClass' used to avoid `PDF destination not defined' with setspace. +\AtEndOfClass{\RequirePackage{hyperref}} + +\ifthss@opt@gbk + \input{pkuthss-gbk.def} + \ifxetex + % No support for XeLaTeX compilation in non-unicode encoding, i.e. GBK. + \ClassError{pkuthss}% + {XeLaTeX compilation is not supported without UTF-8}% + {% + XeLaTeX compilation without UTF-8 is very problematic.\MessageBreak + Therefore please use UTF-8 encoding for the LaTeX code.% + } + \fi +\else + \input{pkuthss-utf8.def} +\fi + +\ifthss@opt@pkufont + % Use Times New Roman / Arial according to school regulation. + % Option used to prevent newtxtext from manipulating footnote marks. + \RequirePackage[defaultsups]{newtxtext} + \RequirePackage[cmintegrals, varg]{newtxmath} +\else + % Provides `\Box' for originauth.tex if newtx is absent. + \RequirePackage{latexsym} +\fi + +\ifthss@opt@pkufoot + % Handle the `Unparsed material' issue with latex/dvipdfmx compilation. + \unless\ifxetex\unless\ifpdf + \newcommand*\pgfsysdriver{pgfsys-dvipdfm.def} + \fi\fi + % Circled text, cf. <https://tex.stackexchange.com/questions/7032/>. + \RequirePackage{tikz} + \newcommand*\thss@int@circled[1]{% + \scalebox{0.8}{\tikz[baseline = (char.base)]{ + \node[ + shape = circle, draw = black, minimum size = 1.25em, inner sep = 0pt + ] (char) {#1}; + }}% + } + % Use circled numbers as footnote symbols. Does not affect title page, but + % footnote is rarely used in dissertation covers ;) + \renewcommand\thefootnote% + {\protect\thss@int@circled{\arabic{footnote}}} + % Provides utility to modify footnote spacing. + % Option used to make sure it does not render interleaf pages totally blank. + \RequirePackage[cleardoublepage = current]{scrextend} + % Set up footnote spacing: whole paragraph indent 2 ccwd, 0.5 ccwd after mark. + \deffootnote{2\ccwd}{0pt}{\thefootnotemark\hspace{0.5\ccwd}} +\fi + +\ifthss@opt@pkuspace + % lineskip / baselineskip = 20 bp / (12 bp * (6 / 5)). + \linespread{1.39}\selectfont + % Provides utilities for setting TOC format; `titles' applied to avoid + % interfering with LaTeX's own title mechanism. + \RequirePackage[titles]{tocloft} + \setlength{\cftbeforechapskip}{6bp plus 1bp} + \setlength{\cftsecindent}{\ccwd} + \setlength{\cftsubsecindent}{2\ccwd} + \setlength{\cftsubsubsecindent}{4\ccwd} + % `caption' modifies font size and separator of captions. `subcaption' + % provides functions similar to `subfigure'/`subfig' but does not clash with + % `tocloft'; it clashes with `subfigure'/`subfig', but the error message will + % say they cannot be used simultaneously. + \RequirePackage{caption, subcaption} + \DeclareCaptionFont{cfive}{\zihao{5}} + \DeclareCaptionLabelSeparator{quad}{\quad} + \captionsetup{font = cfive, labelsep = quad} +\fi + +\ifthss@opt@spacing + % Make spacing nicer in some situations (eg. footnotes and verbatims). + \RequirePackage{setspace} + % Remove superfluous spacing between footnotes. + \setlength{\footnotesep}{0pt} + % Lists often appear to be too sparse when items are just one or two lines + % long. Here we cancel the extra vertical spacing between list items. + % The list margin is adjusted due to Chinese typesetting traditions. + \RequirePackage{enumitem} + \setlist{nolistsep, leftmargin = 1.5\parindent} +\fi + +\ifthss@opt@spechap + % This command is used to start a chapter without numbering, and correctly set + % up the headers and footers in the chapter. + \newcommand\specialchap[1]{% + \chapter*{#1}\addcontentsline{toc}{chapter}{#1} + \markboth{#1}{}\phantomsection% + } +\fi + +\AtBeginDocument{ + % Set up spacing for displayed formulae. + \setlength{\abovedisplayskip}{\belowdisplayshortskip} + \setlength{\belowdisplayskip}{\abovedisplayskip} + + \ifthss@opt@pdftoc + % Add PDF bookmark for table of contents. + \let\thss@tmp@tableofcontents\tableofcontents + \renewcommand{\tableofcontents}{% + \thss@int@pdfmark{\contentsname}{contents} + \thss@tmp@tableofcontents% + } + \fi + + \ifthss@opt@pdfprop + % Automatically generate properties for generated PDF. + % Use English properties to avoid problems with character encodings. + \newcommand*{\setpdfproperties}{% + \hypersetup{ + pdfauthor = {\@eauthor}, pdftitle = {\@etitle}, + pdfsubject = {\euniversity\ \ethesisname}, pdfkeywords = {\@ekeywords} + }% + } + % Set up the properties when generating the title page because the document + % information should have been all defined before this. + \let\thss@tmp@maketitle\maketitle + % NOTE: `\hypersetup' must appear before `\maketitle', otherwise it might + % not act as expected. + \renewcommand\maketitle{\setpdfproperties\thss@tmp@maketitle} + \fi +} + +% eg. `\thss@int@infoitema{ctitle}' will expand to: +% \def\ctitle#1{\def\@ctitle{#1}} +% \define@key{thss@info}{ctitle}{\ctitle{#1}} +\def\thss@int@infoitema#1{ + \@namedef{#1}##1{\@namedef{@#1}{##1}} + \define@key{thss@info}{#1}{\@nameuse{#1}{##1}} +} +% eg. `\thss@int@infoitemb{cuniversity}' will expand to: +% \define@key{thss@info}{cuniversity}{\def\cuniversity{#1}} +\def\thss@int@infoitemb#1{ + \define@key{thss@info}{#1}{\@namedef{#1}{##1}} +} +% Set up document information entries. +\thss@int@infoitema{ctitle} +\thss@int@infoitema{etitle} +\thss@int@infoitema{cauthor} +\thss@int@infoitema{eauthor} +\thss@int@infoitema{studentid} +\thss@int@infoitema{date} +\thss@int@infoitema{school} +\thss@int@infoitema{cmajor} +\thss@int@infoitema{emajor} +\thss@int@infoitema{direction} +\thss@int@infoitema{cmentor} +\thss@int@infoitema{ementor} +\thss@int@infoitema{ckeywords} +\thss@int@infoitema{ekeywords} +\thss@int@infoitemb{cuniversity} +\thss@int@infoitemb{euniversity} +\thss@int@infoitemb{cthesisname} +\thss@int@infoitemb{ethesisname} +\thss@int@infoitemb{cabstractname} +\thss@int@infoitemb{eabstractname} +% Set up document information using the `key = value' grammar. +\newcommand*{\pkuthssinfo}[1]{\setkeys{thss@info}{#1}} + +% Set up page layout. +\geometry{ + a4paper, hmargin = 2.6cm, top = 2.92cm, bottom = 3.03cm, + headheight = 0.45cm, headsep = 0.55cm, footskip = 1.05cm +} + +% Set up chapter/section/... captions. +% The `*skip' values are not supposed to be modified by the `ugly' option: +% the actual style of the school's guide and Word template seem to be different +% from the written specification (when applied verbatim in LaTeX), and here the +% actual style is used. +\setcounter{secnumdepth}{3} +\setcounter{tocdepth}{2} +\ctexset{ + chapter = { + beforeskip = {0bp}, afterskip = {18bp plus 0.2ex}, + nameformat = {}, titleformat = {} + }, section = + {beforeskip = {20bp plus 1ex minus 0.2ex}, afterskip = {6bp plus 0.2ex}}, + subsection = + {beforeskip = {12bp plus 1ex minus 0.2ex}, afterskip = {6bp plus 0.2ex}}, + subsubsection = + {beforeskip = {12bp plus 1ex minus 0.2ex}, afterskip = {6bp plus 0.2ex}} +} +\ifthss@opt@ugly + \ctexset{ + chapter = {format = {\zihao{3}\bfseries\centering}}, + section = {format = {\zihao{4}\bfseries}}, + subsection = {format = {\fontsize{13bp}{15.6bp}\selectfont\bfseries}}, + subsubsection = {format = {\zihao{-4}\bfseries}} + } +\else + \ctexset{ + chapter = {format = {\zihao{-2}\bfseries\centering}}, + section = {format = {\zihao{-3}\bfseries}}, + subsection = {format = {\zihao{4}\bfseries}}, + subsubsection = {format = {\bfseries}} + } +\fi + +% `\MakeUppercase' works problematically. +% eg. it converts `\cite{ctex}' into `\cite{CTEX}'. +% This option can disable `\MakeUppercase' in left/right heading marks. +\ifthss@opt@uppermark + \def\thss@int@setcase#1{#1} +\else + % Code copied from fancyhdr's `\nouppercase', with the redefinition of + % `\uppercase' dropped to avoid disrupting CJKutf8. + % cf. <https://code.google.com/p/ctex-kit/issues/detail?id=147>. + \def\thss@int@setcase#1{% + \let\MakeUppercase\relax% + \expandafter\let\csname MakeUppercase \endcsname\relax% + #1% + } +\fi +% The actual page style setup. +\fancypagestyle{plain}{ + \fancyhf{}\renewcommand*{\headrulewidth}{0.75bp} + \fancyfoot[C]{\zihao{5}\normalfont{\thepage}} + \if@twoside + \fancyhead[CE]{\zihao{5}\normalfont{\cuniversity\cthesisname}} + \fancyhead[CO]{\zihao{5}\normalfont\thss@int@setcase{\leftmark}} + \else + \fancyhead[C]{\zihao{5}\normalfont\thss@int@setcase{\leftmark}} + \fi +} +\pagestyle{plain} + +% This places a bookmark pointing to somewhere near the page header; +% Result of simple `\chapter{...} \pdfbookmark{...}' does not look nice, +% because the bookmark will point to somewhere below the chapter mark. +\def\thss@int@pdfmark#1#2{% + \if@openright\cleardoublepage\else\clearpage\fi + \pdfbookmark[0]{#1}{#2}% +} + +% Usage: \thss@int@fillinblank{(number of lines)}{(line width)}{(contents)} +\def\thss@int@fillinblank#1#2#3{% + \makebox[0pt][l]{\parbox[t]{#2}{\centering{#3}}}\mbox{}% + \parbox[t]{#2}{% + \newcount\thss@tmp@linecount + \thss@tmp@linecount=#1 + \loop\ifnum\thss@tmp@linecount>0 + % Fill specified space with underline on the bottom line. `\underline' + % draws line on the baseline (not the bottom line), and this is why + % `\uline' is used here instead. + \ifnum\thss@tmp@linecount=1 + \uline{\makebox[#2]{}} + \else + \uline{\makebox[#2]{}}\\ + \fi + \advance\thss@tmp@linecount by -1\relax + \repeat% + }% +} + +% Set up format of the title page (cover). +\renewcommand{\maketitle}{% + \thss@int@pdfmark{\titlepagename}{titlepage} + % Make the title page centered. + \begin{titlepage}\begin{center} + % Emblem and inscription of the university, and type of thesis. + {% + \zihao{1}% + \includegraphics[height = 2.4em]{pkulogo}\hspace{0.4em}% + \raisebox{0.4em}{\includegraphics[height = 1.6em]{pkuword}}\\[0.8em] + {\bfseries{\cthesisname}}% + } + \vfill + % Title of the thesis. + {% + \zihao{2}{\label@ctitle}\linespread{1.6}\selectfont% + \thss@int@fillinblank{2}{0.64\textwidth}{\textbf{\@ctitle}}% + } + \vfill + % Information about the author. + {% + % 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} & + \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@studentid} \\ + {\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} & + \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@direction} \\ + {\bfseries\label@cmentor} & + \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@cmentor} \\ + \end{tabular}% + } + \vfill + % Date. + {\zihao{-2}\@date} + \end{center}\end{titlepage}% +} + +% Typeset the Chinese abstract. +\newenvironment{cabstract}{% + \thss@int@pdfmark{\cabstractname}{cabstract} + \chapter*{\cabstractname}\markboth{\cabstractname}{}% +}{% Keywords at the bottom of the page. + \vfill\noindent\textbf{\label@ckeywords}{\@ckeywords}% +} + +% Typeset the English abstract. +\newenvironment{eabstract}{% + \thss@int@pdfmark{\eabstractname}{eabstract} + \chapter*{\sffamily\@etitle}\markboth{\eabstractname}{} + \begin{center} + {\@eauthor} ({\@emajor})\\ + {\label@ementor}{\@ementor}\\[2em] + \textbf{\sffamily\eabstractname} + \end{center}\par% +}{% Keywords at the bottom of the page. + \vfill\noindent\textbf{\label@ekeywords}{\@ekeywords}% +} + +\endinput +% vim:ft=tex:ts=2:sw=2 diff --git a/macros/latex/contrib/pkuthss/tex/pkuword.eps b/macros/latex/contrib/pkuthss/tex/pkuword.eps new file mode 100644 index 0000000000..88bbca5d12 --- /dev/null +++ b/macros/latex/contrib/pkuthss/tex/pkuword.eps @@ -0,0 +1,267 @@ +%!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-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 diff --git a/macros/latex/contrib/pkuthss/tex/pkuword.pdf b/macros/latex/contrib/pkuthss/tex/pkuword.pdf Binary files differnew file mode 100644 index 0000000000..d8bfa5fd17 --- /dev/null +++ b/macros/latex/contrib/pkuthss/tex/pkuword.pdf |