diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/cmcyralt/glava.sty |
Initial commit
Diffstat (limited to 'macros/latex/contrib/cmcyralt/glava.sty')
-rw-r--r-- | macros/latex/contrib/cmcyralt/glava.sty | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/macros/latex/contrib/cmcyralt/glava.sty b/macros/latex/contrib/cmcyralt/glava.sty new file mode 100644 index 0000000000..53e670fa1e --- /dev/null +++ b/macros/latex/contrib/cmcyralt/glava.sty @@ -0,0 +1,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} |