add axiom and postulate

This commit is contained in:
EthanDeng
2019-12-31 17:28:18 +08:00
parent b756eb2966
commit bd16ebc36e

View File

@@ -439,9 +439,13 @@
\ifdefstring{\ELEGANT@lang}{en}{Theorem}{} \ifdefstring{\ELEGANT@lang}{en}{Theorem}{}
}{thmstyle}{thm} }{thmstyle}{thm}
% \newtcbtheorem[auto counter,use counter from=theorem]{axiom}{ \newtcbtheorem[auto counter,number within=chapter]{postulate}{
% \ifdefstring{\ELEGANT@lang}{en}{Axiom}{} \ifdefstring{\ELEGANT@lang}{en}{Postulate}{}
% }{thmstyle}{axi} }{thmstyle}{pos}
\newtcbtheorem[auto counter,number within=chapter]{axiom}{
\ifdefstring{\ELEGANT@lang}{en}{Axiom}{}
}{thmstyle}{axi}
\newtcbtheorem[auto counter,number within=chapter]{proposition}{ \newtcbtheorem[auto counter,number within=chapter]{proposition}{
\ifdefstring{\ELEGANT@lang}{en}{Proposition}{} \ifdefstring{\ELEGANT@lang}{en}{Proposition}{}
@@ -500,6 +504,8 @@
\newtheorem{etheorem}{\ifdefstring{\ELEGANT@lang}{en}{Theorem}{}}[chapter] \newtheorem{etheorem}{\ifdefstring{\ELEGANT@lang}{en}{Theorem}{}}[chapter]
\newtheorem{elemma}{\ifdefstring{\ELEGANT@lang}{en}{Lemma}{}}[chapter] \newtheorem{elemma}{\ifdefstring{\ELEGANT@lang}{en}{Lemma}{}}[chapter]
\newtheorem{ecorollary}{\ifdefstring{\ELEGANT@lang}{en}{Corollary}{}}[chapter] \newtheorem{ecorollary}{\ifdefstring{\ELEGANT@lang}{en}{Corollary}{}}[chapter]
\newtheorem{epostulate}{\ifdefstring{\ELEGANT@lang}{en}{Postulate}{}}[chapter]
\newtheorem{eaxiom}{\ifdefstring{\ELEGANT@lang}{en}{Axiom}{}}[chapter]
\theoremstyle{eprostyle} \theoremstyle{eprostyle}
\newtheorem{eproposition}{\ifdefstring{\ELEGANT@lang}{en}{Proposition}{}}[chapter] \newtheorem{eproposition}{\ifdefstring{\ELEGANT@lang}{en}{Proposition}{}}[chapter]
@@ -520,6 +526,14 @@
{\ifstrempty{#1}{\ecorollary}{\ecorollary[#1]}\ifstrempty{#2}{}{\label{cor:#2}}} {\ifstrempty{#1}{\ecorollary}{\ecorollary[#1]}\ifstrempty{#2}{}{\label{cor:#2}}}
{\endecorollary} {\endecorollary}
\newenvironment{postulate}[2]
{\ifstrempty{#1}{\epostulate}{\epostulate[#1]}\ifstrempty{#2}{}{\label{pos:#2}}}
{\endepostulate}
\newenvironment{axiom}[2]
{\ifstrempty{#1}{\eaxiom}{\eaxiom[#1]}\ifstrempty{#2}{}{\label{axi:#2}}}
{\endaxiom}
\newenvironment{proposition}[2] \newenvironment{proposition}[2]
{\ifstrempty{#1}{\eproposition}{\eproposition[#1]}\ifstrempty{#2}{}{\label{pro:#2}}} {\ifstrempty{#1}{\eproposition}{\eproposition[#1]}\ifstrempty{#2}{}{\label{pro:#2}}}
{\endeproposition} {\endeproposition}