OSDN Git Service

removed web2c version of PUTeX.
[putex/putex.git] / src / putex / latex / putex / chinesesection.inc
1 %% This is file 'chinesesection.inc'
2 %%
3 %% Copyright 1998-2004
4 %% The PUTeX Project and any individual authors listed elsewhere
5 %% in this file.
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.
12 %%
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
26     \let\@svsec\@empty
27   \else
28     \refstepcounter{#1}%
29     \protected@edef\@svsec{\@seccntformat{#1}\relax}%
30   \fi
31   \@tempskipa #5\relax
32   \ifdim \@tempskipa>\z@
33     \begingroup
34       #6{%
35         \@hangfrom{\hskip #3\relax\@svsec}%
36           \interlinepenalty \@M #8\@@par}%
37     \endgroup
38     \csname #1mark\endcsname{#7}%
39     \addcontentsline{toc}{#1}{%
40       \ifnum #2>\c@secnumdepth \else
41         \protect\numberline{\csname twc#1label\endcsname}%
42       \fi
43       #7}%
44   \else
45     \def\@svsechd{%
46       #6{\hskip #3\relax
47       \@svsec #8}%
48       \csname #1mark\endcsname{#7}%
49       \addcontentsline{toc}{#1}{%
50         \ifnum #2>\c@secnumdepth \else
51           \protect\numberline{\csname twc#1label\endcsname}%
52         \fi
53         #7}}%
54   \fi
55   \@xsect{#5}}
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
61      \interlinepenalty\@M
62      \leavevmode
63      \def\numberline##1{%
64         \settowidth{\@tempdima}{##1}%
65         \addtolength{\@tempdima}{0.6em}%
66         \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
67         \tw@numberline{##1}}%
68      #4\nobreak
69      \leaders\hbox{$\m@th
70         \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
71         mu$}\hfill
72      \nobreak
73      \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%
74      \par}%
75   \fi}
76 \endinput