1 %% This is file 'chineserbcomm.inc'
3 %% Common parts for chinese report and book
6 %% The PUTeX Project and any individual authors listed elsewhere
8 %% This file is part of the PUTeX system. You are NOT allowed to
9 %% distribute a modified version of this file.
10 %% ----------------------------------------
11 %% This system is distributed in the hope that it will be useful,
12 %% but WITHOUT ANY WARRANTY; without even the implied warranty of
13 %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 \usepackage{chinesenames}
16 \def\@pu@setref#1#2#3{%
18 \protect\G@refundefinedtrue
19 \nfss@text{\reset@font\bfseries ??}%
20 \@latex@warning{Reference `#3' on page \thepage \space
23 \pu@chapcnum\expandafter#2#1\null
25 \newcommand*{\twref}[1]{\expandafter\@pu@setref\csname r@#1\endcsname\@firstoftwo{#1}}
26 \newcommand*{\TWchapHeadingFont}{\normalfont\Huge\bfseries}
27 \newcommand*{\TWchapContentFont}{\large\bfseries}
28 \ifnum\the\puxCharSet=1 % Big5
29 \renewcommand*{\chaptername}{³¹}
30 \newcommand*{\twchaptername}{²Ä\pu@chapcnum\c@chapter \chaptername}
32 \renewcommand*{\chaptername}{ÕÂ}
33 \newcommand*{\twchaptername}{µÚ\pu@chapcnum\c@chapter \chaptername}
35 \def\@makeschapterhead#1{%
37 {\parindent \z@ \pu@chhdalign
43 \renewcommand\appendix{\par
44 \setcounter{chapter}{0}%
45 \setcounter{section}{0}%
46 \renewcommand\@chapapp{\appendixname}%
47 \renewcommand\thechapter{\@Alph\c@chapter}%
48 \renewcommand\twchaptername{\appendixname \thechapter}}
49 \let\tw@numberline\numberline
50 \renewcommand*\l@chapter[2]{%
51 \ifnum \c@tocdepth >\m@ne
52 \addpenalty{-\@highpenalty}%
53 \vskip 1.0em \@plus\p@
55 \parindent \z@ \rightskip \@pnumwidth
56 \parfillskip -\@pnumwidth
57 \leavevmode \TWchapContentFont
59 \settowidth{\@tempdima}{##1}%
60 \addtolength{\@tempdima}{0.6em}%
61 \advance\leftskip \@tempdima
64 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss\normalsize #2}\par
65 \vskip 0.4em \@plus\p@
70 \InputIfFileExists{chinesesection.inc}{}{%
71 \ClassError{\pu@classname}{%
72 Can't load chinesesection.inc}{}}