diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/pkuthss/pkuthss-extra.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/pkuthss/pkuthss-extra.sty | 41 |
1 files changed, 10 insertions, 31 deletions
diff --git a/Master/texmf-dist/tex/latex/pkuthss/pkuthss-extra.sty b/Master/texmf-dist/tex/latex/pkuthss/pkuthss-extra.sty index 47910fefebf..0515be72cfb 100644 --- a/Master/texmf-dist/tex/latex/pkuthss/pkuthss-extra.sty +++ b/Master/texmf-dist/tex/latex/pkuthss/pkuthss-extra.sty @@ -24,7 +24,7 @@ \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesPackage{pkuthss-extra} - [2013/04/07 v1.4-rc3 Common extra settings for the pkuthss document class] + [2013/12/26 v1.4-rc4 Common extra settings for the pkuthss document class] % Check the dependency of pkuthss. \@ifclassloaded{pkuthss}{}{ @@ -47,10 +47,10 @@ \pkuthssextra@int@boolopt{spacing}{true} % Whether to use list environments that are tighter than LaTeX defaults. \pkuthssextra@int@boolopt{tightlist}{true} +% Whether to let captions use a different font from the main text. +\pkuthssextra@int@boolopt{caption}{true} % Add PDF bookmark for table of contents. \pkuthssextra@int@boolopt{pdftoc}{true} -% Whether to enable `\Uppercase' (works problematically) in heading marks. -\pkuthssextra@int@boolopt{uppermark}{false} % Whether to enable the `\spacialchap' command. \pkuthssextra@int@boolopt{spechap}{true} % Whether to automatically set properties for generated PDF from user defined @@ -85,6 +85,12 @@ \setlist{nolistsep} \fi +\ifpkuthssextra@opt@caption + % According to common aesthetics of typography, it is nice to make the font of + % captions lighter than main text, and tables lighter than captions. + \RequirePackage[font = it]{caption} +\fi + \ifpkuthssextra@opt@pdftoc % Add PDF bookmark for table of contents. \let\pkuthssextra@tmp@tableofcontents\tableofcontents @@ -108,33 +114,6 @@ \fi \AtBeginDocument{ - % `\MakeUppercase' works problematically. - % eg. it converts `\cite{ctex}' into `\cite{CTEX}'. - % This option can disable `\MakeUppercase' in left/right heading marks. - \unless\ifpkuthssextra@opt@uppermark - % Code modified from part of ctex-book.def in `ctex' package. - % The main difference is the deletion of calls to `\MakeUppercase' here. - \if@twoside - \renewcommand\chaptermark[1]{% - \markboth{% - \ifnum\value{secnumdepth}>-1 \if@mainmatter \CTEXthechapter \quad \fi\fi - #1% - }{}% - } - \renewcommand\sectionmark[1]{% - \markright{\ifnum\value{secnumdepth}>-1 \CTEXthesection \quad \fi #1}% - } - % One side typesetting should also be considered. - \else - \renewcommand\chaptermark[1]{% - \markright{% - \ifnum\value{secnumdepth}>-1 \if@mainmatter \CTEXthechapter \quad \fi\fi - #1% - }% - } - \fi - \fi - \ifpkuthssextra@opt@pdfprop % Automatically generate properties for generated PDF. % Use English properties to avoid problems with character encodings. @@ -158,7 +137,7 @@ \else % Set hyperlink colour to black in order to prevent hyperlinks from being too % hard-to-recognise in printed thesis. - \hypersetup{colorlinks = false, pdfborder = {0 0 0}} + \hypersetup{hidelinks = true} \fi } |