]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/stdinsets.inc
svcommon.inc, theorems-without-preamble.inc: correction from previous commit
[lyx.git] / lib / layouts / stdinsets.inc
index faa6d1c9d027015ded823cc4aa304b921688eba1..322247485cd2eb8f14aa332cf342e1269b119812 100644 (file)
@@ -4,7 +4,7 @@
 #
 # Detailed format description is available in the customization manual
 
-Format 38
+Format 41
 
 Provides stdinsets 1
 
@@ -170,27 +170,47 @@ InsetLayout Phantom
        ForcePlain            true
 End
 
-InsetLayout IncludeListings
+InsetLayout IPADeco
+       Decoration            minimalistic
+       Font
+         Color               foreground
+       EndFont
+       MultiPar              false
+       CustomPars            false
+       ForcePlain            true
+End
+
+InsetLayout TOC:Listings
        # We need the [[List of Listings]] context, since "Listings" is also
        # the name of the inset and translated differently.
        # "Listings[[List of Listings]]" is the name of the "List of listings"
        # ("Listings" is the predefined english name) in listings.sty, so it
        # must be used here as well.
        BabelPreamble
-               \addto\captions$$lang{\renewcommand{\lstlistingname}{_(Listing)}}
                \addto\captions$$lang{\renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}}
        EndBabelPreamble
-       # The commands do not need to be defined in LangPreamble, since
-       # listings.sty does that already. However they need to be redefined
+       # The command does not need to be defined in LangPreamble, since
+       # listings.sty does that already. However it needs to be redefined
        # in order to be used for non-english single-language documents.
        LangPreamble
-               \renewcommand{\lstlistingname}{_(Listing)}
                \renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}
        EndLangPreamble
 End
 
+InsetLayout Include:Listings
+       BabelPreamble
+               \addto\captions$$lang{\renewcommand{\lstlistingname}{_(Listing)}}
+       EndBabelPreamble
+       # The command does not need to be defined in LangPreamble, since
+       # listings.sty does that already. However it needs to be redefined
+       # in order to be used for non-english single-language documents.
+       LangPreamble
+               \renewcommand{\lstlistingname}{_(Listing)}
+       EndLangPreamble
+End
+
 InsetLayout Listings
-       CopyStyle IncludeListings
+       CopyStyle Include:Listings
        LabelString           Listings[[inset]]
        LatexType             none
        Decoration            minimalistic
@@ -380,12 +400,13 @@ InsetLayout "Flex:URL"
 End
 
 InsetLayout Argument
-       LabelString           opt
+       LabelString           Argument
        LabelFont
          Color               collapsable
          Size                Small
        EndFont
        MultiPar              false
+       ForceLocalFontSwitch  1
 End
 
 InsetLayout Info
@@ -449,6 +470,12 @@ InsetLayout Info:shortcuts
 End
 
 InsetLayout Caption
+       LaTeXType            command
+       LatexName            caption
+       Argument 1
+               LabelString   "Short Title|S"
+               Tooltip       "The caption as it appears in the list of figures/tables"
+       EndArgument
        HTMLStyle
                div.float-caption {
                        text-align: center;
@@ -465,3 +492,27 @@ InsetLayout Preview
        Decoration            minimalistic
        MultiPar              true
 End
+
+
+InsetLayout Script
+       LatexType       command
+       MultiPar        false
+       ForcePlain      1
+       CustomPars      0
+       InToc           1
+       HTMLIsBlock     0
+End
+
+
+InsetLayout Script:superscript
+       CopyStyle       Script
+       LaTeXName       textsuperscript
+       HTMLTag         sup
+End
+
+InsetLayout Script:subscript
+       CopyStyle       Script
+       Requires        subscript
+       LaTeXName       textsubscript
+       HTMLTag         sub
+End