Aesthetic improvements.

This commit is contained in:
Casper Ti. Vector 2015-04-27 14:26:07 +08:00
parent 19699bfb01
commit 511b113133
9 changed files with 44 additions and 45 deletions

View File

@ -78,7 +78,7 @@
若要避免章末空白页,请在调用 pkuthss 文档类时加入 \texttt{openany} 选项。
如果编译时不出参考文献,
请参考 \texttt{texdoc pkuthss} “问题及其解决”一章
请参考 \texttt{texdoc pkuthss}“问题及其解决”一章
“其它可能存在的问题”一节中关于 biber 的说明。
}

View File

@ -41,7 +41,7 @@
还需要 biblatex 宏包\supercite{biblatex}
\item 如果需要对中文文献进行按汉语拼音的排序的话,
还需要 biber 程序\supercite{biber}
\item 如果默认的文献列表和引用样式的话,
\item 如果使用默认的文献列表和引用样式的话,
还需要作者编写的 biblatex 样式
biblatex-caspervector\supercite{biblatex-caspervector}
\item 如果需要使用 Makefile 来实现自动编译,还需要 Make 工具;

View File

@ -43,14 +43,13 @@
是否在页眉中将章节名中的小写字母转换为大写字母。
就目前而言,
这样的转换存在着一些较为严重的缺陷\footnote{%
准确地说是 \texttt{\string\MakeUppercase} 宏的问题
准确地说是 \texttt{\string\MakeUppercase} 宏的问题
其在某些地方的转换不够健壮,
例如 \texttt{\string\cite\string{ctex\string}}
会被转换成 \texttt{\string\cite\string{CTEX\string}}%
}
因此不建议使用。
基于上述考虑,%
\myemph{%
基于上述考虑,\myemph{%
pkuthss 文档类默认启用 \texttt{nouppermark} 选项,
即在不在页眉中使用大写的章节名%
}
@ -152,8 +151,7 @@
\item \textbf{\texttt{[no]pdfprop}}
是否自动根据设定的论文文档信息(如作者、标题等)
设置生成的 pdf 文档的相应属性。%
\myemph{%
设置生成的 pdf 文档的相应属性。\myemph{%
注意:
该选项实际上是在 \texttt{\string\maketitle} 时生效的,
这是因为考虑到%
@ -255,9 +253,8 @@
或自身存储文档信息的命令名(不带反斜杠)。
当文档信息的内容包含了逗号等有干扰的字符时,
可以用大括号将这一项文档信息的全部内容括起来。%
\myemph{%
我们推荐用户总用大括号将文档信息的内容括起来,
可以用大括号将这一项文档信息的全部内容括起来。\myemph{%
我们建议用户总用大括号将文档信息的内容括起来,
以避免很多不必要的麻烦。%
}
@ -279,8 +276,7 @@
\texttt{\bfseries\string\specialchap} 命令%
用于开始不进行标号但计入目录的一章,
并合理安排其页眉。%
\myemph{%
并合理安排其页眉。\myemph{%
注意:
需要启用 pkuthss-extra 宏包的 \texttt{spechap} 选项%
才能使用此命令。
@ -297,7 +293,7 @@
因此通常不需要用户自己使用;
但用户有时可能不需要输出标题页,
从而不会调用 \verb|\maketitle| 命令,
此时就需要在设定完文档信息之后调用 \verb|\setpdfproperties|。
此时就需要在设定完文档信息之后调用 \verb|\setpdfproperties|。%
\myemph{%
注意:
需要启用 pkuthss-extra 宏包的 \texttt{pdfprop} 选项%
@ -306,10 +302,10 @@
\subsection{从其它文档类和宏包继承的功能}\label{ssec:thirdparty}
pkuthss 文档类建立在 ctexbook\supercite{ctex} 文档类的基础上,
并调用了 CJKfntef、%
graphicx\supercite{graphicx}、geometry\supercite{geometry}%
fancyhdr\supercite{fancyhdr} 等几个宏包;
pkuthss 文档类建立在 ctexbook\supercite{ctex} 文档类上,
并调用了 CJKfntef、graphicx\supercite{graphicx}%
geometry\supercite{geometry} fancyhdr\supercite{fancyhdr} %
等几个宏包;
使用 \hologo{pdfLaTeX} 方式编译 GBK 编码的源文件时还会调用
xCJK2uni\supercite{xCJK2uni} 宏包。
因此ctexbook 文档类和这些宏包所提供的功能均可以使用。

View File

@ -3,7 +3,7 @@
% Documentation for pkuthss.
%
% Copyright (c) 2008-2009 solvethis
% Copyright (c) 2010-2014 Casper Ti. Vector
% Copyright (c) 2010-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
@ -103,7 +103,7 @@ data source .../par-xxxxxxxx/cache-xxxxxxxx/
\end{Verbatim}
的错误。
这种错误一般是 biber 在自解压阶段被终止之后,
未删除临时目录 \verb|.../par-xxxxxxxx/| 就重新运行 biber 时出现。
未删除 \verb|.../par-xxxxxxxx/| 这个临时目录就重新运行 biber 时出现。
遇到这种情况时,删除掉上述临时目录及其所有内容,
再重新运行 biber 通常便可解决问题。
@ -133,7 +133,7 @@ See the caption package documentation for explanation.
上提出,
或通过电子邮件\footnote%
{\href{mailto:CasperVector@gmail.com}{\texttt{CasperVector@gmail.com}}.}%
告知 Casper Ti. Vector
告知模版维护者
上述三种反馈方法中,建议用户尽量采用靠前的方法。
在进行反馈时,请尽量确保已经仔细阅读本文档中的说明。

View File

@ -45,7 +45,7 @@ pkuthss 文档模版由四部分构成:
说明文档即本文档,
在安装(见第 \ref{sec:req} 节)之后应该可以用 \hologo{TeX} 系统提供的
\verb|texdoc| 命令调出:
\begin{Verbatim}[frame=single]
\begin{Verbatim}[frame = single]
texdoc pkuthss
\end{Verbatim}
\item \textbf{文档模版}

View File

@ -12,7 +12,7 @@
@online{biblatex,
author = {Lehman, Philipp},
title = {The biblatex Package: Programmable Bibliographies and Citations (Version 2.8a)},
title = {The biblatex Package: Programmable Bibliographies and Citations (Ver.\ 2.8a)},
type = {M/OL},
date = {2013-11-25},
url = {http://mirror.ctan.org/macros/latex/exptl/biblatex/},

View File

@ -37,8 +37,10 @@
\usepackage{fancyvrb}
\usepackage{hologo}
\setlength{\hfuzz}{3pt}
\setlength{\bibitemsep}{3bp}
\renewcommand*{\bibfont}{\zihao{5}\linespread{1.27}\selectfont}
\newcommand{\myemph}[1]{\emph{\textcolor{red}{#1}}}
\newcommand{\unemph}[1]{\textup{\textcolor{black}{#1}}}
\newcommand{\docversion}{v1.5.5}
@ -47,7 +49,7 @@
cthesisname = {本科生毕业论文}, ethesisname = {Undergraduate Thesis},
ctitle = {北京大学论文文档模版\\pkuthss \docversion},
etitle = {%
The PKU dissertation document class\texorpdfstring{\\}{: }%
PKU dissertation document class\texorpdfstring{\\}{: }%
pkuthss \docversion%
},
cauthor = {盖茨波·钛·维克托},

View File

@ -55,8 +55,8 @@
\pkuthssextra@int@boolopt{pdftoc}{true}
% Whether to enable the `\spacialchap' command.
\pkuthssextra@int@boolopt{spechap}{true}
% Whether to automatically set properties for generated PDF from user defined
% document information (author, title, etc.).
% Whether to automatically set up properties for generated PDF from user
% defined document information (author, title, etc.).
\pkuthssextra@int@boolopt{pdfprop}{true}
% Whether to use coloured hyperlinks in generated PDF.
\pkuthssextra@int@boolopt{colorlinks}{true}
@ -79,7 +79,8 @@
}
% Use circled numbers as footnote symbols. Does not affect title page, but
% footnote is rarely used in dissertation covers ;)
\renewcommand\thefootnote{\protect\pkuthssextra@int@circled{\arabic{footnote}}}
\renewcommand\thefootnote%
{\protect\pkuthssextra@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}
@ -108,14 +109,14 @@
\fi
\ifpkuthssextra@opt@spacing
% Automatically ignore spaces between CJK characters and preserve spaces in other
% situations. XeCJK itself will handle this issue, therefore we do not use
% Automatically ignore spaces between CJK characters, or otherwise preserve
% spaces. XeCJK itself will handle this issue, therefore we do not use
% `CJKspace' when using XeLaTeX.
\unless\ifxetex\RequirePackage{CJKspace}\fi
% Make spacing nicer in some situations (eg. footnotes and verbatims).
\RequirePackage{setspace}
% 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.
% 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.
\RequirePackage{enumitem}
\setlist{nolistsep}
\fi
@ -135,7 +136,7 @@
\ifpkuthssextra@opt@spechap
% This command is used to start a chapter without numbering, and correctly set
% the headers and footers in the chapter.
% up the headers and footers in the chapter.
\newcommand\specialchap[1]{
\chapter*{#1}\addcontentsline{toc}{chapter}{#1}
\markboth{#1}{}\phantomsection
@ -164,7 +165,7 @@
pdfsubject = {\euniversity\ \ethesisname}, pdfkeywords = {\@ekeywords}
}
}
% Set the properties when generating the title page because the document
% Set up the properties when generating the title page because the document
% information should have been all defined before this.
\let\pkuthssextra@tmp@maketitle\maketitle
% NOTE: `\hypersetup' must appear before `\maketitle', otherwise it might not
@ -176,8 +177,8 @@
% Use coloured hyperlinks in generated PDF.
\hypersetup{colorlinks = true, allcolors = blue}
\else
% Set hyperlink colour to black in order to prevent hyperlinks from being too
% hard-to-recognise in printed thesis.
% Set hyperlink colour to black in order to prevent hyperlinks from being
% too hard-to-recognise in printed thesis.
\hypersetup{hidelinks}
\fi
}

View File

@ -62,15 +62,15 @@
% Process all class options now.
\ProcessOptions\relax
% pkuthss is based on ctexbook; We use `xiao 4' as default font size.
% CJKfntef provides \CJKunderline used in \maketitle.
% fancyhdr provides utilities for setting headers and footers.
% pkuthss is based on ctexbook; we use `xiao 4' as default font size.
% CJKfntef provides `\CJKunderline' used in `\maketitle'.
% fancyhdr provides utilities for setting up headers and footers.
\LoadClass[hyperref, cs4size, fntef, fancyhdr]{ctexbook}[2011/03/11]
% Provide support for `key = val' grammar.
% Provides support for `key = val' grammar.
\RequirePackage{keyval}
% Graphics support.
\RequirePackage{graphicx}[1999/02/16]
% Provide utilities for setting page layout.
% Provides utilities for setting up page layout.
\RequirePackage{geometry}
% Whether to enable the default extra settings.
\ifpkuthss@opt@extra\RequirePackage{pkuthss-extra}\fi
@ -93,7 +93,7 @@
\fi
\AtEndOfClass{
% Setting chinese captions and labels.
% Set up chinese captions and labels.
\ifpkuthss@opt@gbk\input{pkuthss-gbk.def}
\else\input{pkuthss-utf8.def}
\fi
@ -179,7 +179,7 @@
\def\pkuthss@int@infoitemb#1{
\define@key{pkuthss@info}{#1}{\@namedef{#1}{##1}}
}
% Setting document information entries.
% Set up document information entries.
\pkuthss@int@infoitema{ctitle}
\pkuthss@int@infoitema{etitle}
\pkuthss@int@infoitema{cauthor}
@ -200,7 +200,7 @@
\pkuthss@int@infoitemb{ethesisname}
\pkuthss@int@infoitemb{cabstractname}
\pkuthss@int@infoitemb{eabstractname}
% Set document information using the `key = value' grammar.
% Set up document information using the `key = value' grammar.
\newcommand*{\pkuthssinfo}[1]{\setkeys{pkuthss@info}{#1}}
% Usage: \pkuthss@int@fillinblank{(number of lines)}{(line width)}{(contents)}
@ -228,7 +228,7 @@
% Add PDF bookmark for the title page.
\pdfbookmark[1]{\titlepagename}{titlepage}
\begin{titlepage}
% It will be more nice to use this line skip level in the title page.
% It will be nicer to use this line skip level in the title page.
\linespread{1.6}\selectfont
% Make the title page centered.
\begin{center}
@ -273,7 +273,7 @@
\end{titlepage}
}
% Typesetting the Chinese abstract.
% Typeset the Chinese abstract.
\newenvironment{cabstract}{
\cleardoublepage
\pdfbookmark[1]{\cabstractname}{cabstract}
@ -283,7 +283,7 @@
\vfill\noindent\textbf{\label@ckeywords}{\@ckeywords}
}
% Typesetting the English abstract.
% Typeset the English abstract.
\newenvironment{eabstract}{
\cleardoublepage
\pdfbookmark[1]{\eabstractname}{eabstract}