]> git.lyx.org Git - features.git/commitdiff
Add support for the sectionbox and tcolorbox packages.
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 2 Jul 2014 11:48:01 +0000 (13:48 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 27 Sep 2014 08:00:01 +0000 (10:00 +0200)
They will be used by the conference poster classes that will be supported in a minute.

lib/Makefile.am
lib/chkconfig.ltx
lib/doc/LaTeXConfig.lyx
lib/layouts/sectionbox.module [new file with mode: 0644]
lib/layouts/tcolorbox.module [new file with mode: 0644]

index 384308bee5f3fcfde330e7ac082affff12aa7550..b181c68015e22c341360fbbd681bdd1751deba30 100644 (file)
@@ -2026,6 +2026,7 @@ dist_layouts_DATA =\
        layouts/scrlettr.layout \
        layouts/scrlttr2.layout \
        layouts/scrreprt.layout \
+       layouts/sectionbox.module \
        layouts/seminar.layout \
        layouts/shapepar.module \
        layouts/siamltex.layout \
@@ -2062,6 +2063,7 @@ dist_layouts_DATA =\
        layouts/tabs-within-sections.module \
        layouts/tarticle.layout \
        layouts/tbook.layout \
+       layouts/tcolorbox.module \
        layouts/theorems-ams.inc \
        layouts/theorems-ams.module \
        layouts/theorems-ams-bytype.inc \
index 1501da6470f14c5f120bcbab1ae2d3197f05d26d..0cba00ad3778ace47b80f9305f8b48f73a1fae8f 100644 (file)
 \TestPackage{refstyle}
 \TestPackage{rotating}
 \TestPackage{rotfloat}
+\TestPackage{sectionbox}
 \TestPackage[serbianc.ldf]{serbianc}
 \TestPackage{setspace}
 \TestPackage{slashed}
 \TestPackage{subfig}
 \TestPackage{subscript}
 \TestPackage{Sweave}
+\TestPackage{tcolorbox}
 \TestPackage{textcomp}
 \TestPackage{thswitch}
 \TestPackage[turkmen.ldf]{turkmen}
index 74408d8c8237a835253aeba6fafca223f082aded..c86a0c15d5465a4c563366a429c98285245a0b2c 100644 (file)
@@ -5928,6 +5928,104 @@ rsphrase
 risk and safety statements
 \color none
 .
+\change_inserted -712698321 1404300887
+
+\end_layout
+
+\begin_layout Subsection
+
+\change_inserted -712698321 1404300977
+Sectionbox module
+\end_layout
+
+\begin_layout Subsubsection
+
+\change_inserted -712698321 1404300982
+sectionbox
+\end_layout
+
+\begin_layout Description
+
+\change_inserted -712698321 1404300973
+Found: 
+\begin_inset Info
+type  "package"
+arg   "sectionbox"
+\end_inset
+
+
+\end_layout
+
+\begin_layout Description
+
+\change_inserted -712698321 1404301042
+CTAN: 
+\family typewriter
+macros/latex/contrib/sectionbox/
+\end_layout
+
+\begin_layout Description
+
+\change_inserted -712698321 1404301055
+Notes: The package 
+\family sans
+sectionbox
+\family default
+\color none
+ is a LaTeX package for putting fancy colored boxes around sections, subsections
+, and subsubsections, especially for use in posters, etc.
+ It was designed with the 
+\family sans
+\color inherit
+sciposter
+\family default
+\color none
+ class in mind, and certainly works with that class and with derived classes.
+\end_layout
+
+\begin_layout Subsection
+
+\change_inserted -712698321 1404300913
+TColorbox module
+\end_layout
+
+\begin_layout Subsubsection
+
+\change_inserted -712698321 1404300919
+tcolorbox
+\end_layout
+
+\begin_layout Description
+
+\change_inserted -712698321 1404300887
+Found: 
+\begin_inset Info
+type  "package"
+arg   "tcolorbox"
+\end_inset
+
+
+\end_layout
+
+\begin_layout Description
+
+\change_inserted -712698321 1404300936
+CTAN: 
+\family typewriter
+macros/latex/contrib/tcolorbox/
+\end_layout
+
+\begin_layout Description
+
+\change_inserted -712698321 1404300960
+Notes: The package 
+\family sans
+tcolorbox
+\family default
+\color none
+ is used to produce fancy boxes.
+\change_unchanged
+
 \end_layout
 
 \begin_layout Section
diff --git a/lib/layouts/sectionbox.module b/lib/layouts/sectionbox.module
new file mode 100644 (file)
index 0000000..c1d2895
--- /dev/null
@@ -0,0 +1,50 @@
+#\DeclareLyXModule[sectionbox.sty]{Section Boxes}
+#DescriptionBegin
+#Defines Boxes with section header. Mainly intended for
+#the SciPoster class.
+#DescriptionEnd
+
+# Author: Jürgen Spitzmüller <spitz@lyx.org>
+
+Format 45
+
+InsetLayout Flex:SectionBox
+       LyXType               custom
+       LabelString           "Section Box"
+       LatexType             environment
+       LatexName             sectionbox
+       Decoration            classic
+       MultiPar              true
+       CustomPars            true
+       Requires              sectionbox
+       Argument 1
+               LabelString    "Width"
+               MenuString     "Section Box Width|S"
+               Tooltip        "Width of the section Box"
+       EndArgument
+       Argument 2
+               LabelString    "Heading"
+               MenuString     "Section Box Heading"
+               Mandatory      1
+               Decoration     conglomerate
+               AutoInsert     1
+               Tooltip        "Insert the section box header here"
+               Font
+                       Size   Large
+                       Series Bold
+               EndFont
+       EndArgument
+End
+
+InsetLayout Flex:SubsectionBox
+       CopyStyle             Flex:SectionBox
+       LabelString           "Subsection Box"
+       LatexName             subsectionbox
+End
+
+InsetLayout Flex:SubsubsectionBox
+       CopyStyle             Flex:SectionBox
+       LabelString           "Subsubsection Box"
+       LatexName             subsubsectionbox
+End
+
diff --git a/lib/layouts/tcolorbox.module b/lib/layouts/tcolorbox.module
new file mode 100644 (file)
index 0000000..b6ef7b9
--- /dev/null
@@ -0,0 +1,110 @@
+#\DeclareLyXModule[tcolorbox.sty]{Fancy Colored Boxes}
+#DescriptionBegin
+#Adds custom insets that support colored boxes via the tcolorbox package.
+#See the tcolorbox documentation for details.
+#DescriptionEnd
+#Authors: Jürgen Spitzmüller
+
+Format 48
+
+InsetLayout Flex:Color_Box
+  LyXType               custom
+  Decoration            classic
+  LabelString           "Color Box"
+  LatexType             environment
+  LatexName             tcolorbox
+  Requires              tcolorbox
+  Argument 1
+    LabelString         "Color Box Options"
+    Tooltip             "Insert the color box options here (see tcolorbox manual)"
+  EndArgument
+End
+
+InsetLayout Flex:Dynamic_Color_Box
+  LyXType               custom
+  Decoration            classic
+  LabelString           "Color Box (Dynamic)"
+  LatexType             command
+  LatexName             tcbox
+  Requires              tcolorbox
+  Argument 1
+    LabelString         "Color Box Options"
+    Tooltip             "Insert the color box options here (see tcolorbox manual)"
+  EndArgument
+End
+
+InsetLayout Flex:Fit_Color_Box
+  LyXType               custom
+  Decoration            classic
+  LabelString           "Color Box (Fit Contents)"
+  LatexType             command
+  LatexName             tcboxfit
+  Requires              tcolorbox
+  Argument 1
+    LabelString         "Color Box Options"
+    Tooltip             "Insert the color box options here (see tcolorbox manual)"
+  EndArgument
+End
+
+Style Color_Box_Separator
+  Category         "Color Boxes"
+  LatexType        command
+  LatexName        tcblower
+  ParIndent        MM
+  ParSkip          0.4
+  Align            Left
+  AlignPossible    Block, Left, Right, Center
+  Margin           First_Dynamic
+  TopSep           0
+  BottomSep        0
+  ParSep           0
+  LabelType        Static
+  LabelBottomSep   0
+  LabelString      "-----"
+  KeepEmpty        1
+  LabelFont 
+    Series         medium
+    Size           normal
+    Color          latex
+    Series         bold
+  EndFont
+  Requires         tcolorbox
+End
+
+Style Color_Box_Line
+  CopyStyle        Color_Box_Separator
+  LatexName        tcbline
+  LabelFont 
+    Color          blue
+  EndFont
+  Requires         tcolorbox
+End
+
+Style Color_Box_Setup
+  Category         "Color Boxes"
+  LatexName        tcbset
+  LatexType        command
+  PassThru         1
+  Margin           Dynamic
+  LabelSep         xx
+  ParSkip          0.0
+  ItemSep          0.2
+  TopSep           0.7
+  BottomSep        0.7
+  ParSep           0.3
+  Align            Block
+  AlignPossible    Block
+  LabelType        Static
+  LabelString      "Color Box Setup"
+  Font
+    Color          latex
+    Family         typewriter
+  EndFont
+  LabelFont
+    Color          green
+    Family         roman
+  EndFont
+  Requires         tcolorbox
+  Spellcheck       0
+End
+