diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/nwejm/nwejmart.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/nwejm/nwejmart.cls | 38 |
1 files changed, 33 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejmart.cls b/Master/texmf-dist/tex/latex/nwejm/nwejmart.cls index d762c18f060..40f4f720284 100644 --- a/Master/texmf-dist/tex/latex/nwejm/nwejmart.cls +++ b/Master/texmf-dist/tex/latex/nwejm/nwejmart.cls @@ -31,6 +31,9 @@ \msg_new:nnnn{nwejm}{Issue~number~needed}{Option~`#1'~needed!} {Please~specify~`#1=<number>', ~otherwise~`<number>'~will~be~set~to ~`\int_use:N\c__nwejm_first_issue_number_int'.}% +\msg_new:nnn{nwejm}{Wrong~main~file~name!}{The~ main~ file~ should~ be~ named~ + `\tl_use:N\c__nwejm_main_file_name_tl.tex',~ not~ `\jobname.tex'.~ Please~ rename~ + the~ current~ file~ accordingly.}% \msg_new:nnnn{nwejmart}{Unknown~choice}{Choice~`#3'~invalid!} {Please~specify~#1=#2.}% \msg_new:nnn{nwejmart}{Unknown~tag}{There~ isn't~ any~ affiliation~ tagged~ @@ -45,7 +48,8 @@ \msg_new:nnn{nwejmart}{No~abstract}{You~ haven't~ specify~ any~ abstract~ for~ this~ article!}% \msg_new:nnn{nwejmart}{Starred~AMS~environments}{The~ starred~AMS~environment~ - `#1*'~should~ be~ avoided.~ It~ will ~be ~ replaced ~ by its~ unstarred~ counterpart~ `#1'.}% + `#1*'~should~ be~ avoided.~ It~ will ~be ~ replaced ~ by its~ unstarred~ + counterpart~ `#1'.}% \msg_new:nnn{ nwejmart }{Command~restricted~to~document~body~used~in~preamble}{The~command~#1 @@ -54,6 +58,11 @@ concerning~ the~ option~ `#1'~ has~ changed~ after~ its~ 1st~ use.~ Please~ use~ \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~ + `nwejm'~ LaTeX~ classes.~ Please~ use~ instead~ the~ user-friendly~ and~ + modern~ `tikz-cd'~ package.}% \msg_new:nnn{nwejmart}{Wrong~paired~delimiter's~size~parameter}{The~ 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~ @@ -124,14 +133,17 @@ \RequirePackage[l2tabu,orthodox]{nag} \pdftex_if_engine:TF { - \RequirePackage[T1]{fontenc} \RequirePackage[utf8]{inputenc} }{ \RequirePackage{fontspec} + \DeclareTextCommandDefault{\nobreakspace}{\leavevmode\nobreak\ } } +\RequirePackage[T1]{fontenc} \RequirePackage[pagestyles]{titlesec}% \RequirePackage{graphicx}% \RequirePackage{adjustbox}% +\RequirePackage{xr} +\RequirePackage{currfile} \RequirePackage[multiple]{footmisc}% \RequirePackage[svgnames]{xcolor}% \RequirePackage{xspace}% @@ -155,6 +167,8 @@ \RequirePackage[inline]{enumitem}% \RequirePackage{environ} \RequirePackage{footnote}% +\RequirePackage[backend=biber,style=nwejm]{biblatex}% +\ExecuteBibliographyOptions{defernumbers=true,dashed=false,uniquename=init,backref,safeinputenc} \RequirePackage[hyperfootnotes=false,pdfencoding=unicode]{hyperref}% \AtBeginDocument{% \hypersetup{hidelinks,hypertexnames=false}% @@ -164,8 +178,6 @@ \RequirePackage[nowarn]{glossaries}% \RequirePackage{cleveref}% \RequirePackage{autonum} -\RequirePackage[backend=biber,style=nwejm]{biblatex}% -\ExecuteBibliographyOptions{defernumbers=true,dashed=false,uniquename=init,backref,safeinputenc} \makeglossaries \setglossarystyle{indexhypergroup} \setacronymstyle{long-sc-short} @@ -176,6 +188,7 @@ \int_const:Nn \c__nwejm_first_issue_year_int { 2016 } \int_const:Nn \c__nwejm_first_issue_month_int { 1 } \int_const:Nn \c__nwejm_interval_in_months_int { 6 } +\tl_const:Nn \c__nwejm_main_file_name_tl {issue} \tl_const:Nn \c__nwejm_date_received_tl {received} \tl_const:Nn \c__nwejm_date_accepted_tl {accepted} \tl_const:Nn \c__nwejm_date_online_tl {online} @@ -625,6 +638,11 @@ \tl_set:Nn \l__nwejm_msc_tl {\seq_use:Nn \l__nwejm_msc_seq {,~}} %%<class-article> \hypersetup{pdfmsc=\l_@@_msc_tl} } + +\file_if_exist:nT { \c__nwejm_main_file_name_tl.aux } +{\externaldocument[__nwejm-]{\c__nwejm_main_file_name_tl} + \AtBeginDocument{\setcounter{page}{\number\numexpr\getpagerefnumber{__nwejm-\currfilebase}}} +} \cs_new_protected:Nn \__nwejm_command_only_in_body:n { \cs_if_eq:NNF {\@onlypreamble} {\@notprerr} { @@ -995,6 +1013,7 @@ } \\[-4ex] } +\label{\currfilebase} \bool_gset_false:N \g__nwejm_date_specified_bool \bookmarksetup{depth=subsection} \setsecnumdepth{subsection} @@ -1044,6 +1063,7 @@ } \sisetup{detect-all} } +\apptocmd{\appendix}{\renewcommand{\thesection}{\Alph{section}}}{}{} \cs_set_eq:NN \__nwejm_section \section \cs_set_eq:NN \__nwejm_subsection \subsection \cs_set_eq:NN \__nwejm_subsubsection \subsubsection @@ -1847,7 +1867,7 @@ \__nwejm_printbibliography[heading=__nwejm_subbibliography,resetnumbers,#1] \bool_if:NF \g__nwejm_nolocaltoc_bool { \newpage - \setcounter{page}{0} + \setcounter{page}{\c_zero} \pagenumbering{roman}% \etocarticlestylenomarks \etocsetlevel{chapter}{6} @@ -1910,6 +1930,14 @@ {\normalfont\centering}{}{0pt}{} \titlespacing*{\chapter}{0pt}{0pt}{0pt} } +\AtEndPreamble{% + \@ifpackageloaded{xy}{% + \msg_error:nn{ + nwejmart + }{`xy'~package~not~allowed!} + }{ + } +} \ExplSyntaxOff \patchcmd{\autonum@saveEnvironmentSubcommands} {(0,0)\begin} |