mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
Create module for paralist.sty
paralist.sty extends the standard list environments by some more compact versions. Support for this has already been requested 15 years ago, and now I needed it myself.
This commit is contained in:
parent
c4bfbcb5e8
commit
e2d246bcb9
@ -2093,6 +2093,7 @@ dist_layouts_DATA =\
|
||||
layouts/numreport.inc \
|
||||
layouts/numrevtex.inc \
|
||||
layouts/paper.layout \
|
||||
layouts/paralist.module \
|
||||
layouts/pdfcomment.module \
|
||||
layouts/pdfform.module \
|
||||
layouts/powerdot.layout \
|
||||
|
@ -340,6 +340,7 @@
|
||||
\TestPackage{natbib}
|
||||
\TestPackage{nicefrac}
|
||||
\TestPackage{nomencl}
|
||||
\TestPackage{paralist}
|
||||
\TestPackage{pdfcolmk}
|
||||
\TestPackage{polyglossia}
|
||||
\TestPackage{pdfcomment}
|
||||
|
@ -1,5 +1,5 @@
|
||||
#LyX 2.2 created this file. For more info see http://www.lyx.org/
|
||||
\lyxformat 495
|
||||
\lyxformat 497
|
||||
\begin_document
|
||||
\begin_header
|
||||
\origin /systemlyxdir/doc/
|
||||
@ -6243,6 +6243,10 @@ enumitem
|
||||
itemize, description).
|
||||
It is used by the Linguistics module to fine tune the appearance of numbered
|
||||
subexamples.
|
||||
|
||||
\change_inserted -195340706 1442746477
|
||||
The customization options are also supported directly by the Customisable
|
||||
Lists (enumitem) module.
|
||||
\change_inserted -712698321 1429547340
|
||||
|
||||
\end_layout
|
||||
@ -6281,8 +6285,6 @@ Notes: The package
|
||||
forest
|
||||
\family default
|
||||
provides support for generating linguistic structure trees.
|
||||
\change_inserted -712698321 1426533959
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsection
|
||||
@ -6340,6 +6342,49 @@ caption
|
||||
|
||||
\begin_layout Subsection
|
||||
|
||||
\change_inserted -195340706 1442746713
|
||||
Paragraph Lists (paralist) module
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsubsection
|
||||
|
||||
\change_inserted -195340706 1442746713
|
||||
paralist
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
|
||||
\change_inserted -195340706 1442746713
|
||||
Found:
|
||||
\begin_inset Info
|
||||
type "package"
|
||||
arg "paralist"
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
|
||||
\change_inserted -195340706 1442746713
|
||||
CTAN:
|
||||
\family typewriter
|
||||
macros/latex/contrib/paralist/
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
|
||||
\change_inserted -195340706 1442746713
|
||||
Notes: The package
|
||||
\family sans
|
||||
paralist
|
||||
\family default
|
||||
extends the standard list environments by versions that are typeset as
|
||||
paragraphs, in paragraphs and as a more compact version.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsection
|
||||
|
||||
\change_inserted -712698321 1404379473
|
||||
PDF Comments module
|
||||
\end_layout
|
||||
|
140
lib/layouts/paralist.module
Normal file
140
lib/layouts/paralist.module
Normal file
@ -0,0 +1,140 @@
|
||||
#\DeclareLyXModule[paralist.sty]{Paragraph Lists (paralist)}
|
||||
#DescriptionBegin
|
||||
# The package paralist provides some new list environments.
|
||||
# Itemized and enumerated lists can be typeset within paragraphs, as
|
||||
# paragraphs and in a compact version. Most environments have optional
|
||||
# arguments to format the labels. Additionally, the LaTeX environments
|
||||
# itemize and enumerate are extended to use a similar optional argument.
|
||||
#DescriptionEnd
|
||||
# Author: Georg Baum <baum@lyx.org>
|
||||
# (structuring taken from enumitem.module by Günter Milde)
|
||||
|
||||
Format 54
|
||||
|
||||
AddToPreamble
|
||||
\usepackage{paralist}
|
||||
EndPreamble
|
||||
|
||||
|
||||
# Customisable Basic Lists
|
||||
# ------------------------
|
||||
|
||||
# With paralist, the itemize and enumerate environments take an optional
|
||||
# argument. See paralist.pdf for possible values.
|
||||
|
||||
IfStyle Itemize
|
||||
Argument 1
|
||||
LabelString "Itemize Options"
|
||||
Tooltip "Optional arguments for this list (see paralist manual)"
|
||||
EndArgument
|
||||
End
|
||||
|
||||
IfStyle Enumerate
|
||||
Argument 1
|
||||
LabelString "Enumerate Options"
|
||||
Tooltip "Optional arguments for this list (see paralist manual)"
|
||||
EndArgument
|
||||
End
|
||||
|
||||
|
||||
# List Variants
|
||||
# -------------
|
||||
#
|
||||
# Styles defined by paralist.sty
|
||||
|
||||
Style AsParagraphItem
|
||||
CopyStyle Itemize
|
||||
LatexName asparaitem
|
||||
Argument 1
|
||||
LabelString "As Paragraph Itemize Options"
|
||||
Tooltip "Optional arguments for this list (see paralist manual)"
|
||||
EndArgument
|
||||
End
|
||||
|
||||
Style InParagraphItem
|
||||
CopyStyle Itemize
|
||||
LatexName inparaitem
|
||||
Argument 1
|
||||
LabelString "In Paragraph Itemize Options"
|
||||
Tooltip "Optional arguments for this list (see paralist manual)"
|
||||
EndArgument
|
||||
End
|
||||
|
||||
Style CompactItem
|
||||
CopyStyle Itemize
|
||||
LatexName compactitem
|
||||
TopSep 0.0
|
||||
BottomSep 0.0
|
||||
ParSep 0.0
|
||||
Argument 1
|
||||
LabelString "Compact Itemize Options"
|
||||
Tooltip "Optional arguments for this list (see paralist manual)"
|
||||
EndArgument
|
||||
End
|
||||
|
||||
Style AsParagraphEnum
|
||||
CopyStyle Enumerate
|
||||
LatexName asparaenum
|
||||
Argument 1
|
||||
LabelString "As Paragraph Enumerate Options"
|
||||
Tooltip "Optional arguments for this list (see paralist manual)"
|
||||
EndArgument
|
||||
End
|
||||
|
||||
Style InParagraphEnum
|
||||
CopyStyle Enumerate
|
||||
LatexName inparaenum
|
||||
Argument 1
|
||||
LabelString "In Paragraph Enumerate Options"
|
||||
Tooltip "Optional arguments for this list (see paralist manual)"
|
||||
EndArgument
|
||||
End
|
||||
|
||||
Style CompactEnum
|
||||
CopyStyle Enumerate
|
||||
LatexName compactenum
|
||||
TopSep 0.0
|
||||
BottomSep 0.0
|
||||
ParSep 0.0
|
||||
Argument 1
|
||||
LabelString "Compact Enumerate Options"
|
||||
Tooltip "Optional arguments for this list (see paralist manual)"
|
||||
EndArgument
|
||||
End
|
||||
|
||||
Style AsParagraphDescr
|
||||
CopyStyle Description
|
||||
LatexName asparadescr
|
||||
Argument 1
|
||||
LabelString "As Paragraph Description Options"
|
||||
Tooltip "Optional arguments for this list (see paralist manual)"
|
||||
EndArgument
|
||||
End
|
||||
|
||||
Style InParagraphDescr
|
||||
CopyStyle Description
|
||||
LatexName inparadescr
|
||||
Argument 1
|
||||
LabelString "In Paragraph Description Options"
|
||||
Tooltip "Optional arguments for this list (see paralist manual)"
|
||||
EndArgument
|
||||
End
|
||||
|
||||
Style CompactDescr
|
||||
CopyStyle Description
|
||||
LatexName compactdescr
|
||||
TopSep 0.0
|
||||
BottomSep 0.0
|
||||
ParSep 0.0
|
||||
Argument 1
|
||||
LabelString "Compact Description Options"
|
||||
Tooltip "Optional arguments for this list (see paralist manual)"
|
||||
EndArgument
|
||||
End
|
||||
|
||||
# References
|
||||
# ----------
|
||||
#
|
||||
# .. paralist.pdf:
|
||||
# http://dante.ctan.org/CTAN/macros/latex/contrib/paralist/paralist.pdf
|
||||
|
Loading…
Reference in New Issue
Block a user