-
Notifications
You must be signed in to change notification settings - Fork 0
/
atividade_fftt.cls
358 lines (296 loc) · 10.5 KB
/
atividade_fftt.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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
% /$$$$$$$$ /$$$$$$ /$$$$$$$$ /$$$$$$$$ /$$$$$$ /$$ /$$ /$$$$$$$$ /$$$$$$$$ /$$$$$$$$ /$$$$$$
%|__ $$__//$$__ $$| $$_____/| $$_____//$$__ $$| $$$ | $$| $$_____/|__ $$__/|__ $$__//$$__ $$
% | $$ | $$ \ $$| $$ | $$ | $$ \ $$| $$$$| $$| $$ | $$ | $$ | $$ \ $$
% | $$ | $$ | $$| $$$$$ | $$$$$ | $$$$$$$$| $$ $$ $$| $$$$$ | $$ | $$ | $$ | $$
% | $$ | $$ | $$| $$__/ | $$__/ | $$__ $$| $$ $$$$| $$__/ | $$ | $$ | $$ | $$
% | $$ | $$ | $$| $$ | $$ | $$ | $$| $$\ $$$| $$ | $$ | $$ | $$ | $$
% | $$ | $$$$$$/| $$ | $$ | $$ | $$| $$ \ $$| $$$$$$$$ | $$ | $$ | $$$$$$/
% |__/ \______/ |__/ |__/ |__/ |__/|__/ \__/|________/ |__/ |__/ \______/
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%toffanetto%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Template para atividades acadêmicas diversas %
%----------------------------------LICENSE-----------------------------------%
% %
% GNU GENERAL PUBLIC LICENSE %
% Version 3, 29 June 2007 %
% %
% Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> %
% Everyone is permitted to copy and distribute verbatim copies %
% of this license document, but changing it is not allowed. %
% %
% Author: Gabriel Toffanetto França da Rocha %
% GitHub: https://github.com/toffanetto/atividade_fftt %
% %
%----------------------------------------------------------------------------%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{atividade_fftt}[18/09/2024, v3]
\PassOptionsToPackage{svgnames}{xcolor}
\LoadClass[12pt, a4paper]{article}
% --------------------------------------------------- %
% Packages %
% --------------------------------------------------- %
\usepackage[utf8]{inputenc}
\usepackage[brazilian]{babel}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{tabto}
\usepackage{color,soul}
\usepackage{xcolor}
\usepackage{fixltx2e}
\usepackage[bottom]{footmisc}
\usepackage{mathrsfs} % letras matematicas especiais
\usepackage[linktoc=all]{hyperref} % link de pagina no sumário
\usepackage{amsmath} % recursos matemáticos
\usepackage{amssymb} % recursos matemáticos
\usepackage{indentfirst} % Indenta o primeiro parágrafo de cada seção.
\usepackage[alf]{abntex2cite} % Citações padrão ABNT
\DeclareRobustCommand{\hlcyan}[1]{{\sethlcolor{cyan}\hl{#1}}}
\usepackage[document]{ragged2e}
\usepackage{listings} % Ambiente para código fonte
\usepackage{multicol}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{svg} % SVG pictures include
\usepackage{float} % H image float mode
\usepackage{multirow} % Table cell merge
\usepackage[makeroom]{cancel}
\usepackage{fancyhdr}
\usepackage{nameref}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{mathtools}
%\usepackage{refcheck} % Verify about not used labels
% --------------------------------------------------- %
% Fontes %
% --------------------------------------------------- %
% \usepackage{mathptmx} % Times New Roman
% \usepackage{helvet} % Arial
% \usepackage{lmodern} % Latin Modern
% --------------------------------------------------- %
% Listings %
% --------------------------------------------------- %
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,1,0.95}
\lstdefinestyle{default}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\ttfamily\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2,
inputencoding=utf8,
extendedchars=true,
literate={á}{{\'a}}1 {Á}{{\'A}}1 {ã}{{\~a}}1 {â}{{\^{a}}}1 {Â}{{\^{A}}}1 {Ã}{{\~A}}1 {é}{{\'e}}1 {ê}{{\^e}}1 {É}{{\'E}}1 {ç}{{\c{c}}}1 {Ç}{{\c{C}}}1 {í}{{\'i}}1 {ó}{{\'o}}1,
}
\lstset{style=default}
% --------------------------------------------------- %
% Configurações %
% --------------------------------------------------- %
\newcommand{\+}[1]{\ensuremath{\mathbf{#1}}} % comando para escrever matrizes em negrito \+A= A
\renewcommand{\ALG@name}{Algoritmo}% Algorithm -> Algoritmo
\renewcommand{\lstlistingname}{Código}% Listing -> Código
\renewcommand{\lstlistlistingname}{Lista de \lstlistingname s}% List of Listings -> Lista de Códigos
\makeatletter
\newcommand*{\currentname}{\@currentlabelname} % get section name
\makeatother
\makeatletter
\renewcommand*{\ps@plain}{%
\let\@mkboth\@gobbletwo
\let\@oddhead\@empty
\def\@oddfoot{%
\reset@font
\footnotesize{\Autor} % commented in case of more than one author
\hfil
\normalsize{\thepage}
% \hfil % removed for aligning to the right
}%
\let\@evenhead\@empty
\let\@evenfoot\@oddfoot
}
\makeatother
\geometry{top=2cm, bottom=2cm, right=2cm, left=2cm}
% --------------------------------------------------- %
% Comandos %
% --------------------------------------------------- %
% \header
\newcommand{\header}{
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\footnotesize{\TituloShort}}
\fancyhead[C]{\footnotesize{Universidade Estadual de Campinas}}
\fancyhead[R]{\footnotesize{\DisciplinaCOD}}
}
% \removeheader
\newcommand{\removeheader}{
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
}
% \footer
\newcommand{\footer}{
\fancyfoot[R]{\thepage}
}
% \footerauthor
\newcommand{\footerauthor}{
\fancyfoot[R]{\thepage}
\fancyfoot[L]{\footnotesize{\Autor}}
}
% \cabecalho
\newcommand{\cabecalho}{
\thispagestyle{empty}
\header
\footer
\begin{picture}(50,50) %logo UNICAMP
\put(200,-30){
\hbox{\includegraphics[scale=.25]{img/core/logo_unicamp.pdf}}
}
\end{picture}
\vspace{1cm}
\center{\large{Universidade Estadual de Campinas}}
\center{\Faculdade}
\justify
\noindent \textbf{\DisciplinaCOD \space -- \Disciplina} \hfill \today \\ %disciplina \\ data
\noindent Docente: \Professor \\ %professor
\noindent Discentes: %autores
}
% \cabecalholite
\newcommand{\cabecalholite}{
\thispagestyle{empty}
\header
\footer
\center{\Large{Universidade Estadual de Campinas}}
\center{\Faculdade}
\justify
\noindent \textbf{\DisciplinaCOD \space -- \Disciplina} \hfill \today \\ %disciplina \\ data
\noindent Docente \Professor \\ %professor
\noindent Discentes: %autores
}
% \cabecalhoalone
\newcommand{\cabecalhoalone}{
\thispagestyle{empty}
\header
\footerauthor
\begin{picture}(50,50) %logo UNICAMP
\put(200,-30){
\hbox{\includegraphics[scale=.25]{img/core/logo_unicamp.pdf}}
}
\end{picture}
\vspace{1cm}
\center{\large{Universidade Estadual de Campinas}}
\center{\Faculdade}
\justify
\noindent \textbf{\DisciplinaCOD \space -- \Disciplina} \hfill \today \\ %disciplina \\ data
\noindent Docente: \Professor \\ %professor
\noindent Discente: %autores
}
% \cabecalholitealone
\newcommand{\cabecalholitealone}{
\thispagestyle{empty}
\header
\footerauthor
\center{\Large{Universidade Estadual de Campinas}}
\center{\Faculdade}
\justify
\noindent \textbf{\DisciplinaCOD \space -- \Disciplina} \hfill \today \\ %disciplina \\ data
\noindent Docente: \Professor \\ %professor
\noindent Discente: %autores
}
% \titulo
\newcommand{\titulo}{
\vspace{.5cm}
\center{\huge{\Titulo}\par} %titulo
\vspace{.3cm}
\noindent\rule{\textwidth}{0.2pt}
\justify
}
% \titulolite
\newcommand{\titulolite}{
\center{\LARGE{\Titulo}} %titulo
\noindent\rule{\textwidth}{0.2pt}
\justify
}
% \sumario
\newcommand{\sumario}{
\tableofcontents % SUMARIO
\vspace{.3cm}
\noindent\rule{\textwidth}{0.2pt}
}
% \bibliografia
\newcommand{\bibliografia}{
\clearpage
\addcontentsline{toc}{section}{Referências} % para mostrar as referências no sumário
\thispagestyle{plain}
\bibliography{references.bib}
}
% \bibliografia in text
\newcommand{\bibliografiaintext}{
\addcontentsline{toc}{section}{Referências} % para mostrar as referências no sumário
\bibliography{references.bib}
}
% \corpo
\newcommand{\corpo}{
\include{corpo}
}
% \autor
\newcommand{\autor}[1][\Autor]{
\begin{itemize}
\item #1
\end{itemize}
}
% \espacamentoumemeio
\newcommand{\espacamentoumemeio}{
\onehalfspacing
}
% \timesneweoman
\newcommand{\timesnewroman}{
\usepackage{mathptmx} % Times New Roman
}
% \arial
\newcommand{\arial}{
\usepackage{helvet} % Arial
}
% \latinmodern
\newcommand{\latinmodern}{
\usepackage{lmodern} % Latin Modern
}
% \tracolista
\newcommand{\tracolista}{
\def\labelitemi{--} % usa caracter no itemize
}
\newcommand{\colunadivisao}{
\setlength{\columnseprule}{.5pt}
\def\columnseprulecolor{\color{black}} % linha vertical para dividir as colunas
}
\newcommand{\pdfconfig}{
\hypersetup{
%pagebackref=true,
pdftitle={\Titulo},
pdfauthor={\Autor},
pdfsubject={\Disciplina},
pdfcreator={LaTeX with Overleaf},
pdfkeywords={atividade_fftt},
colorlinks=true,
linkcolor=black,
filecolor=black,
urlcolor=cyan,
citecolor=black,
bookmarksdepth=4
}
}
% \apendices
\newcommand{\apendices}{
\clearpage
\include{apendices}
}