Advertisement
Guest User

Class "article" tuned to comply with ГОСТ

a guest
Aug 19th, 2012
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 21.08 KB | None | 0 0
  1. %%
  2. %% This is file `article.cls',
  3. %% generated with the docstrip utility.
  4. %o
  5. %% The original source files were:
  6. %%
  7. %% classes.dtx  (with options: `article')
  8. %%
  9. %% This is a generated file.
  10. %%
  11. %% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001
  12. %% The LaTeX3 Project and any individual authors listed elsewhere
  13. %% in this file.
  14. %%
  15. %% This file was generated from file(s) of the LaTeX base system.
  16. %% --------------------------------------------------------------
  17. %%
  18. %% It may be distributed and/or modified under the
  19. %% conditions of the LaTeX Project Public License, either version 1.2
  20. %% of this license or (at your option) any later version.
  21. %% The latest version of this license is in
  22. %%    http://www.latex-project.org/lppl.txt
  23. %% and version 1.2 or later is part of all distributions of LaTeX
  24. %% version 1999/12/01 or later.
  25. %%
  26. %% This file may only be distributed together with a copy of the LaTeX
  27. %% base system. You may however distribute the LaTeX base system without
  28. %% such generated files.
  29. %%
  30. %% The list of all files belonging to the LaTeX base distribution is
  31. %% given in the file `manifest.txt'. See also `legal.txt' for additional
  32. %% information.
  33. %%
  34. %% \CharacterTable
  35. %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
  36. %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
  37. %%   Digits        \0\1\2\3\4\5\6\7\8\9
  38. %%   Exclamation   \!     Double quote  \"     Hash (number) \#
  39. %%   Dollar        \$     Percent       \%     Ampersand     \&
  40. %%   Acute accent  \'     Left paren    \(     Right paren   \)
  41. %%   Asterisk      \*     Plus          \+     Comma         \,
  42. %%   Minus         \-     Point         \.     Solidus       \/
  43. %%   Colon         \:     Semicolon     \;     Less than     \<
  44. %%   Equals        \=     Greater than  \>     Question mark \?
  45. %%   Commercial at \@     Left bracket  \[     Backslash     \\
  46. %%   Right bracket \]     Circumflex    \^     Underscore    \_
  47. %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
  48. %%   Right brace   \}     Tilde         \~}
  49. \NeedsTeXFormat{LaTeX2e}[1995/12/01]
  50. \ProvidesClass{diploma}
  51.              [2001/04/21 v1.4e
  52. Standard LaTeX document class]
  53. \newcommand\@ptsize{}
  54. \newif\if@restonecol
  55. \newif\if@titlepage
  56. \@titlepagefalse
  57. \if@compatibility\else
  58. \DeclareOption{a4paper}
  59.   {\setlength\paperheight {297mm}%
  60.     \setlength\paperwidth  {210mm}}
  61. \DeclareOption{a5paper}
  62.   {\setlength\paperheight {210mm}%
  63.     \setlength\paperwidth  {148mm}}
  64. \DeclareOption{b5paper}
  65.   {\setlength\paperheight {250mm}%
  66.     \setlength\paperwidth  {176mm}}
  67. \DeclareOption{letterpaper}
  68.   {\setlength\paperheight {11in}%
  69.     \setlength\paperwidth  {8.5in}}
  70. \DeclareOption{legalpaper}
  71.   {\setlength\paperheight {14in}%
  72.     \setlength\paperwidth  {8.5in}}
  73. \DeclareOption{executivepaper}
  74.   {\setlength\paperheight {10.5in}%
  75.     \setlength\paperwidth  {7.25in}}
  76. \DeclareOption{landscape}
  77.   {\setlength\@tempdima   {\paperheight}%
  78.     \setlength\paperheight {\paperwidth}%
  79.     \setlength\paperwidth  {\@tempdima}}
  80. \fi
  81. \if@compatibility
  82.  \renewcommand\@ptsize{0}
  83. \else
  84. \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
  85. \fi
  86. \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
  87. \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
  88. \if@compatibility\else
  89. \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
  90. \fi
  91. \DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
  92. \DeclareOption{draft}{\setlength\overfullrule{5pt}}
  93. \if@compatibility\else
  94. \DeclareOption{final}{\setlength\overfullrule{0pt}}
  95. \fi
  96. \DeclareOption{titlepage}{\@titlepagetrue}
  97. \if@compatibility\else
  98. \DeclareOption{notitlepage}{\@titlepagefalse}
  99. \fi
  100. \if@compatibility\else
  101. \DeclareOption{onecolumn}{\@twocolumnfalse}
  102. \fi
  103. \DeclareOption{twocolumn}{\@twocolumntrue}
  104. \DeclareOption{leqno}{\input{leqno.clo}}
  105. \DeclareOption{fleqn}{\input{fleqn.clo}}
  106. \DeclareOption{openbib}{%
  107.   \AtEndOfPackage{%
  108.    \renewcommand\@openbib@code{%
  109.       \advance\leftmargin\bibindent
  110.       \itemindent -\bibindent
  111.       \listparindent \itemindent
  112.       \parsep \z@
  113.       }%
  114.    \renewcommand\newblock{\par}}%
  115. }
  116. \ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final}
  117. \ProcessOptions
  118. \input{size1\@ptsize.clo}
  119. \setlength\lineskip{1\p@}
  120. \setlength\normallineskip{1\p@}
  121. \renewcommand\baselinestretch{}
  122. \setlength\parskip{0\p@ \@plus \p@}
  123. \@lowpenalty   51
  124. \@medpenalty  151
  125. \@highpenalty 301
  126. \setcounter{topnumber}{2}
  127. \renewcommand\topfraction{.7}
  128. \setcounter{bottomnumber}{1}
  129. \renewcommand\bottomfraction{.3}
  130. \setcounter{totalnumber}{3}
  131. \renewcommand\textfraction{.2}
  132. \renewcommand\floatpagefraction{.5}
  133. \setcounter{dbltopnumber}{2}
  134. \renewcommand\dbltopfraction{.7}
  135. \renewcommand\dblfloatpagefraction{.5}
  136. \if@twoside
  137.   \def\ps@headings{%
  138.       \let\@oddfoot\@empty\let\@evenfoot\@empty
  139.       \def\@evenhead{\thepage\hfil\slshape\leftmark}%
  140.       \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
  141.       \let\@mkboth\markboth
  142.     \def\sectionmark##1{%
  143.       \markboth {\MakeUppercase{%
  144.         \ifnum \c@secnumdepth >\z@
  145.           \thesection\quad
  146.         \fi
  147.         ##1}}{}}%
  148.     \def\subsectionmark##1{%
  149.       \markright {%
  150.         \ifnum \c@secnumdepth >\@ne
  151.           \thesubsection\quad
  152.         \fi
  153.         ##1}}}
  154. \else
  155.   \def\ps@headings{%
  156.     \let\@oddfoot\@empty
  157.     \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
  158.     \let\@mkboth\markboth
  159.     \def\sectionmark##1{%
  160.       \markright {\MakeUppercase{%
  161.         \ifnum \c@secnumdepth >\m@ne
  162.           \thesection\quad
  163.         \fi
  164.         ##1}}}}
  165. \fi
  166. \def\ps@myheadings{%
  167.     \let\@oddfoot\@empty\let\@evenfoot\@empty
  168.     \def\@evenhead{\thepage\hfil\slshape\leftmark}%
  169.     \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
  170.     \let\@mkboth\@gobbletwo
  171.     \let\sectionmark\@gobble
  172.     \let\subsectionmark\@gobble
  173.     }
  174.   \if@titlepage
  175.   \newcommand\maketitle{\begin{titlepage}%
  176.   \let\footnotesize\small
  177.   \let\footnoterule\relax
  178.   \let \footnote \thanks
  179.   \null\vfil
  180.   \vskip 60\p@
  181.   \begin{center}%
  182.     {\LARGE \@title \par}%
  183.     \vskip 3em%
  184.     {\large
  185.      \lineskip .75em%
  186.       \begin{tabular}[t]{c}%
  187.         \@author
  188.       \end{tabular}\par}%
  189.       \vskip 1.5em%
  190.     {\large \@date \par}%       % Set date in \large size.
  191.   \end{center}\par
  192.  \@thanks
  193.  \vfil\null
  194.  \end{titlepage}%
  195.   \setcounter{footnote}{0}%
  196.   \global\let\thanks\relax
  197.   \global\let\maketitle\relax
  198.   \global\let\@thanks\@empty
  199.   \global\let\@author\@empty
  200.   \global\let\@date\@empty
  201.   \global\let\@title\@empty
  202.   \global\let\title\relax
  203.   \global\let\author\relax
  204.   \global\let\date\relax
  205.   \global\let\and\relax
  206. }
  207. \else
  208. \newcommand\maketitle{\par
  209.  \begingroup
  210.    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
  211.     \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
  212.     \long\def\@makefntext##1{\parindent 1em\noindent
  213.             \hb@xt@1.8em{%
  214.                 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
  215.     \if@twocolumn
  216.       \ifnum \col@number=\@ne
  217.         \@maketitle
  218.       \else
  219.         \twocolumn[\@maketitle]%
  220.       \fi
  221.     \else
  222.       \newpage
  223.       \global\@topnum\z@   % Prevents figures from going at top of page.
  224.       \@maketitle
  225.     \fi
  226.     \thispagestyle{plain}\@thanks
  227.  \endgroup
  228.  \setcounter{footnote}{0}%
  229.   \global\let\thanks\relax
  230.   \global\let\maketitle\relax
  231.   \global\let\@maketitle\relax
  232.   \global\let\@thanks\@empty
  233.   \global\let\@author\@empty
  234.   \global\let\@date\@empty
  235.   \global\let\@title\@empty
  236.   \global\let\title\relax
  237.   \global\let\author\relax
  238.   \global\let\date\relax
  239.   \global\let\and\relax
  240. }
  241. \def\@maketitle{%
  242.   \newpage
  243.   \null
  244.   \vskip 2em%
  245.   \begin{center}%
  246.   \let \footnote \thanks
  247.     {\LARGE \@title \par}%
  248.     \vskip 1.5em%
  249.     {\large
  250.       \lineskip .5em%
  251.       \begin{tabular}[t]{c}%
  252.         \@author
  253.       \end{tabular}\par}%
  254.     \vskip 1em%
  255.     {\large \@date}%
  256.   \end{center}%
  257.   \par
  258.   \vskip 1.5em}
  259. \fi
  260. \setcounter{secnumdepth}{3}
  261. \newcounter {part}
  262. \newcounter {section}
  263. \newcounter {subsection}[section]
  264. \newcounter {subsubsection}[subsection]
  265. \newcounter {paragraph}[subsubsection]
  266. \newcounter {subparagraph}[paragraph]
  267. \renewcommand \thepart {\@Roman\c@part}
  268. \renewcommand \thesection {\@arabic\c@section}
  269. \renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}
  270. \renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
  271. \renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
  272. \renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
  273. \newcommand\part{%
  274.    \if@noskipsec \leavevmode \fi
  275.    \par
  276.    \addvspace{4ex}%
  277.    \@afterindentfalse
  278.    \secdef\@part\@spart}
  279.  
  280. \def\@part[#1]#2{%
  281.     \ifnum \c@secnumdepth >\m@ne
  282.       \refstepcounter{part}%
  283.       \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
  284.     \else
  285.       \addcontentsline{toc}{part}{#1}%
  286.     \fi
  287.     {\parindent \z@ \raggedright
  288.      \interlinepenalty \@M
  289.      \normalfont
  290.      \ifnum \c@secnumdepth >\m@ne
  291.        \Large\bfseries \partname\nobreakspace\thepart
  292.        \par\nobreak
  293.      \fi
  294.      \huge \bfseries #2%
  295.      \markboth{}{}\par}%
  296.     \nobreak
  297.     \vskip 3ex
  298.     \@afterheading}
  299. \def\@spart#1{%
  300.     {\parindent \z@ \raggedright
  301.     \interlinepenalty \@M
  302.     \normalfont
  303.     \huge \bfseries #1\par}%
  304.      \nobreak
  305.      \vskip 3ex
  306.      \@afterheading}
  307. % by Kroz
  308. \newcommand\section{%
  309.                                    \setcounter{equation}{0}%
  310.                                    \setcounter{table}{0}%
  311.                                    \setcounter{figure}{0}%
  312.                                    \@startsection {section}{1}{\z@}%
  313.                                    {-3.5ex \@plus -1ex \@minus -.2ex}%
  314.                                    {2.3ex \@plus.2ex}%
  315.                                    {\normalfont\Large\bfseries\center}}
  316. \newcommand\subsection{\@startsection{subsection}{2}{\z@}%
  317.                                      {-3.25ex\@plus -1ex \@minus -.2ex}%
  318.                                      {1.5ex \@plus .2ex}%
  319.                                      {\normalfont\large\bfseries}}
  320. \newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
  321.                                      {-3.25ex\@plus -1ex \@minus -.2ex}%
  322.                                      {1.5ex \@plus .2ex}%
  323.                                      {\normalfont\normalsize\bfseries}}
  324. \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
  325.                                     {3.25ex \@plus1ex \@minus.2ex}%
  326.                                     {-1em}%
  327.                                     {\normalfont\normalsize\bfseries}}
  328. \newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
  329.                                        {3.25ex \@plus1ex \@minus .2ex}%
  330.                                        {-1em}%
  331.                                       {\normalfont\normalsize\bfseries}}
  332. \if@twocolumn
  333.  \setlength\leftmargini  {2em}
  334. \else
  335.  \setlength\leftmargini  {2.5em}
  336. \fi
  337. \leftmargin  \leftmargini
  338. \setlength\leftmarginii  {2.2em}
  339. \setlength\leftmarginiii {1.87em}
  340. \setlength\leftmarginiv  {1.7em}
  341. \if@twocolumn
  342.  \setlength\leftmarginv  {.5em}
  343.  \setlength\leftmarginvi {.5em}
  344. \else
  345.  \setlength\leftmarginv  {1em}
  346.  \setlength\leftmarginvi {1em}
  347. \fi
  348. \setlength  \labelsep  {.5em}
  349. \setlength  \labelwidth{\leftmargini}
  350. \addtolength\labelwidth{-\labelsep}
  351. \@beginparpenalty -\@lowpenalty
  352. \@endparpenalty   -\@lowpenalty
  353. \@itempenalty     -\@lowpenalty
  354. \renewcommand\theenumi{\@arabic\c@enumi}
  355. \renewcommand\theenumii{\@alph\c@enumii}
  356. \renewcommand\theenumiii{\@roman\c@enumiii}
  357. \renewcommand\theenumiv{\@Alph\c@enumiv}
  358. \newcommand\labelenumi{\theenumi.}
  359. \newcommand\labelenumii{(\theenumii)}
  360. \newcommand\labelenumiii{\theenumiii.}
  361. \newcommand\labelenumiv{\theenumiv.}
  362. \renewcommand\p@enumii{\theenumi}
  363. \renewcommand\p@enumiii{\theenumi(\theenumii)}
  364. \renewcommand\p@enumiv{\p@enumiii\theenumiii}
  365. \newcommand\labelitemi{\textbullet}
  366. \newcommand\labelitemii{\normalfont\bfseries \textendash}
  367. \newcommand\labelitemiii{\textasteriskcentered}
  368. \newcommand\labelitemiv{\textperiodcentered}
  369. \newenvironment{description}
  370.               {\list{}{\labelwidth\z@ \itemindent-\leftmargin
  371.                        \let\makelabel\descriptionlabel}}
  372.               {\endlist}
  373. \newcommand*\descriptionlabel[1]{\hspace\labelsep
  374.                                \normalfont\bfseries #1}
  375. \if@titlepage
  376.  \newenvironment{abstract}{%
  377.       \titlepage
  378.       \null\vfil
  379.       \@beginparpenalty\@lowpenalty
  380.       \begin{center}%
  381.         \bfseries \abstractname
  382.         \@endparpenalty\@M
  383.       \end{center}}%
  384.      {\par\vfil\null\endtitlepage}
  385. \else
  386.  \newenvironment{abstract}{%
  387.       \if@twocolumn
  388.         \section*{\abstractname}%
  389.       \else
  390.         \small
  391.         \begin{center}%
  392.           {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
  393.         \end{center}%
  394.         \quotation
  395.       \fi}
  396.       {\if@twocolumn\else\endquotation\fi}
  397. \fi
  398. \newenvironment{verse}
  399.               {\let\\\@centercr
  400.                \list{}{\itemsep      \z@
  401.                         \itemindent   -1.5em%
  402.                         \listparindent\itemindent
  403.                         \rightmargin  \leftmargin
  404.                         \advance\leftmargin 1.5em}%
  405.                 \item\relax}
  406.                {\endlist}
  407. \newenvironment{quotation}
  408.               {\list{}{\listparindent 1.5em%
  409.                         \itemindent    \listparindent
  410.                         \rightmargin   \leftmargin
  411.                         \parsep        \z@ \@plus\p@}%
  412.                 \item\relax}
  413.                {\endlist}
  414. \newenvironment{quote}
  415.               {\list{}{\rightmargin\leftmargin}%
  416.                 \item\relax}
  417.                {\endlist}
  418. \if@compatibility
  419. \newenvironment{titlepage}
  420.     {%
  421.       \if@twocolumn
  422.         \@restonecoltrue\onecolumn
  423.       \else
  424.         \@restonecolfalse\newpage
  425.       \fi
  426.       \thispagestyle{empty}%
  427.       \setcounter{page}\z@
  428.    }%
  429.     {\if@restonecol\twocolumn \else \newpage \fi
  430.    }
  431. \else
  432. \newenvironment{titlepage}
  433.     {%
  434.       \if@twocolumn
  435.         \@restonecoltrue\onecolumn
  436.       \else
  437.         \@restonecolfalse\newpage
  438.       \fi
  439.       \thispagestyle{empty}%
  440.       \setcounter{page}\@ne
  441.    }%
  442.     {\if@restonecol\twocolumn \else \newpage \fi
  443.     \if@twoside\else
  444.        \setcounter{page}\@ne
  445.     \fi
  446.    }
  447. \fi
  448. \newcommand\appendix{\par
  449.  \setcounter{section}{0}%
  450.   \setcounter{subsection}{0}%
  451.   \gdef\thesection{\@Alph\c@section}}
  452. \setlength\arraycolsep{5\p@}
  453. \setlength\tabcolsep{6\p@}
  454. \setlength\arrayrulewidth{.4\p@}
  455. \setlength\doublerulesep{2\p@}
  456. \setlength\tabbingsep{\labelsep}
  457. \skip\@mpfootins = \skip\footins
  458. \setlength\fboxsep{3\p@}
  459. \setlength\fboxrule{.4\p@}
  460. % by Kroz \renewcommand \theequation {\@arabic\c@equation}
  461. \renewcommand \theequation {\@arabic\c@section.\@arabic\c@equation}
  462. \newcounter{figure}
  463. % by Kroz \renewcommand \thefigure {\@arabic\c@figure}
  464. \renewcommand \thefigure {\@arabic\c@section.\@arabic\c@figure}
  465. \def\fps@figure{tbp}
  466. \def\ftype@figure{1}
  467. \def\ext@figure{lof}
  468. \def\fnum@figure{\figurename\nobreakspace\thefigure}
  469. \newenvironment{figure}
  470.               {\@float{figure}}
  471.               {\end@float}
  472. \newenvironment{figure*}
  473.               {\@dblfloat{figure}}
  474.               {\end@dblfloat}
  475. \newcounter{table}
  476. % by Kroz \renewcommand\thetable{\@arabic\c@table}
  477. \renewcommand\thetable{\@arabic\c@section.\@arabic\c@table}
  478. \def\fps@table{tbp}
  479. \def\ftype@table{2}
  480. \def\ext@table{lot}
  481. \def\fnum@table{\tablename\nobreakspace\thetable}
  482. \newenvironment{table}
  483.               {\@float{table}}
  484.               {\end@float}
  485. \newenvironment{table*}
  486.               {\@dblfloat{table}}
  487.               {\end@dblfloat}
  488. \newlength\abovecaptionskip
  489. \newlength\belowcaptionskip
  490. \setlength\abovecaptionskip{10\p@}
  491. % by Kroz \setlength\belowcaptionskip{0\p@}
  492. \setlength\belowcaptionskip{2\p@}
  493. \long\def\@makecaption#1#2{%
  494.   \vskip\abovecaptionskip
  495. % by Kroz  \sbox\@tempboxa{#1: #2}%
  496.   \sbox\@tempboxa{#1 #2}%
  497.   \ifdim \wd\@tempboxa >\hsize
  498.     #1: #2\par
  499.   \else
  500.     \global \@minipagefalse
  501. % by Kroz    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  502.     \hb@xt@\hsize{\box\@tempboxa\hfil}%
  503.   \fi
  504.   \vskip\belowcaptionskip}
  505. \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
  506. \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
  507. \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
  508. \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
  509. \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
  510. \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
  511. \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
  512. \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
  513. \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
  514. \newcommand\@pnumwidth{1.55em}
  515. \newcommand\@tocrmarg{2.55em}
  516. \newcommand\@dotsep{4.5}
  517. \setcounter{tocdepth}{3}
  518. \newcommand\tableofcontents{%
  519.     \section*{\contentsname
  520.         \@mkboth{%
  521.            \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
  522.     \@starttoc{toc}%
  523.     }
  524. \newcommand*\l@part[2]{%
  525.   \ifnum \c@tocdepth >-2\relax
  526.     \addpenalty\@secpenalty
  527.     \addvspace{2.25em \@plus\p@}%
  528.     \setlength\@tempdima{3em}%
  529.     \begingroup
  530.       \parindent \z@ \rightskip \@pnumwidth
  531.       \parfillskip -\@pnumwidth
  532.       {\leavevmode
  533.       \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
  534.       \nobreak
  535.       \if@compatibility
  536.         \global\@nobreaktrue
  537.         \everypar{\global\@nobreakfalse\everypar{}}%
  538.       \fi
  539.     \endgroup
  540.   \fi}
  541. \newcommand*\l@section[2]{%
  542.   \ifnum \c@tocdepth >\z@
  543.     \addpenalty\@secpenalty
  544.     \addvspace{1.0em \@plus\p@}%
  545.     \setlength\@tempdima{1.5em}%
  546.     \begingroup
  547.       \parindent \z@ \rightskip \@pnumwidth
  548.       \parfillskip -\@pnumwidth
  549.       \leavevmode \bfseries
  550.       \advance\leftskip\@tempdima
  551.       \hskip -\leftskip
  552.       #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
  553.    \endgroup
  554.  \fi}
  555. \newcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
  556. \newcommand*\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
  557. \newcommand*\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
  558. \newcommand*\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
  559. \newcommand\listoffigures{%
  560.     \section*{\listfigurename}%
  561.       \@mkboth{\MakeUppercase\listfigurename}%
  562.               {\MakeUppercase\listfigurename}%
  563.     \@starttoc{lof}%
  564.     }
  565. \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
  566. \newcommand\listoftables{%
  567.     \section*{\listtablename}%
  568.       \@mkboth{%
  569.           \MakeUppercase\listtablename}%
  570.          {\MakeUppercase\listtablename}%
  571.     \@starttoc{lot}%
  572.     }
  573. \let\l@table\l@figure
  574. \newdimen\bibindent
  575. \setlength\bibindent{1.5em}
  576. \newenvironment{thebibliography}[1]
  577.      {\pagebreak%
  578. \section*{\refname}%
  579. % by Kroz
  580.       \addcontentsline{toc}{section}{\refname}%
  581.       \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
  582.       \list{\@biblabel{\@arabic\c@enumiv}}%
  583.            {\settowidth\labelwidth{\@biblabel{#1}}%
  584.             \leftmargin\labelwidth
  585.             \advance\leftmargin\labelsep
  586.             \@openbib@code
  587.             \usecounter{enumiv}%
  588.             \let\p@enumiv\@empty
  589.             \renewcommand\theenumiv{\@arabic\c@enumiv}}%
  590.       \sloppy
  591.       \clubpenalty4000
  592.       \@clubpenalty \clubpenalty
  593.       \widowpenalty4000%
  594.       \sfcode`\.\@m}
  595.      {\def\@noitemerr
  596.       {\@latex@warning{Empty `thebibliography' environment}}%
  597.       \endlist}
  598. \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
  599. \let\@openbib@code\@empty
  600. \newenvironment{theindex}
  601.               {\if@twocolumn
  602.                  \@restonecolfalse
  603.                \else
  604.                  \@restonecoltrue
  605.                \fi
  606.                \columnseprule \z@
  607.                \columnsep 35\p@
  608.                \twocolumn[\section*{\indexname}]%
  609.                 \@mkboth{\MakeUppercase\indexname}%
  610.                         {\MakeUppercase\indexname}%
  611.                 \thispagestyle{plain}\parindent\z@
  612.                \parskip\z@ \@plus .3\p@\relax
  613.                \let\item\@idxitem}
  614.               {\if@restonecol\onecolumn\else\clearpage\fi}
  615. \newcommand\@idxitem{\par\hangindent 40\p@}
  616. \newcommand\subitem{\@idxitem \hspace*{20\p@}}
  617. \newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
  618. \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
  619. \renewcommand\footnoterule{%
  620.   \kern-3\p@
  621.   \hrule\@width.4\columnwidth
  622.   \kern2.6\p@}
  623. \newcommand\@makefntext[1]{%
  624.     \parindent 1em%
  625.     \noindent
  626.     \hb@xt@1.8em{\hss\@makefnmark}#1}
  627. \newcommand\contentsname{Contents}
  628. \newcommand\listfigurename{List of Figures}
  629. \newcommand\listtablename{List of Tables}
  630. \newcommand\refname{References}
  631. \newcommand\indexname{Index}
  632. \newcommand\figurename{Figure}
  633. \newcommand\tablename{Table}
  634. \newcommand\partname{Part}
  635. \newcommand\appendixname{Appendix}
  636. \newcommand\abstractname{Abstract}
  637. \def\today{\ifcase\month\or
  638.  January\or February\or March\or April\or May\or June\or
  639.  July\or August\or September\or October\or November\or December\fi
  640.  \space\number\day, \number\year}
  641. \setlength\columnsep{10\p@}
  642. \setlength\columnseprule{0\p@}
  643. \pagestyle{plain}
  644. \pagenumbering{arabic}
  645. \if@twoside
  646. \else
  647.   \raggedbottom
  648. \fi
  649. \if@twocolumn
  650.   \twocolumn
  651.   \sloppy
  652.   \flushbottom
  653. \else
  654.   \onecolumn
  655. \fi
  656. \endinput
  657. %%
  658. %% End of file `article.cls'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement