X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fmulticol.module;h=2711386d52d4972336b477cdab98fb71a279b224;hb=761648b1f7d1df9de87921143b8004b6d3dd21e9;hp=0636a2f337f01c71ef1930a504df0d26638dc2ea;hpb=8254e84f8f696f0372ccc77f59148888e17a85fe;p=lyx.git diff --git a/lib/layouts/multicol.module b/lib/layouts/multicol.module index 0636a2f337..2711386d52 100644 --- a/lib/layouts/multicol.module +++ b/lib/layouts/multicol.module @@ -1,53 +1,37 @@ #\DeclareLyXModule[multicol.sty]{Multiple Columns} +#\DeclareCategory{Page Layout} #DescriptionBegin -#Adds 2 styles to begin and end text in multiple columns. -#The begin style contains the number of columns, the end style must be kept empty. +#Adds a custom inset whose content is set with multiple columns (2 by default). #See the Additional manual, section 'Multiple Text Columns', for a detailed #description of multiple columns. #DescriptionEnd -#Author: Uwe Stöhr +#Authors: Uwe Stöhr and Jürgen Spitzmüller -Format 45 +Format 82 -AddToPreamble - % used for multiple text columns - \usepackage{multicol} - -EndPreamble - -Style "Begin Multiple Columns" - Category MainText - Margin First_Dynamic - LatexType command - LabelType Static - LabelSep xx - LatexName begin{multicols} - LabelString "---Begin Multiple Columns---" - Argument post:1 +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 + EndArgument + Argument 2 LabelString "Preface" - Tooltip "An optional preface" + Tooltip "An optional preface" EndArgument - Argument post:2 + 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" + Tooltip "Free space that needs to be on the page to start the multiple columns on this page" + Requires 2 EndArgument - KeepEmpty 1 - ParSkip 0 - TopSep 0 - BottomSep 0 - ParSep 0 - Font - Color Blue - EndFont - LabelFont - Color Green - EndFont -End - -Style "End Multiple Columns" - CopyStyle "Begin Multiple Columns" - LatexName end{multicols} - LabelString "---End Multiple Columns---" - ResetArgs 1 + ResetsFont true End