1 %% This is file 'chinesesection.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 \newcommand{\twsecsepchar}{.}
14 \newcommand{\twthesection}{\PUXcnumber\c@chapter\twsecsepchar\PUXcnumber\c@section}
15 \newcommand{\twthesubsection}{\twthesection\twsecsepchar\PUXcnumber\c@subsection}
16 \newcommand{\twthesubsubsection}{\twthesubsection\twsecsepchar\PUXcnumber\c@subsubsection}
17 \newcommand{\twsectionlabel}{\twthesection}
18 \newcommand{\twsubsectionlabel}{\twthesubsection}
19 \newcommand{\twsubsubsectionlabel}{\twthesubsubsection}
20 \newcommand{\twcsectionlabel}{\twthesection}
21 \newcommand{\twcsubsectionlabel}{\twthesubsection}
22 \newcommand{\twcsubsubsectionlabel}{\twthesubsubsection}
23 \def\@seccntformat#1{\csname tw#1label\endcsname\quad}
24 \def\@sect#1#2#3#4#5#6[#7]#8{%
25 \ifnum #2>\c@secnumdepth
29 \protected@edef\@svsec{\@seccntformat{#1}\relax}%
32 \ifdim \@tempskipa>\z@
35 \@hangfrom{\hskip #3\relax\@svsec}%
36 \interlinepenalty \@M #8\@@par}%
38 \csname #1mark\endcsname{#7}%
39 \addcontentsline{toc}{#1}{%
40 \ifnum #2>\c@secnumdepth \else
41 \protect\numberline{\csname twc#1label\endcsname}%
48 \csname #1mark\endcsname{#7}%
49 \addcontentsline{toc}{#1}{%
50 \ifnum #2>\c@secnumdepth \else
51 \protect\numberline{\csname twc#1label\endcsname}%
56 \def\@dottedtocline#1#2#3#4#5{%
57 \ifnum #1>\c@tocdepth \else
58 \vskip \z@ \@plus.2\p@
59 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
60 \parindent #2\relax\@afterindenttrue
64 \settowidth{\@tempdima}{##1}%
65 \addtolength{\@tempdima}{0.6em}%
66 \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
70 \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
73 \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%