From bad81a00a2943d1fb7ff2de3d0ae48c049dac302 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sat, 16 Nov 2019 03:00:48 +0000 Subject: CTAN sync 201911160300 --- .../pkuthss/doc/readme/chap/pkuthss-chap2.tex | 71 +++++++++++----------- 1 file changed, 35 insertions(+), 36 deletions(-) (limited to 'macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-chap2.tex') diff --git a/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-chap2.tex b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-chap2.tex index 1ab1b3e9cd..4455b376b7 100644 --- a/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-chap2.tex +++ b/macros/latex/contrib/pkuthss/doc/readme/chap/pkuthss-chap2.tex @@ -1,7 +1,7 @@ % Documentation for pkuthss. % % Copyright (c) 2008-2009 solvethis -% Copyright (c) 2010-2018 Casper Ti. Vector +% Copyright (c) 2010-2019 Casper Ti. Vector % % This work may be distributed and/or modified under the conditions of the % LaTeX Project Public License, either version 1.3 of this license or (at @@ -46,7 +46,7 @@ }。 \item \textbf{\texttt{[no]pkufont}}: - 是否根据学校对论文格式的要求\mbox{\supercite{pku-thesisstyle}}% + 是否根据学校对论文格式的要求\cupercite{pku-thesisstyle}% 将西文字体改为类似于 Times New Roman / Arial 的字体。 \item \textbf{\texttt{[no]pkufoot}}\footnote{% @@ -54,7 +54,7 @@ \texttt{[no]footfmt} 选项; 更改名称是为了使文档类选项名更加规则。% }: - 是否根据学校对论文格式的要求\mbox{\supercite{pku-thesisstyle}}% + 是否根据学校对论文格式的要求\cupercite{pku-thesisstyle}% 修改和脚注相关的一些格式。 具体地说,启用 \verb|pkufoot| 选项后会进行以下几项设置: \begin{itemize} @@ -64,7 +64,7 @@ \end{itemize} \item \textbf{\texttt{[no]pkuspace}}: - 是否根据学校对论文格式的要求\mbox{\supercite{pku-thesisstyle}}% + 是否根据学校对论文格式的要求\cupercite{pku-thesisstyle}% 修改排版中的一些间距及相关设置。 具体地说,启用 \verb|pkuspace| 选项后会按 \parencite{pku-thesisstyle} 中的要求修改以下几项设置: @@ -89,8 +89,6 @@ 是否采用一些常用的调整间距的额外版式设定。 具体地说,启用 \verb|spacing| 选项后会进行以下几项设置: \begin{itemize} - \item 自动忽略 CJK 文字之间的空白而 - 保留(CJK 文字与西文之间等的)其它空白。 \item 调用 setspace 宏包以使某些细节处的空间安排更美观。 \item 采用比 \hologo{LaTeX} 默认设定更加紧密的枚举环境% \footnote{% @@ -100,6 +98,7 @@ 启用 \texttt{spacing} 选项后, 将去掉这些环境中额外增加的(垂直)间隔。% }。 + \item 调整枚举环境的缩进,以适应中文排版中的习惯。 \end{itemize} \item \textbf{\texttt{[no]spechap}}\footnote{% @@ -139,13 +138,13 @@ 例如,如果须要使用 UTF-8 编码撰写论文, 则应在载入 pkuthss 文档类时加上 \verb|UTF8| 选项: -\begin{Verbatim}[frame = single] +\begin{Verbatim} \documentclass[UTF8, ...]{pkuthss} % “...”代表其它的选项。 \end{Verbatim} 又例如,文档默认情况下是双面模式,每章都从右页(奇数页)开始。 如果希望改成一章可以从任意页开始,可以这样设置: -\begin{Verbatim}[frame = single] +\begin{Verbatim} \documentclass[openany, ...]{pkuthss} % 每章从任意页开始。 \end{Verbatim} @@ -153,7 +152,7 @@ \subsection{设定文档信息的命令} 这一类命令的语法为 -\begin{Verbatim}[frame = single] +\begin{Verbatim} \commandname{具体信息} % commandname 为具体命令的名称。 \end{Verbatim} @@ -176,7 +175,7 @@ \end{itemize} 例如,如果要设定专业为“化学”(“Chemistry”),则可以使用以下命令: -\begin{Verbatim}[frame = single] +\begin{Verbatim} \cmajor{化学} \emajor{Chemistry} \end{Verbatim} @@ -184,7 +183,7 @@ \subsection{自身存储文档信息的命令} 这一类命令的语法为 -\begin{Verbatim}[frame = single] +\begin{Verbatim} % commandname 为具体的命令名。 \renewcommand{\commandname}{具体信息} \end{Verbatim} @@ -202,7 +201,7 @@ 例如, 如果要设定论文的类别为“本科生毕业论文”(“Undergraduate Thesis”), 则可以使用以下命令: -\begin{Verbatim}[frame = single] +\begin{Verbatim} \renewcommand{\cthesisname}{本科生毕业论文} \renewcommand{\ethesisname}{Undergraduate Thesis} \end{Verbatim} @@ -210,7 +209,7 @@ \subsection{以“key = value”格式设置文档信息} 用户可以通过 \verb|\pkuthssinfo| 命令集中设定文档信息,其语法为: -\begin{Verbatim}[frame = single] +\begin{Verbatim} % key1、key2、value1、value2 等为具体文档信息的项目名和内容。 \pkuthssinfo{key1 = value1, key2 = value2, ...} \end{Verbatim} @@ -224,7 +223,7 @@ } 例如,前面提到的文档信息的设置可以集中地写成: -\begin{Verbatim}[frame = single, tabsize = 4] +\begin{Verbatim} \pkuthssinfo{ ..., % “...”代表其它的设定。 cthesisname = {本科生毕业论文}, @@ -260,46 +259,46 @@ \section{从其它文档类和宏包继承的功能}\label{sec:thirdparty} -pkuthss 文档类建立在 ctexbook\supercite{ctex} 文档类之上, -并调用了 geometry\supercite{geometry}、fancyhdr\supercite{fancyhdr}、% -hyperref\supercite{hyperref}、graphicx\supercite{graphicx} -和 ulem\supercite{ulem} 等几个宏包。 +pkuthss 文档类建立在 ctexbook\cupercite{ctex} 文档类之上, +并调用了 geometry\cupercite{geometry}、fancyhdr\cupercite{fancyhdr}、% +hyperref\cupercite{hyperref}、graphicx\cupercite{graphicx} +和 ulem\cupercite{ulem} 等几个宏包。 因此,ctexbook 文档类和这些宏包所提供的功能均可以使用。 例如,用户如果想将目录的标题改为“目{\quad\quad}录”, 则可以使用 ctexbook 文档类提供的 \verb|\ctexset| 命令: -\begin{Verbatim}[frame = single] +\begin{Verbatim} \ctexset[contentsname = {目{\quad\quad}录}] \end{Verbatim} 在默认的配置下,% -pkuthss 文档模版使用作者编写的 biblatex\supercite{biblatex} 样式% -\mbox{\supercite{biblatex-caspervector}}进行参考文献和引用的排版, +pkuthss 文档模版使用作者编写的 biblatex\cupercite{biblatex} 样式% +\cupercite{biblatex-caspervector}进行参考文献和引用的排版, 用户可以使用它以及 biblatex 本身所提供的功能。 例如,用户可以分别使用 \verb|\cite|、\verb|\parencite| 和 \verb|\supercite| 生成未格式化的、带方括号的和上标且带方括号的引用标记: -\begin{Verbatim}[frame = single] +\begin{Verbatim} \cite{ctex},\parencite{ctex},\supercite{ctex} \end{Verbatim} 在本文中将产生“\cite{ctex},\parencite{ctex},\supercite{ctex}”。 -就目前而言,在\myemph{除 3.0--3.3 之外版本的} biblatex 中, -通过更复杂的设置,还可以满足例如被引用的文献按照引用顺序排序, +就目前而言,在 biblatex 中,通过更复杂的设置, +还可以满足例如被引用的文献按照引用顺序排序, 而未引用的文献按照西文文献在前、中文文献在后排序这样的需求, -详见 biblatex-caspervector 的文档\supercite{biblatex-caspervector}。 +详见 biblatex-caspervector 的文档\cupercite{biblatex-caspervector}。 除此之外,pkuthss 文档类还可能调用以下这些宏包: \begin{itemize} \item 启用 \verb|pkufont| 选项时会调用 - newtxtext 和 newtxmath\supercite{newtx} 宏包, - 否则会调用 latexsym\supercite{latexsym} 宏包。 + newtxtext 和 newtxmath\cupercite{newtx} 宏包, + 否则会调用 latexsym\cupercite{latexsym} 宏包。 \item 启用 \verb|pkufoot| 选项时会调用 - tikz\supercite{tikz} 和 scrextend\supercite{scrextend} 宏包。 + tikz\cupercite{tikz} 和 scrextend\cupercite{scrextend} 宏包。 \item 启用 \verb|pkuspace| 选项时会调用 - tocloft\supercite{tocloft}、caption\supercite{caption} 和 - subcaption\supercite{subcaption} 宏包。 + tocloft\cupercite{tocloft}、caption\cupercite{caption} 和 + subcaption\cupercite{subcaption} 宏包。 \item 启用 \verb|spacing| 选项时会调用 setspace 和 - enumitem\supercite{enumitem} 宏包。 + enumitem\cupercite{enumitem} 宏包。 \end{itemize} 因此在启用相应选项时,用户可以使用对应宏包所提供的功能。 @@ -311,7 +310,7 @@ pkuthss 文档模版的实现是简洁、清晰、灵活的。 通过修改 pkuthss 文档类的源文件进行自定义。 在目前常用的 \hologo{TeX} 系统中, 假设 pkuthss 的说明文档所在目录具有下述形式的路径: -\begin{Verbatim}[frame = single] +\begin{Verbatim} # 说明文档所在目录($TEXMFDIST 的形式见下面几行): $TEXMFDIST/doc/latex/pkuthss/ # 若用户使用 Windows 下的 TeX Live 系统,则 $TEXMFDIST 一般类似于: @@ -320,7 +319,7 @@ C:\texlive\2015\texmf-dist /usr/local/texlive/2015/texmf-dist \end{Verbatim} 则其源文件所在目录应该位于以下目录: -\begin{Verbatim}[frame = single] +\begin{Verbatim} $TEXMFDIST/tex/latex/pkuthss/ \end{Verbatim} @@ -340,16 +339,16 @@ $TEXMFDIST/tex/latex/pkuthss/ 此时,用户可以修改 \verb|pkuthss.cls| 里 \verb|\maketitle| 定义中 \verb|\thss@int@fillinblank| 宏的参数来改变 带下划线的空白的行数和行宽,其语法为: -\begin{Verbatim}[frame = single] +\begin{Verbatim} \thss@int@fillinblank{行数}{行宽}{内容} \end{Verbatim} 例如,如果“研究方向”一栏需要两行的空白, 可以将 \verb|pkuthss.cls| 里的 -\begin{Verbatim}[frame = single] +\begin{Verbatim} \thss@int@fillinblank{1}{\thss@tmp@len}{\kaishu\@direction} \end{Verbatim} 改为 -\begin{Verbatim}[frame = single] +\begin{Verbatim} \thss@int@fillinblank{2}{\thss@tmp@len}{\kaishu\@direction} \end{Verbatim} 当然,为了美观,可以将多于一行的部分移到封面中作者信息部分的最下方。 -- cgit v1.2.3