diff options
author | Karl Berry <karl@freefriends.org> | 2016-04-14 21:55:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-04-14 21:55:04 +0000 |
commit | 21060d422b62cbbd56d5c489a79ea824bcd6e4df (patch) | |
tree | d55ce56abd78a5ae7a0c84ef34fd0a2ec5ea81b4 /Master/texmf-dist/tex/latex | |
parent | 6b756d21397d3b697fc51d31cc87747be1ad76e5 (diff) |
nwejm (14apr16)
git-svn-id: svn://tug.org/texlive/trunk@40526 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
20 files changed, 5200 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/nwejm/images/nwejm-federation-recherche-math-npdc-logo.pdf b/Master/texmf-dist/tex/latex/nwejm/images/nwejm-federation-recherche-math-npdc-logo.pdf Binary files differnew file mode 100644 index 00000000000..ddc8e34dcb3 --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/images/nwejm-federation-recherche-math-npdc-logo.pdf diff --git a/Master/texmf-dist/tex/latex/nwejm/images/nwejm-fields-institute-logo.pdf b/Master/texmf-dist/tex/latex/nwejm/images/nwejm-fields-institute-logo.pdf Binary files differnew file mode 100644 index 00000000000..320d3c67a91 --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/images/nwejm-fields-institute-logo.pdf diff --git a/Master/texmf-dist/tex/latex/nwejm/images/nwejm-kwg-logo.pdf b/Master/texmf-dist/tex/latex/nwejm/images/nwejm-kwg-logo.pdf Binary files differnew file mode 100644 index 00000000000..4f1b9c7e0c5 --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/images/nwejm-kwg-logo.pdf diff --git a/Master/texmf-dist/tex/latex/nwejm/images/nwejm-logo-NB.pdf b/Master/texmf-dist/tex/latex/nwejm/images/nwejm-logo-NB.pdf Binary files differnew file mode 100644 index 00000000000..1e6c7c58732 --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/images/nwejm-logo-NB.pdf diff --git a/Master/texmf-dist/tex/latex/nwejm/images/nwejm-logo.pdf b/Master/texmf-dist/tex/latex/nwejm/images/nwejm-logo.pdf Binary files differnew file mode 100644 index 00000000000..7162865ca50 --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/images/nwejm-logo.pdf diff --git a/Master/texmf-dist/tex/latex/nwejm/images/nwejm-logos-collection.pdf b/Master/texmf-dist/tex/latex/nwejm/images/nwejm-logos-collection.pdf Binary files differnew file mode 100644 index 00000000000..5d8d781164c --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/images/nwejm-logos-collection.pdf diff --git a/Master/texmf-dist/tex/latex/nwejm/images/nwejm-logos-collection.tex b/Master/texmf-dist/tex/latex/nwejm/images/nwejm-logos-collection.tex new file mode 100644 index 00000000000..b32baede8a4 --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/images/nwejm-logos-collection.tex @@ -0,0 +1,41 @@ +\documentclass[tikz]{standalone} +\usepackage{graphicx} +\usepackage{tkz-berge} +\makeatletter +\newcommand*{\grWheelComplete}[2][]{% + \begingroup% + \setkeys[GR]{cl}{#1}% + \grStar[#1]{#2}% + \pgfmathsetcounter{tkz@gr@a}{#2-1}% + \edef\tkz@auxctp{\thetkz@gr@a}% + \foreach \ia in {0,...,\tkz@auxctp}% + {\foreach \ib in {\ia,...,\tkz@auxctp}% + {\Edge(\cmdGR@cl@prefix\ia)(\cmdGR@cl@prefix\ib)}% + }% + \endgroup% +} +\makeatother +\begin{document} +\begin{tikzpicture}[scale=.8] + \GraphInit[vstyle=Shade]% + \SetGraphShadeColor{blue!60!black!30}{blue}{white}% + \tikzset{% + VertexStyle/.style = {% + shape = circle,% + fill = white,% + minimum size = 3.5cm,% + draw% + }% + }% + \SetVertexNoLabel% + \grWheelComplete[RA=9]{6}% + \AssignVertexLabel{a}{% + \includegraphics[height=25mm]{nwejm-fields-institute-logo},% + \includegraphics[height=25mm]{nwejm-federation-recherche-math-npdc-logo},% + \includegraphics[height=10mm]{nwejm-kwg-logo},% + \includegraphics[height=20mm]{nwejm-smf-logo},% + \includegraphics[height=12mm]{nwejm-sml-logo},% + \includegraphics[height=25mm]{nwejm-logo}% + };% +\end{tikzpicture} +\end{document} diff --git a/Master/texmf-dist/tex/latex/nwejm/images/nwejm-smf-logo.pdf b/Master/texmf-dist/tex/latex/nwejm/images/nwejm-smf-logo.pdf Binary files differnew file mode 100644 index 00000000000..3ab1a5ac68e --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/images/nwejm-smf-logo.pdf diff --git a/Master/texmf-dist/tex/latex/nwejm/images/nwejm-sml-logo.pdf b/Master/texmf-dist/tex/latex/nwejm/images/nwejm-sml-logo.pdf Binary files differnew file mode 100644 index 00000000000..3bd23456f80 --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/images/nwejm-sml-logo.pdf diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejm-dutch.trsl b/Master/texmf-dist/tex/latex/nwejm/nwejm-dutch.trsl new file mode 100644 index 00000000000..2c3fe6c3d10 --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/nwejm-dutch.trsl @@ -0,0 +1,39 @@ +\ProvideDictionaryFor{Dutch}{nwejm} +\ProvideDictTranslation{theorem}{stelling} +\ProvideDictTranslation{corollary}{gevolg} +\ProvideDictTranslation{conjecture}{vermoeden} +\ProvideDictTranslation{remark}{opmerking} +\ProvideDictTranslation{axiom}{axioma} +\ProvideDictTranslation{definition}{definitie} +\ProvideDictTranslation{example}{voorbeeld} +\ProvideDictTranslation{lemma}{lemma} +\ProvideDictTranslation{notation}{notatie} +\ProvideDictTranslation{proposition}{eigenschap} +\ProvideDictTranslation{proof}{bewijs} +\ProvideDictTranslation{plural-theorem}{stellingen} +\ProvideDictTranslation{plural-corollary}{gevolgen} +\ProvideDictTranslation{plural-conjecture}{vermoedens} +\ProvideDictTranslation{plural-remark}{opmerkingen} +\ProvideDictTranslation{plural-axiom}{axioma's} +\ProvideDictTranslation{plural-definition}{definities} +\ProvideDictTranslation{plural-example}{voorbeelden} +\ProvideDictTranslation{plural-lemma}{lemma's} +\ProvideDictTranslation{plural-notation}{notaties} +\ProvideDictTranslation{plural-proposition}{eigenschappen} +\ProvideDictTranslation{plural-proof}{bewijzen} +\ProvideDictTranslation{volume-abbreviated}{deel} +\ProvideDictTranslation{plural-keyword}{trefwoorden} +\ProvideDictTranslation{received}{ontvangen} +\ProvideDictTranslation{accepted}{aanvaard} +\ProvideDictTranslation{online}{online} +\ProvideDictTranslation{hypothesis}{hypothese} +\ProvideDictTranslation{plural-hypothesis}{hypotheses} +\ProvideDictTranslation{assertion}{aanname} +\ProvideDictTranslation{plural-assertion}{aannames} +\ProvideDictTranslation{century}{eeuw} +\ProvideDictTranslation{before-christ}{v.Chr} +\ProvideDictTranslation{Acknowledgments}{Dankwoord} +\ProvideDictTranslation{idest}{dat~wil~zeggen} +\ProvideDictTranslation{ie}{d.w.z} +\ProvideDictTranslation{Idest}{Dat~wil~zeggen} +\ProvideDictTranslation{Ie}{D.w.z} diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejm-english.trsl b/Master/texmf-dist/tex/latex/nwejm/nwejm-english.trsl new file mode 100644 index 00000000000..56300b39dd8 --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/nwejm-english.trsl @@ -0,0 +1,39 @@ +\ProvideDictionaryFor{English}{nwejm} +\ProvideDictTranslation{theorem}{theorem} +\ProvideDictTranslation{corollary}{corollary} +\ProvideDictTranslation{conjecture}{conjecture} +\ProvideDictTranslation{remark}{remark} +\ProvideDictTranslation{axiom}{axiom} +\ProvideDictTranslation{definition}{definition} +\ProvideDictTranslation{example}{example} +\ProvideDictTranslation{lemma}{lemma} +\ProvideDictTranslation{notation}{notation} +\ProvideDictTranslation{proposition}{proposition} +\ProvideDictTranslation{proof}{proof} +\ProvideDictTranslation{plural-theorem}{theorems} +\ProvideDictTranslation{plural-corollary}{corollaries} +\ProvideDictTranslation{plural-conjecture}{conjectures} +\ProvideDictTranslation{plural-remark}{remarks} +\ProvideDictTranslation{plural-axiom}{axioms} +\ProvideDictTranslation{plural-definition}{definitions} +\ProvideDictTranslation{plural-example}{examples} +\ProvideDictTranslation{plural-lemma}{lemmas} +\ProvideDictTranslation{plural-notation}{notations} +\ProvideDictTranslation{plural-proposition}{propositions} +\ProvideDictTranslation{plural-proof}{proofs} +\ProvideDictTranslation{volume-abbreviated}{vol.} +\ProvideDictTranslation{plural-keyword}{keywords} +\ProvideDictTranslation{received}{received} +\ProvideDictTranslation{accepted}{accepted} +\ProvideDictTranslation{online}{online} +\ProvideDictTranslation{hypothesis}{hypothesis} +\ProvideDictTranslation{plural-hypothesis}{hypotheses} +\ProvideDictTranslation{assertion}{assertion} +\ProvideDictTranslation{plural-assertion}{assertions} +\ProvideDictTranslation{century}{century} +\ProvideDictTranslation{before-christ}{BC} +\ProvideDictTranslation{Acknowledgments}{Acknowledgments} +\ProvideDictTranslation{idest}{id~est} +\ProvideDictTranslation{ie}{i.e} +\ProvideDictTranslation{Idest}{Id~est} +\ProvideDictTranslation{Ie}{I.e} diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejm-french.trsl b/Master/texmf-dist/tex/latex/nwejm/nwejm-french.trsl new file mode 100644 index 00000000000..26e7d8a1371 --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/nwejm-french.trsl @@ -0,0 +1,39 @@ +\ProvideDictionaryFor{French}{nwejm} +\ProvideDictTranslation{theorem}{th\'{e}or\`{e}me} +\ProvideDictTranslation{corollary}{corollaire} +\ProvideDictTranslation{conjecture}{conjecture} +\ProvideDictTranslation{remark}{remarque} +\ProvideDictTranslation{axiom}{axiome} +\ProvideDictTranslation{definition}{d\'{e}finition} +\ProvideDictTranslation{example}{exemple} +\ProvideDictTranslation{lemma}{lemme} +\ProvideDictTranslation{notation}{notation} +\ProvideDictTranslation{proposition}{proposition} +\ProvideDictTranslation{proof}{preuve} +\ProvideDictTranslation{plural-theorem}{th\'{e}or\`{e}mes} +\ProvideDictTranslation{plural-corollary}{corollaires} +\ProvideDictTranslation{plural-conjecture}{conjectures} +\ProvideDictTranslation{plural-remark}{remarques} +\ProvideDictTranslation{plural-axiom}{axiomes} +\ProvideDictTranslation{plural-definition}{d\'{e}finitions} +\ProvideDictTranslation{plural-example}{exemples} +\ProvideDictTranslation{plural-lemma}{lemmes} +\ProvideDictTranslation{plural-notation}{notations} +\ProvideDictTranslation{plural-proposition}{propositions} +\ProvideDictTranslation{plural-proof}{preuves} +\ProvideDictTranslation{volume-abbreviated}{vol.} +\ProvideDictTranslation{plural-keyword}{mots-cl\'{e}s} +\ProvideDictTranslation{received}{re\c cu} +\ProvideDictTranslation{accepted}{accept\'{e}} +\ProvideDictTranslation{online}{en\space ligne} +\ProvideDictTranslation{hypothesis}{hypoth\`{e}se} +\ProvideDictTranslation{plural-hypothesis}{hypoth\`{e}ses} +\ProvideDictTranslation{assertion}{assertion} +\ProvideDictTranslation{plural-assertion}{assertions} +\ProvideDictTranslation{century}{si\`{e}cle} +\ProvideDictTranslation{before-christ}{av.~J.-C} +\ProvideDictTranslation{Acknowledgments}{Remerciements} +\ProvideDictTranslation{idest}{c'est-\`{a}-dire} +\ProvideDictTranslation{ie}{c.-\`{a}-d} +\ProvideDictTranslation{Idest}{C'est-\`{a}-dire} +\ProvideDictTranslation{Ie}{C.-\`{a}-d} diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejm-german.trsl b/Master/texmf-dist/tex/latex/nwejm/nwejm-german.trsl new file mode 100644 index 00000000000..f22f5f9ad01 --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/nwejm-german.trsl @@ -0,0 +1,39 @@ +\ProvideDictionaryFor{German}{nwejm} +\ProvideDictTranslation{theorem}{Theorem} +\ProvideDictTranslation{corollary}{Korollar} +\ProvideDictTranslation{conjecture}{Vermutung} +\ProvideDictTranslation{remark}{Bemerkung} +\ProvideDictTranslation{axiom}{Axiom} +\ProvideDictTranslation{definition}{Definition} +\ProvideDictTranslation{example}{Beispiel} +\ProvideDictTranslation{lemma}{Lemma} +\ProvideDictTranslation{notation}{Bezeichnung} +\ProvideDictTranslation{proposition}{Proposition} +\ProvideDictTranslation{proof}{Beweis} +\ProvideDictTranslation{plural-theorem}{S^^c3^^a4tze} +\ProvideDictTranslation{plural-corollary}{Korollare} +\ProvideDictTranslation{plural-conjecture}{Vermutungen} +\ProvideDictTranslation{plural-remark}{Bemerkungen} +\ProvideDictTranslation{plural-axiom}{Axiome} +\ProvideDictTranslation{plural-definition}{Definitionen} +\ProvideDictTranslation{plural-example}{Beispiele} +\ProvideDictTranslation{plural-lemma}{Lemmata} +\ProvideDictTranslation{plural-notation}{Bezeichnungen} +\ProvideDictTranslation{plural-proposition}{Propositionen} +\ProvideDictTranslation{proofs}{Beweise} +\ProvideDictTranslation{volume-abbreviated}{Bd} +\ProvideDictTranslation{plural-keyword}{Schl^^c3^^bcsselbegriffe} +\ProvideDictTranslation{received}{empfangen} +\ProvideDictTranslation{accepted}{angenommen} +\ProvideDictTranslation{online}{online} +\ProvideDictTranslation{hypothesis}{Hypothese} +\ProvideDictTranslation{plural-hypothesis}{Hypothesen} +\ProvideDictTranslation{assertion}{Behauptung} +\ProvideDictTranslation{plural-assertion}{Behauptungen} +\ProvideDictTranslation{century}{Jhdt} +\ProvideDictTranslation{before-christ}{v.~Chr} +\ProvideDictTranslation{Acknowledgments}{Best^^c3^^a4tigungen} +\ProvideDictTranslation{idest}{das~hei^^c3^^9ft} +\ProvideDictTranslation{ie}{d.~h} +\ProvideDictTranslation{Idest}{Das~hei^^c3^^9ft} +\ProvideDictTranslation{Ie}{D~h} diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejm.bbx b/Master/texmf-dist/tex/latex/nwejm/nwejm.bbx new file mode 100644 index 00000000000..7a7eebff3ce --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/nwejm.bbx @@ -0,0 +1,116 @@ +%% +%% This is file `nwejm.bbx', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% nwejm.dtx (with options: `bibstyle') +%% -------:| ----------------------------------------------------------------- +%% nwejm:| Class for the journal "North-Western European Journal of Mathematics" +%% Author:| Denis Bitouze +%% E-mail:| denis.bitouze@lmpa.univ-littoral.fr +%% License:| Released under the LaTeX Project Public License v1.3c or later +%% See:| http://www.latex-project.org/lppl.txt +%% +\ProvidesFile{nwejm.bbx} +[2016/04/01 v 0.1 nwejm bibliographic style (DB)] + +\RequireBibliographyStyle{authoryear} + +\DeclareNameFormat{giveninits-last}{% + \nameparts{#1} + \usebibmacro{name:given-family} + {\namepartfamily} + {\namepartgiveni} + {\namepartprefix} + {\namepartsuffix}% + \usebibmacro{name:andothers}% +} +\renewbibmacro*{doi+eprint+url}{% + \iftoggle{bbx:doi}% + {% + \iffieldundef{doi}% + {}% + {% + \begingroup% + \edef\URLorDOI{% + \detokenize{http://dx.doi.org/}% + \thefield{doi}% + }% + \iffieldequals{url}{\URLorDOI}% + {\endgroup}% + {% + \endgroup% + \printfield{doi}% + }% + }% + }% + {}% + \newunit\newblock% + \iftoggle{bbx:eprint}% + {\usebibmacro{eprint}}% + {}% + \newunit\newblock% + \iftoggle{bbx:url}% + {\usebibmacro{url+urldate}}% + {}% +} +\renewbibmacro{in:}{% + \ifentrytype{article}{}{\printtext{\bibstring{in}\intitlepunct}}% +} +\renewbibmacro*{journal}{% + \iffieldundef{shortjournal}% + {% + \iffieldundef{journaltitle}% + {}% + {% + \printtext[journaltitle]% + {% + \printfield[titlecase]{journaltitle}% + \setunit{\subtitlepunct}% + \printfield[titlecase]{journalsubtitle}% + }% + }% + }% + {\printtext[journaltitle]{\printfield[titlecase]{shortjournal}}}% +} +\renewbibmacro*{volume+number+eid}{% + \printfield{volume}% + \setunit*{\addnbthinspace}% + \printfield{number}% + \setunit{\addcomma\space}% + \printfield{eid}% +} +\DeclareFieldFormat[article]{volume}{\mkbibbold{#1}} +\DeclareFieldFormat[book]{volume}{\mkbibbold{#1}} +\DeclareFieldFormat[article]{number}{\mkbibparens{#1}} +\DeclareLabeldate{% + \field{date}% + \field{eventdate}% + \field{origdate}% + \field{urldate}% + \field{pubstate}% + \literal{nodate}% +} +\renewcommand*\bibnamedelimc{\addnbspace} +\renewcommand*\bibnamedelimd{\addnbspace} +%% +%% Copyright (C) 2015, 2016 by Denis Bitouze <denis.bitouze@lmpa.univ-littoral.fr> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License (LPPL), either +%% version 1.3c of this license or (at your option) any later +%% version. The latest version of this license is in the file: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% This work is "maintained" (as per LPPL maintenance status) by +%% Denis Bitouze. +%% +%% This work consists of the file nwejm.dtx and a Makefile. +%% Running "make" generates the derived files README, nwejm.pdf and nwejm.cls. +%% Running "make inst" installs the files in the user's TeX tree. +%% Running "make install" installs the files in the local TeX tree. +%% +%% +%% End of file `nwejm.bbx'. diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejm.cbx b/Master/texmf-dist/tex/latex/nwejm/nwejm.cbx new file mode 100644 index 00000000000..3382d2d0112 --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/nwejm.cbx @@ -0,0 +1,140 @@ +%% +%% This is file `nwejm.cbx', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% nwejm.dtx (with options: `citestyle') +%% -------:| ----------------------------------------------------------------- +%% nwejm:| Class for the journal "North-Western European Journal of Mathematics" +%% Author:| Denis Bitouze +%% E-mail:| denis.bitouze@lmpa.univ-littoral.fr +%% License:| Released under the LaTeX Project Public License v1.3c or later +%% See:| http://www.latex-project.org/lppl.txt +%% +\ProvidesFile{nwejm.cbx} +[2016/04/01 v 0.1 nwejm citation style (DB)] + +\RequireCitationStyle{authoryear} + +\ExecuteBibliographyOptions{giveninits,ibidtracker=constrict} + +\renewrobustcmd{\blx@mkbibfootnote}[2]{% + \iftoggle{blx@footnote}% + {\blx@warning{Nested notes}% + \addspace\mkbibparens{#2}}% + {\unspace% + \ifnum\blx@notetype=\tw@% + \expandafter\@firstoftwo% + \else% + \expandafter\@secondoftwo% + \fi% + {\csuse{blx@theendnote#1}{\protecting{\blxmkbibnote{end}{#2}}}}% + {% + \patchcmd\@makefnmark% + {\normalfont}% + {\normalfont\bfseries}% + {}{}% + \csuse{footnote#1}{\protecting{\blxmkbibnote{foot}{#2}}}% + }% + }% +} +\renewcommand*{\mkcitation}[1]{% + \patchcmd\@makefnmark% + {\normalfont}% + {\normalfont\bfseries}% + {}{}% + \footnote{#1}% +} +\newbibmacro*{cite:title}{% + \printtext[bibhyperref]{% + \printfield[citetitle]{labeltitle}}} +\providecommand*{\mkibid}[1]{#1} +\newbibmacro*{cite:ibid}{% + \printtext[bibhyperref]{\bibstring[\mkibid]{ibidem}}% +} +\newbibmacro*{nwejm:cite}{% + \iffieldundef{shorthand}{% + {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}% + {\usebibmacro{cite:ibid}}% + {% + \ifthenelse{% + \ifnameundef{labelname}% + }{% + \usebibmacro{cite:label}% + \setunit{\addcomma\space}% + }{% + \printnames{labelname}% + \ifthenelse{% + \iffieldundef{labelyear}% + }{% + }{% + \setunit{\addcomma\space}% + \usebibmacro{cite:labelyear+extrayear}% + \ifthenelse{% + \iffieldundef{labeltitle}% + }{% + }{% + \setunit{\addcomma\space}% + \usebibmacro{cite:title}% + }% + }% + }% + }% + }% + }{% + \usebibmacro{cite:shorthand}% + }% +} +\DeclareCiteCommand{\nwejmfootcite}[\mkbibfootnote] +{\usebibmacro{prenote}}% +{\usebibmacro{citeindex}% + \usebibmacro{nwejm:cite}} +{% + \ifcurrentbaselanguage{french}{% + \parindent=\parindentFFN% + \addtolength{\parindent}{\widthof{\dotFFN\kernFFN}}% + }{% + \parindent=\footnotemargin% + }% + \multicitedelim\newline\indent% +} +{\usebibmacro{postnote}}% +\DeclareMultiCiteCommand{\nwejmfootcites}[\mkbibfootnote]{\nwejmfootcite} +{\addsemicolon\space} +\DeclareAutoCiteCommand{nwejmfootcite}{\nwejmfootcite}{\nwejmfootcites} + +\DeclareCiteCommand{\textcite} + {\boolfalse{cbx:parens}} + {\usebibmacro{citeindex}% + \iffirstcitekey + {\setcounter{textcitetotal}{1}} + {\stepcounter{textcitetotal}% + \textcitedelim}% + \iffootnote{\usebibmacro{nwejm:cite}}{\usebibmacro{textcite}}} + {\ifbool{cbx:parens} + {\bibcloseparen\global\boolfalse{cbx:parens}} + {}} + {\usebibmacro{textcite:postnote}} + +\ExecuteBibliographyOptions{autocite=nwejmfootcite} +%% +%% Copyright (C) 2015, 2016 by Denis Bitouze <denis.bitouze@lmpa.univ-littoral.fr> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License (LPPL), either +%% version 1.3c of this license or (at your option) any later +%% version. The latest version of this license is in the file: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% This work is "maintained" (as per LPPL maintenance status) by +%% Denis Bitouze. +%% +%% This work consists of the file nwejm.dtx and a Makefile. +%% Running "make" generates the derived files README, nwejm.pdf and nwejm.cls. +%% Running "make inst" installs the files in the user's TeX tree. +%% Running "make install" installs the files in the local TeX tree. +%% +%% +%% End of file `nwejm.cbx'. diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejm.cfg b/Master/texmf-dist/tex/latex/nwejm/nwejm.cfg new file mode 100644 index 00000000000..693a375a84e --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/nwejm.cfg @@ -0,0 +1,94 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Journal data +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\journalsetup{% + publisher = \nwejm, + address = UFR de Math\'{e}matiques -- B\^atiment M2 -- Bureau 10\newline + Universit\'{e} Lille 1 -- Cit\'{e} Scientifique\newline + 59655 Villeneuve d'Ascq, + phone = +33 (0)3 20 43 42 33, + email = aurore.smets@univ-lille1.fr, + url = http://math.univ-lille1.fr/~nwejm/, + issn = +} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Editor in chief +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\editorinchief{Nicaise, Serge}{Universit\'{e} de Valenciennes et du Hainaut Cambr\'{e}sis +}{France}{serge.nicaise@univ-valenciennes.fr} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Fields editor +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\fieldseditor{Craig, Walter}{McMaster University}{Canada}{craig@math.mcmaster.ca} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Managing editor +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\managingeditor{Wicker, Nicolas}{Universit\'{e} Lille 1}{France}{Nicolas.Wicker@math.univ-lille1.fr} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Editors +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\editor{Apel, Thomas}{Universit{\"a}t der Bundeswehr M^^c3^^bcnchen}{Germany}{thomas.apel@unibw.de} +\editor{Beauchard, Karine}{\textsc{ens} Rennes}{France}{Karine.Beauchard@math.polytechnique.fr} +\editor{von Below, Joachim}{Universit\'{e} du Littoral C\^{o}te d'Opale}{France}{vonbelow@lmpa.univ-littoral.fr} +\editor{Biernacki, Christophe}{Universit\'{e} de Lille 1}{France}{christophe.biernacki@math.univ-lille1.fr} +\editor{Chainais-Hillairet, Claire}{Universit\'{e} de Lille 1}{France}{claire.chainais@math.univ-lille1.fr} +\editor{Dauge, Monique}{Universit\'{e} de Rennes I}{France}{monique.dauge@univ-rennes1.fr} +\editor{David, Sinnou}{Universit\'{e} Paris VI}{France}{david@math.jussieu.fr} +\editor{Davydov, Youri}{Universit\'{e} de Lille 1}{France}{youri.davydov@math.univ-lille1.fr} +\editor{D\`{e}bes, Pierre}{Universit\'{e} de Lille 1}{France}{pierre.debes@math.univ-lille1.fr} +\editor{Demailly, Jean-Pierre}{Universit\'{e} de Grenoble 1}{France}{jean-pierre.demailly@ujf-grenoble.fr} +\editor{Droniou, J\'{e}r\^{o}me}{Monash University}{Australia}{jerome.droniou@monash.edu} +\editor{El Kacimi, Aziz}{Universit\'{e} de Valenciennes et du Hainaut Cambr\'{e}sis}{France}{aziz.elkacimi@univ-valenciennes.fr} +\editor{Fleischmann, Peter}{University of Kent}{United Kingdom}{p.fleischmann@kent.ac.uk} +\editor{Fresse, Beno^^c3^^aet}{Universit\'{e} de Lille 1}{France}{benoit.fresse@math.univ-lille1.fr} +\editor{Fricain, Emmanuel}{Universit\'{e} de Lille 1}{France}{emmanuel.fricain@math.univ-lille1.fr} +\editor{Gaffney, Eamonn}{Oxford University}{United Kingdom}{gaffney@maths.ox.ac.uk} +\editor{Gloria, Antoine}{Universit\'{e} Libre de Bruxelles}{Belgium}{antoine.gloria@ulb.ac.be} +\editor{Godefroy, Gilles}{Universit\'{e} Paris VI}{France}{godefroy@math.jussieu.fr} +\editor{Grosse-Erdmann, Karl}{Universit\'{e} de Mons}{Belgium}{kg.grosse-erdmann@umons.ac.be} +\editor{Guo, Bao-Zhu}{Academy of Mathematics and Systems Science, Academia Sinica, Beijing}{China}{bzguo@iss.ac.cn} +\editor{Lambrechts, Pascal}{Universit\'{e} Catholique de Louvain}{Belgium}{pascal.lambrechts@uclouvain.be} +\editor{Lef\`{e}vre, Pascal}{Universit\'{e} d'Artois}{France}{pascal.lefevre@univ-artois.fr} +\editor{Leroy, Andr\'{e}}{Universit\'{e} d'Artois}{France}{andreleroy55@gmail.com} +\editor{Loeb, Jean-Jacques}{Universit\'{e} d'Angers}{France}{jean-jacques.loeb@univ-angers.fr} +\editor{Luca, Florian}{University of Witwatersrand}{South-Africa}{florian.luca@wits.ac.za} +\editor{Matom{\"a}ki Kaisa}{University of Turku}{Finland}{ksmato@utu.fi} +\editor{Michaux, Christian}{Universit\'{e} de Mons}{Belgium}{christian.michaux@umons.ac.be} +\editor{Moerdijk, Ieke}{Radboud University Nijmegen}{Netherlands}{i.moerdijk@math.ru.nl} +\editor{Murua, Alejandro}{Universit\'{e} de Montr\'{e}al}{Canada}{murua@dms.umontreal.ca} +\editor{Nakamura, Hiroaki}{Osaka University}{Japan}{nakamura@math.sci.osaka-u.ac.jp} +\editor{van Neerven, Jan}{Delft University of Technology}{Netherlands}{j.m.a.m.vanneerven@tudelft.nl} +\editor{Nicaise, Johannes}{Katholieke Universiteit Leuven}{Belgium}{Johannes.Nicaise@wis.kuleuven.be} +\editor{Norvaisa, Rimas}{Vilnius University}{Lituany}{rimas.norvaisa@mii.vu.lt} +\editor{Peccati, Giovanni}{University of Luxembourg}{Luxembourg}{giovanni.peccati@gmail.com} +\editor{Pirashvili, Teimuraz}{University of Leicester}{United Kingdom}{tp59@le.ac.uk} +\editor{Ramar\'{e}, Olivier}{Universit\'{e} de Lille 1}{France}{olivier.ramare@math.univ-lille1.fr} +\editor{Roelly, Sylvie}{University of Potsdam}{Germany}{roelly@math.uni-potsdam.de} +\editor{Stubbe, Isar}{Universit\'{e} du Littoral C\^{o}te d'Opale}{France}{isar.stubbe@lmpa.univ-littoral.fr} +\editor{Suquet, Charles}{Universit\'{e} de Lille 1}{France}{charles.suquet@math.univ-lille1.fr} +\editor{Tazzioli, Rossana}{Universit\'{e} de Lille 1}{France}{rossana.tazzioli@math.univ-lille1.fr} +\editor{Tignol, Jean-Pierre}{Universit\'{e} Catholique de Louvain}{Belgium}{jean-pierre.tignol@uclouvain.be} +\editor{Wu, Jie}{Institut Elie Cartan}{France}{jie.wu@univ-lorraine.fr} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Secretary +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\secretary{Smets, Aurore}{}{}{} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% LaTeX class designer (and maintainer(s)) +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\classdesigner{Bitouz\'{e}, Denis}{Universit\'{e} du Littoral C\^{o}te d'Opale}{France}{denis.bitouze@lmpa.univ-littoral.fr} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Computer engineer +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\computerengineer{Huart, S\'{e}bastien}{Universit\'{e} de Lille 1}{France}{} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Font designer text +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\fontdesignertext{We make use of the set of fonts \href{http://ctan.org/pkg/kpfonts}{Kp-Fonts}, designed by Christophe Caignaert.} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Printer text +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\printingservice{Derycke, Jean-Jacques}{Universit\'{e} de Lille 1}{France}{} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Authors instructions +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejm.cls b/Master/texmf-dist/tex/latex/nwejm/nwejm.cls new file mode 100644 index 00000000000..2c6687a3e62 --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/nwejm.cls @@ -0,0 +1,2640 @@ +%% +%% This is file `nwejm.cls', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% nwejm.dtx (with options: `class') +%% -------:| ----------------------------------------------------------------- +%% nwejm:| Class for the journal "North-Western European Journal of Mathematics" +%% Author:| Denis Bitouze +%% E-mail:| denis.bitouze@lmpa.univ-littoral.fr +%% License:| Released under the LaTeX Project Public License v1.3c or later +%% See:| http://www.latex-project.org/lppl.txt +%% +\RequirePackage{xparse} +\RequirePackage{l3keys2e} +\IfFileExists{l3sort.sty}{ + \RequirePackage{l3sort} +}{ +} +\RequirePackage{etoolbox} +\NeedsTeXFormat{LaTeX2e}[1999/12/01] +\ProvidesExplClass + {nwejm} + {2015/09/30} + {1.00} + { + Class for the journal "North-Western European Journal of Mathematics". + } +\ExplSyntaxOn +\msg_new:nnnn{nwejm}{Issue~number~needed}{Option~`#1'~needed!} +{Please~specify~`#1=<number>', ~otherwise~`<number>'~will~be~set~to + ~`\int_use:N\c__nwejm_first_issue_number_int'.}% +\msg_new:nnnn{nwejmart}{Unknown~choice}{Choice~`#3'~invalid!} +{Please~specify~#1=#2.}% +\msg_new:nnn{nwejmart}{Unknown~tag}{There~ isn't~ any~ affiliation~ tagged~ + with~ `#1'.~ This~ one~ will~ be~ ignored.}% +\msg_new:nnn{nwejmart}{Unknown~language}{The~ option~ `#1'~ you~ passed~ isn't~ + a~ valid~ language~ name~ (only~ `english',~ `french',~ `ngerman',~ `german',~ + `dutch'~ are~ accepted).~ `english'~ will~ be~ used~ instead.}% +\msg_new:nnn{nwejmart}{No~keyword}{You~ haven't~ specify~ any~ keyword~ for~ + this~ article!}% +\msg_new:nnn{nwejmart}{No~MSC}{You~ haven't~ specify~ any~ Mathematical~ + Subject~ Classification~ (MSC)~ for~ this~ article!}% +\msg_new:nnn{nwejmart}{No~abstract}{You~ haven't~ specify~ any~ abstract~ for~ + this~ article!}% +\msg_new:nnn{nwejmart}{Starred~AMS~environments}{The~ starred~AMS~environment~ + `#1*'~should~ be~ avoided.~ It~ will ~be ~ replaced ~ by its~ unstarred~ counterpart~ `#1'.}% +\msg_new:nnn{ + nwejm +}{Command~restricted~to~document~body~used~in~preamble}{The~command~#1 + can~be~used~only~in~document~body~and~not~in~preamble!}% +\msg_new:nnn{nwejmart}{Article~setup~not~consistent}{The~ article~ setup~ + concerning~ the~ option~ `#1'~ has~ changed~ after~ its~ 1st~ use.~ Please~ + use~ \articlesetup~ command~ just~ once,~ just~ after~ the~ beginning~ of~ + the~ document.}% +\msg_new:nnn{nwejmart}{Wrong~paired~delimiter's~size~parameter}{The~ + size~parameter~specified~ (`#1')~is~ not~ allowed:~ only~ `0',~`1'~(or~ + `\string\big'),~`2'~(or~ `\string\Big'),~`3'~(or~ `\string\big'g)~and~`4'~(or~ + `\string\Bigg')~ are ~ allowed. ~ It~ will~ be~ ignored.}% +\dim_const:Nn \c__nwejm_pagegrid_dim { 1mm} +\bool_new:N \g__nwejm_for_authors_bool +\bool_new:N \g__nwejm_cover_bool +\bool_new:N \g__nwejm_coverpage_bool +\bool_new:N \g__nwejm_inside_pages_bool +\keys_define:nn { nwejm } +{ + pagegrid .dim_gset:N = \g__nwejm_pagegrid_dim, + pagegrid .default:n = {\c__nwejm_pagegrid_dim}, + forauthors .code:n = {% + \bool_gset_true:N \g__nwejm_for_authors_bool% + \bool_gset_true:N \g__nwejm_inside_pages_bool% + },% + forprinter .bool_gset:N = \g__nwejm_for_printer_bool, + output .choice:, + output / frontcover .code:n = {% + \bool_gset_true:N \g__nwejm_for_printer_bool% + \bool_gset_true:N \g__nwejm_cover_bool% + },% + output / insidepages .code:n = {% + \bool_gset_true:N \g__nwejm_for_printer_bool% + \bool_gset_true:N \g__nwejm_inside_pages_bool% + },% + output / backcover .code:n = {% + \bool_gset_true:N \g__nwejm_for_printer_bool% + },% + output / web .code:n = {% + },% +}% +\keys_define:nn { nwejm } +{ + 10pt .code:n = {% + \PassOptionsToClass{10pt}{book} + },% + 11pt .code:n = {% + \PassOptionsToClass{11pt}{book} + },% + 12pt .code:n = {% + \PassOptionsToClass{12pt}{book} + },% +}% +\ProcessKeysOptions { nwejm } +\LoadClass { book } +\PassOptionsToPackage{export}{adjustbox}% +\PassOptionsToPackage{fleqn}{mathtools}% +\PassOptionsToPackage{french,ngerman,dutch,english,noabbrev}{cleveref} +\AtBeginDocument{ + \LoadDictionaryFor{french}{nwejm} + \LoadDictionaryFor{english}{nwejm} + \LoadDictionaryFor{dutch}{nwejm} + \LoadDictionaryFor{german}{nwejm} +} +\PassOptionsToPackage{french,ngerman,dutch,english}{babel} +\PassOptionsToPackage{french,ngerman,dutch,english}{varioref} +\RequirePackage{silence} +\WarningFilter[nwejm]{kpfonts}{With 'easyscsl' option, don't fit together} +\WarningFilter[nwejm]{etex}{Extended allocation already in use} +\WarningFilter[nwejm]{etoc}{package tocvsec2 detected and its modification of} +\ActivateWarningFilters[nwejm] +\RequirePackage[l2tabu,orthodox]{nag} +\pdftex_if_engine:TF + { + \RequirePackage[T1]{fontenc} + \RequirePackage[utf8]{inputenc} + }{ + \RequirePackage{fontspec} + } +\RequirePackage[group=false,subpreambles,sort]{standalone}% +\RequirePackage[pagestyles]{titlesec}% +\RequirePackage{graphicx}% +\RequirePackage{import}% +\bool_if:nT { \g__nwejm_for_authors_bool } { + \RequirePackage{draftwatermark}[2006/06/30]% +} +\RequirePackage{adjustbox}% +\RequirePackage{zref-totpages} +\RequirePackage{zref-xr}% +\RequirePackage[multiple]{footmisc}% +\RequirePackage[svgnames]{xcolor}% +\RequirePackage{xspace}% +\RequirePackage[autostyle]{csquotes}% +\RequirePackage{array} +\RequirePackage{booktabs} +\RequirePackage{mathtools} +\RequirePackage[thmmarks,amsmath]{ntheorem} +\RequirePackage{mathrsfs} +\RequirePackage{esvect} +\RequirePackage[easyscsl,noDcommand]{kpfonts} +\RequirePackage{geometry} +\RequirePackage{translations}% +\RequirePackage{fmtcount}% +\RequirePackage{babel}% +\RequirePackage{varioref} +\RequirePackage{tocvsec2} +\RequirePackage{etoc}% +\RequirePackage[babel=true]{microtype}% +\RequirePackage[useregional]{datetime2}% +\RequirePackage[inline]{enumitem}% +\RequirePackage{environ} +\RequirePackage[foreground]{pagegrid}% +\RequirePackage{datatool}% +\RequirePackage{placeins}% +\RequirePackage{footnote}% +\RequirePackage[hyperfootnotes=false,pdfencoding=unicode]{hyperref}% +\AtBeginDocument{% + \hypersetup{hidelinks,hypertexnames=false}% +}% +\RequirePackage[all]{hypcap} +\RequirePackage[numbered]{bookmark}% +\RequirePackage[nowarn]{glossaries}% +\RequirePackage{cleveref}% +\RequirePackage{autonum} +\RequirePackage[backend=biber,style=nwejm]{biblatex}% +\ExecuteBibliographyOptions{defernumbers=true,dashed=false,uniquename=init,backref,safeinputenc} +\makeglossaries +\setglossarystyle{indexhypergroup} +\setacronymstyle{long-sc-short} +\glsdisablehyper +\int_new:N \g__nwejm_articles_int +\clist_new:N \g__nwejm_counters_to_be_reset_clist +\int_const:Nn \c__nwejm_first_issue_number_int { 1 } +\int_const:Nn \c__nwejm_first_issue_year_int { 2016 } +\int_const:Nn \c__nwejm_first_issue_month_int { 1 } +\int_const:Nn \c__nwejm_interval_in_months_int { 6 } +\tl_const:Nn \c__nwejm_backcover_tableofcontents_string_tl {Volume's~Contents} +\tl_const:Nn \c__nwejm_editorinchief_string_tl {Editor~in~Chief} +\tl_const:Nn \c__nwejm_associate_editors_string_tl {Associate~Editors} +\tl_const:Nn \c__nwejm_managing_editor_string_tl {Managing~Editor} +\tl_const:Nn \c__nwejm_field_editor_string_tl {Field~Editor} +\tl_const:Nn \c__nwejm_editorial_secretariat_string_tl {Secretariat} +\tl_const:Nn \c__nwejm_phone_string_tl {Tel.} +\tl_const:Nn \c__nwejm_issn_string_tl {\textsc{issn}} +\tl_const:Nn \c__nwejm_isbn_string_tl {\textsc{isbn}} +\tl_const:Nn \c__nwejm_latexclass_string_tl {\LaTeX{}~class} +\tl_const:Nn \c__nwejm_computer_engineering_string_tl {Computer~engineering~issues} +\tl_const:Nn \c__nwejm_printer_string_tl {Printing~service} +\tl_const:Nn \c__nwejm_configuration_file_string_tl {nwejm.cfg} +\tl_const:Nn \c__nwejm_frontcover_header_left_string_tl { + \int_use:N\g__nwejm_issue_year_int% +} +\tl_const:Nn \c__nwejm_frontcover_header_right_string_tl { + Number\space\int_use:N\g__nwejm_issue_number_int% +} +\tl_const:Nn \c__nwejm_backmatter_directory_string_tl {backmatter} +\tl_const:Nn \c__nwejm_issue_backcover_text_file_string_tl {backcover} +\tl_const:Nn \c__nwejm_backcover_page_file_string_tl {\c__nwejm_backmatter_directory_string_tl/\c__nwejm_issue_backcover_text_file_string_tl} +\tl_const:Nn \c__nwejm_authors_instructions_file_extension_tl {ain} +\tl_const:Nn \c__nwejm_authors_instructions_file_tl {\c_job_name_tl.\c__nwejm_authors_instructions_file_extension_tl} +\tl_const:Nn \c__nwejm_authors_instructions_string_tl {Instructions~to~authors} +\tl_const:Nn \c__nwejm_date_received_tl {received} +\tl_const:Nn \c__nwejm_date_accepted_tl {accepted} +\tl_const:Nn \c__nwejm_date_online_tl {online} +\tl_const:Nn \c__nwejm_dates_separator_tl {/} +\tl_const:Nn \c__nwejm_images_directory_string_tl {images} +\tl_const:Nn \c__nwejm_issue_images_path_string_tl {\c__nwejm_images_directory_string_tl} +\tl_const:Nn \c__nwejm_preliminary_version_string_tl {% + This~document~is~a~draft~that~lets~you~check~the~integrity~of~original~text~and + bibliography~of~your~article~to~appear~in~the~next~issue~of~the + \c__nwejm_journal_title_string_tl.~The~current~layout~may~not~be~the~final~one.% +} +\tl_const:Nn \c__nwejm_msc_string_tl {\textsc{msc}} +\tl_const:Nn \c__nwejm_colon_tl { + \ifcurrentbaselanguage{french}{\FBcolonspace}{}: + % \ifundef{\Fcolonspace}{\FBcolonspace}{\Fcolonspace}: +} +\tl_const:Nn \c__nwejm_aside_string_tl {--} +\tl_const:Nn \c__nwejm_draftwatermark_string_tl {draft} +\tl_const:Nn \c__nwejm_issue_bib_file_suffix_string_tl {__nwejm} +\tl_const:Nn \c__nwejm_issue_bib_file_string_tl {\c_job_name_tl\c__nwejm_issue_bib_file_suffix_string_tl.bib} +\tl_const:Nn \c__nwejm_issue_bib_path_string_tl {\c__nwejm_issue_bib_file_string_tl} +\tl_const:Nn \c__nwejm_issue_bib_key_tl {\int_use:N \g__nwejm_issue_number_int} +\tl_const:Nn \c__nwejm_journal_short_title_string_tl {\textsc{nwejm}} +\tl_const:Nn \c__nwejm_journal_title_string_tl { + North-Western~European~Journal~of~Mathematics% +} +\tl_const:Nn \c__nwejm_journal_front_cover_title_string_tl { + North-Western~European\\Journal\\of\\Mathematics% +} +\tl_const:Nn \c__nwejm_nwejm_class_name_tl {nwejm} +\tl_const:Nn \c__nwejm_nwejmarticle_class_name_tl {nwejmart} +\bool_new:N \g__nwejm_frontcover_bool +\bool_new:N \g__nwejm_inside_frontcover_bool +\bool_new:N \g__nwejm_inside_backcover_bool +\bool_new:N \g__nwejm_frontmatter_bool +\bool_new:N \g__nwejm_mainmatter_bool +\bool_new:N \g__nwejm_backmatter_bool +\bool_new:N \g__nwejm_backcover_bool +\bool_new:N \g__nwejm_date_specified_bool +\dim_const:Nn \c__nwejm_layoutheight_dim { 240mm} +\dim_const:Nn \c__nwejm_layoutwidth_dim { 170mm} +\dim_const:Nn \c__nwejm_printer_layoutoffset_dim { 5mm} +\bool_if:NTF {\g__nwejm_for_printer_bool} { + \dim_const:Nn \c__nwejm_potential_layoutoffset_dim { \c__nwejm_printer_layoutoffset_dim} +}{ + \dim_const:Nn \c__nwejm_potential_layoutoffset_dim {\c_zero_dim} +} +\int_const:Nn \c__nwejm_thresold_a_int {68} +\int_const:Nn \c__nwejm_thresold_b_int {80} +\int_const:Nn \c__nwejm_thresold_c_int {88} +\int_const:Nn \c__nwejm_thresold_d_int {96} +\int_const:Nn \c__nwejm_thresold_e_int {104} +\int_const:Nn \c__nwejm_thresold_f_int {120} +\dim_const:Nn \c__nwejm_bindingoffset_a_dim {3mm} +\dim_const:Nn \c__nwejm_bindingoffset_b_dim {3.5mm} +\dim_const:Nn \c__nwejm_bindingoffset_c_dim {3.9mm} +\dim_const:Nn \c__nwejm_bindingoffset_d_dim {4.1mm} +\dim_const:Nn \c__nwejm_bindingoffset_e_dim {4.5mm} +\dim_const:Nn \c__nwejm_bindingoffset_f_dim {5mm} +\zexternaldocument[self]{\jobname}% +\int_new:N \g__nwejm_total_pages_number_int% +\int_new:N \g__nwejm_total_inside_pages_number_int% +\int_gset:Nn \g__nwejm_total_pages_number_int { \zref@extractdefault{selfLastPage}{abspage}{0} } +\int_gset:Nn \g__nwejm_total_inside_pages_number_int { \g__nwejm_total_pages_number_int - 4 } +\int_compare:nNnTF {\g__nwejm_total_inside_pages_number_int}<{\c__nwejm_thresold_a_int} +{ + \dim_const:Nn \c__nwejm_printer_bindingoffset_dim { \c_zero_dim } +}{ + \int_compare:nNnTF {\g__nwejm_total_inside_pages_number_int}<{\c__nwejm_thresold_b_int} + { + \dim_const:Nn \c__nwejm_printer_bindingoffset_dim { \c__nwejm_bindingoffset_a_dim } + }{ + \int_compare:nNnTF {\g__nwejm_total_inside_pages_number_int}<{\c__nwejm_thresold_c_int} + { + \dim_const:Nn \c__nwejm_printer_bindingoffset_dim { \c__nwejm_bindingoffset_b_dim } + }{ + \int_compare:nNnTF {\g__nwejm_total_inside_pages_number_int}<{\c__nwejm_thresold_d_int} + { + \dim_const:Nn \c__nwejm_printer_bindingoffset_dim { \c__nwejm_bindingoffset_c_dim } + }{ + \int_compare:nNnTF {\g__nwejm_total_inside_pages_number_int}<{\c__nwejm_thresold_e_int} + { + \dim_const:Nn \c__nwejm_printer_bindingoffset_dim { \c__nwejm_bindingoffset_d_dim } + }{ + \int_compare:nNnTF {\g__nwejm_total_inside_pages_number_int}<{\c__nwejm_thresold_f_int} + { + \dim_const:Nn \c__nwejm_printer_bindingoffset_dim { \c__nwejm_bindingoffset_e_dim } + }{ + \dim_const:Nn \c__nwejm_printer_bindingoffset_dim { \c__nwejm_bindingoffset_f_dim } + } + } + } + } + } +} +\bool_if:NTF {\g__nwejm_cover_bool} { + \dim_const:Nn \c__nwejm_potential_bindingoffset_dim { \c__nwejm_printer_bindingoffset_dim } +}{ + \dim_const:Nn \c__nwejm_potential_bindingoffset_dim {\c_zero_dim} +} +\dim_const:Nn \c__nwejm_paperheight_dim { \c__nwejm_layoutheight_dim+2\c__nwejm_potential_layoutoffset_dim} +\bool_if:NTF {\g__nwejm_cover_bool} { + \dim_const:Nn \c__nwejm_paperwidth_dim { + \c__nwejm_layoutwidth_dim + + + \c__nwejm_potential_layoutoffset_dim + +\c__nwejm_potential_bindingoffset_dim + } +}{ + \dim_const:Nn \c__nwejm_paperwidth_dim { + \c__nwejm_layoutwidth_dim + + + 2 + \c__nwejm_potential_layoutoffset_dim + +\c__nwejm_potential_bindingoffset_dim + } +} +\dim_const:Nn \c__nwejm_topmargin_dim { 20mm} +\dim_const:Nn \c__nwejm_topmargin_frontcover_dim { + \c__nwejm_topmargin_dim + % + 30mm +} +\dim_const:Nn \c__nwejm_topmargin_inside_cover_dim { + \c__nwejm_topmargin_dim + % +10mm +} +\dim_const:Nn \c__nwejm_topmargin_front_matter_dim { + \c__nwejm_topmargin_inside_cover_dim +} +\dim_const:Nn \c__nwejm_headsep_dim { 9.5mm} +\dim_const:Nn \c__nwejm_headsep_frontcover_dim { + \c__nwejm_headsep_dim + % +31mm + % -\c__nwejm_potential_layoutoffset_dim +} +\dim_const:Nn \c__nwejm_headsep_inside_frontcover_dim { + \c__nwejm_headsep_dim + +7mm +} +\dim_const:Nn \c__nwejm_headsep_front_matter_dim { + \c__nwejm_headsep_inside_frontcover_dim +} +\dim_const:Nn \c__nwejm_headheight_dim { 5mm } +\dim_const:Nn \c__nwejm_botmargin_dim { 30mm} +\dim_const:Nn \c__nwejm_footskip_dim { 10mm} +\dim_const:Nn \c__nwejm_margin_frontcover_dim { 15mm } +\dim_const:Nn \c__nwejm_bottom_frontcover_dim { 15mm } +\dim_const:Nn \c__nwejm_left_minipage_frontcover_dim { .4\linewidth } +\dim_const:Nn \c__nwejm_right_minipage_frontcover_dim { .6\linewidth } +\dim_const:Nn \c__nwejm_innermargin_dim { 23mm } +\dim_const:Nn \c__nwejm_outermargin_dim { 30mm } +\dim_const:Nn \c__nwejm_inside_cover_box_width_dim { 150mm }% +\dim_const:Nn \c__nwejm_innermargin_inside_cover_dim { + (\c__nwejm_layoutwidth_dim - \c__nwejm_inside_cover_box_width_dim)/2 + - \c__nwejm_potential_bindingoffset_dim + % + \c__nwejm_adjustmargin_dim +} +\dim_const:Nn \c__nwejm_outermargin_inside_cover_dim { + (\c__nwejm_layoutwidth_dim - \c__nwejm_inside_cover_box_width_dim)/2 + % - \c__nwejm_adjustmargin_dim +} +\dim_const:Nn \c__nwejm_innermargin_backcover_dim { 10mm } +\dim_const:Nn \c__nwejm_outermargin_backcover_dim { \c__nwejm_innermargin_backcover_dim } +\dim_const:Nn \c__nwejm_topmargin_backcover_dim { \c__nwejm_innermargin_backcover_dim } +\dim_const:Nn \c__nwejm_bottommargin_backcover_dim { \c__nwejm_innermargin_backcover_dim } +\dim_const:Nn \c__nwejm_front_matter_extra_innermargin_dim { \c_zero_dim } +\dim_const:Nn \c__nwejm_front_matter_extra_outermargin_dim { \c_zero_dim } +\dim_const:Nn \c__nwejm_inside_cover_offset_dim { \c_zero_dim }% +\geometry{% + papersize={\c__nwejm_paperwidth_dim,\c__nwejm_paperheight_dim} +} +\bool_if:NTF {\g__nwejm_cover_bool} { + \dim_show:N \c__nwejm_topmargin_frontcover_dim + \dim_show:N \c__nwejm_headsep_frontcover_dim + \dim_show:N \c__nwejm_headheight_dim + \tl_const:Nn \c__nwejm_frontcover_geometry_tl {% + ,layoutsize={\c__nwejm_layoutwidth_dim,\c__nwejm_layoutheight_dim} + ,layoutvoffset=\c__nwejm_potential_layoutoffset_dim + ,bindingoffset=\c__nwejm_potential_bindingoffset_dim + ,top=\c__nwejm_topmargin_frontcover_dim + ,top=\c__nwejm_topmargin_frontcover_dim + ,headsep=\c__nwejm_headsep_frontcover_dim + ,headheight=\c__nwejm_headheight_dim + ,bottom=\c__nwejm_bottom_frontcover_dim + ,footskip=\c__nwejm_footskip_dim + ,outer=\c__nwejm_margin_frontcover_dim + ,inner=\c__nwejm_potential_layoutoffset_dim + ,nomarginpar% + }% +}{ + \tl_const:Nn \c__nwejm_frontcover_geometry_tl {% + ,layoutsize={\c__nwejm_layoutwidth_dim,\c__nwejm_layoutheight_dim} + ,layoutoffset=\c__nwejm_potential_layoutoffset_dim + ,bindingoffset=\c__nwejm_potential_bindingoffset_dim + ,top=\c__nwejm_topmargin_frontcover_dim + ,headsep=\c__nwejm_headsep_frontcover_dim + ,headheight=\c__nwejm_headheight_dim + ,bottom=\c__nwejm_bottom_frontcover_dim + ,footskip=\c__nwejm_footskip_dim + ,hmargin=\c__nwejm_margin_frontcover_dim + ,nomarginpar% + }% +} +\bool_if:NTF {\g__nwejm_cover_bool} { + \tl_const:Nn \c__nwejm_inside_cover_geometry_tl {% + ,layoutsize={\c__nwejm_layoutwidth_dim,\c__nwejm_layoutheight_dim} + ,layoutvoffset=\c__nwejm_potential_layoutoffset_dim + ,bindingoffset=\c__nwejm_potential_bindingoffset_dim + ,top=\c__nwejm_topmargin_inside_cover_dim + ,headheight=\c__nwejm_headheight_dim + ,headsep=\c__nwejm_headsep_inside_frontcover_dim + ,bottom=\c__nwejm_botmargin_dim + ,footskip=\c__nwejm_footskip_dim + ,inner=\c__nwejm_innermargin_inside_cover_dim-\c__nwejm_potential_layoutoffset_dim + ,outer=\c__nwejm_outermargin_inside_cover_dim+\c__nwejm_potential_layoutoffset_dim + ,nomarginpar% + }% +}{ + \tl_const:Nn \c__nwejm_inside_cover_geometry_tl {% + ,layoutsize={\c__nwejm_layoutwidth_dim,\c__nwejm_layoutheight_dim} + ,layoutoffset=\c__nwejm_potential_layoutoffset_dim + ,bindingoffset=\c__nwejm_potential_bindingoffset_dim + ,top=\c__nwejm_topmargin_inside_cover_dim + ,headheight=\c__nwejm_headheight_dim + ,headsep=\c__nwejm_headsep_inside_frontcover_dim + ,bottom=\c__nwejm_botmargin_dim + ,footskip=\c__nwejm_footskip_dim + % ,inner=1cm + % ,outer=1cm + ,inner=\c__nwejm_innermargin_inside_cover_dim + ,outer=\c__nwejm_outermargin_inside_cover_dim + ,nomarginpar% + }% +} +\tl_const:Nn \c__nwejm_front_matter_geometry_tl {% + ,layoutsize={\c__nwejm_layoutwidth_dim,\c__nwejm_layoutheight_dim} + ,layoutoffset=\c__nwejm_potential_layoutoffset_dim + % ,bindingoffset=\c__nwejm_potential_bindingoffset_dim + ,top=\c__nwejm_topmargin_front_matter_dim% + ,headheight=\c__nwejm_headheight_dim + ,headsep=\c__nwejm_headsep_front_matter_dim + ,bottom=\c__nwejm_botmargin_dim + ,footskip=\c__nwejm_footskip_dim% + ,inner=\c__nwejm_innermargin_dim+\c__nwejm_front_matter_extra_innermargin_dim% + ,outer=\c__nwejm_outermargin_dim+\c__nwejm_front_matter_extra_outermargin_dim% + ,nomarginpar% +}% +\tl_const:Nn \c__nwejm_backcover_geometry_tl {% + ,layoutsize={\c__nwejm_layoutwidth_dim,\c__nwejm_layoutheight_dim} + ,layoutoffset=\c__nwejm_potential_layoutoffset_dim + % ,bindingoffset=\c__nwejm_potential_bindingoffset_dim + ,top=\c__nwejm_topmargin_backcover_dim% + % ,top=\c__nwejm_topmargin_dim-15mm% + % ,headheight=\c__nwejm_headheight_dim + % ,headsep=\c__nwejm_headsep_dim-18mm + ,bottom=\c__nwejm_bottommargin_backcover_dim + % ,footskip=\c__nwejm_footskip_dim + ,inner=\c__nwejm_innermargin_backcover_dim + ,outer=\c__nwejm_outermargin_backcover_dim +} +\tl_const:Nn \c__nwejm_main_geometry_tl {% + ,layoutsize={\c__nwejm_layoutwidth_dim,\c__nwejm_layoutheight_dim} + ,layoutoffset=\c__nwejm_potential_layoutoffset_dim + ,textwidth=\c__nwejm_layoutwidth_dim*3/4 + ,textheight=\c__nwejm_layoutheight_dim*3/4 + % ,marginratio={4\string :6,5\string :7} + ,inner=\c__nwejm_innermargin_dim + ,headheight=\c__nwejm_headheight_dim + ,footskip=\c__nwejm_footskip_dim + % + % ,layoutsize={\c__nwejm_layoutwidth_dim,\c__nwejm_layoutheight_dim} + % ,layoutoffset=\c__nwejm_potential_layoutoffset_dim + % % ,bindingoffset=\c__nwejm_potential_bindingoffset_dim + % ,top=\c__nwejm_topmargin_dim% + % ,headheight=\c__nwejm_headheight_dim + % ,headsep=\c__nwejm_headsep_dim + % ,bottom=\c__nwejm_botmargin_dim + % ,footskip=\c__nwejm_footskip_dim + % ,inner=\c__nwejm_innermargin_dim + % ,outer=\c__nwejm_outermargin_dim +}% +\bool_if:NF {\g__nwejm_coverpage_bool} { + \bool_if:NF {\g__nwejm_inside_pages_bool} { + \preto\@enddocumenthook{ + \cleardoublepage + \pagenumbering{roman}% + \setcounter{page}{3} + \bool_gset_true:N \g__nwejm_backmatter_bool + \g__nwejm_display_inside_backcover_tl + \newpage + \@openrightfalse + \g__nwejm_display_backcover_tl + }% + }% +}% +\bool_new:N \g__nwejm_tableofcontents_already_used_bool +\renewcommand\etocbeforetitlehook +{% + \DeclareNameAlias{labelname}{giveninits-last} + \bool_if:NF {\g__nwejm_for_authors_bool}{ + \bool_if:NF {\g__nwejm_tableofcontents_already_used_bool}{ + \g__nwejm_frontmatter_switch_tl + \phantomsection + \hypertarget{__nwejm_toc}{} + \bookmark[dest=__nwejm_toc,level=chapter]{\contentsname} + } + } +}% +\renewcommand\etocaftertochook +{% + \bool_if:NF {\g__nwejm_for_authors_bool}{ + \bool_if:NF {\g__nwejm_tableofcontents_already_used_bool}{ + \normalsize% + \clearpage% + \bool_gset_false:N \g__nwejm_frontmatter_bool% + \g__nwejm_mainmatter_switch_tl + } + } + \bool_gset_true:N \g__nwejm_tableofcontents_already_used_bool +}% + % \box_new:N \l__nwejm_journal_frontcover_logo_box + % \box_new:N \l__nwejm_journal_volume_box + % \AfterEndPreamble{% + % \hbox_set:Nn \l__nwejm_journal_volume_box + % { + % \color{Navy} + % \LARGE + % \bfseries + % \sffamily + % \adjustbox{stack=l}{% + % \c__nwejm_frontcover_header_left_string_tl + % \\\c__nwejm_frontcover_header_right_string_tl + % } + % } + % \hbox_set:Nn \l__nwejm_journal_frontcover_logo_box + % { + % \includegraphics[width=3cm]{ nwejm-logo } + % } + % \hbox_set_to_wd:Nnn \l__nwejm_journal_frontcover_logo_box { 1cm } + % { + % \box_move_down:nn + % { + % \box_ht:N \l__nwejm_journal_frontcover_logo_box / 2 + % - + % \box_ht:N \l__nwejm_journal_volume_box / 2 + % } + % { + % \box_use:N \l__nwejm_journal_frontcover_logo_box + % } + % } +\newpagestyle{__nwejm_frontcover_ps}[]{% + \sethead + { + \color{Navy} + \Large + \bfseries + \sffamily + \adjustbox{stack=l}{% + \c__nwejm_frontcover_header_left_string_tl + \\\c__nwejm_frontcover_header_right_string_tl + } + }% + {}% + {% + % \l__nwejm_journal_frontcover_logo_box + {\includegraphics[width=1cm]{ nwejm-logo }} + }% + % + \setfoot% + {}% + {}% + {}% +}% +\newpagestyle{__nwejm_inside_frontcover_ps}[]{% + \sethead% + {}% + {}% + {}% + % + \setfoot% + {}% + {}% + {}% +}% +\newpagestyle{__nwejm_frontmatter_ps}[]{% + \sethead% + {}% + {}% + {}% + % + \setfoot% + {}% + {\thepage}% + {}% +}% +\newpagestyle{__nwejm_blank_pages_ps}[]{% + \sethead + {}% + {}% + {}% + % + \setfoot% + {}% + {\thepage}% + {}% +}% +\newpagestyle{__nwejm_inside_backcover_ps}[]{% + \sethead% + {}% + {}% + {}% + % + \setfoot% + {}% + {}% + {}% +}% +\newpagestyle{__nwejm_backcover_ps}[]{% + \sethead + {}% + {}% + {}% + % + \setfoot% + {}% + {}% + {}% +}% +\tl_new:N \l__nwejm_section_header_tl +\tl_set:Nn \l__nwejm_section_header_tl { + \ifthesection{% + \thesection.~% + }{% + } + \sectiontitle +}% +\newpagestyle{__nwejm_mainmatter_ps}[]{% + \sethead% + [ + \tl_if_exist:NT {\g__nwejm_short_title_tl} + { + \tl_if_empty:NF \g__nwejm_short_title_tl {% + \slshape\g__nwejm_short_title_tl + } + } + ]% + [% + ]% + [ + \DeclareNameAlias{labelname}{giveninits-last} + \AtNextCitekey{\defcounter{maxnames}{2}}\citeauthor{\g__nwejm_article_bib_key_tl} + ]% + { + \slshape\l__nwejm_section_header_tl + }% + {% + }% + { + }% + % + \setfoot% + {}% + {\thepage}% + {}% +} + \box_new:N \l__nwejm_journal_logo_box + \box_new:N \l__nwejm_journal_name_box + \AfterEndPreamble{% + \hbox_set:Nn \l__nwejm_journal_name_box + { + \bfseries% + \adjustbox{stack=l}{% + \c__nwejm_journal_title_string_tl + \\\tl_mixed_case:n{\GetTranslation{volume-abbreviated}}\space\int_use:N \g__nwejm_issue_number_int +} +} +\hbox_set:Nn \l__nwejm_journal_logo_box +{ + \includegraphics[width=1cm]{ nwejm-logo-NB } +} +\hbox_set_to_wd:Nnn \l__nwejm_journal_logo_box { 1cm } +{ + \box_move_down:nn + { + \box_ht:N \l__nwejm_journal_logo_box / 2 + - + \box_ht:N \l__nwejm_journal_name_box / 2 + } + { + \box_use:N \l__nwejm_journal_logo_box + } +} +\box_set_ht:Nn \l__nwejm_journal_logo_box { \c_zero_dim } +\box_set_dp:Nn \l__nwejm_journal_logo_box { \c_zero_dim } +} +\newpagestyle{__nwejm_article_title_ps}[]{% + % \widenhead{\c_zero_dim}{\c_zero_dim} + \sethead% + { + \box_use:N \l__nwejm_journal_name_box + }% + {% + }% + { + \box_use:N \l__nwejm_journal_logo_box + }% + % + \setfoot% + {}% + {\thepage}% + {}% +} +\def\@pnumwidth{\@tocrmarg} +\AtBeginDocument{% + \graphicspath{{\c__nwejm_issue_images_path_string_tl//}{../\c__nwejm_issue_images_path_string_tl//}} + % \glsdisablehyper +} +\tl_new:N \l__nwejm_journal_publisher_tl +\tl_new:N \l__nwejm_journal_address_tl +\tl_new:N \l__nwejm_journal_phone_tl +\tl_new:N \l__nwejm_journal_email_tl +\tl_new:N \l__nwejm_journal_url_tl +\tl_new:N \l__nwejm_journal_issn_tl +\tl_new:N \l__nwejm_journal_isbn_tl +\keys_define:nn { nwejm/journalsetup } +{ + publisher .tl_set:N = \l__nwejm_journal_publisher_tl, + address .tl_set:N = \l__nwejm_journal_address_tl, + phone .tl_set:N = \l__nwejm_journal_phone_tl, + email .tl_set:N = \l__nwejm_journal_email_tl, + url .tl_set:N = \l__nwejm_journal_url_tl, + issn .tl_set:N = \l__nwejm_journal_issn_tl, + isbn .tl_set:N = \l__nwejm_journal_isbn_tl, + publisher .value_required:, + address .value_required:, + phone .value_required:, + email .value_required:, + url .value_required:, + issn .value_required:, + isbn .value_required:, +} +\int_new:N \g__nwejm_issue_number_int +\int_new:N \g__nwejm_issue_month_int +\int_new:N \g__nwejm_issue_year_int +\tl_new:N \g__nwejm_frontcover_image_options_tl +\keys_define:nn { nwejm/issuesetup } +{ + number .int_gset:N = \g__nwejm_issue_number_int, + volume .int_gset:N = \g__nwejm_issue_volume_int, + volume .value_required:, + volume .initial:n = 0, +} +\keys_define:nn { nwejm/dates } +{ + received .code:n = { + \tl_gset:Nn \g__nwejm_reception_date_tl {#1} + \bool_gset_true:N \g__nwejm_date_specified_bool + }, + accepted .code:n = { + \tl_gset:Nn \g__nwejm_acception_date_tl {#1} + \bool_gset_true:N \g__nwejm_date_specified_bool + }, + online .code:n = { + \tl_gset:Nn \g__nwejm_online_date_tl {#1} + \bool_gset_true:N \g__nwejm_date_specified_bool + }, + received .value_required:, + accepted .value_required:, + online .value_required:, +} +\quark_new:N \q__nwejm +\int_new:N \l_author_int +\prop_new:N \g_authors_prop +\prop_new:N \l_affiliations_tagged_prop +\cs_generate_variant:Nn \prop_put_if_new:Nnn { NVn } +\cs_generate_variant:Nn \prop_gput_if_new:Nnn { Nxn } +\cs_generate_variant:Nn \prop_put_if_new:Nnn { NnV } +\cs_new:Npn \__nwejm_prop_count:nn #1#2 { + 1 } +\cs_new:Npn \__nwejm_prop_count:N #1 +{ \int_eval:n { 0 \prop_map_function:NN #1 \__nwejm_prop_count:nn } } +\NewDocumentCommand \__nwejm_author_affiliation:ww { o u\q__nwejm } +{ + \stepcounter{footnote} + \prop_put_if_new:NVn \l_tmpa_prop {\the\c@footnote} {#2} + \IfValueT{#1}{% + \prop_put_if_new:NnV \l_affiliations_tagged_prop {#1} {\the\c@footnote} + } +} +\keys_define:nn { nwejm / authors } +{ + email .tl_gset:N = \g__nwejm_people_email_tl, + affiliation .code:n = {% + \__nwejm_author_affiliation:ww #1 \q__nwejm + }, + affiliationtagged .code:n = {% + \prop_get:NnNTF \l_affiliations_tagged_prop {#1} \l_tmpa_tl + {% + \prop_put_if_new:NVn \l_tmpa_prop {\l_tmpa_tl} {} + }{ + \msg_error:nnn{__nwejm}{Unknown~tag}{#1} + } + }, + affiliation .value_required:, + affiliationtagged .value_required:, +} +\tl_new:N \l__nwejm_newtheorem_style_tl +\keys_define:nn { nwejm / newtheorem } +{ + title .tl_set:N = \l__nwejm_newtheorem_title_tl, + title / french .tl_set:N = \l__nwejm_newtheorem_french_title_tl, + title / english .tl_set:N = \l__nwejm_newtheorem_english_title_tl, + title / german .tl_set:N = \l__nwejm_newtheorem_german_title_tl, + title / dutch .tl_set:N = \l__nwejm_newtheorem_dutch_title_tl, + title .value_required:, + title / french .value_required:, + title / english .value_required:, + title / german .value_required:, + title / dutch .value_required:, + % + style .choice:, + style / theorem .code:n = {\__nwejm_theorem_style:n {theorem}}, + style / definition .code:n = {\__nwejm_theorem_style:n {definition}}, + style / proof .code:n = {\__nwejm_theorem_style:n {proof}}, + style / unknown .code:n = + \msg_error:nnxxx { nwejm } { Unknown~choice } + { style } % Name of choice key + { theorem~or~definition~or~proof } % Valid choices + { \exp_not:n {#1} } % Invalid choice given +} +\bool_new:N \g__nwejm_gradient_nabla_bool +\bool_new:N \g__nwejm_gradient_nabla_control_bool +\keys_define:nn { nwejm/articlesetup } +{ + gradient .choice:, + gradient / nabla .code:n = {\bool_gset_true:N \g__nwejm_gradient_nabla_bool}, + gradient / grad .code:n = {\bool_gset_false:N \g__nwejm_gradient_nabla_bool}, + gradient / unknown .code:n = + \msg_error:nnxxx { nwejmart } { Unknown~choice } + { gradient } % Name of choice key + { nabla~or~grad } % Valid choices + { \exp_not:n {#1} } % Invalid choice given +} +\tl_new:N \g__nwejm_nwejm_short_string_tl +\tl_new:N \g__nwejm_nwejm_string_tl +\tl_gset:Nn \g__nwejm_nwejm_short_string_tl { + \cs_if_exist:cTF {texorpdfstring} + { + \texorpdfstring{\emph{\c__nwejm_journal_short_title_string_tl}}{\c__nwejm_journal_short_title_string_tl} + }{% + \emph{\c__nwejm_journal_short_title_string_tl} + }% +} +\tl_gset:Nn \g__nwejm_nwejm_string_tl { + \cs_if_exist:cTF {texorpdfstring} + { + \texorpdfstring{\emph{\c__nwejm_journal_title_string_tl}}{\c__nwejm_journal_title_string_tl} + }{% + \emph{\c__nwejm_journal_title_string_tl} + }% +} +\tl_new:N \l__nwejm_pdftitle_string_tl +\tl_new:N \l__nwejm_pdfauthor_string_tl +\tl_set:Nn \l__nwejm_pdftile_string_tl { + \c__nwejm_journal_title_string_tl\space--\space{}N^^c2^^b0\int_use:N\g__nwejm_issue_number_int +} +\tl_set:Nn \l__nwejm_pdfauthor_string_tl { + \g__nwejm_nwejm_string_tl +} +\cs_new_protected:Nn \__nwejm_email:n + { + \href{mailto:#1}{\nolinkurl{#1}}% + } +\tl_new:N \l__nwejm_crossref_tl +\cs_new_protected:Nn \__nwejm_populate_bib_file:nn +{ + \int_if_exist:cF {g__nwejm_#2_int} + { + \int_new:c {g__nwejm_#2_int} + } + \int_incr:c {g__nwejm_#2_int} + \tl_if_in:nnTF { #2 } { author } { + \tl_set:Nn \l__nwejm_crossref_tl {% + \c__nwejm_issue_bib_key_tl + -art- + \int_use:N \g__nwejm_articles_int + } + } { + \tl_set:Nn \l__nwejm_crossref_tl {\c__nwejm_issue_bib_key_tl} + } + \tl_set:Nn \l__nwejm_people_first_last_name_tl {#1} + \iow_now:Nx \g__nwejm_bib_out_iow {% + @article{ + \c__nwejm_issue_bib_key_tl -#2- \int_use:c {g__nwejm_#2_int}, + \iow_newline: + author={\exp_not:V\l__nwejm_people_first_last_name_tl}, + \iow_newline: + options={skipbib}, + \iow_newline: + crossref = {\l__nwejm_crossref_tl} + \iow_newline: + } + \iow_newline: + }% +} +\DTLnewdb{people} +\cs_new_protected:Nn \__nwejm_people:nnnnn +{ + \DTLnewrow{people}% + \DTLnewdbentry{people}{first-last-name}{#1}% + \DTLnewdbentry{people}{affiliation}{#2}% + \DTLnewdbentry{people}{country}{#3}% + \DTLnewdbentry{people}{email}{#4}% + \DTLnewdbentry{people}{role}{#5}% + \__nwejm_populate_bib_file:nn {#1}{#5} +} +\cs_generate_variant:Nn \__nwejm_people:nnnnn { nVnVx } +\cs_new_protected:Nn \__nwejm_display_people_by_role:n +{ + \DTLforeach*[\DTLiseq{\l__nwejm_people_role_tl}{#1}]{people}{% + \l__nwejm_firstlastname_tl=first-last-name% + ,\l__nwejm_people_affiliation_tl=affiliation% + ,\l__nwejm_people_country_tl=country% + ,\l__nwejm_people_email_tl=email% + ,\l__nwejm_people_role_tl=role% + }{% + \tl_if_in:NnTF \l__nwejm_people_role_tl { editor } { + \item[ + \__nwejm_citeauthor_no_giveninits:n {\c__nwejm_issue_bib_key_tl -#1- \exp_not:V\DTLcurrentindex}% + ] + \l__nwejm_people_affiliation_tl% + \space% + (\l__nwejm_people_country_tl)% + % ,\space% + % \__nwejm_email:n {\l__nwejm_people_email_tl} + \DTLiflastrow{% + }{% + % \medskip% + } + }{ + \tl_if_in:NnTF \l__nwejm_people_role_tl { author } { + \footnotesize% + \noindent% + \begin{description}[leftmargin=1em,style=nextline] + \item[% + \__nwejm_citeauthor_no_giveninits:n {\c__nwejm_issue_bib_key_tl -#1- \exp_not:V\DTLcurrentindex}% + ] + \tl_if_empty:NF \l__nwejm_people_affiliation_tl + {% + \mbox{}% + \par% + \vspace{-2ex}% + \l__nwejm_people_affiliation_tl% + } + \tl_if_empty:NF \l__nwejm_people_email_tl + {% + \par% + \__nwejm_email:n {\l__nwejm_people_email_tl} + } + \end{description} + \DTLiflastrow{% + }{ + \DTLpar% + \medskip% + } + }{ + \__nwejm_citeauthor_no_giveninits:n {\c__nwejm_issue_bib_key_tl -#1- + \exp_not:V\DTLcurrentindex}% + \tl_if_empty:NF \l__nwejm_people_email_tl + { + \space(\__nwejm_email:n {\l__nwejm_people_email_tl}) + } + } + } + } +} +\tl_new:N \g__nwejm_display_frontcover_tl% +\tl_gset:Nn \g__nwejm_display_frontcover_tl {% + \bool_gset_true:N \g__nwejm_frontcover_bool + \pagestyle{__nwejm_frontcover_ps}% + \exp_after:wN\newgeometry\exp_after:wN{\c__nwejm_frontcover_geometry_tl}% + \noindent% + \bool_if:NTF {\g__nwejm_cover_bool} { + \hspace*{-\c__nwejm_potential_layoutoffset_dim} + }{ + \hspace*{-2\c__nwejm_potential_layoutoffset_dim} + } + { + \mbox{} + \vfill + \begin{center} + \Huge% + \bfseries% + \sffamily% + \itshape% + \color{Navy}% + \c__nwejm_journal_front_cover_title_string_tl% + \end{center} + } + \vfill% + \clearpage% + \bool_gset_false:N \g__nwejm_frontcover_bool +} +\tl_new:N \g__nwejm_display_inside_frontcover_tl% +\tl_gset:Nn \g__nwejm_display_inside_frontcover_tl {% + \bool_gset_true:N \g__nwejm_inside_frontcover_bool% + \pagestyle{__nwejm_inside_frontcover_ps}% + \exp_after:wN\newgeometry\exp_after:wN{\c__nwejm_inside_cover_geometry_tl}% + \footnotesize% + \begin{multicols*}{2} + \setlength{\columnsep}{1mm} + \begin{description}[leftmargin=2em] + \item[\textsc{\c__nwejm_editorinchief_string_tl}] \ + \begin{description}[leftmargin=1em] + \__nwejm_display_people_by_role:n {editorinchief} + \end{description} + \bigskip + \par + \item[\textsc{\c__nwejm_associate_editors_string_tl}] \ + \begin{description}[leftmargin=1em] + \__nwejm_display_people_by_role:n {editor} + \end{description} + \bigskip + \par + \item[\textsc{\c__nwejm_field_editor_string_tl}] \ + \begin{description}[leftmargin=1em] + \__nwejm_display_people_by_role:n {fieldseditor} + \end{description} + \bigskip + \par + \item[\textsc{\c__nwejm_managing_editor_string_tl}] \ + \begin{description}[leftmargin=1em] + \__nwejm_display_people_by_role:n {managingeditor} + \end{description} + \end{description} + \end{multicols*} + \clearpage% + \bool_gset_false:N \g__nwejm_inside_frontcover_bool + \pagestyle{__nwejm_frontmatter_ps}% + \exp_after:wN\newgeometry\exp_after:wN{\c__nwejm_main_geometry_tl}% +} +\tl_new:N \g__nwejm_display_inside_backcover_tl% +\tl_gset:Nn \g__nwejm_display_inside_backcover_tl {% + \bool_gset_true:N \g__nwejm_inside_backcover_bool% + \pagestyle{__nwejm_inside_backcover_ps}% + % \exp_after:wN\newgeometry\exp_after:wN{\c__nwejm_inside_cover_geometry_tl}% + % \file_if_exist:nT { \c__nwejm_authors_instructions_file_tl } {% + \bool_if:NTF {\g__nwejm_no_inside_backcover_bool} { + \hbox{} + }{% + \small% + \file_if_exist:nT { \c__nwejm_authors_instructions_file_tl } {% + % \begin{multicols}{2} + % \setlength{\columnsep}{1mm} + \file_input:n {\c__nwejm_authors_instructions_file_tl} + % \end{multicols} + % \setlength{\columnseprule}{1pt} + } + \begin{description}[leftmargin=1em] + \item[\c__nwejm_editorial_secretariat_string_tl{}~:] \ \par% + % \l__nwejm_journal_publisher_tl% + % \par% + % \space\textendash{}\space% + \__nwejm_display_people_by_role:n { secretary }\par + \l__nwejm_journal_address_tl\par% + \c__nwejm_phone_string_tl{}~:~\l__nwejm_journal_phone_tl{}\par% + \__nwejm_email:n {\l__nwejm_journal_email_tl} + \newline% + % \space\textendash{}\space + \url{\l__nwejm_journal_url_tl} + \item[\c__nwejm_issn_string_tl{}~:] \l__nwejm_journal_issn_tl + \tl_if_empty:NF \l__nwejm_journal_isbn_tl + {% + \item[\c__nwejm_isbn_string_tl{}~:] \l__nwejm_journal_isbn_tl + } + \item[\c__nwejm_latexclass_string_tl{}~:] + \__nwejm_display_people_by_role:n { classdesigner } + \item[\c__nwejm_computer_engineering_string_tl{}~:] %\g__nwejm_printer_text_tl + \__nwejm_display_people_by_role:n { computerengineer } + \item[\c__nwejm_printer_string_tl{}~:] %\g__nwejm_printer_text_tl + \__nwejm_display_people_by_role:n { printingservice } + \end{description} + \g__nwejm_font_designer_text_tl + } + % }{% + % \hbox{} + % } + \bool_gset_false:N \g__nwejm_inside_backcover_bool +} +\tl_new:N \g__nwejm_short_toc_tl% +\tl_gset:Nn \g__nwejm_short_toc_tl {% + \begingroup + \etocstandardlines + \etocsetnexttocdepth{chapter} + \renewcommand{\etocbkgcolorcmd}{\color{Navy!5}} + \renewcommand{\etocbelowtocskip}{0pt\relax} + \fboxsep1ex + \etocframedstyle [1]{\fbox{\makebox[.5\linewidth]{\etocfontminusone\c__nwejm_backcover_tableofcontents_string_tl}}} + \tableofcontents + \endgroup +} +\tl_new:N \g__nwejm_display_backcover_tl% +\tl_gset:Nn \g__nwejm_display_backcover_tl {% + \bool_gset_true:N \g__nwejm_backcover_bool +\g__nwejm_short_toc_tl +\vfill{} + \begin{center} + \includegraphics[height=.4\textheight]{nwejm-logos-collection.pdf} + \end{center} +} +\cs_new_protected:Nn \__nwejm_date:nn +{ + \tl_if_exist:NT {#2} + { + \tl_if_empty:NF {#2} + { + \tl_if_eq:NNF {\c__nwejm_date_received_tl} {#1} { \c__nwejm_dates_separator_tl } + \tl_mixed_case:n { \exp_args:No \GetTranslation{#1} } + \c__nwejm_colon_tl\space + \DTMdate{#2}% + } + } +} +\tl_new:N \g__nwejm_display_dates_tl% +\tl_gset:Nn \g__nwejm_display_dates_tl {% + \footnotesize% + \__nwejm_date:nn {\c__nwejm_date_received_tl}{\g__nwejm_reception_date_tl} + \__nwejm_date:nn {\c__nwejm_date_accepted_tl}{\g__nwejm_acception_date_tl} + \__nwejm_date:nn {\c__nwejm_date_online_tl} {\g__nwejm_online_date_tl} + \tl_gclear:N \g__nwejm_reception_date_tl + \tl_gclear:N \g__nwejm_acception_date_tl + \tl_gclear:N \g__nwejm_online_date_tl +} +\seq_new:N \l__nwejm_keywords_seq +\tl_new:N \l__nwejm_keywords_tl +\NewDocumentCommand \keywords { m } { + \seq_clear:N \l__nwejm_keywords_seq + \tl_clear:N \l__nwejm_keywords_tl + \seq_set_from_clist:Nn \l_tmpa_seq {#1} + \seq_set_map:NNn \l__nwejm_keywords_seq \l_tmpa_seq { + ##1 + } + \tl_set:Nn \l__nwejm_keywords_tl { \seq_use:Nn \l__nwejm_keywords_seq {,~} } +} +\seq_new:N \l__nwejm_msc_seq +\tl_new:N \l__nwejm_msc_tl +\NewDocumentCommand \msc { m } { + \seq_clear:N \l__nwejm_msc_seq + \tl_clear:N \l__nwejm_msc_tl + % + % does what the name suggests, set a sequence from the clist + \seq_set_from_clist:Nn \l_tmpa_seq {#1} + % applies final arg to each element of second seq and stores result in first seq + \seq_set_map:NNn \l__nwejm_msc_seq \l_tmpa_seq { + ##1 + } + % + % \seq_use puts the items from the seq back in the input with ",~" as a separator + \tl_set:Nn \l__nwejm_msc_tl {\seq_use:Nn \l__nwejm_msc_seq {,~}} +%%<class-article> \hypersetup{pdfmsc=\l_@@_msc_tl} +} +%% \enquote{R\'{e}dacteur(s) en chef}. +\NewDocumentCommand \editorinchief {mmmm} +{ + \__nwejm_people:nnnnn {#1}{#2}{#3}{#4}{editorinchief} +} +\NewDocumentCommand \editor {mmmm} +{ + \__nwejm_people:nnnnn {#1}{#2}{#3}{#4}{editor} +} +\NewDocumentCommand \fieldseditor {mmmm} +{ + \__nwejm_people:nnnnn {#1}{#2}{#3}{#4}{fieldseditor} +} +\NewDocumentCommand \managingeditor {mmmm} +{ + \__nwejm_people:nnnnn {#1}{#2}{#3}{#4}{managingeditor} +} +\NewDocumentCommand \classdesigner {mmmm} +{ + \__nwejm_people:nnnnn {#1}{#2}{#3}{#4}{classdesigner} +} +\NewDocumentCommand \computerengineer {mmmm} +{ + \__nwejm_people:nnnnn {#1}{#2}{#3}{#4}{computerengineer} +} +\NewDocumentCommand \classmaintainer {mmmm} +{ + \__nwejm_people:nnnnn {#1}{#2}{#3}{#4}{classmaintainer} +} +\NewDocumentCommand \fontdesigner {mmmm} +{ + \__nwejm_people:nnnnn {#1}{#2}{#3}{#4}{fontdesigner} +} +\NewDocumentCommand \printingservice {mmmm} +{ + \__nwejm_people:nnnnn {#1}{#2}{#3}{#4}{printingservice} +} +\NewDocumentCommand \computerassistance {mmmm} +{ + \__nwejm_people:nnnnn {#1}{#2}{#3}{#4}{computerassistance} +} +\NewDocumentCommand \secretary {mmmm} +{ + \__nwejm_people:nnnnn {#1}{#2}{#3}{#4}{secretary} +} +\NewDocumentCommand \issuesetup { m } { + \keys_set:nn { nwejm/issuesetup } {#1} +\hypersetup{pdftitle=\l__nwejm_pdftitle_string_tl} +\hypersetup{pdfauthor=\l__nwejm_pdfauthor_string_tl} + \int_compare:nNnT {\g__nwejm_issue_number_int}<{1} + { + \int_gset:Nn \g__nwejm_issue_number_int { \c__nwejm_first_issue_number_int } + \msg_warning:nnn{nwejm}{Issue~number~needed}{number} + } + \int_compare:nNnT {\g__nwejm_issue_month_int * \g__nwejm_issue_year_int}<{1} + { + \int_new:N \g__nwejm_issue_age_in_months_int% + \int_gset:Nn \g__nwejm_issue_age_in_months_int + { + \c__nwejm_first_issue_month_int + + \c__nwejm_interval_in_months_int + * ( \int_use:N \g__nwejm_issue_number_int - \c__nwejm_first_issue_number_int ) + } + } + \int_compare:nNnT {\g__nwejm_issue_month_int}<{1} + { + \int_gset:Nn \g__nwejm_issue_month_int + { + \int_mod:nn { \g__nwejm_issue_age_in_months_int } { 12 } + } + } + \int_compare:nNnT {\g__nwejm_issue_year_int}<{1} + { + \int_new:N \g__nwejm_issue_age_in_years_int% + \int_gset:Nn \g__nwejm_issue_age_in_years_int + {% + \int_div_truncate:nn { \g__nwejm_issue_age_in_months_int } { 12 } + }% + \int_gset:Nn \g__nwejm_issue_year_int + { + \g__nwejm_issue_age_in_years_int + \c__nwejm_first_issue_year_int + } + }% +} +\NewDocumentCommand \journalsetup { m } { + \keys_set:nn { nwejm/journalsetup } { #1 } +} +\addto\extrasfrench{% + \def\reftextfaceafter {page~\reftextvario{ci-contre}{suivante}}% + \def\reftextfacebefore{page~\reftextvario{ci-contre}% + {pr\^^e2^^80^^99ec\^^e2^^80^^99edente}}% + \def\reftextafter + {page~suivante}% + \def\reftextbefore + {page~pr\^^e2^^80^^99ec\^^e2^^80^^99edente}% + \def\reftextcurrent + {de~la~pr\^^e2^^80^^99esente~page}% + \def\reftextfaraway#1{page~\pageref{#1}}% + \def\reftextpagerange#1#2{pages~\pageref{#1}--\pageref{#2}}% + \def\reftextlabelrange#1#2{\ref{#1}~\^^e2^^80^^98a~\ref{#2}}% +} +\addto\extrasngerman{% + \def\reftextfaceafter {auf~der~n\"achsten~Seite}% + \def\reftextfacebefore{auf~der~vorherigen~Seite}% + \let\reftextafter \reftextfaceafter + \let\reftextbefore \reftextfacebefore + \def\reftextcurrent {auf~dieser~Seite}% + \def\reftextfaraway#1{auf~Seite~\pageref{#1}}% + \def\reftextpagerange#1#2{auf~den~Seiten~\pageref{#1}--\pageref{#2}}% + \def\reftextlabelrange#1#2{\ref{#1}~bis~\ref{#2}}% +} +\addto\extrasdutch{% + \def\refpagename{pagina}% + \def\reftextfaceafter {op~de~\reftextvario{rechter~\refpagename}% + {\refpagename\ hiernaast}}% + \def\reftextfacebefore{op~de~\reftextvario{linker~\refpagename}% + {\refpagename\ hiernaast}}% + \def\reftextafter {op~de~\reftextvario{volgende~\refpagename}% + {\refpagename\ hierna}}% + \def\reftextbefore {op~de~\reftextvario{vorige~\refpagename}% + {\refpagename\ hiervoor}}% + \def\reftextcurrent {op~deze~\refpagename}% + \def\reftextfaraway#1{op~\refpagename\space\pageref{#1}} +} +\addto\extrasenglish{% + \def\reftextfaceafter {on~the~\reftextvario{facing}{next}~page}% + \def\reftextfacebefore{on~the~\reftextvario{facing}{preceding}~page}% + \def\reftextafter {on~the~\reftextvario{following}{next}~page}% + \def\reftextbefore {on~the~\reftextvario{preceding}{previous}~page}% + \def\reftextcurrent {on~\reftextvario{this}{the~current}~page}% + \def\reftextfaraway#1{on~page~\pageref{#1}}% + \def\reftextpagerange#1#2{on~pages~\pageref{#1}--\pageref{#2}}% + \def\reftextlabelrange#1#2{\ref{#1}~to~\ref{#2}}% +} +\cs_new_protected:Nn \__nwejm_command_only_in_body:n +{ + \cs_if_eq:NNF {\@onlypreamble} {\@notprerr} { + \msg_error:nnn{ + nwejm + }{Command~restricted~to~document~body~used~in~preamble}{#1} + } +} +\NewDocumentCommand \articlesetup { m } { + \__nwejm_command_only_in_body:n {\articlesetup} + \keys_set:nn { nwejm/articlesetup } {#1} +} +\NewDocumentCommand \dates { m } { + \keys_set:nn { nwejm/dates } { #1 } +} +\NewDocumentCommand \inputarticle { O{english} m } {% + \newrefsection + \tl_if_eq:nnTF { #1 } { german } {% + \selectlanguage{ngerman} + }{ + \selectlanguage{#1} + }% + \tl_if_eq:nnTF { #1 } { french } {% + \FrenchFootnotes + }{% + \StandardFootnotes + } + \bool_gset_false:N \g__nwejm_gradient_nabla_bool + \bool_gset_false:N \g__nwejm_gradient_nabla_control_bool + \bool_gset_false:N \g__nwejm_grad_used_bool + \inputfrom{./}{#2} + \clist_put_right:Nn \g__nwejm_counters_to_be_reset_clist { + footnote, + section, + figure, + table, + equation + } + \clist_map_inline:Nn \g__nwejm_counters_to_be_reset_clist { + \@ifundefined{c@##1}{ + }{ + \setcounter{##1}{\c_zero} + } + } + \glsresetall + \selectlanguage{english} +} +\AtBeginDocument{% +\tl_new:N \g__nwejm_bib_issue_date_tl +\tl_gset:Nn +\g__nwejm_bib_issue_date_tl { + \int_use:N \g__nwejm_issue_year_int - + \int_compare:nNnT {\g__nwejm_issue_month_int}<{10} + { + 0 + } + \int_use:N \g__nwejm_issue_month_int +} + \iow_now:Nx \g__nwejm_bib_out_iow {% + @periodical{\c__nwejm_issue_bib_key_tl,\iow_newline: + issuetitle = {\exp_not:f\c__nwejm_journal_title_string_tl},\iow_newline: + date = {\g__nwejm_bib_issue_date_tl},\iow_newline: + number = \int_use:N \g__nwejm_issue_number_int,\iow_newline: + % issn = {\l__nwejm_journal_issn_tl},\iow_newline: + options = {skipbib}\iow_newline: + } + \iow_newline: + }% +} +\tl_new:N \g__nwejm_title_tl +\RenewDocumentCommand \title { o m } { + \cleardoublepage + \int_gincr:N \g__nwejm_articles_int + \tl_gclear:N \g__nwejm_short_title_tl + \tl_gclear:N \g__nwejm_short_subtitle_tl + % + \IfNoValueF {#1} + { + \tl_gset:Nn \g__nwejm_short_title_tl {#1} + } + \tl_gset:Nn \g__nwejm_title_tl {#2} + \tl_if_empty:NT \g__nwejm_short_title_tl {% + \tl_gset_eq:NN \g__nwejm_short_title_tl \g__nwejm_title_tl + } +} +\tl_new:N \g__nwejm_subtitle_tl +\NewDocumentCommand \subtitle { o m } { + \IfNoValueF {#1} + { + \tl_gset:Nn \g__nwejm_short_subtitle_tl {#1} + } + \tl_gset:Nn \g__nwejm_subtitle_tl {#2} + \tl_if_empty:NT \g__nwejm_short_subtitle_tl {% + \tl_gset_eq:NN \g__nwejm_short_subtitle_tl \g__nwejm_subtitle_tl + } +} +\RenewDocumentCommand \author { O{} m } { + \cleardoublepage + \int_incr:N \l_author_int + \prop_gput_if_new:Nxn \g_authors_prop {author_\int_use:c {l_author_int}} {#2} + \IfNoValueF {#1} + { + \keys_set:nn { nwejm/authors } { #1 } + } + \prop_set_eq:cN {l_author_ \int_use:c {l_author_int} _affiliations_prop} \l_tmpa_prop + \prop_clear:N \l_tmpa_prop + \__nwejm_populate_bib_file:nn {#2}{author-art-\int_use:N \g__nwejm_articles_int} + \tl_if_empty:NTF \l__nwejm_people_first_last_names_tl {% + \tl_put_right:Nn + \l__nwejm_people_first_last_names_tl + {#2} + }{ + \tl_put_right:Nn + \l__nwejm_people_first_last_names_tl + {~and~#2} + } +} +\iow_new:N \g__nwejm_bib_out_iow +\ior_new:N \g__nwejm_bib_out_ior +\tl_new:N \g__nwejm_bib_out_tl +\file_if_exist:nTF { \c__nwejm_issue_bib_path_string_tl } +{ + \ior_open:Nn \g__nwejm_bib_out_ior { \c__nwejm_issue_bib_path_string_tl } + \ior_str_map_inline:Nn \g__nwejm_bib_out_ior + { \tl_gput_right:Nn \g__nwejm_bib_out_tl {#1 \par } } + \ior_close:N \g__nwejm_bib_out_ior +}{ + \typeout{no file! rerun} +} +\iow_open:Nn \g__nwejm_bib_out_iow { \c__nwejm_issue_bib_path_string_tl } +\tl_new:N \g__nwejm_abstract_body_tl +\NewDocumentEnvironment{abstract}{} + {\CollectAbstract} + {\endCollectAbstract} +\NewEnviron{CollectAbstract} + { + \tl_gset_eq:NN \g__nwejm_abstract_body_tl \BODY + } +\tl_new:N \g__nwejm_frontmatter_switch_tl% +\tl_gset:Nn \g__nwejm_frontmatter_switch_tl { + \bool_gset_true:N \g__nwejm_frontmatter_bool + \frontmatter + \pagestyle{__nwejm_frontmatter_ps}% + \exp_after:wN\newgeometry\exp_after:wN{\c__nwejm_main_geometry_tl}% +} +\tl_new:N \g__nwejm_mainmatter_switch_tl% +\tl_gset:Nn \g__nwejm_mainmatter_switch_tl { + \bool_gset_false:N \g__nwejm_frontmatter_bool + \bool_gset_true:N \g__nwejm_mainmatter_bool + \mainmatter + % \SetParskip{\c__nwejm_mainmatter_parskip_skip} + \pagestyle{__nwejm_mainmatter_ps}% + \exp_after:wN\newgeometry\exp_after:wN{\c__nwejm_main_geometry_tl}% +} +\tl_new:N \g__nwejm_article_acknowledgments_tl% +\cs_new_protected:Nn \__nwejm_article_acknowledgments:n +{ + \tl_gset:Nn \g__nwejm_article_acknowledgments_tl { #1 } +} +\NewDocumentCommand \acknowledgments { m } { + \__nwejm_article_acknowledgments:n {#1} +} +\tl_new:N \g__nwejm_article_bib_key_tl% +\tl_new:N \l__nwejm_people_first_last_names_tl +\tl_new:N \g__nwejm_authors_first_last_names_tl% +\tl_new:N \g__nwejm_citeauthor_no_giveninits% +\tl_new:N \g__nwejm_citeauthor_tl% +\int_new:N \g__nwejm_author_s_number_current_article_int% +\cs_new_protected:Nn \__nwejm_citeauthor_no_giveninits:n {% + \tl_gset:Nn \g__nwejm_citeauthor_tl {% + \DeclareNameAlias{labelname}{default}% + \group_begin: + \togglefalse{blx@giveninits}% + \citeauthor{#1} + \group_end: + }% + \cs_if_exist:cTF {texorpdfstring} + { + \texorpdfstring{\g__nwejm_citeauthor_tl}{} + }{% + \g__nwejm_citeauthor_tl + }% +} +\cs_set_eq:NN \__nwejm_orig_multinamedelim \multinamedelim +\cs_set_eq:NN \__nwejm_orig_finalnamedelim \finalnamedelim +\cs_new_protected:Nn \__nwejm_maketitle_citeauthor:n +{ + \restorecommand\mkbibnamelast + \def\multinamedelim {\hskip 1em \@plus.17fil}% + \cs_set_eq:NN \finalnamedelim \multinamedelim + \AtNextCitekey{\defcounter{maxnames}{100}} + \group_begin: + \DeclareNameAlias{labelname}{default}% + \togglefalse{blx@giveninits}% + \citeauthor{#1} + \group_end: + \cs_set_eq:NN \multinamedelim \__nwejm_orig_multinamedelim + \cs_set_eq:NN \finalnamedelim \__nwejm_orig_finalnamedelim + \protected\def\mkbibnamelast#1{% + \textsc{\textnohyphenation{#1}}}% +} +\cs_new_protected:Nn \__nwejm_display_author:n +{ + \seq_clear:N \l_tmpa_seq + \prop_get:NnN \g_authors_prop {author_#1} \l_tmpa_tl + \prop_map_inline:cn {l_author_ #1 _affiliations_prop} { + \seq_put_right:Nx \l_tmpa_seq { ##1 } + } + \seq_sort:Nn \l_tmpa_seq + { + \int_compare:nNnTF { ##1 } > { ##2 } + { \sort_reversed: } + { \sort_ordered: } + } + \mbox{% + \__nwejm_citeauthor_no_giveninits:n {\c__nwejm_issue_bib_key_tl -author-art- \int_use:N \g__nwejm_articles_int-#1} + } + \seq_map_inline:Nn \l_tmpa_seq { + \prop_get:cnN {l_author_ #1 _affiliations_prop} {##1} \l_tmpb_tl + \footnotemark[##1] + \tl_if_empty:NF \l_tmpb_tl + { + \footnotetext[##1]{\l_tmpb_tl} + } + } + \hskip 1em plus .17fil +} +\tl_new:N \l__nwejm_bullet_and_rule_tl +\tl_new:N \l__nwejm_authors_box_tl +\tl_new:N \l__nwejm_abstract_box_tl +\tl_new:N \l__nwejm_bullet_and_rule_odd_tl +\tl_new:N \l__nwejm_bullet_and_rule_even_tl +\tl_new:N \l__nwejm_title_box_tl +\tl_new:N \g__nwejm_title_for_toc_tl +\RenewDocumentCommand \maketitle { } { + \FloatBarrier% +\tl_gset:Nn \g__nwejm_article_bib_key_tl {% + \c__nwejm_issue_bib_key_tl + -art- + \int_use:N \g__nwejm_articles_int +} +\tl_if_empty:NF \g__nwejm_title_tl {% + \iow_now:Nx \g__nwejm_bib_out_iow {% + @article{ + \g__nwejm_article_bib_key_tl, + \iow_newline: + title={\exp_not:V\g__nwejm_title_tl}, + \iow_newline: + \tl_if_empty:NF \g__nwejm_subtitle_tl {% + subtitle={\exp_not:V\g__nwejm_subtitle_tl}, + \iow_newline: + } + \tl_if_eq:NNF { \g__nwejm_short_title_tl } { \g__nwejm_title_tl } {% + shorttitle={\exp_not:V\g__nwejm_short_title_tl}, + \iow_newline: + }% + \tl_if_empty:NF \l__nwejm_people_first_last_names_tl + { + author={\exp_not:V\l__nwejm_people_first_last_names_tl}, + \iow_newline: + } + options={skipbib}, + \iow_newline: + crossref = {\c__nwejm_issue_bib_key_tl} + } + \iow_newline: + }% + % \tl_clear:N \l__nwejm_people_first_last_names_tl +}% +\tl_set:Nn \l__nwejm_authors_box_tl +{% + \bool_if:nTF { \tl_if_empty_p:N \l__nwejm_people_first_last_names_tl } + { + \mbox{} + } + { + \int_set:Nn \l_tmpa_int { \__nwejm_prop_count:N \g_authors_prop} + \normalsize% + \int_step_inline:nnnn {1}{1}{\l_tmpa_int} { + \__nwejm_display_author:n {##1} + } + \prop_gclear:N \g_authors_prop + } +} +\int_zero:N \l_author_int +\prop_clear:N \l_affiliations_tagged_prop +\tl_set:Nn \l__nwejm_dates_box_tl +{% + \g__nwejm_display_dates_tl +} +\tl_set:Nn \l__nwejm_keywords_box_tl +{% + \noindent + { + \bfseries + \tl_mixed_case:n{ + \GetTranslation{plural-keyword} + \c__nwejm_colon_tl + } + } + \space\l__nwejm_keywords_tl. +} +\tl_set:Nn \l__nwejm_msc_box_tl +{% + \noindent\textbf{\c__nwejm_msc_string_tl}\c__nwejm_colon_tl\space\l__nwejm_msc_tl. +} +\tl_set:Nn \l__nwejm_abstract_box_tl +{% + \mbox{} + \par% + \vskip .5em% + \tl_if_empty:NTF \g__nwejm_abstract_body_tl + {% + \msg_warning:nn{nwejmart}{No~abstract} + }% + {% + \small + \begin{center}% + {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}% + \end{center}% + \begin{quotation} + \g__nwejm_abstract_body_tl + \end{quotation} + } +}% +\tl_set:Nn \g__nwejm_partial_title_for_toc_tl +{ + \tl_if_empty:NTF \g__nwejm_short_title_tl {% + \g__nwejm_title_tl% + }{ + \g__nwejm_short_title_tl% + } + \bool_if:nF { \tl_if_empty_p:N \g__nwejm_short_subtitle_tl } + { + .\space\g__nwejm_short_subtitle_tl + } +} +\tl_set:Nn \g__nwejm_title_for_toc_tl +{ + \g__nwejm_partial_title_for_toc_tl + \bool_if:nF { \tl_if_empty_p:N \l__nwejm_people_first_last_names_tl } + { + \textsl{ + \cs_if_exist:cTF {texorpdfstring} + { + \texorpdfstring{% + \AtNextCitekey{\defcounter{maxnames}{100}} + \space\textendash\space\citeauthor{\g__nwejm_article_bib_key_tl} + }{} + }{% + \space\textendash\space\citeauthor{\g__nwejm_article_bib_key_tl} + }% + } + } +} + \setsecnumdepth{none} + \chapter[\g__nwejm_title_for_toc_tl]{% + \LARGE% + \g__nwejm_title_tl + \tl_if_empty:NF \g__nwejm_subtitle_tl {% + \\[1ex]% + \Large% + \g__nwejm_subtitle_tl + }\\[2ex]% + \l__nwejm_authors_box_tl% + \bool_if:NT {\g__nwejm_date_specified_bool} + { + \\[2ex] + \l__nwejm_dates_box_tl + } + \\[-4ex] + } + \bool_gset_false:N \g__nwejm_date_specified_bool + \bookmarksetup{depth=subsection} + \setsecnumdepth{subsection} + \thispagestyle{__nwejm_article_title_ps}% +\l__nwejm_abstract_box_tl% +\normalsize +\tl_if_empty:NTF \l__nwejm_keywords_tl { + \msg_warning:nn{nwejmart}{No~keyword} +}{ + \l__nwejm_keywords_box_tl + \par% + \vskip .5em% +} +\tl_if_empty:NTF \l__nwejm_msc_tl { + \msg_warning:nn{nwejmart}{No~MSC} +}{ + \l__nwejm_msc_box_tl + \par% + \vskip .5em% +} +\tl_gclear:N \g__nwejm_title_tl +\tl_gclear:N \g__nwejm_subtitle_tl +\tl_gclear:N \g__nwejm_title_for_toc_tl +\tl_gclear:N \g__nwejm_abstract_body_tl + \tl_gclear:N \g__nwejm_people_affiliation_tl + \tl_gclear:N \g__nwejm_people_email_tl + \tl_clear:N \l__nwejm_people_first_last_names_tl% +} +\AtEndPreamble{\file_input:n {\c__nwejm_configuration_file_string_tl}} +\DeclarePlainStyle{^^c2^^ab~}{~^^c2^^bb}{`}{'} +\setcounter{topnumber}{3} +\renewcommand{\topfraction}{0.8} +\addtolength{\skip\footins}{.25\baselineskip} +\setlength{\columnsep}{7mm}% +\renewcommand{\thesection}{\arabic{section}}% +\@ifpackageloaded{siunitx}{% + \addto\extrasenglish{\sisetup{locale = UK}} + \addto\extrasfrench{\sisetup{locale = FR}} + \addto\extrasngerman{\sisetup{locale = DE}} + \addto\extrasgerman{\sisetup{locale = DE}} + \addto\extrasdutch{% + \sisetup{% + exponent-product = \ensuremath { \times } , + inter-unit-product = \, , + output-decimal-marker = { , } + }% + } + \sisetup{detect-all} +} +\cs_set_eq:NN \__nwejm_section \section +\cs_set_eq:NN \__nwejm_subsection \subsection +\cs_set_eq:NN \__nwejm_subsubsection \subsubsection +\AfterPreamble{% + \RenewDocumentCommand \section { s o m } {% + \IfBooleanTF {#1} + { + \setsecnumdepth{none}% + } + { + \resetsecnumdepth*% + } + \IfNoValueTF{#2}{\__nwejm_section{#3}}{\__nwejm_section[#2]{#3}} + } + \RenewDocumentCommand \subsection { s o m } {% + \IfBooleanT {#1} + { + \setsecnumdepth{none}% + } + \IfNoValueTF{#2}{\__nwejm_subsection{#3}}{\__nwejm_subsection[#2]{#3}} + } + \RenewDocumentCommand \subsubsection { s o m } {% + \IfBooleanT {#1} + { + \setsecnumdepth{none}% + } + \IfNoValueTF{#2}{\__nwejm_subsubsection{#3}}{\__nwejm_subsubsection[#2]{#3}} + } +} +\int_new:N \l__nwejm_abs_int +\cs_new_protected:Nn \__nwejm_ordinalnum_suffix:n +{ + \int_set:Nn \l__nwejm_abs_int {\int_abs:n {#1}} + \ifcurrentbaselanguage{english}{ + \int_use:N \l__nwejm_abs_int + \int_set:Nn \l_tmpa_int {\int_mod:nn {\l__nwejm_abs_int} {\c_one_hundred}} + \int_case:nnF + { \l_tmpa_int } + { + { \c_eleven } { \fmtord{th} } + { \c_twelve } { \fmtord{th} } + { \c_thirteen } { \fmtord{th} } + }{ + \int_set:Nn \l_tmpb_int {\int_mod:nn {\l__nwejm_abs_int} {\c_ten}} + \int_case:nnF + { \l_tmpb_int } + { + { \c_zero } { \fmtord{th} } + { \c_one } { \fmtord{st} } + { \c_two } { \fmtord{nd} } + { \c_three } { \fmtord{rd} } + }{ + \fmtord{th} + } + } + }{ + \ifcurrentbaselanguage{dutch}{ + \int_use:N \l__nwejm_abs_int + e + }{ + \textsc{\int_to_roman:n {\int_abs:n {#1}}} + \ifcurrentbaselanguage{french}{ + \int_compare:nNnTF { \l__nwejm_abs_int } = { 1 }{\fmtord{er}}{\fmtord{e}} + }{ + \ifcurrentbaselanguage{german}{ + . + }{ + \ifcurrentbaselanguage{ngerman}{ + . + }{ + } + } + } + } + } +} +\cs_new_protected:Nn \__nwejm_century_suffix:n +{ + \space{} + \GetTranslation{century}% + \int_compare:nNnT { #1 } < { 0 }{ + \space + \GetTranslation{before-christ} + }{ + } +} +\NewDocumentCommand \century { s m } {% + \__nwejm_ordinalnum_suffix:n {#2}% + \IfBooleanTF {#1} + { + \int_compare:nNnT { #2 } < { 0 }{ + \__nwejm_century_suffix:n {#2}% + } + }{ + \__nwejm_century_suffix:n {#2}% + } + \int_compare:nNnT { #2 } < { 0 }{ + \ifcurrentbaselanguage{english}{% + }{ + \@ifnextchar.% + { + }{ + .\xspace + }% + } + } +} +\NewDocumentCommand \aside { s m } {% + \IfBooleanTF {#1} + { + \c__nwejm_aside_string_tl{}~#2 + } + { + \c__nwejm_aside_string_tl{}~#2~\c__nwejm_aside_string_tl + } +} +\NewDocumentCommand \ie { s } {% + \IfBooleanTF {#1} + { + \GetTranslation{idest} + } + { + \GetTranslation{ie} + \@ifnextchar.% + { + }{ + .\xspace + }% + } +} +\NewDocumentCommand \Ie { s } {% + \IfBooleanTF {#1} + { + \GetTranslation{Idest} + } + { + \GetTranslation{Ie} + \@ifnextchar.% + { + }{ + .\xspace + }% + } +} +\RenewDocumentCommand \vec { m } { + \vv{#1} +} +\bool_new:N \g__nwejm_no_numbered_theorem_bool +\cs_new_protected:Nn \__nwejm_theorem_style:n +{ + \bool_gset_false:N \g__nwejm_no_numbered_theorem_bool + \str_case:nn + { #1 } + { + { theorem } { + \theoremstyle{plain} + \theoremheaderfont{\normalfont\bfseries} + \theorembodyfont{\itshape} + \theoremseparator{~--} + \theoremsymbol{} + } + { definition } { + \theoremstyle{plain} + \theoremheaderfont{\normalfont\bfseries} + \theorembodyfont{\normalfont} + \theoremseparator{~--} + \theoremsymbol{} + } + { proof } { + \theoremstyle{nonumberplain} + \bool_gset_true:N \g__nwejm_no_numbered_theorem_bool + \theoremheaderfont{\normalfont\itshape} + \theorembodyfont{\normalfont} + \theoremseparator{.} + \theoremsymbol{\ensuremath{\square}} + } + } +} +\cs_set_eq:NN \__nwejm_orig_newtheorem \newtheorem +\cs_new_protected:Nn \__nwejm_new_theorem:nnnnn +{ + \AtBeginDocument{% + \IfTranslation{English}{#1}{% + }{% + \DeclareTranslation{English}{#1}{\tl_mixed_case:n{#2}}% + } + \IfTranslation{French}{#1}{% + }{% + \DeclareTranslation{French}{#1}{\tl_mixed_case:n{#3}}% + } + \IfTranslation{German}{#1}{% + }{% + \DeclareTranslation{German}{#1}{\tl_mixed_case:n{#4}}% + } + \IfTranslation{Dutch}{#1}{% + }{% + \DeclareTranslation{Dutch}{#1}{\tl_mixed_case:n{#5}}% + } + } + \__nwejm_orig_newtheorem{#1}{\protect\tl_mixed_case:n{ \protect\GetTranslation{#1} }} + \bool_if:NF {\g__nwejm_no_numbered_theorem_bool} { + \__nwejm_orig_newtheorem*{#1__nwejm_nonumbered}{\protect\tl_mixed_case:n{ \protect\GetTranslation{#1} }} + } +} +\cs_generate_variant:Nn \__nwejm_new_theorem:nnnnn { nVVVV } +\RenewDocumentCommand \newtheorem { O{} m } +{ + \tl_clear:N \l__nwejm_newtheorem_style_tl + \tl_clear:N \l__nwejm_newtheorem_title_tl + \tl_clear:N \l__nwejm_newtheorem_french_title_tl + \tl_clear:N \l__nwejm_newtheorem_english_title_tl + \tl_clear:N \l__nwejm_newtheorem_german_title_tl + \tl_clear:N \l__nwejm_newtheorem_dutch_title_tl + % + \tl_set:Nn \l__nwejm_newtheorem_english_title_tl { + #2 + } + \tl_set:Nf \l__nwejm_newtheorem_french_title_tl { + \l__nwejm_newtheorem_english_title_tl + } + \tl_set:Nf \l__nwejm_newtheorem_german_title_tl { + \l__nwejm_newtheorem_english_title_tl + } + \tl_set:Nf \l__nwejm_newtheorem_dutch_title_tl { + \l__nwejm_newtheorem_english_title_tl + } + \tl_set:Nn \l__nwejm_newtheorem_style_tl { + theorem + } + \__nwejm_theorem_style:n {theorem} + \IfNoValueF {#1} + { + \keys_set:nn { nwejm / newtheorem } { #1 } + \tl_if_empty:NF \l__nwejm_newtheorem_title_tl {% + \tl_set:Nf \l__nwejm_newtheorem_english_title_tl + { + \l__nwejm_newtheorem_title_tl + } + \tl_set:Nf \l__nwejm_newtheorem_french_title_tl + { + \l__nwejm_newtheorem_title_tl + } + \tl_set:Nf \l__nwejm_newtheorem_german_title_tl + { + \l__nwejm_newtheorem_title_tl + } + \tl_set:Nf \l__nwejm_newtheorem_dutch_title_tl + { + \l__nwejm_newtheorem_title_tl + } + } + } + % + \__nwejm_new_theorem:nVVVV + {#2} + {\l__nwejm_newtheorem_english_title_tl} + {\l__nwejm_newtheorem_french_title_tl} + {\l__nwejm_newtheorem_german_title_tl} + {\l__nwejm_newtheorem_dutch_title_tl} + \makesavenoteenv{#2} + \bool_if:NF {\g__nwejm_no_numbered_theorem_bool} { + \ifcsmacro{#2*}{% + \RenewDocumentEnvironment{#2*}{o} + { + \IfNoValueTF {##1} + { \begin{#2__nwejm_nonumbered} } + { \begin{#2__nwejm_nonumbered}[##1] } + }{ + \end{#2__nwejm_nonumbered} + } + }{ + \NewDocumentEnvironment{#2*}{o} + { + \IfNoValueTF {##1} + { \begin{#2__nwejm_nonumbered} } + { \begin{#2__nwejm_nonumbered}[##1] } + }{ + \end{#2__nwejm_nonumbered} + } + } + } + \clist_put_right:Nn \g__nwejm_counters_to_be_reset_clist {#2} +} +\newtheorem{theorem} +\newtheorem{corollary} +\newtheorem{conjecture} +\newtheorem{proposition} +\newtheorem{lemma} +\newtheorem{axiom} +\newtheorem[style=definition]{definition} +\newtheorem[style=definition]{remark} +\newtheorem[style=definition]{example} +\newtheorem[style=definition]{notation} +\newtheorem[style=proof]{proof} +\cs_new_protected:Nn \__nwejm_clone_theorem:nn +{ + \NewDocumentEnvironment{#1}{} + { + \begin{#2} + }{ + \end{#2} + } + \NewDocumentEnvironment{#1*}{} + { + \begin{#2*} + }{ + \end{#2*} + } +} +\__nwejm_clone_theorem:nn {Theorem}{theorem} +\__nwejm_clone_theorem:nn {Corollary}{corollary} +\__nwejm_clone_theorem:nn {Conjecture}{conjecture} +\__nwejm_clone_theorem:nn {Proposition}{proposition} +\__nwejm_clone_theorem:nn {Lemma}{lemma} +\__nwejm_clone_theorem:nn {Axiom}{axiom} +\__nwejm_clone_theorem:nn {Definition}{definition} +\__nwejm_clone_theorem:nn {Remark}{remark} +\__nwejm_clone_theorem:nn {Example}{example} +\__nwejm_clone_theorem:nn {Notation}{notation} +\__nwejm_clone_theorem:nn {Proof}{proof} +\clist_set:Nn \l_tmpa_clist {% + theorem, + corollary, + conjecture, + proposition, + lemma, + axiom, + definition, + remark, + example, + notation, + proof% +} +\clist_map_inline:Nn \l_tmpa_clist { + \crefname{#1}{ + \GetTranslation{#1} + }{% + \GetTranslation{plural-#1} + } + \Crefname{#1}{ + \tl_mixed_case:n{ \protect + \GetTranslation{#1} + } + }{% + \tl_mixed_case:n{ + \GetTranslation{plural-#1} + } + } +} +\clist_set:Nn \l_tmpa_clist {% + hypothesis, + assertion% +} +\clist_map_inline:Nn \l_tmpa_clist { + \newlist{#1}{enumerate}{1} + \setlist[#1]{% + label= + \normalfont + ( + \textsf{ + \tl_upper_case:n {\tl_head:f {\GetTranslation{#1}}} + } + $\c_math_subscript_token\mathsf{\arabic*}$), + ref=( + \textsf{ + \tl_upper_case:n {\tl_head:f {\GetTranslation{#1}}} + } + $_\mathsf{\arabic*}$ + ) + } + \crefname{#1i}{ + \GetTranslation{#1} + }{% + \GetTranslation{plural-#1} + } + \Crefname{#1i}{ + \tl_mixed_case:n{ + \GetTranslation{#1} + } + }{% + \tl_mixed_case:n{ + \GetTranslation{plural-#1} + } + } +} +\NewDocumentEnvironment{hypotheses}{} +{ + \begin{hypothesis} + }{ + \end{hypothesis} +} +\NewDocumentEnvironment{assertions}{} +{ + \begin{assertion} + }{ + \end{assertion} +} +\RenewDocumentCommand{\DeclareMathOperator}{mm} +{ + \NewDocumentCommand{#1}{} + { + \operatorname{#2} + \peek_after:Nw \__nwejm_opx_check: + } +} +\NewDocumentCommand{\BinaryOperators}{m} +{ + \clist_gput_right:Nn \g__nwejm_opx_binary_clist { #1 } +} +\clist_new:N \g__nwejm_opx_binary_clist +\cs_new_protected:Nn \__nwejm_opx_check: +{ + \clist_map_inline:Nn \g__nwejm_opx_binary_clist + { + \token_if_eq_meaning:NNT \l_peek_token ##1 { \clist_map_break:n { {\!} } } + } +} +\BinaryOperators{% + \amalg,% + \ast,% + \bigcirc,% + \bigtriangledown,% + \bigtriangleup,% + \bullet,% + \cap,% + \cdot,% + \circ,% + \cup,% + \dagger,% + \ddagger,% + \diamond,% + \div,% + \lhd,% + \mp,% + \odot,% + \ominus,% + \oplus,% + \oslash,% + \otimes,% + \pm,% + \rhd,% + \setminus,% + \sqcap,% + \sqcup,% + \star,% + \times,% + \triangleleft,% + \triangleright,% + \unlhd,% + \unrhd,% + \uplus,% + \vee,% + \wedge,% + \wr,% + \barwedge,% + \boxdot,% + \boxminus,% + \boxplus,% + \boxtimes,% + \Cap,% + \centerdot,% + \circledast,% + \circledcirc,% + \circleddash,% + \Cup,% + \curlyvee,% + \curlywedge,% + \divideontimes,% + \dotplus,% + \doublebarwedge,% + \intercal,% + \leftthreetimes,% + \ltimes,% + \rightthreetimes,% + \rtimes,% + \smallsetminus,% + \veebar% +} +\DeclareMathOperator{\cotan}{cotan} +\DeclareMathOperator{\Arccos}{Arccos} +\DeclareMathOperator{\Arcsin}{Arcsin} +\DeclareMathOperator{\Arctan}{Arctan} +\DeclareMathOperator{\arccosh}{arccosh} +\DeclareMathOperator{\arcsinh}{arcsinh} +\DeclareMathOperator{\arctanh}{arctanh} +\DeclareMathOperator{\Argch}{Argch} +\DeclareMathOperator{\Argsh}{Argsh} +\DeclareMathOperator{\Argth}{Argth} +\cs_set_eq:NN \__nwejm_orig_arccos \arccos +\cs_set_eq:NN \__nwejm_orig_arcsin \arcsin +\cs_set_eq:NN \__nwejm_orig_arctan \arctan +\cs_set_eq:NN \__nwejm_orig_arccosh \arccosh +\cs_set_eq:NN \__nwejm_orig_arcsinh \arcsinh +\cs_set_eq:NN \__nwejm_orig_arctanh \arctanh +\RenewDocumentCommand \arccos {} { + \ifcurrentbaselanguage{french}{\Arccos}{\__nwejm_orig_arccos}% +} +\RenewDocumentCommand \arcsin {} { + \ifcurrentbaselanguage {french}{\Arcsin}{\__nwejm_orig_arcsin}% +} +\RenewDocumentCommand \arctan {} { + \ifcurrentbaselanguage {french}{\Arctan}{\__nwejm_orig_arctan}% +} +\RenewDocumentCommand \arccosh {} { + \ifcurrentbaselanguage{french}{\Argch}{\__nwejm_orig_arccosh}% +} +\RenewDocumentCommand \arcsinh {} { + \ifcurrentbaselanguage {french}{\Argsh}{\__nwejm_orig_arcsinh}% +} +\RenewDocumentCommand \arctanh {} { + \ifcurrentbaselanguage {french}{\Argth}{\__nwejm_orig_arctanh}% +} +\cs_set_eq:NN \__nwejm_orig_cot \cot +\RenewDocumentCommand \cot {} { + \ifcurrentbaselanguage {french}{\cotan}{\__nwejm_orig_cot}% +} +\DeclareMathOperator{\ch}{ch} +\DeclareMathOperator{\sh}{sh} +\cs_set_eq:NN \__nwejm_orig_cosh \cosh +\cs_set_eq:NN \__nwejm_orig_sinh \sinh +\cs_set_eq:NN \__nwejm_orig_tanh \tanh +\RenewDocumentCommand \cosh {} { + \ifcurrentbaselanguage {french}{\ch}{\__nwejm_orig_cosh}% +} +\RenewDocumentCommand \sinh {} { + \ifcurrentbaselanguage {french}{\sh}{\__nwejm_orig_sinh}% +} +\RenewDocumentCommand \tanh {} { + \ifcurrentbaselanguage {french}{\operatorname{th}}{\__nwejm_orig_tanh}% +} +\DeclareMathOperator{\Id}{Id} +\cs_set_eq:NN \__nwejm_orig_log \log +\cs_set_eq:NN \__nwejm_orig_lg \lg +\RenewDocumentCommand \log { s } { + \IfBooleanTF {#1} + { + \__nwejm_orig_log + } + { + \ln + } +} +\RenewDocumentCommand \lg { s } { + \IfBooleanTF {#1} + { + \__nwejm_orig_lg + } + { + \ln + } +} +\NewDocumentCommand \E { O{} } { + \ensuremath{ + \mathsf{e} + \tl_if_empty:nF {#1} {^{#1}} + } +} +\NewDocumentCommand \I { } { + \ensuremath{\mathsf{i}} +} +\bool_new:N \g__nwejm_grad_used_bool +\NewDocumentCommand \grad {} {% + \bool_if:NTF \g__nwejm_gradient_nabla_bool { + \operatorname{\nabla} + }{ + \operatorname{grad} + }% + \peek_after:Nw \__nwejm_opx_check: + \bool_if:NTF \g__nwejm_grad_used_bool { + \bool_if:nT { (\g__nwejm_gradient_nabla_bool && !\g__nwejm_gradient_nabla_control_bool) + || ( !\g__nwejm_gradient_nabla_bool && \g__nwejm_gradient_nabla_control_bool) } { + \msg_error:nnn{nwejmart}{Article~setup~not~consistent}{gradient} + } + }{ + \bool_gset_eq:NN \g__nwejm_gradient_nabla_control_bool \g__nwejm_gradient_nabla_bool + \bool_gset_true:N \g__nwejm_grad_used_bool + } +} +\DeclareMathOperator{\Div}{div} +\NewDocumentCommand \curl {} {% + \ifcurrentbaselanguage {english}{ + \operatorname{curl} + }{ + \operatorname{rot} + }% + \peek_after:Nw \__nwejm_opx_check: +} +\NewDocumentCommand \supp {} {% + \ifcurrentbaselanguage {ngerman}{ + \operatorname{Tr} + }{ + \operatorname{supp} + }% + \peek_after:Nw \__nwejm_opx_check: +} +\NewDocumentCommand \dif {}{\mathop{}\!\mathrm{d}} +\cs_set_eq:NN \__nwejm_orig_leq \leq +\cs_set_eq:NN \__nwejm_orig_geq \geq +\RenewDocumentCommand \le {} {% + \ifcurrentbaselanguage {french}{\leqslant}{\__nwejm_orig_leq}% +} +\RenewDocumentCommand \leq {} {% + \ifcurrentbaselanguage {french}{\leqslant}{\__nwejm_orig_leq}% +} +\RenewDocumentCommand \ge {} {% + \ifcurrentbaselanguage {french}{\geqslant}{\__nwejm_orig_geq}% +} +\RenewDocumentCommand \geq {} {% + \ifcurrentbaselanguage {french}{\geqslant}{\__nwejm_orig_geq}% +} +\NewDocumentCommand \bbN {} {\mathbb{N}} +\NewDocumentCommand \bbZ {} {\mathbb{Z}} +\NewDocumentCommand \bbD {} {\mathbb{D}} +\NewDocumentCommand \bbQ {} {\mathbb{Q}} +\NewDocumentCommand \bbR {} {\mathbb{R}} +\NewDocumentCommand \bbC {} {\mathbb{C}} +\NewDocumentCommand \bbK {} {\mathbb{K}} +\cs_set_eq:NN \emptyset \varnothing +\tl_new:N \l__nwejm_given_tl +\tl_set:Nn \l__nwejm_given_tl { + \nonscript\:\delimsize\slash + \allowbreak + \nonscript\: + \mathopen{} +}% +\DeclarePairedDelimiterX\__nwejm_set[1]\{\}{% + #1 +} +\NewDocumentCommand \set { m O{} } { + \if@display + \tl_if_empty:nTF {#2} {% + \__nwejm_set*{#1} + }{ + \__nwejm_set*{#1\l__nwejm_given_tl #2} + } + \else + \tl_if_empty:nTF {#2} {% + \__nwejm_set{#1} + }{ + \__nwejm_set{#1\l__nwejm_given_tl #2} + } + \fi +} +\DeclareDocumentCommand{\NewPairedDelimiter}{mm} + { + \__nwejm_delimiter_clear_keys: % reset to the default + \keys_set:nn { nwejm/delimiters } { #2 } + \use:x % we want to expand the values of the token variables set with the keys + { + \exp_not:n {\NewDocumentCommand{#1}{sO{}m} } + { + \exp_not:n { \IfBooleanTF{##1} } + { + \exp_not:N \__nwejm_paired_delimiter:nnnnn + { \exp_not:n { 0 } } + { \exp_not:V \l__nwejm_delimiter_left_tl } + { \exp_not:V \l__nwejm_delimiter_right_tl } + { \exp_not:n { ##3 } } + { \exp_not:V \l__nwejm_delimiter_subscript_tl } + } + { + \exp_not:N \__nwejm_paired_delimiter:nnnnn + { \exp_not:n { ##2 } } + { \exp_not:V \l__nwejm_delimiter_left_tl } + { \exp_not:V \l__nwejm_delimiter_right_tl } + { \exp_not:n { ##3 } } + { \exp_not:V \l__nwejm_delimiter_subscript_tl } + } + } + } + } +\keys_define:nn { nwejm/delimiters } + { + left .tl_set:N = \l__nwejm_delimiter_left_tl, + right .tl_set:N = \l__nwejm_delimiter_right_tl, + subscript .tl_set:N = \l__nwejm_delimiter_subscript_tl, + } +\cs_new_protected:Npn \__nwejm_delimiter_clear_keys: + { + \keys_set:nn { nwejm/delimiters } { left=.,right=.,subscript={} } + } +\cs_new_protected:Npn \__nwejm_paired_delimiter_expand:nnnn #1 #2 #3 #4 + {% Fix the spacing issue with \left and \right (D. Arsenau, P. Stephani and H. Oberdiek) + \mathopen{} + \mathclose\c_group_begin_token + \left#1 + #3 + \group_insert_after:N \c_group_end_token + \right#2 + \tl_if_empty:nF {#4} { \c_math_subscript_token {#4} } + } +\cs_new_protected:Npn \__nwejm_paired_delimiter_fixed:nnnnn #1 #2 #3 #4 #5 + { + \mathopen{#1#2}#4\mathclose{#1#3} + \tl_if_empty:nF {#5} { \c_math_subscript_token {#5} } + } +\cs_new_protected:Npn \__nwejm_paired_delimiter:nnnnn #1 #2 #3 #4 #5 + { + \str_case:nnF {#1} + { + { } { \__nwejm_paired_delimiter_expand:nnnn {#2}{#3}{#4}{#5} } + {0} { \__nwejm_paired_delimiter_fixed:nnnnn {}{#2}{#3}{#4}{#5} } + {1} { \__nwejm_paired_delimiter_fixed:nnnnn { \big }{#2}{#3}{#4}{#5} } + {\big} { \__nwejm_paired_delimiter_fixed:nnnnn { \big }{#2}{#3}{#4}{#5} } + {2} { \__nwejm_paired_delimiter_fixed:nnnnn { \Big }{#2}{#3}{#4}{#5} } + {\Big} { \__nwejm_paired_delimiter_fixed:nnnnn { \Big }{#2}{#3}{#4}{#5} } + {3} { \__nwejm_paired_delimiter_fixed:nnnnn { \bigg }{#2}{#3}{#4}{#5} } + {\bigg} { \__nwejm_paired_delimiter_fixed:nnnnn { \bigg }{#2}{#3}{#4}{#5} } + {4} { \__nwejm_paired_delimiter_fixed:nnnnn { \Bigg }{#2}{#3}{#4}{#5} } + {\Bigg} { \__nwejm_paired_delimiter_fixed:nnnnn { \Bigg }{#2}{#3}{#4}{#5} } + } + { + \msg_warning:nnn{nwejmart}{Wrong~paired~delimiter's~size~parameter}{#1} + \__nwejm_paired_delimiter_expand:nnnn {#2}{#3}{#4} + } + } +\NewPairedDelimiter{\norm}{ + left=\lVert, + right=\rVert +} +\NewPairedDelimiter{\lnorm}{ + left=\lVert, + right=\rVert, + subscript=1 +} +\NewPairedDelimiter{\llnorm}{ + left=\lVert, + right=\rVert, + subscript=2 +} +\NewPairedDelimiter{\lpnorm}{ + left=\lVert, + right=\rVert, + subscript=p +} +\NewPairedDelimiter{\supnorm}{ + left=\lVert, + right=\rVert, + subscript=\infty +} +\NewPairedDelimiter{\abs}{ + left=\lvert, + right=\rvert +} +\NewPairedDelimiter{\prt}{ + left=(, + right=) +} +\NewPairedDelimiter{\brk}{ + left=[, + right=] +} +\NewPairedDelimiter{\brc}{ + left=\{, + right=\} +} +\NewPairedDelimiter{\lrangle}{ + left=\langle, + right=\rangle +} +\NewPairedDelimiter{\leqgeq}{ + left=<, + right=> +} +\AfterEndPreamble{ + \autonum@generatePatchedReferenceCSL{vref} + \clist_set:Nn \l_tmpa_clist {equation,align,gather,multline,flalign} + \clist_map_inline:Nn \l_tmpa_clist { + \cs_set_eq:cc {#1*} {#1} + \cs_set_eq:cc {end#1*} {end#1} + } + % \msg_warning:nnn{nwejmart}{Starred~AMS~environments}{#1} +} +\etocsettocdepth{section} +\@ifpackageloaded{pgfplots}{% + \ifcurrentbaselanguage{french}{% + \pgfplotsset{% + /pgf/number~format/.cd, + use~comma, + 1000~sep={\,}, + min~exponent~for~1000~sep=4 + }% + }{ + } +} +\AtEndPreamble{% + \defbibheading{__nwejm_subbibliography}[\refname]{% + \section*{#1} + }% + \SetCiteCommand{\autocite}% +}% +\int_new:N \l__nwejm_section_int +\cs_set_eq:NN \__nwejm_printbibliography \printbibliography +\RenewDocumentCommand \printbibliography { O{} } { + \FloatBarrier% + \tl_if_empty:NF {\g__nwejm_article_acknowledgments_tl} + { + \section*{\GetTranslation{Acknowledgments}} + \g__nwejm_article_acknowledgments_tl + \tl_gclear:N \g__nwejm_article_acknowledgments_tl + } + \__nwejm_printbibliography[heading=__nwejm_subbibliography,resetnumbers,#1] +} +\exp_after:wN\addbibresource\exp_after:wN{\c__nwejm_issue_bib_path_string_tl} +\ifkp@easyscsl +\DeclareRobustCommand{\itshape}{\not@math@alphabet\itshape\mathit% + \ifthenelse{\equal{\f@shape}{\scdefault}}{\fontshape{scsl}}{% + \fontshape\itdefault}\selectfont} +\fi +\DeclareMathAlphabet\mathfrak{U}{euf}{m}{n} +\SetMathAlphabet\mathfrak{bold}{U}{euf}{b}{n} +\expandafter\def\expandafter\pdfstringdefPreHook +\expandafter{% + \pdfstringdefPreHook + \renewcommand{\acrshort}[1]{\tl_upper_case:n {\glsentryshort{##1}}}% +} +\@ifpackageloaded{draftwatermark}{% + \SetWatermarkColor{gray!10}% + \SetWatermarkFontSize{30mm}% + \SetWatermarkText{\MakeUppercase{\c__nwejm_draftwatermark_string_tl}}% +}{% +} +\pdftex_if_engine:T + { + \renewcommand{\ttdefault}{lmtt} + } +\tl_new:N \g__nwejm_font_designer_text_tl% +\cs_new_protected:Nn \__nwejm_font_designer_text:n +{ + \tl_gset:Nn \g__nwejm_font_designer_text_tl { #1 } +} +\NewDocumentCommand \fontdesignertext {m} +{ + \__nwejm_font_designer_text:n {#1}% +} +\tl_new:N \g__nwejm_printer_text_tl% +\cs_new_protected:Nn \__nwejm_printer_text:n +{ + \tl_gset:Nn \g__nwejm_printer_text_tl { #1 } +} +\NewDocumentCommand \printertext {m} +{ + \__nwejm_printer_text:n {#1}% +} +\NewDocumentCommand \nwejm { s } { + \IfBooleanTF {#1} + { + \g__nwejm_nwejm_string_tl + } + { + \g__nwejm_nwejm_short_string_tl + } + \xspace +} +\AtBeginDocument{% + \dim_if_exist:NTF \g__nwejm_pagegrid_dim {% + \pagegridsetup{% + enable,% + step=\g__nwejm_pagegrid_dim% + } + }{% + \pagegridsetup{% + disable% + } + } + \bool_if:NTF {\g__nwejm_for_authors_bool} { + \thispagestyle{empty} + \includegraphics{gzt-logo} + \hfill + \includegraphics[height=22.5mm]{\c__nwejm_smf_logo_file_string_tl}% + \par + \vfill + \begin{adjustbox}{valign=c,minipage=\linewidth} + \Large% + \c__nwejm_preliminary_version_string_tl% + \end{adjustbox} + \vfill + \newpage + }{ + \bool_if:NF {\g__nwejm_inside_pages_bool} { + \g__nwejm_display_frontcover_tl + \g__nwejm_display_inside_frontcover_tl + } + \tableofcontents + } +} +\AfterEndPreamble{% + \titleformat{\chapter}[block] + {\normalfont\centering}{}{0pt}{} + \titlespacing*{\chapter}{0pt}{0pt}{0pt} +} +\ExplSyntaxOff +\patchcmd{\autonum@saveEnvironmentSubcommands} + {(0,0)\begin} + {(0,0)\hfuzz=\maxdimen\begin} + {}{} +%% +%% Copyright (C) 2015, 2016 by Denis Bitouze <denis.bitouze@lmpa.univ-littoral.fr> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License (LPPL), either +%% version 1.3c of this license or (at your option) any later +%% version. The latest version of this license is in the file: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% This work is "maintained" (as per LPPL maintenance status) by +%% Denis Bitouze. +%% +%% This work consists of the file nwejm.dtx and a Makefile. +%% Running "make" generates the derived files README, nwejm.pdf and nwejm.cls. +%% Running "make inst" installs the files in the user's TeX tree. +%% Running "make install" installs the files in the local TeX tree. +%% +%% +%% End of file `nwejm.cls'. diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejm.dbx b/Master/texmf-dist/tex/latex/nwejm/nwejm.dbx new file mode 100644 index 00000000000..f1e28a4e9fa --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/nwejm.dbx @@ -0,0 +1,34 @@ +%% +%% This is file `nwejm.dbx', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% nwejm.dtx (with options: `datamodel') +%% -------:| ----------------------------------------------------------------- +%% nwejm:| Class for the journal "North-Western European Journal of Mathematics" +%% Author:| Denis Bitouze +%% E-mail:| denis.bitouze@lmpa.univ-littoral.fr +%% License:| Released under the LaTeX Project Public License v1.3c or later +%% See:| http://www.latex-project.org/lppl.txt +%% +%% +%% Copyright (C) 2015, 2016 by Denis Bitouze <denis.bitouze@lmpa.univ-littoral.fr> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License (LPPL), either +%% version 1.3c of this license or (at your option) any later +%% version. The latest version of this license is in the file: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% This work is "maintained" (as per LPPL maintenance status) by +%% Denis Bitouze. +%% +%% This work consists of the file nwejm.dtx and a Makefile. +%% Running "make" generates the derived files README, nwejm.pdf and nwejm.cls. +%% Running "make inst" installs the files in the user's TeX tree. +%% Running "make install" installs the files in the local TeX tree. +%% +%% +%% End of file `nwejm.dbx'. diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejm.lbx b/Master/texmf-dist/tex/latex/nwejm/nwejm.lbx new file mode 100644 index 00000000000..d609bd329d4 --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/nwejm.lbx @@ -0,0 +1,42 @@ +%% +%% This is file `nwejm.lbx', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% nwejm.dtx (with options: `languagemodel') +%% -------:| ----------------------------------------------------------------- +%% nwejm:| Class for the journal "North-Western European Journal of Mathematics" +%% Author:| Denis Bitouze +%% E-mail:| denis.bitouze@lmpa.univ-littoral.fr +%% License:| Released under the LaTeX Project Public License v1.3c or later +%% See:| http://www.latex-project.org/lppl.txt +%% + \ProvidesFile{nwejm.lbx} + \InheritBibliographyExtras{french}% extras are inherited from French... + \DeclareBibliographyStrings{% + inherit = {french},% .... as well as all the keys + number = {{\no}{\no}}, + volume = {{volume}{vol\adddot}}, + volumes = {{volumes}{vol\adddot}}, + } +%% +%% Copyright (C) 2015, 2016 by Denis Bitouze <denis.bitouze@lmpa.univ-littoral.fr> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License (LPPL), either +%% version 1.3c of this license or (at your option) any later +%% version. The latest version of this license is in the file: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% This work is "maintained" (as per LPPL maintenance status) by +%% Denis Bitouze. +%% +%% This work consists of the file nwejm.dtx and a Makefile. +%% Running "make" generates the derived files README, nwejm.pdf and nwejm.cls. +%% Running "make inst" installs the files in the user's TeX tree. +%% Running "make install" installs the files in the local TeX tree. +%% +%% +%% End of file `nwejm.lbx'. diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejmart.cls b/Master/texmf-dist/tex/latex/nwejm/nwejmart.cls new file mode 100644 index 00000000000..d762c18f060 --- /dev/null +++ b/Master/texmf-dist/tex/latex/nwejm/nwejmart.cls @@ -0,0 +1,1937 @@ +%% +%% This is file `nwejmart.cls', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% nwejm.dtx (with options: `class-article') +%% -------:| ----------------------------------------------------------------- +%% nwejm:| Class for the journal "North-Western European Journal of Mathematics" +%% Author:| Denis Bitouze +%% E-mail:| denis.bitouze@lmpa.univ-littoral.fr +%% License:| Released under the LaTeX Project Public License v1.3c or later +%% See:| http://www.latex-project.org/lppl.txt +%% +\RequirePackage{xparse} +\RequirePackage{l3keys2e} +\IfFileExists{l3sort.sty}{ + \RequirePackage{l3sort} +}{ +} +\RequirePackage{etoolbox} +\NeedsTeXFormat{LaTeX2e}[1999/12/01] +\ProvidesExplClass + {nwejmart} + {2015/09/30} + {1.00} + { + Class for the journal "North-Western European Journal of Mathematics". + } +\ExplSyntaxOn +\msg_new:nnnn{nwejm}{Issue~number~needed}{Option~`#1'~needed!} +{Please~specify~`#1=<number>', ~otherwise~`<number>'~will~be~set~to + ~`\int_use:N\c__nwejm_first_issue_number_int'.}% +\msg_new:nnnn{nwejmart}{Unknown~choice}{Choice~`#3'~invalid!} +{Please~specify~#1=#2.}% +\msg_new:nnn{nwejmart}{Unknown~tag}{There~ isn't~ any~ affiliation~ tagged~ + with~ `#1'.~ This~ one~ will~ be~ ignored.}% +\msg_new:nnn{nwejmart}{Unknown~language}{The~ option~ `#1'~ you~ passed~ isn't~ + a~ valid~ language~ name~ (only~ `english',~ `french',~ `ngerman',~ `german',~ + `dutch'~ are~ accepted).~ `english'~ will~ be~ used~ instead.}% +\msg_new:nnn{nwejmart}{No~keyword}{You~ haven't~ specify~ any~ keyword~ for~ + this~ article!}% +\msg_new:nnn{nwejmart}{No~MSC}{You~ haven't~ specify~ any~ Mathematical~ + Subject~ Classification~ (MSC)~ for~ this~ article!}% +\msg_new:nnn{nwejmart}{No~abstract}{You~ haven't~ specify~ any~ abstract~ for~ + this~ article!}% +\msg_new:nnn{nwejmart}{Starred~AMS~environments}{The~ starred~AMS~environment~ + `#1*'~should~ be~ avoided.~ It~ will ~be ~ replaced ~ by its~ unstarred~ counterpart~ `#1'.}% +\msg_new:nnn{ + nwejmart +}{Command~restricted~to~document~body~used~in~preamble}{The~command~#1 + can~be~used~only~in~document~body~and~not~in~preamble!}% +\msg_new:nnn{nwejmart}{Article~setup~not~consistent}{The~ article~ setup~ + concerning~ the~ option~ `#1'~ has~ changed~ after~ its~ 1st~ use.~ Please~ + use~ \articlesetup~ command~ just~ once,~ just~ after~ the~ beginning~ of~ + the~ document.}% +\msg_new:nnn{nwejmart}{Wrong~paired~delimiter's~size~parameter}{The~ + size~parameter~specified~ (`#1')~is~ not~ allowed:~ only~ `0',~`1'~(or~ + `\string\big'),~`2'~(or~ `\string\Big'),~`3'~(or~ `\string\big'g)~and~`4'~(or~ + `\string\Bigg')~ are ~ allowed. ~ It~ will~ be~ ignored.}% +\bool_new:N \g__nwejm_language_specified_bool +\cs_new_protected:Nn \__nwejm_language:n +{ + \bool_gset_true:N \g__nwejm_language_specified_bool% + \PassOptionsToPackage{main=#1}{babel} + \PassOptionsToPackage{#1}{varioref} + \AtBeginDocument{ + \LoadDictionaryFor{#1}{nwejm} + } + \AtEndPreamble{% + \FCloadlang{#1} + } + \AfterEndPreamble{% + \selectlanguage{#1} + } +} +\keys_define:nn { nwejm } +{ + 10pt .code:n = {% + \PassOptionsToClass{10pt}{book} + },% + 11pt .code:n = {% + \PassOptionsToClass{11pt}{book} + },% + 12pt .code:n = {% + \PassOptionsToClass{12pt}{book} + },% + english .code:n = { + \__nwejm_language:n {english} + },% + french .code:n = { + \__nwejm_language:n {french} + },% + german .code:n = { + \__nwejm_language:n {ngerman} + },% + ngerman .code:n = { + \__nwejm_language:n {ngerman} + },% + dutch .code:n = { + \__nwejm_language:n {dutch} + },% + % unknown .code:n = { + % \msg_warning:nnx{nwejmart}{Unknown~language}{\CurrentOption} + % \tl_gset:Nn \g__nwejm_language_tl {english} + % }, + nolocaltoc .code:n = { + \bool_gset_true:N \g__nwejm_nolocaltoc_bool + },% +}% +\ProcessKeysOptions { nwejm } +\LoadClass { book } +\PassOptionsToPackage{export}{adjustbox}% +\PassOptionsToPackage{fleqn}{mathtools}% +\PassOptionsToPackage{french,ngerman,dutch,english,noabbrev}{cleveref} +\bool_if:NF {\g__nwejm_language_specified_bool} { + \__nwejm_language:n {english} +} +\RequirePackage{silence} +\WarningFilter[nwejm]{kpfonts}{With 'easyscsl' option, don't fit together} +\WarningFilter[nwejm]{etex}{Extended allocation already in use} +\WarningFilter[nwejm]{etoc}{package tocvsec2 detected and its modification of} +\ActivateWarningFilters[nwejm] +\RequirePackage[l2tabu,orthodox]{nag} +\pdftex_if_engine:TF + { + \RequirePackage[T1]{fontenc} + \RequirePackage[utf8]{inputenc} + }{ + \RequirePackage{fontspec} + } +\RequirePackage[pagestyles]{titlesec}% +\RequirePackage{graphicx}% +\RequirePackage{adjustbox}% +\RequirePackage[multiple]{footmisc}% +\RequirePackage[svgnames]{xcolor}% +\RequirePackage{xspace}% +\RequirePackage[autostyle]{csquotes}% +\RequirePackage{array} +\RequirePackage{booktabs} +\RequirePackage{mathtools} +\RequirePackage[thmmarks,amsmath]{ntheorem} +\RequirePackage{mathrsfs} +\RequirePackage{esvect} +\RequirePackage[noDcommand]{kpfonts} +\RequirePackage{geometry} +\RequirePackage{translations}% +\RequirePackage{fmtcount}% +\RequirePackage{babel}% +\RequirePackage{varioref} +\RequirePackage{tocvsec2} +\RequirePackage{etoc}% +\RequirePackage[babel=true]{microtype}% +\RequirePackage[useregional]{datetime2}% +\RequirePackage[inline]{enumitem}% +\RequirePackage{environ} +\RequirePackage{footnote}% +\RequirePackage[hyperfootnotes=false,pdfencoding=unicode]{hyperref}% +\AtBeginDocument{% + \hypersetup{hidelinks,hypertexnames=false}% +}% +\RequirePackage[all]{hypcap} +\RequirePackage[numbered]{bookmark}% +\RequirePackage[nowarn]{glossaries}% +\RequirePackage{cleveref}% +\RequirePackage{autonum} +\RequirePackage[backend=biber,style=nwejm]{biblatex}% +\ExecuteBibliographyOptions{defernumbers=true,dashed=false,uniquename=init,backref,safeinputenc} +\makeglossaries +\setglossarystyle{indexhypergroup} +\setacronymstyle{long-sc-short} +\glsdisablehyper +\int_new:N \g__nwejm_articles_int +\clist_new:N \g__nwejm_counters_to_be_reset_clist +\int_const:Nn \c__nwejm_first_issue_number_int { 1 } +\int_const:Nn \c__nwejm_first_issue_year_int { 2016 } +\int_const:Nn \c__nwejm_first_issue_month_int { 1 } +\int_const:Nn \c__nwejm_interval_in_months_int { 6 } +\tl_const:Nn \c__nwejm_date_received_tl {received} +\tl_const:Nn \c__nwejm_date_accepted_tl {accepted} +\tl_const:Nn \c__nwejm_date_online_tl {online} +\tl_const:Nn \c__nwejm_dates_separator_tl {/} +\tl_const:Nn \c__nwejm_images_directory_string_tl {images} +\tl_const:Nn \c__nwejm_issue_images_path_string_tl {\c__nwejm_images_directory_string_tl} +\tl_const:Nn \c__nwejm_preliminary_version_string_tl {% + This~document~is~a~draft~that~lets~you~check~the~integrity~of~original~text~and + bibliography~of~your~article~to~appear~in~the~next~issue~of~the + \c__nwejm_journal_title_string_tl.~The~current~layout~may~not~be~the~final~one.% +} +\tl_const:Nn \c__nwejm_msc_string_tl {\textsc{msc}} +\tl_const:Nn \c__nwejm_colon_tl { + \ifcurrentbaselanguage{french}{\FBcolonspace}{}: + % \ifundef{\Fcolonspace}{\FBcolonspace}{\Fcolonspace}: +} +\tl_const:Nn \c__nwejm_aside_string_tl {--} +\tl_const:Nn \c__nwejm_draftwatermark_string_tl {draft} +\tl_const:Nn \c__nwejm_issue_bib_file_suffix_string_tl {__nwejm} +\tl_const:Nn \c__nwejm_issue_bib_file_string_tl {\c_job_name_tl\c__nwejm_issue_bib_file_suffix_string_tl.bib} +\tl_const:Nn \c__nwejm_issue_bib_path_string_tl {\c__nwejm_issue_bib_file_string_tl} +\tl_const:Nn \c__nwejm_issue_bib_key_tl {\int_use:N \g__nwejm_issue_number_int} +\tl_const:Nn \c__nwejm_journal_short_title_string_tl {\textsc{nwejm}} +\tl_const:Nn \c__nwejm_journal_title_string_tl { + North-Western~European~Journal~of~Mathematics% +} +\tl_const:Nn \c__nwejm_journal_front_cover_title_string_tl { + North-Western~European\\Journal\\of\\Mathematics% +} +\tl_const:Nn \c__nwejm_nwejm_class_name_tl {nwejm} +\tl_const:Nn \c__nwejm_nwejmarticle_class_name_tl {nwejmart} +\bool_new:N \g__nwejm_frontcover_bool +\bool_new:N \g__nwejm_inside_frontcover_bool +\bool_new:N \g__nwejm_inside_backcover_bool +\bool_new:N \g__nwejm_frontmatter_bool +\bool_new:N \g__nwejm_mainmatter_bool +\bool_new:N \g__nwejm_backmatter_bool +\bool_new:N \g__nwejm_backcover_bool +\bool_new:N \g__nwejm_date_specified_bool +\dim_const:Nn \c__nwejm_layoutheight_dim { 240mm} +\dim_const:Nn \c__nwejm_layoutwidth_dim { 170mm} +\dim_const:Nn \c__nwejm_printer_layoutoffset_dim { 5mm} +\bool_if:NTF {\g__nwejm_for_printer_bool} { + \dim_const:Nn \c__nwejm_potential_layoutoffset_dim { \c__nwejm_printer_layoutoffset_dim} +}{ + \dim_const:Nn \c__nwejm_potential_layoutoffset_dim {\c_zero_dim} +} +\bool_if:NTF {\g__nwejm_cover_bool} { + \dim_const:Nn \c__nwejm_potential_bindingoffset_dim { \c__nwejm_printer_bindingoffset_dim } +}{ + \dim_const:Nn \c__nwejm_potential_bindingoffset_dim {\c_zero_dim} +} +\dim_const:Nn \c__nwejm_paperheight_dim { \c__nwejm_layoutheight_dim+2\c__nwejm_potential_layoutoffset_dim} +\bool_if:NTF {\g__nwejm_cover_bool} { + \dim_const:Nn \c__nwejm_paperwidth_dim { + \c__nwejm_layoutwidth_dim + + + \c__nwejm_potential_layoutoffset_dim + +\c__nwejm_potential_bindingoffset_dim + } +}{ + \dim_const:Nn \c__nwejm_paperwidth_dim { + \c__nwejm_layoutwidth_dim + + + 2 + \c__nwejm_potential_layoutoffset_dim + +\c__nwejm_potential_bindingoffset_dim + } +} +\dim_const:Nn \c__nwejm_topmargin_dim { 20mm} +\dim_const:Nn \c__nwejm_topmargin_frontcover_dim { + \c__nwejm_topmargin_dim + % + 30mm +} +\dim_const:Nn \c__nwejm_topmargin_inside_cover_dim { + \c__nwejm_topmargin_dim + % +10mm +} +\dim_const:Nn \c__nwejm_topmargin_front_matter_dim { + \c__nwejm_topmargin_inside_cover_dim +} +\dim_const:Nn \c__nwejm_headsep_dim { 9.5mm} +\dim_const:Nn \c__nwejm_headsep_frontcover_dim { + \c__nwejm_headsep_dim + % +31mm + % -\c__nwejm_potential_layoutoffset_dim +} +\dim_const:Nn \c__nwejm_headsep_inside_frontcover_dim { + \c__nwejm_headsep_dim + +7mm +} +\dim_const:Nn \c__nwejm_headsep_front_matter_dim { + \c__nwejm_headsep_inside_frontcover_dim +} +\dim_const:Nn \c__nwejm_headheight_dim { 5mm } +\dim_const:Nn \c__nwejm_botmargin_dim { 30mm} +\dim_const:Nn \c__nwejm_footskip_dim { 10mm} +\dim_const:Nn \c__nwejm_margin_frontcover_dim { 15mm } +\dim_const:Nn \c__nwejm_bottom_frontcover_dim { 15mm } +\dim_const:Nn \c__nwejm_left_minipage_frontcover_dim { .4\linewidth } +\dim_const:Nn \c__nwejm_right_minipage_frontcover_dim { .6\linewidth } +\dim_const:Nn \c__nwejm_innermargin_dim { 23mm } +\dim_const:Nn \c__nwejm_outermargin_dim { 30mm } +\dim_const:Nn \c__nwejm_inside_cover_box_width_dim { 150mm }% +\dim_const:Nn \c__nwejm_innermargin_inside_cover_dim { + (\c__nwejm_layoutwidth_dim - \c__nwejm_inside_cover_box_width_dim)/2 + - \c__nwejm_potential_bindingoffset_dim + % + \c__nwejm_adjustmargin_dim +} +\dim_const:Nn \c__nwejm_outermargin_inside_cover_dim { + (\c__nwejm_layoutwidth_dim - \c__nwejm_inside_cover_box_width_dim)/2 + % - \c__nwejm_adjustmargin_dim +} +\dim_const:Nn \c__nwejm_innermargin_backcover_dim { 10mm } +\dim_const:Nn \c__nwejm_outermargin_backcover_dim { \c__nwejm_innermargin_backcover_dim } +\dim_const:Nn \c__nwejm_topmargin_backcover_dim { \c__nwejm_innermargin_backcover_dim } +\dim_const:Nn \c__nwejm_bottommargin_backcover_dim { \c__nwejm_innermargin_backcover_dim } +\dim_const:Nn \c__nwejm_front_matter_extra_innermargin_dim { \c_zero_dim } +\dim_const:Nn \c__nwejm_front_matter_extra_outermargin_dim { \c_zero_dim } +\dim_const:Nn \c__nwejm_inside_cover_offset_dim { \c_zero_dim }% +\geometry{% + papersize={\c__nwejm_paperwidth_dim,\c__nwejm_paperheight_dim} +} +\tl_const:Nn \c__nwejm_main_geometry_tl {% + ,layoutsize={\c__nwejm_layoutwidth_dim,\c__nwejm_layoutheight_dim} + ,layoutoffset=\c__nwejm_potential_layoutoffset_dim + ,textwidth=\c__nwejm_layoutwidth_dim*3/4 + ,textheight=\c__nwejm_layoutheight_dim*3/4 + % ,marginratio={4\string :6,5\string :7} + ,inner=\c__nwejm_innermargin_dim + ,headheight=\c__nwejm_headheight_dim + ,footskip=\c__nwejm_footskip_dim + % + % ,layoutsize={\c__nwejm_layoutwidth_dim,\c__nwejm_layoutheight_dim} + % ,layoutoffset=\c__nwejm_potential_layoutoffset_dim + % % ,bindingoffset=\c__nwejm_potential_bindingoffset_dim + % ,top=\c__nwejm_topmargin_dim% + % ,headheight=\c__nwejm_headheight_dim + % ,headsep=\c__nwejm_headsep_dim + % ,bottom=\c__nwejm_botmargin_dim + % ,footskip=\c__nwejm_footskip_dim + % ,inner=\c__nwejm_innermargin_dim + % ,outer=\c__nwejm_outermargin_dim +}% +\tl_new:N \l__nwejm_section_header_tl +\tl_set:Nn \l__nwejm_section_header_tl { + \ifthesection{% + \thesection.~% + }{% + } + \sectiontitle +}% +\newpagestyle{__nwejm_mainmatter_ps}[]{% + \sethead% + [ + \tl_if_exist:NT {\g__nwejm_short_title_tl} + { + \tl_if_empty:NF \g__nwejm_short_title_tl {% + \slshape\g__nwejm_short_title_tl + } + } + ]% + [% + ]% + [ + \DeclareNameAlias{labelname}{giveninits-last} + \AtNextCitekey{\defcounter{maxnames}{2}}\citeauthor{\g__nwejm_article_bib_key_tl} + ]% + { + \slshape\l__nwejm_section_header_tl + }% + {% + }% + { + }% + % + \setfoot% + {}% + {\thepage}% + {}% +} + \box_new:N \l__nwejm_journal_logo_box + \box_new:N \l__nwejm_journal_name_box + \AfterEndPreamble{% + \hbox_set:Nn \l__nwejm_journal_name_box + { + \bfseries% + \adjustbox{stack=l}{% + \c__nwejm_journal_title_string_tl + \mbox{} +} +} +\hbox_set:Nn \l__nwejm_journal_logo_box +{ + \includegraphics[width=1cm]{ nwejm-logo-NB } +} +\hbox_set_to_wd:Nnn \l__nwejm_journal_logo_box { 1cm } +{ + \box_move_down:nn + { + \box_ht:N \l__nwejm_journal_logo_box / 2 + - + \box_ht:N \l__nwejm_journal_name_box / 2 + } + { + \box_use:N \l__nwejm_journal_logo_box + } +} +\box_set_ht:Nn \l__nwejm_journal_logo_box { \c_zero_dim } +\box_set_dp:Nn \l__nwejm_journal_logo_box { \c_zero_dim } +} +\newpagestyle{__nwejm_article_title_ps}[]{% + % \widenhead{\c_zero_dim}{\c_zero_dim} + \sethead% + { + \box_use:N \l__nwejm_journal_name_box + }% + {% + }% + { + \box_use:N \l__nwejm_journal_logo_box + }% + % + \setfoot% + {}% + {\thepage}% + {}% +} +\def\@pnumwidth{\@tocrmarg} +\AtBeginDocument{% + \graphicspath{{\c__nwejm_issue_images_path_string_tl//}{../\c__nwejm_issue_images_path_string_tl//}} + % \glsdisablehyper +} + \AtBeginDocument{\g__nwejm_mainmatter_switch_tl} +\int_new:N \g__nwejm_issue_number_int +\int_new:N \g__nwejm_issue_month_int +\int_new:N \g__nwejm_issue_year_int +\tl_new:N \g__nwejm_frontcover_image_options_tl +\keys_define:nn { nwejm/issuesetup } +{ + number .int_gset:N = \g__nwejm_issue_number_int, + volume .int_gset:N = \g__nwejm_issue_volume_int, + volume .value_required:, + volume .initial:n = 0, +} +\keys_define:nn { nwejm/dates } +{ + received .code:n = { + \tl_gset:Nn \g__nwejm_reception_date_tl {#1} + \bool_gset_true:N \g__nwejm_date_specified_bool + }, + accepted .code:n = { + \tl_gset:Nn \g__nwejm_acception_date_tl {#1} + \bool_gset_true:N \g__nwejm_date_specified_bool + }, + online .code:n = { + \tl_gset:Nn \g__nwejm_online_date_tl {#1} + \bool_gset_true:N \g__nwejm_date_specified_bool + }, + received .value_required:, + accepted .value_required:, + online .value_required:, +} +\quark_new:N \q__nwejm +\int_new:N \l_author_int +\prop_new:N \g_authors_prop +\prop_new:N \l_affiliations_tagged_prop +\cs_generate_variant:Nn \prop_put_if_new:Nnn { NVn } +\cs_generate_variant:Nn \prop_gput_if_new:Nnn { Nxn } +\cs_generate_variant:Nn \prop_put_if_new:Nnn { NnV } +\cs_new:Npn \__nwejm_prop_count:nn #1#2 { + 1 } +\cs_new:Npn \__nwejm_prop_count:N #1 +{ \int_eval:n { 0 \prop_map_function:NN #1 \__nwejm_prop_count:nn } } +\NewDocumentCommand \__nwejm_author_affiliation:ww { o u\q__nwejm } +{ + \stepcounter{footnote} + \prop_put_if_new:NVn \l_tmpa_prop {\the\c@footnote} {#2} + \IfValueT{#1}{% + \prop_put_if_new:NnV \l_affiliations_tagged_prop {#1} {\the\c@footnote} + } +} +\keys_define:nn { nwejm / authors } +{ + email .tl_gset:N = \g__nwejm_people_email_tl, + affiliation .code:n = {% + \__nwejm_author_affiliation:ww #1 \q__nwejm + }, + affiliationtagged .code:n = {% + \prop_get:NnNTF \l_affiliations_tagged_prop {#1} \l_tmpa_tl + {% + \prop_put_if_new:NVn \l_tmpa_prop {\l_tmpa_tl} {} + }{ + \msg_error:nnn{__nwejm}{Unknown~tag}{#1} + } + }, + affiliation .value_required:, + affiliationtagged .value_required:, +} +\tl_new:N \l__nwejm_newtheorem_style_tl +\keys_define:nn { nwejm / newtheorem } +{ + title .tl_set:N = \l__nwejm_newtheorem_title_tl, + title / french .tl_set:N = \l__nwejm_newtheorem_french_title_tl, + title / english .tl_set:N = \l__nwejm_newtheorem_english_title_tl, + title / german .tl_set:N = \l__nwejm_newtheorem_german_title_tl, + title / dutch .tl_set:N = \l__nwejm_newtheorem_dutch_title_tl, + title .value_required:, + title / french .value_required:, + title / english .value_required:, + title / german .value_required:, + title / dutch .value_required:, + % + style .choice:, + style / theorem .code:n = {\__nwejm_theorem_style:n {theorem}}, + style / definition .code:n = {\__nwejm_theorem_style:n {definition}}, + style / proof .code:n = {\__nwejm_theorem_style:n {proof}}, + style / unknown .code:n = + \msg_error:nnxxx { nwejm } { Unknown~choice } + { style } % Name of choice key + { theorem~or~definition~or~proof } % Valid choices + { \exp_not:n {#1} } % Invalid choice given +} +\bool_new:N \g__nwejm_gradient_nabla_bool +\bool_new:N \g__nwejm_gradient_nabla_control_bool +\keys_define:nn { nwejm/articlesetup } +{ + gradient .choice:, + gradient / nabla .code:n = {\bool_gset_true:N \g__nwejm_gradient_nabla_bool}, + gradient / grad .code:n = {\bool_gset_false:N \g__nwejm_gradient_nabla_bool}, + gradient / unknown .code:n = + \msg_error:nnxxx { nwejmart } { Unknown~choice } + { gradient } % Name of choice key + { nabla~or~grad } % Valid choices + { \exp_not:n {#1} } % Invalid choice given +} +\tl_new:N \g__nwejm_nwejm_short_string_tl +\tl_new:N \g__nwejm_nwejm_string_tl +\tl_gset:Nn \g__nwejm_nwejm_short_string_tl { + \cs_if_exist:cTF {texorpdfstring} + { + \texorpdfstring{\emph{\c__nwejm_journal_short_title_string_tl}}{\c__nwejm_journal_short_title_string_tl} + }{% + \emph{\c__nwejm_journal_short_title_string_tl} + }% +} +\tl_gset:Nn \g__nwejm_nwejm_string_tl { + \cs_if_exist:cTF {texorpdfstring} + { + \texorpdfstring{\emph{\c__nwejm_journal_title_string_tl}}{\c__nwejm_journal_title_string_tl} + }{% + \emph{\c__nwejm_journal_title_string_tl} + }% +} +\tl_new:N \l__nwejm_pdftitle_string_tl +\tl_new:N \l__nwejm_pdfauthor_string_tl +\tl_set:Nn \l__nwejm_pdftile_string_tl { + \c__nwejm_journal_title_string_tl\space--\space{}N^^c2^^b0\int_use:N\g__nwejm_issue_number_int +} +\tl_set:Nn \l__nwejm_pdfauthor_string_tl { + \g__nwejm_nwejm_string_tl +} +\cs_new_protected:Nn \__nwejm_email:n + { + \href{mailto:#1}{\nolinkurl{#1}}% + } +\tl_new:N \l__nwejm_crossref_tl +\cs_new_protected:Nn \__nwejm_populate_bib_file:nn +{ + \int_if_exist:cF {g__nwejm_#2_int} + { + \int_new:c {g__nwejm_#2_int} + } + \int_incr:c {g__nwejm_#2_int} + \tl_if_in:nnTF { #2 } { author } { + \tl_set:Nn \l__nwejm_crossref_tl {% + \c__nwejm_issue_bib_key_tl + -art- + \int_use:N \g__nwejm_articles_int + } + } { + \tl_set:Nn \l__nwejm_crossref_tl {\c__nwejm_issue_bib_key_tl} + } + \tl_set:Nn \l__nwejm_people_first_last_name_tl {#1} + \iow_now:Nx \g__nwejm_bib_out_iow {% + @article{ + \c__nwejm_issue_bib_key_tl -#2- \int_use:c {g__nwejm_#2_int}, + \iow_newline: + author={\exp_not:V\l__nwejm_people_first_last_name_tl}, + \iow_newline: + options={skipbib}, + \iow_newline: + crossref = {\l__nwejm_crossref_tl} + \iow_newline: + } + \iow_newline: + }% +} +\cs_new_protected:Nn \__nwejm_date:nn +{ + \tl_if_exist:NT {#2} + { + \tl_if_empty:NF {#2} + { + \tl_if_eq:NNF {\c__nwejm_date_received_tl} {#1} { \c__nwejm_dates_separator_tl } + \tl_mixed_case:n { \exp_args:No \GetTranslation{#1} } + \c__nwejm_colon_tl\space + \DTMdate{#2}% + } + } +} +\tl_new:N \g__nwejm_display_dates_tl% +\tl_gset:Nn \g__nwejm_display_dates_tl {% + \footnotesize% + \__nwejm_date:nn {\c__nwejm_date_received_tl}{\g__nwejm_reception_date_tl} + \__nwejm_date:nn {\c__nwejm_date_accepted_tl}{\g__nwejm_acception_date_tl} + \__nwejm_date:nn {\c__nwejm_date_online_tl} {\g__nwejm_online_date_tl} + \tl_gclear:N \g__nwejm_reception_date_tl + \tl_gclear:N \g__nwejm_acception_date_tl + \tl_gclear:N \g__nwejm_online_date_tl +} +\seq_new:N \l__nwejm_keywords_seq +\tl_new:N \l__nwejm_keywords_tl +\NewDocumentCommand \keywords { m } { + \seq_clear:N \l__nwejm_keywords_seq + \tl_clear:N \l__nwejm_keywords_tl + \seq_set_from_clist:Nn \l_tmpa_seq {#1} + \seq_set_map:NNn \l__nwejm_keywords_seq \l_tmpa_seq { + ##1 + } + \tl_set:Nn \l__nwejm_keywords_tl { \seq_use:Nn \l__nwejm_keywords_seq {,~} } + \hypersetup{pdfkeywords=\l__nwejm_keywords_tl} +} +\seq_new:N \l__nwejm_msc_seq +\tl_new:N \l__nwejm_msc_tl +\NewDocumentCommand \msc { m } { + \seq_clear:N \l__nwejm_msc_seq + \tl_clear:N \l__nwejm_msc_tl + % + % does what the name suggests, set a sequence from the clist + \seq_set_from_clist:Nn \l_tmpa_seq {#1} + % applies final arg to each element of second seq and stores result in first seq + \seq_set_map:NNn \l__nwejm_msc_seq \l_tmpa_seq { + ##1 + } + % + % \seq_use puts the items from the seq back in the input with ",~" as a separator + \tl_set:Nn \l__nwejm_msc_tl {\seq_use:Nn \l__nwejm_msc_seq {,~}} +%%<class-article> \hypersetup{pdfmsc=\l_@@_msc_tl} +} +\cs_new_protected:Nn \__nwejm_command_only_in_body:n +{ + \cs_if_eq:NNF {\@onlypreamble} {\@notprerr} { + \msg_error:nnn{ + nwejmart + }{Command~restricted~to~document~body~used~in~preamble}{#1} + } +} +\NewDocumentCommand \articlesetup { m } { + \__nwejm_command_only_in_body:n {\articlesetup} + \keys_set:nn { nwejm/articlesetup } {#1} +} +\NewDocumentCommand \dates { m } { + \keys_set:nn { nwejm/dates } { #1 } +} +\NewDocumentCommand \inputarticle { O{english} m } {% + \newrefsection + \tl_if_eq:nnTF { #1 } { german } {% + \selectlanguage{ngerman} + }{ + \selectlanguage{#1} + }% + \tl_if_eq:nnTF { #1 } { french } {% + \FrenchFootnotes + }{% + \StandardFootnotes + } + \inputfrom{./}{#2} + \clist_put_right:Nn \g__nwejm_counters_to_be_reset_clist { + footnote, + section, + figure, + table, + equation + } + \clist_map_inline:Nn \g__nwejm_counters_to_be_reset_clist { + \@ifundefined{c@##1}{ + }{ + \setcounter{##1}{\c_zero} + } + } + \glsresetall + \selectlanguage{english} +} +\AtBeginDocument{% +\tl_new:N \g__nwejm_bib_issue_date_tl +\tl_gset:Nn +\g__nwejm_bib_issue_date_tl { + \int_use:N \g__nwejm_issue_year_int - + \int_compare:nNnT {\g__nwejm_issue_month_int}<{10} + { + 0 + } + \int_use:N \g__nwejm_issue_month_int +} + \iow_now:Nx \g__nwejm_bib_out_iow {% + @periodical{\c__nwejm_issue_bib_key_tl,\iow_newline: + issuetitle = {\exp_not:f\c__nwejm_journal_title_string_tl},\iow_newline: + date = {\g__nwejm_bib_issue_date_tl},\iow_newline: + number = \int_use:N \g__nwejm_issue_number_int,\iow_newline: + % issn = {\l__nwejm_journal_issn_tl},\iow_newline: + options = {skipbib}\iow_newline: + } + \iow_newline: + }% +} +\tl_new:N \g__nwejm_title_tl +\RenewDocumentCommand \title { o m } { + \cleardoublepage + \int_gincr:N \g__nwejm_articles_int + \tl_gclear:N \g__nwejm_short_title_tl + \tl_gclear:N \g__nwejm_short_subtitle_tl + % + \IfNoValueF {#1} + { + \tl_gset:Nn \g__nwejm_short_title_tl {#1} + } + \tl_gset:Nn \g__nwejm_title_tl {#2} + \tl_if_empty:NT \g__nwejm_short_title_tl {% + \tl_gset_eq:NN \g__nwejm_short_title_tl \g__nwejm_title_tl + } +} +\tl_new:N \g__nwejm_subtitle_tl +\NewDocumentCommand \subtitle { o m } { + \IfNoValueF {#1} + { + \tl_gset:Nn \g__nwejm_short_subtitle_tl {#1} + } + \tl_gset:Nn \g__nwejm_subtitle_tl {#2} + \tl_if_empty:NT \g__nwejm_short_subtitle_tl {% + \tl_gset_eq:NN \g__nwejm_short_subtitle_tl \g__nwejm_subtitle_tl + } +} +\RenewDocumentCommand \author { O{} m } { + \cleardoublepage + \int_incr:N \l_author_int + \prop_gput_if_new:Nxn \g_authors_prop {author_\int_use:c {l_author_int}} {#2} + \IfNoValueF {#1} + { + \keys_set:nn { nwejm/authors } { #1 } + } + \prop_set_eq:cN {l_author_ \int_use:c {l_author_int} _affiliations_prop} \l_tmpa_prop + \prop_clear:N \l_tmpa_prop + \__nwejm_populate_bib_file:nn {#2}{author-art-\int_use:N \g__nwejm_articles_int} + \tl_if_empty:NTF \l__nwejm_people_first_last_names_tl {% + \tl_put_right:Nn + \l__nwejm_people_first_last_names_tl + {#2} + }{ + \tl_put_right:Nn + \l__nwejm_people_first_last_names_tl + {~and~#2} + } +} +\iow_new:N \g__nwejm_bib_out_iow +\ior_new:N \g__nwejm_bib_out_ior +\tl_new:N \g__nwejm_bib_out_tl +\file_if_exist:nTF { \c__nwejm_issue_bib_path_string_tl } +{ + \ior_open:Nn \g__nwejm_bib_out_ior { \c__nwejm_issue_bib_path_string_tl } + \ior_str_map_inline:Nn \g__nwejm_bib_out_ior + { \tl_gput_right:Nn \g__nwejm_bib_out_tl {#1 \par } } + \ior_close:N \g__nwejm_bib_out_ior +}{ + \typeout{no file! rerun} +} +\iow_open:Nn \g__nwejm_bib_out_iow { \c__nwejm_issue_bib_path_string_tl } +\tl_new:N \g__nwejm_abstract_body_tl +\NewDocumentEnvironment{abstract}{} + {\CollectAbstract} + {\endCollectAbstract} +\NewEnviron{CollectAbstract} + { + \tl_gset_eq:NN \g__nwejm_abstract_body_tl \BODY + } +\tl_new:N \g__nwejm_frontmatter_switch_tl% +\tl_gset:Nn \g__nwejm_frontmatter_switch_tl { + \bool_gset_true:N \g__nwejm_frontmatter_bool + \frontmatter + \pagestyle{__nwejm_frontmatter_ps}% + \exp_after:wN\newgeometry\exp_after:wN{\c__nwejm_main_geometry_tl}% +} +\tl_new:N \g__nwejm_mainmatter_switch_tl% +\tl_gset:Nn \g__nwejm_mainmatter_switch_tl { + \bool_gset_false:N \g__nwejm_frontmatter_bool + \bool_gset_true:N \g__nwejm_mainmatter_bool + \mainmatter + % \SetParskip{\c__nwejm_mainmatter_parskip_skip} + \pagestyle{__nwejm_mainmatter_ps}% + \exp_after:wN\newgeometry\exp_after:wN{\c__nwejm_main_geometry_tl}% +} +\tl_new:N \g__nwejm_article_acknowledgments_tl% +\cs_new_protected:Nn \__nwejm_article_acknowledgments:n +{ + \tl_gset:Nn \g__nwejm_article_acknowledgments_tl { #1 } +} +\NewDocumentCommand \acknowledgments { m } { + \__nwejm_article_acknowledgments:n {#1} +} +\tl_new:N \g__nwejm_article_bib_key_tl% +\tl_new:N \l__nwejm_people_first_last_names_tl +\tl_new:N \g__nwejm_authors_first_last_names_tl% +\tl_new:N \g__nwejm_citeauthor_no_giveninits% +\tl_new:N \g__nwejm_citeauthor_tl% +\int_new:N \g__nwejm_author_s_number_current_article_int% +\cs_new_protected:Nn \__nwejm_citeauthor_no_giveninits:n {% + \tl_gset:Nn \g__nwejm_citeauthor_tl {% + \DeclareNameAlias{labelname}{default}% + \group_begin: + \togglefalse{blx@giveninits}% + \citeauthor{#1} + \group_end: + }% + \cs_if_exist:cTF {texorpdfstring} + { + \texorpdfstring{\g__nwejm_citeauthor_tl}{} + }{% + \g__nwejm_citeauthor_tl + }% +} +\cs_set_eq:NN \__nwejm_orig_multinamedelim \multinamedelim +\cs_set_eq:NN \__nwejm_orig_finalnamedelim \finalnamedelim +\cs_new_protected:Nn \__nwejm_maketitle_citeauthor:n +{ + \restorecommand\mkbibnamelast + \def\multinamedelim {\hskip 1em \@plus.17fil}% + \cs_set_eq:NN \finalnamedelim \multinamedelim + \AtNextCitekey{\defcounter{maxnames}{100}} + \group_begin: + \DeclareNameAlias{labelname}{default}% + \togglefalse{blx@giveninits}% + \citeauthor{#1} + \group_end: + \cs_set_eq:NN \multinamedelim \__nwejm_orig_multinamedelim + \cs_set_eq:NN \finalnamedelim \__nwejm_orig_finalnamedelim + \protected\def\mkbibnamelast#1{% + \textsc{\textnohyphenation{#1}}}% +} +\cs_new_protected:Nn \__nwejm_display_author:n +{ + \seq_clear:N \l_tmpa_seq + \prop_get:NnN \g_authors_prop {author_#1} \l_tmpa_tl + \prop_map_inline:cn {l_author_ #1 _affiliations_prop} { + \seq_put_right:Nx \l_tmpa_seq { ##1 } + } + \seq_sort:Nn \l_tmpa_seq + { + \int_compare:nNnTF { ##1 } > { ##2 } + { \sort_reversed: } + { \sort_ordered: } + } + \mbox{% + \__nwejm_citeauthor_no_giveninits:n {\c__nwejm_issue_bib_key_tl -author-art- \int_use:N \g__nwejm_articles_int-#1} + } + \seq_map_inline:Nn \l_tmpa_seq { + \prop_get:cnN {l_author_ #1 _affiliations_prop} {##1} \l_tmpb_tl + \footnotemark[##1] + \tl_if_empty:NF \l_tmpb_tl + { + \footnotetext[##1]{\l_tmpb_tl} + } + } + \hskip 1em plus .17fil +} +\tl_new:N \l__nwejm_bullet_and_rule_tl +\tl_new:N \l__nwejm_authors_box_tl +\tl_new:N \l__nwejm_abstract_box_tl +\tl_new:N \l__nwejm_bullet_and_rule_odd_tl +\tl_new:N \l__nwejm_bullet_and_rule_even_tl +\tl_new:N \l__nwejm_title_box_tl +\tl_new:N \g__nwejm_title_for_toc_tl +\RenewDocumentCommand \maketitle { } { +\tl_gset:Nn \g__nwejm_article_bib_key_tl {% + \c__nwejm_issue_bib_key_tl + -art- + \int_use:N \g__nwejm_articles_int +} +\tl_if_empty:NF \g__nwejm_title_tl {% + \iow_now:Nx \g__nwejm_bib_out_iow {% + @article{ + \g__nwejm_article_bib_key_tl, + \iow_newline: + title={\exp_not:V\g__nwejm_title_tl}, + \iow_newline: + \tl_if_empty:NF \g__nwejm_subtitle_tl {% + subtitle={\exp_not:V\g__nwejm_subtitle_tl}, + \iow_newline: + } + \tl_if_eq:NNF { \g__nwejm_short_title_tl } { \g__nwejm_title_tl } {% + shorttitle={\exp_not:V\g__nwejm_short_title_tl}, + \iow_newline: + }% + \tl_if_empty:NF \l__nwejm_people_first_last_names_tl + { + author={\exp_not:V\l__nwejm_people_first_last_names_tl}, + \iow_newline: + } + options={skipbib}, + \iow_newline: + crossref = {\c__nwejm_issue_bib_key_tl} + } + \iow_newline: + }% + % \tl_clear:N \l__nwejm_people_first_last_names_tl +}% +\tl_set:Nn \l__nwejm_authors_box_tl +{% + \bool_if:nTF { \tl_if_empty_p:N \l__nwejm_people_first_last_names_tl } + { + \mbox{} + } + { + \int_set:Nn \l_tmpa_int { \__nwejm_prop_count:N \g_authors_prop} + \normalsize% + \int_step_inline:nnnn {1}{1}{\l_tmpa_int} { + \__nwejm_display_author:n {##1} + } + \prop_gclear:N \g_authors_prop + } +} +\int_zero:N \l_author_int +\prop_clear:N \l_affiliations_tagged_prop +\tl_set:Nn \l__nwejm_dates_box_tl +{% + \g__nwejm_display_dates_tl +} +\tl_set:Nn \l__nwejm_keywords_box_tl +{% + \noindent + { + \bfseries + \tl_mixed_case:n{ + \GetTranslation{plural-keyword} + \c__nwejm_colon_tl + } + } + \space\l__nwejm_keywords_tl. +} +\tl_set:Nn \l__nwejm_msc_box_tl +{% + \noindent\textbf{\c__nwejm_msc_string_tl}\c__nwejm_colon_tl\space\l__nwejm_msc_tl. +} +\tl_set:Nn \l__nwejm_abstract_box_tl +{% + \mbox{} + \par% + \vskip .5em% + \tl_if_empty:NTF \g__nwejm_abstract_body_tl + {% + \msg_warning:nn{nwejmart}{No~abstract} + }% + {% + \small + \begin{center}% + {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}% + \end{center}% + \begin{quotation} + \g__nwejm_abstract_body_tl + \end{quotation} + } +}% +\tl_set:Nn \g__nwejm_partial_title_for_toc_tl +{ + \tl_if_empty:NTF \g__nwejm_short_title_tl {% + \g__nwejm_title_tl% + }{ + \g__nwejm_short_title_tl% + } + \bool_if:nF { \tl_if_empty_p:N \g__nwejm_short_subtitle_tl } + { + .\space\g__nwejm_short_subtitle_tl + } +} + \hypersetup{pdftitle=\g__nwejm_partial_title_for_toc_tl} +\tl_set:Nn \g__nwejm_title_for_toc_tl +{ + \g__nwejm_partial_title_for_toc_tl + \bool_if:nF { \tl_if_empty_p:N \l__nwejm_people_first_last_names_tl } + { + \textsl{ + \cs_if_exist:cTF {texorpdfstring} + { + \texorpdfstring{% + \AtNextCitekey{\defcounter{maxnames}{100}} + \space\textendash\space\citeauthor{\g__nwejm_article_bib_key_tl} + }{} + }{% + \space\textendash\space\citeauthor{\g__nwejm_article_bib_key_tl} + }% + } + } +} + \setsecnumdepth{none} + \bookmarksetup{depth=-2} + \chapter[\g__nwejm_title_for_toc_tl]{% + \LARGE% + \g__nwejm_title_tl + \tl_if_empty:NF \g__nwejm_subtitle_tl {% + \\[1ex]% + \Large% + \g__nwejm_subtitle_tl + }\\[2ex]% + \l__nwejm_authors_box_tl% + \bool_if:NT {\g__nwejm_date_specified_bool} + { + \\[2ex] + \l__nwejm_dates_box_tl + } + \\[-4ex] + } + \bool_gset_false:N \g__nwejm_date_specified_bool + \bookmarksetup{depth=subsection} + \setsecnumdepth{subsection} + \thispagestyle{__nwejm_article_title_ps}% +\l__nwejm_abstract_box_tl% +\normalsize +\tl_if_empty:NTF \l__nwejm_keywords_tl { + \msg_warning:nn{nwejmart}{No~keyword} +}{ + \l__nwejm_keywords_box_tl + \par% + \vskip .5em% +} +\tl_if_empty:NTF \l__nwejm_msc_tl { + \msg_warning:nn{nwejmart}{No~MSC} +}{ + \l__nwejm_msc_box_tl + \par% + \vskip .5em% +} + \hypersetup{pdfauthor=\l__nwejm_people_first_last_names_tl} +\tl_gclear:N \g__nwejm_title_tl +\tl_gclear:N \g__nwejm_subtitle_tl +\tl_gclear:N \g__nwejm_title_for_toc_tl +\tl_gclear:N \g__nwejm_abstract_body_tl + \tl_gclear:N \g__nwejm_people_affiliation_tl + \tl_gclear:N \g__nwejm_people_email_tl + \tl_clear:N \l__nwejm_people_first_last_names_tl% +} +\DeclarePlainStyle{^^c2^^ab~}{~^^c2^^bb}{`}{'} +\setcounter{topnumber}{3} +\renewcommand{\topfraction}{0.8} +\addtolength{\skip\footins}{.25\baselineskip} +\setlength{\columnsep}{7mm}% +\renewcommand{\thesection}{\arabic{section}}% +\@ifpackageloaded{siunitx}{% + \addto\extrasenglish{\sisetup{locale = UK}} + \addto\extrasfrench{\sisetup{locale = FR}} + \addto\extrasngerman{\sisetup{locale = DE}} + \addto\extrasgerman{\sisetup{locale = DE}} + \addto\extrasdutch{% + \sisetup{% + exponent-product = \ensuremath { \times } , + inter-unit-product = \, , + output-decimal-marker = { , } + }% + } + \sisetup{detect-all} +} +\cs_set_eq:NN \__nwejm_section \section +\cs_set_eq:NN \__nwejm_subsection \subsection +\cs_set_eq:NN \__nwejm_subsubsection \subsubsection +\AfterPreamble{% + \RenewDocumentCommand \section { s o m } {% + \IfBooleanTF {#1} + { + \setsecnumdepth{none}% + } + { + \resetsecnumdepth*% + } + \IfNoValueTF{#2}{\__nwejm_section{#3}}{\__nwejm_section[#2]{#3}} + } + \RenewDocumentCommand \subsection { s o m } {% + \IfBooleanT {#1} + { + \setsecnumdepth{none}% + } + \IfNoValueTF{#2}{\__nwejm_subsection{#3}}{\__nwejm_subsection[#2]{#3}} + } + \RenewDocumentCommand \subsubsection { s o m } {% + \IfBooleanT {#1} + { + \setsecnumdepth{none}% + } + \IfNoValueTF{#2}{\__nwejm_subsubsection{#3}}{\__nwejm_subsubsection[#2]{#3}} + } +} +\int_new:N \l__nwejm_abs_int +\cs_new_protected:Nn \__nwejm_ordinalnum_suffix:n +{ + \int_set:Nn \l__nwejm_abs_int {\int_abs:n {#1}} + \ifcurrentbaselanguage{english}{ + \int_use:N \l__nwejm_abs_int + \int_set:Nn \l_tmpa_int {\int_mod:nn {\l__nwejm_abs_int} {\c_one_hundred}} + \int_case:nnF + { \l_tmpa_int } + { + { \c_eleven } { \fmtord{th} } + { \c_twelve } { \fmtord{th} } + { \c_thirteen } { \fmtord{th} } + }{ + \int_set:Nn \l_tmpb_int {\int_mod:nn {\l__nwejm_abs_int} {\c_ten}} + \int_case:nnF + { \l_tmpb_int } + { + { \c_zero } { \fmtord{th} } + { \c_one } { \fmtord{st} } + { \c_two } { \fmtord{nd} } + { \c_three } { \fmtord{rd} } + }{ + \fmtord{th} + } + } + }{ + \ifcurrentbaselanguage{dutch}{ + \int_use:N \l__nwejm_abs_int + e + }{ + \textsc{\int_to_roman:n {\int_abs:n {#1}}} + \ifcurrentbaselanguage{french}{ + \int_compare:nNnTF { \l__nwejm_abs_int } = { 1 }{\fmtord{er}}{\fmtord{e}} + }{ + \ifcurrentbaselanguage{german}{ + . + }{ + \ifcurrentbaselanguage{ngerman}{ + . + }{ + } + } + } + } + } +} +\cs_new_protected:Nn \__nwejm_century_suffix:n +{ + \space{} + \GetTranslation{century}% + \int_compare:nNnT { #1 } < { 0 }{ + \space + \GetTranslation{before-christ} + }{ + } +} +\NewDocumentCommand \century { s m } {% + \__nwejm_ordinalnum_suffix:n {#2}% + \IfBooleanTF {#1} + { + \int_compare:nNnT { #2 } < { 0 }{ + \__nwejm_century_suffix:n {#2}% + } + }{ + \__nwejm_century_suffix:n {#2}% + } + \int_compare:nNnT { #2 } < { 0 }{ + \ifcurrentbaselanguage{english}{% + }{ + \@ifnextchar.% + { + }{ + .\xspace + }% + } + } +} +\NewDocumentCommand \aside { s m } {% + \IfBooleanTF {#1} + { + \c__nwejm_aside_string_tl{}~#2 + } + { + \c__nwejm_aside_string_tl{}~#2~\c__nwejm_aside_string_tl + } +} +\NewDocumentCommand \ie { s } {% + \IfBooleanTF {#1} + { + \GetTranslation{idest} + } + { + \GetTranslation{ie} + \@ifnextchar.% + { + }{ + .\xspace + }% + } +} +\NewDocumentCommand \Ie { s } {% + \IfBooleanTF {#1} + { + \GetTranslation{Idest} + } + { + \GetTranslation{Ie} + \@ifnextchar.% + { + }{ + .\xspace + }% + } +} +\RenewDocumentCommand \vec { m } { + \vv{#1} +} +\bool_new:N \g__nwejm_no_numbered_theorem_bool +\cs_new_protected:Nn \__nwejm_theorem_style:n +{ + \bool_gset_false:N \g__nwejm_no_numbered_theorem_bool + \str_case:nn + { #1 } + { + { theorem } { + \theoremstyle{plain} + \theoremheaderfont{\normalfont\bfseries} + \theorembodyfont{\itshape} + \theoremseparator{~--} + \theoremsymbol{} + } + { definition } { + \theoremstyle{plain} + \theoremheaderfont{\normalfont\bfseries} + \theorembodyfont{\normalfont} + \theoremseparator{~--} + \theoremsymbol{} + } + { proof } { + \theoremstyle{nonumberplain} + \bool_gset_true:N \g__nwejm_no_numbered_theorem_bool + \theoremheaderfont{\normalfont\itshape} + \theorembodyfont{\normalfont} + \theoremseparator{.} + \theoremsymbol{\ensuremath{\square}} + } + } +} +\cs_set_eq:NN \__nwejm_orig_newtheorem \newtheorem +\cs_new_protected:Nn \__nwejm_new_theorem:nnnnn +{ + \AtBeginDocument{% + \IfTranslation{English}{#1}{% + }{% + \DeclareTranslation{English}{#1}{\tl_mixed_case:n{#2}}% + } + \IfTranslation{French}{#1}{% + }{% + \DeclareTranslation{French}{#1}{\tl_mixed_case:n{#3}}% + } + \IfTranslation{German}{#1}{% + }{% + \DeclareTranslation{German}{#1}{\tl_mixed_case:n{#4}}% + } + \IfTranslation{Dutch}{#1}{% + }{% + \DeclareTranslation{Dutch}{#1}{\tl_mixed_case:n{#5}}% + } + } + \__nwejm_orig_newtheorem{#1}{\protect\tl_mixed_case:n{ \protect\GetTranslation{#1} }} + \bool_if:NF {\g__nwejm_no_numbered_theorem_bool} { + \__nwejm_orig_newtheorem*{#1__nwejm_nonumbered}{\protect\tl_mixed_case:n{ \protect\GetTranslation{#1} }} + } +} +\cs_generate_variant:Nn \__nwejm_new_theorem:nnnnn { nVVVV } +\RenewDocumentCommand \newtheorem { O{} m } +{ + \tl_clear:N \l__nwejm_newtheorem_style_tl + \tl_clear:N \l__nwejm_newtheorem_title_tl + \tl_clear:N \l__nwejm_newtheorem_french_title_tl + \tl_clear:N \l__nwejm_newtheorem_english_title_tl + \tl_clear:N \l__nwejm_newtheorem_german_title_tl + \tl_clear:N \l__nwejm_newtheorem_dutch_title_tl + % + \tl_set:Nn \l__nwejm_newtheorem_english_title_tl { + #2 + } + \tl_set:Nf \l__nwejm_newtheorem_french_title_tl { + \l__nwejm_newtheorem_english_title_tl + } + \tl_set:Nf \l__nwejm_newtheorem_german_title_tl { + \l__nwejm_newtheorem_english_title_tl + } + \tl_set:Nf \l__nwejm_newtheorem_dutch_title_tl { + \l__nwejm_newtheorem_english_title_tl + } + \tl_set:Nn \l__nwejm_newtheorem_style_tl { + theorem + } + \__nwejm_theorem_style:n {theorem} + \IfNoValueF {#1} + { + \keys_set:nn { nwejm / newtheorem } { #1 } + \tl_if_empty:NF \l__nwejm_newtheorem_title_tl {% + \tl_set:Nf \l__nwejm_newtheorem_english_title_tl + { + \l__nwejm_newtheorem_title_tl + } + \tl_set:Nf \l__nwejm_newtheorem_french_title_tl + { + \l__nwejm_newtheorem_title_tl + } + \tl_set:Nf \l__nwejm_newtheorem_german_title_tl + { + \l__nwejm_newtheorem_title_tl + } + \tl_set:Nf \l__nwejm_newtheorem_dutch_title_tl + { + \l__nwejm_newtheorem_title_tl + } + } + } + % + \__nwejm_new_theorem:nVVVV + {#2} + {\l__nwejm_newtheorem_english_title_tl} + {\l__nwejm_newtheorem_french_title_tl} + {\l__nwejm_newtheorem_german_title_tl} + {\l__nwejm_newtheorem_dutch_title_tl} + \makesavenoteenv{#2} + \bool_if:NF {\g__nwejm_no_numbered_theorem_bool} { + \ifcsmacro{#2*}{% + \RenewDocumentEnvironment{#2*}{o} + { + \IfNoValueTF {##1} + { \begin{#2__nwejm_nonumbered} } + { \begin{#2__nwejm_nonumbered}[##1] } + }{ + \end{#2__nwejm_nonumbered} + } + }{ + \NewDocumentEnvironment{#2*}{o} + { + \IfNoValueTF {##1} + { \begin{#2__nwejm_nonumbered} } + { \begin{#2__nwejm_nonumbered}[##1] } + }{ + \end{#2__nwejm_nonumbered} + } + } + } + \clist_put_right:Nn \g__nwejm_counters_to_be_reset_clist {#2} +} +\newtheorem{theorem} +\newtheorem{corollary} +\newtheorem{conjecture} +\newtheorem{proposition} +\newtheorem{lemma} +\newtheorem{axiom} +\newtheorem[style=definition]{definition} +\newtheorem[style=definition]{remark} +\newtheorem[style=definition]{example} +\newtheorem[style=definition]{notation} +\newtheorem[style=proof]{proof} +\cs_new_protected:Nn \__nwejm_clone_theorem:nn +{ + \NewDocumentEnvironment{#1}{} + { + \begin{#2} + }{ + \end{#2} + } + \NewDocumentEnvironment{#1*}{} + { + \begin{#2*} + }{ + \end{#2*} + } +} +\__nwejm_clone_theorem:nn {Theorem}{theorem} +\__nwejm_clone_theorem:nn {Corollary}{corollary} +\__nwejm_clone_theorem:nn {Conjecture}{conjecture} +\__nwejm_clone_theorem:nn {Proposition}{proposition} +\__nwejm_clone_theorem:nn {Lemma}{lemma} +\__nwejm_clone_theorem:nn {Axiom}{axiom} +\__nwejm_clone_theorem:nn {Definition}{definition} +\__nwejm_clone_theorem:nn {Remark}{remark} +\__nwejm_clone_theorem:nn {Example}{example} +\__nwejm_clone_theorem:nn {Notation}{notation} +\__nwejm_clone_theorem:nn {Proof}{proof} +\clist_set:Nn \l_tmpa_clist {% + theorem, + corollary, + conjecture, + proposition, + lemma, + axiom, + definition, + remark, + example, + notation, + proof% +} +\clist_map_inline:Nn \l_tmpa_clist { + \crefname{#1}{ + \GetTranslation{#1} + }{% + \GetTranslation{plural-#1} + } + \Crefname{#1}{ + \tl_mixed_case:n{ \protect + \GetTranslation{#1} + } + }{% + \tl_mixed_case:n{ + \GetTranslation{plural-#1} + } + } +} +\clist_set:Nn \l_tmpa_clist {% + hypothesis, + assertion% +} +\clist_map_inline:Nn \l_tmpa_clist { + \newlist{#1}{enumerate}{1} + \setlist[#1]{% + label= + \normalfont + ( + \textsf{ + \tl_upper_case:n {\tl_head:f {\GetTranslation{#1}}} + } + $\c_math_subscript_token\mathsf{\arabic*}$), + ref=( + \textsf{ + \tl_upper_case:n {\tl_head:f {\GetTranslation{#1}}} + } + $_\mathsf{\arabic*}$ + ) + } + \crefname{#1i}{ + \GetTranslation{#1} + }{% + \GetTranslation{plural-#1} + } + \Crefname{#1i}{ + \tl_mixed_case:n{ + \GetTranslation{#1} + } + }{% + \tl_mixed_case:n{ + \GetTranslation{plural-#1} + } + } +} +\NewDocumentEnvironment{hypotheses}{} +{ + \begin{hypothesis} + }{ + \end{hypothesis} +} +\NewDocumentEnvironment{assertions}{} +{ + \begin{assertion} + }{ + \end{assertion} +} +\RenewDocumentCommand{\DeclareMathOperator}{mm} +{ + \NewDocumentCommand{#1}{} + { + \operatorname{#2} + \peek_after:Nw \__nwejm_opx_check: + } +} +\NewDocumentCommand{\BinaryOperators}{m} +{ + \clist_gput_right:Nn \g__nwejm_opx_binary_clist { #1 } +} +\clist_new:N \g__nwejm_opx_binary_clist +\cs_new_protected:Nn \__nwejm_opx_check: +{ + \clist_map_inline:Nn \g__nwejm_opx_binary_clist + { + \token_if_eq_meaning:NNT \l_peek_token ##1 { \clist_map_break:n { {\!} } } + } +} +\BinaryOperators{% + \amalg,% + \ast,% + \bigcirc,% + \bigtriangledown,% + \bigtriangleup,% + \bullet,% + \cap,% + \cdot,% + \circ,% + \cup,% + \dagger,% + \ddagger,% + \diamond,% + \div,% + \lhd,% + \mp,% + \odot,% + \ominus,% + \oplus,% + \oslash,% + \otimes,% + \pm,% + \rhd,% + \setminus,% + \sqcap,% + \sqcup,% + \star,% + \times,% + \triangleleft,% + \triangleright,% + \unlhd,% + \unrhd,% + \uplus,% + \vee,% + \wedge,% + \wr,% + \barwedge,% + \boxdot,% + \boxminus,% + \boxplus,% + \boxtimes,% + \Cap,% + \centerdot,% + \circledast,% + \circledcirc,% + \circleddash,% + \Cup,% + \curlyvee,% + \curlywedge,% + \divideontimes,% + \dotplus,% + \doublebarwedge,% + \intercal,% + \leftthreetimes,% + \ltimes,% + \rightthreetimes,% + \rtimes,% + \smallsetminus,% + \veebar% +} +\DeclareMathOperator{\cotan}{cotan} +\DeclareMathOperator{\Arccos}{Arccos} +\DeclareMathOperator{\Arcsin}{Arcsin} +\DeclareMathOperator{\Arctan}{Arctan} +\DeclareMathOperator{\arccosh}{arccosh} +\DeclareMathOperator{\arcsinh}{arcsinh} +\DeclareMathOperator{\arctanh}{arctanh} +\DeclareMathOperator{\Argch}{Argch} +\DeclareMathOperator{\Argsh}{Argsh} +\DeclareMathOperator{\Argth}{Argth} +\cs_set_eq:NN \__nwejm_orig_arccos \arccos +\cs_set_eq:NN \__nwejm_orig_arcsin \arcsin +\cs_set_eq:NN \__nwejm_orig_arctan \arctan +\cs_set_eq:NN \__nwejm_orig_arccosh \arccosh +\cs_set_eq:NN \__nwejm_orig_arcsinh \arcsinh +\cs_set_eq:NN \__nwejm_orig_arctanh \arctanh +\RenewDocumentCommand \arccos {} { + \ifcurrentbaselanguage{french}{\Arccos}{\__nwejm_orig_arccos}% +} +\RenewDocumentCommand \arcsin {} { + \ifcurrentbaselanguage {french}{\Arcsin}{\__nwejm_orig_arcsin}% +} +\RenewDocumentCommand \arctan {} { + \ifcurrentbaselanguage {french}{\Arctan}{\__nwejm_orig_arctan}% +} +\RenewDocumentCommand \arccosh {} { + \ifcurrentbaselanguage{french}{\Argch}{\__nwejm_orig_arccosh}% +} +\RenewDocumentCommand \arcsinh {} { + \ifcurrentbaselanguage {french}{\Argsh}{\__nwejm_orig_arcsinh}% +} +\RenewDocumentCommand \arctanh {} { + \ifcurrentbaselanguage {french}{\Argth}{\__nwejm_orig_arctanh}% +} +\cs_set_eq:NN \__nwejm_orig_cot \cot +\RenewDocumentCommand \cot {} { + \ifcurrentbaselanguage {french}{\cotan}{\__nwejm_orig_cot}% +} +\DeclareMathOperator{\ch}{ch} +\DeclareMathOperator{\sh}{sh} +\cs_set_eq:NN \__nwejm_orig_cosh \cosh +\cs_set_eq:NN \__nwejm_orig_sinh \sinh +\cs_set_eq:NN \__nwejm_orig_tanh \tanh +\RenewDocumentCommand \cosh {} { + \ifcurrentbaselanguage {french}{\ch}{\__nwejm_orig_cosh}% +} +\RenewDocumentCommand \sinh {} { + \ifcurrentbaselanguage {french}{\sh}{\__nwejm_orig_sinh}% +} +\RenewDocumentCommand \tanh {} { + \ifcurrentbaselanguage {french}{\operatorname{th}}{\__nwejm_orig_tanh}% +} +\DeclareMathOperator{\Id}{Id} +\cs_set_eq:NN \__nwejm_orig_log \log +\cs_set_eq:NN \__nwejm_orig_lg \lg +\RenewDocumentCommand \log { s } { + \IfBooleanTF {#1} + { + \__nwejm_orig_log + } + { + \ln + } +} +\RenewDocumentCommand \lg { s } { + \IfBooleanTF {#1} + { + \__nwejm_orig_lg + } + { + \ln + } +} +\NewDocumentCommand \E { O{} } { + \ensuremath{ + \mathsf{e} + \tl_if_empty:nF {#1} {^{#1}} + } +} +\NewDocumentCommand \I { } { + \ensuremath{\mathsf{i}} +} +\bool_new:N \g__nwejm_grad_used_bool +\NewDocumentCommand \grad {} {% + \bool_if:NTF \g__nwejm_gradient_nabla_bool { + \operatorname{\nabla} + }{ + \operatorname{grad} + }% + \peek_after:Nw \__nwejm_opx_check: + \bool_if:NTF \g__nwejm_grad_used_bool { + \bool_if:nT { (\g__nwejm_gradient_nabla_bool && !\g__nwejm_gradient_nabla_control_bool) + || ( !\g__nwejm_gradient_nabla_bool && \g__nwejm_gradient_nabla_control_bool) } { + \msg_error:nnn{nwejmart}{Article~setup~not~consistent}{gradient} + } + }{ + \bool_gset_eq:NN \g__nwejm_gradient_nabla_control_bool \g__nwejm_gradient_nabla_bool + \bool_gset_true:N \g__nwejm_grad_used_bool + } +} +\DeclareMathOperator{\Div}{div} +\NewDocumentCommand \curl {} {% + \ifcurrentbaselanguage {english}{ + \operatorname{curl} + }{ + \operatorname{rot} + }% + \peek_after:Nw \__nwejm_opx_check: +} +\NewDocumentCommand \supp {} {% + \ifcurrentbaselanguage {ngerman}{ + \operatorname{Tr} + }{ + \operatorname{supp} + }% + \peek_after:Nw \__nwejm_opx_check: +} +\NewDocumentCommand \dif {}{\mathop{}\!\mathrm{d}} +\cs_set_eq:NN \__nwejm_orig_leq \leq +\cs_set_eq:NN \__nwejm_orig_geq \geq +\RenewDocumentCommand \le {} {% + \ifcurrentbaselanguage {french}{\leqslant}{\__nwejm_orig_leq}% +} +\RenewDocumentCommand \leq {} {% + \ifcurrentbaselanguage {french}{\leqslant}{\__nwejm_orig_leq}% +} +\RenewDocumentCommand \ge {} {% + \ifcurrentbaselanguage {french}{\geqslant}{\__nwejm_orig_geq}% +} +\RenewDocumentCommand \geq {} {% + \ifcurrentbaselanguage {french}{\geqslant}{\__nwejm_orig_geq}% +} +\NewDocumentCommand \bbN {} {\mathbb{N}} +\NewDocumentCommand \bbZ {} {\mathbb{Z}} +\NewDocumentCommand \bbD {} {\mathbb{D}} +\NewDocumentCommand \bbQ {} {\mathbb{Q}} +\NewDocumentCommand \bbR {} {\mathbb{R}} +\NewDocumentCommand \bbC {} {\mathbb{C}} +\NewDocumentCommand \bbK {} {\mathbb{K}} +\cs_set_eq:NN \emptyset \varnothing +\tl_new:N \l__nwejm_given_tl +\tl_set:Nn \l__nwejm_given_tl { + \nonscript\:\delimsize\slash + \allowbreak + \nonscript\: + \mathopen{} +}% +\DeclarePairedDelimiterX\__nwejm_set[1]\{\}{% + #1 +} +\NewDocumentCommand \set { m O{} } { + \if@display + \tl_if_empty:nTF {#2} {% + \__nwejm_set*{#1} + }{ + \__nwejm_set*{#1\l__nwejm_given_tl #2} + } + \else + \tl_if_empty:nTF {#2} {% + \__nwejm_set{#1} + }{ + \__nwejm_set{#1\l__nwejm_given_tl #2} + } + \fi +} +\DeclareDocumentCommand{\NewPairedDelimiter}{mm} + { + \__nwejm_delimiter_clear_keys: % reset to the default + \keys_set:nn { nwejm/delimiters } { #2 } + \use:x % we want to expand the values of the token variables set with the keys + { + \exp_not:n {\NewDocumentCommand{#1}{sO{}m} } + { + \exp_not:n { \IfBooleanTF{##1} } + { + \exp_not:N \__nwejm_paired_delimiter:nnnnn + { \exp_not:n { 0 } } + { \exp_not:V \l__nwejm_delimiter_left_tl } + { \exp_not:V \l__nwejm_delimiter_right_tl } + { \exp_not:n { ##3 } } + { \exp_not:V \l__nwejm_delimiter_subscript_tl } + } + { + \exp_not:N \__nwejm_paired_delimiter:nnnnn + { \exp_not:n { ##2 } } + { \exp_not:V \l__nwejm_delimiter_left_tl } + { \exp_not:V \l__nwejm_delimiter_right_tl } + { \exp_not:n { ##3 } } + { \exp_not:V \l__nwejm_delimiter_subscript_tl } + } + } + } + } +\keys_define:nn { nwejm/delimiters } + { + left .tl_set:N = \l__nwejm_delimiter_left_tl, + right .tl_set:N = \l__nwejm_delimiter_right_tl, + subscript .tl_set:N = \l__nwejm_delimiter_subscript_tl, + } +\cs_new_protected:Npn \__nwejm_delimiter_clear_keys: + { + \keys_set:nn { nwejm/delimiters } { left=.,right=.,subscript={} } + } +\cs_new_protected:Npn \__nwejm_paired_delimiter_expand:nnnn #1 #2 #3 #4 + {% Fix the spacing issue with \left and \right (D. Arsenau, P. Stephani and H. Oberdiek) + \mathopen{} + \mathclose\c_group_begin_token + \left#1 + #3 + \group_insert_after:N \c_group_end_token + \right#2 + \tl_if_empty:nF {#4} { \c_math_subscript_token {#4} } + } +\cs_new_protected:Npn \__nwejm_paired_delimiter_fixed:nnnnn #1 #2 #3 #4 #5 + { + \mathopen{#1#2}#4\mathclose{#1#3} + \tl_if_empty:nF {#5} { \c_math_subscript_token {#5} } + } +\cs_new_protected:Npn \__nwejm_paired_delimiter:nnnnn #1 #2 #3 #4 #5 + { + \str_case:nnF {#1} + { + { } { \__nwejm_paired_delimiter_expand:nnnn {#2}{#3}{#4}{#5} } + {0} { \__nwejm_paired_delimiter_fixed:nnnnn {}{#2}{#3}{#4}{#5} } + {1} { \__nwejm_paired_delimiter_fixed:nnnnn { \big }{#2}{#3}{#4}{#5} } + {\big} { \__nwejm_paired_delimiter_fixed:nnnnn { \big }{#2}{#3}{#4}{#5} } + {2} { \__nwejm_paired_delimiter_fixed:nnnnn { \Big }{#2}{#3}{#4}{#5} } + {\Big} { \__nwejm_paired_delimiter_fixed:nnnnn { \Big }{#2}{#3}{#4}{#5} } + {3} { \__nwejm_paired_delimiter_fixed:nnnnn { \bigg }{#2}{#3}{#4}{#5} } + {\bigg} { \__nwejm_paired_delimiter_fixed:nnnnn { \bigg }{#2}{#3}{#4}{#5} } + {4} { \__nwejm_paired_delimiter_fixed:nnnnn { \Bigg }{#2}{#3}{#4}{#5} } + {\Bigg} { \__nwejm_paired_delimiter_fixed:nnnnn { \Bigg }{#2}{#3}{#4}{#5} } + } + { + \msg_warning:nnn{nwejmart}{Wrong~paired~delimiter's~size~parameter}{#1} + \__nwejm_paired_delimiter_expand:nnnn {#2}{#3}{#4} + } + } +\NewPairedDelimiter{\norm}{ + left=\lVert, + right=\rVert +} +\NewPairedDelimiter{\lnorm}{ + left=\lVert, + right=\rVert, + subscript=1 +} +\NewPairedDelimiter{\llnorm}{ + left=\lVert, + right=\rVert, + subscript=2 +} +\NewPairedDelimiter{\lpnorm}{ + left=\lVert, + right=\rVert, + subscript=p +} +\NewPairedDelimiter{\supnorm}{ + left=\lVert, + right=\rVert, + subscript=\infty +} +\NewPairedDelimiter{\abs}{ + left=\lvert, + right=\rvert +} +\NewPairedDelimiter{\prt}{ + left=(, + right=) +} +\NewPairedDelimiter{\brk}{ + left=[, + right=] +} +\NewPairedDelimiter{\brc}{ + left=\{, + right=\} +} +\NewPairedDelimiter{\lrangle}{ + left=\langle, + right=\rangle +} +\NewPairedDelimiter{\leqgeq}{ + left=<, + right=> +} +\AfterEndPreamble{ + \autonum@generatePatchedReferenceCSL{vref} + \clist_set:Nn \l_tmpa_clist {equation,align,gather,multline,flalign} + \clist_map_inline:Nn \l_tmpa_clist { + \cs_set_eq:cc {#1*} {#1} + \cs_set_eq:cc {end#1*} {end#1} + } + % \msg_warning:nnn{nwejmart}{Starred~AMS~environments}{#1} +} +\etocsettocdepth{subsection} +\@ifpackageloaded{pgfplots}{% + \ifcurrentbaselanguage{french}{% + \pgfplotsset{% + /pgf/number~format/.cd, + use~comma, + 1000~sep={\,}, + min~exponent~for~1000~sep=4 + }% + }{ + } +} +\AtEndPreamble{% + \defbibheading{__nwejm_subbibliography}[\refname]{% + \section*{#1} + }% + \SetCiteCommand{\autocite}% +}% +\int_new:N \l__nwejm_section_int +\cs_set_eq:NN \__nwejm_printbibliography \printbibliography +\RenewDocumentCommand \printbibliography { O{} } { + \tl_if_empty:NF {\g__nwejm_article_acknowledgments_tl} + { + \section*{\GetTranslation{Acknowledgments}} + \g__nwejm_article_acknowledgments_tl + \tl_gclear:N \g__nwejm_article_acknowledgments_tl + } + \__nwejm_printbibliography[heading=__nwejm_subbibliography,resetnumbers,#1] + \bool_if:NF \g__nwejm_nolocaltoc_bool { + \newpage + \setcounter{page}{0} + \pagenumbering{roman}% + \etocarticlestylenomarks + \etocsetlevel{chapter}{6} + \tableofcontents + } +} +\exp_after:wN\addbibresource\exp_after:wN{\c__nwejm_issue_bib_path_string_tl} +\ifkp@easyscsl +\DeclareRobustCommand{\itshape}{\not@math@alphabet\itshape\mathit% + \ifthenelse{\equal{\f@shape}{\scdefault}}{\fontshape{scsl}}{% + \fontshape\itdefault}\selectfont} +\fi +\DeclareMathAlphabet\mathfrak{U}{euf}{m}{n} +\SetMathAlphabet\mathfrak{bold}{U}{euf}{b}{n} +\expandafter\def\expandafter\pdfstringdefPreHook +\expandafter{% + \pdfstringdefPreHook + \renewcommand{\acrshort}[1]{\tl_upper_case:n {\glsentryshort{##1}}}% +} +\@ifpackageloaded{draftwatermark}{% + \SetWatermarkColor{gray!10}% + \SetWatermarkFontSize{30mm}% + \SetWatermarkText{\MakeUppercase{\c__nwejm_draftwatermark_string_tl}}% +}{% +} +\pdftex_if_engine:T + { + \renewcommand{\ttdefault}{lmtt} + } +\tl_new:N \g__nwejm_font_designer_text_tl% +\cs_new_protected:Nn \__nwejm_font_designer_text:n +{ + \tl_gset:Nn \g__nwejm_font_designer_text_tl { #1 } +} +\NewDocumentCommand \fontdesignertext {m} +{ + \__nwejm_font_designer_text:n {#1}% +} +\tl_new:N \g__nwejm_printer_text_tl% +\cs_new_protected:Nn \__nwejm_printer_text:n +{ + \tl_gset:Nn \g__nwejm_printer_text_tl { #1 } +} +\NewDocumentCommand \printertext {m} +{ + \__nwejm_printer_text:n {#1}% +} +\NewDocumentCommand \nwejm { s } { + \IfBooleanTF {#1} + { + \g__nwejm_nwejm_string_tl + } + { + \g__nwejm_nwejm_short_string_tl + } + \xspace +} +\AfterEndPreamble{% + \titleformat{\chapter}[block] + {\normalfont\centering}{}{0pt}{} + \titlespacing*{\chapter}{0pt}{0pt}{0pt} +} +\ExplSyntaxOff +\patchcmd{\autonum@saveEnvironmentSubcommands} + {(0,0)\begin} + {(0,0)\hfuzz=\maxdimen\begin} + {}{} +%% +%% Copyright (C) 2015, 2016 by Denis Bitouze <denis.bitouze@lmpa.univ-littoral.fr> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License (LPPL), either +%% version 1.3c of this license or (at your option) any later +%% version. The latest version of this license is in the file: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% This work is "maintained" (as per LPPL maintenance status) by +%% Denis Bitouze. +%% +%% This work consists of the file nwejm.dtx and a Makefile. +%% Running "make" generates the derived files README, nwejm.pdf and nwejm.cls. +%% Running "make inst" installs the files in the user's TeX tree. +%% Running "make install" installs the files in the local TeX tree. +%% +%% +%% End of file `nwejmart.cls'. |