summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/unbtex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/unbtex')
-rw-r--r--macros/latex/contrib/unbtex/README.md70
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example.pdfbin581659 -> 808668 bytes
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example.tex115
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/anexo-a.tex118
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/anexo-b.tex20
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/apendice-a.tex31
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/apendice-b.tex117
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/apendice-c.tex12
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/capitulo1.tex7
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/capitulo2.tex84
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/capitulo3.tex94
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/capitulo4.tex97
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/codigos/blockdiagram.tex1
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/codigos/controle.m6
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/codigos/controleSmithPredictor.py8
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/figuras/1280px-LaTeX-logo.pngbin19971 -> 0 bytes
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/figuras/bodediagram.pdfbin42602 -> 0 bytes
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/figuras/capa_fundo.pdfbin1356 -> 0 bytes
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/referencias.bib50
-rw-r--r--macros/latex/contrib/unbtex/unbtex.cls776
-rw-r--r--macros/latex/contrib/unbtex/unbtexcite/unbtex-alf-en.bst55
-rw-r--r--macros/latex/contrib/unbtex/unbtexcite/unbtex-alf-pt.bst42
-rw-r--r--macros/latex/contrib/unbtex/unbtexcite/unbtex-num-en.bst50
-rw-r--r--macros/latex/contrib/unbtex/unbtexcite/unbtex-num-pt.bst48
-rw-r--r--macros/latex/contrib/unbtex/unbtexcover/capa.pdf54
-rw-r--r--macros/latex/contrib/unbtex/unbtexcover/contracapa.pdfbin0 -> 2746 bytes
26 files changed, 1167 insertions, 688 deletions
diff --git a/macros/latex/contrib/unbtex/README.md b/macros/latex/contrib/unbtex/README.md
index 2293f91fe4..f723051c4a 100644
--- a/macros/latex/contrib/unbtex/README.md
+++ b/macros/latex/contrib/unbtex/README.md
@@ -1,6 +1,6 @@
# UnBTeX: A class for bachelor, master, and doctoral thesis at the
# University of Brasilia (UnB), Brazil.
-# Version 1.5.1 2024/03/02
+# Version 1.5.3 2024/10/07
Copyright (C) 2021-2024 by Henrique C. Ferreira <hcferreira@unb.br>
@@ -25,7 +25,6 @@ Here is a history of changes:
1.1 (2022-05-23):
. Changed \codigocutter to \numerocutter
. The argument of \preambulo command now admits a more general text
- . updated example
1.1.1 (2022-05-30):
. Changed abntex2 commands \orientador and \coorientador to do the
same as \orient and \coorient
@@ -84,31 +83,60 @@ Here is a history of changes:
1.4.2 (2023-12-15):
. Cross-references to the appendix and annex using the cref command
have been corrected
- . The lists of abbreviations and acronyms, as well as the list of symbols,
- have been enhanced, and page numbering has been removed
- . The example chapters have been reorganized
+ . The lists of abbreviations and acronyms, as well as the list of
+ symbols, have been enhanced, and page numbering has been removed
+ . The chapters of the example document have been reorganized
1.4.3 (2023-12-22):
- . Keywords in English have been included on the copyright page if the
- document is written in this language
+ . Keywords in English have been included on the copyright page if
+ the document is written in this language
. Examples of long tables and rotated tables have been included
1.4.4 (2024-01-05):
- . The pdfpages package has been used to include pages from PDF documents
- . The sans-serif font Helvetica (helvet package) has been replaced by the
- TeX Gyre Heros font (tgheros package)
+ . The pdfpages package has been used to include pages from PDF
+ documents
+ . The sans-serif font Helvetica (helvet package) has been replaced
+ by the TeX Gyre Heros font (tgheros package)
1.5 (2024-02-02):
- . ABNT style with a numeric citation scheme for bibliographic references
- has been included
- . Added an option to the UnBTeX class for selecting the citation style
- (author-year or numeric)
- . Added an option to the UnBTeX class for selecting the main language of
- the text (Brazilian Portuguese or English)
- . The font size of the title is automatically adjusted according to its
- length (and number of lines)
- . Reorganization of the class source code and improvements in the comments
+ . ABNT style with a numeric citation scheme for bibliographic
+ references has been included
+ . Added an option to the UnBTeX class for selecting the citation
+ style (author-year or numeric)
+ . Added an option to the UnBTeX class for selecting the main language
+ of the text (Brazilian Portuguese or English)
+ . The font size of the title is automatically adjusted according to
+ its length (and number of lines)
+ . Reorganization of the class source code and improvements in the
+ comments
. The template text has been revised and improved
1.5.1 (2024-03-02):
. The approval sheet (folha de aprovação) has been changed
- . The bottom margin size has been corrected to be consistently adhered to
+ . The bottom margin size has been corrected to be consistently
+ adhered to
+ 1.5.2 (2024-07-04):
+ . The length of the footnote separator line has been corrected
+ according to ABNT standards
+ . The left margin indentation of the citacao environment has been
+ corrected according to ABNT standards
+ . The left margin indentation of the references can be adjusted by
+ the user
+ 1.5.3 (2024-10-07):
+ . A back cover has been added to the template
+ . Language options for the Babel package are now declared directly
+ in the UnBTeX class file
+ . Included the DOI (Digital Object Identifier) field in bibliography
+ entries
+ . An environment for including charts (quadros) has been created,
+ and the list of charts has been added.
+ . Included list of algorithms and list of codes
+ . The packages algpseudocode and algorithm have been replaced by
+ the algorithm2e package for including pseudocode
+ . The internal cross-referencing for tables created with the longtable
+ package has been corrected
+ . An option has been added to the UnBTeX class to select the numbering
+ style for figures, tables, etc., either by chapter or for the entire
+ document.
+ . The options article and twocolumn of the Memoir class have been
+ configured for use.
+ . The example document has been updated and reorganized
## Overleaf
@@ -122,7 +150,7 @@ 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
+https://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. \ No newline at end of file
diff --git a/macros/latex/contrib/unbtex/unbtex-example.pdf b/macros/latex/contrib/unbtex/unbtex-example.pdf
index f1498c6985..611aa6c9b7 100644
--- a/macros/latex/contrib/unbtex/unbtex-example.pdf
+++ b/macros/latex/contrib/unbtex/unbtex-example.pdf
Binary files differ
diff --git a/macros/latex/contrib/unbtex/unbtex-example.tex b/macros/latex/contrib/unbtex/unbtex-example.tex
index 1ad0019003..2f8c2f7e10 100644
--- a/macros/latex/contrib/unbtex/unbtex-example.tex
+++ b/macros/latex/contrib/unbtex/unbtex-example.tex
@@ -1,7 +1,7 @@
%%
%% UnBTeX: A class for bachelor, master, and doctoral thesis at the
%% University of Brasilia (UnB), Brazil
-%% Version 1.5.1 2024/03/02
+%% Version 1.5.3 2024/10/07
%% Copyright (C) 2021-2024 by Henrique C. Ferreira <hcferreira@unb.br>
%%
%% This class file may be distributed and/or modified under the conditions
@@ -9,7 +9,7 @@
%% or (at your option) any later version. The latest version of this
%% license is in:
%%
-%% http://www.latex-project.org/lppl.txt
+%% https://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.
@@ -20,7 +20,8 @@
\documentclass[
% -- Opção da classe memoir -- https://www.ctan.org/pkg/memoir
- oneside, % Caso queira imprimir em frente e verso, use twoside
+ oneside, % Para imprimir somente na frente da folha
+ %twoside, % Para imprimir na frente e no verso da folha
% -- Opção da classe abntex2 -- https://www.ctan.org/pkg/abntex2
sumario=tradicional, % Remova esta opção para sumário padrão ABNT
% -- Selecione o idioma no qual o trabalho será escrito
@@ -29,22 +30,17 @@
% -- Selecione o estilo das referências bibliográficas
bib=alf, % Bibliografia nas normas da ABNT, estilo autor-data
%bib=num, % Bibliografia nas normas da ABNT, estilo numérico
- % -- Opções de idiomas para pacotes utilizados -- Não alterar
- english, % Para hifenização de palavras em inglês
- brazil % Para hifenização de palavras em português
+ % -- Selecione o estilo de numeração de figuras, tabelas, etc.
+ numb=chap, % Numeração por capítulo
+ %numb=abnt, % Numeração para o documento inteiro
]{unbtex}
% ---
% Pacotes básicos (Adicione outros pacotes necessários para o seu trabalho)
% ---
-\usepackage{longtable} % Pacote para tabelas que ocupam mais de uma página
-\usepackage{rotating} % Pacote para girar tabelas (e outros objetos)
-% ---
-
-% ---
-% Compila o índice
-% ---
-\makeindex
+\usepackage{lscape} % Pacote para rotacionar tabelas (e outros objetos)
+%\usepackage{pdflscape} % Pacote para rotacionar objetos e também a página do arquivo pdf
+\usepackage{afterpage} % Evita quebra de página quando inserir uma tabela (ou outro objeto) rotacionada
% ---
% ---
@@ -55,7 +51,7 @@
% ---
% Diretório das figuras
-\graphicspath{{unbtex-example/figuras/}}
+\graphicspath{{unbtex-example/figuras}}
% ---
% ------------------------------------------------------------------------
@@ -67,7 +63,7 @@
% ---
% Título
% ---
-\titulo{Modelo de trabalho \\ acadêmico com UnB\TeX} % No idioma principal do texto
+\titulo{Modelo de trabalho\\ acadêmico com UnB\TeX} % No idioma principal do texto
% Insira \\ caso queira forçar quebras de linha no título
% Não utilize caixa alta para o título do trabalho e nem das seções (com exceção de siglas)
% ---
@@ -100,37 +96,37 @@
% ---
% ---
-% Informações do trabalho
+% Informações do curso
% ---
-\tipotrabalho{Projeto Final de Curso} % Dissertação de Mestrado; Tese de Doutorado (em português, mesmo que o trabalho seja em inglês)
+\tipotrabalho{Trabalho de Conclusão de Curso} % Dissertação de Mestrado; Tese de Doutorado (em português, mesmo que o trabalho seja em inglês)
%\tipotrabalho{Tese de Doutorado}
% ---
-\tipocurso{Engenharia de Controle e Automação} % Nome do curso de graduação ou do programa de pós-graduação, em português
+\tipocurso{Engenharia Elétrica} % Nome do curso de graduação ou do programa de pós-graduação, em português
%\tipocurso{Programa de Pós-Graduação em Engenharia Elétrica}
% ---
% Texto que aparece na folha de rosto e na folha de aprovação
-\preambulo{Projeto Final de Curso submetido como requisito parcial para obtenção do grau de Engenheiro de Controle e Automação.}
+\preambulo{Trabalho de Conclusão de Curso submetido como requisito parcial para obtenção do grau de Engenheiro Eletricista.}
%\preambulo{Tese de Doutorado submetida ao Programa de Pós-Graduação em Engenharia Elétrica da Universidade de Brasília como parte dos requisitos necessários para obtenção do grau de Doutor.}
% Consulte a secretaria/coordenação do curso para saber o que deve ser escrito no preâmbulo. Use português mesmo que o trabalho seja em inglês.
% ---
% Informação adicional para ser impressa na folha de rosto
\publicacao{} % Deixe o argumento vazio caso não haja
-%\publicacao{Publicação PPGEE 201/23} % Também imprime as informações no trabalho no topo da página da ficha catalográfica
+%\publicacao{Publicação PPGEE 201/23} % Também imprime as informações do trabalho no topo da página da ficha catalográfica
% ---
% ---
% Instituição
% ---
-\instituicao[Universidade de Brasília]{Faculdade de Tecnologia}{} % Use português mesmo que o trabalho seja em inglês
-%\instituicao[Universidade de Brasília]{Faculdade de Tecnologia}{Departamento de Engenharia Elétrica} % Caso queira incluir o departamento da unidade acadêmica
+%\instituicao[Universidade de Brasília]{Faculdade de Tecnologia}{} % Use português mesmo que o trabalho seja em inglês
+\instituicao[Universidade de Brasília]{Faculdade de Tecnologia}{Departamento de Engenharia Elétrica} % Caso queira incluir o departamento da unidade acadêmica
% ---
% ---
% Local e data da defesa
% ---
\local{Brasília}
-\dia{2}
-\mes{março}
+\dia{7}
+\mes{outubro}
\ano{2024}
% ---
@@ -148,7 +144,7 @@
\membrodabancav{} % Deixe vazio se não tiver o quinto membro
\membrodabancavfuncao{Examinador externo}
% Comprimento da linha da assinatura (ajuste conforme necessidade)
-\setlength{\ABNTEXsignwidth}{9cm}
+\signlinewidth{9cm}
% ---
% ---
@@ -163,21 +159,21 @@ Este documento exemplifica a elaboração de trabalho acadêmico (trabalho de co
% Resumo em inglês
% ---
\begin{Abstract}
-This is the english abstract.
+This document demonstrates the preparation of academic works (such as final papers, dissertations, and theses) using the UnB\TeX\ class, an extension of the \abnTeX\ class developed for the University of Brasília (UnB). In addition to introducing basic \LaTeX\ commands for the inclusion of equations, tables, and figures, the document shows how to utilize packages integrated with the UnB\TeX\ class to generate bibliographic references, lists of symbols, and formatted boxes for theorems and algorithms, among other essential or useful elements for academic writing. The goal is to simplify the use of the UnB\TeX\ class, enabling even users with minimal \LaTeX\ experience to produce visually high-quality academic documents.
\end{Abstract}
% ---
% ---
-% Palavras-chave (pelo menos três devem ser informadas)
+% Palavras-chave (defina no mínimo 3 e no máximo 5)
% ---
-\pchavei{Palavra chave 1}
-\kwordi{Keyword 1}
-\pchaveii{Palavra chave 2}
-\kwordii{Keyword 2}
-\pchaveiii{Palavra chave 3}
-\kwordiii{Keyword 3}
-\pchaveiv{Palavra chave 4} % Deixe vazio se não tiver
-\kwordiv{Keyword 4} % Deixe vazio se não tiver
+\pchavei{palavra-chave 1}
+\kwordi{keyword 1}
+\pchaveii{palavra-chave 2}
+\kwordii{keyword 2}
+\pchaveiii{palavra-chave 3}
+\kwordiii{keyword 3}
+\pchaveiv{palavra-chave 4} % Deixe vazio se não tiver
+\kwordiv{keyword 4} % Deixe vazio se não tiver
\pchavev{} % Deixe vazio se não tiver
\kwordv{} % Deixe vazio se não tiver
% ---
@@ -212,7 +208,7 @@ Agradecimentos do segundo autor.
% Primeiro autor
\begin{DedicatoriaAutorI}
-Este trabalho é dedicado às crianças adultas que, \\
+Este trabalho é dedicado às crianças adultas que,\\
quando pequenas, sonharam em se tornar cientistas.
\end{DedicatoriaAutorI}
@@ -252,7 +248,7 @@ Dedicatória do segundo autor.
\pretextual
% ------------------------------------------------------------------------
-% Insere capa
+% Insere capa e contracapa
\imprimircapa
% Insere folha de rosto
@@ -274,36 +270,34 @@ Dedicatória do segundo autor.
\imprimirepigrafe
% Insere resumos
-\IfStrEq*{\idioma}{brazil}
-{\imprimirresumo
-\imprimirabstract}
-{\imprimirabstract
-\imprimirresumo}
+\imprimirresumos
-% Insere lista de ilustrações
-\pdfbookmark[0]{\listfigurename}{lof}
-\listoffigures*
-\cleardoublepage
+% Insere lista de figuras
+\imprimirlistadefiguras
+
+% Insere lista de quadros
+%\imprimirlistadequadros
% Insere lista de tabelas
-\pdfbookmark[0]{\listtablename}{lot}
-\listoftables*
-\cleardoublepage
+\imprimirlistadetabelas
+
+% Insere lista de algoritmos
+%\imprimirlistadealgoritmos
+
+% Insere lista de códigos
+%\imprimirlistadecodigos
-% Insere as listas de abreviaturas e siglas e de símbolos
-\PRIVATEbookmarkthis{\listadesiglasname}
-\printnomenclature
-\cleardoublepage
+% Insere a lista de abreviaturas e siglas e a lista de símbolos
+\imprimirlistadesiglasesimbolos
% Insere o sumário
-\pdfbookmark[0]{\contentsname}{toc}
-\tableofcontents*
-\cleardoublepage
+\imprimirsumario
% ------------------------------------------------------------------------
% ELEMENTOS TEXTUAIS
% ------------------------------------------------------------------------
-\textual
+\textualsimples % Cabeçalho com número da página e linha horizontal
+%\textual % Cabeçalho com número da página, título do capítulo/seção e linha horizontal
% ------------------------------------------------------------------------
% Imprime uma página para agrupar um conjunto de capítulos (parte)
@@ -334,6 +328,7 @@ Dedicatória do segundo autor.
% Referências bibliográficas
% ---
% Arquivo com as referências bibliográficas
+\bibhang{2.2em} % Recuo da margem esquerda da lista de referências
\bibliography{unbtex-example/referencias} % O estilo de citação é selecionado automaticamente
% ---
@@ -349,6 +344,8 @@ Dedicatória do segundo autor.
\include{unbtex-example/apendice-b}
+\include{unbtex-example/apendice-c}
+
\end{apendicesenv}
% ---
@@ -362,8 +359,6 @@ Dedicatória do segundo autor.
\include{unbtex-example/anexo-a}
-\include{unbtex-example/anexo-b}
-
\end{anexosenv}
% ---
diff --git a/macros/latex/contrib/unbtex/unbtex-example/anexo-a.tex b/macros/latex/contrib/unbtex/unbtex-example/anexo-a.tex
index 9314036b29..d04826a7b7 100644
--- a/macros/latex/contrib/unbtex/unbtex-example/anexo-a.tex
+++ b/macros/latex/contrib/unbtex/unbtex-example/anexo-a.tex
@@ -1,104 +1,22 @@
% ----------------------------------------------------------
-\chapter{Tabelas longas e rotacionadas}\label{anx:tabs}
+\chapter{Paleta de cores da UnB}\label{anx:coresunb}
% ----------------------------------------------------------
-\begin{longtable}{L{2.5cm}C{2.5cm}C{1cm}C{1.5cm}C{1cm}C{1.5cm}C{1cm}C{1.5cm}}
-% Cabeçalho no início da tabela
-\caption{Tabela longa}
-\label{tab:dscf} \\
-\toprule
-\multirow{3}{*}{\bfseries Variable} &
-\multirow{3}{*}{\parbox{2.5cm}{\centering\bfseries Proportions in Sample (\%)}} &
-\multicolumn{6}{c}{\bfseries Proportions by Subtype (\%)} \\
-\cmidrule(lr){3-8}
-& &
-\multicolumn{2}{c}{\bfseries Graduated} & \multicolumn{2}{C{3cm}}{\bfseries Academically Excluded} &
-\multicolumn{2}{c}{\bfseries Censored} \\
-\midrule
-\endfirsthead
-% Cabeçalho da continuação da tabela no topo da página seguinte
-\caption[]{Tabela longa (continuação)} \\ \toprule
-\multirow{3}{*}{\bfseries Variable} &
-\multirow{3}{*}{\parbox{2.5cm}{\centering\bfseries Proportions in Sample (\%)}} &
-\multicolumn{6}{c}{\bfseries Proportions by Subtypes (\%)} \\
-\cmidrule(lr){3-8}
-& &
-\multicolumn{2}{c}{\bfseries Graduated} & \multicolumn{2}{C{3cm}}{\bfseries Academically Excluded} &
-\multicolumn{2}{c}{\bfseries Censored} \\
-\midrule
-\endhead
-\bottomrule
-\endlastfoot
-\bfseries Total & 100.0 & 50.1 & (45.8) & 7.5 & (14.9) & 42.4 & (39.3) \\
-\addlinespace
-\bfseries Gender \\
-Male & 52.4 & 49.6 & (44.3) & 8.7 & (17.3) & 41.7 & (38.5) \\
-Female & 47.6 & 50.7 & (48.0) & 6.2 & (11.5) & 43.1 & (40.5) \\
-\addlinespace
-\bfseries Race \\
-White & 40.3 & 59.8 & (58.7) & 3.0 & (4.6) & 37.2 & (36.7) \\
-Black & 32.4 & 38.7 & (32.5) & 13.1 & (26.3) & 48.2 & (41.2) \\
-Coloured & 13.0 & 49.8 & (44.5) & 7.4 & (16.1) & 42.8 & (39.5) \\
-Indian/Asian & 14.3 & 48.9 & (44.6) & 7.9 & (13.3) & 43.3 & (42.1) \\
-\addlinespace
-\bfseries Financial Aid \\
-Ineligible for Financial Aid & 82.3 & 52.1 & (48.7) & 5.5 & (10.6) & 42.4 & (40.7) \\
-Eligible for Financial Aid & 17.7 & 40.7 & (35.2) & 17.2 & (30.3) & 42.1 & (34.5) \\
-\addlinespace
-\bfseries Programme \\
-Mainstream & 76.9 & 55.4 & (51.3) & 5.7 & (10.8) & 38.9 & (37.9) \\
-Academic Development & 23.1 & 32.5 & (27.1) & 13.7 & (28.7) & 53.8 & (44.2) \\
-\addlinespace
-\bfseries English Home Language \\
-Yes & 69.3 & 55.1 & (52.8) & 4.9 & (8.6) & 39.9 & (38.6) \\
-No & 30.7 & 38.8 & (32.8) & 13.4 & (26.6) & 47.8 & (40.6) \\
-\addlinespace
-\bfseries School Quintile \\
-1 & 0.8 & 34.6 & (26.1) & 30.8 & (42.6) & 34.6 & (31.3) \\
-2 & 1.6 & 30.2 & (28.1) & 16.0 & (35.1) & 53.8 & (36.8) \\
-3 & 5.0 & 32.0 & (27.7) & 17.5 & (35.3) & 50.5 & (37.0) \\
-4 & 4.1 & 37.7 & (29.5) & 17.7 & (32.0) & 44.5 & (38.5) \\
-5 & 45.4 & 52.0 & (49.2) & 6.9 & (12.0) & 41.1 & (38.9) \\
-Independent & 43.1 & 52.5 & (50.4) & 5.3 & (8.6) & 42.2 & (41.0) \\
-\addlinespace
-{\bfseries Province} \\
-Western Cape & 40.0 & 55.1 & (51.3) &5.9 & (11.6) &39.0 & (37.0) \\
-Non-Western Cape & 59.9 & 46.8 & (41.9) & 8.6 & (17.2) & 44.6 & (41.0) \\
-\addlinespace
-{\bfseries Year of First Registration} \\
-{2006} & 11.6 & 87.8 & (79.9) & 11.3 & (18.9) & 0.9 & (1.2) \\
-{2007} & 11.9 & 88.2 & (79.4) & 10.1 & (19.2) & 1.7 & (1.4) \\
-{2008} & 12.6 & 87.1 & (76.7) & 10.3 & (20.3) & 2.6 & (3.0) \\
-{2009} & 11.9 & 80.9 & (64.9) & 9.7 & (24.9) & 9.4 & (10.2) \\
-{2010} & 11.1 & 62.6 & (57.5) & 6.4 & (12.7) & 31.1 & (29.8) \\
-{2011} & 11.7 & 15.8 & (15.3) & 7.2 & (12.8) & 77.0 & (71.9) \\
-{2012} & 14.1 & 0.0 & (0.0) & 5.4 & (7.5) & 94.6 & (92.5) \\
-{2013} & 15.1 & 0.0 & (0.0) & 1.7 & (3.0) & 98.3 & (97.0) \\
-\end{longtable}
+A paleta de cores da UnB, disponível na \cpageref{marcaunb.1} a seguir, foi extraída do \emph{manual de identidade visual}\footnote{Disponível em \url{http://marca.unb.br}} da Universidade.
-\begin{sidewaystable}
-\begin{center}%
-\small
-\caption{Tabela rotacionada}\label{tab:rot}
-\setlength\tabcolsep{3pt} % controla o espaço entre colunas
-\begin{tabular}{@{}L{1.1cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}@{}} % @{} elimina o espaço nas bordas laterais
-\toprule
-Sv,ieq & 000436xa & 000594xa & 001715xa & 001932ya & 006040ya & 006263xa & 007162ya & 007257ya & IT0605ya & IT0790xa & emiliaeo-retro & emilians-retro \\ \midrule
-0.4 & 2.447 & 2.177 & 2.304 & 4.921 & 4.298 & 2.121 & 3.928 & 3.478 & 3.462 & 1.751 & 0.875 & 0.525 \\
-0.8 & 4.894 & 4.354 & 4.609 & 9.843 & 8.597 & 4.241 & 7.857 & 6.957 & 6.924 & 3.502 & 1.750 & 1.049 \\
-1.2 & 7.341 & 6.530 & 6.913 & 14.764 & 12.895 & 6.362 & 11.785 & 10.435 & 10.386 & 5.252 & 2.625 & 1.574 \\
-1.6 & 9.789 & 8.707 & 9.218 & 19.686 & 17.194 & 8.482 & 15.713 & 13.914 & 13.848 & 7.003 & 3.500 & 2.099 \\
-2 & 12.236 & 10.884 & 11.522 & 24.607 & 21.492 & 10.603 & 19.642 & 17.392 & 17.310 & 8.754 & 4.375 & 2.624 \\
-2.4 & 14.683 & 13.061 & 13.827 & 29.529 & 25.791 & 12.723 & 23.570 & 20.871 & 20.772 & 10.505 & 5.250 & 3.148 \\
-2.8 & 17.130 & 15.237 & 16.131 & 34.450 & 30.089 & 14.844 & 27.498 & 24.349 & 24.234 & 12.256 & 6.125 & 3.673 \\
-3.2 & 19.577 & 17.414 & 18.435 & 39.372 & 34.388 & 16.965 & 31.427 & 27.828 & 27.697 & 14.006 & 7.000 & 4.198 \\
-3.6 & 22.024 & 19.591 & 20.740 & 44.293 & 38.686 & 19.085 & 35.355 & 31.306 & 31.159 & 15.757 & 7.875 & 4.723 \\
-4 & 24.471 & 21.768 & 23.044 & 49.215 & 42.984 & 21.206 & 39.283 & 34.784 & 34.621 & 17.508 & 8.750 & 5.247 \\
-4.4 & 26.919 & 23.945 & 25.349 & 54.136 & 47.283 & 23.326 & 43.212 & 38.263 & 38.083 & 19.259 & 9.625 & 5.772 \\
-4.8 & 29.366 & 26.121 & 27.653 & 59.058 & 51.581 & 25.447 & 47.140 & 41.741 & 41.545 & 21.009 & 10.500 & 6.297 \\
-5.2 & 31.813 & 28.298 & 29.957 & 63.979 & 55.880 & 27.567 & 51.068 & 45.220 & 45.007 & 22.760 & 11.375 & 6.821 \\
-5.6 & 34.260 & 30.475 & 32.262 & 68.900 & 60.178 & 29.688 & 54.996 & 48.698 & 48.469 & 24.511 & 12.250 & 7.346 \\
-6 & 36.707 & 32.652 & 34.566 & 73.822 & 64.477 & 31.809 & 58.925 & 52.177 & 51.931 & 26.262 & 13.125 & 7.871 \\ \bottomrule
-\end{tabular}
-\end{center}%
-\end{sidewaystable} \ No newline at end of file
+Note que, de acordo com a ABNT, a principal diferença entre anexo e apêndice é que os apêndices são textos criados pelo próprio autor para complementar sua argumentação, enquanto os anexos são documentos criados por terceiros, e usados pelo autor.
+
+\cleardoublepage
+
+\newcounter{includepdfpage} % para referenciar no texto páginas pdf incluídas
+
+\includepdf[
+ pages=-, % intervalo das páginas do arquivo pdf que serão incluídas
+ scale=1, % controla o tamanho da página inserida
+ pagecommand={\thispagestyle{plain} % imprime o número da página
+ \refstepcounter{includepdfpage} % conta a página incluída
+ \label{marcaunb.\theincludepdfpage} % marcaunb.n, n número da página
+ },
+ ]{unbtex-example/figuras/coresunb}
+
+\cleardoublepage \ No newline at end of file
diff --git a/macros/latex/contrib/unbtex/unbtex-example/anexo-b.tex b/macros/latex/contrib/unbtex/unbtex-example/anexo-b.tex
deleted file mode 100644
index 63bad4c7b5..0000000000
--- a/macros/latex/contrib/unbtex/unbtex-example/anexo-b.tex
+++ /dev/null
@@ -1,20 +0,0 @@
-% ----------------------------------------------------------
-\chapter{Paleta de cores UnB}\label{anx:coresunb}
-% ----------------------------------------------------------
-
-A \cpageref{marcaunb.1} foi extraída do \emph{manual de identidade visual}\footnote{Disponível em \url{http://marca.unb.br}} da UnB.
-
-\cleardoublepage
-
-\newcounter{includepdfpage} % para referenciar no texto páginas pdf incluídas
-
-\includepdf[
- pages=-, % intervalo das páginas do arquivo pdf que serão incluídas
- scale=1, % controla o tamanho da página inserida
- pagecommand={\thispagestyle{simple} % imprime o número da página
- \refstepcounter{includepdfpage} % conta a página incluída
- \label{marcaunb.\theincludepdfpage} % marcaunb.n, n número da página
- },
- ]{unbtex-example/figuras/coresunb}
-
-\cleardoublepage \ No newline at end of file
diff --git a/macros/latex/contrib/unbtex/unbtex-example/apendice-a.tex b/macros/latex/contrib/unbtex/unbtex-example/apendice-a.tex
index fd624444c0..c8de89cea3 100644
--- a/macros/latex/contrib/unbtex/unbtex-example/apendice-a.tex
+++ b/macros/latex/contrib/unbtex/unbtex-example/apendice-a.tex
@@ -17,19 +17,38 @@ Considere, por exemplo, a entrada para referência do tipo manual (\texttt{@manu
author = {Peter Wilson and Lars Madsen},
organization = {The Herries Press},
title = {The Memoir Class for Configurable Typesetting -- User Guide},
- url = {http://mirrors.ctan.org/macros/latex/contrib/memoir/memman.pdf},
- urldate = {2024-01-25},
- year = {2024}},
+ url = {https://mirrors.ctan.org/macros/latex/contrib/memoir/memman.pdf},
+ year = {2024}}
\end{verbatim}
Utilizando-se o comando \verb|\cite{memoir}| no arquivo \texttt{tex} correspondente a este parágrafo do \cref{apd:cit}, o resultado gerado é \cite{memoir}. Para o comando \verb|\citeonline{memoir}|, o resultado gerado é \citeonline{memoir}. Note que se o estilo de citação utilizado for o numérico, os comandos \verb|\cite| e \verb|\citeonline| geram o mesmo resultado, conforme mencionado na \cref{sec:referencias}.
Os comandos \verb|\citeauthoronline| e \verb|\citeyear|, tanto no estilo autor-ano como no estilo numérico, apresentam separadamente no texto o nome dos autores e o ano da publicação. Por exemplo, podemos escrever:
-\begin{mdframed}[style=plainSty] % verde
+\begin{mdframed}[style=plainSty,innertopmargin=8pt] % verde
Em \citeyear{memoir}, os autores \citeauthoronline{memoir} publicaram o manual da versão v3.8.2 do pacote \textsf{memoir}.
\end{mdframed}
-No arquivo \texttt{bib}, cada entrada de referência bibliográfica possuiu campos cujo preenchimento pode ser obrigatório ou opcional, a depender de seu tipo. No campo \texttt{author}, caso haja mais de um autor, seus nomes devem ser separados por \texttt{and}. Campos como \texttt{address}, \texttt{publisher} e \texttt{year} não preenchidos, podem gerar na lista de referências, respectivamente, as expressões abreviadas [\emph{S.l.}], [\emph{S.n.}] e [\emph{S.d.}] para indicar que são indeterminados. Recomenda-se o uso de programas gratuitos, como o JabRef\footnote{Disponível em: \url{https://www.jabref.org/}}, para auxiliar o preenchimento e gerenciamento de arquivos \texttt{bib}.
+No arquivo \texttt{bib}, cada entrada de referência bibliográfica possuiu campos cujo preenchimento pode ser obrigatório ou opcional, a depender de seu tipo. No campo \texttt{author}, caso haja mais de um autor, seus nomes devem ser separados por \texttt{and}. Campos como \texttt{address}, \texttt{publisher} e \texttt{year} não preenchidos, podem gerar na lista de referências, respectivamente, as expressões abreviadas [\emph{s.l.}], [\emph{s.n.}] e [\emph{s.d.}] para indicar que são indeterminados. Recomenda-se o uso de programas gratuitos, como o JabRef\footnote{Disponível em: \url{https://www.jabref.org/}}, para auxiliar o preenchimento e gerenciamento de arquivos \texttt{bib}.
-No arquivo \texttt{referencias.bib}, além da entrada para referência do tipo manual (como no exemplo dado), há também entradas para referências do tipo artigo de periódico \cite{greenwade93}, artigo de conferência \cite{martin1997}, livro \cite{schaum1956}, capítulo de livro \cite{bates2010}, monografia \cite{morgado1990}, dissertação de mestrado \cite{macedo2005}, tese de doutorado \cite{guizzardi2005}, relatório técnico \cite{KrueBansBierDaziRash20}, dentre outras. Muitos outros exemplos podem ser encontrados em \cite{abntex2cite}. \ No newline at end of file
+No arquivo \texttt{referencias.bib}, além da entrada para referência do tipo manual (como no exemplo dado), há também entradas para referências do tipo artigo de periódico \cite{greenwade93}, artigo de conferência \cite{martin1997}, livro \cite{schaum1956}, capítulo de livro \cite{bates2010}, monografia \cite{morgado1990}, dissertação de mestrado \cite{macedo2005}, tese de doutorado \cite{guizzardi2005}, relatório técnico \cite{KrueBansBierDaziRash20}, dentre outras. Muitos outros exemplos podem ser encontrados em \cite{abntex2cite}.
+
+Note que de acordo com as normas da ABNT, é obrigatório informar data para cada referência bibliográfica. Caso a data não seja identificada na referência, deve-se informar uma data aproximada entre colchetes, conforme situações ilustradas a seguir:
+
+\begin{alineas}
+ \item um ano ou outro: [2007 ou 2008]
+ \item data provável: [2008?]
+ \item data certa não indicada no item: [2008]
+ \item use intervalos menores de 20 anos: [entre 1999 e 2008]
+ \item data aproximada: [ca. 2000]
+ \item década certa: [200-]
+ \item década provável: [200-?]
+ \item século certo: [20--]
+ \item século provável: [20--?]
+\end{alineas}
+
+Em \citeonline{Metodista}, por exemplo, o ano provável é indicado por \citeyear{Metodista}. No arquivo \texttt{bib}, a entrada correspondente a esta referência tem o campo \texttt{year} declarado como
+\begin{verbatim}
+ year = {$\lbrack$2015?$\rbrack$}
+\end{verbatim}
+Para não ocorrer erro na compilação do documento, deve-se utilizar os comandos \verb|$\lbrack$| e \verb|$\rbrack$| para os colchetes ``['' e ``]'', respectivamente. \ No newline at end of file
diff --git a/macros/latex/contrib/unbtex/unbtex-example/apendice-b.tex b/macros/latex/contrib/unbtex/unbtex-example/apendice-b.tex
index 1c86f09671..f357e74832 100644
--- a/macros/latex/contrib/unbtex/unbtex-example/apendice-b.tex
+++ b/macros/latex/contrib/unbtex/unbtex-example/apendice-b.tex
@@ -1,12 +1,115 @@
% ----------------------------------------------------------
-\chapter{Códigos de programação}\label{apd:cdg}
+\chapter{Tabelas longas e rotacionadas}\label{apd:tabs}
% ----------------------------------------------------------
-\section{Projeto do Controlador com Realimentação de Estados}
-\lstinputlisting[language=Matlab,caption={Código de Matlab},label={cod:matlab}]{unbtex-example/codigos/controle.m}
+A \cref{tab:dscf} é um exemplo de tabela longa, que ocupa mais de uma página, construída com o ambiente \texttt{longtable} do pacote com mesmo nome (para mais informações sobre o pacote, consulte seu manual\footnote{Disponível em \url{https://mirrors.ctan.org/macros/latex/required/tools/longtable.pdf}}). Para quadros longos, utilize o ambiente \texttt{longquadro}, disponibilizado na classe UnB\TeX.
-\section{Exemplo de teste em Malha Fechada com Rampa}
-\lstinputlisting[language=Python,caption={Código de Python},label={cod:python}]{unbtex-example/codigos/controleSmithPredictor.py}
+A \cref{tab:rot} foi construída com o ambiente \texttt{landscape} do pacote \textsf{lscape}. Para rotacionar, além da tabela, também a página do arquivo \texttt{pdf}, utilize o pacote \textsf{pdflscape}\footnote{Disponível em \url{http://mirrors.ctan.org/macros/latex/contrib/pdflscape/pdflscape.pdf}}. De forma análoga, os pacotes mencionados para rotacionar tabelas, podem rotacionar figuras.
-\section{Redução modal}
-\lstinputlisting[language=Julia,caption={Código de Julia},label={cod:julia}]{unbtex-example/codigos/ModalReduction.jl} \ No newline at end of file
+\begin{longtable}{L{2.5cm}C{2.5cm}C{1cm}C{1.5cm}C{1cm}C{1.5cm}C{1cm}C{1.5cm}}
+%\begin{longquadro}{L{2.5cm}C{2.5cm}C{1cm}C{1.5cm}C{1cm}C{1.5cm}C{1cm}C{1.5cm}}
+% Cabeçalho no início da tabela
+\caption{Tabela longa}
+\label{tab:dscf} \\
+\toprule
+\multirow{3}{*}{\bfseries Variable} &
+\multirow{3}{*}{\parbox{2.5cm}{\centering\bfseries Proportions in Sample (\%)}} &
+\multicolumn{6}{c}{\bfseries Proportions by Subtype (\%)} \\
+\cmidrule(lr){3-8}
+& &
+\multicolumn{2}{c}{\bfseries Graduated} & \multicolumn{2}{C{3cm}}{\bfseries Academically Excluded} &
+\multicolumn{2}{c}{\bfseries Censored} \\
+\midrule
+\endfirsthead
+% Cabeçalho da continuação da tabela no topo da página seguinte
+\caption[]{Tabela longa (continuação)} \\ \toprule
+\multirow{3}{*}{\bfseries Variable} &
+\multirow{3}{*}{\parbox{2.5cm}{\centering\bfseries Proportions in Sample (\%)}} &
+\multicolumn{6}{c}{\bfseries Proportions by Subtypes (\%)} \\
+\cmidrule(lr){3-8}
+& &
+\multicolumn{2}{c}{\bfseries Graduated} & \multicolumn{2}{C{3cm}}{\bfseries Academically Excluded} &
+\multicolumn{2}{c}{\bfseries Censored} \\
+\midrule
+\endhead
+\hline
+\multicolumn{8}{r}{(Continua)}\\
+\endfoot
+\bottomrule
+\endlastfoot
+\bfseries Total & 100.0 & 50.1 & (45.8) & 7.5 & (14.9) & 42.4 & (39.3) \\
+\addlinespace
+\bfseries Gender \\
+Male & 52.4 & 49.6 & (44.3) & 8.7 & (17.3) & 41.7 & (38.5) \\
+Female & 47.6 & 50.7 & (48.0) & 6.2 & (11.5) & 43.1 & (40.5) \\
+\addlinespace
+\bfseries Race \\
+White & 40.3 & 59.8 & (58.7) & 3.0 & (4.6) & 37.2 & (36.7) \\
+Black & 32.4 & 38.7 & (32.5) & 13.1 & (26.3) & 48.2 & (41.2) \\
+Coloured & 13.0 & 49.8 & (44.5) & 7.4 & (16.1) & 42.8 & (39.5) \\
+Indian/Asian & 14.3 & 48.9 & (44.6) & 7.9 & (13.3) & 43.3 & (42.1) \\
+\addlinespace
+\bfseries Financial Aid \\
+Ineligible for Financial Aid & 82.3 & 52.1 & (48.7) & 5.5 & (10.6) & 42.4 & (40.7) \\
+Eligible for Financial Aid & 17.7 & 40.7 & (35.2) & 17.2 & (30.3) & 42.1 & (34.5) \\
+\addlinespace
+\bfseries Programme \\
+Mainstream & 76.9 & 55.4 & (51.3) & 5.7 & (10.8) & 38.9 & (37.9) \\
+Academic Development & 23.1 & 32.5 & (27.1) & 13.7 & (28.7) & 53.8 & (44.2) \\
+\addlinespace
+\bfseries English Home Language \\
+Yes & 69.3 & 55.1 & (52.8) & 4.9 & (8.6) & 39.9 & (38.6) \\
+No & 30.7 & 38.8 & (32.8) & 13.4 & (26.6) & 47.8 & (40.6) \\
+\addlinespace
+\bfseries School Quintile \\
+1 & 0.8 & 34.6 & (26.1) & 30.8 & (42.6) & 34.6 & (31.3) \\
+2 & 1.6 & 30.2 & (28.1) & 16.0 & (35.1) & 53.8 & (36.8) \\
+3 & 5.0 & 32.0 & (27.7) & 17.5 & (35.3) & 50.5 & (37.0) \\
+4 & 4.1 & 37.7 & (29.5) & 17.7 & (32.0) & 44.5 & (38.5) \\
+5 & 45.4 & 52.0 & (49.2) & 6.9 & (12.0) & 41.1 & (38.9) \\
+Independent & 43.1 & 52.5 & (50.4) & 5.3 & (8.6) & 42.2 & (41.0) \\
+\addlinespace
+{\bfseries Province} \\
+Western Cape & 40.0 & 55.1 & (51.3) &5.9 & (11.6) &39.0 & (37.0) \\
+Non-Western Cape & 59.9 & 46.8 & (41.9) & 8.6 & (17.2) & 44.6 & (41.0) \\
+\addlinespace
+{\bfseries Year of First Registration} \\
+{2006} & 11.6 & 87.8 & (79.9) & 11.3 & (18.9) & 0.9 & (1.2) \\
+{2007} & 11.9 & 88.2 & (79.4) & 10.1 & (19.2) & 1.7 & (1.4) \\
+{2008} & 12.6 & 87.1 & (76.7) & 10.3 & (20.3) & 2.6 & (3.0) \\
+{2009} & 11.9 & 80.9 & (64.9) & 9.7 & (24.9) & 9.4 & (10.2) \\
+{2010} & 11.1 & 62.6 & (57.5) & 6.4 & (12.7) & 31.1 & (29.8) \\
+{2011} & 11.7 & 15.8 & (15.3) & 7.2 & (12.8) & 77.0 & (71.9) \\
+{2012} & 14.1 & 0.0 & (0.0) & 5.4 & (7.5) & 94.6 & (92.5) \\
+{2013} & 15.1 & 0.0 & (0.0) & 1.7 & (3.0) & 98.3 & (97.0) \\
+%\end{longquadro}
+\end{longtable}
+
+\afterpage{ % Evita quebra de página ao inserir tabela rotacionada
+\begin{landscape} % Rotaciona a tabela
+\begin{table}%
+\centering\small
+\caption{Tabela rotacionada}\label{tab:rot}
+\setlength\tabcolsep{3pt} % define o espaçamento entre colunas
+\begin{tabular}{@{}L{1.1cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}L{1.6cm}@{}} % @{} elimina o espaço nas bordas laterais
+\toprule
+Sv,ieq & 000436xa & 000594xa & 001715xa & 001932ya & 006040ya & 006263xa & 007162ya & 007257ya & IT0605ya & IT0790xa & emiliaeo-retro & emilians-retro \\ \midrule
+0.4 & 2.447 & 2.177 & 2.304 & 4.921 & 4.298 & 2.121 & 3.928 & 3.478 & 3.462 & 1.751 & 0.875 & 0.525 \\
+0.8 & 4.894 & 4.354 & 4.609 & 9.843 & 8.597 & 4.241 & 7.857 & 6.957 & 6.924 & 3.502 & 1.750 & 1.049 \\
+1.2 & 7.341 & 6.530 & 6.913 & 14.764 & 12.895 & 6.362 & 11.785 & 10.435 & 10.386 & 5.252 & 2.625 & 1.574 \\
+1.6 & 9.789 & 8.707 & 9.218 & 19.686 & 17.194 & 8.482 & 15.713 & 13.914 & 13.848 & 7.003 & 3.500 & 2.099 \\
+2 & 12.236 & 10.884 & 11.522 & 24.607 & 21.492 & 10.603 & 19.642 & 17.392 & 17.310 & 8.754 & 4.375 & 2.624 \\
+2.4 & 14.683 & 13.061 & 13.827 & 29.529 & 25.791 & 12.723 & 23.570 & 20.871 & 20.772 & 10.505 & 5.250 & 3.148 \\
+2.8 & 17.130 & 15.237 & 16.131 & 34.450 & 30.089 & 14.844 & 27.498 & 24.349 & 24.234 & 12.256 & 6.125 & 3.673 \\
+3.2 & 19.577 & 17.414 & 18.435 & 39.372 & 34.388 & 16.965 & 31.427 & 27.828 & 27.697 & 14.006 & 7.000 & 4.198 \\
+3.6 & 22.024 & 19.591 & 20.740 & 44.293 & 38.686 & 19.085 & 35.355 & 31.306 & 31.159 & 15.757 & 7.875 & 4.723 \\
+4 & 24.471 & 21.768 & 23.044 & 49.215 & 42.984 & 21.206 & 39.283 & 34.784 & 34.621 & 17.508 & 8.750 & 5.247 \\
+4.4 & 26.919 & 23.945 & 25.349 & 54.136 & 47.283 & 23.326 & 43.212 & 38.263 & 38.083 & 19.259 & 9.625 & 5.772 \\
+4.8 & 29.366 & 26.121 & 27.653 & 59.058 & 51.581 & 25.447 & 47.140 & 41.741 & 41.545 & 21.009 & 10.500 & 6.297 \\
+5.2 & 31.813 & 28.298 & 29.957 & 63.979 & 55.880 & 27.567 & 51.068 & 45.220 & 45.007 & 22.760 & 11.375 & 6.821 \\
+5.6 & 34.260 & 30.475 & 32.262 & 68.900 & 60.178 & 29.688 & 54.996 & 48.698 & 48.469 & 24.511 & 12.250 & 7.346 \\
+6 & 36.707 & 32.652 & 34.566 & 73.822 & 64.477 & 31.809 & 58.925 & 52.177 & 51.931 & 26.262 & 13.125 & 7.871 \\ \bottomrule
+\end{tabular}
+\end{table}%
+\end{landscape}
+} \ No newline at end of file
diff --git a/macros/latex/contrib/unbtex/unbtex-example/apendice-c.tex b/macros/latex/contrib/unbtex/unbtex-example/apendice-c.tex
new file mode 100644
index 0000000000..125f46d8cf
--- /dev/null
+++ b/macros/latex/contrib/unbtex/unbtex-example/apendice-c.tex
@@ -0,0 +1,12 @@
+% ----------------------------------------------------------
+\chapter{Códigos de programação}\label{apd:cdg}
+% ----------------------------------------------------------
+
+\section{Projeto do controlador por realimentação de estados}
+\lstinputlisting[language=Matlab,caption={Código de Matlab},label={cod:matlab}]{unbtex-example/codigos/controle.m}
+
+\section{Exemplo de teste em malha fechada com entrada rampa}
+\lstinputlisting[language=Python,caption={Código de Python},label={cod:python}]{unbtex-example/codigos/controleSmithPredictor.py}
+
+\section{Redução modal}
+\lstinputlisting[language=Julia,caption={Código de Julia},label={cod:julia}]{unbtex-example/codigos/ModalReduction.jl} \ No newline at end of file
diff --git a/macros/latex/contrib/unbtex/unbtex-example/capitulo1.tex b/macros/latex/contrib/unbtex/unbtex-example/capitulo1.tex
index cb4ca3a6d5..2955b00ed7 100644
--- a/macros/latex/contrib/unbtex/unbtex-example/capitulo1.tex
+++ b/macros/latex/contrib/unbtex/unbtex-example/capitulo1.tex
@@ -16,11 +16,8 @@ A classe UnB\TeX\ também contempla atualizações mais recentes das normas NBR
Este documento deve ser utilizado como complemento do manual do \abnTeX\ \cite{abntex2classe} e da classe \textsf{memoir} \cite{memoir}. Mais referências sobre o \LaTeX\ e sobre o \abnTeX\ podem ser obtidas em \url{https://github.com/abntex/abntex2/wiki/Referencias}.
-%\begin{mdframed}[style=defnSty] % azul
-\begin{mdframed}[style=plainSty] % verde
-
+%\begin{mdframed}[style=defnSty,innertopmargin=8pt] % azul
+\begin{mdframed}[style=plainSty,innertopmargin=8pt] % verde
{\center \textsc{Texto motivador} \par}
-
\noindent Esperamos que o UnB\TeX\ aprimore a qualidade do trabalho que você produzirá, de modo que o principal esforço seja concentrado no principal: na contribuição científica.
-
\end{mdframed} \ No newline at end of file
diff --git a/macros/latex/contrib/unbtex/unbtex-example/capitulo2.tex b/macros/latex/contrib/unbtex/unbtex-example/capitulo2.tex
index 46eed2b2bc..739fb3986c 100644
--- a/macros/latex/contrib/unbtex/unbtex-example/capitulo2.tex
+++ b/macros/latex/contrib/unbtex/unbtex-example/capitulo2.tex
@@ -3,14 +3,14 @@
\label{cap:exemplos}
% ----------------------------------------------------------
-Este capítulo ilustra o uso de comandos do \LaTeX, do \abnTeX\ e do UnB\TeX.
+Este capítulo ilustra o uso de comandos do \LaTeX, do \abnTeX\ e do UnB\TeX\ para elaboração de trabalhos acadêmicos.
% ---
\section{Expressões matemáticas}
\label{sec:mat}
% ---
-Para que as expressões matemáticas fiquem na mesma linha do texto, como em $ \lim_{x \to \infty} \exp(-x) = 0 $, escreva-as entre \$ e \$.
+Escreva expressões matemáticas entre \$ e \$, como em $\lim_{x \to \infty}\exp(-x) = 0$, para que fiquem na mesma linha do texto.
Colchetes podem ser usados para indicar o início de uma expressão matemática não numerada:
\[
@@ -22,14 +22,14 @@ Colchetes podem ser usados para indicar o início de uma expressão matemática
O ambiente \texttt{equation} pode ser usado para escrever expressões matemáticas numeradas, como a seguinte:
\begin{equation}
- \forall x \in X, \quad \exists \: y \leq \epsilon.
+ \forall x \in \mathcal{X}, \quad \exists \: y \leq \epsilon.
\end{equation}
Se a equação fizer parte do parágrafo, não deixe no arquivo \texttt{tex} uma linha em branco entre o texto e o ambiente da equação. A linha em branco é entendida como começo de um novo parágrafo, que é iniciado com recuo e maior espaçamento.
Muitos cientistas gostam de usar \LaTeX\ porque essa ferramenta possibilita escrever facilmente equações como:
\begin{equation}
-p+\frac{1}{2}{\rho}v^2+{\rho}gh = \text{constante},
+p+\frac{1}{2}{\rho}v^2+{\rho}gh = \mathrm{constante},
\label{eq:bernoulli}
\end{equation}
em que $p$ é a pressão, $v$ é a velocidade e $h$ é a elevação, ou seja, a ``altura do tubo''. A \cref{eq:bernoulli} pode ser deduzida a partir do \textit{Teorema Trabalho-Energia}.
@@ -41,10 +41,8 @@ em que $p$ é a pressão, $v$ é a velocidade e $h$ é a elevação, ou seja, a
A seguir são apresentados mais alguns exemplos de equações feitas com o \LaTeX:
-\newcommand{\vt}[1]{\mathbf{#1}}
-
\begin{equation}\label{eq:R_f_usual}
-\vt{R}_r(t) = \vt{R}_{\chi}(t) \triangleq
+\mathbf{R}_r(t) = \mathbf{R}_{\chi}(t) \triangleq
\begin{bmatrix}
\cos \chi_0 (t) & -\sin \chi_0 (t) & 0
\\
@@ -55,11 +53,11 @@ A seguir são apresentados mais alguns exemplos de equações feitas com o \LaTe
\end{equation}
\begin{equation}
-\vt{L}_{ij} =
+\mathbf{L}_{ij} =
\begin{cases}
--a_{ij}, & \text{se } j \neq i \text{ e } j \in \mathcal{N}_i, \\
-\sum_{k \in \mathcal{N}_i} a_{ik}, & \text{se } j = i, \\
-0, & \text{caso contrário},
+-a_{ij}, & \textrm{se } j \neq i \textrm{ e } j \in \mathcal{N}_i, \\
+\sum_{k \in \mathcal{N}_i} a_{ik}, & \textrm{se } j = i, \\
+0, & \textrm{caso contrário},
\end{cases}
\end{equation}
@@ -83,11 +81,28 @@ u_{li}(t) &= - \textrm{sign}(s_{li}(t))\eta. \label{eq:u_xbi}
\end{align}
\end{subequations}
+Exemplos de fontes tipográficas específicas para uso em expressões matemáticas são apresentadas na \cref{tab:ftmath}.
+
+\begin{table}[htb]
+\centering
+\caption{Fontes matemáticas}
+\label{tab:ftmath}
+\begin{tabular}{llll}
+\toprule
+Exemplo & Comando & Exemplo & Comando \\ \cmidrule(lr){1-2} \cmidrule(lr){3-4}
+$\mathcal{RQSZ}$ & \verb|\mathcal{RQSZ}| & $\mathbfcal{RQSZ}$ & \verb|\mathbfcal{RQSZ}| \\
+$\mathscr{RQSZ}$ & \verb|\mathscr{RQSZ}| & $\mathbfscr{RQSZ}$ & \verb|\mathbfscr{RQSZ}| \\
+$\mathfrak{RQSZ}$ & \verb|\mathfrak{RQSZ}| & $\mathbffrak{RQSZ}$ & \verb|\mathbffrak{RQSZ}| \\
+$\mathbb{RQSZ}$ & \verb|\mathbb{RQSZ}| & $\mathbfbb{RQSZ}$ & \verb|\mathbfbb{RQSZ}| \\ \bottomrule
+\end{tabular}
+\fonte{Elaborada pelo autor}
+\end{table}
+
% ---
-\section{Listas}
+\section{Lista de abreviaturas e siglas e lista de símbolos}
% ---
-As listas de figuras e de tabelas numeradas, inseridas após o \emph{Abstract}, são geradas automaticamente. Incluídas após a lista de tabelas, a lista de abreviaturas e siglas e a lista de símbolos são geradas pelo pacote \textsf{nomencl} e têm seus itens definidos conforme descrição a seguir.
+A lista de abreviaturas e siglas e a lista de símbolos são elementos pré-textuais não obrigatórios de trabalhos acadêmicos. Incluídas por meio do comando \verb|\printnomenclature| no arquivo \texttt{tex} principal do trabalho, estas listas são geradas pelo pacote \textsf{nomencl}, e têm seus itens definidos conforme descrição a seguir.
Para definir um item a ser exibido na lista de abreviaturas e siglas, próximo do texto onde a sigla ou abreviatura aparece, utilize o comando \verb|\nomenclature|. Por exemplo, para definir a sigla UnB no \cref{cap:intr}, próximo dela foi utilizado o seguinte comando:
\begin{verbatim}
@@ -104,7 +119,7 @@ O argumento \texttt{[A]} do comando \verb|\nomenclature[A]| indica que o item pe
Os nomes dos grupos de símbolos (símbolos romanos, símbolos gregos, sobrescritos e subscritos), assim como as letras que os designam, podem ser alterados e novos grupos podem ser criados. Para isso, veja no arquivo da classe UnB\TeX\ (\texttt{unbtex.cls}) como o comando \verb|\nomgroup| do pacote \textsf{nomencl} é redefinido.
-É importante mencionar que enquanto no Overleaf, o pacote \textsf{nomencl} não necessite de nenhuma compilação adicional, em outros editores \LaTeX\ pode ser necessário compilar o documento usando, além do \texttt{pdfLaTeX}, o \texttt{Makeindex}. No TeXstudio, por exemplo, o \texttt{Makeindex} deve ser previamente configurado como a seguir:\footnote{Para mais informações: \url{https://tex.stackexchange.com/questions/27824/using-package-nomencl}}:
+É importante mencionar que no Overleaf, para compilar um documento com lista de abreviaturas e siglas ou lista de símbolos não é necessária nenhuma ação adicional. Em outros editores \LaTeX\ pode ser necessário compilar o documento usando usando o \texttt{pdfLaTeX}, seguido pelo \texttt{Makeindex} e pelo \texttt{pdfLaTeX} novamente. O \texttt{Makeindex} deve ser previamente configurado. No TeXstudio, por exemplo, o \texttt{Makeindex} deve ser receber a seguinte configuração\footnote{Para mais informações: \url{https://tex.stackexchange.com/questions/27824/using-package-nomencl}}:
\begin{verbatim}
makeindex %.nlo -s nomencl.ist -o %.nls -t %.nlg
\end{verbatim}
@@ -117,7 +132,7 @@ A formatação das referências bibliográficas conforme as regras da ABNT é um
A classe UnB\TeX\ aproveita o pacote \textsf{abntex2cite}, mas com arquivos de estilo (extensão \texttt{bst}) modificados para contemplar atualizações mais recentes das normas NBR 6023 \cite{NBR6023:2018} e NBR 10520 \cite{NBR10520:2023}. Além das opções para citações nos estilos autor-ano e numérico, na classe UnB\TeX\ foram adicionados arquivos de estilo customizados para citações em textos escritos em inglês.
-Para cada referência a ser citada em arquivos de texto (extensão \texttt{tex}), é preciso criar uma entrada no arquivo de referências (extensão \texttt{bib}). Informações sobre como criar entradas em arquivos \texttt{bib} para diferentes tipos de referências (artigos em periódicos, artigos em anais de eventos, livros, capítulos de livros, etc.) e como utilizá-las, podem ser obtidas nos manuais \citeonline{abntex2cite}\footnote{Disponível em: \url{http://mirrors.ctan.org/macros/latex/contrib/abntex2/doc/abntex2cite.pdf}} e \citeonline{abntex2cite-alf}\footnote{Disponível em: \url{http://mirrors.ctan.org/macros/latex/contrib/abntex2/doc/abntex2cite-alf.pdf}}. No \cref{apd:cit} há um exemplo de como criar e utilizar entradas para referências bibliográficas.
+Para cada referência a ser citada em arquivos de texto (extensão \texttt{tex}), é preciso criar uma entrada no arquivo de referências (extensão \texttt{bib}). Informações sobre como criar entradas em arquivos \texttt{bib} para diferentes tipos de referências (artigos em periódicos, artigos em anais de eventos, livros, capítulos de livros, etc.) e como utilizá-las, podem ser obtidas nos manuais \citeonline{abntex2cite}\footnote{Disponível em: \url{https://mirrors.ctan.org/macros/latex/contrib/abntex2/doc/abntex2cite.pdf}} e \citeonline{abntex2cite-alf}\footnote{Disponível em: \url{https://mirrors.ctan.org/macros/latex/contrib/abntex2/doc/abntex2cite-alf.pdf}}. No \cref{apd:cit} há um exemplo de como criar e utilizar entradas para referências bibliográficas.
Embora as normas da ABNT permitam citações utilizando o estilo numérico, é recomendado o uso do estilo autor-data em trabalhos acadêmicos. A razão é que a leitura por parte do avaliador fica mais simples. Basta ver o nome e o ano para se lembrar rapidamente da referência, sem precisar recorrer frequentemente à lista de referências, que fica no final do texto, tornando a leitura mais agradável.
@@ -132,7 +147,7 @@ O pacote \textsf{biblatex}, com a opção \texttt{style=abnt}, também pode ser
Normalmente não há problemas em usar caracteres acentuados em arquivos bibliográficos (\texttt{bib}). Porém, como as regras da ABNT fazem uso frequente da conversão para letras maiúsculas, é preciso observar o modo como se escreve os nomes dos autores. Na \cref{tab:acentos} você encontra alguns exemplos das conversões mais importantes. Preste atenção especial para `ç' e `í' que devem estar envoltos em chaves. A regra geral é, nos arquivos \texttt{bib}, sempre fazer a acentuação de acordo com a \cref{tab:acentos}, especialmente nas palavras que têm suas letras convertidas para maiúsculas.
\begin{table}[htb]
-\begin{center}
+\centering
\caption{Tabela de conversão de acentuação}
\label{tab:acentos}
\begin{tabular}{llllllll} \toprule
@@ -144,7 +159,7 @@ Normalmente não há problemas em usar caracteres acentuados em arquivos bibliog
\'u & & & & \verb|\'u| & & & \\
{\c c} & & & & \multicolumn{2}{l}{\Verb{{\c c}}} & & \\ \bottomrule
\end{tabular}
-\end{center}
+\fonte{Adaptada de \citeonline{abntex2cite}}
\end{table}
% ---
@@ -159,8 +174,8 @@ As citações diretas, no texto, com mais de três linhas, devem ser destacadas
Use o ambiente assim:
\begin{verbatim}
\begin{citacao}
-As citações diretas, no texto, com mais de três linhas [...] deve-se observar
-apenas o recuo \cite[seção 5.3]{NBR10520:2002}.
+As citações diretas, no texto, com mais de três linhas [...] deve-se observar apenas o
+recuo \cite[seção 5.3]{NBR10520:2002}.
\end{citacao}
\end{verbatim}
@@ -185,15 +200,14 @@ Ao nomear a \cref{sec:mat} e a \cref{eq:bernoulli}, apresentamos um exemplo de r
O código usado para produzir o texto desta seção é:
\begin{verbatim}
-Ao nomear a \cref{sec:mat} e a \cref{eq:bernoulli}, apresentamos um
-exemplo de remissão interna, que também pode ser feita quando indicamos
-o \cref{cap:exemplos}, intitulado \emph{\nameref{cap:exemplos}}. O
-número do capítulo indicado é \ref{cap:exemplos}, que se inicia à
-\cpageref{cap:exemplos}\footnote{O número da página de uma remissão
-pode ser obtida também assim: \pageref{cap:exemplos}.}.
+Ao nomear a \cref{sec:mat} e a \cref{eq:bernoulli}, apresentamos um exemplo de remissão
+interna, que também pode ser feita quando indicamos o \cref{cap:exemplos}, intitulado
+\emph{\nameref{cap:exemplos}}. O número do capítulo indicado é \ref{cap:exemplos}, que se
+inicia à \cpageref{cap:exemplos}\footnote{O número da página de uma remissão pode ser
+obtida também assim: \pageref{cap:exemplos}.}.
\end{verbatim}
-As remissões internas neste documento foram feitas utilizando-se o pacote \textsf{cleveref}. Mais opções de uso (e de comandos) podem ser encontradas em seu manual\footnote{Disponível em \url{http://mirrors.ctan.org/macros/latex/contrib/cleveref/cleveref.pdf}}.
+As remissões internas neste documento foram feitas utilizando-se o pacote \textsf{cleveref}. Mais opções de uso (e de comandos) podem ser encontradas em seu manual\footnote{Disponível em \url{https://mirrors.ctan.org/macros/latex/contrib/cleveref/cleveref.pdf}}.
% ---
\section{Enumerações: alíneas e subalíneas}
@@ -248,9 +262,7 @@ As notas de rodapé são detalhadas pela NBR 14724:2011 na seção 5.2.1\footnot
\label{sec:hifenizacao}
% ---
-O idioma principal do texto é definido no início do arquivo \texttt{tex} principal, como uma opção da classe UnB\TeX. Para português-brasileiro, utilize a opção \texttt{idioma=brazil} e para inglês, utilize a opção \texttt{idioma=english}. A opção de idioma define se nome das listas (de figuras, de tabelas, de abreviaturas e siglas, de símbolos), do sumário e das referências será em português ou inglês. Define também o idioma do rótulo das tabelas, figuras, equações, capítulos, seções, apêndices, anexos, etc.
-
-As últimas opções da classe UnB\TeX, \texttt{english} e \texttt{brazil}, referem-se a idiomas para hifenização e para uso em outros pacotes e, assim, não devem ser alteradas. Mesmo que o idioma principal do texto seja português, é possível incluir textos para serem hifenizados em inglês, como no exemplo a seguir\footnote{Extraído de: \url{http://en.wikibooks.org/wiki/LaTeX/Internationalization}}:
+O idioma principal do texto é definido no início do arquivo \texttt{tex} principal, como uma opção da classe UnB\TeX. Para português-brasileiro, utilize a opção \texttt{idioma=brazil} e para inglês, utilize a opção \texttt{idioma=english}. A opção de idioma define se nome das listas (de figuras, de tabelas, de abreviaturas e siglas, de símbolos), do sumário e das referências será em português ou inglês. Define também o idioma do rótulo das tabelas, figuras, equações, capítulos, seções, apêndices, anexos, etc. Mesmo que o idioma principal do texto seja português, é possível incluir textos para serem hifenizados em inglês, como no exemplo a seguir\footnote{Extraído de: \url{https://en.wikibooks.org/wiki/LaTeX/Internationalization}}:
\begin{otherlanguage*}{english}
\textit{Text in English language. This environment switches all language-related definitions, like the language specific names for figures, tables etc. to the other language. The starred version of this environment typesets the main text according to the rules of the other language, but keeps the language specific string for ancillary things like figures, in the main language of the document. The environment hyphenrules switches only the hyphenation patterns used; it can also be used to disallow hyphenation by using the language name `nohyphenation'.}
@@ -264,9 +276,7 @@ A \cref{sec:citacao} descreve o ambiente \texttt{citacao}, que pode receber como
A ficha catalográfica é um elemento pré-textual obrigatório para todos os trabalhos acadêmicos (teses, dissertações e trabalhos de conclusão de curso). No site da Biblioteca Central da UnB\footnote{\url{https://bce.unb.br/servicos/elaboracao-de-fichas-catalograficas/}} há mais informações a respeito. A classe UnB\TeX\ gera automaticamente a ficha catalográfica com as informações do trabalho, com opção de inclusão do código Cutter.
-A Tabela Cutter-Sanborn é uma codificação elaborada por Charles Ammi Cutter e, posteriormente, expandida por Kate F. Sanborn. Na Tabela Cutter-Sanborn é possível obter o código correspondente ao sobrenome do autor.
-
-Em vários sites da internet\footnote{\url{https://www.tabelacutter.com/}}\footnote{\url{https://cuttersonline.com.br/registrador-gratuito}} há ferramentas online para obtenção do código. Se o nome do primeiro autor do trabalho for, digamos, Carlos Lisboa, a entrada da ferramenta online deverá ser:
+A Tabela Cutter-Sanborn é uma codificação elaborada por Charles Ammi Cutter e, posteriormente, expandida por Kate F. Sanborn. Na Tabela Cutter-Sanborn é possível obter o código correspondente ao sobrenome do autor. Em vários sites da internet\footnote{\url{https://www.tabelacutter.com/}}\footnote{\url{https://cuttersonline.com.br/registrador-gratuito}} há ferramentas online para obtenção do código. Se o nome do primeiro autor do trabalho for, digamos, Carlos Lisboa, a entrada da ferramenta online deverá ser:
\begin{verbatim}
Lisboa, Carlos
\end{verbatim}
@@ -276,7 +286,7 @@ Nenhuma outra informação é necessária para gerar o código que, no caso dess
\end{verbatim}
Note que na ficha catalográfica gerada aparecerá \texttt{L769m}. A letra \textbf{L} maiúscula, correspondente à primeira letra do sobrenome \textbf{Lisboa}, é automaticamente adicionada na frente do número. A letra \textbf{m} minúscula, correspondente à primeira letra do título do trabalho (neste caso, \emph{Modelo de trabalho acadêmico com UnB\TeX}), é adicionada no final do número.
-Se seu nome for, por exemplo, Carlos de Souza, utilize
+Se o nome do autor for, por exemplo, Carlos de Souza, utilize
\begin{verbatim}
Souza, Carlos de
\end{verbatim}
@@ -289,20 +299,20 @@ como entrada da ferramenta online que gera o código Cutter. Caso não deseje im
\section{Inclusão de outros arquivos}\label{sec:include}
% ---
-É uma boa prática dividir o seu documento em diversos arquivos, e não apenas escrever tudo em um único. Esse recurso foi utilizado neste documento. Para incluir diferentes arquivos em um arquivo principal, de modo que cada arquivo incluído fique em uma página diferente, utilize o comando:
+É uma boa prática dividir o seu documento em diversos arquivos, e não apenas escrever tudo em um único. Para incluir diferentes arquivos em um arquivo principal, de modo que cada arquivo incluído fique em uma página diferente, utilize o comando:
\begin{verbatim}
\include{documento-a-ser-incluido} % sem a extensão .tex
\end{verbatim}
-Para incluir documentos sem que haja necessariamente quebra de páginas, utilize o comando:
+Para incluir documentos haver necessariamente quebra de páginas, utilize o comando:
\begin{verbatim}
\input{documento-a-ser-incluido} % sem a extensão .tex
\end{verbatim}
-Também é possível incluir no documento, páginas de arquivos \texttt{pdf}. No \cref{anx:coresunb}, por exemplo, foi incluída uma página do manual de identidade visual da UnB. Para tanto, utilizou-se o comando \verb|\includepdf| do pacote \textsf{pdfpages}.
+Também é possível incluir no documento, páginas de arquivos \texttt{pdf}. No \cref{anx:coresunb}, por exemplo, foi incluída uma página do manual de identidade visual da UnB. Para tanto, utilizou-se o comando \verb|\includepdf| do pacote \textsf{pdfpages}. Para mais informações sobre o pacote, consulte seu manual\footnote{Disponível em: \url{http://mirrors.ctan.org/macros/latex/contrib/pdfpages/pdfpages.pdf}}.
% ---
\section{Consulte o manual da classe \abnTeX}
% ---
-Consulte o manual da classe \textsf{abntex2} \cite{abntex2classe}\footnote{Disponível em: \url{http://mirrors.ctan.org/macros/latex/contrib/abntex2/doc/abntex2.pdf}} para uma referência completa dos comandos e ambientes disponíveis. Além disso, o manual possui informações adicionais sobre as normas ABNT observadas pelo \abnTeX\ e considerações sobre eventuais requisitos específicos não atendidos. \ No newline at end of file
+Consulte o manual da classe \textsf{abntex2} \cite{abntex2classe}\footnote{Disponível em: \url{https://mirrors.ctan.org/macros/latex/contrib/abntex2/doc/abntex2.pdf}} para uma referência completa dos comandos e ambientes disponíveis. Além disso, o manual possui informações adicionais sobre as normas ABNT observadas pelo \abnTeX\ e considerações sobre eventuais requisitos específicos não atendidos. \ No newline at end of file
diff --git a/macros/latex/contrib/unbtex/unbtex-example/capitulo3.tex b/macros/latex/contrib/unbtex/unbtex-example/capitulo3.tex
index 30514e0f81..082de889f9 100644
--- a/macros/latex/contrib/unbtex/unbtex-example/capitulo3.tex
+++ b/macros/latex/contrib/unbtex/unbtex-example/capitulo3.tex
@@ -2,15 +2,17 @@
\chapter{Tabelas e figuras}
% ----------------------------------------------------------
+Tabelas e figuras (além de equações, códigos, algoritmos, definições, teoremas, etc.) são elementos comumente presentes em trabalhos acadêmicos. Na classe UnB\TeX, além de distinta e consecutiva, a numeração destes elementos pode ser feita por capítulo ou para o documento inteiro. No início do arquivo \texttt{tex} principal do trabalho, use a opção \texttt{numb=chap} para que a numeração destes elementos seja por capítulo ou use a opção \texttt{numb=abnt} para que a numeração seja para o documento inteiro. Note que este documento utiliza a numeração por capítulo, embora as normas da ABNT indiquem o uso da numeração consecutiva para o documento inteiro.
+
% ---
\section{Tabelas}
% ---
-As \cref{tab:nivel,tab:fluxo,tab:ibge} são exemplos de tabelas construída em
-\LaTeX. Observe que a \cref{tab:ibge} utiliza o padrão do \citeonline{ibge1993} para documentos técnicos e acadêmicos.
+As \cref{tab:nivel,tab:fluxo,tab:ibge} são exemplos de tabelas construídas com \LaTeX. Observe que a \cref{tab:ibge} utiliza o padrão do \citeonline{ibge1993}, indicada pela ABNT para documentos técnicos e acadêmicos. Neste padrão, o texto da legenda, incluído na parte superior com o comando \verb|\caption|, e os demais textos (fonte, nota e anotações), incluídos na parte inferior com os comandos \verb|\fonte| e \verb|\nota|, têm a mesma largura da tabela.
\begin{table}[htb]
-\begin{center}%
+%\begin{quadro}[htb]
+\centering
\small
\caption[Níveis de investigação]{Níveis de investigação}
\label{tab:nivel}
@@ -21,13 +23,15 @@ As \cref{tab:nivel,tab:fluxo,tab:ibge} são exemplos de tabelas construída em
Nível do objeto & Paradigmas do metanível e evidências do nível inferior & Ciência & Teorias e modelos \\ \hline
Nível inferior & Modelos e métodos do nível do objeto e problemas do nível inferior & Prática & Solução de problemas \\
\end{tabular}}
-\fonte{\citeonline{van86}}
-\end{center}%
+\fonte{\citeonline{gigch86}}
+%\end{quadro}
\end{table}
-\begin{table}[htb]
+%\afterpage{ % Evita quebra de página ao inserir tabela rotacionada
+%\begin{landscape} % Rotaciona a tabela
+\begin{table}
\small
-\begin{center}%
+\centering
\caption{Componentes curriculares do segundo nível}
\label{tab:fluxo}
{\renewcommand{\arraystretch}{1.3} % espaçamento entre as linhas da tabela
@@ -48,8 +52,10 @@ CIC0090 & Estruturas de Dados & 30 & 30 & 0 & 0 & 60 & CIC0004 \\ \hline%
\multicolumn{6}{|l|}{Componentes optativos ou eletivos} & 60 & \multicolumn{1}{r}{} \\ \cline{1-7}%
\multicolumn{6}{|l|}{Total de horas do 2º Nível} & 420 & \multicolumn{1}{r}{} \\ \cline{1-7}%
\end{tabular}}
-\end{center}%
+\fonte{Elaborada pelo autor}
\end{table}
+%\end{landscape}
+%}
\begin{table}[htb]
\IBGEtab{%
@@ -64,44 +70,49 @@ CIC0090 & Estruturas de Dados & 30 & 30 & 0 & 0 & 60 & CIC0004 \\ \hline%
Laura Vicuña & 05/04/1891 & 3111.111.111-11 \\ \bottomrule
\end{tabular}%
}{%
- \fonte{Produzido pelos autores.}%
- \nota{Esta é uma nota, que diz que os dados são baseados na regressão linear.}%
- \nota[Anotações]{Uma anotação adicional, que pode ser seguida de várias outras.}%
+ \fonte{Elaborada pelo autor}%
+ \nota{Esta é uma nota, que diz que os dados são baseados na regressão linear}%
+ \nota[Anotações]{Uma anotação adicional, que pode ser seguida de várias outras}%
}
\end{table}
-Para alterar a cor de linhas e de células de tabelas, o pacote \textsf{colortbl} foi utilizado. Para mesclar linhas e colunas, como na \cref{tab:fluxo}, utilize o pacote \textsf{multirow}. O pacote \textsf{longtable} pode ser usado para construir tabelas que ocupam mais de uma página e o pacote \textsf{rotating} pode ser usado para rotacionar tabelas. No \cref{anx:tabs} há exemplos de tabelas que os utilizam. Embora poderosos para construir tabelas, os pacotes \textsf{tabularray} e \textsf{nicematrix} não foram utilizados neste documento devido ao elevado tempo necessário para processamento no Overleaf. Muitos outros exemplos de tabelas feitas com \LaTeX\ podem ser facilmente encontrados na internet.
+Para alterar a cor de linhas e de células de tabelas, o pacote \textsf{colortbl} foi utilizado. Para mesclar linhas e colunas, como na \cref{tab:fluxo}, foi utilizado o pacote \textsf{multirow}. O pacote \textsf{longtable} pode ser usado para construir tabelas que ocupam mais de uma página e o pacote \textsf{rotating} pode ser usado para rotacionar tabelas. No \cref{apd:tabs} há exemplos de tabelas que os utilizam. Embora poderosos para construir tabelas, os pacotes \textsf{tabularray} e \textsf{nicematrix} não foram utilizados neste documento devido ao elevado tempo necessário para processamento no Overleaf. Muitos outros exemplos de tabelas feitas com \LaTeX\ podem ser facilmente encontrados na internet.
+
+Se possível, construa tabelas sem linhas verticais entre as colunas. Nas \cref{tab:nivel,tab:ibge} não há linhas verticais e as linhas horizontais são menos frequentes e feitas com os comandos \verb|\toprule|, \verb|\midrule| e \verb|\bottomrule| do pacote \textsf{booktabs}. Na \cref{tab:fluxo} foram utilizadas linhas verticais e as linhas horizontais foram feitas com o comando \verb|\hline|, separando quase todas as linhas. O comando \verb|\arraystretch| permitiu aumentar o espaçamento entre linhas.
+
+As normas da ABNT, além de tabelas, preveem inclusão de quadros. Enquanto tabelas sintetizam dados numéricos, quadros sintetizam informações textuais. Por exemplo, a \cref{tab:nivel} poderia ser considerada um quadro. Para construir um quadro, utilize o ambiente \texttt{quadro} (ao invés do ambiente \texttt{table}), disponível na classe UnB\TeX. Além da lista de tabelas, elemento pré-textual inserido por meio do comando \verb|\listoftables| no arquivo \texttt{tex} principal, também é possível incluir a lista de quadros com o comando \verb|\listofquadros|.
% ---
\section{Figuras}
% ---
-Se a figura que for incluída se tratar de um diagrama, um gráfico ou uma ilustração que você mesmo produza, priorize o uso de imagens vetoriais no formato \texttt{pdf}, como no caso da \cref{fig:grafico}. Assim, o tamanho do arquivo do trabalho será menor e as imagens terão uma apresentação melhor, uma vez que imagens vetoriais são escaláveis para qualquer dimensão.
+Se a figura a ser incluída no documento se tratar de um diagrama, um gráfico ou uma ilustração que você mesmo produza, priorize o uso de imagens vetoriais no formato \texttt{pdf}, como no caso da \cref{fig:blockdiag1}. Assim, o tamanho do arquivo será menor e as imagens terão uma apresentação melhor, uma vez que imagens vetoriais são escaláveis para qualquer dimensão. Para manter a coerência no uso de software livre (já que você está usando \LaTeX), teste a ferramenta \textsf{InkScape} (\url{https://inkscape.org/}). Ela é uma excelente opção de código-livre para produzir ilustrações vetoriais, similar ao CorelDraw ou ao Adobe Illustrator.
\begin{figure}[htb]
\centering
- \caption{Resposta em frequência de malha aberta}
- \label{fig:grafico}
- \includegraphics[scale=1]{bodediagram.pdf}
+ \caption{Sistema em malha fechada, com realimentação da saída}
+ \label{fig:blockdiag1}
+ \includegraphics[scale=1]{blockdiagram.pdf}
+ \fonte{Elaborada pelo autor}
\end{figure}
-Para manter a coerência no uso de software livre (já que você está usando \LaTeX), teste a ferramenta \textsf{InkScape} (\url{http://inkscape.org/}). Ela é uma excelente opção de código-livre para produzir ilustrações vetoriais, similar ao CorelDraw ou ao Adobe Illustrator.
+Caso não seja possível utilizar arquivos de imagens como \texttt{pdf}, utilize qualquer outro formato, como \texttt{jpeg}, \texttt{gif} e \texttt{bmp}. Estes formatos requerem maior tempo de processamento, mas você pode tentar aprimorar seus conteúdos com o software livre \textsf{Gimp} (\url{https://www.gimp.org/}), uma alternativa livre ao Adobe Photoshop.
+
+Também é possível criar figuras, diagramas e gráficos utilizando comandos de pacotes disponíveis para o \LaTeX, como \textsf{TikZ}. Entretanto, tais pacotes requerem elevado tempo de processamento no Overleaf e, por isso, não foram utilizados neste documento.
-De todo modo, caso não seja possível utilizar arquivos de imagens como \texttt{pdf}, utilize qualquer outro formato, como \texttt{jpeg}, \texttt{gif} e \texttt{bmp}. Estes formatos requerem maior tempo de processamento, mas você pode tentar aprimorar seus conteúdos com o software livre \textsf{Gimp} (\url{http://www.gimp.org/}), uma alternativa livre ao Adobe Photoshop. A \cref{fig:logolatex} mostra como é fácil inserir uma figura com legenda e referência à fonte utilizando um arquivo no formato \texttt{png}.
+Note que, de acordo com as normas da ABNT, a legenda (\texttt{caption}) das figuras e tabelas deve aparecer na parte superior. Na parte inferior deve ser informada a fonte e podem ser incluídas notas. Caso queira que a numeração e título da figura apareça na parte inferior, dentro do ambiente \texttt{figure} utilize o comando \verb|\caption| após o comando \verb|\includegraphics|. Observe também que, diferentemente da \cref{fig:blockdiag1}, a \cref{fig:blockdiag2} tem numeração e nota com a mesma largura da figura, conforme recomendado pela ABNT. A lista de todas as figuras pode ser incluída como elemento pré-textual do trabalho por meio do comando \verb|\listoffigures| no arquivo \texttt{tex} principal.
\begin{figure}[htb]
- \begin{center}
- \caption{Logo \LaTeX} \label{fig:logolatex}
- \includegraphics[width=0.5\linewidth]{1280px-LaTeX-logo.png}
- \captionsetup{aboveskip=0pt,belowskip=2pt}
- \fonte{Wikimedia Commons \cite{wikimedia-latex}}
- \end{center}
+\sbox0{\includegraphics[scale=1]{blockdiagram.pdf}}
+\centering\configurecaptions
+\begin{minipage}{\wd0}
+ \caption{Digrama de blocos de sistema de controle em malha fechada}
+ \label{fig:blockdiag2}
+ \usebox0
+ \nota{Elaborada pelo autor}
+\end{minipage}
\end{figure}
-Também é possível criar figuras, diagramas e gráficos utilizando comandos de pacotes disponíveis para o \LaTeX, como \textsf{TikZ}. Entretanto, tais pacotes requerem elevado tempo de processamento no Overleaf e, por isso, não foram utilizados neste documento.
-
-Note que, de acordo com as normas da ABNT, numeração e título das figuras e tabelas devem aparecer na parte superior. Na parte inferior deve ser informada a fonte.
-
% ---
\subsection{Figuras em \emph{minipages}}
% ---
@@ -116,6 +127,7 @@ Note que, de acordo com as normas da ABNT, numeração e título das figuras e t
\caption{Imagem da minipage}
\label{fig:minipage_circuito}
\includegraphics[scale=1]{circuito.pdf}
+ \fonte{Elaborada pelo autor}
\end{minipage}
\hfill
\begin{minipage}[t]{0.52\textwidth}
@@ -123,6 +135,7 @@ Note que, de acordo com as normas da ABNT, numeração e título das figuras e t
\caption{Gráfico da minipage}
\label{fig:minipage_grafico}
\includegraphics[scale=1.2]{diodocurva.pdf}
+ \fonte{Elaborada pelo autor}
\end{minipage}
\end{figure}
@@ -135,10 +148,11 @@ O pacote \textsf{subfig} foi utilizado para inserir as \cref{fig:subfigura_circu
\centering
\caption{Figura com subfiguras}
\label{fig:subfiguras}
- \subfloat[Primeira subfigura]{\label{fig:subfigura_circuito} \centering
- \includegraphics[scale=1]{circuito.pdf}}
- \subfloat[Segunda subfigura]{\label{fig:subfigura_grafico} \hspace{0.4em}
+ \subfloat[Primeira subfigura]{\label{fig:subfigura_circuito}
+ \centering \includegraphics[scale=1]{circuito.pdf}} \hfill
+ \subfloat[Segunda subfigura]{\label{fig:subfigura_grafico}
\centering \includegraphics[scale=1.2]{diodocurva.pdf}}
+ \fonte{Elaborada pelo autor}
\end{figure}
% utiliza o pacote subcaption
@@ -167,23 +181,21 @@ Caso queira utilizar as mesmas fontes tipográficas do texto para escrever dentr
\begin{figure}[htb]
\centering
- \caption{Uso do pacote \textsf{psfrag}}
- \subfloat[Arquivo \texttt{blockdiagram.pdf}]{\label{fig:psfrag1} \centering
- \includegraphics[scale=1]{blockdiagram.pdf}} \\
+ \caption{Uso do pacote \textsf{psfrag}}\label{fig:psgrag}
+ \subfloat[Arquivo \texttt{blockdiagram.pdf}]{\label{fig:psfrag1}
+ \centering \includegraphics[scale=1]{blockdiagram.pdf}} \\
\subfloat[Arquivo \texttt{blockdiagram.eps}]{\label{fig:psfrag2}
\centering \includegraphics[scale=1]{blockdiagram.eps}}
- \label{fig:psgrag}
+ \fonte{Elaborada pelo autor}
\end{figure}
-Crie no Overleaf um novo projeto que tenha o conteúdo do \cref{cod:tex} dentro de um arquivo \texttt{tex} nomeado, por exemplo, como \texttt{blockdiagram.tex}. No menu do Overleaf, altere o compilador de \texttt{pdfLaTeX} para \texttt{LaTeX} e defina o arquivo \texttt{blockdiagram.tex} como principal. Coloque o arquivo \texttt{blockdiagram.eps} dentro do projeto e compile. A saída gerada, corresponde à \cref{fig:psfrag1}, deve ser salva como \texttt{blockdiagram.pdf}. Este arquivo poderá ser carregado no projeto do texto do trabalho (TCC, dissertação ou tese) que você estiver escrevendo com o UnB\TeX\ (que usa o \texttt{pdfLaTeX} como compilador).
-
-\lstinputlisting[numbers=none,float,caption={\texttt{blockdiagram.tex}},label={cod:tex}]{unbtex-example/codigos/blockdiagram.tex}
-
-Observe na \cref{fig:psfrag2} que o ``\texttt{g}'' é substituído por ``$G(s)$'' na \cref{fig:psfrag1}. Para tal, o \cref{cod:tex} utiliza o seguinte comando do pacote \textsf{psfrag}:
+Crie no Overleaf um novo projeto que tenha o conteúdo do \cref{cod:tex} dentro de um arquivo \texttt{tex} nomeado, por exemplo, como \texttt{blockdiagram.tex}. No menu do Overleaf, altere o compilador de \texttt{pdfLaTeX} para \texttt{LaTeX} e defina o arquivo \texttt{blockdiagram.tex} como principal. Coloque o arquivo \texttt{blockdiagram.eps} dentro do projeto e compile. A saída gerada, corresponde à \cref{fig:psfrag1}, deve ser salva como \texttt{blockdiagram.pdf}. Este arquivo poderá ser carregado no projeto do texto do trabalho (TCC, dissertação ou tese) que você estiver escrevendo com o UnB\TeX\ (que usa o \texttt{pdfLaTeX} como compilador). Observe na \cref{fig:psfrag2} que o ``\texttt{g}'' é substituído por ``$G(s)$'' na \cref{fig:psfrag1}. Para tal, o \cref{cod:tex} utiliza o seguinte comando do pacote \textsf{psfrag}:
\begin{verbatim}
\psfrag{g}[c][c]{\footnotesize $G(s)$}
\end{verbatim}
-O pacote \textsf{psfrag} funciona apenas com o compilador \texttt{LaTeX}, o que torna a criação de um novo projeto no Overleaf uma boa solução. Este projeto poderá ser aproveitado para gerar outras figuras do documento principal. Para mais informações sobre o pacote, consulte seu manual\footnote{Disponível em \url{http://mirrors.ctan.org/macros/latex/contrib/psfrag/pfgguide.pdf}}.
+\lstinputlisting[numbers=none,caption={\texttt{blockdiagram.tex}},label={cod:tex}]{unbtex-example/codigos/blockdiagram.tex}
+
+O pacote \textsf{psfrag} funciona apenas com o compilador \texttt{LaTeX}, o que torna a criação de um novo projeto no Overleaf uma boa solução. Este projeto poderá ser aproveitado para gerar outras figuras do documento principal. Para mais informações sobre o pacote, consulte seu manual\footnote{Disponível em \url{https://mirrors.ctan.org/macros/latex/contrib/psfrag/pfgguide.pdf}}.
Evite o uso de figuras no formato \texttt{eps} no documento principal. Documentos que usam a classe UnB\TeX\ precisam ser compilados pelo \texttt{pdfLaTeX}, que inicialmente converte os arquivos \texttt{eps} para o formato \texttt{pdf}, exigindo maior tempo de processamento. O projeto auxiliar (\cref{cod:tex}) usa a classe \texttt{article} e admite compilador \texttt{LaTeX}, que não necessita de etapas adicionais para processar códigos que chamam arquivos \texttt{eps}. \ No newline at end of file
diff --git a/macros/latex/contrib/unbtex/unbtex-example/capitulo4.tex b/macros/latex/contrib/unbtex/unbtex-example/capitulo4.tex
index cb9577b192..db12917a52 100644
--- a/macros/latex/contrib/unbtex/unbtex-example/capitulo4.tex
+++ b/macros/latex/contrib/unbtex/unbtex-example/capitulo4.tex
@@ -1,15 +1,25 @@
% ----------------------------------------------------------
-\chapter{Ambientes}
+\chapter{Ambientes do UnB\TeX}
% ----------------------------------------------------------
-A classe UnB\TeX\ disponibiliza alguns ``ambientes'', ou seja, caixas de texto com formatação especial para certos tipos de elementos, que podem ser automaticamente numerados (por exemplo, \cref{thm:WYSIWYG}, \cref{exc:in}, \cref{alg:NNMPC}, etc.). Esses ambientes foram adaptados a partir do modelo de \citeonline{Castro2019}.
+A classe UnB\TeX\ disponibiliza alguns ``ambientes'', ou seja, caixas de texto com formatação especial para certos tipos de elementos, que podem ser automaticamente numerados (por exemplo, \cref{def:WYSIWYG}, \cref{thm:WYSIWYG}, \cref{alg:ex}, etc.).
\section{Estilo teorema}
-\begin{definition}
+Criados com auxílio do pacote \textsf{mdframed}\footnote{Disponível em \url{https://mirrors.ctan.org/macros/latex/contrib/mdframed/mdframed.pdf}} e inspirados no modelo de \citeonline{Castro2019}, estão disponíveis os ambientes: \texttt{theorem}, \texttt{lemma}, \texttt{proposition}, \texttt{corollary}, \texttt{definition}, \texttt{as\-sumption}, \texttt{axiom}, \texttt{conjecture}, \texttt{property}, \texttt{example}, \texttt{exercise}, \texttt{problem}, \texttt{remark}, \texttt{proof} e \texttt{solution}. Alguns exemplos de uso são apresentados a seguir.
+
+\begin{definition}\label{def:WYSIWYG}
O WYSIWYG (ou ``What You See Is What You Get - O que você vê é o formato final'') é um tipo de editor HTML que permite editar sua página da Web em uma visualização simplificada e sem código de aparência semelhante à do layout da página real.
\end{definition}
+\begin{theorem}[Teorema LaTeX-WYSIWYG]\label{thm:WYSIWYG}
+ Todo físico prefere usar código \LaTeX\ puro que qualquer editor WYSIWYG.
+\end{theorem}
+
+\begin{proof}
+ Físicos gostam de equações bonitas. Editores What-You-See-Is-What-You-Get não são apropriados para fazer equações bonitas\footnote{É certo que há editores WYSIWYG baseados em \LaTeX, mas eles não nos dão o mesmo nível de controle.}. Logo, se algum físico preferisse usar um editor WYSIWYG no lugar de \LaTeX, não seria muito inteligente. Como todo físico é inteligente, o teorema está demonstrado \textit{ad absurdum}.
+\end{proof}
+
\begin{proposition}\label{prop:WYSIWYG}
\LaTeX\ produz equações mais bonitas que qualquer editor WYSIWYG.
\end{proposition}
@@ -18,21 +28,13 @@ O WYSIWYG (ou ``What You See Is What You Get - O que você vê é o formato fina
Teste.
\end{lemma}
-\begin{remark}
- \LaTeX\ produz equações mais bonitas que qualquer editor WYSIWYG.
-\end{remark}
-
-\begin{theorem}[Teorema LaTeX-WYSIWYG]\label{thm:WYSIWYG}
- Todo físico prefere usar código \LaTeX\ puro que qualquer editor WYSIWYG.
-\end{theorem}
-
\begin{corollary}
Teste.
\end{corollary}
-\begin{proof}
- Físicos gostam de equações bonitas. Editores What-You-See-Is-What-You-Get não são apropriados para fazer equações bonitas\footnote{É certo que há editores WYSIWYG baseados em \LaTeX, mas eles não nos dão o mesmo nível de controle.}. Logo, se algum físico preferisse usar um editor WYSIWYG no lugar de \LaTeX, não seria muito inteligente. Como todo físico é inteligente, o teorema está demonstrado \textit{ad absurdum}.
-\end{proof}
+\begin{remark}
+ \LaTeX\ produz equações mais bonitas que qualquer editor WYSIWYG.
+\end{remark}
\begin{exercise}\label{exc:in}
Explique como Isaac Newton usaria cada um dos pacotes seguintes, se vivesse no tempo presente:
@@ -44,53 +46,42 @@ O WYSIWYG (ou ``What You See Is What You Get - O que você vê é o formato fina
\end{enumerate}
\end{exercise}
-\begin{example}\label{exp:ae}
- Einstein usaria um editor WYSIWYG ou \LaTeX? \\
- Einstein era físico. Portanto, usando o teorema LaTeX-WYSIWYG, concluímos que ele usaria \LaTeX.
-\end{example}
+%\begin{example}\label{exp:ae}
+% Einstein usaria um editor WYSIWYG ou \LaTeX? \\
+% Einstein era físico. Portanto, usando o teorema LaTeX-WYSIWYG, concluímos que ele usaria \LaTeX.
+%\end{example}
-\section{Algoritmo}
+\section{Pseudocódigos}
-O \cref{alg:NNMPC} é um pseudo-código para obtenção de um controlador preditivo baseado em modelo e em redes neurais.
+O \cref{alg:ex} é um exemplo de pseudocódigo, inserido com auxílio do pacote \textsf{algorithm2e}. Mais opções de uso (e de comandos) podem ser encontradas em seu manual\footnote{Disponível em \url{https://mirrors.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf}}.
\begin{algorithm}[htb]
-%\linespread{1.0}\selectfont % espaçamento entre as linhas do algoritmo
-\caption{Pseudocódigo de MPC baseado em redes neurais para consenso}
-\label{alg:NNMPC}
-\begin{algorithmic}[1] %\opção para numerar as linhas [1]
-%\Procedure{Roy}{$a,b$} \Comment{This is a test}
- \State Inicialização do sistema em $x(0), \theta(0)$
- \State $J = V(e(0),\theta(0))$
- \State $K^{ab}_0 = 0$ $\forall (a,b)$
- \State $dataset \gets [K_0,J]$
- \For{$k = 1:k_{max}$} \Comment{Laço de simulação}
- \State $(W,Y) \gets train(dataset)$
- \State $\tilde{J} = Y\sigma(Wz)$ $\forall K^{ab}_k\pm \delta_K$
- \State $K_k^{\ast} = arg \min_{K_k}(\tilde{J})$
- \State $u(k) = \left( L(\theta(k)) \otimes K_k^{\ast} \right) x(k)$
- \State $\hat{x}(k) = x(k)$; $\hat{\theta}(k) = \theta(k)$
- \For{$t = k+1:k+h+1$} \Comment{Laço de predição}
- \State $\hat{\theta}(t) = randMarkov(\hat{\theta}(t-1),\Pi)$
- \State $p = \hat{\theta}(t)$
- \State $\hat{u}(t) = \left( L(p) \otimes K_k^{\ast} \right) \hat{x}(t)$
- \State $\hat{x}(t+1) = F_{p}(\hat{x}(t))$
- \State $x_0(t) = mean(\hat{x}(t))$
- \State $\hat{e}(t) = F_{p}(\hat{x}(t)) - \boldsymbol{1_N} f_{p0}(x(t)) $
- \State $\hat{V}_{t} = \hat{e}^T(t)P_{p}\hat{e}(t)$
- \EndFor
- \State $\hat{J} = \sum_{t = k+1}^{k+h+1} \hat{V}_{t}$
- \State $dataset \gets [K^{\ast}_k,\hat{J}]$
- \State $x(k+1) = F_{p}(x(k))$
- \EndFor
-%\EndProcedure
-\end{algorithmic}
+\caption{Exemplo de pseudocódigo}\label{alg:ex}
+\KwData{$n \geq 0$}
+\KwResult{$y = x^n$}
+$y \gets 1$\;
+$X \gets x$\;
+$N \gets n$\;
+%\While{$N \neq 0$}{
+\While(\tcc*[f]{Isso é um comentário}){$N \neq 0$}{
+ \eIf{$N$ for par}{
+ $X \gets X \times X$\;
+ $N \gets \frac{N}{2}$ \tcc*[r]{Isso é outro comentário}
+ }{\If{$N$ for impar}{
+ $y \gets y \times X$\;
+ $N \gets N - 1$\;
+ }
+ }
+}
\end{algorithm}
-\section{Programa}
+A lista com todos os algoritmos é um elemento pré-textual não obrigatório de trabalhos acadêmicos e pode ser gerada e incluída utilizando-se o comando \verb|\listofalgorithms| no arquivo \texttt{tex} principal.
+
+\section{Códigos-fonte}
-O \cref{cod:exemplo} é um exemplo de programa. Para mais exemplos, confira o \cref{apd:cdg}.
+O \cref{cod:exemplo} é um exemplo de código-fonte, inserido com auxílio do pacote \textsf{listings}. Para mais exemplos e comandos, confira o \cref{apd:cdg} e o manual do pacote\footnote{Disponível em \url{https://mirrors.ctan.org/macros/latex/contrib/listings/listings.pdf}}. A lista com todos os códigos-fonte é um elemento pré-textual não obrigatório de trabalhos acadêmicos e pode ser gerada e incluída utilizando-se o comando \verb|\lstlistoflistings| no arquivo \texttt{tex} principal.
-\begin{lstlisting}[caption={Exemplo de programa},label={cod:exemplo}]
+\begin{lstlisting}[float=htb,caption={Exemplo de código-fonte},label={cod:exemplo}]
/**
* MSO: ativa o servo cujo eixo eh descrito
* por drive_axis; informacoes de controle
diff --git a/macros/latex/contrib/unbtex/unbtex-example/codigos/blockdiagram.tex b/macros/latex/contrib/unbtex/unbtex-example/codigos/blockdiagram.tex
index 5205f3e20d..fdcced02af 100644
--- a/macros/latex/contrib/unbtex/unbtex-example/codigos/blockdiagram.tex
+++ b/macros/latex/contrib/unbtex/unbtex-example/codigos/blockdiagram.tex
@@ -2,6 +2,7 @@
\usepackage{stickstootext}
\usepackage[stickstoo,vvarbb]{newtxmath}
+\usepackage[cal=stixplain,scr=stixtwofancy,frak=stixtwo,bb=stix]{mathalfa}
\usepackage[scale=0.90]{tgheros}
\usepackage[scale=1]{inconsolata}
\usepackage{pst-pdf}
diff --git a/macros/latex/contrib/unbtex/unbtex-example/codigos/controle.m b/macros/latex/contrib/unbtex/unbtex-example/codigos/controle.m
index 0c67f89df8..90df7ccc93 100644
--- a/macros/latex/contrib/unbtex/unbtex-example/codigos/controle.m
+++ b/macros/latex/contrib/unbtex/unbtex-example/codigos/controle.m
@@ -1,9 +1,7 @@
-% Controle com realimentação de estados
+% Controle por realimentação de estados
pC = (0.6)*ones(1,5);
pC(4) = 0.5 + 0.4*1i;
pC(5) = 0.5 - 0.4*1i;
-
-%Seguindo controle digital...
n = 4;
m = 1;
@@ -11,7 +9,5 @@ Ahat = [A, B; zeros(1,n), 0];
Bhat = [zeros(n,1); eye(m)];
Khat = acker(Ahat, Bhat, pC);
K = (Khat + [zeros(m, n), eye(m)])/([A - eye(n), B; H*A, H*B]);
-
-% Ganhos para utilizar na realimentação
Ki = K(5);
Kp = K(1:4); \ No newline at end of file
diff --git a/macros/latex/contrib/unbtex/unbtex-example/codigos/controleSmithPredictor.py b/macros/latex/contrib/unbtex/unbtex-example/codigos/controleSmithPredictor.py
index ebcea45cf4..fb56d1d343 100644
--- a/macros/latex/contrib/unbtex/unbtex-example/codigos/controleSmithPredictor.py
+++ b/macros/latex/contrib/unbtex/unbtex-example/codigos/controleSmithPredictor.py
@@ -19,7 +19,7 @@ t = numpy.array(range(0, n_t)) * Ts
# time = linspace(0,10,n_t)
# instantiate the plant that will be used, it should be a subclass of Plant
-plant = PlantOPC(opc,'[CLP_AB]position','[CLP_AB]speed',init_pos)
+plant = PlantOPC(opc, '[CLP_AB]position', '[CLP_AB]speed', init_pos)
model = Model(n, A, B, C, D, Ak, Bk, Ck, Q, R, Kp, Ki, epsilon, Ts, plant)
start = time.clock()
@@ -40,11 +40,11 @@ plt.plot(t, y_topo[0:n_t], label='ref topo (in)')
plt.legend(loc=4)
plt.xlabel('time (s)')
plt.ylabel('position (m)')
-plt.title('Position of cart - close loop')
+plt.title('Position of cart - closed loop')
plt.grid(True)
# plt.show()
-plt.savefig("resultados/closed_loop_trajetoria_rafael.png", format='png', dpi=200)
-File = open('resultados/trajetoria_rafael.npz','wb')
+plt.savefig("resultados/closed_loop.png", format='png', dpi=200)
+File = open('resultados/trajetoria.npz', 'wb')
numpy.savez(File, t=t, y_topo=y_topo, y_fundo=y_fundo, y_out=y_out, pC=pC, Ki=Ki, Kp=Kp)
File.close()
diff --git a/macros/latex/contrib/unbtex/unbtex-example/figuras/1280px-LaTeX-logo.png b/macros/latex/contrib/unbtex/unbtex-example/figuras/1280px-LaTeX-logo.png
deleted file mode 100644
index ee8e5109a7..0000000000
--- a/macros/latex/contrib/unbtex/unbtex-example/figuras/1280px-LaTeX-logo.png
+++ /dev/null
Binary files differ
diff --git a/macros/latex/contrib/unbtex/unbtex-example/figuras/bodediagram.pdf b/macros/latex/contrib/unbtex/unbtex-example/figuras/bodediagram.pdf
deleted file mode 100644
index c1410d377d..0000000000
--- a/macros/latex/contrib/unbtex/unbtex-example/figuras/bodediagram.pdf
+++ /dev/null
Binary files differ
diff --git a/macros/latex/contrib/unbtex/unbtex-example/figuras/capa_fundo.pdf b/macros/latex/contrib/unbtex/unbtex-example/figuras/capa_fundo.pdf
deleted file mode 100644
index 57a7fd2881..0000000000
--- a/macros/latex/contrib/unbtex/unbtex-example/figuras/capa_fundo.pdf
+++ /dev/null
Binary files differ
diff --git a/macros/latex/contrib/unbtex/unbtex-example/referencias.bib b/macros/latex/contrib/unbtex/unbtex-example/referencias.bib
index d247828400..0213a42828 100644
--- a/macros/latex/contrib/unbtex/unbtex-example/referencias.bib
+++ b/macros/latex/contrib/unbtex/unbtex-example/referencias.bib
@@ -11,8 +11,8 @@
number = {3},
pages = {342--351}}
-@article{van86,
- author = {{van}, Gigch, John P. and Leo L. Pipino},
+@article{gigch86,
+ author = {John P. van Gigch and Leo L. Pipino},
journal = {Future Computing Systems},
number = {1},
pages = {71-97},
@@ -24,7 +24,8 @@
address = {Rio de Janeiro},
author = {IBGE},
edition = {3},
- url = {http://biblioteca.ibge.gov.br/visualizacao/livros/liv23907.pdf},
+ url = {https://biblioteca.ibge.gov.br/visualizacao/livros/liv23907.pdf},
+ urlaccessdate = {24 jan. 2019},
publisher = {Centro de Documenta{\c c}\~ao e Dissemina{\c c}\~ao de Informa{\c c}ões. Funda{\c c}\~ao Instituto Brasileiro de Geografia e Estat{\'i}stica},
title = {Normas de apresenta{\c c}\~ao tabular},
year = {1993}}
@@ -47,13 +48,13 @@
pages = {2347-2360},
publisher = {CRC Press},
title = {Information},
- url = {http://pages.gseis.ucla.edu/faculty/bates/articles/information.html},
+ url = {https://pages.gseis.ucla.edu/faculty/bates/articles/information.html},
volume = {3},
year = {2010}}
@inproceedings{martin1997,
address = {Rio de Janeiro},
- author = {Martin, Neto, L. and C. Bayer and J. Mielniczuk},
+ author = {L. Martin{ }Neto and C. Bayer and J. Mielniczuk},
booktitle = {Resumos do [...]},
conference-number = {26},
conference-year = {1997},
@@ -69,33 +70,40 @@
author = {Lauro C{\'e}sar Araujo},
organization = {Equipe abnTeX2},
title = {O pacote abntex2cite: Estilos bibliogr{\'a}ficos compat{\'i}veis com a ABNT NBR 6023},
- url = {http://mirrors.ctan.org/macros/latex/contrib/abntex2/doc/abntex2cite.pdf},
- year = {2018},
- bdsk-Url-1 = {http://www.abntex.net.br/}}
+ url = {https://mirrors.ctan.org/macros/latex/contrib/abntex2/doc/abntex2cite.pdf},
+ year = {2018}}
@manual{abntex2cite-alf,
annote = {Este documento {\'e} derivado do \cite{abnt-bibtex-alf-doc}},
author = {Lauro C{\'e}sar Araujo},
organization = {Equipe abnTeX2},
title = {O pacote abntex2cite: t{\'o}picos espec{\'i}ficos da ABNT NBR 10520:2002 e o estilo bibliogr{\'a}fico alfab{\'e}tico (sistema autor-data)},
- url = {http://mirrors.ctan.org/macros/latex/contrib/abntex2/doc/abntex2cite-alf.pdf},
- year = {2018},
- bdsk-Url-1 = {http://www.abntex.net.br/}}
+ url = {https://mirrors.ctan.org/macros/latex/contrib/abntex2/doc/abntex2cite-alf.pdf},
+ year = {2018}}
@manual{abntex2classe,
author = {Lauro C\'esar Araujo},
organization = {Equipe abnTeX2},
title = {A classe abntex2: Documentos t\'ecnicos e cient\'ificos brasileiros compat\'iveis com as normas ABNT},
- url = {http://mirrors.ctan.org/macros/latex/contrib/abntex2/doc/abntex2.pdf},
- year = {2018},
- bdsk-Url-1 = {http://www.abntex.net.br/}}
+ url = {https://mirrors.ctan.org/macros/latex/contrib/abntex2/doc/abntex2.pdf},
+ year = {2018}}
+
+@manual{metodista,
+ address = {S\~ao Bernardo do Campo},
+ organization = {Universidade Metodista de S\~ao Paulo},
+ org-short = {Metodista},
+ title = {Biblioteca Dr. Jalmar Bowden},
+ subtitle = {Manual de refer\^encia},
+ url = {http://portal.metodista.br/biblioteca/servicos/manual-de-referencias},
+ urlaccessdate = {5 set. 2024},
+ year = {$\lbrack$2015?$\rbrack$}}
@manual{memoir,
address = {Normandy Park, WA},
author = {Peter Wilson and Lars Madsen},
organization = {The Herries Press},
title = {The Memoir Class for Configurable Typesetting -- User Guide},
- url = {http://mirrors.ctan.org/macros/latex/contrib/memoir/memman.pdf},
+ url = {https://mirrors.ctan.org/macros/latex/contrib/memoir/memman.pdf},
year = {2024}}
@manual{NBR10520:2002,
@@ -154,13 +162,6 @@
url = {https://www.overleaf.com/latex/templates/modelo-de-livro-para-editora-unb/trznrgjcsyfg},
year = {2019}}
-@misc{wikimedia-latex,
- author = {{Wikimedia Commons}},
- title = {File: {\normalfont LaTeX logo.svg}},
- year = {2008},
- url = {https://upload.wikimedia.org/wikipedia/commons/9/92/LaTeX_logo.svg},
- urlaccessdate={24 jan. 2019}}
-
@monography{morgado1990,
address = {S\~ao Paulo},
author = {M. L. C. Morgado},
@@ -176,7 +177,6 @@
author = {Giancarlo Guizzardi},
school = {Centre for Telematics and Information Technology, University of Twente},
title = {Ontological Foundations for Structural Conceptual Models},
- url = {http://www.loa.istc.cnr.it/Guizzardi/SELMAS-CR.pdf},
year = {2005}}
@TechReport{KrueBansBierDaziRash20,
@@ -185,5 +185,5 @@
institution = {Transport and Mobility Laboratory, Ecole Polytechnique F\'ed\'erale de Lausanne},
year = {2020},
type = {Technical Report},
- number = {arXiv:1905.00419},
- address = {Lausanne, Switzerland}} \ No newline at end of file
+ doi = {10.48550/arXiv.1905.00419},
+ address = {Lausanne, Switzerland}}
diff --git a/macros/latex/contrib/unbtex/unbtex.cls b/macros/latex/contrib/unbtex/unbtex.cls
index 39f277761d..75535a7a14 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.5.1 2024/03/02
+%% Version 1.5.3 2024/10/07
%% Copyright (C) 2021-2024 by Henrique C. Ferreira <hcferreira@unb.br>
%%
%% This class file may be distributed and/or modified under the conditions
@@ -9,7 +9,7 @@
%% or (at your option) any later version. The latest version of this
%% license is in:
%%
-%% http://www.latex-project.org/lppl.txt
+%% https://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.
@@ -21,7 +21,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{unbtex}[2024/03/02 v1.5.1 Modelo da Universidade de Brasília baseado em abnTeX2]
+\ProvidesClass{unbtex}[2024/10/07 v1.5.3 Modelo da Universidade de Brasília baseado em abnTeX2]
% ------------------------------------------------------------------------
% Opções para a classe
@@ -44,13 +44,22 @@
% ---
% ---
+% Opção para definição de estilo de numeração de figuras, tabelas, etc
+% ---
+\def\numb{chap} % Numeração por capítulo, por default
+\DeclareOption{numb=chap}{\def\numb{chap}}
+\DeclareOption{numb=abnt}{\def\numb{abnt}}
+% ---
+
+% ---
% Repassa demais opções à classe abntex2
% ---
\DeclareOption*{
\PassOptionsToClass{\CurrentOption}{abntex2}
}
+\PassOptionsToPackage{english,brazil}{babel}
\ProcessOptions\relax
-\LoadClass[12pt,a4paper,onecolumn,openright]{abntex2}
+\LoadClass[12pt,a4paper]{abntex2}
% ---
% ------------------------------------------------------------------------
@@ -60,7 +69,7 @@
% ---
% Pacotes matemáticos
% ---
-\RequirePackage{mathtools} % Melhoria nas equaões
+\RequirePackage{mathtools} % Melhoria nas equações
\RequirePackage{amsthm} % Para configuração de ambientes do tipo teorema
% ---
@@ -69,18 +78,12 @@
% ---
\RequirePackage{stickstootext} % Fonte principal (Stix2)
\RequirePackage[stickstoo,vvarbb]{newtxmath} % Fonte matemática (Stix2)
+\RequirePackage[cal=stixplain,scr=stixtwofancy,frak=stixtwo,bb=stix]{mathalfa}
\RequirePackage[scale=0.90]{tgheros} % Fonte sans serif (TeX Gyre Heros)
\RequirePackage[scale=1]{inconsolata} % Fonte monoespaçada
% ---
% ---
-% Pacotes para figuras
-% ---
-\RequirePackage[captionskip=8pt]{subfig} % Permite fazer subfiguras
-%\RequirePackage[skip=8pt]{subcaption} % Permite fazer subfiguras
-% ---
-
-% ---
% Cores verde e azul UnB
% http://www.marca.unb.br/arquivosdigitais/files/guia_pratico/guia_pratico.pdf
% ---
@@ -88,7 +91,6 @@
\RequirePackage[dvipsnames]{xcolor}
\definecolor{verdeunb}{cmyk}{1,0,1,0.2}
\definecolor{azulunb}{cmyk}{1,0.65,0,0.35}
-
% Cores nos títulos
\renewcommand{\tocheadstart}{}
\renewcommand{\ABNTEXchapterfont}{\bfseries\color{verdeunb}\sffamily}
@@ -96,8 +98,65 @@
% ---
% ---
-% Configurações para tabelas
+% Configurações para a opção article
+% ---
+\ifthenelse{\equal{\ABNTEXistwocolumn}{true}}{
+\renewcommand{\ABNTEXisarticle}{true}}{}
+\ifthenelse{\equal{\ABNTEXisarticle}{true}}{
+\chapterstyle{article}
+\numberwithin{section}{chapter}
+\renewcommand{\chaptitlefont}{\bfseries\sffamily\Large\color{verdeunb}}
+\setsecheadstyle{\large\bfseries\sffamily\color{verdeunb}}
+\setsubsecheadstyle{\normalfont\bfseries\sffamily}
+\renewcommand{\chapternamenum}[1]{\ifanappendix \chaptitlefont\appendixname\space#1\else #1\fi}
+\renewcommand{\afterchapternum}{\ifanappendix\space\hspace{-20pt}\enspace\textendash\enspace\fi}
+\setlength\absleftindent{0cm}
+\setlength\absrightindent{0cm}
+\renewcommand{\abstracttextfont}{\normalfont\normalsize}
+\ifthenelse{\equal{\ABNTEXistwocolumn}{false}}{
+\setlength{\parindent}{2.3em} % Tamanho da indentação da primeira linha do parágrafo
+\setlength{\parskip}{.1\baselineskip plus .05\baselineskip} % Espaço entre parágrafos
+\setlrmarginsandblock{2cm}{2cm}{*}
+\setulmarginsandblock{2.5cm}{2cm}{*}
+\checkandfixthelayout[nearest]}{
+\input{mem11.clo} % Tamanho da fonte
+\SingleSpacing
+\setlength{\parindent}{1.8em}
+\AtBeginEnvironment{thebibliography}{\linespread{0.8}\selectfont}
+\setlength{\columnsep}{7.5mm}
+\def\@mathmargin{0pt}
+\setlrmarginsandblock{1.5cm}{1.5cm}{*}
+\setulmarginsandblock{2.5cm}{2cm}{*}
+\checkandfixthelayout[nearest]}
+\ifthenelse{\boolean{ABNTEXsumario-tradicional}}{}{
+\renewcommand{\tocpartapendices}{\addtocontents{toc}{
+\cftsetindents{chapter}{\cftlastnumwidth}{2em}}\cftinserthook{toc}{A}}
+\renewcommand{\tocpartanexos}{\addtocontents{toc}{
+\cftsetindents{chapter}{\cftlastnumwidth}{2em}}
+\cftinserthook{toc}{A}}}}{ % Opção article não utilizada
+\setlrmarginsandblock{3cm}{2cm}{*} % Margens esquerda e direita
+\setulmarginsandblock{3cm}{2cm}{*} % Margens superior e inferior
+\checkandfixthelayout[nearest]
+\setlength{\parindent}{2.3em} % Tamanho da indentação da primeira linha do parágrafo
+\setlength{\parskip}{.1\baselineskip plus .05\baselineskip} % Espaço entre parágrafos
+}
+\renewcommand{\maketitlehookb}{\vskip -1.5\topsep\vskip -1.5\partopsep}
+\pretitle{\begin{center}\color{verdeunb}\LARGE\sffamily\bfseries}
+\posttitle{\par\end{center}\vskip 0.5em}
+\renewcommand{\and}{\unskip, }
+% ---
+
% ---
+% Pacotes para figuras
+% ---
+\RequirePackage[captionskip=8pt]{subfig} % Permite fazer subfiguras
+%\RequirePackage[skip=8pt]{subcaption} % Permite fazer subfiguras
+% ---
+
+% ---
+% Configurações para tabelas e quadros
+% ---
+\RequirePackage{longtable}% Para tabelas longas
\RequirePackage{multirow} % Para combinar linhas nas tabelas
\RequirePackage{colortbl} % Permite alterar cores de linhas e células das tabelas
\arrayrulecolor{verdeunb} % Define a cor das linhas das tabelas
@@ -107,6 +166,105 @@
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
+
+% Criacao dos ambientes flutuantes para quadros
+\newfloat[chapter]{quadro}{loq}{\Quadroname}
+\newlistof{listofquadros}{loq}{\listquadroname}
+\newlistentry{quadro}{loq}{0}
+\renewcommand{\cftquadroname}{\Quadroname\space}
+\IfStrEq{\numb}{chap}
+{\cftsetindents{quadro}{0em}{2.3em}}{\cftsetindents{quadro}{0em}{1.8em}}
+\renewcommand{\thequadro}{\thechapter.\arabic{quadro}}
+\def\QT@c@ption#1[#2]#3{%
+ \LT@makecaption#1\fnum@quadro{#3}%
+ \def\@tempa{#2}%
+ \ifx\@tempa\@empty\else
+ {\let\\\space
+ \addcontentsline{\ext@quadro}{quadro}{\protect\numberline{\thequadro}{#2}}}%
+ \fi}
+\newenvironment{longquadro}
+{\let\LT@c@ption\QT@c@ption\let\c@table\c@quadro\crefalias{table}{quadro}
+\renewcommand{\theHtable}{quadro\thechapter.\arabic{quadro}}\longtable}
+{\endlongtable}
+% ---
+
+% ---
+% Pacotes para algoritmos
+% ---
+\IfStrEq{\idioma}{brazil}
+{\usepackage[algochapter,linesnumbered,boxed,portuguese,onelanguage]{algorithm2e}
+\SetAlgorithmName{Algoritmo}{algoritmo}{Lista de algoritmos}}
+{\usepackage[algochapter,linesnumbered,boxed,english,onelanguage]{algorithm2e}
+\SetAlgorithmName{Algorithm}{algorithm}{List of algorithms}}
+\SetAlgoCaptionSeparator{\ABNTEXcaptiondelim}
+\renewcommand{\AlCapFnt}{\normalfont\small}
+\renewcommand{\AlCapNameFnt}{\small}
+\renewcommand{\@algocf@capt@boxed}{above}
+\DontPrintSemicolon
+\setlength{\algomargin}{1.8em}
+\xpatchcmd\algocf@makecaption{\hbox}{\hskip\algomargin\hbox}{}{\fail}
+\SetAlgoInsideSkip{smallskip}
+\renewcommand*\listofalgorithms{\listoftoc[\listalgorithmcfname]{loa}}
+\newcommand*{\noaddvspace}{\renewcommand*{\addvspace}[1]{}}
+\addtocontents{loa}{\protect\noaddvspace}
+% ---
+
+% ---
+% Pacote para códigos de programação
+% ---
+\RequirePackage{listings}
+% Julia (Linguagem não reconhecida automaticamente pelo pacote listings)
+\lstdefinelanguage{Julia}%
+ {morekeywords={abstract,break,case,catch,const,continue,do,else,elseif,%
+ end,export,false,for,function,immutable,import,importall,if,in,%
+ macro,module,otherwise,quote,return,switch,true,try,type,typealias,%
+ using,while},%
+ sensitive=true,%
+ alsoother={\$},%
+ morecomment=[l]\#,%
+ morecomment=[n]{\#=}{=\#},%
+ morestring=[s]{"}{"},%
+ morestring=[m]{'}{'},%
+}[keywords,comments,strings]%
+% Configurações gerais
+\definecolor{mygreen}{RGB}{28,172,0} % Color values Red, Green, Blue
+\definecolor{mylilas}{RGB}{170,55,241}
+\lstset{%
+ basicstyle=\linespread{1.08}\ttfamily\footnotesize,
+ numbers=left,%
+ numberstyle={\tiny \color{black}}, % Size of the numbers
+ numbersep=9pt, % This defines how far the numbers are from the text
+ backgroundcolor=\color{gray!10},
+ tabsize=2,
+ frame=single,
+ rulecolor=\color{black!30},
+ captionpos=t,
+ belowcaptionskip=10pt,
+ escapeinside={\%*}{*)},
+ breaklines=true,%
+ breakatwhitespace=true,
+ framextopmargin=2pt,
+ framexbottommargin=2pt,
+ keywordstyle=\color{blue},%
+ morekeywords=[2]{1}, keywordstyle=[2]{\color{black}},
+ identifierstyle=\color{black},%
+ stringstyle=\color{mylilas},
+ commentstyle=\color{mygreen},%
+ extendedchars=true,
+ inputencoding=utf8,
+ showstringspaces=false,% Without this there will be a symbol in the places where there is a space
+ literate={á}{{\'a}}1 {ã}{{\~a}}1 {é}{{\'e}}1 {ç}{{\c{c}}}1 {â}{{\^a}}1 {õ}{{\~o}}1 {ú}{{\'u}}1 {ó}{{\'o}}1 {í}{{\'i}}1 {Í}{{\'I}}1
+}
+% Configura lista de códigos
+\AtBeginDocument{%
+\renewcommand\lstlistoflistings{\bgroup
+ \let\contentsname\lstlistlistingname
+ \IfStrEq{\numb}{chap}
+ {\def\l@lstlisting##1##2{\@dottedtocline{1}{0em}{2.3em}{\lstlistingname~##1}{##2}}}
+ {\def\l@lstlisting##1##2{\@dottedtocline{1}{0em}{1.8em}{\lstlistingname~##1}{##2}}}
+ \let\lst@temp\@starttoc \def\@starttoc##1{\lst@temp{lol}}%
+ \tableofcontents \egroup}
+}
% ---
% ---
@@ -115,12 +273,24 @@
\RequirePackage{indentfirst} % Indenta o primeiro parágrafo de cada seção.
\RequirePackage{microtype} % Para melhorias de justificação
\RequirePackage{icomma} % Configura casas decimais separadas por vírgula
-\setlength{\parindent}{3em} % Tamanho da indentação da primeira linha do parágrafo
\frenchspacing % Retira espaço extra entre as frases (após o ponto final)
-\setlength{\parskip}{3pt plus 1pt minus 1pt} % Espaço entre parágrafos
+\pdfminorversion=7 % Configuração da versão do arquivo pdf produzido
+
+% Configurações dos cabeçalhos
+\makepagestyle{simple} % Cabeçalho com número de pagina e linha horizontal
+\makeevenhead{simple}{\footnotesize\thepage}{}{}
+\makeoddhead{simple}{}{}{\footnotesize\thepage}
+\makeheadrule{simple}{\textwidth}{\normalrulethickness}
+\makepagestyle{plain} % Cabeçalho com número de pagina e sem linha horizontal
+\makeevenhead{plain}{\footnotesize\thepage}{}{}
+\makeoddhead{plain}{}{}{\footnotesize\thepage}
+\newcommand{\textualsimples}{\ifthenelse{\equal{\ABNTEXisarticle}{true}}
+{\pagestyle{plain}}{\pagestyle{simple}\aliaspagestyle{chapter}{abntchapfirst}}}
+
+% Espaçamento para notas de rodapé
\setlength{\skip\footins}{20pt plus 2pt minus 2pt} % Espaço entre o texto e as notas de rodapé
\addtolength{\footnotesep}{2pt} % Espaço entre as notas de rodapé
-\pdfminorversion=7 % Configuração da versão do arquivo pdf produzido
+\renewcommand*{\footnoterule}{\kern-3pt \hrule width 5cm \kern 2.6pt} % Tamanho do traço superior (5cm)
% Ajusta espaço entre texto e figuras/tabelas
\setlength{\textfloatsep}{18pt plus 2pt minus 2pt} % Espaçamento entre texto e floats no topo/base da página
@@ -128,36 +298,47 @@
\setlength{\intextsep}{14pt plus 2pt minus 2pt} % Espaçamento entre texto e floats no meio da página
% Ajusta espaçamento nos ambientes itemize, enumerate, description e alineas
-\setlist[itemize]{topsep=0pt,itemsep=0pt,leftmargin=\parindent}
-\setlist[enumerate]{topsep=0pt,itemsep=0pt,leftmargin=\parindent}
-\setlist[description]{topsep=0pt,itemsep=0pt,leftmargin=\parindent}
-\setlist[alineas,1]{label={\alph*)},topsep=0pt,itemsep=0pt,leftmargin=\parindent}%
+\setlist[itemize,enumerate,description]{topsep=1pt,itemsep=0pt,parsep=1pt,partopsep=1pt,leftmargin=\parindent}
+\setlist[alineas,1]{label={\alph*)},topsep=1pt,itemsep=0pt,parsep=1pt,partopsep=1pt,leftmargin=\parindent}
-% Numeração por capítulo das figuras e tabelas
+% Numeração de figuras, tabelas, etc. por capítulo ou para o documento inteiro
+\AtBeginDocument{% Numeração por capítulo
+\IfStrEq{\numb}{chap}{
\renewcommand{\thefigure}{\thechapter.\arabic{figure}}\numberwithin{figure}{chapter}
\renewcommand{\thetable}{\thechapter.\arabic{table}}\numberwithin{table}{chapter}
-
-% Configuração do cabeçalho das páginas
-\pagestyle{myheadings} % Cabeçalho com linha e numeração da página
-
+\renewcommand{\theequation}{\thechapter.\arabic{equation}}\numberwithin{equation}{chapter}
+}{% Numeração para o documento inteiro (padrão ABNT)
+\counterwithout{equation}{chapter}
+\counterwithout{quadro}{chapter}
+\counterwithout{lstlisting}{chapter}
+\counterwithout{algocf}{chapter}
+\counterwithout{theorem}{chapter}
+\counterwithout{lemma}{chapter}
+\counterwithout{proposition}{chapter}
+\counterwithout{corollary}{chapter}
+\counterwithout{definition}{chapter}
+\counterwithout{assumption}{chapter}
+\counterwithout{axiom}{chapter}
+\counterwithout{conjecture}{chapter}
+\counterwithout{property}{chapter}
+\counterwithout{example}{chapter}
+\counterwithout{exercise}{chapter}
+\counterwithout{problem}{chapter}
+\counterwithout{remark}{chapter}
+}}
% Modifica o tamanho da fonte e espaçamento entre linhas no ambiente verbatim
\RequirePackage{fvextra}
\renewenvironment{verbatim}{\VerbatimEnvironment
- \begin{Verbatim}[fontsize=\small,baselinestretch=1.1]%
+ \begin{Verbatim}[fontsize=\footnotesize,baselinestretch=1.08]%
}{%
\end{Verbatim}
}%
-\fvset{listparameters=\setlength{\topsep}{6pt}\setlength{\partopsep}{0pt}}
+\fvset{listparameters=\setlength{\topsep}{4pt}\setlength{\partopsep}{0pt}}
% ---
% ---
% Configurações do Sumário
% ---
-\settocdepth{subsection}
-\setlength{\cftbeforechapterskip}{5pt plus 1pt minus 1pt}
-\setlength{\cftbeforepartskip}{10pt plus 2pt minus 2pt}
-
-% Corrige fontes tipográficas dos anexos e apêndices no sumário
\ifthenelse{\boolean{ABNTEXsumario-abnt-6027-2012}}{
\renewcommand{\cftpartfont}{\bfseries\sffamily}
\renewcommand{\cftpartpagefont}{\bfseries\sffamily}
@@ -168,6 +349,9 @@
\renewcommand{\cftchapterfont}{\bfseries\sffamily}
\renewcommand{\cftpartpagefont}{\bfseries\sffamily}
\renewcommand{\cftchapterpagefont}{\bfseries\sffamily}
+\settocdepth{subsection}
+\setlength{\cftbeforechapterskip}{5pt plus 1pt minus 1pt}
+\setlength{\cftbeforepartskip}{10pt plus 2pt minus 2pt}
}
% Corrige warning do pacote hyperref para sumário ABNT
\renewcommand{\PRIVATEapendiceconfig}[2]{%
@@ -179,9 +363,25 @@
\renewcommand{\appendixtocname}{#2}
}
\renewcommand{\appendixpagename}{#2}
- \switchchapname{#1}
+ \ifthenelse{\boolean{ABNTEXsumario-abnt-6027-2012}}
+ {\switchchapname{\MakeTextUppercase{#1}}}{\switchchapname{#1}}
\renewcommand*{\cftappendixname}{#1 \space}
}
+% Apendices - comando
+\renewcommand{\apendices}{%
+ \PRIVATEapendiceconfig{\apendicename}{\apendicesname}
+ \appendix
+}
+% Apendices - ambiente
+\renewenvironment{apendicesenv}{%
+ \PRIVATEapendiceconfig{\apendicename}{\apendicesname}
+ \crefalias{chapter}{appendix} % Adicionado
+ \begin{appendix}
+}{
+ \end{appendix}
+ \setboolean{abntex@apendiceousecao}{false}
+ \bookmarksetup{startatroot}
+}
% Corrige nome dos anexos nas referências cruzadas
\renewcommand{\anexos}{%
\cftinserthook{toc}{AAA}
@@ -194,7 +394,8 @@
\cftinserthook{toc}{AAA}
%\PRIVATEapendiceconfig{\anexoname}{\anexosname}
\PRIVATEapendiceconfig{\Anexoname}{\Anexosname}
- \crefalias{appendix}{annex}
+ %\crefalias{appendix}{annex}
+ \crefalias{chapter}{annex}%
\begin{appendix}
\renewcommand\theHchapter{anexochapback.\arabic{chapter}}
}{%
@@ -208,8 +409,7 @@
% Configurações das legendas
% ---
% Legenda das figuras/tabelas na parte superior, tamanho da fonte e espaçamento
-\captionsetup{figureposition=t,font={small},skip=10pt}
-
+\captionsetup{font=small,belowskip=2pt}
% Espaçamento vertical do comando \legend
\renewcommand{\legend}[1]{%
\M@gettitle{#1}%
@@ -226,8 +426,7 @@
\@makecaption{}{\ABNTEXfontereduzida #1}\par
\endgroup
}
-% Espaçamento vertical do comando \fonte
-% Também define o espaçamento do comando \nota
+% Espaçamento vertical do comando \fonte (e de \nota)
\renewcommand{\fonte}[2][\fontename]{%
\M@gettitle{#2}%
\memlegendinfo{#2}%
@@ -254,69 +453,7 @@
colorlinks=true,
allcolors=azulunb,
linktocpage,
- bookmarksdepth=4
-}
-% ---
-
-% ---
-% Pacotes para inserir algoritmos
-% ---
-\RequirePackage[chapter]{algorithm}
-\RequirePackage{algpseudocode}
-% Fix anchor names for algorithm lines
-\newcounter{Halgorithmic}
-\AtBeginEnvironment{algorithmic}{\stepcounter{Halgorithmic}}
-\ExpandArgs{c}\renewcommand{theHALG@line}{\arabic{Halgorithmic}.\arabic{ALG@line}}
-% ---
-
-% ---
-% Pacote para inserir códigos de programação
-% ---
-\RequirePackage{listings}
-
-% Julia (Linguagem não reconhecida automaticamente pelo pacote listings)
-\lstdefinelanguage{Julia}%
- {morekeywords={abstract,break,case,catch,const,continue,do,else,elseif,%
- end,export,false,for,function,immutable,import,importall,if,in,%
- macro,module,otherwise,quote,return,switch,true,try,type,typealias,%
- using,while},%
- sensitive=true,%
- alsoother={\$},%
- morecomment=[l]\#,%
- morecomment=[n]{\#=}{=\#},%
- morestring=[s]{"}{"},%
- morestring=[m]{'}{'},%
-}[keywords,comments,strings]%
-
-\definecolor{mygreen}{RGB}{28,172,0} % Color values Red, Green, Blue
-\definecolor{mylilas}{RGB}{170,55,241}
-
-\lstset{%
- basicstyle=\linespread{1.1}\ttfamily\footnotesize,
- numbers=left,%
- numberstyle={\scriptsize \color{black}}, % Size of the numbers
- numbersep=9pt, % This defines how far the numbers are from the text
- backgroundcolor=\color{gray!10},
- tabsize=2,
- frame=single,
- rulecolor=\color{black!30},
- %title=\lstname,
- captionpos=t,
- belowcaptionskip=10pt,
- escapeinside={\%*}{*)},
- breaklines=true,%
- breakatwhitespace=true,
- framextopmargin=2pt,
- framexbottommargin=2pt,
- keywordstyle=\color{blue},%
- morekeywords=[2]{1}, keywordstyle=[2]{\color{black}},
- identifierstyle=\color{black},%
- stringstyle=\color{mylilas},
- commentstyle=\color{mygreen},%
- extendedchars=true,
- inputencoding=utf8,
- showstringspaces=false,% Without this there will be a symbol in the places where there is a space
- literate={á}{{\'a}}1 {ã}{{\~a}}1 {é}{{\'e}}1 {ç}{{\c{c}}}1 {â}{{\^a}}1 {õ}{{\~o}}1 {ú}{{\'u}}1 {ó}{{\'o}}1 {í}{{\'i}}1 {Í}{{\'I}}1
+ bookmarksdepth=4,
}
% ---
@@ -324,13 +461,27 @@
% Pacote para remissões internas
% ---
\IfStrEq{\idioma}{brazil}
-{\RequirePackage[nameinlink,noabbrev,brazilian]{cleveref}}{\RequirePackage[nameinlink,noabbrev,english]{cleveref}}
+{\RequirePackage[nameinlink,noabbrev,brazilian]{cleveref}}
+{\RequirePackage[nameinlink,noabbrev,english]{cleveref}}
\crefname{annex}{\anexoname}{\anexosname}
\Crefname{annex}{\Anexoname}{\Anexosname}
\crefname{listing}{\codigoname}{\codigosname}
\Crefname{listing}{\Codigoname}{\Codigosname}
\crefname{subsection}{\subsectionname}{\subsectionsname}
\Crefname{subsection}{\Subsectionname}{\Subsectionsname}
+\crefname{quadro}{\quadroname}{\quadrosname}
+\Crefname{quadro}{\Quadroname}{\Quadrosname}
+\newcommand\cref@smugglelabel{\let\cref@currentlabel\cref@gcurrentlabel@temp}
+\newcommand\cref@updatelabeldata[1]{%
+ \cref@constructprefix{#1}{\cref@result}%
+ \@ifundefined{cref@#1@alias}%
+ {\def\@tempa{#1}}%
+ {\def\@tempa{\csname cref@#1@alias\endcsname}}%
+ \protected@xdef\cref@gcurrentlabel@temp{%
+ [\@tempa][\arabic{#1}][\cref@result]%
+ \csname p@#1\endcsname\csname the#1\endcsname}%
+ \aftergroup\cref@smugglelabel}
+\AddToHook{label}{\cref@updatelabeldata{\@currentcounter}}
% ---
% ---
@@ -339,14 +490,14 @@
\RequirePackage{mdframed}
\theoremstyle{definition}
-\mdfdefinestyle{plainSty}{hidealllines=true,backgroundcolor=verdeunb!10}
+\mdfdefinestyle{plainSty}{hidealllines=true,backgroundcolor=verdeunb!10,innertopmargin=0pt}
\newmdtheoremenv[style=plainSty]{theorem}{\thname}[chapter] % Teorema
\newmdtheoremenv[style=plainSty]{lemma}{\lmname}[chapter] % Lema
\newmdtheoremenv[style=plainSty]{proposition}{\prname}[chapter] % Proposição
\newmdtheoremenv[style=plainSty]{corollary}{\crname}[chapter] % Corolário
\theoremstyle{definition}
-\mdfdefinestyle{defnSty}{hidealllines=true,backgroundcolor=azulunb!10}
+\mdfdefinestyle{defnSty}{hidealllines=true,backgroundcolor=azulunb!10,innertopmargin=0pt}
\newmdtheoremenv[style=defnSty]{definition}{\dfname}[chapter] % Definição
\newmdtheoremenv[style=defnSty]{assumption}{\aptname}[chapter] % Hipótese
\newmdtheoremenv[style=defnSty]{axiom}{\axname}[chapter] % Axioma
@@ -359,22 +510,24 @@
\theoremstyle{remark}
\let\proof\relax
\let\endproof\relax
-\newmdtheoremenv[linecolor=azulunb,linewidth=1pt,hidealllines=false]{remark}{\rmname}[chapter] % Observação
+\newmdtheoremenv[linecolor=azulunb,linewidth=1pt,hidealllines=false,innertopmargin=4pt]{remark}{\rmname}[chapter] % Observação
\newtheoremstyle{myproof}{\topsep}{\topsep}{}{}{\bfseries}{}{ }{\thmname{#1} \thmnote{#3}}
\theoremstyle{myproof}
\let\proof\relax
\let\endproof\relax
-\newmdtheoremenv[linecolor=verdeunb,linewidth=1pt,hidealllines=false]{proof}{\proofname.} % Prova
+\newmdtheoremenv[linecolor=verdeunb,linewidth=1pt,hidealllines=false,innertopmargin=0pt]{proof}{\proofname.} % Prova
\AtEndEnvironment{proof}{\hfill$\square$}
-\newmdtheoremenv[linecolor=azulunb,linewidth=1pt,hidealllines=false]{solution}{\sltname.} % Solução
+\newmdtheoremenv[linecolor=azulunb,linewidth=1pt,hidealllines=false,innertopmargin=0pt]{solution}{\sltname.} % Solução
% ---
% ---
% Referências bibliográficas
% ---
% Lista na bibliografia o número das páginas em que cada referência é citada
-\RequirePackage[hyperpageref]{backref}
+\IfStrEq{\idioma}{brazil}
+{\RequirePackage[hyperpageref,brazilian]{backref}}
+{\RequirePackage[hyperpageref,english]{backref}}
\AtBeginDocument{
\renewcommand*{\backref}[1]{}
\renewcommand*{\backrefalt}[4]{\ifcase#1\nocitation\or\citedp~#2.\else\citedpp~#2.\fi}
@@ -385,16 +538,15 @@
\urlstyle{same}
}
% Gera as referências bibliográficas de acordo com as normas da ABNT
+\newcommand{\bibhang}[1]{\setlength{\bibindent}{#1}}
\IfStrEq{\bibsty}{alf}{% Estilo autor-data
-\newcommand{\recuo}{3em} % Indentação da lista de referências
-\RequirePackage[alf,recuo=\recuo,abnt-etal-list=0,abnt-etal-cite=3,abnt-emphasize=bf,bibjustif]{abntex2cite}
+\RequirePackage[alf,abnt-etal-list=0,abnt-etal-cite=3,abnt-emphasize=bf,abnt-missing-year=sd,bibjustif]{abntex2cite}
\renewcommand{\@biblabel}[1]{}%
\IfStrEq{\idioma}{brazil} % Seleciona o arquivo de estilo de citação
{\bibliographystyle{unbtexcite/unbtex-alf-pt}}{\bibliographystyle{unbtexcite/unbtex-alf-en}}
}{%
\IfStrEq{\bibsty}{num}{% Estilo numérico
-\newcommand{\recuo}{2.2em} % Aumente este valor se o número de referências for superior a 100
-\RequirePackage[num,recuo=\recuo,abnt-etal-list=0,abnt-emphasize=bf,bibjustif]{abntex2cite}
+\RequirePackage[num,abnt-etal-list=0,abnt-emphasize=bf,abnt-missing-year=sd,bibjustif]{abntex2cite}
\RequirePackage{cite} % Para ordenar, comprimir e colocar entre colchetes os números nas citações
\renewcommand{\@biblabel}[1]%
{%
@@ -408,7 +560,7 @@
{\setlength{\ABCIauxlen}{\minimumbiblabelwidth-\ABCIauxlen}}%
{\setlength{\ABCIauxlen}{0cm}}%
%{\biblabeltext\hspace{\ABCIauxlen}}%
-\parbox[t]{\recuo}{\raggedleft\biblabeltext\hspace{\ABCIauxlen}}%
+\parbox[t]{\bibindent}{\raggedleft\biblabeltext\hspace{\ABCIauxlen}}%
}}%
\renewcommand{\citeonline}[2][] % Redefine \citeonline como \cite
{\ifthenelse{\equal{#1}{}}{\cite{#2}}{\cite[#1]{#2}}}
@@ -431,7 +583,7 @@
\renewcommand\nomgroup[1]{%
\IfStrEqCase{#1}{%
{A}{\vspace{-38pt}\nomenclheader{}} % Lista de abreviaturas e siglas
- {B}{\cleardoublepage % Quebra de página
+ {B}{\PRIVATEclearpageifneeded % Quebra de página
\pretextualchapter{\hspace{-\leftmargin}\listadesimbolosname} % Lista de símbolos
\vspace{-10pt}\nomenclheader{\nomBname}} % Símbolos romanos
{C}{\nomenclheader{\nomCname}} % Símbolos gregos
@@ -460,40 +612,59 @@
% ---
% Ajusta a indentação das listas de figuras e de tabelas
% ---
-%\RequirePackage{tocbasic} % Já carregado pelo pacote nomencl
+\RequirePackage{tocbasic} % Já carregado pelo pacote nomencl
\DeclareTOCStyleEntry[
indent=0pt,
entrynumberformat=\entrynumberwithprefix{\figurename},
dynnumwidth,
- %numsep=0em
]{tocline}{figure}
-
\DeclareTOCStyleEntry[
indent=0pt,
entrynumberformat=\entrynumberwithprefix{\tablename},
dynnumwidth,
- %numsep=0em
]{tocline}{table}
+\DeclareTOCStyleEntry[
+ level:=figure,
+ numwidth:=figure,
+ indent=0pt,
+ entrynumberformat=\entrynumberwithprefix{\algorithmname},
+ dynnumwidth,
+]{tocline}{algocf}
\newcommand\entrynumberwithprefix[2]{#1~#2\thinspace\hfill}
% ---
% ---
+% Citacao direta com mais de 3 linhas - ABNT NBR 10520/2002 - 5.3
+% Corrige tamanho do recuo do ambiente citacao do abntex2 para 4cm
+% ---
+\ifthenelse{\equal{\ABNTEXistwocolumn}{true}}{%
+ \setlength{\ABNTEXcitacaorecuo}{1.8cm}
+}{% else
+ \setlength{\ABNTEXcitacaorecuo}{4cm}
+}
+\renewenvironment*{citacao}[1][default]{%
+ \begin{adjustwidth}{\ABNTEXcitacaorecuo}{0mm}%
+ \ABNTEXfontereduzida\vspace{4pt}
+ \begin{SingleSpace}%
+ \ifthenelse{\not\equal{#1}{default}}{\itshape\selectlanguage{#1}}{}%
+}{%
+ \end{SingleSpace}\vspace{4pt}%
+ \end{adjustwidth}
+}
+% ---
+
+% ---
% Define o texto dos rótulos de acordo com o idioma principal selecionado
% ---
-\AtBeginDocument{
-\IfStrEq{\idioma}{brazil}{
-\selectlanguage{brazil}
-\renewcommand{\listfigurename}{Lista de figuras}
-\renewcommand{\bibname}{Referências}
-\renewcommand{\apendicename}{Apêndice}
-\renewcommand{\anexoname}{anexo}\renewcommand{\anexosname}{anexos}
\newcommand{\Anexoname}{Anexo}\newcommand{\Anexosname}{Anexos}
\newcommand{\subsectionname}{subseção}\newcommand{\subsectionsname}{subseções}
\newcommand{\Subsectionname}{Subseção}\newcommand{\Subsectionsname}{Subseções}
-\renewcommand{\lstlistingname}{Código}
\newcommand{\codigoname}{código}\newcommand{\codigosname}{códigos}
\newcommand{\Codigoname}{Código}\newcommand{\Codigosname}{Códigos}
-\renewcommand{\ALG@name}{Algoritmo}
+\newcommand{\algorithmname}{Algoritmo}
+\newcommand{\listquadroname}{Lista de quadros}
+\newcommand{\quadroname}{quadro}\newcommand{\quadrosname}{quadros}
+\newcommand{\Quadroname}{Quadro}\newcommand{\Quadrosname}{Quadros}
\newcommand{\thname}{Teorema}
\newcommand{\lmname}{Lema}
\newcommand{\prname}{Proposição}
@@ -508,47 +679,62 @@
\newcommand{\prbname}{Problema}
\newcommand{\sltname}{Solução}
\newcommand{\rmname}{Observação}
-\renewcommand{\proofname}{Demonstração}
\newcommand{\nocitation}{Nenhuma citação no texto.}
\newcommand{\citedp}{Citado na p.}
\newcommand{\citedpp}{Citado nas pp.}
\newcommand{\nomBname}{Símbolos romanos}
\newcommand{\nomCname}{Símbolos gregos}
-}{
-\selectlanguage{english}
+\addto\captionsbrazil{
+\renewcommand{\listfigurename}{Lista de figuras}
+\renewcommand{\apendicename}{Apêndice}
+\renewcommand{\anexoname}{anexo}\renewcommand{\anexosname}{anexos}
+\renewcommand{\lstlistingname}{Código}
+\renewcommand{\lstlistlistingname}{Lista de códigos}
+\renewcommand{\proofname}{Demonstração}
+}
+\addto\captionsenglish{
+\renewcommand{\bibname}{References}
\renewcommand{\listfigurename}{List of figures}
\renewcommand{\listtablename}{List of tables}
-\renewcommand{\bibname}{References}
-\renewcommand{\apendicename}{Appendix}\renewcommand{\apendicesname}{Appendices}
+\renewcommand{\apendicename}{Appendix}
+\renewcommand{\apendicesname}{Appendices}
\renewcommand{\anexoname}{annex}\renewcommand{\anexosname}{annexes}
-\newcommand{\Anexoname}{Annex}\newcommand{\Anexosname}{Annexes}
-\newcommand{\subsectionname}{subsection}\newcommand{\subsectionsname}{subsections}
-\newcommand{\Subsectionname}{Subsection}\newcommand{\Subsectionsname}{Subsections}
+\renewcommand{\Anexoname}{Annex}\renewcommand{\Anexosname}{Annexes}
+\renewcommand{\subsectionname}{subsection}\renewcommand{\subsectionsname}{subsections}
+\renewcommand{\Subsectionname}{Subsection}\renewcommand{\Subsectionsname}{Subsections}
\renewcommand{\lstlistingname}{Code}
-\newcommand{\codigoname}{code}\newcommand{\codigosname}{codes}
-\newcommand{\Codigoname}{Code}\newcommand{\Codigosname}{Codes}
-\renewcommand{\ALG@name}{Algorithm}
-\newcommand{\thname}{Theorem}
-\newcommand{\lmname}{Lemma}
-\newcommand{\prname}{Proposition}
-\newcommand{\crname}{Corollary}
-\newcommand{\aptname}{Assumption}
-\newcommand{\dfname}{Definition}
-\newcommand{\axname}{Axiom}
-\newcommand{\cjcname}{Conjecture}
-\newcommand{\prpname}{Property}
-\newcommand{\expname}{Example}
-\newcommand{\excname}{Exercise}
-\newcommand{\prbname}{Problem}
-\newcommand{\sltname}{Solution}
-\newcommand{\rmname}{Remark}
+\renewcommand{\lstlistlistingname}{List of codes}
+\renewcommand{\codigoname}{code}\renewcommand{\codigosname}{codes}
+\renewcommand{\Codigoname}{Code}\renewcommand{\Codigosname}{Codes}
+\renewcommand{\algorithmname}{Algorithm}
+\renewcommand{\listquadroname}{List of charts}
+\renewcommand{\quadroname}{chart}\renewcommand{\quadrosname}{charts}
+\renewcommand{\Quadroname}{Chart}\renewcommand{\Quadrosname}{Charts}
+\renewcommand{\thname}{Theorem}
+\renewcommand{\lmname}{Lemma}
+\renewcommand{\prname}{Proposition}
+\renewcommand{\crname}{Corollary}
+\renewcommand{\aptname}{Assumption}
+\renewcommand{\dfname}{Definition}
+\renewcommand{\axname}{Axiom}
+\renewcommand{\cjcname}{Conjecture}
+\renewcommand{\prpname}{Property}
+\renewcommand{\expname}{Example}
+\renewcommand{\excname}{Exercise}
+\renewcommand{\prbname}{Problem}
+\renewcommand{\sltname}{Solution}
+\renewcommand{\rmname}{Remark}
\renewcommand{\proofname}{Proof}
-\newcommand{\nocitation}{No citations.}
-\newcommand{\citedp}{Cit. on p.}
-\newcommand{\citedpp}{Cit. on pp.}
-\newcommand{\nomBname}{Roman letters}
-\newcommand{\nomCname}{Greek letters}
-}}
+\renewcommand{\nocitation}{No citations.}
+\renewcommand{\citedp}{Cit. on p.}
+\renewcommand{\citedpp}{Cit. on pp.}
+\renewcommand{\nomBname}{Roman letters}
+\renewcommand{\nomCname}{Greek letters}
+}
+\AtBeginDocument{
+\IfStrEq{\idioma}{brazil}
+{\selectlanguage{brazil}}{\selectlanguage{english}}
+}
% ---
% ------------------------------------------------------------------------
@@ -606,18 +792,19 @@
% ---
% ---
-% Imprime capa
+% Imprime capa e contracapa
% ---
+\RequirePackage{pdfpages}
+% Imprime capa
\renewcommand{\imprimircapa}{%
\hypersetup{pageanchor=false}
-\setlrmargins{*}{*}{1} % Margens laterais iguais para a capa
-\checkandfixthelayout[nearest]
+\begin{adjustwidth}{0cm}{1cm}
\begin{capa}%
- \center
- \AddToShipoutPicture*{\BackgroundPic}
+ \begin{center}
+ \AddToShipoutPictureBG*{\includegraphics[height=\paperheight]{unbtexcover/capa.pdf}}
\vspace*{7.5cm}
- {\LARGE{\sffamily{\bfseries\instituicaoi \\ \instituicaoii \\
- \abntex@ifnotempty{\instituicaoiii}{\instituicaoiii}}}\par}
+ {\LARGE\sffamily\bfseries\instituicaoi \\ \instituicaoii \\
+ \abntex@ifnotempty{\instituicaoiii}{\instituicaoiii}\par}
\vfill
\begin{center}
% Define o tamanho da fonte do título
@@ -629,34 +816,34 @@
{\Large\autorinome\ \autorisobrenome \\
\abntex@ifnotempty{\autoriinome}{\autoriinome\ \autoriisobrenome}\par}
\vfill\vfill
- \begin{center}
\color{white}{\sffamily\large\MakeUppercase \imprimirtipotrabalho \\[2pt]
\MakeUppercase\imprimircurso \\
% Define o espaçamento vertical entre o nome do curso e o local (Brasília)
\autotitle[1]{\MakeUppercase\imprimircurso}
\ifdefined\decvspace \vspace{2pt} \else \vspace{20pt} \fi
\imprimirlocal \\ \imprimirano\par}
- \end{center}
+ \end{center}
\end{capa}
% Reestabelece as margens
-\setlrmarginsandblock{3cm}{2cm}{*}
-\setulmarginsandblock{3cm}{2cm}{*}
-\checkandfixthelayout[fixed]
+\end{adjustwidth}
\cleardoublepage
\hypersetup{pageanchor=true}
+\AtEndDocument{\imprimircontracapa}
}
-
-% Figura de fundo da capa
-\RequirePackage{pdfpages} % Também funciona com o pacote eso-pic
-\newcommand\BackgroundPic{%
- \put(0,0){%
- \parbox[b][\paperheight]{\paperwidth}{%
- \vfill
- \centering
- \includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{capa_fundo.pdf}%
- \vfill
- }
- }
+% Imprime contracapa
+\newcommand{\imprimircontracapa}{%
+\cleardoublepage
+\pagestyle{empty}
+\if@twoside
+\addtocounter{page}{-2}
+\ifoddpage\else\ \fi
+\else
+\addtocounter{page}{-1}
+\fi
+\hypersetup{pageanchor=false}
+\newpage
+\includepdf[height=\paperheight]{unbtexcover/contracapa.pdf}
+\hypersetup{pageanchor=true}
}
% ---
@@ -665,10 +852,9 @@
% ---
\renewcommand{\folhaderostocontent}{%
\begin{center}
- {\LARGE{\sffamily{\bfseries\instituicaoi \\ \instituicaoii \\
- \abntex@ifnotempty{\instituicaoiii}{\instituicaoiii}}}\par}
+ {\LARGE\sffamily\bfseries \instituicaoi \\ \instituicaoii \\
+ \abntex@ifnotempty{\instituicaoiii}{\instituicaoiii}\par}
\vfill\vfill
-
\begin{center}
% Define o tamanho da fonte do título
\ifthenelse{\equal{\imprimirtituloestrangeiro}{}}
@@ -676,11 +862,9 @@
{\autotitle[4]{\bfseries\imprimirtituloestrangeiro}{\color{verdeunb}\titleformat\bfseries \imprimirtituloestrangeiro\par}}
\end{center}
\vfill
-
{\Large\autorinome\ \autorisobrenome \\
\abntex@ifnotempty{\autoriinome}{\autoriinome\ \autoriisobrenome}\par}
\vfill
-
\abntex@ifnotempty{\imprimirpreambulo}{%
\begin{flushright}
\begin{minipage}{.5\textwidth}
@@ -690,13 +874,10 @@
\end{otherlanguage*}}
\end{minipage}%
\end{flushright}
-}%
-\vfill
-
-{\large \orientname: \orienttitulo\ \orientnome\ \orientsobrenome \\
-\abntex@ifnotempty{\coorientnome}{\coorientname: \coorienttitulo\ \coorientnome\ \coorientsobrenome}\par}
+\vfill}%
+{\abntex@ifnotempty{\orientnome}{\large \orientname: \orienttitulo\ \orientnome\ \orientsobrenome \\
+\abntex@ifnotempty{\coorientnome}{\coorientname: \coorienttitulo\ \coorientnome\ \coorientsobrenome}\par}}
\vfill
-
{\sffamily\large\abntex@ifnotempty{\imprimirpublicacao}{\imprimirpublicacao \\ \vfill} \imprimirlocal \\ \imprimirano\par}
\end{center}
}
@@ -712,7 +893,7 @@
\ifthenelse{\equal{\imprimirpublicacao}{}}{}{
\begin{OnehalfSpace}
{\noindent\sffamily\large REFERÊNCIA BIBLIOGRÁFICA}\par
-\noindent\MakeUppercase\autorisobrenome, \autorinome \ifthenelse{\equal{\autoriinome}{}}{.}{;~\MakeUppercase\autoriisobrenome, \autoriinome.} {\bfseries\StrDel{\imprimirtitulo}{\\ }}. \begin{otherlanguage*}{brazil}\imprimirtipotrabalho\ (\imprimircurso)\ifthenelse{\equal{\imprimirpublicacao}{}}{}{,~\imprimirpublicacao} -- \ifthenelse{\equal{\instituicaoiii}{}}{}{\instituicaoiii,~}\instituicaoii, \instituicaoi, \imprimirlocal, \thelastpage~p. \imprimirano.\end{otherlanguage*}
+\noindent\MakeUppercase\autorisobrenome, \autorinome \ifthenelse{\equal{\autoriinome}{}}{.}{;~\MakeUppercase\autoriisobrenome, \autoriinome.} {\bfseries\StrDel{\imprimirtitulo}{\\}}. \begin{otherlanguage*}{brazil}\imprimirtipotrabalho\ (\imprimircurso)\ifthenelse{\equal{\imprimirpublicacao}{}}{}{,~\imprimirpublicacao} -- \ifthenelse{\equal{\instituicaoiii}{}}{}{\instituicaoiii,~}\instituicaoii, \instituicaoi, \imprimirlocal, \thelastpage~p. \imprimirano.\end{otherlanguage*}
\end{OnehalfSpace}}
\IfInteger{\imprimircutter}{\setlength{\fboxsep}{10pt}}{\setlength{\fboxsep}{18pt}}
\vspace*{\fill}
@@ -724,12 +905,12 @@
\IfInteger{\imprimircutter}{\begin{tabular}{p{1.25cm} p{10.25cm}}}{} \cutter
\autorisobrenome, \autorinome. \\
\IfInteger{\imprimircutter}{\StrChar{\autorisobrenome}{1}\imprimircutter\StrChar{\imprimirtitulo}{1}[\SUBtemp]\MakeLowercase{\SUBtemp}}{} \cutter
-\hspace*{2em}\noindent \StrDel{\imprimirtitulo}{\\ } ~/ \begin{otherlanguage*}{brazil}{\autorinome\ \autorisobrenome; \ifthenelse{\equal{\autoriinome}{}}{}{\autoriinome\ \autoriisobrenome;} \MakeLowercase\orientname\ \orientnome\ \orientsobrenome \ifthenelse{\equal{\coorientnome}{}}{.}{;~\MakeLowercase\coorientname\ \coorientnome\ \coorientsobrenome.} \texttt{-{}-} \imprimirlocal, \imprimirano.}\end{otherlanguage*} \\ \cutter
+\hspace*{2em}\noindent \StrDel{\imprimirtitulo}{\\} ~/ \begin{otherlanguage*}{brazil}{\autorinome\ \autorisobrenome; \ifthenelse{\equal{\autoriinome}{}}{}{\autoriinome\ \autoriisobrenome;} \MakeLowercase\orientname\ \orientnome\ \orientsobrenome \ifthenelse{\equal{\coorientnome}{}}{.}{;~\MakeLowercase\coorientname\ \coorientnome\ \coorientsobrenome.} \texttt{-{}-} \imprimirlocal, \imprimirano.}\end{otherlanguage*} \\ \cutter
\hspace*{2em}\noindent \thelastpage~p. \\ \cutter
\\ \cutter
\hspace*{2em}\noindent\begin{otherlanguage*}{brazil}\imprimirtipotrabalho\ (\imprimircurso)\ \texttt{-{}-} \instituicaoi, \imprimirano.\end{otherlanguage*} \\ \cutter
\\ \cutter
-\hspace*{2em}\noindent\IfStrEq{\idioma}{brazil}{1. \pchaveinome. 2. \pchaveiinome. 3. \pchaveiiinome. \ifthenelse{\equal{\pchaveivnome}{}}{}{4. \pchaveivnome. \ifthenelse{\equal{\pchavevnome}{}}{}{5. \pchavevnome.}}}{1. \kwordinome. 2. \kwordiinome. 3. \kwordiiinome. \ifthenelse{\equal{\kwordivnome}{}}{}{4. \kwordivnome. \ifthenelse{\equal{\kwordvnome}{}}{}{5. \kwordvnome.}}}%
+\hspace*{2em}\noindent\IfStrEq{\idioma}{brazil}{1. \expandafter\MakeUppercase\pchaveinome. 2. \expandafter\MakeUppercase\pchaveiinome. 3. \expandafter\MakeUppercase\pchaveiiinome. \ifthenelse{\equal{\pchaveivnome}{}}{}{4. \expandafter\MakeUppercase\pchaveivnome. \ifthenelse{\equal{\pchavevnome}{}}{}{5. \expandafter\MakeUppercase\pchavevnome.~}}}{1. \expandafter\MakeUppercase\kwordinome. 2. \expandafter\MakeUppercase\kwordiinome. 3. \expandafter\MakeUppercase\kwordiiinome. \ifthenelse{\equal{\kwordivnome}{}}{}{4. \expandafter\MakeUppercase\kwordivnome. \ifthenelse{\equal{\kwordvnome}{}}{}{5. \expandafter\MakeUppercase\kwordvnome.~}}}%
\begin{otherlanguage*}{brazil}{\ifthenelse{\equal{\autoriinome}{}}{\ifthenelse{\equal{\coorientnome}{}}{I. \orientsobrenome, \orientnome, orient. II. Título.}{I. \orientsobrenome, \orientnome, orient. II. \coorientsobrenome, \coorientnome, coorient. III. Título.}}{\ifthenelse{\equal{\coorientnome}{}}{I. \autoriisobrenome, \autoriinome. II. \orientsobrenome, \orientnome, orient. III. Título.}{I. \autoriisobrenome, \autoriinome. II. \orientsobrenome, \orientnome, orient. III. \coorientsobrenome, \coorientnome, coorient. IV. Título.}}}\end{otherlanguage*}
\IfInteger{\imprimircutter}{\end{tabular}}{}
\end{minipage}}
@@ -742,25 +923,24 @@
% ---
% Imprime folha de aprovação
% ---
+\newcommand{\signlinewidth}[1]{\setlength{\ABNTEXsignwidth}{#1}}
\newcommand{\imprimirfolhadeaprovacao}{%
\begin{folhadeaprovacao}
\begin{center}
- {\Large{\sffamily{\bfseries\instituicaoi \\ \instituicaoii \\
- \abntex@ifnotempty{\instituicaoiii}{\instituicaoiii}}}\par}
+ {\Large\sffamily\bfseries\instituicaoi \\ \instituicaoii \\
+ \abntex@ifnotempty{\instituicaoiii}{\instituicaoiii}\par}
\vfill
\begin{center}
% Define o tamanho da fonte do título
- \autotitle[1]{\bfseries\StrDel{\imprimirtitulo}{\\ }}
+ \autotitle[1]{\bfseries\StrDel{\imprimirtitulo}{\\}}
\ifthenelse{\equal{\titleformat}{\large}}
- {\color{verdeunb}\Large\bfseries \StrDel{\imprimirtitulo}{\\ }\par}
- {\color{verdeunb}\titleformat\bfseries \StrDel{\imprimirtitulo}{\\ }\par}
+ {\color{verdeunb}\Large\bfseries \StrDel{\imprimirtitulo}{\\}\par}
+ {\color{verdeunb}\titleformat\bfseries \StrDel{\imprimirtitulo}{\\}\par}
\end{center}
\vfill
-
{\large\autorinome\ \autorisobrenome \\[2pt]
\abntex@ifnotempty{\autoriinome}{\autoriinome\ \autoriisobrenome}\par}
\vfill
-
\abntex@ifnotempty{\imprimirpreambulo}{%
\begin{flushright}
\begin{minipage}{.5\textwidth}
@@ -772,7 +952,6 @@
\end{flushright}
}%
\vspace{24pt}
-
\raggedright{Trabalho aprovado. \imprimirlocal, \imprimirdia\ de \imprimirmes\ de \imprimirano:}
{%
\assinatura{\textbf{\membrodabancainome} \\ \membrodabancaifuncaonome}
@@ -781,12 +960,9 @@
\abntex@ifnotempty{\membrodabancaivnome}{\assinatura{\textbf{\membrodabancaivnome} \\ \membrodabancaivfuncaonome}}
\abntex@ifnotempty{\membrodabancavnome}{\assinatura{\textbf{\membrodabancavnome} \\ \membrodabancavfuncaonome}}
}
-%\vfill
-% \begin{center}
-% {\sffamily\large\imprimirlocal \\ \imprimirano\par}
-% \end{center}
\end{center}
\end{folhadeaprovacao}
+\cleardoublepage
}
% ---
@@ -796,27 +972,25 @@
% ---
\newenvsc{DedicatoriaAutorI}[store-env=dedicatoriaautori]
\newenvsc{DedicatoriaAutorII}[store-env=dedicatoriaautorii]
+
\newcommand{\imprimirdedicatoria}{
\begin{dedicatoria}
\centering
\vspace*{\fill}
-
% Primeiro autor
-{\itshape\getstored{dedicatoriaautori}}
-
+{\itshape\getstored{dedicatoriaautori}}\par
\ifthenelse{\equal{\autoriinome}{}}{}{
-\vspace{1cm}
+\vspace{\baselineskip}
\autorinome\ \autorisobrenome \par
\vspace*{\fill}
-
% Segundo autor
-{\itshape\getstored{dedicatoriaautorii}}
-
-\vspace{1cm}
+{\itshape\getstored{dedicatoriaautorii}}\par
+\vspace{\baselineskip}
\autoriinome\ \autoriisobrenome
}
\vspace*{\fill}
\end{dedicatoria}
+\cleardoublepage
}
% ---
@@ -825,32 +999,28 @@
% ---
\newenvsc{AgradecimentosAutorI}[store-env=agradecimentosautori]
\newenvsc{AgradecimentosAutorII}[store-env=agradecimentosautorii]
-\newcommand{\idiomaagradecimentos}[1]{\def\acklang{#1}}
+\newcommand{\idiomaagradecimentos}[1]{\def\acklang{#1}}
\newcommand{\imprimiragradecimentos}{
% Define o título da seção de agradecimentos
\IfStrEq{\acklang}{brazil}{
\renewcommand{\agradecimentosname}{Agradecimentos}
}{% Caso os agradecimentos sejam escritos em inglês
\renewcommand{\agradecimentosname}{Acknowledgements}}
-
\begin{agradecimentos}
-
% Primeiro autor
-\getstored{agradecimentosautori}
-
+\getstored{agradecimentosautori}\par
+\vspace{\baselineskip}
\ifthenelse{\equal{\autoriinome}{}}{}{
-\vspace{1cm}
-\hfill \autorinome\ \autorisobrenome
-\vspace{1cm}
-
+\hfill \autorinome\ \autorisobrenome \par
+\vspace{2\baselineskip}
% Segundo autor
-\getstored{agradecimentosautorii}
-
-\vspace{1cm}
+\getstored{agradecimentosautorii}\par
+\vspace{\baselineskip}
\hfill \autoriinome\ \autoriisobrenome
}
\end{agradecimentos}
+\cleardoublepage
}
% ---
@@ -860,44 +1030,122 @@
\newenvsc{Epigrafe}[store-env=epigrafe]
\newcommand{\imprimirepigrafe}{
\begin{epigrafe}
-\getstored{epigrafe}
+\getstored{epigrafe}\par
\end{epigrafe}
+\cleardoublepage
}
% ---
% ---
-% Imprime resumo (em português)
+% Imprime resumo e abstract
% ---
+% Resumo
\newenvsc{Resumo}[store-env=resumo]
\newcommand{\imprimirresumo}{
-\newpage
\setlength{\absparsep}{\parsep}
\begin{resumo}[Resumo]\vspace{\baselineskip}
\begin{otherlanguage*}{brazil}
-\getstored{resumo}
-\vspace{\onelineskip}
-
-{\sffamily\bfseries Palavras-chave:} \pchaveinome. \pchaveiinome. \pchaveiiinome. \ifthenelse{\equal{\pchaveivnome}{}}{}{\pchaveivnome. \ifthenelse{\equal{\pchavevnome}{}}{}{\pchavevnome.}}
+\getstored{resumo}\par
+\vspace{\baselineskip}
+{\sffamily\bfseries Palavras-chave:} \pchaveinome; \pchaveiinome; \pchaveiiinome\ifthenelse{\equal{\pchaveivnome}{}}{.}{;~\pchaveivnome\ifthenelse{\equal{\pchavevnome}{}}{.}{;~\pchavevnome.}}
\end{otherlanguage*}
+\vspace{\baselineskip}
\end{resumo}
+\PRIVATEclearpageifneeded
}
-% ---
-
-% ---
-% Imprime resumo (em inglês)
-% ---
+% Abstract
\newenvsc{Abstract}[store-env=abstract]
\newcommand{\imprimirabstract}{
-\newpage
\setlength{\absparsep}{\parsep}
\begin{resumo}[Abstract]\vspace{\baselineskip}
\begin{otherlanguage*}{english}
-\getstored{abstract}
-\vspace{\onelineskip}
-
-{\sffamily\bfseries Keywords:} \kwordinome. \kwordiinome. \kwordiiinome. \ifthenelse{\equal{\kwordivnome}{}}{}{\kwordivnome. \ifthenelse{\equal{\kwordvnome}{}}{}{\kwordvnome.}}
+\getstored{abstract}\par
+\vspace{\baselineskip}
+{\sffamily\bfseries Keywords:} \kwordinome; \kwordiinome; \kwordiiinome\ifthenelse{\equal{\kwordivnome}{}}{.}{;~\kwordivnome\ifthenelse{\equal{\kwordvnome}{}}{.}{;~\kwordvnome.}}
\end{otherlanguage*}
\end{resumo}
+\vspace{\baselineskip}
+\PRIVATEclearpageifneeded
+}
+% Insere resumo e abstract
+\newcommand{\imprimirresumos}{
+\IfStrEq*{\idioma}{brazil}
+{\imprimirresumo
+\imprimirabstract}
+{\imprimirabstract
+\imprimirresumo}
+}
+% ---
+
+% ---
+% Imprime lista de figuras
+% ---
+\newcommand{\imprimirlistadefiguras}{
+\pdfbookmark[0]{\listfigurename}{lof}
+\listoffigures*
+\PRIVATEclearpageifneeded
+}
+% ---
+
+% ---
+% Imprime lista de quadros
+% ---
+\newcommand{\imprimirlistadequadros}{
+\pdfbookmark[0]{\listquadroname}{loq}
+\listofquadros*
+\PRIVATEclearpageifneeded
+}
+% ---
+
+% ---
+% Imprime lista de tabelas
+% ---
+\newcommand{\imprimirlistadetabelas}{
+\pdfbookmark[0]{\listtablename}{lot}
+\listoftables*
+\PRIVATEclearpageifneeded
+}
+% ---
+
+% ---
+% Imprime lista de algoritmos
+% ---
+\newcommand{\imprimirlistadealgoritmos}{
+\pdfbookmark[0]{\listalgorithmcfname}{loa}
+\listofalgorithms
+\PRIVATEclearpageifneeded
+}
+% ---
+
+% ---
+% Imprime lista de códigos
+% ---
+\newcommand{\imprimirlistadecodigos}{
+\pdfbookmark[0]{\lstlistlistingname}{lol}
+\begin{KeepFromToc} % Não inclui a lista de códigos no sumário
+\lstlistoflistings
+\end{KeepFromToc}
+\PRIVATEclearpageifneeded
+}
+% ---
+
+% ---
+% Imprime lista de abreviaturas e siglas e lista de símbolos
+% ---
+\newcommand{\imprimirlistadesiglasesimbolos}{
+\PRIVATEbookmarkthis{\listadesiglasname}
+\printnomenclature
+\PRIVATEclearpageifneeded
+}
+% ---
+
+% ---
+% Imprime sumário
+% ---
+\newcommand{\imprimirsumario}{
+\pdfbookmark[0]{\contentsname}{toc}
+\tableofcontents*
+\PRIVATEclearpageifneeded
}
% ---
@@ -929,4 +1177,40 @@
\fi
\newcommand{\titleformat}{\testfontsize}
}
+% ---
+
+% ---
+% Configuracoes para definir idioma principal do documento
+% ---
+\def\HyLang@DeclareLang#1#2#3{%
+ \expandafter\HyLang@addto
+ \csname extras#1\expandafter\endcsname
+ \csname HyLang@#2\endcsname
+ \begingroup
+ \edef\x{\endgroup
+ #3%
+ }%
+ \x
+ \@namedef{HyLang@#1@done}{}%
+ \begingroup
+ \edef\x##1##2{%
+ \noexpand\ifx##2\relax
+ \errmessage{No definitions for language #2' found!}%
+ \noexpand\fi
+ \endgroup
+ \noexpand\define@key{Hyp}{#1}[]{%
+ \noexpand\@ifundefined{HyLang@#1@done}{%
+ \noexpand\HyLang@addto{\noexpand##1}{\noexpand##2}%
+ #3%
+ \noexpand\@namedef{HyLang@#1@done}{}%
+ }{}%
+ }%
+ }%
+ \expandafter\x\csname extras#1\expandafter\endcsname
+ \csname HyLang@#2\endcsname
+}
+\HyLang@DeclareLang{english}{english}{}
+\HyLang@DeclareLang{brazil}{portuges}{}
+\HyLang@DeclareLang{brazilian}{portuges}{}
+\HyLang@DeclareLang{portuguese}{portuges}{}
% --- \ No newline at end of file
diff --git a/macros/latex/contrib/unbtex/unbtexcite/unbtex-alf-en.bst b/macros/latex/contrib/unbtex/unbtexcite/unbtex-alf-en.bst
index 8020e2e98d..3c4fa457be 100644
--- a/macros/latex/contrib/unbtex/unbtexcite/unbtex-alf-en.bst
+++ b/macros/latex/contrib/unbtex/unbtexcite/unbtex-alf-en.bst
@@ -6,13 +6,13 @@
%% https://github.com/abntex/abntex2/issues/97
%%
%% abntex2-alf.bst, v-1.9.7 laurocesar
-%% Copyright 2012-2018 by abnTeX2 group at http://www.abntex.net.br/
+%% Copyright 2012-2018 by abnTeX2 group at https://www.abntex.net.br/
%%
%% 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
+%% https://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.
%%
@@ -20,7 +20,7 @@
%%
%% The Current Maintainer of this work is the abnTeX2 team, led by Lauro
%% César Araujo. Further information are available on
-%% http://www.abntex.net.br/
+%% https://www.abntex.net.br/
%%
ENTRY
@@ -33,7 +33,7 @@ ENTRY
isbn issn journal key month note marginnote number organization
org-short pages pagename
publisher reprinted-from reprinted-text school
- series subtitle section title type url urlaccessdate
+ series subtitle section title type doi url urlaccessdate
volume year year-presented
abnt-and-type
abnt-doi abnt-dont-use-etal
@@ -249,7 +249,7 @@ FUNCTION {bbl.edby} { "edited by" }
FUNCTION {bbl.edition} { "ed." }
FUNCTION {bbl.empty} {""}
FUNCTION {bbl.etal}{abnt.etal.text "" = {""} {" " abnt.etal.text *} if$}
-FUNCTION {bbl.doi.url} {"http://dx.doi.org/"}
+FUNCTION {bbl.doi.url} {"https://dx.doi.org/"}
FUNCTION {bbl.in}{ "In" iso.abbreviation 'skip$ { bbl.colon *} if$}
FUNCTION {bbl.ldots} %#0 use nothing, #1 use \ldots, #2 use $\ldots$, 3# use {...}
{abnt.ldots.type
@@ -261,14 +261,14 @@ if$}
FUNCTION {bbl.master} { "Master of Science" }
FUNCTION {bbl.missing.year}
{abnt.missing.year
-{""} %{"[s.d.]"} %#1
-{""} %#0
+ {"[\emph{n.d.}]"} %#1
+ {""}
if$}
FUNCTION {bbl.monography} { "Monography" }
FUNCTION {bbl.mthesis} { "Dissertation" }
-FUNCTION {bbl.no.address} {""}%{"[S.l.]"}
-FUNCTION {bbl.no.address.no.publisher} {""}%{"[S.l.: s.n.]"}
-FUNCTION {bbl.no.publisher} {""}%{"[s.n.]"}
+FUNCTION {bbl.no.address} {"[\emph{S.l.}]"}
+FUNCTION {bbl.no.address.no.publisher} {"[\emph{S.l.}: \emph{s.n.}]"}
+FUNCTION {bbl.no.publisher} {"[\emph{s.n.}]"}
FUNCTION {bbl.number} { iso.abbreviation {"no."} {"n."} if$ }
FUNCTION {bbl.nr} { "n." }
FUNCTION {bbl.of} { "of" }
@@ -399,6 +399,7 @@ FUNCTION {write.entry.verbatim2}
}
FUNCTION {write.entry.verbatim3}
{
+ "doi" doi write.field.verbatim
"url" url write.field.verbatim
"urlaccessdate" urlaccessdate write.field.verbatim
"volume" volume write.field.verbatim
@@ -610,6 +611,13 @@ FUNCTION {format.issn}
if$
}
+FUNCTION {format.doi}
+{ doi "doi" bibinfo.check
+ duplicate$ empty$ 'skip$
+ {new.block duplicate$ "DOI \href{https://dx.doi.org/" swap$ * "}{" * swap$ * "}" *}
+ if$
+}
+
FUNCTION {format.note}
{ note empty$
{ "" }
@@ -899,7 +907,7 @@ FUNCTION {format.journal.pages}
}
FUNCTION {get.url.type}
-{s #1 #5 substring$ "http:" = {http.url}
+{s #1 #5 substring$ "https:" = {http.url}
{s #1 #6 substring$ "https:" = {http.url}
{s #1 #5 substring$ "file:" = {file.url}
{s #1 #4 substring$ "ftp:" = {ftp.url}
@@ -1087,8 +1095,8 @@ FUNCTION {format.type}
FUNCTION {format.year}
{year empty$
{ "campo year vazio ou faltando em " cite$ *
- abnt.missing.year {" (vou colocar [s.d.])" *} 'skip$ if$ warning$
- abnt.missing.year {", " } {""} if$ bbl.missing.year *}
+ abnt.missing.year {" (reference with [n.d.] no data)" *} 'skip$ if$ warning$
+ abnt.missing.year {" " } {""} if$ bbl.missing.year *}
{year n.dashify "year" bibinfo.check}
if$
}
@@ -1106,8 +1114,7 @@ FUNCTION {format.field.address}
{bbl.no.address.no.publisher}
{address empty$
%if an url is present we don't give a missing address "[s.l.]" notice
- %{url empty$ {bbl.no.address ": "} {"" ""} if$} % remove : após [s.l.] em book
- {url empty$ {bbl.no.address " "} {"" ""} if$}
+ {url empty$ {bbl.no.address ": "} {"" ""} if$}
{address ": "}
if$
t empty$
@@ -1645,6 +1652,7 @@ FUNCTION {article}
non.iso.date
format.issn output new.block
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1668,6 +1676,7 @@ FUNCTION {book}
format.note output
format.issn output %pode parecer curioso, mas revistas inteiras são tratadas como livro
format.isbn output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1687,6 +1696,7 @@ FUNCTION {booklet}
format.volume.number.series output new.sentence
format.note output
format.isbn output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1712,6 +1722,7 @@ FUNCTION {inbook}
format.chapter.pages output new.sentence
format.isbn output new.block
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1732,6 +1743,7 @@ FUNCTION {incollection}
format.chapter.pages output new.sentence
format.isbn output new.block
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1751,6 +1763,7 @@ FUNCTION {inproceedings}
format.isbn output
format.issn output new.sentence
format.note output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1774,6 +1787,7 @@ FUNCTION {journalpart}
format.note output
format.issn output %pode parecer curioso, mas revistas inteiras são tratadas como livro
format.isbn output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1793,6 +1807,7 @@ FUNCTION {manual}
format.book.pages output new.sentence
format.volume.number.series output new.sentence
format.note output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1814,6 +1829,7 @@ FUNCTION {misc}
format.howpublished output new.block
format.volume.number.series output new.sentence
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
empty.misc.check
@@ -1878,6 +1894,7 @@ FUNCTION {thesis}
abnt.thesis.year #0 = abnt.thesis.year #2 = or
{format.date "year" output.check new.sentence} 'skip$ if$
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1912,6 +1929,7 @@ FUNCTION {proceedings}
format.isbn output
format.issn output new.block
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1927,6 +1945,7 @@ FUNCTION {unpublished}
%format.date output new.sentence
iso.date.place {abnt.alf 'skip$ {format.year output new.sentence} if$}
{format.year output new.sentence} if$
+ format.doi output new.block
format.url
fin.entry
}
@@ -2039,7 +2058,7 @@ FUNCTION {set.default.abnt.variables}
#0 'abnt.full.initials :=
#0 'abnt.last.names := %#0 abnt-style, #1 bibtex-style
#1 'abnt.ldots.type := %#0 use nothing, #1 use \ldots, #2 use $\ldots$, 3# use {...}
- #0 'abnt.missing.year := %#0 "void"; #1 "[s.d.]"
+ #0 'abnt.missing.year := %#0 "void"; #1 "[n.d.]"
#0 'repeated.author :=
#0 'abnt.repeated.author.omit :=
#0 'abnt.repeated.title.omit :=
@@ -2130,7 +2149,7 @@ FUNCTION {begin.bib}
'skip$ if$
"\abntbstabout{" abnt.bst.revision * "}" * write$ newline$
% Ajusta o espaçamento entre linhas nas referências bibliográficas
-"\setlength{\baselineskip}{1.2\baselineskip}" write$ newline$
+"\setlength{\baselineskip}{1.25\baselineskip}" write$ newline$
"\setlength{\itemsep}{0pt}" write$ newline$
}
EXECUTE {begin.bib}
@@ -2143,7 +2162,7 @@ FUNCTION {end.bib}
EXECUTE {end.bib}
FUNCTION {apresentacao}
{ "+---------------------------------------------------------+"
- "| http://www.abntex.net.br/ |"
+ "| https://www.abntex.net.br/ |"
"| Em caso de dúvidas ou problemas com este estilo procure |"
abnt.alf
{"| Estilo bibliográfico abntex2-alf.bst versão " abnt.bst.revision * " |" *}
diff --git a/macros/latex/contrib/unbtex/unbtexcite/unbtex-alf-pt.bst b/macros/latex/contrib/unbtex/unbtexcite/unbtex-alf-pt.bst
index aa2e3d645f..0dc6c38a22 100644
--- a/macros/latex/contrib/unbtex/unbtexcite/unbtex-alf-pt.bst
+++ b/macros/latex/contrib/unbtex/unbtexcite/unbtex-alf-pt.bst
@@ -4,13 +4,13 @@
%% scheme for documents written in Portuguese.
%%
%% abntex2-alf.bst, v-1.9.7 laurocesar
-%% Copyright 2012-2018 by abnTeX2 group at http://www.abntex.net.br/
+%% Copyright 2012-2018 by abnTeX2 group at https://www.abntex.net.br/
%%
%% 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
+%% https://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.
%%
@@ -18,7 +18,7 @@
%%
%% The Current Maintainer of this work is the abnTeX2 team, led by Lauro
%% César Araujo. Further information are available on
-%% http://www.abntex.net.br/
+%% https://www.abntex.net.br/
%%
ENTRY
@@ -31,7 +31,7 @@ ENTRY
isbn issn journal key month note marginnote number organization
org-short pages pagename
publisher reprinted-from reprinted-text school
- series subtitle section title type url urlaccessdate
+ series subtitle section title type doi url urlaccessdate
volume year year-presented
abnt-and-type
abnt-doi abnt-dont-use-etal
@@ -247,7 +247,7 @@ FUNCTION {bbl.edby} { "editado por" }
FUNCTION {bbl.edition} { "ed." }
FUNCTION {bbl.empty} {""}
FUNCTION {bbl.etal}{abnt.etal.text "" = {""} {" " abnt.etal.text *} if$}
-FUNCTION {bbl.doi.url} {"http://dx.doi.org/"}
+FUNCTION {bbl.doi.url} {"https://dx.doi.org/"}
FUNCTION {bbl.in}{ "In" iso.abbreviation 'skip$ { bbl.colon *} if$}
FUNCTION {bbl.ldots} %#0 use nothing, #1 use \ldots, #2 use $\ldots$, 3# use {...}
{abnt.ldots.type
@@ -265,7 +265,7 @@ FUNCTION {bbl.missing.year}
FUNCTION {bbl.monography} { "Monografia" }
FUNCTION {bbl.mthesis} { "Disserta\c{c}\~{a}o" }
FUNCTION {bbl.no.address} {"[\emph{S.l.}]"}
-FUNCTION {bbl.no.address.no.publisher} {"[\emph{S.l.: s.n.}]"}
+FUNCTION {bbl.no.address.no.publisher} {"[\emph{S.l.}: \emph{s.n.}]"}
FUNCTION {bbl.no.publisher} {"[\emph{s.n.}]"}
FUNCTION {bbl.number} { iso.abbreviation {"no."} {"n."} if$ }
FUNCTION {bbl.nr} { "n." }
@@ -397,6 +397,7 @@ FUNCTION {write.entry.verbatim2}
}
FUNCTION {write.entry.verbatim3}
{
+ "doi" doi write.field.verbatim
"url" url write.field.verbatim
"urlaccessdate" urlaccessdate write.field.verbatim
"volume" volume write.field.verbatim
@@ -608,6 +609,13 @@ FUNCTION {format.issn}
if$
}
+FUNCTION {format.doi}
+{ doi "doi" bibinfo.check
+ duplicate$ empty$ 'skip$
+ {new.block duplicate$ "DOI \href{https://dx.doi.org/" swap$ * "}{" * swap$ * "}" *}
+ if$
+}
+
FUNCTION {format.note}
{ note empty$
{ "" }
@@ -897,7 +905,7 @@ FUNCTION {format.journal.pages}
}
FUNCTION {get.url.type}
-{s #1 #5 substring$ "http:" = {http.url}
+{s #1 #5 substring$ "https:" = {http.url}
{s #1 #6 substring$ "https:" = {http.url}
{s #1 #5 substring$ "file:" = {file.url}
{s #1 #4 substring$ "ftp:" = {ftp.url}
@@ -1085,8 +1093,8 @@ FUNCTION {format.type}
FUNCTION {format.year}
{year empty$
{ "campo year vazio ou faltando em " cite$ *
- abnt.missing.year {" (vou colocar [s.d.])" *} 'skip$ if$ warning$
- abnt.missing.year {", " } {""} if$ bbl.missing.year *}
+ abnt.missing.year {" (referencia com [s.d.] sem data)" *} 'skip$ if$ warning$
+ abnt.missing.year {" " } {""} if$ bbl.missing.year *}
{year n.dashify "year" bibinfo.check}
if$
}
@@ -1641,6 +1649,7 @@ FUNCTION {article}
non.iso.date
format.issn output new.block
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1664,6 +1673,7 @@ FUNCTION {book}
format.note output
format.issn output %pode parecer curioso, mas revistas inteiras são tratadas como livro
format.isbn output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1683,6 +1693,7 @@ FUNCTION {booklet}
format.volume.number.series output new.sentence
format.note output
format.isbn output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1708,6 +1719,7 @@ FUNCTION {inbook}
format.chapter.pages output new.sentence
format.isbn output new.block
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1728,6 +1740,7 @@ FUNCTION {incollection}
format.chapter.pages output new.sentence
format.isbn output new.block
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1747,6 +1760,7 @@ FUNCTION {inproceedings}
format.isbn output
format.issn output new.sentence
format.note output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1770,6 +1784,7 @@ FUNCTION {journalpart}
format.note output
format.issn output %pode parecer curioso, mas revistas inteiras são tratadas como livro
format.isbn output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1789,6 +1804,7 @@ FUNCTION {manual}
format.book.pages output new.sentence
format.volume.number.series output new.sentence
format.note output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1810,6 +1826,7 @@ FUNCTION {misc}
format.howpublished output new.block
format.volume.number.series output new.sentence
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
empty.misc.check
@@ -1874,6 +1891,7 @@ FUNCTION {thesis}
abnt.thesis.year #0 = abnt.thesis.year #2 = or
{format.date "year" output.check new.sentence} 'skip$ if$
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1908,6 +1926,7 @@ FUNCTION {proceedings}
format.isbn output
format.issn output new.block
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1923,6 +1942,7 @@ FUNCTION {unpublished}
%format.date output new.sentence
iso.date.place {abnt.alf 'skip$ {format.year output new.sentence} if$}
{format.year output new.sentence} if$
+ format.doi output new.block
format.url
fin.entry
}
@@ -2126,7 +2146,7 @@ FUNCTION {begin.bib}
'skip$ if$
"\abntbstabout{" abnt.bst.revision * "}" * write$ newline$
% Ajusta o espaçamento entre linhas nas referências bibliográficas
-"\setlength{\baselineskip}{1.2\baselineskip}" write$ newline$
+"\setlength{\baselineskip}{1.25\baselineskip}" write$ newline$
"\setlength{\itemsep}{0pt}" write$ newline$
}
EXECUTE {begin.bib}
@@ -2139,7 +2159,7 @@ FUNCTION {end.bib}
EXECUTE {end.bib}
FUNCTION {apresentacao}
{ "+---------------------------------------------------------+"
- "| http://www.abntex.net.br/ |"
+ "| https://www.abntex.net.br/ |"
"| Em caso de dúvidas ou problemas com este estilo procure |"
abnt.alf
{"| Estilo bibliográfico abntex2-alf.bst versão " abnt.bst.revision * " |" *}
diff --git a/macros/latex/contrib/unbtex/unbtexcite/unbtex-num-en.bst b/macros/latex/contrib/unbtex/unbtexcite/unbtex-num-en.bst
index 214bf6dc40..570f8f93b3 100644
--- a/macros/latex/contrib/unbtex/unbtexcite/unbtex-num-en.bst
+++ b/macros/latex/contrib/unbtex/unbtexcite/unbtex-num-en.bst
@@ -6,13 +6,13 @@
%% https://github.com/abntex/abntex2/issues/97
%%
%% abntex2-num.bst, v-1.9.7 laurocesar
-%% Copyright 2012-2018 by abnTeX2 group at http://www.abntex.net.br/
+%% Copyright 2012-2018 by abnTeX2 group at https://www.abntex.net.br/
%%
%% 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
+%% https://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.
%%
@@ -20,7 +20,7 @@
%%
%% The Current Maintainer of this work is the abnTeX2 team, led by Lauro
%% César Araujo. Further information are available on
-%% http://www.abntex.net.br/
+%% https://www.abntex.net.br/
%%
ENTRY
@@ -33,7 +33,7 @@ ENTRY
isbn issn journal key month note marginnote number organization
org-short pages pagename
publisher reprinted-from reprinted-text school
- series subtitle section title type url urlaccessdate
+ series subtitle section title type doi url urlaccessdate
volume year year-presented
abnt-and-type
abnt-doi abnt-dont-use-etal
@@ -249,7 +249,7 @@ FUNCTION {bbl.edby} { "edited by" }
FUNCTION {bbl.edition} { "ed." }
FUNCTION {bbl.empty} {""}
FUNCTION {bbl.etal}{abnt.etal.text "" = {""} {" " abnt.etal.text *} if$}
-FUNCTION {bbl.doi.url} {"http://dx.doi.org/"}
+FUNCTION {bbl.doi.url} {"https://dx.doi.org/"}
FUNCTION {bbl.in}{ "In" iso.abbreviation 'skip$ { bbl.colon *} if$}
FUNCTION {bbl.ldots} %#0 use nothing, #1 use \ldots, #2 use $\ldots$, 3# use {...}
{abnt.ldots.type
@@ -261,14 +261,14 @@ if$}
FUNCTION {bbl.master} { "Master of Science" }
FUNCTION {bbl.missing.year}
{abnt.missing.year
- {""} %{"[s.d.]"} %#1
+ {"[\emph{n.d.}]"} %#1
{""} %#0
if$}
FUNCTION {bbl.monography} { "Monography" }
FUNCTION {bbl.mthesis} { "Dissertation" }
-FUNCTION {bbl.no.address} {""}%{"[S.l.]"}
-FUNCTION {bbl.no.address.no.publisher} {""}%{"[S.l.: s.n.]"}
-FUNCTION {bbl.no.publisher} {""}%{"[s.n.]"}
+FUNCTION {bbl.no.address} {"[\emph{S.l.}]"}
+FUNCTION {bbl.no.address.no.publisher} {"[\emph{S.l.}: \emph{s.n.}]"}
+FUNCTION {bbl.no.publisher} {"[\emph{s.n.}]"}
FUNCTION {bbl.number} { iso.abbreviation {"no."} {"n."} if$ }
FUNCTION {bbl.nr} { "n." }
FUNCTION {bbl.of} { "of" }
@@ -399,6 +399,7 @@ FUNCTION {write.entry.verbatim2}
}
FUNCTION {write.entry.verbatim3}
{
+ "doi" doi write.field.verbatim
"url" url write.field.verbatim
"urlaccessdate" urlaccessdate write.field.verbatim
"volume" volume write.field.verbatim
@@ -610,6 +611,13 @@ FUNCTION {format.issn}
if$
}
+FUNCTION {format.doi}
+{ doi "doi" bibinfo.check
+ duplicate$ empty$ 'skip$
+ {new.block duplicate$ "DOI \href{https://dx.doi.org/" swap$ * "}{" * swap$ * "}" *}
+ if$
+}
+
FUNCTION {format.note}
{ note empty$
{ "" }
@@ -899,7 +907,7 @@ FUNCTION {format.journal.pages}
}
FUNCTION {get.url.type}
-{s #1 #5 substring$ "http:" = {http.url}
+{s #1 #5 substring$ "https:" = {http.url}
{s #1 #6 substring$ "https:" = {http.url}
{s #1 #5 substring$ "file:" = {file.url}
{s #1 #4 substring$ "ftp:" = {ftp.url}
@@ -1086,8 +1094,8 @@ FUNCTION {format.type}
FUNCTION {format.year}
{year empty$
{ "campo year vazio ou faltando em " cite$ *
- abnt.missing.year {" (vou colocar [s.d.])" *} 'skip$ if$ warning$
- abnt.missing.year {", " } {""} if$ bbl.missing.year *}
+ abnt.missing.year {" (reference with [n.d.] no data)" *} 'skip$ if$ warning$
+ abnt.missing.year {" " } {""} if$ bbl.missing.year *}
{year n.dashify "year" bibinfo.check}
if$
}
@@ -1637,6 +1645,7 @@ FUNCTION {article}
non.iso.date
format.issn output new.block
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1660,6 +1669,7 @@ FUNCTION {book}
format.note output
format.issn output %pode parecer curioso, mas revistas inteiras são tratadas como livro
format.isbn output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1679,6 +1689,7 @@ FUNCTION {booklet}
format.volume.number.series output new.sentence
format.note output
format.isbn output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1704,6 +1715,7 @@ FUNCTION {inbook}
format.chapter.pages output new.sentence
format.isbn output new.block
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1724,6 +1736,7 @@ FUNCTION {incollection}
format.chapter.pages output new.sentence
format.isbn output new.block
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1743,6 +1756,7 @@ FUNCTION {inproceedings}
format.isbn output
format.issn output new.sentence
format.note output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1766,6 +1780,7 @@ FUNCTION {journalpart}
format.note output
format.issn output %pode parecer curioso, mas revistas inteiras são tratadas como livro
format.isbn output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1785,6 +1800,7 @@ FUNCTION {manual}
format.book.pages output new.sentence
format.volume.number.series output new.sentence
format.note output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1806,6 +1822,7 @@ FUNCTION {misc}
format.howpublished output new.block
format.volume.number.series output new.sentence
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
empty.misc.check
@@ -1870,6 +1887,7 @@ FUNCTION {thesis}
abnt.thesis.year #0 = abnt.thesis.year #2 = or
{format.date "year" output.check new.sentence} 'skip$ if$
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1904,6 +1922,7 @@ FUNCTION {proceedings}
format.isbn output
format.issn output new.block
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1919,6 +1938,7 @@ FUNCTION {unpublished}
%format.date output new.sentence
iso.date.place {abnt.alf 'skip$ {format.year output new.sentence} if$}
{format.year output new.sentence} if$
+ format.doi output new.block
format.url
fin.entry
}
@@ -2031,7 +2051,7 @@ FUNCTION {set.default.abnt.variables}
#0 'abnt.full.initials :=
#0 'abnt.last.names := %#0 abnt-style, #1 bibtex-style
#1 'abnt.ldots.type := %#0 use nothing, #1 use \ldots, #2 use $\ldots$, 3# use {...}
- #0 'abnt.missing.year := %#0 "void"; #1 "[s.d.]"
+ #0 'abnt.missing.year := %#0 "void"; #1 "[n.d.]"
#0 'repeated.author :=
#0 'abnt.repeated.author.omit :=
#0 'abnt.repeated.title.omit :=
@@ -2122,7 +2142,7 @@ FUNCTION {begin.bib}
'skip$ if$
"\abntbstabout{" abnt.bst.revision * "}" * write$ newline$
% Ajusta o espaçamento entre linhas nas referências bibliográficas
-"\setlength{\baselineskip}{1.2\baselineskip}" write$ newline$
+"\setlength{\baselineskip}{1.25\baselineskip}" write$ newline$
"\setlength{\itemsep}{0pt}" write$ newline$
}
EXECUTE {begin.bib}
@@ -2135,7 +2155,7 @@ FUNCTION {end.bib}
EXECUTE {end.bib}
FUNCTION {apresentacao}
{ "+---------------------------------------------------------+"
- "| http://www.abntex.net.br/ |"
+ "| https://www.abntex.net.br/ |"
"| Em caso de dúvidas ou problemas com este estilo procure |"
abnt.alf
{"| Estilo bibliográfico abntex2-alf.bst versão " abnt.bst.revision * " |" *}
diff --git a/macros/latex/contrib/unbtex/unbtexcite/unbtex-num-pt.bst b/macros/latex/contrib/unbtex/unbtexcite/unbtex-num-pt.bst
index 6a5eb58034..5319a126c0 100644
--- a/macros/latex/contrib/unbtex/unbtexcite/unbtex-num-pt.bst
+++ b/macros/latex/contrib/unbtex/unbtexcite/unbtex-num-pt.bst
@@ -4,13 +4,13 @@
%% scheme for documents written in Portuguese.
%%
%% abntex2-num.bst, v-1.9.7 laurocesar
-%% Copyright 2012-2018 by abnTeX2 group at http://www.abntex.net.br/
+%% Copyright 2012-2018 by abnTeX2 group at https://www.abntex.net.br/
%%
%% 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
+%% https://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.
%%
@@ -18,7 +18,7 @@
%%
%% The Current Maintainer of this work is the abnTeX2 team, led by Lauro
%% César Araujo. Further information are available on
-%% http://www.abntex.net.br/
+%% https://www.abntex.net.br/
%%
ENTRY
@@ -31,7 +31,7 @@ ENTRY
isbn issn journal key month note marginnote number organization
org-short pages pagename
publisher reprinted-from reprinted-text school
- series subtitle section title type url urlaccessdate
+ series subtitle section title type doi url urlaccessdate
volume year year-presented
abnt-and-type
abnt-doi abnt-dont-use-etal
@@ -247,7 +247,7 @@ FUNCTION {bbl.edby} { "editado por" }
FUNCTION {bbl.edition} { "ed." }
FUNCTION {bbl.empty} {""}
FUNCTION {bbl.etal}{abnt.etal.text "" = {""} {" " abnt.etal.text *} if$}
-FUNCTION {bbl.doi.url} {"http://dx.doi.org/"}
+FUNCTION {bbl.doi.url} {"https://dx.doi.org/"}
FUNCTION {bbl.in}{ "In" iso.abbreviation 'skip$ { bbl.colon *} if$}
FUNCTION {bbl.ldots} %#0 use nothing, #1 use \ldots, #2 use $\ldots$, 3# use {...}
{abnt.ldots.type
@@ -259,14 +259,14 @@ if$}
FUNCTION {bbl.master} { "Mestrado" }
FUNCTION {bbl.missing.year}
{abnt.missing.year
- {"[s.d.]"} %#1
+ {"[\emph{s.d.}]"} %#1
{""} %#0
if$}
FUNCTION {bbl.monography} { "Monografia" }
FUNCTION {bbl.mthesis} { "Disserta\c{c}\~{a}o" }
-FUNCTION {bbl.no.address} {"[S.l.]"}
-FUNCTION {bbl.no.address.no.publisher} {"[S.l.: s.n.]"}
-FUNCTION {bbl.no.publisher} {"[s.n.]"}
+FUNCTION {bbl.no.address} {"[\emph{S.l.}]"}
+FUNCTION {bbl.no.address.no.publisher} {"[\emph{S.l.}: \emph{s.n.}]"}
+FUNCTION {bbl.no.publisher} {"[\emph{s.n.}]"}
FUNCTION {bbl.number} { iso.abbreviation {"no."} {"n."} if$ }
FUNCTION {bbl.nr} { "n." }
FUNCTION {bbl.of} { "de" }
@@ -397,6 +397,7 @@ FUNCTION {write.entry.verbatim2}
}
FUNCTION {write.entry.verbatim3}
{
+ "doi" doi write.field.verbatim
"url" url write.field.verbatim
"urlaccessdate" urlaccessdate write.field.verbatim
"volume" volume write.field.verbatim
@@ -608,6 +609,13 @@ FUNCTION {format.issn}
if$
}
+FUNCTION {format.doi}
+{ doi "doi" bibinfo.check
+ duplicate$ empty$ 'skip$
+ {new.block duplicate$ "DOI \href{https://dx.doi.org/" swap$ * "}{" * swap$ * "}" *}
+ if$
+}
+
FUNCTION {format.note}
{ note empty$
{ "" }
@@ -897,7 +905,7 @@ FUNCTION {format.journal.pages}
}
FUNCTION {get.url.type}
-{s #1 #5 substring$ "http:" = {http.url}
+{s #1 #5 substring$ "https:" = {http.url}
{s #1 #6 substring$ "https:" = {http.url}
{s #1 #5 substring$ "file:" = {file.url}
{s #1 #4 substring$ "ftp:" = {ftp.url}
@@ -1084,8 +1092,8 @@ FUNCTION {format.type}
FUNCTION {format.year}
{year empty$
{ "campo year vazio ou faltando em " cite$ *
- abnt.missing.year {" (vou colocar [s.d.])" *} 'skip$ if$ warning$
- abnt.missing.year {", " } {""} if$ bbl.missing.year *}
+ abnt.missing.year {" (referencia com [s.d.] sem data)" *} 'skip$ if$ warning$
+ abnt.missing.year {" " } {""} if$ bbl.missing.year *}
{year n.dashify "year" bibinfo.check}
if$
}
@@ -1635,6 +1643,7 @@ FUNCTION {article}
non.iso.date
format.issn output new.block
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1658,6 +1667,7 @@ FUNCTION {book}
format.note output
format.issn output %pode parecer curioso, mas revistas inteiras são tratadas como livro
format.isbn output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1677,6 +1687,7 @@ FUNCTION {booklet}
format.volume.number.series output new.sentence
format.note output
format.isbn output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1702,6 +1713,7 @@ FUNCTION {inbook}
format.chapter.pages output new.sentence
format.isbn output new.block
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1722,6 +1734,7 @@ FUNCTION {incollection}
format.chapter.pages output new.sentence
format.isbn output new.block
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1741,6 +1754,7 @@ FUNCTION {inproceedings}
format.isbn output
format.issn output new.sentence
format.note output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1764,6 +1778,7 @@ FUNCTION {journalpart}
format.note output
format.issn output %pode parecer curioso, mas revistas inteiras são tratadas como livro
format.isbn output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1783,6 +1798,7 @@ FUNCTION {manual}
format.book.pages output new.sentence
format.volume.number.series output new.sentence
format.note output new.sentence
+ format.doi output new.block
format.url
fin.entry
}
@@ -1804,6 +1820,7 @@ FUNCTION {misc}
format.howpublished output new.block
format.volume.number.series output new.sentence
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
empty.misc.check
@@ -1868,6 +1885,7 @@ FUNCTION {thesis}
abnt.thesis.year #0 = abnt.thesis.year #2 = or
{format.date "year" output.check new.sentence} 'skip$ if$
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1902,6 +1920,7 @@ FUNCTION {proceedings}
format.isbn output
format.issn output new.block
format.note output new.block
+ format.doi output new.block
format.url
fin.entry
}
@@ -1917,6 +1936,7 @@ FUNCTION {unpublished}
%format.date output new.sentence
iso.date.place {abnt.alf 'skip$ {format.year output new.sentence} if$}
{format.year output new.sentence} if$
+ format.doi output new.block
format.url
fin.entry
}
@@ -2120,7 +2140,7 @@ FUNCTION {begin.bib}
'skip$ if$
"\abntbstabout{" abnt.bst.revision * "}" * write$ newline$
% Ajusta o espaçamento entre linhas nas referências bibliográficas
-"\setlength{\baselineskip}{1.2\baselineskip}" write$ newline$
+"\setlength{\baselineskip}{1.25\baselineskip}" write$ newline$
"\setlength{\itemsep}{0pt}" write$ newline$
}
EXECUTE {begin.bib}
@@ -2133,7 +2153,7 @@ FUNCTION {end.bib}
EXECUTE {end.bib}
FUNCTION {apresentacao}
{ "+---------------------------------------------------------+"
- "| http://www.abntex.net.br/ |"
+ "| https://www.abntex.net.br/ |"
"| Em caso de dúvidas ou problemas com este estilo procure |"
abnt.alf
{"| Estilo bibliográfico abntex2-alf.bst versão " abnt.bst.revision * " |" *}
diff --git a/macros/latex/contrib/unbtex/unbtexcover/capa.pdf b/macros/latex/contrib/unbtex/unbtexcover/capa.pdf
new file mode 100644
index 0000000000..8f4a3abf23
--- /dev/null
+++ b/macros/latex/contrib/unbtex/unbtexcover/capa.pdf
@@ -0,0 +1,54 @@
+%PDF-1.7 % %
+1 0 obj
+<</Type/Catalog/Pages 2 0 R/OCProperties<</D<</Name(DefaultOC)/Order[7 0 R]/ON[7 0 R]/OFF[]/RBGroups[]>>/OCGs[7 0 R]>>/Extensions<</ADBE<</BaseVersion/1.7/ExtensionLevel 3>>>>/Names 8 0 R/AcroForm 9 0 R/Metadata 10 0 R>>
+endobj
+2 0 obj
+<</Type/Pages/Kids[4 0 R]/Count 1/DefaultValue(GykqNSk/dAoeHHo8NSh6dBQfDnpobnRsdGo=)>>
+endobj
+3 0 obj
+<</Producer(Aspose.PDF for .NET 24.6.0)/Creator(Aspose Pty Ltd.)/ModDate(D:20240828033854+00'00')>>
+endobj
+4 0 obj
+<</Type/Page/Parent 2 0 R/Contents 5 0 R/MediaBox[0 0 595.0001 841]/TrimBox[0 0 595.0001 841]/CropBox[0 0 595.0001 841]/Resources<</ProcSet[/PDF]/ExtGState<</GS6 6 0 R>>/Properties<</Pr7 7 0 R>>>>>>
+endobj
+5 0 obj
+<</Filter[/FlateDecode]/Length 559>>stream
+xڕMn1#|*{K@H! l%;3YٴU^LuJ/,?=.rĚ) Շz=Z3&3ˡm{9\N|(K٪ֳ*:Zbݭd&3d.\ eW+V$ki9iKrw-:[FYC1\5
+Ep y TTF@!TRw)95bٮ8#e9^|>L10sca4bn8*Oܸ%IښD!M,=MKR&noqB>p{uO{U4@BZT$F^;rd좢#ÉiF15hZg)Ma|4 WblF6S0CJ1Rźbu>F7t^p]3 #.J x' 0;gpHO]WLgp SWgp܃Rͺcm2bfp0]na,7i񀶹i ݊~7W+
+endstream
+endobj
+6 0 obj
+<</Type/ExtGState/RI/RelativeColorimetric>>
+endobj
+7 0 obj
+<</Type/OCG/Name<FEFF00430061006D00610064006100200031>>>
+endobj
+8 0 obj
+<<>>
+endobj
+9 0 obj
+<</Fields[]>>
+endobj
+10 0 obj
+<</Length 0>>stream
+
+endstream
+endobj
+xref
+0 11
+0000000000 65535 f
+0000000023 00000 n
+0000000260 00000 n
+0000000363 00000 n
+0000000479 00000 n
+0000000694 00000 n
+0000001325 00000 n
+0000001385 00000 n
+0000001458 00000 n
+0000001479 00000 n
+0000001509 00000 n
+trailer
+<</Root 1 0 R/Info 3 0 R/ID[<D7A7AAB3F21341C630D8B19B8BE0160F><38342D31412D34442D34442D31372D45>]/Size 11>>
+startxref
+1559
+%%EOF
diff --git a/macros/latex/contrib/unbtex/unbtexcover/contracapa.pdf b/macros/latex/contrib/unbtex/unbtexcover/contracapa.pdf
new file mode 100644
index 0000000000..3c6bce18e0
--- /dev/null
+++ b/macros/latex/contrib/unbtex/unbtexcover/contracapa.pdf
Binary files differ