From d3cdb9906f81fa4900e26ff77c8b6549a4794f73 Mon Sep 17 00:00:00 2001 From: "Casper Ti. Vector" Date: Thu, 1 Aug 2019 23:45:25 +0800 Subject: [PATCH] readme: use \mbox around \supercite by default. --- doc/readme/chap/pkuthss-chap1.tex | 12 ++++++------ doc/readme/chap/pkuthss-chap2.tex | 32 +++++++++++++++---------------- doc/readme/chap/pkuthss-chap3.tex | 8 ++++---- doc/readme/chap/pkuthss-intro.tex | 8 ++++---- doc/readme/pkuthss.tex | 1 + 5 files changed, 31 insertions(+), 30 deletions(-) diff --git a/doc/readme/chap/pkuthss-chap1.tex b/doc/readme/chap/pkuthss-chap1.tex index 34bf71a..45cce59 100644 --- a/doc/readme/chap/pkuthss-chap1.tex +++ b/doc/readme/chap/pkuthss-chap1.tex @@ -33,14 +33,14 @@ \begin{itemize} \item 一个基本的 \hologo{TeX} 发行版。 \item CJK 或 XeCJK(供 \hologo{XeLaTeX} 使用)宏包。 - \item ctex\supercite{ctex} 宏包(提供了 ctexbook 文档类)。 + \item ctex\cupercite{ctex} 宏包(提供了 ctexbook 文档类)。 \item 中文字体。 \item 如果要使用 biblatex 进行文献列表和引用的排版的话, - 还需要 biblatex\supercite{biblatex} 宏包; + 还需要 biblatex\cupercite{biblatex} 宏包; \item 如果要对中文文献进行按汉语拼音的排序的话, - 还需要 biber\supercite{biber} 程序。 + 还需要 biber\cupercite{biber} 程序。 \item 如果使用默认的文献列表和引用样式的话,还需要作者编写的 biblatex 样式 - (biblatex-caspervector\supercite{biblatex-caspervector}), + (biblatex-caspervector\cupercite{biblatex-caspervector}), 此样式要求使用 biber 程序。 \item 如果须要使用 Makefile 来实现自动编译,还需要 Make 工具; 但如果使用由批处理实现的伪“Makefile”就不用了。 @@ -109,7 +109,7 @@ texdoc pkuthss \begin{itemize} \item \verb|copyright.tex|:版权声明部分。 \item \verb|originauth.tex|: - 原创性声明和使用授权说明部分\supercite{pku-originauth}。 + 原创性声明和使用授权说明部分\cupercite{pku-originauth}。 \end{itemize} \myemph{% 注:pkuthss 文档模版支持排版学校要求的二维码, @@ -121,7 +121,7 @@ texdoc pkuthss 目录,目前包含比较常用的字体配置: \begin{itemize} \item \verb|ctexopts.cfg|、\verb|ctex-fontset-pkuthss.def|: - 适用于 2.0 及以后版本的 ctex\supercite{ctex} 宏包。 + 适用于 2.0 及以后版本的 ctex\cupercite{ctex} 宏包。 \item \verb|ctex-xecjk-windows.def|: 适用于 2.0 以前版本的 ctex 宏包。 \end{itemize} diff --git a/doc/readme/chap/pkuthss-chap2.tex b/doc/readme/chap/pkuthss-chap2.tex index d68eb8e..e59b4b8 100644 --- a/doc/readme/chap/pkuthss-chap2.tex +++ b/doc/readme/chap/pkuthss-chap2.tex @@ -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} 中的要求修改以下几项设置: @@ -259,10 +259,10 @@ \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\supercite{fancyhdr}、% +hyperref\cupercite{hyperref}、graphicx\supercite{graphicx} +和 ulem\cupercite{ulem} 等几个宏包。 因此,ctexbook 文档类和这些宏包所提供的功能均可以使用。 例如,用户如果想将目录的标题改为“目{\quad\quad}录”, @@ -272,8 +272,8 @@ hyperref\supercite{hyperref}、graphicx\supercite{graphicx} \end{Verbatim} 在默认的配置下,% -pkuthss 文档模版使用作者编写的 biblatex\supercite{biblatex} 样式% -\mbox{\supercite{biblatex-caspervector}}进行参考文献和引用的排版, +pkuthss 文档模版使用作者编写的 biblatex\cupercite{biblatex} 样式% +\cupercite{biblatex-caspervector}进行参考文献和引用的排版, 用户可以使用它以及 biblatex 本身所提供的功能。 例如,用户可以分别使用 \verb|\cite|、\verb|\parencite| 和 \verb|\supercite| 生成未格式化的、带方括号的和上标且带方括号的引用标记: @@ -285,20 +285,20 @@ pkuthss 文档模版使用作者编写的 biblatex\supercite{biblatex} 样式% 就目前而言,在\myemph{除 3.0--3.3 之外版本的} 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\supercite{scrextend} 宏包。 \item 启用 \verb|pkuspace| 选项时会调用 - tocloft\supercite{tocloft}、caption\supercite{caption} 和 - subcaption\supercite{subcaption} 宏包。 + tocloft\cupercite{tocloft}、caption\supercite{caption} 和 + subcaption\cupercite{subcaption} 宏包。 \item 启用 \verb|spacing| 选项时会调用 setspace 和 - enumitem\supercite{enumitem} 宏包。 + enumitem\cupercite{enumitem} 宏包。 \end{itemize} 因此在启用相应选项时,用户可以使用对应宏包所提供的功能。 diff --git a/doc/readme/chap/pkuthss-chap3.tex b/doc/readme/chap/pkuthss-chap3.tex index b6ce235..acc5f38 100644 --- a/doc/readme/chap/pkuthss-chap3.tex +++ b/doc/readme/chap/pkuthss-chap3.tex @@ -54,7 +54,7 @@ Windows 的“记事本”程序在查看 LF(\texttt{\string\n}) \section{上游宏包可能引起的问题} -biblatex\supercite{biblatex} 宏包会自行设定 \verb|\bibname|, +biblatex\cupercite{biblatex} 宏包会自行设定 \verb|\bibname|, 故会覆盖通过 \verb|\ctexset| 设定的参考文献列表标题。 使用 biblatex 的用户可以使用 \verb|\printbibliography| 的 \verb|title| 选项来手动设定参考文献列表的标题,例如: @@ -62,7 +62,7 @@ biblatex\supercite{biblatex} 宏包会自行设定 \verb|\bibname|, \printbibliography[title = {文献}, ...] % “...”为其它选项。 \end{Verbatim} -hyperref\supercite{hyperref} 宏包和一些宏包可能发生冲突。 +hyperref\cupercite{hyperref} 宏包和一些宏包可能发生冲突。 关于如何避免这些冲突, 可以参考 hyperref 宏包 README 文件中的“Package Compatibility”一节。 此文件通常和执行 \verb|texdoc hyperref| @@ -100,12 +100,12 @@ data source .../par-xxxxxxxx/cache-xxxxxxxx/ \section{文档格式可能存在的问题} -学校对学位论文格式的规定\mbox{\supercite{pku-thesisstyle}}% +学校对学位论文格式的规定\cupercite{pku-thesisstyle}% 显然没有考虑到非 MS Word 类排版工具的工作方式, 因此 pkuthss 文档模版只是对其要求的格式进行模仿, 而在一些小的细节上可能有所出入。 -biblatex-caspervector\supercite{biblatex-caspervector} 所实现的格式和 +biblatex-caspervector\cupercite{biblatex-caspervector} 所实现的格式和 \parencite{pku-thesisstyle} 的规定并不一致, 但其作者暂时没有精力也不愿意去实现后者所规定的比原格式更丑陋得多的格式。 diff --git a/doc/readme/chap/pkuthss-intro.tex b/doc/readme/chap/pkuthss-intro.tex index f0e147a..6969e6d 100644 --- a/doc/readme/chap/pkuthss-intro.tex +++ b/doc/readme/chap/pkuthss-intro.tex @@ -33,7 +33,7 @@ pkuthss 文档模版由三部分构成: \begin{itemize} \item \textbf{pkuthss 文档类}: - 其中根据学校的格式规范\mbox{\supercite{pku-thesisstyle}}% + 其中根据学校的格式规范\cupercite{pku-thesisstyle}% 实现了学位论文所需的基本格式要求, 主要包括对排版格式的设定和提供设置论文信息的命令; 此外也实现了学位论文中用户可能较多用到的一些额外功能, @@ -52,9 +52,9 @@ texdoc pkuthss 用户只须按照模版中的框架修改代码,即可写出自己的论文。 \end{itemize} -在此之前,包括 dypang\supercite{dypang}、FerretL\supercite{FerretL}、% -lwolf\supercite{lwolf}、Langpku\supercite{Langpku}、% -solvethis\supercite{solvethis} 等的数位网友均做过学位论文模版的工作。 +在此之前,包括 dypang\cupercite{dypang}、FerretL\supercite{FerretL}、% +lwolf\cupercite{lwolf}、Langpku\supercite{Langpku}、% +solvethis\cupercite{solvethis} 等的数位网友均做过学位论文模版的工作。 本论文模版是 solvethis 的 pkuthss 模版的更新版本, 更新的重点是重构和对新文档类、宏包的支持。 diff --git a/doc/readme/pkuthss.tex b/doc/readme/pkuthss.tex index 889cde3..0226645 100644 --- a/doc/readme/pkuthss.tex +++ b/doc/readme/pkuthss.tex @@ -39,6 +39,7 @@ \setlength{\bibitemsep}{3bp} \renewcommand*{\bibfont}{\zihao{5}\linespread{1.27}\selectfont} +\newcommand*{\cupercite}[1]{\mbox{\supercite{#1}}} \newcommand{\myemph}[1]{\emph{\textcolor{red}{#1}}} \newcommand{\unemph}[1]{\textup{\textcolor{black}{#1}}} \RecustomVerbatimEnvironment{Verbatim}{Verbatim}%