]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/revtex4.layout
Allow literate documents other than noweb to work out of the box. Currently
[lyx.git] / lib / layouts / revtex4.layout
index 7cbf6af372dba061fa6fb2bd6fbf9ce388ab3f5b..63ebdb8bfd06d908ece31d6776ca1ee1564e9eef 100644 (file)
 #          Amir Karger (RevTeX 4 beta) 9/1999, 7/2000
 
 
+Format 11
 Columns                 1
 Sides                   1
 PageStyle               Headers
-ProvidesNatbib         1
-ProvidesUrl            1
+Provides natbib-internal       1
+Provides url           1
 
 # Default textclass options. The user may need to modify this.
 ClassOptions
        Other                 "aps,manuscript"
 End
 
+Preamble
+       \@ifundefined{textcolor}{}
+       {%
+        \definecolor{BLACK}{gray}{0}
+        \definecolor{WHITE}{gray}{1}
+        \definecolor{RED}{rgb}{1,0,0}
+        \definecolor{GREEN}{rgb}{0,1,0}
+        \definecolor{BLUE}{rgb}{0,0,1}
+        \definecolor{CYAN}{cmyk}{1,0,0,0}
+        \definecolor{MAGENTA}{cmyk}{0,1,0,0}
+        \definecolor{YELLOW}{cmyk}{0,0,1,0}
+        }
+EndPreamble
+
 
 Style Standard
        Margin                Static
@@ -37,6 +52,7 @@ End
 # Idea from aapaper: declare all layouts here ("Style Foo\nEnd\n")
 # so that they appear in a specific order in the layout dropdown menu.
 
+Input stdinsets.inc
 Input stdsections.inc
 Input numrevtex.inc
 
@@ -99,7 +115,6 @@ Style Preprint
        BottomSep             1.5
        ParSep                1.5
        Align                 Left
-       AlignPossible         Left
 End
 
 
@@ -121,7 +136,7 @@ End
 
 Style Date
        LabelType             Static
-       LabelString           "Date: "
+       LabelString           "Date:"
        LabelFont
          Shape               Italic
          Size                Large
@@ -140,7 +155,8 @@ Style Affiliation
        Align                 Center
        AlignPossible         Block, Left, Right, Center
        LabelType             Static
-       LabelString           "Affiliation: "
+       LabelSep              M
+       LabelString           "Affiliation:"
 
        LabelFont
          Shape               Italic
@@ -148,19 +164,28 @@ Style Affiliation
 End
 
 
+Style AltAffiliation
+       CopyStyle             Affiliation
+       PassThru              1
+       LatexName             altaffiliation
+       OptionalArgs          1
+       LabelString           "AltAffiliation"
+End
+
+
 # Address is exactly the same as Affiliation. We just put this in so
-# that reLyX will know what to do with it.
+# that tex2lyx will know what to do with it.
 Style Address
        CopyStyle             Affiliation
        LatexName             address
-       LabelString           "Address: "
+       LabelString           "Address:"
 End
 
 
 Style Thanks
        CopyStyle             Affiliation
        LatexName             thanks
-       LabelString           "Thanks: "
+       LabelString           "Thanks:"
 End
 
 
@@ -168,7 +193,8 @@ Style Author_Email
        CopyStyle             Affiliation
        PassThru              1
        LatexName             email
-       LabelString           "Electronic Address: "
+       OptionalArgs          1
+       LabelString           "Electronic Address:"
        TextFont
          Family              Typewriter
        EndFont
@@ -179,10 +205,11 @@ End
 
 
 Style Author_URL
-       CopyStyle             "Author Email"
+       CopyStyle             Author_Email
        PassThru              1
        LatexName             homepage
-       LabelString           "URL: "
+       OptionalArgs          1
+       LabelString           "URL:"
 End
 
 
@@ -204,7 +231,7 @@ Style Acknowledgments
        Align                 Block
        AlignPossible         Block, Left, Right, Center
        LabelType             Centered_Top_Environment
-       LabelString           acknowledgments
+       LabelString           "acknowledgments"
        LabelBottomSep        0.5
        LabelFont
          Series              Medium
@@ -220,7 +247,8 @@ Style PACS
        InTitle               1
        LatexName             pacs
        LabelType             Static
-       LabelString           "PACS number: "
+       LabelSep              M
+       LabelString           "PACS number:"
 End
 
 
@@ -228,7 +256,8 @@ Style Keywords
        CopyStyle             PACS
        InTitle               1
        Latexname             keywords
-       LabelString           "Keywords: "
+       LabelSep              M
+       LabelString           "Keywords:"
 End