mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-04 22:32:19 +00:00
7c28905b17
None of the extant modules require any other modules, but the Theorem modules all exclude one another. (See the screenshot.) When I modularize the AMS classes---that is the next task---we'll have requires. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22456 a592a061-630c-0410-9148-cb99ea01b6c8
50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
#\DeclareLyXModule{Hanging}
|
|
#DescriptionBegin
|
|
#Adds an environment for hanging paragraphs.
|
|
#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 6
|
|
|
|
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}}%
|
|
\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
|