summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/nwejm/nwejmart.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/nwejm/nwejmart.cls')
-rw-r--r--Master/texmf-dist/tex/latex/nwejm/nwejmart.cls160
1 files changed, 37 insertions, 123 deletions
diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejmart.cls b/Master/texmf-dist/tex/latex/nwejm/nwejmart.cls
index 5f7b8b05a9c..a6af4df3c32 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}
- {2020-03-18}
- {1.0.1}
+ {2021-10-12}
+ {1.0.2}
{
Class for the journal "North-Western European Journal of Mathematics".
}
@@ -64,8 +64,8 @@
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.}%
+ use~ `\string\articlesetup'~ command~ just~ once,~ just~ after~ the~
+ beginning~ of~ the~ document.}%
\msg_new:nnn{
nwejmart
}{`xy'~package~not~allowed!}{The~ `xy'~ package~ is~ not~ allowed~ with~ the~
@@ -81,13 +81,11 @@
\bool_gset_true:N \g__nwejm_language_specified_bool%
\PassOptionsToPackage{main=#1}{babel}
\PassOptionsToPackage{#1}{varioref}
- \AtBeginDocument{
+ \AddToHook{begindocument/before}{%
\LoadDictionaryFor{#1}{nwejm}
- }
- \AtEndPreamble{%
\FCloadlang{#1}
}
- \AfterEndPreamble{%
+ \AddToHook{begindocument/end}{%
\selectlanguage{#1}
}
}
@@ -139,13 +137,14 @@
}
\RequirePackage[l2tabu,orthodox]{nag}
\sys_if_engine_pdftex:TF
- {
- \RequirePackage[utf8]{inputenc}
- }{
- \RequirePackage{fontspec}
- \DeclareTextCommandDefault{\nobreakspace}{\leavevmode\nobreak\ }
- }
-\RequirePackage[T1]{fontenc}
+{
+ \RequirePackage[T1]{fontenc}
+ \RequirePackage[easyscsl,noDcommand]{kpfonts}
+}{
+ \RequirePackage{unicode-math}
+ \RequirePackage[noDcommand]{kpfonts-otf}
+ \setmonofont[Scale = MatchLowercase]{Latin Modern Mono}
+}
\RequirePackage[pagestyles]{titlesec}%
\RequirePackage{graphicx}%
\RequirePackage{adjustbox}%
@@ -163,9 +162,7 @@
\RequirePackage{booktabs}
\RequirePackage{mathtools}
\RequirePackage[amsmath,thmmarks,fleqn]{ntheorem}
-\RequirePackage{rsfso}
\RequirePackage{esvect}
-\RequirePackage[easyscsl,noDcommand]{kpfonts}
\RequirePackage{geometry}
\RequirePackage{translations}%
\RequirePackage{currfile}
@@ -183,7 +180,7 @@
\RequirePackage[backend=biber,style=nwejm]{biblatex}%
\ExecuteBibliographyOptions{defernumbers=true,dashed=false,uniquename=init,backref,safeinputenc}
\RequirePackage[pdfencoding=unicode,final]{hyperref}%
-\AtEndPreamble{%
+\AddToHook{begindocument/before}{%
\hypersetup{hidelinks,hypertexnames=false,breaklinks}%
}%
\RequirePackage[all]{hypcap}
@@ -358,7 +355,7 @@
}
\box_new:N \l__nwejm_journal_logo_box
\box_new:N \l__nwejm_journal_name_box
- \AfterEndPreamble{%
+ \AddToHook{begindocument/end}{%
\hbox_set:Nn \l__nwejm_journal_name_box
{
\bfseries%
@@ -404,11 +401,11 @@
{}%
}
\def\@pnumwidth{\@tocrmarg}
-\AtBeginDocument{%
+\AddToHook{begindocument}{%
\graphicspath{{\c__nwejm_issue_images_path_string_tl//}{../\c__nwejm_issue_images_path_string_tl//}}
% \glsdisablehyper
}
- \AfterEndPreamble{\g__nwejm_mainmatter_switch_tl}
+ \AddToHook{begindocument/end}{\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
@@ -622,7 +619,7 @@
\file_if_exist:nT { \c__nwejm_main_file_name_tl.aux }
{\externaldocument[__nwejm-]{\c__nwejm_main_file_name_tl}
- \AfterEndPreamble{\setcounter{page}{\number\numexpr\getpagerefnumber{__nwejm-\currfilebase}}}
+ \AddToHook{begindocument/end}{\setcounter{page}{\number\numexpr\getpagerefnumber{__nwejm-\currfilebase}}}
}
\NewDocumentCommand \fixpagenumber { m } {
\setcounter{page}{#1}
@@ -737,92 +734,7 @@
\crefname{listing}{liste}{listes}%
\crefname{line}{ligne}{lignes}%
}
-\NewDocumentCommand \inputarticle { O{english} m } {%
- \newrefsection
- \renewcommand*{\glspluralsuffix}{s}
- \renewcommand*{\glsacrpluralsuffix}{\glspluralsuffix}
- \renewcommand*{\glsupacrpluralsuffix}{\glstextup{\glsacrpluralsuffix}}
- \StandardFootnotes
- \str_case:nn {#1} {
- {english} {
- \selectlanguage{english}
- \renewcommand*{\glossaryname}{Glossary}%
- \renewcommand*{\acronymname}{Acronyms}%
- \renewcommand*{\entryname}{Notation}%
- \renewcommand*{\descriptionname}{Description}%
- \renewcommand*{\symbolname}{Symbol}%
- \renewcommand*{\pagelistname}{Page List}%
- \renewcommand*{\glssymbolsgroupname}{Symbols}%
- \renewcommand*{\glsnumbersgroupname}{Numbers}%
- }
- {german} {
- \selectlanguage{ngerman}
- \renewcommand*{\glossaryname}{Glossar}%
- \renewcommand*{\acronymname}{Akronyme}%
- \renewcommand*{\entryname}{Bezeichnung}%
- \renewcommand*{\descriptionname}{Beschreibung}%
- \renewcommand*{\symbolname}{Symbol}%
- \renewcommand*{\pagelistname}{Seiten}%
- \renewcommand*{\glssymbolsgroupname}{Symbole}%
- \renewcommand*{\glsnumbersgroupname}{Zahlen}%
- }
- {ngerman} {
- \selectlanguage{ngerman}
- \renewcommand*{\glossaryname}{Glossar}%
- \renewcommand*{\acronymname}{Akronyme}%
- \renewcommand*{\entryname}{Bezeichnung}%
- \renewcommand*{\descriptionname}{Beschreibung}%
- \renewcommand*{\symbolname}{Symbol}%
- \renewcommand*{\pagelistname}{Seiten}%
- \renewcommand*{\glssymbolsgroupname}{Symbole}%
- \renewcommand*{\glsnumbersgroupname}{Zahlen}%
- }
- {french} {
- \selectlanguage{french}
- \FrenchFootnotes
- \g__nwejm_french_crefname_tl
- \renewcommand*{\glossaryname}{Glossaire}%
- \renewcommand*{\acronymname}{Acronymes}%
- \renewcommand*{\entryname}{Terme}%
- \renewcommand*{\descriptionname}{Description}%
- \renewcommand*{\symbolname}{Symbole}%
- \renewcommand*{\pagelistname}{Pages}%
- \renewcommand*{\glssymbolsgroupname}{Symboles}%
- \renewcommand*{\glsnumbersgroupname}{Nombres}%
- \renewcommand*{\glspluralsuffix}{s}
- \renewcommand*{\glsacrpluralsuffix}{}
- \renewcommand*{\glsupacrpluralsuffix}{}
- }
- {dutch} {
- \selectlanguage{dutch}
- \renewcommand*{\glossaryname}{Woordenlijst}%
- \renewcommand*{\acronymname}{Acroniemen}%
- \renewcommand*{\entryname}{Benaming}%
- \renewcommand*{\descriptionname}{Beschrijving}%
- \renewcommand*{\symbolname}{Symbool}%
- \renewcommand*{\pagelistname}{Pagina's}%
- \renewcommand*{\glssymbolsgroupname}{Symbolen}%
- \renewcommand*{\glsnumbersgroupname}{Cijfers}%
- }
- }%
- \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_int}
- }
- }
- \glsresetall
- \selectlanguage{english}
-}
-\AtBeginDocument{%
+\AddToHook{begindocument}{%
\tl_new:N \g__nwejm_bib_issue_date_tl
\tl_gset:Nn
\g__nwejm_bib_issue_date_tl {
@@ -846,7 +758,6 @@
\tl_new:N \g__nwejm_title_tl
\RenewDocumentCommand \title { o o m } {
\cleardoublepage
- \int_gincr:N \g__nwejm_articles_int
\tl_gclear:N \g__nwejm_short_title_tl
\tl_gclear:N \g__nwejm_header_title_tl
\tl_gclear:N \g__nwejm_short_subtitle_tl
@@ -1442,7 +1353,7 @@
\cs_generate_variant:Nn \__nwejm_new_theorem:nnnnnnnnn { nVVVVVVVV }
\RenewDocumentCommand \newtheorem { O{} m }
{
- \AtBeginDocument{
+ \AddToHook{begindocument}{
\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
@@ -1648,7 +1559,7 @@
}
}
}
-\AfterEndPreamble{
+\AddToHook{begindocument/end}{
\ifcurrentbaselanguage{french}{\g__nwejm_french_crefname_tl}{}
}
\clist_set:Nn \l_tmpa_clist {%
@@ -2163,7 +2074,7 @@
left=<,
right=>
}
-\AtEndPreamble{\allowdisplaybreaks}
+\AddToHook{begindocument/before}{\allowdisplaybreaks}
\int_new:N \g_multiline_eq_int
\int_new:N \g_line_of_multiline_eq_int
\tl_new:N \g_line_of_multiline_eq_label_tl
@@ -2450,7 +2361,7 @@
}{
}
}
-\AtEndPreamble{%
+\AddToHook{begindocument/before}{%
\defbibheading{__nwejm_subbibliography}[\refname]{%
\section*{#1}
}%
@@ -2476,13 +2387,16 @@
}
}
\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}
+\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}
+}
\expandafter\def\expandafter\pdfstringdefPreHook
\expandafter{%
\pdfstringdefPreHook
@@ -2526,12 +2440,12 @@
}
\xspace
}
-\AfterEndPreamble{%
+\AddToHook{begindocument/end}{%
\titleformat{\chapter}[block]
{\normalfont\centering}{}{0pt}{}
\titlespacing*{\chapter}{0pt}{0pt}{0pt}
}
-\AtEndPreamble{%
+\AddToHook{begindocument/before}{%
\@ifpackageloaded{xy}{%
\msg_error:nn{
nwejmart
@@ -2541,7 +2455,7 @@
}
\ExplSyntaxOff
%%
-%% Copyright (C) 2015-2020 by Denis Bitouze <denis.bitouze@univ-littoral.fr>
+%% Copyright (C) 2015-2021 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