X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Ftheorems.inc;h=394b5ce95705b59d93268c3bbccff56b160583ec;hb=d8a6e0ab70962134792c5eca585fdcd013204649;hp=34f5366a08f4a2bfd43dec191c505691765b0455;hpb=082bdf47c9b92f41142498b12f0b90d1f59bc80d;p=lyx.git diff --git a/lib/layouts/theorems.inc b/lib/layouts/theorems.inc index 34f5366a08..394b5ce957 100644 --- a/lib/layouts/theorems.inc +++ b/lib/layouts/theorems.inc @@ -4,30 +4,33 @@ # Tinkered with Sep. '07 by Paul Rubin # Modularized Jan 08 by Richard Heck -# The environnements defined are : +# The environments defined are : # - Theorem # - Corollary # - Lemma # - Proposition # - Conjecture +# - Fact # - Definition # - Example # - Problem # - Exercise # - Remark # - Claim -# - Proof -# - Case (regular only -- defined as an enumeration) +# - Case (by inclusion) -Format 21 +Format 43 Style Theorem - Category Theorem + Category Reasoning Margin First_Dynamic LatexType Environment LatexName thm NextNoIndent 1 - OptionalArgs 1 + Argument 1 + LabelString "Alternative Theorem String" + Tooltip "Alternative theorem string" + EndArgument LabelSep xx ParIndent MMM ParSkip 0.4 @@ -270,36 +273,5 @@ Style Claim EndBabelPreamble 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\ \protect\casename} \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 - LangPreamble - \providecommand{\casename}{_(Case)} - EndLangPreamble - BabelPreamble - \addto\captions$$lang{\renewcommand{\casename}{_(Case)}} - EndBabelPreamble -End +Input theorems-case.inc +Input theorems-refprefix.inc