-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
342 lines (245 loc) · 10.1 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
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
% TODO: ATENÇÃO: FALTA IMPLEMENTAR OS ELEMENTOS OPCIONAIS.
% Se usar os comandos de gerar esses elementos, não estará formatado conforme a MATAD 2017 (http://www.esao.eb.mil.br/images/Arquivos/spg/material/MATAD_2017.pdf).
\documentclass[12pt,a4paper]{article}
\usepackage[margin=2cm, top=3cm, bottom=3cm]{geometry}
\usepackage[T1]{fontenc}
\usepackage[scaled]{helvet}
\renewcommand*\familydefault{\sfdefault}
\usepackage[utf8]{inputenc}
\usepackage[portuguese]{babel}
\usepackage{setspace}
\usepackage{lipsum} % para gerar texto fictício
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{titlesec} % pacote para personalizar títulos de seções
\usepackage{lipsum} % para gerar texto fictício
\usepackage{verbatim} %pacote para comentar várias linhas
\usepackage{tocloft} %personalizar a formatação e o layout das listas de conteúdo, figuras e tabelas,
\usepackage[acronym,nonumberlist,nogroupskip]{glossaries} %personalizar a lista de siglas
\makenoidxglossaries
% Useful packages
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[colorlinks=false, allcolors=blue]{hyperref}
\def\mytitle{MEU TITULO}
\def\myname{Cap QEM MEU NOME COMPLETO}
\def\myadvisor{Maj QEM Fulano de \textbf{Tal}}
\titleformat*{\section}{\bfseries\large\MakeUppercase} % configura a formatação do título da seção
\titleformat*{\subsection}{\large\MakeUppercase} % configura a formatação do subtítulo da seção
\titleformat*{\subsubsection}{\bfseries\large\MakeUppercase} % configura a formatação do subtítulo da seção
\titlespacing*{\section} {0pt}{2\baselineskip}{2\baselineskip} % configura o espaçamento do título da seção
\titlespacing*{\subsection} {0pt}{2\baselineskip}{2\baselineskip} % configura o espaçamento do título da seção
\titlespacing*{\subsubsection} {0pt}{2\baselineskip}{2\baselineskip} % configura o espaçamento do título da seção
\renewcommand{\cftsecfont}{\bfseries} % seções em negrito
\renewcommand{\cftsubsecfont}{} % subseções sem negrito
\renewcommand{\cftsubsubsecfont}{\bfseries} % sub sub seções em negrito
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} % linhas pontilhadas até a página
\renewcommand{\cftsecaftersnum}{.} % ponto após o número da seção
\renewcommand{\cftsubsecaftersnum}{.} % ponto após o número da subseção
\setlength{\cftbeforesecskip}{1em} % espaço antes da seção
\setlength{\cftbeforesubsecskip}{1em} % espaço antes da subseção
\setlength{\cftbeforesubsubsecskip}{1em} % espaço antes da subseção
\renewcommand{\cftsecafterpnum}{\vskip0pt} % sem espaço extra após o número da página da seção
\renewcommand{\cftsubsecafterpnum}{\vskip0pt} % sem espaço extra após o número da página da subseção
\renewcommand{\cftsubsubsecafterpnum}{\vskip0pt} % sem espaço extra após o número da página da subseção
% Alinhando todos os níveis à esquerda
\setlength{\cftsecindent}{0em} % Ajuste esse valor se necessário
\setlength{\cftsubsecindent}{0em} % Ajuste esse valor se necessário
\setlength{\cftsubsubsecindent}{0em} % Ajuste esse valor se necessário
\setlength{\cftsecnumwidth}{3em} % Ajuste esse valor se necessário
\setlength{\cftsubsecnumwidth}{3em} % Ajuste esse valor se necessário
\setlength{\cftsubsubsecnumwidth}{3em} % Ajuste esse valor se necessário
% Remove o título "Conteúdo"
\renewcommand{\contentsname}{}
\addto\captionsportuguese{
\renewcommand{\contentsname}{}
}
\newglossarystyle{custom}{%
\renewenvironment{theglossary}%
{\begin{longtable}{p{2,5cm}l{\glsdescwidth}}}
{\end{longtable}}
\renewcommand*{\glossaryheader}{}
\renewcommand*{\glsgroupheading}[1]{}
\renewcommand*{\glossaryentryfield}[5]{
\glstarget{##1}{\textnormal{##2}} & \emph{##3} \tabularnewline
}
}
%Lista de Abreviaturas
%seguir o modelo de abreviatura
%\newacronym{atalho}{Sigla}{descrição}
\newacronym{eb}{EB}{Exército Brasileiro}
\begin{document}
% Capa
\begin{titlepage}
\centering
\begin{comment}
\begin{figure}
\centering
\includegraphics{imagens/ESAO.jpg}
\label{fig:enter-label}
\end{figure}
\end{comment}
\onehalfspacing
\textbf{\Large ESCOLA DE APERFEIÇOAMENTO DE OFICIAIS} % Nome da instituição
\vspace{2\baselineskip} % Dois espaços duplos
\textbf{\myname} % Nome do autor
\vspace{7\baselineskip} % Sete espaços duplos
\textbf{\mytitle} % Título do trabalho
\vspace{2\baselineskip} % Dois espaços duplos
% \textbf{SUBTÍTULO DO TRABALHO} % Subtítulo do trabalho (se houver)
\vspace{\baselineskip} % Um espaço duplo
% \textbf{Vol. 1} % Volume (se houver)
\vfill % Preenche o espaço vertical
\vspace{5cm} % Espaço de 5cm da margem inferior
\textbf{Campinas} % Cidade
\vspace{\baselineskip} % Um espaço duplo
\textbf{2023} % Ano de entrega
\end{titlepage}
\newgeometry{top=3cm,bottom=2cm,left=3cm,right=2cm} % Define novas margens
% Folha de rosto
\begin{titlepage}
\centering
\onehalfspacing
\textbf{\Large ESCOLA DE APERFEIÇOAMENTO DE OFICIAIS} % Nome da instituição
\vspace{3\baselineskip} % Três espaços duplos
\textbf{\myname} % Nome do autor
\vspace{4\baselineskip} % Quatro espaços duplos
\textbf{\mytitle} % Título do trabalho
\vspace{2\baselineskip} % Dois espaços duplos
% \textbf{SUBTÍTULO DO TRABALHO} % Subtítulo do trabalho (se houver)
\vspace{\baselineskip} % Um espaço duplo
% \textbf{Vol. 1} % Volume (se houver)
\vspace{4\baselineskip} % Quatro espaços duplos
\begin{flushright}
\begin{minipage}{0.5\textwidth}
\singlespacing
Trabalho de Conclusão de Curso apresentado à Escola de Aperfeiçoamento de Oficiais como requisito parcial para a obtenção do grau especialização em Ciências Militares.
\vspace{\baselineskip} % Um espaço simples
Orientador: \myadvisor % Nome do orientador
\end{minipage}
\end{flushright}
\vfill % Preenche o espaço vertical
\vspace{4cm} % Espaço de 4cm da margem inferior
\onehalfspacing
\textbf{Campinas} % Cidade
\vspace{\baselineskip} % Um espaço duplo
\textbf{2023} % Ano de entrega
\end{titlepage}
%FOLHA DE ASSINATURA
\begin{titlepage}
\centering
%\doublespacing
\vspace*{3cm} % Espaçamento de 3cm do topo da página
\textbf{\myname} % Nome do autor
\vspace*{2\baselineskip} % Dois espaços duplos
\textbf{\mytitle} % Título do trabalho
%\vspace*{\baselineskip} % Um espaço duplo
% \textbf{SUBTÍTULO DO TRABALHO} % Subtítulo do trabalho
\vspace*{2\baselineskip} % Um espaço duplo
\begin{flushright}
\begin{minipage}{0.5\textwidth}
\singlespacing
Projeto de Pesquisa apresentado à Escola de Aperfeiçoamento de Oficiais, como requisito parcial para a conclusão da Especialização em Ciências Militares com ênfase em Engenharia Militar.
\end{minipage}
\end{flushright}
\doublespacing
\vspace*{2\baselineskip} % um espaços duplos
\begin{flushleft}
Aprovado em \makebox[1cm]{\hrulefill} / \makebox[1cm]{\hrulefill} / 2023. % Data de aprovação
\end{flushleft}
%\vspace*{\baselineskip} % um espaço simples
\textbf{COMISSÃO DE AVALIAÇÃO}
\vspace*{\baselineskip} % um espaço simples
\begin{center}
\makebox[10cm]{\hrulefill}
\vspace{-0.5cm}
\singlespacing
\textbf{JAKLER} NICHELE NUNES – Maj \\
Instituto Militar de Engenharia \\
Coordenador do CAM % Credenciais
\vspace{4\baselineskip}
\makebox[10cm]{\hrulefill}
\vspace{-0.5cm}
\singlespacing
\textbf{ARLY} GAUTAMA RODRIGUES E SILVA – Cel \\
Instituto Militar de Engenharia \\
Professor do CAM % Credenciais
\vspace{2\baselineskip}
\end{center}
\end{titlepage}
%AGRADECIMENTOS
\begin{titlepage}
\begin{center}
\textbf{AGRADECIMENTOS}
\end{center}
\vspace{3\baselineskip}
\setlength{\parindent}{1.25cm} % ajusta o recuo do parágrafo
\onehalfspacing % configura o espaçamento de 1,5 entre as linhas
Aqui entram os agradecimentos do seu trabalho
\end{titlepage}
%RESUMO
\begin{titlepage}
\centering
\singlespacing
\vspace*{3\baselineskip}
\textbf{\Large RESUMO}
\vspace{3\baselineskip}
\singlespacing
\leftskip1.25cm\rightskip1.25cm % ajusta a margem do parágrafo
\lipsum[1] % gera um parágrafo fictício para representar o resumo
\par
\vspace{2\baselineskip}
\textbf{Palavras-chave:} Palavra1. Palavra2. Palavra3. Palavra4.
\end{titlepage}
\begin{titlepage}
\centering
\singlespacing
\vspace*{3\baselineskip}
\textbf{\Large ABSTRACT}
\vspace{3\baselineskip}
\singlespacing
\leftskip1.25cm\rightskip1.25cm % ajusta a margem do parágrafo
\lipsum[1] % gera um parágrafo fictício para representar o resumo
\par
\vspace{2\baselineskip}
\textbf{Key words} Palavra1. Palavra2. Palavra3. Palavra4.
\end{titlepage}
%CONFIGURAÇÃO DA LISTA DE FIGURAS
\renewcommand{\cftfigpresnum}{Figura } % Prefixo antes do número da figura
\renewcommand{\cftfigaftersnum}{ --} % Sufixo após o número da figura
\setlength{\cftfignumwidth}{5em} % Espaçamento para números das figuras (ajuste conforme necessário)
\begin{center}
\Large\textbf{\MakeUppercase{Lista de Figuras}}
\end{center}
\vspace*{3\baselineskip}
\renewcommand{\listfigurename}{}
\listoffigures
\thispagestyle{empty}
\newpage
\begin{center}
\Large\textbf{\MakeUppercase{Lista de Abreviaturas}}
\end{center}
\vspace*{3\baselineskip}
%\printnoidxglossary[type=acronym, title={}, toctitle={Lista de Abreviaturas}]
\printnoidxglossary[style=custom, type=acronym, title={}, toctitle={Lista de Abreviaturas}]
\thispagestyle{empty}
\newpage
\begin{center}
\vspace*{3cm}
\Large\textbf{\MakeUppercase{Sumário}}
\end{center}
\vspace*{3\baselineskip}
\tableofcontents
\thispagestyle{empty}
\newpage
\setlength{\parindent}{1.25cm} % ajusta o recuo do parágrafo
\onehalfspacing % configura o espaçamento de 1,5 entre as linhas
\section{Primeira Seção}
\lipsum[1-2]
\section{Segunda Seção}
\lipsum[3-4]
\subsection{Sub seção}
\lipsum[5-6]
\subsubsection{Sub subseção}
\lipsum[5-6]
\end{document}