%thmEng.sty
%-------------------------------
\ifsecthm
\newtheorem{thm}{Theorem}[section]
\else
\newtheorem{thm}{Theorem}
\iftosithm
\else
\@addtoreset{thm}{section}
\fi
\fi
%-------------------------------
\def\nthm#1#2{%
\ifsamethm
\newtheorem{#1}[thm]{#2}
\else
\ifsecthm
\newtheorem{#1}{#2}[section]
\else
\newtheorem{#1}{#2}
\iftosithm
\else
\@addtoreset{thm}{section}
\fi
\fi\fi}
%-------------------------------
\nthm{prop}{Proposition}
\nthm{lemma}{Lemma}
\nthm{definition}{Definition}
\nthm{sublemma}{Sublemma}
\nthm{remark}{Remark}
\nthm{example}{Example}
\nthm{corollary}{Collorary}
\nthm{problem}{Problem}
%-------------------------------
%-------------------------------
\endinput
