]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/hanging.module
Add tableaux to outliner
[lyx.git] / lib / layouts / hanging.module
index 21cb9ae5eabb1ac3982b13f80e1bd9378ef3a74f..7ff3ca507338b44093c22fb9d6285b1b0065ea41 100644 (file)
@@ -1,4 +1,9 @@
-#\DeclareLyXModule{Adds an environment for hanging paragraphs.}{Hanging}
+#\DeclareLyXModule{Hanging}
+#DescriptionBegin
+#Adds an environment for hanging paragraphs. 
+#Hanging paragraph is a paragraph in which the first line is set to the left margin, but all subsequent lines are indented.
+#DescriptionEnd
+
 #Author: Richard Heck
 
 #Hanging paragraph code adapted from hanging.sty, available at:
@@ -6,7 +11,7 @@
 #Copyright Peter R. Wilson.
 #Released under the LaTeX Project Public License.
 
-Format 5
+Format 63
 
 Style Hanging
   LatexType Environment
@@ -15,8 +20,8 @@ Style Hanging
   Margin Static
   LeftMargin "MMMM"
   ParIndent "-MMMM"
+  Requires     ifthen
   Preamble
-    \usepackage{ifthen}
     \newlength{\lyxhang}
     \IfFileExists{hanging.sty}{
       \usepackage{hanging}
@@ -25,7 +30,7 @@ Style Hanging
           \ifthenelse{\lengthtest{\parindent > 0pt}}%
             {\setlength{\lyxhang}{\parindent}}%
             {\setlength{\lyxhang}{2em}}%
-          \begin{hangparas}{\lyxhang}{1}%
+          \par\begin{hangparas}{\lyxhang}{1}%
         }
         {\end{hangparas}}
     }{%else