summaryrefslogtreecommitdiff
path: root/Lecture.cls
blob: 622ef41c3ad3a016d6e45b18ef4cfc54cb9d05b2 (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
\LoadClass[14pt,a4paper,oneside]{extarticle}

\RequirePackage[utf8]{inputenc}
\RequirePackage[english,russian]{babel}
\RequirePackage[T2A]{fontenc}

\usepackage[
  a4paper, mag=1000,
  left=2.5cm, right=1.5cm,
  top=3cm, bottom=3cm
]{geometry}

\RequirePackage[hidelinks,colorlinks=false]{hyperref}
\RequirePackage{url}
\RequirePackage{indentfirst}

\RequirePackage{fancyhdr}
\pagestyle{fancy}

\RequirePackage{setspace}
\singlespacing

% --- TITLE PAGE --- %
\renewcommand{\maketitle}
{
\afterpage{
\newgeometry{
  a4paper, mag=1000,
  left=1.5cm, right=1.5cm,
  top=2cm, bottom=2cm
}

% Suppresses displaying the page number on the title page and the subsequent page counts as page 1
\begin{titlepage}
  % Defines a new command for horizontal lines, change thickness here
  \newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
  \center

  % --- Headings --- %
  \textsc{\Large Саратовский Государственный Университет}\\[0.2cm]
  \textsc{\normalsize Факультет Компьютерных Наук и Информационных Технологий}\\[0.5cm]

  % --- Title --- %
  \HRule\\[0.6cm]
  {\LARGE \bfseries\textsc \@title}\\[0.3cm]
  \HRule\\[1.5cm]

  % --- Author(s) --- %
  {\large\textit{Законспектировано:}}\\
  \textsc{\@author}

  % --- Date --- %
  % Position the date 3/4 down the remaining page
  \vfill\vfill\vfill\vfill\vfill\vfill
  {\large\@date}
  % Push the date up 1/4 of the remaining page
  \vfill
\end{titlepage}

\clearpage
\restoregeometry
}
}