]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/stdstruct.inc
RJournal template and layout: move ERTs to layout
[lyx.git] / lib / layouts / stdstruct.inc
index 864af1efa82a6db23319c4dd2f8ee52173152e88..8f1c740d8d5b14efaee14ab3109a8592215c18e3 100644 (file)
@@ -1,65 +1,82 @@
 # Standard textclass definition file. Taken from initial LyX source code
 # Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
-# Transposed by Pascal André <andre@via.ecp.fr>
+# Transposed by Pascal André <andre@via.ecp.fr>
 # Heavily modifed and enhanced by several developers.
-# Title definitions moved to stdtitle.inc by HArtmut Goebel <harmut@noris.net>
+# Title definitions moved to stdtitle.inc by Hartmut Goebel <harmut@noris.net>
 
 # This include files contains all layouts that handle the structure of
 # a document, like abstract, bibliography and such.
 
 
-# Abstract style definition
-Style Abstract 
-  Margin               Static
-  LatexType            Environment
-  LatexName            abstract
-  NextNoIndent         1
-  LeftMargin           MMM
-  RightMargin          MMM
-  ParIndent            MM
-  ItemSep              0
-  TopSep               0.7
-  BottomSep            0.7
-  ParSep               0
-  Align                        Block
-  AlignPossible                Block
-  LabelType            Centered_Top_Environment
-  LabelString          Abstract
-  LabelBottomSep    0.5
-
-  # standard font definition
-  Font 
-    Size               Small
-  EndFont
+Format 45
+Style Abstract
+       Margin                Static
+       LatexType             Environment
+       LatexName             abstract
+       Category              FrontMatter
+       NextNoIndent          1
+       LeftMargin            MMM
+       RightMargin           MMM
+       ParIndent             MM
+       ItemSep               0
+       TopSep                0.7
+       BottomSep             0.7
+       ParSep                0
+       Align                 Block
+       LabelType             Centered
+       LabelString           "Abstract"
+       LabelBottomSep        0.5
+       Font
+         Size                Small
+       EndFont
+       LabelFont
+         Series              Bold
+         Size                Large
+       EndFont
+       HTMLLabelFirst        1
+       HTMLForceCSS          1
+       HTMLStyle
+               div.abstract {
+                       margin: 4ex;
+               }
+               div.abstract_item {
+                       font-size: small;
+                       padding-top: 1ex;
+               }
+               div.abstract_label {
+                       font-weight: bold;
+               }
+       EndHTMLStyle
+End
 
-  # label font definition
-  LabelFont 
-    Series             Bold
-    Size               Large
-  EndFont
-End 
 
-# Bibliography style definition
 Style Bibliography
-  Margin               First_Dynamic
-  LatexType            Item_Environment
-  LatexName            thebibliography
-  NextNoIndent         1
-  LeftMargin           MM
-  ParSkip              0.4
-  ItemSep              0
-  TopSep               0.7
-  BottomSep            0.7
-  ParSep               0.5
-  Align                        Block
-  AlignPossible                Block, Left
-  LabelType            Bibliography
-  LabelString          References
-  LabelBottomSep    0.7
-
-  # label font definition
-  LabelFont 
-    Series             Bold
-    Size               Larger
-  EndFont
+       Margin                First_Dynamic
+       LatexType             Bib_Environment
+       LatexName             thebibliography
+       Category              BackMatter
+       NextNoIndent          1
+       LeftMargin            MM
+       ParSkip               0.4
+       ItemSep               0
+       TopSep                0.7
+       BottomSep             0.7
+       ParSep                0.5
+       Align                 Block
+       AlignPossible         Block, Left
+       LabelType             Bibliography
+       LabelString           "References"
+       LabelBottomSep        1.2
+       LabelFont
+         Series              Bold
+         Size                Larger
+       EndFont
+       HTMLStyle
+               div.bibliography {
+                       margin-left: 2em;
+                       text-indent: -2em;
+               }
+               span.bibitemlabel:before { content: "["; }
+               span.bibitemlabel:after { content: "] "; }
+       EndHTMLStyle
 End