-#\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:
#Copyright Peter R. Wilson.
#Released under the LaTeX Project Public License.
-Format 6
+Format 58
Style Hanging
LatexType Environment
Margin Static
LeftMargin "MMMM"
ParIndent "-MMMM"
+ Requires ifthen
Preamble
- \usepackage{ifthen}
\newlength{\lyxhang}
\IfFileExists{hanging.sty}{
\usepackage{hanging}
\ifthenelse{\lengthtest{\parindent > 0pt}}%
{\setlength{\lyxhang}{\parindent}}%
{\setlength{\lyxhang}{2em}}%
- \begin{hangparas}{\lyxhang}{1}%
+ \par\begin{hangparas}{\lyxhang}{1}%
}
{\end{hangparas}}
}{%else