summaryrefslogtreecommitdiff
path: root/support/hypertex/tanmoy/espcrc2.hty
blob: 0da7c4663211bac67d3d5d1a1415e93a4c1bca71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
\def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
  \def\@svsec{}\else 
     \let\hyper@n@=\hyperdef
     \let\hyperdef=\hyper@nique
     \refstepcounter{#1}%
     \let\hyperdef=\relax\let\hypernoname=\relax
  \edef\@svsec{\hyperdef\hypernoname{#1}%
       {\csname the#1\endcsname}{\csname the#1\endcsname.\hskip0.5em}}%
     \let\hyperdef=\hyper@n@\fi
  \@tempskipa #5\relax
  \ifdim \@tempskipa>\z@
    \begingroup 
      #6\relax
      \@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par}%
    \endgroup
    \csname #1mark\endcsname{#7}\addcontentsline
      {toc}{#1}{\ifnum #2>\c@secnumdepth \else
        \protect\numberline{\hyper@\hyperpr@ref\hypernoname
       {\hbox{\hskip1pt\relax\csname the#1\endcsname}%
        }\hskip-1pt\relax}\fi #7}%
  \else
    \def\@svsechd{#6\hskip #3\@svsec #8\csname #1mark\endcsname
      {#7}\addcontentsline{toc}{#1}{\ifnum #2>\c@secnumdepth \else
        \protect\numberline{\hyper@\hyperpr@ref\hypernoname
       {\hbox{\hskip1pt\relax\csname the#1\endcsname}%
        }\hskip-1pt\relax}\fi #7}}%
  \fi \@xsect{#5}}