Guest User

etf.cls edited

a guest
Apr 22nd, 2014
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 26.04 KB | None | 0 0
  1. %%
  2. %% This is a generated file.
  3. %%
  4. %% Copyright 1993 -- 2011
  5. %% The LaTeX3 Project and any individual authors listed elsewhere
  6. %% in this file.
  7. %%
  8. %% This file was generated from file(s) of the LaTeX base system.
  9. %% --------------------------------------------------------------
  10. %%
  11. %% It may be distributed and/or modified under the
  12. %% conditions of the LaTeX Project Public License, either version 1.3c
  13. %% of this license or (at your option) any later version.
  14. %% The latest version of this license is in
  15. %%    http://www.latex-project.org/lppl.txt
  16. %% and version 1.3c or later is part of all distributions of LaTeX
  17. %% version 2005/12/01 or later.
  18. %%
  19. %% This file has the LPPL maintenance status "maintained".
  20. %%
  21. %% This file may only be distributed together with a copy of the LaTeX
  22. %% base system. You may however distribute the LaTeX base system without
  23. %% such generated files.
  24. %%
  25. %% The list of all files belonging to the LaTeX base distribution is
  26. %% given in the file `manifest.txt'. See also `legal.txt' for additional
  27. %% information.
  28. %%
  29. %% The list of derived (unpacked) files belonging to the distribution
  30. %% and covered by LPPL is defined by the unpacking scripts (with
  31. %% extension .ins) which are part of the distribution.
  32. %% \CharacterTable
  33. %%  {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
  34. %%   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
  35. %%   Digits        \0\1\2\3\4\5\6\7\8\9
  36. %%   Exclamation   \!     Double quote  \"     Hash (number) \#
  37. %%   Dollar        \$     Percent       \%     Ampersand     \&
  38. %%   Acute accent  \'     Left paren    \(     Right paren   \)
  39. %%   Asterisk      \*     Plus          \+     Comma         \,
  40. %%   Minus         \-     Point         \.     Solidus       \/
  41. %%   Colon         \:     Semicolon     \;     Less than     \<
  42. %%   Equals        \=     Greater than  \>     Question mark \?
  43. %%   Commercial at \@     Left bracket  \[     Backslash     \\
  44. %%   Right bracket \]     Circumflex    \^     Underscore    \_
  45. %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
  46. %%   Right brace   \}     Tilde         \~}
  47. \NeedsTeXFormat{LaTeX2e}[1995/12/01]
  48. \ProvidesClass{etf}[2011/06/14
  49.         LaTeX klasa za studentske radove v2.2; M. Bjelica]
  50. \newcommand\@ptsize{}
  51.  
  52. \newif\ifmaster
  53. \newif\ifdiplomski
  54. \newif\ifprojekat
  55.  
  56. \def\@mentor{\relax}
  57. \newcommand{\mentor}[1]{\gdef\@mentor{#1}}
  58. %\renewcommand{\maketitle}{
  59. %\begin{titlepage}
  60. %\huge\@author\par
  61. %\Large\@title\par
  62. %\if\@subtitle\relax\else\large\@subtitle\par\fi
  63. %\normalsize\@date\par
  64. %\end{titlepage}
  65. %}
  66. \def\@predmet{\relax}
  67. \newcommand{\predmet}[1]{\gdef\@predmet{#1}}
  68.  
  69. \def\@indeks{\relax}
  70. \newcommand{\indeks}[1]{\gdef\@indeks{#1}}
  71.  
  72.  
  73. \DeclareOption{master}{\mastertrue}
  74. \DeclareOption{diplomski}{\diplomskitrue}
  75. \DeclareOption{projekat}{\projekattrue}
  76.  
  77.  
  78. \newif\if@restonecol
  79. \newif\if@titlepage
  80. \@titlepagetrue
  81. \newif\if@openright
  82. \if@compatibility\else
  83. \DeclareOption{a4paper}
  84.   {\setlength\paperheight {297mm}%
  85.     \setlength\paperwidth  {210mm}}
  86. \DeclareOption{a5paper}
  87.   {\setlength\paperheight {210mm}%
  88.     \setlength\paperwidth  {148mm}}
  89. \DeclareOption{b5paper}
  90.   {\setlength\paperheight {250mm}%
  91.     \setlength\paperwidth  {176mm}}
  92. \DeclareOption{letterpaper}
  93.   {\setlength\paperheight {11in}%
  94.     \setlength\paperwidth  {8.5in}}
  95. \DeclareOption{legalpaper}
  96.   {\setlength\paperheight {14in}%
  97.     \setlength\paperwidth  {8.5in}}
  98. \DeclareOption{executivepaper}
  99.   {\setlength\paperheight {10.5in}%
  100.     \setlength\paperwidth  {7.25in}}
  101. \DeclareOption{landscape}
  102.   {\setlength\@tempdima   {\paperheight}%
  103.     \setlength\paperheight {\paperwidth}%
  104.     \setlength\paperwidth  {\@tempdima}}
  105. \fi
  106. \if@compatibility
  107.  \renewcommand\@ptsize{0}
  108. \else
  109. \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
  110. \fi
  111. \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
  112. \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
  113. \if@compatibility\else
  114. \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
  115. \fi
  116. \DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
  117. \DeclareOption{draft}{\setlength\overfullrule{5pt}}
  118. \if@compatibility\else
  119. \DeclareOption{final}{\setlength\overfullrule{0pt}}
  120. \fi
  121. \DeclareOption{titlepage}{\@titlepagetrue}
  122. \if@compatibility\else
  123. \DeclareOption{notitlepage}{\@titlepagefalse}
  124. \fi
  125. \if@compatibility
  126. \else
  127. \DeclareOption{openright}{\@openrighttrue}
  128. \DeclareOption{openany}{\@openrightfalse}
  129. \fi
  130. \if@compatibility\else
  131. \DeclareOption{onecolumn}{\@twocolumnfalse}
  132. \fi
  133. \DeclareOption{twocolumn}{\@twocolumntrue}
  134. \DeclareOption{leqno}{\input{leqno.clo}}
  135. \DeclareOption{fleqn}{\input{fleqn.clo}}
  136. \DeclareOption{openbib}{%
  137.   \AtEndOfPackage{%
  138.    \renewcommand\@openbib@code{%
  139.       \advance\leftmargin\bibindent
  140.       \itemindent -\bibindent
  141.       \listparindent \itemindent
  142.       \parsep \z@
  143.       }%
  144.    \renewcommand\newblock{\par}}%
  145. }
  146. \ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final,openany}
  147. \ProcessOptions
  148.  
  149. \input{size1\@ptsize.clo}
  150. \setlength\lineskip{1\p@}
  151. \setlength\normallineskip{1\p@}
  152. \renewcommand\baselinestretch{}
  153. \setlength\parskip{0\p@ \@plus \p@}
  154. \@lowpenalty   51
  155. \@medpenalty  151
  156. \@highpenalty 301
  157. \setcounter{topnumber}{2}
  158. \renewcommand\topfraction{.7}
  159. \setcounter{bottomnumber}{1}
  160. \renewcommand\bottomfraction{.3}
  161. \setcounter{totalnumber}{3}
  162. \renewcommand\textfraction{.2}
  163. \renewcommand\floatpagefraction{.5}
  164. \setcounter{dbltopnumber}{2}
  165. \renewcommand\dbltopfraction{.7}
  166. \renewcommand\dblfloatpagefraction{.5}
  167. \if@twoside
  168.   \def\ps@headings{%
  169.       \let\@oddfoot\@empty\let\@evenfoot\@empty
  170.       \def\@evenhead{\thepage\hfil\slshape\leftmark}%
  171.       \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
  172.       \let\@mkboth\markboth
  173.     \def\chaptermark##1{%
  174.       \markboth {\MakeUppercase{%
  175.         \ifnum \c@secnumdepth >\m@ne
  176.             \@chapapp\ \thechapter. \ %
  177.         \fi
  178.         ##1}}{}}%
  179.     \def\sectionmark##1{%
  180.       \markright {\MakeUppercase{%
  181.         \ifnum \c@secnumdepth >\z@
  182.           \thesection. \ %
  183.         \fi
  184.         ##1}}}}
  185. \else
  186.   \def\ps@headings{%
  187.     \let\@oddfoot\@empty
  188.     \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
  189.     \let\@mkboth\markboth
  190.     \def\chaptermark##1{%
  191.       \markright {\MakeUppercase{%
  192.         \ifnum \c@secnumdepth >\m@ne
  193.             \@chapapp\ \thechapter. \ %
  194.         \fi
  195.         ##1}}}}
  196. \fi
  197. \def\ps@myheadings{%
  198.     \let\@oddfoot\@empty\let\@evenfoot\@empty
  199.     \def\@evenhead{\thepage\hfil\slshape\leftmark}%
  200.     \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
  201.     \let\@mkboth\@gobbletwo
  202.     \let\chaptermark\@gobble
  203.     \let\sectionmark\@gobble
  204.     }
  205.   \if@titlepage
  206.   \newcommand\maketitle{\begin{titlepage}%
  207.   \let\footnotesize\small
  208.   \let\footnoterule\relax
  209.   \let \footnote \thanks
  210.  
  211.   \begin{center}%
  212.         {\large \textsc{Gimnazija "`Branislav Petronijevi\'{c}"'}\par}
  213.         {\small Ub, Vuka Karad\v{z}i\'{c}a 15 \par}
  214. %       {\large \textsc{Gimnazija\\[.5ex]"`Branislav Petronijevi\'{c}"'}\par}
  215.          \vskip 18ex
  216.     {\large \ifmaster {\normalsize \textsc{Maturski rad iz \@predmet}} \else
  217.    \@author, \@indeks \fi \par}%
  218.       \vskip 12ex
  219.     {\LARGE \@title \par}%
  220.     \vskip 2ex%
  221.     {\large
  222. %    \ifmaster master rad \par \fi
  223.     \ifdiplomski diplomski rad \par \fi
  224.     \ifprojekat \em projekat iz predmeta \@predmet \par \fi
  225.     }
  226.   \end{center}\par
  227.    \vfill \vfill
  228.  mentor: \ifmaster \hspace*{\fill} u\v{c}enik: \fi \par
  229.  \@mentor \ifmaster \hspace*{\fill} \@author, \@indeks \fi \par
  230. %  \ifmaster \hspace*{\fill} odeljenje: \@indeks \par \fi
  231.   \vfill
  232.  
  233.     \begin{center}
  234.     {\large Ub, \@date}
  235.     \end{center}
  236.  \end{titlepage}%
  237.   \setcounter{footnote}{0}%
  238.   \global\let\thanks\relax
  239.   \global\let\maketitle\relax
  240.   \global\let\@thanks\@empty
  241.   \global\let\@author\@empty
  242.   \global\let\@date\@empty
  243.   \global\let\@title\@empty
  244.   \global\let\@mentor\@empty
  245.   \global\let\@predmet\@empty
  246.   \global\let\@indeks\@empty
  247.   \global\let\predmet\relax
  248.   \global\let\indeks\relax
  249.   \global\let\mentor\relax
  250.   \global\let\title\relax
  251.   \global\let\author\relax
  252.   \global\let\date\relax
  253.   \global\let\and\relax
  254. }
  255. \else
  256. \newcommand\maketitle{\par
  257.  \begingroup
  258.    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
  259.     \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
  260.     \long\def\@makefntext##1{\parindent 1em\noindent
  261.             \hb@[email protected]{%
  262.                 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
  263.     \if@twocolumn
  264.       \ifnum \col@number=\@ne
  265.         \@maketitle
  266.       \else
  267.         \twocolumn[\@maketitle]%
  268.       \fi
  269.     \else
  270.       \newpage
  271.       \global\@topnum\z@   % Prevents figures from going at top of page.
  272.       \@maketitle
  273.     \fi
  274.     \thispagestyle{plain}\@thanks
  275.  \endgroup
  276.  \setcounter{footnote}{0}%
  277.   \global\let\thanks\relax
  278.   \global\let\maketitle\relax
  279.   \global\let\@maketitle\relax
  280.   \global\let\@thanks\@empty
  281.   \global\let\@author\@empty
  282.   \global\let\@date\@empty
  283.   \global\let\@title\@empty
  284.   \global\let\@mentor\@empty
  285.   \global\let\@indeks\@empty
  286.   \global\let\mentor\relax
  287.   \global\let\indeks\relax
  288.   \global\let\title\relax
  289.   \global\let\author\relax
  290.   \global\let\date\relax
  291.   \global\let\and\relax
  292.   \global\let\@predmet\@empty
  293.   \global\let\predmet\relax
  294. }
  295. \def\@maketitle{%
  296.   \newpage
  297.   \begin{center}%
  298.         {\large \textsc{Gimnazija "`Branislav Petronijevi\'{c}"'}\par}
  299.         {\small Ub, Vuka Karad\v{z}i\'{c}a 15 \par}
  300. %       {\large \textsc{Gimnazija\\[.5ex]"`Branislav Petronijevi\'{c}"'}\par}
  301.          \vskip 18ex
  302.     {\large \ifmaster {\normalsize \textsc{Maturski rad iz \@predmet}} \else
  303.    \@author, \@indeks \fi \par}%
  304.       \vskip 12ex
  305.     {\LARGE \@title \par}%
  306.     \vskip 2ex%
  307.     {\large
  308. %    \ifmaster master rad \par \fi
  309.     \ifdiplomski diplomski rad \par \fi
  310.     \ifprojekat \em projekat iz predmeta \@predmet \par \fi
  311.     }
  312.   \end{center}\par
  313.    \vfill \vfill
  314.  mentor: \hspace*{\fill} \ifmaster u\v{c}enik: \fi \par
  315.  \@mentor \ifmaster \hspace*{\fill} \@author, \@indeks \fi \par
  316. %  \ifmaster \hspace*{\fill} odeljenje: \@indeks \par \fi
  317.   \vfill  
  318.     \begin{center}
  319.     {\large Ub, \@date}
  320.     \end{center}
  321.     \fi
  322. \newcommand*\chaptermark[1]{}
  323. \setcounter{secnumdepth}{2}
  324. \newcounter {part}
  325. \newcounter {chapter}
  326. \newcounter {section}[chapter]
  327. \newcounter {subsection}[section]
  328. \newcounter {subsubsection}[subsection]
  329. \newcounter {paragraph}[subsubsection]
  330. \newcounter {subparagraph}[paragraph]
  331. \renewcommand \thepart {\@Roman\c@part}
  332. \renewcommand \thechapter {\@arabic\c@chapter}
  333. \renewcommand \thesection {\thechapter.\@arabic\c@section}
  334. \renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}
  335. \renewcommand\thesubsubsection{\thesubsection.\@arabic\c@subsubsection}
  336. \renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
  337. \renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
  338. \newcommand\@chapapp{\chaptername}
  339. \newcommand\part{%
  340.   \if@openright
  341.     \cleardoublepage
  342.   \else
  343.     \clearpage
  344.   \fi
  345.   \thispagestyle{plain}%
  346.   \if@twocolumn
  347.     \onecolumn
  348.     \@tempswatrue
  349.   \else
  350.     \@tempswafalse
  351.   \fi
  352.   \null\vfil
  353.   \secdef\@part\@spart}
  354.  
  355. \def\@part[#1]#2{%
  356.     \ifnum \c@secnumdepth >-2\relax
  357.       \refstepcounter{part}%
  358.       \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
  359.     \else
  360.       \addcontentsline{toc}{part}{#1}%
  361.     \fi
  362.     \markboth{}{}%
  363.     {\centering
  364.     \interlinepenalty \@M
  365.     \normalfont
  366.     \ifnum \c@secnumdepth >-2\relax
  367.       \huge\bfseries \partname\nobreakspace\thepart
  368.       \par
  369.       \vskip 20\p@
  370.     \fi
  371.     \Huge \bfseries #2\par}%
  372.     \@endpart}
  373. \def\@spart#1{%
  374.     {\centering
  375.     \interlinepenalty \@M
  376.     \normalfont
  377.     \Huge \bfseries #1\par}%
  378.     \@endpart}
  379. \def\@endpart{\vfil\newpage
  380.              \if@twoside
  381.               \if@openright
  382.                \null
  383.                \thispagestyle{empty}%
  384.                 \newpage
  385.                \fi
  386.               \fi
  387.               \if@tempswa
  388.                 \twocolumn
  389.               \fi}
  390. \newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
  391.                    \thispagestyle{plain}%
  392.                     \global\@topnum\z@
  393.                     \@afterindentfalse
  394.                     \secdef\@chapter\@schapter}
  395. \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
  396.                         \refstepcounter{chapter}%
  397.                          \typeout{\@chapapp\space\thechapter.}%
  398.                          \addcontentsline{toc}{chapter}%
  399.                                    {\protect\numberline{\thechapter}#1}%
  400.                     \else
  401.                       \addcontentsline{toc}{chapter}{#1}%
  402.                     \fi
  403.                     \chaptermark{#1}%
  404.                     \addtocontents{lof}{\protect\addvspace{10\p@}}%
  405.                     \addtocontents{lot}{\protect\addvspace{10\p@}}%
  406.                     \if@twocolumn
  407.                       \@topnewpage[\@makechapterhead{#2}]%
  408.                     \else
  409.                       \@makechapterhead{#2}%
  410.                       \@afterheading
  411.                     \fi}
  412. \def\@makechapterhead#1{%
  413.   \vspace*{50\p@}%
  414.   {\parindent \z@ \raggedright \normalfont
  415.    \ifnum \c@secnumdepth >\m@ne
  416.        \huge\bfseries \@chapapp\space \thechapter
  417.        \par\nobreak
  418.        \vskip 20\p@
  419.    \fi
  420.    \interlinepenalty\@M
  421.    \Huge \bfseries #1\par\nobreak
  422.    \vskip 40\p@
  423.  }}
  424. \def\@schapter#1{\if@twocolumn
  425.                   \@topnewpage[\@makeschapterhead{#1}]%
  426.                  \else
  427.                    \@makeschapterhead{#1}%
  428.                    \@afterheading
  429.                  \fi}
  430. \def\@makeschapterhead#1{%
  431.   \vspace*{50\p@}%
  432.   {\parindent \z@ \raggedright
  433.    \normalfont
  434.    \interlinepenalty\@M
  435.    \Huge \bfseries  #1\par\nobreak
  436.    \vskip 40\p@
  437.  }}
  438. \newcommand\section{\@startsection {section}{1}{\z@}%
  439.                                    {-3.5ex \@plus -1ex \@minus -.2ex}%
  440.                                    {2.3ex \@plus.2ex}%
  441.                                    {\normalfont\Large\bfseries}}
  442. \newcommand\subsection{\@startsection{subsection}{2}{\z@}%
  443.                                      {-3.25ex\@plus -1ex \@minus -.2ex}%
  444.                                      {1.5ex \@plus .2ex}%
  445.                                      {\normalfont\large\bfseries}}
  446. \newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
  447.                                      {-3.25ex\@plus -1ex \@minus -.2ex}%
  448.                                      {1.5ex \@plus .2ex}%
  449.                                      {\normalfont\normalsize\bfseries}}
  450. \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
  451.                                     {3.25ex \@plus1ex \@minus.2ex}%
  452.                                     {-1em}%
  453.                                     {\normalfont\normalsize\bfseries}}
  454. \newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
  455.                                        {3.25ex \@plus1ex \@minus .2ex}%
  456.                                        {-1em}%
  457.                                       {\normalfont\normalsize\bfseries}}
  458. \if@twocolumn
  459.  \setlength\leftmargini  {2em}
  460. \else
  461.  \setlength\leftmargini  {2.5em}
  462. \fi
  463. \leftmargin  \leftmargini
  464. \setlength\leftmarginii  {2.2em}
  465. \setlength\leftmarginiii {1.87em}
  466. \setlength\leftmarginiv  {1.7em}
  467. \if@twocolumn
  468.  \setlength\leftmarginv  {.5em}
  469.  \setlength\leftmarginvi {.5em}
  470. \else
  471.  \setlength\leftmarginv  {1em}
  472.  \setlength\leftmarginvi {1em}
  473. \fi
  474. \setlength  \labelsep  {.5em}
  475. \setlength  \labelwidth{\leftmargini}
  476. \addtolength\labelwidth{-\labelsep}
  477. \@beginparpenalty -\@lowpenalty
  478. \@endparpenalty   -\@lowpenalty
  479. \@itempenalty     -\@lowpenalty
  480. \renewcommand\theenumi{\@arabic\c@enumi}
  481. \renewcommand\theenumii{\@alph\c@enumii}
  482. \renewcommand\theenumiii{\@roman\c@enumiii}
  483. \renewcommand\theenumiv{\@Alph\c@enumiv}
  484. \newcommand\labelenumi{\theenumi.}
  485. \newcommand\labelenumii{(\theenumii)}
  486. \newcommand\labelenumiii{\theenumiii.}
  487. \newcommand\labelenumiv{\theenumiv.}
  488. \renewcommand\p@enumii{\theenumi}
  489. \renewcommand\p@enumiii{\theenumi(\theenumii)}
  490. \renewcommand\p@enumiv{\p@enumiii\theenumiii}
  491. \newcommand\labelitemi{\textbullet}
  492. \newcommand\labelitemii{\normalfont\bfseries \textendash}
  493. \newcommand\labelitemiii{\textasteriskcentered}
  494. \newcommand\labelitemiv{\textperiodcentered}
  495. \newenvironment{description}
  496.               {\list{}{\labelwidth\z@ \itemindent-\leftmargin
  497.                        \let\makelabel\descriptionlabel}}
  498.               {\endlist}
  499. \newcommand*\descriptionlabel[1]{\hspace\labelsep
  500.                                \normalfont\bfseries #1}
  501. \if@titlepage
  502.    
  503.  \newenvironment{abstract}{%
  504.       \titlepage
  505.       \null\vfil
  506.       \@beginparpenalty\@lowpenalty
  507.       \begin{center}%
  508.         \bfseries \abstractname
  509.         \@endparpenalty\@M
  510.       \end{center}}%
  511.            
  512.     \newenvironment{keywords}{
  513.      \vspace{5ex}
  514.       \@beginparpenalty\@lowpenalty
  515.  %     \begin{center}%
  516.        \parindent 0pt {\bfseries Klju\v{c}ne re\v{c}i:}
  517.         \@endparpenalty\@M
  518.  %     \end{center}
  519.  }
  520.      {\par\vfil\null\endtitlepage}
  521. \else
  522.  \newenvironment{abstract}{%
  523.       \if@twocolumn
  524.         \section*{\abstractname}%
  525.       \else
  526.         \small
  527.         \begin{center}%
  528.           {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
  529.         \end{center}%
  530.         \quotation
  531.       \fi}
  532.         \newenvironment{keywords}{%
  533.       \if@twocolumn
  534.         \section*{Klju\v{c}ne re\v{c}i}%
  535.       \else
  536.         \small
  537.         \begin{center}%
  538.           {\bfseries Klju\v{c}ne re\v{c}i\vspace{-.5em}\vspace{\z@}}%
  539.         \end{center}%
  540.         \quotation
  541.       \fi}
  542.       {\if@twocolumn\else\endquotation\fi}
  543. \fi
  544. \newenvironment{verse}
  545.               {\let\\\@centercr
  546.                \list{}{\itemsep      \z@
  547.                         \itemindent   -1.5em%
  548.                         \listparindent\itemindent
  549.                         \rightmargin  \leftmargin
  550.                         \advance\leftmargin 1.5em}%
  551.                 \item\relax}
  552.                {\endlist}
  553. \newenvironment{quotation}
  554.               {\list{}{\listparindent 1.5em%
  555.                         \itemindent    \listparindent
  556.                         \rightmargin   \leftmargin
  557.                         \parsep        \z@ \@plus\p@}%
  558.                 \item\relax}
  559.                {\endlist}
  560. \newenvironment{quote}
  561.               {\list{}{\rightmargin\leftmargin}%
  562.                 \item\relax}
  563.                {\endlist}
  564. \if@compatibility
  565. \newenvironment{titlepage}
  566.     {%
  567.       \if@twocolumn
  568.         \@restonecoltrue\onecolumn
  569.       \else
  570.         \@restonecolfalse\newpage
  571.       \fi
  572.       \thispagestyle{empty}%
  573.       \setcounter{page}\z@
  574.    }%
  575.     {\if@restonecol\twocolumn \else \newpage \fi
  576.    }
  577. \else
  578. \newenvironment{titlepage}
  579.     {%
  580.       \if@twocolumn
  581.         \@restonecoltrue\onecolumn
  582.       \else
  583.         \@restonecolfalse\newpage
  584.       \fi
  585.       \thispagestyle{empty}%
  586.       \setcounter{page}\@ne
  587.    }%
  588.     {\if@restonecol\twocolumn \else \newpage \fi
  589.     \if@twoside\else
  590.        \setcounter{page}\@ne
  591.     \fi
  592.    }
  593. \fi
  594. \newcommand\appendix{\par
  595.  \setcounter{chapter}{0}%
  596.   \setcounter{section}{0}%
  597.   \gdef\@chapapp{\appendixname}%
  598.   \gdef\thechapter{\@Alph\c@chapter}}
  599. \setlength\arraycolsep{5\p@}
  600. \setlength\tabcolsep{6\p@}
  601. \setlength\arrayrulewidth{.4\p@}
  602. \setlength\doublerulesep{2\p@}
  603. \setlength\tabbingsep{\labelsep}
  604. \skip\@mpfootins = \skip\footins
  605. \setlength\fboxsep{3\p@}
  606. \setlength\fboxrule{.4\p@}
  607. \@addtoreset {equation}{chapter}
  608. \renewcommand\theequation
  609.  {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation}
  610. \newcounter{figure}[chapter]
  611. \renewcommand \thefigure
  612.     {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@figure}
  613. \def\fps@figure{tbp}
  614. \def\ftype@figure{1}
  615. \def\ext@figure{lof}
  616. \def\fnum@figure{\figurename\nobreakspace\thefigure}
  617. \newenvironment{figure}
  618.               {\@float{figure}}
  619.               {\end@float}
  620. \newenvironment{figure*}
  621.               {\@dblfloat{figure}}
  622.               {\end@dblfloat}
  623. \newcounter{table}[chapter]
  624. \renewcommand \thetable
  625.     {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@table}
  626. \def\fps@table{tbp}
  627. \def\ftype@table{2}
  628. \def\ext@table{lot}
  629. \def\fnum@table{\tablename\nobreakspace\thetable}
  630. \newenvironment{table}
  631.               {\@float{table}}
  632.               {\end@float}
  633. \newenvironment{table*}
  634.               {\@dblfloat{table}}
  635.               {\end@dblfloat}
  636. \newlength\abovecaptionskip
  637. \newlength\belowcaptionskip
  638. \setlength\abovecaptionskip{10\p@}
  639. \setlength\belowcaptionskip{0\p@}
  640. \long\def\@makecaption#1#2{%
  641.   \vskip\abovecaptionskip
  642.   \sbox\@tempboxa{#1: #2}%
  643.   \ifdim \wd\@tempboxa >\hsize
  644.     #1: #2\par
  645.   \else
  646.     \global \@minipagefalse
  647.     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  648.   \fi
  649.   \vskip\belowcaptionskip}
  650. \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
  651. \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
  652. \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
  653. \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
  654. \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
  655. \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
  656. \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
  657. \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
  658. \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
  659. \newcommand\@pnumwidth{1.55em}
  660. \newcommand\@tocrmarg{2.55em}
  661. \newcommand\@dotsep{4.5}
  662. \setcounter{tocdepth}{2}
  663. \newcommand\tableofcontents{%
  664.     \if@twocolumn
  665.       \@restonecoltrue\onecolumn
  666.     \else
  667.       \@restonecolfalse
  668.     \fi
  669.     \chapter*{\contentsname
  670.         \@mkboth{%
  671.            \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
  672.     \@starttoc{toc}%
  673.     \if@restonecol\twocolumn\fi
  674.     }
  675. \newcommand*\l@part[2]{%
  676.   \ifnum \c@tocdepth >-2\relax
  677.     \addpenalty{-\@highpenalty}%
  678.     \addvspace{2.25em \@plus\p@}%
  679.     \setlength\@tempdima{3em}%
  680.     \begingroup
  681.       \parindent \z@ \rightskip \@pnumwidth
  682.       \parfillskip -\@pnumwidth
  683.       {\leavevmode
  684.       \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
  685.       \nobreak
  686.         \global\@nobreaktrue
  687.         \everypar{\global\@nobreakfalse\everypar{}}%
  688.     \endgroup
  689.   \fi}
  690. \newcommand*\l@chapter[2]{%
  691.   \ifnum \c@tocdepth >\m@ne
  692.     \addpenalty{-\@highpenalty}%
  693.     \vskip 1.0em \@plus\p@
  694.     \setlength\@tempdima{1.5em}%
  695.     \begingroup
  696.       \parindent \z@ \rightskip \@pnumwidth
  697.       \parfillskip -\@pnumwidth
  698.       \leavevmode \bfseries
  699.       \advance\leftskip\@tempdima
  700.       \hskip -\leftskip
  701.       #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
  702.      \penalty\@highpenalty
  703.    \endgroup
  704.  \fi}
  705. \newcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
  706. \newcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
  707. \newcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
  708. \newcommand*\l@paragraph{\@dottedtocline{4}{10em}{5em}}
  709. \newcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
  710. \newcommand\listoffigures{%
  711.     \if@twocolumn
  712.       \@restonecoltrue\onecolumn
  713.     \else
  714.       \@restonecolfalse
  715.     \fi
  716.     \chapter*{\listfigurename}%
  717.       \@mkboth{\MakeUppercase\listfigurename}%
  718.               {\MakeUppercase\listfigurename}%
  719.     \@starttoc{lof}%
  720.     \if@restonecol\twocolumn\fi
  721.     }
  722. \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
  723. \newcommand\listoftables{%
  724.     \if@twocolumn
  725.       \@restonecoltrue\onecolumn
  726.     \else
  727.       \@restonecolfalse
  728.     \fi
  729.     \chapter*{\listtablename}%
  730.       \@mkboth{%
  731.           \MakeUppercase\listtablename}%
  732.          {\MakeUppercase\listtablename}%
  733.     \@starttoc{lot}%
  734.     \if@restonecol\twocolumn\fi
  735.     }
  736. \let\l@table\l@figure
  737. \newdimen\bibindent
  738. \setlength\bibindent{1.5em}
  739. \newenvironment{thebibliography}[1]
  740.     {\chapter*{\bibname}%
  741.       \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
  742.       \list{\@biblabel{\@arabic\c@enumiv}}%
  743.            {\settowidth\labelwidth{\@biblabel{#1}}%
  744.             \leftmargin\labelwidth
  745.             \advance\leftmargin\labelsep
  746.             \@openbib@code
  747.             \usecounter{enumiv}%
  748.             \let\p@enumiv\@empty
  749.             \renewcommand\theenumiv{\@arabic\c@enumiv}}%
  750.       \sloppy
  751.       \clubpenalty4000
  752.       \@clubpenalty \clubpenalty
  753.       \widowpenalty4000%
  754.       \sfcode`\.\@m}
  755.      {\def\@noitemerr
  756.       {\@latex@warning{Empty `thebibliography' environment}}%
  757.       \endlist}
  758. \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
  759. \let\@openbib@code\@empty
  760. \newenvironment{theindex}
  761.               {\if@twocolumn
  762.                  \@restonecolfalse
  763.                \else
  764.                  \@restonecoltrue
  765.                \fi
  766.                \twocolumn[\@makeschapterhead{\indexname}]%
  767.                 \@mkboth{\MakeUppercase\indexname}%
  768.                         {\MakeUppercase\indexname}%
  769.                 \thispagestyle{plain}\parindent\z@
  770.                \parskip\z@ \@plus .3\p@\relax
  771.                \columnseprule \z@
  772.                \columnsep 35\p@
  773.                \let\item\@idxitem}
  774.               {\if@restonecol\onecolumn\else\clearpage\fi}
  775. \newcommand\@idxitem{\par\hangindent 40\p@}
  776. \newcommand\subitem{\@idxitem \hspace*{20\p@}}
  777. \newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
  778. \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
  779. \renewcommand\footnoterule{%
  780.   \kern-3\p@
  781.   \hrule\@width.4\columnwidth
  782.   \kern2.6\p@}
  783. \@addtoreset{footnote}{chapter}
  784. \newcommand\@makefntext[1]{%
  785.     \parindent 1em%
  786.     \noindent
  787.     \hb@[email protected]{\hss\@makefnmark}#1}
  788. \newcommand\contentsname{Contents}
  789. \newcommand\listfigurename{List of Figures}
  790. \newcommand\listtablename{List of Tables}
  791. \newcommand\bibname{Bibliography}
  792. \newcommand\indexname{Index}
  793. \newcommand\figurename{Figure}
  794. \newcommand\tablename{Table}
  795. \newcommand\partname{Part}
  796. \newcommand\chaptername{Chapter}
  797. \newcommand\appendixname{Appendix}
  798. \newcommand\abstractname{Abstract}
  799.  
  800. \def\today{\ifcase\month\or
  801.  January\or February\or March\or April\or May\or June\or
  802.  July\or August\or September\or October\or November\or December\fi
  803.  \space\number\day, \number\year}
  804. \setlength\columnsep{10\p@}
  805. \setlength\columnseprule{0\p@}
  806. \pagestyle{plain}
  807. \pagenumbering{arabic}
  808. \if@twoside
  809. \else
  810.   \raggedbottom
  811. \fi
  812. \if@twocolumn
  813.   \twocolumn
  814.   \sloppy
  815.   \flushbottom
  816. \else
  817.   \onecolumn
  818. \fi
  819. \endinput
  820. %%
  821. %% End of file `etf.cls'.
Advertisement
Add Comment
Please, Sign In to add comment