]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-chap.module
Allow literate documents other than noweb to work out of the box. Currently
[lyx.git] / lib / layouts / theorems-chap.module
index 2b986a5803ad0295658a1a8ee86aa1ffa64c49ca..a83b4b5894dca11b6a0fb9bbc695996b653bd9d8 100644 (file)
@@ -8,7 +8,7 @@
 
 # Author: Richard Heck <rgheck@comcast.net>
 
-Format 11
+Format 14
 
 Counter theorem
        Within         chapter
@@ -17,9 +17,15 @@ End
 Style Theorem
        Preamble
                \ifx\thechapter\undefined
-                       \newtheorem{thm}{Theorem}
+                       \newtheorem{thm}{\protect\theoremname}
                \else
-                       \newtheorem{thm}{Theorem}[chapter]
+                       \newtheorem{thm}{\protect\theoremname}[chapter]
                \fi
        EndPreamble
+       LangPreamble
+               \providecommand{\theoremname}{_(Theorem)}
+       EndLangPreamble
+       BabelPreamble
+               \addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
+       EndBabelPreamble
 End