diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/disser/src/titlepage.dtx |
Initial commit
Diffstat (limited to 'macros/latex/contrib/disser/src/titlepage.dtx')
-rw-r--r-- | macros/latex/contrib/disser/src/titlepage.dtx | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/macros/latex/contrib/disser/src/titlepage.dtx b/macros/latex/contrib/disser/src/titlepage.dtx new file mode 100644 index 0000000000..db1dc886b8 --- /dev/null +++ b/macros/latex/contrib/disser/src/titlepage.dtx @@ -0,0 +1,74 @@ +% \begin{macrocode} + +%<*titlepage> +% \end{macrocode} +% +% \subsection{Титульный лист} +% +% Подключение констант и команд, используемых для верстки титульного листа. +% \begin{macrocode} +\input{titledefs.rtx} + +\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{~-- } + + \newcommand\maketitle{} + \setcounter{footnote}{0} +\else +% \end{macrocode} +% Заголовок без отдельного титульного листа. +% \DescribeMacro{\maketitle}\index{Макросы!\verb*+\maketitle+} +% \begin{macrocode} + \newcommand\maketitle{% + \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+} +% Команда для форматирования заголовка документа без отдельного +% титульного листа (см. описание опции \cmd{notitlepage}). +% \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} |