X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fbinaries%2Fmatex%2Ftest%2Fmatex.sty;h=a37b0054574565b626a2af8ed5b6ea8f4e20ae5d;hb=709537efda53c6189ed3e3e9877f1f93ac6d512a;hp=0785eea9211c2717b31071a985a2e8a54907e457;hpb=a961a1237063702ed9c32a9a4b7994671cb40818;p=helm.git diff --git a/matita/components/binaries/matex/test/matex.sty b/matita/components/binaries/matex/test/matex.sty index 0785eea92..a37b00545 100644 --- a/matita/components/binaries/matex/test/matex.sty +++ b/matita/components/binaries/matex/test/matex.sty @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesPackage{matex}[2016/02/03 MaTeX Package] +\ProvidesPackage{matex}[2016/02/15 MaTeX Package] \RequirePackage{xcolor} \ExecuteOptions{} \ProcessOptions* @@ -21,11 +21,16 @@ \newcommand*\ObjLabel[1]{\label{obj:#1}} \newcommand*\ObjRef[1]{\ref{obj:#1}} -\newtheorem{prop}{Proposition} -\newenvironment{proof}{\setlength\parindent{0pt}}{} -\newenvironment{ma@step}[1]{\color{#1}}{\\} +\newcommand*\ma@setlabel[2]{\setlabel{#1}\ObjLabel{#2}} +\newcommand*\ma@thehead[2]{\textbf{#1 (#2)}\\} +\newcommand*\ma@theneck[1]{\textsl{#1}\\} -\newcommand*\Object[3]{\begin{prop}[#1]\hfil\\\setlabel{#1}\ObjLabel{#2}#3\end{prop}} +\newenvironment{axiom}[2]{\ma@setlabel{#1}{#2}\ma@thehead{Axiom}{#1}}{} +\newenvironment{declaration}[2]{\ma@setlabel{#1}{#2}\ma@thehead{Declaration}{#1}}{} +\newenvironment{definition}[2]{}{} +\newenvironment{proposition}[2]{\ma@setlabel{#1}{#2}\ma@thehead{Proposition}{#1}}{} +\newenvironment{proof}[2]{\ma@theneck{Proof}}{} +\newenvironment{ma@step}[1]{\color{#1}}{\\} \newcommand*\ma@tmp{} \newcommand*\ma@skip[4]{}