Debian Codegraph @

texmf-dist/doc/latex/nwejm/english/nwejm-en.tex

raw
1 \ExplSyntaxOn
2 \msg_new:nnn{nwejm}{LuaLaTeX~mandatory}{This~ documentation~ has~ to~ be~
3 compiled~ with~ LuaLaTeX~ only}
4 \sys_if_engine_luatex:F
5 {
6 \msg_error:nn{nwejm}{LuaLaTeX~mandatory}
7 }
8 \ExplSyntaxOff
9
10 \documentclass[english,nolocaltoc]{nwejmart}
11 %
12 \DTMsavedate{release-date}{2026-02-19}
13 \newcommand{\releaseversion}{2.1}
14
15 %
16 \usepackage[nwejm]{denisbdoc}
17 \usepackage{tabulary}
18 \usepackage[firstpage]{draftwatermark}
19 %
20 \makeatletter
21 \patchcmd{\@mn@margintest}{\@tempswafalse}{\@tempswatrue}{}{}
22 \patchcmd{\@mn@margintest}{\@tempswafalse}{\@tempswatrue}{}{}
23 \reversemarginpar
24
25 \lst@InputCatcodes
26 \def\lst@DefEC{%
27 \lst@CCECUse \lst@ProcessLetter
28 ^^80^^81^^82^^83^^84^^85^^86^^87^^88^^89^^8a^^8b^^8c^^8d^^8e^^8f%
29 ^^90^^91^^92^^93^^94^^95^^96^^97^^98^^99^^9a^^9b^^9c^^9d^^9e^^9f%
30 ^^a0^^a1^^a2^^a3^^a4^^a5^^a6^^a7^^a8^^a9^^aa^^ab^^ac^^ad^^ae^^af%
31 ^^b0^^b1^^b2^^b3^^b4^^b5^^b6^^b7^^b8^^b9^^ba^^bb^^bc^^bd^^be^^bf%
32 ^^c0^^c1^^c2^^c3^^c4^^c5^^c6^^c7^^c8^^c9^^ca^^cb^^cc^^cd^^ce^^cf%
33 ^^d0^^d1^^d2^^d3^^d4^^d5^^d6^^d7^^d8^^d9^^da^^db^^dc^^dd^^de^^df%
34 ^^e0^^e1^^e2^^e3^^e4^^e5^^e6^^e7^^e8^^e9^^ea^^eb^^ec^^ed^^ee^^ef%
35 ^^f0^^f1^^f2^^f3^^f4^^f5^^f6^^f7^^f8^^f9^^fa^^fb^^fc^^fd^^fe^^ff%
36 ^^^^20ac^^^^0153^^^^0152% nouveau pour xetex
37 ^^^^201c% for “
38 ^^^^201d% for ”
39 ^^^^215b% for ⅛
40 ^^^^2122% for ™
41 ^^^^2019% for ’
42 ^^^^0153% for œ
43 ^^^^0152% for Œ
44 ^^^^20ac% for €
45 ^^^^27e8% for ⟨
46 ^^^^27e9% for ⟩
47 ^^^^2026% for …
48 ^^00}
49 \lst@RestoreCatcodes
50 \makeatother
51 %
52 \indexsetup{level=\section*,toclevel=section,noclearpage}
53 \makeindex[columns=2]
54 \tcbset{index format=off}
55 %
56 \tcbset{listing options={escapechar=+}}
57 %
58 \SetWatermarkColor{gray!10}%
59 \SetWatermarkFontSize{20mm}%
60 \SetWatermarkText{\MakeUppercase{travail en cours}}%
61 %
62 \DeclareBibliographyCategory{examples}
63 \DeclareBibliographyCategory{documentation}
64 \addtocategory{examples}{shin,laz1,har}
65 \addtocategory{documentation}{Bitouze,Bitouze7}
66
67 \newcommand{\no}{\# }
68
69 \addbibresource{../nwejm.bib}
70 %
71 \newacronym{nwejm}{nwejm}{North-Western European Journal of Mathematics}
72 \newacronym{bap}{bap}{bounded approximation property}
73 \newacronym{msc}{msc}{Mathematical Subject Classification}
74 \newacronym{url}{url}{Uniform Resource Locator}
75 \newacronym{toc}{toc}{table of contents}
76 %
77 \newtheorem{article}
78 \newtheorem[style=definition]{fact}
79 \newtheorem{exposé}
80 \newtheorem[title-plural=Criteria]{criterion}
81 \newtheorem[title=random experiment]{rexp}
82 %
83 \newenumeration{conventions}
84 \newenumeration[singular=criterion]{criteria}
85 \newenumeration[singular=rôle,plural=rôles]{roles}
86 %
87 \DeclareMathOperator{\cat}{Cat}
88 \newcommand{\mybinop}{\mathbin{*}}
89 %
90 \begin{document}
91 \title[Documentation of the \LaTeX{} class of
92 \texorpdfstring{\nwejm}{NWEJM}]{Documentation of the \LaTeX{} class of \nwejm*{}
93 for authors}%
94 %
95 \subtitle[Version \releaseversion{} (\DTMusedate{release-date})]{\small Version
96 \releaseversion{} as of \DTMusedate{release-date}}%
97 %
98 \author[%
99 affiliation={%
100 Université du Littoral Côte d'Opale, Laboratoire de mathématiques pures et
101 appliquées (\nolinkurl{[email protected]})%
102 },%
103 ]{Bitouzé, Denis}
104 \author[%
105 affiliation={%
106 Université de Lille, Laboratoire Paul Painlevé UMR CNRS 8524
107 (\nolinkurl{[email protected]})%
108 },%
109 ]{Heinrich, Philippe}
110 %
111 \maketitle
112 %
113 \etocarticlestylenomarks
114 \localtableofcontents
115 %
116 \DeclareFixedFootnote{\conseilslatex}{Et donne de façon subliminale quelques
117 conseils \LaTeX{}. On consultera \autocite{Ensenbach} pour un panorama plus
118 complet des commandes et extensions obsolètes (et autres erreurs).}
119 \DeclareFixedFootnote{\suitecompilations}{To automate these
120 compilations, one can use the \program{latexmk} \enquote{compiler},
121 provided by any recent \TeX{} distribution, with the help of the
122 \file{latexmkrc} configuration file attached to this class.}
123
124 \section{Introduction}
125 \label{sec-introduction}
126
127 \begin{dbwarning}{Backward compatibility broken with version 2.0}{}
128 Between versions 1.6 and 2.0 (released respectively February 8, 2024 and
129 February 10, 2026) of \textsf{nwejm} et \nwejmauthor{} classes, documented
130 below, backward compatibility has been broken (in favor of better layout) in
131 terms of layout.
132
133 In order to be able to recompile old documents identically, simply load these
134 classes using, respectively:
135 \begin{preamblecode}
136 \documentclass[...]{nwejm}[=2024-02-08]
137 \end{preamblecode}
138 and
139 \begin{preamblecode}
140 \documentclass[...]{nwejmart}[=2024-02-08]
141 \end{preamblecode}
142 \end{dbwarning}
143
144 \begin{dbwarning}{Class to be used}{}
145 The \gls{nwejm} provides two \LaTeX{} classes:
146 \begin{enumerate}
147 \item The \nwejmcl{} designed for entire issues of the journal, and thus intended for the \nwejm{} managing team (and not for authors of articles);
148 \item The \nwejmauthorcl{} for authors of articles to be published in \gls{nwejm}.
149 \end{enumerate}
150 Authors of articles should therefore take care to use the \nwejmauthorcl{}
151 and \emph{not} the \nwejmcl{}.
152 \end{dbwarning}
153
154 \begin{dbwarning}{Required packages}{}
155 In order to use the \nwejmauthorcl{}, it is necessary to have:
156 \begin{itemize}
157 \item A reasonably recent \hologo{TeX} distribution;
158 \item The \Package{biblatex};
159 \item The
160 \href{https://www.ctan.org/pkg/biber}{\program{biber}}\footnote{Attention!
161 The bibliography must be compiled not with the usual \program{bibtex}, but
162 with \program{biber}. More details in warning~\ref{wa-affichage-auteurs}
163 page \pageref{wa-affichage-auteurs} and \vref{sec-bibliographie}.}
164 program.
165 \end{itemize}
166 With Ubuntu for example, if \hologo{TeX}~Live is installed via the GNU/Linux distribution packages, those named \package{texlive-bibtex-extra} and
167 \package{biber} are required.
168 \end{dbwarning}
169
170 The \LaTeX{} class \nwejmauthor{} is intended for authors wishing to publish an article in \href{http://math.univ-lille1.fr/~nwejm/}{\gls{nwejm}}. The purpose of this class is:
171 \begin{enumerate}
172 \item To accurately reproduce the \nwejm{}'s layout, allowing thus authors to work on the layout of their document under real conditions;
173 \item To provide some tools (commands et environments) to facilitate the writing of documents, especially those containing mathematics.
174 \end{enumerate}
175
176 \begin{dbwarning}{\protect\lstinline+UTF-8+ input encoding required}{}
177 The \nwejmauthorcl{} of \nwejm{} relies crucially on ×UTF-8× input encoding:
178 \begin{itemize}
179 \item It loads the \Package{inputenc}\footnote{%
180 It is therefore advisable \emph{not} to load this package: see \vref{sec-canevas-de-fichier} for an outline of the source file for \nwejm{} and in particular for a typical preamble.%
181 %
182 }
183 %
184 with the \docAuxKey{utf8} option;
185 \item It assumes that \file{.tex} source files are indeed encoded in ×UTF-8×: make sure that your computer editor is correctly set for this input encoding.
186 \end{itemize}
187 \end{dbwarning}
188
189 \begin{dbwarning}{Format and \hologo{pdfLaTeX} compilation}{}
190 The composition of the \nwejm*{} volumes involves:
191 \begin{itemize}
192 \item The \hologo{LaTeX} format\footnote{In its \hologo{LaTeXe} version, the most
193 common today.}. Commands of other formats such as \hologo{plainTeX} should therefore be avoided;
194 \item The preferred compiler is \hologo{pdfLaTeX}. In particular, as the \hologo{LaTeX} is not used \emph{a priori}, we prefer:
195 \begin{enumerate}
196 \item \format{jpg}, \format{png} et
197 \format{pdf}\footnote{The recommended format is \format{pdf} since it is vector-based so that the quality of the images is not degraded by resizing.} as image formats;
198 \item Avoid \program{PostScript} code, especially via
199 \program{PSTricks}, and use the \Package{TikZ} as drawing tool
200 for instance.
201 \end{enumerate}
202 \end{itemize}
203 \end{dbwarning}
204
205 \section{Article's configuration}
206
207 \subsection{Language}
208 \label{sec:langue-de-larticle}
209
210 The \nwejm{} accepts articles in four languages:
211 \begin{itemize}
212 \item English
213 \item French
214 \item German
215 \item Dutch
216 \end{itemize}
217 and the \nwejmauthorcl{} allows to specify the language\footnote{The language is managed underhand by the \Package{babel}.} by using the following classes.
218 % \refKey{english}, \refKey{french}, \refKey{ngerman} \refKey{dutch}
219
220 \begin{docKey}{english}{}{no value, default option}
221 This option sets English as article language.
222 \end{docKey}
223 \begin{docKey}{french}{}{no value}
224 This option sets French as article language.
225 \end{docKey}
226 \begin{docKey}{german}{}{no value}
227 This option sets German as article language. It as \docAuxKey{ngerman} as alias.
228 \begin{dbremark}{\package*{babel} option underlying the \protect\refKey{german} option}{}
229 The \refKey{german} language option of \nwejmauthorcl{} calls underhand the \docAuxKey*{ngerman} option of \Package*{babel}.
230 \end{dbremark}
231 \end{docKey}
232 \begin{docKey}{dutch}{}{no value}
233 This option sets Dutch as article language.
234 \end{docKey}
235
236 \begin{dbremark}{Default article language}{}
237 If none of these options are specified, the default language is English.
238 \end{dbremark}
239
240 \subsection{Other configurations}
241 \label{sec:autr-conf}
242
243 \begin{docCommand}{articlesetup}{\marg{options}}
244 This command allows you to configure the \meta{options} of the current article in key/value form.
245
246 The only key provided for the time being is \refKey{gradient}.
247 \begin{docKey}{gradient}{=\docValue{grad}\textbar\docValue{nabla}}{no default value, initially \docValue{grad}}
248 This key allows you to specify how the gradient is displayed using the command \refCom{grad}.
249 \end{docKey}
250 \end{docCommand}
251
252 \begin{dbwarning}{\protect\refCom{articlesetup} command: not in the preamble!}{}
253 The\refCom{articlesetup} command must be \emph{exclusively} used in the body of the document (preferably just after ×\begin{document}×), otherwise the chosen configuration, although taken into account in the article alone, may not be taken into account in the complete volume!
254 \end{dbwarning}
255
256 \section{Preparing the article \enquote{title}}
257 \label{sec-prep-de-lart}
258
259 This section lists commands, options and environment for \emph{preparing} the \enquote{title} of the article and its possible final part.
260
261 \subsection{Title, subtitle}
262 \label{sec-title}
263
264 \begin{docCommand}[doc new=2017-10-23]{title}{\oarg{alternative title {\normalfont\ttfamily\acrshort*{toc}}}\oarg{header alternative title}\marg{title}}
265 This command defines for the current article:
266 \begin{itemize}
267 \item Its \meta{title} on the first page;
268 \item Its \emph{possible} \meta{alternative title
269 {\normalfont\ttfamily\acrshort*{toc}}} listed in:
270 \begin{itemize}
271 \item The volume in which the article will be published:
272 \begin{itemize}
273 \item In the \gls{toc};
274 \item In the bookmarks;
275 \end{itemize}
276 \item In the \textsc{pdf} file of the stand-alone article, in the \enquote{Title} metadata;
277 \end{itemize}
278 \item Its \emph{possible} \meta{header alternative title} as a header\footnote{\Ie{} in current title.} on even-numbered pages.
279 \end{itemize}
280 The precise use of this command is summarized in \vref{tab-commande-title}.
281 \end{docCommand}
282
283 \begin{table}[htb]
284 \centering
285 \caption{Using the \protect\refCom{title} command (with two optional arguments)}
286 \label{tab-commande-title}
287 \footnotesize%
288 \lstset{%
289 deletekeywords={title},deletekeywords={[3]title},%
290 }
291 \begin{tabular}{|l|c|c|c|}
292 \cline{2-4}
293 \multicolumn{1}{c|}{} & first page & \gls{toc} & header \\\hline
294 \lstinline+\title{+\meta{title}\lstinline+}+ & \multicolumn{3}{c|}{\meta{title}} \\\hline
295 \lstinline+\title[+\meta{alt. {\normalfont\ttfamily\acrshort*{toc}}}\lstinline+]{+\meta{titre}\lstinline+}+ & \meta{title} & \multicolumn{2}{c|}{\meta{alt. {\normalfont\ttfamily\acrshort*{toc}}}} \\\hline
296 \lstinline+\title[][+\meta{alt. header}\lstinline+]{+\meta{title}\lstinline+}+ & \multicolumn{2}{c|}{\meta{title}} & \meta{alt. header} \\\hline
297 \lstinline+\title[+\meta{alt. {\normalfont\ttfamily\acrshort*{toc}}}\lstinline+][+\meta{alt. header}\lstinline+]{+\meta{titre}\lstinline+}+ & \meta{title} & \meta{alt. {\normalfont\ttfamily\acrshort*{toc}}} & \meta{alt. header} \\\hline
298 \end{tabular}
299 \end{table}
300
301 \begin{docCommand}{subtitle}{\oarg{alternative subtitle {\normalfont\ttfamily\acrshort*{toc}}}\marg{subtitle}}
302 This command defines \emph{if needed}, for the current article:
303 \begin{itemize}
304 \item Its \meta{subtitle} following the \meta{title} on the first page;
305 \item Its \emph{possible} \meta{alternative subtitle
306 {\normalfont\ttfamily\acrshort*{toc}}} following the
307 \meta{title}\footnote{Or possible \meta{alternative title
308 {\normalfont\ttfamily\acrshort*{toc}}}.} :
309 \begin{itemize}
310 \item In the issue where the article will be published:
311 \begin{itemize}
312 \item In the \gls{toc};
313 \item In the bookmarks;
314 \end{itemize}
315 \item In the \textsc{pdf} file of the stand-alone, in the \enquote{Title} metadata.
316 \end{itemize}
317 \end{itemize}
318 \end{docCommand}
319
320 \begin{bodycode}[listing options={deletekeywords={[2]title}}]
321 \title[Treatise on Probability Calculus]{Treatise on Probability Calculus and its Applications}
322 \subtitle[Scope and limits of a Borelian project]{Scope and limits of a large-scale Borelian project (1921-1939)}
323 \end{bodycode}
324
325 \begin{dbremark}{Displaying titles ansd subtitles}{}
326 In order to display the title and subtitle, it is necessary use the usual command \refCom{maketitle}.
327 \end{dbremark}
328
329 \subsection{Author(s)}
330 \label{sec-authors}
331
332 An article author is specified by means of the \refCom{author} command. In case of mutliple authors, it suffices to use several instances of the command.
333
334 \begin{docCommand}{author}{\oarg{options}\brackets{\meta{Last name}, \meta{First name}}}
335 This optional command defines an article author.
336 \end{docCommand}
337 %
338 \begin{dbwarning}{Format of the author's first and last name}{}
339 Care should be taken to ensure that:
340 \begin{enumerate}
341 \item The entry of the author's first and last name has the right syntax (identical to the one for \hologo{BibTeX} and \package{biblatex}):
342 %
343 \begin{bodycode}[listing options={showspaces}]
344 "\meta{Last Name}", "\meta{First name}"
345 \end{bodycode}
346 %
347 \item Any diacritical characters (accents, ...) are included in the \meta{First name} et \meta{Last name} ;
348 \item The \meta{Last name} be \emph{not} entered in upper case (except for the capital letter(s))\footnote{In French articles, this name will automatically be written in small capitals.}.
349 \end{enumerate}
350
351 The \enquote{Author} metadata of the generated \File{PDF} automatically contains the specified author(s).
352 \end{dbwarning}
353
354 The \refCom{author} command admits an optional argument to specify the
355 author's affilation(s) with one of the \refKey{affiliation}
356 and \refKey{affiliationtagged} keys.
357
358 \begin{docKey}{affiliation}{={\oarg{tag}\marg{affiliation}}}{no
359 default value,\\initially empty}
360 This key is used to define a (unique) \meta{affiliation}. For an
361 author with several affiliation, this key is used as many times as necessary.
362
363 In addition, each affiliation can take a \meta{tag} for reuse by
364 another author.
365 \end{docKey}
366
367 \begin{docKey}{affiliationtagged}{={\marg{tag}}}{no
368 default value, initially empty}
369 This key allows you to specify a (unique) affiliation already
370 defined and tagged for a previous author.
371 \end{docKey}
372
373 % \begin{bodycode}
374 % % Exemple où 2 auteurs partagent l'affiliation "\meta{affiliation$_3$}".
375 % \author[%
376 % affiliation="\marg{affiliation$_1$}",%
377 % affiliation="\marg{affiliation$_2$}",%
378 % affiliation="\oarg{tag de l'affiliation$_3$}\marg{affiliation$_3$}",%
379 % ]{"\meta{Nom$_1$}", "\meta{Prénom$_1$}"}
380 % \author[%
381 % affiliationtagged="\oarg{tag de l'affiliation$_3$}",%
382 % ]{"\meta{Nom$_2$}", "\meta{Prénom$_2$}"}
383 % \end{bodycode}
384
385 \begin{bodycode}
386 \author[
387 affiliation={Laboratoire \textsc{sphere}, Universit\'e Paris Diderot}
388 ]{Bustamante, Martha-Cecilia}
389 \author[
390 affiliation=[aff2]{\textsc{lpma}, Universit\'e Pierre et Marie Curie},
391 affiliation={\textsc{ghdso}, Universit\'e Paris-Sud}]{Cl\'ery, Matthias}
392 \author[
393 affiliationtagged={aff2}
394 ]{Mazliak, Laurent}
395 \end{bodycode}
396
397 \begin{dbwarning}{Brace pairs
398 % des clés \refKey{affiliation} et \refKey{minibio}
399 }{}
400 In the presence of commas in the \meta{affiliation} value, a pair of braces
401 around it is mandatory.
402 \end{dbwarning}
403
404 \begin{dbwarning}{Dislpay of first and last names of author(s)}{affichage-auteurs}
405 To display the first and last names of the author(s), it is
406 necessary:
407 \begin{enumerate}
408 \item To use the usual \refCom{maketitle} command;
409 \item To do several compilations\suitecompilations{}:
410 \begin{enumerate}
411 \item \hologo{pdfLaTeX} ;
412 \item \program{biber} ;
413 \item \hologo{pdfLaTeX}.
414 \end{enumerate}
415 \end{enumerate}
416 \end{dbwarning}
417
418 \subsection{Summary}
419 \label{sec-resume}
420
421 \begin{docEnvironment}[doc description=\mandatory,doclang/environment content=abstract]{abstract}{}
422 This environment is intended to receive the article's \meta{abstract}.
423 \end{docEnvironment}
424
425 \subsection{Keywords}
426
427 \begin{docCommand}[doc
428 description=\mandatory]{keywords}{\oarg{variant of keywords}\marg{keywords}}
429 This command allows you to specify the article \meta{keywords} in
430 the form of a comma-separated list.
431
432 The \enquote{Keywords} metadata of the generated \File{PDF} automatically
433 contains the specified \meta{keywords}. If these contains
434 characters (notably mathematical ones) that are not allowed in the
435 metadata of \file{PDF} files, an optional argument is to specify a
436 \meta{variant of keywords} containing only allowed characters.
437 \end{docCommand}
438
439 \begin{bodycode}[listing options={deletekeywords={[5]keywords}}]
440 \keywords[N\string_p-space]{$\mathcal{N}_p$-space}
441 \end{bodycode}
442
443 \subsection{\texorpdfstring{\acrfull{msc}}{MSC}}
444
445 \begin{docCommand}[doc description=\mandatory]{msc}{\marg{\acrshort{msc}}}
446 This command allows you to specify the \meta{\acrshort{msc}} of the article
447 l'article in the form of a comma-separated list.
448 \end{docCommand}
449
450 \section{Generating the article title}
451 \label{sec-creation-du-titre}
452
453 The actual title of the article, combining all the elements entered in
454 \vref{sec-prep-de-lart}, is generated by the standard
455 \refCom{maketitle} command.
456
457 \begin{docCommand}[doc description=\mandatory]{maketitle}{}
458 This command \emph{displays} the article's \enquote{title}, i.e.:
459 \begin{itemize}
460 \item Its title and possible subtitle (\refCom{title} and
461 \refCom{subtitle} commands);
462 \item Its author(s), in the form of their full name(s)
463 (\refCom{author} command) and, in footnote, their respective affiliations;
464 \item Its possible abstract (\refEnv{abstract} environment) ;
465 \item Its keyword(s) (\refCom{keywords} command) ;
466 \item Its \acrshort{msc} (\refCom{msc} command).
467 \end{itemize}
468 \end{docCommand}
469
470 \begin{bodycode}[listing options={deletekeywords={[2]title,article},deletekeywords={[5]keywords}}]
471 \title[Le Traité du calcul des probabilités]{Le Traité du calcul des
472 probabilités et de ses applications}
473 \subtitle[Étendue et limites d'un projet borélien]{Étendue et
474 limites d'un projet borélien de grande envergure (1921-1939)}
475 %
476 \author[
477 affiliation={Laboratoire \textsc{sphere}, Université Paris Diderot}
478 ]{Bustamante, Martha-Cecilia}
479 \author[
480 affiliation=[aff2]{\textsc{lpma}, Université Pierre et Marie Curie},
481 affiliation={\textsc{ghdso}, Université Paris-Sud}]{Cléry, Matthias}
482 \author[
483 affiliationtagged={aff2}
484 ]{Mazliak, Laurent}
485 %
486 \begin{abstract}
487 Cet article est consacré à l'étude détaillée du vaste projet [...]
488 \end{abstract}
489 %
490 \keywords{Probabilités, statistiques, balistique, assurance, jeux,
491 Émile Borel, Institut Henri Poincaré}
492 \msc{01A60, 01A74, 60-03, 60A05, 62-03}
493 %
494 \maketitle
495 \end{bodycode}
496
497 \section{Acknowledgements}
498 \label{sec:remerciements}
499
500 \begin{docCommand}{acknowledgements}{\marg{thanks}}
501 This optional command allows you to specify \meta{thanks} for an article.
502 \end{docCommand}
503
504 \begin{bodycode}[listing options={deletekeywords={[2]first}}]
505 \acknowledgments{%
506 The first author's research was supported by the Hungarian National
507 Science Foundation Grants K81658 and K104183. Research conducted
508 while the second author enjoyed the hospitality of the Alfréd Rényi
509 Institute of Mathematics, and benefited from the \textsc{otka}
510 grant K109789.%
511 }
512 \end{bodycode}
513
514 \begin{dbremark}{Displaying acknowledgements}{}
515 For the acknowledgements to be displayed, it is necessary to use the
516 \refCom{printbibliography} command at the end of the article.
517 \end{dbremark}
518
519 \section{Structuring commands}
520
521 The \nwejmauthorcl{} modifies the usual
522 \docAuxCommand{section} structuring command in order to differentiate
523 the alternative title in \gls{toc} from that in the
524 header\footnote{Note, from this point of view, the similarity with the
525 \protect\refCom{title} command.}.
526
527 \begin{docCommand}[doc new=2017-10-23]{section}{\oarg{alternative title {\normalfont\ttfamily\acrshort*{toc}}}\oarg{alternative title header}\marg{title}}
528 This command defines for the current section:
529 \begin{itemize}
530 \item Its \meta{title} appearing throughout the text;
531 \item Its \emph{possible} \meta{alternative title
532 {\normalfont\ttfamily\acrshort*{toc}}} appearing in the issue
533 where the article will be published:
534 \begin{itemize}
535 \item In the \gls{toc};
536 \item As a bookmark.
537 \end{itemize}
538 \item Its \emph{possible} \meta{alternative title
539 header}\footnote{\Ie{} in the current title.} appearing
540 on odd-numbered pages.
541 \end{itemize}
542 The precise use of this command is summarised in \vref{tab-commande-section}.
543 \end{docCommand}
544
545 \begin{table}[htb]
546 \centering
547 \caption{Use (of the two optional arguments) of the
548 \protect\refCom{section} command}
549 \label{tab-commande-section}
550 \footnotesize%
551 \lstset{%
552 deletekeywords={section},deletekeywords={[3]section},%
553 }
554 \begin{tabular}{|l|c|c|c|}
555 \cline{2-4}
556 \multicolumn{1}{c|}{}
557 & text flow & \gls{toc} & header \\\hline
558 \lstinline+\section{+\meta{title}\lstinline+}+ & \multicolumn{3}{c|}{\meta{title}} \\\hline
559 \lstinline+\section[+\meta{alt. {\normalfont\ttfamily\acrshort*{toc}}}\lstinline+]{+\meta{title}\lstinline+}+ & \meta{title} & \multicolumn{2}{c|}{\meta{alt. {\normalfont\ttfamily\acrshort*{toc}}}} \\\hline
560 \lstinline+\section[][+\meta{alt. header}\lstinline+]{+\meta{title}\lstinline+}+ & \multicolumn{2}{c|}{\meta{title}} & \meta{alt. header} \\\hline
561 \lstinline+\section[+\meta{alt. {\normalfont\ttfamily\acrshort*{toc}}}\lstinline+][+\meta{alt. header}\lstinline+]{+\meta{title}\lstinline+}+ & \meta{title} & \meta{alt. {\normalfont\ttfamily\acrshort*{toc}}} & \meta{alt. header} \\\hline
562 \end{tabular}
563 \end{table}
564
565 \section{Bibliography}
566 \label{sec-bibliographie}
567
568 To compose bibliographies, the \nwejmauthorcl{} uses modern tools such
569 as the \Package*{biblatex} and \hologo{biber} engine. Their use can
570 be summarized as follows\autocite[for more details, see e.g.][in French]{Bitouze}.
571 \begin{enumerate}
572 \item Build a bibliographic database in a \meta{bibliographic file}\footnote{Such
573 files have a \file{.bib} extension.}.
574
575 To do this, we recommend to use a dedicated software,
576 \href{http://jabref.sourceforge.net/}{\program{JabRef}} for
577 instance, configured via the menu
578 \menuentry{Options>Preferences>General} and by choosing:
579 \begin{description}
580 \item[\menuentry{Default encoding} :] \menuentry{UTF8} ;
581 \item[\menuentry{Default bibliography mode} :] \menuentry{biblatex}.
582 \end{description}
583 By the way, we can change the interface language in the
584 \menuentry{Language} drop-down list.
585
586 Don't forget to assign a unique \meta{key} to each bibliographic
587 reference\footnote{In \program{JabRef}, the
588 \enquote{magic wand} or key icon helps to generate the \meta{key}.}.
589 \item In the \file{.tex} source file:
590 \begin{enumerate}
591 \item \emph{In the preamble}, use the \docAuxCommand{addbibresource}
592 command to specify the \meta{bibliographic file}:
593 \begin{preamblecode}[listing options={alsolanguage={[biblatex]TeX}}]
594 \addbibresource{"\meta{bibliographic file}".bib}
595 \end{preamblecode}
596 \item In the body of the document, use the \docAuxCommand{autocite}
597 command\footnote{Preferably to the \docAuxCommand{cite}
598 command.}\footnote{The reference is then detailed in a
599 footnote.} or, optionally, the \docAuxCommand{textcite}
600 command\footnote{The reference is then displayed throughout the
601 text, but with less details.} from the \Package*{biblatex} to
602 cite bibliographic references (each with a \meta{key}):
603 \begin{bodycode}[listing options={alsolanguage={[biblatex]TeX}}]
604 ...\autocite{"\meta{key1}"}... \textcite{"\meta{key2}"} ...
605 ...\autocite{"\meta{key3,key4}"}... \textcite{"\meta{key5,key6}"} ...
606 \end{bodycode}
607 \item At the end of the document, list the bibliographic
608 references by using the \refCom{printbibliography} command.
609 \end{enumerate}
610 \item Perform the successive compilations \hologo{pdfLaTeX}, \hologo{biber}
611 and
612 \hologo{pdfLaTeX}\suitecompilations.
613 \end{enumerate}
614
615 \begin{docCommand}{printbibliography}{}
616 This command produces the bibliographic references list entered
617 with respect to the \Package*{biblatex} syntax. It has been
618 redefined to automatically display the possible
619 acknowledgements
620 (\refCom{acknowledgements} command) before the references list.
621 \end{docCommand}
622
623 For example, if the \File{.bib} contains:
624
625 \begin{bodycode}[listing only,listing options={alsolanguage={[biblatex]TeX},deletekeywords={[2]series,geometry}}]
626 @Book{ har,
627 author = {Hartshorne, Robin},
628 title = {Algebraic geometry},
629 note = {Graduate Texts in Mathematics, No. 52},
630 publisher = {Springer-Verlag},
631 address = {New York},
632 date = {1977}
633 }
634 @Book{ laz1,
635 author = {Lazarsfeld, Robert},
636 title = {Positivity in algebraic geometry. I},
637 volume = {48},
638 note = {Classical setting: line bundles and linear series},
639 publisher = {Springer-Verlag},
640 address = {Berlin},
641 date = {2004}
642 }
643 @Article{ shin,
644 author = {Shin, Kil-Ho},
645 title = {$3$-dimensional Fano varieties with canonical
646 singularities},
647 journal = {Tokyo J. Math.},
648 volume = {12},
649 date = {1989},
650 number = {2},
651 pages = {375-385}
652 }
653 \end{bodycode}
654
655 then the following \file{.tex} source file:
656 \begin{bodycode}[listing only,listing options={alsolanguage={[biblatex]TeX},deletekeywords={[1]theorem},deletekeywords={[2]first,and,see,theorem},deletekeywords={[3]theorem}}]
657 The first assertion is a direct consequence of the Riemann-Roch
658 formula for threefolds\autocite[See e.g.][437]{har} and
659 Kawamata-Viehweg vanishing\autocite[Theorem~4.3.1]{laz1}. For the
660 second assertion, see \textcite[Theorem~(0.4)]{shin}.
661 %
662 \printbibliography
663 \end{bodycode}
664
665 provides the text appeating in the box entitled \enquote{An example
666 of a bibliography} \vpageref{biblio}.
667
668 \ExplSyntaxOn
669 \makeatletter
670 \defbibheading{origsectionnotintoc}[References]{%
671 \__nwejm_section:*{#1}%
672 }
673 \makeatother
674 \ExplSyntaxOff
675 \renewcommand{\thempfootnote}{\arabic{mpfootnote}}
676 %
677 \begin{bodycode}[text only,float,title={An example of a bibliography},label=biblio]
678 The first assertion is a direct consequence of the Riemann-Roch formula for
679 threefolds\autocite[See e.g.][437]{har} and Kawamata-Viehweg
680 vanishing\autocite[Theorem~4.3.1]{laz1}. For the second assertion, see
681 \textcite[Theorem~(0.4)]{shin}.
682 %
683 \printbibliography[heading=origsectionnotintoc,category=examples]
684 \end{bodycode}
685 %
686 \renewcommand{\thempfootnote}{\alph{mpfootnote}}
687
688 \section{Mathematics-specific commands}
689 \label{sec:comm-propr-aux}
690
691 The \nwejmauthorcl{}:
692 \begin{itemize}
693 \item loads the following packages:
694 \begin{itemize}
695 \item \package*{kpfonts} which provides all the standards symbols,
696 including those in the \Package{amssymb}, but also offers many others;
697 \item \package*{mathtools} which itself loads \package*{amsmath}
698 (but extends it and fixes some flaws), so that all the commands of
699 both packages are available;
700 \item \package*{rsfso} which provides nice calligraphic letters (via
701 the \docAuxCommand{mathscr} command);
702 \end{itemize}
703 \item redefines some commands and provides some new ones, listed below;
704 \item provides classical \enquote{theorem} environments (based on the
705 \package*{amsthm} and \package*{thmtools} packages), listed below.
706 \end{itemize}
707
708 \subsection{Universal constants and usual functions}
709
710 \begin{docCommand}{I}{}
711 This command displays the imaginary unit: \enquote{$\I$}.
712 \end{docCommand}
713
714 \begin{docCommand}{E}{\oarg{argument}}
715 Depending on its optional argument, this command displays:
716 \begin{itemize}
717 \item The exponential function applied to \meta{argument};
718 \item The Euler number \enquote{$\E$}.
719 \end{itemize}
720 \end{docCommand}
721
722 \begin{bodycode}[listing and text]
723 \begin{align}
724 \E[\I\pi]+1 & = 0 \\
725 \E & = \sum_{n\geq 0} \frac{1}{n!}
726 \end{align}
727 \end{bodycode}
728
729 \begin{dbremark}{Equivalent syntaxes for the exponential function}{}
730 There is equivalence between:
731 \begin{itemize}
732 \item ×\E[×\meta{argument}×]× which is provided by the class;
733 \item ×\E^{×\meta{argument}×}× which is more frequent.
734 \end{itemize}
735 \end{dbremark}
736
737 \begin{docCommand}{log(*)}{}
738 This command displays in its:
739 \begin{description}
740 \item[\emph{not} starred form:] \enquote{$\log$};
741 \item[starred form:] \enquote{$\log*$}.
742 \end{description}
743 \end{docCommand}
744
745 \begin{docCommand}{lg(*)}{}
746 This command displays in its:
747 \begin{description}
748 \item[\emph{not} starred form:] \enquote{$\lg$};
749 \item[starred form:] \enquote{$\lg*$}.
750 \end{description}
751 \end{docCommand}
752
753 \subsection{Sets}
754
755 \subsubsection{Usual sets}
756
757 \begin{docCommand}{bbN}{}
758 This command displays the set of positive integers:
759 \enquote{$\bbN$}.
760 \end{docCommand}
761
762 \begin{docCommand}{bbZ}{}
763 This command displays the set of relative integers:
764 \enquote{$\bbZ$}.
765 \end{docCommand}
766
767 \begin{docCommand}{bbD}{}
768 This command displays the set of decimal numbers: \enquote{$\bbD$}.
769 \end{docCommand}
770
771 \begin{docCommand}{bbQ}{}
772 This command displays the set of rational numbers: \enquote{$\bbQ$}.
773 \end{docCommand}
774
775 \begin{docCommand}{bbR}{}
776 This command displays the set of real numbers: \enquote{$\bbR$}.
777 \end{docCommand}
778
779 \begin{docCommand}{bbC}{}
780 This command displays the set of complex numbers: \enquote{$\bbC$}.
781 \end{docCommand}
782
783 \begin{docCommand}{bbK}{}
784 This command can be used to denote any field. It displays \enquote{$\bbK$}.
785 \end{docCommand}
786
787 \subsubsection{Defining sets}
788
789 \begin{docCommand}[doc updated=2019-03-18]{set}{\marg{definition}\oarg{characterization}}
790 This command displays the set defined by \meta{definition}, with an
791 optional \meta{characterization}\footnote{The part after
792 \enquote{such that}.}.
793 \begin{bodycode}[listing and text]
794 \begin{align}
795 \bbN & = \set{0,1,2,3,\dots} \\
796 \bbZ & = \bbN\cup\set{-n}[n\in\bbN] \\
797 \bbQ & = \set{p/q}[p\in\bbZ,\ q\in\bbN^*] \\
798 \bbQ & = \set{\frac{p}{q}}[p\in\bbZ,\ q\in\bbN^*]
799 \end{align}
800 \end{bodycode}
801 \end{docCommand}
802
803 \subsection[Trigonometric and hyperbolic functions]{Trigonometric and
804 hyperbolic functions, direct and inverse}
805
806 \begin{dbremark}{French-specific commands}{}
807 The commands in this section are only defined (or redefined) for articles in French.
808 \end{dbremark}
809
810 \begin{docCommand}{cot}{}
811 This command displays the cotangent function: \enquote{$\cot$}. Its
812 alias is \docAuxCommand{cotan}.
813 \end{docCommand}
814
815 \begin{docCommand}{arccos}{}
816 This command displays (the principal value of) the arccosine function:
817 \enquote{\selectlanguage{French}$\arccos$}.
818 \end{docCommand}
819
820 \begin{docCommand}{arcsin}{}
821 This command displays (the principal value of) the arcsine function:
822 \enquote{\selectlanguage{French}$\arcsin$}.
823 \end{docCommand}
824
825 \begin{docCommand}{arctan}{}
826 This command displays (the principal value of) the arctangent function:
827 \enquote{\selectlanguage{French}$\arctan$}.
828 \end{docCommand}
829
830 \begin{docCommand}{cosh}{}
831 This command displays the hyperbolic cosine function:
832 \enquote{\selectlanguage{French}$\cosh$}. Its alias is \docAuxCommand{ch}.
833 \end{docCommand}
834
835 \begin{docCommand}{sinh}{}
836 This command displays the hyperbolic sine function:
837 \enquote{\selectlanguage{French}$\sinh$}. Its alias is \docAuxCommand{sh}.
838 \end{docCommand}
839
840 \begin{docCommand}{tanh}{}
841 This command displays the hyperbolic tangent function:
842 \enquote{\selectlanguage{French}$\tanh$}.
843 \begin{dbremark}{No \protect\docAuxCommand{th} command for the hyperbolic tangent function}{}
844 The ×\th× command is already defined in \LaTeX{} and therefore
845 cannot be used for the hyperbolic tangent function.
846 \end{dbremark}
847 \end{docCommand}
848
849 \begin{docCommand}{arccosh}{}
850 This command displays the inverse hyperbolic cosine function:
851 \enquote{\selectlanguage{French}$\arccosh$}.
852 Its alias is \docAuxCommand{Argch}.
853 \end{docCommand}
854
855 \begin{docCommand}{arcsinh}{}
856 This command displays the inverse hyperbolic sine function:
857 \enquote{\selectlanguage{French}$\arcsinh$}. Its alias is
858 \docAuxCommand{Argsh}.
859 \end{docCommand}
860
861 \begin{docCommand}{arctanh}{}
862 This command displays the inverse hyperbolic tangent function:
863 \enquote{\selectlanguage{French}$\arctanh$}. Its alias is
864 \docAuxCommand{Argth}.
865 \end{docCommand}
866
867
868 \subsection{Pairs of delimiters}
869
870 \subsubsection{Preset commands}
871
872 The class provides some commands listed in \vref{com-paired}, enabling
873 the entry of delimiter pairs, e.g. for norms, absolute values, etc.
874
875 \begin{table}
876 \centering
877 \begin{tabular}{ll}
878 Commands & Example \\\toprule
879 \docAuxCommand{norm} & $\norm{\cdot}$ \\\midrule
880 \docAuxCommand{lnorm} & $\lnorm{\cdot}$ \\\midrule
881 \docAuxCommand{llnorm} & $\llnorm{\cdot}$ \\\midrule
882 \docAuxCommand{lpnorm} & $\lpnorm{\cdot}$ \\\midrule
883 \docAuxCommand{supnorm} & $\supnorm{\cdot}$ \\\midrule
884 \docAuxCommand{abs} & $\abs{\cdot}$ \\\midrule
885 \docAuxCommand{prt} & $\prt{\cdot}$ \\\midrule
886 \docAuxCommand{brk} & $\brk{\cdot}$ \\\midrule
887 \docAuxCommand{brc} & $\brc{\cdot}$ \\\midrule
888 \docAuxCommand{leqgeq} & $\leqgeq{\cdot}$ \\\midrule
889 \docAuxCommand{lrangle} & $\lrangle{\cdot}$ \\\bottomrule
890 \end{tabular}
891 \caption{Commands enabling
892 the entry of usual delimiter pairs}
893 \label{com-paired}
894 \end{table}
895
896 Since these commands all have the same syntax, only the
897 \docAuxCommand{norm} command is detailed.
898
899 \begin{docCommand*}{norm}{\oarg{parameter size}\marg{argument}}
900 This command displays the norm of \meta{argument}.
901
902 The default delimeters height is automatically adjusted to the
903 height of the \meta {argument} but it is possible to specify a
904 \meta{size parameter} as an optional argument:
905 \begin{itemize}
906 \item \docValue{0}: default delimiter size\footnote{Delimiter size in text mode.} ;
907 \item \docValue{1} or \docAuxCommand{big}: delimiter size larger
908 than the previous one;
909 \item \docValue{2} or \docAuxCommand{Big}: delimiter size larger
910 than the previous one;
911 \item \docValue{3} or \docAuxCommand{bigg}: delimiter size larger
912 than the previous one;
913 \item \docValue{4} or \docAuxCommand{Bigg}: delimiter size larger
914 than the previous one;
915 \end{itemize}
916 \end{docCommand*}
917
918 \begin{docCommand}{norm*}{\marg{argument}}
919 This command is equivalent to ×\norm[0]{×\meta{argument}×}×.
920 \end{docCommand}
921
922 \begin{bodycode}[listing and text]
923 \begin{equation}
924 \supnorm{\frac{A}{2}}^k \quad
925 \supnorm[0]{\frac{A}{2}}^k \quad
926 \supnorm[1]{\frac{A}{2}}^k \quad
927 \supnorm[2]{\frac{A}{2}}^k \quad
928 \supnorm[3]{\frac{A}{2}}^k \quad
929 \supnorm[4]{\frac{A}{2}}^k \quad
930 \supnorm*{\frac{A}{2}}^k
931 \end{equation}
932 \end{bodycode}
933
934 \begin{dbremark}{Subscripts of delimiter pairs that do not have default ones}{}
935 It is always possible to manually add a subscript to a delimiter
936 pair command that does not have one by default.
937 \begin{bodycode}[listing and text]
938 \begin{equation}
939 \norm{\frac{A}{2}}_3
940 \end{equation}
941 \end{bodycode}
942 \end{dbremark}
943
944 e\subsubsection{Defining new commands}
945
946 New commands that facilitate the entry of delimiter pairs can be
947 defined by using the \refCom{NewPairedDelimiter} command.
948 %
949 \begin{docCommand}{NewPairedDelimiter}{\marg{command}\marg{options}}
950 This command defines a \meta{command} similar to the
951 \docAuxCommand{norm} command but with left and right delimiters and
952 subscript specified in \meta{options} by using the \refKey{left},
953 \refKey{right} and \refKey{subscript} keys.
954 \begin{docKey}{left}{=\meta{delimiter}}{no default value, initially empty}
955 This key is used to specify the left \meta{delimiter} of the created \meta{command}.
956 \end{docKey}
957 \begin{docKey}{right}{=\meta{delimiter}}{no default value, initially empty}
958 This key is used to specify the right \meta{delimiter} of the created \meta{command}.
959 \end{docKey}
960 \begin{docKey}{subscript}{=\meta{subscript}}{no default value, initially empty}
961 This key is used to specify the \meta{subscript} of the
962 created \meta{command}.
963 \end{docKey}
964 \end{docCommand}
965
966 \NewPairedDelimiter{\floor}{
967 left=\lfloor,
968 right=\rfloor,
969 subscript=\text{eff}
970 }
971 \begin{preamblecode}[listing options={morekeywords={[2]left,right,subscript}}]
972 \NewPairedDelimiter{\floor}{
973 left=\lfloor,
974 right=\rfloor,
975 subscript=\text{eff}
976 }
977 \end{preamblecode}
978 \begin{bodycode}[listing and text]
979 \begin{equation}
980 \floor{\frac{A}{2}}
981 \end{equation}
982 \end{bodycode}
983
984 \subsection{Operators}
985
986 \subsubsection{Preset operators}
987
988 \begin{docCommand}{dif}{}
989 This command displays the \enquote{$\dif$} differential operator used in particular in
990 integrals.
991 \begin{bodycode}[listing and text]
992 \begin{equation}
993 \iiint_T f(x,y,z)\dif x \dif y \dif z=0
994 \end{equation}
995 \end{bodycode}
996 \end{docCommand}
997
998 \begin{docCommand}{grad}{}
999 This command displays the gradient:
1000 \begin{itemize}
1001 \item in the \enquote{$\grad$} form by default;
1002 \item in the \enquote{$\nabla$} form if the \docValue{nabla} value
1003 is put in the \refKey{gradient} key in argument of \refCom{articlesetup} command.
1004 \end{itemize}
1005 \end{docCommand}
1006
1007 \begin{docCommand}{Div}{}
1008 This command displays the divergence operator: \enquote{$\Div$}.
1009 \begin{dbremark}{No command \protect\docAuxCommand{div} for divergence}{}
1010 The ×\div× command is already defined in \LaTeX{} and therefore
1011 cannot be used for divergence.
1012 \end{dbremark}
1013 \end{docCommand}
1014
1015 \begin{docCommand}{curl}{}
1016 This command displays the rotational operator:
1017 \enquote{$\curl$}. Its alias is \docAuxCommand{rot}.
1018 \end{docCommand}
1019
1020 \begin{bodycode}[listing and text]
1021 \begin{align}
1022 \Div F & = \grad \cdot F \\
1023 \curl F & = \grad \wedge F
1024 \end{align}
1025 \end{bodycode}
1026
1027 \begin{docCommand}{supp}{}
1028 This command displays the support (of a function, of a measure, etc.):
1029 \enquote{$\supp$}.
1030 \end{docCommand}
1031
1032 \subsubsection{Defining new operators}
1033
1034 New operators can be defined by using the usual \refCom{DeclareMathOperator} command.
1035
1036 \begin{docCommand}{DeclareMathOperator}{\marg{command}\marg{name}}
1037 This command defines the \meta{command} displaying the operator
1038 named \meta{name}.
1039 \end{docCommand}
1040
1041 \begin{preamblecode}
1042 \DeclareMathOperator{\cat}{Cat}
1043 \end{preamblecode}
1044 \begin{bodycode}[listing and text,listing options={deletekeywords={example},deletekeywords={[4]all}}]
1045 A standard example is $\cat$, the $2$-category of all (small) ideals.
1046 \end{bodycode}
1047
1048 \subsubsection{(Advanced use) Precautions for unusual binary operations}
1049
1050 If, in binary operations, an operator\footnote{Preset or defined with
1051 the \protect\refCom{DeclareMathOperator} command.} is followed by a
1052 usual binary \LaTeX{} operator (\docAuxCommand{circ},
1053 \docAuxCommand{cdot}, \docAuxCommand{wedge}, etc.), the horizontal
1054 spaces between them will be correct.
1055
1056 However, if the binary operator is not common, it should be declared by
1057 using the \refCom{BinaryOperators} command.
1058
1059 \begin{docCommand}{BinaryOperators}{\marg{binary operators}}
1060 This command ensures that the \meta{binary operators}\footnote{Separated
1061 by commas.} will, in binary operations, properly space from the
1062 preceding operators.
1063 \end{docCommand}
1064
1065 \begin{preamblecode}[listing options={moretexcs={mybinop}}]
1066 \newcommand{\mybinop}{\mathbin{*}}
1067 \end{preamblecode}
1068 \begin{bodycode}[listing and text,listing options={moretexcs={mybinop}}]
1069 \begin{tabular}{>{$}l<{$}@{ : }l}
1070 \grad \cdot F & good \\
1071 \grad \mybinop F & bad \\ \BinaryOperators{\mybinop}%
1072 \grad \mybinop F & good (thanks to \verb+\BinaryOperators{\mybinop}+)
1073 \end{tabular}
1074 \end{bodycode}
1075
1076 \subsection{Miscellaneous}
1077
1078 \begin{dbremark}{French-specific commands (bis)}{}
1079 The following commands are only redefined for French articles.
1080 \end{dbremark}
1081
1082 \begin{docCommand}{leq}{}
1083 This command displays \enquote{\selectlanguage{French}$\leqslant$}.
1084 \end{docCommand}
1085 \begin{docCommand}{geq}{}
1086 This command displays \enquote{\selectlanguage{French}$\geqslant$}.
1087 \end{docCommand}
1088
1089 \subsection{\enquote{Theorem} environments}
1090
1091 To easily compose theorems and similar objects, the
1092 \nwejmauthorcl{} provides ready-to-use environments and allows to
1093 create new ones if needed (cf. \refCom{newtheorem} command).
1094
1095 \subsubsection{Preset environments}
1096 \label{sec:envir-de-type}
1097
1098 \vref{env-theorems} on the next page lists theorems and similar
1099 objects predefined by the
1100 \nwejmauthorcl{} with:
1101 \begin{description}
1102 \item[in column~1] The names of the corresponding environments;
1103 \item[in column~2] Their recurring titles (automatically translated into
1104 the article language).
1105 \end{description}
1106
1107 \begin{table}
1108 \centering
1109 \begin{tabular}{ll}
1110 Environment & Title (here in French) \\\toprule
1111 \docAuxEnvironment{theorem} & Théorème \\\midrule
1112 \docAuxEnvironment{corollary} & Corollaire \\\midrule
1113 \docAuxEnvironment{conjecture} & Conjecture \\\midrule
1114 \docAuxEnvironment{proposition} & Proposition \\\midrule
1115 \docAuxEnvironment{lemma} & Lemme \\\midrule
1116 \docAuxEnvironment{axiom} & Axiome \\\midrule[.75pt]
1117 \docAuxEnvironment{definition} & Définition \\\midrule
1118 \docAuxEnvironment{remark} & Remarque \\\midrule
1119 \docAuxEnvironment{example} & Example \\\midrule
1120 \docAuxEnvironment{notation} & Notation \\\midrule[.75pt]
1121 \docAuxEnvironment{proof} & Preuve \\\bottomrule
1122 \end{tabular}
1123 \caption{\enquote{theorem}-like environments}
1124 \label{env-theorems}
1125 \end{table}
1126
1127 \begin{dbremark}{Unnumbered \enquote{theorem}}{}
1128 Each environment in \vref{env-theorems} has a starred version
1129 that creates an unnumbered version of a \enquote{theorem}-like
1130 object.
1131 \end{dbremark}
1132
1133 \begin{bodycode}[listing and text]
1134 \begin{theorem}
1135 Every metrizable and sequentially compact space is compact.
1136 \end{theorem}
1137 \begin{definition}[congruence modulo $n$]
1138 Let $n$ be an integer greater than or equal to~$2$. Two integers $a$ and $b$
1139 are said to be congruent modulo $n$ if $a - b \in n\bbZ$.
1140 \end{definition}
1141 \begin{remark*}
1142 One of the most beautiful mathematical relationships is $\E[i\pi]+1=0$.
1143 \end{remark*}
1144 \begin{proof}
1145 Everything that is rare is expensive. A cheap horse is rare.
1146 So a cheap horse is expensive.
1147 \end{proof}
1148 \end{bodycode}
1149
1150 In the previous example, the \enquote{theorems} have different
1151 formattings. The \nwejmauthorcl{} provides three \enquote{theorem}
1152 styles, \docValue{theorem}, \docValue{definition} and
1153 \docValue{proof}, see their characteristics in
1154 \vref{env-theorems-styles}.
1155
1156 \begin{table}
1157 \centering
1158 % \setlength{\tymin}{\widthof{romain, terminé}}
1159 \begin{tabulary}{\linewidth}{lLLL}
1160 Style & Recurrent title & Content
1161 & Relevant \enquote{theorems} \\\toprule
1162 \docValue{theorem} & bold, roman, numbered & italic
1163 & theorems, corollaries, conjectures, propositions, lemmas, axioms \\\midrule
1164 \docValue{definition} & bold, roman, numbered & roman & definitions, remarks, examples, notations \\\midrule
1165 \docValue{proof} & non bold, italic, non numbered & roman,
1166 ended
1167 with a
1168 white square & proofs \\\bottomrule
1169 \end{tabulary}
1170 \caption{Provided \enquote{theorems} styles}
1171 \label{env-theorems-styles}
1172 \end{table}
1173
1174 \subsubsection{User-defined environments}
1175 \label{sec:envir-de-type-1}
1176
1177 If the \enquote{theorem} environments provided by the class are not
1178 enough, the \refCom{newtheorem} command can create new ones.
1179
1180 \begin{docCommand}{newtheorem}{\oarg{option(s)}\marg{name}}
1181 This command creates a new \LaTeX{} environment, \meta{name}, which
1182 has by default:
1183 \begin{itemize}
1184 \item \meta{Name}\footnote{\Ie*{}, regardless of the article
1185 language, the \meta{name} of the \LaTeX{} environment with a
1186 capital initial letter.} as recurring title;
1187 \item \docValue{theorem} as a style.
1188 \end{itemize}
1189 This command also creates the starry environment \meta{name}×*×
1190 which produce unnumbered occurrences of this \enquote{theorem}.
1191
1192 \begin{preamblecode}[listing options={deletekeywords={[2]article}}]
1193 \newtheorem{article}
1194 \end{preamblecode}
1195 \begin{bodycode}[listing and text,listing options={deletekeywords={[2]article,label}}]
1196 \begin{article*}[Establishment of the Union]
1197 Reflecting the will of the citizens and States of Europe to build a
1198 common future, this Constitution establishes the European Union [...]
1199 \end{article*}
1200 \begin{article}[Establishment of the Union]\label{premier}
1201 Reflecting the will of the citizens and States of Europe to build a
1202 common future, this Constitution establishes the European Union [...]
1203 \end{article}
1204 \vref{premier} is fundamental.
1205 \end{bodycode}
1206
1207 If the default value of the style (\docValue{theorem}) is not
1208 suitable, you can specify in \meta{option(s)} the desired one with
1209 the following \refKey{style} key.
1210 \begin{docKey}{style}{=\docValue{theorem}\textbar\docValue{definition}\textbar\docValue{proof}}{
1211 no default value,\\initially \docValue{theorem}}
1212 This key allows you to specify the style of the \enquote{theorem}
1213 to be created, using \docValue{theorem}, \docValue{definition} and
1214 \docValue{proof} values.
1215 \end{docKey}
1216 \begin{preamblecode}
1217 \newtheorem[style=definition]{fact}
1218 \end{preamblecode}
1219 \begin{bodycode}[listing and text,listing options={deletekeywords={[2]label}}]
1220 \begin{fact}\label{major}
1221 Everything that is rare is expensive.
1222 \end{fact}
1223 \begin{fact}\label{minor}
1224 A cheap horse is rare.
1225 \end{fact}
1226 According to \cref{minor,major}, a cheap horse is expensive.
1227 \end{bodycode}
1228
1229 \begin{dbremark}{Accented characters in environment names: accepted}{}
1230 Accented characters are accepted in environment names, as shown in the
1231 following example.
1232 \end{dbremark}
1233
1234 \begin{preamblecode}
1235 \newtheorem{exposé}
1236 \end{preamblecode}
1237 \begin{bodycode}[listing and text,listing options={deletekeywords={[2]label}}]
1238 \begin{exposé}\label{one}
1239 This is about government corruption [...]
1240 \end{exposé}
1241 \begin{exposé}\label{two}
1242 This is about business corruption [...]
1243 \end{exposé}
1244 The \vref{one,two} highlight [...]
1245 \end{bodycode}
1246
1247 If the default value of the recurring title (\meta{Name}) is not
1248 suitable, you can specify in \meta{option(s)} the desired one with
1249 the following \refKey{title} key.
1250 \begin{docKey}{title}{={\meta{recurring title}}}{no default value,
1251 initially empty}
1252 This key allows you to specify a \meta{recurring title} different from
1253 \meta{Name}, regardless of the article language.
1254 \end{docKey}
1255 \begin{preamblecode}
1256 \newtheorem[title=random experiment]{rexp}
1257 \end{preamblecode}
1258 \begin{bodycode}[listing and text,listing options={deletekeywords={[2]label}}]
1259 \begin{rexp}\label{rexp:one}
1260 A 6-sided dice is rolled [...]
1261 \end{rexp}
1262 \begin{rexp}\label{rexp:two}
1263 Two 6-sided dice are rolled [...]
1264 \end{rexp}
1265 The \vref{rexp:one,rexp:two} highlight [...]
1266
1267 The \vref{rexp:one} highlights [...].
1268 \end{bodycode}
1269
1270 \end{docCommand}
1271
1272 Note that, in the case of cross-references using the
1273 \refCom{vref}\footnote{See \vref{sec-references-croisees}.}(or \refCom{cref})
1274 command, the recurring title of the referenced \enquote{theorem(s)} is
1275 automatically added to the reference, possibly on its plural form. By default,
1276 this latter is obtained by adding a final \enquote{s} in \meta{name} or in
1277 \meta{recurring title} set in the title option. If this form should be
1278 constructed differently, this should be specified in \meta{option(s)} using
1279 the following \refKey{title-plural} key.
1280
1281 \begin{docKey}{title-plural}{=\meta{plural form}}{no default\\value, initially empty}
1282 This key is used to specify the plural form of the recurring title.
1283 \end{docKey}
1284 \begin{preamblecode}
1285 \newtheorem[title-plural=Criteria]{criterion}
1286 \end{preamblecode}
1287 \begin{bodycode}[listing and text,listing options={deletekeywords={[2]label}}]
1288 \begin{criterion}\label{criterion}
1289 As a starting point, we consider [...]
1290 \end{criterion}
1291 \begin{criterion}\label{criterion-bis}
1292 Now, consider the following [...]
1293 \end{criterion}
1294 Considering \vref{criterion,criterion-bis}, we have [...]
1295 \end{bodycode}
1296
1297 \subsection{Enumerations}
1298 \label{sec:list-dhyp-ou}
1299
1300 To make the composition of enumerations (of hypothesis, assertions,
1301 conditions, etc.) easier, the \nwejmauthorcl{} provides ready-to-use
1302 environments and allows to create new ones if needed (see the
1303 \refCom{newenumeration} command).
1304
1305 \subsubsection{Predefined enumerations}
1306 \label{sec:predefinies-:-listes}
1307
1308 In mathematical articles, it is common to enumerate assertions,
1309 hypothesis or conditions and to refer to these. To do this, the
1310 \nwejmauthorcl{} provides three environments: \refEnv{assertions},
1311 \refEnv{hypotheses} and \refEnv{conditions}. Each assertion,
1312 hypothesis or condition is introduced by the \docAuxCommand{item} command.
1313
1314 \begin{docEnvironment}[doclang/environment content=assertions]{assertions}{}
1315 This environment composes a list of assertions.
1316 \end{docEnvironment}
1317 \begin{docEnvironment}[doclang/environment content=hypothesis]{hypotheses}{}
1318 This environment composes a list of hypothesis
1319 \end{docEnvironment}
1320 \begin{docEnvironment}[doc new=2019-03-18,doclang/environment content=conditions]{conditions}{}
1321 This environment composes a list of conditions.
1322 \end{docEnvironment}
1323
1324 \begin{bodycode}[listing and text,listing options={deletekeywords={[2]label}}]
1325 \begin{axiom}\label{my-axiom}
1326 Each of the following assertions are admitted.
1327 \begin{assertions}
1328 \item\label{rare-expensive} Everything that is rare is expensive.
1329 \item\label{horse}A cheap horse is rare.
1330 \end{assertions}
1331 \end{axiom}
1332 According to the \vref{rare-expensive, horse} of \vref{my-axiom}, a
1333 cheap horse is expensive.
1334 \end{bodycode}
1335
1336 \subsubsection{User-defined enumerations}
1337
1338 If the enumerations provided by the class are not enough, it is
1339 possible to create new ones via the \refCom{newenumeration} command.
1340
1341 \begin{docCommand}[doc new=2019-03-18]{newenumeration}{\oarg{option(s)}\marg{name}}
1342 This command create a new \LaTeX{} environment , \meta{name}, which
1343 is used as the usual \docAuxEnvironment{enumerate} environment of
1344 ordered lists and in which each item is introduced by the
1345 \docAuxCommand{item} command.
1346
1347 \begin{preamblecode}
1348 \newenumeration{conventions}
1349 \end{preamblecode}
1350 \begin{bodycode}[listing and text]
1351 \begin{conventions}
1352 \item The horse is cheap.
1353 \item The horse is expensive.
1354 \end{conventions}
1355 \end{bodycode}
1356
1357 We note that each listed item has a default label consisting of the
1358 initial of the \meta{name} indexed by an Arabic numeral, all in
1359 parentheses. If this label is not suitable, we can specify the desired
1360 one in the \meta{option(s)} with the \refKey{label} key.
1361 \begin{docKey}{label}{={\meta{label}}}{no default value, initially initial of \meta{name}}
1362 This key is used to specify a \meta{label} different from the
1363 initial of the environment \meta{name}.
1364 \end{docKey}
1365 \renewenumeration[label=K]{conventions}
1366 \begin{preamblecode}
1367 \newenumeration[label=K]{conventions}
1368 \end{preamblecode}
1369 \begin{bodycode}[listing and text,listing options={deletekeywords={[2]label}}]
1370 \begin{conventions}
1371 \item\label{k-one} The horse is cheap.
1372 \item\label{k-two} The horse is expensive.
1373 \end{conventions}
1374 See \vref{k-one}. See \vref{k-one,k-two}.
1375 \end{bodycode}
1376
1377 Note that when cross-referencing using the \refCom{vref} (or
1378 \refCom{cref}) command\footnote{See \vref{sec-references-croisees}.},
1379 the \meta{name} of the referenced enumerations is automatically added
1380 to the reference, in its singular or plural form as appropriate. By default,
1381 \begin{description}
1382 \item[The plural form] is the \meta{name} ;
1383 \item[The singular form] is obtained by deleting the last
1384 letter\footnote{Supposed to be an \enquote{s}.} of the \meta{name}.
1385 \end{description}
1386
1387 If these singular or plural forms must be built differently, they
1388 should be specified in the \meta{option(s)} via
1389 the following \refKey{singular} and \refKey{plural} keys.
1390 \begin{docKey}{singular}{={\meta{singular form of the
1391 enumeration}}}{no default value,\\initially empty}
1392 This key is used to specify the singular form of the enumeration.
1393 \end{docKey}
1394 \begin{docKey}{plural}{={\meta{plural form of the
1395 enumeration}}}{no default value,\\initially empty}
1396 This key is used to specify the plural form of the enumeration.
1397 \end{docKey}
1398 \begin{preamblecode}
1399 \newenumeration[singular=criterion]{criteria} % Otherwise, sing. form = “criteri”.
1400 \end{preamblecode}
1401 \begin{bodycode}[listing and text,listing options={deletekeywords={[2]label}}]
1402 \begin{criteria}
1403 \item\label{criterion-one} The horse is cheap.
1404 \item\label{criterion-two} The horse is expensive.
1405 \end{criteria}
1406 See \vref{criterion-one}. See \vref{criterion-one,criterion-two}.
1407 \end{bodycode}
1408
1409 \begin{preamblecode}
1410 \newenumeration[singular=rôle,plural=rôles]{roles}
1411 \end{preamblecode}
1412 \begin{bodycode}[listing and text,listing options={deletekeywords={[2]label}}]
1413 \begin{roles}
1414 \item\label{role-one} The horse is cheap.
1415 \item\label{role-two} The horse is expensive.
1416 \end{roles}
1417 Cf. \vref{role-one}. Cf. \vref{role-one,role-two}.
1418 \end{bodycode}
1419 %
1420 \end{docCommand}
1421
1422 If necessary, the \refCom{renewenumeration} command can be used to
1423 redefine an enumeration previously defined with the
1424 \refCom{newenumeration} command.
1425
1426 \begin{docCommand}[doc new=2019-03-18]{renewenumeration}{\oarg{option(s)}\marg{name}}
1427 This command redefines the enumeration environment \meta{name}. Its
1428 \meta{option(s)} are the same as those of the
1429 \refCom{newenumeration} command.
1430 \end{docCommand}
1431
1432 \section{Generalist commands}
1433 \label{sec:comm-gener}
1434
1435 In addition to math-specific commands, the \nwejmauthorcl{} provides
1436 generalist commands to make easier the input of an article to be
1437 published in \nwejm{}.
1438
1439
1440 \begin{docCommand}{ie(*)}{}
1441 This command displays the phrase \enquote{\ie*{}} translated into
1442 the language of the article, in the form:
1443 \begin{description}
1444 \item[\emph{non} starred:] abbreviated to \enquote{\ie{}} ;
1445 \item[starred:] in unabbreviated form \enquote{\ie*{}}.
1446 \end{description}
1447 \end{docCommand}
1448
1449 \begin{docCommand}{Ie(*)}{}
1450 This command displays the phrase \enquote{\Ie*{}} translated into
1451 the language of the article, in the form:
1452 \begin{description}
1453 \item[\emph{non} starred:] abbreviated to \enquote{\Ie{}} ;
1454 \item[starred:] in unabbreviated form \enquote{\Ie*{}}.
1455 \end{description}
1456 \end{docCommand}
1457
1458 \begin{docCommand}{century(*)}{\marg{number}}
1459 This command displays the ordinal of the \meta{number}\footnote{This
1460 number must be a non-zero integer, negative if
1461 appropriate.}\footnote{In French and German, \meta{number} is
1462 written in Roman numerals and small capitals.} of a century,
1463 followed by the word \enquote{century} translated into the article language
1464 and by the possible mention that it is a century before our era. Thus:
1465 \begin{bodycode}[listing and text]
1466 In the \century{-1}, [...]. Later, in the \century{8}, [...]
1467 \end{bodycode}
1468 The starred version displays only the ordinal (unless the \meta{number} is
1469 negative). Thus:
1470 \begin{bodycode}[listing and text]
1471 Agriculture in the \century*{-1} was [...].
1472 The poetry of the \century*{19} has profoundly marked [...].
1473 \end{bodycode}
1474 \end{docCommand}
1475
1476 \begin{docCommand}{aside(*)}{\marg{text}}
1477 This command allows you to compose \meta{text} between long dashes.
1478 \begin{description}
1479 \item[In the non starred form,] it inserts the \meta{text} between
1480 two long dashes.
1481 \item[In the starred form,] the \meta{text} is simply preceded by a
1482 dash. This is to be used at the end of a sentence.
1483 \end{description}
1484 Thus :
1485 \begin{bodycode}[listing and text]
1486 Experiences \aside{in the \enquote{real} word} have been triggered by digital experiences.
1487 \end{bodycode}
1488 and:
1489 \begin{bodycode}[listing and text,listing options={deletekeywords={example}}]
1490 It is suspected not \aside*{for example it is expected that $1/\pi$ is not a period}.
1491 \end{bodycode}
1492 \end{docCommand}
1493
1494 \begin{docCommand}{nwejm}{}
1495 This command displays:
1496 \begin{description}
1497 \item[In the \emph{non} starred form:] the abbreviated version \enquote{\nwejm{}};
1498 \item[In the starred form:] the \emph{non} abbreviated version \enquote{\nwejm*{}}.
1499 \end{description}
1500 \end{docCommand}
1501
1502 \section{Selection of tools from third party packages}
1503
1504 This section lists some tools (commands and environments) provided by
1505 packages automatically loaded by the
1506 \nwejmauthorcl\footnote{L'\vref{sec-packages-charges-ou-pas} lists
1507 those whose features may be useful for authors.}.
1508
1509 \begin{dbwarning}{Non-exhaustive list of features from third party packages}{}
1510 This lists is \emph{non exhaustive}:
1511 \begin{itemize}
1512 \item Only a tiny fraction of the existing packages are loaded by
1513 the class;
1514 \item Only some of the packages loaded by the class are mentioned;
1515 \item Only some features of the mentioned packages are
1516 described. More information is available in the documentation of
1517 these packages.
1518 \end{itemize}
1519 \end{dbwarning}
1520
1521 \subsection{Cross-referencing}
1522 \label{sec-references-croisees}
1523
1524 \DeclareFixedFootnote{\objets}{Section, equation, theorem, figure,
1525 array, etc.}
1526
1527 The following commands \refCom{cref} and \refCom{vref} provide powerful
1528 cross-reference management.
1529
1530 \begin{docCommand}{cref}{\brackets{\meta{label$_1$},...,\meta{label$_n$}}}
1531 If one or more objects\objets{} are labelled with
1532 \lstinline[deletekeywords={[2]label}]×\label{×\meta{label$_1$}×}×,...,
1533 \lstinline[deletekeywords={[2]label}]×\label{×\meta{label$_n$}×}×, the command
1534 \refCom{cref}:
1535 \begin{itemize}
1536 \item displays their numbers\footnote{Surrounded by brackets where
1537 customary, e.g. for equations.};
1538 \item detects their nature\objets{} and displays the corresponding
1539 keywords\footnote{Feature provided behind the scenes by the
1540 \Package{zref-clever} package.} before their numbers, automatically
1541 translated into the article language\footnote{Feature provided by the
1542 \nwejmauthorcl.}.
1543 \end{itemize}
1544 %
1545 \begin{bodycode}[listing and text]
1546 Please refer to \cref{sec-title,sec-authors} [...]
1547 \end{bodycode}
1548 \end{docCommand}
1549
1550 \begin{docCommand}{vref}{\brackets{\meta{label$_1$},...,\meta{label$_n$}}}
1551 This command:
1552 \begin{itemize}
1553 \item includes the features of \refCom{cref};
1554 \item displays\footnote{Or not, depending on the context.} the (numbers of
1555 the) pages where they are located\footnote{Feature provided behind the
1556 scenes by the \Package{zref-vario} (which itself relies on the
1557 \Package{varioref}).} after the numbers of the referenced objects.
1558 \end{itemize}
1559
1560 %
1561 \begin{bodycode}[listing and text]
1562 Please refer to \vref{sec-title,sec-authors} [...]
1563 \end{bodycode}
1564 \end{docCommand}
1565
1566 \begin{dbremark}{Hyperlinks to a referenced object}{}
1567 The numbers and possible \aside{numbers of} pages of the
1568 cross-references created with \refCom{cref} and \refCom{vref}
1569 are hyperlinks to referenced objects\footnote{Feature provided by the \Package{hyperref}.}.
1570 \end{dbremark}
1571
1572 % \begin{dbremark}{\docAuxCommand{ref} et \docAuxCommand{eqref} : clones de \protect\refCom{vref}}{}
1573 % Les traditionnelles commandes \docAuxCommand{ref} et \docAuxCommand{eqref} ont
1574 % été redéfinies par la \nwejmauthorcl pour fonctionner de façon identique
1575 % à \refCom{vref}.
1576 % \end{dbremark}
1577
1578 % \subsection{\enquote{Équations} (non-)numérotées}
1579 % \label{sec:equat-non-numer}
1580 %
1581 % Le lecteur, rompu à la composition de formules de mathématiques, connaît
1582 % certainement le \Package*{amsmath} et les environnements qu'il fournit :
1583 % \begin{itemize}
1584 % \item ×equation×, ×align×, ×gather×, ×multline× et ×flalign× qui numérotent
1585 % leur contenu ;
1586 % \item ×equation*×, ×align*×, ×gather*×, ×multline*× et ×flalign*× qui \emph{ne}
1587 % numérotent \emph{pas} leur contenu ;
1588 % \end{itemize}
1589 % et utilise les premiers si (et seulement si, théoriquement) les contenus
1590 % correspondants font l'objet de références croisées.
1591 %
1592 % Avoir à choisir entre les versions numérotées ou pas présente au moins deux
1593 % inconvénients pour l'utilisateur :
1594 % \begin{enumerate}
1595 % \item cela l'oblige à se poser à chaque fois la question de la pertinence de la
1596 % numérotation de sa formule ;
1597 % \item son choix peut ultérieurement s'avérer caduc\footnote{Et donc nécessiter
1598 % de passer par exemple d'un environnement étoilé à un non-étoilé \aside*{donc
1599 % avec ajout d'un label}.}.
1600 % \end{enumerate}
1601 % Pour pallier cela, la \nwejmauthorcl{} charge automatiquement le
1602 % \Package{autonum} qui :
1603 % \begin{enumerate}
1604 % \item permet de ne recourir qu'aux environnements non-étoilés ;
1605 % \item assure automatiquement que les formules effectivement numérotées seront
1606 % celles, et seulement celles, s'avérant faire l'objet de références croisées au
1607 % sein du document.
1608 % \end{enumerate}
1609 %
1610 % \begin{bodycode}[listing and text]
1611 % L'\vref{euler-identity} mérite une référence croisée.
1612 % \begin{equation}\label{euler-identity}
1613 % \E[\I\pi]+1=0
1614 % \end{equation}
1615 % C'est bien la seule ici.
1616 % \begin{equation}\label{not-interesting}
1617 % 0=0
1618 % \end{equation}
1619 % Malheureusement.
1620 % \begin{equation}
1621 % 1=1
1622 % \end{equation}
1623 % \end{bodycode}
1624
1625 \subsection{Acronyms}
1626 \label{sec:acronymes}
1627
1628 Acronyms often need to be used in mathematical articles. To this end,
1629 the \Package{glossaries} offers a very efficient and simple feature:
1630 just use the commands:
1631 \begin{itemize}
1632 \item \refCom{newacronym} to \emph{define} an acronym;
1633 \item \refCom{gls} (or \refCom{acrshort}) to \emph{display} an acronym.
1634 \end{itemize}
1635
1636 \begin{docCommand}{newacronym}{\marg{key}\marg{short form}\marg{long form}}
1637 This command, best used in the preamble, defines an acronym where:
1638 \begin{enumerate}
1639 \item \meta{key} identifies the acronym uniquely in the
1640 document\footnote{The author should be careful not to use the same
1641 key twice to identify different acronyms.};
1642 \item \meta{short form} is the acronym itself;
1643 \item \meta{long form} is the meaning of the acronym.
1644 \end{enumerate}
1645 \begin{dbwarning}{Short form of acronyms: in lowercase}{}
1646 The \meta{short form} of an acronym has to be entered exclusively
1647 in lowercase since it will be actually composed in small capitals.
1648 \end{dbwarning}
1649 \end{docCommand}
1650
1651 \begin{docCommand}{gls}{\marg{key}}
1652 This command displays the acronym identified by \marg{key}
1653 according to the following principle:
1654 \begin{enumerate}
1655 \item The first occurrence of this command in the document displays
1656 the acronym in its \emph{complete} form, \ie*{} its \meta{long
1657 form} followed by its \meta{short form} in brackets;
1658 \item The following ones display the acronym only in \meta{short form}.
1659 \end{enumerate}
1660 \end{docCommand}
1661
1662 \begin{preamblecode}[listing options={alsolanguage={[glossaries]TeX}}]
1663 \newacronym{bap}{bap}{bounded approximation property}
1664 \end{preamblecode}
1665 \begin{bodycode}[listing and text,listing options={alsolanguage={[glossaries]TeX}}]
1666 \begin{enumerate}
1667 \item \gls{bap},
1668 \item \gls{bap}.
1669 \end{enumerate}
1670 \end{bodycode}
1671
1672 \begin{docCommand}{acrshort}{\marg{key}}
1673 This command displays (only) the \meta{short form} of the acronym,
1674 whatever the context\footnote{\Ie*{} even if it is the first time the acronym is used in the document.}.
1675 \end{docCommand}
1676
1677 \begin{dbremark}{The \refCom{acrshort} command: useful in a title}{}
1678 The \refCom{acrshort} command can be useful in particular in the
1679 article title where you do not want the full form of an acronym to
1680 be detailed.
1681 \end{dbremark}
1682
1683 The \Package*{glossaries} provides many other commands and
1684 features\autocite[For more details, see for instance][]{Bitouze7}.
1685
1686 \subsection{Quotes, citations}
1687 \label{sec-guillemets-citations}
1688
1689 The \Package*{csquotes} is dedicated to formal and informal citations,
1690 and text excerpts. It includes the following easy-to-use \refCom{enquote}
1691 command.
1692
1693 \begin{docCommand}{enquote}{\marg{text}}
1694 This command composes the \meta{text} in quotation marks, automatically
1695 adapted to:
1696 \begin{itemize}
1697 \item The typographic standards of the current language. It will
1698 therefore be used whenever text is to be enclosed in quotes;
1699 \item The level (1 or 2) of \enquote{citation} in case of
1700 nesting. It can therefore be used whenever text is to be
1701 informally quoted.
1702 \end{itemize}
1703 \begin{bodycode}[listing and text,listing
1704 options={alsolanguage={[csquotes]TeX}}]
1705 he replied: \enquote{Courteline used to say: \enquote{To be taken for
1706 an idiot in the eyes of an imbecile is the pleasure of a fine gourmet.}}
1707 \end{bodycode}
1708 \end{docCommand}
1709
1710 \begin{docCommand}{blockcquote}{\marg{key}\marg{excerpt}}
1711 This command allows you to quote an \meta{excerpt}
1712 formally\footnote{\Ie*{} with details of the source.}. The
1713 corresponding bibliographic reference must be included in one of the
1714 added \footnote{Using the \docAuxCommand{addbibresource} command} \file{.bib} files
1715 and identified by the key \meta{key}.
1716
1717 \renewcommand{\thempfootnote}{\arabic{mpfootnote}}
1718 \begin{bodycode}[listing and text,listing options={alsolanguage={[biblatex]TeX},alsolanguage={[csquotes]TeX},deletekeywords={[3]footnote}}]
1719 \citeauthor{Bitouze} specifies that:
1720 \blockcquote{Bitouze}{%
1721 \textins{This} command composes the citations by detaching
1722 automatically from the current paragraph those which are
1723 long.%
1724 }.
1725 \end{bodycode}
1726 % \footnote{By default, those exceeding 3~lines.}
1727 \renewcommand{\thempfootnote}{\alph{mpfootnote}}
1728 \end{docCommand}
1729
1730 The \refCom{blockcquote} command has optional arguments allowing to
1731 add text \meta{prior} and/or \meta{subsequent} to the excerpt
1732 citation\autocite[For more details, see for instance][]{Bitouze}.
1733
1734 % (\textsc{À suivre...})
1735
1736 \subsection{Web addresses (\texorpdfstring{\acrshort{url}}{URL})}
1737 \label{sec-url}
1738
1739 The \Package*{hyperref} provides (among other things) the \refCom{url}
1740 command, which makes it easy the display of web adresses, also known
1741 as \enquote{\gls{url}}, even if they contain special \TeX{} characters (×#×,
1742 %
1743 \lstinline[commentstyle={}]+%+,
1744 %
1745 ×_×, ×~×, ×&×, etc.): these characters can therefore be entered as
1746 they are, unless the \refCom{url} command is used in the argument of
1747 another command\footnote{For instance
1748 \protect\docAuxCommand*{footnote}.}, in which case the ×#× and
1749 %
1750 \lstinline[commentstyle={}]+%+
1751 %
1752 characters must be preceded by the backslash command ×\×.
1753
1754 \begin{docCommand}{url}{\marg{Web address}}
1755 This command displays the \meta{Web address} entered \emph{as is}
1756 and makes it a hypertext link.
1757 \begin{bodycode}[listing and text,listing options={alsolanguage={[hyperref]TeX},deletekeywords={[2]url}}]
1758 We refer to the instructions to authors on our website
1759 \url{http://math.univ-lille1.fr/~nwejm/#Authors}.
1760 \end{bodycode}
1761 \end{docCommand}
1762
1763 \subsection{Lists within paragraphs}
1764 \label{sec:listes-en-ligne}
1765
1766 The reader is certainly familiar with the \docAuxEnvironment{itemize}, \docAuxEnvironment{enumerate} and
1767 \docAuxEnvironment{description} environments for creating respectively
1768 unordered\footnote{\enquote{Bulleted}.}, ordered\footnote{\Ie*{}
1769 numbered} and \enquote{description} lists. The \Package*{enumitem}
1770 provides starred versions of these environments which compose these
1771 lists within the same paragraph\footnote{The first aim of this package
1772 is to customize lists, but this is not recommended in the \nwejm{}
1773 framework as it may contravene its typographic approach.}.
1774
1775 \begin{docEnvironment}[doclang/environment content=list]{itemize*}{}
1776 This environment composes a \enquote{bulleted} list.
1777 \end{docEnvironment}
1778 \begin{docEnvironment}[doclang/environment content=list]{enumerate*}{}
1779 This environment composes a \enquote{numbered} list.
1780 \end{docEnvironment}
1781 \begin{docEnvironment}[doclang/environment content=list]{description*}{}
1782 This environment composes a \enquote{description} list.
1783 \end{docEnvironment}
1784
1785 \begin{bodycode}[listing and text,listing options={alsolanguage={[hyperref]TeX},deletekeywords={math},deletekeywords={[2]url,math}}]
1786 \begin{enumerate}
1787 \item The data I have collected [...]
1788 \item The data I have collected are
1789 \begin{enumerate*}
1790 \item publicly available on the internet: web pages and CVs of speakers;
1791 \item accessible via Wikipedia, through the precious
1792 \enquote{mathematics genealogy project}
1793 (\url{http://genealogy.math.ndsu.nodak.edu/});
1794 \item for 60 of the speakers for whom my information was too incomplete, [...].
1795 \end{enumerate*}
1796 \end{enumerate}
1797 \end{bodycode}
1798
1799 \appendix
1800
1801 \section{Typical source file outline}
1802 \label{sec-canevas-de-fichier}
1803
1804 Readers wishing to write an article in the \nwejm*{} will below an
1805 outline of a source file which is a typical template for a standard
1806 article. The less frequent commands and environments have been
1807 commented out. It is attached to the PDF file of this
1808 documentation\footnote{To extract it, it should be enough to click on
1809 the icon below. It can also be copied and pasted: most \textsc{pdf} viewers
1810 allow you to select and copy text.}.
1811 %
1812 \newcommand{\attachfilename}{template.tex}%
1813 \newcommand{\attachfiletextlink}{Typical source file outline}%
1814 \tcbinputlisting{%
1815 samples,
1816 fontupper=\scriptsize\ttfamily,
1817 listing only,
1818 listing file=../examples/\attachfilename,
1819 title={\attachfiletextlink\ \attachfile{../examples/\attachfilename}},%
1820 listing options={alsolanguage={[biblatex]TeX},deletekeywords={[2]title,author,keywords},deletekeywords={[5]keywords},extendedchars=true}
1821 }
1822
1823 \section{Packages loaded (or not) by the class}\label{sec-packages-charges-ou-pas}
1824
1825 \subsection{Packages loaded by the class}\label{sec:packages-charges-par}
1826
1827 We have seen that, for several of its features, the \nwejmauthorcl{}
1828 relies on automatically loaded packages. Those whose features can be
1829 useful to the authors of \nwejm{} articles are listed below. Their
1830 function and possible option(s) are indicated.
1831
1832 In addition to the specific tools to the \nwejmauthorcl, all those
1833 provided by these different packages are therefore available to \nwejm{}
1834 authors.
1835
1836 \begin{description}
1837 \item[\package{nag}:] reporting\footnote{In the form of \emph{warnings}.} of obsolete packages, commands and environments:
1838 \begin{description}
1839 \item[default options:] \docAuxKey{l2tabu}, \docAuxKey{orthodox};
1840 \end{description}
1841 \item[\package{kpfonts} :] main font of the document:
1842 \begin{description}
1843 \item[default options:] \docAuxKey{noDcommand};
1844 \end{description}
1845 \item[\package{graphicx}:] image inclusion;
1846 \item[\package{subcaption}:] sub-figures and sub-arrays;
1847 \item[\package{adjustbox}:] adjusting box position, for example of images;
1848 \item[\package{xspace}:] defining commands that don't \enquote{eat}
1849 the space that follows;
1850 \item[\package{array}:] extending (and bug-fixing) array environments;
1851 \item[\package{booktabs}:] professional-looking arrays;
1852 \item[\package{csquotes}:] informal and formal citations\footnote{With
1853 citation of sources,
1854 see \vref{sec-guillemets-citations}.}:
1855 \begin{description}
1856 \item[default option:] \docAuxKey{autostyle};
1857 \item[default setting:]
1858 \lstinline[alsolanguage={[csquotes]TeX},alsolanguage={[biblatex]TeX}]×\SetCiteCommand{\autocite}×;
1859 \end{description}
1860 \item[\package{biblatex}:] powerfull bibliography management;
1861 \item[\package{datetime2}:] date and time formats:
1862 \begin{description}
1863 \item[default option:] \docAuxKey{useregional};
1864 \end{description}
1865 \item[\package{hyperref} :] support for hyperlinks\footnote{See \vref{sec-url}.}:
1866 \begin{description}
1867 \item[default option:] \docAuxKey{hidelinks},
1868 \docAuxKey{pdfencoding}\lstinline[alsolanguage={[hyperref]TeX}]×=unicode×,
1869 \docAuxKey{final}, \docAuxKey{breaklinks},
1870 \docAuxKey{hypertexnames}×=false×;
1871 \end{description}
1872 \item[\package{glossaries}:] creation of glossaries and (lists of) acronyms:
1873 \begin{description}
1874 \item[default option:] \docAuxKey{nowarn};
1875 \end{description}
1876 \item[\package{zref-clever} :] smart cross-references\footnote{See
1877 \vref{sec-references-croisees}.}.
1878 \item[\package{zref-varioref} :] smart page references.
1879 \end{description}
1880
1881 \subsection{Packages not loaded by the class}\label{sec:packages-non-charges}
1882
1883 The following list, for from being exhaustive, lists packages not
1884 loaded by the \nwejmauthorcl{} but which may prove useful to
1885 authors. In addition, when manually loaded, some of them have options
1886 or settings set by the \nwejmauthorcl{}, the most notable of which are specified.
1887
1888 \begin{description}
1889 \item[\package{tikz-cd}:] easy creation of very high quality
1890 commutative diagrams\footnote{The \Package{xy}, often used for such
1891 diagrams, is incompatible with the present class:
1892 See \vref{sec-incompatibilites}.};
1893 \item[\package{pgfplots}:] easy creation of very high quality ($2$D
1894 or $3$D) figures to represent functions or experimental data;
1895 \item[\package{siunitx}:] management of numbers, angles and units, and vertical
1896 alignment on the decimal separator in tables:
1897 \begin{description}
1898 \item[default option:]\
1899 \begin{itemize}
1900 \item \docAuxKey{detect-all};
1901 \item \docAuxKey{locale}×=×\docValue{FR} or \docValue{UK} or \docValue{DE}
1902 depending on the article language;
1903 \end{itemize}
1904 \end{description}
1905 \item[\package{listings}:] insertion of computer listings;
1906 \item[\package{todonotes}:] insertion of
1907 \enquote{TODO}\footnote{Reminders of points to add, complete,
1908 modify, etc.}.
1909 \end{description}
1910
1911 \section{Incompatibilities}
1912 \label{sec-incompatibilites}
1913
1914 For technical reasons, the \nwejm{} does not accept a \file{.tex}
1915 source file loading the \Package{xy} and the \nwejmauthor{} will
1916 issue an error in that case. The user who has to compose
1917 \enquote{matrix-like} diagrams, and especially commutative diagrams,
1918 should use the modern and user-friendly \Package{tikz-cd}.
1919
1920 \section{Notations, syntax, terminology and colour coding}\label{sec-synt-term-notat}
1921
1922 We specify here the notations, syntax, terminology and colour coding
1923 of this documentation.
1924
1925 \subsection{Commands, environments, keys, values}\label{sec-comm-envir-cles}
1926
1927 Commands, environments, keys and key values are systematically composed
1928 in monospaced font. In addition, to distinguish them easily, these are
1929 displayed with their own colours:
1930 \begin{itemize}
1931 \item blue commands: \docAuxCommand*{command};
1932 \item \enquote{teal} environments:
1933 \docAuxEnvironment*{environment};
1934 \item purple keys: \docAuxKey*{key};
1935 \item violet keys values: \docValue*{value}.
1936 \end{itemize}
1937
1938 \subsection{Generic arguments}
1939 \label{sec-arguments-generiques}
1940
1941 To explain the role of a command, it is sometimes necessary to
1942 indicate what it applies to. In other words, what its generic argument
1943 is. Such an argument is composed:
1944 \begin{itemize}
1945 \item in monospaced font;
1946 \item in italics;
1947 \item between single rafters;
1948 \end{itemize}
1949 all in brown, thus: \meta{generic argument}.
1950
1951 \subsection{Hyperlinks}
1952 \label{sec-liens-hypertextes}
1953
1954 Hyperlinks are shown in colour, as follows:
1955 \href{http://gte.univ-littoral.fr/members/dbitouze/pub/latex}{hyperlink}. Most
1956 references to commands, environments and keys defined in this document
1957 are hyperlinks, topped by the page number where the corresponding
1958 target is located (unless it is on the same page):
1959 \begin{itemize}
1960 \item \refCom{author};
1961 \item \refEnv{abstract}.
1962 \end{itemize}
1963
1964
1965 \subsection{\enquote{Mandatory} elements}
1966 \label{sec-comm-oblig}
1967
1968 The \mandatory{} icon next to certain items (commands or
1969 environments) indicates that they are \enquote{mandatory}.
1970
1971 \subsection{Source codes}
1972 \label{sec-codes-sources}
1973
1974 The examples in this documentation consist of source code and, where
1975 appropriate, the corresponding \endquote{screen shots}.
1976 % Ceux-ci proviennent le plus souvent du spécimen de document composé avec la
1977 % \yatcl, fourni avec l'ensemble de la classe
1978 % (cf. \vref{sec-specimen-arborescence}).
1979
1980 These source codes are shown in blue boxes, which may include a title:
1981 \begin{itemize}
1982 \item unshaded if they are to be entered in the body of the document;
1983 \begin{bodycode}
1984 "\meta{source code}"
1985 \end{bodycode}
1986 \begin{bodycode}[title=\meta{title}]
1987 "\meta{source code}"
1988 \end{bodycode}
1989 \item shaded if they are to be entered in the preamble of the file.
1990 \begin{preamblecode}
1991 "\meta{source code to be inserted in preamble}"
1992 \end{preamblecode}
1993 \begin{preamblecode}[title=\meta{title}]
1994 "\meta{source code to be inserted in preamble}"
1995 \end{preamblecode}
1996 \end{itemize}
1997
1998 \subsection{Spaces in source code}
1999 \label{sec-espaces-dans-les}
2000
2001 To avoid confusion, spaces in source code that must be entered using
2002 the keyboard are sometimes realized with the \lstinline[showspaces]+ +. mark.
2003
2004 \subsection{Options}
2005 \label{sec-options}
2006
2007 This class, and some of its commands and environments, can be adjusted
2008 with options, or lists of options (separated by commas). These options
2009 can be in the form \meta{key}×=×\meta{value} and the inputted
2010 \meta{value} can be:
2011 %^^A \begin{description}
2012 %^^A \item[ne prennent pas de valeur.] Une telle option, par exemple nommée
2013 %^^A \refKey{option}, est alors documentée selon la syntaxe suivante:
2014 %^^A \begin{docKey*}{option}{}{\meta{valeurs par défaut et initiale}}
2015 %^^A \meta{Description de \refKey{option}}
2016 %^^A \end{docKey*}
2017 %^^A \item[prennent des valeurs.] Une telle option se présente alors sous la forme
2018 %^^A \meta{clé}"="\meta{valeur}. Les valeurs passées à une clé peuvent être :
2019 \begin{description}
2020 \item[free.] If such a \meta{key} is for instance named
2021 \refKey{freekey}, then it is documented according to the following syntax:
2022 \begin{docKey*}{freekey}{=\meta{value}}{\meta{default
2023 and initial values}}
2024 \meta{Description of \refKey{freekey}}
2025 \end{docKey*}
2026 \item[imposed] (from a list of possible values). If such a \meta{key}
2027 is for instance named \refKey{choicekey} and with imposed values
2028 \docValue*{value1}, \dots{}, \docValue*{valueN}, then it is
2029 documented according to the following syntax\footnote{As is often
2030 the case in computing, the vertical bar to separate the possible
2031 values means \enquote{or}.}:
2032 \begin{docKey*}{choicekey}{=\docValue*{value1}\textbar...\textbar\docValue*{valueN}}{\meta{default
2033 and initial values}}
2034 \meta{Description of \refKey{choicekey} and its possible values}
2035 \end{docKey*}
2036 \end{description}
2037 %^^A \end{description}
2038
2039 The \meta{default and initial values} of a key are often specified (in
2040 brackets at the end of a line). They indicate the value of the key:
2041 \begin{description}
2042 \item[by default] i.e. when the key \emph{is} used \emph{alone}
2043 i.e. without any explicit value imputed;
2044 \item[initially] i.e. when the key \emph{is not} used.
2045 \end{description}
2046 %
2047 \printbibliography[category=documentation]
2048 %
2049 % \tcblistof{dbwarninglist}{Table des
2050 % avertissements\addcontentsline{toc}{section}{Table des avertissements}}%
2051 % \tcblistof{dbremarklist}{Table des remarques\addcontentsline{toc}{section}{Table
2052 % des remarques}}%
2053 % \tcblistof[\chapter*]{dbexamplelist}{Table des exemples\addcontentsline{toc}{chapter}{Table des exemples}}%
2054 % \tcblistof[\chapter*]{dbfaqlist}{Table des
2055 % questions\addcontentsline{toc}{chapter}{Table des questions}
2056 %
2057 \printindex
2058 \end{document}
2059
2060 %%% Local Variables:
2061 %%% mode: latex
2062 %%% TeX-master: t
2063 %%% End: