-
Notifications
You must be signed in to change notification settings - Fork 0
/
si-msc-proposal.cls
196 lines (157 loc) · 5.66 KB
/
si-msc-proposal.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
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% LaTeX class for the Master Thesis Proposal
% at the Software Institute of USI
%
% Contributors:
% Michele Lanza
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% IDENTIFICATION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{si-msc-proposal}[Software Institute Master %
Thesis Proposal class]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% REQUIRED PACKAGES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{booktabs}
\RequirePackage{graphicx}
\RequirePackage{textcomp}
\RequirePackage{url}
\RequirePackage{amsmath}
\RequirePackage{xifthen}
\RequirePackage{lipsum}
\RequirePackage{pgfgantt}
\RequirePackage{tikz}
%\RequirePackage{listings}
%\RequirePackage{subcaption}
%\captionsetup{labelfont={bf}}
%\usepackage{subcaption}
%\usepackage{listings}
%%%
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{document}%
}
%%% execution of options
\ProcessOptions \relax
\typeout{*** Please report bugs, comments, suggestions, and improvements to: }
\typeout{*** Software Institute <[email protected]>}
%%% package loading
\LoadClass[a4paper,11pt]{article}
%%% main code
%font settings
\RequirePackage[T1]{fontenc}
\RequirePackage[charter]{mathdesign}
\RequirePackage[scaled]{beramono}
\renewcommand{\sfdefault}{uop}
\renewcommand{\scshape}{%
\not@math@alphabet\scshape\relax
\ifthenelse{\equal{\f@family}{uop}}%
{\fontshape{sc}\selectfont}%
{\fontshape{fsc}\selectfont}%
}
%geometry
\RequirePackage[a4paper,total={150mm,240mm}]{geometry}
%%% CAPTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage[font=footnotesize,labelsep=period,bf]{caption}
\setlength{\captionmargin}{15mm}
%%datatool
%\RequirePackage{datatool}
%\RequirePackage{calc}
%
%%commands to print empty values in the database
%\newcommand{\print@blank}[1]{\ifthenelse{\equal{#1}{!blank!}}{}{#1\ }}
%\newcommand{\print@empty}[1]{\ifthenelse{\equal{#1}{!blank!}}{}{#1}}
%
%%%% populate the committee database
%%%% format of the rows (name of the columns in brackets) :
%%%% Title [title], First and Middle [first], Last [last], Affiliation [aff], Type ([a]dvisor, phd [d]irector, [i]nternal) [type]
%\newenvironment{committee}{%
%\DTLnewdb{committee}
%}%
%{%
%\DTLsort{type,last,first}{committee}
%}
%
%\newcounter{advisors}
%\newcommand*{\advisor}[4][Universit\`a della Svizzera Italiana, Switzerland]{%
%\DTLnewrow{committee}
%\ifthenelse{\isempty{#2}}{\DTLnewdbentry{committee}{title}{!blank!}}{%
%\DTLnewdbentry{committee}{title}{#2}}
%\DTLnewdbentry{committee}{first}{#3}
%\DTLnewdbentry{committee}{last}{#4}
%\DTLnewdbentry{committee}{aff}{#1}
%\DTLnewdbentry{committee}{type}{r}
%\stepcounter{advisors}
%}
%
%\newcounter{coadvisors}
%\newcommand*{\coadvisor}[4][Universit\`a della Svizzera Italiana, Switzerland]{%
%\DTLnewrow{committee}
%\ifthenelse{\isempty{#2}}{\DTLnewdbentry{committee}{title}{!blank!}}{%
%\DTLnewdbentry{committee}{title}{#2}}
%\DTLnewdbentry{committee}{first}{#3}
%\DTLnewdbentry{committee}{last}{#4}
%\DTLnewdbentry{committee}{aff}{#1}
%\DTLnewdbentry{committee}{type}{a}
%\stepcounter{coadvisors}
%}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% COMMANDS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newboolean{@subtitle}
\newcommand{\subtitle}[1]{\gdef\@subtitle{#1}\setboolean{@subtitle}{true}}
\renewcommand\abstract[1]{\def\@abstract{\\#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% TITLE PAGE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\maketitle}{
\begin{titlepage}
\thispagestyle{empty}
%%% LOGO %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\hspace{-12mm}
\includegraphics[width=65mm]{Grid-System-USI-Software.pdf}
%%% DOCUMENT TYPE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\vspace{10mm}
\noindent {\large \textsc{Software \& Data Engineering Master Thesis Proposal}}
%%% AUTHOR %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\vspace{10mm}
\noindent {\Large {\textbf{\@author}}}
%%% TITLE (& OPTIONAL SUBTITLE) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\vspace{10mm}
\noindent {\Large {\textsc{\@title}}}
\ifthenelse{\boolean{@subtitle}}
{\vspace{5mm} \noindent{\textsc{\@subtitle}}\vspace{10mm}}
{\vspace{20mm}}
%%% ABSTRACT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\hrule
\vspace{5mm}
\noindent {\textit{Abstract}}\\
\@abstract
\vfill
\hrule
%%%%%%%%%%%%%%%% ADVISOR AND ASSISTANT(S) %%%%%%%%%%%%%%%%
%\noindent\textsf{\textbf{Advisors}~} \\
%\DTLforeach*[\DTLiseq{\type}{r}]{committee}
%{\actitle=title,\first=first,\last=last,\type=type}{
%\hspace{-0.1cm}\textsf{\print@blank{\actitle}\first \ \last~}%
%}
%\ifthenelse{\value{coadvisors} > 0}{\hfill \textsf{\textbf{\\Co-advisor}\ifthenelse{\value{coadvisors} > 1}{\textsf{\textbf{s}}{}}}}{}\\
%\DTLforeach*[\DTLiseq{\type}{a}]{committee}%
%{\actitle=title,\first=first,\last=last,\type=type}{\DTLiffirstrow{}{, }\textsf{\print@blank{\actitle}\first \ \last}%
%}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{titlepage}
\setcounter{footnote}{0}
}
\renewenvironment{titlepage}
{%
\cleardoublepage
\pagenumbering{arabic}
\setcounter{page}\z@
}%
{\newpage }
{\textwidth 5cm}
%%% put ToC, LoF, LoT and Index entries in the ToC use of \phantomsection is required for dealing with the hyperref package and depends on the nohyper option
%%% other useful packages