]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/apax.inc
DocBook: implement other letter classes (frletter, standard letter, KOMA-Script).
[lyx.git] / lib / layouts / apax.inc
index 4080e12f0b880f70364aeb74704ab1df41179bb4..d37cd2bff9240d3f4b56834f1662ffd103f25355 100644 (file)
@@ -2,7 +2,7 @@
 # Author: Jacob Bishop <bishop.jacob@gmail.com> based on the apa 
 # layout written by Randy Gobbel.
 
-Format 81
+Format 85
 Columns                 1
 Sides                   1
 PageStyle               Headers
@@ -31,6 +31,7 @@ Style Standard
        Align                 Block
        AlignPossible         Block, Left, Right, Center
        LabelType             No_Label
+       DocBookTag            para
 End
 
 
@@ -44,6 +45,9 @@ Style Title
        EndFont
        Align                 Center
        HTMLTitle             true
+       DocBookTag            title
+       DocBookTagType        paragraph
+       DocBookInInfo         maybe
 End
 
 
@@ -67,6 +71,9 @@ Style ShortTitle
          Size                Small
          Shape               Up
        EndFont
+       DocBookTag            titleabbrev
+       DocBookTagType        paragraph
+       DocBookInInfo         maybe
 End
 
 
@@ -83,6 +90,11 @@ Style Author
          Shape               Italic
          Size                Small
        EndFont
+       DocBookTag            personname
+       DocBookTagType        paragraph
+       DocBookWrapperTag     author
+       DocBookWrapperTagType inline
+       DocBookInInfo         always
 End
 
 
@@ -164,6 +176,12 @@ Style Affiliation
          Series              Bold
          Size                Small
        EndFont
+       DocBookTag                        affiliation
+       DocBookWrapperTag                 author
+       DocBookWrapperMergeWithPrevious   true
+       DocBookItemTag                    orgname
+       DocBookItemTagType                paragraph
+       DocBookInInfo                     always
 End
 
 Style TwoAffiliations
@@ -244,6 +262,11 @@ Style Abstract
          Series              Bold
          Size                Small
        EndFont
+       DocBookAbstract       true
+       DocBookInInfo         always
+       DocBookWrapperTag     abstract
+       DocBookWrapperMergeWithPrevious    true
+       DocBookTag            para
 End
 
 Style Keywords
@@ -268,6 +291,10 @@ Style Keywords
          Size                Small
          Shape               Italic
        EndFont
+       DocBookTag          keyword
+       DocBookTagType      paragraph
+       DocBookWrapperTag   keywordset
+       DocBookInInfo       always
 End
 
 Style AuthorNote
@@ -295,6 +322,8 @@ Style AuthorNote
          Series              Bold
          Size                Small
        EndFont
+       DocBookTag            para
+       DocBookWrapperTag     acknowledgements
 End
 
 
@@ -484,6 +513,9 @@ Style Itemize
                        Color latex
                EndFont
        EndArgument
+       DocBookTag            itemizedlist
+       DocBookItemTag        listitem
+       DocBookItemInnerTag   para
 End
 
 
@@ -519,6 +551,9 @@ Style Enumerate
                        Color latex
                EndFont
        EndArgument
+       DocBookTag            orderedlist
+       DocBookItemTag        listitem
+       DocBookItemInnerTag   para
 End
 
 
@@ -578,6 +613,9 @@ Style Course
        EndFont
 End
 
+
+# The addORCIDlink{}{} latex command can be used in the preamble,
+# but also inside some other style like note, paragraph etc
 Style addORCIDlink
        Category              FrontMatter
        InTitle               1
@@ -586,13 +624,35 @@ Style addORCIDlink
        LatexName             addORCIDlink
        LatexType             Command
        Margin                Dynamic
-       LeftMargin MMN
-       RightMargin MMN
+       LeftMargin            MMN
+       RightMargin           MMN
        Align Block
-       Argument        1
-         LabelString "Author-name"
-         Tooltip ORCID
-         Mandatory     1
+       Argument              1
+         LabelString         "Author-name"
+         Tooltip             ORCID
+         Mandatory           1
+       EndArgument
+End
+
+
+# To be used inside the document body
+InsetLayout Flex:addORCIDlink
+       LabelString           "ORCID-link: "
+       LatexName             addORCIDlink
+       Decoration            none
+       LatexType             Command
+       LyxType               custom
+       Argument              1
+         LabelString         "Author-name"
+         Mandatory           1
+       AutoInsert            1
+       Decoration            none
+       EndArgument
+       Argument              2
+         LabelString         ORCID
+         AutoInsert          1
+         Mandatory           1
+         Decoration          none
        EndArgument
 End