summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-09-22 20:05:30 +0000
committerKarl Berry <karl@freefriends.org>2022-09-22 20:05:30 +0000
commitf6f59051b1089b0409fa1f06800b22119ab95137 (patch)
tree327447ce5c36d044e83f2e9e688d974801d09258 /Master/texmf-dist/tex
parent3c02a12e8424d3edf518d7651ce50a31e820d626 (diff)
nwejm (22sep22)
git-svn-id: svn://tug.org/texlive/trunk@64462 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/nwejm/nwejm.cls6
-rw-r--r--Master/texmf-dist/tex/latex/nwejm/nwejmart.cls33
2 files changed, 27 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejm.cls b/Master/texmf-dist/tex/latex/nwejm/nwejm.cls
index a543b122869..97913ffce73 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}
- {2022-02-21}
- {1.0.4}
+ {2022-09-21}
+ {1.0.5}
{
Class for the journal "North-Western European Journal of Mathematics".
}
@@ -1618,7 +1618,6 @@
\selectlanguage{french}
% \shorthandoff{"}%
\FrenchFootnotes
- \g__nwejm_french_crefname_tl
\renewcommand*{\glossaryname}{Glossaire}%
\renewcommand*{\acronymname}{Acronymes}%
\renewcommand*{\entryname}{Terme}%
@@ -1789,7 +1788,6 @@
\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 {%
diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejmart.cls b/Master/texmf-dist/tex/latex/nwejm/nwejmart.cls
index 818db540ba0..9247a377e1c 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}
- {2022-02-21}
- {1.0.4}
+ {2022-09-21}
+ {1.0.5}
{
Class for the journal "North-Western European Journal of Mathematics".
}
@@ -75,6 +75,14 @@
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.}%
+ \msg_new:nnn{nwejmart}{Something~wrong~with~page~numbers}{The~ first~ page~
+ number~ of~ the~ current~ article~ (`\c_sys_jobname_str.tex')~ is~ supposed~
+ to~ be~ extracted~ from~ the~ file~ `\c__nwejm_main_file_name_tl.aux`~ but~ the~
+ latter~ doesn't~ contain~ any~ relevant~ information~ for~ this~ purpose.~
+ Double~ check~ the~ `\c__nwejm_main_file_name_tl.tex'~ file~ actually~ contains~
+ `\string\inputarticle\string{\c_sys_jobname_str\string}'~ and~ the~ resulting~
+ `\c__nwejm_main_file_name_tl.pdf'~ actually~ contains~ the~ content~ of~ the~
+ current~ article.}%
\bool_new:N \g__nwejm_language_specified_bool
\cs_new_protected:Nn \__nwejm_language:n
{
@@ -623,12 +631,22 @@
%%<class-article> \hypersetup{pdfmsc=\g_@@_msc_tl}
}
-\file_if_exist:nT { \c__nwejm_main_file_name_tl.aux }
-{\externaldocument[__nwejm-]{\c__nwejm_main_file_name_tl}
- \AddToHook{begindocument/end}{\setcounter{page}{\number\numexpr\getpagerefnumber{__nwejm-\currfilebase}}}
-}
+\file_if_exist:nTF { \c__nwejm_main_file_name_tl.aux }
+{
+ \externaldocument[__nwejm-]{\c__nwejm_main_file_name_tl}
+ \cs_generate_variant:Nn \int_set:Nn { Nx }
+ \int_set:Nx \l_tmpa_int {\number\numexpr\getpagerefnumber{__nwejm-\currfilebase}}
+ \int_compare:nNnTF {\l_tmpa_int} > {0}
+ {
+ \AddToHook{begindocument/end}{\setcounter{page}{\l_tmpa_int}}
+ }{
+ \msg_error:nn{nwejmart}{Something~wrong~with~page~numbers}
+ }
+ \NewDocumentCommand \fixpagenumber { m } { }
+}{
\NewDocumentCommand \fixpagenumber { m } {
-\setcounter{page}{#1}
+ \setcounter{page}{#1}
+}
}
\vref@addto\extrasfrench{%
\def\reftextfaceafter {page~\reftextvario{ci-contre}{suivante}}%
@@ -864,7 +882,6 @@
\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 {%