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