File: glava.sty

package info (click to toggle)
texlive-lang 2005.dfsg.2-6
  • links: PTS
  • area: main
  • in suites: etch
  • size: 81,592 kB
  • ctags: 965
  • sloc: perl: 9,206; sh: 969; lisp: 485; makefile: 258; awk: 180; ruby: 177; sed: 138; xml: 57; ansic: 46; cs: 2
file content (24 lines) | stat: -rw-r--r-- 1,106 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% This package makes table of contents suitable for documents where chapters
% have no names (such as in most Russian books). By Victor Boyko
% (vb1890@cs.nyu.edu). 01/06/95.

\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne \if@mainmatter
                         \refstepcounter{chapter}%
                         \typeout{\@chapapp\space\thechapter.}%
                         \addcontentsline{toc}{chapter}%
                                   {\chaptername{} {\thechapter}#1}%
                       \else
                         \addcontentsline{toc}{chapter}{#1}%
                       \fi
                    \else
                      \addcontentsline{toc}{chapter}{#1}%
                    \fi
                    \chaptermark{#1}%
                    \addtocontents{lof}{\protect\addvspace{10\p@}}%
                    \addtocontents{lot}{\protect\addvspace{10\p@}}%
                    \if@twocolumn
                      \@topnewpage[\@makechapterhead{#2}]%
                    \else
                      \@makechapterhead{#2}%
                      \@afterheading
                    \fi}