summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/nwejm/nwejm.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/nwejm/nwejm.cls')
-rw-r--r--Master/texmf-dist/tex/latex/nwejm/nwejm.cls101
1 files changed, 59 insertions, 42 deletions
diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejm.cls b/Master/texmf-dist/tex/latex/nwejm/nwejm.cls
index e38b999a92a..a543b122869 100644
--- a/Master/texmf-dist/tex/latex/nwejm/nwejm.cls
+++ b/Master/texmf-dist/tex/latex/nwejm/nwejm.cls
@@ -18,8 +18,8 @@
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesExplClass
{nwejm}
- {2021-10-12}
- {1.0.2}
+ {2022-02-21}
+ {1.0.4}
{
Class for the journal "North-Western European Journal of Mathematics".
}
@@ -129,7 +129,7 @@
\sys_if_engine_pdftex:TF
{
\RequirePackage[T1]{fontenc}
- \RequirePackage[easyscsl,noDcommand]{kpfonts}
+ \RequirePackage[noDcommand]{kpfonts}
}{
\RequirePackage{unicode-math}
\RequirePackage[noDcommand]{kpfonts-otf}
@@ -196,8 +196,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}
@@ -212,8 +214,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}
@@ -409,10 +409,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 }
@@ -429,9 +429,6 @@
\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}
-}
\bool_if:NT {\g__nwejm_inside_pages_bool} {
\geometry{showcrop}
}
@@ -463,7 +460,7 @@
,top=\c__nwejm_topmargin_inside_cover_dim
,headheight=\c__nwejm_headheight_dim
,headsep=\c__nwejm_headsep_inside_frontcover_dim
- ,bottom=\c__nwejm_botmargin_dim
+ ,bottom=\c__nwejm_bottom_margin_front_dim
,footskip=\c__nwejm_footskip_dim
,nomarginpar%
,textwidth=\c__nwejm_inside_cover_textwidth_dim
@@ -475,7 +472,7 @@
,top=\c__nwejm_topmargin_inside_cover_dim
,headheight=\c__nwejm_headheight_dim
,headsep=\c__nwejm_headsep_inside_frontcover_dim
- ,bottom=\c__nwejm_botmargin_dim
+ ,bottom=\c__nwejm_bottom_margin_front_dim
,footskip=\c__nwejm_footskip_dim
,nomarginpar%
,textwidth=\c__nwejm_inside_cover_textwidth_dim
@@ -488,7 +485,7 @@
,top=\c__nwejm_topmargin_front_matter_dim%
,headheight=\c__nwejm_headheight_dim
,headsep=\c__nwejm_headsep_front_matter_dim
- ,bottom=\c__nwejm_botmargin_dim
+ ,bottom=\c__nwejm_bottom_margin_front_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%
@@ -513,6 +510,7 @@
,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
@@ -523,11 +521,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
+}
\bool_new:N \g__nwejm_tableofcontents_already_used_bool
\renewcommand\etocbeforetitlehook
{%
@@ -546,7 +552,6 @@
\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
}
@@ -555,7 +560,7 @@
}%
\renewcommand\etocaftercontentshook
{%
- \exp_after:wN\newgeometry\exp_after:wN{\c__nwejm_main_geometry_tl}%
+ % \exp_after:wN\newgeometry\exp_after:wN{\c__nwejm_main_geometry_tl}%
}%
\newpagestyle{__nwejm_frontcover_ps}[]{%
\sethead
@@ -1124,10 +1129,12 @@
\end{description}
\end{description}
\end{multicols*}
- \clearpage%
+ % \clearpage%
+ \restoregeometry
\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}%
+ \restoregeometry
+ % \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 {%
@@ -1247,10 +1254,10 @@
rectangle (current~page.south~east);
% laboratory logo
\node[anchor=south~east] at ([xshift=-10mm]current~page~text~area.south~east)
- {\includegraphics[height=.5\c__nwejm_logos_rectangle_height_dim]{logo-painleve}} ;
+ {\includegraphics[height=.5\c__nwejm_logos_rectangle_height_dim]{nwejm-logo-painleve}} ;
% university logo
\node[anchor=south~west] at (current~page~text~area.south~west)
- {\includegraphics[height=.5\c__nwejm_logos_rectangle_height_dim]{ul-fst-math}} ;
+ {\includegraphics[height=.5\c__nwejm_logos_rectangle_height_dim]{nwejm-ul-fst-math}} ;
% crop marks
\draw [white]
([xshift=2.5mm]current~page~text~area.north~east) --
@@ -1563,6 +1570,7 @@
\crefname{line}{ligne}{lignes}%
}
\NewDocumentCommand \inputarticle { O{english} m } {%
+ \cleardoublepage
\int_gincr:N \g__nwejm_articles_int
\newrefsection
\renewcommand*{\glspluralsuffix}{s}
@@ -1680,7 +1688,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
@@ -1756,10 +1763,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 {
@@ -1768,7 +1775,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
@@ -3022,16 +3030,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
@@ -3303,11 +3316,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}
}
@@ -3378,9 +3386,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