[LyX/master] DocBook: implement APA.

Thibaut Cuvelier tcuvelier at lyx.org
Fri Oct 16 16:44:32 UTC 2020


commit d5319e1689f8a203bb8ccfd77a9dc693cddffb44
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date:   Fri Oct 16 19:12:37 2020 +0200

    DocBook: implement APA.
---
 lib/layouts/apa.layout   |   27 ++++++++++++++++++++++++++-
 lib/layouts/apax.inc     |   31 ++++++++++++++++++++++++++++++-
 lib/layouts/stdtitle.inc |    2 +-
 3 files changed, 57 insertions(+), 3 deletions(-)

diff --git a/lib/layouts/apa.layout b/lib/layouts/apa.layout
index f888510..ad794e5 100644
--- a/lib/layouts/apa.layout
+++ b/lib/layouts/apa.layout
@@ -3,7 +3,7 @@
 #  \DeclareCategory{Articles}
 # Author: Randy Gobbel <gobbel at andrew.cmu.edu>
 
-Format 84
+Format 85
 Columns                 1
 Sides                   1
 PageStyle               Headers
@@ -35,6 +35,7 @@ Style Standard
 	Align                 Block
 	AlignPossible         Block, Left, Right, Center
 	LabelType             No_Label
+	DocBookTag            para
 End
 
 
@@ -48,6 +49,9 @@ Style Title
 	EndFont
 	Align                 Center
 	HTMLTitle             true
+	DocBookTag            title
+	DocBookTagType        paragraph
+	DocBookInInfo         maybe
 End
 
 
@@ -90,6 +94,11 @@ Style Abstract
 	  Series              Bold
 	  Size                Small
 	EndFont
+	DocBookAbstract       true
+	DocBookInInfo         always
+	DocBookWrapperTag     abstract
+	DocBookWrapperMergeWithPrevious    true
+	DocBookTag            para
 End
 
 
@@ -113,6 +122,9 @@ Style ShortTitle
 	  Size                Small
 	  Shape               Up
 	EndFont
+	DocBookTag            titleabbrev
+	DocBookTagType        paragraph
+	DocBookInInfo         maybe
 End
 
 
@@ -129,6 +141,11 @@ Style Author
 	  Shape               Italic
 	  Size                Small
 	EndFont
+	DocBookTag            personname
+	DocBookTagType        paragraph
+	DocBookWrapperTag     author
+	DocBookWrapperTagType inline
+	DocBookInInfo         always
 End
 
 
@@ -175,6 +192,12 @@ Style Affiliation
 	  Series              Bold
 	  Size                Small
 	EndFont
+	DocBookTag                        affiliation
+	DocBookWrapperTag                 author
+	DocBookWrapperMergeWithPrevious   true
+	DocBookItemTag                    orgname
+	DocBookItemTagType                paragraph
+	DocBookInInfo                     always
 End
 
 
@@ -228,6 +251,8 @@ Style Acknowledgements
 	  Series              Bold
 	  Size                Small
 	EndFont
+	DocBookTag            para
+	DocBookWrapperTag     acknowledgements
 End
 
 
diff --git a/lib/layouts/apax.inc b/lib/layouts/apax.inc
index dc005b4..d37cd2b 100644
--- a/lib/layouts/apax.inc
+++ b/lib/layouts/apax.inc
@@ -2,7 +2,7 @@
 # Author: Jacob Bishop <bishop.jacob at gmail.com> based on the apa 
 # layout written by Randy Gobbel.
 
-Format 84
+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
 
 
diff --git a/lib/layouts/stdtitle.inc b/lib/layouts/stdtitle.inc
index 44b1b8e..9fbc3b7 100644
--- a/lib/layouts/stdtitle.inc
+++ b/lib/layouts/stdtitle.inc
@@ -8,7 +8,7 @@
 # a document, like title, author and such.
 
 
-Format 84
+Format 85
 
 Style Title
 	Margin                Static


More information about the lyx-cvs mailing list