diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/projlib/PJLthm.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/projlib/PJLthm.sty | 55 |
1 files changed, 19 insertions, 36 deletions
diff --git a/Master/texmf-dist/tex/latex/projlib/PJLthm.sty b/Master/texmf-dist/tex/latex/projlib/PJLthm.sty index e3932e9e157..d36e31122e8 100644 --- a/Master/texmf-dist/tex/latex/projlib/PJLthm.sty +++ b/Master/texmf-dist/tex/latex/projlib/PJLthm.sty @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesPackage{PJLthm} - [2021/08/07a Theorem setup and configuration] + [2021/08/11 Theorem setup and configuration] \RequirePackage{kvoptions} \RequirePackage{etoolbox} \SetupKeyvalOptions{% @@ -25,6 +25,7 @@ prefix = @PJLthm@ } \DeclareBoolOption[false]{nothms} +\DeclareBoolOption[false]{delaythms} \DeclareBoolOption[false]{nothmnum} \DeclareStringOption{thmnum}[PJL@thmnum@default] \DeclareBoolOption[false]{draft} @@ -54,34 +55,8 @@ \expandafter\StrGobbleRight\expandafter{\PJLthm@temp}{1}[\PJLthm@temp]% }{}% \IfValueTF{#1}{% - \lowercase{\IfStrEqCase{#1}}{% - {cn}{\def\PJL@temp@abbr{CN}}% - {chinese}{\def\PJL@temp@abbr{CN}}% - {schinese}{\def\PJL@temp@abbr{CN}}% - {simplifiedchinese}{\def\PJL@temp@abbr{CN}}% - {tc}{\def\PJL@temp@abbr{TC}}% - {tchinese}{\def\PJL@temp@abbr{TC}}% - {traditionalchinese}{\def\PJL@temp@abbr{TC}}% - {jp}{\def\PJL@temp@abbr{JP}}% - {japanese}{\def\PJL@temp@abbr{JP}}% - {en}{\def\PJL@temp@abbr{EN}}% - {english}{\def\PJL@temp@abbr{EN}}% - {fr}{\def\PJL@temp@abbr{FR}}% - {french}{\def\PJL@temp@abbr{FR}}% - {de}{\def\PJL@temp@abbr{DE}}% - {ngerman}{\def\PJL@temp@abbr{DE}}% - {german}{\def\PJL@temp@abbr{DE}}% - {it}{\def\PJL@temp@abbr{IT}}% - {italian}{\def\PJL@temp@abbr{IT}}% - {pt}{\def\PJL@temp@abbr{PT}}% - {portuguese}{\def\PJL@temp@abbr{PT}}% - {br}{\def\PJL@temp@abbr{BR}}% - {brazilian}{\def\PJL@temp@abbr{BR}}% - {es}{\def\PJL@temp@abbr{ES}}% - {spanish}{\def\PJL@temp@abbr{ES}}% - {ru}{\def\PJL@temp@abbr{RU}}% - {russian}{\def\PJL@temp@abbr{RU}}% - }% + \expandafter\def\expandafter\PJL@temp@abbr\expandafter% + {\expandafter\StrToABBR\expandafter{#1}}% \expandafter\def\csname\PJLthm@temp name\PJL@temp@abbr\endcsname{#3}% }{% \expandafter\def\csname\PJLthm@temp nameEN\endcsname{#3}% @@ -524,7 +499,8 @@ } } } -\AtEndPreamble{ + +\def\PJLthm@definethms{ \if@PJLthm@nothms\else \if@PJLthm@nothmnum \CreateTheorem*{theorem} @@ -603,7 +579,6 @@ \CreateTheorem*{remark*} \CreateTheorem*{observation*} \fi -} \expandafter\ifstrempty\expandafter{\@PJLthm@thmnum}{ \numberwithin{equation}{PJLthm@highest} @@ -614,7 +589,15 @@ } } -\gappto{\PJLlang@langconfig@schinese}{% +} % End of \PJLthm@definethms + +\if@PJLthm@delaythms + \AtEndPreamble{\PJLthm@definethms} +\else + \PJLthm@definethms +\fi + +\gappto{\PJLlang@langconfig@CN}{% \crefname{equation}{式}{式}% \crefname{figure}{图}{图}% \crefname{table}{表}{表}% @@ -631,7 +614,7 @@ \def\creflastgroupconjunction{~和~}% \def\crefrangeconjunction{~}% } -\gappto{\PJLlang@langconfig@tchinese}{% +\gappto{\PJLlang@langconfig@TC}{% \crefname{equation}{式}{式}% \crefname{figure}{圖}{圖}% \crefname{table}{表}{表}% @@ -648,7 +631,7 @@ \def\creflastgroupconjunction{~與~}% \def\crefrangeconjunction{~}% } -\gappto{\PJLlang@langconfig@japanese}{% +\gappto{\PJLlang@langconfig@JP}{% \crefname{equation}{式}{式}% \crefname{figure}{図}{図}% \crefname{table}{表}{表}% @@ -665,7 +648,7 @@ \def\creflastgroupconjunction{~と~}% \def\crefrangeconjunction{〜}% } -\gappto{\PJLlang@langconfig@russian}{% +\gappto{\PJLlang@langconfig@RU}{% \crefname{equation}{уравнение}{уравнения}% \crefname{figure}{рис.}{рис.}% \crefname{table}{таблица}{таблицы}% @@ -682,7 +665,7 @@ \def\creflastgroupconjunction{~и~}% \def\crefrangeconjunction{~\textasciitilde~}% } -\gappto{\PJLlang@langconfig@portuguese}{% +\gappto{\PJLlang@langconfig@PT}{% \crefname{equation}{eq.}{eqs.}% \crefname{figure}{fig.}{figs.}% \crefname{table}{tabela}{tabelas}% |