-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabntex2UFSC.sty
536 lines (494 loc) · 19.6 KB
/
abntex2UFSC.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
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
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
%% abntex2UFSC.sty, v-1 guizsantos
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `unmaintained'.
%%
%% The Current Maintainer of this work is the Guilherme Z. Santos
%%
%% This work consists of the file abntex2UFSC.sty.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{abntex2UFSC}[2017/03/01 abnTeX2 to UFSC]
\RequirePackage{pgfkeys,pdfpages,varwidth,fix-cm,tikz,xcolor}
\DeclareOption{a5paper}{%
\setlength{\baselineskip}{1cm}
\setlength{\parindent}{\baselineskip}
\setlength{\afterchapskip}{\baselineskip}
\setlrmarginsandblock{2.5cm}{1.5cm}{*}
\setulmarginsandblock{2cm}{1.5cm}{*}
\setheadfoot{\baselineskip}{\dimexpr\lowermargin-0.7cm\relax}
\setheaderspaces{0.7cm}{*}{*}
\checkandfixthelayout
}
\DeclareOption{10.5pt}{%
\renewcommand\normalsize{%
\@setfontsize\normalsize{10.5}{12.5}}
\renewcommand\small{%
\@setfontsize\small{10}{12}}
\renewcommand\footnotesize{%
\@setfontsize\small{9.5}{11.5}}
}
\ProcessOptions*
\RequirePackage{iftex}%
\ifPDFTeX%
\usepackage[utf8]{inputenc}%
\usepackage[T1]{fontenc}
\else%
\usepackage{fontspec}%
\fi%
%-DEFINIÇÃO DE ALGUNS NOMES E SUAS TRADUÇÕES PARA O INGLÊS
\renewcommand{\orientadorname}{Orientador}
\renewcommand{\coorientadorname}{Coorientador}
\newcommand{\examinationbenchname}{Banca examinadora:}
\newcommand{\listofacronymsandsymbolsname}{Lista de siglas e símbolos}
\newcommand{\listofromansymbolsname}{Símbolos romanos}
\newcommand{\listofgreeksymbolsname}{Símbolos gregos}
\newcommand{\listofindicesname}{Sub e Super-índices}
\newcommand{\listofcharnumbersname}{Números característicos}
\newcommand{\listofacronymsname}{Siglas}
\addto\captionsenglish{%
\renewcommand{\orientadorname}{Supervisor}
\renewcommand{\coorientadorname}{Co-supervisor}
\renewcommand{\examinationbenchname}{Examination bench:}
\renewcommand{\listofacronymsandsymbolsname}{List of acronyms and symbols}
\renewcommand{\listofromansymbolsname}{Roman symbols}
\renewcommand{\listofgreeksymbolsname}{Greek symbols}
\renewcommand{\listofindicesname}{Sub and Superindices}
\renewcommand{\listofcharnumbersname}{Characteristic numbers}
\renewcommand{\listofacronymsname}{Acronyms}
}
%-REDEFINIÇÕES DA CLASSE abntex2
\RequirePackage{booktabs}
\renewcommand{\ABNTEXsign}[1]{%
\begin{tabular}[t]{>{\centering\small}m{\ABNTEXsignwidth}}
\\[\ABNTEXsignskip]\midrule[\ABNTEXsignthickness]
#1\\
\end{tabular}
}
\ifthenelse{\boolean{ABNTEXsumario-abnt-6027-2012}}{%
\renewcommand{\bibsection}{%
\chapter*{\bibname}
\bibmark
\ifnobibintoc\else
\phantomsection
\addcontentsline{toc}{chapter}{\texorpdfstring{\uppercase{\bibname}}{\bibname}}
\fi
\prebibhook}
}{}
\renewcommand{\PRIVATEapendiceconfig}[2]{%
\setboolean{abntex@apendiceousecao}{true}%
\renewcommand{\appendixname}{#1}
\ifthenelse{\boolean{ABNTEXsumario-abnt-6027-2012}}{
\renewcommand{\appendixtocname}{\texorpdfstring{\uppercase{#2}}{#2}}
}{%
\renewcommand{\appendixtocname}{#2}}
\renewcommand{\appendixpagename}{#2}
\switchchapname{#1}% Corrected from \switchapname -> \switchchapname
\renewcommand*{\cftappendixname}{#1 \space}
}
\setlength{\afterchapskip}{2\lineskip}
\setlength{\subfloatcapskip}{.5em}
\setlength{\subfloatcaptopadj}{0pt}
\addto\textual{\setcounter{table}{0}}
\newlength{\dedicationwidth@UFSC}
\newlength{\epigraphwidth@UFSC}
%-CRIA O COMANDO PARA CONFIGURAR O TEMPLATE
\newcommand{\setUFSCtemplate}[1]{\pgfkeys{/UFSC/.cd,#1}}
\def\imprimirlistas{}
\def\imprimirfichacatalografica{%
\begin{center}
\LARGE Fazer a ficha no site
\url{http://ficha.bu.ufsc.br/}
E incluir o PDF via \texttt{\textbackslash setUFSCtemplate\{ficha catalografica=<file>\}}
\end{center}
\clearpage
}
%--DEFINIÇÃO DAS CHAVES PARA CONFIGURAR O FORMATO
\setUFSCtemplate{%
uppercased chapters/.code={\setboolean{ABNTEXupperchapter}{true}}
,uppercased sections/.code={%
\setboolean{ABNTEXuppersection}{true}%
\let\oldcontentsline\contentsline
\def\contentsline##1##2{%
\expandafter\ifx\csname l@##1\endcsname\l@section%
\expandafter\@firstoftwo%
\else%
\expandafter\@secondoftwo%
\fi%
{\oldcontentsline{##1}{\MakeTextUppercase{##2}}%
}{\oldcontentsline{##1}{##2}}}%
}
,uppercased subsections/.code={\setboolean{ABNTEXuppersubsection}{true}}
,uppercased subsubsections/.code={\setboolean{ABNTEXuppersubsubsection}{true}}
,uppercased subsubsubsections/.code={\setboolean{ABNTEXuppersubsubsubsection}{true}}
,part font/.code={\def\ABNTEXpartfont{#1}}
,chapter font/.code={\def\ABNTEXchapterfont{#1}}
,section font/.code={\def\ABNTEXsectionfont{#1}\def\cftsectionfont{#1}}
,subsection font/.code={\def\ABNTEXsubsectionfont{#1}\def\cftsubsectionfont{#1}}
,subsubsection font/.code={\def\ABNTEXsubsubsectionfont{#1}\def\cftsubsubsectionfont{#1}}
,subsubsubsection font/.code={\def\ABNTEXsubsubsubsectionfont{#1}\def\cftparagraphfont{#1}}
,part font size/.code={\def\ABNTEXpartfontsize{#1}}
,chapter font size/.code={\def\ABNTEXchapterfontsize{#1}}
,section font size/.code={\def\ABNTEXsectionfontsize{#1}}
,subsection font size/.code={\def\ABNTEXsubsectionfontsize{#1}}
,subsubsection font size/.code={\def\ABNTEXsubsubsectionfontsize{#1}}
,subsubsubsection font size/.code={\def\ABNTEXsubsubsubsectionfontsize{#1}}
,titles font size/.style={part font size=#1, chapter font size=#1, section font size=#1, subsection font size=#1, subsubsection font size=#1, subsubsubsection font size=#1}
}
%--DEFINIÇÃO DAS CHAVES PARA INFORMAÇÕES DA GERAÇÃO AUTOMÁTICA DE CAPA E OUTROS
\newboolean{tcc}\setboolean{tcc}{false}
\def\imprimircoordenador{}
\setUFSCtemplate{%
author/.code={\author{#1}\hypersetup{pdfauthor={#1}}}
,title/.code={\title{#1}\hypersetup{pdftitle={#1}}}
,subtitle/.code={\def\imprimirsubtitulo{#1}}
,subtitle=\pgfutil@empty
,date/.code={\date{#1}}
,local/.code={\local{#1}}
,instituition/.code={\instituicao{#1}}
,instituition={Universidade Federal de Santa Catarina}
,advisor/.code={\orientador{#1}}
,co-advisor/.code={\coorientador{#1}}
,coordinator/.code={\def\imprimircoordenador{#1}}
,nature of work/.code={\pgfkeysalso{nature of work/.cd,#1,/UFSC/.cd, nature of work text={\typeofwork@UFSC\space\ifthenelse{\boolean{tcc}}{apresentado ao}{submetida ao}\space\course@UFSC\space da \imprimirinstituicao\space como parte dos requisitos para obtenção do título de \giventitle@UFSC.}}}
,approval sheet text/.store in=\approvalsheet@UFSC
,approval sheet text={none}
,bench1/.code={\def\benchone@UFSC{#1}}
,bench2/.code={\def\benchtwo@UFSC{#1}}
,bench3/.code={\def\benchthree@UFSC{#1}}
,bench4/.code={\def\benchfour@UFSC{#1}}
,nature of work text/.code={\preambulo{#1}}
,nature of work/.cd%
,type/.is choice
,type/tcc/.code={%
\definecolor{background color}{cmyk}{0,1,1,0}%
\def\typeofwork@UFSC{Trabalho de Conclusão}%
\def\graduationlevel@UFSC{graduação}
\setboolean{tcc}{true}%
\let\upperbar@hardcover@UFSC\typeofwork@UFSC%
}
,type/monography/.code={%
\definecolor{background color}{cmyk}{0,.07,1,0}%
\setboolean{tcc}{false}%
\def\upperbar@hardcover@UFSC{Monografia de Pós-Graduação}%
}
,type/masters dissertation/.code={%
\definecolor{background color}{cmyk}{1,0,1,0}
\def\typeofwork@UFSC{Dissertação de mestrado}%
\def\graduationlevel@UFSC{mestrado}
\setboolean{tcc}{false}%
\let\upperbar@hardcover@UFSC\typeofwork@UFSC%
}
,type/doctoral thesis/.code={%
\definecolor{background color}{cmyk}{1,.69,0,0}%
\def\typeofwork@UFSC{Tese de doutorado}%
\def\graduationlevel@UFSC{doutorado}
\setboolean{tcc}{false}%
\let\upperbar@hardcover@UFSC\typeofwork@UFSC%
}
,type/post-doc report/.code={%
\definecolor{background color}{cmyk}{0,0,0,.6}%
\setboolean{tcc}{false}%
\def\upperbar@hardcover@UFSC{Relatório de Pós-doutorado}%
\def\graduationlevel@UFSC{pós-doutorado}
}
,course/.store in=\course@UFSC%
,course={Curso de (Pós-)Graduação}
,center/.store in=\center@UFSC%
,center={Centro}
,given title/.store in=\giventitle@UFSC
,given title={Título recebido}
}
\hypersetup{
pdfencoding=auto
,pdfcreator={\LaTeX}
,colorlinks=true % false: boxed links; true: colored links
,linkcolor=black % color of internal links
,citecolor=black % color of links to bibliography
,filecolor=black % color of file links
,urlcolor=black
,bookmarksdepth={4}
}
%--DEFINIÇÕES PARA GERAÇÃO AUTOMÁTICA DE CAPA E OUTROS
\setUFSCtemplate{%
nature of work={type=masters dissertation}
,cover page code/.code={%
\renewcommand{\imprimircapa}{#1}
}
,cover page code={% Capa
\hypersetup{pageanchor=false}
\begin{capa}%
\centering
\includegraphics{ufsc}\par
{
\ABNTEXsectionfontsize\ABNTEXsectionfont\MakeTextUppercase{\imprimirinstituicao\protect\\\center@UFSC\protect\\\course@UFSC}\par
\vfill
\imprimirautor
}
\vfill
{
\ABNTEXchapterfontsize\ABNTEXchapterfont\MakeTextUppercase{\imprimirtitulo}\abntex@ifnotempty{\imprimirsubtitulo}{:\space\MakeTextUppercase\imprimirsubtitulo}
}
\vfill
\ABNTEXsectionfontsize\imprimirlocal
\imprimirdata
\vspace*{1cm}
\end{capa}
\hypersetup{pageanchor=true}
}
,title page code/.code={%
\def\imprimirfolhaderosto{#1}%
}
,title page code={% Folha de rosto
\begin{center}
{\ABNTEXsectionfontsize\ABNTEXchapterfont\imprimirautor}
\vspace*{\fill}
{\ABNTEXchapterfontsize\ABNTEXchapterfont\MakeTextUppercase{\imprimirtitulo}\abntex@ifnotempty{\imprimirsubtitulo}{:\space\MakeTextUppercase\imprimirsubtitulo}}
\vspace*{\fill}
\hspace{\fill}
\begin{minipage}{.6\textwidth}
\SingleSpacing\small
\imprimirpreambulo
\imprimirorientadorRotulo:\space\imprimirorientador
\abntex@ifnotempty{\imprimircoorientador}{%
{\imprimircoorientadorRotulo:\space\imprimircoorientador}%
}%
\end{minipage}%
\vspace*{\fill}
{\ABNTEXsectionfontsize\imprimirlocal
\par
\large\imprimirdata}
\vspace*{1cm}
\end{center}
\clearpage
}
,catalogue record/.code={\usepackage{pdfpages}\def\imprimirfichacatalografica{\includepdf{#1}}}
,sign line width/.code={\setlength{\ABNTEXsignwidth}{#1}}
,sign line width=6.5cm%
,sign line skip/.code={\setlength{\ABNTEXsignskip}{#1}}
,sign line skip=2cm%
,approval sheet code/.code={\def\imprimirfolhadeaprovacao{#1}}
,approval sheet code={%
\begin{folhadeaprovacao}
\begin{center}
{\ABNTEXsectionfont\imprimirautor}
\vfill
{\ABNTEXchapterfont\ABNTEXchapterfontsize\MakeTextUppercase{\imprimirtitulo}\abntex@ifnotempty{\imprimirsubtitulo}{:\space\MakeTextUppercase\imprimirsubtitulo}}
\vfill
O presente trabalho em nível de \graduationlevel@UFSC\space foi avaliado e aprovado por banca examinadora composta pelos seguintes membros:\vspace{2\baselineskip}
\ifdefined\benchone@UFSC\benchone@UFSC\vspace{2\baselineskip}\else\fi
\ifdefined\benchtwo@UFSC\benchtwo@UFSC\vspace{2\baselineskip}\else\fi
\ifdefined\benchthree@UFSC\benchthree@UFSC\vspace{2\baselineskip}\else\fi
\ifdefined\benchfour@UFSC\benchfour@UFSC\vspace{2\baselineskip}\else\fi
\parbox{\textwidth}{Certificamos que esta é a \textbf{versão original e final} do trabalho de conclusão que foi julgado adequado para obtenção do título de \giventitle@UFSC.}
\assinatura{\imprimircoordenador\\Coordenador do \course@UFSC}%
\assinatura{\imprimirorientador\\\imprimirorientadorRotulo\\Presidente da banca}
\end{center}
\vfill
\end{folhadeaprovacao}
}
,dedication font/.store in=\dedicationfont@UFSC
,dedication font=\itshape
,dedication width/.code = {\setlength{\dedicationwidth@UFSC}{#1}}%
,dedication width=.7\textwidth
,dedication/.code={\def\imprimirdedicatoria{%
\begin{dedicatoria}
\vspace*{\fill}
\hfill
\begin{varwidth}{\dedicationwidth@UFSC}
\dedicationfont@UFSC #1
\end{varwidth}
\end{dedicatoria}
}
}
,epigraph font/.store in=\epigrafefont@UFSC
,epigraph font=\itshape
,epigraph width/.code = {\setlength{\epigraphwidth@UFSC}{#1}}
,epigraph width=.55\textwidth
,epigraph/.code 2 args={\def\imprimirepigrafe{%
\begin{epigrafe}
\vspace*{\fill}
\hfill
\begin{minipage}{\epigraphwidth@UFSC}
\begingroup\epigrafefont@UFSC ``#1'' \endgroup
\hfill (#2)
\end{minipage}
\end{epigrafe}
}
}
}
%-SUPORTE PARA A LISTA DE SIGLAS
\RequirePackage{afterpackage,calc}
\AfterPackage{glossaries}{%
\newglossary[slr]{romansymbol}{sri}{srg}{\listofromansymbolsname} % create add. romansymbol
\newglossary[slg]{greeksymbol}{sgi}{sgg}{\listofgreeksymbolsname} % create add. greeksymbol
\newglossary[sli]{indices}{sii}{sig}{\listofindicesname} % create add. indices
\newglossary[sln]{numbers}{sni}{sng}{\listofcharnumbersname} % create add. indices
\glsaddkey*{unit}{}{\glsentryunit}{\Glsentryunit}{\glsunit}{\Glsunit}{\GLSunit}
\glsaddkey*{definition}{}{\glsentrydefinition}{\Glsentrydefinition}{\glsdefinition}{\Glsdefinition}{\GLSdefinition}
\newglossarystyle{siglas}{%
\setglossarystyle{long}%
\renewenvironment{theglossary}%
{\begin{longtable}{>{\bfseries}lp{.8\textwidth}}}% <-- change the value here
{\end{longtable}}%
}
\newglossarystyle{simbolos}{%
\setglossarystyle{long3col}% base this style on the list style
\renewenvironment{theglossary}% Change the table type --> 3 columns
{\begin{longtable}{cp{.55\textwidth}c}}%
{\end{longtable}}%
\renewcommand*{\glossaryheader}{% Change the table header
\bfseries Símbolo & \bfseries Descrição & \bfseries Unidade \\[.2em]
\endhead}%
\renewcommand*{\glossentry}[2]{% Change the displayed items
\glstarget{##1}{\glossentryname{##1}} & \glossentrydesc{##1} & \glsunit{##1} \\}
}
\newglossarystyle{numbers}{%
\setglossarystyle{long3col}% base this style on the list style
\renewenvironment{theglossary}% Change the table type --> 3 columns
{\renewcommand*{\arraystretch}{2.5}\begin{longtable}{cp{.45\textwidth}c}}%
{\end{longtable}}%
\renewcommand*{\glossaryheader}{% Change the table header
\bfseries Número & \bfseries Descrição & \bfseries Definição \\[\baselineskip]
\endhead}%
\renewcommand*{\glossentry}[2]{% Change the displayed items
\glstarget{##1}{\glossentryname{##1}} & \glossentrydesc{##1} & \glsdefinition{##1} \\}
}
\newglossarystyle{indices}{%
\setglossarystyle{long}% base this style on the list style
\renewenvironment{theglossary}% Change the table type --> 3 columns
{\begin{longtable}{lp{.8\textwidth}}}%
{\end{longtable}}%
\renewcommand*{\glossaryheader}{% Change the table header
\bfseries Índice & \bfseries Descrição \\[.2em]
\endhead}%
\renewcommand*{\glossentry}[2]{% Change the displayed items
( )\textsubscript{\glstarget{##1}{\glossentryname{##1}}} & \glossentrydesc{##1} \\}
}
\glssetnoexpandfield{unit}
\glssetnoexpandfield{definition}
}
\setUFSCtemplate{use glossaries/.code={%
\let\printglossary\relax
\let\theglossary\relax
\let\endtheglossary\relax
\let\su@ExpandTwoArgs\relax
\let\IfSubStringInString\relax
\let\su@IfSubStringInString\relax
\usepackage{longtable,siunitx}
\newcommand*{\indentglossarylists}{0}
\newcommand{\imprimirlistadesiglasesimbolos}{%
\renewcommand*{\indentglossarylists}{1}
\pdfbookmark[0]{\listofacronymsandsymbolsname}{las}
\imprimirlistadesiglas\PRIVATEclearpageifneeded%
\imprimirlistadesimbolosromanos\PRIVATEclearpageifneeded%
\imprimirlistadesimbolosgregos\PRIVATEclearpageifneeded%
}
\newcommand{\imprimirlistadesiglas}{%
\pdfbookmark[\indentglossarylists]{\listofacronymsname}{acr}%
\printglossary[style=siglas,type=\acronymtype,title=\listofacronymsname]%
}
\newcommand{\imprimirlistadesimbolosgregos}{%
\pdfbookmark[\indentglossarylists]{\listofgreeksymbolsname}{sgg}%
\printglossary[style=simbolos,type=greeksymbol,title=\listofgreeksymbolsname]%
}
\newcommand{\imprimirlistadesimbolosromanos}{%
\pdfbookmark[\indentglossarylists]{\listofromansymbolsname}{srg}%
\printglossary[style=simbolos,type=romansymbol,title=\listofromansymbolsname]%
}
}
,use nomencl/.code={%
\usepackage{siunitx}
\AfterPackage{nomencl}{%
\newcommand{\insertnomheaders}{\item[\bfseries Símbolo]%
{\bfseries Descrição \hfill Unidade}}
\renewcommand\nomgroup[1]{%
\item[\Large\scshape\ifthenelse{\equal{##1}{A}}{Siglas}{% A - Acronyms
\ifthenelse{\equal{##1}{R}}{Símbolos romanos}{% R - Roman
\ifthenelse{\equal{##1}{G}}{Símbolos gregos}{% G - Greek
\ifthenelse{\equal{##1}{S}}{Sobrescritos}{% S - Superscripts
\ifthenelse{\equal{##1}{U}}{Sub-escritos}{% U - Subscripts
\ifthenelse{\equal{##1}{X}}{Outros}{% X - Other Symbols
{}}}}}}}]\ifthenelse{\equal{##1}{A}}{}{\insertnomheaders}}
% \renewcommand*{\nompreamble}{\markboth{\nomname}{\nomname}}
\newcommand{\nomunit}[1]{%
\renewcommand{\nomentryend}{\hfill \parbox{.15\textwidth}{\hfil ##1\hfil}}%
}
\setlength{\nomlabelwidth}{.15\textwidth}
\newcommand{\nomdescr}[1]{\parbox[t]{.67\textwidth}{##1}}
\newcommand{\newacronym}[2]{\nomenclature[A]{##1}{##2}}
\newcommand{\newromansymbol}[3][]{\nomenclature[R]{##2}{\nomdescr{##3}\nomunit{##1}}}
\newcommand{\newgreeksymbol}[3][]{\nomenclature[G]{##2}{\nomdescr{##3}\nomunit{##1}}}
\newcommand{\newsuperscript}[2]{\nomenclature[S]{##1}{##2}}
\newcommand{\newsubscript}[2]{\nomenclature[U]{##1}{##2}}
\newcommand{\newother}[2]{\nomenclature[X]{##1}{##2}}
\renewcommand{\nomname}{\listofacronymsandsymbolsname}
\makenomenclature
}
\newcommand{\imprimirlistadesiglasesimbolos}{%
\pdfbookmark[0]{\listofacronymsandsymbolsname}{las}
\printnomenclature\cleardoublepage
}
}
}
%-DEFAULTS DA BU-UFSC
\setUFSCtemplate{%
uppercased chapters,
uppercased sections,
titles font size=\normalsize,
part font=\normalfont\bfseries,
chapter font=\normalfont\bfseries,
section font=\normalfont,
subsection font=\normalfont\bfseries,
subsubsection font=\normalfont,
subsubsubsection font=\normalfont\itshape,
}
%-MODIFICA ALGUMAS DEFINIÇÕES DOS FLOATS (ferramentas do memoir)
\newsubfloat{figure} %define os comandos de subfiguras
\newcommand{\subfigureautorefname}{\figureautorefname} %define o nome Figura para as subfiguras do comando autoref
\let\oldsubcaptionref\subcaptionref
\def\thesubfigure{\alph{subfigure}} %retira os parenteses do \ref (ao inves de '1(a)' fica '1a')
\def\@thesubfigure{(\alph{subfigure})%
\if@tightsubcap\hskip\subfloatlabelskip\else\space\fi
}
\renewcommand{\subcaptionref}[1]{(\oldsubcaptionref{#1})}
\newcommand*{\ABNTEXlegendfontsize}{\small}
\renewcommand{\legend}[1]{% %deixa o tamanho da fonte da legenda pequeno
\M@gettitle{#1}%
\memlegendinfo{#1}%
\par
\begingroup
\@parboxrestore
\if@minipage
\@setminipage
\fi
\normalsize
\captiondelim{\mbox{}}
\@makecaption{}{\ignorespaces\ABNTEXlegendfontsize #1}\par
\endgroup
}
%-EXTRAS
%% Auxílio para fazer sub e sobre-escrito em fonte não matemática (upright) -> Ao invés de escrever X_{\text{sub}} escrever: X_[sub]
\RequirePackage{mathtools}
\def\easyupright@UFSC#1#2{%
\def\sb@text#1##1#2{\sb{\textnormal{##1}}}
\def\sp@text#1##1#2{\sp{\textnormal{##1}}}
\begingroup\lccode`\~=`\_\lowercase{\endgroup
\def~}{\@ifnextchar#1\sb@text\sb}
\begingroup\lccode`\~=`\^\lowercase{\endgroup
\def~}{\@ifnextchar#1\sp@text\sp}}
\setUFSCtemplate{%
make upright easy/.code 2 args={%
\easyupright@UFSC{#1}{#2}
\AtBeginDocument{\catcode`\_=12 \mathcode`\_="8000 \catcode`\^=12 \mathcode`\^="8000}%
}
,easy upright indices/.style args={with #1#2}{make upright easy={#1}{#2}}
,easy upright indices/.default={with []}
}
\endinput