-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathppgeb.cls
218 lines (184 loc) · 5.73 KB
/
ppgeb.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
% Class identification
%========================================================================
\NeedsTeXFormat{LaTeX2e}[2023/04/24]
\ProvidesClass{ppgeb}[2023/04/24 v1.01 by Prof. Adriano de Oliveira Andrade, PhD - [email protected]]
% Inherited class - memoir
%========================================================================
% https://github.com/abntex/biblatex-abnt/blob/dev/doc/biblatex-abnt.pdf
\DeclareOption {numeric} {\PassOptionsToPackage{style=abnt-numeric, comp}{biblatex}}
\DeclareOption {autordata} {\PassOptionsToPackage{style=abnt}{biblatex}}
\DeclareOption {portuguese} {\PassOptionsToPackage{portuguese}{babel}}
\DeclareOption {english} {\PassOptionsToPackage{english}{babel}}
\DeclareOption {article} {\PassOptionsToClass{article}{memoir}}
\PassOptionsToPackage{hyphens}{url}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}}
\ProcessOptions\relax
\LoadClass[12pt,oneside,a4paper,final]{memoir}
% Pacotes requeridos
%========================================================================
\RequirePackage [utf8]{inputenc}
\RequirePackage {babel}
\RequirePackage {csquotes}
\RequirePackage {lmodern}
\RequirePackage [T1]{fontenc}
\RequirePackage {amsmath}
\RequirePackage {amsfonts}
\RequirePackage {amssymb}
\RequirePackage [svgnames]{xcolor}
\RequirePackage [colorlinks = true,
hypertexnames=true,
linkcolor = black,
urlcolor = blue,
citecolor = black,
anchorcolor = black]{hyperref}
\RequirePackage {graphicx}
\RequirePackage {lipsum}
\RequirePackage{pdfpages}
\RequirePackage{indentfirst}
\RequirePackage{colortbl}
\RequirePackage{wrapfig}
\RequirePackage{listings}
\RequirePackage[svgnames]{xcolor}
\RequirePackage{minted}
\RequirePackage{algpseudocode}
\RequirePackage{algorithm}
\RequirePackage[ % style = abnt-numeric,
backend=biber,
justify,
indent,
repeatfields, % Imprime os campos repetidos na bibliografia, em vez de substituí-los por traços sublineares,
noslsn, %Oculta as abreviações [s.l], [s.n] e [s.l.: s.n.]
% backref, % informa em qual página a referência foi citada
maxnames=100 % ver https://linorg.usp.br/CTAN/macros/latex/contrib/biblatex/doc/biblatex.pdf
]{biblatex}
\RequirePackage[acronym,nonumberlist]{glossaries}
\setacronymstyle{long-short}
\glstoctrue
\makeglossaries
%imakeidx
\RequirePackage{imakeidx}
\makeindex[columns=3, title=\indexname, intoc]
\RequirePackage{longtable}
\RequirePackage{tabularx}
\RequirePackage{xltabular}
\RequirePackage{caption}
\RequirePackage{mathtools}
% set the depth of the table of contents
\maxtocdepth{subsection} % put 3 levels into the ToC
\setsecnumdepth{subsection}
\setstocksize{297mm}{210mm}
\settrimmedsize{297mm}{210mm}{*}
\setlrmarginsandblock{3.0cm}{2.0cm}{*}
\setulmarginsandblock{3.0cm}{2.0cm}{*}
\checkandfixthelayout
\captiondelim{ -- }
\OnehalfSpacing
% Title page
%========================================================================
% title
\newcommand{\settitle}[1]{\def\asutitle{#1}}
% author
\newcommand{\setauthor}[1]{\def\asuauthor{#1}}
% defence date
\newcommand{\setdefyear}[1]{\def\asudefyear{#1}}
% Postgraduate program
\newcommand{\setpostgradprogram}[1]{\def\postgradprogram{#1}}
% Faculty
\newcommand{\setfaculty}[1]{\def\faculty{#1}}
% Alphabetical index
\newcommand{\setindexname}[1]{\def\indexname{#1}}
% Set institution name
\newcommand{\setinstname}[1]{\def\instname{#1}}
% Basic thesis info
\newcommand{\setbasicthesisinfo}[1]{\def\basicthesisinfo{#1}}
% Acknowlodgements
\newcommand{\setacknowlodgements}[1]{\def\acknowlodgements{#1}}
% Abstract
\newcommand{\setabstract}[1]{\def\ppgebabstract{#1}}
% graduation date
\newcommand{\setgraddate}[1]{\def\asugraddate{#1}}
% committe chair
\newcommand{\setchair}[1]{\def\asuchair{#1, Chair}}
% committe co-chairs
\newcommand{\setchairs}[2]{%
\def\asuchair{#1, Co-chair \\ #2, Co-chair}}
% other members (separated by \\s)
\newcommand{\setmembers}[1]{\def\asumembers{#1\par}}
\newcommand{\printcoverpage}{{%
\thispagestyle{empty}
\centering
{\DoubleSpacing
{\large \MakeUppercase{\instname}} \\[0.25 cm]
{\large \faculty} \\[0.25 cm]
{\large \postgradprogram} \\[3cm]
\includegraphics[scale=1.5]{LogoUFU.pdf} \\[3cm]
{\large \asuauthor}\\[3cm]
{\large \asutitle} \\
\vspace*{\fill}
{\large UBERLÂNDIA, MG}\\[0.25 cm]
{\large \asudefyear}
}
\clearpage}}
\newcommand{\frontpage}{{%
\thispagestyle{empty}
\centering
{\SingleSpace
{\large \asuauthor} \\[5.00 cm]
{\large \asutitle} \\[5.00 cm]
\par\noindent
\hspace{8cm}%
\begin{minipage}{7cm}
\basicthesisinfo
\end{minipage}
\vspace*{\fill}
{\large UBERLÂNDIA, MG}\\[0.25 cm]
{\large \asudefyear}
}
\clearpage}}
\newcommand{\catalographicsheet}{{%
\thispagestyle{empty}
\centering
\vspace*{\fill}
\includegraphics[scale=1.0, origin=RT]{FichaCatalografica.pdf}
\clearpage}}
\newcommand{\minuteofdefence}{{%
\thispagestyle{empty}
\includepdf[pages=-]{AtaDeDefesa.pdf}
}}
%%% general macro for Abstract, etc., headings
\newlength{\linespace}
\setlength{\linespace}{\baselineskip}
\newlength{\toptafiddle} \setlength{\toptafiddle}{2\linespace}
\newlength{\topfiddle} \setlength{\topfiddle}{\toptafiddle}
\newcommand*{\pretoctitle}[1]{{\clearpage\centering
\vspace*{-\topfiddle}#1\par}}
\newcommand{\bb}[1]{\mathbb{#1}}
%%% Start the ACKNOWLEDGEMENTS
\newcommand{\printacknowledgements}[1][AGRADECIMENTOS]{{%
\thispagestyle{empty}
%{\pretoctitle{ACKNOWLEDGEMENTS}}
{\pretoctitle{{#1}}}
\vspace{1cm}
\acknowlodgements
\clearpage
}}
%%% ABSTRACT
\newcommand{\printabstract}[1][RESUMO]{{%
\thispagestyle{empty}
%\addtotextheight{-\botfiddle}%
{\pretoctitle{{#1}}}
\vspace{1cm}
\ppgebabstract
\clearpage
}}
%% Dedication
\newcommand{\printdedication}[1]{{%
\thispagestyle{empty}
\vspace*{\fill}
\begin{flushright}
\begin{minipage}{10cm}
#1
\end{minipage}
\end{flushright}
\clearpage
}}