[LyX/master] DocBook: implement iucr.

Thibaut Cuvelier tcuvelier at lyx.org
Fri Nov 27 01:20:20 UTC 2020


commit 77fa9a6c42b85e40eb636ffbd62fa649d20938a9
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date:   Fri Nov 27 02:49:48 2020 +0100

    DocBook: implement iucr.
---
 development/autotests/invertedTests |    4 +++-
 lib/layouts/iucr.layout             |   24 ++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletions(-)

diff --git a/development/autotests/invertedTests b/development/autotests/invertedTests
index 71ade13..7696822 100644
--- a/development/autotests/invertedTests
+++ b/development/autotests/invertedTests
@@ -504,8 +504,10 @@ export/templates/Articles/R_Journal_docbook5
 export/templates/Articles/REVTeX_%28V._4.1%29_docbook5
 # - Address at the end of the document (only allowed in abstract).
 export/templates/Articles/Kluwer_docbook5
-# - Empty bibliography, broken references, empty figures.
+# - Broken references, empty figures.
 export/templates/Articles/Journal_of_the_Acoustical_Society_of_America_%28JASA%29_docbook5
+# - Broken references, empty figures, misplaced acknowledgements (template not viable for DocBook).
+export/templates/Articles/International_Union_of_Crystallography_%28IUCr%29_docbook5
 # - Biographies after bibliography: DocBook does not allow content after a bibliography.
 export/templates/Articles/Mathematical_Monthly_docbook5
 
diff --git a/lib/layouts/iucr.layout b/lib/layouts/iucr.layout
index 6cfacc2..cdad371 100644
--- a/lib/layouts/iucr.layout
+++ b/lib/layouts/iucr.layout
@@ -27,6 +27,7 @@ Style Standard
 	Align			Block
 	AlignPossible		Block, Left, Right, Center
 	LabelType		No_Label
+	DocBookTag      para
 End
 
 Input stdtitle.inc
@@ -70,6 +71,7 @@ Style "Short Title"
 	Font
 	  Size			Small
 	EndFont
+	DocBookTag      titleabbrev
 End
 
 InsetLayout "Flex:City"
@@ -116,16 +118,19 @@ Style "Main Author"
 	Argument 1
 	  LabelString		"Affiliation Key"
 	  Tooltip		"Affiliation key of the author"
+	  # DocBookTag    othername
 	EndArgument
 	Argument 2
 	  Mandatory		1
 	  LabelString		"Forename"
 	  Tooltip		"Forename"
+	  # DocBookTag    firstname
 	EndArgument
 	Argument 3
 	  Mandatory		1
 	  LabelString		"Surname"
 	  Tooltip		"Surname"
+	  # DocBookTag    surname
 	EndArgument
 	Argument 4
 	  Mandatory		1
@@ -134,11 +139,18 @@ Style "Main Author"
 	  Font
 	    Shape		Italic
 	  EndFont
+	  # DocBookTag    email
 	EndArgument
 	BottomSep		0.5
 	ParSkip			0.4
 	Align			Center
 	LabelType		No_Label
+	DocBookTag            personname
+	DocBookTagType        paragraph
+	DocBookWrapperTag     author
+	DocBookWrapperTagType inline
+	DocBookInInfo         always
+	# TODO: a lot of information is available, but the email would be output in the <personname> tag, and that does not make sense. The two first arguments should be grouped in <personname>, the rest must live outside <personname>.
 End
 
 Style "Co Author"
@@ -170,6 +182,9 @@ Style "Short Author"
 	  Series		Bold
 	  Color			Green
 	EndFont
+	DocBookInInfo   always
+	DocBookTag      authorinitials
+	DocBookWrapperTag     NONE
 End
 
 Style Affiliation
@@ -195,6 +210,10 @@ Style Keyword
 	CopyStyle		"Short Author"
 	LatexName		keyword
 	LabelString		"Keyword:"
+	DocBookTag         keyword
+	DocBookTagType     paragraph
+	DocBookWrapperTag  keywordset
+	DocBookInInfo      always
 End
 
 Style Vita
@@ -225,6 +244,7 @@ Style Synopsis
   LabelString			"Synopsis"
   Align				Left
   AlignPossible			Left
+  DocBookAttr       role='synopsis'
 End
 
 Style Acknowledgements
@@ -234,6 +254,8 @@ Style Acknowledgements
   LabelString			"Acknowledgements:"
   Category			BackMatter
   TopSep			0.7
+  DocBookTag            para
+  DocBookWrapperTag     acknowledgements
 End
 
 Style References
@@ -266,6 +288,8 @@ Style References
     LabelString			"Reference"
     Mandatory			1
     AutoInsert			1
+	DocBookTag          bibliomixed
   EndArgument
   Align				Left
+  DocBookTag        bibliography
 End


More information about the lyx-cvs mailing list