lyx_mirror/lib/layouts/multicol.module

57 lines
1.8 KiB
Plaintext
Raw Permalink Normal View History

#\DeclareLyXModule[multicol.sty]{Multiple Columns}
#\DeclareCategory{Page Layout}
#DescriptionBegin
#Adds a custom inset whose content is set with multiple columns (2 by default).
2023-01-28 17:26:59 +00:00
#See the Additional manual, section Modules > Page Layout > Multiple Columns,
#for a detailed description.
#DescriptionEnd
#Authors: Uwe Stöhr and Jürgen Spitzmüller
2023-07-28 22:21:47 +00:00
Format 104
InsetLayout Flex:Multiple_Columns
LyXType custom
Decoration classic
LabelString Columns
LatexType environment
LatexName multicols
Requires multicol
Argument 1
LabelString "Number of Columns"
Tooltip "Insert the number of columns here"
Mandatory 1
DefaultArg 2
PassThru 1
2020-11-29 00:15:37 +00:00
DocBookTag IGNORE
EndArgument
Argument 2
LabelString "Preface"
Tooltip "An optional preface"
2020-11-29 00:15:37 +00:00
DocBookTag para
DocBookAttr role='preface'
DocBookArgumentBeforeMainTag true
EndArgument
Argument 3
LabelString "Space Before Page Break"
Tooltip "Free space that needs to be on the page to start the multiple columns on this page"
Requires 2
2020-11-29 00:15:37 +00:00
DocBookTag IGNORE
EndArgument
2020-11-29 00:15:37 +00:00
ResetsFont true
# The current DocBook implementation is quite lacking, but it would require
# a lot more C++ code to have perfect output. The major problem: not all
# elements within a column should be wrapped in an item. It has been
# designed for pure text (like in Modules > Page Layout > Multiple Columns,
# the excerpt of "The Adventure of the Empty House"), it produces wrong
# output for lists (such as Document classes > Articles > Astronomy >
# Supported environments, the Columns flex only contains a list). Columns
# within columns are not supported either (as in Modules > Page Layout >
# Multiple Columns > Columns inside Columns).
2020-11-29 00:15:37 +00:00
DocBookWrapperTag NONE
DocBookTag NONE
DocBookNotInPara true
DocBookItemTag para
End