diff options
author | Karl Berry <karl@freefriends.org> | 2017-09-27 23:01:43 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-09-27 23:01:43 +0000 |
commit | fa7c000e3d3c40d1d60e36bc18739ba316cf919d (patch) | |
tree | b2ad0345fb634e22b321139a5bbbfc68d8206547 /Master/texmf-dist/tex/latex/fei | |
parent | 7b0ea79a18ffb1145ef32bc978d45d41cbd4f6e0 (diff) |
fei (27sep17)
git-svn-id: svn://tug.org/texlive/trunk@45410 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fei')
-rw-r--r-- | Master/texmf-dist/tex/latex/fei/fei.cls | 332 |
1 files changed, 172 insertions, 160 deletions
diff --git a/Master/texmf-dist/tex/latex/fei/fei.cls b/Master/texmf-dist/tex/latex/fei/fei.cls index 4c54b76cf04..de0960a704f 100644 --- a/Master/texmf-dist/tex/latex/fei/fei.cls +++ b/Master/texmf-dist/tex/latex/fei/fei.cls @@ -14,22 +14,22 @@ %% See http://www.latex-project.org/lppl.txt %% ----------------------------------------------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{fei}[2017/07/28 4.0.1 Modelo da FEI] +\ProvidesClass{fei}[2017/09/26 4.1 Modelo da FEI] \DeclareOption{xindy}{ -\PassOptionsToPackage{\CurrentOption}{imakeidx} -\PassOptionsToPackage{\CurrentOption}{glossaries} + \PassOptionsToPackage{\CurrentOption}{imakeidx} + \PassOptionsToPackage{\CurrentOption}{glossaries} } \newif\ifglossaries \glossariesfalse \DeclareOption{symbols}{ -\glossariestrue -\PassOptionsToPackage{\CurrentOption}{glossaries} + \glossariestrue + \PassOptionsToPackage{\CurrentOption}{glossaries} } \DeclareOption{acronym}{ -\glossariestrue -\PassOptionsToPackage{\CurrentOption}{glossaries} + \glossariestrue + \PassOptionsToPackage{\CurrentOption}{glossaries} } \newif\ifsublist \sublistfalse @@ -58,9 +58,9 @@ \ProcessOptions\relax % processa todas as op^^c3^^a7^^c3^^b5es \ifoneside -\LoadClass[oneside]{memoir} + \LoadClass[oneside]{memoir} \else -\LoadClass{memoir} + \LoadClass{memoir} \fi \RequirePackage[utf8]{inputenc} @@ -97,10 +97,10 @@ \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 + \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 + \RequirePackage{times} % usar fonte times no texto todo \fi \RequirePackage{graphicx} % figuras @@ -132,21 +132,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} @@ -180,23 +181,23 @@ 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}{% n^^c3^^a3o usado no texto, s^^c3^^b3 para algumas p^^c3^^a1ginas (resumo, abstract, agradecimentos...) -\@startsection{part}{-1}{0pt}{\baselineskip}{\baselineskip}{\cleardoublepage\fontsize{12pt}{14.4pt}\centering\bfseries\MakeUppercase}} +\renewcommand{\part}{% + \@startsection{part}{-1}{0pt}{\baselineskip}{\baselineskip}{\cleardoublepage\fontsize{12pt}{14.4pt}\centering\bfseries\MakeUppercase}} \renewcommand{\chapter}{\cleardoublepage\pagestyle{plain}% -\@startsection{chapter}{0}{0pt}{\baselineskip}{\baselineskip}{\fontsize{12pt}{14.4pt}\bfseries\MakeUppercase}} + \@startsection{chapter}{0}{0pt}{\baselineskip}{\baselineskip}{\fontsize{12pt}{14.4pt}\bfseries\MakeUppercase}} \renewcommand{\section}{% -\@startsection{section}{1}{0pt}{\baselineskip}{\baselineskip}{\fontsize{12pt}{14.4pt}\MakeUppercase}} + \@startsection{section}{1}{0pt}{\baselineskip}{\baselineskip}{\fontsize{12pt}{14.4pt}\MakeUppercase}} \renewcommand{\subsection}{% -\@startsection{subsection}{2}{0pt}{\baselineskip}{\baselineskip}{\fontsize{12pt}{14.4pt}\bfseries}} + \@startsection{subsection}{2}{0pt}{\baselineskip}{\baselineskip}{\fontsize{12pt}{14.4pt}\bfseries}} \renewcommand{\subsubsection}{% -\@startsection{subsubsection}{3}{0pt}{\baselineskip}{\baselineskip}{\fontsize{12pt}{14.4pt}\bfseries\itshape}} + \@startsection{subsubsection}{3}{0pt}{\baselineskip}{\baselineskip}{\fontsize{12pt}{14.4pt}\bfseries\itshape}} \renewcommand{\paragraph}{% -\@startsection{paragraph}{4}{0pt}{\baselineskip}{\baselineskip}{\fontsize{12pt}{14.4pt}\itshape}} + \@startsection{paragraph}{4}{0pt}{\baselineskip}{\baselineskip}{\fontsize{12pt}{14.4pt}\itshape}} \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) @@ -239,63 +240,65 @@ postheadspace=1em \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}\\[\baselineskip]% -\uppercase\expandafter{\@author}% -\vfill% -\textbf{\MakeUppercase{\@title}}\ifthenelse{\isundefined{\@subtitulo}}{}{: \@subtitulo}% -\vfill% -\@cidade\\% -\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{SingleSpace} -\begin{minipage}{0.55\textwidth}}{\end{minipage}{} -\end{SingleSpace}\end{flushright} -\vfill -\@cidade\\ -\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}{0.55\textwidth}}{\end{minipage}{} + \end{flushright} + \vfill + \@cidade\\[0.5em] + \number\year + \end{center}% + \clearpage +} \RequirePackage{pdfpages} \RequirePackage{ifthen} \newcommand{\folhadeaprovacao}{ -\ifrascunho -\thispagestyle{empty}\mbox{}\vfill\begin{center}\begin{Huge}Folha de aprova\c{c}\~{a}o\end{Huge}\vfill\end{center}\cleardoublepage -\else -\includepdf{ata.pdf}\cleardoublepage -\fi + \ifrascunho + \thispagestyle{empty}\mbox{}\vfill\begin{center}\begin{Huge}Folha de aprova\c{c}\~{a}o\end{Huge}\vfill\end{center}\cleardoublepage + \else + \includepdf{ata.pdf}\cleardoublepage + \fi } \newcommand{\fichacatalografica}{ -\if@twoside -\else -\addtocounter{page}{-1} -\fi -\ifrascunho -\thispagestyle{empty}\mbox{}\vfill\begin{center}\begin{Huge}Ficha catalogr\'{a}fica\end{Huge}\vfill\end{center}\cleardoublepage -\else -\includepdf{ficha.pdf}\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 + \ifrascunho + \thispagestyle{empty}\mbox{}\vfill\begin{center}\begin{Huge}Ficha catalogr\'{a}fica\end{Huge}\vfill\end{center}\cleardoublepage + \else + \includepdf{ficha.pdf}\cleardoublepage + \fi } \newcommand{\subtitulo}[1]{\def\@subtitulo{#1}} @@ -314,27 +317,28 @@ postheadspace=1em \newcommand{\curso}[1]{\def\@curso{#1}} \newcommand{\dedicatoria}[1]{ -\cleardoublepage -\thispagestyle{empty} -\begin{flushleft} -\vspace*{\fill} -\hspace*{0.4\paperwidth\relax} -\begin{minipage}[l]{0.5\textwidth} -#1 -\end{minipage} -\end{flushleft} + \cleardoublepage + \thispagestyle{empty} + \vspace*{\fill} + \begin{flushright} + \begin{minipage}[t][0.5\textheight][c]{0.5\textwidth} + #1 + \end{minipage} + \end{flushright} } \newcommand{\epigrafe}[2]{ -\cleardoublepage -\thispagestyle{empty} -\begin{flushleft} -\vspace*{\fill} -\hspace*{0.4\paperwidth\relax} -\begin{minipage}[l]{0.5\textwidth} -``{#1}''\\#2 -\end{minipage} -\end{flushleft} + \cleardoublepage + \thispagestyle{empty} + \vspace*{\fill} + \begin{flushright} + \begin{minipage}[t][0.5\textheight][c]{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}} @@ -349,111 +353,119 @@ postheadspace=1em \let\oldprintindex\printindex \renewcommand{\makeindex}{\oldmakeindex[title=\noindent\hfill\'INDICE\hfill\mbox{}]} \renewcommand{\printindex}{\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}% \RequirePackage[pdftex,pdfborder={0 0 0},colorlinks={false}]{hyperref} \ifglossaries -\ifsublist -\RequirePackage[nomain,nonumberlist]{glossaries} -\setglossarystyle{alttree} -\glssetwidest[0]{} -\glssetwidest[1]{aaaaaaaaaaaa} - -\renewcommand*{\glossarypreamble}{\thispagestyle{empty}\pagestyle{empty}\vspace*{-2\baselineskip}} - -\else -\RequirePackage[nomain,nonumberlist,nogroupskip]{glossaries} - -\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}{\noindent\hfill Lista de Abreviaturas \hfill \mbox{}}% -\renewcommand*{\glssymbolsgroupname}{\noindent\hfill Lista de S\'imbolos \hfill \mbox{}}} - -\renewcommand*{\glsclearpage}{\pagestyle{empty}} -\renewcommand*{\glossarypostamble}{\pagestyle{empty}\cleardoublepage} + \ifsublist + \RequirePackage[nomain,nonumberlist]{glossaries} + % 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[nomain,nonumberlist,nogroupskip]{glossaries} + + \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}{\noindent\hfill Lista de Abreviaturas \hfill \mbox{}}% + \renewcommand*{\glssymbolsgroupname}{\noindent\hfill Lista de S\'imbolos \hfill \mbox{}}} + + % 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} \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% -}% + \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% -}% + \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% + }% }% -\RequirePackage[backend=biber, safeinputenc=true, uniquelist=false, isbn=false, doi=false, style=abnt]{biblatex} +\RequirePackage[backend=biber, safeinputenc=true, uniquelist=false, isbn=false, doi=false, style=abnt, extrayear]{biblatex} \setlength{\bibitemsep}{1.0\baselineskip} \DefineBibliographyStrings{brazil}{% -bibliography = {REFER\^ENCIAS} + bibliography = {REFER\^ENCIAS} } \newcommand{\citeonline}[1]{\textcite{#1}} -\renewcommand*{\bibfont}{\raggedright} % bibliografia alinhada ^^c3^^a0 esquerda \defbibheading{bibliography}[\bibname]{% -\clearpage\phantomsection\addcontentsline{toc}{chapter}{\bfseries\hspace{\cftchapternumwidth}REFER\^ENCIAS}% adiciona o titulo ao sumario -\noindent\hfill\textbf{REFER\^ENCIAS}\hfill\mbox{}% -\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]{\citeauthor*{#1}, \citeyear*{#1}} \renewenvironment{quote} {\begin{SingleSpace}\list{}{% -\fontsize{10pt}{1em}% -\leftmargin=4cm}% -\item\relax\ignorespaces} -{\endlist\end{SingleSpace}} + \fontsize{10pt}{1em}% + \leftmargin=4cm}% + \item\relax\ignorespaces} + {\endlist\end{SingleSpace}} \renewenvironment{quotation} {\begin{SingleSpace}\list{}{% -\fontsize{10pt}{1em}% -\leftmargin=2cm \rightmargin=2cm% -\listparindent .5cm \itemindent}% -\item\relax} -{\endlist\end{SingleSpace}} + \fontsize{10pt}{1em}% + \leftmargin=2cm \rightmargin=2cm% + \listparindent .5cm \itemindent}% + \item\relax} + {\endlist\end{SingleSpace}} %% %% Copyright (C) 2017 by Douglas De Rizzo Meneghetti <douglasrizzo@fei.edu.br> %% |