summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/disser/titlepage.dtx
blob: f19d039d1e30c7e2d2f59f06b3a879ab8a6b3b0d (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
%    \begin{macrocode}

%<*titlepage>
%    \end{macrocode}
%
% \subsection{��������� ����}
%
% ������ ����������� ������� ��� ������ ����������� ���� (���������������� � |babel|).
% \DescribeMacro{\today}\index{�������!\verb*+\today+}
%    \begin{macrocode}
\newcommand\today{}

\if@titlepage
%    \end{macrocode}
%
% ��������� ������ ���������� �����
% \DescribeMacro{\titlefont}\index{�������!\verb*+\titlefont+}
% \DescribeMacro{\topiclabelfont}\index{�������!\verb*+\topiclabelfont+}
% \DescribeMacro{\topicfont}\index{�������!\verb*+\topicfont+}
% \DescribeMacro{\instfont}\index{�������!\verb*+\instfont+}
%    \begin{macrocode}
  \newcommand\titlefont{\Large\bfseries}
  \newcommand\topiclabelfont{\large}
  \newcommand\topicfont{\large\bfseries}
  \newcommand\instfont{\normalfont}
%    \end{macrocode}
%
% ����������� ����� ��������� ������ � �����.
% \DescribeMacro{\cdsep}\index{�������!\verb*+\cdsep+}
%    \begin{macrocode}
  \newcommand\cdsep{~-- }

  \input{titledefs\substyle@ext}
%    \end{macrocode}
% \DescribeMacro{\maketitle}\index{�������!\verb*+\maketitle+}
%    \begin{macrocode}
  \newcommand\maketitle{
%    \end{macrocode}
%
% \subsubsection{����� �������� ���������� �����}
%    \begin{macrocode}
      \thispagestyle{empty}
      \vspace*{-2cm}
%    \end{macrocode}
% \paragraph{�������� �����������}
%    \begin{macrocode}
      \begin{center}
      \instfont\@institution\par
%    \end{macrocode}
%  ��� ������� �������� � |@| � ������ ��������.
%    \begin{macrocode}
      \makeatletter
%    \end{macrocode}
% \paragraph{��������� ���� ��� ����� ���������� ����� � ����������� �� ����
% ���������}
%    \begin{macrocode}
      \ifDis@bachelor \input{bachelor\substyle@ext}\fi
      \ifDis@master   \input{master\substyle@ext}\fi
      \ifDis@candidate\input{candidate\substyle@ext}\fi
      \ifDis@doctor   \input{doctor\substyle@ext}\fi
      \ifDis@autoref  \input{autoref\substyle@ext}\fi
      \enlargethispage{2cm}
      \vfill
%    \end{macrocode}
% \paragraph{����� � ���}
%    \begin{macrocode}
        {\@city\cdsep\@date}
      \end{center}
    \normalsize
    \clearpage
    \thispagestyle{empty}
  } % \newcommand\maketitle
  \setcounter{footnote}{0}
\else %\if@titlepage
%    \end{macrocode}
% ��������� ��� ���������� ���������� �����.
% \DescribeMacro{\maketitle}\index{�������!\verb*+\maketitle+}
%    \begin{macrocode}
  \newcommand\maketitle{%
    \par
    \begingroup
      \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
      \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
      \long\def\@makefntext##1{%
        \parindent 1em\noindent
        \hb@xt@1.8em{\hss\@textsuperscript{\normalfont\@thefnmark}}##1%
      }%
      \if@twocolumn
        \ifnum \col@number=\@ne
          \@maketitle
        \else
          \twocolumn[\@maketitle]%
        \fi
      \else
        \newpage
%    \end{macrocode}
% ������������� ���������� ��������� �������� ������ ��������.
%    \begin{macrocode}
          \global\@topnum\z@
        \@maketitle
      \fi
      \thispagestyle{plain}
    \endgroup
    \setcounter{footnote}{0}%

    \global\let\thanks\relax
    \global\let\maketitle\relax
    \global\let\@maketitle\relax
    \global\let\@author\@empty
    \global\let\@date\@empty
    \global\let\@title\@empty
    \global\let\title\relax
    \global\let\author\relax
    \global\let\date\relax
    \global\let\and\relax
  }
%    \end{macrocode}
% \DescribeMacro{\@maketitle}\index{�������!\verb+"\"@maketitle+}
% ������� ��� �������������� ��������� ���������, ������� �� �����
% ���������� �� ��������� ��������.
%    \begin{macrocode}
  \def\@maketitle{%
    \newpage
    \null
    \vskip 2em%
    \begin{center}%
      \let\footnotesize\small
      \let\footnote\thanks
      {\titlefont\@title\par}%
      \vskip 1.5em%
      {\large\lineskip .5em%
        \begin{tabular}[t]{c}%
          \@author
        \end{tabular}\par}%
        \vskip 1em%
      {\large \@date}%
    \end{center}%
    \par\vskip 1.5em%
  }
\fi % \if@titlepage
%</titlepage>
%    \end{macrocode}