mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 15:05:56 +00:00
9ae4b659dc
The current spelling is not strictly wrong, but flagged as unusual or
historical by some authorities. It is also found fault with many
spell checkers. Thus we decided to move to the more standard "-ible"
form once and for all.
See #10678 for discussion
This last part updates the layout format and changes collapsable color.
This will all also all be backported to 2.3.x, for the sake of backwards
compatibility (cherry-picking).
(cherry picked from commit 4345331870
)
51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
#\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:
|
|
# http://www.ctan.org/tex-archive/macros/latex/contrib/hanging/
|
|
#Copyright Peter R. Wilson.
|
|
#Released under the LaTeX Project Public License.
|
|
|
|
Format 65
|
|
|
|
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
|