]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/stdinsets.inc
Update tex2lyx test files
[lyx.git] / lib / layouts / stdinsets.inc
index 89c8d6bdaec0d8d47a17e420d418f9a061179e1d..f0e434d6edcf5613d6fafc9dc9d21ebc97b29424 100644 (file)
@@ -2,9 +2,9 @@
 # Author : Martin vermeer <martin.vermeer@hut.fi>
 # Inset layouts definition
 #
-# Detailled format description is available in the customization manual
+# Detailed format description is available in the customization manual
 
-Format 35
+Format 40
 
 Provides stdinsets 1
 
@@ -87,8 +87,13 @@ InsetLayout Note:Comment
        EndFont
        MultiPar              true
        Display               false
-       HTMLTag               !--
-       HTMLIsBlock           false
+       HTMLTag               div
+       HTMLIsBlock           true
+  HTMLStyle
+    div.note_comment {
+      display: none;
+    }
+  EndHTMLStyle
 End
 
 
@@ -121,6 +126,7 @@ InsetLayout Note:Greyedout
        EndFont
        MultiPar              true
        Display               false
+       HTMLInnerTag div
        HTMLStyle
                div.note_greyedout {
                        display: inline;
@@ -164,8 +170,48 @@ InsetLayout Phantom
        ForcePlain            true
 End
 
+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{\lstlistlistingname}{_(Listings[[List of Listings]])}}
+       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{\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
-       LabelString           Listings
+       CopyStyle Include:Listings
+       LabelString           Listings[[inset]]
        LatexType             none
        Decoration            minimalistic
        Font
@@ -439,3 +485,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