summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ncclatex/ncctheorems.sty
blob: adda7572826d20417c5483682bc1ff41cc38bcd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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