summaryrefslogtreecommitdiff
path: root/macros/latex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex')
-rw-r--r--macros/latex/contrib/hecthese/README.md2
-rw-r--r--macros/latex/contrib/hecthese/hecthese-en.ins6
-rw-r--r--macros/latex/contrib/hecthese/hecthese-en.pdfbin531417 -> 549231 bytes
-rw-r--r--macros/latex/contrib/hecthese/hecthese-fr.ins6
-rw-r--r--macros/latex/contrib/hecthese/hecthese.dtx612
-rw-r--r--macros/latex/contrib/hecthese/hecthese.pdfbin518709 -> 535488 bytes
-rw-r--r--macros/latex/contrib/titlesec/README.md8
-rw-r--r--macros/latex/contrib/titlesec/titleps.pdfbin134024 -> 143282 bytes
-rw-r--r--macros/latex/contrib/titlesec/titleps.sty6
-rw-r--r--macros/latex/contrib/titlesec/titleps.tex6
-rw-r--r--macros/latex/contrib/titlesec/titlesec.pdfbin491378 -> 523399 bytes
-rw-r--r--macros/latex/contrib/titlesec/titlesec.sty146
-rw-r--r--macros/latex/contrib/titlesec/titlesec.tex105
-rw-r--r--macros/latex/contrib/titlesec/titletoc.sty4
-rw-r--r--macros/latex/contrib/unbtex/README.md14
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example.pdfbin1219131 -> 1176887 bytes
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example.tex86
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/capitulo1.tex6
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/capitulo2.tex189
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/capitulo3.tex17
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/capitulo4.tex18
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/capitulo5.tex2
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/figuras/blockdiagram.epsbin0 -> 86922 bytes
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/references.bib10
-rw-r--r--macros/latex/contrib/unbtex/unbtex-example/referencias.bib82
-rw-r--r--macros/latex/contrib/unbtex/unbtex.cls35
26 files changed, 516 insertions, 844 deletions
diff --git a/macros/latex/contrib/hecthese/README.md b/macros/latex/contrib/hecthese/README.md
index 23b16651ff..8c244c09be 100644
--- a/macros/latex/contrib/hecthese/README.md
+++ b/macros/latex/contrib/hecthese/README.md
@@ -11,7 +11,7 @@ later version.
VERSION
-1.5
+2.0
******************************************************************
La version française de cette description est à la suite de la
diff --git a/macros/latex/contrib/hecthese/hecthese-en.ins b/macros/latex/contrib/hecthese/hecthese-en.ins
index 1ae1debc5a..8e015c2ccc 100644
--- a/macros/latex/contrib/hecthese/hecthese-en.ins
+++ b/macros/latex/contrib/hecthese/hecthese-en.ins
@@ -1,5 +1,5 @@
%%
-%% Copyright 2017-2021 HEC Montréal
+%% Copyright 2017-2023 HEC Montréal
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
@@ -19,7 +19,7 @@
This is a stripped version of the original file.
-Copyright 2017-2021 HEC Montreal
+Copyright 2017-2023 HEC Montreal
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3c
@@ -85,7 +85,7 @@ and the derived files listed in the README file.
\obeyspaces
\Msg{*********************************************************}
-\Msg{* hecthese document class v1.5 *}
+\Msg{* hecthese document class v2.0 *}
\Msg{* *}
\Msg{* hecthese document class has been installed and is *}
\Msg{* ready for use. Read the hecthese.pdf file to learn *}
diff --git a/macros/latex/contrib/hecthese/hecthese-en.pdf b/macros/latex/contrib/hecthese/hecthese-en.pdf
index 47eade535f..4c5741cc48 100644
--- a/macros/latex/contrib/hecthese/hecthese-en.pdf
+++ b/macros/latex/contrib/hecthese/hecthese-en.pdf
Binary files differ
diff --git a/macros/latex/contrib/hecthese/hecthese-fr.ins b/macros/latex/contrib/hecthese/hecthese-fr.ins
index 5c6ac83965..f6a8ce4917 100644
--- a/macros/latex/contrib/hecthese/hecthese-fr.ins
+++ b/macros/latex/contrib/hecthese/hecthese-fr.ins
@@ -1,5 +1,5 @@
%%
-%% Copyright 2017-2021 HEC Montréal
+%% Copyright 2017-2023 HEC Montréal
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
@@ -19,7 +19,7 @@
This is a stripped version of the original file.
-Copyright 2017-2021 HEC Montreal
+Copyright 2017-2023 HEC Montreal
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3c
@@ -85,7 +85,7 @@ and the derived files listed in the README file.
\obeyspaces
\Msg{*********************************************************}
-\Msg{* Classe hecthese v1.5 *}
+\Msg{* Classe hecthese v2.0 *}
\Msg{* *}
\Msg{* La classe hecthese est installee et prete a l'emploi. *}
\Msg{* Consultez le document hecthese.pdf afin de prendre *}
diff --git a/macros/latex/contrib/hecthese/hecthese.dtx b/macros/latex/contrib/hecthese/hecthese.dtx
index c5b1952eee..dfcd669274 100644
--- a/macros/latex/contrib/hecthese/hecthese.dtx
+++ b/macros/latex/contrib/hecthese/hecthese.dtx
@@ -1,6 +1,6 @@
% \iffalse
%
-% Copyright 2017-2021 HEC Montreal
+% Copyright 2017-2023 HEC Montreal
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
@@ -25,9 +25,9 @@
\ProvidesFile{hecthese.dtx}
%</dtx>
%<class>\NeedsTeXFormat{LaTeX2e}
-%<class>\ProvidesClass{hecthese}[2021/09/07 v1.5 Class for dissertations and theses at HEC Montreal]
+%<class>\ProvidesClass{hecthese}[2023/10/17 v2.0 Class for dissertations and theses at HEC Montreal]
%<*driver>
-\documentclass[10pt,english,french]{ltxdoc}
+\documentclass[10pt,french,english]{ltxdoc}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}
@@ -125,13 +125,16 @@
\end{document}
%</driver>
% \fi
-% \CheckSum{574}
+% \CheckSum{519}
% \DoNotIndex{\RequirePackage,\ExecuteOptions,\ifthenelse,\ProcessOptions}
% \DoNotIndex{\newcommand,\newcommand*,\newboolean,\setboolean}
% \DoNotIndex{\emph,\cite,\LaTeX,\hecthese,\textbf,\item,\footnote}
% \DoNotIndex{\label,\ref,\caption,\hline,\multicolumn,\oui,\non,\cmd}
% \DoNotIndex{\dots,\url,\clearpage,\bibitem}
% \DoNotIndex{\hectheseTitre,\biblio}
+% \changes{2.0}{2023-10-17}{Ajout de biblatex et abandon de chapterbib / Added biblatex and dropped chapterbib}
+% \changes{1.5.1}{2023-10-13}{Corrigé la typographie de certaines phantomsections /
+% Corrected typos in phantomsections}
% \changes{1.5}{2021-09-07}{Corrig\'e l'impl\'ementation de chapterbib. /
% Fixed the chapterbib implementation.}
% \changes{1.4}{2020-08-24}{Beaucoup de corrections de bogues et de mises \`{a} jour (voir d\'{e}p\^{o}t Git). /
@@ -197,7 +200,7 @@
% et l'\'{e}diteur de code TeXStudio\cite{texstudio} ont \'{e}t\'{e} utilis\'{e}s et ses fonctionnalit\'{e}s ont
% \'{e}t\'{e} test\'{e}es avec les compilateurs +latex+, +pdflatex+, +bibtex+ et +makeindex+. La classe
% a \'{e}galement \'{e}t\'{e} test\'{e}e avec la distribution MiK\TeX\footnote{Un immense merci \`{a} Franck Jeannot pour avoir effectu\'{e} ces tests!},
-% avec les versions 2017 à 2020 de TeXLive de m\^eme qu'avec l'application Web Overleaf.
+% avec les versions 2017 à 2023 de TeXLive de m\^eme qu'avec l'application Web Overleaf.
% Nous vous invitons \`{a} la tester avec vos propres distributions TeX et
% \'{e}diteurs de codes et \`{a} l'utiliser de la m\^{e}me mani\`{e}re dont vous vous servez de vos outils pour vos
% autres travaux en {\LaTeX}.
@@ -207,7 +210,7 @@
% and the \TeX Studio code editor\cite{texstudio} were used. Its features were tested with the
% +latex+, +pdflatex+, +bibtex+ and +makeindex+ compilers. The class has also been tested with the
% MiK\TeX\ distribution\footnote{A big ``thank you!'' goes to Franck Jeannot for making the tests.}
-% and WinEdt code editor, with the 2017 to 2020 versions of TeXLive as well as with the Overleaf
+% and WinEdt code editor, with the 2017 to 2023 versions of TeXLive as well as with the Overleaf
% web application.
% We invite you to test the class with your own distribution and code editor and to use it like
% you would with any other work you do with \LaTeX.
@@ -537,19 +540,17 @@
% \fi
%
% \ifnum\frenchdoc=1
-% La classe {\hecthese} comprend quelques commandes qu'on pourrait r\'{e}partir en trois cat\'{e}gories :
+% La classe {\hecthese} comprend quelques commandes qu'on pourrait r\'{e}partir en deux cat\'{e}gories :
% \begin{enumerate}
% \item les m\'{e}tadonn\'{e}es de votre document (auteur, titre, etc.) servant \`{a} g\'{e}n\'{e}rer la (les)
% page(s) titre ;
-% \item les commandes de mise en forme du document ;
-% \item les commandes li\'{e}es aux bibliographies des th\`{e}ses et m\'{e}moires par articles.
+% \item les commandes de mise en forme du document.
% \end{enumerate}
% \else
-% The \hecthese\ document class provides commands that can be separated into three categories:
+% The \hecthese\ document class provides commands that can be separated into two categories:
% \begin{enumerate}
% \item document metadata (author, title, etc.) used to generate the title pages;
- % \item document layout commands;
- % \item bibliography-related commands for dissertations and theses written with articles.
+ % \item document layout commands.
% \end{enumerate}
% \fi
%
@@ -818,88 +819,6 @@
% \end{DescribeMacro}
%
% \ifnum\frenchdoc=1
-% \subsubsection{Les bibliographies des th\`{e}ses et m\'{e}moires par articles}
-% \else
-% \subsubsection{By-article dissertations' and theses' bibliographies}
-% \fi
-%
-%\ifnum\frenchdoc=1
-% Dans les th\`{e}ses et m\'{e}moires r\'{e}dig\'{e}s par articles, il y a plusieurs bibliographies : une
-% par article et une g\'{e}n\'{e}rale pour l'ensemble du travail. La classe {\hecthese} utilise
-% le +package chapterbib+\cite{chapterbib} pour permettre la publication de ces nombreuses bibliographies.
-% \else
-% In dissertations and theses written with articles, there are many bibliographies: one specific
-% bibliography for each article and a general bibliography for the whole document. The
-% \hecthese\ document class uses the +chapterbib+ package\cite{chapterbib} to generate
-% multiple bibliographies in one document.
-% \fi
-%
-% \begin{DescribeMacro}{\HECbibliographieArticle}
-% \ifnum\frenchdoc=1
-% Le +package chapterbib+ ne s'accorde cependant pas tr\`{e}s bien avec la classe +memoir+ en ce qui
-% concerne la place de chacune des bibliographies dans les divisions du document. La
-% commande \cmd{\HECbibliographieArticle} s'assure donc que les bibliographies des articles
-% seront positionn\'{e}es en tant que section non num\'{e}rot\'{e}es \`{a} l'int\'{e}rieur des articles. C'est
-% pourquoi, dans les gabarits par articles, cette commande est plac\'{e}e apr\`{e}s la commande
-% \cmd{\HECpagestitre}.
-% \else
-% The +chapterbib+ package and +memoir+ class have conflicting issues concerning the bibliographies'
-% place in a document's divisions. The \cmd{\HECbibliographieArticle} makes sure that the articles'
-% bibliographies are positioned as unnumbered sections inside the articles. This is why, in the
-% by-articles templates, this command is placed just after the \cmd{\HECtitlepages} command.
-% \fi
-% \end{DescribeMacro}
-%
-% \begin{DescribeMacro}{\HECbibliographieGenerale}
-% \ifnum\frenchdoc=1
-% Cette commande sert \`{a} positionner la bibliographie g\'{e}n\'{e}rale du travail en tant
-% que «chapitre» (au sens {\LaTeX} du terme) non num\'{e}rot\'{e}. Cette commande est plac\'{e}e
-% tout juste avant la commande \cmd{\bibliographystyle} du gabarit.
-% \else
-% This command positions the document's general bibliography as an unnumbered ``chapter''
-% (in the \LaTeX\ definition of the term). It is placed just before the template's
-% \cmd{\bibliographystyle} command.
-% \fi
-% \end{DescribeMacro}
-%
-% \begin{DescribeMacro}{\HECreferences}
-% \ifnum\frenchdoc=1
-% Le +package chapterbib+ remplit tr\`{e}s bien son r\^{o}le de cr\'{e}ation de bibliographies multiples. Le
-% hic, c'est qu'il faut inclure la commande \cmd{\bibliography} dans chaque fichier inclus
-% dans un document pour que les citations s'affichent correctement. Ce faisant, une bibliographie
-% est g\'{e}n\'{e}r\'{e}e pour chacun de ces fichiers. Or, dans des sections comme l'introduction,
-% les r\'{e}sum\'{e}s ou encore la conclusion, la bibliographie ne doit pas \^{e}tre affich\'{e}e,
-% car elle est incluse dans la bibliographie g\'{e}n\'{e}rale du document. La commande \cmd{\HECreferences}
-% permet d'ins\'{e}rer des citations et de les voir s'afficher correctement sans qu'une bibliographie
-% soit g\'{e}n\'{e}r\'{e}e dans une section donn\'{e}e. Sa syntaxe est la suivante :
-%
-% \begin{shaded*}
-% \cmd{\HECreferences\{<style bibliographique>\}\{<fichier.bib>\}}
-% \end{shaded*}
-%
-% M\^{e}me si la bibliographie d'une section ne s'affichera pas, il est important d'indiquer comme
-% argument +style bibliographique+ le m\^{e}me style que celui utilis\'{e} partout ailleurs dans le
-% document, car les r\'{e}f\'{e}rences seront au final incluses dans la bibliographie g\'{e}n\'{e}rale.
-% \else
-% The +chapterbib+ package is pretty good at fulfilling its purpose, which is generating multiple
-% bibliographies. The problem is that a \cmd{\bibliography} command must be included in each file
-% if one wants her citations to appear in the document. And by including the command, a bibliography
-% is generated for that part of the document. In sections of the document such as the introduction, the
-% abstracts or the conclusion, a bibliography must not be generated as the references for these parts
-% have to be included in the general bibliography. The \cmd{\HECreferences} command allows you
-% to insert citations and see them displayed correctly in a given section without generating a
-% bibliography for that section. Its syntax is as follows:
-%
-% \begin{shaded*}
-% \cmd{\HECreferences\{bibliographic style>\}\{<file.bib>\}}
-% \end{shaded*}
-%
-% Even if the bibliography of a given section won't be displayed, it is important to specify
-% a bibliography style as the references will still appear in the general bibliography.
-% \fi
-% \end{DescribeMacro}
-%
-% \ifnum\frenchdoc=1
% \subsection{Environnements de la classe}
% \else
% \subsection{Class environments}
@@ -1000,36 +919,50 @@
% \fi
%
% \ifnum\frenchdoc=1
-% Nous vous recommandons fortement d'utiliser le style bibliographique +francais+ pour la compilation de
-% votre (vos) bibliographie(s). Ce style a \'{e}t\'{e} con\c{c}u par le professeur Vincent Goulet de l'Universit\'{e}
-% Laval\cite{francaisbst} et est celui qui ressemble le plus au style bibliographique HEC Montr\'{e}al, \'{e}labor\'{e}
-% par Caroline Archambault\cite{stylehec}. De plus, ce style supporte les citations au format \emph{auteur-ann\'{e}e}
-% pr\'{e}conis\'{e} dans le \emph{Guide de r\'{e}daction}.
+% La classe de document utilise le +package biblatex+\cite{biblatex} pour la production des citations et
+% de la bibliographie des th\`{e}ses et m\'{e}moires classiques, et \textbf{des} bibliographies des
+% th\`{e}ses et m\'{e}moires par articles.
+%
+% Les versions ant\'{e}rieures de +hecthese+ utilisaient le +package chapterbib+ pour g\'{e}rer les
+% bibliographies multiples, mais ce dernier s'av\'{e}rait \^{e}tre incompatible avec la classe de
+% document +memoir+.
+%
+% Le +package biblatex+ et le compilateur +biber+ \'{e}tant beaucoup plus polyvalents et flexibles
+% que +bibtex+, ceux-ci deviennent les gestionnaires de bibliographie par d\'{e}faut \`{a} partir de
+% la version 2.0.
%
-% Si vous r\'{e}digez votre th\`{e}se ou m\'{e}moire en anglais, nous vous recommandons d'utiliser le style bibliographique
-% +apalike+.
+% Veuillez consulter le guide \href{https://www.overleaf.com/learn/latex/Articles/Getting_started_with_BibLaTeX}%
+% {Getting started with BibLaTeX} pour vous familiariser avec son utilisation ainsi que le code source de la
+% classe +hecthese+ pour en comprendre l'impl\'{e}mentation.
%
-% Afin de vous conformer au format de citation pr\'{e}conis\'{e} par le \emph{Guide de r\'{e}daction}, nous vous recommandons
-% enfin d'utiliser la commande \cmd{\citep} lorsque vous citez vos sources.
+% Ce qu'il importe de savoir est que dans les thèses et mémoires par articles, il doit y avoir une bibliographie
+% particulière pour chacun des articles ainsi qu'une bibliographie générale regroupant toutes les références
+% de votre document, incluant celles des articles.
%
-% Si vous choisissez d'utiliser d'autres styles bibliographiques et/ou d'autres formats de citations, assurez-vous
-% qu'ils soient compatibles avec le +package+ +natbib+ qui est charg\'{e} avec la classe, \`{a} d\'{e}faut de quoi vous
-% rencontrerez des probl\`{e}mes lors de la compilation de votre document.
+% Pour ce faire, vous devez ajouter des +keywords+ dans les références de votre fichier +.bib+, comme
+% +article-n+ ou +bib-generale+ par exemple, et inscrire le +keyword+ approprié dans la commande
+% +\printbibliography[]+ que vous retrouverez dans les fichiers +gabarit+ et +articles+.
% \else
-% If you plan on writing your dissertation or thesis in French, we suggest you use the +francais+ bibliography
-% style when compiling your bibliographies. It has been built by Universit\'{e} Laval's professor Vincent Goulet\cite{francaisbst}
-% and it is the bibliography style resembling the most HEC Montr\'{e}al's bibliography style, elaborated by
-% Caroline Archambault\cite{stylehec}. This style also supports the \emph{author-year} citation format that is
-% recommended for use in the \emph{Guidelines}.
+% The document class uses the +biblatex+ package\cite{biblatex} to manage the dissertations and theses'
+% citations and bibliographies.
+%
+% Previous versions of +hecthese+ used the +chapterbib+ package, but it was incompatible with the +memoir+
+% document class.
+%
+% The +biblatex+ package and +biber+ compiler being more versatile and flexible that their +bibtex+
+% counterpart, they have become the default bibliography managers starting at +hecthese+ version 2.0.
%
-% If you write your dissertation or thesis in English, we suggest you use the +apalike+ bibliography style.
+% Please read the \href{https://www.overleaf.com/learn/latex/Articles/Getting_started_with_BibLaTeX}%
+% {Getting started with BibLaTeX} guide to learn how to use the package and look at the class'
+% source code to see how it has been implemented.
%
-% In order to fully comply with the \emph{Guidelines}, we recommend you use the \cmd{\citep} command when citing
-% your sources.
+% What is important to understand is that in dissertations and theses written with articles, each
+% article has to have its own bibliography and the entire document has to have a global bibliography
+% regrouping references found everywhere, including in the articles.
%
-% If you choose to use other bibliography styles and/or citation formats, just make sure that they are
-% compatible with the +natbib+ package loaded with the document class. Otherwise, you'll run into errors when you'll
-% compile your document.
+% To do so, you must add +keywords+ in your +.bib+ file's references, like +article-n+ or +general-bib+ for example,
+% and write the appropriate +keyword+ in the +\printbibliography[]+ commands found in the +template+
+% and +articles+ files.
% \fi
%
% \section{Compilation}
@@ -1040,8 +973,7 @@
% \end{HECwarning}
% Lorsque viendra le temps de compiler votre document, il ne vous suffira pas seulement de cliquer sur
% le bouton «Compilation» de votre \'{e}diteur de code pr\'{e}f\'{e}r\'{e}. Une suite pr\'{e}cise de compilations
-% s'av\`{e}rent n\'{e}cessaires si vous voulez que votre document soit g\'{e}n\'{e}r\'{e} de mani\`{e}re appropri\'{e}e, surtout
-% si vous compilez une th\`{e}se ou un m\'{e}moire par articles
+% s'av\`{e}rent n\'{e}cessaires si vous voulez que votre document soit g\'{e}n\'{e}r\'{e} de mani\`{e}re appropri\'{e}e
% \footnote{Un tutoriel vid\'{e}o concernant la compilation est disponible \`{a} l'adresse
% \url{https://www.youtube.com/watch?v=hS3LMC3H55w}}.
% \else
@@ -1050,52 +982,47 @@
% \end{HECwarning}
% When the time comes for compiling your document, simply pressing ``Compile'' in your code editor
% won't suffice. A precise chain of compilations is necessary if you want your document to be
-% rendered properly, most of all if you compile a dissertation or thesis written with articles
+% rendered properly
% \footnote{A video tutorial showing the compilation process is available at
% \url{https://www.youtube.com/watch?v=hS3LMC3H55w} (in French with English subtitles)}.
% \fi
%
% \ifnum\frenchdoc=1
-% \subsection{Th\`{e}ses et m\'{e}moires classiques}
-% \else
-% \subsection{Classic dissertations and theses}
-% \fi
-% \label{comp-phd-msc-cl}
-%
-% \ifnum\frenchdoc=1
% Voici l'ordre de compilations n\'{e}cessaires \`{a} la production de votre th\`{e}se ou m\'{e}moire classique,
% \`{a} faire \`{a} partir d'un \'{e}diteur de code ou d'un \'{e}diteur de ligne de commande. Dans la liste
-% ci-dessous, remplacez +*+ par +these+ ou +memoire+ en fonction du document que vous r\'{e}digez.
+% ci-dessous, remplacez +*+ par +these+ ou +memoire+ et +**+ par +classique+ ou +articles+ en fonction du document
+% que vous r\'{e}digez.
% \else
% Here is the compilation chain you need to do in order to generate your classic dissertation or
% thesis. You can perform these compilations from your code editor or from the command line. In the
-% following list, replace +*+ by +msc+ or +phd+ depending of the type of document you're writing.
+% following list, replace +*+ by +msc+ or +phd+ and +**+ by +classic+ ou +articles+ depending of the type of
+% document you're writing.
% \fi
%
% \begin{HECcompilation}
% \ifnum\frenchdoc=1
-% \item +pdflatex gabarit-*-classique.tex+
-% \item +bibtex gabarit-*-classique.tex+
-% \item +makeindex gabarit-*-classique.tex+
+% \item +pdflatex gabarit-*-**.tex+
+% \item +biber gabarit-*-**.tex+
+% \item +makeindex gabarit-*-**.tex+
% \footnote{\label{comp-index}N\'{e}cessaire seulement si vous avez ins\'{e}r\'{e} des entr\'{e}es d'index
% et la commande \cmd{\printindex} dans votre document.}
-% \item +pdflatex gabarit-*-classique.tex+
-% \item +pdflatex gabarit-*-classique.tex+
+% \item +pdflatex gabarit-*-**.tex+
+% \item +pdflatex gabarit-*-**.tex+
% \else
-% \item +pdflatex template-*-classic.tex+
-% \item +bibtex template-*-classic.tex+
-% \item +makeindex template-*-classic.tex+
+% \item +pdflatex template-*-**.tex+
+% \item +biber template-*-**.tex+
+% \item +makeindex template-*-**.tex+
% \footnote{\label{comp-index-en}Do this compilation only if you,ve inserted index entries
% and the \cmd{\printindex} command in your document.}
-% \item +pdflatex template-*-classic.tex+
-% \item +pdflatex template-*-classic.tex+
+% \item +pdflatex template-*-**.tex+
+% \item +pdflatex template-*-**.tex+
% \fi
% \end{HECcompilation}
%
% \ifnum\frenchdoc=1
-% La compilation d'une th\`{e}se ou d'un m\'{e}moire classique est assez simple. Toutes les \'{e}tapes se font
+% La compilation d'une th\`{e}se ou d'un m\'{e}moire est assez simple. Toutes les \'{e}tapes se font
% \`{a} partir de votre fichier gabarit. Vous lancez une premi\`{e}re compilation avec +pdflatex+,
-% vous g\'{e}n\'{e}rez votre bibliographie et votre index avec +bibtex+ et +makeindex+, puis vous recompilez
+% vous g\'{e}n\'{e}rez votre bibliographie et votre index avec +biber+ et +makeindex+, puis vous recompilez
% au moins deux fois de suite votre fichier gabarit avec +pdflatex+ afin de permettre la g\'{e}n\'{e}ration
% ad\'{e}quate de la bibliographie, de l'index et de la table des mati\`{e}res.
%
@@ -1104,77 +1031,13 @@
% \else
% Compiling a dissertation or thesis is pretty straightforward. All compilation steps are performed on
% your template file. You run a first compilation with +pdflatex+, you generate your bibliography
-% and index with +bibtex+ and +makeindex+ and you recompile your template file at least twice with
+% and index with +biber+ and +makeindex+ and you recompile your template file at least twice with
% +pdflatex+ in order to output the bibliography, the index and the table of contents.
%
% When compiling your document using the command line, you don't need to type the file extension (+tex+).
% Only the file name will suffice.
% \fi
%
-% \ifnum\frenchdoc=1
-% \subsection{Th\`{e}ses et m\'{e}moires par articles}
-% \else
-% \subsection{Dissertations and theses written with articles}
-% \fi
-%
-% \ifnum\frenchdoc=1
-% Voici l'ordre de compilations n\'{e}cessaires \`{a} la production de votre th\`{e}se ou m\'{e}moire par
-% articles. Comme indiqu\'{e} \`{a} la Section \ref{comp-phd-msc-cl}, remplacez +*+ par +these+ ou +memoire+.
-% \else
-% Here is the compilation chain you need to do in order to generate your dissertation or thesis
-% written with articles. As mentioned in Section \ref{comp-phd-msc-cl}, replace +*+ by +dissertation+
-% or +thesis+.
-% \fi
-%
-% \begin{HECcompilation}
-% \ifnum\frenchdoc=1
-% \item +pdflatex gabarit-*-articles.tex+
-% \item +makeindex gabarit-*-articles.tex+
-% \footnote{Voir note \ref{comp-index}.}
-% \item +bibtex gabarit-*-articles.tex+
-% \item +bibtex [fichier].aux+
-% \item +pdflatex gabarit-*-articles.tex+
-% \item +pdflatex gabarit-*-articles.tex+
-% \else
-% \item +pdflatex template-*-articles.tex+
-% \item +makeindex template-*-articles.tex+
-% \footnote{See note \ref{comp-index-en}.}
-% \item +bibtex template-*-articles.tex+
-% \item +bibtex [file].aux+
-% \item +pdflatex template-*-articles.tex+
-% \item +pdflatex template-*-articles.tex+
-% \fi
-% \end{HECcompilation}
-%
-% \ifnum\frenchdoc=1
-% La compilation d'une th\`{e}se ou d'un m\'{e}moire par articles est plus complexe, car vous
-% devez g\'{e}n\'{e}rer chacune des bibliographies individuellement. Vous commencez par une
-% premi\`{e}re compilation +pdflatex+ sur le fichier gabarit. Vous lancez ensuite +makeindex+
-% et +bibtex+ sur ce m\^{e}me fichier. Une fois que la premi\`{e}re compilation +bibtex+ aura \'{e}t\'{e} compl\'{e}t\'{e}e,
-% ouvrez chacun des fichiers avec l'extension +.aux+ dans lesquels vous avez ins\'{e}r\'{e} des citations,
-% soit \textbf{article-1.aux}, \textbf{article-2.aux}, \textbf{article-3.aux}, etc.
-% \footnote{N'ouvrez les fichiers +.aux+ que si vous compilez votre document avec un
-% \'{e}diteur de code.}
-% Lancez une compilation +bibtex+ sur chacun de ces fichiers. Finalement, lancez au
-% moins deux compilations +pdflatex+ sur votre fichier gabarit afin de g\'{e}n\'{e}rer
-% les bibliographies, l'index et la table des mati\`{e}res.
-%
-% Et comme indiqu\'{e} \`{a} la Section \ref{comp-phd-msc-cl}, seuls les noms de fichiers sont
-% n\'{e}cessaires lorsque vous r\'{e}digez vos commandes dans un \'{e}diteur de ligne de commandes.
-% \else
-% Compiling a dissertation or thesis written with articles is more complex because you have to
-% generate each article's bibliography separately. You begin by compiling your template
-% file with +pdflatex+. You then run +bibtex+ and +makeindex+ on this same file. Once
-% the first +bibtex+ compilation is over, open each +.aux+ file where you've inserted
-% citations, i.e. \textbf{article-1.aux}, \textbf{article-2.aux}, \textbf{article-3.aux}, etc.
-% \footnote{Open the +.aux+ files only if you compile your documents from the code editor.}
-% Run a +bibtex+ compilation on each of these files. Finally, run +pdflatex+ at least twice
-% on your template file to output all bibliographies, the index and the table of contents.
-%
-% As mentioned at Section \ref{comp-phd-msc-cl}, only the file names are necessary for compiling
-% from the command line.
-% \fi
-%
% \StopEventually{
% \clearpage
% \begin{thebibliography}{99}%
@@ -1209,10 +1072,6 @@
% Oberdiek, Heiko, Sebastian Rahtz (2017).
% \emph{Package hyperref}, Comprehensive TeX Archive Network. Consult\'{e} le 19 mai 2017
% \`{a} \href{https://www.ctan.org/pkg/hyperref}{https://www.ctan.org/pkg/hyperref}
-% \bibitem{chapterbib}
-% Arseneau, Donald (2010).
-% \emph{Package chapterbib}, Comprehensive TeX Archive Network. Consult\'{e} le 23 mai 2017
-% \`{a} \href{https://www.ctan.org/pkg/chapterbib}{https://www.ctan.org/pkg/chapterbib}
% \bibitem{calc}
% Thorup, Kresten Krab, Frank Jensen et The {\LaTeX} Team (2007).
% \emph{Package calc}, Comprehensive TeX Archive Network. Consult\'{e} le 23 mai 2017 \`{a}
@@ -1252,6 +1111,10 @@
% \emph{Guide de pr\'{e}sentation des m\'{e}moires et des th\`{e}ses de l'Universit\'{e} de Montr\'{e}al}, Universit\'{e} de Montr\'{e}al.
% Consult\'{e} le 23 avril 2018 \`{a} \href{http://www.fesp.umontreal.ca/fileadmin/fesp/documents/Cheminement/GuidePresentationMemoiresTheses.pdf}%
% {http://www.fesp.umontreal.ca/fileadmin/fesp/documents/Cheminement/ GuidePresentationMemoiresTheses.pdf}
+% \bibitem{biblatex}
+% Kime, Philip, Moritz Wemheuer (2023).
+% \emph{Package biblatex}, Comprehensive TeX Archive Network. Consult\'{e} le 17 octobre 2023 \`{a}
+% \href{https://www.ctan.org/pkg/biblatex}{https://www.ctan.org/pkg/biblatex}
% \end{thebibliography}
% \clearpage
% \PrintChanges
@@ -1426,13 +1289,8 @@
\RequirePackage[utf8]{inputenc} % Pour ecrire les diacritiques directement
\RequirePackage[T1]{fontenc} % Utilisation des polices T1
-\RequirePackage{natbib} % A inclure avant babel
-
-% Si le document est redige par articles, charger chapterbib.
-\ifthenelse{\boolean{HEC@isClassique}}{}{%
- \RequirePackage{chapterbib} % Bibliographies multiples pour les articles
-}
\RequirePackage{babel} % Support multilingue
+\RequirePackage{csquotes} % Requis par babel
\RequirePackage[autolanguage]{numprint}
\RequirePackage{calc} % Necessaire pour la liste des abreviations
\RequirePackage{enumitem} % Necessaire pour la liste des abreviations
@@ -1987,7 +1845,7 @@
% \begin{macrocode}
\newcommand{\HECtdmAbreviations}{%
- \IfLanguageName{english}{List of acronyms}{Liste des abr\'{e}viations}
+ \IfLanguageName{english}{List of Acronyms}{Liste des abr\'{e}viations}
}
\newcommand{\HECtdmRemerciements}{%
@@ -1999,11 +1857,11 @@
}
\newcommand{\HECtdmCadreTheorique}{%
- \IfLanguageName{english}{Theoretical framework}{Cadre th\'{e}orique}
+ \IfLanguageName{english}{Theoretical Framework}{Cadre th\'{e}orique}
}
\newcommand{\HECtdmRevueLitterature}{%
- \IfLanguageName{english}{Literature review}{Revue de la litt\'{e}rature}
+ \IfLanguageName{english}{Literature Review}{Revue de la litt\'{e}rature}
}
\newcommand{\HECtdmResumeArticle}{%
@@ -2013,108 +1871,6 @@
% \end{macrocode}
%
% \ifnum\frenchdoc=1
-% \subsubsection{Bibliographies multiples dans les th\`{e}ses et m\'{e}moires par articles}
-% \else
-% \subsubsection{Multiple bibliographies in by-articles dissertations and theses}
-% \fi
-%
-% \ifnum\frenchdoc=1
-% La classe +memoir+ et le +package+ +chapterbib+ ne s'entendent pas
-% sur la place \`{a} accorder aux multiples bibliographies dans un document.
-% La commande \cmd{\HECbibliographieArticle} fait en sorte que la
-% bibliographie d'un article soit consid\'{e}r\'{e}e comme une section non num\'{e}rot\'{e}e
-% de cet article et renomme la section «R\'{e}f\'{e}rences».
-%
-% La commande \cmd{\HECbibliographieGenerale} remet par la suite la
-% bibliographie \`{a} sa place usuelle, soit au m\^{e}me niveau qu'un chapitre, encore
-% une fois sans la num\'{e}roter. La commande renomme aussi la bibliographie
-% «Bibliographie g\'{e}n\'{e}rale».
-%
-% Les deux commandes tiennent compte de la langue par d\'{e}faut du document
-% pour afficher la version anglaise ou fran\c{c}aise des titres des sections.
-% \else
-% The +memoir+ class and +chapterbib+ package don't play along very well when the
-% time comes when bibliographies have to be placed in a document. The
-% \cmd{\HECbibliographieArticle} command makes sur that an article's
-% bibliography is considered like an unnumbered section and that its title
-% is ``References''.
-%
-% The \cmd{\HECbibliographieGenerale} command then puts back the document's
-% bibliography at its usual place, which is an unnumbered chapter. The
-% command also renames this chapter ``General Bibliography''.
-%
-% The command finally detects the document's default language to automatically
-% translate all titles.
-% \fi
-%
-% \begin{macrocode}
-
-\newcommand{\HECbibliographieArticle}{%
- \renewcommand{\bibsection}{%
- \IfLanguageName{english}{%
- \renewcommand{\bibname}{References}
- }{%
- \renewcommand{\bibname}{R\'{e}f\'{e}rences}
- }
- \section*{\bibname}
- \bibmark
- \ifnobibintoc\else
- \phantomsection\addcontentsline{toc}{section}{\bibname}
- \fi
- \prebibhook
- }
-}
-
-\newcommand{\HECbibliographieGenerale}{%
- \renewcommand{\bibsection}{%
- \IfLanguageName{english}{%
- \renewcommand{\bibname}{Bibliography}
- }{%
- \renewcommand{\bibname}{Bibliographie g\'{e}n\'{e}rale}
- }
- \chapter*{\bibname}
- \bibmark
- \ifnobibintoc\else
- \phantomsection\addcontentsline{toc}{chapter}{\bibname}
- \fi
- \prebibhook
- }
-}
-
-% \end{macrocode}
-%
-% \ifnum\frenchdoc=1
-% Pour que les citations s'affichent correctement dans tout le document,
-% les commandes \cmd{\bibliographystyle} et \cmd{\bibliography} doivent
-% \^{e}tre ins\'{e}r\'{e}es dans chaque fichier inclus. Cependant, les bibliographies
-% ne doivent s'afficher que dans les articles et \`{a} la fin d'une th\`{e}se ou
-% d'un m\'{e}moire. La commande \cmd{\HECreferences} ins\`{e}re les deux commandes
-% si le document est une th\`{e}se ou m\'{e}moire par articles,
-% mais «cache» la bibliographie dans un conteneur, une +savebox+ qui ne
-% sera jamais utilis\'{e}e.
-% \else
-% In order to display your citations correctly in all the document,
-% the \cmd{\bibliographystyle} and \cmd{\bibliography} command have to
-% be inserted in each included file. However, the bibliographies must
-% only be displayed in the articles and at the end of the document. The
-% \cmd{\HECreferences} command inserts these two bibliography commands
-% in the document if it is written with articles, but ``hides'' the
-% unwanted bibliographies in a container, a +savebox+ that won't be
-% ever used.
-%\fi
-%
-% \begin{macrocode}
-
-\newsavebox{\bibliographieCachee}
-
-\newcommand{\HECreferences}[2]{%
- \bibliographystyle{#1}
- \savebox\bibliographieCachee{\parbox{\textwidth}{\bibliography{#2}}}
-}
-
-% \end{macrocode}
-%
-% \ifnum\frenchdoc=1
% \subsection{Environnements de la classe}
% \else
% \subsection{Class environments}
@@ -2254,7 +2010,6 @@
%%
%% Package[utf8]{inputenc}
%% Package[T1]{fontenc}
-%% Package{natbib}
%% Package{chapterbib}
%% Package{babel}
%% Package[autolanguage]{numprint}
@@ -2292,7 +2047,6 @@
%%
%% Package[utf8]{inputenc}
%% Package[T1]{fontenc}
-%% Package{natbib}
%% Package{chapterbib}
%% Package{babel}
%% Package[autolanguage]{numprint}
@@ -2325,6 +2079,10 @@
\usepackage{mathptmx}
%% \usepackage{mathpazo}
+\usepackage[
+ backend=biber,
+ style=authoryear,
+]{biblatex}
\usepackage{hyperref}
%%
%<francais>%% PRODUCTION DE L'INDEX
@@ -2473,6 +2231,9 @@
%% packages' options, read the class documentation to learn how.
%</anglais>
%%
+%% Fichier contenant les références bibliographiques pour biblatex /
+%% references file for biblatex
+\addbibresource{biblio.bib}
%% Options du package hyperref (inclure les metadonnees pdf dans les options) /
%% hyperref package option (including pdf metadata)
\hypersetup{%
@@ -2490,27 +2251,7 @@
%<anglais>%% BEGINNING OF THE DISSERTATION OR THESIS
%%
\begin{document}
-%<*francais>
-%%
-%% STYLE BIBLIOGRAPHIQUE
-%%
-%% On utilise par defaut le style bibliographique francais issu du package
-%% francais-bst. L'utilisation de ce style n'est pas obligatoire. Consultez
-%% la documentation pour connaitre la liste des styles compatibles avec la
-%% langue de redaction de votre these ou memoire.
-%%
-\bibliographystyle{francais}
-%</francais>
-%<*anglais>
-%%
-%% BIBLIOGRAPHY STYLE
-%%
-%% We use the default apalike bibliography style. Using this style isn't mandatory.
-%% Read the class' documentation to learn more about the styles compatible with
-%% the language of your dissertation or thesis.
-%%
-\bibliographystyle{apalike}
-%</anglais>
+
%% Pages liminaires / frontmatter
\frontmatter
@@ -2524,12 +2265,6 @@
%<francais> \HECpagestitre
%<anglais> \HECtitlepages
- %<*articles>
- %% Configuration des bibliographies des articles /
- %% Articles' bibliographies configuration
- \HECbibliographieArticle
- %</articles>
-
%% Resume francais / french abstract
%<francais> \include{resume-francais}
%<anglais> \include{abstract-french}
@@ -2624,14 +2359,10 @@
\printindex
%% BIBLIOGRAPHIE / BIBLIOGRAPHY
- %<*articles>
- %<francais> %% Configuration de la bibliographie generale
- %<anglais> %% General bibliography configuration
- \HECbibliographieGenerale
- %</articles>
- %<francais>%% Inscrivez le nom de votre fichier .bib entre les accolades.
- %<anglais>%% Write the name of your .bib file between the curly braces.
- \bibliography{}
+ %<classique&francais> \printbibliography[title=Bibliographie, heading=bibintoc]
+ %<classique&anglais> \printbibliography[title=Bibliography, heading=bibintoc]
+ %<articles&francais> \printbibliography[keyword=bib-generale, title=Bibliographie, heading=bibintoc]
+ %<articles&anglais> \printbibliography[keyword=general-bib, title=Bibliography, heading=bibintoc]
\backmatter
@@ -2668,23 +2399,8 @@
\section*{M\'{e}thodes de recherche}
-%<*francais>
-%% Inscrivez vos methodes de recherche ici.
-
-%% THESES ET MEMOIRES PAR ARTICLES SEULEMENT
-%% Si vous avez insere des citations dans cette section, retirez les signes
-%% de commentaires (%%) devant la commande ci-dessous et inscrivez le style
-%% bibliographique et le nom du fichier .bib utilises pour vos references.
-%</francais>
-%<*anglais>
-%% Write your research methods here.
-
-%% DISSERTATIONS AND THESES WRITTEN WITH ARTICLES
-%% If you have inserted citations in this section, uncomment the following
-%% command and type in the bibliography style and the .bib file name
-%% used for your references.
-%</anglais>
-%% \HECreferences{style}{nom-du-fichier-file-name}
+%<francais>%%Inscrivez vos methodes de recherche ici.
+%<anglais>%% Write your research methods here.
%</resumefrancais>
%<*resumeanglais>
%<francais>%% Fichier contenant le resume anglais, les mots-cles et les methodes de recherche.
@@ -2700,25 +2416,10 @@
%<francais>%% Inscrivez vos mots-cles en anglais ici (15 maximum, incluant les methodes de recherche ci-dessous).
%<anglais>%% Write your english keywords here (15 max, including the research methods)
-\section*{Research methods}
+\section*{Research Methods}
-%<*francais>
-%% Inscrivez vos methodes de recherche en anglais ici.
-
-%% THESES ET MEMOIRES PAR ARTICLES SEULEMENT
-%% Si vous avez insere des citations dans cette section, retirez les signes
-%% de commentaires (%%) devant la commande ci-dessous et inscrivez le style
-%% bibliographique et le nom du fichier .bib utilises pour vos references.
-%</francais>
-%<*anglais>
-%% Write your research methods here.
-
-%% DISSERTATIONS AND THESES WRITTEN WITH ARTICLES
-%% If you have inserted citations in this section, uncomment the following
-%% command and type in the bibliography style and the .bib file name
-%% used for your references.
-%</anglais>
-%% \HECreferences{style}{nom-du-fichier-file-name}
+%<francais>%% Inscrivez vos methodes de recherche en anglais ici.
+%<anglais>%% Write your research methods here.
%</resumeanglais>
%
% ^^A Liste des abreviations
@@ -2794,23 +2495,8 @@
\chapter*{\HECtdmAvantPropos}
\phantomsection\addcontentsline{toc}{chapter}{\HECtdmAvantPropos}
-%<*francais>
-%% Redigez votre avant-propos ici.
-
-%% THESES ET MEMOIRES PAR ARTICLES SEULEMENT
-%% Si vous avez insere des citations dans cette section, retirez les signes
-%% de commentaires (%%) devant la commande ci-dessous et inscrivez le style
-%% bibliographique et le nom du fichier .bib utilises pour vos references.
-%</francais>
-%<*anglais>
-%% Write your preface here.
-
-%% DISSERTATIONS AND THESES WRITTEN WITH ARTICLES
-%% If you have inserted citations in this section, uncomment the following
-%% command and type in the bibliography style and the .bib file name
-%% used for your references.
-%</anglais>
-%% \HECreferences{style}{nom-du-fichier-file-name}
+%<francais>%% Redigez votre avant-propos ici.
+%<anglais>%% Write your preface here.
%</avantpropos>
%
% ^^A Introduction
@@ -2821,23 +2507,8 @@
\phantomsection\addcontentsline{toc}{chapter}{\HECtitreIntroduction}
\thispagestyle{empty} % Premiere page non paginee / First page is unnumbered
-%<*francais>
-%% Redigez votre introduction ici.
-
-%% THESES ET MEMOIRES PAR ARTICLES SEULEMENT
-%% Si vous avez insere des citations dans cette section, retirez les signes
-%% de commentaires (%%) devant la commande ci-dessous et inscrivez le style
-%% bibliographique et le nom du fichier .bib utilises pour vos references.
-%</francais>
-%<*anglais>
-%% Write your introduction here.
-
-%% DISSERTATIONS AND THESES WRITTEN WITH ARTICLES
-%% If you have inserted citations in this section, uncomment the following
-%% command and type in the bibliography style and the .bib file name
-%% used for your references.
-%</anglais>
-%% \HECreferences{style}{nom-du-fichier}
+%<francais>%% Redigez votre introduction ici.
+%<anglais>%% Write your introduction here.
%</introduction>
%
% ^^A Cadre theorique
@@ -2848,23 +2519,8 @@
\phantomsection\addcontentsline{toc}{chapter}{\HECtdmCadreTheorique}
\thispagestyle{empty}
-%<*francais>
-%% Redigez votre cadre theorique ici.
-
-%% THESES ET MEMOIRES PAR ARTICLES SEULEMENT
-%% Si vous avez insere des citations dans cette section, retirez les signes
-%% de commentaires (%%) devant la commande ci-dessous et inscrivez le style
-%% bibliographique et le nom du fichier .bib utilises pour vos references.
-%</francais>
-%<*anglais>
-%% Write your theoretical framework here.
-
-%% DISSERTATIONS AND THESES WRITTEN WITH ARTICLES
-%% If you have inserted citations in this section, uncomment the following
-%% command and type in the bibliography style and the .bib file name
-%% used for your references.
-%</anglais>
-%% \HECreferences{style}{nom-du-fichier-file-name}
+%<francais>%% Redigez votre cadre theorique ici.
+%<anglais>%% Write your theoretical framework here.
%</cadretheorique>
%
% ^^A Revue de litterature
@@ -2875,23 +2531,8 @@
\phantomsection\addcontentsline{toc}{chapter}{\HECtdmRevueLitterature}
\thispagestyle{empty} % Premiere page non paginee / First page unnumbered
-%<*francais>
-%% Redigez votre revue de litterature ici.
-
-%% THESES ET MEMOIRES PAR ARTICLES SEULEMENT
-%% Si vous avez insere des citations dans cette section, retirez les signes
-%% de commentaires (%%) devant la commande ci-dessous et inscrivez le style
-%% bibliographique et le nom du fichier .bib utilises pour vos references.
-%</francais>
-%<*anglais>
-%% Write your literature review here.
-
-%% DISSERTATIONS AND THESES WRITTEN WITH ARTICLES
-%% If you have inserted citations in this section, uncomment the following
-%% command and type in the bibliography style and the .bib file name
-%% used for your references.
-%</anglais>
-%% \HECreferences{style}{nom-du-fichier}
+%<francais>%% Redigez votre revue de litterature ici.
+%<anglais>%% Write your literature review here.
%</revuelitterature>
%
% ^^A Chapitres de developpement
@@ -2908,7 +2549,7 @@
%% save a file with another name and include it in your template file
%% with the \include command.
%</anglais>
-\chapter{Titre du chapitre / Chapter title}
+\chapter{Titre du chapitre / Chapter Title}
\thispagestyle{empty} % Premiere page non paginee / First page is unnumbered
%<francais>%% Ecrivez votre chapitre ici.
@@ -2938,7 +2579,7 @@
%% an introduction, numbered sections and conclusion, and a bibliography.
%% You can add or delete sections according to your needs.
%</anglais>
-\chapter{Titre de l'article / Article title}
+\chapter{Titre de l'article / Article Title}
\thispagestyle{empty} % Premiere page non paginee / First page is unnumbered
\section*{\HECtdmResumeArticle}
@@ -2952,17 +2593,17 @@
%<francais>%% Redigez votre introduction d'article ici.
%<anglais>%% Write your article introduction here.
-\section{Titre de la section de d\'{e}veloppement 1 / Section 1 title}
+\section{Titre de la section de d\'{e}veloppement 1 / Section 1 Title}
%<francais>%% Redigez votre section de developpement ici.
%<anglais>%% Write your section 1 here.
-\section{Titre de la section de d\'{e}veloppement 2 / Section 2 title}
+\section{Titre de la section de d\'{e}veloppement 2 / Section 2 Title}
%<francais>%% Redigez votre section de developpement ici.
%<anglais>%% Write your section 2 here.
-\section{Titre de la section de d\'{e}veloppement 3 / Section 3 title}
+\section{Titre de la section de d\'{e}veloppement 3 / Section 3 Title}
%<francais>%% Redigez votre section de developpement ici.
%<anglais>%% Write your section 3 here.
@@ -2972,15 +2613,8 @@
%<francais>%% Redigez votre conclusion d'article ici.
%<anglais>%% Write your article conclusion here.
-%<*francais>
-\bibliographystyle{francais}
-%% Inscrivez le nom de votre fichier .bib entre les accolades.
-%</francais>
-%<*anglais>
-\bibliographystyle{apalike}
-%% Write the name of your .bib file between the curly braces.
-%</anglais>
-\bibliography{}
+%<francais> \printbibliography[keyword={article-n}, title=R\'{e}f\'{e}rences, heading=subbibintoc]
+%<anglais> \printbibliography[keyword={article-n}, title=References, heading=subbibintoc]
%</articledeveloppement>
%
% ^^A Conclusion
@@ -2991,23 +2625,8 @@
\phantomsection\addcontentsline{toc}{chapter}{\HECtitreConclusion}
\thispagestyle{empty} % Premiere page non paginee / First page is unnumbered
-%<*francais>
-%% Redigez votre conclusion ici.
-
-%% THESES ET MEMOIRES PAR ARTICLES SEULEMENT
-%% Si vous avez insere des citations dans cette section, retirez les signes
-%% de commentaires (%%) devant la commande ci-dessous et inscrivez le style
-%% bibliographique et le nom du fichier .bib utilises pour vos references.
-%</francais>
-%<*anglais>
-%% Write your conclusion here.
-
-%% DISSERTATIONS AND THESES WRITTEN WITH ARTICLES
-%% If you have inserted citations in this section, uncomment the following
-%% command and type in the bibliography style and the .bib file name
-%% used for your references.
-%</anglais>
-%% \HECreferences{style}{nom-du-fichier-file-name}
+%<francais>%% Redigez votre conclusion ici.
+%<anglais>%% Write your conclusion here.
%</conclusion>
%<*annexe>
%<*francais>
@@ -3026,10 +2645,6 @@
%% Redigez votre annexe ici.
-%% THESES ET MEMOIRES PAR ARTICLES SEULEMENT
-%% Si vous avez insere des citations dans cette section, retirez les signes
-%% de commentaires (%%) devant la commande ci-dessous et inscrivez le style
-%% bibliographique et le nom du fichier .bib utilises pour vos references.
%</francais>
%<*anglais>
%% File containing an appendix. The class only generates one appendix by default.
@@ -3045,11 +2660,6 @@
%% Write your appendix here.
-%% DISSERTATIONS AND THESES WRITTEN WITH ARTICLES
-%% If you have inserted citations in this section, uncomment the following
-%% command and type in the bibliography style and the .bib file name
-%% used for your references.
%</anglais>
-%% \HECreferences{style}{nom-du-fichier-file-name}
%</annexe>
% \fi \ No newline at end of file
diff --git a/macros/latex/contrib/hecthese/hecthese.pdf b/macros/latex/contrib/hecthese/hecthese.pdf
index e75c631b33..1965a8300f 100644
--- a/macros/latex/contrib/hecthese/hecthese.pdf
+++ b/macros/latex/contrib/hecthese/hecthese.pdf
Binary files differ
diff --git a/macros/latex/contrib/titlesec/README.md b/macros/latex/contrib/titlesec/README.md
index 4bdf80bc07..7275a75a3d 100644
--- a/macros/latex/contrib/titlesec/README.md
+++ b/macros/latex/contrib/titlesec/README.md
@@ -1,3 +1,5 @@
+2023-10-17
+
## Titlesec, Titletoc, Titleps
This directory holds 3 packages for sectioning titles -- when used as
@@ -28,6 +30,10 @@ mechanims is used, without intermediate `\leftmark`s or `\rightmark`s.
### Latest changes
```
+2.15 2023-10-17
+ Some fixes: #48, #50, #58, #64, #68 (see the GitHub repository
+ for further info).
+
2.14 2021-07-05
A couple of minor changes (for issues #17, #39).
@@ -69,3 +75,5 @@ Further details are available on
Please, for suggestions, bug reports, etc., go to
https://github.com/jbezos/titlesec/issues
+
+
diff --git a/macros/latex/contrib/titlesec/titleps.pdf b/macros/latex/contrib/titlesec/titleps.pdf
index 6d364232eb..a7ab09f1fe 100644
--- a/macros/latex/contrib/titlesec/titleps.pdf
+++ b/macros/latex/contrib/titlesec/titleps.pdf
Binary files differ
diff --git a/macros/latex/contrib/titlesec/titleps.sty b/macros/latex/contrib/titlesec/titleps.sty
index a5d995f265..cd155f0614 100644
--- a/macros/latex/contrib/titlesec/titleps.sty
+++ b/macros/latex/contrib/titlesec/titleps.sty
@@ -1,5 +1,5 @@
%
-% Copyright (C) 1998-2021 Javier Bezos http://www.texnia.com
+% Copyright (C) 1998-2023 Javier Bezos http://www.texnia.com
%
% This file may be distributed and/or modified under the conditions of
% the MIT License. A version can be found at the end of this file.
@@ -13,7 +13,7 @@
\ifx\ttl@coreps\@empty\else % START code for package
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{titleps}[2021/07/05 v2.14 Page styles]
+\ProvidesPackage{titleps}[2023/10/17 v2.15 Page styles]
% This package is mainly a wrapper for the pagestyle macros provided
% by titlesec, so that they can be used without it. Functionality is
@@ -67,7 +67,7 @@
% premark/gobble, sect-name, opt, title
\def\ttl@presec@x#1#2[#3]#4{%
#1{#2}{#3}%
- \@nameuse{ttl@s@#2}[#3]{#4}}
+ \@nameuse{ttl@s@#2}[{#3}]{#4}}
\def\ttl@presec@s#1#2{%
\gdef\ttl@savemark{\@nameuse{#1mark}{#2}}%
diff --git a/macros/latex/contrib/titlesec/titleps.tex b/macros/latex/contrib/titlesec/titleps.tex
index 8b1f3f5dfa..b5462964b0 100644
--- a/macros/latex/contrib/titlesec/titleps.tex
+++ b/macros/latex/contrib/titlesec/titleps.tex
@@ -1,5 +1,5 @@
%
-% Copyright (C) 1998-2021 Javier Bezos http://www.texnia.com
+% Copyright (C) 1998-2023 Javier Bezos http://www.texnia.com
%
% This file may be distributed and/or modified under the conditions of
% the MIT License. A version can be found at the end of this file.
@@ -7,8 +7,8 @@
% Repository: https://github.com/jbezos/titlesec
%
-\def\fileversion{2.14}
-\def\docdate{2021/07/05}
+\def\fileversion{2.15}
+\def\docdate{2023/10/17}
\documentclass[a4paper]{ltxguide}
\usepackage[sf,bf,compact,topmarks,calcwidth,pagestyles]{titlesec}
diff --git a/macros/latex/contrib/titlesec/titlesec.pdf b/macros/latex/contrib/titlesec/titlesec.pdf
index 9bb6f09e9e..2d60cc99ff 100644
--- a/macros/latex/contrib/titlesec/titlesec.pdf
+++ b/macros/latex/contrib/titlesec/titlesec.pdf
Binary files differ
diff --git a/macros/latex/contrib/titlesec/titlesec.sty b/macros/latex/contrib/titlesec/titlesec.sty
index f4aa050b79..e40079b9ff 100644
--- a/macros/latex/contrib/titlesec/titlesec.sty
+++ b/macros/latex/contrib/titlesec/titlesec.sty
@@ -1,5 +1,5 @@
%
-% Copyright (C) 1998-2021 Javier Bezos http://www.texnia.com
+% Copyright (C) 1998-2023 Javier Bezos http://www.texnia.com
%
% This file may be distributed and/or modified under the conditions of
% the MIT License. A version can be found at the end of this file.
@@ -34,7 +34,7 @@
% ~~~~~~~
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{titlesec}[2021/07/05 v2.14 Sectioning titles]
+\ProvidesPackage{titlesec}[2023/10/17 v2.15 Sectioning titles]
% Initialization
% ~~~~~~~~~~~~~~
@@ -283,7 +283,7 @@
\@namedef{markright }##1{\protect\ttl@gmk{\markright{##1}}}%
\fi
\def\@mkboth##1##2{\protect\ttl@gmk{\protect\@mkboth{##1}{##2}}}%
- \def\footnote{\@ifnextchar[%
+ \protected\def\footnote{\@ifnextchar[%
{\ttl@savefn\z@}{\ttl@savefn\@ne[]}}%
\edef\ttl@key@numberless{\ifttl@label//\else/*\fi}%
\def\ttl@b{ttlf@#1}%
@@ -412,8 +412,17 @@
% is empty if the star version is used. In this case
% neither the toc nor the marks are written.
+\def\ttl@sanitizedlabel#1\@@\@@{%
+ \in@{\label}{#1}%
+ \ifin@
+ \ttl@sanitizedlabel@i#1\@@\@@
+ \expandafter\ttl@sanitizedlabel\@currentlabelname\@@\@@
+ \fi}
+\def\ttl@sanitizedlabel@i#1\label#2#3\@@\@@{%
+ \def\@currentlabelname{#1#3}}
+
\def\ttl@straight@i#1[#2]#3{%
- \def\@currentlabelname{#2}% for nameref
+ \ttl@sanitizedlabel#2\@@\@@
\gdef\ttl@savemark{\csname#1mark\endcsname{#3}}%
\let\ttl@savewrite\@empty
\def\ttl@savetitle{#3}%
@@ -727,8 +736,7 @@
% Styles
% ~~~~~~
-
-% 1:global 2:label 3:sep 4:style 5:after 6:left 7:right 8:title
+%
% \ttl@<shape> and \ttlh@<shape> take the following eight
% arguments:
% {format}{label}{sep}{before}{after}{left}{right}{title}
@@ -1524,28 +1532,21 @@
\newcommand\titlelabel[1]{%
\def\@seccntformat##1{#1}}
-\expandafter\ifx\csname chapter\endcsname\relax
-
- \def\ttl@compatpart{\titleclass{\part}{part}\relax}
-
-\else
-
- \def\ttl@compatchapter{%
- \def\@makechapterhead{%
- \ttl@labeltrue
- \if@mainmatter\else\ttl@labelfalse\fi
- \ifnum\ttll@chapter>\c@secnumdepth\ttl@labelfalse\fi
- \ttl@startargs\ttl@mkchap{chapter}}%
- \def\@makeschapterhead{%
- \ttl@labelfalse
- \if@mainmatter\else\ttl@labelfalse\fi
- \ifnum\ttll@chapter>\c@secnumdepth\ttl@labelfalse\fi
- \ttl@startargs\ttl@mkchap{chapter}}}
-
- \def\ttl@compatpart{\titleclass{\part}{page}\relax}
-
-\fi
-
+\@ifundefined{chapter}%
+ {\def\ttl@compatpart{\titleclass{\part}{part}\relax}}%
+ {\def\ttl@compatchapter{%
+ \def\@makechapterhead{%
+ \ttl@labeltrue
+ \if@mainmatter\else\ttl@labelfalse\fi
+ \ifnum\ttll@chapter>\c@secnumdepth\ttl@labelfalse\fi
+ \ttl@startargs\ttl@mkchap{chapter}}%
+ \def\@makeschapterhead{%
+ \ttl@labelfalse
+ \if@mainmatter\else\ttl@labelfalse\fi
+ \ifnum\ttll@chapter>\c@secnumdepth\ttl@labelfalse\fi
+ \ttl@startargs\ttl@mkchap{chapter}}}%
+ \def\ttl@compatpart{\titleclass{\part}{page}\relax}}
+
\def\ttl@@extract#1\@startsection#2#3#4#5#6#7#8{%
\@tempskipa=#5
\@tempskipb=#6
@@ -1627,11 +1628,12 @@
\if@tempswa
- \expandafter\ifx\csname chapter\endcsname\relax\else
- \titleformat\chapter[display]%
- {\@ifundefined{ttl@fil}{\raggedright}{\ttl@fil}\ttl@fonts\ttl@sizes6}
- {\@chapapp\space\thechapter}{.8\baselineskip}{\ttl@sizes\z@\ttl@passexplicit}
- \fi
+ \@ifundefined{chapter}{}%
+ {\titleformat\chapter[display]%
+ {\@ifundefined{ttl@fil}{\raggedright}{\ttl@fil}\ttl@fonts\ttl@sizes6}%
+ {\@chapapp\space\thechapter}%
+ {.8\baselineskip}%
+ {\ttl@sizes\z@\ttl@passexplicit}}
\fi
@@ -1646,52 +1648,42 @@
\def\ttl@toplevel{part}
-\expandafter\ifx\csname chapter\endcsname\relax
-
- \@namedef{ttll@part}{0}
- \titleclass{\section}{straight}[\part]
-
- \titlespacing*{\part}
- {\z@}
- {4ex}
- {3ex}
-
-\else
-
- \let\ttl@save@mkchap\@makechapterhead
- \let\ttl@save@mkschap\@makeschapterhead
-
- \def\@makechapterhead#1{%
- \gdef\ttl@savemark{\chaptermark{#1}}%
- \ttl@save@mkchap{#1}%
- \@ifundefined{ttl@ps@chapter}{}%
- {\thispagestyle{\@nameuse{ttl@ps@chapter}}}}
-
- \def\@makeschapterhead#1{%
- \gdef\ttl@savemark{\chaptermark{#1}}%
- \ttl@save@mkschap{#1}%
- \@ifundefined{ttl@ps@chapter}{}%
- {\thispagestyle{\@nameuse{ttl@ps@chapter}}}}
-
- \@namedef{ttll@part}{-1}
- \@namedef{ttlss@part}{chapter}
- \@namedef{ttll@chapter}{0}
- \titleclass{\section}{straight}[\chapter]
-
+\@ifundefined{chapter}%
+ {\@namedef{ttll@part}{0}%
+ \titleclass{\section}{straight}[\part]%
+ \titlespacing*{\part}%
+ {\z@}%
+ {4ex}%
+ {3ex}}%
+ {\let\ttl@save@mkchap\@makechapterhead
+ \let\ttl@save@mkschap\@makeschapterhead
+ %
+ \def\@makechapterhead#1{%
+ \gdef\ttl@savemark{\chaptermark{#1}}%
+ \ttl@save@mkchap{#1}%
+ \@ifundefined{ttl@ps@chapter}{}%
+ {\thispagestyle{\@nameuse{ttl@ps@chapter}}}}%
+ %
+ \def\@makeschapterhead#1{%
+ \gdef\ttl@savemark{\chaptermark{#1}}%
+ \ttl@save@mkschap{#1}%
+ \@ifundefined{ttl@ps@chapter}{}%
+ {\thispagestyle{\@nameuse{ttl@ps@chapter}}}}%
+ %
+ \@namedef{ttll@part}{-1}%
+ \@namedef{ttlss@part}{chapter}%
+ \@namedef{ttll@chapter}{0}%
+ \titleclass{\section}{straight}[\chapter]%
% The following is unoperant, unless when \chapter / \part
% format is redefined
-
- \titlespacing*{\part}
- {\z@}
- {\z@\@plus1fil}
- {\z@\@plus1fil}
-
- \titlespacing*\chapter
- {\z@}%
- {50\p@}%
- {\ttl@chapafter}%
-
-\fi
+ \titlespacing*{\part}%
+ {\z@}%
+ {\z@\@plus1fil}%
+ {\z@\@plus1fil}%
+ \titlespacing*\chapter
+ {\z@}%
+ {50\p@}%
+ {\ttl@chapafter}}
\titleclass{\subsection} {straight}[\section]
\titleclass{\subsubsection}{straight}[\subsection]
diff --git a/macros/latex/contrib/titlesec/titlesec.tex b/macros/latex/contrib/titlesec/titlesec.tex
index be9ae49cd9..18169e739f 100644
--- a/macros/latex/contrib/titlesec/titlesec.tex
+++ b/macros/latex/contrib/titlesec/titlesec.tex
@@ -1,5 +1,5 @@
%
-% Copyright (C) 1998-2021 Javier Bezos http://www.texnia.com
+% Copyright (C) 1998-2023 Javier Bezos http://www.texnia.com
%
% This file may be distributed and/or modified under the conditions of
% the MIT License. A version can be found at the end of this file.
@@ -7,8 +7,8 @@
% Repository: https://github.com/jbezos/titlesec
%
-\def\fileversion{2.14}
-\def\docdate{2021/07/05}
+\def\fileversion{2.15}
+\def\docdate{2023/10/17}
\documentclass[a4paper]{ltxguide}
\usepackage[sf,bf,compact,topmarks,calcwidth,pagestyles]{titlesec}
@@ -38,7 +38,7 @@
\title{The \textsf{titlesec}, \textsf{titleps} and \textsf{titletoc}
Packages\footnote{The \textsf{titlesec} package is currently at
-version 2.14. \copyright{} 1998--2021 Javier Bezos.}}
+version 2.15. \copyright{} 1998--2023 Javier Bezos.}}
\author{Javier Bezos\footnote{For bug reports, comments and
suggestions go to \href{http://www.tex-tipografia.com/contact.html}%
@@ -136,15 +136,18 @@ of entries in the middle of a document.
\end{itemize}
\textsf{Titlesec} works with the standard classes and with many
others, including the AMS ones, and it runs smoothly with
-\textsf{hyperref}.\footnote{However, be aware the AMS classes
-reimplement the original internal commands. These changes will be
-lost here. The compatibility with \textsf{hyperref} has been tested
-with \textsf{dvips}, \textsf{dvipdfm} and \textsf{pdftex} but it is an
-unsupported feature. Please, check your version of
-\textsf{hyperref} is compatible with \textsf{titlesec}.}
-Unfortunately, it is not compatible with \textsf{memoir}, which
-provides its own tools with a limited subset of the features available
-in \textsf{titlesec}.
+\textsf{hyperref}.
+
+\begin{warning}
+ Be aware the AMS classes reimplement the original internal commands.
+ These changes will be lost here. The compatibility with
+ \textsf{hyperref} has been tested with \textsf{dvips}, \textsf{dvipdfm}
+ and \textsf{pdftex} but it is an unsupported feature (for example,
+ with |\titleclass| PDF bookmarks are not correctly nested). Please, check
+ your version of \textsf{hyperref} is compatible with
+ \textsf{titlesec}. Unfortunately, it is not compatible with
+ \textsf{memoir} or \textsf{KOMA}, which provide their own tools.
+\end{warning}
As usual, load the package in the standard way with
|\usepackage|. Then, redefine the sectioning commands with the
@@ -170,7 +173,7 @@ subsequent ones.
There are three option groups controlling font, size and align. You
need not set all of these groups, since a default is provided for each
one; however, you must use at least an option from them if you want
-this ``easy setup.''
+this ``easy setup''.
\begin{desc}
|rm sf tt md bf up it sl sc|
\end{desc}
@@ -238,8 +241,8 @@ command, as for example:
%~~~~~~~~~~~~~~~~~~~~~~~~
Two commands are provided to change the title format. The first one
-is used for the ``internal'' format, i.~e., shape, font, label\dots,
-the second one defines the ``external'' format, i.~e., spacing before
+is used for the ``internal'' format, i.e., shape, font, label\dots,
+the second one defines the ``external'' format, i.e., spacing before
and after, indentation, etc. This scheme is intended to easy
definitions, since in most of cases you will want to modify either
spacing or format.\footnote{Information is ``extracted'' from the
@@ -256,7 +259,7 @@ and then their format can be set with the commands described here.
\subsection{Format}
A set of shapes is provided, which controls the basic distribution of
-elements in a title. The available shapes are:
+elements in the title. The available shapes are:
\begin{description}
\item[hang] is the default value, with a hanging label. (Like the
standard |\section|.)
@@ -315,7 +318,7 @@ parts.
Here
\begin{itemize}
-\item |<command>| is the sectioning command to be redefined, i.~e.,
+\item |<command>| is the sectioning command to be redefined, i.e.,
|\part|,
|\chapter|, |\section|, |\subsection|, |\subsubsection|, |\paragraph|
or |\subparagraph|.
@@ -323,7 +326,7 @@ or |\subparagraph|.
\item The paragraph shape is set by |<shape>|, whose possible
values are those described above.
-\item |<format>| is the format to be applied to the whole
+\item |<format>| is the format applied to the whole
title---label and text. This part can contain vertical material (and
horizontal with some shapes) which is typeset just after the space
above the title.
@@ -340,7 +343,7 @@ to frame. Both |<label>| and |<sep>| are ignored in starred versions
of sectioning commands. If you are using |picture| and the like, set
this parameter to 0 pt.
-\item |<before-code>| is code preceding the title body. The very last
+\item |<before-code>| is the code preceding the title body. The very last
command can take an argument, which is the title
text.\footnote{Remember font size can be changed safely between
paragraphs only, and changes in the text should be made local with a
@@ -349,7 +352,7 @@ However, with the package option \texttt{explicit} the title must be
given explicitly with |#1| (see below). Penalties in this argument may
lead to unexpected results.
-\item |<after-code>| is code following the title body. The typeset
+\item |<after-code>| is the code following the title body. The typeset
material is in vertical mode with |hang|, |block| and |display|; in
horizontal mode with |runin| and |leftmargin| (\fbox{2.7} with the
latter, at the beginning of the paragraph). Otherwise is ignored.
@@ -360,6 +363,14 @@ Penalties, marks and the like must be properly synchronized with page
breaks. So, |<before-code>| and |<after-code>| are \textit{not} the
proper places for penalties. See |\sectionbreak| below.
+\begin{warning}
+ Because of the way colors are internally ‘stacked’ you can find some
+ anomalous results if |\color| is used in some shapes, namely |wrap|,
+ |drop|, |leftmargin| and |rightmargin|. Either wrap the text with
+ |\textcolor| or place the code inside a group.
+\end{warning}
+
+
\begin{desc}
|\chaptertitlename|
\end{desc}
@@ -379,7 +390,7 @@ following the title, except in |drop|, |wrap| and |runin| where this
possibility does not make sense.
\begin{itemize}
\item |<left>| increases the left margin, except in the |...margin|,
-and |drop| shape, where this parameter sets the title width, in
+and |drop| shapes, where this parameter sets the title width, in
|wrap|, the maximum width, and in |runin|, the indentation just before
the title. With negative value the title overhangs.\footnote{This
parameter is not equal to |<indent>| of |\cs{@startsection}|, which
@@ -417,11 +428,16 @@ as units in the |*| settings and you can change them if you do not like
the predefined values (or for slight changes in the makeup, for
example).
-\textbf{Notes.} |\titlespacing| does not work with either |\chapter|
-and |\part| unless you change its title format as well by means of
-|\titleformat|, the simple settings, or |\titleclass|. Arguments in
-|\titlespacing| must be dimensions; |\stretch| includes a command and
-hence raises an error.
+\begin{note}
+ |\titlespacing| does not work with either |\chapter| and |\part|
+ unless you change its title format as well by means of
+ |\titleformat|, the simple settings, or |\titleclass|.
+\end{note}
+
+\begin{note}
+ Arguments in |\titlespacing| must be dimensions; |\stretch| includes
+ a command and hence raises an error.
+\end{note}
\subsection{Spacing related tools}
@@ -468,7 +484,7 @@ deprecated.}
With |rigidchapters| the space for chapter titles is always the same,
and |<after-sep>| in |\titlespacing| does not mean the space from the
bottom of the text title to the text body as described above, but from
-the \textit{top} of the text title, i.~e., |<before-sep>| $+$
+the \textit{top} of the text title, i.e., |<before-sep>| $+$
|<after-sep>| now is a fixed distance from the top of the page body to
the main text. The default is |rubberchapters| where |<after-sep>| is
the separation between title and text as usual. Actually, the name is
@@ -513,7 +529,7 @@ Default is |aftersep|.
\fbox{2.6} In version 2.6 and later, \verb|\\| does not allow a page
break and therefore is equivalent to \verb|\\*|. Since I presume none
wants a page break inside a title, this has been made the default. If
-for some extrange reason you want to allow page breaks inside the
+for some strange reason you want to allow page breaks inside the
titles, use the package option \verb|pageatnewline|, which is provided
for backward compatibility.
@@ -526,7 +542,7 @@ for backward compatibility.
at certain places to make sure the vertical space is the same with
relation with the baseline. This is not always the desired behavior, so
the package options |nostruts| is provided. An alternative is the macro
-|\nostruts| when defining a section (note this macros is defined only
+|\nostruts| when defining a section (note this macro is defined only
within a title).
\subsection{Rules}
@@ -543,7 +559,7 @@ They also take into account the space used by marginal titles.
\end{desc}
The |\titleline| command allows inserting a line, which may
-contain text and other ``horizontal'' material. it is intended
+contain text and other ``horizontal'' material. It is intended
mainly for rules and leaders but in fact is also useful for other
purposes. The line has a fixed width and hence must be filled, i.e.,
|\titleline{CHAPTER}| produces an underfull box. Here the optional
@@ -786,7 +802,7 @@ besides the sectioning command name. Thus, the available keys are:
\begin{itemize}
\item |name|. Allowed values are |\chapter|, |\section|, etc.
\item |page|. Allowed values are |odd| or |even|.
-\item |numberless|. A valueless key. it is not necessary unless you
+\item |numberless|. A valueless key. It is not necessary unless you
want to set different numbered (without this key) and unnumbered
(with |numberless|) variants.
\end{itemize}
@@ -893,11 +909,11 @@ If the chapter level is 0, then the subchapter one is 1; the levels
below are increased by one (section is 2, subsection is 3, and so on).
There are two sectioning commands which perform some extra actions
-depending of its name and ignoring the class:
+depending on its name and ignoring the class:
\begin{itemize}
\item |\chapter| logs the string defined in |\chaptertitlename|
and the matter is taken into account.
-\item |\part| does not encapsulates the label in the toc entry,
+\item |\part| does not encapsulate the label in the toc entry,
except if you use the |newparttoc| option.
\end{itemize}
@@ -913,7 +929,7 @@ except if you use the |newparttoc| option.
Let us suppose you want to create your sectioning commands from scratch.
This package option ignores any previous definitions, if any,
and hence removes the possibility of using the options described
-in ``Quick Reference.'' Then you use the \textsf{titlesec}
+in ``Quick Reference''. Then you use the \textsf{titlesec}
tools, and define the corresponding counters and labels.
\begin{desc}
@@ -929,8 +945,15 @@ kind. After it, the rest of levels are added as explained above.
\section{Additional Notes}
%~~~~~~~~~~~~~~~~~~~~~~~~
-This part describes briefly some \LaTeX{} commands, useful
-when defining sectioning titles.
+Only a |\footnote| command is allowed in titles, but it will work.
+However, the footnote mark is not removed from toc entries or running
+headings; for that use
+\begin{verbatim}
+\usepackage[stable]{footmisc}
+\end{verbatim}
+
+The rest of this section describes briefly some \LaTeX{} commands,
+useful when defining sectioning titles.
\subsection{Fixed Width Labels}
@@ -958,7 +981,7 @@ Firstly remember if you say
\begin{verbatim}
\setcounter{secnumdepth}{0}
\end{verbatim}
-sections will be not numbered but they will be included in both toc
+sections will not be numbered but they will be included in both toc
and headers.
Now, let's
@@ -1317,7 +1340,7 @@ see the changes.
The value set is used in all of sections. If you are wondering
why, the answer is quite simple: in most of cases the |<right>|
margin will be constant. However, you are allowed to change
-it locally in the |<before-code>| arguments. Note as well that
+it locally in the |<above-code>| arguments. Note as well that
the default space in standard classes does not leave room to
display boldfaced page number above 100 and therefore you
might want to set a larger margin with this command.
@@ -1663,8 +1686,8 @@ be printed in the toc as well. Here is the code:
Once you have read the documentation it should be clear this
is not a package for the casual user who likes the standard
layout and wants to make simple changes. This is a tool for the
-serious typographer who has a clear idea of what layout wants
-and do not have the skill to get it. No attempt is made to improve
+serious typographer who has a clear idea of what layout he wants
+but does not have the skill to get it. No attempt is made to improve
your taste in section formatting.
\section{Appendix}
diff --git a/macros/latex/contrib/titlesec/titletoc.sty b/macros/latex/contrib/titlesec/titletoc.sty
index 99164ae1d7..efe2d68ef1 100644
--- a/macros/latex/contrib/titlesec/titletoc.sty
+++ b/macros/latex/contrib/titlesec/titletoc.sty
@@ -1,5 +1,5 @@
%
-% Copyright (C) 1998-2021 Javier Bezos http://www.texnia.com
+% Copyright (C) 1998-2023 Javier Bezos http://www.texnia.com
%
% This file may be distributed and/or modified under the conditions of
% the MIT License. A version can be found at the end of this file.
@@ -7,7 +7,7 @@
% Repository: https://github.com/jbezos/titlesec
%
-\ProvidesPackage{titletoc}[2021/07/05 v2.14 TOC entries]
+\ProvidesPackage{titletoc}[2023/10/17 v2.15 TOC entries]
% The following tags are used:
% ttl@ : the generic one, shared with titlesec
diff --git a/macros/latex/contrib/unbtex/README.md b/macros/latex/contrib/unbtex/README.md
index cc60dfae20..1ba57809fa 100644
--- a/macros/latex/contrib/unbtex/README.md
+++ b/macros/latex/contrib/unbtex/README.md
@@ -1,11 +1,11 @@
# UnBTeX: A class for bachelor, master, and doctoral thesis at the
University of Brasilia (UnB), Brazil.
-Version 1.2.1 2023/06/15
+Version 1.3 2023/10/17
Copyright (C) 2021-2023 by Henrique C. Ferreira <hcferreira@unb.br>
The package provides a class based on abnTeX and compatible with pdflatex
-and biber to prepare theses for the University of Brasilia (UnB), Brazil.
+and bibtex to prepare theses for the University of Brasilia (UnB), Brazil.
The class also comes with a template for the various types of theses for
ungraduated and graduated programs at UnB.
@@ -16,7 +16,7 @@ audience.
This package consists of the following source file: unbtex.cls.
Template files: unbtex-example.pdf, unbtex-example.tex and files within
unbtex-example directory.
-To compile the unbtex-example.tex file you should call pdflatex, biber,
+To compile the unbtex-example.tex file you should call pdflatex, bibtex,
pdflatex.
Here is a history of changes:
@@ -45,6 +45,14 @@ Here is a history of changes:
. Braces around equation numbering and language option for \autoref
command has been corrected
. The code comments have been improved
+ package is used has been solved
+ 1.3 (2023-10-17):
+ . To avoid the compilation time limit in Overleaf, the biblatex
+ bibliography package has been replaced by the bibtex package,
+ and the TikZ package for drawings no more has not been used.
+ . The indentation of lists of figures and tables have been corrected
+ . The cleveref package is now being used for cross-references instead
+ of the autoref command
## Overleaf
diff --git a/macros/latex/contrib/unbtex/unbtex-example.pdf b/macros/latex/contrib/unbtex/unbtex-example.pdf
index c1ffb3e049..28d6d900ef 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 fc4e5078a3..3765e66942 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.2.1 2023/06/15
+%% Version 1.3 2023/10/17
%% Copyright (C) 2021-2023 by Henrique C. Ferreira <hcferreira@unb.br>
%%
%% This class file may be distributed and/or modified under the conditions
@@ -15,7 +15,7 @@
%% 2005/12/01 or later.
%%
%% This file is a template for use with the UnBTex class
-%% To compile the document you should call pdflatex, biber, pdflatex
+%% To compile the document you should call pdflatex, bibtex, pdflatex
%%
\documentclass[
@@ -27,31 +27,37 @@
%twoside,
a4paper, % tamanho do papel.
sumario=tradicional,
- % -- opções da classe abntex2 -- https://www.ctan.org/pkg/abntex2
- %chapter=TITLE, % títulos de capítulos convertidos em letras maiúsculas
- %section=TITLE, % títulos de seções convertidos em letras maiúsculas
- %subsection=TITLE, % títulos de subseções convertidos em letras maiúsculas
- %subsubsection=TITLE,% títulos de subsubseções convertidos em letras maiúsculas
% -- opções do pacote babel --
- english, % idioma adicional para hifenização
- % para trabalhos em inglês, altere o idioma após o comando \begin{document}
- brazil % o comando \autoref utilizará o idioma português se esta linha não for comentada
+ english, % o idioma do texto não é definido aqui (mantenha as oções english e brazil)
+ brazil % para trabalhos em inglês, altere o idioma após o comando \begin{document}
]{unbtex}
% ---
% Pacotes básicos (Adicione abaixo pacotes úteis para o seu trabalho)
% ---
-% Bibliografia nas normas da ABNT, formato autor-data (Pacote biblatex)
+% Bibliografia nas normas da ABNT, formato autor-data
% O formato autor-data facilita a leitura, sobretudo de trabalhos com muitas páginas
-% https://www.ctan.org/pkg/biblatex
-% https://ctan.org/pkg/biblatex-abnt
-\usepackage[style=abnt,backref=true,justify,indent,uniquename=init,giveninits,maxbibnames=99,extrayear,repeatfields,noslsn]{biblatex}
-\usepackage{csquotes} % Necessário para o pacote biblatex funcionar
-
-% Arquivos com as referências bibliográficas
-\addbibresource{unbtex-example/referencias.bib}
-\addbibresource{unbtex-example/references.bib}
+\usepackage[brazilian,hyperpageref]{backref} % Paginas com as citações na lista de referências
+\usepackage[alf,bibjustif]{abntex2cite}
+% Configurações do pacote backref
+% Usado sem a opção hyperpageref de backref
+\renewcommand{\backrefpagesname}{Citado na(s) página(s):~}
+% Texto padrão antes do número das páginas
+\renewcommand{\backref}{}
+% Define os textos da citação
+\renewcommand*{\backrefalt}[4]{
+ \ifcase #1 %
+ Nenhuma citação no texto.%
+ \or
+ Citado na página #2.%
+ \else
+ Citado #1 vezes nas páginas #2.%
+ \fi}%
+% ---
+
+% Referências cruzadas automáticas, dependendo do tipo de referência (figuras, tabelas, equações, etc.)
+\RequirePackage[nameinlink,noabbrev,english,brazilian]{cleveref}
% ---
% Compila o índice
@@ -89,11 +95,6 @@
% https://tex.stackexchange.com/questions/257076/customize-vertical-space-of-entries-and-subgroup-names-in-nomenclature
}
-%\renewcommand{\nomgroup}[1]{
-%\ifthenelse{\equal{##1}{A}}{}{%
-%\chapter*{\hspace{-\leftmargin}\listadesimbolosname}
-%\ifthenelse{\equal{##1}{S}}{}{}}}
-
% ---
% Compila a nomenclatura
% ---
@@ -104,16 +105,6 @@
\graphicspath{{unbtex-example/figuras/}}
% ---
-% Pacote para desenho
-\tikzexternalize[prefix=unbtex-example/figuras/,
- %only named=true,
- %mode=graphics if exists,
- %figure list=true,
- %optimize=true, optimize command away=\includegraphics,
- %optimize command away=\includepdf,
- %shell escape=-enable-write18
- ]
-
% ------------------------------------------------------------------------
% ------------------------------------------------------------------------
% Informações do trabalho
@@ -121,7 +112,7 @@
% ------------------------------------------------------------------------
% Título (no idioma do texto)
-\titulo{Modelo de Trabalho \\ Acadêmico com UnB\TeX} % insira \\ para forçar quebras de linha no título
+\titulo{Modelo de trabalho \\ acadêmico com UnB\TeX} % insira \\ para 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)
% Em inglês caso o trabalho seja em inglês.
\tituloestrangeiro{}
@@ -149,8 +140,8 @@
% Local e data
\local{Brasília}
-\dia{15}
-\mes{junho}
+\dia{17}
+\mes{outubro}
\ano{2023}
% Palavras-chave (pelo menos três devem ser informadas)
@@ -315,7 +306,7 @@ Agradecimentos do segundo autor.
\setlength{\absparsep}{18pt} % ajusta o espaçamento dos parágrafos do resumo
\begin{resumo}[Resumo]
% ---
-Segundo a \textcite[seções 3.1-3.2]{NBR6028:2003}, o resumo deve ressaltar o objetivo, o método, os resultados e as conclusões do documento. A ordem e a extensão destes itens dependem do tipo de resumo (informativo ou indicativo) e do tratamento que cada item recebe no documento original. O resumo deve ser precedido da referência do documento, com exceção do resumo inserido no próprio documento. (\ldots) As palavras-chave devem figurar logo abaixo do resumo, antecedidas da expressão Palavras-chave: separadas entre si por ponto e finalizadas também por ponto.
+Segundo a \citeonline[seções 3.1-3.2]{NBR6028:2003}, o resumo deve ressaltar o objetivo, o método, os resultados e as conclusões do documento. A ordem e a extensão destes itens dependem do tipo de resumo (informativo ou indicativo) e do tratamento que cada item recebe no documento original. O resumo deve ser precedido da referência do documento, com exceção do resumo inserido no próprio documento. (\ldots) As palavras-chave devem figurar logo abaixo do resumo, antecedidas da expressão Palavras-chave: separadas entre si por ponto e finalizadas também por ponto.
% ---
\vspace{\onelineskip}
@@ -367,7 +358,7 @@ This is the english abstract.
% ---
%{\SingleSpacing
\setlength{\nomitemsep}{-\parsep}
-\printnomenclature[2cm]
+\printnomenclature[1.25cm]
% A opção do comando \printnomenclature define a largura da primeira coluna das listas
\cleardoublepage
% ---
@@ -426,15 +417,18 @@ This is the english abstract.
% Referências bibliográficas
% ---
-\defbibheading{bibliography}[\bibname]{\chapter*{#1}}
-\cleardoublepage
-\phantomsection
-\tocprintchapternonum
-\addcontentsline{toc}{chapter}{\texorpdfstring{\bibname}{\bibname}}
-\printbibliography
-\markboth{}{}
+%\defbibheading{bibliography}[\bibname]{\chapter*{#1}}
+%\cleardoublepage
+%\phantomsection
+%\tocprintchapternonum
+%\addcontentsline{toc}{chapter}{\texorpdfstring{\bibname}{\bibname}}
+%\printbibliography
+%\markboth{}{}
% ---
+% Arquivos com as referências bibliográficas
+\bibliography{unbtex-example/referencias,unbtex-example/references}
+
%\defbibheading{bibliography}[\refname]{\section*{#1}\sectionmark{\refname}}
% ---
diff --git a/macros/latex/contrib/unbtex/unbtex-example/capitulo1.tex b/macros/latex/contrib/unbtex/unbtex-example/capitulo1.tex
index 23366069bc..90f67e8f60 100644
--- a/macros/latex/contrib/unbtex/unbtex-example/capitulo1.tex
+++ b/macros/latex/contrib/unbtex/unbtex-example/capitulo1.tex
@@ -3,7 +3,7 @@
\label{cap_intr}
% ----------------------------------------------------------
-Este documento e seu código-fonte são exemplos de referência de uso da classe \textsf{unbtex}, uma customização da classe \textsf{abntex2} para a Universidade de Brasília (UnB). O documento exemplifica a elaboração de trabalho acadêmico (trabalho de conclusão de curso, dissertação e tese) a partir do UnB\TeX. O \abnTeX, por sua vez, é uma customização da classe \textsf{memoir} que visa atender os requisitos da norma ABNT NBR 14724:2011 \emph{Informação e documentação -- Trabalhos acadêmicos -- Apresentação}. Uma lista completa das normas observadas pelo \abnTeX\ é apresentada em \textcite{abntex2classe}.
+Este documento e seu código-fonte são exemplos de referência de uso da classe \textsf{unbtex}, uma customização da classe \textsf{abntex2} para a Universidade de Brasília (UnB). O documento exemplifica a elaboração de trabalho acadêmico (trabalho de conclusão de curso, dissertação e tese) a partir do UnB\TeX. O \abnTeX, por sua vez, é uma customização da classe \textsf{memoir} que visa atender os requisitos da norma ABNT NBR 14724:2011 \emph{Informação e documentação -- Trabalhos acadêmicos -- Apresentação}. Uma lista completa das normas observadas pelo \abnTeX\ é apresentada em \citeonline{abntex2classe}.
% Definição da nomenclatura que irá para a lista de siglas e abreviações
\nomenclature[A]{ABNT}{Associação Brasileira de Normas Técnicas}
@@ -11,11 +11,11 @@ Este documento e seu código-fonte são exemplos de referência de uso da classe
O \abnTeX\ não é uma classe específica para nenhuma universidade ou instituição e implementa somente os requisitos das normas da ABNT. Sinta-se convidado a participar do projeto \abnTeX! Acesse o site do projeto em \url{http://www.abntex.net.br/}. Também fique livre para conhecer, estudar, alterar e redistribuir o trabalho do \abnTeX, desde que os arquivos modificados tenham seus nomes alterados e que os créditos sejam dados aos autores originais, nos termos da ``The \LaTeX\ Project Public License''\footnote{\url{http://www.latex-project.org/lppl.txt}}.
-Encorajamos que sejam realizadas customizações específicas deste exemplo para universidades e outras instituições --- como capas, folha de aprovação, etc. Porém, recomendamos que ao invés de se alterar diretamente os arquivos do \abnTeX, distribua-se arquivos com as respectivas customizações, como feito no UnB\TeX. Isso permite que futuras versões do \abnTeX~não se tornem automaticamente incompatíveis com as customizações promovidas. Consulte \textcite{abntex2-wiki-como-customizar} para mais informações.
+Encorajamos que sejam realizadas customizações específicas deste exemplo para universidades e outras instituições --- como capas, folha de aprovação, etc. Porém, recomendamos que ao invés de se alterar diretamente os arquivos do \abnTeX, distribua-se arquivos com as respectivas customizações, como feito no UnB\TeX. Isso permite que futuras versões do \abnTeX~não se tornem automaticamente incompatíveis com as customizações promovidas. Consulte \citeonline{abntex2-wiki-como-customizar} para mais informações.
Este documento deve ser utilizado como complemento do manual do \abnTeX\ \cite{abntex2classe} e da classe \textsf{memoir} \cite{memoir}.
-Parte das customizações feitas no \abnTeX\ são baseadas em soluções adotadas por \textcite{Castro2019} para editoração dos livros da série \textit{Ensino de graduação} da Editora UnB.
+Parte das customizações feitas no \abnTeX\ são baseadas em soluções adotadas por \citeonline{Castro2019} para editoração dos livros da série \textit{Ensino de graduação} da Editora UnB.
%\begin{mdframed}[style=defnSty] % azul
\begin{mdframed}[style=plainSty] % verde
diff --git a/macros/latex/contrib/unbtex/unbtex-example/capitulo2.tex b/macros/latex/contrib/unbtex/unbtex-example/capitulo2.tex
index 7e28ae3039..707e5ddbc3 100644
--- a/macros/latex/contrib/unbtex/unbtex-example/capitulo2.tex
+++ b/macros/latex/contrib/unbtex/unbtex-example/capitulo2.tex
@@ -30,7 +30,7 @@ apenas o recuo \cite[seção 5.3]{NBR10520:2002}.
\end{citacao}
\end{verbatim}
-O ambiente \texttt{citacao} pode receber como parâmetro opcional um nome de idioma previamente carregado nas opções da classe (\autoref{sec-hifenizacao}). Nesse caso, o texto da citação é automaticamente escrito em itálico e a hifenização é ajustada para o idioma selecionado na opção do ambiente. Por exemplo:
+O ambiente \texttt{citacao} pode receber como parâmetro opcional um nome de idioma previamente carregado nas opções da classe (\cref{sec-hifenizacao}). Nesse caso, o texto da citação é automaticamente escrito em itálico e a hifenização é ajustada para o idioma selecionado na opção do ambiente. Por exemplo:
\begin{verbatim}
\begin{citacao}[english]
@@ -50,13 +50,13 @@ Citações simples, com até três linhas, devem ser incluídas com aspas. Obser
\section{Notas de rodapé}
% ---
-As notas de rodapé são detalhadas pela NBR 14724:2011 na seção 5.2.1\footnote{As notas devem ser digitadas ou datilografadas dentro das margens, ficando separadas do texto por um espaço simples de entre as linhas e por filete de 5 cm, a partir da margem esquerda. Devem ser alinhadas, a partir da segunda linha da mesma nota, abaixo da primeira letra da primeira palavra, de forma a destacar o expoente, sem espaço entre elas e com fonte menor \textcite[seção 5.2.1]{NBR14724:2011}.}\footnote{Caso uma série de notas sejam criadas sequencialmente, o \abnTeX\ instrui o \LaTeX\ para que uma vírgula seja colocada após cada número do expoente que indica a nota de rodapé no corpo do texto.}\footnote{Verifique se os números do expoente possuem uma vírgula para dividi-los no corpo do texto.}.
+As notas de rodapé são detalhadas pela NBR 14724:2011 na seção 5.2.1\footnote{As notas devem ser digitadas ou datilografadas dentro das margens, ficando separadas do texto por um espaço simples de entre as linhas e por filete de 5 cm, a partir da margem esquerda. Devem ser alinhadas, a partir da segunda linha da mesma nota, abaixo da primeira letra da primeira palavra, de forma a destacar o expoente, sem espaço entre elas e com fonte menor \citeonline[seção 5.2.1]{NBR14724:2011}.}\footnote{Caso uma série de notas sejam criadas sequencialmente, o \abnTeX\ instrui o \LaTeX\ para que uma vírgula seja colocada após cada número do expoente que indica a nota de rodapé no corpo do texto.}\footnote{Verifique se os números do expoente possuem uma vírgula para dividi-los no corpo do texto.}.
% ---
\section{Tabelas}
% ---
-A \autoref{tab-nivinv} é um exemplo de tabela construída em
+A \cref{tab-nivinv} é um exemplo de tabela construída em
\LaTeX.
\begin{table}[htb]
@@ -76,10 +76,10 @@ A \autoref{tab-nivinv} é um exemplo de tabela construída em
Nível inferior & Modelos e métodos do nível do objeto e problemas do nível inferior & Prática & Solução de problemas \\
% \hline
\end{tabular}
-\legend{Fonte: \textcite{van86}}
+\legend{Fonte: \citeonline{van86}}
\end{table}
-Já a \autoref{tabela-ibge} apresenta uma tabela criada conforme o padrão do \textcite{ibge1993} requerido pelas normas da ABNT para documentos técnicos e acadêmicos.
+Já a \cref{tabela-ibge} apresenta uma tabela criada conforme o padrão do \citeonline{ibge1993} requerido pelas normas da ABNT para documentos técnicos e acadêmicos.
\begin{table}[htb]
\IBGEtab{%
@@ -105,7 +105,7 @@ Já a \autoref{tabela-ibge} apresenta uma tabela criada conforme o padrão do \t
}
\end{table}
-Na \autoref{tab:lvlii} são mostrados os componentes curriculares do novo fluxograma da engenharia mecatrônica.
+Na \cref{tab:lvlii} são mostrados os componentes curriculares do novo fluxograma da engenharia mecatrônica.
\begin{table}[htb]
\small
@@ -138,70 +138,83 @@ CIC0090 & Estruturas de Dados & 30 & 30 & 0 & 0 & 60 & CIC0004 \\\hline%
\section{Figuras}
% ---
-Figuras podem ser criadas diretamente em \LaTeX, como o exemplo da \autoref{fig:syscl}.
-
-\tikzset{
-block/.style={
- draw,
- fill=blue!20,
- rectangle,
- minimum height=3em,
- minimum width=6em
- },
-sum/.style={
- draw,
- fill=blue!20,
- circle,
- },
-input/.style={coordinate},
-output/.style={coordinate},
-pinstyle/.style={
- pin edge={to-,thin,black}
- }
-}
-
-\begin{figure}[htb]
- \centering
+Existem pacotes que permitem criar figuras e gráficos no próprio código \LaTeX. Por exemplo, temos
+
+\begin{itemize}
+ \item PGFPlots \url{http://pgfplots.sourceforge.net/}
+ \item TikZ \url{http://www.texample.net/tikz/examples/all/}
+ \item Metapost \url{http://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html}
+ \item PSTricks \url{https://tug.org/PSTricks/main.cgi?file=examples}
+\end{itemize}
+
+%\tikzset{
+%block/.style={
+% draw,
+% fill=blue!20,
+% rectangle,
+% minimum height=3em,
+% minimum width=6em
+% },
+%sum/.style={
+% draw,
+% fill=blue!20,
+% circle,
+% },
+%input/.style={coordinate},
+%output/.style={coordinate},
+%pinstyle/.style={
+% pin edge={to-,thin,black}
+% }
+%}
+
+%\begin{figure}[htb]
+% \centering
% The block diagram code is probably more verbose than necessary
-\tikzsetnextfilename{blockdiagram}
-\begin{tikzpicture}[auto,>=latex']
+%\tikzsetnextfilename{blockdiagram}
+%\begin{tikzpicture}[auto,>=latex']
% We start by placing the blocks
- \node [input, name=input] {};
- \node [sum, right = of input] (sum) {};
- \node [block, right = of sum] (controller) {Controlador};
- \node [block, right = of controller, pin={[pinstyle]above:Perturbações},
- node distance=3cm] (system) {Planta};
+% \node [input, name=input] {};
+% \node [sum, right = of input] (sum) {};
+% \node [block, right = of sum] (controller) {Controlador};
+% \node [block, right = of controller, pin={[pinstyle]above:Perturbações},
+% node distance=3cm] (system) {Planta};
% We draw an edge between the controller and system block to
% calculate the coordinate u. We need it to place the measurement block.
- \draw [->] (controller) -- node[name=u] {$u$} (system);
- \node [output, right =of system] (output) {};
+% \draw [->] (controller) -- node[name=u] {$u$} (system);
+% \node [output, right =of system] (output) {};
%\node [block, below of=u] (measurements) {Measurements};
% Once the nodes are placed, connecting them is easy.
- \draw [draw,->] (input) -- node {$r$} (sum);
- \draw [->] (sum) -- node {$e$} (controller);
- \draw [->] (system) -- node [name=y] {$y$}(output);
- \draw [->] (y) -- ++(0,-2cm) -| node[pos=0.99] {$-$}
- node [near end] {$y_m$} (sum);
-\end{tikzpicture}
- \caption{Sistema de controle em malha fechada\label{fig:syscl}}
-\end{figure}
+% \draw [draw,->] (input) -- node {$r$} (sum);
+% \draw [->] (sum) -- node {$e$} (controller);
+% \draw [->] (system) -- node [name=y] {$y$}(output);
+% \draw [->] (y) -- ++(0,-2cm) -| node[pos=0.99] {$-$}
+% node [near end] {$y_m$} (sum);
+%\end{tikzpicture}
+% \caption{Sistema de controle em malha fechada\label{fig:syscl}}
+%\end{figure}
+
+Figuras também podem ser incorporadas de arquivos externos, como é o caso das \cref{fig_blockdiagram,fig_grafico}. 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 PDF. Com isso, o tamanho do arquivo final do trabalho será menor, e as imagens terão uma apresentação melhor, principalmente quando impressas, uma vez que imagens vetoriais são perfeitamente escaláveis para qualquer dimensão. Nesse caso, se for utilizar o Microsoft Excel para produzir gráficos, ou o Microsoft Word para produzir ilustrações, exporte-os como PDF e os incorpore ao documento conforme o exemplo abaixo. No entanto, para manter a coerência no uso de software livre (já que você está usando \LaTeX\ e \abnTeX), 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. De todo modo, caso não seja possível utilizar arquivos de imagens como PDF, utilize qualquer outro formato, como JPEG, GIF, BMP, etc. Nesse caso, você pode tentar aprimorar as imagens incorporadas com o software livre \textsf{Gimp} (\url{http://www.gimp.org/}). Ele é uma alternativa livre ao Adobe Photoshop.
-Figuras também podem ser incorporadas de arquivos externos, como é o caso da \autoref{fig_grafico}. 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 PDF. Com isso, o tamanho do arquivo final do trabalho será menor, e as imagens terão uma apresentação melhor, principalmente quando impressas, uma vez que imagens vetoriais são perfeitamente escaláveis para qualquer dimensão. Nesse caso, se for utilizar o Microsoft Excel para produzir gráficos, ou o Microsoft Word para produzir ilustrações, exporte-os como PDF e os incorpore ao documento conforme o exemplo abaixo. No entanto, para manter a coerência no uso de software livre (já que você está usando \LaTeX\ e \abnTeX), 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. De todo modo, caso não seja possível utilizar arquivos de imagens como PDF, utilize qualquer outro formato, como JPEG, GIF, BMP, etc. Nesse caso, você pode tentar aprimorar as imagens incorporadas com o software livre \textsf{Gimp} (\url{http://www.gimp.org/}). Ele é uma alternativa livre ao Adobe Photoshop.
+\begin{figure}[htb]
+ \centering
+ \includegraphics[scale=1]{blockdiagram.eps}
+ \caption{\label{fig_blockdiagram}Sistema de controle em malha fechada}
+\end{figure}
\begin{figure}[htb]
\begin{center}
\includegraphics[scale=0.5]{img-grafico.pdf}
\end{center}
\caption{\label{fig_grafico}Gráfico produzido em Excel e salvo como PDF}
- \legend{Fonte: \textcite[24]{araujo2012}}
+ \legend{Fonte: \citeonline[24]{araujo2012}}
\end{figure}
% ---
\subsection{Figuras em \emph{minipages}}
% ---
-\emph{Minipages} são usadas para inserir textos ou outros elementos em quadros com tamanhos e posições controladas. Veja o exemplo da \autoref{fig_minipage_imagem1} e da \autoref{fig_minipage_grafico2}.
+\emph{Minipages} são usadas para inserir textos ou outros elementos em quadros com tamanhos e posições controladas. Veja os exemplos das \cref{fig_minipage_imagem1,fig_minipage_grafico2}.
\begin{figure}[htb]
\label{teste}
@@ -217,7 +230,7 @@ Figuras também podem ser incorporadas de arquivos externos, como é o caso da \
\centering
\includegraphics[scale=0.2]{img-grafico.pdf}
\caption{Gráfico 2 da minipage} \label{fig_minipage_grafico2}
- \legend{Fonte: \textcite[24]{araujo2012}}
+ \legend{Fonte: \citeonline[24]{araujo2012}}
\end{minipage}
\end{figure}
@@ -240,7 +253,7 @@ Figuras também podem ser incorporadas de arquivos externos, como é o caso da \
\label{fig:tau}
\end{figure}
-Observe que, segundo a \textcite[seções 4.2.1.10 e 5.8]{NBR14724:2011}, as ilustrações devem sempre ter numeração contínua e única em todo o documento:
+Observe que, segundo a \citeonline[seções 4.2.1.10 e 5.8]{NBR14724:2011}, as ilustrações devem sempre ter numeração contínua e única em todo o documento:
\begin{citacao}
Qualquer que seja o tipo de ilustração, sua identificação aparece na parte superior, precedida da palavra designativa (desenho, esquema, fluxograma, fotografia, gráfico, mapa, organograma, planta, quadro, retrato, figura, imagem, entre outros), seguida de seu número de ordem de ocorrência no texto, em algarismos arábicos, travessão e do respectivo título. Após a ilustração, na parte inferior, indicar a fonte consultada (elemento obrigatório, mesmo que seja produção do próprio autor), legenda, notas e outras informações necessárias à sua compreensão (se houver). A ilustração deve ser citada no texto e inserida o mais próximo possível do trecho a que se refere. \cite[seção 5.8]{NBR14724:2011}
@@ -277,7 +290,7 @@ p+\frac{1}{2}{\rho}v^2+{\rho}gh = \text{constante}
\label{eq:Bernoulli}
\end{equation}
-\noindent onde $p$ é a pressão, $v$ é a velocidade e $h$ é a elevação, ou seja, a ``altura do tubo''. A \autoref{eq:Bernoulli} pode ser deduzida a partir do \textit{Teorema Trabalho-Energia}.
+\noindent onde $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}.
% Definição da nomenclatura que irá para a lista de símbolos
\nomenclature[B]{$p$}{Pressão}
@@ -390,32 +403,31 @@ Para incluir documentos sem quebra de páginas, utilize:
\section{Remissões internas}
% ---
-Ao nomear a \autoref{tab-nivinv} e a \autoref{fig:syscl}, apresentamos um exemplo de remissão interna, que também pode ser feita quando indicamos o \autoref{cap_exemplos}, que tem o nome \emph{\nameref{cap_exemplos}}. O número do capítulo indicado é \ref{cap_exemplos}, que se inicia à \autopageref{cap_exemplos}\footnote{O número da página de uma remissão pode ser obtida também assim:
-\pageref{cap_exemplos}.}. Veja a \autoref{sec-divisoes} para outros exemplos de remissões internas entre seções, subseções e subsubseções.
+Ao nomear a \cref{tab-nivinv} e a \cref{fig_blockdiagram}, apresentamos um exemplo de remissão interna, que também pode ser feita quando indicamos o \cref{cap_exemplos}, que tem o nome \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}.}. Veja a \cref{sec-divisoes} para outros exemplos de remissões internas entre seções, subseções e subsubseções.
O código usado para produzir o texto desta seção é:
\begin{verbatim}
-Ao nomear a \autoref{tab-nivinv} e a \autoref{fig:syscl}, apresentamos um
-exemplo de remissão interna, que também pode ser feita quando indicamos o
-\autoref{cap_exemplos}, que tem o nome \emph{\nameref{cap_exemplos}}. O número
-do capítulo indicado é \ref{cap_exemplos}, que se inicia à
-\autopageref{cap_exemplos}\footnote{O número da página de uma remissão pode ser
-obtida também assim:
-\pageref{cap_exemplos}.}.
-Veja a \autoref{sec-divisoes} para outros exemplos de remissões internas entre
-seções, subseções e subsubseções.
+Ao nomear a \cref{tab-nivinv} e a \cref{fig:syscl}, apresentamos um
+exemplo de remissão interna, que também pode ser feita quando indicamos
+o \cref{cap_exemplos}, que tem o nome \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}.}.
+Veja a \cref{sec-divisoes} para outros exemplos de remissões internas
+entre seções, subseções e subsubseções.
\end{verbatim}
% ---
\section{Divisões do documento: seção}\label{sec-divisoes}
% ---
-Esta seção testa o uso de divisões de documentos. Esta é a \autoref{sec-divisoes}. Veja a \autoref{sec-divisoes-subsection}.
+Esta seção testa o uso de divisões de documentos. Esta é a \cref{sec-divisoes}. Veja a \cref{sec-divisoes-subsection}.
\subsection{Divisões do documento: subseção}\label{sec-divisoes-subsection}
-Isto é uma subseção. Veja a \autoref{sec-divisoes-subsubsection}, que é uma \texttt{subsubsection} do \LaTeX, mas é impressa chamada de ``subseção'' porque no Português não temos a palavra ``subsubseção''.
+Isto é uma subseção. Veja a \cref{sec-divisoes-subsubsection}, que é uma \texttt{subsubsection} do \LaTeX, mas é impressa chamada de ``subseção'' porque no Português não temos a palavra ``subsubseção''.
\subsubsection{Divisões do documento: subsubseção}
\label{sec-divisoes-subsubsection}
@@ -432,7 +444,7 @@ Isto é uma subseção.
\subsubsection{Divisões do documento: subsubseção}
-Isto é mais uma subsubseção da \autoref{sec-exemplo-subsec}.
+Isto é mais uma subsubseção da \cref{sec-exemplo-subsec}.
\subsubsubsection{Esta é uma subseção de quinto nível}\label{sec-exemplo-subsubsubsection}
@@ -465,7 +477,7 @@ Esta é outro parágrafo nomeado.
\section{Este é um exemplo de nome de seção longo. Ele deve estar alinhado à esquerda e a segunda e demais linhas devem iniciar logo abaixo da primeira palavra da primeira linha}
% ---
-Isso atende à norma \textcite[seções 5.2.2 a 5.2.4]{NBR14724:2011} e \textcite[seções 3.1 a 3.8]{NBR6024:2012}.
+Isso atende à norma \citeonline[seções 5.2.2 a 5.2.4]{NBR14724:2011} e \citeonline[seções 3.1 a 3.8]{NBR6024:2012}.
% ---
\section{Diferentes idiomas e hifenizações}
@@ -476,7 +488,7 @@ Para usar hifenizações de diferentes idiomas, inclua nas opções do documento
O idioma português-brasileiro (\texttt{brazil}) é incluído automaticamente pela classe \textsf{abntex2}. Porém, mesmo assim a opção \texttt{brazil} deve ser informada como a última opção da classe para que todos os pacotes reconheçam o idioma. Vale ressaltar que a última opção de idioma é a utilizada por padrão no documento.
-A lista completa de idiomas suportados, bem como outras opções de hifenização, estão disponíveis em \textcite[5-6]{babel}.
+A lista completa de idiomas suportados, bem como outras opções de hifenização, estão disponíveis em \citeonline[p. 5-6]{babel}.
Exemplo de hifenização em inglês\footnote{Extraído de: \url{http://en.wikibooks.org/wiki/LaTeX/Internationalization}}:
@@ -492,7 +504,7 @@ O idioma geral do texto por ser alterado como no exemplo seguinte:
Isso altera automaticamente a hifenização e todos os nomes constantes de referências do documento para o idioma inglês. Consulte o manual da classe \cite{abntex2classe} para obter orientações adicionais sobre internacionalização de documentos produzidos com \abnTeX.
-A \autoref{sec-citacao} descreve o ambiente \texttt{citacao} que pode receber como parâmetro um idioma a ser usado na citação.
+A \cref{sec-citacao} descreve o ambiente \texttt{citacao} que pode receber como parâmetro um idioma a ser usado na citação.
% ---
\section{Consulte o manual da classe \textsf{abntex2}}
@@ -500,17 +512,44 @@ A \autoref{sec-citacao} descreve o ambiente \texttt{citacao} que pode receber co
Consulte o manual da classe \textsf{abntex2} \cite{abntex2classe} para uma referência completa das macros 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, como o caso da \textcite[seção 5.2.2]{NBR14724:2011}, que especifica o espaçamento entre os capítulos e o início do texto, regra propositalmente não atendida pelo presente modelo.
+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, como o caso da \citeonline[seção 5.2.2]{NBR14724:2011}, que especifica o espaçamento entre os capítulos e o início do texto, regra propositalmente não atendida pelo presente modelo.
% ---
\section{Referências bibliográficas}
% ---
-Para referências bibliográficas que seguem as normas da ABNT são utilizados os pacotes \textsf{biblatex} e \textsf{biblatex-abnt}. Consulte os manuais \textcite{biblatex} e \textcite{biblatexabnt} para obter informações sobre como utilizar as referências bibliográficas.
+Para referências bibliográficas que seguem as normas da ABNT são utilizados os pacotes \textsf{biblatex} e \textsf{biblatex-abnt}. Consulte os manuais \citeonline{biblatex} e \citeonline{biblatexabnt} para obter informações sobre como utilizar as referências bibliográficas.
Embora as normas da ABNT permitam citações utilizando o formato numérico, é recomendado o uso do sistema autor-ano 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.
-No formato autor-data, considere chamar as referências usando o comando \verb|\textcite| com maior frequência que o comando \verb|\cite|. Desse modo, a citação fica melhor incorporada ao texto, outra vantagem do formato autor-data
+No formato autor-data, considere chamar as referências usando o comando \verb|\citeonline| com maior frequência que o comando \verb|\cite|. Desse modo, a citação fica melhor incorporada ao texto, outra vantagem do formato autor-data.
+
+%-
+\subsection{Acentuação de referências bibliográficas}
+%-
+
+Normalmente não há problemas em usar caracteres acentuados em arquivos
+bibliográficos (\texttt{*.bib}). Porém, como as regras da ABNT fazem uso quase
+abusivo da conversão para letras maiúsculas, é preciso observar o modo como se
+escreve os nomes dos autores. Na \cref{tabela-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 é sempre usar a acentuação
+neste modo quando houver conversão para letras maiúsculas.
+
+\begin{table}[htbp]
+\caption{Tabela de conversão de acentuação.}
+\label{tabela-acentos}
+
+\begin{center}
+\begin{tabular}{ll}\hline\hline
+acento & \textsf{bibtex}\\
+à á ã & \verb+\`a+ \verb+\'a+ \verb+\~a+\\
+í & \verb+{\'\i}+\\
+ç & \verb+{\c c}+\\
+\hline\hline
+\end{tabular}
+\end{center}
+\end{table}
% ---
\section{Listas}
@@ -518,14 +557,14 @@ No formato autor-data, considere chamar as referências usando o comando \verb|\
As listas de ilustrações (figuras) e de tabelas utilizadas ao longo do trabalho são geradas automaticamente e incluídas entre o \emph{Abstract} e o Sumário.
-Para definir um elemento que deverá aparecer na lista de abreviatura e siglas, próximo do texto onde a sigla ou abreviatura aparece, utilize o comando \verb|\nomenclature|. Por exemplo, para definir as siglas que aparecem no primeiro parágrafo do \autoref{cap_intr}, foram utilizados os seguintes comandos:
+Para definir um elemento que deverá aparecer na lista de abreviatura e siglas, próximo do texto onde a sigla ou abreviatura aparece, utilize o comando \verb|\nomenclature|. Por exemplo, para definir as siglas que aparecem no primeiro parágrafo do \cref{cap_intr}, foram utilizados os seguintes comandos:
\begin{verbatim}
\nomenclature[A]{ABNT}{Associação Brasileira de Normas Técnicas}
\nomenclature[A]{UnB}{Universidade de Brasília}
\end{verbatim}
-Para definir um elemento da lista de símbolos, próximo da equação onde o símbolo aparece, utilize também o comando \verb|\nomenclature|. Por exemplo, para definir os símbolos das equações da \autoref{sec-mat}, foram utilizados os comandos:
+Para definir um elemento da lista de símbolos, próximo da equação onde o símbolo aparece, utilize também o comando \verb|\nomenclature|. Por exemplo, para definir os símbolos das equações da \cref{sec-mat}, foram utilizados os comandos:
\begin{verbatim}
\nomenclature[B]{$p$}{Pressão}
diff --git a/macros/latex/contrib/unbtex/unbtex-example/capitulo3.tex b/macros/latex/contrib/unbtex/unbtex-example/capitulo3.tex
index cdaba2b717..f0847c5834 100644
--- a/macros/latex/contrib/unbtex/unbtex-example/capitulo3.tex
+++ b/macros/latex/contrib/unbtex/unbtex-example/capitulo3.tex
@@ -4,7 +4,7 @@
\section{Introdução}
-Sugiro que você guarde todas as figuras na pasta ``figuras'' para que seu projeto fique mais organizado. A \autoref{fig:logolatex} mostra como é fácil inserir uma figura com legenda e referência à fonte.
+Sugiro que você guarde todas as figuras na pasta ``figuras'' para que seu projeto fique mais organizado. A \cref{fig:logolatex} mostra como é fácil inserir uma figura com legenda e referência à fonte.
\begin{figure}[htb]
\centering
@@ -18,15 +18,6 @@ Sugiro que você guarde todas as figuras na pasta ``figuras'' para que seu proje
Além de figuras, é possível inserir caixas de texto de diversos tipos, como axiomas, teoremas etc.
-Existem pacotes que permitem criar figuras e gráficos no próprio código \LaTeX. Por exemplo, temos
-
-\begin{itemize}
- \item PGFPlots \url{http://pgfplots.sourceforge.net/}
- \item TikZ \url{http://www.texample.net/tikz/examples/all/}
- \item Metapost \url{http://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html}
- \item PSTricks \url{https://tug.org/PSTricks/main.cgi?file=examples}
-\end{itemize}
-
\section{Exercício}
\begin{exercise}
@@ -50,7 +41,9 @@ Existem pacotes que permitem criar figuras e gráficos no próprio código \LaTe
\section{Algoritmo}
-\begin{algorithm} [h]
+O \cref{alg:NNMPC} é um pseudo-código para obtenção de um controlador preditivo baseado em modelo e em redes neurais.
+
+\begin{algorithm} [ht]
\caption{NN-based MPC pseudocode for consensus control}
\label{alg:NNMPC}
\begin{algorithmic}[1]
@@ -105,4 +98,4 @@ Existem pacotes que permitem criar figuras e gráficos no próprio código \LaTe
dataInitialized := 1;
\end{lstlisting}
-Para mais exemplos de programas, veja o \autoref{apd:cdg} \ No newline at end of file
+Para mais exemplos de programas, veja o \cref{apd:cdg} \ 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 72377ac44c..599435a0a1 100644
--- a/macros/latex/contrib/unbtex/unbtex-example/capitulo4.tex
+++ b/macros/latex/contrib/unbtex/unbtex-example/capitulo4.tex
@@ -2,7 +2,7 @@
\chapter{Ambientes}
% ----------------------------------------------------------
-Este modelo disponibiliza alguns ``ambientes'', ou seja, caixas de texto com formatação especial para certos tipos de elementos que são automaticamente numerados (e.g. teorema 1.1, teorema 1.2 etc.). Esses ambientes foram adaptados para o UnB\TeX\ a partir soluções utilizadas por \textcite{Castro2019}.
+Este modelo disponibiliza alguns ``ambientes'', ou seja, caixas de texto com formatação especial para certos tipos de elementos que são automaticamente numerados (e.g. \cref{prop:WYSIWYG}, \cref{thm:WYSIWYG}, etc.). Esses ambientes foram adaptados para o UnB\TeX\ a partir soluções utilizadas por \citeonline{Castro2019}.
\section{Exemplos de ambientes disponíveis}
@@ -14,7 +14,7 @@ Este modelo disponibiliza alguns ``ambientes'', ou seja, caixas de texto com for
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{proposition}
+\begin{proposition}\label{prop:WYSIWYG}
\LaTeX\ produz equações mais bonitas que qualquer editor WYSIWYG.
\end{proposition}
@@ -43,8 +43,6 @@ O WYSIWYG (ou ``What You See Is What You Get - O que você vê é o formato fina
Einstein era físico. Portanto, usando o teorema LaTeX-WYSIWYG, concluímos que ele usaria \LaTeX.
\end{example}
-O \autoref{thm:WYSIWYG} é um exemplo de teorema.
-
%\begin{exercise}
% Einstein usaria um editor WYSIWYG ou \LaTeX?
%\end{exercise}
@@ -53,10 +51,10 @@ O \autoref{thm:WYSIWYG} é um exemplo de teorema.
% Einstein era físico. Portanto, usando o teorema LaTeX-WYSIWYG, concluímos que ele usaria \LaTeX.
%\end{solution}
-\begin{exercise}
- Marie Curie usaria um editor WYSIWYG ou \LaTeX?
-\end{exercise}
+%\begin{exercise}\label{exe:WYSIWYG}
+% Marie Curie usaria um editor WYSIWYG ou \LaTeX?
+%\end{exercise}
-\begin{exercise}
- Deixamos esta sem resposta para o estudante se esforçar mais.
-\end{exercise} \ No newline at end of file
+%\begin{exercise}\label{exe:WYSIWYG2}
+% Deixamos esta sem resposta para o estudante se esforçar mais.
+%\end{exercise} \ No newline at end of file
diff --git a/macros/latex/contrib/unbtex/unbtex-example/capitulo5.tex b/macros/latex/contrib/unbtex/unbtex-example/capitulo5.tex
index a616f45108..66dcbdf1bd 100644
--- a/macros/latex/contrib/unbtex/unbtex-example/capitulo5.tex
+++ b/macros/latex/contrib/unbtex/unbtex-example/capitulo5.tex
@@ -2,4 +2,4 @@
\chapter{Conclusões}
% ----------------------------------------------------------
-Você deve começar a editar o seu TG/Dissertação/Tese agora mesmo! \ No newline at end of file
+Você deve começar a editar o seu TCC/Dissertação/Tese agora mesmo! \ No newline at end of file
diff --git a/macros/latex/contrib/unbtex/unbtex-example/figuras/blockdiagram.eps b/macros/latex/contrib/unbtex/unbtex-example/figuras/blockdiagram.eps
new file mode 100644
index 0000000000..ac3d2348f6
--- /dev/null
+++ b/macros/latex/contrib/unbtex/unbtex-example/figuras/blockdiagram.eps
Binary files differ
diff --git a/macros/latex/contrib/unbtex/unbtex-example/references.bib b/macros/latex/contrib/unbtex/unbtex-example/references.bib
index 9abb65b79f..042079af36 100644
--- a/macros/latex/contrib/unbtex/unbtex-example/references.bib
+++ b/macros/latex/contrib/unbtex/unbtex-example/references.bib
@@ -2,20 +2,20 @@
%%% Arquivo obtido de Castro (2019)
%%%
-@online{wikimedia-latex,
+@misc{wikimedia-latex,
author = {{WIKIMEDIA COMMONS}},
title = {File: {\normalfont LaTeX logo.svg}},
year = {2008},
- note = {Upload de EmilJ. Disponível em: \url{https://upload.wikimedia.org/wikipedia/commons/9/92/LaTeX_logo.svg} -- acesso em 24 jan. 2019.}
+ note = {Upload de EmilJ. Dispon\'ivel em: \url{https://upload.wikimedia.org/wikipedia/commons/9/92/LaTeX_logo.svg} -- acesso em 24 jan. 2019.}
}
@misc{Castro2019,
author = {Leonardo Luiz e Castro},
title = {Modelo de livro para Editora UnB},
howpublished = {\url{https://www.overleaf.com/latex/templates/modelo-de-livro-para-editora-unb/trznrgjcsyfg}},
- month = 1,
- year = 2019,
- note = {Disponível como template no Overleaf}
+ month = {1},
+ year = {2019},
+ note = {Dispon\'ivel como template no Overleaf}
}
% Exemplo tirado de https://en.wikibooks.org/wiki/LaTeX/Bibliography_Management#BibTeX abaixo:
diff --git a/macros/latex/contrib/unbtex/unbtex-example/referencias.bib b/macros/latex/contrib/unbtex/unbtex-example/referencias.bib
index 5508213d11..a0b5ab4e88 100644
--- a/macros/latex/contrib/unbtex/unbtex-example/referencias.bib
+++ b/macros/latex/contrib/unbtex/unbtex-example/referencias.bib
@@ -1,7 +1,7 @@
%%
%% Arquivo utilizado no projeto abnTeX
%% O uso do biblatex no UnBTeX permitiu que o texto do arquivo bib
-%% recebesse acentuação no padrão pt-br
+%% recebesse acentua{\c c}\~ao no padr\~ao pt-br
%%
@book{ibge1993,
@@ -11,13 +11,13 @@
Date-Modified = {2013-08-21 13:56:10 +0000},
Edition = {3},
Organization = {http://biblioteca.ibge.gov.br/visualizacao/livros/liv23907.pdf},
- Publisher = {Centro de Documentação e Disseminação de Informações. Fundação Instituto Brasileiro de Geografia e Estatística},
- Title = {Normas de apresentação tabular},
+ 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\'istica},
+ Title = {Normas de apresenta{\c c}\~ao tabular},
urldate = {2013-08-21},
Year = {1993}}
@misc{abntex2-wiki-como-customizar,
- Author = {Lauro César Araujo},
+ Author = {Lauro C\'esar Araujo},
Date-Added = {2013-03-23 21:39:21 +0000},
Date-Modified = {2015-04-27 22:43:06 +0000},
Howpublished = {Wiki do abnTeX2},
@@ -51,47 +51,47 @@
Bdsk-Url-1 = {http://mirrors.ctan.org/info/babel/babel.pdf}}
@manual{abntex2modelo-artigo,
- Annote = {Este documento é derivado do \cite{abnt-bibtex-doc}},
- Author = {Lauro César Araujo},
+ Annote = {Este documento \'e derivado do \cite{abnt-bibtex-doc}},
+ Author = {Lauro C\'esar Araujo},
Date-Added = {2013-01-15 00:10:35 +0000},
Date-Modified = {2015-04-27 22:43:13 +0000},
Organization = {Equipe abnTeX2},
- Title = {Modelo Canônico de Artigo Científico com abnTeX2},
+ Title = {Modelo Can\^onico de Artigo Cient\'ifico com abnTeX2},
Url = {http://www.abntex.net.br/},
Year = {2015},
Bdsk-Url-1 = {http://www.abntex.net.br/}}
@manual{abntex2modelo-relatorio,
- Annote = {Este documento é derivado do \cite{abnt-bibtex-doc}},
- Author = {Lauro César Araujo},
+ Annote = {Este documento \'e derivado do \cite{abnt-bibtex-doc}},
+ Author = {Lauro C\'esar Araujo},
Date-Added = {2013-01-15 00:05:34 +0000},
Date-Modified = {2015-04-27 22:43:18 +0000},
Organization = {Equipe abnTeX2},
- Title = {Modelo Canônico de Relatório Técnico e/ou Científico com abnTeX2},
+ Title = {Modelo Can\^onico de Relat\'orio T\'ecnico e/ou Cient\'ifico com abnTeX2},
Url = {http://www.abntex.net.br/},
Year = {2015},
Bdsk-Url-1 = {http://www.abntex.net.br/}}
@manual{abntex2modelo,
- Annote = {Este documento é derivado do \cite{abnt-bibtex-doc}},
- Author = {Lauro César Araujo},
+ Annote = {Este documento \'e derivado do \cite{abnt-bibtex-doc}},
+ Author = {Lauro C\'esar Araujo},
Date-Added = {2013-01-12 22:55:32 +0000},
Date-Modified = {2015-04-27 22:43:32 +0000},
Organization = {Equipe abnTeX2},
- Title = {Modelo Canônico de Trabalho Acadêmico com abnTeX2},
+ Title = {Modelo Can\^onico de Trabalho Acad\^emico com abnTeX2},
Url = {http://www.abntex.net.br/},
Year = {2015},
Bdsk-Url-1 = {http://www.abntex.net.br/}}
@mastersthesis{araujo2012,
- Address = {Brasília},
- Author = {Lauro César Araujo},
+ Address = {Bras\'ilia},
+ Author = {Lauro C\'esar Araujo},
Date-Added = {2013-01-09 11:04:42 +0000},
Date-Modified = {2013-01-09 11:04:42 +0000},
Month = {03},
- School = {Universidade de Brasília},
- Subtitle = {uma perspectiva de {A}rquitetura da {I}nformação da {E}scola de {B}rasília},
- Title = {Configuração},
+ School = {Universidade de Bras\'ilia},
+ Subtitle = {uma perspectiva de {A}rquitetura da {I}nforma{\c c}\~ao da {E}scola de {B}ras\'ilia},
+ Title = {Configura{\c c}\~ao},
Year = {2012}}
@manual{memoir,
@@ -125,11 +125,11 @@
Bdsk-Url-1 = {https://ctan.dcc.uchile.cl/macros/latex/contrib/biblatex-contrib/biblatex-abnt/doc/biblatex-abnt.pdf}}
@manual{abntex2classe,
- Author = {Lauro César Araujo},
+ Author = {Lauro C\'esar Araujo},
Date-Added = {2013-01-09 10:37:38 +0000},
Date-Modified = {2015-04-27 22:42:47 +0000},
Organization = {Equipe abnTeX2},
- Title = {A classe abntex2: Modelo canônico de trabalhos acadêmicos brasileiros compatível com as normas ABNT NBR 14724:2011, ABNT NBR 6024:2012 e outras},
+ Title = {A classe abntex2: Modelo can\^onico de trabalhos acad\^emicos brasileiros compat\'ivel com as normas ABNT NBR 14724:2011, ABNT NBR 6024:2012 e outras},
Url = {http://www.abntex.net.br/},
Year = {2015},
Bdsk-Url-1 = {http://www.abntex.net.br/}}
@@ -140,9 +140,9 @@
Date-Modified = {2013-01-12 22:17:20 +0000},
Month = {08},
Org-Short = {ABNT},
- Organization = {Associação Brasileira de Normas T\'ecnicas},
+ Organization = {Associa{\c c}\~ao Brasileira de Normas T\'ecnicas},
Pages = 7,
- Subtitle = {Informação e documentação --- Apresentação de citações em documentos},
+ Subtitle = {Informa{\c c}\~ao e documenta{\c c}\~ao --- Apresenta{\c c}\~ao de cita{\c c}ões em documentos},
Title = {{NBR} 10520},
Year = 2002}
@@ -152,9 +152,9 @@
Date-Modified = {2012-12-15 21:24:28 +0000},
Month = {02},
Org-Short = {ABNT},
- Organization = {Associação Brasileira de Normas T\'ecnicas},
+ Organization = {Associa{\c c}\~ao Brasileira de Normas T\'ecnicas},
Pages = 4,
- Subtitle = {Numeração progressiva das seções de um documento},
+ Subtitle = {Numera{\c c}\~ao progressiva das se{\c c}ões de um documento},
Title = {{NBR} 6024},
Year = 2012}
@@ -164,9 +164,9 @@
Date-Modified = {2012-12-15 21:02:50 +0000},
Month = {11},
Org-Short = {ABNT},
- Organization = {Associação Brasileira de Normas Técnicas},
+ Organization = {Associa{\c c}\~ao Brasileira de Normas T\'ecnicas},
Pages = 2,
- Subtitle = {Resumo - Apresentação},
+ Subtitle = {Resumo - Apresenta{\c c}\~ao},
Title = {{NBR} 6028},
Year = 2003}
@@ -176,9 +176,9 @@
Date-Modified = {2012-12-15 20:34:08 +0000},
Month = {07},
Org-Short = {ABNT},
- Organization = {Associação Brasileira de Normas Técnicas},
+ Organization = {Associa{\c c}\~ao Brasileira de Normas T\'ecnicas},
Pages = 6,
- Subtitle = {Informação e documentação --- trabalhos acadêmicos --- apresentação},
+ Subtitle = {Informa{\c c}\~ao e documenta{\c c}\~ao --- trabalhos acad\^emicos --- apresenta{\c c}\~ao},
Title = {{NBR} 14724},
Year = 2001}
@@ -188,9 +188,9 @@
Date-Modified = {2012-12-15 20:34:17 +0000},
Month = {08},
Org-Short = {ABNT},
- Organization = {Associação Brasileira de Normas Técnicas},
+ Organization = {Associa{\c c}\~ao Brasileira de Normas T\'ecnicas},
Pages = 6,
- Subtitle = {Informação e documentação --- trabalhos acadêmicos --- apresentação},
+ Subtitle = {Informa{\c c}\~ao e documenta{\c c}\~ao --- trabalhos acad\^emicos --- apresenta{\c c}\~ao},
Title = {{NBR} 14724},
Year = 2002}
@@ -200,9 +200,9 @@
Date-Modified = {2012-12-15 20:35:25 +0000},
Month = {12},
Org-Short = {ABNT},
- Organization = {Associação Brasileira de Normas Técnicas},
+ Organization = {Associa{\c c}\~ao Brasileira de Normas T\'ecnicas},
Pages = 9,
- Subtitle = {Informação e documentação --- trabalhos acadêmicos --- apresentação},
+ Subtitle = {Informa{\c c}\~ao e documenta{\c c}\~ao --- trabalhos acad\^emicos --- apresenta{\c c}\~ao},
Title = {{NBR} 14724},
Year = 2005}
@@ -211,11 +211,11 @@
Date-Added = {2012-12-15 20:34:08 +0000},
Date-Modified = {2012-12-15 20:35:25 +0000},
Month = {03},
- Note = {Substitui a Ref.~\textcite{NBR14724:2005}},
+ Note = {Substitui a Ref.~\citeonline{NBR14724:2005}},
Org-Short = {ABNT},
- Organization = {Associação Brasileira de Normas T\'ecnicas},
+ Organization = {Associa{\c c}\~ao Brasileira de Normas T\'ecnicas},
Pages = 15,
- Subtitle = {Informação e documentação --- trabalhos acadêmicos --- apresentação},
+ Subtitle = {Informa{\c c}\~ao e documenta{\c c}\~ao --- trabalhos acad\^emicos --- apresenta{\c c}\~ao},
Title = {{NBR} 14724},
Year = 2011}
@@ -241,13 +241,13 @@
Bdsk-Url-1 = {http://www.loa.istc.cnr.it/Guizzardi/SELMAS-CR.pdf}}
@mastersthesis{macedo2005,
- Author = {Flávia L. Macedo},
+ Author = {Fl\'avia L. Macedo},
Date-Added = {2012-04-23 11:35:13 +0000},
Date-Modified = {2012-04-23 11:35:13 +0000},
- Keywords = {arquitetura da informação},
- School = {Universidade de Brasília},
- Title = {Arquitetura da Informação: aspectos epistemológicos, científicos e práticos.},
- Type = {Dissertação de Mestrado},
+ Keywords = {arquitetura da informa{\c c}\~ao},
+ School = {Universidade de Bras\'ilia},
+ Title = {Arquitetura da Informa{\c c}\~ao: aspectos epistemol\'ogicos, cient\'ificos e pr\'aticos.},
+ Type = {Disserta{\c c}\~ao de Mestrado},
Year = {2005}}
@manual{EIA649B,
@@ -312,7 +312,7 @@
Date-Added = {2012-04-23 11:34:20 +0000},
Date-Modified = {2012-04-23 11:34:20 +0000},
Publisher = {Ceira - Coimbra},
- Title = {Arquitetura em Transição},
+ Title = {Arquitetura em Transi{\c c}\~ao},
Year = {1965}}
@book{dewey1980,
diff --git a/macros/latex/contrib/unbtex/unbtex.cls b/macros/latex/contrib/unbtex/unbtex.cls
index d62f00dffb..4a78051380 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.2.1 2023/05/15
+%% Version 1.3 2023/10/17
%% Copyright (C) 2021-2023 by Henrique C. Ferreira <hcferreira@unb.br>
%%
%% This class file may be distributed and/or modified under the conditions
@@ -21,7 +21,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{unbtex}[2023/06/15 v1.2.1 Modelo da Universidade de Brasília baseado em abnTeX2]
+\ProvidesClass{unbtex}[2023/10/17 v1.3 Modelo da Universidade de Brasília baseado em abnTeX2]
% ---
% Repassa todos os parâmetros a classe abntex2,
@@ -54,8 +54,7 @@
\RequirePackage[nopatch=item]{microtype} % Para melhorias de justificação
\RequirePackage{multirow} % Para combinar linhas nas tabelas
\RequirePackage[dvipsnames,table]{xcolor} % Para cores da UnB
-\RequirePackage{tikz} % Cria desenhos
-\usetikzlibrary{external,shapes,arrows,positioning}
+\RequirePackage{tocbasic} % Permite ajustar a indentação das listas de figuras e de tabelas
% ---
% ---
@@ -290,13 +289,6 @@
\renewcommand{\proofname}{Demonstração}}
% ---
-% ---
-% Colocará o número da equação entre parêntesis ao utilizar o comando \autoref
-% ---
-\let\origtheequation\theequation
-\def\tagform@#1{\maketag@@@{\ignorespaces#1\unskip\@@italiccorr}}
-\renewcommand{\theequation}{(\origtheequation)}
-
% ------------------------------------------------------------------------
% Informações do trabalho
% ------------------------------------------------------------------------
@@ -377,10 +369,8 @@
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
- \tikzexternalenable
\includegraphics[width=\paperwidth,height=\paperheight,%
keepaspectratio]{capa_fundo.pdf}%
- \tikzexternaldisable
\vfill
}
}
@@ -540,4 +530,21 @@
{\expandafter\MT@prot@l\expandafter
{\expandafter\scantokens\expandafter{\the\MT@toks\noexpand}}}%
\endgroup}
-\makeatother \ No newline at end of file
+\makeatother
+
+% Ajusta a indentação das listas de figuras e de tabelas
+\DeclareTOCStyleEntry[
+ indent=0pt,
+ entrynumberformat=\entrynumberwithprefix{\figurename},
+ dynnumwidth,
+ %numsep=0em
+]{tocline}{figure}
+%\newcommand\entrynumberwithprefix[2]{#1\enspace#2:\hfill}
+
+\DeclareTOCStyleEntry[
+ indent=0pt,
+ entrynumberformat=\entrynumberwithprefix{\tablename},
+ dynnumwidth,
+ %numsep=0em
+]{tocline}{table}
+\newcommand\entrynumberwithprefix[2]{#1\enspace#2~--\hfill} \ No newline at end of file