summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/disser/src/master.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/disser/src/master.dtx
Initial commit
Diffstat (limited to 'macros/latex/contrib/disser/src/master.dtx')
-rw-r--r--macros/latex/contrib/disser/src/master.dtx149
1 files changed, 149 insertions, 0 deletions
diff --git a/macros/latex/contrib/disser/src/master.dtx b/macros/latex/contrib/disser/src/master.dtx
new file mode 100644
index 0000000000..48844d2cc7
--- /dev/null
+++ b/macros/latex/contrib/disser/src/master.dtx
@@ -0,0 +1,149 @@
+% \begin{macrocode}
+
+%<master>\ProvidesFile{master.rtx}
+
+%<*master>
+% \end{macrocode}
+% \subsubsection{Стиль работы магистера}
+%
+% Нумерация.
+% \begin{macrocode}
+\newcommand\master@the{\default@the}
+\master@the
+
+% \end{macrocode}
+% Титульный лист.
+% \DescribeMacro{\maketitle}\index{Макросы!\verb*+\maketitle+}
+% \begin{macrocode}
+\if@titlepage\renewcommand\maketitle[1][]{
+% \end{macrocode}
+% Переопределения некоторых полей титульного листа для англоязычной версии.
+% \begin{macrocode}
+\ifthenelse{\equal{#1}{en}}{\@titlepage@entrue}{\@titlepage@enfalse}
+\if@titlepage@en
+ \def\appos{Head of Department}
+ \def\approved{``Approved for defence''}
+ \def\revname{Reviewer}
+ \def\revsndname{\revname}
+ \def\revlabel{\revname}
+ \def\revsndlabel{\revsndname}
+ \def\saname{Scientific Supervisor}
+ \def\sasndname{\saname}
+ \def\salabel{\saname}
+ \def\sasndlabel{\saname}
+ \def\topicname{Topic}
+ \def\coursename{Speciality}
+ \def\studentname{Student}
+ \def\studentlabel{\studentname\hspace{6cm}}
+ \def\masterprogname{Master's Program}
+\fi
+
+% \end{macrocode}
+% Вертикальные интервалы между элементами титульного листа.
+% \DescribeMacro{\firstskip}\index{Интервалы!\verb*+\firstskip+}
+% \DescribeMacro{\secondskip}\index{Интервалы!\verb*+\secondskip+}
+% \DescribeMacro{\thirdskip}\index{Интервалы!\verb*+\thirdskip+}
+% \DescribeMacro{\fourthskip}\index{Интервалы!\verb*+\fourthskip+}
+% \DescribeMacro{\fifthskip}\index{Интервалы!\verb*+\fifthskip+}
+% \begin{macrocode}
+\ifundeflength\firstskip{1ex}
+\ifundeflength\secondskip{1ex}
+\ifundeflength\thirdskip{1ex}
+\ifundeflength\fourthskip{-1cm}
+\ifundeflength\fifthskip{0ex}
+\ifundeflength\sixthskip{1.5ex}
+
+% \end{macrocode}
+% Горизонтальный отступ перед чертой в текстовым поле для имени, ученой
+% степени и звания научного руководителя и консультанта.
+% \DescribeMacro{\fieldhshift}\index{Интервалы!\verb*+\fieldhshift+}
+% \begin{macrocode}
+\setlength\fieldhshift{8.5cm}
+
+% \end{macrocode}
+% Шрифты элементов титульного листа.
+% \DescribeMacro{\titlefont}\index{Макросы!\verb*+\titlefont+}
+% \DescribeMacro{\topiclabelfont}\index{Макросы!\verb*+\topiclabelfont+}
+% \DescribeMacro{\topicfont}\index{Макросы!\verb*+\topicfont+}
+% \begin{macrocode}
+\def\titlefont{\Large\bfseries}
+\def\topiclabelfont{\large}
+\def\topicfont{\large\bfseries}
+
+\thispagestyle{empty}
+\enlargethispage{1cm}
+\vspace*{-2cm}
+% \end{macrocode}
+% \paragraph{Название организации}
+% \begin{macrocode}
+\begin{center}
+ {\instfont\@institution}
+\end{center}
+
+% \end{macrocode}
+% Диссертация допущена к защите
+% \begin{macrocode}
+\vskip\firstskip
+{\@approved}
+\vskip\secondskip
+% \end{macrocode}
+% Заголовок
+% \begin{macrocode}
+\begin{center}
+ {\titlefont\@title}
+ \vskip\thirdskip
+% \end{macrocode}
+% Тема
+% \begin{macrocode}
+ {\topiclabelfont\topiclabel\ }
+ {\topicfont\@topic}
+ \vskip\fourthskip\normalfont
+\end{center}
+
+\begin{tabbing}
+ \phantom{\masterproglabel}\=\\
+% \end{macrocode}
+% Направление
+% \begin{macrocode}
+ \courselabel\>\ \@coursenum\ --\ \@course\\
+% \end{macrocode}
+% Магистерская программа: номер -- название.
+% \begin{macrocode}
+ \masterproglabel\>\ \@masterprognum\ --\ \@masterprog
+\end{tabbing}
+\vskip\fifthskip
+\begin{tabbing}
+% \end{macrocode}
+%
+% Выполнил студент гр. номер...
+% \begin{macrocode}
+ \studentlabel\=\makebox[\fieldhshift][l]{\hrulefill\ \@author}\\[\sixthskip]
+% \end{macrocode}
+% Научный руководитель.
+% \begin{macrocode}
+ \ifx\@sa\empty\else\diplomafield{sa}\\[\sixthskip]\fi
+ \ifx\@sasnd\empty\else\diplomafield{sasnd}\\[\sixthskip]\fi
+% \end{macrocode}
+%
+% Рецензент
+% \begin{macrocode}
+ \ifx\@rev\empty\else\diplomafield{rev}\\[\sixthskip]\fi
+ \ifx\@revsnd\empty\else\diplomafield{revsnd}\\[\sixthskip]\fi
+% \end{macrocode}
+%
+% Консультант
+% \begin{macrocode}
+ \ifx\@con\empty\else\diplomafield{con}\\[\sixthskip]\fi
+ \ifx\@consnd\empty\else\diplomafield{consnd}\fi
+\end{tabbing}
+% \end{macrocode}
+% \paragraph{Город и год}
+% \begin{macrocode}
+\vfill
+\begin{center}
+ {\@city\cdsep\@date}
+\end{center}
+\normalfont\clearpage
+}\fi
+%</master>
+% \end{macrocode}