Debian Codegraph @

texmf-dist/source/latex/nwejm/nwejm.dtx

raw
1 % \iffalse meta-comment
2 %<*internal>
3 \iffalse
4 %</internal>
5 % \begin{macrocode}
6 %<*ctanomat>
7 % \end{macrocode}
8 % This is a description file for ctan-o-mat.
9 % It manages uploads of a package to
10 % CTAN -- the Comprehensive TeX Archive Network.
11 %
12 % The syntax is roughly oriented towards (La)TeX.
13 % Two form of the macros are used. The simple macros take one argument
14 % in braces. Here the argument may not contain embedded macros.
15 %
16 % The second form uses an environment enclosed in \begin{}/\end{}.
17 % In the long text fields logo macros can be used.
18 %
19 % You should enter your values between the begin and the end of the
20 % named type.
21 % -------------------------------------------------------------------------
22 % This field contains the CTAN id of the package.
23 % The value is optional.
24 % The value is restricted to 32 characters.
25 \pkg{nwejm}
26 % -------------------------------------------------------------------------
27 % This field contains the version of the package.
28 % The value is optional.
29 % The value is restricted to 32 characters.
30 \version{2.1 2026-02-19}
31 % -------------------------------------------------------------------------
32 % This field contains the name of the author(s).
33 % The value is optional.
34 % The value is restricted to 128 characters.
35 \author{Denis Bitouzé}
36 % -------------------------------------------------------------------------
37 % This field contains the email address of the uploader.
38 % The value is an email address.
39 % The value is restricted to 255 characters.
40 \email{[email protected]}
41 % -------------------------------------------------------------------------
42 % This field contains the name of the uploader.
43 % The value is restricted to 255 characters.
44 \uploader{Denis Bitouzé}
45 % -------------------------------------------------------------------------
46 % This field contains the directory on CTAN.
47 % The value is optional.
48 % The value is restricted to 255 characters.
49 \ctanPath{/macros/latex/contrib/nwejm}
50 % -------------------------------------------------------------------------
51 % This field contains the license.
52 % The value is optional.
53 % The value is restricted to 2048 characters.
54 % Multiple values are allowed.
55 \license{lppl1.3c}
56 % -------------------------------------------------------------------------
57 % This field contains the URL of the home page.
58 % The value is optional.
59 % The value is a URL.
60 % The value is restricted to 255 characters.
61 % Multiple values are allowed.
62 \home{}
63 % -------------------------------------------------------------------------
64 % This field contains the URL of the bug tracker.
65 % The value is optional.
66 % The value is a URL.
67 % The value is restricted to 255 characters.
68 % Multiple values are allowed.
69 \bugtracker{https://github.com/dbitouze/nwejm/issues/}
70 % -------------------------------------------------------------------------
71 % This field contains the support channel.
72 % The value is optional.
73 % The value is a URL.
74 % The value is restricted to 255 characters.
75 % Multiple values are allowed.
76 \support{}
77 % -------------------------------------------------------------------------
78 % This field contains the version management.
79 % The value is optional.
80 % The value is a URL.
81 % The value is restricted to 255 characters.
82 % Multiple values are allowed.
83 \repository{https://github.com/dbitouze/nwejm/}
84 % -------------------------------------------------------------------------
85 % This field contains the developer's channel.
86 % The value is optional.
87 % The value is a URL.
88 % The value is restricted to 255 characters.
89 % Multiple values are allowed.
90 \development{}
91 % -------------------------------------------------------------------------
92 % This field contains the update indicator; true for update.
93 % The value is optional.
94 % The value is restricted to 8 characters.
95 \update{true}
96 % -------------------------------------------------------------------------
97 % This field contains the topics id.
98 % The value is optional.
99 % The value is restricted to 1024 characters.
100 % Multiple values are allowed.
101 \topic{}
102 % -------------------------------------------------------------------------
103 % This field contains the text for the mail announcement.
104 % The value is optional.
105 % The value is restricted to 8192 characters.
106 \begin{announcement}
107 \end{announcement}
108 % -------------------------------------------------------------------------
109 % This field contains the one-liner for the package.
110 % The value is optional.
111 % The value is restricted to 128 characters.
112 \summary{Support for the journal “North-Western European Journal of Mathematics”}
113 % -------------------------------------------------------------------------
114 % This field contains the descriptive abstract for the package.
115 % The value is optional.
116 % The value is restricted to 4096 characters.
117 \begin{description}
118 The bundle includes LaTeX classes and BibLaTeX styles files dedicated to the new
119 journal [“North-Western European Journal of
120 Mathematics”](https://nwejm.univ-lille.fr/):
121 - nwejm for the complete issues of the journal, aimed at the NWEJM’s team,
122 - nwejmart, intended for the authors who wish to publish an article in the NWEJM. This class’s goal is to:
123 - faithfully reproduce the layout of the nwejm, thus enabling the authors to be able to work their document in actual conditions,
124 - provide a number of tools (commands and environments) to facilitate the drafting of documents, in particular those containing mathematical formulas.
125 \end{description}
126 % -------------------------------------------------------------------------
127 % This field contains the note to the CTAN upload managers.
128 % The value is optional.
129 % The value is restricted to 2048 characters.
130 \begin{note}
131 \end{note}
132 % -------------------------------------------------------------------------
133 % This field contains the archive file.
134 % The value is the file name of the archive to be uploaded.
135 % It may have a relative or absolute directory.
136 \file{../dtx-forge/nwejm.zip}
137 % \begin{macrocode}
138 %</ctanomat>
139 % \end{macrocode}
140 %
141 % \begin{macrocode}
142 %<*changelog>
143 % \end{macrocode}
144 # [Unreleased]
145
146 # [2.1] - 2026-02-19
147
148 ## Changed
149 - `title-plural` key reintroduced.
150
151 # [2.0] - 2026-02-10
152
153 ## Fixed
154 - The bundle now relies on `keytheorems`, `zref-clever`, `zrefvario` instead of `ntheorem`, `thmtools`, `cleveref` (breaks backward compatibility but rollback provided).
155 - Use of arguments inconsistent with expl3 language specification (gh #5).
156 - Code improved (thanks to explcheck!)
157
158 ## Changed
159 - `title-plural=⟨plural⟩` replaced by `refname={⟨singular⟩,⟨plural⟩}`.
160 - Documentation updated.
161
162 ## Deprecated
163 - `title-plural`.
164
165 # [1.0.6] - 2024-02-08
166
167 ## Fixed
168 - (First) Page numbers could be not the same in whole issue and in standalone
169 articles.
170 - Minor tweaks in the code.
171
172 # [1.0.5] - 2022-09-21
173
174 ## Fixed
175 (First) Page numbers could be not the same in whole issue and in standalone articles.
176
177 ## Added
178 English translation of the documentation.
179
180 ## Changed
181 `\fixpagenumber` restricted to preamble (`nwejm` class only, not used by the authors).
182
183 # [1.0.4] - 2022-02-21
184
185 ## Changed
186 Logo file renamed for consistency.
187
188 # [1.0.3] - 2022-02-02
189
190 ## Added
191 - Add the ability to fit the TOC on a reduced number of pages.
192 - Warning in the documentation and in the template about the necessity to use both `biblatex` and `biber`.
193
194 ## Fixed
195 - Authors in headers appeared one page too early.
196 - `\begin{alignat}{X}...` displayed “X”.
197 - Boring warning “unable to apply patch 'eqnum'”.
198 - Conflicts between `tikzcd` and (Dutch) `babel`.
199
200 # [1.0.2] - 2021-10-12
201
202 ## Fixed
203 - Bug gh #4 (https://git.io/JKLYW).
204 - Fix bug in case of engine other than `pdftex`.
205
206 # [1.0.1] - 2020-03-18
207
208 ## Fixed
209 - Track changes in `expl3`.
210 - Fix bugs due to changes in `expl3`.
211
212 # [1.0.0] - 2020-01-28
213
214 ## Added
215 - README file.
216 - CHANGELOG file (following https://keepachangelog.com/en/1.0.0/).
217 - Semantic versionning (following https://semver.org/).
218 - Publication director, composer, masthead (not for the articles' authors).
219
220 ## Fixed
221 - Track changes in `expl3`.
222
223 # [0.98f] - 2019-03-18
224
225 ## Added
226 - Built-in “conditions” enumeration.
227 - New public command for easily create new enumerations.
228
229 ## Changed
230 - “Such that” symbol in sets definitions now is `\vert` instead of `\slash`.
231 - `authoryear` bib and cite style changed for `authoryear-comp`.
232 - Hyperfootnotes now true.
233 - Documentation improved.
234 - Plural forms of (new) theorems now handled.
235 - Command `\textcite` revisited.
236 - Minor other changes.
237
238 ## Fixed
239 - Several bug fixes.
240
241 # [0.98e] - 2018-04-07
242
243 ## Changed
244 - Track changes in `expl3`.
245 - Support for `biblatex` 3.8 changes.
246 - “Cont. next page” notifications for `align` and `multline` across page breaks.
247 - *Breaking change* `flalign(*)` and `alignat(*)` now are aliases of `align(*)`
248 (needed for the previous feature).
249 - *Breaking change* Package `autonum` not loaded anymore: `equation`, `align`,
250 `gather`, `multline` and `flalign` that have to be un-numbered should now be
251 starred.
252 - Some new, minor, features.
253
254 ## Fixed
255 - Several bug fixes.
256
257 # [0.98c] - 2017-02-09
258
259 ## Fixed
260 - Fix error due to `l3sort` is now available directly on loading `expl3`.
261
262 # [0.98b] - 2017-02-06
263
264 ## Changed
265 - Adjustments because of deprecated functions removed from `expl3`.
266
267 ## Fixed
268 - Fix “n.d.” appeared in case `.bib` files use `year` field instead of `date`
269 field.
270 - Other minor bug fix.
271
272 # [0.98a] - 2017-01-06
273
274 ## Changed
275 - Documentation improved.
276
277 ## Fixed
278 - Bug fixes.
279
280 # [0.97] - 2016-06-10
281
282 ## Added
283 - Instructions to authors
284
285 ## Changed
286 - Package `xy` declared incompatible with the current bundle.
287
288 ## Fixed
289 - Sections in appendices of the documentation are alphabetically numbered.
290 - The page numbers of standalone articles/issue are synchronized.
291
292 # [0.96] - 2016-04-14
293
294 ## Changed
295 - Improvements.
296 - (Not backward compatible) Big sets macros prefixed with `bb`, e.g. `\bbR`
297 instead of `\R`.
298
299 ## Fixed
300 - Bug fixes.
301
302 # [0.95] - 2016-04-04
303
304 - Initial CTAN release of the `nwejm` bundle.
305 % \begin{macrocode}
306 %</changelog>
307 % \end{macrocode}
308 %
309 %<*readme>
310 nwejm - Support for the journal “North-Western European Journal of Mathematics”
311 ===============================================================================
312
313 About
314 -------
315 This bundle includes LaTeX classes and `biblatex` styles files dedicated to the
316 new journal “North-Western European Journal of Mathematics”.
317
318 Release
319 -------
320 2026-02-19 v2.1
321
322 Author
323 ------
324 This package is maintained by Denis Bitouzé: [email protected]
325
326 Development
327 -----------
328 Follow development, submit issues, and suggest improvements at
329 https://github.com/dbitouze/nwejm.
330
331 License
332 -------
333 Released under the LaTeX Project Public License v1.3c or later. See
334 https://www.latex-project.org/lppl.txt
335 %</readme>
336 %<*internal>
337 \fi
338 \def\nameofplainTeX{plain}
339 \ifx\fmtname\nameofplainTeX\else
340 \expandafter\begingroup
341 \fi
342 %</internal>
343 %<*install>
344 \input l3docstrip.tex
345 \Msg{********************************************************}
346 \Msg{* Installation}
347 \Msg{* Class: nwejm 2026-02-19 v2.1}
348 \Msg{* for the journal}
349 \Msg{* "North-Western European Journal of Mathematics" (DB)}
350 \Msg{********************************************************}
351 \keepsilent
352 \askforoverwritefalse
353 \preamble
354 -------:| -----------------------------------------------------------------
355 nwejm:| Class for the journal "North-Western European Journal of Mathematics"
356 Author:| Denis Bitouze
357 E-mail:| [email protected]
358 License:| Released under the LaTeX Project Public License v1.3c or later
359 See:| http://www.latex-project.org/lppl.txt
360
361 \endpreamble
362 \postamble
363
364 Copyright (C) 2015-2026 by Denis Bitouze <[email protected]>
365
366 This work may be distributed and/or modified under the
367 conditions of the LaTeX Project Public License (LPPL), either
368 version 1.3c of this license or (at your option) any later
369 version. The latest version of this license is in the file:
370
371 http://www.latex-project.org/lppl.txt
372
373 This work is "maintained" (as per LPPL maintenance status) by
374 Denis Bitouze.
375
376 This work consists of the file nwejm.dtx and a Makefile.
377 Running "make" generates the derived files README, nwejm.pdf and nwejm.cls.
378 Running "make inst" installs the files in the user's TeX tree.
379 Running "make install" installs the files in the local TeX tree.
380
381 \endpostamble
382 %
383 \def\NWEJM@classname{\jobname}
384 \def\NWEJM@addons{addons}
385 \def\NWEJM@examplestemplate{\jobname-examples-template}
386 %
387 \usedir{tex/latex/\NWEJM@classname}
388 \generate{%
389 \file{\[email protected]}{\from{\jobname.dtx}{class}}
390 \file{\NWEJM@classname art.cls}{\from{\jobname.dtx}{class-article}}
391 \file{\[email protected]}{\from{\jobname.dtx}{datamodel}}
392 \file{\[email protected]}{\from{\jobname.dtx}{citestyle}}
393 \file{\[email protected]}{\from{\jobname.dtx}{bibstyle}}
394 \file{\[email protected]}{\from{\jobname.dtx}{languagemodel}}
395 \nopreamble\nopostamble
396 \file{\[email protected]}{\from{\jobname.dtx}{configuration}}
397 \file{\[email protected]}{\from{\jobname.dtx}{english}}
398 \file{\[email protected]}{\from{\jobname.dtx}{french}}
399 \file{\[email protected]}{\from{\jobname.dtx}{german}}
400 \file{\[email protected]}{\from{\jobname.dtx}{dutch}}
401 }%
402 %</install>
403 %<install>\endbatchfile
404 %<*internal>
405 \usedir{.}
406 \generate{
407 \nopreamble\nopostamble
408 \file{\[email protected]}{\from{\jobname.dtx}{ctanomat}}
409 }%
410 \usedir{source/latex/\NWEJM@classname/logos}
411 \generate{%
412 \nopreamble\nopostamble
413 \file{\[email protected]}{\from{\jobname.dtx}{logos-collection}}
414 }%
415 \usedir{source/latex/\NWEJM@classname}
416 \generate{
417 \file{\[email protected]}{\from{\jobname.dtx}{install}}
418 \file{\[email protected]}{\from{\jobname.dtx}{driver}}%
419 }%
420 \nopreamble\nopostamble
421 \usedir{doc/latex/\NWEJM@classname}
422 \generate{
423 \file{README.md}{\from{\jobname.dtx}{readme}}
424 \file{CHANGELOG.md}{\from{\jobname.dtx}{changelog}}
425 }
426 \usedir{doc/latex/\NWEJM@classname/french}
427 \generate{
428 \file{latexmkrc}{\from{\jobname.dtx}{latexmkrc}}
429 }
430 \usedir{doc/latex/\NWEJM@classname/english}
431 \generate{
432 \file{latexmkrc}{\from{\jobname.dtx}{latexmkrc}}
433 }
434 \usedir{doc/latex/\NWEJM@classname/examples}
435 \generate{
436 \nopreamble\nopostamble
437 \file{article-in-dutch.tex}{\from{\[email protected]}{dutch}}
438 \file{article-in-english.tex}{\from{\[email protected]}{english}}
439 \file{article-in-french.tex}{\from{\[email protected]}{french}}
440 \file{article-in-german.tex}{\from{\[email protected]}{german}}
441 \file{sample.tex}{\from{\[email protected]}{example}}
442 \file{template.tex}{\from{\[email protected]}{template}}
443 \file{issue.tex}{\from{\[email protected]}{issue}}
444 \file{sample.bib}{\from{\[email protected]}{sample-bib}}
445 }%
446 \usedir{doc/latex/\NWEJM@classname/\NWEJM@addons/completion}
447 \generate{%
448 \file{\[email protected]}{\from{\jobname.dtx}{class-cwl}}
449 \file{\NWEJM@classname art.cwl}{\from{\jobname.dtx}{classart-cwl}}
450 }%
451 \ifx\fmtname\nameofplainTeX
452 \expandafter\endbatchfile
453 \else
454 \expandafter\endgroup
455 \fi
456 %</internal>
457 % \fi
458 %
459 % \iffalse
460 %<*driver>
461 \ProvidesFile{nwejm.dtx}
462 \documentclass{ltxdoc}
463 \usepackage[a4paper,margin=25mm,left=50mm,nohead]{geometry}
464 \usepackage[numbered]{hypdoc}
465
466 \EnableCrossrefs
467 \CodelineIndex
468 \RecordChanges
469 \begin{document}
470 \DocInput{\jobname.dtx}
471 \end{document}
472 %</driver>
473 % \fi
474 %
475 % \GetFileInfo{\jobname.dtx}
476 % \DoNotIndex{\newcommand,\newenvironment}
477 %
478 %\title{\textsf{nwejm} --- Class for the journal "North-Western European Journal of Mathematics"\thanks{This file
479 % describes version \fileversion, last revised \filedate.}
480 %}
481 %\author{Denis Bitouze\thanks{E-mail: [email protected]}}
482 %\date{Released \filedate}
483 %
484 %\maketitle
485 %
486 % \changes{v1.0.2}{2021-10-12}{%
487 % \begin{itemize}
488 % \item Fix gh \#4 (\url{https://git.io/JKLYW}).
489 % \item Fix bug in case of other engine than \hologo{pdfTeX}.
490 % \end{itemize}
491 % }%
492 % \changes{v1.0.1}{2020-03-18}{%
493 % \begin{itemize}
494 % \item Fix bugs due to \Package{expl3} changes.
495 % \end{itemize}
496 % }%
497 % \changes{v1.0.0}{2020-01-28}{%
498 % \begin{itemize}
499 % \item ix page numbers of the standalone articles were not deduced from the
500 % whole issue.
501 % \item Fix wrong languages switches in the whole issue.
502 % \item Command for easily create new enumerations.
503 % \item ×\fixpagenumber× command to manually control the page numbers (to be used
504 % instead of ×\setcounter{page}×).
505 % \item Fix language dependant glossaries' rules were correctly applied.
506 % \item Fix layouts were likely different between ×issue× and ×article× versions.
507 % \item Fix unique (auto)citations with multiple keys in case of French.
508 % \item Temporary trick in order to avoid inappropriate capitalization of the
509 % initial after periods abbreviating journals (see
510 % \url{https://github.com/plk/biblatex/issues/851}).
511 % \item ×authoryear× bib and cite style changed for ×authoryear-comp×.
512 % \item "Such that" symbol in sets definitions now is ×\vert× instead of ×\slash×.
513 % \item New built-in enumeration: conditions.
514 % \item Plural forms of (new) theorems now handled.
515 % \item hyperfootnotes now true since it happens bib footnotes texts are not on
516 % the page as footnotes marks.
517 % \item Documentation improved.
518 % \end{itemize}
519 % }%
520 % \changes{v0.98e}{2018/04/07}{Package \package{mathrsfs} replaced by
521 % \Package{rsfso}. Documentation slighty improved.}%
522 % \changes{v0.98d}{2017/02/14}{No functional changes: this new version only
523 % because of missing files in the 0.98c version when uploaded on CTAN.}%
524 % \changes{v0.98c}{2017/02/09}{Example and template files now from `.dtx' and
525 % not sharing the same input file.}%
526 % \changes{v0.98c}{2017/02/09}{Drop \Package{l3sort}' loading since it is
527 % integrated in available directly on loading \Package{expl3}. ×\sort_ordered×
528 % and ×\sort_reversed× renamed to ×\sort_return_same× and
529 % ×\sort_return_swapped×.}%
530 % \changes{v0.98b}{2017/02/06}{Adjustments because of deprecated functions
531 % removed from \Package{expl3}.}%
532 % \changes{v0.98b}{2017/02/06}{Better error message that warns the author of an
533 % article in case he's using the ×nwejm× class instead of the ×nwejmart× one.}%
534 % \changes{v0.98b}{2017/02/06}{Fix wrong behavior in case bib field ×year× used
535 % instead of ×date×.}%
536 % \changes{v0.98a}{2017/01/06}{Adjustments because of deprecated functions
537 % removed from \Package{expl3}.}%
538 % \changes{v0.98a}{2017/01/06}{Fix wrong behavior of ×\grad× command.}%
539 % \changes{v0.98a}{2017/01/06}{Fix theorems recurrent titles weren't displayed
540 % anymore.}%
541 % \changes{v0.98}{2016/10/24}{Some bug fixes.}%
542 % \changes{v0.98}{2016/10/24}{Cover pages handling.}%
543 % \changes{v0.97}{2016/06/10}{\Package{xy} declared incompatible with the
544 % current bundle. Instructions to authors added. Sections in appendices are
545 % lettered. The page numbers of standalone articles/issue are synchronized.}%
546 % \changes{v0.96}{2016/04/14}{Some improvements. Incompatible changes: big sets
547 % macros prefixed with ×bb×, e.g. ×\bbR× instead of ×\R×.}%
548 % \changes{v0.92}{2015/12/10}{First usable release}%
549 % \changes{v0.9}{2015/09/30}{First public release}%
550 %
551 % \begin{abstract}
552 % ==== Put abstract text here. ====
553 % \end{abstract}
554 %
555 % \section{Usage}
556 %
557 % ==== Put descriptive text here. ====
558 %
559 % \DescribeMacro{\dummyMacro}
560 % This macro does nothing.\index{doing nothing|usage} It is merely an
561 % example. If this were a real macro, you would put a paragraph here
562 % describing what the macro is supposed to do, what its mandatory and
563 % optional arguments are, and so forth.
564 %
565 % \DescribeEnv{dummyEnv}
566 % This environment does nothing. It is merely an example.
567 % If this were a real environment, you would put a paragraph here
568 % describing what the environment is supposed to do, what its
569 % mandatory and optional arguments are, and so forth.
570 %
571 %\StopEventually{^^A
572 % \PrintChanges
573 % \PrintIndex
574 %}
575 %
576 % \section{Implementation}
577 %
578 % \begin{macrocode}
579 %<*class|class-article>
580 % \end{macrocode}
581 %
582 % We start by loading some packages that are required to define the \nwejmcl{}
583 % (and its options). Since the latter will make use of the \pkg{expl3}
584 % programming interface (\LaTeX3). In order to load this package, it is enough
585 % to load the \Pkg{xparse} which is anyway needed to produce document-level
586 % commands.
587 %
588 % \begin{itemize}
589 % % \item Sorting lists (since \Pkg{l3sort} is about to move from `experimental'
590 % % to `stable' status, the \File{l3sort.sty} will be removed soonish):
591 % % \begin{macrocode}
592 % \IfFileExists{l3sort.sty}{
593 % \RequirePackage{l3sort}
594 % }{
595 % }
596 % % \end{macrocode}
597 % \item e-\TeX{} tools for \LaTeX:
598 % \begin{macrocode}
599 \RequirePackage{etoolbox}
600 % \end{macrocode}
601 % \end{itemize}
602 %
603 % In order to avoid ×_nwejm× in the name of each internal (i.e. private)
604 % function and variable, we make use of the ×@@× place holder provided by the
605 % \Pkg{l3docstrip}.
606 % \begin{macrocode}
607 %<@@=nwejm>
608 % \end{macrocode}
609 %
610 % \subsection{\LaTeX3 loading}
611 %
612 % For debugging purpose, \Pkg{expl3} could be loaded with its
613 % \docAuxKey*{check-declarations} option.
614 % \begin{macrocode}
615 % \PassOptionsToPackage{check-declarations}{expl3}
616 % \end{macrocode}
617 %
618 % \begin{macrocode}
619 \NeedsTeXFormat{LaTeX2e}[2018-04-01]
620 \providecommand\DeclareRelease[3]{}
621 \providecommand\DeclareCurrentRelease[2]{}
622 \DeclareRelease{}{2024-02-08}{nwejm-2024-02-08.cls}
623 \DeclareCurrentRelease{}{2026-02-19}
624 % \end{macrocode}
625 %
626 % The class is declared in the \LaTeX3{}'s way.
627 % \begin{macrocode}
628 \ProvidesExplClass
629 %<class> {nwejm}
630 %<class-article> {nwejmart}
631 {2026-02-19}
632 {2.1}
633 {
634 Class for the journal "North-Western European Journal of Mathematics".
635 }
636 % \end{macrocode}
637 %
638 % \section{Messages}
639 %
640 % In this section, some messages are declared for future use.
641 % \begin{macrocode}
642 %<class>\msg_new:nnnn{nwejm}{Issue~number~needed}{Option~`#1'~needed!}
643 %<class>{Please~specify~`#1=<number>', ~otherwise~`<number>'~will~be~set~to
644 %<class> ~`\int_use:N\c_@@_first_issue_number_int'.}%
645 %<class>\msg_new:nnn{nwejm}{Wrong~issue's~main~file~name!}{You~ are~ using~ the~
646 %<class> `nwejm'~ class~ designed~ for~ the~ complete~ issues~ of~ the~ NWEJM~ and~
647 %<class> aimed~ for~ the~ NWEJM's~ team,~ not~ for~ authors~ of~ articles:~ if~ you're~
648 %<class> an~ author~ of~ an~ article,~ you~ should~ use~ the~ `nwejmart'~ class~
649 %<class> instead.~ Otherwise,~ if~ you're~ from~ the~ NWEJM's~ team,~ please~ note~
650 %<class> that~ the~ issue's~ main~ file~ should~ be~ named~
651 %<class> `\tl_use:N\c_@@_main_file_name_tl.tex',~ not~ `\c_sys_jobname_str.tex'.~
652 %<class> Please~ rename~ the~ current~ file~ accordingly.}%
653 %<class>\msg_new:nnn{nwejm}{Wrong~cover's~main~file~name!}{The~ cover~ file~ should~
654 %<class> /not/~ be~ named~ as~ the~ issue's~ main~ file~
655 %<class> `\tl_use:N\c_@@_main_file_name_tl.tex'.~ Please~ rename~ the~ current~ file~
656 %<class> accordingly.}%
657 %<class>\msg_new:nnn{nwejm}{Main~file~needs~to~be~compiled!}{The~ issue's~ main~ file~
658 %<class> (`\tl_use:N\c_@@_main_file_name_tl.tex')~ should~ be~ compiled~ at~ least~
659 %<class> once~ before~ the~ cover~ can~ be~ generated.}%
660 \msg_new:nnnn{nwejmart}{Unknown~choice}{Choice~`#3'~invalid!}
661 {Please~specify~#1=#2.}%
662 \msg_new:nnn{
663 %<class-article> nwejmart
664 %<class> nwejm
665 }{Unknown~tag}{There~ isn't~ any~ affiliation~ tagged~
666 with~ `#1'.~ This~ one~ will~ be~ ignored.}%
667 % \msg_new:nnn{
668 % %<class-article> nwejmart
669 % %<class> nwejm
670 % }{Unknown~language}{The~ option~ `#1'~ you~ passed~ isn't~
671 % a~ valid~ language~ name~ (only~ `english',~ `french',~ `ngerman',~ `german',~
672 % `dutch'~ are~ accepted).~ `english'~ will~ be~ used~ instead.}%
673 \msg_new:nnn{nwejmart}{No~keyword}{You~ haven't~ specify~ any~ keyword~ for~
674 this~ article!}%
675 \msg_new:nnn{nwejmart}{No~MSC}{You~ haven't~ specify~ any~ Mathematical~
676 Subject~ Classification~ (MSC)~ for~ this~ article!}%
677 \msg_new:nnn{nwejmart}{No~abstract}{You~ haven't~ specify~ any~ abstract~ for~
678 this~ article!}%
679 \msg_new:nnn{
680 %<class-article> nwejmart
681 %<class> nwejm
682 }{Command~restricted~to~document~body~used~in~preamble}{The~command~#1
683 can~be~used~only~in~document~body~and~not~in~preamble!}%
684 \msg_new:nnn{nwejmart}{Article~setup~not~consistent}{The~ article~ setup~
685 concerning~ the~ option~ `#1'~ has~ changed~ after~ its~ 1st~ use.~ Please~
686 use~ `\string\articlesetup'~ command~ just~ once,~ just~ after~ the~
687 beginning~ of~ the~ document.}%
688 \msg_new:nnn{
689 %<class-article> nwejmart
690 %<class> nwejm
691 }{`xy'~package~not~allowed!}{The~ `xy'~ package~ is~ not~ allowed~ with~ the~
692 `nwejm'~ LaTeX~ classes.~ Please~ use~ instead~ the~ user-friendly~ and~
693 modern~ `tikz-cd'~ package.}%
694 \msg_new:nnn{nwejmart}{Wrong~paired~delimiter's~size~parameter}{The~
695 size~parameter~specified~ (`#1')~is~ not~ allowed:~ only~ `0',~`1'~(or~
696 `\string\big'),~`2'~(or~ `\string\Big'),~`3'~(or~ `\string\big'g)~and~`4'~(or~
697 `\string\Bigg')~ are ~ allowed. ~ It~ will~ be~ ignored.}%
698 %<class-article> \msg_new:nnn{nwejmart}{Something~wrong~with~page~numbers}{The~ first~ page~
699 %<class-article> number~ of~ the~ current~ article~ (`\c_sys_jobname_str.tex')~ is~ supposed~
700 %<class-article> to~ be~ extracted~ from~ the~ file~ `\c_@@_main_file_name_tl.aux`~ but~ the~
701 %<class-article> latter~ doesn't~ contain~ any~ relevant~ information~ for~ this~ purpose.~
702 %<class-article> Double~ check~ the~ `\c_@@_main_file_name_tl.tex'~ file~ actually~ contains~
703 %<class-article> `\string\inputarticle\string{\c_sys_jobname_str\string}'~ and~ the~ resulting~
704 %<class-article> `\c_@@_main_file_name_tl.pdf'~ actually~ contains~ the~ content~ of~ the~
705 %<class-article> current~ article.}%
706 % \end{macrocode}
707 %
708 % In order to automatically fix the first page number each of the articles, we
709 % define a related integer.
710 % \begin{macrocode}
711 %<class-article>\int_new:N \l_@@_first_page_number_int%
712 % \end{macrocode}
713 %
714 % \begin{macrocode}
715 %</class|class-article>
716 % \end{macrocode}
717 %
718 % \subsection{Class options}
719 %
720 % \begin{macrocode}
721 %<*class>
722 % \end{macrocode}
723 %
724 % We define some class options.
725 %
726 % \begin{macrocode}
727 \bool_new:N \g_@@_for_authors_bool
728 \bool_new:N \g_@@_for_printer_bool
729 \bool_new:N \g_@@_cover_bool
730 % \bool_new:N \g_@@_coverpage_bool
731 \bool_new:N \g_@@_inside_pages_bool
732 \bool_new:N \g_@@_show_binding_bool
733 % \end{macrocode}
734 %
735 % \begin{macrocode}
736 \keys_define:nn { nwejm }
737 {
738 output .choice:,
739 output / cover .code:n = {%
740 \bool_gset_true:N \g_@@_for_printer_bool%
741 \bool_gset_true:N \g_@@_cover_bool%
742 },%
743 output / insidepages .code:n = {%
744 \bool_gset_true:N \g_@@_for_printer_bool%
745 \bool_gset_true:N \g_@@_inside_pages_bool%
746 },%
747 binding .dim_gset:N = \g_@@_binding_dim,
748 showbinding .code:n = {%
749 \bool_gset_true:N \g_@@_show_binding_bool%
750 },%
751 }%
752 % \end{macrocode}
753 %
754 % \begin{macrocode}
755 %</class>
756 % \end{macrocode}
757 %
758 % \begin{macrocode}
759 %<*class-article>
760 % \end{macrocode}
761 %
762 % \begin{macrocode}
763 \bool_new:N \g_@@_language_specified_bool
764 \cs_new_protected:Nn \_@@_language:n
765 {
766 \bool_gset_true:N \g_@@_language_specified_bool%
767 \PassOptionsToPackage{main=#1}{babel}
768 \PassOptionsToPackage{#1}{varioref}
769 \AddToHook{begindocument/before}{%
770 \LoadDictionaryFor{#1}{nwejm}
771 \FCloadlang{#1}
772 }
773 \AddToHook{begindocument/end}{%
774 \selectlanguage{#1}
775 }
776 }
777 % \end{macrocode}
778 %
779 % \begin{macrocode}
780 \bool_new:N \g_@@_nolocaltoc_bool
781 % \end{macrocode}
782 %
783 % \begin{macrocode}
784 %</class-article>
785 % \end{macrocode}
786 %
787 % \begin{macrocode}
788 %<*class|class-article>
789 % \end{macrocode}
790 %
791 % \begin{macrocode}
792 \keys_define:nn { nwejm }
793 {
794 10pt .code:n = {%
795 \PassOptionsToClass{10pt}{book}
796 },%
797 11pt .code:n = {%
798 \PassOptionsToClass{11pt}{book}
799 },%
800 12pt .code:n = {%
801 \PassOptionsToClass{12pt}{book}
802 },%
803 draft .code:n = {%
804 \PassOptionsToClass{draft}{book}
805 },%
806 % \end{macrocode}
807 %
808 % \begin{macrocode}
809 %</class|class-article>
810 % \end{macrocode}
811 %
812 % \begin{macrocode}
813 %<*class-article>
814 % \end{macrocode}
815 %
816 % \begin{macrocode}
817 english .code:n = {
818 \_@@_language:n {english}
819 },%
820 french .code:n = {
821 \_@@_language:n {french}
822 },%
823 german .code:n = {
824 \_@@_language:n {ngerman}
825 },%
826 ngerman .code:n = {
827 \_@@_language:n {ngerman}
828 },%
829 dutch .code:n = {
830 \_@@_language:n {dutch}
831 },%
832 % unknown .code:n = {
833 % \msg_warning:nnx{nwejmart}{Unknown~language}{\CurrentOption}
834 % \tl_gset:Nn \g_@@_language_tl {english}
835 % },
836 % \end{macrocode}
837 %
838 % An option to prevent automatic local table of contents at the end of
839 % independent articles.
840 % \begin{macrocode}
841 nolocaltoc .code:n = {
842 \bool_gset_true:N \g_@@_nolocaltoc_bool
843 },%
844 % \end{macrocode}
845 %
846 % \begin{macrocode}
847 %</class-article>
848 % \end{macrocode}
849 %
850 % \begin{macrocode}
851 %<*class|class-article>
852 % \end{macrocode}
853 %
854 % \begin{macrocode}
855 }%
856 % \end{macrocode}
857 %
858 % \begin{macrocode}
859 \ProcessKeyOptions [nwejm]
860 % \end{macrocode}
861 %
862 % \subsection{Class loading}
863 %
864 % As subsequent class, the \Cls{book} is loaded.
865 % \begin{macrocode}
866 \LoadClass { book }
867 \PassOptionsToPackage{export}{adjustbox}%
868 \PassOptionsToPackage{fleqn}{amsmath}%
869 % \end{macrocode}
870 %
871 % \begin{macrocode}
872 %</class|class-article>
873 % \end{macrocode}
874 %
875 % \begin{macrocode}
876 %<*class-article>
877 % \end{macrocode}
878 %
879 % We now treat the case where no language option is passed at ×\documentclass×
880 % level (×english× is the default).
881 % \begin{macrocode}
882 \bool_if:NF \g_@@_language_specified_bool {
883 \_@@_language:n {english}
884 }
885 % \end{macrocode}
886 %
887 % \begin{macrocode}
888 %</class-article>
889 % \end{macrocode}
890 %
891 % \begin{macrocode}
892 %<*class>
893 % \end{macrocode}
894 %
895 % We load the dictionaries containing the translations needed for theorems and
896 % the like.
897 % \begin{macrocode}
898 \AddToHook{begindocument/before}{
899 \LoadDictionaryFor{french}{nwejm}
900 \LoadDictionaryFor{english}{nwejm}
901 \LoadDictionaryFor{dutch}{nwejm}
902 \LoadDictionaryFor{german}{nwejm}
903 }
904 % \end{macrocode}
905 %
906 % \begin{macrocode}
907 \PassOptionsToPackage{french,ngerman,dutch,english}{babel}
908 \PassOptionsToPackage{french,ngerman,dutch,english}{varioref}
909 % \end{macrocode}
910 %
911 % \begin{macrocode}
912 %</class>
913 % \end{macrocode}
914 %
915 % \section{Packages loading}
916 %
917 % \begin{macrocode}
918 %<*class|class-article>
919 % \end{macrocode}
920 %
921 % Many of the \nwejmcl{} features are provided by third party packages. In this
922 % section, we load them and outline their features interesting from the \nwejmcl{}
923 % point of view.\todo{When possible, the list of loaded packages should be split
924 % into two lists: one of the packages needed just by \nwejm{} (for both its logic
925 % and its layout) and one of packages useful for the end user.}
926 %
927 % \item Detecting and warning about obsolete \LaTeX{} commands:
928 % \begin{macrocode}
929 \RequirePackage[l2tabu,orthodox]{nag}
930 % \end{macrocode}
931 %
932 % \item Extension to \Pkg{amsmath}: correct various bugs/defeciencies in amsmath
933 % and useful tools for mathematical typesetting:
934 % \begin{macrocode}
935 \RequirePackage{mathtools}
936 % \end{macrocode}
937 %
938 % \item In case of \hologo{pdfTeX} engine, we enforce \pkg{fontenc} to be
939 % loaded with its \docAuxKey*{T1} option. Otherwise \pkg{fontspec},
940 % convenient for both \hologo{XeLaTeX} and \hologo{LuaLaTeX}, is loaded by the
941 % \pkg{unicode-math} package.
942 % \begin{macrocode}
943 \sys_if_engine_pdftex:TF
944 {
945 % \end{macrocode}
946 %
947 % \item Standard package for selecting font encodings:
948 % \begin{macrocode}
949 \RequirePackage[T1]{fontenc}
950 % \end{macrocode}
951 %
952 % \item Load of main font to be used:
953 % \begin{macrocode}
954 \RequirePackage[noDcommand]{kpfonts}
955 }{
956 % \end{macrocode}
957 %
958 % \item Unicode mathematics support for \hologo{XeTeX} and \hologo{LuaTeX}:
959 % \begin{macrocode}
960 \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math}
961 % \end{macrocode}
962 %
963 % \item OTF version of the Kp-fonts for both roman and sans-serif font, but
964 % LatinModern for the monospaced one.
965 % \begin{macrocode}
966 \RequirePackage[noDcommand]{kpfonts-otf}
967 \setmonofont[Scale = MatchLowercase]{Latin Modern Mono}
968 }
969 % \end{macrocode}
970 %
971 % \item Formatting both header and footers (pagestyle), and sections headers:
972 % \begin{macrocode}
973 \RequirePackage[pagestyles]{titlesec}%
974 % \end{macrocode}
975 %
976 % \item Graphics inclusion:
977 % \begin{macrocode}
978 \RequirePackage{graphicx}%
979 % \end{macrocode}
980 %
981 % \item Graphics package-alike macros for \enquote{general} boxes:
982 % \begin{macrocode}
983 \RequirePackage{adjustbox}%
984 % \end{macrocode}
985 %
986 % \item References to other \LaTeX{} documents:
987 % \begin{macrocode}
988 \RequirePackage{xr}
989 % \end{macrocode}
990 %
991 % \item A range of footnote options:
992 % \begin{macrocode}
993 \RequirePackage[multiple]{footmisc}%
994 % \end{macrocode}
995 %
996 % \item Notes in the margin, even where ×\marginpar× fails:
997 % \begin{macrocode}
998 \RequirePackage{marginnote}%
999 % \end{macrocode}
1000 %
1001 % \item Counter operations with label references:
1002 % \begin{macrocode}
1003 \RequirePackage{refcount}%
1004 % \end{macrocode}
1005 %
1006 % \item Extension of \LaTeX{}'s color facilities:
1007 % \begin{macrocode}
1008 \RequirePackage{xcolor}%
1009 % \end{macrocode}
1010 %
1011 % \item Execute command after the next page break:
1012 % \begin{macrocode}
1013 \RequirePackage{afterpage}%
1014 % \end{macrocode}
1015 %
1016 % \item Determine if the current page is odd or even:
1017 % \begin{macrocode}
1018 \RequirePackage{ifoddpage}%
1019 % \end{macrocode}
1020 %
1021 % \item Control float placement:
1022 % \begin{macrocode}
1023 \RequirePackage{placeins}%
1024 % \end{macrocode}
1025 %
1026 % \item Define commands that appear not to eat spaces:
1027 % \begin{macrocode}
1028 \RequirePackage{xspace}%
1029 % \end{macrocode}
1030 %
1031 % \item Context sensitive quotation facilities:
1032 % \begin{macrocode}
1033 \RequirePackage[autostyle]{csquotes}%
1034 % \end{macrocode}
1035 %
1036 % \item Extended implementation of the \LaTeX{} array and
1037 % tabular–environments:
1038 % \begin{macrocode}
1039 \RequirePackage{array}
1040 % \end{macrocode}
1041 %
1042 % \item Publication quality tables in \LaTeX{}:
1043 % \begin{macrocode}
1044 \RequirePackage{booktabs}
1045 % \end{macrocode}
1046 %
1047 % \item An l3keys interface to amsthm:
1048 % \begin{macrocode}
1049 \RequirePackage{keytheorems}
1050 % \end{macrocode}
1051 %
1052 % \item Vector arrows:
1053 % \begin{macrocode}
1054 \RequirePackage{esvect}
1055 % \end{macrocode}
1056 %
1057 % \item Flexible and easy interface to page dimensions:
1058 % \begin{macrocode}
1059 \RequirePackage{geometry}
1060 % \end{macrocode}
1061 %
1062 % \item Internationalisation of \LaTeXe{} packages:
1063 % \begin{macrocode}
1064 \RequirePackage{translations}%
1065 % \end{macrocode}
1066 %
1067 % \item Provide file name and path of input files:
1068 % \begin{macrocode}
1069 \RequirePackage{currfile}
1070 % \end{macrocode}
1071 %
1072 % \begin{macrocode}
1073 %</class|class-article>
1074 % \end{macrocode}
1075 %
1076 % \begin{macrocode}
1077 %<*class>
1078 % \end{macrocode}
1079 %
1080 % \item Establish input relative to a directory:
1081 % \begin{macrocode}
1082 \RequirePackage{import}%
1083 % \end{macrocode}
1084 %
1085 % \item Put a grey textual watermark on document pages (loaded only if
1086 % "forauthors" \nwejm{}'s option is on):
1087 % \begin{macrocode}
1088 \bool_if:nT { \g_@@_for_authors_bool } {
1089 \RequirePackage{draftwatermark}[2006/06/30]%
1090 }
1091 % \end{macrocode}
1092 %
1093 % \item A new reference scheme for \LaTeX{}, giving the total number of pages in
1094 % the document:
1095 % \begin{macrocode}
1096 \RequirePackage{zref-totpages}
1097 % \end{macrocode}
1098 %
1099 % \item A new reference scheme for \LaTeX{}, providing the facilities of the
1100 % \package{xr} and \package{xr-hyper} packages:
1101 % \begin{macrocode}
1102 \RequirePackage{zref-xr}%
1103 % \end{macrocode}
1104 %
1105 % Some of the packages are needed only when the cover has to be produced.
1106 % \begin{macrocode}
1107 \bool_if:NTF \g_@@_cover_bool {
1108 % \end{macrocode}
1109 %
1110 % \item Coloured boxes, for \LaTeX{} examples and theorems, etc.
1111 % \begin{macrocode}
1112 \RequirePackage{tcolorbox}
1113 % \end{macrocode}
1114 %
1115 % \item A single TikZ node for the whole page (used for cover crop marks)
1116 % \begin{macrocode}
1117 \RequirePackage{tikzpagenodes}
1118 \ExplSyntaxOff
1119 \usetikzlibrary{calc,backgrounds}
1120 \ExplSyntaxOn
1121 \tcbuselibrary{skins}
1122 \tcbset{_@@_title_cover/.style={%
1123 colback=white,
1124 colframe=blue!37!white,
1125 colupper=blue,
1126 width=14cm,
1127 fontupper=\fontsize{9mm}{9mm}\fontseries{bx}\selectfont\sffamily,
1128 halign=center,
1129 valign=center,
1130 % boxsep=3mm,
1131 boxrule=3mm,
1132 left=\c_zero_dim,
1133 right=\c_zero_dim,
1134 sharp~corners,
1135 rounded~corners=northwest,
1136 % draft
1137 }
1138 }
1139 % \end{macrocode}
1140 %
1141 % \item Macros for drawing graphs of graph theory (used for the backcover image)
1142 % \begin{macrocode}
1143 \RequirePackage{tkz-berge}
1144 }{
1145 % \end{macrocode}
1146 %
1147 % Typically, the \Package{standalone} is not used for the cover.
1148 % \item Compile \TeX{} pictures stand-alone or as part of a document:
1149 % \begin{macrocode}
1150 \RequirePackage[group=false,subpreambles,sort]{standalone}%
1151 }
1152 % \end{macrocode}
1153 %
1154 % \item Tools to load and manipulate data:
1155 % \begin{macrocode}
1156 \RequirePackage{datatool}%
1157 % \end{macrocode}
1158 %
1159 % \begin{macrocode}
1160 %</class>
1161 % \end{macrocode}
1162 %
1163 % \begin{macrocode}
1164 %<*class|class-article>
1165 % \end{macrocode}
1166 %
1167 % \item Display the value of a \LaTeX{} counter in a variety of formats
1168 % \begin{macrocode}
1169 \RequirePackage{fmtcount}%
1170 % \end{macrocode}
1171 %
1172 % \item Multilingual support for Plain TeX or LaTeX:
1173 % \begin{macrocode}
1174 \RequirePackage{babel}%
1175 % \end{macrocode}
1176 %
1177 % \item :
1178 % \begin{macrocode}
1179 \RequirePackage{listings}%
1180 % \end{macrocode}
1181 %
1182 % \item Support for sub-captions (rather sub-floats):
1183 % \begin{macrocode}
1184 \RequirePackage{subcaption}
1185 % \end{macrocode}
1186 %
1187 % \item Section numbering (and table of contents control but this is canceled
1188 % by \Package{etoc}):
1189 % \begin{macrocode}
1190 \RequirePackage{tocvsec2}
1191 % \end{macrocode}
1192 %
1193 % \item Control table of contents, figures, etc.
1194 % \begin{macrocode}
1195 \RequirePackage{tocloft}%
1196 \gdef\ttl@savemark{}
1197 % \end{macrocode}
1198 %
1199 % \item Completely customisable TOCs:
1200 % \begin{macrocode}
1201 \RequirePackage{etoc}%
1202 % \end{macrocode}
1203 %
1204 % \item Subliminal refinements towards typographical perfection:
1205 % \begin{macrocode}
1206 \RequirePackage[babel=true,nopatch=eqnum,final,nopatch=footnote]{microtype}%
1207 % \end{macrocode}
1208 %
1209 % \item Current date and time formatting:
1210 % \begin{macrocode}
1211 \RequirePackage[useregional]{datetime2}%
1212 % \end{macrocode}
1213 %
1214 % \item Customization of lists:
1215 % \begin{macrocode}
1216 \RequirePackage[inline]{enumitem}%
1217 % \end{macrocode}
1218 %
1219 % \item A couple of things involving environments:
1220 % \begin{macrocode}
1221 \RequirePackage{environ}
1222 % \end{macrocode}
1223 %
1224 % \item Programmable bibliographies and citations (loaded with a dedicated style):
1225 % \begin{macrocode}
1226 \RequirePackage[backend=biber,style=nwejm]{biblatex}%
1227 \ExecuteBibliographyOptions{defernumbers=true,dashed=false,uniquename=init,backref,safeinputenc}
1228 % \end{macrocode}
1229 %
1230 % \item Hypertext marks:
1231 % \begin{macrocode}
1232 \RequirePackage[pdfencoding=unicode,final]{hyperref}%
1233 \AddToHook{begindocument/before}{%
1234 \hypersetup{hidelinks,hypertexnames=false,breaklinks}%
1235 }%
1236 % \end{macrocode}
1237 %
1238 % \item Adjusting the anchors of captions:
1239 % \begin{macrocode}
1240 \RequirePackage[all]{hypcap}
1241 % \end{macrocode}
1242 %
1243 % \item A new bookmark (outline) organization for \Pkg{hyperref}:
1244 % \begin{macrocode}
1245 \RequirePackage[numbered]{bookmark}%
1246 % \end{macrocode}
1247 %
1248 % \item Create glossaries and lists of acronyms:
1249 % \begin{macrocode}
1250 \RequirePackage[nowarn]{glossaries}%
1251 % \end{macrocode}
1252 %
1253 % \item Clever LaTeX cross-references based on \Pkg{zref}:
1254 % \begin{macrocode}
1255 \RequirePackage{zref-clever}%
1256 % \end{macrocode}
1257 %
1258 % \item Extended LaTeX page cross-references with \Pkg{varioref} and
1259 % \Pkg{zref-clever}:
1260 % \begin{macrocode}
1261 \RequirePackage{zref-vario}%
1262 % \end{macrocode}
1263 %
1264 % \end{enumerate}
1265 %
1266 % \section{Debugging (start)}
1267 %
1268 % \begin{macrocode}
1269 % \debug_on:n {
1270 % check-declarations,
1271 % check-expressions,
1272 % deprecation,
1273 % % log-functions
1274 % }
1275 % \end{macrocode}
1276 %
1277 % Setings of the glossaries and acronyms.
1278 % \begin{macrocode}
1279 \makeglossaries
1280 %
1281 \setglossarystyle{indexhypergroup}
1282 \setacronymstyle{long-sc-short}
1283 \glsdisablehyper
1284 % \end{macrocode}
1285 %
1286 % \section{Counters}
1287 %
1288 % In this section, we define some counters for future use.
1289 %
1290 % \begin{macro}{\g_@@_articles_int}
1291 % The integer "\g_@@_articles_int" will count the number of articles in order to
1292 % provide for each of them a unique bibliographic key.
1293 % \begin{macrocode}
1294 \int_new:N \g_@@_articles_int
1295 % \end{macrocode}
1296 % \end{macro}
1297 %
1298 % \begin{macro}{\g_@@_counters_to_be_reset_clist}
1299 % We create a new comma list that will gather all the counters (in particular
1300 % the ones associated to the (numbered) theorem environments, defined either
1301 % by the class or by the user), we want to be able to easily set to zero at the end
1302 % of each article input:
1303 % \begin{macrocode}
1304 \clist_new:N \g_@@_counters_to_be_reset_clist
1305 % \end{macrocode}
1306 % \end{macro}
1307 %
1308 % \section{Constants}
1309 %
1310 % In this section, we declared some constants for future use.
1311 %
1312 % \subsection{Integers}
1313 %
1314 % \subsubsection{Issue numbers}
1315 %
1316 % \begin{macro}{\c_@@_first_issue_number_int}
1317 % \begin{macro}{\c_@@_first_issue_year_int}
1318 % \begin{macro}{\c_@@_first_issue_month_int}
1319 % \begin{macro}{\c_@@_interval_in_months_int}
1320 % The first issue number, month and year, and the interval (in months) between
1321 % two consecutive issues, are declared.
1322 % \begin{macrocode}
1323 %<class>\int_const:Nn \c_@@_first_issue_number_int { 1 }
1324 %<class>\int_const:Nn \c_@@_first_issue_year_int { 2015 }
1325 %<class>\int_const:Nn \c_@@_first_issue_month_int { 1 }
1326 %<class>\int_const:Nn \c_@@_interval_in_months_int { 12 }
1327 % \end{macrocode}
1328 % \end{macro}
1329 % \end{macro}
1330 % \end{macro}
1331 % \end{macro}
1332 %
1333 % \subsection{Strings and keywords}
1334 %
1335 % We now declare some private string constants.
1336 %
1337 % \begin{macrocode}
1338 %</class|class-article>
1339 % \end{macrocode}
1340 %
1341 % \begin{macrocode}
1342 %<*class>
1343 % \end{macrocode}
1344 %
1345 % For the editor in chief.
1346 % \begin{macrocode}
1347 \tl_const:Nn \c_@@_editorinchief_string_tl {Editor~in~Chief}
1348 % \end{macrocode}
1349 % For the associate editors.
1350 % \begin{macrocode}
1351 \tl_const:Nn \c_@@_associate_editors_string_tl {Associate~Editors}
1352 % \end{macrocode}
1353 % For the managing editor.
1354 % \begin{macrocode}
1355 \tl_const:Nn \c_@@_managing_editor_string_tl {Managing~Editor}
1356 % \end{macrocode}
1357 % For the field editor.
1358 % \begin{macrocode}
1359 \tl_const:Nn \c_@@_field_editor_string_tl {Fields~Editor}
1360 % \end{macrocode}
1361 % For the editorial secretariat.
1362 % \begin{macrocode}
1363 \tl_const:Nn \c_@@_editorial_secretariat_string_tl {Secretariat}
1364 % \end{macrocode}
1365 % For the phone.
1366 % \begin{macrocode}
1367 \tl_const:Nn \c_@@_phone_string_tl {Tel.}
1368 % \end{macrocode}
1369 % For the \textsc{issn}.
1370 % \begin{macrocode}
1371 \tl_const:Nn \c_@@_issn_string_tl {\textsc{issn}}
1372 % \end{macrocode}
1373 % For the \textsc{isbn}.
1374 % \begin{macrocode}
1375 \tl_const:Nn \c_@@_isbn_string_tl {\textsc{isbn}}
1376 % \end{macrocode}
1377 % For "\LaTeX Class".
1378 % \begin{macrocode}
1379 \tl_const:Nn \c_@@_latexclass_string_tl {\LaTeX{}~class}
1380 % \end{macrocode}
1381 % For the computer engineering.
1382 % \begin{macrocode}
1383 \tl_const:Nn \c_@@_computer_engineering_string_tl {Computer~engineering~issues}
1384 % \end{macrocode}
1385 % For the graphic design.
1386 % \begin{macrocode}
1387 \tl_const:Nn \c_@@_graphicdesign_string_tl {Graphic~design}
1388 % \end{macrocode}
1389 % For the director of the publication.
1390 % \begin{macrocode}
1391 \tl_const:Nn \c_@@_publication_director_string_tl {Directeur~de~la~publication}
1392 % \end{macrocode}
1393 % For the director of the publication.
1394 % \begin{macrocode}
1395 \tl_const:Nn \c_@@_composed_by_string_tl {Composition}
1396 % \end{macrocode}
1397 % For configuration file.
1398 % \begin{macrocode}
1399 \tl_const:Nn \c_@@_configuration_file_string_tl {nwejm.cfg}
1400 % \end{macrocode}
1401 % For the front cover header texts.
1402 % \begin{macrocode}
1403 \bool_if:NT \g_@@_cover_bool {
1404 \tl_const:Nn \c_@@_frontcover_left_string_tl {
1405 Number\c_space_tl\c_@@_issue_number_tl%
1406 }
1407 \tl_const:Nn \c_@@_frontcover_right_string_tl {
1408 \c_@@_issue_year_tl%
1409 }
1410 \tl_const:Nn \c_@@_frontcover_string_tl {
1411 \c_@@_frontcover_left_string_tl\c_space_tl--\c_space_tl\c_@@_frontcover_right_string_tl%
1412 }
1413 }
1414 % \end{macrocode}
1415 % For the authors instructions.
1416 % \begin{macrocode}
1417 \tl_const:Nn \c_@@_authors_instructions_string_tl {Instructions~to~authors}
1418 % \end{macrocode}
1419 %
1420 % \begin{macrocode}
1421 %</class>
1422 % \end{macrocode}
1423 %
1424 % \begin{macrocode}
1425 %<*class|class-article>
1426 % \end{macrocode}
1427 %
1428 % For the main file name.
1429 % \begin{macrocode}
1430 \tl_const:Nn \c_@@_main_file_name_tl {issue}
1431 % \end{macrocode}
1432 % For the dates keywords.
1433 % \begin{macrocode}
1434 \tl_const:Nn \c_@@_date_received_tl {received}
1435 \tl_const:Nn \c_@@_date_accepted_tl {accepted}
1436 \tl_const:Nn \c_@@_date_online_tl {online}
1437 % \end{macrocode}
1438 % For the dates separators.
1439 % \begin{macrocode}
1440 \tl_const:Nn \c_@@_dates_separator_tl {/}
1441 % \end{macrocode}
1442 %
1443 % For the name and path of the images directory.
1444 % \begin{macrocode}
1445 \tl_const:Nn \c_@@_images_directory_string_tl {images}
1446 \tl_const:Nn \c_@@_issue_images_path_string_tl {\c_@@_images_directory_string_tl}
1447 % \end{macrocode}
1448 % For the cover's background image.
1449 % \begin{macrocode}
1450 %<class>\tl_const:Nn \c_@@_cover_background_image_tl {nwejm-cover-background.jpg}
1451 % \end{macrocode}
1452 % For the cover's background color in case the corresponding image is missing.
1453 % \begin{macrocode}
1454 \definecolor{_@@_cover_background_color_tl}{rgb}{0.16,0.22,0.56}
1455 % \end{macrocode}
1456 % For the \textsc{msc}.
1457 % \begin{macrocode}
1458 \tl_const:Nn \c_@@_msc_string_tl {\textsc{msc}}
1459 % \end{macrocode}
1460 %
1461 % For the colon, possibily preceded by the relevant space (in French).
1462 % \begin{macrocode}
1463 \tl_const:Nn \c_@@_colon_tl {
1464 \ifcurrentbaselanguage{french}{\FBcolonspace}{}:
1465 % \ifundef{\Fcolonspace}{\FBcolonspace}{\Fcolonspace}:
1466 }
1467 % \end{macrocode}
1468 % For the asides opening and eventuelly closing punctuation marks.
1469 % \begin{macrocode}
1470 \tl_const:Nn \c_@@_aside_string_tl {---}
1471 % \end{macrocode}
1472 % For the draft watermark.
1473 % \begin{macrocode}
1474 \tl_const:Nn \c_@@_draftwatermark_string_tl {draft}
1475 % \end{macrocode}
1476 %
1477 % For the name of the file containing the bibliography of the current issue.
1478 % \begin{macrocode}
1479 \tl_const:Nn \c_@@_issue_bib_file_suffix_string_tl {@@}
1480 \tl_const:Nn \c_@@_issue_bib_file_string_tl {\c_sys_jobname_str\c_@@_issue_bib_file_suffix_string_tl.bib}
1481 \tl_const:Nn \c_@@_issue_bib_path_string_tl {\c_@@_issue_bib_file_string_tl}
1482 % \end{macrocode}
1483 %
1484 % For the name of the file containing the issue's number and year used by the
1485 % file that produces the cover.
1486 % \begin{macrocode}
1487 %<class>\tl_const:Nn \c_@@_issue_number_year_file_string_tl {\c_@@_main_file_name_tl.iny}
1488 % \end{macrocode}
1489 %
1490 % % For the name of the file containing the informations needed to separate the
1491 % % PDF files for both the individual articles and for the issue for the printer.
1492 % % \begin{macrocode}
1493 % \tl_const:Nn \c_@@_issue_informations_separate_file_string_tl {\c_@@_main_file_name_tl.ipr}
1494 % % \end{macrocode}
1495 %
1496 % For the prefix of the bibliographic key of each article.
1497 % \begin{macrocode}
1498 \tl_const:Nn \c_@@_issue_bib_key_tl {\int_use:N \g_@@_issue_number_int}
1499 % \end{macrocode}
1500 %
1501 % For the journal's short and long titles.
1502 % \begin{macrocode}
1503 \tl_const:Nn \c_@@_journal_short_title_string_tl {\textsc{nwejm}}
1504 \tl_const:Nn \c_@@_journal_title_string_tl {
1505 North-Western~European~Journal~of~Mathematics%
1506 }
1507 % \end{macrocode}
1508 %
1509 % \subsection{Booleans}
1510 %
1511 % We now declare the booleans that will be used.
1512 %
1513 % \begin{macro}{\g_@@_frontcover_bool}
1514 % \begin{macro}{\g_@@_inside_frontcover_bool}
1515 % \begin{macro}{\g_@@_inside_backcover_bool}
1516 % \begin{macro}{\g_@@_frontmatter_bool}
1517 % \begin{macro}{\g_@@_rubric_bool}
1518 % \begin{macro}{\g_@@_interview_rubric_bool}
1519 % \begin{macro}{\g_@@_mainmatter_bool}
1520 % \begin{macro}{\g_@@_backcover_bool}
1521 % The following booleans will be used to test wheter we are respectively in the
1522 % front cover, in the inside front cover, in the frontmatter, in (first page
1523 % of) a rubric, in the mainmatter.
1524 % \begin{macrocode}
1525 %<class>\bool_new:N \g_@@_frontcover_bool
1526 %<class>\bool_new:N \g_@@_inside_frontcover_bool
1527 %<class>\bool_new:N \g_@@_inside_backcover_bool
1528 \bool_new:N \g_@@_frontmatter_bool
1529 \bool_new:N \g_@@_mainmatter_bool
1530 %<class>\bool_new:N \g_@@_backcover_bool
1531 % \end{macrocode}
1532 % \end{macro}
1533 % \end{macro}
1534 % \end{macro}
1535 % \end{macro}
1536 % \end{macro}
1537 % \end{macro}
1538 % \end{macro}
1539 % \end{macro}
1540 %
1541 % \begin{macrocode}
1542 \bool_new:N \g_@@_date_specified_bool
1543 % \end{macrocode}
1544 %
1545 % \subsection{Dimensions}
1546 %
1547 % \subsubsection{Geometry of the page}
1548 %
1549 % \begin{macro}{\c_@@_offset_dim}
1550 % \begin{macro}{\c_@@_paperheight_dim}
1551 % \begin{macro}{\c_@@_paperwidth_dim}
1552 % \begin{macro}{\c_@@_topmargin_dim}
1553 % \begin{macro}{\c_@@_headsep_dim}
1554 % \begin{macro}{\c_@@_bottom_margin_front_dim}
1555 % \begin{macro}{\c_@@_innermargin_dim}
1556 % \begin{macro}{\c_@@_outermargin_dim}
1557 % \begin{macro}{\c_@@_footskip_dim}
1558 % \begin{macro}{\c_@@_header_line_width_dim}
1559 % \begin{macro}{\c_@@_header_line_yshift_dim}
1560 % We first declare the default page layout constant dimensions.
1561 % \begin{macrocode}
1562 \dim_const:Nn \c_@@_layoutheight_dim { 240mm}
1563 \dim_const:Nn \c_@@_layoutwidth_dim { 170mm}
1564 % \end{macrocode}
1565 %
1566 % We define a \enquote{printer} layout offset dimension
1567 % "\c_@@_printer_layoutoffset_dim", fixed by the printer to be \SI{10}{\mm}.
1568 % \begin{macrocode}
1569 %<class>\dim_const:Nn \c_@@_printer_layoutoffset_dim { 10mm }
1570 % \end{macrocode}
1571 %
1572 % \begin{macrocode}
1573 %</class|class-article>
1574 % \end{macrocode}
1575 %
1576 % \begin{macrocode}
1577 %<*class>
1578 % \end{macrocode}
1579 %
1580 % We define a \enquote{potential} layout offset dimension which is non-zero (and
1581 % the equal to \enquote{printer} layout offset dimension) iff the output is
1582 % prepared for the printer ("\g_@@_for_printer_bool" flag equals true).
1583 % \begin{macrocode}
1584 \bool_if:NTF \g_@@_for_printer_bool {
1585 \dim_const:Nn \c_@@_potential_layoutoffset_dim { \c_@@_printer_layoutoffset_dim}
1586 }{
1587 \dim_const:Nn \c_@@_potential_layoutoffset_dim {\c_zero_dim}
1588 }
1589 % \end{macrocode}
1590 %
1591 % We define a \enquote{printer} binding dimension
1592 % "\c_@@_printer_bindingoffset_dim", fixed by the printer to have different
1593 % values depending on some total pages thresholds. If the binding dimension is
1594 % denoted by $b$ (and expressed in millimeters) and the total page number of the
1595 % document\footnote{Except cover pages, that is the \enquote{real} total page
1596 % number minus $4$.} is denoted by $N$, the thresholds are as follows:
1597 % \begin{equation}\label{binding}
1598 % b=
1599 % \begin{cases}
1600 % 0 & \text{ si } N < 68 \\
1601 % 3 & \text{ si } 68\leq N<80 \\
1602 % 3.5 & \text{ si } 80\leq N<88 \\
1603 % 3.9 & \text{ si } 88\leq N<96 \\
1604 % 4.1 & \text{ si } 96\leq N<104 \\
1605 % 4.5 & \text{ si } 104\leq N<120 \\
1606 % 5 & \text{ si } N\geq 120
1607 % \end{cases}
1608 % \end{equation}
1609 %
1610 % We define the thresholds:
1611 % \begin{macrocode}
1612 \int_const:Nn \c_@@_thresold_a_int {68}
1613 \int_const:Nn \c_@@_thresold_b_int {80}
1614 \int_const:Nn \c_@@_thresold_c_int {88}
1615 \int_const:Nn \c_@@_thresold_d_int {96}
1616 \int_const:Nn \c_@@_thresold_e_int {104}
1617 \int_const:Nn \c_@@_thresold_f_int {120}
1618 % \end{macrocode}
1619 % and the corresponding binding dimensions:
1620 % \begin{macrocode}
1621 \dim_const:Nn \c_@@_bindingoffset_a_dim {6mm}
1622 \dim_const:Nn \c_@@_bindingoffset_b_dim {7mm}
1623 \dim_const:Nn \c_@@_bindingoffset_c_dim {7.8mm}
1624 \dim_const:Nn \c_@@_bindingoffset_d_dim {8.2mm}
1625 \dim_const:Nn \c_@@_bindingoffset_e_dim {9mm}
1626 \dim_const:Nn \c_@@_bindingoffset_f_dim {10mm}
1627 % \end{macrocode}
1628 %
1629 % In order to know the total pages number of the document (store in
1630 % "\g_@@_total_page_number_int"), we need first to specify the
1631 % \enquote{external} document whom \File{.aux} will be read.
1632 % \begin{macrocode}
1633 \int_new:N \g_@@_total_pages_number_int%
1634 \int_new:N \g_@@_total_inside_pages_number_int%
1635 % \end{macrocode}
1636 %
1637 % We extract the total pages number thanks to "\zref@extractdefault" from
1638 % \Package{zref-totpages}.
1639 % \begin{macrocode}
1640 \zexternaldocument[self]{\c_@@_main_file_name_tl}
1641 \int_gset:Nn \g_@@_total_pages_number_int
1642 {
1643 \zref@extractdefault{selfLastPage}{abspage}{0}
1644 }
1645 \int_gset:Nn \g_@@_total_inside_pages_number_int { \g_@@_total_pages_number_int - 4 }
1646 % \end{macrocode}
1647 %
1648 % The \enquote{printer} binding dimension is now store in
1649 % "\c_@@_printer_bindingoffset_dim" following \vref{binding}.
1650 % \begin{macrocode}
1651 \int_compare:nNnTF {\g_@@_total_inside_pages_number_int}<{\c_@@_thresold_a_int}
1652 {
1653 \dim_const:Nn \c_@@_printer_bindingoffset_dim { \c_zero_dim }
1654 }{
1655 \int_compare:nNnTF {\g_@@_total_inside_pages_number_int}<{\c_@@_thresold_b_int}
1656 {
1657 \dim_const:Nn \c_@@_printer_bindingoffset_dim { \c_@@_bindingoffset_a_dim }
1658 }{
1659 \int_compare:nNnTF {\g_@@_total_inside_pages_number_int}<{\c_@@_thresold_c_int}
1660 {
1661 \dim_const:Nn \c_@@_printer_bindingoffset_dim { \c_@@_bindingoffset_b_dim }
1662 }{
1663 \int_compare:nNnTF {\g_@@_total_inside_pages_number_int}<{\c_@@_thresold_d_int}
1664 {
1665 \dim_const:Nn \c_@@_printer_bindingoffset_dim { \c_@@_bindingoffset_c_dim }
1666 }{
1667 \int_compare:nNnTF {\g_@@_total_inside_pages_number_int}<{\c_@@_thresold_e_int}
1668 {
1669 \dim_const:Nn \c_@@_printer_bindingoffset_dim { \c_@@_bindingoffset_d_dim }
1670 }{
1671 \int_compare:nNnTF {\g_@@_total_inside_pages_number_int}<{\c_@@_thresold_f_int}
1672 {
1673 \dim_const:Nn \c_@@_printer_bindingoffset_dim { \c_@@_bindingoffset_e_dim }
1674 }{
1675 \dim_const:Nn \c_@@_printer_bindingoffset_dim { \c_@@_bindingoffset_f_dim }
1676 }
1677 }
1678 }
1679 }
1680 }
1681 }
1682 % \end{macrocode}
1683 %
1684 % The binding offset is applied iff the front cover is required ("frontcover"
1685 % option), which implies the output is prepared for the printer, with non-zero
1686 % offset ("\g_@@_for_printer_bool" flag equals true).
1687 % \begin{macrocode}
1688 \bool_if:NTF \g_@@_cover_bool {
1689 \dim_compare:nTF {\g_@@_binding_dim > \c_zero_dim} {%
1690 \dim_const:Nn \c_@@_potential_bindingoffset_dim { \g_@@_binding_dim }
1691 }{
1692 \dim_const:Nn \c_@@_potential_bindingoffset_dim { \c_@@_printer_bindingoffset_dim }
1693 }
1694 }{
1695 \dim_const:Nn \c_@@_potential_bindingoffset_dim {\c_zero_dim}
1696 }
1697 % \end{macrocode}
1698 %
1699 % \begin{macrocode}
1700 %</class>
1701 % \end{macrocode}
1702 %
1703 % \begin{macrocode}
1704 %<*class|class-article>
1705 % \end{macrocode}
1706 %
1707 % The paper height is rather simple: it is always the layout height dimension
1708 % plus 2 times (top and bottom) the layout offset dimension (which turns to be
1709 % non-zero iff the output is prepared for the printer).
1710 % \begin{macrocode}
1711 \dim_const:Nn \c_@@_paperheight_dim {
1712 \c_@@_layoutheight_dim
1713 %<class> +
1714 %<class> 2\c_@@_potential_layoutoffset_dim
1715 }
1716 % \end{macrocode}
1717 %
1718 % The paper width is more complicated: it is the layout width dimension plus:
1719 % \begin{itemize}
1720 % \item the \enquote{potential} binding offset (which turns to be non-zero iff
1721 % only the cover page is output),
1722 % \item the layout offset dimension (which turns to be non-zero iff the output
1723 % is prepared for the printer):
1724 % \begin{description}
1725 % \item[if for the cover pages] just 1 time,
1726 % \item[if for the other pages] 2 times.
1727 % \end{description}
1728 % \end{itemize}
1729 % \begin{macrocode}
1730 %<class>\bool_if:NTF \g_@@_cover_bool {
1731 %<class> \dim_const:Nn \c_@@_paperwidth_dim {
1732 %<class> \c_@@_layoutwidth_dim
1733 %<class> +
1734 %<class> \c_@@_potential_layoutoffset_dim
1735 %<class> +
1736 %<class> .5\c_@@_potential_bindingoffset_dim
1737 %<class> }
1738 %<class>}{
1739 \dim_const:Nn \c_@@_paperwidth_dim {
1740 \c_@@_layoutwidth_dim
1741 %<class> +
1742 %<class> 2\c_@@_potential_layoutoffset_dim
1743 %<class> +
1744 %<class> \c_@@_potential_bindingoffset_dim
1745 }
1746 %<class>}
1747 % \end{macrocode}
1748 %
1749 % \begin{macrocode}
1750 %<class>\dim_const:Nn \c_@@_topmargin_dim { 20mm}
1751 %<class>\dim_const:Nn \c_@@_topmargin_inside_cover_dim {
1752 %<class> \c_@@_topmargin_dim
1753 %<class>}
1754 %<class>\dim_const:Nn \c_@@_headsep_dim { 9.5mm}
1755 %<class>\dim_const:Nn \c_@@_headsep_inside_frontcover_dim {
1756 %<class> \c_@@_headsep_dim
1757 %<class> +7mm
1758 %<class>}
1759 \dim_const:Nn \c_@@_headheight_dim { 5mm }
1760 \dim_const:Nn \c_@@_bottom_margin_main_dim { 36mm}
1761 %<class>\dim_const:Nn \c_@@_bottom_margin_front_dim { 30mm}
1762 \dim_const:Nn \c_@@_footskip_dim { 10mm}
1763 % \end{macrocode}
1764 %
1765 % \begin{macrocode}
1766 \dim_const:Nn \c_@@_innermargin_dim { 23mm }
1767 %<class>\dim_const:Nn \c_@@_inside_cover_textwidth_dim { 145mm }%
1768 %<class>\dim_const:Nn \c_@@_outermargin_inside_frontcover_dim { 15mm }
1769 %<class>\dim_const:Nn \c_@@_outermargin_inside_backcover_dim { 10mm }
1770 %<class>\dim_const:Nn \c_@@_logos_rectangle_thickness_dim { 3.1mm }
1771 %<class>\dim_const:Nn \c_@@_logos_rectangle_height_dim { 33mm }
1772 % \end{macrocode}
1773 % \end{macro}
1774 % \end{macro}
1775 % \end{macro}
1776 % \end{macro}
1777 % \end{macro}
1778 % \end{macro}
1779 % \end{macro}
1780 % \end{macro}
1781 % \end{macro}
1782 % \end{macro}
1783 % \end{macro}
1784 %
1785 % \begin{macrocode}
1786 %</class|class-article>
1787 % \end{macrocode}
1788 %
1789 % \begin{macrocode}
1790 %<*class>
1791 % \end{macrocode}
1792 %
1793 % When the inside pages are produced, the crop marks are shown.
1794 % \begin{macrocode}
1795 \bool_if:NT \g_@@_inside_pages_bool {
1796 \geometry{showcrop}
1797 }
1798 % \end{macrocode}
1799 %
1800 % We create a constant token list that contains the geometry of the front cover.
1801 % \begin{macrocode}
1802 \bool_if:NTF \g_@@_cover_bool {
1803 \tl_const:Nn \c_@@_frontcover_geometry_tl {%
1804 ,layoutheight=\c_@@_layoutheight_dim
1805 ,layoutwidth=\c_@@_layoutwidth_dim
1806 ,layoutoffset=\c_@@_potential_layoutoffset_dim
1807 ,ignoreall%
1808 ,nomarginpar%
1809 ,noheadfoot%
1810 ,margin=\c_zero_dim
1811 }%
1812 }{
1813 \tl_const:Nn \c_@@_frontcover_geometry_tl {%
1814 ,layoutheight=\c_@@_layoutheight_dim
1815 ,layoutwidth=\c_@@_layoutwidth_dim
1816 ,layoutoffset=\c_@@_potential_layoutoffset_dim
1817 ,ignoreall%
1818 ,nomarginpar%
1819 ,noheadfoot%
1820 ,margin=\c_zero_dim
1821 }%
1822 }
1823 % \end{macrocode}
1824 %
1825 % We create a constant token list that contains the geometry of the inside front
1826 % and back covers.
1827 % \begin{macrocode}
1828 \bool_if:NTF \g_@@_cover_bool {
1829 \tl_const:Nn \c_@@_inside_cover_geometry_tl {%
1830 ,layoutsize={\c_@@_layoutwidth_dim,\c_@@_layoutheight_dim}
1831 ,layoutoffset=\c_@@_potential_layoutoffset_dim
1832 ,top=\c_@@_topmargin_inside_cover_dim
1833 ,headheight=\c_@@_headheight_dim
1834 ,headsep=\c_@@_headsep_inside_frontcover_dim
1835 ,bottom=\c_@@_bottom_margin_front_dim
1836 ,footskip=\c_@@_footskip_dim
1837 ,nomarginpar%
1838 ,textwidth=\c_@@_inside_cover_textwidth_dim
1839 }%
1840 }{
1841 \tl_const:Nn \c_@@_inside_cover_geometry_tl {%
1842 ,layoutsize={\c_@@_layoutwidth_dim,\c_@@_layoutheight_dim}
1843 ,layoutoffset=\c_@@_potential_layoutoffset_dim
1844 ,top=\c_@@_topmargin_inside_cover_dim
1845 ,headheight=\c_@@_headheight_dim
1846 ,headsep=\c_@@_headsep_inside_frontcover_dim
1847 ,bottom=\c_@@_bottom_margin_front_dim
1848 ,footskip=\c_@@_footskip_dim
1849 ,nomarginpar%
1850 ,textwidth=\c_@@_inside_cover_textwidth_dim
1851 }%
1852 }
1853 % \end{macrocode}
1854 %
1855 % \begin{macrocode}
1856 %</class>
1857 % \end{macrocode}
1858 %
1859 % \begin{macrocode}
1860 %<*class|class-article>
1861 % \end{macrocode}
1862 %
1863 % We create a constant token list that contains the geometry of the main pages.
1864 % \begin{macrocode}
1865 \tl_const:Nn \c_@@_main_geometry_tl {%
1866 ,layoutsize={\c_@@_layoutwidth_dim,\c_@@_layoutheight_dim}
1867 %<class> ,layoutoffset=\c_@@_potential_layoutoffset_dim
1868 ,textwidth=\c_@@_layoutwidth_dim*3/4
1869 ,textheight=\c_@@_layoutheight_dim*3/4
1870 % ,marginratio={4\string :6,5\string :7}
1871 ,bottom=\c_@@_bottom_margin_main_dim
1872 ,inner=\c_@@_innermargin_dim
1873 ,headheight=\c_@@_headheight_dim
1874 ,footskip=\c_@@_footskip_dim
1875 %
1876 % ,layoutsize={\c_@@_layoutwidth_dim,\c_@@_layoutheight_dim}
1877 % ,layoutoffset=\c_@@_potential_layoutoffset_dim
1878 % % ,bindingoffset=\c_@@_potential_bindingoffset_dim
1879 % ,top=\c_@@_topmargin_dim%
1880 % ,headheight=\c_@@_headheight_dim
1881 % ,headsep=\c_@@_headsep_dim
1882 % ,bottom=\c_@@_bottom_margin_front_dim
1883 % ,footskip=\c_@@_footskip_dim
1884 % ,inner=\c_@@_innermargin_dim
1885 % ,outer=\c_@@_outermargin_dim
1886 }%
1887 % \end{macrocode}
1888 %
1889 % We set the default geometry of the page.
1890 % \begin{macrocode}
1891 \geometry
1892 {%
1893 papersize={\c_@@_paperwidth_dim,\c_@@_paperheight_dim},
1894 }
1895 \exp_after:wN\geometry\exp_after:wN
1896 {%
1897 \c_@@_main_geometry_tl
1898 }
1899 % \end{macrocode}
1900 %
1901 % \begin{macrocode}
1902 %</class|class-article>
1903 % \end{macrocode}
1904 %
1905 % \begin{macrocode}
1906 %<*class>
1907 % \end{macrocode}
1908 %
1909 % \section{Miscellaneous patches}
1910 %
1911 % % If we don't ask the cover page (only), the inside back cover and back cover
1912 % % pages are automatically included at the end of the document, the former
1913 % % containing some condensed instructions to authors. But, this cannot be done
1914 % % within "\AtEndDocument" and "\preto\@enddocumenthook" should be used instead
1915 % % (see \url{http://tex.stackexchange.com/q/240318/18401}).
1916 % % \begin{macrocode}
1917 % \bool_if:NF {\g_@@_coverpage_bool} {
1918 % \bool_if:NF \g_@@_inside_pages_bool {
1919 % \preto\@enddocumenthook{
1920 % % \end{macrocode}
1921 % %
1922 % % The inside front cover and front cover pages are numbered \enquote{i} and
1923 % % \enquote{ii} hence the inside back cover and back cover pages are numbered
1924 % % \enquote{iii} and \enquote{iv}.
1925 % % \begin{macrocode}
1926 % \cleardoublepage
1927 % \pagenumbering{roman}%
1928 % \setcounter{page}{3}
1929 % % \end{macrocode}
1930 % %
1931 % % On the backcover, we want the table of contents (displayed as a chapter,
1932 % % therefore by default starting on a right page) to be displayed on a left page.
1933 % % \begin{macrocode}
1934 % \bool_gset_true:N \g_@@_backmatter_bool
1935 % \g_@@_display_inside_backcover_tl
1936 % \newpage
1937 % \@openrightfalse
1938 % \g_@@_display_backcover_tl
1939 % }%
1940 % }%
1941 % }%
1942 % % \end{macrocode}
1943 %
1944 % % If we don't ask the cover page (only), the document total page numbers should
1945 % % be a multiple of four and we add the necessary and sufficient number of blank
1946 % % pages if it isn't the case (code borrowed from
1947 % % \url{http://tex.stackexchange.com/a/83498/18401}).
1948 % % \begin{macrocode}
1949 % \bool_if:NF {\g_@@_coverpage_bool} {
1950 % \bool_if:nF { \g_@@_for_authors_bool } {
1951 % \bool_if:nT { \g_@@_inside_pages_bool } {
1952 % \AtEndDocument{%
1953 % \prg_replicate:nn
1954 % { \int_mod:nn { 4 - \int_mod:nn { \getpagerefnumber{LastPage} } { 4 } } { 4 } }
1955 % { \thispagestyle{@@_blank_pages_ps}\null\clearpage }
1956 % }
1957 % }
1958 % }
1959 % }
1960 % % \end{macrocode}
1961 %
1962 % \section{Displaying the table of contents}
1963 %
1964 % \begin{macrocode}
1965 \tl_new:N \g_@@_equation_continues_next_page_tl
1966 \tl_new:N \g_@@_frontmatter_switch_tl
1967 \bool_new:N \g_@@_tableofcontents_already_used_bool
1968 \renewcommand\etocbeforetitlehook
1969 {%
1970 \DeclareNameAlias{labelname}{giveninits-last}
1971 \bool_if:NF \g_@@_for_authors_bool{
1972 \bool_if:NF \g_@@_tableofcontents_already_used_bool{
1973 \g_@@_frontmatter_switch_tl
1974 \phantomsection
1975 \hypertarget{@@_toc}{}
1976 \bookmark[dest=@@_toc,level=chapter]{\contentsname}
1977 }
1978 }
1979 }%
1980 \renewcommand\etocaftertochook
1981 {%
1982 \bool_if:NF \g_@@_for_authors_bool{
1983 \bool_if:NF \g_@@_tableofcontents_already_used_bool{
1984 \normalsize%
1985 \bool_gset_false:N \g_@@_frontmatter_bool%
1986 \g_@@_mainmatter_switch_tl
1987 }
1988 }
1989 \bool_gset_true:N \g_@@_tableofcontents_already_used_bool
1990 }%
1991 \renewcommand\etocaftercontentshook
1992 {%
1993 % \exp_after:wN\newgeometry\exp_after:wN{\c_@@_main_geometry_tl}%
1994 }%
1995 % \end{macrocode}
1996 %
1997 % \section{Page styles}
1998 %
1999 % \subsection{Front cover page style}
2000 %
2001 % \begin{macrocode}
2002 \newpagestyle{@@_frontcover_ps}[]{%
2003 \sethead
2004 {}%
2005 {}%
2006 {}%
2007 %
2008 \setfoot%
2009 {}%
2010 {}%
2011 {}%
2012 }%
2013 % \end{macrocode}
2014 %
2015 % \subsection{Inside cover page style}
2016 %
2017 % \begin{macrocode}
2018 \newpagestyle{@@_inside_cover_ps}[]{%
2019 \sethead%
2020 {}%
2021 {}%
2022 {}%
2023 %
2024 \setfoot%
2025 {}%
2026 {}%
2027 {}%
2028 }%
2029 % \end{macrocode}
2030 %
2031 % \subsection{Front matter page style}
2032 %
2033 % \begin{macrocode}
2034 \newpagestyle{@@_frontmatter_ps}[]{%
2035 \sethead%
2036 {}%
2037 {}%
2038 {}%
2039 %
2040 \setfoot%
2041 {}%
2042 {\thepage}%
2043 {}%
2044 }%
2045 % \end{macrocode}
2046 %
2047 % \subsection{For blank pages added in order to ensure document total page
2048 % numbers is a multiple of four}
2049 %
2050 % \begin{macrocode}
2051 \newpagestyle{@@_blank_pages_ps}[]{%
2052 \sethead
2053 {}%
2054 {}%
2055 {}%
2056 %
2057 \setfoot%
2058 {}%
2059 {\thepage}%
2060 {}%
2061 }%
2062 % \end{macrocode}
2063 %
2064 % \begin{macrocode}
2065 %</class>
2066 % \end{macrocode}
2067 %
2068 % \begin{macrocode}
2069 %<*class|class-article>
2070 % \end{macrocode}
2071 %
2072 % \subsection{Main matter page style}
2073 %
2074 % \begin{macrocode}
2075 \tl_new:N \l_@@_section_header_tl
2076 \tl_set:Nn \l_@@_section_header_tl {
2077 \ifthesection{%
2078 \thesection.~%
2079 }{%
2080 }
2081 \sectiontitle
2082 }%
2083 \newpagestyle{@@_mainmatter_ps}[]{%
2084 \sethead%
2085 [
2086 \tl_if_exist:NT \g_@@_header_title_tl
2087 {
2088 \tl_if_empty:NF \g_@@_header_title_tl {%
2089 \slshape\g_@@_header_title_tl
2090 }
2091 }
2092 ]%
2093 [%
2094 ]%
2095 [
2096 \DeclareNameAlias{labelname}{giveninits-last}
2097 \AtNextCitekey{\defcounter{maxnames}{2}}\citeauthor{\g_@@_article_bib_key_tl}
2098 ]%
2099 {
2100 \slshape\l_@@_section_header_tl
2101 }%
2102 {%
2103 }%
2104 {
2105 }%
2106 %
2107 \setfoot%
2108 {}%
2109 {\thepage}%
2110 {}%
2111 }
2112 % \end{macrocode}
2113 %
2114 % \subsection{Article's title page style}
2115 %
2116 % \begin{macrocode}
2117 \box_new:N \l_@@_journal_logo_box
2118 \box_new:N \l_@@_journal_name_box
2119 \AddToHook{begindocument/end}{%
2120 \hbox_set:Nn \l_@@_journal_name_box
2121 {
2122 \bfseries%
2123 \adjustbox{stack=l}{%
2124 \c_@@_journal_title_string_tl
2125 %<class> \\\text_titlecase_first:n{\GetTranslation{volume-abbreviated}}\c_space_tl\int_use:N \g_@@_issue_number_int
2126 %<class-article> \mbox{}
2127 }
2128 }
2129 \hbox_set:Nn \l_@@_journal_logo_box
2130 {
2131 \includegraphics[width=1cm]{ nwejm-logo-NB }
2132 }
2133 \hbox_set_to_wd:Nnn \l_@@_journal_logo_box { 1cm }
2134 {
2135 \box_move_down:nn
2136 {
2137 \box_ht:N \l_@@_journal_logo_box / 2
2138 -
2139 \box_ht:N \l_@@_journal_name_box / 2
2140 }
2141 {
2142 \box_use:N \l_@@_journal_logo_box
2143 }
2144 }
2145 \box_set_ht:Nn \l_@@_journal_logo_box { \c_zero_dim }
2146 \box_set_dp:Nn \l_@@_journal_logo_box { \c_zero_dim }
2147 }
2148 %
2149 \newpagestyle{@@_article_title_ps}[]{%
2150 % \widenhead{\c_zero_dim}{\c_zero_dim}
2151 \sethead%
2152 {
2153 \box_use:N \l_@@_journal_name_box
2154 }%
2155 {%
2156 }%
2157 {
2158 \box_use:N \l_@@_journal_logo_box
2159 }%
2160 %
2161 \setfoot%
2162 {}%
2163 {\thepage}%
2164 {}%
2165 }
2166 % \end{macrocode}
2167 %
2168 % Patch needed in order entries of the framed TOC on back cover don't overlap
2169 % the page numbers.
2170 % \begin{macrocode}
2171 \def\@pnumwidth{\@tocrmarg}
2172 % \end{macrocode}
2173 %
2174 % \section{First pages}
2175 %
2176 % At begin of the document, we automatically :
2177 % \begin{itemize}
2178 % \item set the graphic path,
2179 % \item set the page grid if the corresponding option has been passed,
2180 % \item display of the front cover and the inside front cover.
2181 % \end{itemize}
2182 %
2183 % \begin{macrocode}
2184 \AddToHook{begindocument}{%
2185 \graphicspath{{\c_@@_issue_images_path_string_tl//}{../\c_@@_issue_images_path_string_tl//}}
2186 % \glsdisablehyper
2187 }
2188 % \end{macrocode}
2189 %
2190 % At the begin of document, we automatically switch to
2191 % \begin{itemize}
2192 % \item frontmatter\footnote{Mainly: page numbers in roman.} in the \enquote{issue}
2193 % version of the class (the first pages are for the table of contents which
2194 % was decided to be in frontmatter),
2195 % \item mainmatter\footnote{Page numbers in arabic, right page style, right
2196 % geometry of the page.} in the \enquote{article} version of the class. In
2197 % this case, we also use the \enquote{main geometry} of the \enquote{issue}
2198 % version of the class, otherwise, the layouts of the two versions are likely
2199 % to be different.
2200 % \end{itemize}
2201 % \begin{macrocode}
2202 %<class-article> \AddToHook{begindocument/end}{\g_@@_mainmatter_switch_tl}
2203 % \end{macrocode}
2204 %
2205 % \section{Options}
2206 %
2207 % In this section, options used by some of the document commands defined by the
2208 % class are treated.
2209 %
2210 % \begin{macrocode}
2211 %</class|class-article>
2212 % \end{macrocode}
2213 %
2214 % \begin{macrocode}
2215 %<*class>
2216 % \end{macrocode}
2217 %
2218 % \subsection{Journal options}
2219 %
2220 % \begin{macro}{\l_@@_journal_publisher_tl}
2221 % \begin{macro}{\l_@@_journal_address_tl}
2222 % \begin{macro}{\l_@@_journal_phone_tl}
2223 % \begin{macro}{\l_@@_journal_email_tl}
2224 % \begin{macro}{\l_@@_journal_url_tl}
2225 % \begin{macro}{\l_@@_journal_issn_tl}
2226 % \begin{macro}{\l_@@_journal_isbn_tl}
2227 % Some variables which are involved in options are created.
2228 % \begin{macrocode}
2229 \tl_new:N \l_@@_journal_publisher_tl
2230 \tl_new:N \l_@@_journal_address_tl
2231 \tl_new:N \l_@@_journal_phone_tl
2232 \tl_new:N \l_@@_journal_email_tl
2233 \tl_new:N \l_@@_journal_url_tl
2234 \tl_new:N \l_@@_journal_issn_tl
2235 \tl_new:N \l_@@_journal_isbn_tl
2236 % \end{macrocode}
2237 % \end{macro}
2238 % \end{macro}
2239 % \end{macro}
2240 % \end{macro}
2241 % \end{macro}
2242 % \end{macro}
2243 % \end{macro}
2244 % \end{macro}
2245 %
2246 % \begin{macro}{publisher}
2247 % \begin{macro}{address}
2248 % \begin{macro}{phone}
2249 % \begin{macro}{email}
2250 % \begin{macro}{url}
2251 % \begin{macro}{issn}
2252 % \begin{macro}{isbn}
2253 % The keys options are created.
2254 % \begin{macrocode}
2255 \keys_define:nn { nwejm/journalsetup }
2256 {
2257 publisher .tl_set:N = \l_@@_journal_publisher_tl,
2258 address .tl_set:N = \l_@@_journal_address_tl,
2259 phone .tl_set:N = \l_@@_journal_phone_tl,
2260 email .tl_set:N = \l_@@_journal_email_tl,
2261 url .tl_set:N = \l_@@_journal_url_tl,
2262 issn .tl_set:N = \l_@@_journal_issn_tl,
2263 isbn .tl_set:N = \l_@@_journal_isbn_tl,
2264 % \end{macrocode}
2265 %
2266 % All these options, when used, must receive a value.
2267 % \begin{macrocode}
2268 publisher .value_required:n = true,
2269 address .value_required:n = true,
2270 phone .value_required:n = true,
2271 email .value_required:n = true,
2272 url .value_required:n = true,
2273 issn .value_required:n = true,
2274 isbn .value_required:n = true,
2275 }
2276 % \end{macrocode}
2277 % \end{macro}
2278 % \end{macro}
2279 % \end{macro}
2280 % \end{macro}
2281 % \end{macro}
2282 % \end{macro}
2283 % \end{macro}
2284 % \end{macro}
2285 %
2286 % \begin{macrocode}
2287 %</class>
2288 % \end{macrocode}
2289 %
2290 % \begin{macrocode}
2291 %<*class|class-article>
2292 % \end{macrocode}
2293 %
2294 % \subsection{Issues options}
2295 %
2296 % \begin{macro}{\g_@@_issue_number_int}
2297 % \begin{macro}{\g_@@_issue_month_int}
2298 % \begin{macro}{\g_@@_issue_year_int}
2299 % Some variables which are involved in options are created.
2300 % \begin{macrocode}
2301 \int_new:N \g_@@_issue_number_int
2302 \int_new:N \g_@@_issue_month_int
2303 \int_new:N \g_@@_issue_year_int
2304 % \end{macrocode}
2305 % \end{macro}
2306 % \end{macro}
2307 % \end{macro}
2308 %
2309 % \begin{macro}{number}
2310 % \begin{macro}{volume}
2311 % The keys options are created.
2312 % \begin{macrocode}
2313 \keys_define:nn { nwejm/issuesetup }
2314 {
2315 number .int_gset:N = \g_@@_issue_number_int,
2316 volume .int_gset:N = \g_@@_issue_volume_int,
2317 % \end{macrocode}
2318 %
2319 % All these options, when used, must receive a value.
2320 % \begin{macrocode}
2321 volume .value_required:n = true,
2322 % \end{macrocode}
2323 %
2324 % If "number" option is not used, its initial value is set to $0$.
2325 % number.
2326 % \begin{macrocode}
2327 volume .initial:n = 0,
2328 }
2329 % \end{macrocode}
2330 %
2331 % \end{macro}
2332 % \end{macro}
2333 %
2334 % \subsection{Dates options}
2335 %
2336 % \begin{macro}{received}
2337 % \begin{macro}{accepted}
2338 % \begin{macro}{online}
2339 % Some keys options for article's dates are created:
2340 % \begin{macrocode}
2341 \keys_define:nn { nwejm/dates }
2342 {
2343 received .code:n = {
2344 \tl_gset:Nn \g_@@_reception_date_tl {#1}
2345 \bool_gset_true:N \g_@@_date_specified_bool
2346 },
2347 accepted .code:n = {
2348 \tl_gset:Nn \g_@@_acception_date_tl {#1}
2349 \bool_gset_true:N \g_@@_date_specified_bool
2350 },
2351 online .code:n = {
2352 \tl_gset:Nn \g_@@_online_date_tl {#1}
2353 \bool_gset_true:N \g_@@_date_specified_bool
2354 },
2355 % \end{macrocode}
2356 %
2357 % The following options, when used, must receive a value.
2358 % \begin{macrocode}
2359 received .value_required:n = true,
2360 accepted .value_required:n = true,
2361 online .value_required:n = true,
2362 }
2363 % \end{macrocode}
2364 % \end{macro}
2365 % \end{macro}
2366 % \end{macro}
2367 %
2368 % \subsection{Authors options}
2369 %
2370 % \begin{macrocode}
2371 \quark_new:N \q_@@
2372 \int_new:N \l_@@_author_int
2373 \prop_new:N \g_@@_authors_prop
2374 \prop_new:N \l_affiliations_tagged_prop
2375 \cs_generate_variant:Nn \prop_gput_if_not_in:Nnn { Nxn }
2376 % \end{macrocode}
2377 %
2378 % \begin{macro}{affiliation}
2379 % \begin{macro}{affiliationtagged}
2380 % The keys options are created. We stored in a temporary variable the result
2381 % of expanding ×\the\c@footnote× in order to fix issue \#5.
2382 % \begin{macrocode}
2383 \NewDocumentCommand \@@_author_affiliation:ww { o u\q_@@ }
2384 {
2385 \stepcounter{footnote}
2386 \tl_set:Ne \l_tmpa_tl {\the\c@footnote}
2387 \prop_put_if_not_in:NVn \l_tmpa_prop \l_tmpa_tl {#2}
2388 \IfValueT{#1}{%
2389 \prop_put_if_not_in:NnV \l_affiliations_tagged_prop {#1} \l_tmpa_tl
2390 }
2391 }
2392 %
2393 \keys_define:nn { nwejm / authors }
2394 {
2395 email .tl_gset:N = \g_@@_people_email_tl,
2396 affiliation .code:n = {%
2397 \@@_author_affiliation:ww #1 \q_@@
2398 },
2399 affiliationtagged .code:n = {%
2400 \prop_get:NnNTF \l_affiliations_tagged_prop {#1} \l_tmpa_tl
2401 {%
2402 \prop_put_if_not_in:NVn \l_tmpa_prop {\l_tmpa_tl} {}
2403 }{
2404 \msg_error:nnn{
2405 %<class-article>nwejmart
2406 %<class> nwejm
2407 }{Unknown~tag}{#1}
2408 }
2409 },
2410 % \end{macrocode}
2411 %
2412 % All these options, when used, must receive a value.
2413 % \begin{macrocode}
2414 affiliation .value_required:n = true,
2415 affiliationtagged .value_required:n = true,
2416 }
2417 % \end{macrocode}
2418 % \end{macro}
2419 % \end{macro}
2420 %
2421 % \subsection{New theorem options}
2422 %
2423 % \begin{macrocode}
2424 \keys_define:nn { keytheorems/thm }
2425 {
2426 title .undefine:,
2427 title .code:n = {
2428 \exp_args:Nne \keys_set:nn { keytheorems/thm } {
2429 name= \text_titlecase_all:n {#1}
2430 }
2431 \exp_args:Nne \keys_set:nn { keytheorems/thm } {
2432 refname= {
2433 \_@@_titlecase_all:n{#1},
2434 \_@@_titlecase_all:n{#1} s
2435 }
2436 }
2437 },
2438 title-plural .meta:n = { plural-refname = #1 }
2439 }
2440 % \end{macrocode}
2441 % \end{macro}
2442 % \end{macro}
2443 % \end{macro}
2444 %
2445 % \begin{macrocode}
2446 \bool_new:N \g_@@_gradient_nabla_bool
2447 \bool_new:N \g_@@_gradient_nabla_control_bool
2448 \keys_define:nn { nwejm/articlesetup }
2449 {
2450 gradient .choice:,
2451 gradient / nabla .code:n = {\bool_gset_true:N \g_@@_gradient_nabla_bool},
2452 gradient / grad .code:n = {\bool_gset_false:N \g_@@_gradient_nabla_bool},
2453 gradient / unknown .code:n =
2454 \msg_error:nnxxx { nwejmart } { Unknown~choice }
2455 { gradient } % Name of choice key
2456 { nabla~or~grad } % Valid choices
2457 { \exp_not:n {#1} } % Invalid choice given
2458 }
2459 % \end{macrocode}
2460 %
2461 % \section{Miscellaneous token lists}
2462 %
2463 % We define some token lists for the long and short forms of the journal.
2464 % \begin{macrocode}
2465 \tl_new:N \g_@@_nwejm_short_string_tl
2466 \tl_new:N \g_@@_nwejm_string_tl
2467 \tl_gset:Nn \g_@@_nwejm_short_string_tl {
2468 \cs_if_exist:cTF {texorpdfstring}
2469 {
2470 \texorpdfstring{\emph{\c_@@_journal_short_title_string_tl}}{\c_@@_journal_short_title_string_tl}
2471 }{%
2472 \emph{\c_@@_journal_short_title_string_tl}
2473 }%
2474 }
2475 \tl_gset:Nn \g_@@_nwejm_string_tl {
2476 \cs_if_exist:cTF {texorpdfstring}
2477 {
2478 \texorpdfstring{\emph{\c_@@_journal_title_string_tl}}{\c_@@_journal_title_string_tl}
2479 }{%
2480 \emph{\c_@@_journal_title_string_tl}
2481 }%
2482 }
2483 % \end{macrocode}
2484 %
2485 % \begin{macrocode}
2486 \cs_new_protected:Nn \_@@_email:n
2487 {
2488 \href{mailto:#1}{\nolinkurl{#1}}%
2489 }
2490 % \end{macrocode}
2491 %
2492 % We create a control sequence that populates the bib file.
2493 % \begin{macrocode}
2494 \tl_new:N \l_@@_crossref_tl
2495 \cs_new_protected:Nn \_@@_populate_bib_file:nn
2496 {
2497 \int_if_exist:cF {g_@@_#2_int}
2498 {
2499 \int_new:c {g_@@_#2_int}
2500 }
2501 \int_incr:c {g_@@_#2_int}
2502 \tl_if_in:nnTF { #2 } { author } {
2503 \tl_set:Nn \l_@@_crossref_tl {%
2504 \c_@@_issue_bib_key_tl
2505 -art-
2506 \int_use:N \g_@@_articles_int
2507 }
2508 } {
2509 \tl_set:Nn \l_@@_crossref_tl {\c_@@_issue_bib_key_tl}
2510 }
2511 \tl_set:Nn \l_@@_people_first_last_name_tl {#1}
2512 \iow_now:Nx \g_@@_bib_out_iow {%
2513 @article{
2514 \c_@@_issue_bib_key_tl -#2- \int_use:c {g_@@_#2_int},
2515 \iow_newline:
2516 author={\exp_not:V\l_@@_people_first_last_name_tl},
2517 \iow_newline:
2518 options={skipbib},
2519 \iow_newline:
2520 crossref = {\l_@@_crossref_tl}
2521 \iow_newline:
2522 }
2523 \iow_newline:
2524 }%
2525 }
2526 % \end{macrocode}
2527 %
2528 % \begin{macrocode}
2529 %</class|class-article>
2530 % \end{macrocode}
2531 %
2532 % \begin{macrocode}
2533 %<*class>
2534 % \end{macrocode}
2535 %
2536 % \section{Functions for specifiying the people involved in the journal}
2537 %
2538 % For this, and thanks to \Pkg{datatool}, we create a database of
2539 % \enquote{people} involved in the journal.
2540 % \begin{macrocode}
2541 \DTLnewdb{people}
2542 % \end{macrocode}
2543 %
2544 % Then we create the internal "\_@@_people" function that let us populate the
2545 % "_@@_people" database. Each people will be identified by some identifiers:
2546 % speciality (optional), firstname, lastname, affiliation, email, role.
2547 % \begin{macrocode}
2548 \cs_new_protected:Nn \_@@_people:nnnnn
2549 {
2550 \DTLnewrow{people}%
2551 \DTLnewdbentry{people}{first-last-name}{#1}%
2552 \DTLnewdbentry{people}{affiliation}{#2}%
2553 \DTLnewdbentry{people}{country}{#3}%
2554 \DTLnewdbentry{people}{email}{#4}%
2555 \DTLnewdbentry{people}{role}{#5}%
2556 \_@@_populate_bib_file:nn {#1}{#5}
2557 }
2558 % \end{macrocode}
2559 %
2560 % \section{Functions for displaying people involved in the journal by role}
2561 %
2562 % We create the function that displays firstname and lastname of people involved
2563 % in the journal by role.
2564 % \begin{macrocode}
2565 \cs_new_protected:Nn \@@_display_people_by_role:n
2566 {
2567 \DTLforeach*[\DTLiseq{\l_@@_people_role_tl}{#1}]{people}{%
2568 \l_@@_firstlastname_tl=first-last-name%
2569 ,\l_@@_people_affiliation_tl=affiliation%
2570 ,\l_@@_people_country_tl=country%
2571 ,\l_@@_people_email_tl=email%
2572 ,\l_@@_people_role_tl=role%
2573 }{%
2574 \tl_if_in:NnTF \l_@@_people_role_tl { editor } {
2575 \item[
2576 \_@@_citeauthor_no_giveninits:n {\c_@@_issue_bib_key_tl -#1- \exp_not:V\DTLcurrentindex}%
2577 ]
2578 \l_@@_people_affiliation_tl%
2579 \c_space_tl%
2580 (\l_@@_people_country_tl)%
2581 % ,\c_space_tl%
2582 % \_@@_email:n {\l_@@_people_email_tl}
2583 \DTLiflastrow{%
2584 }{%
2585 % \medskip%
2586 }
2587 }{
2588 \tl_if_in:NnTF \l_@@_people_role_tl { author } {
2589 \footnotesize%
2590 \noindent%
2591 \begin{description}[leftmargin=1em,style=nextline]
2592 \item[%
2593 \_@@_citeauthor_no_giveninits:n {\c_@@_issue_bib_key_tl -#1- \exp_not:V\DTLcurrentindex}%
2594 ]
2595 \tl_if_empty:NF \l_@@_people_affiliation_tl
2596 {%
2597 \mbox{}%
2598 \par%
2599 \vspace{-2ex}%
2600 \l_@@_people_affiliation_tl%
2601 }
2602 \tl_if_empty:NF \l_@@_people_email_tl
2603 {%
2604 \par%
2605 \_@@_email:n {\l_@@_people_email_tl}
2606 }
2607 \end{description}
2608 \DTLiflastrow{%
2609 }{
2610 \DTLpar%
2611 \medskip%
2612 }
2613 }{
2614 \tl_if_in:NnTF \l_@@_people_role_tl { publicationdirector } {
2615 \_@@_citeauthor_no_giveninits:n {\c_@@_issue_bib_key_tl -#1- \exp_not:V\DTLcurrentindex},~
2616 \l_@@_people_affiliation_tl%
2617 }{
2618 \_@@_citeauthor_no_giveninits:n {\c_@@_issue_bib_key_tl -#1- \exp_not:V\DTLcurrentindex}%
2619 \tl_if_empty:NF \l_@@_people_email_tl
2620 {
2621 \c_space_tl(\_@@_email:n {\l_@@_people_email_tl})
2622 }
2623 }
2624 }
2625 }
2626 }
2627 }
2628 % \end{macrocode}
2629 %
2630 % \section{Displaying the front cover}
2631 %
2632 % We create a control sequence for the binding text.
2633 % \begin{macrocode}
2634 \cs_new_protected:Nn \_@@_binding_text:n
2635 {
2636 \Large
2637 \color{white}
2638 \bfseries
2639 \sffamily
2640 \node[outer~sep=0pt,inner~sep=0pt,rotate=90] at (current~page.#1)
2641 {
2642 \maxsizebox*{!}{\c_@@_potential_bindingoffset_dim}{\c_@@_journal_title_string_tl}
2643 } ;
2644 \node[outer~sep=0pt,inner~sep=0pt,rotate=90,anchor=east] at
2645 ($ (current~page.south~#1)!.2!(current~page.north~#1) $)
2646 {
2647 \maxsizebox*{!}{\c_@@_potential_bindingoffset_dim}{\c_@@_frontcover_left_string_tl}
2648 } ;
2649 \node[outer~sep=0pt,inner~sep=0pt,rotate=90,anchor=west] at ($
2650 (current~page.south~#1)!.8!(current~page.north~#1) $)
2651 {
2652 \maxsizebox*{!}{\c_@@_potential_bindingoffset_dim}{\c_@@_issue_year_tl}
2653 } ;
2654 }
2655 \cs_new_protected:Nn \_@@_grWheelComplete:nn
2656 {
2657 \begingroup%
2658 \setkeys[GR]{cl}{#1}%
2659 \grStar[#1]{#2}%
2660 \pgfmathsetcounter{tkz@gr@a}{#2-1}%
2661 \edef\tkz@auxctp{\thetkz@gr@a}%
2662 \foreach \ia in {0,...,\tkz@auxctp}%
2663 {\foreach \ib in {\ia,...,\tkz@auxctp}%
2664 {\Edge(\cmdGR@cl@prefix\ia)(\cmdGR@cl@prefix\ib)}%
2665 }%
2666 \endgroup%
2667 }
2668 % \end{macrocode}
2669 %
2670 % We create the variable that displays the front cover.
2671 % \begin{macrocode}
2672 \tl_new:N \g_@@_display_frontcover_tl%
2673 \tl_gset:Nn \g_@@_display_frontcover_tl {%
2674 \bool_gset_true:N \g_@@_frontcover_bool
2675 \pagestyle{@@_frontcover_ps}%
2676 \exp_after:wN\newgeometry\exp_after:wN{\c_@@_frontcover_geometry_tl}%
2677 \begin{tikzpicture}[remember~picture,overlay]
2678 \NoAutoSpacing
2679 \begin{pgfonlayer}{background}
2680 \file_if_exist:nTF {\c_@@_cover_background_image_tl}{
2681 \node[anchor=north~east,outer~sep=0pt,inner~sep=0pt] at (current~page.north~east) {
2682 \reflectbox{%
2683 \includegraphics[width=\paperheight,height=\c_@@_paperwidth_dim,angle=90]{
2684 \c_@@_cover_background_image_tl
2685 }%
2686 }
2687 };
2688 }{
2689 \fill[_@@_cover_background_color_tl] (current~page.north~east) rectangle
2690 (current~page.south~west);
2691 }
2692 \end{pgfonlayer}
2693 \_@@_binding_text:n {east}
2694 \end{tikzpicture}
2695 \begin{tikzpicture}[
2696 remember~picture,
2697 overlay,
2698 shift={(current~page~text~area.center)},
2699 scale=0.5,
2700 every~node/.style={scale=0.5}
2701 ]
2702 \SetGraphShadeColor{white}{blue}{white}%
2703 \tikzset{%
2704 VertexStyle/.style = {%
2705 shape = circle,%
2706 fill = white,%
2707 minimum~size = 3.5cm,%
2708 draw%
2709 }%
2710 }%
2711 \SetVertexNoLabel%
2712 \_@@_grWheelComplete:nn {RA=9}{6}
2713 \AssignVertexLabel{a}{%
2714 \includegraphics[height=25mm]{nwejm-fields-institute-logo},%
2715 \includegraphics[height=25mm]{nwejm-federation-recherche-math-npdc-logo},%
2716 \includegraphics[height=10mm]{nwejm-kwg-logo},%
2717 \includegraphics[height=20mm]{nwejm-smf-logo},%
2718 \includegraphics[height=12mm]{nwejm-sml-logo},%
2719 \includegraphics[height=25mm]{nwejm-logo}%
2720 };%
2721 \end{tikzpicture}
2722 \begin{tikzpicture}[remember~picture,overlay]
2723 % left horizontal lower white rule
2724 \fill[white]
2725 ([xshift=.95\c_@@_layoutwidth_dim,yshift=\c_@@_logos_rectangle_height_dim]current~page~text~area.south~west)
2726 rectangle
2727 ++(-.85\c_@@_layoutwidth_dim,\c_@@_logos_rectangle_thickness_dim)
2728 ;
2729 % left vertical white rule
2730 \fill[white]
2731 ([xshift=10mm,yshift=\c_@@_logos_rectangle_height_dim]current~page~text~area.south~west)
2732 rectangle
2733 ([xshift=10mm-\c_@@_logos_rectangle_thickness_dim,yshift=-\c_@@_logos_rectangle_height_dim+\c_@@_logos_rectangle_thickness_dim]current~page~text~area.north~west) ;
2734 % left horizontal upper white rule
2735 \fill[white]
2736 ([xshift=.95\c_@@_layoutwidth_dim,yshift=-\c_@@_logos_rectangle_height_dim+\c_@@_logos_rectangle_thickness_dim]current~page~text~area.north~west)
2737 rectangle
2738 ([xshift=.6\c_@@_layoutwidth_dim,yshift=-\c_@@_logos_rectangle_height_dim]current~page~text~area.north~west) ;
2739 % crop marks
2740 \draw [white]
2741 ([xshift=-2.5mm]current~page~text~area.north~west) --
2742 ([xshift=-7.5mm]current~page~text~area.north~west);
2743 \draw [white]
2744 ([yshift=2.5mm]current~page~text~area.north~west) --
2745 ([yshift=7.5mm]current~page~text~area.north~west);
2746 \draw [white]
2747 ([xshift=-2.5mm]current~page~text~area.south~west) --
2748 ([xshift=-7.5mm]current~page~text~area.south~west);
2749 \draw [white]
2750 ([yshift=-2.5mm]current~page~text~area.south~west) --
2751 ([yshift=-7.5mm]current~page~text~area.south~west);
2752 % binding limit
2753 \bool_if:NT {\g_@@_show_binding_bool} {
2754 \draw[green]
2755 ([xshift=-.5\c_@@_potential_bindingoffset_dim]current~page.north~east) --
2756 ([xshift=-.5\c_@@_potential_bindingoffset_dim]current~page.south~east);
2757 }
2758 \end{tikzpicture}
2759 \clearpage%
2760 \bool_gset_false:N \g_@@_frontcover_bool
2761 }
2762 % \end{macrocode}
2763 %
2764 % \section{Displaying the inside front cover}
2765 %
2766 % We create the variable that displays the inside front cover.
2767 % \begin{macrocode}
2768 \tl_new:N \g_@@_display_inside_frontcover_tl%
2769 \tl_gset:Nn \g_@@_display_inside_frontcover_tl {%
2770 \bool_gset_true:N \g_@@_inside_frontcover_bool%
2771 \pagestyle{_@@_inside_cover_ps}%
2772 \exp_after:wN\newgeometry\exp_after:wN{%
2773 \c_@@_inside_cover_geometry_tl
2774 ,outer=\c_@@_outermargin_inside_frontcover_dim
2775 }%
2776 % \tikz[remember~picture,overlay] {%
2777 % \draw [green]
2778 % (current~page~text~area.south~west)
2779 % rectangle
2780 % (current~page~text~area.north~east)
2781 % ;
2782 % }
2783 \setlist[description,1]{font=\scshape\bfseries}
2784 \footnotesize%
2785 \begin{multicols*}{2}
2786 \raggedright
2787 \setlength{\columnsep}{1mm}
2788 \begin{description}[leftmargin=2em]
2789 \item[\c_@@_editorinchief_string_tl] \
2790 \begin{description}[leftmargin=1em]
2791 \@@_display_people_by_role:n {editorinchief}
2792 \end{description}
2793 \bigskip
2794 \par
2795 \item[\c_@@_associate_editors_string_tl] \
2796 \begin{description}[leftmargin=1em]
2797 \@@_display_people_by_role:n {editor}
2798 \end{description}
2799 \bigskip
2800 \par
2801 \item[\c_@@_field_editor_string_tl] \
2802 \begin{description}[leftmargin=1em]
2803 \@@_display_people_by_role:n {fieldseditor}
2804 \end{description}
2805 \bigskip
2806 \par
2807 \item[\c_@@_managing_editor_string_tl] \
2808 \begin{description}[leftmargin=1em]
2809 \@@_display_people_by_role:n {managingeditor}
2810 \end{description}
2811 \end{description}
2812 \end{multicols*}
2813 % \clearpage%
2814 \restoregeometry
2815 \bool_gset_false:N \g_@@_inside_frontcover_bool
2816 \pagestyle{@@_frontmatter_ps}%
2817 \restoregeometry
2818 % \exp_after:wN\newgeometry\exp_after:wN{\c_@@_main_geometry_tl}%
2819 }
2820 % \end{macrocode}
2821 %
2822 % \section{Displaying the inside back cover}
2823 %
2824 % We create the variable that displays the inside back cover.
2825 % \begin{macrocode}
2826 \tl_new:N \g_@@_display_inside_backcover_tl%
2827 \tl_gset:Nn \g_@@_display_inside_backcover_tl {%
2828 \bool_gset_true:N \g_@@_inside_backcover_bool%
2829 \pagestyle{_@@_inside_cover_ps}%
2830 \exp_after:wN\newgeometry\exp_after:wN{%
2831 \c_@@_inside_cover_geometry_tl
2832 ,outer=\c_@@_outermargin_inside_backcover_dim
2833 }%
2834 % \tikz[remember~picture,overlay] {%
2835 % \draw [purple]
2836 % (current~page~text~area.south~west)
2837 % rectangle
2838 % (current~page~text~area.north~east)
2839 % ;
2840 % }
2841 \setlist[description,1]{font=\scshape\bfseries}
2842 \begin{description}[leftmargin=1em]
2843 \item[\c_@@_authors_instructions_string_tl{}:] \
2844 \g_@@_authors_instructions_tl
2845 \item[\c_@@_editorial_secretariat_string_tl{}:] \ \par%
2846 % \l_@@_journal_publisher_tl%
2847 % \par%
2848 % \c_space_tl\textendash{}\c_space_tl%
2849 \_@@_display_people_by_role:n { secretary }\par
2850 \l_@@_journal_address_tl\par%
2851 \c_@@_phone_string_tl{}:~\l_@@_journal_phone_tl{}\par%
2852 \_@@_email:n {\l_@@_journal_email_tl}
2853 \newline%
2854 % \c_space_tl\textendash{}\c_space_tl
2855 \url{\l_@@_journal_url_tl}
2856 \tl_if_empty:NF \l_@@_journal_issn_tl
2857 {%
2858 \item[\c_@@_issn_string_tl{}:] \l_@@_journal_issn_tl
2859 }
2860 \tl_if_empty:NF \l_@@_journal_isbn_tl
2861 {%
2862 \item[\c_@@_isbn_string_tl{}:] \l_@@_journal_isbn_tl
2863 }
2864 \item[\c_@@_latexclass_string_tl{}:]
2865 \_@@_display_people_by_role:n { classdesigner }
2866 \item[\c_@@_computer_engineering_string_tl{}:] %\g_@@_printer_text_tl
2867 \_@@_display_people_by_role:n { computerengineer }
2868 \item[\c_@@_graphicdesign_string_tl{}:] %\g_@@_graphicdesign_text_tl
2869 \_@@_display_people_by_role:n { graphicdesign }
2870 \end{description}
2871 \g_@@_font_designer_text_tl
2872 \par
2873 \vspace*{\stretch{1}}
2874 \selectlanguage{french}
2875 \shorthandon{;:!?}
2876 \begin{description}
2877 \item[\c_@@_publication_director_string_tl{}~:]
2878 \_@@_display_people_by_role:n { publicationdirector }
2879 \item[\c_@@_composed_by_string_tl{}~:]
2880 \_@@_display_people_by_role:n { composer }
2881 \end{description}
2882 \DTMlangsetup*{showdayofmonth=false}
2883 \centering
2884 \g_@@_masthead_tl
2885 \selectlanguage{english}
2886 \bool_gset_false:N \g_@@_inside_backcover_bool
2887 }
2888 % \end{macrocode}
2889 %
2890 % \section{Displaying the back cover}
2891 %
2892 % \begin{macrocode}
2893 \tl_new:N \g_@@_display_backcover_tl%
2894 \tl_gset:Nn \g_@@_display_backcover_tl {%
2895 \bool_gset_true:N \g_@@_backcover_bool
2896 \exp_after:wN\newgeometry\exp_after:wN{%
2897 \c_@@_frontcover_geometry_tl
2898 ,layouthoffset=.5\c_@@_potential_bindingoffset_dim
2899 }%
2900 \bool_gset_true:N \g_@@_backcover_bool
2901 \begin{tikzpicture}[remember~picture,overlay]
2902 \NoAutoSpacing
2903 \begin{pgfonlayer}{background}
2904 \file_if_exist:nTF {\c_@@_cover_background_image_tl}{
2905 \node[anchor=north~west,outer~sep=0pt,inner~sep=0pt] at (current~page.north~west) {
2906 \includegraphics[width=\paperheight,height=\c_@@_paperwidth_dim,angle=90]{\c_@@_cover_background_image_tl}%
2907 };
2908 }{
2909 \fill[_@@_cover_background_color_tl] (current~page.north~east) rectangle
2910 (current~page.south~west);
2911 }
2912 \end{pgfonlayer}
2913 \_@@_binding_text:n {west}
2914 \end{tikzpicture}
2915 \noindent%
2916 \begin{tikzpicture}[remember~picture,overlay]
2917 % journal title
2918 \node [anchor=north,yshift=-\c_@@_layoutwidth_dim/20] at (current~page~text~area.north) {
2919 \begin{tcolorbox}[_@@_title_cover]
2920 North-Western~European\\[.5cm]
2921 Journal~of~Mathematics
2922 \end{tcolorbox}
2923 };
2924 % circular node for NWEJM logo
2925 \node[anchor=center,circle,fill=white,minimum~size=8.2cm] at
2926 ([yshift=-\c_@@_layoutheight_dim/2]current~page~text~area.north)
2927 {\includegraphics[height=5.5cm]{nwejm-logo}};
2928 % right vertical white rule
2929 \fill[white]
2930 ([xshift=-10mm,yshift=\c_@@_logos_rectangle_height_dim]current~page~text~area.south~east)
2931 rectangle
2932 ([xshift=-10mm+\c_@@_logos_rectangle_thickness_dim,yshift=\c_@@_logos_rectangle_height_dim+14cm]current~page~text~area.south~east) ;
2933 % right horizontal white rule
2934 \fill[white]
2935 ([yshift=\c_@@_logos_rectangle_height_dim+\c_@@_logos_rectangle_thickness_dim]current~page~text~area.south~west)
2936 rectangle
2937 ([xshift=.35\c_@@_layoutwidth_dim,yshift=\c_@@_logos_rectangle_height_dim]current~page~text~area.south~west) ;
2938 % number and year node
2939 \node[anchor=base~east] at
2940 ([xshift=-1.2cm,yshift=\c_@@_logos_rectangle_height_dim]current~page~text~area.south~east)
2941 {\color{white}\bfseries\sffamily\c_@@_frontcover_string_tl} ;
2942 % % white rectangle for university and laboratory logos
2943 \fill [white]
2944 ([yshift=\c_@@_logos_rectangle_height_dim-7.5mm]current~page~text~area.south~west)
2945 rectangle (current~page.south~east);
2946 % laboratory logo
2947 \node[anchor=south~east] at ([xshift=-10mm]current~page~text~area.south~east)
2948 {\includegraphics[height=.5\c_@@_logos_rectangle_height_dim]{nwejm-logo-painleve}} ;
2949 % university logo
2950 \node[anchor=south~west] at (current~page~text~area.south~west)
2951 {\includegraphics[height=.5\c_@@_logos_rectangle_height_dim]{nwejm-ul-fst-math}} ;
2952 % crop marks
2953 \draw [white]
2954 ([xshift=2.5mm]current~page~text~area.north~east) --
2955 ([xshift=7.5mm]current~page~text~area.north~east);
2956 \draw [white]
2957 ([yshift=2.5mm]current~page~text~area.north~east) --
2958 ([yshift=7.5mm]current~page~text~area.north~east);
2959 \draw
2960 ([xshift=2.5mm]current~page~text~area.south~east) --
2961 ([xshift=7.5mm]current~page~text~area.south~east);
2962 \draw
2963 ([yshift=-2.5mm]current~page~text~area.south~east) --
2964 ([yshift=-7.5mm]current~page~text~area.south~east);
2965 % binding limit
2966 \bool_if:NT {\g_@@_show_binding_bool} {
2967 \draw[green]
2968 ([xshift=.5\c_@@_potential_bindingoffset_dim]current~page.north~west) --
2969 ([xshift=.5\c_@@_potential_bindingoffset_dim]current~page.south~west);
2970 }
2971 \end{tikzpicture}
2972 }
2973 % \end{macrocode}
2974 %
2975 % \begin{macrocode}
2976 %</class>
2977 % \end{macrocode}
2978 %
2979 % \begin{macrocode}
2980 %<*class|class-article>
2981 % \end{macrocode}
2982 %
2983 % \section{Displaying the dates}
2984 %
2985 % We create the variable that displays the dates.
2986 % \begin{macrocode}
2987 \cs_new_protected:Nn \_@@_date:nn
2988 {
2989 \tl_if_exist:nT {#2}
2990 {
2991 \tl_if_empty:nF {#2}
2992 {
2993 \tl_if_eq:NnF \c_@@_date_received_tl {#1} { \c_@@_dates_separator_tl }
2994 \text_titlecase_first:n { \exp_args:No \GetTranslation{#1} }
2995 \c_@@_colon_tl\c_space_tl
2996 \DTMdate{#2}%
2997 }
2998 }
2999 }
3000 \tl_new:N \g_@@_display_dates_tl%
3001 \tl_gset:Nn \g_@@_display_dates_tl {%
3002 \footnotesize%
3003 \_@@_date:nn {\c_@@_date_received_tl}{\g_@@_reception_date_tl}
3004 \_@@_date:nn {\c_@@_date_accepted_tl}{\g_@@_acception_date_tl}
3005 \_@@_date:nn {\c_@@_date_online_tl} {\g_@@_online_date_tl}
3006 \tl_gclear:N \g_@@_reception_date_tl
3007 \tl_gclear:N \g_@@_acception_date_tl
3008 \tl_gclear:N \g_@@_online_date_tl
3009 }
3010 % \end{macrocode}
3011 %
3012 % \section{Displaying the keywords}
3013 %
3014 % \begin{macro}{\keywords}
3015 % \begin{macro}{\g_@@_keywords_tl}
3016 % The command for article's keywords is defined: the article's keywords is
3017 % store in "\g_@@_keywords_tl" for later use.
3018 % \begin{macrocode}
3019 \tl_new:N \g_@@_keywords_tl
3020 \NewDocumentCommand \keywords { O{} m } {
3021 \tl_gclear:N \g_@@_keywords_tl
3022 \tl_clear:N \l_tmpb_clist
3023 \clist_set:Nn \l_tmpb_clist {#2}
3024 \tl_set:Nx \g_@@_keywords_tl { \clist_use:Nnnn \l_tmpb_clist { ,~ } { ,~ } { ,~ } }
3025 %<class-article> \tl_if_empty:nTF {#1} {%
3026 %<class-article> \hypersetup{pdfkeywords={\g_@@_keywords_tl}}
3027 %<class-article> }{
3028 %<class-article> \clist_set:Nn \l_tmpb_clist {#1}
3029 %<class-article> \hypersetup{pdfkeywords={\clist_use:Nnnn \l_tmpb_clist { ,~ } { ,~ } { ,~ }}}
3030 %<class-article> }
3031 }
3032 % \end{macrocode}
3033 % \end{macro}
3034 % \end{macro}
3035 %
3036 % \section{Displaying the Mathematical Subject Classification (\textsc{msc})}
3037 %
3038 % \begin{macro}{\msc}
3039 % \begin{macro}{\g_@@_msc_tl}
3040 % The command for article's \textsc{msc} is defined: the article's \textsc{msc} is
3041 % store in "\g_@@_msc_tl" for later use.
3042 % \begin{macrocode}
3043 \tl_new:N \g_@@_msc_tl
3044 \NewDocumentCommand \msc { m } {
3045 \tl_gclear:N \g_@@_msc_tl
3046 \tl_clear:N \l_tmpa_clist
3047 \clist_set:Nn \l_tmpa_clist {#1}
3048 \tl_set:Nn \g_@@_msc_tl { \clist_use:Nnnn \l_tmpa_clist { ,~ } { ,~ } { ,~ } }
3049 %%<class-article> \hypersetup{pdfmsc=\g_@@_msc_tl}
3050 }
3051 % \end{macrocode}
3052 % \end{macro}
3053 % \end{macro}
3054 %
3055 % \section{Page numbers' synchronization of standalone articles/issue}
3056 %
3057 % The machinery for page numbers' synchronization of standalone articles/issue
3058 % needs the main file name to be fixed (chosen name: \enquote{issue}). If that's
3059 % not the case an error is thrown.
3060 % \begin{macrocode}
3061 %<class>\str_if_eq:eeTF { \c_sys_jobname_str } { \c_@@_main_file_name_tl }{
3062 %<class> \bool_if:NT \g_@@_cover_bool {
3063 %<class> \msg_error:nn{nwejm}{Wrong~cover's~main~file~name!}
3064 %<class> }
3065 %<class>}{
3066 %<class> \bool_if:NTF \g_@@_cover_bool {
3067 %<class> \file_if_exist:nTF { \c_@@_issue_number_year_file_string_tl }
3068 %<class> {
3069 %<class> \file_input:n {\c_@@_issue_number_year_file_string_tl}
3070 %<class> }{
3071 %<class> \msg_error:nn{nwejm}{Main~file~needs~to~be~compiled!}
3072 %<class> }
3073 %<class> }{
3074 %<class> \msg_error:nn{nwejm}{Wrong~issue's~main~file~name!}
3075 %<class> }
3076 %<class>}
3077 % \end{macrocode}
3078 %
3079 % If the auxiliairy ×issue.aux× file:
3080 % \begin{itemize}
3081 % \item does exist, the first page number of the article gets extracted from here,
3082 % at least if the relevant information (×\getpagerefnumber{@@-\currfilebase})
3083 % is avaialable (otherwise, an error message is emitted since, it is the
3084 % manifestation of a problem that would lead to an extra page numbered 0),
3085 % \item doesn't exist, the first page number is by default 1, but may be fixed
3086 % thanks to the macro ×\fixpagenumber× (which has no effect in the case
3087 % ×issue.aux× file does exist).
3088 % \end{itemize}
3089 %
3090 % \begin{macrocode}
3091 %<class-article>
3092 %<class-article>\file_if_exist:nTF { \c_@@_main_file_name_tl.aux }
3093 %<class-article>{
3094 %<class-article> \externaldocument[@@-]{\c_@@_main_file_name_tl}
3095 %<class-article> \cs_generate_variant:Nn \int_set:Nn { Ne }
3096 %<class-article> \int_set:Ne \l_@@_first_page_number_int {\number\numexpr\getpagerefnumber{@@-\currfilebase}}
3097 %<class-article> \int_compare:nNnTF {\l_@@_first_page_number_int} > {0}
3098 %<class-article> {
3099 %<class-article> \AddToHook{begindocument/end}{\setcounter{page}{\l_@@_first_page_number_int}}
3100 %<class-article> }{
3101 %<class-article> \msg_error:nn{nwejmart}{Something~wrong~with~page~numbers}
3102 %<class-article> }
3103 %<class-article> \NewDocumentCommand \fixpagenumber { m } { }
3104 %<class-article>}{
3105 % \end{macrocode}
3106 %
3107 % In case one wants to manually control the page numbers, the following macro
3108 % ×\fixpagenumber{...}× has to be used instead of ×\setcounter{page}{...}×.
3109 % \begin{macrocode}
3110 \NewDocumentCommand \fixpagenumber { m } {
3111 %<class-article> \setcounter{page}{#1}
3112 }
3113 %<class-article>}
3114 % \end{macrocode}
3115 %
3116 % \section{User level commands}
3117 %
3118 % Here, we gather all the user level (public) commands.
3119 %
3120 % \begin{macrocode}
3121 %</class|class-article>
3122 % \end{macrocode}
3123 %
3124 % \begin{macrocode}
3125 %<*class>
3126 % \end{macrocode}
3127 %
3128 % \subsection{Populating the people involved in the journal}
3129 %
3130 % \begin{macro}{\editorinchief}
3131 % \begin{macro}{\managingeditor}
3132 % \begin{macro}{\fieldseditor}
3133 % \begin{macro}{\editor}
3134 % \begin{macro}{\classdesigner}
3135 % \begin{macro}{\fontdesigner}
3136 % \begin{macro}{\classmaintainer}
3137 % \begin{macro}{\graphicdesign}
3138 % \begin{macro}{\computerengineer}
3139 % \begin{macro}{\secretary}
3140 % We define some document-level commands that let the user specify
3141 % respectively the editor(s) in chief, the fields editor, the managing editor,
3142 % the editors, the class designer and maintainer(s), etc.
3143 % \begin{macrocode}
3144 \NewDocumentCommand \editorinchief {mmmm}
3145 {
3146 \_@@_people:nnnnn {#1}{#2}{#3}{#4}{editorinchief}
3147 }
3148 \NewDocumentCommand \editor {mmmm}
3149 {
3150 \_@@_people:nnnnn {#1}{#2}{#3}{#4}{editor}
3151 }
3152 \NewDocumentCommand \fieldseditor {mmmm}
3153 {
3154 \_@@_people:nnnnn {#1}{#2}{#3}{#4}{fieldseditor}
3155 }
3156 \NewDocumentCommand \managingeditor {mmmm}
3157 {
3158 \_@@_people:nnnnn {#1}{#2}{#3}{#4}{managingeditor}
3159 }
3160 \NewDocumentCommand \classdesigner {mmmm}
3161 {
3162 \_@@_people:nnnnn {#1}{#2}{#3}{#4}{classdesigner}
3163 }
3164 \NewDocumentCommand \computerengineer {mmmm}
3165 {
3166 \_@@_people:nnnnn {#1}{#2}{#3}{#4}{computerengineer}
3167 }
3168 \NewDocumentCommand \classmaintainer {mmmm}
3169 {
3170 \_@@_people:nnnnn {#1}{#2}{#3}{#4}{classmaintainer}
3171 }
3172 \NewDocumentCommand \fontdesigner {mmmm}
3173 {
3174 \_@@_people:nnnnn {#1}{#2}{#3}{#4}{fontdesigner}
3175 }
3176 \NewDocumentCommand \graphicdesign {mmmm}
3177 {
3178 \_@@_people:nnnnn {#1}{#2}{#3}{#4}{graphicdesign}
3179 }
3180 \NewDocumentCommand \computerassistance {mmmm}
3181 {
3182 \_@@_people:nnnnn {#1}{#2}{#3}{#4}{computerassistance}
3183 }
3184 \NewDocumentCommand \secretary {mmmm}
3185 {
3186 \_@@_people:nnnnn {#1}{#2}{#3}{#4}{secretary}
3187 }
3188 \NewDocumentCommand \publicationdirector {mmmm}
3189 {
3190 \_@@_people:nnnnn {#1}{#2}{#3}{#4}{publicationdirector}
3191 }
3192 \NewDocumentCommand \composer {mmmm}
3193 {
3194 \_@@_people:nnnnn {#1}{#2}{#3}{#4}{composer}
3195 }
3196 % \end{macrocode}
3197 % \end{macro}
3198 % \end{macro}
3199 % \end{macro}
3200 % \end{macro}
3201 % \end{macro}
3202 % \end{macro}
3203 % \end{macro}
3204 % \end{macro}
3205 % \end{macro}
3206 % \end{macro}
3207 %
3208 % \subsection{Issue setup}
3209 %
3210 % \begin{macro}{\issuesetup}
3211 % We define the command that lets the user specify the issue setup.
3212 % \begin{macrocode}
3213 \NewDocumentCommand \issuesetup { m } {
3214 % \end{macrocode}
3215 %
3216 % Its keys are set (only "number", "month" and "year" are relevant here).
3217 % \begin{macrocode}
3218 \keys_set:nn { nwejm/issuesetup } {#1}
3219 % \end{macrocode}
3220 %
3221 % We use here the fact that, if the "number", "month" or "year" options are not
3222 % used, their corresponding "\g_@@_issue_number_int", "\g_@@_issue_month_int" or
3223 % "\g_@@_issue_year_int" variables are equal to $0$ ($<1$).
3224 %
3225 % First, if "number" is not used, its "\g_@@_issue_number_int" variable is set
3226 % to "\c_@@_first_issue_number_int"\footnote{The number of the first journal's
3227 % issue using the present class.} and a warning is emitted.
3228 % \begin{macrocode}
3229 \int_compare:nNnT {\g_@@_issue_number_int}<{1}
3230 {
3231 \int_gset:Nn \g_@@_issue_number_int { \c_@@_first_issue_number_int }
3232 \msg_warning:nnn{nwejm}{Issue~number~needed}{number}
3233 }
3234 % \end{macrocode}
3235 %
3236 % If not specified as \refCom{issuesetup}'s key-value options, issue's month and
3237 % year are computed from issue number (which defaults to
3238 % "\c_@@_first_issue_month_int").
3239 %
3240 % \begin{macro}{\c_@@_issue_age_in_months_int}
3241 % First, if "month" or "year" option is not used (one of the previous
3242 % variables is $0$ hence their product is $0$ ($<1$)), we compute the issue
3243 % age in months, useful for both month and year computation.
3244 % \begin{macrocode}
3245 \int_compare:nNnT {\g_@@_issue_month_int * \g_@@_issue_year_int}<{1}
3246 {
3247 \int_new:N \g_@@_issue_age_in_months_int%
3248 \int_gset:Nn \g_@@_issue_age_in_months_int
3249 {
3250 \c_@@_first_issue_month_int
3251 + \c_@@_interval_in_months_int
3252 * ( \int_use:N \g_@@_issue_number_int - \c_@@_first_issue_number_int )
3253 }
3254 }
3255 % \end{macrocode}
3256 % \end{macro}
3257 %
3258 % If the "month" is not used, we replace "\g_@@_issue_month_int" ($=0$) by its
3259 % computed value from the issue number.
3260 % \begin{macrocode}
3261 \int_compare:nNnT {\g_@@_issue_month_int}<{1}
3262 {
3263 \int_gset:Nn \g_@@_issue_month_int
3264 {
3265 \int_mod:nn { \g_@@_issue_age_in_months_int } { 12 }
3266 }
3267 }
3268 % \end{macrocode}
3269 %
3270 % If the "year" is not used, we replace "\g_@@_issue_year_int" ($=0$) by its
3271 % computed value from the issue number.
3272 % \begin{macrocode}
3273 \int_compare:nNnT {\g_@@_issue_year_int}<{1}
3274 {
3275 \int_new:N \g_@@_issue_age_in_years_int%
3276 \int_gset:Nn \g_@@_issue_age_in_years_int
3277 {%
3278 \int_div_truncate:nn { \g_@@_issue_age_in_months_int } { 12 }
3279 }%
3280 \int_gset:Nn \g_@@_issue_year_int
3281 {
3282 \g_@@_issue_age_in_years_int + \c_@@_first_issue_year_int
3283 }
3284 }%
3285 % \end{macrocode}
3286 %
3287 % We fix some of the PDF's metadata.
3288 % \begin{macrocode}
3289 \bool_if:NT \g_@@_cover_bool {
3290 \hypersetup{
3291 pdftitle=\c_@@_journal_title_string_tl\c_space_tl--\c_space_tl\c_@@_frontcover_left_string_tl\c_space_tl--\c_space_tl\int_use:N\g_@@_issue_year_int,
3292 pdfauthor=\c_@@_journal_title_string_tl\c_space_tl(editor)
3293 }
3294 }
3295 % \end{macrocode}
3296 %
3297 % We write some data to an auxiliary file which be read by the file dedicated to
3298 % the cover pages production.
3299 % \begin{macrocode}
3300 \iow_new:N \g_@@_issue_number_year_out_iow
3301 \iow_open:Nn \g_@@_issue_number_year_out_iow {\c_@@_issue_number_year_file_string_tl}
3302 \iow_now:Nx \g_@@_issue_number_year_out_iow {
3303 \tl_const:Nn \token_to_str:N \c_@@_issue_number_tl {
3304 \int_eval:n {\g_@@_issue_number_int}
3305 }
3306 \iow_newline:
3307 \tl_const:Nn \token_to_str:N \c_@@_issue_year_tl {
3308 \int_eval:n {\g_@@_issue_year_int}
3309 }
3310 }
3311 \iow_close:N \g_@@_issue_number_year_out_iow
3312 }
3313 % \end{macrocode}
3314 % \end{macro}
3315 %
3316 % \subsection{Journal setup}
3317 %
3318 % \begin{macro}{\journalsetup}
3319 % We define the command that lets us specify the journal setup. This setup is
3320 % likely to be rarely changed.
3321 % \begin{macrocode}
3322 \NewDocumentCommand \journalsetup { m } {
3323 % \end{macrocode}
3324 %
3325 % Its keys are set (only "publisher", "address", "phone", "email", "url"
3326 % and "issn" are relevant here).
3327 % \begin{macrocode}
3328 \keys_set:nn { nwejm/journalsetup } { #1 }
3329 }
3330 % \end{macrocode}
3331 %
3332 % \begin{macro}{\authorsinstructions}
3333 % We define the command that lets us specify the instructions to authors. This
3334 % setup is likely to be rarely changed.
3335 % \begin{macrocode}
3336 \tl_new:N \g_@@_authors_instructions_tl
3337 \NewDocumentCommand \authorsinstructions { +m } {
3338 \IfNoValueF {#1}
3339 {
3340 \tl_gset:Nn \g_@@_authors_instructions_tl {#1}
3341 }
3342 }
3343 % \end{macrocode}
3344 %
3345 % \begin{macro}{\masthead}
3346 % We define the command that lets us specify the masthead (\enquote{ours} in French). This
3347 % setup is likely to be rarely changed.
3348 % \begin{macrocode}
3349 \tl_new:N \g_@@_masthead_tl
3350 \NewDocumentCommand \masthead { +m } {
3351 \IfNoValueF {#1}
3352 {
3353 \tl_gset:Nn \g_@@_masthead_tl {#1}
3354 }
3355 }
3356 % \end{macrocode}
3357 %
3358 % \begin{macrocode}
3359 %</class>
3360 % \end{macrocode}
3361 %
3362 % \begin{macrocode}
3363 %<*class|class-article>
3364 % \end{macrocode}
3365 %
3366 % \end{macro}
3367 %
3368 % \subsection{\Pkg{Varioref}}
3369 %
3370 % We have to save the extra definitions of the \Pkg{varioref} which currently is
3371 % multilingual aware.
3372 % \begin{macrocode}
3373 \vref@addto\extrasfrench{%
3374 \def\reftextfaceafter {page~\reftextvario{ci-contre}{suivante}}%
3375 \def\reftextfacebefore{page~\reftextvario{ci-contre}%
3376 {pr\'ec\'edente}}%
3377 \def\reftextafter
3378 {page~suivante}%
3379 \def\reftextbefore
3380 {page~pr\'ec\'edente}%
3381 \def\reftextcurrent {de~la~pr\'esente~page}%
3382 \def\reftextfaraway#1{p.\nobreakspace\pageref{#1}}%
3383 \def\reftextpagerange#1#2{p.\nobreakspace\pageref{#1}--\pageref{#2}}%
3384 \def\reftextlabelrange#1#2{\ref{#1}~\‘a\nobreakspace\ref{#2}}%
3385 }
3386 \vref@addto\extrasngerman{%
3387 \def\reftextfaceafter {auf~der~n\"achsten~Seite}%
3388 \def\reftextfacebefore{auf~der~vorherigen~Seite}%
3389 \let\reftextafter \reftextfaceafter
3390 \let\reftextbefore \reftextfacebefore
3391 \def\reftextcurrent {auf~dieser~Seite}%
3392 \def\reftextfaraway#1{auf~S.\nobreakspace\pageref{#1}}%
3393 \def\reftextpagerange#1#2{auf~den~S.\nobreakspace\pageref{#1}--\pageref{#2}}%
3394 \def\reftextlabelrange#1#2{\ref{#1}~bis\nobreakspace\ref{#2}}%
3395 }
3396 \vref@addto\extrasdutch{%
3397 \def\refpagename{pagina}%
3398 \def\reftextfaceafter {op~de~\reftextvario{rechter~\refpagename}%
3399 {\refpagename\ hiernaast}}%
3400 \def\reftextfacebefore{op~de~\reftextvario{linker~\refpagename}%
3401 {\refpagename\ hiernaast}}%
3402 \def\reftextafter {op~de~\reftextvario{volgende~\refpagename}%
3403 {\refpagename\ hierna}}%
3404 \def\reftextbefore {op~de~\reftextvario{vorige~\refpagename}%
3405 {\refpagename\ hiervoor}}%
3406 \def\reftextcurrent {op~deze~\refpagename}%
3407 \def\reftextfaraway#1{op~\refpagename\nobreakspace\pageref{#1}}
3408 }
3409 \vref@addto\extrasenglish{%
3410 \def\reftextfaceafter {on~the~\reftextvario{facing}{next}~page}%
3411 \def\reftextfacebefore{on~the~\reftextvario{facing}{preceding}~page}%
3412 \def\reftextafter {on~the~\reftextvario{following}{next}~page}%
3413 \def\reftextbefore {on~the~\reftextvario{preceding}{previous}~page}%
3414 \def\reftextcurrent {on~\reftextvario{this}{the~current}~page}%
3415 \def\reftextfaraway#1{on~p.\nobreakspace\pageref{#1}}%
3416 \def\reftextpagerange#1#2{on~pp.\nobreakspace\pageref{#1}--\pageref{#2}}%
3417 \def\reftextlabelrange#1#2{\ref{#1}~to\nobreakspace\ref{#2}}%
3418 }
3419 % \end{macrocode}
3420 %
3421 % We don't want randomization in the \package{varioref} expressions in order to
3422 % reduce discrepancies between the whole issue and the individual articles.
3423 % \begin{macrocode}
3424 \def\reftextvario#1#2{#2}
3425 % \end{macrocode}
3426 %
3427 % \subsection{Article setup}
3428 %
3429 % Some of the document commands will be restricted to document body, as the
3430 % following ×\articlesetup× command whose effects would otherwise be overriden
3431 % when, for the whole issue, preambles of each article will be gathered thanks
3432 % to \Pkg{standalone}.
3433 % \begin{macrocode}
3434 \cs_new_protected:Nn \_@@_command_only_in_body:n
3435 {
3436 \cs_if_eq:NNF \@onlypreamble \@notprerr {
3437 \msg_error:nnn{
3438 %<class-article> nwejmart
3439 %<class> nwejm
3440 }{Command~restricted~to~document~body~used~in~preamble}{#1}
3441 }
3442 }
3443 % \end{macrocode}
3444 %
3445 % \begin{macro}{\articlesetup}
3446 % We define the command that lets the user specify the article setup.
3447 % \begin{macrocode}
3448 \NewDocumentCommand \articlesetup { m } {
3449 \_@@_command_only_in_body:n {\articlesetup}
3450 \keys_set:nn { nwejm/articlesetup } {#1}
3451 }
3452 % \end{macrocode}
3453 % \end{macro}
3454 %
3455 % \subsection{Dates setup}
3456 %
3457 % \begin{macro}{\dates}
3458 % We define the command that lets the user specify the issue setup.
3459 % \begin{macrocode}
3460 \NewDocumentCommand \dates { m } {
3461 \keys_set:nn { nwejm/dates } { #1 }
3462 }
3463 % \end{macrocode}
3464 % \end{macro}
3465 %
3466 % \end{macrocode}
3467 %
3468 % \begin{macrocode}
3469 %</class|class-article>
3470 % \end{macrocode}
3471 %
3472 % \begin{macrocode}
3473 %<*class>
3474 % \end{macrocode}
3475 %
3476 % \subsection{Input variant}
3477 %
3478 % We create a variant of the "\input" macro to be used for the input of each
3479 % article: it starts a new \package{biblatex}'s "refsection" and reset to zero
3480 % some counters. It also redefine the glossaries' rules since glossaries'
3481 % acronyms' suffix in effect are not for the last loaded language (see
3482 % \url{https://tex.stackexchange.com/q/475788/18401}).
3483 % \begin{macrocode}
3484 \NewDocumentCommand \inputarticle { O{english} m } {%
3485 % \end{macrocode}
3486 %
3487 % First, we don't want the (next) title to appear in the headers of the preceding
3488 % article.
3489 % \begin{macrocode}
3490 \cleardoublepage
3491 \int_gincr:N \g_@@_articles_int
3492 \newrefsection
3493 \renewcommand*{\glspluralsuffix}{s}
3494 \renewcommand*{\glsacrpluralsuffix}{\glspluralsuffix}
3495 \renewcommand*{\glsupacrpluralsuffix}{\glstextup{\glsacrpluralsuffix}}
3496 \StandardFootnotes
3497 \str_case:nn {#1} {
3498 {english} {
3499 \selectlanguage{english}
3500 % \shorthandoff{"}%
3501 \renewcommand*{\glossaryname}{Glossary}%
3502 \renewcommand*{\acronymname}{Acronyms}%
3503 \renewcommand*{\entryname}{Notation}%
3504 \renewcommand*{\descriptionname}{Description}%
3505 \renewcommand*{\symbolname}{Symbol}%
3506 \renewcommand*{\pagelistname}{Page List}%
3507 \renewcommand*{\glssymbolsgroupname}{Symbols}%
3508 \renewcommand*{\glsnumbersgroupname}{Numbers}%
3509 }
3510 {german} {
3511 \selectlanguage{ngerman}
3512 % \shorthandon{"}%
3513 \renewcommand*{\glossaryname}{Glossar}%
3514 \renewcommand*{\acronymname}{Akronyme}%
3515 \renewcommand*{\entryname}{Bezeichnung}%
3516 \renewcommand*{\descriptionname}{Beschreibung}%
3517 \renewcommand*{\symbolname}{Symbol}%
3518 \renewcommand*{\pagelistname}{Seiten}%
3519 \renewcommand*{\glssymbolsgroupname}{Symbole}%
3520 \renewcommand*{\glsnumbersgroupname}{Zahlen}%
3521 }
3522 {ngerman} {
3523 \selectlanguage{ngerman}
3524 % \shorthandon{"}%
3525 \renewcommand*{\glossaryname}{Glossar}%
3526 \renewcommand*{\acronymname}{Akronyme}%
3527 \renewcommand*{\entryname}{Bezeichnung}%
3528 \renewcommand*{\descriptionname}{Beschreibung}%
3529 \renewcommand*{\symbolname}{Symbol}%
3530 \renewcommand*{\pagelistname}{Seiten}%
3531 \renewcommand*{\glssymbolsgroupname}{Symbole}%
3532 \renewcommand*{\glsnumbersgroupname}{Zahlen}%
3533 }
3534 {french} {
3535 \selectlanguage{french}
3536 % \shorthandoff{"}%
3537 % \end{macrocode}
3538 %
3539 % Though we switch to \pkg{babel}'s ×french×, footnotes are not displayed as
3540 % French ones in the issue. The following fixes this trouble.
3541 % \begin{macrocode}
3542 \FrenchFootnotes
3543 \renewcommand*{\glossaryname}{Glossaire}%
3544 \renewcommand*{\acronymname}{Acronymes}%
3545 \renewcommand*{\entryname}{Terme}%
3546 \renewcommand*{\descriptionname}{Description}%
3547 \renewcommand*{\symbolname}{Symbole}%
3548 \renewcommand*{\pagelistname}{Pages}%
3549 \renewcommand*{\glssymbolsgroupname}{Symboles}%
3550 \renewcommand*{\glsnumbersgroupname}{Nombres}%
3551 \renewcommand*{\glspluralsuffix}{s}
3552 \renewcommand*{\glsacrpluralsuffix}{}
3553 \renewcommand*{\glsupacrpluralsuffix}{}
3554 }
3555 {dutch} {
3556 \selectlanguage{dutch}
3557 % \shorthandon{"}%
3558 \renewcommand*{\glossaryname}{Woordenlijst}%
3559 \renewcommand*{\acronymname}{Acroniemen}%
3560 \renewcommand*{\entryname}{Benaming}%
3561 \renewcommand*{\descriptionname}{Beschrijving}%
3562 \renewcommand*{\symbolname}{Symbool}%
3563 \renewcommand*{\pagelistname}{Pagina's}%
3564 \renewcommand*{\glssymbolsgroupname}{Symbolen}%
3565 \renewcommand*{\glsnumbersgroupname}{Cijfers}%
3566 }
3567 }%
3568 % \end{macrocode}
3569 %
3570 % We reset setup possibly chosen in previous articles.
3571 % \begin{macrocode}
3572 %<class> \bool_gset_false:N \g_@@_gradient_nabla_bool
3573 %<class> \bool_gset_false:N \g_@@_gradient_nabla_control_bool
3574 %<class> \bool_gset_false:N \g_@@_grad_used_bool
3575 % \end{macrocode}
3576 %
3577 % \begin{macrocode}
3578 \inputfrom{./}{#2}
3579 % \end{macrocode}
3580 % The list of counters we want to be able to easily set to zero doesn't contains
3581 % only the ones associated to the (numbered) theorem environments: it should
3582 % contain the following ones as well:
3583 % \begin{macrocode}
3584 \clist_gput_right:Nn \g_@@_counters_to_be_reset_clist {
3585 footnote,
3586 section,
3587 figure,
3588 table,
3589 equation
3590 }
3591 % \end{macrocode}
3592 % We set to zero the counters that should be at the end of each article input:
3593 % \begin{macrocode}
3594 \clist_map_inline:Nn \g_@@_counters_to_be_reset_clist {
3595 \@ifundefined{c@##1}{
3596 }{
3597 \setcounter{##1}{\c_zero_int}
3598 }
3599 }
3600 % \end{macrocode}
3601 % We ensure the sections' counter will be printed as arabic numerals (in case
3602 % ×\appendix× has been used in a previous article):
3603 % \begin{macrocode}
3604 \gdef\thesection{\@arabic\c@section}
3605 % \end{macrocode}
3606 % We reset all acronyms entries.
3607 % \begin{macrocode}
3608 \glsresetall
3609 \selectlanguage{english}
3610 }
3611 % \end{macrocode}
3612 %
3613 % \begin{macrocode}
3614 %</class>
3615 % \end{macrocode}
3616 %
3617 % \begin{macrocode}
3618 %<*class|class-article>
3619 % \end{macrocode}
3620 %
3621 % \section{(Re)Definition of document commands that identify the article}
3622 %
3623 % The names of the authors of the different articles will appear at several
3624 % places, and notably in the table of contents where first and middle names have to
3625 % be rendered as initials. Because automatically rendering initials is a complex task
3626 % already provided by \Pkg{biblatex}, we will create a \file{.bib} file
3627 % containing "article" entries for each article of the \nwejm{} journal.
3628 %
3629 % This can be done only at the beginning of the document, in order to know the
3630 % characteristics of the current issue.
3631 % \begin{macrocode}
3632 \AddToHook{begindocument}{%
3633 % \end{macrocode}
3634 %
3635 % We will populate the bibiliographic file of the current issue with the current
3636 % issue (as "@periodical" entry type).
3637 % \begin{macrocode}
3638 \iow_now:Nx \g_@@_bib_out_iow {%
3639 @periodical{\c_@@_issue_bib_key_tl,\iow_newline:
3640 issuetitle = {\exp_not:f\c_@@_journal_title_string_tl},\iow_newline:
3641 number = \int_use:N \g_@@_issue_number_int,\iow_newline:
3642 % issn = {\l_@@_journal_issn_tl},\iow_newline:
3643 options = {skipbib}\iow_newline:
3644 }
3645 \iow_newline:
3646 }%
3647 }
3648 % \end{macrocode}
3649 %
3650 % \begin{macro}{\title}
3651 % \begin{macro}{\g_@@_title_tl}
3652 % The command for article's title is redefined: the full \enquote{article's
3653 % title} is store in "\g_@@_title_tl" for later use.
3654 % \begin{macrocode}
3655 \tl_new:N \g_@@_title_tl
3656 \RenewDocumentCommand \title { o o m } {
3657 % \end{macrocode}
3658 %
3659 % We increment the "\g_@@_articles_int" integer that counts the number of
3660 % articles in order to provide for each of them a unique bibliographic key.
3661 % \begin{macrocode}
3662 \tl_gclear:N \g_@@_short_title_tl
3663 \tl_gclear:N \g_@@_header_title_tl
3664 \tl_gclear:N \g_@@_short_subtitle_tl
3665 %
3666 \IfNoValueF {#1}
3667 {
3668 \tl_gset:Nn \g_@@_short_title_tl {#1}
3669 }
3670 \IfNoValueF {#2}
3671 {
3672 \tl_gset:Nn \g_@@_header_title_tl {#2}
3673 }
3674 \tl_gset:Nn \g_@@_title_tl {#3}
3675 \tl_if_empty:NT \g_@@_short_title_tl {%
3676 \tl_gset_eq:NN \g_@@_short_title_tl \g_@@_title_tl
3677 }
3678 \tl_if_empty:NT \g_@@_header_title_tl {%
3679 \tl_gset_eq:NN \g_@@_header_title_tl \g_@@_short_title_tl
3680 }
3681 }
3682 % \end{macrocode}
3683 % \end{macro}
3684 % \end{macro}
3685 %
3686 % \begin{macro}{\subtitle}
3687 % \begin{macro}{\g_@@_subtitle_tl}
3688 % The command for article's subtitle is redefined: the full and short
3689 % \enquote{article's subtitles} are store in "\g_@@_subtitle_tl" and
3690 % "\g_@@_short_subtitle_tl" for later use.
3691 % \begin{macrocode}
3692 \tl_new:N \g_@@_subtitle_tl
3693 \NewDocumentCommand \subtitle { o m } {
3694 \IfNoValueF {#1}
3695 {
3696 \tl_gset:Nn \g_@@_short_subtitle_tl {#1}
3697 }
3698 \tl_gset:Nn \g_@@_subtitle_tl {#2}
3699 \tl_if_empty:NT \g_@@_short_subtitle_tl {%
3700 \tl_gset_eq:NN \g_@@_short_subtitle_tl \g_@@_subtitle_tl
3701 }
3702 }
3703 % \end{macrocode}
3704 % \end{macro}
3705 % \end{macro}
3706 %
3707 % \begin{macro}{\author}
3708 % The command for article's author (including its affiliation) is redefined.
3709 % \begin{macrocode}
3710 \RenewDocumentCommand \author { O{} m } {
3711 % \end{macrocode}
3712 %
3713 % We don't want the (next) authors to appear in the headers of the preceding
3714 % article.
3715 % \begin{macrocode}
3716 \cleardoublepage
3717 % \end{macrocode}
3718 %
3719 % \begin{macrocode}
3720 \int_incr:N \l_@@_author_int
3721 \prop_gput_if_not_in:Nxn \g_@@_authors_prop {author_\int_use:c {l_@@_author_int}} {#2}
3722 \IfNoValueF {#1}
3723 {
3724 \keys_set:nn { nwejm/authors } { #1 }
3725 }
3726 \prop_set_eq:cN {l_author_ \int_use:c {l_@@_author_int} _affiliations_prop} \l_tmpa_prop
3727 \prop_clear:N \l_tmpa_prop
3728 \_@@_populate_bib_file:nn {#2}{author-art-\int_use:N \g_@@_articles_int}
3729 \tl_if_empty:NTF \l_@@_people_first_last_names_tl {%
3730 \tl_put_right:Nn
3731 \l_@@_people_first_last_names_tl
3732 {#2}
3733 }{
3734 \tl_put_right:Nn
3735 \l_@@_people_first_last_names_tl
3736 {~and~#2}
3737 }
3738 }
3739 % \end{macrocode}
3740 % \end{macro}
3741 %
3742 % We create a stream in order to write a bibliographic file
3743 % \begin{macrocode}
3744 \iow_new:N \g_@@_bib_out_iow
3745 \ior_new:N \g_@@_bib_out_ior
3746 \tl_new:N \g_@@_bib_out_tl
3747 \file_if_exist:nTF { \c_@@_issue_bib_path_string_tl }
3748 {
3749 \ior_open:Nn \g_@@_bib_out_ior { \c_@@_issue_bib_path_string_tl }
3750 \ior_str_map_inline:Nn \g_@@_bib_out_ior
3751 { \tl_gput_right:Nn \g_@@_bib_out_tl {#1 \par } }
3752 \ior_close:N \g_@@_bib_out_ior
3753 }{
3754 \typeout{no file! rerun}
3755 }
3756 \iow_open:Nn \g_@@_bib_out_iow { \c_@@_issue_bib_path_string_tl }
3757 % \end{macrocode}
3758 %
3759 % \begin{environment}{abstract}
3760 % The environment for article's abstract.
3761 % \begin{macrocode}
3762 \tl_new:N \g_@@_abstract_body_tl
3763 \NewDocumentEnvironment{abstract}{}
3764 {\CollectAbstract}
3765 {\endCollectAbstract}
3766 \NewEnviron{CollectAbstract}
3767 {
3768 \tl_gset_eq:NN \g_@@_abstract_body_tl \BODY
3769 }
3770 % \end{macrocode}
3771 % \end{environment}
3772 %
3773 % \section{Definition of a private front and main matter switches}
3774 %
3775 % A private "\_@@_frontmatter_switch_tl" switch is defined in order to
3776 % automatically insert some settings.
3777 % \begin{macrocode}
3778 \tl_gset:Nn \g_@@_frontmatter_switch_tl {
3779 \bool_gset_true:N \g_@@_frontmatter_bool
3780 \frontmatter
3781 % \pagestyle{@@_frontmatter_ps}%
3782 % \exp_after:wN\newgeometry\exp_after:wN{\c_@@_main_geometry_tl}%
3783 }
3784 % \end{macrocode}
3785 %
3786 % A private "\_@@_mainmatter_switch_tl" switch is defined in order to
3787 % automatically insert some settings.
3788 % \begin{macrocode}
3789 \tl_new:N \g_@@_mainmatter_switch_tl%
3790 \tl_gset:Nn \g_@@_mainmatter_switch_tl {
3791 \bool_gset_false:N \g_@@_frontmatter_bool
3792 \bool_gset_true:N \g_@@_mainmatter_bool
3793 \mainmatter
3794 % \SetParskip{\c_@@_mainmatter_parskip_skip}
3795 \pagestyle{@@_mainmatter_ps}%
3796 \restoregeometry
3797 % \exp_after:wN\newgeometry\exp_after:wN{\c_@@_main_geometry_tl}%
3798 }
3799 % \end{macrocode}
3800 %
3801 % \section{Definition of the acknowledgments}
3802 %
3803 % \begin{macrocode}
3804 \tl_new:N \g_@@_article_acknowledgments_tl%
3805 \cs_new_protected:Nn \@@_article_acknowledgments:n
3806 {
3807 \tl_gset:Nn \g_@@_article_acknowledgments_tl { #1 }
3808 }
3809 \NewDocumentCommand \acknowledgments { m } {
3810 \@@_article_acknowledgments:n {#1}
3811 }
3812 % \end{macrocode}
3813 %
3814 % \section{Definition of the title command}
3815 %
3816 % We create two token lists that will contain:
3817 % \begin{enumerate}
3818 % \item the unique bibliographic key,
3819 % \item the "author" value of the bibliographic entry,
3820 % \end{enumerate}
3821 % of the current article.
3822 % \begin{macrocode}
3823 \tl_new:N \g_@@_article_bib_key_tl%
3824 \tl_new:N \l_@@_people_first_last_names_tl
3825 \tl_new:N \g_@@_citeauthor_tl%
3826 \int_new:N \g_@@_author_s_number_current_article_int%
3827 %
3828 \cs_new_protected:Nn \_@@_citeauthor_no_giveninits:n {%
3829 \tl_gset:Nn \g_@@_citeauthor_tl {%
3830 \DeclareNameAlias{labelname}{default}%
3831 \group_begin:
3832 \togglefalse{abx@bool@giveninits}%
3833 \citeauthor{#1}
3834 \group_end:
3835 }%
3836 \cs_if_exist:cTF {texorpdfstring}
3837 {
3838 \texorpdfstring{\g_@@_citeauthor_tl}{}
3839 }{%
3840 \g_@@_citeauthor_tl
3841 }%
3842 }
3843 % \end{macrocode}
3844 %
3845 % In the following "\maketitle" document level macro, we will need to display
3846 % the list the authors of the current article, not as a comma separated list
3847 % (default "\citeauthor" \pkg{biblatex}'s macro behavior), but as an itemized
3848 % list. For this, we create the "\_@@_itemized_citeauthor" internal function
3849 % that will make use of "\citeauthor" where "\multinamedelim" and
3850 % "\finalnamedelim" will be patched into "\item". As we don't want to globally
3851 % alter the behavior of these macros, we first store their original meanings in
3852 % some private control sequence:
3853 % \begin{macrocode}
3854 \cs_set_eq:NN \_@@_orig_multinamedelim:n \multinamedelim
3855 \cs_set_eq:NN \_@@_orig_finalnamedelim:n \finalnamedelim
3856 \cs_new_protected:Nn \_@@_maketitle_citeauthor:n
3857 {
3858 \restorecommand\mkbibnamelast
3859 \def\multinamedelim {\hskip 1em \@plus.17fil}%
3860 \cs_set_eq:NN \finalnamedelim \multinamedelim
3861 \AtNextCitekey{\defcounter{maxnames}{100}}
3862 \group_begin:
3863 \DeclareNameAlias{labelname}{default}%
3864 \togglefalse{abx@bool@giveninits}%
3865 \citeauthor{#1}
3866 \group_end:
3867 \cs_set_eq:NN \multinamedelim \_@@_orig_multinamedelim
3868 \cs_set_eq:NN \finalnamedelim \_@@_orig_finalnamedelim
3869 \protected\def\mkbibnamelast#1{%
3870 \textsc{\textnohyphenation{#1}}}%
3871 }
3872 \cs_new_protected:Nn \@@_display_author:n
3873 {
3874 \seq_clear:N \l_tmpa_seq
3875 \prop_get:NnN \g_@@_authors_prop {author_#1} \l_tmpa_tl
3876 \prop_map_inline:cn {l_author_ #1 _affiliations_prop} {
3877 \seq_put_right:Nx \l_tmpa_seq { ##1 }
3878 }
3879 \seq_sort:Nn \l_tmpa_seq
3880 {
3881 \int_compare:nNnTF { ##1 } > { ##2 }
3882 { \sort_return_swapped: }
3883 { \sort_return_same: }
3884 }
3885 \mbox{%
3886 \_@@_citeauthor_no_giveninits:n {\c_@@_issue_bib_key_tl -author-art- \int_use:N \g_@@_articles_int-#1}
3887 }
3888 \seq_map_inline:Nn \l_tmpa_seq {
3889 \prop_get:cnN {l_author_ #1 _affiliations_prop} {##1} \l_tmpb_tl
3890 \footnotemark[##1]
3891 \tl_if_empty:NF \l_tmpb_tl
3892 {
3893 \footnotetext[##1]{\l_tmpb_tl}
3894 }
3895 }
3896 \hskip 1em plus .17fil
3897 }
3898 % \end{macrocode}
3899 %
3900 % We declare two token list which will used in the next (re)definition.
3901 % \begin{macrocode}
3902 \tl_new:N \l_@@_authors_box_tl
3903 \tl_new:N \l_@@_abstract_box_tl
3904 \tl_new:N \g_@@_title_for_toc_tl
3905 % \end{macrocode}
3906 %
3907 % \begin{macro}{\maketitle}
3908 % The command that \emph{makes} the title is redefined.
3909 % \begin{macrocode}
3910 \RenewDocumentCommand \maketitle { } {
3911 % \end{macrocode}
3912 %
3913 % We enforce all the previous floats to be processed before a new article starts
3914 % (this is already done in "acknowledgments" environment but is repeated here if
3915 % what is before provides floats but not acknowledgments).
3916 % \begin{macrocode}
3917 %<class> \FloatBarrier%
3918 % \end{macrocode}
3919 %
3920 % We store the unique bibliographic key of the current article in the
3921 % "\g_@@_article_bib_key_tl" token list.
3922 % \begin{macrocode}
3923 \tl_gset:Nn \g_@@_article_bib_key_tl {%
3924 \c_@@_issue_bib_key_tl
3925 -art-
3926 \int_use:N \g_@@_articles_int
3927 }
3928 % \end{macrocode}
3929 %
3930 % We will populate the bibiliographic file of the current issue with the current
3931 % article (title, author(s) and a fixed part giving by the issue number, journal
3932 % title and date).
3933 %
3934 % We now populate the bibiliographic file.
3935 % \begin{macrocode}
3936 \tl_if_empty:NF \g_@@_title_tl {%
3937 \iow_now:Nx \g_@@_bib_out_iow {%
3938 @article{
3939 \g_@@_article_bib_key_tl,
3940 \iow_newline:
3941 title={\exp_not:V\g_@@_title_tl},
3942 \iow_newline:
3943 \tl_if_empty:NF \g_@@_subtitle_tl {%
3944 subtitle={\exp_not:V\g_@@_subtitle_tl},
3945 \iow_newline:
3946 }
3947 \tl_if_eq:NNF { \g_@@_short_title_tl } { \g_@@_title_tl } {%
3948 shorttitle={\exp_not:V\g_@@_short_title_tl},
3949 \iow_newline:
3950 }%
3951 \tl_if_empty:NF \l_@@_people_first_last_names_tl
3952 {
3953 author={\exp_not:V\l_@@_people_first_last_names_tl},
3954 \iow_newline:
3955 }
3956 options={skipbib},
3957 \iow_newline:
3958 crossref = {\c_@@_issue_bib_key_tl}
3959 }
3960 \iow_newline:
3961 }%
3962 % \tl_clear:N \l_@@_people_first_last_names_tl
3963 }%
3964 %
3965 \tl_set:Nn \l_@@_authors_box_tl
3966 {%
3967 \bool_if:nTF { \tl_if_empty_p:N \l_@@_people_first_last_names_tl }
3968 {
3969 \mbox{}
3970 }
3971 {
3972 \int_set:Nn \l_tmpa_int { \prop_count:N \g_@@_authors_prop}
3973 \normalsize%
3974 \int_step_inline:nnnn {1}{1}{\l_tmpa_int} {
3975 \@@_display_author:n {##1}
3976 }
3977 \prop_gclear:N \g_@@_authors_prop
3978 }
3979 }
3980 % \end{macrocode}
3981 %
3982 % We clear the tagged affiliations (henece their scope is the current article).
3983 % \begin{macrocode}
3984 \int_zero:N \l_@@_author_int
3985 \prop_clear:N \l_affiliations_tagged_prop
3986 % \end{macrocode}
3987 %
3988 % \begin{macrocode}
3989 \tl_set:Nn \l_@@_dates_box_tl
3990 {%
3991 \g_@@_display_dates_tl
3992 }
3993 %
3994 \tl_set:Nn \l_@@_keywords_box_tl
3995 {%
3996 \noindent
3997 {
3998 \bfseries
3999 \text_titlecase_first:n{
4000 \GetTranslation{plural-keyword}
4001 \c_@@_colon_tl
4002 }
4003 }
4004 \c_space_tl\g_@@_keywords_tl.
4005 }
4006 \tl_set:Nn \l_@@_msc_box_tl
4007 {%
4008 \noindent\textbf{\c_@@_msc_string_tl}\c_@@_colon_tl\c_space_tl\g_@@_msc_tl.
4009 }
4010 \tl_set:Nn \l_@@_abstract_box_tl
4011 {%
4012 \mbox{}
4013 \par%
4014 \vskip .5em%
4015 \tl_if_empty:NTF \g_@@_abstract_body_tl
4016 {%
4017 \msg_warning:nn{nwejmart}{No~abstract}
4018 }%
4019 {%
4020 \small
4021 \begin{center}%
4022 {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
4023 \end{center}%
4024 \begin{quotation}
4025 \g_@@_abstract_body_tl
4026 \end{quotation}
4027 }
4028 }%
4029 % \end{macrocode}
4030 %
4031 % \begin{macrocode}
4032 \tl_set:Nn \g_@@_partial_title_for_toc_tl
4033 {
4034 \tl_if_empty:NTF \g_@@_short_title_tl {%
4035 \g_@@_title_tl%
4036 }{
4037 \g_@@_short_title_tl%
4038 }
4039 \bool_if:nF { \tl_if_empty_p:N \g_@@_short_subtitle_tl }
4040 {
4041 .\c_space_tl\g_@@_short_subtitle_tl
4042 }
4043 }
4044 % \end{macrocode}
4045 %
4046 % For the article's class, the article's title and (if any) subtitle are added
4047 % to the ×pdftitle× PDF's metadata.
4048 % \begin{macrocode}
4049 %<class-article> \hypersetup{pdftitle=\g_@@_partial_title_for_toc_tl}
4050 % \end{macrocode}
4051 %
4052 % \begin{macrocode}
4053 \tl_set:Nn \g_@@_title_for_toc_tl
4054 {
4055 \g_@@_partial_title_for_toc_tl
4056 \bool_if:nF { \tl_if_empty_p:N \l_@@_people_first_last_names_tl }
4057 {
4058 \textsl{
4059 \cs_if_exist:cTF {texorpdfstring}
4060 {
4061 \texorpdfstring{%
4062 \AtNextCitekey{\defcounter{maxnames}{100}}
4063 \c_space_tl\textendash\c_space_tl\citeauthor{\g_@@_article_bib_key_tl}
4064 }{}
4065 }{%
4066 \c_space_tl\textendash\c_space_tl\citeauthor{\g_@@_article_bib_key_tl}
4067 }%
4068 }
4069 }
4070 }
4071 % \end{macrocode}
4072 %
4073 % The article's titles are produced thanks to the ×\chapter× which is
4074 % unnumbered (otherwise the corresponding bookmark is numbered), but not through
4075 % the starred version of ×\chapter× (because we need its -- alternative title in
4076 % the TOC).
4077 % \begin{macrocode}
4078 \setsecnumdepth{none}
4079 %<class-article> \bookmarksetup{depth=-2}
4080 \chapter[\g_@@_title_for_toc_tl]{%
4081 \LARGE%
4082 \g_@@_title_tl
4083 \tl_if_empty:NF \g_@@_subtitle_tl {%
4084 \\[1ex]%
4085 \Large%
4086 \g_@@_subtitle_tl
4087 }\\[2ex]%
4088 \l_@@_authors_box_tl%
4089 \bool_if:NT \g_@@_date_specified_bool
4090 {
4091 \\[2ex]
4092 \l_@@_dates_box_tl
4093 }
4094 \\[-4ex]
4095 }
4096 \label{\currfilebase}
4097 \bool_gset_false:N \g_@@_date_specified_bool
4098 \bookmarksetup{depth=subsection}
4099 \setsecnumdepth{subsection}
4100 % \end{macrocode}
4101 %
4102 % We want header of the article's titles pages.
4103 % \begin{macrocode}
4104 \thispagestyle{@@_article_title_ps}%
4105 %
4106 \l_@@_abstract_box_tl%
4107 \normalsize
4108 \tl_if_empty:NTF \g_@@_keywords_tl {
4109 \msg_warning:nn{nwejmart}{No~keyword}
4110 }{
4111 \l_@@_keywords_box_tl
4112 \par%
4113 \vskip .5em%
4114 }
4115 \tl_if_empty:NTF \g_@@_msc_tl {
4116 \msg_warning:nn{nwejmart}{No~MSC}
4117 }{
4118 \l_@@_msc_box_tl
4119 \par%
4120 \vskip .5em%
4121 }
4122 %<class-article> \hypersetup{pdfauthor=\l_@@_people_first_last_names_tl}
4123 %
4124 \tl_gclear:N \g_@@_title_tl
4125 \tl_gclear:N \g_@@_subtitle_tl
4126 \tl_gclear:N \g_@@_title_for_toc_tl
4127 \tl_gclear:N \g_@@_abstract_body_tl
4128 % \end{macrocode}
4129 %
4130 % We clear the authors database from the possible previous article.
4131 % \begin{macrocode}
4132 \tl_gclear:N \g_@@_people_affiliation_tl
4133 \tl_gclear:N \g_@@_people_email_tl
4134 \tl_clear:N \l_@@_people_first_last_names_tl%
4135 % % \end{macrocode}
4136 % %
4137 % % We insert an invisible local table of contents that will take in account all
4138 % % the sections, subsections, etc. of the article. This local TOC has a label
4139 % % that will be used to display this TOC at the end of the article.
4140 % % \begin{macrocode}
4141 % \etocarticlestyle
4142 % \tl_set:Nn \l_@@_localtableofcontents_label_tl {%
4143 % localtableofcontents-\int_use:N \g_@@_articles_int
4144 % }
4145 % \invisiblelocaltableofcontents \label{\l_@@_localtableofcontents_label_tl}
4146 }
4147 % \end{macrocode}
4148 % \end{macro}
4149 %
4150 % We load the configuration file, which has to be located in the \TeX{} search
4151 % path: at least one such a file is provided by the class and located in the
4152 % same directory as the class file. This file is loaded at the end of preamble
4153 % instead of begin of the document in order some settings needed in preamble are
4154 % taken in account.
4155 % \begin{macrocode}
4156 %<class>\AddToHook{begindocument/before}{\file_input:n {\c_@@_configuration_file_string_tl}}
4157 % \end{macrocode}
4158 %
4159 % \subsection{Miscellaneous}
4160 %
4161 % We fix the \pkg{csquotes}' quotes for PDF strings.
4162 % \begin{macrocode}
4163 \DeclarePlainStyle{«~}{~»}{`}{'}
4164 % \end{macrocode}
4165 %
4166 % We change the default settings of the floats placement.
4167 % \begin{macrocode}
4168 \setcounter{topnumber}{3}
4169 \renewcommand{\topfraction}{0.8}
4170 % \end{macrocode}
4171 %
4172 % We change the default vertical space between text and footnotes.
4173 % \begin{macrocode}
4174 \addtolength{\skip\footins}{.25\baselineskip}
4175 % \end{macrocode}
4176 %
4177 % We change the default horizontal space between columns in multicolumn mode.
4178 % \begin{macrocode}
4179 \setlength{\columnsep}{7mm}%
4180 % \end{macrocode}
4181 %
4182 % We change the way the section counter is displayed (the chapter should not appear).
4183 % \begin{macrocode}
4184 \renewcommand{\thesection}{\arabic{section}}%
4185 % \end{macrocode}
4186 %
4187 % In case \Pkg{siunitx} is loaded, we make it follow the French rules.
4188 % \begin{macrocode}
4189 \@ifpackageloaded{siunitx}{%
4190 \addto\extrasenglish{\sisetup{locale = UK}}
4191 \addto\extrasfrench{\sisetup{locale = FR}}
4192 \addto\extrasngerman{\sisetup{locale = DE}}
4193 \addto\extrasgerman{\sisetup{locale = DE}}
4194 \addto\extrasdutch{%
4195 \sisetup{%
4196 exponent-product = \ensuremath { \times } ,
4197 inter-unit-product = \, ,
4198 output-decimal-marker = { , }
4199 }%
4200 }
4201 \sisetup{detect-all}
4202 }
4203 % \end{macrocode}
4204 %
4205 % Both classes are based on ×book× class hence ×\appendix× makes only chapters
4206 % to be lettered but, in case of a single article, only ×\section× and below are
4207 % used, so ×\appendix× should make the latter lettered.
4208 % \begin{macrocode}
4209 \apptocmd{\appendix}{\renewcommand{\thesection}{\Alph{section}}}{}{}
4210 % \end{macrocode}
4211 %
4212 % \subsection{Redefinition of heading commands}
4213 %
4214 % We redefine the heading commands (×\section× and ×\subsection×, not below as
4215 % the corresponding headings are not numbered) in order the starred versions
4216 % make use of ×\setsecnumdepth{none}× from \Pkg{tocvsec2} and hence save the
4217 % user from having to add the ugly ×\addcontentsline× trick. Here,
4218 % ×\AfterPreamble× is necessary to delay the redefinition when \Pkg{titlesec}
4219 % has done its own.
4220 %
4221 % \begin{macrocode}
4222 \cs_set_eq:NN \_@@_section: \section
4223 \cs_set_eq:NN \_@@_subsection: \subsection
4224 \cs_set_eq:NN \_@@_subsubsection: \subsubsection
4225 \AfterPreamble{%
4226 \RenewDocumentCommand \section { s o o m } {%
4227 \tl_gclear:N \g_@@_short_section_title_tl
4228 \IfBooleanTF {#1}
4229 {
4230 \setsecnumdepth{none}%
4231 }
4232 {
4233 \resetsecnumdepth*%
4234 }
4235 \tl_gset:Nn \g_@@_section_title_tl {#4}
4236 \IfNoValueTF{#2}{
4237 \tl_gset:Nn \g_@@_short_section_title_tl {#4}
4238 }{
4239 \tl_gset:Nn \g_@@_short_section_title_tl {#2}
4240 }
4241 \_@@_section: [\g_@@_short_section_title_tl]{\g_@@_section_title_tl}
4242 \IfNoValueF {#3}{
4243 \sectionmark{#3}
4244 }
4245 }
4246 \RenewDocumentCommand \subsection { s o m } {%
4247 \IfBooleanT {#1}
4248 {
4249 \setsecnumdepth{none}%
4250 }
4251 \IfNoValueTF{#2}{\_@@_subsection: {#3}}{\_@@_subsection: [#2]{#3}}
4252 }
4253 \RenewDocumentCommand \subsubsection { s o m } {%
4254 \IfBooleanT {#1}
4255 {
4256 \setsecnumdepth{none}%
4257 }
4258 \IfNoValueTF{#2}{\_@@_subsubsection: {#3}}{\_@@_subsubsection: [#2]{#3}}
4259 }
4260 }
4261 % \end{macrocode}
4262 %
4263 % \section{Miscellaneous private commands specific to the journal}
4264 %
4265 % We create miscellaneous private commands specific to the journal.
4266 %
4267 % Command for centuries.
4268 % \begin{macrocode}
4269 \int_new:N \l_@@_abs_int
4270 %
4271 \cs_new_protected:Nn \_@@_ordinalnum_suffix:n
4272 {
4273 \int_set:Nn \l_@@_abs_int {\int_abs:n {#1}}
4274 \ifcurrentbaselanguage{english}{
4275 \int_use:N \l_@@_abs_int
4276 \int_set:Nn \l_tmpa_int {\int_mod:nn {\l_@@_abs_int} { 100 }}
4277 \int_case:nnF
4278 { \l_tmpa_int }
4279 {
4280 { 11 } { \fmtord{th} }
4281 { 12 } { \fmtord{th} }
4282 { 13 } { \fmtord{th} }
4283 }{
4284 \int_set:Nn \l_tmpb_int {\int_mod:nn {\l_@@_abs_int} { 10 }}
4285 \int_case:nnF
4286 { \l_tmpb_int }
4287 {
4288 { 0 } { \fmtord{th} }
4289 { 1 } { \fmtord{st} }
4290 { 2 } { \fmtord{nd} }
4291 { 3 } { \fmtord{rd} }
4292 }{
4293 \fmtord{th}
4294 }
4295 }
4296 }{
4297 \ifcurrentbaselanguage{dutch}{
4298 \int_use:N \l_@@_abs_int
4299 e
4300 }{
4301 \textsc{\int_to_roman:n {\int_abs:n {#1}}}
4302 \ifcurrentbaselanguage{french}{
4303 \int_compare:nNnTF { \l_@@_abs_int } = { 1 }{\fmtord{er}}{\fmtord{e}}
4304 }{
4305 \ifcurrentbaselanguage{german}{
4306 .
4307 }{
4308 \ifcurrentbaselanguage{ngerman}{
4309 .
4310 }{
4311 }
4312 }
4313 }
4314 }
4315 }
4316 }
4317 %
4318 \cs_new_protected:Nn \_@@_century_suffix:n
4319 {
4320 \c_space_tl{}
4321 \GetTranslation{century}%
4322 \int_compare:nNnT { #1 } < { 0 }{
4323 \c_space_tl
4324 \GetTranslation{before-christ}
4325 }{
4326 }
4327 }
4328 % \end{macrocode}
4329 %
4330 % \section{Miscellaneous for captions}
4331 %
4332 % We set the caption label separator to make it the same as theorems separator.
4333 % \begin{macrocode}
4334 \DeclareCaptionLabelSeparator{dash}{\nobreakspace--\nobreakspace}
4335 \captionsetup{
4336 labelsep=dash
4337 }
4338 % \end{macrocode}
4339 %
4340 % \section{Miscellaneous (re)definitions}
4341 %
4342 % We gather here miscellaneous redefinitions.
4343 %
4344 % \begin{macro}{\century}
4345 % In case of \enquote{before-christ} translation usually ending with a period
4346 % (in case of abbreviation), we add a period just after it, but only if the
4347 % character following the "\century" macro is not a period itself.
4348 % \begin{macrocode}
4349 \NewDocumentCommand \century { s m } {%
4350 \_@@_ordinalnum_suffix:n {#2}%
4351 \IfBooleanTF {#1}
4352 {
4353 \int_compare:nNnT { #2 } < { 0 }{
4354 \_@@_century_suffix:n {#2}%
4355 }
4356 }{
4357 \_@@_century_suffix:n {#2}%
4358 }
4359 \int_compare:nNnT { #2 } < { 0 }{
4360 \ifcurrentbaselanguage{english}{%
4361 }{
4362 \@ifnextchar.%
4363 {
4364 }{
4365 .\xspace
4366 }%
4367 }
4368 }
4369 }
4370 % \end{macrocode}
4371 % \end{macro}
4372 %
4373 % \begin{macro}{\aside}
4374 % \begin{macrocode}
4375 \NewDocumentCommand \aside { s m } {%
4376 \IfBooleanTF {#1}
4377 {
4378 \c_@@_aside_string_tl{}~#2
4379 }
4380 {
4381 \c_@@_aside_string_tl{}~#2~\c_@@_aside_string_tl
4382 }
4383 }
4384 % \end{macrocode}
4385 % \end{macro}
4386 %
4387 % \begin{macro}{\ie}
4388 % \begin{macro}{\Ie}
4389 % \begin{macrocode}
4390 \NewDocumentCommand \ie { s } {%
4391 \IfBooleanTF {#1}
4392 {
4393 \GetTranslation{idest}
4394 }
4395 {
4396 \GetTranslation{ie}
4397 \@ifnextchar.%
4398 {
4399 }{
4400 .\xspace
4401 }%
4402 }
4403 }
4404 \NewDocumentCommand \Ie { s } {%
4405 \IfBooleanTF {#1}
4406 {
4407 \GetTranslation{Idest}
4408 }
4409 {
4410 \GetTranslation{Ie}
4411 \@ifnextchar.%
4412 {
4413 }{
4414 .\xspace
4415 }%
4416 }
4417 }
4418 % \end{macrocode}
4419 % \end{macro}
4420 % \end{macro}
4421 %
4422 % \subsection{Vectors}
4423 %
4424 % Vectors, even written with "\vec", are typeset with \pkg{esvect}'s "\vv":
4425 % \begin{macrocode}
4426 \RenewDocumentCommand \vec { m } {
4427 \vv{#1}
4428 }
4429 % \end{macrocode}
4430 %
4431 % \subsection{Usual theorems and the like}
4432 %
4433 % Some usual theorems and the like are defined, thanks to \Pkg{keytheorems}.
4434 %
4435 % First, we define some styles:
4436 % \begin{macrocode}
4437 \newkeytheoremstyle{theorem}{
4438 inherit-style=plain,
4439 notefont=\bfseries,
4440 headpunct={~--}
4441 }
4442 \renewkeytheoremstyle{definition}{
4443 inherit-style=definition,
4444 notefont=\bfseries,
4445 headpunct={~--}
4446 }
4447 \newkeytheoremstyle{proof}{
4448 inherit-style=remark,
4449 notefont=\itshape,
4450 numbered=false,
4451 qed=\ensuremath{\square}
4452 }
4453 % \end{macrocode}
4454 %
4455 % For compatibility reason, we hack the default keytheorem style (coming from
4456 % the amsthm one) in order that, after the end of a theorem or proof, the
4457 % following line of text doesn't start a new paragraph, so will be indented
4458 % not always but only if stipulated (e.g. by a blank line). See
4459 % \url{https://tex.stackexchange.com/a/728591/18401}.
4460 %
4461 % \begin{macrocode}
4462 \addtotheoremhook{postfoot}{\@endpetrue}
4463 % \end{macrocode}
4464 %
4465 % Then, we define private macros that let us distinguish whether the
4466 % references names will be title cased or not, depending whether the current
4467 % language will French of not.
4468 %
4469 % \begin{macrocode}
4470 \cs_new_protected:Nn \_@@_titlecase_first:n {
4471 \ifcurrentbaselanguage{french}{
4472 #1
4473 }{
4474 \text_titlecase_first:n{#1}
4475 }
4476 }
4477 \cs_new_protected:Nn \_@@_titlecase_all:n {
4478 \ifcurrentbaselanguage{french}{
4479 #1
4480 }{
4481 \text_titlecase_all:n{#1}
4482 }
4483 }
4484 % \end{macrocode}
4485 %
4486 % Now we define the private function that defines the ``theorems'' (both
4487 % numbered and, for the star form, unnumbered). The
4488 % \lstinline|\AddToHook{begindocument}| is needed because of the
4489 % \lstinline|\GetTranslation| command which cannot be used before the language
4490 % is set by \Pkg{babel}, which is done at the just before
4491 % \lstinline|begindocument|.
4492 %
4493 % \begin{macrocode}
4494 \cs_new_protected:Nn \_@@_new_theorem:nn {
4495 \newkeytheorem{#2}[
4496 style=theorem,
4497 name=\text_titlecase_all:n {#2},
4498 refname= {
4499 \_@@_titlecase_all:n{#2},
4500 \_@@_titlecase_all:n{#2} s
4501 },
4502 Refname= {
4503 \text_titlecase_all:n{#2},
4504 \text_titlecase_all:n{#2} s
4505 },
4506 #1
4507 ]
4508 \newkeytheorem{#2*}[
4509 style=theorem,
4510 name=\text_titlecase_all:n {#2},
4511 refname= {
4512 \_@@_titlecase_all:n{#2},
4513 \_@@_titlecase_all:n{#2} s
4514 },
4515 Refname= {
4516 \text_titlecase_all:n{#2},
4517 \text_titlecase_all:n{#2} s
4518 },
4519 numbered=false,
4520 #1
4521 ]
4522 \clist_gput_right:Nn \g_@@_counters_to_be_reset_clist {#2}
4523 }
4524 \cs_new_protected:Nn \_@@_predefined_theorem:nn {
4525 \AddToHook{begindocument}{%
4526 \newkeytheorem{#2}[
4527 name=\text_titlecase_all:n{\GetTranslation{#2}},
4528 refname={
4529 \_@@_titlecase_all:n{\GetTranslation{#2}},
4530 \_@@_titlecase_all:n{\GetTranslation{plural-#2}}
4531 },
4532 Refname={
4533 \text_titlecase_all:n{\GetTranslation{#2}},
4534 \text_titlecase_all:n{\GetTranslation{plural-#2}}
4535 },
4536 #1
4537 ]
4538 \newkeytheorem{#2*}[
4539 name=\text_titlecase_all:n{\GetTranslation{#2}},
4540 refname={
4541 \_@@_titlecase_all:n{\GetTranslation{#2}},
4542 \_@@_titlecase_all:n{\GetTranslation{plural-#2}}
4543 },
4544 Refname={
4545 \text_titlecase_all:n{\GetTranslation{#2}},
4546 \text_titlecase_all:n{\GetTranslation{plural-#2}}
4547 },
4548 numbered=false,
4549 #1
4550 ]
4551 }
4552 \clist_gput_right:Nn \g_@@_counters_to_be_reset_clist {#2}
4553 }
4554 % \end{macrocode}
4555 %
4556 % Now we define the public command that let the user define his own
4557 % ``theorems'' (both numbered and, for the star form, unnumbered).
4558 %
4559 % \begin{macrocode}
4560 \RenewDocumentCommand{\newtheorem}{O{} m}{
4561 \_@@_new_theorem:nn {#1} {#2}
4562 }
4563 % \end{macrocode}
4564 %
4565 % Finally, we define some usual theorems:
4566 %
4567 % \begin{macrocode}
4568 \_@@_predefined_theorem:nn{style=theorem}{theorem}
4569 \_@@_predefined_theorem:nn{style=theorem}{axiom}
4570 \_@@_predefined_theorem:nn{style=theorem}{corollary}
4571 \_@@_predefined_theorem:nn{style=theorem}{conjecture}
4572 \_@@_predefined_theorem:nn{style=theorem}{proposition}
4573 \_@@_predefined_theorem:nn{style=theorem}{lemma}
4574 \_@@_predefined_theorem:nn{style=definition}{definition}
4575 \_@@_predefined_theorem:nn{style=definition}{example}
4576 \_@@_predefined_theorem:nn{style=definition}{notation}
4577 \_@@_predefined_theorem:nn{style=definition}{remark}
4578 % \end{macrocode}
4579 %
4580 % Since the proof command exists in LaTeX2e, we need to define it the
4581 % \Pkg{keytheorems} way differently.
4582 %
4583 % \begin{macrocode}
4584 \AddToHook{begindocument}{%
4585 \renewkeytheorem{proof}[
4586 name=\text_titlecase_all:n{\GetTranslation{proof}},
4587 refname={
4588 \_@@_titlecase_all:n{\GetTranslation{proof}},
4589 \_@@_titlecase_all:n{\GetTranslation{plural-proof}}
4590 },
4591 style=proof
4592 ]
4593 }
4594 % \end{macrocode}
4595 %
4596 % We define a function that clones already defined theorems and define for
4597 % each of them a clone the name of which being just titlecased.
4598 %
4599 % \begin{macrocode}
4600 \cs_new_protected:Nn \_@@_clone_theorem:nn
4601 {
4602 \NewDocumentEnvironment{#1}{}
4603 {
4604 \begin{#2}
4605 }{
4606 \end{#2}
4607 }
4608 \NewDocumentEnvironment{#1*}{}
4609 {
4610 \begin{#2*}
4611 }{
4612 \end{#2*}
4613 }
4614 }
4615 %
4616 \_@@_clone_theorem:nn {Theorem}{theorem}
4617 \_@@_clone_theorem:nn {Corollary}{corollary}
4618 \_@@_clone_theorem:nn {Conjecture}{conjecture}
4619 \_@@_clone_theorem:nn {Proposition}{proposition}
4620 \_@@_clone_theorem:nn {Lemma}{lemma}
4621 \_@@_clone_theorem:nn {Axiom}{axiom}
4622 \_@@_clone_theorem:nn {Definition}{definition}
4623 \_@@_clone_theorem:nn {Remark}{remark}
4624 \_@@_clone_theorem:nn {Example}{example}
4625 \_@@_clone_theorem:nn {Notation}{notation}
4626 \_@@_clone_theorem:nn {Proof}{proof}
4627 %
4628 \clist_set:Nn \l_tmpa_clist {%
4629 theorem,
4630 corollary,
4631 conjecture,
4632 proposition,
4633 lemma,
4634 axiom,
4635 definition,
4636 remark,
4637 example,
4638 notation,
4639 proof%
4640 }
4641 % \end{macrocode}
4642 %
4643 % Since version 2.0 (2026-02-10) of the class, \Pkg{varioref} is replaced by
4644 % \Pkg{zref-vario} since; hence we define a (factice) \Pkg{varioref}'s
4645 % \lstinline|\vref| command to be a wrapper of \Pkg{zref-vario}'s
4646 % \lstinline|\zvref|:
4647 % \begin{macrocode}
4648 \RenewDocumentCommand{\vref}{O{} m}{\zvref[#1]{#2}}
4649 % \end{macrocode}
4650 %
4651 % Since version 2.0 (2026-02-10) of the class, \Pkg{cleveref} is replaced by
4652 % \Pkg{zref-clever} since; hence we define a (factice) \Pkg{cleveref}'s
4653 % \lstinline|\cref| command to be a wrapper of \Pkg{zref-clever}'s
4654 % \lstinline|\zcref|:
4655 % \begin{macrocode}
4656 \NewDocumentCommand{\cref}{O{} m}{\zcref[#1]{#2}}
4657 % \end{macrocode}
4658 %
4659 % \subsection{Assertions, hypotheses and conditions enumerations}
4660 %
4661 % An environment for assertions' and hypotheses enumerations are provided in
4662 % order to display them homogeneously:
4663 % \begin{macrocode}
4664 \AddToHook{begindocument}{
4665 \clist_set:Nn \l_tmpa_clist {%
4666 hypothesis,
4667 assertion,%
4668 condition%
4669 }
4670 \clist_map_inline:Nn \l_tmpa_clist {
4671 \newlist{#1}{enumerate}{1}
4672 \setlist[#1]{%
4673 label=
4674 \normalfont
4675 (
4676 \textsf{
4677 \tl_head:f {
4678 \text_uppercase:n {
4679 \GetTranslation{#1}
4680 }
4681 }
4682 }
4683 $\c_math_subscript_token\mathsf{\arabic*}$),
4684 ref=(
4685 \textsf{
4686 \tl_head:f {
4687 \text_uppercase:n {
4688 \GetTranslation{#1}
4689 }
4690 }
4691 }
4692 $_\mathsf{\arabic*}$
4693 )
4694 }
4695 \zcRefTypeSetup{#1i}{
4696 Name-sg = \text_titlecase_first:n{
4697 \GetTranslation{#1}
4698 },
4699 name-sg = \GetTranslation{#1} ,
4700 Name-pl = \text_titlecase_first:n{
4701 \GetTranslation{plural-#1}
4702 },
4703 name-pl = \GetTranslation{plural-#1} ,
4704 }
4705 }
4706 }
4707 % \end{macrocode}
4708 %
4709 % Public command for easily create new environments of enumerations. The
4710 % mandatory argument is the name of the environment which is (a priori) the
4711 % plural form of the name of the enumeration; the optional argument let us
4712 % specify:
4713 % \begin{itemize}
4714 % \item the singular form if it is not obtained by removing the last letter to
4715 % the plural form,
4716 % \item the plural form if it is not the same as the environment's name,
4717 % \item the label form if it is not the same as the initial of the singular
4718 % form.
4719 % \end{itemize}
4720 %
4721 % \begin{macrocode}
4722 \cs_new_protected:Npn \_@@_tl_pop_right:n #1
4723 {
4724 \tl_reverse:f
4725 {
4726 \tl_tail:f
4727 {
4728 \tl_reverse:n { #1 }
4729 }
4730 }
4731 }
4732 \cs_generate_variant:Nn \tl_reverse:n { f }
4733 \cs_generate_variant:Nn \_@@_tl_pop_right:n { v }
4734
4735 \cs_new_protected:Npn \_@@_start_newenumeration:nn #1 #2
4736 {
4737 \keys_define:nn { nwejm/newenumeration }
4738 {
4739 singular .tl_set:c = {l_@@_newenumeration_#2_singular_tl},
4740 plural .tl_set:c = {l_@@_newenumeration_#2_plural_tl},
4741 label .tl_set:c = {l_@@_newenumeration_#2_label_tl},
4742 }
4743 \IfNoValueF {#1}
4744 {
4745 \keys_set:nn { nwejm/newenumeration } { #1 }
4746 }
4747 \tl_if_empty:cT {l_@@_newenumeration_#2_plural_tl} {
4748 \tl_set:cn {l_@@_newenumeration_#2_plural_tl} {#2}
4749 }
4750 \tl_if_empty:cT {l_@@_newenumeration_#2_singular_tl} {
4751 \tl_set:ce {l_@@_newenumeration_#2_singular_tl} {\_@@_tl_pop_right:v {l_@@_newenumeration_#2_plural_tl}}
4752 }
4753 \tl_if_empty:cT {l_@@_newenumeration_#2_label_tl} {
4754 \tl_set:ce {l_@@_newenumeration_#2_label_tl} {
4755 \text_uppercase:n {
4756 \tl_head:f {
4757 \tl_use:c {l_@@_newenumeration_#2_singular_tl}
4758 }
4759 }
4760 }
4761 }
4762 }
4763 \cs_new_protected:Npn \_@@_end_newenumeration:n #1
4764 {
4765 \tl_set:cn {l_@@_newenumeration_#1_reference_tl} {
4766 \textsf{
4767 \tl_use:c {l_@@_newenumeration_#1_label_tl}
4768 }
4769 }
4770 \setlist[#1]{%
4771 label=
4772 \normalfont
4773 (
4774 \tl_use:c {l_@@_newenumeration_#1_reference_tl}
4775 $\c_math_subscript_token{\mathsf{\arabic*}}$
4776 ),
4777 ref=
4778 (
4779 \tl_use:c {l_@@_newenumeration_#1_reference_tl}
4780 $_\mathsf{\arabic*}$
4781 )
4782 }
4783 \zcRefTypeSetup{#1i}{
4784 Name-sg = \text_titlecase_first:n{
4785 \tl_use:c {l_@@_newenumeration_#1_singular_tl}
4786 },
4787 name-sg = \tl_use:c {l_@@_newenumeration_#1_singular_tl} ,
4788 Name-pl = \text_titlecase_first:n{
4789 \tl_use:c {l_@@_newenumeration_#1_plural_tl}
4790 },
4791 name-pl = \tl_use:c {l_@@_newenumeration_#1_plural_tl} ,
4792 }
4793 }
4794 %
4795 \NewDocumentCommand{\newenumeration}{O{}m}
4796 {
4797 \_@@_start_newenumeration:nn {#1}{#2}
4798 \newlist{#2}{enumerate}{1}
4799 \_@@_end_newenumeration:n {#2}
4800 }
4801 \NewDocumentCommand{\renewenumeration}{O{}m}
4802 {
4803 \_@@_start_newenumeration:nn {#1}{#2}
4804 \renewlist{#2}{enumerate}{1}
4805 \_@@_end_newenumeration:n {#2}
4806 }
4807 %
4808 \NewDocumentEnvironment{hypotheses}{}
4809 {
4810 \begin{hypothesis}
4811 }{
4812 \end{hypothesis}
4813 }
4814 \NewDocumentEnvironment{assertions}{}
4815 {
4816 \begin{assertion}
4817 }{
4818 \end{assertion}
4819 }
4820 \NewDocumentEnvironment{conditions}{}
4821 {
4822 \begin{condition}
4823 }{
4824 \end{condition}
4825 }
4826 % \end{macrocode}
4827 %
4828 % We borrow the following code provided by Enrico Gregorio (see
4829 % \url{http://tex.stackexchange.com/q/289913/18401}) in order to improve the
4830 % operators defined with ×\DeclareMathOperator×. We still provide a starred
4831 % version of this command for new operators that should have subscripts and
4832 % superscripts placed in ‘limits’ position above and below.
4833 % \begin{macrocode}
4834 \RenewDocumentCommand{\DeclareMathOperator}{smm}
4835 {
4836 \NewDocumentCommand{#2}{}
4837 {
4838 \IfBooleanTF {#1}
4839 {\operatorname*{#3}}
4840 {\operatorname{#3}}
4841 \peek_after:Nw \@@_opx_check:
4842 }
4843 }
4844 \NewDocumentCommand{\BinaryOperators}{m}
4845 {
4846 \clist_gput_right:Nn \g_@@_opx_binary_clist { #1 }
4847 }
4848 \clist_new:N \g_@@_opx_binary_clist
4849 \cs_new_protected:Nn \@@_opx_check:
4850 {
4851 \clist_map_inline:Nn \g_@@_opx_binary_clist
4852 {
4853 \token_if_eq_meaning:NNT \l_peek_token ##1 { \clist_map_break:n { {\!} } }
4854 }
4855 }
4856 \BinaryOperators{%
4857 \amalg,%
4858 \ast,%
4859 \bigcirc,%
4860 \bigtriangledown,%
4861 \bigtriangleup,%
4862 \bullet,%
4863 \cap,%
4864 \cdot,%
4865 \circ,%
4866 \cup,%
4867 \dagger,%
4868 \ddagger,%
4869 \diamond,%
4870 \div,%
4871 \lhd,%
4872 \mp,%
4873 \odot,%
4874 \ominus,%
4875 \oplus,%
4876 \oslash,%
4877 \otimes,%
4878 \pm,%
4879 \rhd,%
4880 \setminus,%
4881 \sqcap,%
4882 \sqcup,%
4883 \star,%
4884 \times,%
4885 \triangleleft,%
4886 \triangleright,%
4887 \unlhd,%
4888 \unrhd,%
4889 \uplus,%
4890 \vee,%
4891 \wedge,%
4892 \wr,%
4893 \barwedge,%
4894 \boxdot,%
4895 \boxminus,%
4896 \boxplus,%
4897 \boxtimes,%
4898 \Cap,%
4899 \centerdot,%
4900 \circledast,%
4901 \circledcirc,%
4902 \circleddash,%
4903 \Cup,%
4904 \curlyvee,%
4905 \curlywedge,%
4906 \divideontimes,%
4907 \dotplus,%
4908 \doublebarwedge,%
4909 \intercal,%
4910 \leftthreetimes,%
4911 \ltimes,%
4912 \rightthreetimes,%
4913 \rtimes,%
4914 \smallsetminus,%
4915 \veebar%
4916 }
4917 % \end{macrocode}
4918 %
4919 % \subsection{(Reciprocal) Trigonometric and hyperbolic functions}
4920 %
4921 % Reciprocal trigonometric functions, even written with usual "\arccos",
4922 % "\arcsin", "\arctan", etc. are typeset with an uppercase \enquote{A}:
4923 % \begin{macrocode}
4924 \DeclareMathOperator{\cotan}{cotan}
4925 \DeclareMathOperator{\Arccos}{Arccos}
4926 \DeclareMathOperator{\Arcsin}{Arcsin}
4927 \DeclareMathOperator{\Arctan}{Arctan}
4928 \DeclareMathOperator{\arccosh}{arccosh}
4929 \DeclareMathOperator{\arcsinh}{arcsinh}
4930 \DeclareMathOperator{\arctanh}{arctanh}
4931 \DeclareMathOperator{\Argch}{Argch}
4932 \DeclareMathOperator{\Argsh}{Argsh}
4933 \DeclareMathOperator{\Argth}{Argth}
4934 \cs_set_eq:NN \_@@_orig_arccos: \arccos
4935 \cs_set_eq:NN \_@@_orig_arcsin: \arcsin
4936 \cs_set_eq:NN \_@@_orig_arctan: \arctan
4937 \cs_set_eq:NN \_@@_orig_arccosh: \arccosh
4938 \cs_set_eq:NN \_@@_orig_arcsinh: \arcsinh
4939 \cs_set_eq:NN \_@@_orig_arctanh: \arctanh
4940 \RenewDocumentCommand \arccos {} {
4941 \ifcurrentbaselanguage{french}{\Arccos}{\_@@_orig_arccos:}%
4942 }
4943 \RenewDocumentCommand \arcsin {} {
4944 \ifcurrentbaselanguage {french}{\Arcsin}{\_@@_orig_arcsin:}%
4945 }
4946 \RenewDocumentCommand \arctan {} {
4947 \ifcurrentbaselanguage {french}{\Arctan}{\_@@_orig_arctan:}%
4948 }
4949 \RenewDocumentCommand \arccosh {} {
4950 \ifcurrentbaselanguage{french}{\Argch}{\_@@_orig_arccosh:}%
4951 }
4952 \RenewDocumentCommand \arcsinh {} {
4953 \ifcurrentbaselanguage {french}{\Argsh}{\_@@_orig_arcsinh:}%
4954 }
4955 \RenewDocumentCommand \arctanh {} {
4956 \ifcurrentbaselanguage {french}{\Argth}{\_@@_orig_arctanh:}%
4957 }
4958 % \end{macrocode}
4959 %
4960 % Various other operators.
4961 % \begin{macrocode}
4962 \cs_set_eq:NN \_@@_orig_cot: \cot
4963 \RenewDocumentCommand \cot {} {
4964 \ifcurrentbaselanguage {french}{\cotan}{\_@@_orig_cot:}%
4965 }
4966 \DeclareMathOperator{\ch}{ch}
4967 \DeclareMathOperator{\sh}{sh}
4968 \cs_set_eq:NN \_@@_orig_cosh: \cosh
4969 \cs_set_eq:NN \_@@_orig_sinh: \sinh
4970 \cs_set_eq:NN \_@@_orig_tanh: \tanh
4971 \RenewDocumentCommand \cosh {} {
4972 \ifcurrentbaselanguage {french}{\ch}{\_@@_orig_cosh:}%
4973 }
4974 \RenewDocumentCommand \sinh {} {
4975 \ifcurrentbaselanguage {french}{\sh}{\_@@_orig_sinh:}%
4976 }
4977 \RenewDocumentCommand \tanh {} {
4978 \ifcurrentbaselanguage {french}{\operatorname{th}}{\_@@_orig_tanh:}%
4979 }
4980 \DeclareMathOperator{\Id}{Id}
4981 \cs_set_eq:NN \_@@_orig_log: \log
4982 \cs_set_eq:NN \_@@_orig_lg: \lg
4983 \RenewDocumentCommand \log { s } {
4984 \IfBooleanTF {#1}
4985 {
4986 \_@@_orig_log:
4987 }
4988 {
4989 \ln
4990 }
4991 }
4992 \RenewDocumentCommand \lg { s } {
4993 \IfBooleanTF {#1}
4994 {
4995 \_@@_orig_lg:
4996 }
4997 {
4998 \ln
4999 }
5000 }
5001 % \end{macrocode}
5002 %
5003 % \subsection{Miscellaneous constants}
5004 %
5005 % We define here the constants $\exp(1)$ (and the function which derives from
5006 % it) and the complex number $i$/
5007 % \begin{macrocode}
5008 \NewDocumentCommand \E { O{} } {
5009 \ensuremath{
5010 \mathsf{e}
5011 \tl_if_empty:nF {#1} {^{#1}}
5012 }
5013 }
5014 \NewDocumentCommand \I { } {
5015 \ensuremath{\mathsf{i}}
5016 }
5017 % \end{macrocode}
5018 %
5019 % \subsection{Miscellaneous operators}
5020 %
5021 % \begin{macrocode}
5022 \bool_new:N \g_@@_grad_used_bool
5023 \NewDocumentCommand \grad {} {%
5024 \bool_if:NTF \g_@@_grad_used_bool {
5025 \bool_if:nT { (\g_@@_gradient_nabla_bool && !\g_@@_gradient_nabla_control_bool)
5026 || ( !\g_@@_gradient_nabla_bool && \g_@@_gradient_nabla_control_bool) } {
5027 \msg_error:nnn{nwejmart}{Article~setup~not~consistent}{gradient}
5028 }
5029 }{
5030 \bool_gset_eq:NN \g_@@_gradient_nabla_control_bool \g_@@_gradient_nabla_bool
5031 \bool_gset_true:N \g_@@_grad_used_bool
5032 }
5033 \bool_if:NTF \g_@@_gradient_nabla_bool {
5034 \operatorname{\nabla}
5035 }{
5036 \operatorname{grad}
5037 }%
5038 \peek_after:Nw \@@_opx_check:
5039 }
5040 \DeclareMathOperator{\Div}{div}
5041 \NewDocumentCommand \curl {} {%
5042 \ifcurrentbaselanguage {english}{
5043 \operatorname{curl}
5044 }{
5045 \operatorname{rot}
5046 }%
5047 \peek_after:Nw \@@_opx_check:
5048 }
5049 \NewDocumentCommand \supp {} {%
5050 \ifcurrentbaselanguage {ngerman}{
5051 \operatorname{Tr}
5052 }{
5053 \operatorname{supp}
5054 }%
5055 \peek_after:Nw \@@_opx_check:
5056 }
5057 % \end{macrocode}
5058 %
5059 % We define a command for the differential operator.
5060 % \begin{macrocode}
5061 \NewDocumentCommand \dif {}{\mathop{}\!\mathrm{d}}
5062 % \end{macrocode}
5063 %
5064 % \subsection{Various math utilities}
5065 %
5066 % \begin{macrocode}
5067 \cs_set_eq:NN \_@@_orig_leq: \leq
5068 \cs_set_eq:NN \_@@_orig_geq: \geq
5069 \RenewDocumentCommand \le {} {%
5070 \ifcurrentbaselanguage {french}{\leqslant}{\_@@_orig_leq}%
5071 }
5072 \RenewDocumentCommand \leq {} {%
5073 \ifcurrentbaselanguage {french}{\leqslant}{\_@@_orig_leq}%
5074 }
5075 \RenewDocumentCommand \ge {} {%
5076 \ifcurrentbaselanguage {french}{\geqslant}{\_@@_orig_geq}%
5077 }
5078 \RenewDocumentCommand \geq {} {%
5079 \ifcurrentbaselanguage {french}{\geqslant}{\_@@_orig_geq}%
5080 }
5081 % \end{macrocode}
5082 %
5083 % \subsection{(Big) Sets}
5084 %
5085 % \begin{macrocode}
5086 \NewDocumentCommand \bbN {} {\mathbb{N}}
5087 \NewDocumentCommand \bbZ {} {\mathbb{Z}}
5088 \NewDocumentCommand \bbD {} {\mathbb{D}}
5089 \NewDocumentCommand \bbQ {} {\mathbb{Q}}
5090 \NewDocumentCommand \bbR {} {\mathbb{R}}
5091 \NewDocumentCommand \bbC {} {\mathbb{C}}
5092 \NewDocumentCommand \bbK {} {\mathbb{K}}
5093 % \end{macrocode}
5094 %
5095 % We replace the ugly default ×\emptyset× by the much nicer ×\varnothing×.
5096 % \begin{macrocode}
5097 \cs_set_eq:NN \emptyset \varnothing
5098 % \end{macrocode}
5099 %
5100 % Now, a command for displaying the sets.
5101 % \begin{macrocode}
5102 \tl_new:N \l_@@_given_tl
5103 \tl_set:Nn \l_@@_given_tl {
5104 \nonscript\:\delimsize\vert
5105 \allowbreak
5106 \nonscript\:
5107 \mathopen{}
5108 }%
5109 \DeclarePairedDelimiterX\_@@_set[1]\{\}{%
5110 #1
5111 }
5112 \NewDocumentCommand \set { m O{} } {
5113 \tl_if_empty:nTF {#2} {%
5114 \_@@_set*{#1}
5115 }{
5116 \_@@_set*{#1\l_@@_given_tl #2}
5117 }
5118 }
5119 % \end{macrocode}
5120 %
5121 % \subsection{Paired delimiters}
5122 %
5123 % The following code is adapted from
5124 % \url{http://tex.stackexchange.com/a/136767/18401} which defines a variant to
5125 % \pkg{mathtools}' ×\DeclarePairedDelimiter× that improves it. Note that the
5126 % behaviour is reversed from \pkg{mathtools}' one: the starred versions of the
5127 % commands don't expand to the height of the contained material whereas the non
5128 % starred versions, if used without the optional argument, do expand to the
5129 % height of the contained material.
5130 % \begin{macrocode}
5131 \DeclareDocumentCommand{\NewPairedDelimiter}{mm}
5132 {
5133 \_@@_delimiter_clear_keys: % reset to the default
5134 \keys_set:nn { nwejm/delimiters } { #2 }
5135 \use:x % we want to expand the values of the token variables set with the keys
5136 {
5137 \exp_not:n {\NewDocumentCommand{#1}{sO{}m} }
5138 {
5139 \exp_not:n { \IfBooleanTF{##1} }
5140 {
5141 \exp_not:N \@@_paired_delimiter:nnnnn
5142 { \exp_not:n { 0 } }
5143 { \exp_not:V \l_@@_delimiter_left_tl }
5144 { \exp_not:V \l_@@_delimiter_right_tl }
5145 { \exp_not:n { ##3 } }
5146 { \exp_not:V \l_@@_delimiter_subscript_tl }
5147 }
5148 {
5149 \exp_not:N \@@_paired_delimiter:nnnnn
5150 { \exp_not:n { ##2 } }
5151 { \exp_not:V \l_@@_delimiter_left_tl }
5152 { \exp_not:V \l_@@_delimiter_right_tl }
5153 { \exp_not:n { ##3 } }
5154 { \exp_not:V \l_@@_delimiter_subscript_tl }
5155 }
5156 }
5157 }
5158 }
5159 \keys_define:nn { nwejm/delimiters }
5160 {
5161 left .tl_set:N = \l@@_delimiter_left_tl,
5162 right .tl_set:N = \l@@_delimiter_right_tl,
5163 subscript .tl_set:N = \l@@_delimiter_subscript_tl,
5164 }
5165 \cs_new_protected:Npn \_@@_delimiter_clear_keys:
5166 {
5167 \keys_set:nn { nwejm/delimiters } { left=.,right=.,subscript={} }
5168 }
5169 \cs_new_protected:Npn \@@_paired_delimiter_expand:nnnn #1 #2 #3 #4
5170 {% Fix the spacing issue with \left and \right (D. Arsenau, P. Stephani and H. Oberdiek)
5171 \mathopen{}
5172 \mathclose\c_group_begin_token
5173 \left#1
5174 #3
5175 \group_insert_after:N \c_group_end_token
5176 \right#2
5177 \tl_if_empty:nF {#4} { \c_math_subscript_token {#4} }
5178 }
5179 \cs_new_protected:Npn \@@_paired_delimiter_fixed:nnnnn #1 #2 #3 #4 #5
5180 {
5181 \mathopen{#1#2}#4\mathclose{#1#3}
5182 \tl_if_empty:nF {#5} { \c_math_subscript_token {#5} }
5183 }
5184 \cs_new_protected:Npn \@@_paired_delimiter:nnnnn #1 #2 #3 #4 #5
5185 {
5186 \str_case:nnF {#1}
5187 {
5188 { } { \@@_paired_delimiter_expand:nnnn {#2}{#3}{#4}{#5} }
5189 {0} { \@@_paired_delimiter_fixed:nnnnn {}{#2}{#3}{#4}{#5} }
5190 {1} { \@@_paired_delimiter_fixed:nnnnn { \big }{#2}{#3}{#4}{#5} }
5191 {\big} { \@@_paired_delimiter_fixed:nnnnn { \big }{#2}{#3}{#4}{#5} }
5192 {2} { \@@_paired_delimiter_fixed:nnnnn { \Big }{#2}{#3}{#4}{#5} }
5193 {\Big} { \@@_paired_delimiter_fixed:nnnnn { \Big }{#2}{#3}{#4}{#5} }
5194 {3} { \@@_paired_delimiter_fixed:nnnnn { \bigg }{#2}{#3}{#4}{#5} }
5195 {\bigg} { \@@_paired_delimiter_fixed:nnnnn { \bigg }{#2}{#3}{#4}{#5} }
5196 {4} { \@@_paired_delimiter_fixed:nnnnn { \Bigg }{#2}{#3}{#4}{#5} }
5197 {\Bigg} { \@@_paired_delimiter_fixed:nnnnn { \Bigg }{#2}{#3}{#4}{#5} }
5198 }
5199 {
5200 \msg_warning:nnn{nwejmart}{Wrong~paired~delimiter's~size~parameter}{#1}
5201 \@@_paired_delimiter_expand:nnnn {#2}{#3}{#4}
5202 }
5203 }
5204 % \end{macrocode}
5205 %
5206 % Thanks to ×\NewPairedDelimiter×, we define various paired delimiters such
5207 % as norms, absolute value, etc.
5208 % \begin{macrocode}
5209 \NewPairedDelimiter{\norm}{
5210 left=\lVert,
5211 right=\rVert
5212 }
5213 \NewPairedDelimiter{\lnorm}{
5214 left=\lVert,
5215 right=\rVert,
5216 subscript=1
5217 }
5218 \NewPairedDelimiter{\llnorm}{
5219 left=\lVert,
5220 right=\rVert,
5221 subscript=2
5222 }
5223 \NewPairedDelimiter{\lpnorm}{
5224 left=\lVert,
5225 right=\rVert,
5226 subscript=p
5227 }
5228 \NewPairedDelimiter{\supnorm}{
5229 left=\lVert,
5230 right=\rVert,
5231 subscript=\infty
5232 }
5233 \NewPairedDelimiter{\abs}{
5234 left=\lvert,
5235 right=\rvert
5236 }
5237 \NewPairedDelimiter{\prt}{
5238 left=(,
5239 right=)
5240 }
5241 \NewPairedDelimiter{\brk}{
5242 left=[,
5243 right=]
5244 }
5245 \NewPairedDelimiter{\brc}{
5246 left=\{,
5247 right=\}
5248 }
5249 \NewPairedDelimiter{\lrangle}{
5250 left=\langle,
5251 right=\rangle
5252 }
5253 \NewPairedDelimiter{\leqgeq}{
5254 left=<,
5255 right=>
5256 }
5257 % \end{macrocode}
5258 %
5259 % \section{Multiline equations}
5260 %
5261 % Thanks to the \package{amsmath}'s ×\allowdisplaybreaks× macro, we let page
5262 % breaks fall where they may, even in the middle of a multi-line equation. If
5263 % needed, the ×\\*× command can be used to prohibit a pagebreak after a given line.
5264 % \begin{macrocode}
5265 \AddToHook{begindocument/before}{\allowdisplaybreaks}
5266 % \end{macrocode}
5267 %
5268 % The drawback of ×\allowdisplaybreaks× macro is it may happen we haven't
5269 % a view on all the multiline equation. In order to reduce this drawback,
5270 % a solution is to add a marginal note notifying the equation continues next
5271 % page if a page break occurs within it. Here is a solution for this (at least
5272 % for ×align(*)× and ×multline(*)× environments) that requires to
5273 % make use of \package{marginnote}'s ×\marginnote× macro, because the usual
5274 % ×\marginpar× doesn't work within math mode.
5275 %
5276 % Each multiline equation will have a unique number.
5277 % \begin{macrocode}
5278 \int_new:N \g_multiline_eq_int
5279 % \end{macrocode}
5280 % Each line of a multiline equation will have a unique number (local
5281 % to the multiline equation).
5282 % \begin{macrocode}
5283 \int_new:N \g_line_of_multiline_eq_int
5284 % \end{macrocode}
5285 % \begin{macrocode}
5286 \tl_new:N \g_line_of_multiline_eq_label_tl
5287 \tl_new:N \g_next_line_of_multiline_eq_label_tl
5288 % \end{macrocode}
5289 % We save the original environments
5290 % \begin{macrocode}
5291 \clist_set:Nn \l_tmpa_clist {align,multline}
5292 \clist_map_inline:Nn \l_tmpa_clist {
5293 \cs_set_eq:cc {db_#1_start:} {#1}
5294 \cs_set_eq:cc {db_#1_end:} {end#1}
5295 \cs_set_eq:cc {db_#1_star_start:} {#1*}
5296 \NewDocumentEnvironment{amsmath#1}{}
5297 {\cs:w db_#1_start:\cs_end:}
5298 {\cs:w db_#1_end:\cs_end:}
5299 \NewDocumentEnvironment{amsmath#1*}{}
5300 {\cs:w db_#1_star_start:\cs_end:}
5301 {\cs:w db_#1_end:\cs_end:}
5302 % \end{macrocode}
5303 % ... and create their new versions.
5304 % \begin{macrocode}
5305 \RenewEnviron{#1}
5306 {
5307 \cs:w db_multiline_eq:nV\cs_end: {#1} \BODY
5308 }
5309 \RenewEnviron{#1*}
5310 {
5311 \cs:w db_multiline_eq:nV\cs_end: {#1*} \BODY
5312 }
5313 }
5314 % \end{macrocode}
5315 % We need to know whether or not we are in a patched environment in order to, in
5316 % the latter case, not patch the ×\intertext× and ×\shortintertext×.
5317 % \begin{macrocode}
5318 \bool_new:N \g_@@_within_patched_amsmath_env_bool
5319 % \end{macrocode}
5320 % The environments ×flalign(*)× and ×alignat(*)× cannot be patched when
5321 % ×align(*)× is patched as above (see
5322 % \url{https://tex.stackexchange.com/q/399979/18401}). As a workaround, we make
5323 % these environments the same as ×align(*)×.
5324 % \begin{macrocode}
5325 \RenewEnviron{flalign}
5326 {
5327 \cs:w db_multiline_eq:nV\cs_end: {align} \BODY
5328 }
5329 \RenewEnviron{flalign*}
5330 {
5331 \cs:w db_multiline_eq:nV\cs_end: {align*} \BODY
5332 }
5333 \RenewEnviron{alignat}[1]
5334 {
5335 \cs:w db_multiline_eq:nV\cs_end: {align} \BODY
5336 }
5337 \RenewEnviron{alignat*}[1]
5338 {
5339 \cs:w db_multiline_eq:nV\cs_end: {align*} \BODY
5340 }
5341 % \end{macrocode}
5342 %
5343 % The new versions of ×align(*)× and ×multline(*)× are defined
5344 % thanks to the following ×\db_multiline_eq× control sequence.
5345 % \begin{macrocode}
5346 \seq_new:N \l_db_multiline_eq_seq
5347 \cs_new_protected:Nn \db_multiline_eq:nn
5348 {
5349 % \end{macrocode}
5350 %
5351 % We set the unique number of the current multiline equation.
5352 % \begin{macrocode}
5353 \int_gincr:N \g_multiline_eq_int
5354 % \end{macrocode}
5355 %
5356 % The number of the 1st line of the current multiline equation is $1$.
5357 % \begin{macrocode}
5358 \int_zero:N \g_line_of_multiline_eq_int
5359 \int_gincr:N \g_line_of_multiline_eq_int
5360 % \end{macrocode}
5361 %
5362 % We globally define the strings of the labels identfying:
5363 % \begin{itemize}
5364 % \item the current line,
5365 % \item the line following the current one,
5366 % \end{itemize}
5367 % of the current multiline equation.
5368 % \begin{macrocode}
5369 \tl_gset:Nx \g_tmpa_tl {
5370 multilineeq
5371 -
5372 \int_use:N \g_multiline_eq_int
5373 -
5374 line
5375 -
5376 }
5377 \tl_gset:Nx \g_line_of_multiline_eq_label_tl {
5378 \g_tmpa_tl
5379 \int_use:N \g_line_of_multiline_eq_int
5380 }
5381 \tl_gset:Nx \g_next_line_of_multiline_eq_label_tl {
5382 \g_tmpa_tl
5383 \int_eval:n {\g_line_of_multiline_eq_int + 1}
5384 }
5385 % \end{macrocode}
5386 %
5387 % We set the label of the current line.
5388 % \begin{macrocode}
5389 \ltx@label{\g_line_of_multiline_eq_label_tl}
5390 %
5391 \seq_set_split:Nnn \l_db_multiline_eq_seq { \\ } { #2 }
5392 \tl_if_in:nnTF {#1} {multline} {
5393 \begin{amsmath#1}
5394 \bool_gset_true:N \g_@@_within_patched_amsmath_env_bool
5395 \seq_use:Nnnn \l_db_multiline_eq_seq
5396 { \multiline@double@backslash@add@space }{ \multiline@double@backslash@add@space }{ \multiline@double@backslash@add@double@space }
5397 \hfill
5398 \end{amsmath#1}
5399 \bool_gset_false:N \g_@@_within_patched_amsmath_env_bool
5400 }{
5401 \begin{amsmath#1}
5402 \bool_gset_true:N \g_@@_within_patched_amsmath_env_bool
5403 \seq_use:Nn \l_db_multiline_eq_seq { \multiline@double@backslash }
5404 \end{amsmath#1}
5405 \bool_gset_false:N \g_@@_within_patched_amsmath_env_bool
5406 }
5407 }
5408 % \end{macrocode}
5409 %
5410 % We create a variant of ×\db_multiline_eq× which returns a value.
5411 % \begin{macrocode}
5412 \cs_generate_variant:Nn \db_multiline_eq:nn { nV }
5413 % \end{macrocode}
5414 %
5415 % We create the control sequences involved in ×\db_multiline_eq×.
5416 % \begin{macrocode}
5417 \cs_new_protected:Nn \db_multiline_double_backslash:nn
5418 {
5419 \db_add_marginal_note:
5420 \IfValueTF{#2}{%
5421 \IfBooleanTF{#1}{\\*[#2]}{\\[#2]}%
5422 }{%
5423 \IfBooleanTF{#1}{\\*}{\\}%
5424 }%
5425 %
5426 \db_add_multiline_eq_label:
5427 }
5428 % \end{macrocode}
5429 % \begin{macrocode}
5430 \NewDocumentCommand{\multiline@double@backslash}{so}{%
5431 \db_multiline_double_backslash:nn {#1}{#2}
5432 }
5433 \NewDocumentCommand{\multiline@double@backslash@add@space}{so}{%
5434 \db_multiline_double_backslash:nn {#1}{#2}
5435 \hspace{\mathindent}
5436 }
5437 \NewDocumentCommand{\multiline@double@backslash@add@double@space}{so}{%
5438 \db_multiline_double_backslash:nn {#1}{#2}
5439 \hspace{2\mathindent}
5440 }
5441 % \end{macrocode}
5442 % \begin{macrocode}
5443 \cs_new_protected:Nn \db_add_marginal_note:
5444 {
5445 % \end{macrocode}
5446 %
5447 % If (and only if) the pageref of the next line if greater than the
5448 % current line's one, we insert a marginal note telling the equation
5449 % continues on next page.
5450 % \begin{macrocode}
5451 \int_compare:nNnT {
5452 \getpagerefnumber{\g_next_line_of_multiline_eq_label_tl}%
5453 }>{
5454 \getpagerefnumber{\g_line_of_multiline_eq_label_tl}%
5455 }{
5456 \reversemarginpar
5457 \marginnote[\g_@@_equation_continues_next_page_tl]{}
5458 \normalmarginpar
5459 \marginnote[\g_@@_equation_continues_next_page_tl]{}
5460 }
5461 }
5462 % \end{macrocode}
5463 %
5464 % We define the content of the marginal note.
5465 % \begin{macrocode}
5466 \tl_gset:Nn \g_@@_equation_continues_next_page_tl {
5467 \tiny
5468 \sffamily
5469 \slshape
5470 (
5471 \GetTranslation{equation-continues-next-page}
5472 )
5473 }
5474 % \end{macrocode}
5475 %
5476 % \begin{macrocode}
5477 \cs_new_protected:Nn \db_add_multiline_eq_label:
5478 {
5479 % \end{macrocode}
5480 %
5481 % Do nothing on first pass.
5482 % \begin{macrocode}
5483 \ifmeasuring@\else
5484 % \end{macrocode}
5485 %
5486 % We set the unique number of the current multiline equation.
5487 % \begin{macrocode}
5488 \int_gincr:N \g_line_of_multiline_eq_int
5489 % \end{macrocode}
5490 %
5491 % We set the label of the current line.
5492 % \begin{macrocode}
5493 \tl_gset:Nx \g_line_of_multiline_eq_label_tl {
5494 \g_tmpa_tl
5495 \int_use:N \g_line_of_multiline_eq_int
5496 }
5497 \tl_gset:Nx \g_next_line_of_multiline_eq_label_tl {
5498 \g_tmpa_tl
5499 \int_eval:n {\g_line_of_multiline_eq_int + 1}
5500 }
5501 \ltx@label{\g_line_of_multiline_eq_label_tl}%
5502 \fi
5503 }
5504 % \end{macrocode}
5505 % We need to redefine the ×\intertext× and ×\shortintertext× macros (re)defined
5506 % by \Pkg{amsmath} and \Pkg{mathtools} in order they display the marginal note
5507 % notifying the equation continues next page if a page break occurs at their level.
5508 % \begin{macrocode}
5509 \def\MT_intertext: {%
5510 \def\intertext##1{%
5511 \db_add_marginal_note:
5512 \ifvmode\else\\\@empty\fi
5513 \noalign{%
5514 \penalty\postdisplaypenalty\vskip\belowdisplayskip
5515 \vskip-\lineskiplimit % CCS
5516 \vskip\normallineskiplimit % CCS
5517 \vskip\l_MT_above_intertext_sep
5518 \vbox{\normalbaselines
5519 \ifdim
5520 \ifdim\@totalleftmargin=\z@
5521 \linewidth
5522 \else
5523 -\maxdimen
5524 \fi
5525 =\columnwidth
5526 \else \parshape\@ne \@totalleftmargin \linewidth
5527 \fi
5528 \noindent\ignorespaces##1\par}%
5529 \penalty\predisplaypenalty\vskip\abovedisplayskip%
5530 \vskip-\lineskiplimit % CCS
5531 \vskip\normallineskiplimit % CCS
5532 \vskip\l_MT_above_intertext_sep
5533 }%
5534 \db_add_multiline_eq_label:
5535 }%
5536 \MH_let:NwN \shortintertext \shortintertext@
5537 }
5538 % \end{macrocode}
5539 % \begin{macrocode}
5540 \pretocmd{\MT_orig_shortintertext:n}{%
5541 \bool_if:NT \g_@@_within_patched_amsmath_env_bool {
5542 \db_add_marginal_note:
5543 }
5544 }{}{}
5545 \apptocmd{\MT_orig_shortintertext:n}{\db_add_multiline_eq_label:}{}{}
5546 \pretocmd{\MT_shortintertext:n}{%
5547 \bool_if:NT \g_@@_within_patched_amsmath_env_bool {
5548 \db_add_marginal_note:
5549 }
5550 }{}{}
5551 \apptocmd{\MT_shortintertext:n}{\db_add_multiline_eq_label:}{}{}
5552 % \end{macrocode}
5553 % \begin{macrocode}
5554 \mathtoolsset{%
5555 original-intertext=false,
5556 original-shortintertext=false
5557 }
5558 % \end{macrocode}
5559 %
5560 % We adapt a patch from Gonzalo Medina in order marginal notes ×\marginnote×
5561 % always are on leeft side of the page (see
5562 % \url{https://tex.stackexchange.com/a/69624/18401}).
5563 % \begin{macrocode}
5564 \newcommand*{\nwejm@marginnote}{%
5565 \@dblarg\NWEJM@mn@marginnote
5566 }
5567 \newcommand{\NWEJM@mn@marginnote}[2][]{%
5568 \ifhmode
5569 \@bsphack
5570 \begingroup
5571 \ifdim\@savsk>\z@\else
5572 \def\:{\@xifnch}\expandafter\def\: { \futurelet\@let@token\@ifnch}%
5573 \fi
5574 \else
5575 \begingroup
5576 \fi
5577 \@ifnextchar [{\NWEJM@mn@@marginnote[{#1}]{#2}}{\NWEJM@mn@@marginnote[{#1}]{#2}[\z@]}%
5578 }
5579 \newcommand{\NWEJM@mn@@marginnote}{}
5580 \long\def\NWEJM@mn@@marginnote[#1]#2[#3]{%
5581 \endgroup
5582 \ifhmode
5583 \NWEJM@mn@@@marginnote[{#1}]{#2}[{#3}]%
5584 \@esphack
5585 \else
5586 \NWEJM@mn@@@marginnote[{#1}]{#2}[{#3}]%
5587 \fi
5588 }
5589
5590 \long\def\NWEJM@mn@@@marginnote[#1]#2[#3]{%
5591 \begingroup
5592 \ifmmode\mn@strut\let\@tempa\mn@vadjust\else
5593 \if@inlabel\leavevmode\fi
5594 \ifhmode\mn@strut\let\@tempa\mn@vadjust\else\let\@tempa\mn@vlap\fi
5595 \fi
5596 \@tempa{%
5597 \vbox to\z@{%
5598 \vss
5599 \@mn@margintest
5600 \if@reversemargin\if@tempswa
5601 \@tempswafalse
5602 \else
5603 \@tempswatrue
5604 \fi\fi
5605 \rlap{%
5606 \ifx\@mn@currxpos\relax
5607 \kern\marginnoterightadjust
5608 \if@mn@verbose
5609 \PackageInfo{marginnote}{%
5610 xpos not known,\MessageBreak
5611 using \string\marginnoterightadjust}%
5612 \fi
5613 \else\ifx\@mn@currxpos\@empty
5614 \kern\marginnoterightadjust
5615 \if@mn@verbose
5616 \PackageInfo{marginnote}{%
5617 xpos not known,\MessageBreak
5618 using \string\marginnoterightadjust}%
5619 \fi
5620 \else
5621 \if@mn@verbose
5622 \PackageInfo{marginnote}{%
5623 xpos seems to be \@mn@currxpos,\MessageBreak
5624 \string\marginnoterightadjust
5625 \space ignored}%
5626 \fi
5627 \begingroup
5628 \setlength{\@tempdima}{\@mn@currxpos}%
5629 \kern-\@tempdima
5630 \if@twoside\ifodd\@mn@currpage\relax
5631 \kern\oddsidemargin
5632 \else
5633 \kern\evensidemargin
5634 \fi
5635 \else
5636 \kern\oddsidemargin
5637 \fi
5638 \kern 1in
5639 \endgroup
5640 \fi
5641 \fi
5642 \kern\marginnotetextwidth\kern\marginparsep
5643 \vbox to\z@{\kern\marginnotevadjust\kern #3
5644 \vbox to\z@{%
5645 \hsize\marginparwidth
5646 \linewidth\hsize
5647 \kern-\parskip
5648 \marginfont\raggedrightmarginnote\strut\hspace{\z@}%
5649 \ignorespaces#2\endgraf
5650 \vss}%
5651 \vss}%
5652 }%
5653 }%
5654 }%
5655 \endgroup
5656 }
5657 % \end{macrocode}
5658 %
5659 % \section{Packages settings, libraries loading, etc.}
5660 %
5661 % We gather here miscellaneous settings.
5662 %
5663 % \subsection{Related to \Pkg{etoc}}
5664 %
5665 % TOC depth level is ×section×:
5666 % \begin{macrocode}
5667 %<class>\etocsettocdepth{section}
5668 %<class-article>\etocsettocdepth{subsection}
5669 % \end{macrocode}
5670 %
5671 % \subsection{Related to \Pkg{pgfplots}}
5672 %
5673 % (French) Numbers format:
5674 % \begin{macrocode}
5675 \@ifpackageloaded{pgfplots}{%
5676 \ifcurrentbaselanguage{french}{%
5677 \pgfplotsset{%
5678 /pgf/number~format/.cd,
5679 use~comma,
5680 1000~sep={\,},
5681 min~exponent~for~1000~sep=4
5682 }%
5683 }{
5684 }
5685 }
5686 % \end{macrocode}
5687 %
5688 % \subsection{Related to \Pkg{biblatex}}
5689 %
5690 % % Use the new French abbreviations
5691 % % \begin{macrocode}
5692 % \DeclareLanguageMapping{french}{nwejm}%
5693 % % \end{macrocode}
5694 %
5695 % Necessary setting (otherwise \textquote{REFERENCES} is displayed in both
5696 % header and footer on the page (and the following ones until the next article)
5697 % where the bibliography appears).
5698 % \begin{macrocode}
5699 \AddToHook{begindocument/before}{%
5700 \defbibheading{_@@_subbibliography}[\refname]{%
5701 \section*{#1}
5702 }%
5703 % \end{macrocode}
5704 %
5705 % For formal citations (cf. \Package{csquotes}):
5706 % \begin{macrocode}
5707 \SetCiteCommand{\autocite}%
5708 }%
5709 % \end{macrocode}
5710 %
5711 % \begin{macro}{\printbibliography}
5712 % \begin{macrocode}
5713 % \newcounter{lastpagearticle}
5714 \cs_set_eq:NN \_@@_printbibliography: \printbibliography
5715 \RenewDocumentCommand \printbibliography { O{} } {
5716 % \end{macrocode}
5717 % We force all the previous floats to be processed no later on the page
5718 % following the beginning of the bibliography.
5719 % \begin{macrocode}
5720 \FloatBarrier%
5721 % \end{macrocode}
5722 % We automatically insert the acknowledgments (if any) before the bibliography.
5723 % \begin{macrocode}
5724 \tl_if_empty:NF \g_@@_article_acknowledgments_tl
5725 {
5726 \section*{\GetTranslation{Acknowledgments}}
5727 \g_@@_article_acknowledgments_tl
5728 \tl_gclear:N \g_@@_article_acknowledgments_tl
5729 }
5730 \_@@_printbibliography: [heading=_@@_subbibliography,resetnumbers,#1]
5731 % \end{macrocode}
5732 %
5733 % \begin{macrocode}
5734 %</class|class-article>
5735 % \end{macrocode}
5736 %
5737 % \subsection{Miscellaneous}
5738 %
5739 % \begin{macrocode}
5740 %<*class-article>
5741 % \end{macrocode}
5742 %
5743 % The independant articles contain their (local) table of contents at their end.
5744 % \begin{macrocode}
5745 \bool_if:NF \g_@@_nolocaltoc_bool {
5746 % \setcounter{lastpagearticle}{\value{page}}
5747 \newpage
5748 \setcounter{page}{\c_zero_int}
5749 \pagenumbering{roman}%
5750 \etocarticlestylenomarks
5751 % \end{macrocode}
5752 %
5753 % We don't want the article's title (chapter's title) in the (local) table of
5754 % contents.
5755 % \begin{macrocode}
5756 % %<class> \group_begin:
5757 % %<class> \hypersetup{bookmarksdepth=-2}
5758 % %<class> \etocsetnexttocdepth{subsection}
5759 % %<class> \etocsettocdepth.toc{chapter}
5760 % %<class> \tableofcontents\ref{\l_@@_localtableofcontents_label_tl}
5761 % %<class> \etocsettocdepth.toc {subsection}
5762 % %<class> \group_end:
5763 \etocsetlevel{chapter}{6}
5764 \tableofcontents
5765 % \afterpage{
5766 % \pagenumbering{arabic}%
5767 % \setcounter{page}{\value{lastpagearticle}}
5768 % \addtocounter{page}{1}
5769 % \checkoddpage
5770 % \ifoddpage
5771 % \newpage
5772 % % \else
5773 % % \setcounter{page}{\value{lastpagearticle}}
5774 % \fi
5775 % }
5776 }
5777 % \end{macrocode}
5778 % \end{macro}
5779 %
5780 % \begin{macrocode}
5781 %</class-article>
5782 % \end{macrocode}
5783 %
5784 % \begin{macrocode}
5785 %<*class|class-article>
5786 % \end{macrocode}
5787 %
5788 % \begin{macrocode}
5789 }
5790 % \end{macrocode}
5791 % \end{macro}
5792 %
5793 % As bibiliographic resource, we add the file of the current issue.
5794 % \begin{macrocode}
5795 \exp_after:wN\addbibresource\exp_after:wN{\c_@@_issue_bib_path_string_tl}
5796 % \end{macrocode}
5797 %
5798 % \subsection{Related to \Pkg{kpfonts}}
5799 %
5800 %
5801 % We replace the \pkg{kpfonts}' \enquote{mathfrak} by the one from
5802 % \enquote{eufrak}, as the former doesn't provide Euler Fraktur digits.
5803 % \begin{macrocode}
5804 \sys_if_engine_pdftex:T
5805 {
5806 \DeclareMathAlphabet\mathfrak{U}{euf}{m}{n}
5807 \SetMathAlphabet\mathfrak{bold}{U}{euf}{b}{n}
5808 }
5809 % \end{macrocode}
5810 %
5811 % \subsection{Related to \Pkg{hyperref}}
5812 %
5813 % We perform a workaround replacement macro for short form of acronyms in
5814 % headings title in order to let them smoothly appear in the bookmarks.
5815 % \begin{macrocode}
5816 \expandafter\def\expandafter\pdfstringdefPreHook
5817 \expandafter{%
5818 \pdfstringdefPreHook
5819 \renewcommand{\acrshort}[1]{\text_uppercase:n {\glsentryshort{##1}}}%
5820 }
5821 % \end{macrocode}
5822 %
5823 % \subsection{Related to \Pkg{draftwatermark}}
5824 %
5825 % \begin{macrocode}
5826 \@ifpackageloaded{draftwatermark}{%
5827 \SetWatermarkColor{gray!10}%
5828 \SetWatermarkFontSize{30mm}%
5829 \SetWatermarkText{\text_uppercase:n {\c_@@_draftwatermark_string_tl}}%
5830 }{%
5831 }
5832 % \end{macrocode}
5833 %
5834 % In case of \hologo{pdfTeX} engine, the document makes use of the \pkg{lmodern}
5835 % for the \enquote{ttfamily} font.
5836 % \begin{macrocode}
5837 \sys_if_engine_pdftex:T
5838 {
5839 \renewcommand{\ttdefault}{lmtt}
5840 }
5841 % \end{macrocode}
5842 %
5843 % \begin{macrocode}
5844 %<class>\tl_new:N \g_@@_font_designer_text_tl%
5845 \cs_new_protected:Nn \@@_font_designer_text:n
5846 {
5847 \tl_gset:Nn \g_@@_font_designer_text_tl { #1 }
5848 }
5849 \NewDocumentCommand \fontdesignertext {m}
5850 {
5851 \_@@_font_designer_text:n {#1}%
5852 }
5853 % \end{macrocode}
5854 %
5855 % \begin{macro}{\nwejm}
5856 % \begin{macrocode}
5857 \NewDocumentCommand \nwejm { s } {
5858 \IfBooleanTF {#1}
5859 {
5860 \g_@@_nwejm_string_tl
5861 }
5862 {
5863 \g_@@_nwejm_short_string_tl
5864 }
5865 \xspace
5866 }
5867 % \end{macrocode}
5868 % \end{macro}
5869 %
5870 % \begin{macrocode}
5871 %</class|class-article>
5872 % \end{macrocode}
5873 %
5874 % \begin{macrocode}
5875 %<*class>
5876 % \end{macrocode}
5877 %
5878 % \begin{macrocode}
5879 \AddToHook{begindocument/end}{%
5880 % \end{macrocode}
5881 %
5882 % If the cover production is asked, we automatically load some libraries, make
5883 % some configurations and display it (and only it). Otherwise, we automatically
5884 % display the table of contents.
5885 % \begin{macrocode}
5886 \bool_if:NTF \g_@@_cover_bool {
5887 \g_@@_display_frontcover_tl
5888 \g_@@_display_backcover_tl
5889 \g_@@_display_inside_frontcover_tl
5890 \g_@@_display_inside_backcover_tl
5891 \end{document}
5892 }{
5893 \tableofcontents
5894 }
5895 }
5896 % \end{macrocode}
5897 %
5898 % \begin{macrocode}
5899 %</class>
5900 % \end{macrocode}
5901 %
5902 % \begin{macrocode}
5903 %<*class|class-article>
5904 % \end{macrocode}
5905 %
5906 % Because articles' title are displayed thanks to the ×\chapter× command, we
5907 % have to format its layout.
5908 % \begin{macrocode}
5909 \AddToHook{begindocument/end}{%
5910 \titleformat{\chapter}[block]
5911 {\normalfont\centering}{}{0pt}{}
5912 \titlespacing*{\chapter}{0pt}{0pt}{0pt}
5913 }
5914 % \end{macrocode}
5915 %
5916 % \Pkg{xy} performs category code changes of ×@× ×\AddToHook{begindocument}× and this
5917 % cause troubles (see \url{tex.stackexchange.com/q/303238/18401}). Hence, we
5918 % prohibit it.
5919 % \begin{macrocode}
5920 \AddToHook{begindocument/before}{%
5921 \@ifpackageloaded{xy}{%
5922 \msg_error:nn{
5923 %<class-article> nwejmart
5924 %<class> nwejm
5925 }{`xy'~package~not~allowed!}
5926 }{
5927 }
5928 }
5929 % \end{macrocode}
5930 %
5931 % By default, we switch the shorthand character ×"× off used by the Dutch and
5932 % German languages as they are source of many troubles, especially with the
5933 % ×tikzcd× environments.
5934 % \begin{macrocode}
5935 \AddToHook{begindocument/end}{%
5936 % \shorthandoff{"}%
5937 \@ifpackageloaded{tikz}{%
5938 \usetikzlibrary{babel}%
5939 }{}%
5940 }
5941 % \end{macrocode}
5942 %
5943 % By default, the page style is the one of the mainmatter.
5944 % \begin{macrocode}
5945 \AddToHook{begindocument/end}{%
5946 \pagestyle{@@_mainmatter_ps}%
5947 }
5948 % \end{macrocode}
5949 %
5950 % \section{Debugging (end)}
5951 %
5952 % \begin{macrocode}
5953 % \debug_off:n { all }
5954 % \end{macrocode}
5955 %
5956 % We now leave the \LaTeX3{} programming environment.
5957 % \begin{macrocode}
5958 \ExplSyntaxOff
5959 % \end{macrocode}
5960 %
5961 % \begin{macrocode}
5962 %</class|class-article>
5963 % \end{macrocode}
5964 %
5965 % \begin{macrocode}
5966 %<*languagemodel>
5967 % \end{macrocode}
5968 %
5969 % \begin{macrocode}
5970 \ProvidesFile{nwejm.lbx}
5971 \InheritBibliographyExtras{french}% extras are inherited from French...
5972 \DeclareBibliographyStrings{%
5973 inherit = {french},% .... as well as all the keys
5974 number = {{\no}{\no}},
5975 volume = {{volume}{vol\adddot}},
5976 volumes = {{volumes}{vol\adddot}},
5977 }
5978 % \end{macrocode}
5979 %
5980 % \begin{macrocode}
5981 %</languagemodel>
5982 % \end{macrocode}
5983 %
5984 % \section{Initial configuration file}
5985 %
5986 % \begin{macrocode}
5987 %<*configuration>
5988 % \end{macrocode}
5989 %
5990 % First, we create the new entry type "interview" and the new field
5991 % "interviewee".
5992 % \begin{macrocode}
5993 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5994 %% Journal data
5995 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5996 \journalsetup{%
5997 publisher = \nwejm,
5998 address = UFR de Math\'{e}matiques -- B\^atiment M2 -- Bureau 10\newline
5999 Universit\'{e} Lille 1 -- Cit\'{e} Scientifique\newline
6000 59655 Villeneuve d'Ascq,
6001 phone = +33 (0)3 20 43 42 33,
6002 email = [email protected],
6003 url = https://nwejm.univ-lille.fr/,
6004 issn =
6005 }
6006 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6007 %% Editor in chief
6008 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6009 \editorinchief{Nicaise, Serge}{Universit\'{e} de Valenciennes et du Hainaut Cambr\'{e}sis
6010 }{France}{[email protected]}
6011 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6012 %% Fields editor
6013 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6014 \fieldseditor{Craig, Walter}{McMaster University}{Canada}{[email protected]}
6015 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6016 %% Managing editor
6017 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6018 \managingeditor{Wicker, Nicolas}{Universit\'{e} Lille 1}{France}{[email protected]}
6019 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6020 %% Editors
6021 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6022 \editor{Apel, Thomas}{Universit{\"a}t der Bundeswehr München}{Germany}{[email protected]}
6023 \editor{Beauchard, Karine}{\textsc{ens} Rennes}{France}{[email protected]}
6024 \editor{von Below, Joachim}{Universit\'{e} du Littoral C\^{o}te d'Opale}{France}{[email protected]}
6025 \editor{Biernacki, Christophe}{Universit\'{e} de Lille 1}{France}{[email protected]}
6026 \editor{Chainais-Hillairet, Claire}{Universit\'{e} de Lille 1}{France}{[email protected]}
6027 \editor{Dauge, Monique}{Universit\'{e} de Rennes I}{France}{[email protected]}
6028 \editor{David, Sinnou}{Universit\'{e} Paris VI}{France}{[email protected]}
6029 \editor{Davydov, Youri}{Universit\'{e} de Lille 1}{France}{[email protected]}
6030 \editor{D\`{e}bes, Pierre}{Universit\'{e} de Lille 1}{France}{[email protected]}
6031 \editor{Demailly, Jean-Pierre}{Universit\'{e} de Grenoble 1}{France}{[email protected]}
6032 \editor{Droniou, J\'{e}r\^{o}me}{Monash University}{Australia}{[email protected]}
6033 \editor{El Kacimi, Aziz}{Universit\'{e} de Valenciennes et du Hainaut Cambr\'{e}sis}{France}{[email protected]}
6034 \editor{Fleischmann, Peter}{University of Kent}{United Kingdom}{[email protected]}
6035 \editor{Fresse, Benoît}{Universit\'{e} de Lille 1}{France}{[email protected]}
6036 \editor{Fricain, Emmanuel}{Universit\'{e} de Lille 1}{France}{[email protected]}
6037 \editor{Gaffney, Eamonn}{Oxford University}{United Kingdom}{[email protected]}
6038 \editor{Gloria, Antoine}{Universit\'{e} Libre de Bruxelles}{Belgium}{[email protected]}
6039 \editor{Godefroy, Gilles}{Universit\'{e} Paris VI}{France}{[email protected]}
6040 \editor{Grosse-Erdmann, Karl}{Universit\'{e} de Mons}{Belgium}{[email protected]}
6041 \editor{Guo, Bao-Zhu}{Academy of Mathematics and Systems Science, Academia Sinica, Beijing}{China}{[email protected]}
6042 \editor{Lambrechts, Pascal}{Universit\'{e} Catholique de Louvain}{Belgium}{[email protected]}
6043 \editor{Lef\`{e}vre, Pascal}{Universit\'{e} d'Artois}{France}{[email protected]}
6044 \editor{Leroy, Andr\'{e}}{Universit\'{e} d'Artois}{France}{[email protected]}
6045 \editor{Loeb, Jean-Jacques}{Universit\'{e} d'Angers}{France}{[email protected]}
6046 \editor{Luca, Florian}{University of Witwatersrand}{South-Africa}{[email protected]}
6047 \editor{Matom{\"a}ki Kaisa}{University of Turku}{Finland}{[email protected]}
6048 \editor{Michaux, Christian}{Universit\'{e} de Mons}{Belgium}{[email protected]}
6049 \editor{Moerdijk, Ieke}{Radboud University Nijmegen}{Netherlands}{[email protected]}
6050 \editor{Murua, Alejandro}{Universit\'{e} de Montr\'{e}al}{Canada}{[email protected]}
6051 \editor{Nakamura, Hiroaki}{Osaka University}{Japan}{[email protected]}
6052 \editor{van Neerven, Jan}{Delft University of Technology}{Netherlands}{[email protected]}
6053 \editor{Nicaise, Johannes}{Katholieke Universiteit Leuven}{Belgium}{[email protected]}
6054 \editor{Norvaisa, Rimas}{Vilnius University}{Lituany}{[email protected]}
6055 \editor{Peccati, Giovanni}{University of Luxembourg}{Luxembourg}{[email protected]}
6056 \editor{Pirashvili, Teimuraz}{University of Leicester}{United Kingdom}{[email protected]}
6057 \editor{Ramar\'{e}, Olivier}{Universit\'{e} de Lille 1}{France}{[email protected]}
6058 \editor{Roelly, Sylvie}{University of Potsdam}{Germany}{[email protected]}
6059 \editor{Stubbe, Isar}{Universit\'{e} du Littoral C\^{o}te d'Opale}{France}{[email protected]}
6060 \editor{Suquet, Charles}{Universit\'{e} de Lille 1}{France}{[email protected]}
6061 \editor{Tazzioli, Rossana}{Universit\'{e} de Lille 1}{France}{[email protected]}
6062 \editor{Tignol, Jean-Pierre}{Universit\'{e} Catholique de Louvain}{Belgium}{[email protected]}
6063 \editor{Wu, Jie}{Institut Elie Cartan}{France}{[email protected]}
6064 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6065 %% Secretary
6066 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6067 \secretary{Smets, Aurore}{}{}{}
6068 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6069 %% LaTeX class designer (and maintainer(s))
6070 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6071 \classdesigner{Bitouz\'{e}, Denis}{Universit\'{e} du Littoral C\^{o}te d'Opale}{France}{[email protected]}
6072 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6073 %% Computer engineer
6074 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6075 \computerengineer{Huart, S\'{e}bastien}{Universit\'{e} de Lille 1}{France}{}
6076 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6077 %% Font designer text
6078 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6079 \fontdesignertext{We make use of \href{http://ctan.org/pkg/kpfonts}{Kp-Fonts},
6080 the set of fonts designed by Christophe Caignaert.}
6081 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6082 %% Printer text
6083 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6084 \graphicdesign{Luu, Patricia and Rémond, Catherine}{Universit\'{e} de Lille 1}{France}{}
6085 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6086 %% Authors instructions
6087 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6088 \authorsinstructions{%
6089 \begin{description}
6090 \item[Articles submission:] Upon submission, the authors have only to provide
6091 a file in the \textsc{pdf} format. Once the paper is accepted or subject to
6092 minor revisions, the authors have to ensure that it agrees with the journal
6093 format.
6094 \item[\LaTeX{} details:]\
6095 \begin{description}
6096 \item[\LaTeX{} class:] We strongly encourage the authors to prepare their
6097 article to appear in the \href{\l_@@_journal_url_tl}{\nwejm} journal with
6098 the dedicated \href{http://ctan.org/pkg/nwejm}{\textsf{nwejmart}} \LaTeX{}
6099 class (currently,
6100 \href{http://mirrors.ctan.org/macros/latex/contrib/nwejm/doc/documentation/nwejm.pdf}{documented
6101 only in French}), available with \textsf{MiKTeX} and \textsf{TeX~Live}
6102 distributions.
6103 \item[Incompatibilities:]\
6104 \begin{itemize}
6105 \item Our production system is \emph{not} compatible with the
6106 \href{http://ctan.org/pkg/xypic}{\textsf{xypic} bundle}. For commutative
6107 diagramms, please use instead the user-friendly and modern
6108 \href{http://ctan.org/pkg/xypic}{\textsf{tikz-cd}} package.
6109 \item We much more prefer graphics \emph{not} created with
6110 \href{http://ctan.org/topic/pstricks}{\textsf{PSTricks} and
6111 derived}. Consider using
6112 \href{http://ctan.org/pkg/pgf}{\textsf{PGF/TikZ}} or
6113 \href{http://ctan.org/topic/pgf-tikz}{derived packages}.
6114 \end{itemize}
6115 In case you really need one of these packages, please contact us.
6116 \item[Bibliography:] The bibliography must be provided as a \texttt{.bib}
6117 file in the format of the
6118 \href{http://ctan.org/pkg/biblatex}{\textsf{biblatex}} package.
6119 \item[Figures:] The figures must be provided in \textsc{pdf} or \textsc{eps}
6120 formats.
6121 \end{description}
6122 \end{description}
6123 }
6124 % \end{macrocode}
6125 %
6126 % \begin{macrocode}
6127 %</configuration>
6128 % \end{macrocode}
6129 %
6130 % \section{Dictionaries files}
6131 %
6132 % \begin{macrocode}
6133 %<*english>
6134 % \end{macrocode}
6135 %
6136 % \begin{macrocode}
6137 \ProvideDictionaryFor{English}{nwejm}
6138 %
6139 \ProvideDictTranslation{theorem}{theorem}
6140 \ProvideDictTranslation{corollary}{corollary}
6141 \ProvideDictTranslation{conjecture}{conjecture}
6142 \ProvideDictTranslation{remark}{remark}
6143 \ProvideDictTranslation{axiom}{axiom}
6144 \ProvideDictTranslation{definition}{definition}
6145 \ProvideDictTranslation{example}{example}
6146 \ProvideDictTranslation{lemma}{lemma}
6147 \ProvideDictTranslation{notation}{notation}
6148 \ProvideDictTranslation{proposition}{proposition}
6149 \ProvideDictTranslation{proof}{proof}
6150 \ProvideDictTranslation{plural-theorem}{theorems}
6151 \ProvideDictTranslation{plural-corollary}{corollaries}
6152 \ProvideDictTranslation{plural-conjecture}{conjectures}
6153 \ProvideDictTranslation{plural-remark}{remarks}
6154 \ProvideDictTranslation{plural-axiom}{axioms}
6155 \ProvideDictTranslation{plural-definition}{definitions}
6156 \ProvideDictTranslation{plural-example}{examples}
6157 \ProvideDictTranslation{plural-lemma}{lemmas}
6158 \ProvideDictTranslation{plural-notation}{notations}
6159 \ProvideDictTranslation{plural-proposition}{propositions}
6160 \ProvideDictTranslation{plural-proof}{proofs}
6161 %
6162 \ProvideDictTranslation{volume-abbreviated}{vol.}
6163 %
6164 \ProvideDictTranslation{plural-keyword}{keywords}
6165 %
6166 \ProvideDictTranslation{received}{received}
6167 \ProvideDictTranslation{accepted}{accepted}
6168 \ProvideDictTranslation{online}{online}
6169 %
6170 \ProvideDictTranslation{hypothesis}{hypothesis}
6171 \ProvideDictTranslation{plural-hypothesis}{hypotheses}
6172 %
6173 \ProvideDictTranslation{assertion}{assertion}
6174 \ProvideDictTranslation{plural-assertion}{assertions}
6175 %
6176 \ProvideDictTranslation{condition}{condition}
6177 \ProvideDictTranslation{plural-condition}{conditions}
6178 %
6179 \ProvideDictTranslation{century}{century}
6180 \ProvideDictTranslation{before-christ}{BC}
6181 %
6182 \ProvideDictTranslation{Acknowledgments}{Acknowledgments}
6183 %
6184 \ProvideDictTranslation{idest}{id~est}
6185 \ProvideDictTranslation{ie}{i.e}
6186 \ProvideDictTranslation{Idest}{Id~est}
6187 \ProvideDictTranslation{Ie}{I.e}
6188 %
6189 % For the note in the margin notifying when the equation continues next page.
6190 \ProvideDictTranslation{equation-continues-next-page}{Cont. ~next ~page}
6191 % \end{macrocode}
6192 %
6193 % \begin{macrocode}
6194 %</english>
6195 % \end{macrocode}
6196 %
6197 % \begin{macrocode}
6198 %<*french>
6199 % \end{macrocode}
6200 %
6201 % \begin{macrocode}
6202 \ProvideDictionaryFor{French}{nwejm}
6203 %
6204 \ProvideDictTranslation{theorem}{th\'{e}or\`{e}me}
6205 \ProvideDictTranslation{corollary}{corollaire}
6206 \ProvideDictTranslation{conjecture}{conjecture}
6207 \ProvideDictTranslation{remark}{remarque}
6208 \ProvideDictTranslation{axiom}{axiome}
6209 \ProvideDictTranslation{definition}{d\'{e}finition}
6210 \ProvideDictTranslation{example}{exemple}
6211 \ProvideDictTranslation{lemma}{lemme}
6212 \ProvideDictTranslation{notation}{notation}
6213 \ProvideDictTranslation{proposition}{proposition}
6214 \ProvideDictTranslation{proof}{preuve}
6215 \ProvideDictTranslation{plural-theorem}{th\'{e}or\`{e}mes}
6216 \ProvideDictTranslation{plural-corollary}{corollaires}
6217 \ProvideDictTranslation{plural-conjecture}{conjectures}
6218 \ProvideDictTranslation{plural-remark}{remarques}
6219 \ProvideDictTranslation{plural-axiom}{axiomes}
6220 \ProvideDictTranslation{plural-definition}{d\'{e}finitions}
6221 \ProvideDictTranslation{plural-example}{exemples}
6222 \ProvideDictTranslation{plural-lemma}{lemmes}
6223 \ProvideDictTranslation{plural-notation}{notations}
6224 \ProvideDictTranslation{plural-proposition}{propositions}
6225 \ProvideDictTranslation{plural-proof}{preuves}
6226 %
6227 \ProvideDictTranslation{volume-abbreviated}{vol.}
6228 %
6229 \ProvideDictTranslation{plural-keyword}{mots-cl\'{e}s}
6230 %
6231 \ProvideDictTranslation{received}{re\c cu}
6232 \ProvideDictTranslation{accepted}{accept\'{e}}
6233 \ProvideDictTranslation{online}{en~ligne}
6234 %
6235 \ProvideDictTranslation{hypothesis}{hypoth\`{e}se}
6236 \ProvideDictTranslation{plural-hypothesis}{hypoth\`{e}ses}
6237 %
6238 \ProvideDictTranslation{assertion}{assertion}
6239 \ProvideDictTranslation{plural-assertion}{assertions}
6240 %
6241 \ProvideDictTranslation{condition}{condition}
6242 \ProvideDictTranslation{plural-condition}{conditions}
6243 %
6244 \ProvideDictTranslation{century}{si\`{e}cle}
6245 \ProvideDictTranslation{before-christ}{av.~J.-C}
6246 %
6247 \ProvideDictTranslation{Acknowledgments}{Remerciements}
6248 %
6249 \ProvideDictTranslation{idest}{c'est-\`{a}-dire}
6250 \ProvideDictTranslation{ie}{c.-\`{a}-d}
6251 \ProvideDictTranslation{Idest}{C'est-\`{a}-dire}
6252 \ProvideDictTranslation{Ie}{C.-\`{a}-d}
6253 %
6254 % For the note in the margin notifying when the equation continues next page.
6255 \ProvideDictTranslation{equation-continues-next-page}{Cont. ~page ~suiv.}
6256 % \end{macrocode}
6257 %
6258 % \begin{macrocode}
6259 %</french>
6260 % \end{macrocode}
6261 %
6262 % \begin{macrocode}
6263 %<*german>
6264 % \end{macrocode}
6265 %
6266 % \begin{macrocode}
6267 \ProvideDictionaryFor{German}{nwejm}
6268 %
6269 \ProvideDictTranslation{theorem}{Theorem}
6270 \ProvideDictTranslation{corollary}{Korollar}
6271 \ProvideDictTranslation{conjecture}{Vermutung}
6272 \ProvideDictTranslation{remark}{Bemerkung}
6273 \ProvideDictTranslation{axiom}{Axiom}
6274 \ProvideDictTranslation{definition}{Definition}
6275 \ProvideDictTranslation{example}{Beispiel}
6276 \ProvideDictTranslation{lemma}{Lemma}
6277 \ProvideDictTranslation{notation}{Bezeichnung}
6278 \ProvideDictTranslation{proposition}{Proposition}
6279 \ProvideDictTranslation{proof}{Beweis}
6280 \ProvideDictTranslation{plural-theorem}{Sätze}
6281 \ProvideDictTranslation{plural-corollary}{Korollare}
6282 \ProvideDictTranslation{plural-conjecture}{Vermutungen}
6283 \ProvideDictTranslation{plural-remark}{Bemerkungen}
6284 \ProvideDictTranslation{plural-axiom}{Axiome}
6285 \ProvideDictTranslation{plural-definition}{Definitionen}
6286 \ProvideDictTranslation{plural-example}{Beispiele}
6287 \ProvideDictTranslation{plural-lemma}{Lemmata}
6288 \ProvideDictTranslation{plural-notation}{Bezeichnungen}
6289 \ProvideDictTranslation{plural-proposition}{Propositionen}
6290 \ProvideDictTranslation{proofs}{Beweise}
6291 %
6292 \ProvideDictTranslation{volume-abbreviated}{Bd}
6293 %
6294 \ProvideDictTranslation{plural-keyword}{Schlüsselbegriffe}
6295 %
6296 \ProvideDictTranslation{received}{empfangen}
6297 \ProvideDictTranslation{accepted}{angenommen}
6298 \ProvideDictTranslation{online}{online}
6299 %
6300 \ProvideDictTranslation{hypothesis}{Hypothese}
6301 \ProvideDictTranslation{plural-hypothesis}{Hypothesen}
6302 %
6303 \ProvideDictTranslation{assertion}{Behauptung}
6304 \ProvideDictTranslation{plural-assertion}{Behauptungen}
6305 %
6306 \ProvideDictTranslation{condition}{Voraussetzung}
6307 \ProvideDictTranslation{plural-condition}{Voraussetzungen}
6308 %
6309 \ProvideDictTranslation{century}{Jhdt}
6310 \ProvideDictTranslation{before-christ}{v.~Chr}
6311 %
6312 \ProvideDictTranslation{Acknowledgments}{Bestätigungen}
6313 %
6314 \ProvideDictTranslation{idest}{das~heißt}
6315 \ProvideDictTranslation{ie}{d.~h}
6316 \ProvideDictTranslation{Idest}{Das~heißt}
6317 \ProvideDictTranslation{Ie}{D~h}
6318 %
6319 % For the note in the margin notifying when the equation continues next page.
6320 \ProvideDictTranslation{equation-continues-next-page}{Weiter~ nächste~ Seite}
6321 % \end{macrocode}
6322 %
6323 % \begin{macrocode}
6324 %</german>
6325 % \end{macrocode}
6326 %
6327 % \begin{macrocode}
6328 %<*dutch>
6329 % \end{macrocode}
6330 %
6331 % \begin{macrocode}
6332 \ProvideDictionaryFor{Dutch}{nwejm}
6333 %
6334 \ProvideDictTranslation{theorem}{stelling}
6335 \ProvideDictTranslation{corollary}{gevolg}
6336 \ProvideDictTranslation{conjecture}{vermoeden}
6337 \ProvideDictTranslation{remark}{opmerking}
6338 \ProvideDictTranslation{axiom}{axioma}
6339 \ProvideDictTranslation{definition}{definitie}
6340 \ProvideDictTranslation{example}{voorbeeld}
6341 \ProvideDictTranslation{lemma}{lemma}
6342 \ProvideDictTranslation{notation}{notatie}
6343 \ProvideDictTranslation{proposition}{eigenschap}
6344 \ProvideDictTranslation{proof}{bewijs}
6345 \ProvideDictTranslation{plural-theorem}{stellingen}
6346 \ProvideDictTranslation{plural-corollary}{gevolgen}
6347 \ProvideDictTranslation{plural-conjecture}{vermoedens}
6348 \ProvideDictTranslation{plural-remark}{opmerkingen}
6349 \ProvideDictTranslation{plural-axiom}{axioma's}
6350 \ProvideDictTranslation{plural-definition}{definities}
6351 \ProvideDictTranslation{plural-example}{voorbeelden}
6352 \ProvideDictTranslation{plural-lemma}{lemma's}
6353 \ProvideDictTranslation{plural-notation}{notaties}
6354 \ProvideDictTranslation{plural-proposition}{eigenschappen}
6355 \ProvideDictTranslation{plural-proof}{bewijzen}
6356 %
6357 \ProvideDictTranslation{volume-abbreviated}{deel}
6358 %
6359 \ProvideDictTranslation{plural-keyword}{trefwoorden}
6360 %
6361 \ProvideDictTranslation{received}{ontvangen}
6362 \ProvideDictTranslation{accepted}{aanvaard}
6363 \ProvideDictTranslation{online}{online}
6364 %
6365 \ProvideDictTranslation{hypothesis}{hypothese}
6366 \ProvideDictTranslation{plural-hypothesis}{hypotheses}
6367 %
6368 \ProvideDictTranslation{assertion}{aanname}
6369 \ProvideDictTranslation{plural-assertion}{aannames}
6370 %
6371 \ProvideDictTranslation{condition}{voorwaarde}
6372 \ProvideDictTranslation{plural-condition}{voorwaarden}
6373 %
6374 \ProvideDictTranslation{century}{eeuw}
6375 \ProvideDictTranslation{before-christ}{v.Chr}
6376 %
6377 \ProvideDictTranslation{Acknowledgments}{Dankwoord}
6378 %
6379 \ProvideDictTranslation{idest}{dat~wil~zeggen}
6380 \ProvideDictTranslation{ie}{d.w.z}
6381 \ProvideDictTranslation{Idest}{Dat~wil~zeggen}
6382 \ProvideDictTranslation{Ie}{D.w.z}
6383 %
6384 % For the note in the margin notifying when the equation continues next page.
6385 \ProvideDictTranslation{equation-continues-next-page}{op~ de~ volgende~ pagina}
6386 % \end{macrocode}
6387 %
6388 % \begin{macrocode}
6389 %</dutch>
6390 % \end{macrocode}
6391 %
6392 % \begin{macrocode}
6393 %<*logos-collection>
6394 % \end{macrocode}
6395 %
6396 % The following complete \File{.tex} draws a graph connecting the logo of the
6397 % current journal with the ones of its sponsors. The resulting image is inserted
6398 % on one of the cover pages.
6399 % \begin{macrocode}
6400 \documentclass[tikz]{standalone}
6401 \usepackage{graphicx}
6402 \usepackage{tkz-berge}
6403 \makeatletter
6404 \newcommand*{\grWheelComplete}[2][]{%
6405 \begingroup%
6406 \setkeys[GR]{cl}{#1}%
6407 \grStar[#1]{#2}%
6408 \pgfmathsetcounter{tkz@gr@a}{#2-1}%
6409 \edef\tkz@auxctp{\thetkz@gr@a}%
6410 \foreach \ia in {0,...,\tkz@auxctp}%
6411 {\foreach \ib in {\ia,...,\tkz@auxctp}%
6412 {\Edge(\cmdGR@cl@prefix\ia)(\cmdGR@cl@prefix\ib)}%
6413 }%
6414 \endgroup%
6415 }
6416 \makeatother
6417 %
6418 \begin{document}
6419 \begin{tikzpicture}[scale=.8]
6420 \GraphInit[vstyle=Shade]%
6421 \SetGraphShadeColor{blue!60!black!30}{blue}{white}%
6422 \tikzset{%
6423 VertexStyle/.style = {%
6424 shape = circle,%
6425 fill = white,%
6426 minimum size = 3.5cm,%
6427 draw%
6428 }%
6429 }%
6430 \SetVertexNoLabel%
6431 \grWheelComplete[RA=9]{6}%
6432 \AssignVertexLabel{a}{%
6433 \includegraphics[height=25mm]{nwejm-fields-institute-logo},%
6434 \includegraphics[height=25mm]{nwejm-federation-recherche-math-npdc-logo},%
6435 \includegraphics[height=10mm]{nwejm-kwg-logo},%
6436 \includegraphics[height=20mm]{nwejm-smf-logo},%
6437 \includegraphics[height=12mm]{nwejm-sml-logo},%
6438 \includegraphics[height=25mm]{nwejm-logo}%
6439 };%
6440 \end{tikzpicture}
6441 \end{document}
6442 % \end{macrocode}
6443 %
6444 % \begin{macrocode}
6445 %</logos-collection>
6446 % \end{macrocode}
6447 %
6448 % \begin{macrocode}
6449 %<*bibstyle>
6450 % \end{macrocode}
6451 %
6452 % \begin{macrocode}
6453 \ProvidesFile{nwejm.bbx}
6454 [2016/04/01 v 0.1 nwejm bibliographic style (DB)]
6455
6456 \RequireBibliographyStyle{authoryear-comp}
6457 % \end{macrocode}
6458 %
6459 % We create a name format that prints the initial(s) of the first name(s) before
6460 % last name of a cited author.
6461 % \begin{macrocode}
6462 \DeclareNameFormat{giveninits-last}{%
6463 \nameparts{#1}
6464 \usebibmacro{name:given-family}
6465 {\namepartfamily}
6466 {\namepartgiveni}
6467 {\namepartprefix}
6468 {\namepartsuffix}%
6469 \usebibmacro{name:andothers}%
6470 }
6471 % \end{macrocode}
6472 %
6473 % The following is borrowed from Joseph Wright
6474 % (\url{http://tex.stackexchange.com/a/5795/18401}) in order to prevent
6475 % identical URL and DOI fields to be both displayed.
6476 % \begin{macrocode}
6477 \renewbibmacro*{doi+eprint+url}{%
6478 \iftoggle{bbx:doi}%
6479 {%
6480 \iffieldundef{doi}%
6481 {}%
6482 {%
6483 \begingroup%
6484 \edef\URLorDOI{%
6485 \detokenize{http://dx.doi.org/}%
6486 \thefield{doi}%
6487 }%
6488 \iffieldequals{url}{\URLorDOI}%
6489 {\endgroup}%
6490 {%
6491 \endgroup%
6492 \printfield{doi}%
6493 }%
6494 }%
6495 }%
6496 {}%
6497 \newunit\newblock%
6498 \iftoggle{bbx:eprint}%
6499 {\usebibmacro{eprint}}%
6500 {}%
6501 \newunit\newblock%
6502 \iftoggle{bbx:url}%
6503 {\usebibmacro{url+urldate}}%
6504 {}%
6505 }
6506 % \end{macrocode}
6507 %
6508 % We perform some other modifications to ×authoryear× bib style.
6509 % \begin{macrocode}
6510 \renewbibmacro{in:}{%
6511 \ifentrytype{article}{}{\printtext{\bibstring{in}\intitlepunct}}%
6512 }
6513 \renewbibmacro*{journal}{%
6514 \iffieldundef{shortjournal}%
6515 {%
6516 \iffieldundef{journaltitle}%
6517 {}%
6518 {%
6519 \printtext[journaltitle]%
6520 {%
6521 \printfield[titlecase]{journaltitle}%
6522 \setunit{\subtitlepunct}%
6523 \printfield[titlecase]{journalsubtitle}%
6524 }%
6525 }%
6526 }%
6527 {\printtext[journaltitle]{\printfield[titlecase]{shortjournal}}}%
6528 }
6529 \renewbibmacro*{volume+number+eid}{%
6530 \printfield{volume}%
6531 \setunit*{\addnbthinspace}%
6532 \printfield{number}%
6533 \setunit{\addcomma\space}%
6534 \printfield{eid}%
6535 }
6536 \DeclareFieldFormat[article]{volume}{\mkbibbold{#1}}
6537 \DeclareFieldFormat[book]{volume}{\mkbibbold{#1}}
6538 \DeclareFieldFormat[article]{number}{\mkbibparens{#1}}
6539 % \end{macrocode}
6540 %
6541 % We redefine the label date in order the pubstate is used in case no date is
6542 % provided (e.g. for references to appear).
6543 % \begin{macrocode}
6544 \DeclareLabeldate{%
6545 \field{year}%
6546 \field{date}%
6547 \field{eventdate}%
6548 \field{origdate}%
6549 \field{urldate}%
6550 \field{pubstate}%
6551 \literal{nodate}%
6552 }
6553 % \end{macrocode}
6554 %
6555 % We ensure the space between initial(s) and last name is unbreakable.
6556 % \begin{macrocode}
6557 \renewcommand*\bibnamedelimc{\addnbspace}
6558 \renewcommand*\bibnamedelimd{\addnbspace}
6559 % \end{macrocode}
6560 %
6561 % A temporary trick in order to avoid inappropriate capitalization of the
6562 % initial after periods abbreviating journals (see
6563 % \url{https://github.com/plk/biblatex/issues/851}).
6564 % \begin{macrocode}
6565 \DeclareFieldFormat{journaltitle}{\mkbibemph{#1\isdot}}
6566 % \end{macrocode}
6567 %
6568 % \begin{macrocode}
6569 %</bibstyle>
6570 % \end{macrocode}
6571 %
6572 % \begin{macrocode}
6573 %<*citestyle>
6574 % \end{macrocode}
6575 %
6576 % \begin{macrocode}
6577 \ProvidesFile{nwejm.cbx}
6578 [2016/04/01 v 0.1 nwejm citation style (DB)]
6579
6580 \RequireCitationStyle{authoryear-comp}
6581
6582 \ExecuteBibliographyOptions{giveninits,ibidtracker=constrict,pagetracker=page}
6583
6584 % \end{macrocode}
6585 %
6586 % We redefine the ×\blx@mkbibfootnote× macro in order the footnote mark of
6587 % bibliographic citations are in bold, just by inserting a patch of
6588 % ×\@makefnmark×.
6589 % \begin{macrocode}
6590 \renewrobustcmd{\blx@mkbibfootnote}[2]{%
6591 \iftoggle{blx@footnote}%
6592 {\blx@warning{Nested notes}%
6593 \addspace\mkbibparens{#2}}%
6594 {\unspace%
6595 \ifnum\blx@notetype=\tw@%
6596 \expandafter\@firstoftwo%
6597 \else%
6598 \expandafter\@secondoftwo%
6599 \fi%
6600 {\csuse{blx@theendnote#1}{\protecting{\blxmkbibnote{end}{#2}}}}%
6601 {%
6602 \patchcmd\@makefnmark%
6603 {\normalfont}%
6604 {\normalfont\bfseries}%
6605 {}{}%
6606 \csuse{footnote#1}{\protecting{\blxmkbibnote{foot}{#2}}}%
6607 }%
6608 }%
6609 }
6610 % \end{macrocode}
6611 %
6612 % We also redefine the command that is responsible of the \pkg{csquotes}'
6613 % quotations without formal citations (e.g. ×displayquote× versus
6614 % ×displaycquote× environments).
6615 % \begin{macrocode}
6616 \renewcommand*{\mkcitation}[1]{%
6617 \patchcmd\@makefnmark%
6618 {\normalfont}%
6619 {\normalfont\bfseries}%
6620 {}{}%
6621 \footnote{#1}%
6622 }
6623 % \end{macrocode}
6624 %
6625 % Because this cite style is a mix between ×authortitle× and ×authoryear× but is
6626 % mainly based upon ×authoryear× style, we need to define the bib macro
6627 % ×cite:title× defined in ×authortitle× but not in ×authoryear×.
6628 % \begin{macrocode}
6629 \newbibmacro*{cite:title}{%
6630 \printfield[citetitle]{labeltitle}}
6631 % \end{macrocode}
6632 %
6633 % Because we want to replace autocite redundant consecutive citations by
6634 % \enquote{Ibid.}, we need to borrow some code from \pkg{biblatex}'s ×*-ibid* styles.
6635 % \begin{macrocode}
6636 \providecommand*{\mkibid}[1]{#1}
6637 \newbibmacro*{cite:ibid}{%
6638 \printtext[bibhyperref]{\bibstring[\mkibid]{ibidem}}%
6639 }
6640 % \end{macrocode}
6641 %
6642 % We create the ×nwejm:cite× bib macro which emulates a mix between
6643 % ×authortitle× and ×authoryear× styles: it displays the label name (mainly
6644 % authors' names), then the year and finally the title.
6645 % \begin{macrocode}
6646 \newbibmacro*{nwejm:cite}{%
6647 \iffieldundef{shorthand}{%
6648 {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}%
6649 {\usebibmacro{cite:ibid}}%
6650 {%
6651 \ifthenelse{%
6652 \ifnameundef{labelname}%
6653 }{%
6654 \usebibmacro{cite:label}%
6655 \setunit{\addcomma\space}%
6656 }{%
6657 \ifthenelse{%
6658 \iffieldundef{labelyear}%
6659 }{%
6660 \printtext[bibhyperref]{\printnames{labelname}}%
6661 }{%
6662 \printtext[bibhyperref]{\printnames{labelname}%
6663 \setunit{\addcomma\space}%
6664 \usebibmacro{cite:labeldate+extradate}}%
6665 \ifthenelse{%
6666 \iffieldundef{labeltitle}%
6667 }{%
6668 }{%
6669 \setunit{\addcomma\space}%
6670 \usebibmacro{cite:title}%
6671 }%
6672 }%
6673 }%
6674 }%
6675 }%
6676 }{%
6677 \usebibmacro{cite:shorthand}%
6678 }%
6679 }
6680 % \end{macrocode}
6681 %
6682 % We now declare the new cite command ×\nwejmfootcite× (and it multicite
6683 % counterpart) which is identical to ×\footcite× except it uses the ×nwejm:cite×
6684 % bib macro instead of the usual ×cite× one.
6685 % \begin{macrocode}
6686 \DeclareCiteCommand{\nwejmfootcite}[\mkbibfootnote]
6687 {\usebibmacro{prenote}}%
6688 {\usebibmacro{citeindex}%
6689 \usebibmacro{nwejm:cite}}
6690 {%
6691 % \end{macrocode}
6692 %
6693 % Unique (auto)citations with multiple keys are displayed in footnotes but each
6694 % of the corresponding references is on its own line.
6695 % \begin{macrocode}
6696 \ifcurrentbaselanguage{french}{%
6697 \parindent=\parindentFFN%
6698 \addtolength{\parindent}{\widthof{\dotFFN\kernFFN}}%
6699 }{%
6700 \parindent=\footnotemargin%
6701 }%
6702 \multicitedelim\newline\indent%
6703 }
6704 {\usebibmacro{postnote}}%
6705 \DeclareMultiCiteCommand{\nwejmfootcites}[\mkbibfootnote]{\nwejmfootcite}
6706 {%
6707 \ifcurrentbaselanguage{french}{%
6708 \parindent=\parindentFFN%
6709 \addtolength{\parindent}{\widthof{\dotFFN\kernFFN}}%
6710 }{%
6711 \parindent=\footnotemargin%
6712 }%
6713 \multicitedelim\newline\indent%
6714 }
6715 % \end{macrocode}
6716 %
6717 % We now declare the definitions for the ×\autocite× and ×\autocites× commands
6718 % and we apply these definitions.
6719 % \begin{macrocode}
6720 \DeclareAutoCiteCommand{nwejmfootcite}{\nwejmfootcite}{\nwejmfootcites}
6721
6722 \DeclareCiteCommand{\textcite}[\cbx@textcite@init\cbx@textcite]
6723 {\gdef\cbx@savedkeys{}%
6724 \citetrackerfalse%
6725 \pagetrackerfalse%
6726 \DeferNextCitekeyHook%
6727 \usebibmacro{cite:init}}
6728 {\ifthenelse{\iffirstcitekey\AND\value{multicitetotal}>0}
6729 {\protected@xappto\cbx@savedcites{()(\thefield{multipostnote})}%
6730 \global\clearfield{multipostnote}}
6731 {}%
6732 \xappto\cbx@savedkeys{\thefield{entrykey},}%
6733 \iffieldequals{namehash}{\cbx@lasthash}
6734 {}
6735 {\stepcounter{textcitetotal}%
6736 \savefield{namehash}{\cbx@lasthash}}}
6737 {}
6738 {\protected@xappto\cbx@savedcites{%
6739 [\thefield{prenote}][\thefield{postnote}]{\cbx@savedkeys}}}
6740
6741 % \DeclareCiteCommand{\textcite}
6742 % {\boolfalse{cbx:parens}}
6743 % {\usebibmacro{citeindex}%
6744 % \iffirstcitekey
6745 % {\setcounter{textcitetotal}{1}}
6746 % {\stepcounter{textcitetotal}%
6747 % \textcitedelim}%
6748 % \iffootnote{\usebibmacro{nwejm:cite}}{\printtext[bibhyperref]{\usebibmacro{textcite}}}}
6749 % {\ifbool{cbx:parens}
6750 % {\bibcloseparen\global\boolfalse{cbx:parens}}
6751 % {}}
6752 % {\usebibmacro{textcite:postnote}}
6753 % \end{macrocode}
6754 %
6755 % \begin{macrocode}
6756 \ExecuteBibliographyOptions{autocite=nwejmfootcite}
6757 % \end{macrocode}
6758 %
6759 % \begin{macrocode}
6760 %</citestyle>
6761 % \end{macrocode}
6762 %
6763 % \begin{macrocode}
6764 %<*latexmkrc>
6765 % \end{macrocode}
6766 %
6767 % \begin{macrocode}
6768 $pdf_mode = 4;
6769
6770 $biber = 'biber -U %O %B';
6771 $bibtex_use = 1;
6772
6773 $pdflatex="pdflatex -synctex=1 %O %S";
6774 $lualatex="lualatex -synctex=1 %O %S";
6775
6776 add_cus_dep('glo', 'gls', 0, 'makeglossaries');
6777 add_cus_dep('acn', 'acr', 0, 'makeglossaries');
6778 add_cus_dep('slo', 'sls', 0, 'makeglossaries');
6779 sub makeglossaries {
6780 my ($base_name, $path) = fileparse( $_[0] );
6781 pushd $path;
6782 my $return = system "makeglossaries", $base_name;
6783 popd;
6784 return $return;
6785 }
6786
6787 $makeindex = 'texindy -L french -C utf8';
6788
6789 push @generated_exts, 'acn', 'acr', 'alg', 'bbl', 'bcf', 'fls', 'gl*', 'ist',
6790 'run.xml', 'sbl*', 'sl*', 'sym*', 'unq', 'mw' ;
6791
6792 $clean_ext .= ' synctex.gz* run.xml tex.bak out sta bbl bcf fdb_latexmk run tdo
6793 listing *~ lo* xdy vrb ain atfi nav snm thm iny xref db* listing tcbtemp aux
6794 idx ind lof lot out toc acn acr alg glg* glo* gls* ins sbl slg sym ist
6795 run.xml xdy lol fls unq synctex.gz mw *~ aux bcf frm msk nlg nls ntn tcbtemp
6796 thm nav nlo not i dx ind lof lot out toc acn acr alg glg glo gls glg2 gls2
6797 glo2 sbl slg slo sls sym glsdefs ist run.xml xdy lol fls unq synctex.gz *~
6798 listing png tkzfct.gnuplot tkzfct.table mw snm tns sta %R.*.vrb xref 4ct 4tc idv
6799 lg pre tmp *.typo mp epub html' ;
6800
6801 @generated_exts = qw(db* listing tcbtemp aux idx ind lof lot out toc acn acr alg
6802 glg* glo* gls* ins sbl slg sym ist run.xml xdy lol fls unq synctex.gz mw *~ aux
6803 bcf frm msk nlg nls ntn tcbtemp thm nav nlo not i dx ind lof lot out toc acn acr
6804 alg glg glo gls glg2 gls2 glo2 sbl slg slo sls sym glsdefs ist run.xml xdy lol
6805 fls unq synctex.gz *~ listing png tkzfct.gnuplot tkzfct.table mw snm tns sta
6806 vrb xref *.typo mp epub html);
6807 % \end{macrocode}
6808 %
6809 % \begin{macrocode}
6810 %</latexmkrc>
6811 % \end{macrocode}
6812 %
6813 % \chapter{Completion files for TeXstudio and friends}
6814 % Now, the \file{nwejmart.cwl} and \file{nwejm.cwl} files for commands
6815 % completion and syntax checking:
6816 %
6817 % \begin{macrocode}
6818 %<*class-cwl>
6819 % \end{macrocode}
6820 %
6821 % \begin{macrocode}
6822 # mode: nwejm.cls
6823 # denisbitouze, 2026-02-10
6824 #
6825 #include:class-book
6826 #include:latex-document
6827 #include:latex-mathsymbols
6828 #include:tex
6829 #include:xparse
6830 #include:l3keys2e
6831 #include:nag
6832 #include:graphicx
6833 #include:adjustbox
6834 #include:tcolorbox
6835 #include:csquotes
6836 #include:array
6837 #include:booktabs
6838 #include:mathtools
6839 #include:keytheorems
6840 #include:esvect
6841 #include:kpfonts
6842 #include:translations
6843 #include:babel
6844 #include:varioref
6845 #include:subcaption
6846 #include:tocvsec2
6847 #include:etoc
6848 #include:microtype
6849 #include:datetime2
6850 #include:enumitem
6851 #include:biblatex
6852 #include:hyperref
6853 #include:hypcap
6854 #include:bookmark
6855 #include:glossaries
6856 #include:zref-clever
6857 #include:zref-vario
6858 #
6859 # Document class
6860 #keyvals:\documentclass/nwejmart
6861 french
6862 english
6863 ngerman
6864 dutch
6865 #endkeyvals
6866 #
6867 # Cover and title pages
6868 #
6869 # Title, etc.
6870 \title{title}#n
6871 \title[short title]{title}#n
6872 \subtitle{%<subtitle%>}#n*
6873 \subtitle[%<short subtitle%>]{%<subtitle%>}#n*
6874 #
6875 # Author
6876 \author{%<Last name%>, %<First name%>}#n
6877 \author[affiliation={%<affiliation%>}]{%<Last name%>, %<First name%>}#n
6878 \author[affiliation=[%<affiliation's tag%>]{%<affiliation%>}]{%<Last name%>, %<First name%>}#n
6879 \author[affiliationtagged={%<affiliation's tag%>}]{%<Last name%>, %<First name%>}#n
6880 #
6881 # Dates
6882 \dates{received=%<yyyy%>-%<mm%>-%<dd%>,accepted=%<yyyy%>-%<mm%>-%<dd%>,online=%<yyyy%>-%<mm%>-%<dd%>}#n
6883 #
6884 # Math commands
6885 \N#m
6886 \Z#m
6887 \D#m
6888 \Q#m
6889 \R#m
6890 \C#m
6891 \K#m
6892 \arccosh#m
6893 \arcsin#m
6894 \arcsinh#m
6895 \arctan#m
6896 \arctanh#m
6897 \Argch#m
6898 \Argsh#m
6899 \Argth#m
6900 \ch#m
6901 \cotan#m
6902 \curl#m
6903 \dif#m
6904 \Div#m
6905 \grad#m
6906 \E#m
6907 \I#m
6908 \rot#m
6909 \sh#m
6910 \supp#m
6911 \th#m
6912 \norm#m
6913 \lnorm#m
6914 \llnorm#m
6915 \lpnorm#m
6916 \supnorm#m
6917 \abs#m
6918 \prt#m
6919 \brk#m
6920 \brc#m
6921 \leqgeq#m
6922 \lrangle#m
6923 \set{%<set self-contained definition%>}#m
6924 \set{%<set definition%>}[%<such that...%>]#m
6925 \begin{axiom}
6926 \begin{assertions}
6927 \begin{conjecture}
6928 \begin{corollary}
6929 \begin{definition}
6930 \begin{example}
6931 \begin{hypotheses}
6932 \begin{proposition}
6933 \begin{lemma}
6934 \begin{notation}
6935 \begin{proof}
6936 \begin{remark}
6937 \begin{theorem}
6938 #
6939 \begin{axiom*}
6940 \begin{assertions*}
6941 \begin{conjecture*}
6942 \begin{corollary*}
6943 \begin{definition*}
6944 \begin{example*}
6945 \begin{hypotheses*}
6946 \begin{proposition*}
6947 \begin{lemma*}
6948 \begin{notation*}
6949 \begin{proof*}
6950 \begin{remark*}
6951 \begin{theorem*}
6952 #
6953 \end{axiom}
6954 \end{assertions}
6955 \end{conjecture}
6956 \end{corollary}
6957 \end{definition}
6958 \end{example}
6959 \end{hypotheses}
6960 \end{proposition}
6961 \end{lemma}
6962 \end{notation}
6963 \end{proof}
6964 \end{remark}
6965 \end{theorem}
6966 #
6967 \end{axiom*}
6968 \end{assertions*}
6969 \end{conjecture*}
6970 \end{corollary*}
6971 \end{definition*}
6972 \end{example*}
6973 \end{hypotheses*}
6974 \end{proposition*}
6975 \end{lemma*}
6976 \end{notation*}
6977 \end{proof*}
6978 \end{remark*}
6979 \end{theorem*}
6980 #
6981 \begin{description*}
6982 \begin{enumerate*}
6983 \begin{itemize*}
6984 #
6985 \end{description*}
6986 \end{enumerate*}
6987 \end{itemize*}
6988 # Miscellaneous commands
6989 \keywords{%<list of keywords%>}#n
6990 \msc{%<list of MSCs%>}#n
6991 \nwejm#n
6992 \nwejm*#n*
6993 \century{%<(positive or negative) integer%>}#n
6994 \century*{%<(positive or negative) integer%>}#n*
6995 \aside{%<interpolated clause%>}#n
6996 \aside*{%<interpolated clause%>}#n
6997 \acknowledgements{%<acknowledgments%>}#n
6998 \ie#n
6999 \ie*#n*
7000 \Ie#n
7001 \Ie*#n*
7002 \NewPairedDelimiter#n
7003 \articlesetup#n
7004 \BinaryOperators#n
7005 #
7006 \editorinchief{%<Last name%>, %<First name%>}{%<affiliation%>}{%<country%>}{%<email%>}#n
7007 \editor{%<Last name%>, %<First name%>}{%<affiliation%>}{%<country%>}{%<email%>}#n
7008 \fieldseditor{%<Last name%>, %<First name%>}{%<affiliation%>}{%<country%>}{%<email%>}#n
7009 \managingeditor{%<Last name%>, %<First name%>}{%<affiliation%>}{%<country%>}{%<email%>}#n
7010 \classdesigner{%<Last name%>, %<First name%>}{%<affiliation%>}{%<country%>}{%<email%>}#n
7011 \computerengineer{%<Last name%>, %<First name%>}{%<affiliation%>}{%<country%>}{%<email%>}#n
7012 \classmaintainer{%<Last name%>, %<First name%>}{%<affiliation%>}{%<country%>}{%<email%>}#n
7013 \fontdesigner{%<Last name%>, %<First name%>}{%<affiliation%>}{%<country%>}{%<email%>}#n
7014 \graphicdesign{%<Last name%>, %<First name%>}{%<affiliation%>}{%<country%>}{%<email%>}#n
7015 \computerassistance{%<Last name%>, %<First name%>}{%<affiliation%>}{%<country%>}{%<email%>}#n
7016 \secretary{%<Last name%>, %<First name%>}{%<affiliation%>}{%<country%>}{%<email%>}#n
7017 \issuesetup{number=%<positive integer%>}#n
7018 \journalsetup {publisher=%<publisher%>,address={%<address%>},phone=%<phone%>,email=%<email%>,url=%<url%>,issn=%<issn%>,isbn=%<isbn%>}#n
7019 \inputarticle{file}#i
7020 \inputarticle[path]{file}#i
7021 \fontdesignertext{text}#n
7022 \graphicdesigntext{text}#n
7023 % \end{macrocode}
7024 %
7025 % \begin{macrocode}
7026 %</class-cwl>
7027 % \end{macrocode}
7028 %
7029 % \begin{macrocode}
7030 %<*classart-cwl>
7031 % \end{macrocode}
7032 %
7033 % \begin{macrocode}
7034 # mode: nwejm.cls
7035 # denisbitouze, 23.12.2015
7036 #
7037 #include:nwejm
7038 % \end{macrocode}
7039 %
7040 % \begin{macrocode}
7041 %<classart-cwl>
7042 % \end{macrocode}
7043 %
7044 % \begin{macrocode}
7045 \endinput
7046 % \end{macrocode}
7047 %
7048 % \Finale
7049
7050 %%% Local Variables:
7051 %%% mode: doctex
7052 %%% ispell-local-dictionary: "english"
7053 %%% TeX-command-default: "TeX"
7054 %%% TeX-master: t
7055 %%% End: