summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fei
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-05-28 20:50:48 +0000
committerKarl Berry <karl@freefriends.org>2021-05-28 20:50:48 +0000
commitdf2ada0a8a0fa12f8ef00506ad04461a11cc8c90 (patch)
tree6d3f659a8df35f4f889aba879dc30c3b056f0e6b /Master/texmf-dist/tex/latex/fei
parent14c8bf3765d4df8bc470dcd8502f0a747c9abf42 (diff)
fei (28may21)
git-svn-id: svn://tug.org/texlive/trunk@59380 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fei')
-rw-r--r--Master/texmf-dist/tex/latex/fei/fei.cls561
1 files changed, 339 insertions, 222 deletions
diff --git a/Master/texmf-dist/tex/latex/fei/fei.cls b/Master/texmf-dist/tex/latex/fei/fei.cls
index bd562b23e20..c94603e72ed 100644
--- a/Master/texmf-dist/tex/latex/fei/fei.cls
+++ b/Master/texmf-dist/tex/latex/fei/fei.cls
@@ -14,28 +14,35 @@
%% See http://www.latex-project.org/lppl.txt
%% -----------------------------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{fei}[2020/07/26 4.10.1 Modelo da FEI]
+\ProvidesClass{fei}[2021/05/26 4.10.2 Modelo da FEI]
+
+\RequirePackage{kvoptions}
+\DeclareStringOption[times]{font}
\DeclareOption{draft}{
-\PassOptionsToClass{\CurrentOption}{memoir}
+ \PassOptionsToClass{\CurrentOption}{memoir}
}
\DeclareOption{final}{
-\PassOptionsToClass{\CurrentOption}{memoir}
+ \PassOptionsToClass{\CurrentOption}{memoir}
}
\newif\ifglossaries
\glossariesfalse
\DeclareOption{symbols}{
-\glossariestrue
-\PassOptionsToPackage{\CurrentOption}{glossaries-extra}
+ \glossariestrue
+ \PassOptionsToPackage{\CurrentOption}{glossaries-extra}
}
\DeclareOption{acronym}{
-\glossariestrue
-\PassOptionsToPackage{\CurrentOption}{glossaries-extra}
+ \glossariestrue
+ \PassOptionsToPackage{\CurrentOption}{glossaries-extra}
}
\DeclareOption{record}{
-\glossariestrue
-\PassOptionsToPackage{\CurrentOption}{glossaries-extra}
+ \glossariestrue
+ \PassOptionsToPackage{\CurrentOption}{glossaries-extra}
+}
+\DeclareOption{abbr-shortcuts}{
+ \glossariestrue
+ \PassOptionsToPackage{shortcuts=abbr}{glossaries-extra}
}
\newif\ifsublist
\sublistfalse
@@ -44,10 +51,6 @@
\depositofalse
\DeclareOption{deposito}{\depositotrue}
-\newif\ifarial
-\DeclareOption{arial}{\arialtrue}
-\DeclareOption{times}{\arialfalse}
-
\newif\ifnumeric
\numericfalse
\DeclareOption{numeric}{\numerictrue}
@@ -57,7 +60,7 @@
\DeclareOption{twoside}{\onesidefalse}
\DeclareOption{backrefs}{%
-\PassOptionsToPackage{backref}{biblatex}%
+ \PassOptionsToPackage{backref}{biblatex}%
}
\DeclareOption{algo-as-figure}{\PassOptionsToPackage{figure}{algorithm2e}}%
@@ -70,18 +73,59 @@
\PassOptionsToClass{a4paper,12pt}{memoir}
-\ExecuteOptions{oneside,times}
+\ExecuteOptions{oneside}
+
+\ProcessOptions\relax
+\ProcessKeyvalOptions*
-\ProcessOptions\relax % processa todas as op^^c3^^a7^^c3^^b5es
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\@namedef{fei@font@times}{%
+ \RequirePackage{newtxtext}%
+}
+\@namedef{fei@font@arial}{%
+ \RequirePackage[scaled]{uarial}%
+ \renewcommand*\familydefault{\sfdefault}%
+}
+
+\@namedef{fei@font@arimo}{%
+ \RequirePackage[sfdefault]{arimo}
+}
+
+\newcommand*{\fei@evaluate}[1]{%
+ % Check, if option value in \<prefix>@<option> exists
+ \@ifundefined{fei@#1}{%
+ % Should not happen
+ \PackageError{fei}{Evaluating unknown option `#1'}\@ehc
+ }{%
+ % Check, if there is an implementation for the value of the option
+ % in macro \<prefix>@<option>@<value>
+ \@ifundefined{fei@#1@\csname fei@#1\endcsname}{%
+ \PackageError{fei}{%
+ Unknown option setting: #1=%
+ \csname fei@#1\endcsname
+ }\@ehc
+ }{%
+ % Call the implementation for the value
+ \csname fei@#1@%
+ \csname fei@#1\endcsname
+ \endcsname
+ \relax
+ }%
+ }%
+}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\fei@evaluate{font}
\ifoneside
-\LoadClass[oneside]{memoir}
+ \LoadClass[oneside]{memoir}
\else
-\LoadClass{memoir}
+ \LoadClass{memoir}
\fi
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
+\RequirePackage{microtype}
\RequirePackage[english,brazil]{babel}
\RequirePackage{csquotes}
@@ -122,13 +166,6 @@
\RequirePackage{lmodern} % Latin Modern, fontes tipogr^^c3^^a1ficas mais recentes que as do Knuth (Computer Modern)
\RequirePackage{icomma} % v^^c3^^adrgula como separador decimal
-\ifarial
-\usepackage[scaled]{uarial}
-\renewcommand*\familydefault{\sfdefault} %% Only if the base font of the document is to be sans serif
-\else
-\RequirePackage{times} % usar fonte times no texto todo
-\fi
-
\RequirePackage{graphicx} % figuras
\RequirePackage{morewrites} % permite ao LaTeX escrever em mais de 16 arquivos auxiliares simultaneamente
@@ -158,21 +195,22 @@
\let\oldlistofalgorithms\listofalgorithms
\renewcommand{\listofalgorithms}{{%
-\setlength{\cftfigurenumwidth}{6.2em} % espa^^c3^^a7o onde a palavra "Algoritmo" ^^c3^^a9 escrita
-\renewcommand{\cftfigurepresnum}{Algoritmo } % escrita que precede cada entrada na lista
-\renewcommand{\cftfigureaftersnum}{\hfill--\hfill} % tra^^c3^^a7o na frente da escrita que precede as entradas na lista
-\part*{\listalgorithmcfname}\pagestyle{empty}\@starttoc{loa}\cleardoublepage % titulo com formato padr^^c3^^a3o de todas as listas
-}}
+ \setlength{\cftfigurenumwidth}{6.2em} % espa^^c3^^a7o onde a palavra "Algoritmo" ^^c3^^a9 escrita
+ \renewcommand{\cftfigurepresnum}{Algoritmo } % escrita que precede cada entrada na lista
+ \renewcommand{\cftfigureaftersnum}{\hfill--\hfill} % tra^^c3^^a7o na frente da escrita que precede as entradas na lista
+ \part*{\listalgorithmcfname}\pagestyle{empty}\@starttoc{loa}\cleardoublepage % titulo com formato padr^^c3^^a3o de todas as listas
+ }}
\RequirePackage{amsthm,thmtools}
\renewcommand{\listtheoremname}{Lista de Teoremas} % traduz nome da lista de teoremas
\declaretheoremstyle[
-spaceabove=6pt, spacebelow=6pt,
-headfont=\normalfont\bfseries,
-notefont=\normalfont\bfseries, notebraces={-- }{},
-bodyfont=\normalfont,
-postheadspace=1em
+ spaceabove=6pt, spacebelow=6pt,
+ headfont=\normalfont\bfseries,
+ notefont=\normalfont\bfseries, notebraces={-- }{},
+ bodyfont=\normalfont,
+ postheadspace=1em
+ % qed=\qedsymbol
]{feistyle}
\declaretheorem[style=feistyle,name=Axioma]{axioma}
@@ -297,23 +335,96 @@ postheadspace=1em
\renewcommand{\floatpagefraction}{.8} % p^^c3^^a1gina ter^^c3^^a1 apenas floats se o float ocupar pelo menos 80% da p^^c3^^a1gina
\renewcommand{\part}{%
-\@startsection{part}{-1}{0pt}{\baselineskip}{\baselineskip}{\cleardoublepage\fontsize{12pt}{14.4pt}\centering\bfseries\MakeUppercase}}
+ \@startsection{part}{-1}{0pt}{\baselineskip}{\baselineskip}{\cleardoublepage\fontsize{12pt}{14.4pt}\centering\bfseries\MakeUppercase}}
+
+\makechapterstyle{feichapter}{
+ \renewcommand*{\afterchapternum}{\quad}
+ \renewcommand*{\afterchaptertitle}{\par\nobreak\vskip \afterchapskip}
+ \renewcommand*{\chapnamefont}{\chapnumfont}
+ \renewcommand*{\chapnumfont}{\normalfont\bfseries}
+ \renewcommand*{\chapterheadstart}{\pagestyle{plain}}
+ \renewcommand*{\chapternamenum}{}
+ \renewcommand*{\chaptitlefont}{\chapnumfont}
+ \renewcommand*{\printchaptername}{}
+ \renewcommand*{\printchapternonum}{}
+ \renewcommand*{\printchapternum}{\chapnumfont \thechapter\space}
+ \renewcommand{\printchaptertitle}[1]{\chaptitlefont\MakeUppercase{##1}}
+ \setlength{\afterchapskip}{\baselineskip}
+ \setlength{\beforechapskip}{0pt}
+ \setlength{\midchapskip}{0pt}
+}
+
+\chapterstyle{feichapter}
+
+\makechapterstyle{feiappendix}{%
+ % en-dash ap^^c3^^b3s n^^c3^^bamero
+ \renewcommand*{\afterchapternum}{ -- }
+ % centraliza texto verticalmente e limpa o resto da p^^c3^^a1gina
+ \renewcommand*{\afterchaptertitle}{\hbox{}\vfill\clearpage}
+ % "Ap^^c3^^aandice [n^^c3^^bamero]" em negrito
+ \renewcommand*{\chapnamefont}{\normalfont\bfseries}
+ \renewcommand*{\chapnumfont}{\chapnamefont}
+ % inicia a p^^c3^^a1gina vazia e adiciona espa^^c3^^a7o vertical para centralizar o texto
+ \renewcommand*{\chapterheadstart}{\thispagestyle{empty}\hbox{}\vfill}
+ % Fonte normal, texto centralizado horizontalmente
+ \renewcommand*{\chaptitlefont}{\normalfont\centering}
+ % a palavra "Ap^^c3^^aandice" na p^^c3^^a1gina de t^^c3^^adtulo, em ma^^c3^^adsculas
+ \renewcommand*{\printchaptername}{\chapnamefont\MakeUppercase{\@chapapp}}
+ % O t^^c3^^adtulo em si, que o usu^^c3^^a1rio digita
+ \renewcommand{\printchaptertitle}[1]{\chaptitlefont\MakeUppercase{##1}}
+ % some com tudo isso, j^^c3^^a1 que o espa^^c3^^a7amento ^^c3^^a9 feito com centering e vfill
+ \setlength{\afterchapskip}{0pt}
+ \setlength{\beforechapskip}{0pt}
+ \setlength{\midchapskip}{0pt}
+}
-\renewcommand{\chapter}{\cleardoublepage\pagestyle{plain}%
-\@startsection{chapter}{0}{0pt}{\baselineskip}{\baselineskip}{\fontsize{12pt}{14.4pt}\bfseries}}
+\appto\appendix{%
+ % use o estilo criado acima para a p^^c3^^a1gina de abertura de um ap^^c3^^aandice
+ \chapterstyle{feiappendix}%
+ % n^^c3^^a3o numera nada abaixo de chapter nos ap^^c3^^aandices
+ \setsecnumdepth{chapter}%
+ % hack do egreg para mudar o que ^^c3^^a9 escrito antes do t^^c3^^adtulo do ap^^c3^^aandice no sum^^c3^^a1rio
+ % https://tex.stackexchange.com/a/34285/30998
+ \addtocontents{toc}{\protect\reformchapapp}%
+}
-\renewcommand{\section}{%
-\@startsection{section}{1}{0pt}{\baselineskip}{\baselineskip}{\fontsize{12pt}{14.4pt}}}
+\newcommand{\reformchapapp}{%
+ % n^^c3^^a3o adiciona nada abaixo de chapter no sum^^c3^^a1rio, depois que come^^c3^^a7am os ap^^c3^^aandices
+ \setcounter{tocdepth}{0}%
+ % esse ^^c3^^a9 o comando que insere o n^^c3^^bamero do cap^^c3^^adtulo no sum^^c3^^a1rio, antes do nome do ap^^c3^^aandice
+ % eu coloco um espa^^c3^^a7o em branco e escrevo AP^^c3^^8aNDICE [N^^c3^^9aMERO] -- "
+ % [N^^c3^^9aMERO] ^^c3^^a9 formatado em alfab^^c3^^a9tico automaticamente pelo memoir, na defini^^c3^^a7^^c3^^a3o deles de \appendix
+ \renewcommand{\chapternumberline}[1]{\hspace{\cftchapternumwidth}\MakeUppercase{\appendixname}\ ##1 -- }%
+}
-\renewcommand{\subsection}{%
-\@startsection{subsection}{2}{0pt}{\baselineskip}{\baselineskip}{\fontsize{12pt}{14.4pt}\bfseries}}
+\newcommand{\anexos}{%
+ \chapterstyle{feiappendix}
+ \renewcommand{\cftchaptername}{Anexo\space}
+ \renewcommand{\chaptername}{Anexo}%
+ \addtocontents{toc}{\protect\setcounter{tocdepth}{0}}
+ \setcounter{chapter}{0}
+ \renewcommand{\thechapter}{\Alph{chapter}}%
+ \renewcommand{\chapter}[1]{%
+ \stepcounter{chapter}%
+ \cleardoublepage\phantomsection\thispagestyle{empty}\mbox{}\vfill\begin{center}\MakeUppercase{\textbf{ANEXO \thechapter\ --} ##1}\end{center}\vfill%
+ \phantomsection%
+ \addcontentsline{toc}{chapter}{\hspace{\cftchapternumwidth}ANEXO \Alph{chapter} -- ##1}%
+ \newpage%
+ }%
+}%
-\renewcommand{\subsubsection}{%
-\@startsection{subsubsection}{3}{0pt}{\baselineskip}{\baselineskip}{\fontsize{12pt}{14.4pt}\bfseries\itshape}}
+\setsecheadstyle{\normalfont\MakeUppercase}
+\setsubsecheadstyle{\normalfont\bfseries}
+\setsubsubsecheadstyle{\normalfont\bfseries\itshape}
+\setparaheadstyle{\normalfont\itshape}
-\renewcommand{\paragraph}{%
-\@startsection{paragraph}{4}{0pt}{\baselineskip}{\baselineskip}{\fontsize{12pt}{14.4pt}\itshape}}
+\setaftersecskip{\baselineskip}
+\setaftersubsecskip{\baselineskip}
+\setaftersubsubsecskip{\baselineskip}
+\setafterparaskip{\baselineskip}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setcounter{secnumdepth}{4} % numerar divis^^c3^^b5es at^^c3^^a9 o quarto n^^c3^^advel (paragraph)
\setcounter{tocdepth}{4} % incluir divis^^c3^^b5es no sum^^c3^^a1rio at^^c3^^a9 o quarto n^^c3^^advel (paragraph)
@@ -323,15 +434,25 @@ postheadspace=1em
\renewcommand{\cftsubsubsectionindent}{0pt}
\renewcommand{\cftparagraphindent}{0pt}
-\renewcommand{\cftchapternumwidth}{4em}
-\renewcommand{\cftsectionnumwidth}{4em}
-\renewcommand{\cftsubsectionnumwidth}{4em}
-\renewcommand{\cftsubsubsectionnumwidth}{4em}
-\renewcommand{\cftparagraphnumwidth}{4em}
+\newlength{\tocnumwidth}
+\setlength{\tocnumwidth}{4em}
+\renewcommand{\cftchapternumwidth}{\tocnumwidth}
+\renewcommand{\cftsectionnumwidth}{\tocnumwidth}
+\renewcommand{\cftsubsectionnumwidth}{\tocnumwidth}
+\renewcommand{\cftsubsubsectionnumwidth}{\tocnumwidth}
+\renewcommand{\cftparagraphnumwidth}{\tocnumwidth}
\renewcommand{\cftbeforechapterskip}{0pt} % remove recuo antes de entradas de cap^^c3^^adtulos no sum^^c3^^a1rio
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\settocpreprocessor{chapter}{%
+ \let\tempf@rtoc\f@rtoc%
+ \def\f@rtoc{%
+ \texorpdfstring{\MakeTextUppercase{\tempf@rtoc}}{\tempf@rtoc}}%
+}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\cftchapterfont}{\bfseries} % coloca o titulo de cap^^c3^^adtulos em negrito
\renewcommand{\cftsubsectionfont}{\bfseries} % coloca o titulo das secoes em negrito
@@ -356,69 +477,72 @@ postheadspace=1em
\renewcommand{\listoftables}{\part*{\listtablename}\pagestyle{empty}\@starttoc{lot}\cleardoublepage}
\renewcommand{\listoffigures}{\part*{\listfigurename}\pagestyle{empty}\@starttoc{lof}\cleardoublepage}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
\renewcommand{\listoftheorems}{\begingroup%
-\let\oldnumberline\numberline%
-\renewcommand{\numberline}{Teorema~\oldnumberline}%
-\part*{\listtheoremname}\thispagestyle{empty}\@starttoc{loe}\cleardoublepage\endgroup}
+ \let\oldnumberline\numberline%
+ \renewcommand{\numberline}{Teorema~\oldnumberline}%
+ \part*{\listtheoremname}\thispagestyle{empty}\@starttoc{loe}\cleardoublepage\endgroup}
\def\and{\\} % modifica fun^^c3^^a7^^c3^^a3o do comando \and para ele ser usado na declara^^c3^^a7^^c3^^a3o de m^^c3^^baltiplos autores
\renewcommand{\maketitle}{%
-\pagestyle{empty}%
-\begin{center}%
-\MakeUppercase{\@instituicao}\\[0.5em]%
-\uppercase\expandafter{\@author}%
-\vfill%
-\textbf{\MakeUppercase{\@title}}\ifthenelse{\isundefined{\@subtitulo}}{}{: \@subtitulo}%
-\vfill%
-\@cidade\\[0.5em]%
-\number\year%
-\end{center}%
-\cleardoublepage
+ \pagestyle{empty}%
+ \begin{center}%
+ \MakeUppercase{\@instituicao}\\[0.5em]%
+ \uppercase\expandafter{\@author}%
+ \vfill%
+ \textbf{\MakeUppercase{\@title}}\ifthenelse{\isundefined{\@subtitulo}}{}{: \@subtitulo}%
+ \vfill%
+ \@cidade\\[0.5em]%
+ \number\year%
+ \end{center}%
+ \cleardoublepage
}
\newenvironment{folhaderosto}{
-\setcounter{page}{1}
-\thispagestyle{empty}
-\begin{center}
-\uppercase\expandafter{\@author}\\
-\vspace*{0.45\textheight}
-\textbf{\MakeUppercase{\@title}}\ifthenelse{\isundefined{\@subtitulo}}{}{: \@subtitulo}
-\vfill
-\begin{flushright}
-\begin{minipage}{\textwidth - 8cm}
-\normalsize
-\begin{SingleSpace}
-}{\end{SingleSpace}\end{minipage}{}
-\end{flushright}
-\vfill
-\@cidade\\[0.5em]
-\number\year
-\end{center}%
-\clearpage
+ \setcounter{page}{1}
+ \thispagestyle{empty}
+ \begin{center}
+ \uppercase\expandafter{\@author}\\
+ \vspace*{0.45\textheight}
+ \textbf{\MakeUppercase{\@title}}\ifthenelse{\isundefined{\@subtitulo}}{}{: \@subtitulo}
+ \vfill
+ \begin{flushright}
+ \begin{minipage}{\textwidth - 8cm}
+ \normalsize
+ \begin{SingleSpace}
+ }{\end{SingleSpace}\end{minipage}{}
+ \end{flushright}
+ \vfill
+ \@cidade\\[0.5em]
+ \number\year
+ \end{center}%
+ \clearpage
}
\RequirePackage{pdfpages}
\RequirePackage{ifthen}
\newcommand{\folhadeaprovacao}{
-\ifdeposito
-\includepdf{ata.pdf}\cleardoublepage
-\else
-\thispagestyle{empty}\mbox{}\vfill\begin{center}\begin{Huge}Folha de aprova\c{c}\~{a}o\end{Huge}\vfill\end{center}\cleardoublepage
-\fi
+ \ifdeposito
+ \includepdf{ata.pdf}\cleardoublepage
+ \else
+ \thispagestyle{empty}\mbox{}\vfill\begin{center}\begin{Huge}Folha de aprova\c{c}\~{a}o\end{Huge}\vfill\end{center}\cleardoublepage
+ \fi
}
\newcommand{\fichacatalografica}{
-\if@twoside
-\else
-\addtocounter{page}{-1}
-\fi
-\ifdeposito
-\includepdf{ficha.pdf}\cleardoublepage
-\else
-\thispagestyle{empty}\mbox{}\vfill\begin{center}\begin{Huge}Ficha catalogr\'{a}fica\end{Huge}\vfill\end{center}\cleardoublepage
-\fi
+ \if@twoside
+ \else
+ % se n^^c3^^a3o for frente e verso, a ficha catalogr^^c3^^a1fica n^^c3^^a3o ^^c3^^a9 contada no verso da folha de rosto
+ \addtocounter{page}{-1}
+ \fi
+ \ifdeposito
+ \includepdf{ficha.pdf}\cleardoublepage
+ \else
+ \thispagestyle{empty}\mbox{}\vfill\begin{center}\begin{Huge}Ficha catalogr\'{a}fica\end{Huge}\vfill\end{center}\cleardoublepage
+ \fi
}
\newcommand{\subtitulo}[1]{\def\@subtitulo{#1}}
@@ -437,192 +561,185 @@ postheadspace=1em
\newcommand{\curso}[1]{\def\@curso{#1}}
\newcommand{\dedicatoria}[1]{
-\cleardoublepage
-\thispagestyle{empty}
-\vspace*{\fill}
-\begin{flushright}
-\begin{minipage}[t][0.5\textheight][c]{0.5\textwidth}
-#1
-\end{minipage}
-\end{flushright}
+ \cleardoublepage
+ \thispagestyle{empty}
+ \vspace*{\fill}
+ \begin{flushright}
+ \begin{minipage}[t][0.5\textheight][c]{0.5\textwidth}
+ #1
+ \end{minipage}
+ \end{flushright}
}
-\newenvironment{epigrafe}{\cleardoublepage\pagestyle{empty}\vspace*{\fill}}{\pagestyle{plain}}
+\newenvironment{epigrafe}{\cleardoublepage\thispagestyle{empty}\vspace*{\fill}}{}
\newcommand{\epig}[2]{
-\vspace{2\baselineskip}
-\begin{flushright}
-\begin{minipage}[t]{0.5\textwidth}
-``{#1}''
-\begin{flushright}
-#2
-\end{flushright}
-\end{minipage}
-\end{flushright}
+ \vspace{2\baselineskip}
+ \begin{flushright}
+ \begin{minipage}[t]{0.5\textwidth}
+ ``{#1}''
+ \begin{flushright}
+ #2
+ \end{flushright}
+ \end{minipage}
+ \end{flushright}
}
-\newenvironment{resumo}{\part*{Resumo}\pagestyle{empty}}{\cleardoublepage\pagestyle{plain}\setlength{\parindent}{1.25cm}}
+\newenvironment{resumo}{\part*{Resumo}\pagestyle{empty}}{\cleardoublepage\setlength{\parindent}{1.25cm}}
-\renewenvironment{abstract}{\selectlanguage{english}\part*{Abstract}\pagestyle{empty}\setlength{\parindent}{1.25cm}}{\cleardoublepage\pagestyle{plain}\selectlanguage{brazil}}
+\renewenvironment{abstract}{\selectlanguage{english}\part*{Abstract}\pagestyle{empty}\setlength{\parindent}{1.25cm}}{\cleardoublepage\selectlanguage{brazil}}
-\newenvironment{agradecimentos}{\part*{Agradecimentos}\pagestyle{empty}}{\cleardoublepage\pagestyle{plain}}
+\newenvironment{agradecimentos}{\part*{Agradecimentos}\pagestyle{empty}}{\cleardoublepage}
\RequirePackage[xindy]{imakeidx}
\indexsetup{level=\part*}
\addto\captionsbrazil{%
-\renewcommand{\indexname}{\'Indice}%
+ \renewcommand{\indexname}{\'Indice}%
}
\let\oldprintindex\printindex
\renewcommand{\printindex}{\clearpage\phantomsection\addcontentsline{toc}{chapter}{\hspace{\cftchapternumwidth}\'INDICE}%
-\renewcommand{\chapter}{%
-\@startsection{chapter}{0}{0pt}{0pt}{1.5cm}{\clearpage\fontsize{12pt}{14.4pt}\bfseries\MakeUppercase}}%
-\oldprintindex%
+ \renewcommand{\chapter}{%
+ \@startsection{chapter}{0}{0pt}{0pt}{1.5cm}{\clearpage\fontsize{12pt}{14.4pt}\bfseries\MakeUppercase}}%
+ \oldprintindex%
}%
\ifpdfa
-\RequirePackage[a-1b]{pdfx}
+ \RequirePackage[a-1b]{pdfx}
\else
-\RequirePackage{hyperref}
+ \RequirePackage{hyperref}
\fi
\hypersetup{%
-pdftex,%
-pdfborder={0 0 0},%
-colorlinks={false}%
+ pdftex,%
+ pdfborder={0 0 0},%
+ colorlinks={false},%
+ % cria "bookmarks" no PDF at^^c3^^a9 o 4^^c2^^b0 n^^c3^^advel,
+ % independente do valor de tocdepth, que eu mudo em alguns lugares
+ bookmarksdepth=4%
}
\ifglossaries
-\ifsublist
-\RequirePackage[xindy,nomain,nonumberlist,section=part]{glossaries-extra}
-\setglossarystyle{alttree}
-\glssetwidest[0]{}
-\glssetwidest[1]{aaaaaaaaaaaa}
-
-\renewcommand*{\glossarypreamble}{\thispagestyle{empty}\pagestyle{empty}\vspace*{-2\baselineskip}}
-
-\else
-\RequirePackage[xindy,nomain,nonumberlist,section=part,nogroupskip]{glossaries-extra}
-
-\newglossarystyle{mylong}{%
-\setglossarystyle{long}% base this style on the long style
-\renewenvironment{theglossary}{%
-\begin{longtable*}{lp{\glsdescwidth}}}%
-{\end{longtable*}}%
-}%
-
-\setglossarystyle{mylong}
-\setlength\LTleft{0pt}
-\setlength\LTright{0pt}
-\setlength\glsdescwidth{\linewidth}
-
-\renewcommand*{\glossarypreamble}{\thispagestyle{empty}\pagestyle{empty}}
-\fi
-\addto\captionsbrazil{%
-\renewcommand*{\acronymname}{Lista de Abreviaturas}%
-\renewcommand*{\glssymbolsgroupname}{Lista de S\'imbolos}}
-
-\renewcommand*{\glsclearpage}{\pagestyle{empty}}
-\renewcommand*{\glossarypostamble}{\pagestyle{empty}\cleardoublepage}
-\setabbreviationstyle[acronym]{long-short-user}
-\glstocfalse
-
-\renewcommand{\glsxtrpostdescacronym}{%
-\ifglshasfield{\glsxtruserfield}{\glscurrententrylabel}%
-{ (\glscurrentfieldvalue)}%
-{}%
-}
+ \ifsublist
+ \RequirePackage[xindy,nomain,nonumberlist,section=part]{glossaries-extra}
+ % estilo usado como base
+ \setglossarystyle{alttree}
+ % Configuracao de identacao do nivel 0 (titulos)
+ \glssetwidest[0]{}
+ % Configuracao de identacao do nivel 1 (a lista de simbolos em si)
+ \glssetwidest[1]{aaaaaaaaaaaa}
+
+ % remove n^^c3^^bamero de p^^c3^^a1gina das listas de s^^c3^^admbolos e abreviaturas (executado na primeira p^^c3^^a1gina)
+ \renewcommand*{\glossarypreamble}{\thispagestyle{empty}\pagestyle{empty}\vspace*{-2\baselineskip}}
+
+ \else
+ \RequirePackage[xindy,nomain,nonumberlist,section=part,nogroupskip]{glossaries-extra}
+
+ \newglossarystyle{mylong}{%
+ \setglossarystyle{long}% base this style on the long style
+ \renewenvironment{theglossary}{%
+ \begin{longtable*}{lp{\glsdescwidth}}}%
+ {\end{longtable*}}%
+ }%
+
+ \setglossarystyle{mylong}
+ \setlength\LTleft{0pt}
+ \setlength\LTright{0pt}
+ \setlength\glsdescwidth{\linewidth}
+
+ % remove n^^c3^^bamero de p^^c3^^a1gina das listas de s^^c3^^admbolos e abreviaturas (executado na primeira p^^c3^^a1gina)
+ \renewcommand*{\glossarypreamble}{\thispagestyle{empty}\pagestyle{empty}}
+ \fi
+ % traduz alguns comandos pr^^c3^^b3prios do glossaries
+ \addto\captionsbrazil{%
+ \renewcommand*{\acronymname}{Lista de Abreviaturas}%
+ \renewcommand*{\glssymbolsgroupname}{Lista de S\'imbolos}%
+ }
+
+ % redefine comandos do glossaries
+ % remove n^^c3^^bamero de p^^c3^^a1gina das listas de s^^c3^^admbolos e abreviaturas (executado nas demais p^^c3^^a1ginas)
+ \renewcommand*{\glsclearpage}{\pagestyle{empty}}
+ % remove n^^c3^^bamero de p^^c3^^a1gina das listas de s^^c3^^admbolos e abreviaturas (executado na ^^c3^^baltima p^^c3^^a1gina)
+ \renewcommand*{\glossarypostamble}{\pagestyle{empty}\cleardoublepage}
+ % estilo das abreviaturas que permite imprimir a tradu^^c3^^a7^^c3^^a3o de uma abreviatura em idioma estrangeiro
+ \setabbreviationstyle[acronym]{long-short-user}
+ % listas de simbolos e abreviaturas nao aparecem no sumario
+ \glstocfalse
+
+ % \glscurrentfieldvalue only works with glossaries v4.23 (and above)
+ \renewcommand{\glsxtrpostdescacronym}{%
+ \ifglshasfield{\glsxtruserfield}{\glscurrententrylabel}%
+ { (\glscurrentfieldvalue)}%
+ {}%
+ }
\fi
\addto\captionsbrazil{%
-\renewcommand*{\listfigurename}{Lista de Ilustra\c{c}\~oes}%
-\renewcommand*{\contentsname}{Sum\'ario}}%
+ \renewcommand*{\listfigurename}{Lista de Ilustra\c{c}\~oes}%
+ \renewcommand*{\contentsname}{Sum\'ario}}%
\newcommand{\palavraschave}[1]{\mbox{}\\\noindent Palavras-chave: #1}% o resumo pede palavras chave no final
\newcommand{\keywords}[1]{\mbox{}\\\noindent Keywords: #1}% mesma coisa, mas pro abstract
-\renewcommand{\appendix}{%
-\renewcommand{\chaptername}{\appendixname}%
-\setcounter{chapter}{0}% zera o contador do cap^^c3^^adtulo
-\renewcommand{\thechapter}{\Alph{chapter}}% deixa o contador do cap^^c3^^adtulo em alfab^^c3^^a9tico
-\renewcommand{\chapter}[1]{% redefine o comando do cap^^c3^^adtulo
-\stepcounter{chapter}% soma 1 ao contador do cap^^c3^^adtulo
-\cleardoublepage\phantomsection\thispagestyle{empty}\mbox{}\vfill\begin{center}\MakeUppercase{\textbf{AP\^ENDICE \thechapter\ --} ##1}\end{center}\vfill% adiciona uma folha com a letra e t^^c3^^adtulo do ap^^c3^^aandice
-\addcontentsline{toc}{chapter}{\hspace{\cftchapternumwidth}AP\^ENDICE \Alph{chapter} -- ##1}%
-\newpage%
-}%
-}%
-
-\newcommand{\anexos}{%
-\renewcommand{\chaptername}{Anexo}%
-\setcounter{chapter}{0}%
-\renewcommand{\thechapter}{\Alph{chapter}}%
-\renewcommand{\chapter}[1]{%
-\stepcounter{chapter}%
-\cleardoublepage\phantomsection\thispagestyle{empty}\mbox{}\vfill\begin{center}\MakeUppercase{\textbf{ANEXO \thechapter\ --} ##1}\end{center}\vfill%
-\phantomsection%
-\addcontentsline{toc}{chapter}{\hspace{\cftchapternumwidth}ANEXO \Alph{chapter} -- ##1}%
-\newpage%
-}%
-}%
-
\ifnumeric
-\RequirePackage[backend=biber,
-safeinputenc=true,
-uniquelist=false,
-doi=true,
-repeatfields=true,
-style=abnt-numeric]{biblatex}
+ \RequirePackage[backend=biber,
+ safeinputenc=true,
+ uniquelist=false,
+ doi=true,
+ repeatfields=true,
+ style=abnt-numeric]{biblatex}
\else
-\RequirePackage[backend=biber,
-safeinputenc=true,
-uniquelist=false,
-doi=true,
-repeatfields=true,
-style=abnt]{biblatex}
+ \RequirePackage[backend=biber,
+ safeinputenc=true,
+ uniquelist=false,
+ doi=true,
+ repeatfields=true,
+ style=abnt]{biblatex}
\fi
\setlength{\bibitemsep}{1.0\baselineskip}
\DefineBibliographyStrings{brazil}{%
-bibliography = {REFER\^ENCIAS}
+ bibliography = {REFER\^ENCIAS}
}
+\DeclareFieldFormat{url}{\bibstring{urlfrom}\addcolon\addspace\url{#1}} %
+
\let\oldprintbibliography\printbibliography
\renewcommand{\printbibliography}{%
-\linespread{1}
-\oldprintbibliography
-\linespread{1.5}
+ \linespread{1}
+ \oldprintbibliography
+ \linespread{1.5}
}
\newcommand{\citeonline}[1]{\textcite{#1}}
\defbibheading{bibliography}[\bibname]{%
-\clearpage\phantomsection\addcontentsline{toc}{chapter}{\bfseries\hspace{\cftchapternumwidth}REFER\^ENCIAS}% adiciona o titulo ao sumario
-\part*{REFER\^ENCIAS}
-\urlstyle{same}% URLs nas refer^^c3^^aancias devem ter a mesma fonte do texto
+ \clearpage\phantomsection\addcontentsline{toc}{chapter}{\bfseries\hspace{\cftchapternumwidth}REFER\^ENCIAS}% adiciona o titulo ao sumario
+ \part*{REFER\^ENCIAS}
+ \urlstyle{same}% URLs nas refer^^c3^^aancias devem ter a mesma fonte do texto
}
\newcommand*{\citefloat}[1]{\textcite*{#1}}
\renewenvironment{quote}
{\begin{flushright}
-\begin{minipage}{\textwidth - 4cm}
-\fontsize{10pt}{1em}
-\begin{SingleSpace}
-}{\end{SingleSpace}\end{minipage}{}
-\end{flushright}}
+ \begin{minipage}{\textwidth - 4cm}
+ \fontsize{10pt}{1em}
+ \begin{SingleSpace}
+ }{\end{SingleSpace}\end{minipage}{}
+ \end{flushright}}
\renewenvironment{quotation}
{\begin{center}
-\begin{minipage}{\textwidth - 4cm}
-\fontsize{10pt}{1em}
-\begin{SingleSpace}\setlength{\parindent}{1cm}
-}{\end{SingleSpace}\end{minipage}{}
-\end{center}}
+ \begin{minipage}{\textwidth - 4cm}
+ \fontsize{10pt}{1em}
+ \begin{SingleSpace}\setlength{\parindent}{1cm}
+ }{\end{SingleSpace}\end{minipage}{}
+ \end{center}}
%%
%% Copyright (C) 2020 by Douglas De Rizzo Meneghetti <douglasrizzo@fei.edu.br>
%%