X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fhanging.module;h=694f0e196e989f724fdfdc4a73056fea498e164d;hb=a0f6d3db9e417c8dd3345cb8aecd25a2674aa8f6;hp=6ad06a9f591810c66db4910cf43cb328c314fffe;hpb=9e5eebc14cd06f58000a4bd1903f157b65a3ab19;p=lyx.git diff --git a/lib/layouts/hanging.module b/lib/layouts/hanging.module index 6ad06a9f59..694f0e196e 100644 --- a/lib/layouts/hanging.module +++ b/lib/layouts/hanging.module @@ -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 6 +Format 35 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