Replace CJKfntef's \CJKunderline' with ulem's \uline'.
This commit is contained in:
parent
6ee251b7c1
commit
4f083842f3
@ -261,9 +261,9 @@
|
||||
\section{从其它文档类和宏包继承的功能}\label{sec:thirdparty}
|
||||
|
||||
pkuthss 文档类建立在 ctexbook\supercite{ctex} 文档类之上,
|
||||
并调用了 CJKfntef、hyperref\supercite{hyperref}、%
|
||||
geometry\supercite{geometry}、fancyhdr\supercite{fancyhdr}
|
||||
和 graphicx\supercite{graphicx} 等几个宏包;
|
||||
并调用了 geometry\supercite{geometry}、fancyhdr\supercite{fancyhdr}、%
|
||||
hyperref\supercite{hyperref}、graphicx\supercite{graphicx}
|
||||
和 ulem\supercite{ulem} 等几个宏包;
|
||||
使用 \hologo{pdfLaTeX} 方式编译 GBK 编码的源文件时还会调用
|
||||
xCJK2uni\supercite{xCJK2uni} 宏包\footnote{%
|
||||
ctex 2.x 会自行调用 xCJK2uni 宏包,
|
||||
|
||||
@ -158,6 +158,16 @@
|
||||
language = {english},
|
||||
}
|
||||
|
||||
@online{ulem,
|
||||
author = {Arseneau, Donald},
|
||||
title = {The ulem package: underlining for emphasis},
|
||||
type = {M/OL},
|
||||
date = {2011-03-18},
|
||||
url = {http://mirror.ctan.org/macros/latex/contrib/ulem/},
|
||||
urldate = {2016-06-22},
|
||||
language = {english},
|
||||
}
|
||||
|
||||
@online{xCJK2uni,
|
||||
author = {李清},
|
||||
title = {xCJK2uni 宏包(v0.1)},
|
||||
|
||||
@ -66,9 +66,8 @@
|
||||
% Prevent fontspec (loaded by xeCJK) from interfering with newtxmath.
|
||||
\ifpkuthss@opt@pkufont\PassOptionsToPackage{no-math}{fontspec}\fi
|
||||
% 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]
|
||||
\LoadClass[hyperref, cs4size, fancyhdr]{ctexbook}[2011/03/11]
|
||||
% ctex 2.x no longer loads ifpdf and ifxetex by itself.
|
||||
\RequirePackage{ifpdf, ifxetex}
|
||||
% Provides support for `key = val' grammar.
|
||||
@ -77,7 +76,9 @@
|
||||
\RequirePackage{graphicx}[1999/02/16]
|
||||
% Provides utilities for setting up page layout.
|
||||
\RequirePackage{geometry}
|
||||
% `hyperref', `fntef', `fancyhdr' and `cs4size' are deprecated in ctex 2.x.
|
||||
% Provides `\uline' used in `\maketitle'.
|
||||
\RequirePackage{ulem}
|
||||
% `hyperref', `fancyhdr' and `cs4size' are deprecated in ctex 2.x.
|
||||
% hyperref now does not make citation hyperlinks if not explicitly loaded.
|
||||
% All compatibility support for ctex 1.x is scheduled for removal in 2017.
|
||||
% `\AtEndOfClass' used to avoid `PDF destination not defined' with setspace.
|
||||
@ -352,11 +353,11 @@
|
||||
\loop\ifnum\pkuthss@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
|
||||
% `\CJKunderline' is used here instead.
|
||||
% `\uline' is used here instead.
|
||||
\ifnum\pkuthss@tmp@linecount=1
|
||||
\CJKunderline{\makebox[#2]{}}
|
||||
\uline{\makebox[#2]{}}
|
||||
\else
|
||||
\CJKunderline{\makebox[#2]{}}\\
|
||||
\uline{\makebox[#2]{}}\\
|
||||
\fi
|
||||
\advance\pkuthss@tmp@linecount by -1\relax
|
||||
\repeat%
|
||||
|
||||
Loading…
Reference in New Issue
Block a user