-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathum-fict.cls
126 lines (104 loc) · 4.91 KB
/
um-fict.cls
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
%% ****************************************************
%% ** **
%% ** University of Malta **
%% ** Faculty of Information & **
%% ** Communication Technology **
%% ** **
%% ** LaTeX Template for Thesis/Dissertation/FYP **
%% ** **
%% ** Dr Jean-Paul Ebejer **
%% ** jean.p.ebejer@um.edu.mt **
%% ** **
%% ** "Build something which will outlast you" **
%% ** (... amongst other things) **
%% ** **
%% ****************************************************
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{um-fict}[2022/05/22 v1.0 University of Malta, Dissertation/FYP/Thesis Template]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{um}}
\ProcessOptions\relax
\LoadClass[12pt,a4paper,onepage,final]{um}
\colorlet{DissertationColor}{black} % no fancy red colour
\def\logo{{\includegraphics[width=90mm]{fict_red_logo}}}
\renewcommand*\familydefault{\sfdefault} % sans serif font
\makepagestyle{umpage}
\uppercaseheads
\makeevenfoot{umpage}{}{\color{gray}\sffamily\small\thepage}{}
\makeoddfoot{umpage}{}{\color{gray}\sffamily\small\thepage}{}
\makeevenhead{umpage}{\small\leftmark}{}{}
\makeoddhead{umpage}{}{}{\small\rightmark}
\makepagestyle{umpage-noheader}
\makeevenfoot{umpage-noheader}{}{\color{gray}\sffamily\small\thepage}{}
\makeoddfoot{umpage-noheader}{}{\color{gray}\sffamily\small\thepage}{}
\makeevenhead{umpage-noheader}{}{}{}
\makeoddhead{umpage-noheader}{}{}{}
\RequirePackage{changepage}
\chapterstyle{section} % they don't want the "Chapter 1" which appears as default
\pagestyle{umpage}
\aliaspagestyle{chapter}{umpage-noheader}
\floatpagestyle{empty}
\setsecnumformat{\csname the#1\endcsname\enskip}
\renewcommand{\labelitemi}{\color{DissertationColor}\scriptsize\textbullet}
\renewenvironment{proof}{\underline{Proof:} }{}
%% following is required to create a renewtheorem which is equivalent to renew environment.
\def\renewtheorem#1{%
\expandafter\let\csname#1\endcsname\relax
\expandafter\let\csname c@#1\endcsname\relax
\gdef\renewtheorem@envname{#1}
\renewtheorem@secpar
}
\def\renewtheorem@secpar{\@ifnextchar[{\renewtheorem@numberedlike}{\renewtheorem@nonumberedlike}}
\def\renewtheorem@numberedlike[#1]#2{\newtheorem{\renewtheorem@envname}[#1]{#2}}
\def\renewtheorem@nonumberedlike#1{
\def\renewtheorem@caption{#1}
\edef\renewtheorem@nowithin{\noexpand\newtheorem{\renewtheorem@envname}{\renewtheorem@caption}}
\renewtheorem@thirdpar
}
\def\renewtheorem@thirdpar{\@ifnextchar[{\renewtheorem@within}{\renewtheorem@nowithin}}
\def\renewtheorem@within[#1]{\renewtheorem@nowithin[#1]}
%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewtheorem{theorem}{Theorem}
\renewtheorem{corollary}{Corollary}
\renewtheorem{lemma}{Lemma}
%% *************** Environments (Start) ******************
%% *** Title Page (Start) ***
\renewcommand{\maketitle}
{\begingroup
\setlength{\parindent}{0pt}
%%\fontfamily{pag}\selectfont
\sffamily
\setlrmarginsandblock{3.7cm}{3cm}{*}
\checkandfixthelayout
\setlength{\vsize}{\textheight} %% you need these to reset the lengths
\setlength{\columnwidth}{\textwidth}
\setlength{\hsize}{\columnwidth}
\setlength{\linewidth}{\hsize}
{\Huge\bfseries{\begin{Spacing}{1.15}\textcolor{DissertationColor}{\@title}\end{Spacing}}}
\vspace*{30mm}
%%{\large\textit{\@tagline}}\\[1in]
{\LARGE\bfseries \textsc{\@author}} \\[10mm]
{\large Supervisor: \@supervisor}
\@ifundefined{@cosupervisor}{\\[20mm]}{\\[3mm]\large Co-supervisor: \@cosupervisor}\\[20mm]
{\@degreeDate}\\
\vfill
%%\parbox[t]{80mm}{\footnotesize\textit{A \@doctype\ submitted in partial fulfilment of the requirements for the degree of \@degreeName}.} \\[3ex]
\parbox[t]{120mm}{\textit{Submitted in partial fulfilment of the requirements for the degree of \@degreeName}.} \\[15mm]
\logo
\thispagestyle{empty}
\if@openright\cleardoublepage\else\clearpage\fi
\endgroup}
%% *** Title Page (End) ***
%\renewenvironment{acknowledgements}
%{\renewcommand{\abstractname}{\flushleft\Large\sffamily\textcolor{DissertationColor}{Acknowledgements}}\abstract}
%{\flushleft\endabstract\if@openright\cleardoublepage\else\clearpage\fi}
\renewenvironment{acknowledgements}
{\setlength{\parindent}{0pt}% No paragraph indent
\begin{adjustwidth}{13mm}{13mm}
{\bfseries\LARGE\textcolor{DissertationColor}{Acknowledgements}\par}\bigskip}
{\end{adjustwidth}\if@openright\cleardoublepage\else\clearpage\fi}
\renewenvironment{abstract}
{\setlength{\parindent}{0pt}% No paragraph indent
\begin{adjustwidth}{13mm}{13mm}
{\bfseries\LARGE\textcolor{DissertationColor}{Abstract}\par}\bigskip}
{\end{adjustwidth}\if@openright\cleardoublepage\else\clearpage\fi}
%% **************** Environments (End) *******************