summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ncclatex/ncctheorems.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/ncclatex/ncctheorems.sty
Initial commit
Diffstat (limited to 'macros/latex/contrib/ncclatex/ncctheorems.sty')
-rw-r--r--macros/latex/contrib/ncclatex/ncctheorems.sty82
1 files changed, 82 insertions, 0 deletions
diff --git a/macros/latex/contrib/ncclatex/ncctheorems.sty b/macros/latex/contrib/ncclatex/ncctheorems.sty
new file mode 100644
index 0000000000..adda757282
--- /dev/null
+++ b/macros/latex/contrib/ncclatex/ncctheorems.sty
@@ -0,0 +1,82 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{ncctheorems}
+ [2006/01/17 v1.01 NCC-LaTeX default theorems (NCC)]
+%
+% \changes{v1.00}{2005/12/27}{This version is uploaded to CTAN}
+% \changes{v1.01}{2006/01/17}{addtopackage -> afterpackage}
+%
+% The package specifies theorem-like environments to be defined when the
+% nccthm package will be loaded. It extends the default settings from
+% the nccdefaults package.
+%
+\RequirePackage{nccdefaults}
+%
+% Customize nccthm package
+%
+\AfterPackage{nccthm}{%
+%
+% Define headers for theorem-like environments.
+%
+ \newcommand{\theoremname}{Theorem}
+ \newcommand{\lemmaname}{Lemma}
+ \newcommand{\propositionname}{Proposition}
+ \newcommand{\corollaryname}{Corollary}
+ \newcommand{\definitionname}{Definition}
+ \newcommand{\statementname}{Statement}
+ \newcommand{\examplename}{Example}
+ \newcommand{\remarkname}{Remark}
+%
+% Prepare theorem-like environments
+%
+ \newtheorem{theorem}{\theoremname}
+ \newtheorem{lemma}{\lemmaname}
+ \newtheorem{proposition}{\propositionname}
+ \newtheorem{corollary}{\corollaryname}
+ \newtheorem{statement}{\statementname}[remark]
+ \newtheorem{definition}{\definitionname}[remark]
+ \newtheorem{example}{\examplename}[remark]
+ \newtheorem{remark}{\remarkname}[remark]
+%
+% Prepare APAR theorem-like environments
+%
+ \newtheorem*{atheorem}{\theoremname}
+ \newtheorem*{alemma}{\lemmaname}
+ \newtheorem*{aproposition}{\propositionname}
+ \newtheorem*{acorollary}{\corollaryname}
+ \newtheorem*{astatement}{\statementname}[remark]
+ \newtheorem*{adefinition}{\definitionname}[remark]
+ \newtheorem*{anexample}{\examplename}[remark]
+ \newtheorem*{aremark}{\remarkname}[remark]
+%
+% Prepare manual theorem-like environments
+%
+ \newenvironment{Theorem}{\liketheorem{\theoremname}}{\qef}
+ \newenvironment{Lemma}{\liketheorem{\lemmaname}}{\qef}
+ \newenvironment{Proposition}{\liketheorem{\propositionname}}{\qef}
+ \newenvironment{Corollary}{\liketheorem{\corollaryname}}{\qef}
+ \newenvironment{Statement}{\likeremark{\statementname}}{\qef}
+ \newenvironment{Definition}{\likeremark{\definitionname}}{\qef}
+ \newenvironment{Example}{\likeremark{\examplename}}{\qef}
+ \newenvironment{Remark}{\likeremark{\remarkname}}{\qef}
+}
+%
+% Specify russian versions of theorem-like titles.
+%
+\AfterPackage{babel}{%
+ \addto\captionsrussian{%
+ \def\theoremname{{\cyr\CYRT\cyre\cyro\cyrr\cyre\cyrm\cyra}}%
+ \def\lemmaname{{\cyr\CYRL\cyre\cyrm\cyrm\cyra}}%
+ \def\propositionname{%
+ {\cyr\CYRP\cyrr\cyre\cyrd\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre}}%
+ \def\corollaryname{%
+ {\cyr\CYRS\cyrl\cyre\cyrd\cyrs\cyrt\cyrv\cyri\cyre}}%
+ \def\definitionname{%
+ {\cyr\CYRO\cyrp\cyrr\cyre\cyrd\cyre\cyrl\cyre\cyrn\cyri\cyre}}%
+ \def\statementname{%
+ {\cyr\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyre}}%
+ \def\examplename{{\cyr\CYRP\cyrr\cyri\cyrm\cyre\cyrr}}%
+ \def\remarkname{%
+ {\cyr\CYRZ\cyra\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyre}}%
+ }
+}
+\endinput \ No newline at end of file