summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/disser/disser.dtx
blob: 92ca65b34664fce47cfd76d9767fa8fb6e62efb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
% \iffalse meta-comment
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% disser -- LaTeX document class for dissertations.
%%
%% Copyright (c) Stanislav Kruchinin
%%
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%    http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2003/12/01 or later.
%%
%% This program is distributed in the hope that it will be useful,
%% but WITHOUT ANY WARRANTY; without even the implied warranty of
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%<*driver>
\ProvidesFile{disser.drv}[2017/03/03 1.5.0 Document class for dissertations]

\documentclass{ltxdoc}
\usepackage[a4paper,includeheadfoot,nohead,mag=1000,
            left=5cm,right=1cm,top=1.5cm,bottom=1.5cm]{geometry}
\usepackage{ifpdf,indentfirst,tabularx,doc,makeidx,longtable,color}

\definecolor{darkblue}{rgb}{0,0,.6}

\ifpdf
  \usepackage[pdftex,hyperindex,unicode]{hyperref}
  \usepackage{cmap}
\else
  \usepackage[hypertex]{hyperref}
\fi

\hypersetup{
  pdftitle           = {Documented source code of disser class},
  pdfauthor          = {Stanislav Kruchinin},
  pdfsubject         = {disser},
  pdfstartview       = {FitH},
  pdfborder          = {0 0 0},
  bookmarksopen      = true,
  bookmarksnumbered  = true,
  bookmarksopenlevel = 2,
  colorlinks = true,     linkcolor  = darkblue,
  citecolor  = darkblue, filecolor  = darkblue,
  menucolor  = darkblue, urlcolor   = darkblue
}

\IfFileExists{url.sty}{\usepackage{url}}{\newcommand\url{\texttt}}

\usepackage[T2A]{fontenc}
\usepackage[cp1251]{inputenc}
\usepackage[english,russian]{babel}

\usepackage{microtype}

\MakeShortVerb{\|}

\def\file#1{\texttt{#1}}
\def\pkg#1{\textsf{#1}}
\def\cmd#1{\texttt{#1}}

\def\deflabel#1{\ttfamily #1\hfill}
\newenvironment{deflist}[1]{%
  \begin{list}{}{%
  \settowidth\labelwidth{\ttfamily #1}%
  \setlength\leftmargin\labelwidth
  \addtolength\leftmargin\labelsep
  \let\makelabel\deflabel}
}{\end{list}}

\newcommand\DescribePackage[1]{%
  \DescribeEnv{#1}\index{Ïàêåòû!\texttt{#1}}
}

\newcommand\DescribeCounter[1]{%
  \DescribeMacro{#1}\index{Ñ÷åò÷èêè!\texttt{#1}}
}

\newcommand\DescribeOption[1]{
  \DescribeMacro{#1}\index{Îïöèè!\texttt{#1}}
}

\makeatletter
  \def\IndexParms{%
    \parindent \z@
    \columnsep 15pt
    \parskip 0pt plus 1pt
    \rightskip 15pt
    \mathsurround \z@
    \parfillskip=-15pt
    \small
    \def\@idxitem{\normalfont\par\hangindent 30pt\bfseries}%
    \def\subitem{\normalfont\par\hangindent 30pt}%
    \def\subsubitem{\normalfont\par\hangindent 30pt\hspace*{15pt}}%
    \def\indexspace{\par\vspace{10pt plus 2pt minus 3pt}}%
  }
  \def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
    \columnseprule \z@  \columnsep 35\p@
    \twocolumn[\index@prologue]%
    \IndexParms \let\item\@idxitem \ignorespaces}
  \def\endtheindex{\if@restonecol\onecolumn\else\clearpage\fi}
\makeatother

\setlength\hfuzz{20pt}
\hbadness=10000

\makeindex

\GetFileInfo{disser.drv}

\begin{document}
  \sloppy
  \DocInput{disser.dtx}
  \DocInput{counters.dtx}
  \DocInput{part.dtx}
  \DocInput{chapter.dtx}
  \DocInput{sections.dtx}
  \DocInput{lists.dtx}
  \DocInput{floats.dtx}
  \DocInput{env.dtx}
  \DocInput{page.dtx}
  \DocInput{titledefs.dtx}
  \DocInput{titlepage.dtx}
  \DocInput{bachelor.dtx}
  \DocInput{specialist.dtx}
  \DocInput{master.dtx}
  \DocInput{candidate.dtx}
  \DocInput{doctor.dtx}
  \DocInput{autoref.dtx}
  \DocInput{toc.dtx}
  \DocInput{custom.dtx}
  \IndexPrologue{\section{Ïðåäìåòíûé óêàçàòåëü}}
  \printindex
\end{document}
%</driver>
% \fi
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  \title{\pkg{disser} "--- ïàêåò äëÿ îôîðìëåíèÿ äèññåðòàöèé}
%  \date{Âåðñèÿ \fileversion\\[6pt]\filedate}
%  \author{Ñòàíèñëàâ Êðó÷èíèí\\[6pt]
%  \normalsize E-mail:
%  \href{mailto:stanislav.kruchinin@gmail.com}
%  {\texttt{stanislav.kruchinin@gmail.com}}}
%
%  \maketitle
%
%  \section*{Îáçîð äîêóìåíòàöèè}
%
%  Äîêóìåíòàöèÿ ïàêåòà ñîñòîèò èç ñëåäóþùèõ ôàéëîâ:
%  \begin{deflist}{README, README.ru }
%  \item[\href{file:manual.pdf}{manual.pdf}]
%    Ðóêîâîäñòâî ïîëüçîâàòåëÿ.
%  \item[README, README.ru]
%    Èíôîðìàöèÿ î ñáîðêå è óñòàíîâêå ïàêåòà.
%  \item[ChangeLog]
%    Èñòîðèÿ âåðñèé.
%  \end{deflist}
%
%  Äîêóìåíòèðîâàííûå èñõîäíûå òåêñòû:
%  \begin{deflist}{README, README.ru }
%  \item[\href{file:disser.pdf}{disser.dtx}]
%    Èñõîäíûé òåêñò êëàññà \pkg{disser} (äàííûé ôàéë).
%  \item[\href{file:gost732.pdf}{gost732.dtx}]
%    Èñõîäíûé òåêñò êëàññà \pkg{gost732} äëÿ îôîðìëåíèÿ äîêóìåíòîâ â
%    ñîîòâåòñòâèè ñ ÃÎÑÒ 7.32-2001.
%  \end{deflist}
%
%  \clearpage
%  \tableofcontents
%
%  \section{Èñõîäíûé òåêñò êëàññà}\parindent=0pt
%
%    \begin{macrocode}

%<*disser>
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{disser}[2017/03/03 1.4.1 Document class for dissertations]

%    \end{macrocode}
% Ïîäêëþ÷åíèå ïàêåòà \pkg{kvoptions} äëÿ îáðàáîòêè îïöèé â ôîðìàòå
% <<êëþ÷ = çíà÷åíèå>>.
% \DescribePackage{kvoptions}
%    \begin{macrocode}
\RequirePackage{kvoptions}

%    \end{macrocode}
% Îïðåäåëåíèå îïåðàòîðîâ óñëîâíîãî âûïîëíåíèÿ:
% \begin{itemize}
% \item ïîäêëþ÷åíèå ïàêåòà \pkg{ifpdf}, îïðåäåëÿþùåãî êîìàíäó |\ifpdf|.
% \DescribePackage{ifpdf}
%    \begin{macrocode}
\RequirePackage{ifpdf}

%    \end{macrocode}
% \item ïîäêëþ÷åíèå ïàêåòà \pkg{ifthen} äëÿ ïîñòðî÷íûõ ñðàâíåíèé.
% \DescribePackage{ifthen}
%    \begin{macrocode}
\RequirePackage{ifthen}

%    \end{macrocode}
% \item Àíãëîÿçû÷íàÿ âåðñèÿ òèòóëüíîãî ëèñòà.
%    \begin{macrocode}
\newif\if@titlepage@en\@titlepage@enfalse
%    \end{macrocode}
% \item Ðàçðåøåíî îñòàâëÿòü îäíó êîëîíêó ïðè äâóõêîëîííîì íàáîðå.
%    \begin{macrocode}
\newif\if@restonecol
%    \end{macrocode}
% \item Îòîáðàæåíèå òèòóëüíîãî ëèñòà (âêëþ÷åíî).
%    \begin{macrocode}
\newif\if@titlepage\@titlepagetrue
%    \end{macrocode}
% \item Ãëàâû íà÷èíàþòñÿ òîëüêî ñ íå÷åòíûõ ñòðàíèö (îòêëþ÷åíî).
%    \begin{macrocode}
\newif\if@openright\@openrightfalse
%    \end{macrocode}
% \item Òèïû äîêóìåíòîâ (ïî óìîë÷àíèþ candidate).
%    \begin{macrocode}
\newif\ifDis@bachelor\Dis@bachelorfalse
\newif\ifDis@specialist\Dis@specialistfalse
\newif\ifDis@master\Dis@masterfalse
\newif\ifDis@candidate\Dis@candidatetrue
\newif\ifDis@doctor\Dis@doctorfalse
\newif\ifDis@autoref\Dis@autoreffalse
%    \end{macrocode}
% \item Îòîáðàæåíèå ÓÄÊ íà òèòóëüíîì ëèñòå (îòêëþ÷åíî).
%    \begin{macrocode}
\newif\ifDis@libcat\Dis@libcatfalse
%    \end{macrocode}
% \item Îòîáðàæåíèå ãðèôà ñåêðåòíîñòè íà òèòóëüíîì ëèñòå (îòêëþ÷åíî).
%    \begin{macrocode}
\newif\ifDis@classified\Dis@classifiedfalse
%    \end{macrocode}
% \item Îòîáðàæåíèå ïîäïèñåé äèññåðòàíòà è ó÷åíîãî ñåêðåòàðÿ (îòêëþ÷åíî).
%    \begin{macrocode}
\newif\ifDis@facsimile\Dis@facsimilefalse
%    \end{macrocode}
% \item Ïîäêëþ÷åíèå \pkg{hyperref} (îòêëþ÷åíî).
%    \begin{macrocode}
\newif\ifDis@href\Dis@hreffalse
%    \end{macrocode}
% \item Ïîäêëþ÷åíèå \pkg{subcaption} (îòêëþ÷åíî).
%    \begin{macrocode}
\newif\ifDis@subf\Dis@subffalse
%    \end{macrocode}
% \item Øðèôò Times êàê îñíîâíîé (îòêëþ÷åíî).
%    \begin{macrocode}
\newif\ifDis@times\Dis@timesfalse
%    \end{macrocode}
% \item Ïîääåðæêà ìàòåìàòè÷åñêèõ øðèôòîâ MathTime Pro (îòêëþ÷åíî).
%    \begin{macrocode}
\newif\ifDis@mtpro\Dis@mtprofalse
%    \end{macrocode}
% \item Ïîäêëþ÷åíèå \pkg{natbib} (îòêëþ÷åíî).
%    \begin{macrocode}
\newif\ifDis@natbib\Dis@natbibfalse
%    \end{macrocode}
% \item Èñïîëüçîâàòü öâåòíûå ññûëêè (îòêëþ÷åíî).
%    \begin{macrocode}
\newif\ifDis@colorlinks\Dis@colorlinksfalse
%    \end{macrocode}
% \item Èñïðàâëåíèå çíàêîâ èíòåãðàëîâ íà áîëåå ïðèâû÷íûå (îòêëþ÷åíî).
%    \begin{macrocode}
\newif\ifDis@fixint\Dis@fixintfalse
%    \end{macrocode}
% \end{itemize}
%
% \subsection{Îïöèè êëàññà}
%
% Ïîäêëþ÷åíèå ïàêåòà \pkg{hyperref} è íåîáõîäèìûõ íàñòðîåê.
%    \begin{macrocode}
\DeclareOption{href}{\Dis@hreftrue}
%    \end{macrocode}
% Ïîäêëþ÷åíèå ïàêåòà \pkg{subcaption} è íåîáõîäèìûõ íàñòðîåê.
%    \begin{macrocode}
\DeclareOption{subf}{\Dis@subftrue}
%    \end{macrocode}
% Îòîáðàæåíèå ÓÄÊ íà òèòóëüíîì ëèñòå.
%    \begin{macrocode}
\DeclareOption{libcat}{\Dis@libcattrue}
%    \end{macrocode}
% Îòîáðàæåíèå ãðèôà ñåêðåòíîñòè.
%    \begin{macrocode}
\DeclareOption{classified}{\Dis@classifiedtrue}
%    \end{macrocode}
% Îòîáðàæåíèå ïîäïèñåé äèññåðòàíòà è ó÷åíîãî ñåêðåòàðÿ.
%    \begin{macrocode}
\DeclareOption{facsimile}{\Dis@facsimiletrue}
%    \end{macrocode}
% Ïîäêëþ÷åíèå ïàêåòà \pkg{natbib} è íåîáõîäèìûõ íàñòðîåê.
%    \begin{macrocode}
\DeclareOption{natbib}{\Dis@natbibtrue}
%    \end{macrocode}
% Èñïðàâëåíèå çíàêîâ èíòåãðàëîâ íà áîëåå ïðèâû÷íûå.
%    \begin{macrocode}
\DeclareOption{fixint}{\Dis@fixinttrue}
%    \end{macrocode}
% Ñîçäàíèå öâåòíûõ ññûëîê.
%    \begin{macrocode}
\DeclareOption{colorlinks}{\Dis@colorlinkstrue}
%    \end{macrocode}
% Ðàçìåðû ëèñòîâ.
%    \begin{macrocode}
\DeclareOption{a4paper}{%
  \setlength\paperheight{297mm}
  \setlength\paperwidth {210mm}
}
\DeclareOption{a5paper}{%
  \setlength\paperheight{210mm}
  \setlength\paperwidth {148mm}
}
\DeclareOption{b5paper}{%
  \setlength\paperheight{250mm}
  \setlength\paperwidth {176mm}
}
%    \end{macrocode}
% Àëüáîìíàÿ îðèåíòàöèÿ.
%    \begin{macrocode}
\DeclareOption{landscape}{%
  \setlength\@tempdima  {\paperheight}%
  \setlength\paperheight{\paperwidth}%
  \setlength\paperwidth {\@tempdima}
}

%    \end{macrocode}
% Ðàçìåð øðèôòà îñíîâíîãî òåêñòà.
%    \begin{macrocode}
\newcommand\@ptsize{}
\DeclareOption{8pt} {\renewcommand\@ptsize{8}}
\DeclareOption{9pt} {\renewcommand\@ptsize{9}}
\DeclareOption{10pt}{\renewcommand\@ptsize{10}}
\DeclareOption{11pt}{\renewcommand\@ptsize{11}}
\DeclareOption{12pt}{\renewcommand\@ptsize{12}}
\DeclareOption{14pt}{\renewcommand\@ptsize{14}}
\DeclareOption{16pt}{\renewcommand\@ptsize{16}}
\DeclareOption{18pt}{\renewcommand\@ptsize{18}}
\DeclareOption{20pt}{\renewcommand\@ptsize{20}}

%    \end{macrocode}
% Óñòàíîâêà ïîëåé äëÿ îäíîñòîðîííåé èëè äâóõñòîðîííåé ïå÷àòè.
%    \begin{macrocode}
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
\DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}

%    \end{macrocode}
% Âêëþ÷åíèå ñîîáùåíèé î ñòðîêàõ, âûõîäÿùèõ çà ïîëÿ.
%    \begin{macrocode}
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
\DeclareOption{final}{\setlength\overfullrule{0pt}}

%    \end{macrocode}
% Ïå÷àòàòü òèòóëüíûé ëèñò èëè íåò.
%    \begin{macrocode}
\DeclareOption{titlepage}  {\@titlepagetrue}
\DeclareOption{notitlepage}{\@titlepagefalse}

%    \end{macrocode}
% Ãëàâû áóäóò íà÷èíàòüñÿ òîëüêî íà íå÷åòíîé ñòðàíèöå (áóäåò âñåãäà ñïðàâà íà
% ðàçâîðîòå) èëè íà ïåðâîé äîñòóïíîé.
%    \begin{macrocode}
\DeclareOption{openright}{\@openrighttrue}
\DeclareOption{openany}{\@openrightfalse}

%    \end{macrocode}
% Âåðñòêà â îäèí èëè â äâà ñòîëáöà.
%    \begin{macrocode}
\DeclareOption{onecolumn}{\@twocolumnfalse}
\DeclareOption{twocolumn}{\@twocolumntrue}

%    \end{macrocode}
% Íîìåðà ðàçìåùàþòñÿ ñëåâà, à íå ñïðàâà îò ôîðìóë.
%    \begin{macrocode}
\DeclareOption{leqno}{\input{leqno.clo}}

%    \end{macrocode}
% Âûêëþ÷íûå ôîðìóëû áóäóò âûðàâíåíû ïî ëåâîìó êðàþ, à íå ïî öåíòðó.
%    \begin{macrocode}
\DeclareOption{fleqn}{\input{fleqn.clo}}
%    \end{macrocode}
% Åñëè óêàçàíà ýòà îïöèÿ, òî áëîêè òåêñòà â ñïèñêå ëèòåðàòóðû áóäóò ïå÷àòàòüñÿ
% íà íîâûõ ñòðîêàõ è ñ îòñòóïîì.
%    \begin{macrocode}
\DeclareOption{openbib}{%
  \AtEndOfPackage{%
    \renewcommand\@openbib@code{%
      \advance\leftmargin\bibindent
      \itemindent -\bibindent
      \listparindent \itemindent
      \parsep \z@
    }%
    \renewcommand\newblock{\par}
  }%
}

%    \end{macrocode}
% Òèï äèññåðòàöèè.
%    \begin{macrocode}
\DeclareOption{bachelor}{%
  \Dis@bachelortrue
  \Dis@specialistfalse
  \Dis@masterfalse
  \Dis@candidatefalse
  \Dis@doctorfalse
  \Dis@autoreffalse
}
\DeclareOption{specialist}{%
  \Dis@bachelorfalse
  \Dis@specialisttrue
  \Dis@masterfalse
  \Dis@candidatefalse
  \Dis@doctorfalse
  \Dis@autoreffalse
}
\DeclareOption{master}{%
  \Dis@bachelorfalse
  \Dis@specialistfalse
  \Dis@mastertrue
  \Dis@candidatefalse
  \Dis@doctorfalse
  \Dis@autoreffalse
}
\DeclareOption{candidate}{%
  \Dis@bachelorfalse
  \Dis@specialistfalse
  \Dis@masterfalse
  \Dis@candidatetrue
  \Dis@doctorfalse
  \Dis@autoreffalse
}
\DeclareOption{doctor}{%
  \Dis@bachelorfalse
  \Dis@specialistfalse
  \Dis@masterfalse
  \Dis@candidatefalse
  \Dis@doctortrue
  \Dis@autoreffalse
}
\DeclareOption{autoref}{%
  \Dis@bachelorfalse
  \Dis@specialistfalse
  \Dis@masterfalse
  \Dis@candidatefalse
  \Dis@doctorfalse
  \Dis@autoreftrue
}

%    \end{macrocode}
% Îáðàáîòêà îïöèé â ôîðìàòå <<êëþ÷-çíà÷åíèå>>.
%    \begin{macrocode}
\SetupKeyvalOptions{
  family=Dis,
  prefix=Dis@
}

\DeclareStringOption{substylefile}

%    \end{macrocode}
% Âûïîëíåíèå îïöèé ïî óìîë÷àíèþ.
%    \begin{macrocode}
\ExecuteOptions{a4paper,14pt,oneside,titlepage,onecolumn,final,openany,candidate}
%    \end{macrocode}
% Âûïîëíåíèå ïîëüçîâàòåëüñêèõ îïöèé.
%    \begin{macrocode}
\ProcessKeyvalOptions{Dis}
\ProcessOptions

%    \end{macrocode}
% Ôàéë ñ îïèñàíèåì ðàçìåòêè òèòóëüíîãî ëèñòà ïî óìîë÷àíèþ.
%    \begin{macrocode}
\ifx\Dis@substylefile\@empty
  \ifDis@bachelor   \renewcommand*{\Dis@substylefile}{bachelor.rtx}\fi
  \ifDis@specialist \renewcommand*{\Dis@substylefile}{specialist.rtx}\fi
  \ifDis@master     \renewcommand*{\Dis@substylefile}{master.rtx}\fi
  \ifDis@candidate  \renewcommand*{\Dis@substylefile}{candidate.rtx}\fi
  \ifDis@doctor     \renewcommand*{\Dis@substylefile}{doctor.rtx}\fi
  \ifDis@autoref    \renewcommand*{\Dis@substylefile}{autoref.rtx}\fi
\fi

%    \end{macrocode}
% Ïîäêëþ÷åíèå ñòèëÿ äîêóìåíòà.
%    \begin{macrocode}
\AtEndOfClass{\input{\Dis@substylefile}}

%    \end{macrocode}
% Îïðåäåëåíèå êîìàíä èçìåíåíèÿ ðåãèñòðà |\MakeTextUppercase| è
% |\MakeTextLowercase|.
% \DescribePackage{textcase}
%    \begin{macrocode}
\RequirePackage[overload]{textcase}

%    \end{macrocode}
% \subsection{Íàñòðîéêà øðèôòîâ}
% \subsubsection{Îïðåäåëåíèå ðàçìåðîâ}
%
%    \begin{macrocode}
\def\EC@family#1#2#3#4#5{%
  \DeclareFontShape{#1}{#2}{#3}{#4}%
  {<5><6><7><8><9><10><10.95><12><14.4><17.28><20.74>%
  <24.88><29.86><35.83><42.99><51.59>genb*#5}{}}

\EC@family{T1}{cmr}{m}{n}{ecrm}
\EC@family{T1}{cmr}{m}{sl}{ecsl}
\EC@family{T1}{cmr}{m}{it}{ecti}
\EC@family{T1}{cmr}{m}{sc}{eccc}
\EC@family{T1}{cmr}{bx}{n}{ecbx}
\EC@family{T1}{cmr}{b}{n}{ecrb}
\EC@family{T1}{cmr}{bx}{it}{ecbi}
\EC@family{T1}{cmr}{bx}{sl}{ecbl}
\EC@family{T1}{cmr}{bx}{sc}{ecxc}
\EC@family{T1}{cmr}{m}{ui}{ecui}

\DeclareFontShape{OT1}{cmr}{m}{n}{%
  <5><6><7><8><9><10><12>gen*cmr%
  <10.95>cmr10%
  <14.4>cmr12%
  <17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmr17%
}{}
\DeclareFontShape{OT1}{cmr}{m}{sl}{%
  <5><6><7>cmsl8%
  <8><9>gen*cmsl%
  <10><10.95>cmsl10%
  <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmsl12%
}{}
\DeclareFontShape{OT1}{cmr}{m}{it}{%
  <5><6><7>cmti7%
  <8>cmti8%
  <9>cmti9%
  <10><10.95>cmti10%
  <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmti12%
}{}
\DeclareFontShape{OT1}{cmr}{m}{sc}{%
  <5><6><7><8><9><10><10.95><12>%
  <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmcsc10%
}{}
\DeclareFontShape{OT1}{cmr}{m}{ui}{%
  <5><6><7><8><9><10><10.95><12>%
  <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmu10%
}{}
\DeclareFontShape{OT1}{cmr}{b}{n}{%
  <5><6><7><8><9><10><10.95><12>%
  <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmb10%
}{}
\DeclareFontShape{OT1}{cmr}{bx}{n}{%
  <5><6><7><8><9>gen*cmbx%
  <10><10.95>cmbx10%
  <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbx12%
}{}
\DeclareFontShape{OT1}{cmr}{bx}{sl}{%
  <5><6><7><8><9>%
  <10><10.95><12><14.4><17.28><20.74><24.88><29.86><35.83><42.99>%
  <51.59>cmbxsl10%
}{}
\DeclareFontShape{OT1}{cmr}{bx}{it}{%
  <5><6><7><8><9>%
  <10><10.95><12><14.4><17.28><20.74><24.88><29.86><35.83><42.99>%
  <51.59>cmbxti10%
}{}
\input{size\@ptsize.clo}
\RequirePackage{exscale}

%    \end{macrocode}
%
% \subsubsection{Ñòàðûå êîìàíäû èçìåíåíèÿ íà÷åðòàíèÿ øðèôòîâ (áåç NFSS)}
%
% Èçìåíåíèå íà÷åðòàíèÿ â òåêñòîâîì ðåæèìå.
%    \begin{macrocode}
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
\DeclareOldFontCommand{\it}{\normalfont\itshape} {\mathit}
\DeclareOldFontCommand{\sl}{\normalfont\slshape} {\@nomath\sl}
\DeclareOldFontCommand{\sc}{\normalfont\scshape} {\@nomath\sc}
%    \end{macrocode}
%  ìàòåìàòè÷åñêîì ðåæèìå.
%    \begin{macrocode}
\DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
\DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}

%    \end{macrocode}
% Êîìàíäà, îáúåäèíÿþùàÿ |\newlength| è |\setlength|.
% \DescribeMacro{\Dis@deflength}\index{Ìàêðîñû!\verb*+\Dis"@deflength+}
%    \begin{macrocode}
\providecommand\Dis@deflength[2]{\newlength{#1}\setlength{#1}{#2}}
\providecommand\ifundeflength[2]{%
\ifx#1\undefined \newlength{#1}\setlength{#1}{#2} \else \relax \fi
}

%    \end{macrocode}
%
% \subsection{Ïàðàìåòðû òåêñòà}
%
% \DescribeMacro{\lineskip}\index{Èíòåðâàëû!\verb*+\lineskip+}
% \DescribeMacro{\normallineskip}\index{Èíòåðâàëû!\verb*+\normallineskip+}
% Âåðòèêàëüíûé èíòåðâàë ìåæäó ñòðîêàìè. Óïîìèíàåìûé çäåñü è äàëåå ìàêðîñ
% |\p@| îïðåäåëÿåò ñòàíäàðòíóþ åäèíèöó äëèíû. Ïî óìîë÷àíèþ îíà ðàâíà
% àíãëèéñêîìó ïóíêòó (pt).
%    \begin{macrocode}
\setlength\lineskip{1\p@}
\setlength\normallineskip{1\p@}

%    \end{macrocode}
% \DescribeMacro{\Dis@singlespacing} \index{Ìàêðîñû!\verb*+\Dis"@singlespacing+}
% \DescribeMacro{\Dis@onehalfspacing}\index{Ìàêðîñû!\verb*+\Dis"@onehalfspacing+}
% \DescribeMacro{\Dis@doublespacing} \index{Ìàêðîñû!\verb*+\Dis"@doublespacing+}
% Õàðàêòåðíûå âåëè÷èíû ìåæñòðî÷íàõ èíòåðâàëîâ.
%    \begin{macrocode}
\newcommand\Dis@singlespacing {\renewcommand\baselinestretch{1}\normalsize}
\newcommand\Dis@onehalfspacing{\renewcommand\baselinestretch{1.5}\normalsize}
\newcommand\Dis@doublespacing {\renewcommand\baselinestretch{2}\normalsize}
%    \end{macrocode}
% Ìåæñòðî÷íûé èíòåðâàë ïî óìîë÷àíèþ.
%    \begin{macrocode}
\Dis@onehalfspacing

%    \end{macrocode}
% \DescribeMacro{\parindent}\index{Èíòåðâàëû!\verb*+\parindent+}
% Àáçàöíûé îòñòóï.
%    \begin{macrocode}
\setlength\parindent{5ex}

%    \end{macrocode}
% Èíòåðâàë ìåæäó àáçàöàìè (äîáàâëÿåòñÿ ê ìåæñòðî÷íîìó).
% \DescribeMacro{\parskip}\index{Èíòåðâàëû!\verb*+\parskip+}
%    \begin{macrocode}
\setlength\parskip{0\p@ \@plus \p@}

%    \end{macrocode}
%
% Èíòåðâàë ìåæäó êîëîíêàìè òåêñòà.
% \DescribeMacro{\columnsep}\index{Èíòåðâàëû!\verb*+\columnsep+}
%    \begin{macrocode}
\setlength\columnsep{10\p@}

%    \end{macrocode}
%
% Øèðèíà ðàçäåëèòåëÿ (ëèíèè) ìåæäó êîëîíêàìè òåêñòà (ïî óìîë÷àíèþ åãî íåò).
% \DescribeMacro{\columnseprule}\index{Èíòåðâàëû!\verb*+\columnseprule+}
%    \begin{macrocode}
\setlength\columnseprule{0\p@}

%    \end{macrocode}
% Õàðàêòåðíûå âåëè÷èíû øòðàôîâ. Øòðàô --- ìåðà <<êðàñîòû>> ðàçáèåíèÿ
% àáçàöà íà ñòðîêè. ×åì áîëüøå âåëè÷èíà, òåì ìåíåå êðàñèâî.
%    \begin{macrocode}
\@lowpenalty   51
\@medpenalty  151
\@highpenalty 301

%    \end{macrocode}
% Âñåãäà ñòàâèòü îòñòóï â ïåðâîé ñòðîêå ïåðâîãî àáçàöà.
%    \begin{macrocode}
\let\@afterindentfalse\@afterindenttrue
\@afterindenttrue

%    \end{macrocode}
% Ïåðåíîñ â ñëîâàõ ñ äåôèñîì.
%    \begin{macrocode}
\lccode`\-=`\-
\defaulthyphenchar=127
%    \end{macrocode}
% Ïóñòîå îïðåäåëåíèå ìàêðîñà äëÿ âûâîäà ñåãîäíÿøíåé äàòû (ïåðåîïðåäåëÿåòñÿ
% â \pkg{babel}).
% \DescribeMacro{\today}\index{Ìàêðîñû!\verb*+\today+}
%    \begin{macrocode}
\newcommand\today{}

%</disser>
%    \end{macrocode}