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.cls82
1 files changed, 45 insertions, 37 deletions
diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejm.cls b/Master/texmf-dist/tex/latex/nwejm/nwejm.cls
index eda00b36d18..e38b999a92a 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}
- {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{
nwejm
}{`xy'~package~not~allowed!}{The~ `xy'~ package~ is~ not~ allowed~ with~ the~
@@ -117,7 +117,7 @@
\PassOptionsToPackage{export}{adjustbox}%
\PassOptionsToPackage{fleqn}{amsmath}%
\PassOptionsToPackage{french,ngerman,dutch,english,noabbrev,capitalize}{cleveref}
-\AtBeginDocument{
+\AddToHook{begindocument/before}{
\LoadDictionaryFor{french}{nwejm}
\LoadDictionaryFor{english}{nwejm}
\LoadDictionaryFor{dutch}{nwejm}
@@ -127,13 +127,14 @@
\PassOptionsToPackage{french,ngerman,dutch,english}{varioref}
\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}%
@@ -151,9 +152,7 @@
\RequirePackage{booktabs}
\RequirePackage{mathtools}
\RequirePackage[amsmath,thmmarks,fleqn]{ntheorem}
-\RequirePackage{rsfso}
\RequirePackage{esvect}
-\RequirePackage[easyscsl,noDcommand]{kpfonts}
\RequirePackage{geometry}
\RequirePackage{translations}%
\RequirePackage{currfile}
@@ -206,7 +205,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}
@@ -641,7 +640,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%
@@ -687,7 +686,7 @@
{}%
}
\def\@pnumwidth{\@tocrmarg}
-\AtBeginDocument{%
+\AddToHook{begindocument}{%
\graphicspath{{\c__nwejm_issue_images_path_string_tl//}{../\c__nwejm_issue_images_path_string_tl//}}
% \glsdisablehyper
}
@@ -1248,10 +1247,10 @@
rectangle (current~page.south~east);
% laboratory logo
\node[anchor=south~east] at ([xshift=-10mm]current~page~text~area.south~east)
- {\includegraphics[height=.66\c__nwejm_logos_rectangle_height_dim]{logo-painleve}} ;
+ {\includegraphics[height=.5\c__nwejm_logos_rectangle_height_dim]{logo-painleve}} ;
% university logo
\node[anchor=south~west] at (current~page~text~area.south~west)
- {\includegraphics[height=.66\c__nwejm_logos_rectangle_height_dim]{logo-ul1-ufr-math}} ;
+ {\includegraphics[height=.5\c__nwejm_logos_rectangle_height_dim]{ul-fst-math}} ;
% crop marks
\draw [white]
([xshift=2.5mm]current~page~text~area.north~east) --
@@ -1564,6 +1563,7 @@
\crefname{line}{ligne}{lignes}%
}
\NewDocumentCommand \inputarticle { O{english} m } {%
+ \int_gincr:N \g__nwejm_articles_int
\newrefsection
\renewcommand*{\glspluralsuffix}{s}
\renewcommand*{\glsacrpluralsuffix}{\glspluralsuffix}
@@ -1572,6 +1572,7 @@
\str_case:nn {#1} {
{english} {
\selectlanguage{english}
+ % \shorthandoff{"}%
\renewcommand*{\glossaryname}{Glossary}%
\renewcommand*{\acronymname}{Acronyms}%
\renewcommand*{\entryname}{Notation}%
@@ -1583,6 +1584,7 @@
}
{german} {
\selectlanguage{ngerman}
+ % \shorthandon{"}%
\renewcommand*{\glossaryname}{Glossar}%
\renewcommand*{\acronymname}{Akronyme}%
\renewcommand*{\entryname}{Bezeichnung}%
@@ -1594,6 +1596,7 @@
}
{ngerman} {
\selectlanguage{ngerman}
+ % \shorthandon{"}%
\renewcommand*{\glossaryname}{Glossar}%
\renewcommand*{\acronymname}{Akronyme}%
\renewcommand*{\entryname}{Bezeichnung}%
@@ -1605,6 +1608,7 @@
}
{french} {
\selectlanguage{french}
+ % \shorthandoff{"}%
\FrenchFootnotes
\g__nwejm_french_crefname_tl
\renewcommand*{\glossaryname}{Glossaire}%
@@ -1621,6 +1625,7 @@
}
{dutch} {
\selectlanguage{dutch}
+ % \shorthandon{"}%
\renewcommand*{\glossaryname}{Woordenlijst}%
\renewcommand*{\acronymname}{Acroniemen}%
\renewcommand*{\entryname}{Benaming}%
@@ -1648,10 +1653,11 @@
\setcounter{##1}{\c_zero_int}
}
}
+ \gdef\thesection{\@arabic\c@section}
\glsresetall
\selectlanguage{english}
}
-\AtBeginDocument{%
+\AddToHook{begindocument}{%
\tl_new:N \g__nwejm_bib_issue_date_tl
\tl_gset:Nn
\g__nwejm_bib_issue_date_tl {
@@ -1675,7 +1681,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
@@ -2012,7 +2017,7 @@
\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}}
+\AddToHook{begindocument/before}{\file_input:n {\c__nwejm_configuration_file_string_tl}}
\DeclarePlainStyle{«~}{~»}{`}{'}
\setcounter{topnumber}{3}
\renewcommand{\topfraction}{0.8}
@@ -2270,7 +2275,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
@@ -2476,7 +2481,7 @@
}
}
}
-\AfterEndPreamble{
+\AddToHook{begindocument/end}{
\ifcurrentbaselanguage{french}{\g__nwejm_french_crefname_tl}{}
}
\clist_set:Nn \l_tmpa_clist {%
@@ -2991,7 +2996,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
@@ -3278,7 +3283,7 @@
}{
}
}
-\AtEndPreamble{%
+\AddToHook{begindocument/before}{%
\defbibheading{__nwejm_subbibliography}[\refname]{%
\section*{#1}
}%
@@ -3296,13 +3301,16 @@
\__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}
+\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
@@ -3346,7 +3354,7 @@
}
\xspace
}
-\AfterEndPreamble{%
+\AddToHook{begindocument/end}{%
\bool_if:NTF {\g__nwejm_cover_bool} {
\g__nwejm_display_frontcover_tl
\g__nwejm_display_backcover_tl
@@ -3357,12 +3365,12 @@
\tableofcontents
}
}
-\AfterEndPreamble{%
+\AddToHook{begindocument/end}{%
\titleformat{\chapter}[block]
{\normalfont\centering}{}{0pt}{}
\titlespacing*{\chapter}{0pt}{0pt}{0pt}
}
-\AtEndPreamble{%
+\AddToHook{begindocument/before}{%
\@ifpackageloaded{xy}{%
\msg_error:nn{
nwejm
@@ -3372,7 +3380,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