| 1 |
% \iffalse |
| 2 |
% |
| 3 |
% Copyright 2022 GERAD, HEC Montreal |
| 4 |
% |
| 5 |
% This work may be distributed and/or modified under the |
| 6 |
% conditions of the LaTeX Project Public License, either version 1.3c |
| 7 |
% of this license or (at your option) any later version. |
| 8 |
% |
| 9 |
% The latest version of this license is in |
| 10 |
% http://www.latex-project.org/lppl.txt |
| 11 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 12 |
% version 2008/05/04 or later. |
| 13 |
% |
| 14 |
% This work has the LPPL maintenance status `maintained'. |
| 15 |
% |
| 16 |
% The Current Maintainer of this work is Benoit Hamel |
| 17 |
% <[email protected]>. |
| 18 |
% |
| 19 |
% This work consists of the files geradwp.dtx, gerad.ins |
| 20 |
% and the derived files listed in the README file. |
| 21 |
% |
| 22 |
% \fi |
| 23 |
% \iffalse |
| 24 |
%<*dtx> |
| 25 |
\ProvidesFile{geradwp.dtx} |
| 26 |
%</dtx> |
| 27 |
%<class>\NeedsTeXFormat{LaTeX2e} |
| 28 |
%<class>\ProvidesClass{geradwp}[2022/04/25 v1.1 Class for the Cahiers du GERAD series] |
| 29 |
%<*driver> |
| 30 |
\documentclass[10pt,oneside,french,english]{ltxdoc} |
| 31 |
\usepackage[utf8]{inputenc} |
| 32 |
\usepackage[T1]{fontenc} |
| 33 |
\usepackage{babel} |
| 34 |
\usepackage[autolanguage]{numprint} |
| 35 |
\usepackage{fontawesome} |
| 36 |
\usepackage{framed} |
| 37 |
\usepackage{url} |
| 38 |
\usepackage{color} |
| 39 |
\usepackage{enumitem} |
| 40 |
\usepackage{iflang} |
| 41 |
\usepackage{makeidx} |
| 42 |
\usepackage{tabularx} |
| 43 |
\usepackage{listings} |
| 44 |
\usepackage{hyperref} |
| 45 |
|
| 46 |
\newcommand{\frenchdoc}{% |
| 47 |
\IfLanguageName{english}{0}{1} |
| 48 |
} |
| 49 |
|
| 50 |
\EnableCrossrefs |
| 51 |
\CodelineIndex |
| 52 |
\RecordChanges |
| 53 |
|
| 54 |
\ifnum\frenchdoc=1 |
| 55 |
\GlossaryPrologue{\section*{Historique des versions}% |
| 56 |
\addcontentsline{toc}{section}{Historique des versions}} |
| 57 |
\else |
| 58 |
\GlossaryPrologue{\section*{Change History}% |
| 59 |
\addcontentsline{toc}{section}{Change History}} |
| 60 |
\fi |
| 61 |
|
| 62 |
\definecolor{liens}{rgb}{0,0.35,0.65} |
| 63 |
\definecolor{shadecolor}{rgb}{0.93,0.97,0.99} |
| 64 |
\definecolor{TFFrameColor}{rgb}{0,0.235,0.443} |
| 65 |
\definecolor{TFTitleColor}{rgb}{1,1,1} |
| 66 |
\definecolor{rouge}{RGB}{234,0,42} |
| 67 |
\hypersetup{ |
| 68 |
colorlinks=true, |
| 69 |
allcolors=liens, |
| 70 |
pdftitle={Classe de documents LaTeX pour la collection des Cahiers du GERAD}, |
| 71 |
pdfauthor={Benoit Hamel, HEC Montr\'{e}al} |
| 72 |
} |
| 73 |
\setlength{\parskip}{6pt} |
| 74 |
\ifnum\frenchdoc=1 |
| 75 |
\frenchbsetup{ |
| 76 |
og=«, fg=» |
| 77 |
} |
| 78 |
|
| 79 |
\addto\captionsfrench{% |
| 80 |
\renewcommand{\tablename}{Tableau} |
| 81 |
} |
| 82 |
\fi |
| 83 |
\MakeShortVerb{\+} |
| 84 |
\lstset{% |
| 85 |
basicstyle=\footnotesize\ttfamily, |
| 86 |
stringstyle=\ttfamily, |
| 87 |
numbers=left, |
| 88 |
numberstyle=\footnotesize\ttfamily, |
| 89 |
backgroundcolor=\color{shadecolor} |
| 90 |
} |
| 91 |
\ifnum\frenchdoc=1 |
| 92 |
\renewcommand{\lstlistingname}{Code source} |
| 93 |
\newcommand{\lstcaptionone}{Un exemple de liste d'auteurs} |
| 94 |
\newcommand{\lstcaptiontwo}{Un exemple de liste d'affiliations} |
| 95 |
\newcommand{\lstcaptionthree}{Un exemple de liste d'adresses courriel} |
| 96 |
\else |
| 97 |
\renewcommand{\lstlistingname}{Source Code} |
| 98 |
\newcommand{\lstcaptionone}{Authors list example} |
| 99 |
\newcommand{\lstcaptiontwo}{Affiliations list example} |
| 100 |
\newcommand{\lstcaptionthree}{Email list example} |
| 101 |
\fi |
| 102 |
|
| 103 |
\newcommand{\gdwp}{\texttt{geradwp}} |
| 104 |
\newcommand{\cahiers}{\emph{Les Cahiers du GERAD}} |
| 105 |
\newcommand{\lien}[2]{% |
| 106 |
\href{#1}{\bfseries #2~\faExternalLink} |
| 107 |
} |
| 108 |
\newcommand{\oui}{\color{green}\faCheck} |
| 109 |
\newenvironment{GDwarning}[1]{% |
| 110 |
\begin{leftbar} |
| 111 |
\noindent{\Large {\color{rouge}\faExclamationCircle} \textbf{#1}} \\ |
| 112 |
}{% |
| 113 |
\end{leftbar} |
| 114 |
} |
| 115 |
|
| 116 |
\makeglossary |
| 117 |
|
| 118 |
\begin{document} |
| 119 |
\DocInput{geradwp.dtx} |
| 120 |
\end{document} |
| 121 |
%</driver> |
| 122 |
% \fi |
| 123 |
% \CheckSum{1052} |
| 124 |
% \changes{1.0}{2021-08-11}{Initial release} |
| 125 |
% \ifnum\frenchdoc=1 |
| 126 |
% \title{Classe de documents \LaTeX\ pour la collection \cahiers} |
| 127 |
% \author{Benoit Hamel\thanks{Biblioth\`eque, HEC Montr\'eal} \and Karine Hébert\thanks{GERAD, HEC Montr\'eal}} |
| 128 |
% \else |
| 129 |
% \title{\LaTeX\ document class for \cahiers\ series} |
| 130 |
% \author{% |
| 131 |
% Benoit Hamel\thanks{Library, HEC Montr\'eal}% |
| 132 |
% \and Karine Hébert\thanks{GERAD, HEC Montr\'eal}% |
| 133 |
% \thanks{English translation by Jos\'ee Lafreni\`ere}% |
| 134 |
% } |
| 135 |
% \fi |
| 136 |
% \date{\today} |
| 137 |
% \maketitle |
| 138 |
% |
| 139 |
% \tableofcontents |
| 140 |
% |
| 141 |
% \begin{abstract} |
| 142 |
% \ifnum\frenchdoc=1 |
| 143 |
% La classe de documents \gdwp\ a \'et\'e con\c{c}ue dans le but de permettre aux chercheurs |
| 144 |
% membres du \lien{https://www.gerad.ca/fr}{GERAD} de r\'ediger leurs documents de travail, |
| 145 |
% leurs pr\'eimpressions et leurs rapports techniques selon les normes de pr\'esentation de la |
| 146 |
% collection de rapports de recherche \cahiers. Cette classe et les fichiers associ\'es remplacent |
| 147 |
% le gabarit initialement distribu\'e par le GERAD. |
| 148 |
% \else |
| 149 |
% The \gdwp\ document class was designed to allow researchers who are |
| 150 |
% \lien{https://www.gerad.ca/en}{GERAD} members to write |
| 151 |
% their working papers, preprints and technical reports in line with the presentation |
| 152 |
% standards of \cahiers\ working paper series. This class and the |
| 153 |
% associated files replace the template that GERAD initially distributed. |
| 154 |
% \fi |
| 155 |
% \changes{1.1}{2021-11-25}{Updated GERAD URLs in abstract.} |
| 156 |
% \end{abstract} |
| 157 |
% |
| 158 |
% \ifnum\frenchdoc=1 |
| 159 |
% \section{Installation de la classe} |
| 160 |
% |
| 161 |
% \subsection{Pr\'erequis} |
| 162 |
% \else |
| 163 |
% \section{Installing the class} |
| 164 |
% |
| 165 |
% \subsection{Prerequisites} |
| 166 |
% \fi |
| 167 |
% \label{subsec:prereq} |
| 168 |
% |
| 169 |
% \ifnum\frenchdoc=1 |
| 170 |
% L'utilisation de cette classe suppose que vous avez d\'ej\`a install\'e une distribution \TeX\ et |
| 171 |
% un \'editeur de code int\'egr\'e. Pour la conception de \gdwp, les distributions |
| 172 |
% \lien{https://www.tug.org/texlive/}{TeX Live 2020 et 2021} et l'\'editeur de code |
| 173 |
% \lien{https://www.texstudio.org/}{TeXstudio} ont \'et\'e utilis\'es. |
| 174 |
% |
| 175 |
% Si vous utilisez la distribution TeXLive ou \lien{http://www.tug.org/mactex/}{MacTeX} et que la compilation |
| 176 |
% de votre document vous renvoie des bogues, assurez-vous que votre installation est à jour avant d'investiguer plus loin. |
| 177 |
% |
| 178 |
% Si vous utilisez la distribution \lien{https://miktex.org/}{MikTeX}, assurez-vous d'installer les derni\`eres versions des |
| 179 |
% \emph{packages} indiqu\'es dans le \autoref{tab:pre-loaded-pkgs} avant d'utiliser la classe \gdwp. |
| 180 |
% |
| 181 |
% Les utilisateurs d'\lien{https://www.overleaf.com/}{Overleaf} peuvent \'egalement utiliser cette classe |
| 182 |
% en r\'ecup\'erant les fichiers sur le \lien{https://www.gerad.ca/fr/publications/papers/cahiers-procedure}{site du GERAD}. |
| 183 |
% \begin{GDwarning}{\gdwp\ utilise la version 4 de +fancyhdr+} |
| 184 |
% \`A partir de la version 1.1 de \gdwp, la version 4 du \emph{package} |
| 185 |
% \lien{https://www.ctan.org/pkg/fancyhdr}{fancyhdr} est utilis\'ee. Cette version introduit de nouvelles commandes qui |
| 186 |
% ne sont pas compatibles avec la version 3. Elle est disponible sur les \'editions 2021 |
| 187 |
% de Tex Live et MacTeX, de m\^eme que sur Overleaf si vous utilisez la version 2021 de TeX Live. |
| 188 |
% |
| 189 |
% Si vous utilisez une autre distribution \TeX, assurez-vous que vous avez la bonne version de +fancyhdr+. |
| 190 |
% \end{GDwarning} |
| 191 |
% \else |
| 192 |
% Using this class assumes you’ve already installed a \TeX\ distribution with an integrated code editor. |
| 193 |
% In designing \gdwp, the \lien{https://www.tug.org/texlive/}{TeX Live 2020 and 2021} distributions and the |
| 194 |
% \lien{https://www.texstudio.org/}{TeXstudio} editor were used. |
| 195 |
% |
| 196 |
% If you are using TeXLive or \lien{http://www.tug.org/mactex/}{MacTeX} and your document compilation |
| 197 |
% is buggy, begin by making sure |
| 198 |
% your installation is up to date before investigating any further. |
| 199 |
% |
| 200 |
% If you are using the \lien{https://miktex.org/}{MikTeX} distribution, make sure you install the latest |
| 201 |
% versions of the packages |
| 202 |
% indicated in \autoref{tab:pre-loaded-pkgs} before using the \gdwp\ class. |
| 203 |
% |
| 204 |
% Users of \lien{https://www.overleaf.com/}{Overleaf} can also use this class by downloading the necessary files from |
| 205 |
% the \lien{https://www.gerad.ca/en/publications/papers/cahiers-procedure}{GERAD website}. |
| 206 |
% \begin{GDwarning}{\gdwp\ makes use of +fancyhdr+ version 4} |
| 207 |
% Starting at \gdwp\ version 1.1, version 4 of the \lien{https://www.ctan.org/pkg/fancyhdr}{fancyhdr} is |
| 208 |
% used. This version introduces new commands that are not backwards compatible |
| 209 |
% with version 3. It is available with the 2021 editions of |
| 210 |
% Tex Live and MacTeX, as well as on Overleaf if you use the 2021 version of TeX Live. |
| 211 |
% |
| 212 |
% If you are using another \TeX\ distribution, please make sure that you have the right version of |
| 213 |
% +fancyhdr+. |
| 214 |
% \end{GDwarning} |
| 215 |
% \fi |
| 216 |
% \changes{1.1}{2021-11-25}{Updated GERAD URLs in Prerequisites subsection.} |
| 217 |
% \changes{1.1}{2021-12-07}{Added a warning concerning fancyhdr 4} |
| 218 |
% |
| 219 |
% \subsection{Installation} |
| 220 |
% |
| 221 |
% \ifnum\frenchdoc=1 |
| 222 |
% L'archive +.zip+ que vous avez t\'el\'echarg\'ee contient les fichiers suivants : |
| 223 |
% |
| 224 |
% \begin{enumerate} |
| 225 |
% \item \textbf{geradwp.ins} : le fichier d'installation de la classe; |
| 226 |
% \item \textbf{geradwp.dtx} : le code source document\'e de la classe; |
| 227 |
% \item \textbf{geradwp.pdf} : la version anglaise de la documentation de la classe; |
| 228 |
% \item \textbf{geradwp-fr.pdf} : la version fran\c{c}aise de la documentation de la classe; |
| 229 |
% \item \textbf{README.md} : le fichier n\'ecessaire \`a l'affichage de la description de la classe |
| 230 |
% sur le site du \lien{https://www.ctan.org/}{CTAN}. |
| 231 |
%\end{enumerate} |
| 232 |
% |
| 233 |
% Suivez les \'etapes suivantes pour installer la classe sur votre poste de travail. |
| 234 |
% |
| 235 |
%\begin{enumerate} |
| 236 |
% \item Cr\'eez-vous un r\'epertoire de travail; |
| 237 |
% \item D\'ecompressez l'archive +.zip+ dans votre r\'epertoire de travail; |
| 238 |
% \item Ouvrez un \'editeur de ligne de commande \`a partir du r\'epertoire; |
| 239 |
% \item Saisissez la commande suivante dans l'\'{e}diteur : \\ |
| 240 |
% \begin{shaded*} |
| 241 |
% +latex geradwp.ins+ |
| 242 |
% \end{shaded*} |
| 243 |
% \end{enumerate} |
| 244 |
% |
| 245 |
% La commande cr\'eera le fichier de classe +geradwp.cls+ ainsi que le gabarit +geradwp.tex+ \`a |
| 246 |
% partir duquel vous pourrez r\'ediger votre rapport de recherche. |
| 247 |
% \else |
| 248 |
% The +.zip+ archive you downloaded contains these files: |
| 249 |
% |
| 250 |
% \begin{enumerate} |
| 251 |
% \item \textbf{geradwp.ins}: class installation file; |
| 252 |
% \item \textbf{geradwp.dtx}: documented source code for the class; |
| 253 |
% \item \textbf{geradwp.pdf}: the english version of the class' documentation; |
| 254 |
% \item \textbf{geradwp-fr.pdf} : the french version of the class' documentation; |
| 255 |
% \item \textbf{README.md}: file needed to display the class description on the |
| 256 |
% \lien{https://www.ctan.org/}{CTAN} website. |
| 257 |
%\end{enumerate} |
| 258 |
% |
| 259 |
% Follow these steps to install the class on your workstation. |
| 260 |
% |
| 261 |
%\begin{enumerate} |
| 262 |
% \item Create a working directory; |
| 263 |
% \item unzip the +.zip+ archive in your working directory; |
| 264 |
% \item open a command line terminal from the directory; |
| 265 |
% \item enter the following command: \\ |
| 266 |
% \begin{shaded*} |
| 267 |
% +latex geradwp.ins+ |
| 268 |
% \end{shaded*} |
| 269 |
% \end{enumerate} |
| 270 |
% |
| 271 |
% This command will create the +geradwp.cls+ class file and the |
| 272 |
% +geradwp.tex+ template from which you can draft your working paper. |
| 273 |
% \fi |
| 274 |
% |
| 275 |
% \ifnum\frenchdoc=1 |
| 276 |
% \section{Utilisation de la classe} |
| 277 |
% \else |
| 278 |
% \section{Using the class} |
| 279 |
% \fi |
| 280 |
% |
| 281 |
% \ifnum\frenchdoc=1 |
| 282 |
% La classe \gdwp\ est d\'eriv\'ee de la classe de base \lien{https://www.ctan.org/pkg/article}{article}. |
| 283 |
% Vous pouvez donc vous servir de toutes les fonctionnalit\'es de cette derni\`ere. Cependant, |
| 284 |
% quelques options de la classe +article+ sont d\'efinies par d\'efaut dans la class \gdwp\ et |
| 285 |
% celles-ci ne peuvent pas être modifi\'ees : |
| 286 |
% |
| 287 |
% \begin{itemize} |
| 288 |
% \item La taille de la police de caract\`eres est de +10pt+; |
| 289 |
% \item la taille du papier est +letterpaper+; |
| 290 |
% \item l'impression est recto seulement (+oneside+) pour les versions +gdweb+ et +gdplain+ du gabarit; |
| 291 |
% \item l'impression est recto-verso (+twoside+) pour la version +gdpaper+ du gabarit. |
| 292 |
% \end{itemize} |
| 293 |
% |
| 294 |
% Ces options \'etant d\'efinies dans le fichier de classe, vous ne risquez pas de les supprimer de la |
| 295 |
% commande +documentclass+ du gabarit. Assurez-vous seulement de ne pas y inscrire des options qui pourraient |
| 296 |
% entrer en conflit avec les options ci-haut mentionn\'ees. |
| 297 |
% \else |
| 298 |
% The \gdwp\ class is derived from the basic \lien{https://www.ctan.org/pkg/article}{article} class. |
| 299 |
% You can therefore use all of that |
| 300 |
% class’ functionalities. However, a few of the article class options are defined by default in the |
| 301 |
% \gdwp\ class and cannot be modified: |
| 302 |
% |
| 303 |
% \begin{itemize} |
| 304 |
% \item The font size is +10pt+; |
| 305 |
% \item the paper size is +letterpaper+; |
| 306 |
% \item printing is one-sided only (+oneside+) for the +gdweb+ and +gdplain+ versions of the template; |
| 307 |
% \item printing is two-sided (+twoside+) for the +gdpaper+ version of the template. |
| 308 |
% \end{itemize} |
| 309 |
% |
| 310 |
% Since these options are defined in the class file, there is no risk of you deleting them from the |
| 311 |
% template’s +documentclass+ command. Just make sure not to enter any options that might conflict with |
| 312 |
% the above-mentioned options. |
| 313 |
% \fi |
| 314 |
% |
| 315 |
% \subsection{Options} |
| 316 |
% \label{subsec:options} |
| 317 |
% \ifnum\frenchdoc=1 |
| 318 |
% Outre les options disponibles via la classe +article+, quelques options sont disponibles pour \gdwp. |
| 319 |
% \else |
| 320 |
% In addition to the options available via the +article+ class, there are a few options available for \gdwp. |
| 321 |
% \fi |
| 322 |
% |
| 323 |
% \begin{DescribeMacro}{gdweb} |
| 324 |
% \ifnum\frenchdoc=1 |
| 325 |
% La version Web d'un cahier de recherche destin\'ee \`a \^etre publi\'ee sur le site Web du GERAD. L'option |
| 326 |
% +oneside+ est pass\'ee \`a la classe +article+. |
| 327 |
% \else |
| 328 |
% The Web version of a paper that is to be posted on the GERAD website. The +oneside+ option is passed on to |
| 329 |
% the +article+ class. |
| 330 |
% \fi |
| 331 |
% \end{DescribeMacro} |
| 332 |
% |
| 333 |
% \begin{DescribeMacro}{gdpaper} |
| 334 |
% \ifnum\frenchdoc=1 |
| 335 |
% La version papier d'un cahier de recherche destin\'ee \`a \^etre imprim\'ee et plac\'ee dans le centre |
| 336 |
% de documentation du GERAD. L'option +twoside+ |
| 337 |
% est pass\'ee \`a la classe +article+. |
| 338 |
% \else |
| 339 |
% The paper version of an article that is to be printed and placed in the GERAD documentation centre. |
| 340 |
% The +twoside+ option is passed on to the article class. |
| 341 |
% \fi |
| 342 |
% \end{DescribeMacro} |
| 343 |
% |
| 344 |
% \begin{DescribeMacro}{gdplain} |
| 345 |
% \ifnum\frenchdoc=1 |
| 346 |
% La version sans mise en forme d'un cahier de recherche, semblable \`a un article \LaTeX\ de base et |
| 347 |
% destin\'ee à la distribution par l'auteur. L'option +oneside+ est pass\'ee \`a la classe +article+. |
| 348 |
% \else |
| 349 |
% The unformatted version of a paper, similar to a basic \LaTeX\ article, that is to be distributed by |
| 350 |
% the author. The +oneside+ option is passed on to the article class. |
| 351 |
% \fi |
| 352 |
% \end{DescribeMacro} |
| 353 |
% |
| 354 |
% \begin{DescribeMacro}{gdrevised} |
| 355 |
% \ifnum\frenchdoc=1 |
| 356 |
% Lorsqu'un cahier de recherche fait l'objet d'une r\'evision par ses auteurs, cette option |
| 357 |
% est utilis\'ee pour afficher la date de r\'evision sur la page couverture du cahier. |
| 358 |
% \else |
| 359 |
% When a paper is revised by the authors, this option is used to display the revision date |
| 360 |
% on the paper’s cover page. |
| 361 |
% \fi |
| 362 |
% \end{DescribeMacro} |
| 363 |
% |
| 364 |
% \begin{DescribeMacro}{gdfinal} |
| 365 |
% \ifnum\frenchdoc=1 |
| 366 |
% Pendant la r\'edaction et la r\'evision d'un cahier, une +overfullrule+ de 5pt s'affiche dans la |
| 367 |
% marge de droite pour indiquer quels \'el\'ements du cahier d\'epassent de la marge. Une fois |
| 368 |
% la r\'edaction et la r\'evision termin\'ees, cette option est utilis\'ee pour retirer l'+overfullrule+ |
| 369 |
% du document. |
| 370 |
% \else |
| 371 |
% During the drafting and revision process, a 5 pt +overfullrule+ is printed in the right-hand |
| 372 |
% margin to indicate any parts of the paper that go outside the margin. Once these two processes are |
| 373 |
% done, this option is used to remove the document’s +overfullrule+. |
| 374 |
% \fi |
| 375 |
% \end{DescribeMacro} |
| 376 |
% |
| 377 |
% \begin{DescribeMacro}{gdsmallhead} |
| 378 |
% \ifnum\frenchdoc=1 |
| 379 |
% Certains \emph{packages} s'amusent \`a nos d\'epens en modifiant l'ent\^ete d'un cahier. L'option |
| 380 |
% +gdsmallhead+ vient corriger cet affront en r\'etablissant l'ent\^ete voulu. |
| 381 |
% \else |
| 382 |
% Some packages have fun at our expense by modifying the paper’s header. The |
| 383 |
% +gdsmallhead+ option corrects this by resetting the proper header. |
| 384 |
% \fi |
| 385 |
% \end{DescribeMacro} |
| 386 |
% |
| 387 |
% \begin{DescribeMacro}{gdpostpub} |
| 388 |
% \ifnum\frenchdoc=1 |
| 389 |
% Une fois le contenu du cahier de recherche publi\'e chez un \'editeur, le cahier lui-m\^eme doit |
| 390 |
% \^etre mis \`a jour afin d'afficher ces nouvelles informations de publication sur la page |
| 391 |
% couverture du cahier. L'option +gdpostpub+ substitue la citation officielle de l'\'editeur \`a |
| 392 |
% celle du cahier et l'URL de l'article \`a celui du cahier. |
| 393 |
% \else |
| 394 |
% Once a paper’s content is published by a publisher, the paper must be updated to show the new |
| 395 |
% publication’s information on the cover page. The +gdpostpub+ option swaps out the \emph{Cahier}’s |
| 396 |
% citation for the publisher's official one and the article URL for the \emph{Cahier}’s |
| 397 |
% \fi |
| 398 |
% \end{DescribeMacro} |
| 399 |
% |
| 400 |
% \begin{DescribeMacro}{gdsupplement} |
| 401 |
% \ifnum\frenchdoc=1 |
| 402 |
% Lorsqu'un auteur souhaite ajouter un suppl\'ement de recherche ou une «annexe» tr\`es importante \`a |
| 403 |
% son cahier de recherche sans l'inclure dans le document principal, il peut ajouter cette partie dans un autre |
| 404 |
% gabarit \gdwp\ vierge et y inclure l'option +gdsupplement+. Jumel\'ee avec la commande +\GDsupplementname+ |
| 405 |
% (voir la \autoref{sec:metadonnees}), l'option affichera clairement le nom du suppl\'ement dans les pages titre |
| 406 |
% et les ent\^etes du document suppl\'ementaire. |
| 407 |
% \else |
| 408 |
% When authors want to add extra research data or an important ``appendix'' to their working paper without |
| 409 |
% including it in the main document, they can write that extra material in a blank \gdwp\ template with the |
| 410 |
% +gdsupplement+ option included. Combined with the +\GDsupplementname+ command (see \autoref{sec:metadonnees}), this |
| 411 |
% option will clearly show the supplement name on the title pages and page headers. |
| 412 |
% \fi |
| 413 |
% \end{DescribeMacro} |
| 414 |
% |
| 415 |
% \begin{DescribeMacro}{gdminitabs} |
| 416 |
% \ifnum\frenchdoc=1 |
| 417 |
% Il arrive parfois que des auteurs cr\'eent des tableaux si grands que ceux-ci d\'epassent d'une |
| 418 |
% ou plusieurs marges. Dans de tels cas, l'option +gdminitabs+ est utilis\'ee pour mettre les |
| 419 |
% tableaux du document en +footnotesize+. |
| 420 |
% \else |
| 421 |
% Authors sometimes create tables so large that they extend beyond the margins. To solve this issue, |
| 422 |
% the +gdminitabs+ option can be used to set the tables in the document to +footnotesize+. |
| 423 |
% \fi |
| 424 |
% \changes{1.1}{2021-12-06}{Corrected the gdminitabs typo} |
| 425 |
% \end{DescribeMacro} |
| 426 |
% |
| 427 |
% \ifnum\frenchdoc=1 |
| 428 |
% \subsection{Utilisation des \emph{packages}} |
| 429 |
% |
| 430 |
% Le but de cette classe \'etant d'assurer une coh\'esion dans la mise en forme des rapports de recherche, |
| 431 |
% tr\`es peu de \emph{packages} sont pr\'echarg\'es --- le \autoref{tab:pre-loaded-pkgs} recense ceux-ci |
| 432 |
% avec le fichier o\`u les trouver de m\^eme que leurs options, le cas \'ech\'eant --- et les chercheurs |
| 433 |
% auront le loisir d'utiliser ceux dont ils auront besoin en prenant en compte les particularit\'es |
| 434 |
% ci-dessous et en \'evitant de recharger des \emph{packages} ou d'en modifier les options par d\'efaut. |
| 435 |
% \else |
| 436 |
% \subsection{Using packages} |
| 437 |
% |
| 438 |
% Since the goal of this class is to make sure that working papers use a consistent layout, |
| 439 |
% very few packages are preloaded. \autoref{tab:pre-loaded-pkgs} lists those that are preloaded, |
| 440 |
% along with the files where you will find them (and their options, where applicable). Researchers |
| 441 |
% can choose to use whichever packages they will need, taking into account their features (see below). Care should |
| 442 |
% be taken not to reload any of them or to change any of the default options. |
| 443 |
% \fi |
| 444 |
% \changes{1.1}{2022-01-28}{Changed color package for xcolor} |
| 445 |
% |
| 446 |
% \begin{table}[tbh] |
| 447 |
% \begin{tabularx}{\textwidth}{Xccl} |
| 448 |
% \hline |
| 449 |
% \ifnum\frenchdoc=1 |
| 450 |
% \textbf{\emph{Package}} & \textbf{Fichier de classe} & \textbf{Gabarit} & \textbf{Options} \\ |
| 451 |
% \else |
| 452 |
% \textbf{Package} & \textbf{Class file} & \textbf{Template} & \textbf{Options} \\ |
| 453 |
% \fi |
| 454 |
% \hline |
| 455 |
% amssymb & \oui & & \\ |
| 456 |
% amsmath & \oui & & \\ |
| 457 |
% amsfonts & \oui & & \\ |
| 458 |
% latexsym & \oui & & \\ |
| 459 |
% graphicx & \oui & & graphicspath=Figures \\ |
| 460 |
% mathrsfs & \oui & & \\ |
| 461 |
% geometry & \oui & & \\ |
| 462 |
% fancyhdr & \oui & & \\ |
| 463 |
% booktabs & \oui & & \\ |
| 464 |
% multirow & \oui & & \\ |
| 465 |
% array & \oui & & \\ |
| 466 |
% caption & \oui & & font=\{footnotesize,bf,sf\} \\ |
| 467 |
% xcolor & \oui & & \\ |
| 468 |
% enumitem & \oui & & \\ |
| 469 |
% float & \oui & & \\ |
| 470 |
% algorithm & & \oui & \\ |
| 471 |
% algorithmic & & \oui & \\ |
| 472 |
% algorithm2e & & \oui & \\ |
| 473 |
% hyperref & & \oui & colorlinks \\ |
| 474 |
% & & & citecolor=\{blue\} \\ |
| 475 |
% & & & urlcolor=\{blue\} \\ |
| 476 |
% & & & breaklinks=\{true\} \\ |
| 477 |
% \hline |
| 478 |
% \end{tabularx} |
| 479 |
% \ifnum\frenchdoc=1 |
| 480 |
% \caption{Liste des \emph{packages} pr\'echarg\'es avec la classe, leur localisation et leurs options} |
| 481 |
% \else |
| 482 |
% \caption{List of the class' preloaded packages along with their location and options} |
| 483 |
% \fi |
| 484 |
% \label{tab:pre-loaded-pkgs} |
| 485 |
% \end{table} |
| 486 |
% |
| 487 |
% \subsubsection{babel} |
| 488 |
% \ifnum\frenchdoc=1 |
| 489 |
% L'auteur de ces lignes ayant \'et\'e inform\'e par la maintenanci\`ere du gabarit originel que l'utilisation de |
| 490 |
% babel |
| 491 |
% avec ce dernier causait de nombreux probl\`emes, il vous serait gr\'e de \textbf{ne pas utiliser le |
| 492 |
% \emph{package} babel avec ce nouveau gabarit}, et ce, jusqu'\`a ce que lesdits probl\`emes lui soient |
| 493 |
% pr\'esent\'es |
| 494 |
% afin d'\^etre corrig\'es. Une version ult\'erieure de la classe vous permettra peut-\^etre de vous en servir. |
| 495 |
% \else |
| 496 |
% The person maintaining the original template advised the author of this document class that using babel with the |
| 497 |
% template causes a number of problems, |
| 498 |
% so \textbf{please do not use the babel package with this new template}, until these issues have been fixed. |
| 499 |
% A future release of the class may allow you to use it. |
| 500 |
% \fi |
| 501 |
% |
| 502 |
% \subsubsection{algorithm, algorithmic, algorithm2e} |
| 503 |
% |
| 504 |
% \ifnum\frenchdoc=1 |
| 505 |
% \lien{https://www.ctan.org/pkg/algorithms}{algorithm, algorithmic} et |
| 506 |
% \lien{https://www.ctan.org/pkg/algorithm2e}{algorithm2e} sont |
| 507 |
% trois \emph{packages} ayant leurs aficionados respectifs parmi les auteurs de \emph{Cahiers du GERAD}. Tous trois |
| 508 |
% sont |
| 509 |
% accept\'es et charg\'es dans le pr\'eambule du gabarit. Il suffit de mettre en commentaire ceux des trois qui ne |
| 510 |
% seront pas utilis\'es. \textbf{Notez que +algorithm+ et +algorithmic+ doivent toujours \^etre charg\'es ensemble}, |
| 511 |
% l'un ne fonctionnant pas sans l'autre. +algorithm2e+, quant \`a lui, est autosuffisant. |
| 512 |
% |
| 513 |
% +algorithm+ et +algorithm2e+ ne peuvent pas \^etre charg\'es ensemble puisqu'ils entrent en conflit et |
| 514 |
% cr\'eent des bogues. |
| 515 |
% |
| 516 |
% Finalement, lorsque vous utilisez le couple +algorithm+ et +algorithmic+, veuillez s'il vous pla\^it mettre les |
| 517 |
% +\caption+ de vos algorithmes en +\footnotesize+. |
| 518 |
% \else |
| 519 |
% \lien{https://www.ctan.org/pkg/algorithms}{algorithm, algorithmic} and \lien{https://www.ctan.org/pkg/algorithm2e}{algorithm2e} are |
| 520 |
% three different packages, each of which has its fans among the \emph{Cahiers du GERAD} authors. All are accepted |
| 521 |
% and loaded in the preamble of the template. Simply comment out those that will not be used. |
| 522 |
% \textbf{Bear in mind that +algorithm+ and +algorithmic+ must be loaded together} as they don't work |
| 523 |
% independently. +algorithm2e+, on the other hand, il self-sufficient. |
| 524 |
% |
| 525 |
% +algorithm+ and +algorithm2e+ are mutually exclusive and cannot be both loaded at once without causing bugs. |
| 526 |
% |
| 527 |
% Finally, when using the +algorithm+ and +algorithmic+ duo, please put your algorithms' +\caption+ in |
| 528 |
% +\footnotesize+. |
| 529 |
% \fi |
| 530 |
% \changes{1.1}{2021-12-07}{Included algorithmic package in documentation} |
| 531 |
% \changes{1.1}{2021-12-07}{Added the caption footnotesize note} |
| 532 |
% |
| 533 |
% \subsubsection{float} |
| 534 |
% |
| 535 |
% \ifnum\frenchdoc=1 |
| 536 |
% Le \emph{package} +float+ est charg\'e avec la classe \textbf{uniquement lorsque l'option +gdminitabs+ est utilis\'ee}, et ce, |
| 537 |
% afin de transformer les tableaux en +footnotesize+. Si vous avez besoin de ce \emph{package} même si vos tableaux |
| 538 |
% sont raisonnablement petits, chargez-le dans le pr\'eambule de votre document. |
| 539 |
% |
| 540 |
% Si vous utilisez le \emph{package} +algorithm+, +float+ est charg\'e par ce dernier. Il est donc inutile de le |
| 541 |
% charger dans le pr\'ambule. |
| 542 |
% \else |
| 543 |
% The +float+ package is loaded with the class \textbf{only when the +gdminitabs+ option is enabled}. When loaded, it resizes |
| 544 |
% the tables in +footnotesize+. If you need this package even if your tables are reasonably small, you can load it in the preamble |
| 545 |
% of the document. |
| 546 |
% |
| 547 |
% If you are using the +algorithm+ package, please note that it loads +float+, so there is no need to load it in |
| 548 |
% the preamble. |
| 549 |
% \fi |
| 550 |
% \changes{1.1}{2021-12-07}{Added the fact that algorithm loads float package} |
| 551 |
% |
| 552 |
% \subsubsection{cleveref} |
| 553 |
% |
| 554 |
% \ifnum\frenchdoc=1 |
| 555 |
% Le gabarit inclut d\'ej\`a le package +amsthm+ pour permettre le r\'ef\'erencement des th\'eor\`emes. Toutefois, |
| 556 |
% afin que ceux-ci apparaissent lorsqu’il y a utilisation du package +cleveref+, les d\'efinitions +\newtheorem+ doivent |
| 557 |
% \^etre plac\'ees \textbf{apr\`es} que le package +cleveref+ ait \'et\'e charg\'e (tel que sp\'ecifi\'e dans la section 14.1 de la |
| 558 |
% \lien{https://www.ctan.org/pkg/cleveref}{documentation de cleveref}). |
| 559 |
% \else |
| 560 |
% The template already includes the +amsthm+ package to allow referencing of theorems. However, in order for them to |
| 561 |
% appear when using the +cleveref+ package, +\newtheorem+ definitions must be placed \textbf{after} the +cleveref+ package is loaded |
| 562 |
% (as specified in Section 14.1 of the \lien{https://www.ctan.org/pkg/cleveref}{cleveref package documentation}). |
| 563 |
% \fi |
| 564 |
% |
| 565 |
% \ifnum\frenchdoc=1 |
| 566 |
% \subsection{Commandes} |
| 567 |
% \else |
| 568 |
% \subsection{Commands} |
| 569 |
% \fi |
| 570 |
% |
| 571 |
% \ifnum\frenchdoc=1 |
| 572 |
% Les quelques commandes publiques qui ont \'et\'e cr\'e\'ees pour cette classe ont deux fonctions : renseigner les |
| 573 |
% m\'etadonn\'ees du cahier de recherche et faire de la mise en page. |
| 574 |
% \else |
| 575 |
% The handful of public commands that were created for this class have two purposes: document layout and filling in metadata |
| 576 |
% for the working paper. |
| 577 |
% \fi |
| 578 |
% \changes{1.1}{2021-12-07}{All public commands have been translated in English} |
| 579 |
% |
| 580 |
% |
| 581 |
% \ifnum\frenchdoc=1 |
| 582 |
% \subsubsection{M\'etadonn\'ees} |
| 583 |
% \else |
| 584 |
% \subsubsection{Metadata} |
| 585 |
% \fi |
| 586 |
% \label{sec:metadonnees} |
| 587 |
% |
| 588 |
% \ifnum\frenchdoc=1 |
| 589 |
% Toutes situ\'ees dans le pr\'eambule, les commandes de m\'etadonn\'ees permettent aux auteurs et \`a l'\'equipe du |
| 590 |
% GERAD d'inscrire les informations bibliographiques qui se retrouveront sur la page couverture et la page titre |
| 591 |
% du cahier. |
| 592 |
% \else |
| 593 |
% All located in the preamble, the metadata commands allow authors and the GERAD team to insert the bibliographical |
| 594 |
% data that will be found on the cover and title pages of the paper. |
| 595 |
% \fi |
| 596 |
% |
| 597 |
% \begin{DescribeMacro}{\GDtitle} |
| 598 |
% \ifnum\frenchdoc=1 |
| 599 |
% Le titre du cahier de recherche. Celui-ci se retrouve \`a la fois sur la page couverture et la page titre. |
| 600 |
% \else |
| 601 |
% Title of the working paper. The title is on both the cover and title pages. |
| 602 |
% \fi |
| 603 |
% \end{DescribeMacro} |
| 604 |
% |
| 605 |
% \begin{DescribeMacro}{\GDauthorsShort} |
| 606 |
% \ifnum\frenchdoc=1 |
| 607 |
% La liste des auteurs du cahier sous la forme \emph{[Initiale du pr\'enom]. [Nom de famille]} |
| 608 |
% (ex. : B. Hamel, K. H\'ebert). Le contenu de cette commande se retrouve sur la page couverture, sous le titre. |
| 609 |
% \else |
| 610 |
% List of authors, formatted as \emph{[First initial]. [Last name]} (e.g.: B. Hamel, K. H\'ebert). |
| 611 |
% The contents of this command will be found on the title page, under the title. |
| 612 |
% \fi |
| 613 |
% \end{DescribeMacro} |
| 614 |
% |
| 615 |
% \begin{DescribeMacro}{\GDauthorsCopyright} |
| 616 |
% \ifnum\frenchdoc=1 |
| 617 |
% La liste des noms de famille des auteurs \`a la mention des droits d'auteurs au bas de la page titre. |
| 618 |
% \else |
| 619 |
% List of the authors’ last names for the authors’ copyright notice at the bottom of the title page. |
| 620 |
% \fi |
| 621 |
% \end{DescribeMacro} |
| 622 |
% |
| 623 |
% \begin{DescribeMacro}{\GDmonth} |
| 624 |
% \ifnum\frenchdoc=1 |
| 625 |
% Le mois de publication du cahier de recherche dans ses formes fran\c{c}aise et anglaise. Le mois en fran\c{c}ais |
| 626 |
% est inscrit entre les premi\`eres accolades, celui en anglais, entre les deuxi\`emes. |
| 627 |
% \else |
| 628 |
% Publication month of the working paper in both French and English. The month for the French version is in the |
| 629 |
% first set of curly brackets and the English one in the second. |
| 630 |
% \fi |
| 631 |
% \end{DescribeMacro} |
| 632 |
% |
| 633 |
% \begin{DescribeMacro}{\GDyear} |
| 634 |
% \ifnum\frenchdoc=1 |
| 635 |
% L'ann\'ee de publication du cahier sous la forme \emph{AAAA}. |
| 636 |
% \else |
| 637 |
% The year the paper was published, formatted as YYYY. |
| 638 |
% \fi |
| 639 |
% \end{DescribeMacro} |
| 640 |
% |
| 641 |
% \begin{DescribeMacro}{\GDnumber} |
| 642 |
% \ifnum\frenchdoc=1 |
| 643 |
% Le num\'ero du cahier de recherche. Ce num\'ero est assign\'e par l'\'equipe du GERAD. |
| 644 |
% \else |
| 645 |
% Number assigned to the working paper by the GERAD team. |
| 646 |
% \fi |
| 647 |
% \end{DescribeMacro} |
| 648 |
% |
| 649 |
% \begin{DescribeMacro}{\GDrevised} |
| 650 |
% \ifnum\frenchdoc=1 |
| 651 |
% Lorsqu'un cahier de recherche fait l'objet d'une r\'evision par ses auteurs, la date de r\'evision |
| 652 |
% est inscrite dans cette commande pour \^etre affich\'ee sur la page couverture. |
| 653 |
% \else |
| 654 |
% When a working paper is revised by its authors, this command is used to display the revision date |
| 655 |
% on the cover page. |
| 656 |
% \fi |
| 657 |
% \end{DescribeMacro} |
| 658 |
% |
| 659 |
% \begin{DescribeMacro}{\GDsupplementname} |
| 660 |
% \ifnum\frenchdoc=1 |
| 661 |
% Si vous r\'edigez un suppl\'ement de recherche ou une annexe \`a l'aide du gabarit \gdwp\ et que vous |
| 662 |
% l'indiquez avec l'option +gdsupplement+ (voir \autoref{subsec:options}), la commande |
| 663 |
% +\GDsupplementname+ servira \`a nommer ledit suppl\'ement et la classe imprimera ce nom dans les pages |
| 664 |
% titre et les ent\^etes du document. |
| 665 |
% \else |
| 666 |
% If you write extra research data or an appendix using the \gdwp\ template and the +gdsupplement+ option |
| 667 |
% (see \autoref{subsec:options}), the +\GDsupplementname+ command will serve as place holder for the |
| 668 |
% supplement's name and the class will output it on the title pages and on page headers. |
| 669 |
% \fi |
| 670 |
% \end{DescribeMacro} |
| 671 |
% |
| 672 |
% \begin{DescribeMacro}{\GDpostpubcitation} |
| 673 |
% \ifnum\frenchdoc=1 |
| 674 |
% Lorsque le contenu du cahier de recherche est publi\'e chez un \'editeur, l'\'equipe du GERAD |
| 675 |
% substitue la citation officielle de l'article \`a celle du cahier de recherche et l'URL de l'\'editeur |
| 676 |
% \`a celle du site Web du GERAD en utilisant cette commande, la citation devant \^etre inscrite dans |
| 677 |
% les premi\`eres accolades et l'URL, dans les secondes. |
| 678 |
% \else |
| 679 |
% When the working paper is officially published, the GERAD team will replace the \emph{Cahier}’s citation |
| 680 |
% with the official journal citation and replace the link to the GERAD website with the URL from the |
| 681 |
% publisher. The citation must be placed in the first set of curly brackets and the URL in the second. |
| 682 |
% \fi |
| 683 |
% \end{DescribeMacro} |
| 684 |
% |
| 685 |
% \ifnum\frenchdoc=1 |
| 686 |
% \subsubsection{Mise en page} |
| 687 |
% |
| 688 |
% Afin de d\'esembourber le gabarit et d'\'eviter que des commandes essentielles de mise en page soient |
| 689 |
% supprim\'ees par des auteurs, des commandes ont \'et\'e cr\'e\'ees. Celles-ci marquent en m\^eme temps |
| 690 |
% les subdivisions du document. |
| 691 |
% \else |
| 692 |
% \subsubsection{Document Layout} |
| 693 |
% |
| 694 |
% To keep the template from getting cluttered and to keep authors from deleting critical formatting commands, |
| 695 |
% commands were created to mark each subdivision of the document. |
| 696 |
% \fi |
| 697 |
% |
| 698 |
% \begin{DescribeMacro}{\GDcoverpage} |
| 699 |
% \ifnum\frenchdoc=1 |
| 700 |
% Toute la page couverture d'un cahier de recherche est g\'en\'er\'ee \`a partir de cette commande. |
| 701 |
% Elle est entre autres mise en forme avec les m\'etadonn\'ees des commandes cit\'ees \`a la |
| 702 |
% \autoref{sec:metadonnees}. La page titre qui suit la page couverture est quant \`a elle g\'en\'er\'ee |
| 703 |
% par l'environnement +GDtitlepage+ d\'ecrit \`a la \autoref{sec:environnements}. |
| 704 |
% \else |
| 705 |
% The entire cover page is generated with this command. It is largely formatted with the formatting |
| 706 |
% commands listed in \autoref{sec:metadonnees}. The title page that follows the cover is generated |
| 707 |
% by the +GDtitlepage+ environment described in \autoref{sec:environnements}. |
| 708 |
% \fi |
| 709 |
% \end{DescribeMacro} |
| 710 |
% |
| 711 |
% \begin{DescribeMacro}{\GDabstracts} |
| 712 |
% \ifnum\frenchdoc=1 |
| 713 |
% Cette commande repr\'esente le d\'ebut de la section \og contenu \fg\ du cahier de recherche, commen\c{c}ant |
| 714 |
% avec les r\'esum\'es anglais et fran\c{c}ais. C'est elle |
| 715 |
% qui configure les ent\^etes et pieds de pages qui seront effectifs jusqu'\`a la fin du cahier et qui |
| 716 |
% comprennent, notamment, les m\'etadonn\'ees d\'ecrites \`a la \autoref{sec:metadonnees}. Les r\'esum\'es |
| 717 |
% sont quant \`a eux r\'edig\'es \`a l'int\'erieur de l'environnement +GDabstract+ d\'ecrit \`a la |
| 718 |
% \autoref{sec:environnements}. |
| 719 |
% \else |
| 720 |
% This command marks the beginning of the ``content'' section, beginning with the English and French abstracts. |
| 721 |
% It configures the page headers and footers, which are used throughout the paper, including the metadata |
| 722 |
% described in \autoref{sec:metadonnees}. The abstracts are written in the +GDabstract+ environment described |
| 723 |
% in \autoref{sec:environnements}. |
| 724 |
% \fi |
| 725 |
% \end{DescribeMacro} |
| 726 |
% |
| 727 |
% \begin{DescribeMacro}{\GDarticlestart} |
| 728 |
% \ifnum\frenchdoc=1 |
| 729 |
% Le cahier de recherche en tant que tel d\'ebute \`a partir de cette commande. Celle-ci fait quelques derniers |
| 730 |
% petits r\'eglages au niveau de la mise en page. |
| 731 |
% \else |
| 732 |
% The working paper begins with this command. It handles some final fine-tuning of the formatting settings. |
| 733 |
% \fi |
| 734 |
% \end{DescribeMacro} |
| 735 |
% |
| 736 |
% \ifnum\frenchdoc=1 |
| 737 |
% \subsection{Environnements} |
| 738 |
% \else |
| 739 |
% \subsection{Environments} |
| 740 |
% \fi |
| 741 |
% \label{sec:environnements} |
| 742 |
% |
| 743 |
% \ifnum\frenchdoc=1 |
| 744 |
% Les quelques environnements qui ont \'et\'e cr\'e\'es l'ont \'et\'e pour mettre en forme rapidement la page titre |
| 745 |
% et la section des r\'esum\'es. |
| 746 |
% \else |
| 747 |
% A few environments were created to quickly format the title page and the abstracts section. |
| 748 |
% \fi |
| 749 |
% |
| 750 |
% \ifnum\frenchdoc=1 |
| 751 |
% \subsubsection{Page titre} |
| 752 |
% \else |
| 753 |
% \subsubsection{Title page} |
| 754 |
% \fi |
| 755 |
% |
| 756 |
% \begin{DescribeEnv}{GDtitlepage} |
| 757 |
% \ifnum\frenchdoc=1 |
| 758 |
% Toute la page titre est g\'en\'er\'ee par le biais de cet environnement. Les auteurs n'ont qu'\`a inscrire |
| 759 |
% leurs informations personnelles dans les environnements +GDauthlist+, +GDaffillist+ et +GDemaillist+ d\'ecrits |
| 760 |
% ci-dessous pour compl\'eter la page. |
| 761 |
% \else |
| 762 |
% The entire title page is generated via this environment. To create the page, authors only need to type |
| 763 |
% their personal information in the +GDauthlist+, +GDaffillist+, and +GDemaillist+ environments described below. |
| 764 |
% \fi |
| 765 |
% \end{DescribeEnv} |
| 766 |
% |
| 767 |
% \begin{DescribeEnv}{GDauthlist} |
| 768 |
% \end{DescribeEnv} |
| 769 |
% \begin{DescribeMacro}{\GDauthitem} |
| 770 |
% \end{DescribeMacro} |
| 771 |
% \begin{DescribeMacro}{\GDrefsep} |
| 772 |
% \ifnum\frenchdoc=1 |
| 773 |
% L'environnement +GDauthlist+ est une liste personnalis\'ee dans laquelle les auteurs y saisissent leur nom |
| 774 |
% complet \`a l'aide de la commande +\GDauthitem+, \`a raison d'un auteur par ligne. Les auteurs peuvent y |
| 775 |
% r\'ef\'erencer leurs affiliations avec la commande +\ref{}+, tel que d\'emontr\'e dans le \autoref{lst:gdauthlist}. |
| 776 |
% Dans le cas o\`u un auteur a plus d'une affiliation, il doit saisir une commande +\ref{}+ |
| 777 |
% par affiliation en s\'eparant chacune d'entre elles par la commande +\GDrefsep+. |
| 778 |
% \else |
| 779 |
% The +GDauthlist+ environment is a customized list in which the authors enter their full name using the +\GDauthitem+ |
| 780 |
% command (NB: one author per line). The authors can link their affiliations with the +\ref{}+ command, as demonstrated |
| 781 |
% in \autoref{lst:gdauthlist}. In the event that an author has more than one affiliation, they must use one +\ref{}+ |
| 782 |
% command per affiliation, separating each one with a +\GDrefsep+ command. |
| 783 |
% \fi |
| 784 |
% \end{DescribeMacro} |
| 785 |
% |
| 786 |
% \iffalse |
| 787 |
%<*exampleone> |
| 788 |
% \fi |
| 789 |
% \begin{lstlisting}[name=pgtitlelists,float=h,caption=\lstcaptionone,label=lst:gdauthlist] |
| 790 |
\begin{GDauthlist} |
| 791 |
\GDauthitem{Benoit Hamel\ref{affil:hec}} |
| 792 |
\GDauthitem{Karine H\'ebert\ref{affil:gerad}\GDrefsep\ref{affil:hec}} |
| 793 |
\end{GDauthlist} |
| 794 |
\end{lstlisting} |
| 795 |
% \iffalse |
| 796 |
%</exampleone> |
| 797 |
% \fi |
| 798 |
% |
| 799 |
% \begin{DescribeEnv}{GDaffillist} |
| 800 |
% \end{DescribeEnv} |
| 801 |
% \begin{DescribeMacro}{\GDaffilitem} |
| 802 |
% \ifnum\frenchdoc=1 |
| 803 |
% L'environnement +GDaffillist+ est une liste personnalis\'ee dans laquelle sont recens\'ees toutes les affiliations |
| 804 |
% des auteurs sans aucun ordre d'importance pr\'ed\'efini. Chaque affiliation est inscrite dans une commande |
| 805 |
% +\GDaffilitem+, le \emph{label} de l'affiliation \'etant inscrit entre les premi\`eres accolades, l'affiliation en tant que telle, |
| 806 |
% entre les secondes, tel qu'illustr\'e dans le \autoref{lst:gdaffillist}. |
| 807 |
% \else |
| 808 |
% The +GDaffillist+ environment is a customized list of all the authors’ affiliations, in no predefined order of |
| 809 |
% importance. Each affiliation is written with a +\GDaffilitem+ command with the label of the affiliation entered |
| 810 |
% between the first set of curly brackets, and the affiliation itself in the second, as shown in \autoref{lst:gdaffillist}. |
| 811 |
% \fi |
| 812 |
% \end{DescribeMacro} |
| 813 |
% |
| 814 |
% \iffalse |
| 815 |
%<*exampletwo> |
| 816 |
% \fi |
| 817 |
\begin{lstlisting}[name=pgtitlelists,float=h,caption=\lstcaptiontwo,label=lst:gdaffillist] |
| 818 |
\begin{GDaffillist} |
| 819 |
\GDaffilitem{affil:hec}{HEC Montr\'eal} |
| 820 |
\GDaffilitem{affil:gerad}{GERAD} |
| 821 |
\end{GDauthlist} |
| 822 |
\end{lstlisting} |
| 823 |
% \iffalse |
| 824 |
%</exampletwo> |
| 825 |
% \fi |
| 826 |
% |
| 827 |
% \begin{DescribeEnv}{GDemaillist} |
| 828 |
% \end{DescribeEnv} |
| 829 |
% \begin{DescribeMacro}{\GDemailitem} |
| 830 |
% \ifnum\frenchdoc=1 |
| 831 |
% La derni\`ere liste personnalis\'ee cr\'e\'ee pour la page titre d'un cahier de recherche |
| 832 |
% est l'environnement +GDemaillist+ dans lequel sont recens\'ees les adresses courriel des |
| 833 |
% auteurs, \`a raison d'une adresse par commande +\GDemailitem+. |
| 834 |
% \else |
| 835 |
% The final customized list created for the title page of a \emph{Cahier} is the +GDemaillist+ environment, |
| 836 |
% where the authors’ email addresses are listed, with one email address per +\GDemailitem+ command. |
| 837 |
% \fi |
| 838 |
% \end{DescribeMacro} |
| 839 |
% |
| 840 |
% \iffalse |
| 841 |
%<*examplethree> |
| 842 |
% \fi |
| 843 |
\begin{lstlisting}[name=pgtitlelists,float=h,caption=\lstcaptionthree,label=lst:gdemaillist] |
| 844 |
\begin{GDemaillist} |
| 845 |
\GDemailitem{[email protected]} |
| 846 |
\GDemailitem{[email protected]} |
| 847 |
\end{GDauthlist} |
| 848 |
\end{lstlisting} |
| 849 |
% \iffalse |
| 850 |
%</examplethree> |
| 851 |
% \fi |
| 852 |
% |
| 853 |
% \ifnum\frenchdoc=1 |
| 854 |
% \subsubsection{Section des r\'esum\'es} |
| 855 |
% \else |
| 856 |
% \subsubsection{Abstracts section} |
| 857 |
% \fi |
| 858 |
% |
| 859 |
% \begin{DescribeEnv}{GDabstract} |
| 860 |
% \ifnum\frenchdoc=1 |
| 861 |
% \`A l'int\'erieur d'un cahier de recherche du GERAD, les r\'esum\'es fran\c{c}ais et anglais sont r\'edig\'es |
| 862 |
% dans un +paragraph+. M\^eme s'il aurait \'et\'e plus simple de n'inscrire qu'une commande +\paragraph+ par |
| 863 |
% r\'esum\'e dans le gabarit, les auteurs de cette classe ont choisi de conserver le format \og environnement \fg\ |
| 864 |
% afin d'y ajouter de la mise en page et de reproduire le comportement de l'environnement +abstract+. |
| 865 |
% \else |
| 866 |
% In a GERAD working paper, the French and English abstracts are written in a single paragraph. |
| 867 |
% Even though it would have been simpler to write only one +\paragraph+ command per abstract in the template, |
| 868 |
% the authors of the class chose to use the ``environment'' format in order to add formatting and remain consistent |
| 869 |
% with the behaviour of the abstract environment. |
| 870 |
% \fi |
| 871 |
% \end{DescribeEnv} |
| 872 |
% |
| 873 |
% \begin{DescribeEnv}{GDacknowledgements} |
| 874 |
% \ifnum\frenchdoc=1 |
| 875 |
% Dans les cahiers de recherche du GERAD, les remerciements sont un bloc de texte distinct qui ne correspond pas |
| 876 |
% \`a ce que la commande +\thanks+ donne en terme de mise en forme. Les auteurs r\'edigent donc leurs |
| 877 |
% remerciements dans leur ensemble dans l'environnement +GDacknowledgements+ et la classe \gdwp\ les |
| 878 |
% disposera en fonction du type de version choisie. |
| 879 |
% \else |
| 880 |
% In a GERAD working paper, the acknowledgements are in a distinct block of text that does not match what the |
| 881 |
% +\thanks+ command yields in terms of formatting. The authors therefore must write all their acknowledgements |
| 882 |
% in the GDacknowledgements environment, and the \gdwp\ class will handle the layout according to the chosen version. |
| 883 |
% \fi |
| 884 |
% \end{DescribeEnv} |
| 885 |
% |
| 886 |
% \ifnum\frenchdoc=1 |
| 887 |
% \section{Le gabarit \texttt{geradwp.tex}} |
| 888 |
% \else |
| 889 |
% \section{The \texttt{geradwp.tex} template} |
| 890 |
% \fi |
| 891 |
% \label{sec:gabarit} |
| 892 |
% |
| 893 |
% \ifnum\frenchdoc=1 |
| 894 |
% Le gabarit +geradwp.tex+ a \'et\'e con\c{c}u afin d'\^etre le plus simple possible et divis\'e de sorte que |
| 895 |
% le code source de chaque cahier soit uniforme. Voici une br\`eve pr\'esentation de ses diff\'erentes sections. |
| 896 |
% \else |
| 897 |
% The +geradwp.tex+ template was designed to be as simple as possible and is divided in a way that makes the |
| 898 |
% source code of each paper uniform. Here is a brief presentation of the different sections. |
| 899 |
% \fi |
| 900 |
% |
| 901 |
% \ifnum\frenchdoc=1 |
| 902 |
% \subsection{\emph{Packages} par d\'efaut du cahier (lignes 92-106)} |
| 903 |
% |
| 904 |
% Tous les \emph{packages} qui ne sont pas charg\'es par d\'efaut dans le fichier de classe (voir le |
| 905 |
% \autoref{tab:pre-loaded-pkgs}) sont charg\'es dans cette section. C'est dans cette section que vous pourrez |
| 906 |
% choisir entre les \emph{packages} +algorithm+ et +algorithm2e+. C'est \'egalement ici que |
| 907 |
% vous devrez charger les \emph{packages} qui ont tendance \`a ne pas fonctionner ad\'equatement s'ils sont |
| 908 |
% charg\'es apr\`es le \emph{package} +hyperref+. |
| 909 |
% \else |
| 910 |
% \subsection{Default packages (lines 92-106)} |
| 911 |
% |
| 912 |
% All the packages that are not loaded by default in the class (see \autoref{tab:pre-loaded-pkgs}) |
| 913 |
% are loaded in this section. It’s in this section that the choice between the +algorithm+ and +algorithm2e+ |
| 914 |
% packages is made. Also, this is where you should load the packages that tend to malfunction if they are |
| 915 |
% loaded after the +hyperref+ package. |
| 916 |
% \fi |
| 917 |
% |
| 918 |
% \ifnum\frenchdoc=1 |
| 919 |
% \subsection{Options par d\'efaut du cahier (lignes 107-136)} |
| 920 |
% |
| 921 |
% Si vous nommez le r\'epertoire dans lequel vous compilerez vos figures diff\'eremment que le nom que nous |
| 922 |
% lui avons donn\'e par d\'efaut ou si vous avez plus d'un r\'epertoire de figures, vous pourrez inscrire |
| 923 |
% ces informations ici. |
| 924 |
% |
| 925 |
% Si vous voulez ajouter des options de +hypersetup+, vous pouvez |
| 926 |
% \'egalement les inscrire ici, en prenant soin de ne pas supprimer ou modifier celles d\'ej\`a inscrites. |
| 927 |
% |
| 928 |
% Dans tous les autres cas, veuillez ne pas modifier cette section. |
| 929 |
% \else |
| 930 |
% \subsection{Default options (lines 107-136)} |
| 931 |
% |
| 932 |
% If the name of your folder containing your paper’s figures is named differently than the default name, |
| 933 |
% or if there are multiple folders with figures in them, this is where you can enter that information. |
| 934 |
% |
| 935 |
% If you want to add +hypersetup+ options without modifying or removing the default ones, you can do that here. |
| 936 |
% |
| 937 |
% In all other cases, this section should remain unchanged. |
| 938 |
% \fi |
| 939 |
% |
| 940 |
% \ifnum\frenchdoc=1 |
| 941 |
% \subsection{Commandes de l'auteur (lignes 137-145)} |
| 942 |
% |
| 943 |
% Cette section vous appartient enti\`erement. Vous pouvez y charger les \emph{packages} n\'ecessaires \`a |
| 944 |
% votre r\'edaction de m\^eme que leurs options. |
| 945 |
% |
| 946 |
% C'est \'egalement dans cette section que vous pouvez inscrire vos commandes, environnements et |
| 947 |
% th\'eor\`emes personnalis\'es. |
| 948 |
% \else |
| 949 |
% \subsection{Author commands (lines 137-145)} |
| 950 |
% |
| 951 |
% This section belongs entirely to the author. This is where all the packages needed for the paper can be loaded, |
| 952 |
% as well as their options. |
| 953 |
% |
| 954 |
% This is also where customized commands, environments, and theorems can be entered. |
| 955 |
% \fi |
| 956 |
% |
| 957 |
% \ifnum\frenchdoc=1 |
| 958 |
% \subsection{Métadonn\'ees du cahier (lignes 147-183)} |
| 959 |
% |
| 960 |
% Cette section, dont une partie est à la fin du pr\'eambule et l'autre dans l'environnement +GDtitlepage+, au |
| 961 |
% d\'ebut du document, est l'endroit o\`u vous devrez inscrire toutes les m\'etadonn\'ees bibliographiques |
| 962 |
% de votre cahier. |
| 963 |
% \else |
| 964 |
% \subsection{Metadata (lines 147-183)} |
| 965 |
% |
| 966 |
% This section is divided in two: the first is at the end of the preamble, and the second in the +GDtitlepage+ |
| 967 |
% environment located at the beginning of the document. This is where all the bibliographical metadata for the |
| 968 |
% paper should be. |
| 969 |
% \fi |
| 970 |
% |
| 971 |
% \ifnum\frenchdoc=1 |
| 972 |
% \subsection{R\'esum\'es, mots-cl\'es, remerciements, article (lignes 185 et suivantes)} |
| 973 |
% |
| 974 |
% Ces deux derni\`eres sections sont, bien entendu, les endroits o\`u vous r\'edigerez votre cahier de |
| 975 |
% recherche... |
| 976 |
% \else |
| 977 |
% \subsection{Abstracts, keywords, acknowledgements, article (starting at line 185)} |
| 978 |
% |
| 979 |
% These last two sections are, of course, where the body of the article will be. |
| 980 |
% \fi |
| 981 |
% |
| 982 |
% \StopEventually{ |
| 983 |
% \clearpage |
| 984 |
% \PrintChanges |
| 985 |
% } |
| 986 |
% |
| 987 |
% |
| 988 |
% \appendix |
| 989 |
% |
| 990 |
% \ifnum\frenchdoc=1 |
| 991 |
% \section{Code source de la classe} |
| 992 |
% |
| 993 |
% Vous retrouverez dans cette annexe le code source de la classe \gdwp. |
| 994 |
% Si vous avez envie de voir comment elle est programm\'ee, d'aider \`a la d\'eboguer, |
| 995 |
% \`a l'am\'eliorer, etc., cette section est pour vous! |
| 996 |
% \else |
| 997 |
% \section{Class source code} |
| 998 |
% |
| 999 |
% In this appendix, you will find the source code for the \gdwp\ class. |
| 1000 |
% If you’re interested to see how it’s programmed, or help with debugging or improving the class, |
| 1001 |
% this section is for you. |
| 1002 |
% \fi |
| 1003 |
% |
| 1004 |
% \ifnum\frenchdoc=1 |
| 1005 |
% \subsection{Tests et valeurs bool\'eennes} |
| 1006 |
% |
| 1007 |
% Pour effectuer les tests conditionnels, la classe utilise le \emph{package} +ifthen+. Les variables |
| 1008 |
% bool\'eennes servent \`a d\'eterminer quelle version d'un cahier on souhaite g\'en\'erer, \`a quelle |
| 1009 |
% \'etape de publication le cahier est rendu de m\^eme qu'\`a configurer des portions de mise en page. |
| 1010 |
% Une fois les variables cr\'e\'ees, des valeurs par d\'efaut leur sont attribu\'ees. |
| 1011 |
% \else |
| 1012 |
% \subsection{Tests and boolean values} |
| 1013 |
% |
| 1014 |
% To do conditional tests, the class uses the +ifthen+ package. The boolean variables |
| 1015 |
% identify which version of the paper to generate, how far in the publication process the paper is and |
| 1016 |
% it configures some parts of the formatting. Once the variables have been created, default values |
| 1017 |
% are set. |
| 1018 |
% \fi |
| 1019 |
% \changes{1.1}{2021-12-03}{Added isSupplement boolean and default value} |
| 1020 |
% |
| 1021 |
% \begin{macrocode} |
| 1022 |
%<*class> |
| 1023 |
\RequirePackage{ifthen} |
| 1024 |
|
| 1025 |
% Booleans % |
| 1026 |
\newboolean{GD@isWebVersion} |
| 1027 |
\newboolean{GD@isPaperVersion} |
| 1028 |
\newboolean{GD@isPlainVersion} |
| 1029 |
\newboolean{GD@needsSmallHeadSep} |
| 1030 |
\newboolean{GD@isFinalImpression} |
| 1031 |
\newboolean{GD@isPostPublication} |
| 1032 |
\newboolean{GD@isSupplement} |
| 1033 |
\newboolean{GD@isRevised} |
| 1034 |
\newboolean{GD@needsminitabs} |
| 1035 |
|
| 1036 |
\setboolean{GD@isWebVersion}{false} |
| 1037 |
\setboolean{GD@isPaperVersion}{true} |
| 1038 |
\setboolean{GD@isPlainVersion}{false} |
| 1039 |
\setboolean{GD@needsSmallHeadSep}{false} |
| 1040 |
\setboolean{GD@isFinalImpression}{false} |
| 1041 |
\setboolean{GD@isPostPublication}{false} |
| 1042 |
\setboolean{GD@isSupplement}{false} |
| 1043 |
\setboolean{GD@isRevised}{false} |
| 1044 |
\setboolean{GD@needsminitabs}{false} |
| 1045 |
% \end{macrocode} |
| 1046 |
% |
| 1047 |
% \ifnum\frenchdoc=1 |
| 1048 |
% \subsection{Options de la classe} |
| 1049 |
% |
| 1050 |
% Les quelques options de la classe sont d\'eclar\'ees ci-dessous. Elles servent essentiellement |
| 1051 |
% \`a changer des valeurs bool\'eennes et \`a passer des options \`a la classe +article+. |
| 1052 |
% \else |
| 1053 |
% \subsection{Class options} |
| 1054 |
% |
| 1055 |
% The few class options are declared here. They essentially change some boolean values |
| 1056 |
% and pass some options to the +article+ class. |
| 1057 |
% \fi |
| 1058 |
% \changes{1.1}{2021-12-03}{Added new gdsupplement option} |
| 1059 |
% |
| 1060 |
% \begin{macrocode} |
| 1061 |
|
| 1062 |
% Class Options % |
| 1063 |
\DeclareOption{gdweb}{% |
| 1064 |
\setboolean{GD@isWebVersion}{true} |
| 1065 |
\setboolean{GD@isPaperVersion}{false} |
| 1066 |
\setboolean{GD@isPlainVersion}{false} |
| 1067 |
\PassOptionsToClass{oneside}{article} |
| 1068 |
} |
| 1069 |
\DeclareOption{gdpaper}{% |
| 1070 |
\setboolean{GD@isWebVersion}{false} |
| 1071 |
\setboolean{GD@isPaperVersion}{true} |
| 1072 |
\setboolean{GD@isPlainVersion}{false} |
| 1073 |
\PassOptionsToClass{twoside}{article} |
| 1074 |
} |
| 1075 |
\DeclareOption{gdplain}{% |
| 1076 |
\setboolean{GD@isWebVersion}{false} |
| 1077 |
\setboolean{GD@isPaperVersion}{false} |
| 1078 |
\setboolean{GD@isPlainVersion}{true} |
| 1079 |
\PassOptionsToClass{oneside}{article} |
| 1080 |
} |
| 1081 |
\DeclareOption{gdsmallhead}{% |
| 1082 |
\setboolean{GD@needsSmallHeadSep}{true} |
| 1083 |
} |
| 1084 |
\DeclareOption{gdfinal}{% |
| 1085 |
\setboolean{GD@isFinalImpression}{true} |
| 1086 |
} |
| 1087 |
\DeclareOption{gdpostpub}{% |
| 1088 |
\setboolean{GD@isPostPublication}{true} |
| 1089 |
} |
| 1090 |
\DeclareOption{gdsupplement}{% |
| 1091 |
\setboolean{GD@isSupplement}{true} |
| 1092 |
} |
| 1093 |
\DeclareOption{gdrevised}{% |
| 1094 |
\setboolean{GD@isRevised}{true} |
| 1095 |
} |
| 1096 |
\DeclareOption{gdminitabs}{% |
| 1097 |
\setboolean{GD@needsminitabs}{true} |
| 1098 |
} |
| 1099 |
% \end{macrocode} |
| 1100 |
% |
| 1101 |
% \ifnum\frenchdoc=1 |
| 1102 |
% \subsection{Chargement de la classe} |
| 1103 |
% |
| 1104 |
% La classe est charg\'ee dans le document avec toutes les options |
| 1105 |
% d\'eclar\'ees par l'utilisateur et celles par d\'efaut. |
| 1106 |
% \else |
| 1107 |
% \subsection{Loading the class} |
| 1108 |
% |
| 1109 |
% The class is loaded in the document with all the user-defined or default values. |
| 1110 |
% \fi |
| 1111 |
% |
| 1112 |
% \begin{macrocode} |
| 1113 |
|
| 1114 |
% Standard Class Loading % |
| 1115 |
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} |
| 1116 |
\ProcessOptions\relax |
| 1117 |
\LoadClass[letterpaper,10pt]{article} |
| 1118 |
% \end{macrocode} |
| 1119 |
% |
| 1120 |
% \ifnum\frenchdoc=1 |
| 1121 |
% \subsection{\emph{Packages} charg\'es par d\'efaut et leurs options} |
| 1122 |
% |
| 1123 |
% Tr\`es peu de \emph{packages} sont charg\'es avec la classe afin de vous permettre |
| 1124 |
% de r\'ediger avec la plus grande flexibilit\'e possible. Ceux qui le sont, cependant, |
| 1125 |
% le sont pour des fins d'harmonisation entre les diff\'erents cahiers de la collection. |
| 1126 |
% \else |
| 1127 |
% \subsection{Defaut packages and their options} |
| 1128 |
% |
| 1129 |
% Very few packages are loaded with the class in order to allow the user to write with |
| 1130 |
% the greatest possible flexibility. The packages that are loaded, however, ensure that |
| 1131 |
% all the papers in the collection have consistent formatting. |
| 1132 |
% \fi |
| 1133 |
% |
| 1134 |
% \begin{macrocode} |
| 1135 |
|
| 1136 |
% Required Packages % |
| 1137 |
\RequirePackage{amssymb} |
| 1138 |
\RequirePackage{amsmath} |
| 1139 |
\RequirePackage{amsthm} |
| 1140 |
\RequirePackage{amsfonts} |
| 1141 |
\RequirePackage{latexsym} |
| 1142 |
\RequirePackage{graphicx} |
| 1143 |
\RequirePackage{mathrsfs} |
| 1144 |
\RequirePackage{geometry} |
| 1145 |
\RequirePackage{fancyhdr} |
| 1146 |
\RequirePackage{booktabs} |
| 1147 |
\RequirePackage{multirow} |
| 1148 |
\RequirePackage{array} |
| 1149 |
\RequirePackage[font={footnotesize,bf,sf}]{caption} |
| 1150 |
\RequirePackage{xcolor} |
| 1151 |
\RequirePackage{enumitem} |
| 1152 |
\ifthenelse{\boolean{GD@needsminitabs}}{% |
| 1153 |
\RequirePackage{float} |
| 1154 |
}{} |
| 1155 |
|
| 1156 |
% Required Packages Setup % |
| 1157 |
\captionsetup[table]{skip=5pt} % caption pkg setup |
| 1158 |
% \end{macrocode} |
| 1159 |
% |
| 1160 |
% \ifnum\frenchdoc=1 |
| 1161 |
% \subsection{Mise en page} |
| 1162 |
% |
| 1163 |
% Nous commen\c{c}ons d'abord par d\'efinir les \emph{lengths} du document. |
| 1164 |
% Celles-ci peuvent changer d'une version \`a l'autre d'un cahier. |
| 1165 |
% \else |
| 1166 |
% \subsection{Formatting} |
| 1167 |
% |
| 1168 |
% We begin by defining the lengths of the document. These can change from |
| 1169 |
% one version of the paper to another. |
| 1170 |
% \fi |
| 1171 |
% \changes{1.1}{2021-12-02}{Added new cover page vspace length} |
| 1172 |
% |
| 1173 |
% \begin{macrocode} |
| 1174 |
|
| 1175 |
% Lengths % |
| 1176 |
\newlength{\GD@authitemsep} |
| 1177 |
\newlength{\GD@authtopsep} |
| 1178 |
\newlength{\GD@affilitemsep} |
| 1179 |
\newlength{\GD@affiltopsep} |
| 1180 |
\newlength{\GD@titleminipage@hspace} |
| 1181 |
\newlength{\GD@coverpage@vspace} |
| 1182 |
\ifthenelse{\boolean{GD@isPlainVersion}}{% |
| 1183 |
\setlength{\GD@authitemsep}{0pt} |
| 1184 |
\setlength{\GD@authtopsep}{12pt} |
| 1185 |
\setlength{\GD@affilitemsep}{0pt} |
| 1186 |
\setlength{\GD@affiltopsep}{9pt} |
| 1187 |
}{% |
| 1188 |
\setlength{\GD@authitemsep}{8pt} |
| 1189 |
\setlength{\GD@authtopsep}{24pt} |
| 1190 |
\setlength{\GD@affilitemsep}{6pt} |
| 1191 |
\setlength{\GD@affiltopsep}{9pt} |
| 1192 |
} |
| 1193 |
\ifthenelse{\boolean{GD@isPaperVersion}}{% |
| 1194 |
\setlength{\GD@titleminipage@hspace}{240pt} |
| 1195 |
}{} |
| 1196 |
\ifthenelse{\boolean{GD@isWebVersion}}{% |
| 1197 |
\setlength{\GD@titleminipage@hspace}{227pt} |
| 1198 |
}{} |
| 1199 |
% \end{macrocode} |
| 1200 |
% |
| 1201 |
% \ifnum\frenchdoc=1 |
| 1202 |
% Nous \'etablissons ensuite la g\'eom\'etrie du document, |
| 1203 |
% qui diff\`ere d'une version \`a l'autre. |
| 1204 |
% \else |
| 1205 |
% We then set up the geometry of the document, which varies from one version to another. |
| 1206 |
% \fi |
| 1207 |
% \changes{1.1}{2022-01-18}{Removed nofoot option from plain geometry}% |
| 1208 |
% \begin{macrocode} |
| 1209 |
|
| 1210 |
% Geometry % |
| 1211 |
\ifthenelse{\boolean{GD@isWebVersion}}{% |
| 1212 |
\geometry{tmargin=1.5cm,% |
| 1213 |
bmargin=2cm,% |
| 1214 |
lmargin=3cm,% |
| 1215 |
rmargin=3cm,% |
| 1216 |
nofoot,% |
| 1217 |
headsep=30pt,% |
| 1218 |
includehead} |
| 1219 |
}{} |
| 1220 |
\ifthenelse{\boolean{GD@isPlainVersion}}{% |
| 1221 |
\geometry{tmargin=1.5cm,% |
| 1222 |
bmargin=2cm,% |
| 1223 |
lmargin=3cm,% |
| 1224 |
rmargin=3cm,% |
| 1225 |
headsep=30pt,% |
| 1226 |
includehead} |
| 1227 |
}{} |
| 1228 |
\ifthenelse{\boolean{GD@isPaperVersion}}{% |
| 1229 |
\geometry{tmargin=1.5cm,% |
| 1230 |
bmargin=2cm,% |
| 1231 |
lmargin=3cm,% |
| 1232 |
rmargin=2cm,% |
| 1233 |
nofoot,% |
| 1234 |
headsep=30pt,% |
| 1235 |
includehead} |
| 1236 |
}{} |
| 1237 |
\ifthenelse{\boolean{GD@needsSmallHeadSep}}{% |
| 1238 |
\headsep=15pt |
| 1239 |
}{} |
| 1240 |
\parindent=15pt |
| 1241 |
\parskip=7pt plus 1pt minus 1pt |
| 1242 |
\g@addto@macro\@floatboxreset\centering |
| 1243 |
\widowpenalty=10000 |
| 1244 |
\clubpenalty=10000 |
| 1245 |
\raggedbottom |
| 1246 |
\allowdisplaybreaks |
| 1247 |
% \end{macrocode} |
| 1248 |
% |
| 1249 |
% \ifnum\frenchdoc=1 |
| 1250 |
% Nous ajoutons une touche d'uniformit\'e en modifiant les ent\^etes de sections, en descendant |
| 1251 |
% la hi\'erarchie jusqu'au +\paragraph+. Entres autres, nous assignons la police +\sffamily+ |
| 1252 |
% aux ent\^etes, police que nous utiliserons \'egalement pour les th\'eor\`emes et +proof+. |
| 1253 |
% \else |
| 1254 |
% We add a touch of consistency by modifying the section headers, going down the hierarchy all |
| 1255 |
% the way down to +\paragraph+. Among other changes, we assign the font +\sffamily+ to the headers, |
| 1256 |
% theorems, and proof. |
| 1257 |
% \fi |
| 1258 |
% |
| 1259 |
% \begin{macrocode} |
| 1260 |
|
| 1261 |
% Section headings % |
| 1262 |
\renewcommand{\section}{\@startsection {section}{1}{\z@}% |
| 1263 |
{-2ex \@plus -1ex \@minus -.2ex}% |
| 1264 |
{1ex \@plus.2ex}% |
| 1265 |
{\normalfont\Large\sffamily\bfseries}} |
| 1266 |
\renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}% |
| 1267 |
{-1.25ex\@plus -1ex \@minus -.2ex}% |
| 1268 |
{.75ex \@plus .2ex}% |
| 1269 |
{\normalfont\large\sffamily\bfseries}} |
| 1270 |
\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}% |
| 1271 |
{\z@}% |
| 1272 |
{-1.25ex\@plus -1ex \@minus -.2ex}% |
| 1273 |
{.75ex \@plus .2ex}% |
| 1274 |
{\normalfont\normalsize\sffamily\bfseries}} |
| 1275 |
\renewcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}% |
| 1276 |
{-1.25ex \@plus 1ex \@minus -.2ex}% |
| 1277 |
{-.5em \@plus -.1em}% |
| 1278 |
{\normalfont\normalsize\sffamily\bfseries}} |
| 1279 |
\setlength{\partopsep}{.5ex \@plus .1ex} %% to reduce spaces |
| 1280 |
\def\@listI{\leftmargin\leftmargini %% above, between and under |
| 1281 |
\parsep .25ex \@plus .1ex %% lists - itemize |
| 1282 |
\topsep .25ex \@plus .1ex %% description - enumerate |
| 1283 |
\itemsep \parsep} |
| 1284 |
\let\@listi\@listI |
| 1285 |
\@listi |
| 1286 |
% \end{macrocode} |
| 1287 |
% |
| 1288 |
% \ifnum\frenchdoc=1 |
| 1289 |
% Nous redimensionnons les immenses tableaux qui dépassent des marges. |
| 1290 |
% \else |
| 1291 |
% We resize oversized tables that extend past the margins. |
| 1292 |
% \fi |
| 1293 |
% |
| 1294 |
% \begin{macrocode} |
| 1295 |
|
| 1296 |
% Resizing of huge tables % |
| 1297 |
\ifthenelse{\boolean{GD@needsminitabs}}{% |
| 1298 |
\floatstyle{plaintop} |
| 1299 |
\restylefloat{table} |
| 1300 |
\let\oldtabular\tabular |
| 1301 |
\renewcommand{\tabular}{\footnotesize\oldtabular} |
| 1302 |
\let\oldtable\table |
| 1303 |
}{} |
| 1304 |
% \end{macrocode} |
| 1305 |
% |
| 1306 |
% \ifnum\frenchdoc=1 |
| 1307 |
% Finalement, nous ajustons la mise en forme des th\'eor\`emes et de |
| 1308 |
% l'environnement +proof+ afin qu'elle soit uniforme avec tout le reste. |
| 1309 |
% \else |
| 1310 |
% Finally, we adjust the formatting of the theorems and of the +proof+ |
| 1311 |
% environment so they are consistent with everything else. |
| 1312 |
% \fi |
| 1313 |
% |
| 1314 |
% \begin{macrocode} |
| 1315 |
|
| 1316 |
% Theorems and proof layout % |
| 1317 |
\newtheoremstyle{gerad}% |
| 1318 |
{3pt}% Space above |
| 1319 |
{3pt}% Space below |
| 1320 |
{}{}% |
| 1321 |
{\sffamily\bfseries}% head font |
| 1322 |
{.}% Punctuation |
| 1323 |
{.5em}% Space after theorem head |
| 1324 |
{} |
| 1325 |
\theoremstyle{gerad} |
| 1326 |
|
| 1327 |
\renewenvironment{proof}[1][\proofname]{\par |
| 1328 |
\pushQED{\qed}% |
| 1329 |
\normalfont \topsep6\p@\@plus6\p@\relax |
| 1330 |
\trivlist |
| 1331 |
\item\relax |
| 1332 |
{\bfseries\sffamily |
| 1333 |
#1\@addpunct{.}}\hspace\labelsep\ignorespaces |
| 1334 |
}{% |
| 1335 |
\popQED\endtrivlist\@endpefalse |
| 1336 |
} |
| 1337 |
% \end{macrocode} |
| 1338 |
% |
| 1339 |
% \ifnum\frenchdoc=1 |
| 1340 |
% \subsection{Commandes privées de la classe} |
| 1341 |
% |
| 1342 |
% Les commandes priv\'ees jouent deux r\^oles distincts : 1) stocker et |
| 1343 |
% r\'eutiliser les m\'etadonn\'ees du document; 2) d\'ecortiquer de |
| 1344 |
% larges portions de codes afin d'en \'eviter la r\'ep\'etition. |
| 1345 |
% \else |
| 1346 |
% \subsection{Private class commands} |
| 1347 |
% |
| 1348 |
% Private commands play two separate roles: 1) storing and reusing the |
| 1349 |
% document’s metadata; 2) isolate large blocks of code to prevent code duplication. |
| 1350 |
% \fi |
| 1351 |
% |
| 1352 |
% \ifnum\frenchdoc=1 |
| 1353 |
% \subsubsection{M\'etadonn\'ees} |
| 1354 |
% \else |
| 1355 |
% \subsubsection{Metadata} |
| 1356 |
% \fi |
| 1357 |
% \label{ann:private-meta} |
| 1358 |
% |
| 1359 |
% \ifnum\frenchdoc=1 |
| 1360 |
% Les commandes ci-dessous stockent les m\'etadonn\'ees inscrites dans |
| 1361 |
% les commandes publiques correspondantes et populent diff\'erentes |
| 1362 |
% parties du cahier, comme les ent\^etes, la page couverture et la page |
| 1363 |
% titre. |
| 1364 |
% \else |
| 1365 |
% The following commands store the metadata in the associated public |
| 1366 |
% commands and populate different parts of the paper such as the headers, |
| 1367 |
% cover page and title page. |
| 1368 |
% \fi |
| 1369 |
% \changes{1.1}{2021-12-03}{Added internal supplement name command} |
| 1370 |
% \changes{1.1}{2021-12-07}{Translated all commands to english} |
| 1371 |
% |
| 1372 |
% \begin{macrocode} |
| 1373 |
|
| 1374 |
% Class Private Commands % |
| 1375 |
% Metadata % |
| 1376 |
\newcommand{\gd@year}{} |
| 1377 |
\newcommand{\gd@month@fr}{} |
| 1378 |
\newcommand{\gd@month@en}{} |
| 1379 |
\newcommand{\gd@number}{} |
| 1380 |
\newcommand{\gd@title}{} |
| 1381 |
\newcommand{\gd@authors@short}{} |
| 1382 |
\newcommand{\gd@authors@copyright}{} |
| 1383 |
\newcommand{\gd@postpubcitation}{} |
| 1384 |
\newcommand{\gd@postpubcitation@url}{} |
| 1385 |
\newcommand{\gd@supplementname}{} |
| 1386 |
\newcommand{\gd@revised@year}{} |
| 1387 |
\newcommand{\gd@revised@month@fr}{} |
| 1388 |
\newcommand{\gd@revised@month@en}{} |
| 1389 |
% \end{macrocode} |
| 1390 |
% |
| 1391 |
% \ifnum\frenchdoc=1 |
| 1392 |
% \subsubsection{Page couverture et page titre} |
| 1393 |
% |
| 1394 |
% La page couverture et la page titre changent en fonction non seulement |
| 1395 |
% de la version du cahier qui est g\'en\'er\'ee, mais aussi en fonction |
| 1396 |
% de l'\'etape de publication. Plut\^ot que de r\'ep\'eter le m\^eme code |
| 1397 |
% plus d'une fois, les pages couverture et titre ont \'et\'e d\'cortiqu\'ees |
| 1398 |
% en sections qui sont appel\'ees en fonction des crit\`eres mentionn\'es |
| 1399 |
% ci-dessus. |
| 1400 |
% |
| 1401 |
% La page couverture s'affiche dans toutes les versions du cahier, \`a |
| 1402 |
% l'exception de +gdplain+. Les commandes suivantes servent \`a son affichage. |
| 1403 |
% La portion inf\'erieure de la page est diff\'erente si l'option |
| 1404 |
% +gdpostpub+ est utilis\'ee. |
| 1405 |
% \else |
| 1406 |
% \subsubsection{Cover and title pages} |
| 1407 |
% |
| 1408 |
% The cover page and the title page change according to the version of the |
| 1409 |
% paper being generated and its publication stage. Rather than duplicating |
| 1410 |
% code, the cover and title pages have been separated into sections that are |
| 1411 |
% called up with the criteria mentioned above. |
| 1412 |
% |
| 1413 |
% The cover page displays in every version of the paper except +gdplain+. |
| 1414 |
% The following commands define its appearance. The bottom part of the page |
| 1415 |
% is different if the +gdpostpub+ option is used. |
| 1416 |
% \fi |
| 1417 |
% \changes{1.1}{2021-12-02}{Added new vspace length for paper version only} |
| 1418 |
% \changes{1.1}{2021-12-02}{Added vfill for web version only} |
| 1419 |
% \changes{1.1}{2012-12-03}{Added supplement name to web version cover page} |
| 1420 |
% \changes{1.1}{2021-12-03}{Added supplement name in paper cover page minipage} |
| 1421 |
% \changes{1.1}{2021-12-13}{Fixed GDcover@bottom@postpub} |
| 1422 |
% |
| 1423 |
% \begin{macrocode} |
| 1424 |
|
| 1425 |
% Cover page |
| 1426 |
\newcommand{\GD@cover}{% |
| 1427 |
\ifthenelse{\boolean{GD@isFinalImpression}}{}{% |
| 1428 |
\overfullrule=5pt |
| 1429 |
} |
| 1430 |
|
| 1431 |
\pagestyle{empty} |
| 1432 |
\begin{titlepage} |
| 1433 |
\sffamily |
| 1434 |
\ifthenelse{\boolean{GD@needsSmallHeadSep}}{% |
| 1435 |
\vspace*{35pt} |
| 1436 |
}{} |
| 1437 |
|
| 1438 |
{\noindent{\large\bfseries Les Cahiers du GERAD}\hfill ISSN:\quad |
| 1439 |
0711--2440} |
| 1440 |
\ifthenelse{\boolean{GD@isWebVersion}}{% |
| 1441 |
|
| 1442 |
\vspace*{54pt} |
| 1443 |
{\noindent\LARGE\bfseries \gd@title\par} %Title |
| 1444 |
\ifthenelse{\boolean{GD@isSupplement}}% |
| 1445 |
{{\noindent\LARGE\gd@supplementname\par}}{} |
| 1446 |
\vspace*{18pt} |
| 1447 |
{\noindent\Large\gd@authors@short\par} |
| 1448 |
|
| 1449 |
\vfill |
| 1450 |
}{} |
| 1451 |
|
| 1452 |
\ifthenelse{\boolean{GD@isPaperVersion}}{% |
| 1453 |
\vspace*{\GD@coverpage@vspace} |
| 1454 |
}{} |
| 1455 |
\hspace*{\GD@titleminipage@hspace} |
| 1456 |
\begin{minipage}[c][5.4cm][c]{7cm} |
| 1457 |
{\ifthenelse{\boolean{GD@isWebVersion}}% |
| 1458 |
{\GDcover@minipagetable@web}% |
| 1459 |
{\GDcover@minipagetable@paper}% |
| 1460 |
} |
| 1461 |
\end{minipage} |
| 1462 |
|
| 1463 |
\vfill |
| 1464 |
|
| 1465 |
\ifthenelse{\boolean{GD@isPostPublication}}{% |
| 1466 |
\GDcover@bottom@postpub |
| 1467 |
}{% |
| 1468 |
\GDcover@bottom@regular |
| 1469 |
} |
| 1470 |
\end{titlepage} |
| 1471 |
} |
| 1472 |
|
| 1473 |
% Cover page minipage table (web version) |
| 1474 |
\newcommand{\GDcover@minipagetable@web}{% |
| 1475 |
\begin{tabular}{p{.5cm}|p{5.5cm}} |
| 1476 |
& \normalsize G--\gd@year--\gd@number |
| 1477 |
\ifthenelse{\boolean{GD@needsminitabs}}% |
| 1478 |
{\\*[10pt]}% |
| 1479 |
{\\*[8pt]} |
| 1480 |
& \normalsize\gd@month@en\ \gd@year |
| 1481 |
\ifthenelse{\boolean{GD@isRevised}}{% |
| 1482 |
\\ |
| 1483 |
&\normalsize Revised: \gd@revised@month@en\ \gd@revised@year |
| 1484 |
}{} |
| 1485 |
\end{tabular} |
| 1486 |
} |
| 1487 |
|
| 1488 |
% Cover page minipage table (paper version) |
| 1489 |
\newcommand{\GDcover@minipagetable@paper}{% |
| 1490 |
\begin{tabular}{p{.5cm}|p{5.5cm}} |
| 1491 |
\multicolumn{2}{p{6.5cm}}{\normalsize\bfseries \gd@title |
| 1492 |
\ifthenelse{\boolean{GD@needsminitabs}}% |
| 1493 |
{\vspace*{12.5pt}}% |
| 1494 |
{\vspace*{10pt}}}\\ |
| 1495 |
\ifthenelse{\boolean{GD@isSupplement}}% |
| 1496 |
{& \gd@supplementname\\*[10pt]}{} |
| 1497 |
& \normalsize\gd@authors@short \\ %Initials. Name |
| 1498 |
& \ifthenelse{\boolean{GD@needsminitabs}}% |
| 1499 |
{\\*[15pt]}% |
| 1500 |
{\\*[12pt]} |
| 1501 |
& \normalsize G--\gd@year--\gd@number |
| 1502 |
\ifthenelse{\boolean{GD@needsminitabs}}% |
| 1503 |
{\\*[10pt]}% |
| 1504 |
{\\*[8pt]} |
| 1505 |
& \normalsize\gd@month@en\ \gd@year |
| 1506 |
\ifthenelse{\boolean{GD@isRevised}}{% |
| 1507 |
\\ |
| 1508 |
&\normalsize Revised: \gd@revised@month@en\ \gd@revised@year |
| 1509 |
}{} |
| 1510 |
\end{tabular} |
| 1511 |
} |
| 1512 |
|
| 1513 |
% Regular cover page bottom |
| 1514 |
\newcommand{\GDcover@bottom@regular}{% |
| 1515 |
\hrule |
| 1516 |
\smallskip |
| 1517 |
|
| 1518 |
\noindent\begin{minipage}[t][][l]{7.5cm} |
| 1519 |
\scriptsize |
| 1520 |
La collection \textit{Les Cahiers du GERAD} est constitu\'{e}e des |
| 1521 |
travaux de recherche men\'{e}s par nos membres. La plupart de ces |
| 1522 |
documents de travail a \'{e}t\'{e} soumis \`{a} des revues avec |
| 1523 |
comit\'{e} de r\'{e}vision. Lorsqu'un document est accept\'{e} et |
| 1524 |
publi\'{e}, le pdf original est retir\'{e} si c'est n\'{e}cessaire et |
| 1525 |
un lien vers l'article publi\'{e} est ajout\'{e}.\\ |
| 1526 |
|
| 1527 |
\medskip |
| 1528 |
\scriptsize |
| 1529 |
\textbf{Citation sugg\'{e}r\'{e}e :} \gd@authors@short~(\gd@month@fr\ |
| 1530 |
\gd@year). \gd@title, |
| 1531 |
\ifthenelse{\boolean{GD@isSupplement}}{\gd@supplementname .}{} |
| 1532 |
Rapport technique, Les Cahiers du GERAD G-- |
| 1533 |
\gd@year--\gd@number, GERAD, HEC Montr\'{e}al, Canada. |
| 1534 |
\ifthenelse{\boolean{GD@isRevised}}% |
| 1535 |
{ Version r\'evis\'ee: \gd@revised@month@fr\ \gd@revised@year}{}\\ |
| 1536 |
|
| 1537 |
\textbf{Avant de citer ce rapport technique,} veuillez visiter notre |
| 1538 |
site Web (\url{https://www.gerad.ca/fr/papers/G-\gd@year-\gd@number}) |
| 1539 |
afin de mettre \`a jour vos donn\'ees de r\'ef\'erence, s'il a \'et\'e |
| 1540 |
publi\'e dans une revue scientifique.\par |
| 1541 |
\end{minipage} |
| 1542 |
\hfill |
| 1543 |
\begin{minipage}[t][][l]{7.5cm} |
| 1544 |
\scriptsize |
| 1545 |
The series \textit{Les Cahiers du GERAD} consists of working papers |
| 1546 |
carried out by our members. Most of these pre-prints have been submitted |
| 1547 |
to peer-reviewed journals. When accepted and published, if necessary, |
| 1548 |
the original pdf is removed and a link to the published article is |
| 1549 |
added.\\ \\ |
| 1550 |
|
| 1551 |
\scriptsize |
| 1552 |
\textbf{Suggested citation:} \gd@authors@short~(\gd@month@en\ \gd@year). |
| 1553 |
\gd@title, |
| 1554 |
\ifthenelse{\boolean{GD@isSupplement}}{\gd@supplementname .}{} |
| 1555 |
Technical report, Les Cahiers du GERAD G--\gd@year--\gd@number, |
| 1556 |
GERAD, HEC Montr\'{e}al, Canada. |
| 1557 |
\ifthenelse{\boolean{GD@isRevised}}% |
| 1558 |
{ Revised version: \gd@revised@month@en\ \gd@revised@year}{}\\ |
| 1559 |
|
| 1560 |
\textbf{Before citing this technical report,} please visit our website |
| 1561 |
(\url{https://www.gerad.ca/en/papers/G-\gd@year-\gd@number}) to update |
| 1562 |
your reference data, if it has been published in a scientific journal. |
| 1563 |
\par |
| 1564 |
\end{minipage} |
| 1565 |
|
| 1566 |
\bigskip |
| 1567 |
\hrule |
| 1568 |
\smallskip |
| 1569 |
|
| 1570 |
\noindent\begin{minipage}[t][2.1cm][l]{7.5cm} |
| 1571 |
\scriptsize |
| 1572 |
La publication de ces rapports de recherche est rendue possible gr\^ace |
| 1573 |
au soutien de HEC Montr\'eal, Polytechnique Montr\'eal, Universit\'e |
| 1574 |
McGill, Universit\'e du Qu\'ebec \`a Montr\'eal, ainsi que du Fonds de |
| 1575 |
recherche du Qu\'ebec -- Nature et technologies. |
| 1576 |
|
| 1577 |
\medskip |
| 1578 |
D\'ep\^ot l\'egal -- Biblioth\`eque et Archives nationales du Qu\'ebec, |
| 1579 |
\gd@year\\ |
| 1580 |
\phantom{Depot legal} -- Biblioth\`eque et Archives Canada, \gd@year |
| 1581 |
\par |
| 1582 |
\end{minipage} |
| 1583 |
\hfill |
| 1584 |
\begin{minipage}[t][2.1cm][l]{7.5cm} |
| 1585 |
\scriptsize |
| 1586 |
The publication of these research reports is made possible |
| 1587 |
thanks to the support of HEC Montr\'eal, Polytechnique Montr\'eal, |
| 1588 |
McGill University, Universit\'e du Qu\'ebec \`a Montr\'eal, as well as |
| 1589 |
the Fonds de recherche du Qu\'ebec -- Nature et technologies. |
| 1590 |
|
| 1591 |
\medskip |
| 1592 |
Legal deposit -- Biblioth\`eque et Archives nationales du Qu\'ebec, |
| 1593 |
\gd@year\\ |
| 1594 |
\phantom{Legal deposit} -- Library and Archives Canada, \gd@year\par |
| 1595 |
\end{minipage} |
| 1596 |
|
| 1597 |
\hrule |
| 1598 |
\smallskip |
| 1599 |
|
| 1600 |
\noindent |
| 1601 |
\begin{minipage}[t][1cm][l]{7.5cm} |
| 1602 |
\begin{scriptsize}\raggedleft |
| 1603 |
\textbf{GERAD} HEC Montr\'eal |
| 1604 |
|
| 1605 |
3000, chemin de la C\^ote-Sainte-Catherine |
| 1606 |
|
| 1607 |
Montr\'eal (Qu\'ebec) Canada H3T 2A7\par |
| 1608 |
\end{scriptsize} |
| 1609 |
\end{minipage} |
| 1610 |
\hspace*{.35cm}\vrule\hfill |
| 1611 |
\begin{minipage}[t][1cm][l]{7.5cm} |
| 1612 |
\begin{scriptsize} |
| 1613 |
\textbf{T\'el.\,: 514 340-6053} |
| 1614 |
|
| 1615 |
T\'el\'ec.\,: 514 340-5665 |
| 1616 |
|
| 1617 |
[email protected] |
| 1618 |
|
| 1619 |
www.gerad.ca\par |
| 1620 |
\end{scriptsize} |
| 1621 |
\end{minipage} |
| 1622 |
|
| 1623 |
\bigskip |
| 1624 |
\hrule |
| 1625 |
} |
| 1626 |
|
| 1627 |
% Post-publication cover page bottom |
| 1628 |
\newcommand{\GDcover@bottom@postpub}{% |
| 1629 |
\hrule |
| 1630 |
\smallskip |
| 1631 |
|
| 1632 |
\noindent |
| 1633 |
\begin{minipage}[t][][l]{7.5cm} |
| 1634 |
\scriptsize |
| 1635 |
La collection \textit{Les Cahiers du GERAD} est constitu\'{e}e des |
| 1636 |
travaux de recherche men\'{e}s par nos membres. La plupart de ces |
| 1637 |
documents de travail a \'{e}t\'{e} soumis \`{a} des revues avec comit\'e |
| 1638 |
de r\'{e}vision. Lorsqu'un document est accept\'{e} et publi\'{e}, le |
| 1639 |
pdf original est retir\'{e} si c'est n\'{e}cessaire et un lien vers |
| 1640 |
l'article publi\'{e} est ajout\'{e}.\par |
| 1641 |
\end{minipage} |
| 1642 |
\hfill |
| 1643 |
\begin{minipage}[t][][l]{7.5cm} |
| 1644 |
\scriptsize |
| 1645 |
The series \textit{Les Cahiers du GERAD} consists of working papers |
| 1646 |
carried out by our members. Most of these pre-prints have been submitted |
| 1647 |
to peer-reviewed journals. When accepted and published, if necessary, |
| 1648 |
the original pdf is removed and a link to the published article is |
| 1649 |
added.\par |
| 1650 |
\end{minipage} |
| 1651 |
|
| 1652 |
\noindent |
| 1653 |
\begin{minipage}[t][][l]{\textwidth} |
| 1654 |
\footnotesize |
| 1655 |
\textbf{CITATION ORIGINALE / ORIGINAL CITATION} |
| 1656 |
\smallskip |
| 1657 |
|
| 1658 |
\gd@postpubcitation\ \url{\gd@postpubcitation@url}. |
| 1659 |
\end{minipage} |
| 1660 |
|
| 1661 |
\bigskip |
| 1662 |
|
| 1663 |
\hrule |
| 1664 |
\smallskip |
| 1665 |
|
| 1666 |
\noindent\begin{minipage}[t][2.1cm][l]{7.5cm} |
| 1667 |
\scriptsize |
| 1668 |
La publication de ces rapports de recherche est rendue possible gr\^ace |
| 1669 |
au soutien de HEC Montr\'eal, Polytechnique Montr\'eal, Universit\'e |
| 1670 |
McGill, Universit\'e du Qu\'ebec \`a Montr\'eal, ainsi que du Fonds de |
| 1671 |
recherche du Qu\'ebec -- Nature et technologies. |
| 1672 |
|
| 1673 |
\medskip |
| 1674 |
D\'ep\^ot l\'egal -- Biblioth\`eque et Archives nationales du Qu\'ebec, |
| 1675 |
\gd@year\\ |
| 1676 |
\phantom{Depot legal} -- Biblioth\`eque et Archives Canada, \gd@year |
| 1677 |
\par |
| 1678 |
\end{minipage} |
| 1679 |
\hfill |
| 1680 |
\begin{minipage}[t][2.1cm][l]{7.5cm} |
| 1681 |
\scriptsize |
| 1682 |
The publication of these research reports is made possible |
| 1683 |
thanks to the support of HEC Montr\'eal, Polytechnique Montr\'eal, |
| 1684 |
McGill University, Universit\'e du Qu\'ebec \`a Montr\'eal, as well as |
| 1685 |
the Fonds de recherche du Qu\'ebec -- Nature et technologies. |
| 1686 |
|
| 1687 |
\medskip |
| 1688 |
Legal deposit -- Biblioth\`eque et Archives nationales du Qu\'ebec, |
| 1689 |
\gd@year\\ |
| 1690 |
\phantom{Legal deposit} -- Library and Archives Canada, \gd@year\par |
| 1691 |
\end{minipage} |
| 1692 |
|
| 1693 |
\hrule |
| 1694 |
\smallskip |
| 1695 |
|
| 1696 |
\noindent |
| 1697 |
\begin{minipage}[t][1cm][l]{7.5cm} |
| 1698 |
\begin{scriptsize}\raggedleft |
| 1699 |
\textbf{GERAD} HEC Montr\'eal |
| 1700 |
|
| 1701 |
3000, chemin de la C\^ote-Sainte-Catherine |
| 1702 |
|
| 1703 |
Montr\'eal (Qu\'ebec) Canada H3T 2A7\par |
| 1704 |
\end{scriptsize} |
| 1705 |
\end{minipage} |
| 1706 |
\hspace*{.35cm}\vrule\hfill |
| 1707 |
\begin{minipage}[t][1cm][l]{7.5cm} |
| 1708 |
\begin{scriptsize} |
| 1709 |
\textbf{T\'el.\,: 514 340-6053} |
| 1710 |
|
| 1711 |
T\'el\'ec.\,: 514 340-5665 |
| 1712 |
|
| 1713 |
[email protected] |
| 1714 |
|
| 1715 |
www.gerad.ca\par |
| 1716 |
\end{scriptsize} |
| 1717 |
\end{minipage} |
| 1718 |
|
| 1719 |
\bigskip |
| 1720 |
\hrule |
| 1721 |
} |
| 1722 |
% \end{macrocode} |
| 1723 |
% |
| 1724 |
% \ifnum\frenchdoc=1 |
| 1725 |
% La page titre s'affiche dans toutes les versions du cahier, mais |
| 1726 |
% diffère en fonction des versions. Étant donné qu'elle est contenue |
| 1727 |
% dans l'environnement +GDtitlepage+, les commandes internes pour son |
| 1728 |
% affichage sont divisées en deux parties +@begin+ et +@end+. |
| 1729 |
% \else |
| 1730 |
% The title page appears in all versions of the paper, but it varies |
| 1731 |
% according to the version. Given that it is contained in the +GDtitlepage+ |
| 1732 |
% environment, the internal commands for the title page’s display are |
| 1733 |
% divided into two parts: +@begin+ and +@end+. |
| 1734 |
% \fi |
| 1735 |
% \changes{1.1}{2021-12-03}{Added supplement name to title page} |
| 1736 |
% \changes{1.1}{2021-12-06}{Added the Revised prefix} |
| 1737 |
% \changes{1.1}{2021-12-06}{Changed plain title page's month for english} |
| 1738 |
% |
| 1739 |
% \begin{macrocode} |
| 1740 |
|
| 1741 |
% Regular title page |
| 1742 |
\newcommand{\GD@titlepage@begin}{% |
| 1743 |
\ifthenelse{\boolean{GD@isWebVersion}}{% |
| 1744 |
\newpage\clearpage |
| 1745 |
}{% |
| 1746 |
\ifthenelse{\boolean{GD@isPaperVersion}}{% |
| 1747 |
\newpage\cleardoublepage |
| 1748 |
}{} |
| 1749 |
} |
| 1750 |
\parindent=0pt |
| 1751 |
\sffamily |
| 1752 |
{\LARGE\bfseries \gd@title\par} %Title |
| 1753 |
\ifthenelse{\boolean{GD@isSupplement}}% |
| 1754 |
{{\LARGE\gd@supplementname\par} |
| 1755 |
}{} |
| 1756 |
\begin{minipage}[t][10cm][l]{7.5cm} |
| 1757 |
\vspace*{55pt} |
| 1758 |
} |
| 1759 |
|
| 1760 |
\newcommand{\GD@titlepage@end}{% |
| 1761 |
\vfill |
| 1762 |
\end{minipage} |
| 1763 |
\vfill |
| 1764 |
{\bfseries \gd@month@en\ \gd@year}\\* |
| 1765 |
\ifthenelse{\boolean{GD@isRevised}}% |
| 1766 |
{Revised: \gd@revised@month@en\ \gd@revised@year \\}% |
| 1767 |
{} |
| 1768 |
{\bfseries Les Cahiers du GERAD}\\ |
| 1769 |
{\bfseries G--\gd@year--\gd@number}\\ |
| 1770 |
{\footnotesize Copyright \copyright\ \gd@year\ GERAD, |
| 1771 |
\gd@authors@copyright} |
| 1772 |
\vspace*{0.05cm} |
| 1773 |
|
| 1774 |
\hrule |
| 1775 |
\smallskip |
| 1776 |
|
| 1777 |
\noindent |
| 1778 |
\begin{minipage}[t][][l]{7.5cm} |
| 1779 |
\begin{scriptsize} |
| 1780 |
Les textes publi\'es dans la s\'erie des rapports de recherche |
| 1781 |
\textit{Les Cahiers du GERAD} n'engagent que la responsabilit\'e de |
| 1782 |
leurs auteurs. Les auteurs conservent leur droit d'auteur et leurs |
| 1783 |
droits moraux sur leurs publications et les utilisateurs s'engagent \`a |
| 1784 |
reconna\^{\i}tre et respecter les exigences l\'{e}gales associ\'{e}es |
| 1785 |
\`{a} ces droits. Ainsi, les utilisateurs: |
| 1786 |
\begin {itemize} |
| 1787 |
\item Peuvent t\'{e}l\'{e}charger et imprimer une copie de toute |
| 1788 |
publication du portail public aux fins d'\'{e}tude ou de recherche |
| 1789 |
priv\'{e}e; |
| 1790 |
\item Ne peuvent pas distribuer le mat\'{e}riel ou l'utiliser pour une |
| 1791 |
activit\'{e} \`{a} but lucratif ou pour un gain commercial; |
| 1792 |
\item Peuvent distribuer gratuitement l'URL identifiant la publication. |
| 1793 |
\end{itemize} |
| 1794 |
Si vous pensez que ce document enfreint le droit d'auteur, contactez- |
| 1795 |
nous en fournissant des d\'etails. Nous supprimerons imm\'{e}diatement |
| 1796 |
l'acc\`es au travail et enqu\^{e}terons sur votre demande.\par |
| 1797 |
\end{scriptsize} |
| 1798 |
\end{minipage} |
| 1799 |
\hfill |
| 1800 |
\begin{minipage}[t][][l]{7.5cm} |
| 1801 |
\begin{scriptsize} |
| 1802 |
The authors are exclusively responsible for the content of their |
| 1803 |
research papers published in the series \textit{Les Cahiers du GERAD}. |
| 1804 |
Copyright and moral rights for the publications are retained by the |
| 1805 |
authors and the users must commit themselves to recognize and abide the |
| 1806 |
legal requirements associated with these rights. Thus, users: |
| 1807 |
\begin{itemize} |
| 1808 |
\item May download and print one copy of any publication from the public |
| 1809 |
portal for the purpose of private study or research; |
| 1810 |
\item May not further distribute the material or use it for any |
| 1811 |
profit-making activity or commercial gain; |
| 1812 |
\item May freely distribute the URL identifying the publication. |
| 1813 |
\end{itemize} |
| 1814 |
If you believe that this document breaches copyright please contact us |
| 1815 |
providing details, and we will remove access to the work immediately and |
| 1816 |
investigate your claim.\par |
| 1817 |
\end{scriptsize} |
| 1818 |
\end{minipage} |
| 1819 |
|
| 1820 |
\thispagestyle{empty} |
| 1821 |
\parindent=15pt |
| 1822 |
\newpage |
| 1823 |
} |
| 1824 |
|
| 1825 |
% Plain title page |
| 1826 |
\newcommand{\GD@plain@titlepage@begin}{% |
| 1827 |
\thispagestyle{empty} |
| 1828 |
\sffamily |
| 1829 |
{\sffamily\LARGE\bfseries\noindent\gd@title\par} |
| 1830 |
\ifthenelse{\boolean{GD@isSupplement}}% |
| 1831 |
{{\noindent\LARGE\gd@supplementname\par}}{} |
| 1832 |
} |
| 1833 |
|
| 1834 |
\newcommand{\GD@plain@pagetitle@end}{% |
| 1835 |
\vspace*{12pt} |
| 1836 |
{\noindent\gd@month@en\ \gd@year} |
| 1837 |
\ifthenelse{\boolean{GD@isRevised}}% |
| 1838 |
{\\ {\noindent Revised: \gd@revised@month@en\ \gd@revised@year}}{} |
| 1839 |
\vspace*{30pt} |
| 1840 |
} |
| 1841 |
% \end{macrocode} |
| 1842 |
% |
| 1843 |
% \ifnum\frenchdoc=1 |
| 1844 |
% \subsection{Commandes et environnements publics de la classe} |
| 1845 |
% |
| 1846 |
% Les commandes publiques sont celles directement accessibles à l'utilisateur. |
| 1847 |
% Cependant, elles sont toutes li\'ees \`a une partie du cahier et ne peuvent |
| 1848 |
% donc pas \^etre r\'eutilis\'ees ou d\'eplac\'ees. |
| 1849 |
% \else |
| 1850 |
% \subsection{Public class commands and environments} |
| 1851 |
% |
| 1852 |
% The public commands are those that can be directly accessed by the user. |
| 1853 |
% They are, however, each linked to a specific part of the paper, and thus |
| 1854 |
% cannot be reused or moved. |
| 1855 |
% \fi |
| 1856 |
% |
| 1857 |
% |
| 1858 |
% \ifnum\frenchdoc=1 |
| 1859 |
% \subsubsection{Mise en forme du document} |
| 1860 |
% La quantit\'e de versions possibles d'un gabarit \gdwp\ impose que certaines |
| 1861 |
% commandes internes de mise en forme puissent \^etre modifi\'ees simplement par |
| 1862 |
% le biais de commandes publiques, disponibles dans le pr\'eambule. Cela facilite |
| 1863 |
% le travail des responsables de l'\'edition et emp\^eche la multiplication de |
| 1864 |
% versions maison de la classe\footnote{Toute r\'ef\'erence \`a une personne r\'eelle est % |
| 1865 |
% totalement fortuite.}. |
| 1866 |
% \else |
| 1867 |
% \subsubsection{Document layout} |
| 1868 |
% The number of a \gdwp\ template's possible versions imply that some internal document |
| 1869 |
% layout commands must be easily changed via public commands, available in the template's |
| 1870 |
% preamble. This allows more efficient work on the publisher's side and prevents the |
| 1871 |
% multiplication of homemade versions of the class\footnote{Any reference to a real-life person % |
| 1872 |
% is pure coincidence.}. |
| 1873 |
% \fi |
| 1874 |
% \changes{1.1}{2021-12-02}{Added new GDcoverpagewhitespace command to change cover page vspace} |
| 1875 |
% |
| 1876 |
% \begin{macrocode} |
| 1877 |
|
| 1878 |
% Layout public commands |
| 1879 |
\newcommand{\GDcoverpagewhitespace}[1]{% |
| 1880 |
\setlength{\GD@coverpage@vspace}{#1} |
| 1881 |
} |
| 1882 |
% \end{macrocode} |
| 1883 |
% \ifnum\frenchdoc=1 |
| 1884 |
% \subsubsection{M\'etadonn\'ees} |
| 1885 |
% Les commandes suivantes sont celles o\`u l'utilisateur saisit les donn\'ees |
| 1886 |
% bibliographiques de son cahier. Elles modifient la valeur des commandes |
| 1887 |
% priv\'ees correspondantes (voir la \autoref{ann:private-meta}). |
| 1888 |
% \else |
| 1889 |
% \subsubsection{Metadata} |
| 1890 |
% The following commands are those users use to enter their paper’s |
| 1891 |
% bibliographical data. They modify the values of the corresponding private |
| 1892 |
% commands (see \autoref{ann:private-meta}). |
| 1893 |
% \fi |
| 1894 |
% \changes{1.1}{2021-12-03}{Added public GDsupplementname command} |
| 1895 |
% |
| 1896 |
% \begin{macrocode} |
| 1897 |
|
| 1898 |
% Metadata public commands |
| 1899 |
\newcommand{\GDyear}[1]{% |
| 1900 |
\renewcommand{\gd@year}{#1} |
| 1901 |
} |
| 1902 |
\newcommand{\GDmonth}[2]{% |
| 1903 |
\renewcommand{\gd@month@fr}{#1} |
| 1904 |
\renewcommand{\gd@month@en}{#2} |
| 1905 |
} |
| 1906 |
\newcommand{\GDnumber}[1]{% |
| 1907 |
\renewcommand{\gd@number}{#1} |
| 1908 |
} |
| 1909 |
\newcommand{\GDtitle}[1]{% |
| 1910 |
\renewcommand{\gd@title}{#1} |
| 1911 |
} |
| 1912 |
\newcommand{\GDauthorsShort}[1]{% |
| 1913 |
\renewcommand{\gd@authors@short}{#1} |
| 1914 |
} |
| 1915 |
\newcommand{\GDauthorsCopyright}[1]{% |
| 1916 |
\renewcommand{\gd@authors@copyright}{#1} |
| 1917 |
} |
| 1918 |
\newcommand{\GDpostpubcitation}[2]{% |
| 1919 |
\renewcommand{\gd@postpubcitation}{#1} |
| 1920 |
\renewcommand{\gd@postpubcitation@url}{#2} |
| 1921 |
} |
| 1922 |
\newcommand{\GDsupplementname}[1]{% |
| 1923 |
\renewcommand{\gd@supplementname}{#1} |
| 1924 |
} |
| 1925 |
\newcommand{\GDrevised}[3]{% |
| 1926 |
\renewcommand{\gd@revised@month@fr}{#1} |
| 1927 |
\renewcommand{\gd@revised@month@en}{#2} |
| 1928 |
\renewcommand{\gd@revised@year}{#3} |
| 1929 |
} |
| 1930 |
% \end{macrocode} |
| 1931 |
% |
| 1932 |
% \ifnum\frenchdoc=1 |
| 1933 |
% \subsubsection{Subdivisions du document} |
| 1934 |
% |
| 1935 |
% Chaque partie d'un cahier de recherche a ses particularit\'es, tant au niveau |
| 1936 |
% de la géométrie que de la mise en page (ent\^etes, pieds de page, etc.) Plut\^ot |
| 1937 |
% que d'engorger le gabarit avec de multiples lignes de code, quelques commandes |
| 1938 |
% et environnements ont \'et\'e cr\'e\'es afin de les regrouper. |
| 1939 |
% \else |
| 1940 |
% \subsubsection{Document subdivisions} |
| 1941 |
% |
| 1942 |
% Each part of the paper has specific characteristics in terms of geometry and |
| 1943 |
% formatting (headers, footers, etc.). Rather than bloating the template with |
| 1944 |
% multiple lines of code, a few commands and environments were created to group them |
| 1945 |
% together. |
| 1946 |
% \fi |
| 1947 |
% \changes{1.1}{2021-12-03}{Added supplement name in header} |
| 1948 |
% \changes{1.1}{2021-12-03}{Replaced all fancyhdr v3 commands by v4 commands} |
| 1949 |
% |
| 1950 |
% \begin{macrocode} |
| 1951 |
|
| 1952 |
% Cover page |
| 1953 |
\newcommand{\GDcoverpage}{% |
| 1954 |
\ifthenelse{\boolean{GD@isPlainVersion}}{}{\GD@cover} |
| 1955 |
} |
| 1956 |
|
| 1957 |
% Title page |
| 1958 |
\newenvironment{GDtitlepage}{ |
| 1959 |
\ifthenelse{\boolean{GD@isPlainVersion}}% |
| 1960 |
{\GD@plain@titlepage@begin}% |
| 1961 |
{\GD@titlepage@begin} |
| 1962 |
}{ |
| 1963 |
\ifthenelse{\boolean{GD@isPlainVersion}}% |
| 1964 |
{\GD@plain@pagetitle@end}% |
| 1965 |
{\GD@titlepage@end} |
| 1966 |
} |
| 1967 |
|
| 1968 |
% Title page lists and list items |
| 1969 |
\newlist{GDauthlist}{itemize}{1} |
| 1970 |
\setlist[GDauthlist]{label={},% |
| 1971 |
left=0pt .. 0pt,% |
| 1972 |
itemsep=\GD@authitemsep,% |
| 1973 |
topsep=\GD@authtopsep} |
| 1974 |
\newlist{GDaffillist}{enumerate}{1} |
| 1975 |
\setlist[GDaffillist]{label=\textsuperscript{\emph{\alph*}},% |
| 1976 |
ref=\textsuperscript{\emph{\alph*}},% |
| 1977 |
wide,% |
| 1978 |
left=0pt .. 1em,% |
| 1979 |
itemsep=\GD@affilitemsep,% |
| 1980 |
topsep=\GD@affiltopsep} |
| 1981 |
\newlist{GDemaillist}{itemize}{1} |
| 1982 |
\setlist[GDemaillist]{label={},% |
| 1983 |
left=0pt .. 0pt,% |
| 1984 |
itemsep=0pt,% |
| 1985 |
parsep=0pt} |
| 1986 |
\newcommand{\GDrefsep}{\textsuperscript{,\,}} |
| 1987 |
\newcommand{\GDauthitem}[1]{% |
| 1988 |
\ifthenelse{\boolean{GD@isPlainVersion}}{% |
| 1989 |
\item {\sffamily\large\bfseries #1} |
| 1990 |
}{% |
| 1991 |
\item {\Large\bfseries #1} |
| 1992 |
} |
| 1993 |
} |
| 1994 |
\newcommand{\GDaffilitem}[2]{\item \label{#1}{\itshape #2}} |
| 1995 |
\newcommand{\GDemailitem}[1]{\item {\small\ttfamily #1}} |
| 1996 |
|
| 1997 |
% Abstracts section |
| 1998 |
\newcommand{\GDabstracts}{% |
| 1999 |
\ifthenelse{\boolean{GD@isPlainVersion}}{}{% |
| 2000 |
\setcounter{page}{2} |
| 2001 |
\renewcommand{\thepage}{\roman{page}} |
| 2002 |
\pagestyle{fancy} |
| 2003 |
\fancyhead[LO]{% |
| 2004 |
\textcolor{gray}{\sffamily{\,} Les Cahiers du GERAD}\hfill |
| 2005 |
\textcolor{gray}{\sffamily G--\gd@year--\gd@number}% |
| 2006 |
\ifthenelse{\boolean{GD@isSupplement}}% |
| 2007 |
{\textcolor{gray}{\sffamily\ -- \itshape \gd@supplementname}}% |
| 2008 |
{} % |
| 2009 |
\ifthenelse{\boolean{GD@isRevised}}% |
| 2010 |
{\textcolor{gray}{\sffamily\ -- \itshape Revised}}% |
| 2011 |
{}\hfill |
| 2012 |
\textcolor{gray}{\sffamily\thepage} |
| 2013 |
{\large\strut}\color{gray}{\hrule} |
| 2014 |
} |
| 2015 |
\fancyhead[LE]{% |
| 2016 |
\textcolor{gray}{\sffamily{\,}\thepage}\hfill |
| 2017 |
\textcolor{gray}{\sffamily G--\gd@year--\gd@number}% |
| 2018 |
\ifthenelse{\boolean{GD@isSupplement}}% |
| 2019 |
{\textcolor{gray}{\sffamily\ -- \itshape \gd@supplementname}}% |
| 2020 |
{} % |
| 2021 |
\ifthenelse{\boolean{GD@isRevised}}% |
| 2022 |
{\textcolor{gray}{\sffamily\ -- \itshape Revised}}% |
| 2023 |
{}\hfill |
| 2024 |
\textcolor{gray}{\sffamily Les Cahiers du GERAD} |
| 2025 |
{\large\strut}\color{gray}{\hrule} |
| 2026 |
} |
| 2027 |
\fancyhead[C]{} |
| 2028 |
\fancyhead[R]{} |
| 2029 |
\fancyfoot{} |
| 2030 |
\renewcommand{\headrulewidth}{0pt} |
| 2031 |
\renewcommand{\footrulewidth}{0pt} |
| 2032 |
\rmfamily |
| 2033 |
\vspace*{5pt} |
| 2034 |
} |
| 2035 |
} |
| 2036 |
|
| 2037 |
% Custom abstract environment |
| 2038 |
\newenvironment{GDabstract}[1]{% |
| 2039 |
\paragraph{#1 : } |
| 2040 |
}{% |
| 2041 |
\ifthenelse{\boolean{GD@isPlainVersion}}{}{\vspace*{2cm}} |
| 2042 |
} |
| 2043 |
|
| 2044 |
% Acknowledgements section |
| 2045 |
\newenvironment{GDacknowledgements}{% |
| 2046 |
\ifthenelse{\boolean{GD@isPlainVersion}}{% |
| 2047 |
\paragraph{Acknowledgements: } |
| 2048 |
}{% |
| 2049 |
\vfill |
| 2050 |
\hrule |
| 2051 |
\smallskip |
| 2052 |
\paragraph{Acknowledgements: } |
| 2053 |
} |
| 2054 |
}{} |
| 2055 |
|
| 2056 |
% Article section |
| 2057 |
\newcommand{\GDarticlestart}{% |
| 2058 |
\ifthenelse{\boolean{GD@isPlainVersion}}{}{% |
| 2059 |
\newpage |
| 2060 |
\setcounter{page}{1} |
| 2061 |
\renewcommand{\thepage}{\arabic{page}} |
| 2062 |
\baselineskip=12.5pt |
| 2063 |
\rmfamily |
| 2064 |
} |
| 2065 |
} |
| 2066 |
% \end{macrocode} |
| 2067 |
% |
| 2068 |
% \ifnum\frenchdoc=1 |
| 2069 |
% \subsection{Commandes et environnements obsol\`etes} |
| 2070 |
% Dans la version 1.1 de \gdwp, toutes les commandes et environnements qui avaient un nom |
| 2071 |
% fran\c{c}ais ont \'et\'e traduits en anglais dans un souci d'uniformit\'e |
| 2072 |
% et pour faciliter la compr\'ehension des noms par le plus grand nombre |
| 2073 |
% d'utilisateurs. |
| 2074 |
% |
| 2075 |
% Les commandes et environnements fran\c{c}ais sont maintenus, mais seulement pour permettre |
| 2076 |
% la r\'etrocompatibilit\'e du gabarit de la version 1.0 avec la d\'efinition |
| 2077 |
% de classe des versions subs\'equentes. Une fois que cette version du gabarit |
| 2078 |
% ne sera plus en circulation, tout ce qui est obsol\`ete sera retir\'e |
| 2079 |
% de la classe. |
| 2080 |
% \else |
| 2081 |
% \subsection{Deprecated commands and environments} |
| 2082 |
% In \gdwp\ version 1.1, all commands and environments that had French names have been translated |
| 2083 |
% in English for consistency reasons and to make sure that the they could |
| 2084 |
% be directly understood by most users. |
| 2085 |
% |
| 2086 |
% The French commands and environments are preserved only to ensure backwards compatibility |
| 2087 |
% between version 1.0 of the template and subsequent versions of the class. |
| 2088 |
% Once that version of the template stops circulating, everything that is deprecated will be |
| 2089 |
% removed from the class. |
| 2090 |
% \fi |
| 2091 |
% |
| 2092 |
% \begin{macrocode} |
| 2093 |
|
| 2094 |
\newcommand{\GDtitre}[1]{\GDtitle{#1}} |
| 2095 |
\newcommand{\GDmois}[2]{\GDmonth{#1}{#2}} |
| 2096 |
\newcommand{\GDannee}[1]{\GDyear{#1}} |
| 2097 |
\newcommand{\GDnumero}[1]{\GDnumber{#1}} |
| 2098 |
\newcommand{\GDauteursCourts}[1]{\GDauthorsShort{#1}} |
| 2099 |
\newcommand{\GDauteursCopyright}[1]{\GDauthorsCopyright{#1}} |
| 2100 |
\newcommand{\GDpageCouverture}{\GDcoverpage} |
| 2101 |
\newenvironment{GDpagetitre}{ |
| 2102 |
\ifthenelse{\boolean{GD@isPlainVersion}}% |
| 2103 |
{\GD@plain@titlepage@begin}% |
| 2104 |
{\GD@titlepage@begin} |
| 2105 |
}{ |
| 2106 |
\ifthenelse{\boolean{GD@isPlainVersion}}% |
| 2107 |
{\GD@plain@pagetitle@end}% |
| 2108 |
{\GD@titlepage@end} |
| 2109 |
} |
| 2110 |
|
| 2111 |
%</class> |
| 2112 |
% \end{macrocode} |
| 2113 |
% |
| 2114 |
% ^^A Fin du code de la classe |
| 2115 |
% \Finale |
| 2116 |
% |
| 2117 |
% \iffalse |
| 2118 |
% ^^A Code du gabarit |
| 2119 |
%<*template> |
| 2120 |
%% Template version 1.1 |
| 2121 |
%% |
| 2122 |
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2123 |
%% %%%%%%%%%% Notes pour les auteurs %%%%%%%%%%%%%%% |
| 2124 |
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2125 |
%% Inscrire tous les titres en minuscules (sauf la première lettre du |
| 2126 |
%% premier mot). |
| 2127 |
%% Section, Table, Figure prennent une majuscule en anglais, |
| 2128 |
%% mais pas en français. |
| 2129 |
%% Les tableaux se font avec Booktabs et ils sont écrits en \footnotesize. |
| 2130 |
%% (Booktabs crée des tableaux avec des lignes horizontales seulement et |
| 2131 |
%% plus d'espaces entre les lignes.) |
| 2132 |
%% Pour éviter que des références ne se retrouvent seules au début d'une ligne, |
| 2133 |
%% on doit faire précéder les "\ref{...}" par "~", donc "~\ref{...}". |
| 2134 |
%% On fait de même avec "\cite{...}" qui devrait plutôt s'écrire "~\cite{...}". |
| 2135 |
%% Vérifier que les chiffres (références ou non) n'apparaissent pas seuls |
| 2136 |
%% au début d'une ligne. |
| 2137 |
%% Enlever toutes les commandes d'espacement (\smallskip, \vspace, \\) à la fin |
| 2138 |
%% des lignes et des paragraphes. |
| 2139 |
%% "et al." ne s'écrit pas en italiques et a un point. |
| 2140 |
%% Les titres des figures, tableaux et algorithmes prennent un point ou non, |
| 2141 |
%% mais ils doivent être tous identiques. |
| 2142 |
%% Pour les Tables, les titres sont placés en haut. |
| 2143 |
%% Pour les Figures, les titres sont placés en-dessous. |
| 2144 |
%% S'assurer que le chiffre de la note de bas de page soit après la ponctuation |
| 2145 |
%% en anglais. |
| 2146 |
%% Bibliographie : ajouter "\small" après le \begin{thebibliography}. |
| 2147 |
%% Bibliographie : transférer le .bbl dans le fichier lui-même |
| 2148 |
%% s'il y a un fichier .bib. |
| 2149 |
%% Bibliographie : vérifier qu'il y a bien deux tirets (--) entre les numéros |
| 2150 |
%% de pages quand c'est nécessaire. |
| 2151 |
%% Bibliographie : éviter les caractères en italique et en gras. Enlever |
| 2152 |
%% les \em et \it. |
| 2153 |
|
| 2154 |
|
| 2155 |
|
| 2156 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2157 |
%%%%%%%%%%%% Notes for Authors %%%%%%%%%%%%%%%%%%% |
| 2158 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2159 |
%% Write all titles in lowercase letters (aside from the first letter of the |
| 2160 |
%% first word). |
| 2161 |
%% Section, Table, Figure are capitalized in English, but not in French. |
| 2162 |
%% Tables are done with Booktabs and are written in \footnotesize. |
| 2163 |
%% (With Booktabs there's only horizontal lines and more space between |
| 2164 |
%% the lines). |
| 2165 |
%% To make sure references don't end up alone at the start of a line, |
| 2166 |
%% before each "\ref{...}" use "~", therefore: "~\ref{...}". |
| 2167 |
%% The same thing applies to "\cite{...}", which should instead |
| 2168 |
%% be written "~\cite{...}". |
| 2169 |
%% Check that numbers (references or other) do not appear by themselves |
| 2170 |
%% at the start of a line . |
| 2171 |
%% Remove all spacing commands (\smallskip, \vspace, \\) at the end of |
| 2172 |
%% lines and paragraphs. |
| 2173 |
%% "et al." must not be written in italics and must include a period after "al". |
| 2174 |
%% Figure, table and algorithm titles may use a period or not, but must do so |
| 2175 |
%% consistently throughout. |
| 2176 |
%% Table titles are placed above the table. |
| 2177 |
%% Figure titles are placed below the figure. |
| 2178 |
%% Make sure footnote numbers are positioned after the punctuation in English. |
| 2179 |
%% Bibliography: transfer the .bbl into the file itself if there is a .bib file. |
| 2180 |
%% Bibliography: add "\small" after \begin{thebibliography}. |
| 2181 |
%% Bibliography: check that there are two dashes (--) between page numbers where |
| 2182 |
%% necessary. |
| 2183 |
%% Bibliography: avoid using italics and bold. Remove instances of \em and \it. |
| 2184 |
\documentclass[gdweb]{geradwp} |
| 2185 |
|
| 2186 |
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2187 |
%% %%% Packages par défaut du cahier %%%%%%%%%%%%%% |
| 2188 |
%% %%% ----- NE PAS MODIFIER! ------- %%%%%%%%%%%%%% |
| 2189 |
%% %%% Working paper default packages %%%%%%%%%%%%%% |
| 2190 |
%% %%% ----- DO NOT MODIFY! --------- %%%%%%%%%%%%%% |
| 2191 |
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2192 |
|
| 2193 |
\PassOptionsToPackage{hyphens}{url} |
| 2194 |
|
| 2195 |
%% Choose one of the two following algorithm packages |
| 2196 |
%% \usepackage[ruled]{algorithm} |
| 2197 |
%% \usepackage{algorithmic} |
| 2198 |
% \changes{1.1}{2021-12-07}{Added package algorithmic in preamble} |
| 2199 |
\usepackage[ruled,linesnumbered]{algorithm2e} |
| 2200 |
% \changes{1.1}{2021-12-06}{Added options to algorithm packages} |
| 2201 |
\usepackage[french]{babel} |
| 2202 |
\usepackage{hyperref} |
| 2203 |
|
| 2204 |
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2205 |
%% %%% Options par défaut du cahier %%%%%%%%%%%%%%% |
| 2206 |
%% %%% ----- NE PAS MODIFIER! ------ %%%%%%%%%%%%%%% |
| 2207 |
%% %%% Working paper default options %%%%%%%%%%%%%%% |
| 2208 |
%% %%% ----- DO NOT MODIFY! -------- %%%%%%%%%%%%%%% |
| 2209 |
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2210 |
|
| 2211 |
\GDcoverpagewhitespace{6.8cm} |
| 2212 |
% \changes{1.1}{2021-12-02}{Added new white space command for paper version} |
| 2213 |
\graphicspath{{Figures/}} % graphicx pkg setup |
| 2214 |
\hypersetup{colorlinks,% |
| 2215 |
citecolor={blue}, % Change for "black" with natbib |
| 2216 |
urlcolor={blue}, |
| 2217 |
linkcolor={blue}, |
| 2218 |
breaklinks={true} |
| 2219 |
} |
| 2220 |
|
| 2221 |
%% Algorithm caption customizations |
| 2222 |
\makeatletter |
| 2223 |
\ifthenelse{\isundefined{\ALG@name}}{}% |
| 2224 |
{% |
| 2225 |
\renewcommand{\ALG@name}{\sffamily\footnotesize Algorithm} |
| 2226 |
} |
| 2227 |
\makeatother |
| 2228 |
%% Algorithm2e caption customizations |
| 2229 |
\ifthenelse{\isundefined{\SetAlCapNameFnt}}{}% |
| 2230 |
{% |
| 2231 |
\SetAlCapNameFnt{\footnotesize} |
| 2232 |
\SetAlCapFnt{\sffamily\footnotesize} |
| 2233 |
} |
| 2234 |
% \changes{1.1}{2021-12-07}{Added algorithm caption customizations} |
| 2235 |
|
| 2236 |
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2237 |
%% %%%%%% Début - commandes de l'auteur %%%%%%%%%%%% |
| 2238 |
%% %%%%%%%% Start of author commands %%%%%%%%%%%%%%% |
| 2239 |
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2240 |
|
| 2241 |
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2242 |
%% %%%%%%% Fin - commandes de l'auteur %%%%%%%%%%%%% |
| 2243 |
%% %%%%%%%%% End of author commands %%%%%%%%%%%%%%%% |
| 2244 |
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2245 |
|
| 2246 |
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2247 |
%% %%%%%%%%%% Métadonnées du cahier %%%%%%%%%%%%%%% |
| 2248 |
%% %%%%%%%%%% Working paper metadata %%%%%%%%%%%%%%% |
| 2249 |
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2250 |
\GDtitle{This is a title} |
| 2251 |
\GDmonth{Mai}{May} |
| 2252 |
\GDyear{2021} |
| 2253 |
\GDnumber{XX} |
| 2254 |
\GDauthorsShort{B. Hamel, K. H\'ebert} |
| 2255 |
\GDauthorsCopyright{Hamel, H\'ebert} |
| 2256 |
\GDpostpubcitation{Hamel, Benoit, Karine H\'ebert (2021). ``Un exemple de citation'', \emph{Journal of Journals}, vol. X issue Y, p. n-m}{https://www.gerad.ca/fr} |
| 2257 |
\GDsupplementname{Internet Appendix} |
| 2258 |
% \changes{1.1}{2021-12-03}{Added GDsupplementname to template preamble} |
| 2259 |
\GDrevised{Mai}{May}{2021} |
| 2260 |
% \changes{1.1}{2021-12-15}{Replaced original GDrevised by its bilingual version} |
| 2261 |
|
| 2262 |
\begin{document} |
| 2263 |
|
| 2264 |
\GDcoverpage |
| 2265 |
|
| 2266 |
\begin{GDtitlepage} |
| 2267 |
|
| 2268 |
\begin{GDauthlist} |
| 2269 |
\GDauthitem{Benoit Hamel \ref{affil:bib}} |
| 2270 |
\GDauthitem{Karine H\'ebert \ref{affil:gerad}\GDrefsep\ref{affil:hec}} |
| 2271 |
\end{GDauthlist} |
| 2272 |
|
| 2273 |
\begin{GDaffillist} |
| 2274 |
\GDaffilitem{affil:bib}{Biblioth\`eque, HEC Montr\'eal, Montr\'eal (Qc), Canada, H3T 2A7} |
| 2275 |
\GDaffilitem{affil:gerad}{GERAD, Montr\'eal (Qc), Canada, H3T 1J4} |
| 2276 |
\GDaffilitem{affil:hec}{HEC Montr\'eal, Montr\'eal (Qc), Canada, H3T 2A7} |
| 2277 |
\end{GDaffillist} |
| 2278 |
|
| 2279 |
\begin{GDemaillist} |
| 2280 |
\GDemailitem{[email protected]} |
| 2281 |
\GDemailitem{[email protected]} |
| 2282 |
\end{GDemaillist} |
| 2283 |
|
| 2284 |
\end{GDtitlepage} |
| 2285 |
|
| 2286 |
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2287 |
%% %%%%%%%%% Résumés, mots-clés, remerciements %%%%%%%%%%% |
| 2288 |
%% %%%%%%% Abstract, keywords, acknowledgements %%%%%%%%%% |
| 2289 |
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2290 |
|
| 2291 |
\GDabstracts |
| 2292 |
|
| 2293 |
\begin{GDabstract}{Abstract} |
| 2294 |
Write your abstract here... |
| 2295 |
|
| 2296 |
\paragraph{Keywords: } |
| 2297 |
%Here |
| 2298 |
Here |
| 2299 |
\end{GDabstract} |
| 2300 |
|
| 2301 |
\begin{GDabstract}{R\'esum\'e} |
| 2302 |
R\'edigez votre r\'esum\'e ici... |
| 2303 |
|
| 2304 |
\paragraph{Mots cl\'es\,: } |
| 2305 |
%Here |
| 2306 |
Here |
| 2307 |
|
| 2308 |
\end{GDabstract} |
| 2309 |
|
| 2310 |
|
| 2311 |
\begin{GDacknowledgements} |
| 2312 |
Here |
| 2313 |
|
| 2314 |
\end{GDacknowledgements} |
| 2315 |
|
| 2316 |
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2317 |
%% %%%%%%%%%%%%%%%% Article %%%%%%%%%%%%%%%%%%%%%%%% |
| 2318 |
%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2319 |
|
| 2320 |
\GDarticlestart |
| 2321 |
%Here |
| 2322 |
Write your article article. |
| 2323 |
|
| 2324 |
\end{document} |
| 2325 |
%</template> |
| 2326 |
% \fi |