summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/unbtex/unbtex.cls
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/unbtex/unbtex.cls')
-rw-r--r--macros/latex/contrib/unbtex/unbtex.cls40
1 files changed, 21 insertions, 19 deletions
diff --git a/macros/latex/contrib/unbtex/unbtex.cls b/macros/latex/contrib/unbtex/unbtex.cls
index a3fde055dd..1e1a6d4c3a 100644
--- a/macros/latex/contrib/unbtex/unbtex.cls
+++ b/macros/latex/contrib/unbtex/unbtex.cls
@@ -1,7 +1,7 @@
%%
%% UnBTeX: A class for bachelor, master, and doctoral thesis at the
%% University of Brasilia (UnB), Brazil
-%% Version 1.1.3 2022/09/04
+%% Version 1.2 2022/10/05
%% Copyright (C) 2021-2022 by Henrique C. Ferreira <hcferreira@unb.br>
%%
%% This class file may be distributed and/or modified under the conditions
@@ -21,7 +21,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{unbtex}[2022/09/04 v1.1.3 Modelo da Universidade de Brasília baseado em abnTeX2]
+\ProvidesClass{unbtex}[2022/10/05 v1.2 Modelo da Universidade de Brasília baseado em abnTeX2]
% ---
% Repassa todos os parâmetros a classe abntex2,
@@ -51,21 +51,11 @@
\RequirePackage{subcaption} % Permite fazer subfiguras
\RequirePackage{icomma} % Configura casas decimais separadas por vírgula
\RequirePackage{indentfirst} % Indenta o primeiro parágrafo de cada seção.
-\RequirePackage{microtype} % Para melhorias de justificação
+\RequirePackage[nopatch=item]{microtype} % Para melhorias de justificação
\RequirePackage{multirow} % Para combinar linhas nas tabelas
-% ---
-
-% ---
-% Compila lista de siglas de siglas e abreviaturas e lista de símbolos
-% ---
-\RequirePackage[refpage]{nomencl} % Para gerar lista de siglas e abreviações e lista de símbolos
-\newcommand{\makenomencl}{
-\makenomenclature
-\def\pagedeclaration##1{\dotfill\hyperlink{page.##1}{\nobreakspace##1}\par}
- \renewcommand{\nomname}{\listadesiglasname}
-\renewcommand{\nomgroup}[1]{
-\ifthenelse{\equal{##1}{B}}{\chapter*{\hspace*{-\leftmargin}\listadesimbolosname}}{}}
-}
+\RequirePackage[dvipsnames,table]{xcolor} % Para cores da UnB
+\RequirePackage{tikz} % Cria desenhos
+\usetikzlibrary{external,shapes,arrows,positioning}
% ---
% ---
@@ -84,7 +74,6 @@
% Cores verde e azul UnB
% http://www.marca.unb.br/arquivosdigitais/files/guia_pratico/guia_pratico.pdf
% ---
-\RequirePackage[dvipsnames,table]{xcolor}
\definecolor{verdeunb}{cmyk}{1,0,1,0.2}
\definecolor{azulunb}{cmyk}{1,0.65,0,0.35}
@@ -110,6 +99,10 @@
% Controle do espaçamento entre um parágrafo e outro:
\setlength{\parskip}{0.2cm} % tente também \onelineskip
+% Numeração por capítulo das figuras e tabelas
+\renewcommand{\thefigure}{\thechapter.\arabic{figure}}
+\renewcommand{\thetable}{\thechapter.\arabic{table}}
+
% configuração do cabeçalho das páginas
\pagestyle{myheadings} % cabeçalho com linha e numeração da página
%\setlength{\normalrulethickness}{0pt} % retira a linha do cabeçalho
@@ -120,6 +113,12 @@
% Alterando o espaçamento entre linhas do ambiente verbatim
\def\verbatim@font{\linespread{1}\small\ttfamily}
+% Personalização do Sumário
+\settocdepth{subsection}
+\renewcommand{\cftchapterfont}{\normalsize\bfseries\sffamily}
+\setlength{\cftbeforechapterskip}{1.0em}
+\setlength{\cftbeforepartskip}{1.0em}
+
% Corrige falha do abntex2 nos anexos e apêndices
\renewcommand{\PRIVATEapendiceconfig}[2]{%
\setboolean{abntex@apendiceousecao}{true}%
@@ -127,11 +126,12 @@
\ifthenelse{\boolean{ABNTEXsumario-abnt-6027-2012}}{
\renewcommand{\appendixtocname}{\texorpdfstring{\MakeTextUppercase{#2}}{#2}}
}{%
-\renewcommand{\appendixtocname}{#2}}
-\renewcommand{\appendixpagename}{#2}
+\renewcommand{\appendixtocname}{{\normalsize\bfseries\sffamily #2}}}
+\renewcommand{\appendixpagename}{{\Huge\bfseries\sffamily #2}}
\switchchapname{#1}
\renewcommand*{\cftappendixname}{#1 \space}
}
+\renewcommand{\cftpartpagefont}{\normalsize\bfseries}
% ---
% ---
@@ -370,8 +370,10 @@
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
+ \tikzexternalenable
\includegraphics[width=\paperwidth,height=\paperheight,%
keepaspectratio]{capa_fundo.pdf}%
+ \tikzexternaldisable
\vfill
}
}