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.cls93
1 files changed, 52 insertions, 41 deletions
diff --git a/Master/texmf-dist/tex/latex/nwejm/nwejm.cls b/Master/texmf-dist/tex/latex/nwejm/nwejm.cls
index 2c6687a3e62..19e0f832d7a 100644
--- a/Master/texmf-dist/tex/latex/nwejm/nwejm.cls
+++ b/Master/texmf-dist/tex/latex/nwejm/nwejm.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{
nwejm
}{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{
+ nwejm
+}{`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~
@@ -120,11 +129,12 @@
\RequirePackage[l2tabu,orthodox]{nag}
\pdftex_if_engine:TF
{
- \RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
}{
\RequirePackage{fontspec}
+ \DeclareTextCommandDefault{\nobreakspace}{\leavevmode\nobreak\ }
}
+\RequirePackage[T1]{fontenc}
\RequirePackage[group=false,subpreambles,sort]{standalone}%
\RequirePackage[pagestyles]{titlesec}%
\RequirePackage{graphicx}%
@@ -134,6 +144,8 @@
}
\RequirePackage{adjustbox}%
\RequirePackage{zref-totpages}
+\RequirePackage{xr}
+\RequirePackage{currfile}
\RequirePackage{zref-xr}%
\RequirePackage[multiple]{footmisc}%
\RequirePackage[svgnames]{xcolor}%
@@ -161,6 +173,8 @@
\RequirePackage{datatool}%
\RequirePackage{placeins}%
\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}%
@@ -170,8 +184,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}
@@ -204,9 +216,8 @@
\tl_const:Nn \c__nwejm_backmatter_directory_string_tl {backmatter}
\tl_const:Nn \c__nwejm_issue_backcover_text_file_string_tl {backcover}
\tl_const:Nn \c__nwejm_backcover_page_file_string_tl {\c__nwejm_backmatter_directory_string_tl/\c__nwejm_issue_backcover_text_file_string_tl}
-\tl_const:Nn \c__nwejm_authors_instructions_file_extension_tl {ain}
-\tl_const:Nn \c__nwejm_authors_instructions_file_tl {\c_job_name_tl.\c__nwejm_authors_instructions_file_extension_tl}
\tl_const:Nn \c__nwejm_authors_instructions_string_tl {Instructions~to~authors}
+\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}
@@ -493,7 +504,7 @@
\preto\@enddocumenthook{
\cleardoublepage
\pagenumbering{roman}%
- \setcounter{page}{3}
+ \setcounter{page}{\c_three}
\bool_gset_true:N \g__nwejm_backmatter_bool
\g__nwejm_display_inside_backcover_tl
\newpage
@@ -1056,36 +1067,31 @@
\bool_if:NTF {\g__nwejm_no_inside_backcover_bool} {
\hbox{}
}{%
- \small%
- \file_if_exist:nT { \c__nwejm_authors_instructions_file_tl } {%
- % \begin{multicols}{2}
- % \setlength{\columnsep}{1mm}
- \file_input:n {\c__nwejm_authors_instructions_file_tl}
- % \end{multicols}
- % \setlength{\columnseprule}{1pt}
- }
+ % \small%
\begin{description}[leftmargin=1em]
- \item[\c__nwejm_editorial_secretariat_string_tl{}~:] \ \par%
+ \item[\c__nwejm_authors_instructions_string_tl{}:] \
+ \g__nwejm_authors_instructions_tl
+ \item[\c__nwejm_editorial_secretariat_string_tl{}:] \ \par%
% \l__nwejm_journal_publisher_tl%
% \par%
% \space\textendash{}\space%
\__nwejm_display_people_by_role:n { secretary }\par
\l__nwejm_journal_address_tl\par%
- \c__nwejm_phone_string_tl{}~:~\l__nwejm_journal_phone_tl{}\par%
+ \c__nwejm_phone_string_tl{}:~\l__nwejm_journal_phone_tl{}\par%
\__nwejm_email:n {\l__nwejm_journal_email_tl}
\newline%
% \space\textendash{}\space
\url{\l__nwejm_journal_url_tl}
- \item[\c__nwejm_issn_string_tl{}~:] \l__nwejm_journal_issn_tl
+ \item[\c__nwejm_issn_string_tl{}:] \l__nwejm_journal_issn_tl
\tl_if_empty:NF \l__nwejm_journal_isbn_tl
{%
- \item[\c__nwejm_isbn_string_tl{}~:] \l__nwejm_journal_isbn_tl
+ \item[\c__nwejm_isbn_string_tl{}:] \l__nwejm_journal_isbn_tl
}
- \item[\c__nwejm_latexclass_string_tl{}~:]
+ \item[\c__nwejm_latexclass_string_tl{}:]
\__nwejm_display_people_by_role:n { classdesigner }
- \item[\c__nwejm_computer_engineering_string_tl{}~:] %\g__nwejm_printer_text_tl
+ \item[\c__nwejm_computer_engineering_string_tl{}:] %\g__nwejm_printer_text_tl
\__nwejm_display_people_by_role:n { computerengineer }
- \item[\c__nwejm_printer_string_tl{}~:] %\g__nwejm_printer_text_tl
+ \item[\c__nwejm_printer_string_tl{}:] %\g__nwejm_printer_text_tl
\__nwejm_display_people_by_role:n { printingservice }
\end{description}
\g__nwejm_font_designer_text_tl
@@ -1167,6 +1173,9 @@
\tl_set:Nn \l__nwejm_msc_tl {\seq_use:Nn \l__nwejm_msc_seq {,~}}
%%<class-article> \hypersetup{pdfmsc=\l_@@_msc_tl}
}
+\tl_new:N \l__nwejm_jobname_tl
+\tl_set:Nn \l__nwejm_jobname_tl {\jobname}
+\str_if_eq_x:nnF \l__nwejm_jobname_tl \c__nwejm_main_file_name_tl { \msg_error:nn{nwejm}{Wrong~main~file~name!} }
%% \enquote{R\'{e}dacteur(s) en chef}.
\NewDocumentCommand \editorinchief {mmmm}
{
@@ -1254,6 +1263,13 @@
\NewDocumentCommand \journalsetup { m } {
\keys_set:nn { nwejm/journalsetup } { #1 }
}
+\tl_new:N \g__nwejm_authors_instructions_tl
+\NewDocumentCommand \authorsinstructions { +m } {
+ \IfNoValueF {#1}
+ {
+ \tl_gset:Nn \g__nwejm_authors_instructions_tl {#1}
+ }
+}
\addto\extrasfrench{%
\def\reftextfaceafter {page~\reftextvario{ci-contre}{suivante}}%
\def\reftextfacebefore{page~\reftextvario{ci-contre}%
@@ -1673,6 +1689,7 @@
}
\\[-4ex]
}
+\label{\currfilebase}
\bool_gset_false:N \g__nwejm_date_specified_bool
\bookmarksetup{depth=subsection}
\setsecnumdepth{subsection}
@@ -1722,6 +1739,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
@@ -2587,32 +2605,25 @@
disable%
}
}
- \bool_if:NTF {\g__nwejm_for_authors_bool} {
- \thispagestyle{empty}
- \includegraphics{gzt-logo}
- \hfill
- \includegraphics[height=22.5mm]{\c__nwejm_smf_logo_file_string_tl}%
- \par
- \vfill
- \begin{adjustbox}{valign=c,minipage=\linewidth}
- \Large%
- \c__nwejm_preliminary_version_string_tl%
- \end{adjustbox}
- \vfill
- \newpage
- }{
- \bool_if:NF {\g__nwejm_inside_pages_bool} {
- \g__nwejm_display_frontcover_tl
- \g__nwejm_display_inside_frontcover_tl
- }
- \tableofcontents
+ \bool_if:NF {\g__nwejm_inside_pages_bool} {
+ \g__nwejm_display_frontcover_tl
+ \g__nwejm_display_inside_frontcover_tl
}
+ \tableofcontents
}
\AfterEndPreamble{%
\titleformat{\chapter}[block]
{\normalfont\centering}{}{0pt}{}
\titlespacing*{\chapter}{0pt}{0pt}{0pt}
}
+\AtEndPreamble{%
+ \@ifpackageloaded{xy}{%
+ \msg_error:nn{
+ nwejm
+ }{`xy'~package~not~allowed!}
+ }{
+ }
+}
\ExplSyntaxOff
\patchcmd{\autonum@saveEnvironmentSubcommands}
{(0,0)\begin}