]> git.lyx.org Git - features.git/blobdiff - lib/layouts/ectaart.layout
DocBook: slightly change the Copernicus template to be valid DocBook.
[features.git] / lib / layouts / ectaart.layout
index ea0370faeacf8abaef32d5e0468d940cab76b584..2250b9c102926bc25d93d2f773dd707566fa35f5 100644 (file)
@@ -1,8 +1,9 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[ectaart]{article (Econometrica)}
+#  \DeclareLaTeXClass[ectaart]{Econometrica}
+#  \DeclareCategory{Articles}
 # Author : Koji Yokota <yok...@res.otaru-uc.ac.jp>
 
-Format 35
+Format 85
 Input article.layout
 
 TitleLatexType         Environment
@@ -16,6 +17,9 @@ Style Title
        Margin          Manual
        LeftMargin      -MMMMMMMM
        Align           Center
+       DocBookTag            title
+       DocBookTagType        paragraph
+       DocBookInInfo         maybe
 End
 
 Style RunTitle
@@ -30,6 +34,9 @@ Style RunTitle
        LabelFont
          Color         Red
        EndFont
+       DocBookTag            titleabbrev
+       DocBookTagType        paragraph
+       DocBookInInfo         maybe
 End
 
 Style RunAuthor
@@ -37,6 +44,9 @@ Style RunAuthor
        LatexType       Command
        LatexName       runauthor
        LabelString     "Running Author:"
+       DocBookTag            authorinitials
+       DocBookTagType        paragraph
+       DocBookInInfo         maybe
 End
 
 Style Abstract
@@ -57,20 +67,33 @@ Style Abstract
          Size                  Normal
          Series                Medium
        EndFont
+       DocBookAbstract       true
+       DocBookInInfo         always
+       DocBookWrapperTag     abstract
+       DocBookWrapperMergeWithPrevious    true
+       DocBookTag            para
 End
 
 Style Address
        CopyStyle       RunTitle
        LatexName       address
-       OptionalArgs    1
+       Argument 1
+               LabelString   "Address Option"
+               Tooltip       "Optional argument for the address"
+       EndArgument
        LabelString     "Address:"
+       DocBookInInfo         always
+       DocBookTag            address
 End
 
 Style Email
        Category        FrontMatter
        LatexType       Command
        LatexName       lyxead
-       OptionalArgs    1
+       Argument 1
+               LabelString   "E-Mail Option"
+               Tooltip       "Optional argument for the e-mail"
+       EndArgument
        InTitle         1
        Margin          First_Dynamic
        LabelType       Static
@@ -85,18 +108,24 @@ Style Email
          Size          Normal
          Color         Blue
        EndFont
-        Preamble
+       Preamble
                \def\lyxead[#1]#2{\ead[label=#1]{#2}}
-        EndPreamble
+       EndPreamble
+       DocBookTag            email
+       DocBookWrapperTag     address
+       DocBookInInfo         always
 End
 
 Style Web_Address
        CopyStyle       Email
        LatexName       lyxeadurl
        LabelString     "Web address:"
-        Preamble
+       Preamble
                \def\lyxeadurl[#1]#2{\ead[label=#1,url]{#2}}
-        EndPreamble
+       EndPreamble
+       DocBookTag            uri
+       DocBookWrapperTag     address
+       DocBookInInfo         always
 End
 
 Style Author
@@ -104,6 +133,11 @@ Style Author
        LatexName       author
        NewLine         0
        InTitle         1
+       DocBookTag            personname
+       DocBookTagType        paragraph
+       DocBookWrapperTag     author
+       DocBookWrapperTagType inline
+       DocBookInInfo         always
 End
 
 Style Authors_Block
@@ -111,6 +145,11 @@ Style Authors_Block
        LatexType       Environment
        LatexName       aug
        LabelString     "Authors Block:"
+       DocBookTag            personname
+       DocBookTagType        paragraph
+       DocBookWrapperTag     author
+       DocBookWrapperTagType inline
+       DocBookInInfo         always
 End
 
 Style Keyword
@@ -128,7 +167,7 @@ Style Thanks_Text
        LatexType       Command
        LatexName       lyxthankstext
        NeedProtect     1
-       LabelType       Counter
+       LabelType       Static
        LabelCounter    Thanks
        LabelString     "Thanks \theThanks:"
         Preamble
@@ -159,6 +198,7 @@ InsetLayout Flex:Thanks_Reference
        LabelString     "Thanks Ref"
        ForcePlain      1
        BgColor         background
+       ResetsFont true
 End
 
 InsetLayout Flex:Internet_Address_Reference
@@ -209,4 +249,5 @@ InsetLayout Flex:By_Same_Author_(bib)
 End
 
 Counter Thanks
+       GuiName "Footnote (Title)"
 End