]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-ams-bytype.inc
stdstarsections.inc, tufte-handout.layout: whitespace
[lyx.git] / lib / layouts / theorems-ams-bytype.inc
index 13d36831b065176e13a96928d9b13ee73008f3ed..a88560c94c81e91a4b3810aacd652a6013bf2dc1 100644 (file)
@@ -21,7 +21,7 @@
 # - Case (regular only -- defined as an enumeration)
 
 # We need separate counters for each theorem-like style.
-Format 30
+Format 35
 Counter theorem
 End
 Counter corollary
@@ -47,8 +47,6 @@ End
 Counter claim
 End
 
-Format 11
-
 Style Theorem
        Category              Theorem
        Margin                First_Dynamic
@@ -78,8 +76,14 @@ Style Theorem
        EndFont
        Preamble
                \theoremstyle{plain}
-               \newtheorem{thm}{Theorem}
+               \newtheorem{thm}{\protect\theoremname}
        EndPreamble
+       LangPreamble
+               \providecommand{\theoremname}{_(Theorem)}
+       EndLangPreamble
+       BabelPreamble
+               \addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
+       EndBabelPreamble
        Requires              amsthm
 End
 
@@ -90,9 +94,15 @@ Style Corollary
        LabelString           "Corollary \thecorollary."
        Preamble
          \theoremstyle{plain}
-         \newtheorem{cor}{Corollary}
+         \newtheorem{cor}{\protect\corollaryname}
        EndPreamble
        LabelCounter          corollary
+       LangPreamble
+               \providecommand{\corollaryname}{_(Corollary)}
+       EndLangPreamble
+       BabelPreamble
+               \addto\captions$$lang{\renewcommand{\corollaryname}{_(Corollary)}}
+       EndBabelPreamble
 End
 
 
@@ -102,8 +112,14 @@ Style Lemma
        LabelString           "Lemma \thelemma."
        Preamble
          \theoremstyle{plain}
-         \newtheorem{lem}{Lemma}
+         \newtheorem{lem}{\protect\lemmaname}
        EndPreamble
+       LangPreamble
+         \providecommand{\lemmaname}{_(Lemma)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\lemmaname}{_(Lemma)}}
+       EndBabelPreamble
        LabelCounter          lemma
 End
 
@@ -114,8 +130,14 @@ Style Proposition
        LabelString           "Proposition \theproposition."
        Preamble
          \theoremstyle{plain}
-         \newtheorem{prop}{Proposition}
+         \newtheorem{prop}{\protect\propositionname}
        EndPreamble
+       LangPreamble
+         \providecommand{\propositionname}{_(Proposition)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\propositionname}{_(Proposition)}}
+       EndBabelPreamble
        LabelCounter          proposition
 End
 
@@ -126,8 +148,14 @@ Style Conjecture
        LabelString           "Conjecture \theconjecture."
        Preamble
          \theoremstyle{plain}
-         \newtheorem{conjecture}{Conjecture}
+         \newtheorem{conjecture}{\protect\conjecturename}
        EndPreamble
+       LangPreamble
+         \providecommand{\conjecturename}{_(Conjecture)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\conjecturename}{_(Conjecture)}}
+       EndBabelPreamble
        LabelCounter          conjecture
 End
 
@@ -138,8 +166,14 @@ Style Fact
        LabelString           "Fact \thefact."
        Preamble
          \theoremstyle{plain}
-         \newtheorem{fact}{Fact}
+         \newtheorem{fact}{\protect\factname}
        EndPreamble
+       LangPreamble
+         \providecommand{\factname}{_(Fact)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\factname}{_(Fact)}}
+       EndBabelPreamble
        LabelCounter          fact
 End
 
@@ -157,8 +191,14 @@ Style Definition
        EndFont
        Preamble
          \theoremstyle{definition}
-         \newtheorem{defn}{Definition}
+         \newtheorem{defn}{\protect\definitionname}
        EndPreamble
+       LangPreamble
+         \providecommand{\definitionname}{_(Definition)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\definitionname}{_(Definition)}}
+       EndBabelPreamble
        LabelCounter          definition
 End
 
@@ -169,9 +209,15 @@ Style Example
        LabelString           "Example \theexample."
        Preamble
         \theoremstyle{definition}
-         \newtheorem{example}{Example}
+         \newtheorem{example}{\protect\examplename}
        EndPreamble
        Requires              amsthm
+       LangPreamble
+         \providecommand{\examplename}{_(Example)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}
+       EndBabelPreamble
        LabelCounter          example
 End
 
@@ -182,9 +228,15 @@ Style Problem
        LabelString           "Problem \theproblem."
        Preamble
          \theoremstyle{definition}
-         \newtheorem{problem}{Problem}
+         \newtheorem{problem}{\protect\problemname}
        EndPreamble
        Requires              amsthm
+       LangPreamble
+         \providecommand{\problemname}{_(Problem)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\problemname}{_(Problem)}}
+       EndBabelPreamble
        LabelCounter          problem
 End
 
@@ -195,9 +247,15 @@ Style Exercise
        LabelString           "Exercise \theexercise."
        Preamble
          \theoremstyle{definition}
-         \newtheorem{xca}{Exercise}
+         \newtheorem{xca}{\protect\exercisename}
        EndPreamble
        Requires              amsthm
+       LangPreamble
+         \providecommand{\exercisename}{_(Exercise)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\exercisename}{_(Exercise)}}
+       EndBabelPreamble
        LabelCounter          exercise
 End
 
@@ -216,8 +274,14 @@ Style Remark
        EndFont
        Preamble
          \theoremstyle{remark}
-         \newtheorem{rem}{Remark}
+         \newtheorem{rem}{\protect\remarkname}
        EndPreamble
+       LangPreamble
+         \providecommand{\remarkname}{_(Remark)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\remarkname}{_(Remark)}}
+       EndBabelPreamble
        LabelCounter          remark
 End
 
@@ -228,9 +292,15 @@ Style Claim
        LabelString           "Claim \theclaim."
        Preamble
          \theoremstyle{remark}
-         \newtheorem{claim}{Claim}
+         \newtheorem{claim}{\protect\claimname}
        EndPreamble
        Requires              amsthm
+       LangPreamble
+         \providecommand{\claimname}{_(Claim)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\claimname}{_(Claim)}}
+       EndBabelPreamble
        LabelCounter          claim
 End
 
@@ -260,7 +330,7 @@ Style Case
        Preamble
          \newcounter{casectr}
          \newenvironment{caseenv}
-         {\begin{list}{{\itshape\ Case} \arabic{casectr}.}{%
+         {\begin{list}{{\itshape\ \protect\casename} \arabic{casectr}.}{%
           \setlength{\leftmargin}{\labelwidth}
           \addtolength{\leftmargin}{\parskip}
           \setlength{\itemindent}{\listparindent}
@@ -270,4 +340,10 @@ Style Case
           \usecounter{casectr}}
          {\end{list}}
        EndPreamble
+       LangPreamble
+         \providecommand{\casename}{_(Case)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\casename}{_(Case)}}
+       EndBabelPreamble
 End