Debian Codegraph @

texmf-dist/doc/latex/geradwp/geradwp.tex

raw
1 %%
2 %% This is file `geradwp.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% geradwp.dtx (with options: `template')
8 %%
9 %% This is a stripped version of the original file.
10 %%
11 %% Copyright 2022 GERAD, HEC Montreal
12 %%
13 %% This work may be distributed and/or modified under the
14 %% conditions of the LaTeX Project Public License, either version 1.3c
15 %% of this license or (at your option) any later version.
16 %%
17 %% The latest version of this license is in
18 %% http://www.latex-project.org/lppl.txt
19 %% and version 1.3c or later is part of all distributions of LaTeX
20 %% version 2008/05/04 or later.
21 %%
22 %% This work has the LPPL maintenance status `maintained'.
23 %%
24 %% The Current Maintainer of this work is Benoit Hamel
25 %% <[email protected]>.
26 %%
27 %% This work consists of the files geradwp.dtx, geradwp.ins,
28 %% geradwp.pdf and the derived files listed in the README file.
29 %%
30 %% Template version 1.1
31 %%
32 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
33 %% %%%%%%%%%% Notes pour les auteurs %%%%%%%%%%%%%%%
34 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
35 %% Inscrire tous les titres en minuscules (sauf la première lettre du
36 %% premier mot).
37 %% Section, Table, Figure prennent une majuscule en anglais,
38 %% mais pas en français.
39 %% Les tableaux se font avec Booktabs et ils sont écrits en \footnotesize.
40 %% (Booktabs crée des tableaux avec des lignes horizontales seulement et
41 %% plus d'espaces entre les lignes.)
42 %% Pour éviter que des références ne se retrouvent seules au début d'une ligne,
43 %% on doit faire précéder les "\ref{...}" par "~", donc "~\ref{...}".
44 %% On fait de même avec "\cite{...}" qui devrait plutôt s'écrire "~\cite{...}".
45 %% Vérifier que les chiffres (références ou non) n'apparaissent pas seuls
46 %% au début d'une ligne.
47 %% Enlever toutes les commandes d'espacement (\smallskip, \vspace, \\) à la fin
48 %% des lignes et des paragraphes.
49 %% "et al." ne s'écrit pas en italiques et a un point.
50 %% Les titres des figures, tableaux et algorithmes prennent un point ou non,
51 %% mais ils doivent être tous identiques.
52 %% Pour les Tables, les titres sont placés en haut.
53 %% Pour les Figures, les titres sont placés en-dessous.
54 %% S'assurer que le chiffre de la note de bas de page soit après la ponctuation
55 %% en anglais.
56 %% Bibliographie : ajouter "\small" après le \begin{thebibliography}.
57 %% Bibliographie : transférer le .bbl dans le fichier lui-même
58 %% s'il y a un fichier .bib.
59 %% Bibliographie : vérifier qu'il y a bien deux tirets (--) entre les numéros
60 %% de pages quand c'est nécessaire.
61 %% Bibliographie : éviter les caractères en italique et en gras. Enlever
62 %% les \em et \it.
63
64 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
65 %%%%%%%%%%%% Notes for Authors %%%%%%%%%%%%%%%%%%%
66 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
67 %% Write all titles in lowercase letters (aside from the first letter of the
68 %% first word).
69 %% Section, Table, Figure are capitalized in English, but not in French.
70 %% Tables are done with Booktabs and are written in \footnotesize.
71 %% (With Booktabs there's only horizontal lines and more space between
72 %% the lines).
73 %% To make sure references don't end up alone at the start of a line,
74 %% before each "\ref{...}" use "~", therefore: "~\ref{...}".
75 %% The same thing applies to "\cite{...}", which should instead
76 %% be written "~\cite{...}".
77 %% Check that numbers (references or other) do not appear by themselves
78 %% at the start of a line .
79 %% Remove all spacing commands (\smallskip, \vspace, \\) at the end of
80 %% lines and paragraphs.
81 %% "et al." must not be written in italics and must include a period after "al".
82 %% Figure, table and algorithm titles may use a period or not, but must do so
83 %% consistently throughout.
84 %% Table titles are placed above the table.
85 %% Figure titles are placed below the figure.
86 %% Make sure footnote numbers are positioned after the punctuation in English.
87 %% Bibliography: transfer the .bbl into the file itself if there is a .bib file.
88 %% Bibliography: add "\small" after \begin{thebibliography}.
89 %% Bibliography: check that there are two dashes (--) between page numbers where
90 %% necessary.
91 %% Bibliography: avoid using italics and bold. Remove instances of \em and \it.
92 \documentclass[gdweb]{geradwp}
93
94 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
95 %% %%% Packages par défaut du cahier %%%%%%%%%%%%%%
96 %% %%% ----- NE PAS MODIFIER! ------- %%%%%%%%%%%%%%
97 %% %%% Working paper default packages %%%%%%%%%%%%%%
98 %% %%% ----- DO NOT MODIFY! --------- %%%%%%%%%%%%%%
99 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
100
101 \PassOptionsToPackage{hyphens}{url}
102
103 %% Choose one of the two following algorithm packages
104 %% \usepackage[ruled]{algorithm}
105 %% \usepackage{algorithmic}
106 \usepackage[ruled,linesnumbered]{algorithm2e}
107 \usepackage[french]{babel}
108 \usepackage{hyperref}
109
110 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
111 %% %%% Options par défaut du cahier %%%%%%%%%%%%%%%
112 %% %%% ----- NE PAS MODIFIER! ------ %%%%%%%%%%%%%%%
113 %% %%% Working paper default options %%%%%%%%%%%%%%%
114 %% %%% ----- DO NOT MODIFY! -------- %%%%%%%%%%%%%%%
115 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
116
117 \GDcoverpagewhitespace{6.8cm}
118 \graphicspath{{Figures/}} % graphicx pkg setup
119 \hypersetup{colorlinks,%
120 citecolor={blue}, % Change for "black" with natbib
121 urlcolor={blue},
122 linkcolor={blue},
123 breaklinks={true}
124 }
125
126 %% Algorithm caption customizations
127 \makeatletter
128 \ifthenelse{\isundefined{\ALG@name}}{}%
129 {%
130 \renewcommand{\ALG@name}{\sffamily\footnotesize Algorithm}
131 }
132 \makeatother
133 %% Algorithm2e caption customizations
134 \ifthenelse{\isundefined{\SetAlCapNameFnt}}{}%
135 {%
136 \SetAlCapNameFnt{\footnotesize}
137 \SetAlCapFnt{\sffamily\footnotesize}
138 }
139
140 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
141 %% %%%%%% Début - commandes de l'auteur %%%%%%%%%%%%
142 %% %%%%%%%% Start of author commands %%%%%%%%%%%%%%%
143 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
144
145 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
146 %% %%%%%%% Fin - commandes de l'auteur %%%%%%%%%%%%%
147 %% %%%%%%%%% End of author commands %%%%%%%%%%%%%%%%
148 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
149
150 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
151 %% %%%%%%%%%% Métadonnées du cahier %%%%%%%%%%%%%%%
152 %% %%%%%%%%%% Working paper metadata %%%%%%%%%%%%%%%
153 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
154 \GDtitle{This is a title}
155 \GDmonth{Mai}{May}
156 \GDyear{2021}
157 \GDnumber{XX}
158 \GDauthorsShort{B. Hamel, K. H\'ebert}
159 \GDauthorsCopyright{Hamel, H\'ebert}
160 \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}
161 \GDsupplementname{Internet Appendix}
162 \GDrevised{Mai}{May}{2021}
163
164 \begin{document}
165
166 \GDcoverpage
167
168 \begin{GDtitlepage}
169
170 \begin{GDauthlist}
171 \GDauthitem{Benoit Hamel \ref{affil:bib}}
172 \GDauthitem{Karine H\'ebert \ref{affil:gerad}\GDrefsep\ref{affil:hec}}
173 \end{GDauthlist}
174
175 \begin{GDaffillist}
176 \GDaffilitem{affil:bib}{Biblioth\`eque, HEC Montr\'eal, Montr\'eal (Qc), Canada, H3T 2A7}
177 \GDaffilitem{affil:gerad}{GERAD, Montr\'eal (Qc), Canada, H3T 1J4}
178 \GDaffilitem{affil:hec}{HEC Montr\'eal, Montr\'eal (Qc), Canada, H3T 2A7}
179 \end{GDaffillist}
180
181 \begin{GDemaillist}
182 \GDemailitem{[email protected]}
183 \GDemailitem{[email protected]}
184 \end{GDemaillist}
185
186 \end{GDtitlepage}
187
188 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
189 %% %%%%%%%%% Résumés, mots-clés, remerciements %%%%%%%%%%%
190 %% %%%%%%% Abstract, keywords, acknowledgements %%%%%%%%%%
191 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
192
193 \GDabstracts
194
195 \begin{GDabstract}{Abstract}
196 Write your abstract here...
197
198 \paragraph{Keywords: }
199 Here
200 \end{GDabstract}
201
202 \begin{GDabstract}{R\'esum\'e}
203 R\'edigez votre r\'esum\'e ici...
204
205 \paragraph{Mots cl\'es\,: }
206 Here
207
208 \end{GDabstract}
209
210 \begin{GDacknowledgements}
211 Here
212
213 \end{GDacknowledgements}
214
215 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
216 %% %%%%%%%%%%%%%%%% Article %%%%%%%%%%%%%%%%%%%%%%%%
217 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
218
219 \GDarticlestart
220 Write your article article.
221
222 \end{document}
223 \endinput
224 %%
225 %% End of file `geradwp.tex'.