mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 22:49:20 +00:00
9ca91b2566
There is nothing in the diff besides the format number changing from 93 to 95. From what I understand, this is as expected since 93 -> 94 and 94 -> 95 just add new layout tags. Updating the layouts makes it easier to test master. Otherwise, in some use cases layout2layout can be run hundreds of times which can make some things slow (e.g., opening documents or even opening the advanced find pane).
52 lines
1.5 KiB
Plaintext
52 lines
1.5 KiB
Plaintext
#\DeclareLyXModule{Hanging Paragraphs}
|
|
#\DeclareCategory{Paragraph Styles}
|
|
#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 Kimberly Heck
|
|
|
|
#Hanging paragraph code adapted from hanging.sty, available at:
|
|
# http://www.ctan.org/tex-archive/macros/latex/contrib/hanging/
|
|
#Copyright Peter R. Wilson.
|
|
#Released under the LaTeX Project Public License.
|
|
|
|
Format 95
|
|
|
|
Style Hanging
|
|
LatexType Environment
|
|
LatexName hangparagraphs
|
|
Align Block
|
|
Margin Static
|
|
LeftMargin "MMMM"
|
|
ParIndent "-MMMM"
|
|
Requires ifthen
|
|
Preamble
|
|
\newlength{\lyxhang}
|
|
\IfFileExists{hanging.sty}{
|
|
\usepackage{hanging}
|
|
\newenvironment{hangparagraphs}
|
|
{%
|
|
\ifthenelse{\lengthtest{\parindent > 0pt}}%
|
|
{\setlength{\lyxhang}{\parindent}}%
|
|
{\setlength{\lyxhang}{2em}}%
|
|
\par\begin{hangparas}{\lyxhang}{1}%
|
|
}
|
|
{\end{hangparas}}
|
|
}{%else
|
|
\newenvironment{hangparagraphs}
|
|
{%
|
|
\ifthenelse{\lengthtest{\parindent > 0pt}}%
|
|
{\setlength{\lyxhang}{\parindent}}%
|
|
{\setlength{\lyxhang}{2em}}%
|
|
\begin{hangparas}%
|
|
}
|
|
{\end{hangparas}}
|
|
\newcommand{\hangpara}{\hangindent \lyxhang \hangafter 1 \noindent}
|
|
\newenvironment{hangparas}{\setlength{\parindent}{\z@}
|
|
\everypar={\hangpara}}{\par}
|
|
}
|
|
EndPreamble
|
|
End
|