1 %% This is file 'chinesebook.inc'
4 %% The PUTeX Project and any individual authors listed elsewhere
6 %% This file is part of the PUTeX system. You are NOT allowed to
7 %% distribute a modified version of this file.
8 %% ----------------------------------------
9 %% This system is distributed in the hope that it will be useful,
10 %% but WITHOUT ANY WARRANTY; without even the implied warranty of
11 %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 \InputIfFileExists{chineserbopts.inc}{}{%
14 \ClassError{pu@classname}{%
15 Can't load chineserbopts.inc}{}}
16 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
19 \InputIfFileExists{chineserbcomm.inc}{}{%
20 \ClassError{pu@classname}{%
21 Can't load chineserbcomm.inc}{}}
24 \let\@oddfoot\@empty\let\@evenfoot\@empty
25 \def\@evenhead{\thepage\hfil\slshape\leftmark}%
26 \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
29 \markboth {\MakeUppercase{%
30 \ifnum \c@secnumdepth >\m@ne
37 \markright {\MakeUppercase{%
38 \ifnum \c@secnumdepth >\z@
45 \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
48 \markright {\MakeUppercase{%
49 \ifnum \c@secnumdepth >\m@ne
56 \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
58 \refstepcounter{chapter}%
59 \typeout{\twchaptername.}%
60 \addcontentsline{toc}{chapter}%
61 {\protect\numberline{\twchaptername}#1}%
63 \addcontentsline{toc}{chapter}{#1}%
66 \addcontentsline{toc}{chapter}{#1}%
69 \addtocontents{lof}{\protect\addvspace{10\p@}}%
70 \addtocontents{lot}{\protect\addvspace{10\p@}}%
72 \@topnewpage[\@makechapterhead{#2}]%
74 \@makechapterhead{#2}%
77 \def\@makechapterhead#1{%
79 {\parindent \z@ \pu@chhdalign \TWchapHeadingFont
80 \ifnum \c@secnumdepth >\m@ne
88 \pu@chhdalign #1\par\nobreak