X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Ftheorems-ams-bytype.inc;h=52a0929beb07b8cd2f23b4ba6f95a35a81d0ded2;hb=a830e51c8ae7d3ab0da4694a7c1d3499db66878f;hp=a88560c94c81e91a4b3810aacd652a6013bf2dc1;hpb=2d2d946fc67fe55bfd858d5cf437793302bf6a12;p=lyx.git diff --git a/lib/layouts/theorems-ams-bytype.inc b/lib/layouts/theorems-ams-bytype.inc index a88560c94c..52a0929beb 100644 --- a/lib/layouts/theorems-ams-bytype.inc +++ b/lib/layouts/theorems-ams-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 @@ -18,10 +18,10 @@ # - Exercise # - Remark # - Claim -# - Case (regular only -- defined as an enumeration) +# - Case (by inclusion) # We need separate counters for each theorem-like style. -Format 35 +Format 54 Counter theorem End Counter corollary @@ -48,12 +48,16 @@ Counter claim End 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 @@ -63,7 +67,7 @@ Style Theorem ParSep 0.3 Align Block AlignPossible Left - LabelType Counter + LabelType Static LabelCounter theorem LabelString "Theorem \thetheorem." Font @@ -304,46 +308,4 @@ Style Claim LabelCounter claim End - -# Define Case as an enumeration environment -Style Case - Category Theorem - Margin Static - LatexType Item_Environment - LatexName caseenv - LabelType Itemize - NextNoIndent 1 - LeftMargin "Case ###." - ParSkip 0.0 - ItemSep 0.2 - TopSep 0.7 - BottomSep 0.7 - ParSep 0.3 - Align Block - AlignPossible Block, Left - LabelSep xx - 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