]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-std.module
specify a background color for listings and allow the user to change it, patch by...
[lyx.git] / lib / layouts / theorems-std.module
index 87ba21cf4e28b07eba1b3e677455f9877df61ae5..73447c528629475e5744a16661b990d5584c2a50 100644 (file)
@@ -8,7 +8,7 @@
 
 # Author: Richard Heck <rgheck@comcast.net>
 
-Format 6
+Format 8
 
 Counter
        Name                 theorem
@@ -20,17 +20,18 @@ Input theorems-proof.inc
 #This is just a hacked version of the AMS proof environment
 Style Proof
   Preamble
-    \newenvironment{proof}[1][\proofname]{\par
-      \normalfont\topsep6\p@\@plus6\p@\relax
-      \trivlist
-      \itemindent\parindent
-      \item[\hskip\labelsep
-            \scshape
-        #1]\ignorespaces
-    }{%
-      \endtrivlist\@endpefalse
-    }
-\providecommand{\proofname}{Proof}
-
+    \ifx\proof\undefined\
+      \newenvironment{proof}[1][\proofname]{\par
+        \normalfont\topsep6\p@\@plus6\p@\relax
+        \trivlist
+        \itemindent\parindent
+        \item[\hskip\labelsep
+              \scshape
+          #1]\ignorespaces
+      }{%
+        \endtrivlist\@endpefalse
+      }
+      \providecommand{\proofname}{Proof}
+    \fi
   EndPreamble
 End
\ No newline at end of file