From 3e34887b92bc2cfd1e43815528508408a0b12110 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 21 Feb 2022 20:58:02 +0000
Subject: nwejm (21feb22)

git-svn-id: svn://tug.org/texlive/trunk@62129 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/nwejm/nwejmart.cls | 81 +++++++++++++++-----------
 1 file changed, 48 insertions(+), 33 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/nwejm/nwejmart.cls')

diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejmart.cls b/Master/texmf-dist/tex/latex/nwejm/nwejmart.cls
index a6af4df3c32..818db540ba0 100644
--- a/Master/texmf-dist/tex/latex/nwejm/nwejmart.cls
+++ b/Master/texmf-dist/tex/latex/nwejm/nwejmart.cls
@@ -18,8 +18,8 @@
 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
 \ProvidesExplClass
   {nwejmart}
-  {2021-10-12}
-  {1.0.2}
+  {2022-02-21}
+  {1.0.4}
   {
     Class for the journal "North-Western European Journal of Mathematics".
   }
@@ -139,7 +139,7 @@
 \sys_if_engine_pdftex:TF
 {
   \RequirePackage[T1]{fontenc}
-  \RequirePackage[easyscsl,noDcommand]{kpfonts}
+  \RequirePackage[noDcommand]{kpfonts}
 }{
   \RequirePackage{unicode-math}
   \RequirePackage[noDcommand]{kpfonts-otf}
@@ -171,8 +171,10 @@
 \RequirePackage{varioref}
 \RequirePackage{subcaption}
 \RequirePackage{tocvsec2}
+\RequirePackage{tocloft}%
+\gdef\ttl@savemark{}
 \RequirePackage{etoc}%
-\RequirePackage[babel=true,final]{microtype}%
+\RequirePackage[babel=true,nopatch=eqnum,final]{microtype}%
 \RequirePackage[useregional]{datetime2}%
 \RequirePackage[inline]{enumitem}%
 \RequirePackage{environ}
@@ -187,8 +189,6 @@
 \RequirePackage[numbered]{bookmark}%
 \RequirePackage[nowarn]{glossaries}%
 \RequirePackage{cleveref}%
-\expandafter\def\csname ver@etex.sty\endcsname{3000/12/31}
-\let\globcount\newcount
 \makeglossaries
 \setglossarystyle{indexhypergroup}
 \setacronymstyle{long-sc-short}
@@ -273,10 +273,10 @@
   \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_bottom_margin_main_dim   { 36mm}
+\dim_const:Nn \c__nwejm_bottom_margin_front_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 }
@@ -293,14 +293,12 @@
 \dim_const:Nn \c__nwejm_inside_cover_offset_dim { \c_zero_dim }%
 \dim_const:Nn \c__nwejm_logos_rectangle_thickness_dim { 3.1mm }
 \dim_const:Nn \c__nwejm_logos_rectangle_height_dim { 33mm }
-\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}
   ,textwidth=\c__nwejm_layoutwidth_dim*3/4
   ,textheight=\c__nwejm_layoutheight_dim*3/4
   % ,marginratio={4\string :6,5\string :7}
+  ,bottom=\c__nwejm_bottom_margin_main_dim
   ,inner=\c__nwejm_innermargin_dim
   ,headheight=\c__nwejm_headheight_dim
   ,footskip=\c__nwejm_footskip_dim
@@ -311,11 +309,19 @@
   % ,top=\c__nwejm_topmargin_dim%
   % ,headheight=\c__nwejm_headheight_dim
   % ,headsep=\c__nwejm_headsep_dim
-  % ,bottom=\c__nwejm_botmargin_dim
+  % ,bottom=\c__nwejm_bottom_margin_front_dim
   % ,footskip=\c__nwejm_footskip_dim
   % ,inner=\c__nwejm_innermargin_dim
   % ,outer=\c__nwejm_outermargin_dim
 }%
+\geometry
+{%
+  papersize={\c__nwejm_paperwidth_dim,\c__nwejm_paperheight_dim},
+}
+\exp_after:wN\geometry\exp_after:wN
+{%
+  \c__nwejm_main_geometry_tl
+}
 \tl_new:N \l__nwejm_section_header_tl
 \tl_set:Nn \l__nwejm_section_header_tl {
   \ifthesection{%
@@ -757,7 +763,6 @@
 }
 \tl_new:N \g__nwejm_title_tl
 \RenewDocumentCommand \title { o o m } {
-  \cleardoublepage
   \tl_gclear:N \g__nwejm_short_title_tl
   \tl_gclear:N \g__nwejm_header_title_tl
   \tl_gclear:N \g__nwejm_short_subtitle_tl
@@ -833,10 +838,10 @@
   }
 \tl_new:N \g__nwejm_frontmatter_switch_tl%
 \tl_gset:Nn \g__nwejm_frontmatter_switch_tl {
-  \bool_gset_true:N  \g__nwejm_frontmatter_bool
+  \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}%
+  % \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 {
@@ -845,7 +850,8 @@
   \mainmatter
   % \SetParskip{\c__nwejm_mainmatter_parskip_skip}
   \pagestyle{__nwejm_mainmatter_ps}%
-  \exp_after:wN\newgeometry\exp_after:wN{\c__nwejm_main_geometry_tl}%
+  \restoregeometry
+  % \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
@@ -2100,16 +2106,21 @@
   }
 }
 \bool_new:N \g__nwejm_within_patched_amsmath_env_bool
-\clist_set:Nn \l_tmpa_clist {flalign,alignat}
-\clist_map_inline:Nn \l_tmpa_clist {
-  \RenewEnviron{#1}
-  {
-    \cs:w db_multiline_eq:nV\cs_end: {align} \BODY
-  }
-  \RenewEnviron{#1*}
-  {
-    \cs:w db_multiline_eq:nV\cs_end: {align*} \BODY
-  }
+\RenewEnviron{flalign}
+{
+  \cs:w db_multiline_eq:nV\cs_end: {align} \BODY
+}
+\RenewEnviron{flalign*}
+{
+  \cs:w db_multiline_eq:nV\cs_end: {align*} \BODY
+}
+\RenewEnviron{alignat}[1]
+{
+  \cs:w db_multiline_eq:nV\cs_end: {align} \BODY
+}
+\RenewEnviron{alignat*}[1]
+{
+  \cs:w db_multiline_eq:nV\cs_end: {align*} \BODY
 }
 \seq_new:N \l_db_multiline_eq_seq
 \cs_new_protected:Nn \db_multiline_eq:nn
@@ -2389,11 +2400,6 @@
 \exp_after:wN\addbibresource\exp_after:wN{\c__nwejm_issue_bib_path_string_tl}
 \sys_if_engine_pdftex:T
 {
-  \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}
 }
@@ -2453,9 +2459,18 @@
   }{
   }
 }
+\AddToHook{begindocument/end}{%
+  % \shorthandoff{"}%
+  \@ifpackageloaded{tikz}{%
+    \usetikzlibrary{babel}%
+  }{}%
+}
+\AddToHook{begindocument/end}{%
+  \pagestyle{__nwejm_mainmatter_ps}%
+}
 \ExplSyntaxOff
 %% 
-%% Copyright (C) 2015-2021 by Denis Bitouze <denis.bitouze@univ-littoral.fr>
+%% Copyright (C) 2015-2022 by Denis Bitouze <denis.bitouze@univ-littoral.fr>
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License (LPPL), either
-- 
cgit v1.2.3

