forked from phbraga/phmb4-risethesis-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
218 lines (164 loc) · 6.04 KB
/
main.tex
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
\documentclass[en,oneside,onehalfspacing,phd]{risethesis}
\usepackage{babel}
\usepackage[utf8]{inputenc}
\usepackage[linesnumbered,vlined,ruled,boxed,commentsnumbered]{algorithm2e}
\usepackage{algpseudocode}
\usepackage{bm} % Allows bold greek letters for representing vectors
% math equations
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{commath}
\usepackage{float}
\usepackage[flushleft]{threeparttable}
\usepackage{colortbl}
\usepackage{color}
\usepackage[table]{xcolor}
\usepackage{microtype}
\usepackage{bibentry}
\usepackage{subfig}
\usepackage{multirow}
\usepackage{rotating}
\usepackage{booktabs}
\usepackage{pdfpages}
\usepackage{lipsum}
\usepackage{scalefnt}
\let\counterwithout\relax
\let\counterwithin\relax
\usepackage{chngcntr}
\usepackage[tocflat,toctextentriesindented]{tocstyle}
\deactivatetocstyle[lof]
\deactivatetocstyle[lot]
\deactivatetocstyle[loa]
\usetocstyle{allwithdot}
\settocfeature[toc][0]{entryhook}{\bfseries\uppercase}
\settocfeature[toc][1]{entryhook}{\uppercase}
\settocfeature[toc][2]{entryhook}{\bfseries}
\settocfeature[toc][3]{entryhook}{\itshape}
\settocfeature{spaceafternumber}{3em}
\makeatletter
\renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{5.9em}}
\renewcommand*\l@table{\@dottedtocline{1}{1.5em}{5em}}
\makeatother
\usepackage{titlesec}
\titleformat{\section}{\normalfont\large}{\thesection}{1em}{\MakeUppercase}
\titleformat{\subsection}{\normalfont\large}{\bfseries\thesubsection}{1em}{\bfseries}
\titleformat{\subsubsection}{\normalfont\large}{\itshape\thesubsubsection}{1em}{\itshape}
\newcommand{\fref}[1]{\figurename \ref{#1}}
\newcommand{\tref}[1]{\tablename \ref{#1}}
\newcommand{\sref}[1]{\sectionname \ref{#1}}
\newcommand{\eref}[1]{\equationame \ref{#1}}
\newcommand{\aref}[1]{\algname \ref{#1}}
\newcommand{\chref}[1]{\chaptername \ref{#1}}
% \captionsetup[table]{position=top,justification=centering,width=.85\textwidth,font=small, labelsep=newline}
% \captionsetup[lstlisting]{position=top,justification=centering,width=.85\textwidth,labelfont=bf,font=small}
% \captionsetup[figure]{position=bottom,justification=centering,width=.85\textwidth,labelfont=bf,font=small}
% -----------------------------------------------------------
% settings for the list of acronyms
% begin
% -----------------------------------------------------------
% \usepackage[noredefwarn,acronym]{glossaries} %GLOSSÁRIO
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newglossarystyle{modsuper}{%
\setglossarystyle{super}%
\renewcommand{\glsgroupskip}{}
% put the glossary in a longtable environment:
\renewenvironment{theglossary}%
{
\begin{longtable}
{L{0.3\textwidth}L{0.7\textwidth}}}%
{\end{longtable}
\addtocounter{table}{-1}
}
}
% -----------------------------------------------------------
% settings for the list of acronyms
% end
% -----------------------------------------------------------
%% Change the following pdf author attribute name to your name.
\usepackage[linkcolor=black,
citecolor=blue,
urlcolor=black,
colorlinks,
pdfpagelabels,
pdftitle={M.Sc. Dissertation - Author's Name},
pdfauthor={Author's Name}]{hyperref}
\address{Recife}
\universitypt{Universidade Federal de Pernambuco}
\universityen{Federal University of Pernambuco}
\departmentpt{Centro de Informática}
\departmenten{Center of Informatics}
\programpt{Pós-graduação em Ciência da Computação}
\programen{Graduate in Computer Science}
\majorfieldpt{Ciência da Computação}
\majorfielden{Computer Science}
\concentrationareapt{Inteligência Computational}
\concentrationareaen{Computational Intelligence}
\title{Title}
\date{2019}
\author{Author's name}
\adviser{Professor's name}
% Macros (defines your own macros here, if needed)
\def\x{\checkmark}
\setlength{\headheight}{16pt} %Solucao para o Erro:Package Fancyhdr Warning: \headheight is too small (12.0pt)
% ----------------------------------------------------------
% import list of acronyms and symbols
% ----------------------------------------------------------
\input{default_content/acronyms}
\input{default_content/list_symbols}
\makenoidxglossaries
\renewcommand*{\glsseeformat}[3][\seename]{\textit{#1}
\glsseelist{#2}}
\renewcommand*{\glspostdescription}{} % remove trailing dot
\renewcommand{\glsnamefont}[1]{\textbf{#1}}
\renewcommand{\glossarypreamble}{\thispagestyle{empty}}
% ----------------------------------------------------------
% ----------------------------------------------------------
% ----------------------------------------------------------
% continuous couting for tables and figures
% ----------------------------------------------------------
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
% ----------------------------------------------------------
% ----------------------------------------------------------
\renewcommand{\listalgorithmcfname}{\MakeUppercase{\bfseries\Large{\listalgorithmsname}}}
\renewcommand{\algorithmcfname}{\algname}
\begin{document}
\frontmatter
\frontpage
\presentationpage
\catalog
\banca
\input{default_content/dedicatory}
\input{default_content/acknowledgments}
% \input{default_content/epigraph}
\input{default_content/abstract}
\input{default_content/resumo}
{
\let\oldnumberline\numberline
\newcommand{\fignumberline}[1]{\figurename~#1~\enspace--~\enspace}
\renewcommand{\numberline}{\fignumberline}
\listoffigures
}
{
\let\oldnumberline\numberline
\newcommand{\tabnumberline}[1]{\tablename~#1~\enspace--~\enspace}
\renewcommand{\numberline}{\tabnumberline}
\listoftables
}
\listofacronyms
\listofsymbols
{
\let\oldnumberline\numberline
\newcommand{\algnumberline}[1]{\algname~#1~\enspace--~\enspace}
\renewcommand{\numberline}{\algnumberline}
\listofalgorithms
}
% Summary (tables of contents)
\tableofcontents
\mainmatter
\input{chapters/introduction}
\begin{references}
\bibliography{default_content/references}
\end{references}
\end{document}