]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/algorithm2e.module
Update layout format
[lyx.git] / lib / layouts / algorithm2e.module
index 3bc8becee7c5cfc9623b9abce127c8f4c7446018..00f6b1c9a38b27ac9c8e555563e6a7aba3f4c752 100644 (file)
@@ -1,19 +1,24 @@
 #\DeclareLyXModule[algorithm2e.sty]{Algorithm2e}
 #DescriptionBegin
 # Use the algorithm2e package for algorithm floats rather
-# than LyX's home-brewed algorithm floats.
+# than LyX's home-brewed algorithm floats. Use the Algorithm
+# style to enter and indent the algorithm.
 #DescriptionEnd
 #
 #Author: Jürgen Spitzmüller
 
-Format 54
+Format 66
 
 Requires algorithm2e
 
+Input stdfloatnames.inc
+
 Float
        Type                  algorithm
        GuiName               Algorithm
        Placement             tbp
+       AllowedPlacement      !htbp
+       AllowsSideways        0
        Extension             loa
        NumberWithin          none
        Style                 plain
@@ -24,3 +29,14 @@ Float
        RefPrefix             alg
 End
 
+Style Algorithm
+  Category              List
+  Margin                Static
+  LatexType             Environment
+  NextNoIndent          1
+  ParbreakIsNewline     1
+  ToggleIndent          Never
+  KeepEmpty             1
+  LeftMargin            MM
+  Align                 Left
+End