-
Notifications
You must be signed in to change notification settings - Fork 0
/
abnt-UFPR.sty
321 lines (260 loc) · 8.14 KB
/
abnt-UFPR.sty
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
%% $Id: abnt-UFPR.sty,v 1.2 2003/10/10 16:40:25 gweber Exp $
%% name of this file abntcite.sty
%% Copyright 2003 by the abnTeX group at http://abntex.codigolivre.org.br
%% and by the authors Rogério C. <[email protected]>
%% and Dornelles Vissotto Junior <[email protected]>
%%
%% This file is distributed under the LaTeX-Project Public License (LPPL)
%% http://www.latex-project.org/lppl.html
%% You are free to modify this file under the LPPL.
%%
\NeedsTeXFormat{LaTeX2e}
\input{cvs-id.def}
\CVSExtract$Id: abnt-UFPR.sty,v 1.2 2003/10/10 16:40:25 gweber Exp $
\CVSPackage{abntUFPR}{} %substitui \ProvidesPackage (replaces \ProvidesPackage)
% ifthen - conditions in LaTeX
\PassOptionsToClass{pnumromarab}{abnt}
\RequirePackage{ifthen}
\RequirePackage[brazil]{babel}
\RequirePackage[latin1]{inputenc}
%\RequirePackage{abnt}
\PassOptionsToPackage{hyperindex=false}{hyperref}
\PassOptionsToPackage{estilo=UFPR}{tabela-simbolos}
\makeatletter %Para que ele entenda o @
% ** Altera definiçőes da ABNT para adaptar ŕ UFPR
% ************* CAPA **************
\renewcommand{\capa}{
\begin{titlepage}
\espaco{1.1}
\begin{center}
\large\ABNTchapterfont\ABNTautordata
\end{center}
\vspace{7.5cm}
\begin{center}
\large\ABNTchapterfont\ABNTtitulodata\par
\end{center}
\vfill
\begin{center}
\textbf{\ABNTlocaldata}\par
\textbf{\ABNTdatadata}
\end{center}
\end{titlepage}
}% end of \capa
% ******** FOLHA DE ROSTO *********
\newcommand{\esporient}[2]{
\leftskip 0em
\@tempdima 5.5em
\advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
{#1#2\hfil}}
\newcommand{\espcoorient}[2]{
\leftskip 0em
\@tempdima 7em
\advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
{#1#2\hfil}}
\renewcommand{\folhaderosto}{
\begin{titlepage}
\espaco{1.1}
\begin{center}
\large\ABNTchapterfont\ABNTautordata
\end{center}
\vspace{7.5cm}
\begin{center}
\large\ABNTchapterfont\ABNTtitulodata\par
\end{center}
\vspace{2cm}
\hspace{.3\textwidth}
\begin{minipage}{.55\textwidth}
\begin{espacosimples}
\ABNTcomentariodata\par
\end{espacosimples}
\end{minipage}
\hspace{.3\textwidth}
\begin{minipage}{.55\textwidth}
\begin{espacosimples}
\esporient{\numberline {Orientador:}}{\ignorespaces\ABNTorientadordata}
\end{espacosimples}
\end{minipage}
\ABNTifnotempty{\ABNTcoorientadordata}{
\hspace{.3\textwidth}
\begin{minipage}{.55\textwidth}
\begin{espacosimples}
\espcoorient{\numberline {Co-Orientador:}}{\ignorespaces\ABNTcoorientadordata}
\end{espacosimples}
\end{minipage}}
\vfill
\begin{center}
\textbf{\ABNTlocaldata}\par
\textbf{\ABNTdatadata}
\end{center}
\end{titlepage}
}% end of \folhaderosto
% Altera o tamanho das fontes dos capítulos e dos apęndices
\renewcommand{\ABNTchapterfont}{\bfseries}
\renewcommand{\ABNTchaptersize}{\Large}
\renewcommand{\ABNTsectionfont}{\large}
\renewcommand{\ABNTanapsize}{\Large}
%Altera o espaçamento entre dots
\renewcommand\@dotsep{2}
%Altera forma de montagem do table of contents
\renewcommand\l@chapter[2]{
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\ifthenelse{\boolean{ABNTpagenumstyle}}
{\renewcommand{\@pnumwidth}{3.5em}}
{}
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode \normalsize\ABNTtocchapterfont
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak\dotfill \nobreak%
\ifthenelse{\boolean{ABNTpagenumstyle}}
{%
\hb@xt@\@pnumwidth{\hss
\ifthenelse{\not\equal{#2}{}}{{\normalfont p.\thinspace#2}}{}}\par
}
{%
\hb@xt@\@pnumwidth{\hss #2}\par
}
\penalty\@highpenalty
\endgroup
\fi}
\renewcommand*\l@section{\@dottedtocline{1}{0em}{2.3em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{0em}{3.2em}}
\renewcommand*\l@subsubsection{\@dottedtocline{3}{0em}{4.1em}}
% Cria um comando auxiliar para montagem da lista de figuras
\newcommand{\figfillnum}[1]{%
{\hspace{1em}\normalfont\dotfill}\nobreak
\hb@xt@\@pnumwidth{\hfil\normalfont #1}{}\par}
% Cria um comando auxiliar para montagem da lista de tabelas
\newcommand{\tabfillnum}[1]{%
{\hspace{1em}\normalfont\dotfill}\nobreak
\hb@xt@\@pnumwidth{\hfil\normalfont #1}{}\par}
% Altera a forma de montagem da lista de figuras
\renewcommand*{\l@figure}[2]{
\leftskip 3.1em
\rightskip 1.6em
\parfillskip -\rightskip
\parindent 0em
\@tempdima 2.0em
\advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
{Figura \normalfont #1}\nobreak \figfillnum{#2}}
% Altera a forma de montagem de lista de tabelas
\renewcommand*{\l@table}[2]{
\leftskip 3.4em
\rightskip 1.6em
\parfillskip -\rightskip
\parindent 0em
\@tempdima 2.0em
\advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
{Tabela \normalfont #1}\nobreak \tabfillnum{#2}}
% Define os comandos que montam a lista de símbolos
\newcommand{\listadesimbolos}{\pretextualchapter{Lista de Símbolos}\@starttoc{lsb}}
\newcommand{\simbolo}[2]{{\addcontentsline{lsb}{simbolo}{\numberline{#1}{#2}}}#1}
\newcommand{\l@simbolo}[2]{
\vspace{-0.75cm}
\leftskip 0em
\parindent 0em
\@tempdima 5em
\advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
{\normalfont #1}\hfil\nobreak\par}
% Define o comando que monta a lista de siglas
\newcommand{\listadesiglas}{\pretextualchapter{Lista de Siglas}\@starttoc{lsg}}
\newcommand{\sigla}[2]{{\addcontentsline{lsg}{sigla}{\numberline{#1}{#2}}}#1}
\newcommand{\l@sigla}[2]{
\vspace{-0.75cm}
\leftskip 0em
\parindent 0em
\@tempdima 5em
\advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
{\normalfont #1}\hfil\nobreak\par}
% Define o tipo de numeraçăo das páginas
\renewcommand{\chaptertitlepagestyle}{plain}
% Altera a posiçăo da numeraçăo de páginas dos elementos pré-textuais
\renewcommand\pretextualchapter{
\if@openright\cleardoublepage\else\clearpage\fi
\pagestyle{\chaptertitlepagestyle}
\global\@topnum\z@
\@afterindentfalse
\@schapter}
% Altera a posiçăo da numeraçăo de páginas dos elementos textuais
\renewcommand{\ABNTchaptermark}[1]{
\ifthenelse{\boolean{ABNTNextOutOfTOC}}
{\markboth{\ABNTnextmark}{\ABNTnextmark}}
{\chaptermark{#1}
\pagestyle{\chaptertitlepagestyle}}}
% Redefine o tipo de numeraçăo das páginas
\renewcommand{\ABNTBeginOfTextualPart}{
\renewcommand{\chaptertitlepagestyle}{plainheader}
\renewcommand{\thepage}{\arabic{page}}
\setcounter{page}{1}}
\makeatother
%Altera o tamanho do parágrafo
\setlength{\parindent}{1.5cm}
% ******* TERMO DE APROVAÇĂO ******
\providecommand{\ABNTtextoaprovacaodata}{}
\newcommand{\textoaprovacao}[1]{\renewcommand{\ABNTtextoaprovacaodata}{#1}}
\providecommand{\ABNTprimeiroassinadata}{}
\newcommand{\primeiroassina}[1]{\renewcommand{\ABNTprimeiroassinadata}{#1}}
\providecommand{\ABNTsegundoassinadata}{}
\newcommand{\segundoassina}[1]{\renewcommand{\ABNTsegundoassinadata}{#1}}
\providecommand{\ABNTterceiroassinadata}{}
\newcommand{\terceiroassina}[1]{\renewcommand{\ABNTterceiroassinadata}{#1}}
\providecommand{\ABNTquartoassinadata}{}
\newcommand{\quartoassina}[1]{\renewcommand{\ABNTquartoassinadata}{#1}}
\providecommand{\ABNTlocaldiadata}{}
\newcommand{\localdia}[1]{\renewcommand{\ABNTlocaldiadata}{#1}}
\newcommand{\termodeaprovacao}{
\begin{titlepage}
\pretextualchapter{Termo de Aprovaçăo}
\vspace{-0.25cm}
\begin{center}
\large\ABNTautordata
\end{center}
\vspace{0.75cm}
\begin{center}
\large\ABNTtitulodata
\end{center}
\vspace{0.75cm}
\begin{espacosimples}
\noindent\ABNTtextoaprovacaodata\par
\end{espacosimples}
\setlength{\ABNTsignthickness}{0.4pt}
\setlength{\ABNTsignskip}{1.75cm}
\ABNTifnotempty{\ABNTprimeiroassinadata}%
{%
\begin{center}
\vspace{-0.5cm}
\assinatura{\ABNTprimeiroassinadata}
\end{center}
}
\ABNTifnotempty{\ABNTsegundoassinadata}%
{%
\begin{center}
\vspace{-0.5cm}
\assinatura{\ABNTsegundoassinadata}
\end{center}
}
\ABNTifnotempty{\ABNTterceiroassinadata}%
{%
\begin{center}
\vspace{-0.5cm}
\assinatura{\ABNTterceiroassinadata}
\end{center}
}
\ABNTifnotempty{\ABNTquartoassinadata}%
{%
\begin{center}
\vspace{-0.5cm}
\assinatura{\ABNTquartoassinadata}
\end{center}
}
\vfill
\begin{center}
\ABNTlocaldiadata
\end{center}
\end{titlepage}
}