diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/projlib/PJLlang.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/projlib/PJLlang.sty | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/projlib/PJLlang.sty b/Master/texmf-dist/tex/latex/projlib/PJLlang.sty index a59cdcdbfbd..e0ec000a039 100644 --- a/Master/texmf-dist/tex/latex/projlib/PJLlang.sty +++ b/Master/texmf-dist/tex/latex/projlib/PJLlang.sty @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesPackage{PJLlang} - [2021/07/30 Multi-language configuration] + [2021/08/07 Multi-language configuration] \RequirePackage{kvoptions} \RequirePackage{etoolbox} \SetupKeyvalOptions{% @@ -114,7 +114,7 @@ \newcommand\portugueseABBR{PT} \newcommand\brazilianABBR{BR} \newcommand\spanishABBR{ES} -\newcommand\chineseABBR{CN} +\newcommand\schineseABBR{CN} \newcommand\tchineseABBR{TC} \newcommand\japaneseABBR{JP} \newcommand\russianABBR{RU} @@ -154,6 +154,9 @@ \if@PJLlang@enable@FR \frenchsetup{PartNameFull=false} \fi + + \babelprovide{schinese} + \babelprovide{tchinese} \fi \let\today@PJLoriginal\today @@ -165,7 +168,7 @@ \fi% } -\newcommand{\PJLlang@langconfig@chinese}{% +\newcommand{\PJLlang@langconfig@schinese}{% \def\abstractname{摘要}% \def\proofname{证明}% \def\contentsname{目录}% @@ -178,7 +181,7 @@ \def\refname{参考文献}% \def\bibname{参考文献}% \let\today\zhtoday% - \renewcommand{\languagename}{chinese}% + \renewcommand{\languagename}{schinese}% } \newcommand{\PJLlang@langconfig@tchinese}{% \def\abstractname{摘要}% @@ -230,10 +233,10 @@ {\gappto{\PJLlang@langconfig@common}{#2}}% {% \lowercase{\IfStrEqCase{#1}}{% - {cn}{\gappto{\PJLlang@langconfig@chinese}{#2}}% - {chinese}{\gappto{\PJLlang@langconfig@chinese}{#2}}% - {schinese}{\gappto{\PJLlang@langconfig@chinese}{#2}}% - {simplifiedchinese}{\gappto{\PJLlang@langconfig@chinese}{#2}}% + {cn}{\gappto{\PJLlang@langconfig@schinese}{#2}}% + {chinese}{\gappto{\PJLlang@langconfig@schinese}{#2}}% + {schinese}{\gappto{\PJLlang@langconfig@schinese}{#2}}% + {simplifiedchinese}{\gappto{\PJLlang@langconfig@schinese}{#2}}% {tc}{\gappto{\PJLlang@langconfig@tchinese}{#2}}% {tchinese}{\gappto{\PJLlang@langconfig@tchinese}{#2}}% {traditionalchinese}{\gappto{\PJLlang@langconfig@tchinese}{#2}}% @@ -274,10 +277,10 @@ \newcommand{\UseLanguageCORE}[1]{% \PJLlang@langconfig@common% \lowercase{\IfStrEqCase{#1}}{% - {cn}{\PJL@config@CJK\PJLlang@langconfig@chinese}% - {chinese}{\PJL@config@CJK\PJLlang@langconfig@chinese}% - {schinese}{\PJL@config@CJK\PJLlang@langconfig@chinese}% - {simplifiedchinese}{\PJL@config@CJK\PJLlang@langconfig@chinese}% + {cn}{\PJL@config@CJK\PJLlang@langconfig@schinese}% + {chinese}{\PJL@config@CJK\PJLlang@langconfig@schinese}% + {schinese}{\PJL@config@CJK\PJLlang@langconfig@schinese}% + {simplifiedchinese}{\PJL@config@CJK\PJLlang@langconfig@schinese}% {tc}{\PJL@config@CJK\PJLlang@langconfig@tchinese}% {tchinese}{\PJL@config@CJK\PJLlang@langconfig@tchinese}% {traditionalchinese}{\PJL@config@CJK\PJLlang@langconfig@tchinese}% @@ -310,13 +313,13 @@ \fi% } \newcommand{\UseOtherLanguage}[2]{% -\begingroup% +\begingroup\begingroup% \PJLlang@langconfig@common% \lowercase{\IfStrEqCase{#1}}{% - {cn}{\PJLlang@langconfig@chinese}% - {chinese}{\PJLlang@langconfig@chinese}% - {schinese}{\PJLlang@langconfig@chinese}% - {simplifiedchinese}{\PJLlang@langconfig@chinese}% + {cn}{\PJLlang@langconfig@schinese}% + {chinese}{\PJLlang@langconfig@schinese}% + {schinese}{\PJLlang@langconfig@schinese}% + {simplifiedchinese}{\PJLlang@langconfig@schinese}% {tc}{\PJLlang@langconfig@tchinese}% {tchinese}{\PJLlang@langconfig@tchinese}% {traditionalchinese}{\PJLlang@langconfig@tchinese}% @@ -341,7 +344,7 @@ {russian}{\PJLlang@langconfig@russian}% }% #2% -\endgroup% +\endgroup\endgroup% } \IfStrEqCase{\PJLlang@mainlang}{% |