X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Ftheorems-bytype.inc;h=263cdcb3d6dbbc3e78cc86c19738e6b02465f834;hb=1977beb5b260c39cd0997426bbaef22c7fab9d89;hp=3a9ca53a2f2d6ccacbc7ea7974bd6cb1f5bdf582;hpb=874e86795379c4cfb0730822ed53be99e68982a1;p=lyx.git diff --git a/lib/layouts/theorems-bytype.inc b/lib/layouts/theorems-bytype.inc index 3a9ca53a2f..263cdcb3d6 100644 --- a/lib/layouts/theorems-bytype.inc +++ b/lib/layouts/theorems-bytype.inc @@ -5,7 +5,7 @@ # Modularized Jan 08 by Richard Heck # Hacked June '09 by Paul Rubin to use separate counters -# The environnements defined are : +# The environments defined are : # - Theorem # - Corollary # - Lemma @@ -19,17 +19,21 @@ # - Remark # - Claim # - Proof -# - Case (regular only -- defined as an enumeration) +# - Case (by inclusion) -Format 31 +Format 49 Style Theorem - Category Theorem + Category Reasoning Margin First_Dynamic LatexType Environment LatexName thm NextNoIndent 1 - OptionalArgs 1 + ResetArgs 1 + Argument 1 + LabelString "Additional Theorem Text" + Tooltip "Additional text appended to the theorem header" + EndArgument LabelSep xx ParIndent MMM ParSkip 0.4 @@ -39,7 +43,7 @@ Style Theorem ParSep 0.3 Align Block AlignPossible Left - LabelType Counter + LabelType Static LabelCounter theorem LabelString "Theorem \thetheorem." Font @@ -52,8 +56,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 @@ -64,8 +74,14 @@ Style Corollary LabelString "Corollary \thecorollary." Preamble \theoremstyle{plain} - \newtheorem{cor}{Corollary} + \newtheorem{cor}{\protect\corollaryname} EndPreamble + LangPreamble + \providecommand{\corollaryname}{_(Corollary)} + EndLangPreamble + BabelPreamble + \addto\captions$$lang{\renewcommand{\corollaryname}{_(Corollary)}} + EndBabelPreamble LabelCounter corollary End @@ -76,8 +92,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 @@ -88,8 +110,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 @@ -100,8 +128,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 @@ -112,8 +146,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 @@ -131,8 +171,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 @@ -143,9 +189,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 @@ -156,9 +208,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 @@ -169,9 +227,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 @@ -190,8 +254,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 @@ -202,39 +272,17 @@ 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 - -# Define Case as an enumeration environment -Style Case - Category Theorem - CopyStyle Enumerate - LatexName caseenv - LabelType Static - LeftMargin "Case ###." - LabelString "Case #." - LabelFont - Series Medium - Shape Italic - EndFont - Preamble - \newcounter{casectr} - \newenvironment{caseenv} - {\begin{list}{{\itshape\ Case} \arabic{casectr}.}{% - \setlength{\leftmargin}{\labelwidth} - \addtolength{\leftmargin}{\parskip} - \setlength{\itemindent}{\listparindent} - \setlength{\itemsep}{\medskipamount} - \setlength{\topsep}{\itemsep}} - \setcounter{casectr}{0} - \usecounter{casectr}} - {\end{list}} - EndPreamble - RefPrefix OFF -End - +Input theorems-case.inc Input theorems-refprefix.inc