DocBook: implement iucr.

This commit is contained in:
Thibaut Cuvelier 2020-11-27 02:49:48 +01:00
parent 5f488ed746
commit 77fa9a6c42
2 changed files with 27 additions and 1 deletions

View File

@ -504,8 +504,10 @@ export/templates/Articles/R_Journal_docbook5
export/templates/Articles/REVTeX_%28V._4.1%29_docbook5 export/templates/Articles/REVTeX_%28V._4.1%29_docbook5
# - Address at the end of the document (only allowed in abstract). # - Address at the end of the document (only allowed in abstract).
export/templates/Articles/Kluwer_docbook5 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 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. # - Biographies after bibliography: DocBook does not allow content after a bibliography.
export/templates/Articles/Mathematical_Monthly_docbook5 export/templates/Articles/Mathematical_Monthly_docbook5

View File

@ -27,6 +27,7 @@ Style Standard
Align Block Align Block
AlignPossible Block, Left, Right, Center AlignPossible Block, Left, Right, Center
LabelType No_Label LabelType No_Label
DocBookTag para
End End
Input stdtitle.inc Input stdtitle.inc
@ -70,6 +71,7 @@ Style "Short Title"
Font Font
Size Small Size Small
EndFont EndFont
DocBookTag titleabbrev
End End
InsetLayout "Flex:City" InsetLayout "Flex:City"
@ -116,16 +118,19 @@ Style "Main Author"
Argument 1 Argument 1
LabelString "Affiliation Key" LabelString "Affiliation Key"
Tooltip "Affiliation key of the author" Tooltip "Affiliation key of the author"
# DocBookTag othername
EndArgument EndArgument
Argument 2 Argument 2
Mandatory 1 Mandatory 1
LabelString "Forename" LabelString "Forename"
Tooltip "Forename" Tooltip "Forename"
# DocBookTag firstname
EndArgument EndArgument
Argument 3 Argument 3
Mandatory 1 Mandatory 1
LabelString "Surname" LabelString "Surname"
Tooltip "Surname" Tooltip "Surname"
# DocBookTag surname
EndArgument EndArgument
Argument 4 Argument 4
Mandatory 1 Mandatory 1
@ -134,11 +139,18 @@ Style "Main Author"
Font Font
Shape Italic Shape Italic
EndFont EndFont
# DocBookTag email
EndArgument EndArgument
BottomSep 0.5 BottomSep 0.5
ParSkip 0.4 ParSkip 0.4
Align Center Align Center
LabelType No_Label 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 End
Style "Co Author" Style "Co Author"
@ -170,6 +182,9 @@ Style "Short Author"
Series Bold Series Bold
Color Green Color Green
EndFont EndFont
DocBookInInfo always
DocBookTag authorinitials
DocBookWrapperTag NONE
End End
Style Affiliation Style Affiliation
@ -195,6 +210,10 @@ Style Keyword
CopyStyle "Short Author" CopyStyle "Short Author"
LatexName keyword LatexName keyword
LabelString "Keyword:" LabelString "Keyword:"
DocBookTag keyword
DocBookTagType paragraph
DocBookWrapperTag keywordset
DocBookInInfo always
End End
Style Vita Style Vita
@ -225,6 +244,7 @@ Style Synopsis
LabelString "Synopsis" LabelString "Synopsis"
Align Left Align Left
AlignPossible Left AlignPossible Left
DocBookAttr role='synopsis'
End End
Style Acknowledgements Style Acknowledgements
@ -234,6 +254,8 @@ Style Acknowledgements
LabelString "Acknowledgements:" LabelString "Acknowledgements:"
Category BackMatter Category BackMatter
TopSep 0.7 TopSep 0.7
DocBookTag para
DocBookWrapperTag acknowledgements
End End
Style References Style References
@ -266,6 +288,8 @@ Style References
LabelString "Reference" LabelString "Reference"
Mandatory 1 Mandatory 1
AutoInsert 1 AutoInsert 1
DocBookTag bibliomixed
EndArgument EndArgument
Align Left Align Left
DocBookTag bibliography
End End