1 #\DeclareLyXModule{Hanging}
3 #Adds an environment for hanging paragraphs.
8 #Hanging paragraph code adapted from hanging.sty, available at:
9 # http://www.ctan.org/tex-archive/macros/latex/contrib/hanging/
10 #Copyright Peter R. Wilson.
11 #Released under the LaTeX Project Public License.
17 LatexName hangparagraphs
25 \IfFileExists{hanging.sty}{
27 \newenvironment{hangparagraphs}
29 \ifthenelse{\lengthtest{\parindent > 0pt}}%
30 {\setlength{\lyxhang}{\parindent}}%
31 {\setlength{\lyxhang}{2em}}%
32 \begin{hangparas}{\lyxhang}{1}%
36 \newenvironment{hangparagraphs}
38 \ifthenelse{\lengthtest{\parindent > 0pt}}%
39 {\setlength{\lyxhang}{\parindent}}%
40 {\setlength{\lyxhang}{2em}}%
44 \newcommand{\hangpara}{\hangindent \lyxhang \hangafter 1 \noindent}
45 \newenvironment{hangparas}{\setlength{\parindent}{\z@}
46 \everypar={\hangpara}}{\par}