summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/10-IU8-titlepage.sty
blob: e9834bc07b22aa902ef77cacae10e30376f86493 (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
% Author: CatInCosmicSpace
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{10-IU8-titlepage}[2021/03/21 v1.2 Титульный лист]

% Поля для заполнения для ВКР
\def\student#1{\gdef\@student{#1}}
\def\@student{\@latex@warning@no@line{No \noexpand\student given}}

\def\theme#1{\gdef\@theme{#1}}
\def\@theme{\@latex@warning@no@line{No \noexpand\theme given}}

\def\group#1{\gdef\@group{#1}}
\def\@group{\@latex@warning@no@line{No \noexpand\group given}}

\def\supervisor#1{\gdef\@supervisor{#1}}
\def\@supervisor{\@latex@warning@no@line{No \noexpand\supervisor given}}

\def\researchConsultant#1{\gdef\@researchConsultant{#1}}
\def\@researchConsultant{\@latex@warning@no@line{No \noexpand\researchConsultant given}}

\def\designConsultant#1{\gdef\@designConsultant{#1}}
\def\@designConsultant{\@latex@warning@no@line{No \noexpand\designConsultant given}}

\def\technologicalConsultant#1{\gdef\@technologicalConsultant{#1}}
\def\@technologicalConsultant{\@latex@warning@no@line{No \noexpand\technologicalConsultant given}}

\def\economicsConsultant#1{\gdef\@economicsConsultant{#1}}
\def\@economicsConsultant{\@latex@warning@no@line{No \noexpand\economicsConsultant given}}

\def\lawsConsultant#1{\gdef\@lawsConsultant{#1}}
\def\@lawsConsultant{\@latex@warning@no@line{No \noexpand\lawsConsultant given}}

\def\normController#1{\gdef\@normController{#1}}
\def\@normController{\@latex@warning@no@line{No \noexpand\normController given}}

% Поля для заполнения для НИР
\def\studentFullName#1{\gdef\@studentFullName{#1}}
\def\@studentFullName{\@latex@warning@no@line{No \noexpand\studentFullName given}}

\def\profile#1{\gdef\@profile{#1}}
\def\@profile{\@latex@warning@no@line{No \noexpand\profile given}}

\def\speciality#1{\gdef\@speciality{#1}}
\def\@speciality{\@latex@warning@no@line{No \noexpand\speciality given}}

\def\specialization#1{\gdef\@specialization{#1}}
\def\@specialization{\@latex@warning@no@line{No \noexpand\specialization given}}

\def\supervisorWithDegree#1{\gdef\@supervisorWithDegree{#1}}
\def\@supervisorWithDegree{\@latex@warning@no@line{No \noexpand\supervisorWithDegree given}}


\RequirePackage{fancyhdr}
\fancypagestyle{year}{
  \fancyfoot[C]{\itshape Москва, \the\year~г.}
  \renewcommand{\headrulewidth}{0pt}
  \fancyhead{}
}

\RequirePackage{tabto}
\RequirePackage[normalem]{ulem}
\RequirePackage[usestackEOL]{stackengine}
\RequirePackage{lineno}
\RequirePackage{xstring}
\RequirePackage{ifthen}

\newcommand\makeUlineStack[3][3cm]{
    \Shortunderstack{
        \uline{\parbox{#1}{\centering #2}}\\
        {\fontsize{9pt}{9pt}\selectfont #3}
    }
}

\newcommand\makeBMSTUHeader{
    \noindent\begin{minipage}{0.05\textwidth}
        \includegraphics[scale=0.4]{inc/bmstu.png}
    \end{minipage}
    \hfill
    \begin{minipage}{0.85\textwidth}\raggedleft
        \begin{center}
            \fontsize{10pt}{0.3\baselineskip}\selectfont 
            \textbf{Министерство науки и высшего образования 
                Российской Федерации \\ 
                Федеральное государственное бюджетное образовательное 
                учреждение \\ 
                высшего образования \\ 
                <<Московский государственный технический университет \\ 
                имени Н. Э. Баумана \\ 
                (национальный исследовательский университет)>> \\ 
                (МГТУ им. Н. Э. Баумана)
            }
        \end{center}
    \end{minipage}
    \begin{center}
        \fontsize{12pt}{0.1\baselineskip}\selectfont
        \noindent\makebox[\linewidth]{\rule{\textwidth}{2pt}} 
        \makebox[\linewidth]{\rule{\textwidth}{1pt}}
    \end{center}
    \begin{flushleft}
        \fontsize{12pt}{14pt}\selectfont
        ФАКУЛЬТЕТ \tabto{3cm} <<Информатика и системы управления>> (ИУ)\\
        КАФЕДРА \tabto{3cm} <<Информационная безопасность>> (ИУ8)
    \end{flushleft}
}

\newcommand\fillingBox[3][\maxlen]{
    \noindent#2 \hfill \makeUlineStack[2.5cm]{~}{(Подпись, дата)} \quad 
    \makeUlineStack[#1]{#3}{(И. О. Фамилия)}\\
}

\newcommand\makeDiplomaTheme[1]{
    \noindent
    \begin{minipage}{\linewidth}
        \centering\internallinenumbers\rmfamily\bfseries\fontsize{20pt}{20pt}\selectfont
        \renewcommand{\makeLineNumber}{\rule[-0.7ex]{\textwidth}{0.4pt}\hss}%
        #1
    \end{minipage}
}

\newlength{\maxlen}
\newlength{\templen}

\newcommand\CompLen[1]{
    \settowidth{\templen}{#1}
    \ifdim\templen>\maxlen
        \settowidth{\maxlen}{#1}
    \fi
}

\newcommand\fillDiplomaTitle{
    \noindent\begin{center}
        \centering\bfseries\fontsize{20pt}{25pt}\selectfont 
        РАСЧЁТНО-ПОЯСНИТЕЛЬНАЯ~ЗАПИСКА\\
        {\fontsize{16pt}{25pt}\bfseries\selectfont К~ВЫПУСКОЙ~КВАЛИФИКАЦИОННОЙ~РАБОТЕ}\\
        {\fontsize{16pt}{25pt}\bfseries\selectfont НА~ТЕМУ:}
    \end{center}

    \vfill

    \makeDiplomaTheme{\@theme}

    \vfill

    {\fontsize{12pt}{15pt}\selectfont

    \fillingBox{Студент \hfill \makeUlineStack[2cm]{\@group}{(Группа)}}{\@student}

    \fillingBox{Руководитель ВКР}{\@supervisor}

    \fillingBox{Консультант по исследовательской части}{\@researchConsultant}

    \fillingBox{Консультант по конструкторской части}{\@designConsultant}

    \fillingBox{Консультант по технологической части}{\@technologicalConsultant}

    \fillingBox{Консультант по организационно-\\экономической части}{\@economicsConsultant}

    \fillingBox{Консультант по организационно-\\правовому обеспечению ИБ}{\@lawsConsultant}

    \fillingBox{Нормоконтролер}{\@normController}
    }
}

\newcommand\makeResearchTheme[1]{
    \noindent на тему \uline{#1}
}

\newcommand\fillResearchTitle{
    \noindent\begin{center}
        \centering\bfseries\fontsize{20pt}{25pt}\selectfont 
        Отчёт\\
        {\fontsize{16pt}{25pt}\bfseries\selectfont по научно-исследовательской работе студента}\\
    \end{center}

    \vfill

    \makeResearchTheme{\@theme}

    \vfill
    {
        \setlength{\tabcolsep}{0pt}
        \renewcommand{\arraystretch}{1.5}
        \noindent \begin{tabular}{ll}
            \noindent ФИО студента: & \@studentFullName \\
            \noindent Группа: & \@group \\
            \noindent Специальность: & \@speciality \\
            \noindent Специализация: & \@specialization \\
        \end{tabular}
    }

    \bigskip

    \noindent Научный руководитель НИРС: \@supervisorWithDegree

    \bigskip

    \noindent Работа выполнена: \hfill \makeUlineStack[2.5cm]{~}{Дата} \quad \makeUlineStack[2.5cm]{~}{Подпись} \quad  \makeUlineStack[4cm]{\@student}{(И. О. Фамилия)}

    \bigskip

    \noindent Допуск к защите:  \hfill \makeUlineStack[2.5cm]{~}{Дата} \quad \makeUlineStack[2.5cm]{~}{Подпись} \quad  \makeUlineStack[4cm]{\@supervisor}{(И. О. Фамилия)}

    \vfill
    {
        \setlength{\tabcolsep}{0pt}
        \renewcommand{\arraystretch}{1.5}
        \noindent \begin{tabular}{ll}
            \noindent Дата защиты НИРС: & \makeUlineStack[6cm]{~}{~} \\
            \noindent Результаты защиты: & \makeUlineStack[6cm]{~}{~} \\
        \end{tabular}
    }

    \vfill 

    \clearpage
}

\renewcommand\maketitle{
    \begin{titlepage}
        \settowidth{\maxlen}{\@student}
        \CompLen{\@student}
        \CompLen{\@supervisor}
        \CompLen{\@researchConsultant}
        \CompLen{\@designConsultant}
        \CompLen{\@technologicalConsultant}
        \CompLen{\@economicsConsultant}
        \CompLen{\@lawsConsultant}
        \CompLen{\@normController}
        
        \thispagestyle{year}
        \makeBMSTUHeader

        \fillTitle

        \clearpage
    \end{titlepage}
}