Removed legacy code in localTheorem.sty.

parent 5131fd20
......@@ -19,20 +19,6 @@
\RequirePackage{etoolbox}
\RequirePackage{xifthen}
\RequirePackage{expl3}
\ExplSyntaxOn
%% workaround for syntax change in newer expl3 implementations
\cs_if_exist:NF \prg_case_str:nnn
{ \cs_new_eq:NN \prg_case_str:nnn \str_case:nnn }
\cs_if_exist:NF \str_case:nnn
{ \cs_new_eq:NN \str_case:nnn \prg_case_str:nnn }
%% workaround for a temporary problem (july 2015)
\cs_if_exist:NF \str_case:nnn
{ \cs_new_eq:NN \str_case:nnn \str_case:nnF }
\cs_if_exist:NF \str_case_x:nnn
{ \cs_new_eq:NN \str_case_x:nnn \str_case_x:nnF }
\cs_if_exist:NF \int_case:nnn
{ \cs_new_eq:NN \int_case:nnn \int_case:nnF }
\ExplSyntaxOff
\@ifclassloaded{beamer}{}{\let\openbox\@undefined}
......@@ -133,8 +119,7 @@
} %%% end parskip-sensitive stuff %%%
\ExplSyntaxOn
\newcommand{\localTheorem@temp}[1]{
\str_case:nnn{#1}{
\str_case:onF{\localTheorem@language}{
{english} {
\@newtheorem{lemma}{Lemma}
\@newtheorem{theorem}{Theorem}
......@@ -184,6 +169,5 @@
\newtheorem{exercise}{}[\localTheorem@exerciseswithin]
\providecommand*{\exerciseautorefname}{Übung}
}
}{\PackageError{localTheorem}{Unknown~language:~#1}\@ehc}}
}{\PackageError{localTheorem}{Unknown~language:~\localTheorem@language}\@ehc}
\ExplSyntaxOff
\expandafter\localTheorem@temp\expandafter{\localTheorem@language}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment