commit eeb732cd5f3ac3fcfc276d3974774e1c389f703b
Author: Thibaut Cuvelier <[email protected]>
Date:   Thu Nov 26 06:49:53 2020 +0100

    DocBook: implement JASA.
---
 development/autotests/invertedTests |    2 +
 lib/layouts/aa.layout               |    2 +
 lib/layouts/aapaper.inc             |    2 +
 lib/layouts/agutex.layout           |    2 +
 lib/layouts/jasatex.layout          |   57 ++++++++++++++++++++++++++++++++++-
 5 files changed, 64 insertions(+), 1 deletions(-)

diff --git a/development/autotests/invertedTests 
b/development/autotests/invertedTests
index d562ba5..4da47d7 100644
--- a/development/autotests/invertedTests
+++ b/development/autotests/invertedTests
@@ -501,6 +501,8 @@ export/templates/Articles/REVTeX_%28V._4%29_docbook5
 export/templates/Articles/REVTeX_%28V._4.1%29_docbook5
 # - Address at the end of the document (only allowed in abstract), misplaced 
acknowledgements.
 export/templates/Articles/Kluwer_docbook5
+# - Empty bibliography, broken references, empty figures.
+export/templates/Articles/Journal_of_the_Acoustical_Society_of_America_%28JASA%29_docbook5
 
 Sublabel: docbook poster
 # Posters cannot be properly exported, the LyX documents are too far from
diff --git a/lib/layouts/aa.layout b/lib/layouts/aa.layout
index dc9c898..1cb6dfb 100644
--- a/lib/layouts/aa.layout
+++ b/lib/layouts/aa.layout
@@ -187,6 +187,8 @@ Style Acknowledgement
          Size          Small
          Shape         Italic
        EndFont
+       DocBookTag            para
+       DocBookWrapperTag     acknowledgements
 End
 
 
diff --git a/lib/layouts/aapaper.inc b/lib/layouts/aapaper.inc
index ac4b0ca..9c61410 100644
--- a/lib/layouts/aapaper.inc
+++ b/lib/layouts/aapaper.inc
@@ -97,6 +97,8 @@ Style Acknowledgement
          Size                Small
          Shape               Italic
        EndFont
+       DocBookTag            para
+       DocBookWrapperTag     acknowledgements
 End
 
 
diff --git a/lib/layouts/agutex.layout b/lib/layouts/agutex.layout
index 36b4519..996aae7 100644
--- a/lib/layouts/agutex.layout
+++ b/lib/layouts/agutex.layout
@@ -202,6 +202,8 @@ Style Acknowledgments
          Series        Bold
          Size          Small
        EndFont
+       DocBookTag            para
+       DocBookWrapperTag     acknowledgements
 End
 
 
diff --git a/lib/layouts/jasatex.layout b/lib/layouts/jasatex.layout
index 093ebd4..174f392 100644
--- a/lib/layouts/jasatex.layout
+++ b/lib/layouts/jasatex.layout
@@ -43,6 +43,7 @@ Style Standard
        Align           Block
        AlignPossible   Block, Left, Right, Center
        LabelType       No_Label
+       DocBookTag  para
 End
 
 
@@ -80,6 +81,9 @@ Style Title
          Size          Largest
        EndFont
        HTMLTitle       true
+       DocBookTag            title
+       DocBookTagType        paragraph
+       DocBookInInfo         maybe
 End
 
 
@@ -100,6 +104,11 @@ Style Author
        Font
          Size          Large
        EndFont
+       DocBookTag            personname
+       DocBookTagType        paragraph
+       DocBookWrapperTag     author
+       DocBookWrapperTagType inline
+       DocBookInInfo         always
 End
 
 
@@ -116,6 +125,12 @@ Style Affiliation
        Font
          Shape         Italic
        EndFont
+       DocBookTag                        affiliation
+       DocBookWrapperTag                 author
+       DocBookWrapperMergeWithPrevious   true
+       DocBookItemTag                    orgname
+       DocBookItemTagType                paragraph
+       DocBookInInfo                     always
 End
 
 
@@ -127,6 +142,13 @@ Style "Alternative Affiliation"
          LabelString   "Affiliation Prefix"
          Tooltip       "A prefix like 'Also at '"
        EndArgument
+       DocBookTag                        affiliation
+       DocBookAttr                       role='alternate'
+       DocBookWrapperTag                 author
+       DocBookWrapperMergeWithPrevious   true
+       DocBookItemTag                    orgname
+       DocBookItemTagType                paragraph
+       DocBookInInfo                     always
 End
 
 
@@ -136,12 +158,24 @@ Style Homepage
        Font
          Shape         Up
        EndFont
+       DocBookTag                        uri
+       DocBookTagType                    paragraph
+       DocBookWrapperTag                 author
+       DocBookWrapperMergeWithPrevious   true
+       DocBookItemTag                    NONE
+       DocBookInInfo                     always
 End
 
 
 Style Email
        CopyStyle       Homepage
        LatexName       email
+       DocBookTag                        email
+       DocBookTagType                    paragraph
+       DocBookWrapperTag                 author
+       DocBookWrapperMergeWithPrevious   true
+       DocBookItemTag                    NONE
+       DocBookInInfo                     always
 End
 
 
@@ -161,6 +195,9 @@ Style Date
        Font
          Size          Large
        EndFont
+       DocBookTag            date
+       DocBookTagType        paragraph
+       DocBookInInfo         always
 End
 
 
@@ -190,6 +227,8 @@ Style Abstract
          Series        Bold
          Size          Large
        EndFont
+       DocBookTag       NONE
+       DocBookAbstract  true
 End
 
 
@@ -210,7 +249,11 @@ Style Keywords
        LabelFont
          Color         Green
          Series        Bold
-       EndFont         
+       EndFont
+       DocBookTag            keyword
+       DocBookTagType        paragraph
+       DocBookWrapperTag     keywordset
+       DocBookInInfo         always
 End
 
 
@@ -218,6 +261,16 @@ Style PACS
        CopyStyle       Keywords
        LatexName       pacs
        LabelString     "PACS numbers:"
+       DocBookTag          subjectset
+       DocBookAttr         role='pacs'
+       DocBookTagType      block
+       DocBookItemWrapperTag      subject
+       DocBookItemWrapperTagType  paragraph
+       DocBookItemTag      subjectterm
+       DocBookItemTagType  inline
+       DocBookWrapperTag   NONE
+       DocBookWrapperAttr  ""
+       DocBookInInfo       always
 End
 
 Style "Preprint number"
@@ -241,6 +294,8 @@ Style Acknowledgments
          Series        Bold
          Size          Normal
        EndFont
+       DocBookTag            para
+       DocBookWrapperTag     acknowledgements
 End
 
 
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to