X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Ftheorems-named.module;h=a4e96d905f4c33aeabb6c218f3d1f2c171807b94;hb=c8c1c15631712d458e98b612ba8c049a7ae4d260;hp=5971f29b2ef7284c855b93320dc86c76c0301682;hpb=82cf4838dc5fc6ebc4fe44ad780b40ec673e2b7b;p=lyx.git diff --git a/lib/layouts/theorems-named.module b/lib/layouts/theorems-named.module index 5971f29b2e..a4e96d905f 100644 --- a/lib/layouts/theorems-named.module +++ b/lib/layouts/theorems-named.module @@ -1,13 +1,58 @@ #% Do not delete the line below; configure depends on this -#\DeclareLyXModule{Named Theorems} +#\DeclareLyXModule{Standard Theorems (Nameable)} +#\DeclareCategory{Maths} #DescriptionBegin # Facilitates the use of named theorems. The name of the theorem # goes into the 'Additional Theorem Text' argument. #DescriptionEnd -#Requires: theorems-ams | theorems-starred #Original Author: John Perry -Format 57 +Format 98 + +ProvideStyle Theorem* + Category Reasoning + LatexType Environment + Margin First_Dynamic + LatexName thm* + LabelType Static + LabelString "Theorem." + NextNoIndent 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 + ItemSep 0.2 + TopSep 0.7 + BottomSep 0.7 + ParSep 0.3 + Align Block + AlignPossible Left + Font + Shape Italic + Size Normal + EndFont + LabelFont + Shape Up + Series Bold + EndFont + Preamble + \theoremstyle{plain} + \newtheorem*{thm*}{\protect\theoremname} + EndPreamble + LangPreamble + \providecommand{\theoremname}{_(Theorem)} + EndLangPreamble + BabelPreamble + \addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}} + EndBabelPreamble + Requires amsthm +End + + Style "Named Theorem" CopyStyle Theorem* Category Reasoning