DocBook: implement IJMP C/D.

This commit is contained in:
Thibaut Cuvelier 2020-11-27 04:16:48 +01:00
parent 6201158e5d
commit 0e4d8a8159
3 changed files with 119 additions and 10 deletions

View File

@ -510,6 +510,8 @@ export/templates/Articles/Journal_of_the_Acoustical_Society_of_America_%28JASA%2
export/templates/Articles/International_Union_of_Crystallography_%28IUCr%29_docbook5 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
# - Empty figure, very custom table caption (maybe fixable?), strange appendices (not in ToC).
export/templates/Articles/Int._Journal_of_Modern_Physics_(C|D)_docbook5
Sublabel: docbook poster Sublabel: docbook poster
# Posters cannot be properly exported, the LyX documents are too far from # Posters cannot be properly exported, the LyX documents are too far from

View File

@ -30,6 +30,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 stdcounters.inc Input stdcounters.inc
@ -83,6 +84,9 @@ Style MarkBoth
\DeclareRobustCommand{\foreign@language}[1]{% \DeclareRobustCommand{\foreign@language}[1]{%
\lowercase{\oldforeign@language{#1}}} \lowercase{\oldforeign@language{#1}}}
EndPreamble EndPreamble
DocBookTag IGNORE
# TODO: a mix of titleabbrev and authorinitials...
DocBookInInfo always
End End
Style Catchline Style Catchline
@ -102,6 +106,8 @@ Style Catchline
Series Bold Series Bold
Color Green Color Green
EndFont EndFont
DocBookTag IGNORE
DocBookInInfo always
End End
Style Title Style Title
@ -121,6 +127,9 @@ Style Title
Font Font
Size Largest Size Largest
EndFont EndFont
DocBookTag title
DocBookTagType paragraph
DocBookInInfo maybe
End End
Style Author Style Author
@ -139,6 +148,11 @@ Style Author
Font Font
Size Large Size Large
EndFont EndFont
DocBookTag personname
DocBookTagType paragraph
DocBookWrapperTag author
DocBookWrapperTagType inline
DocBookInInfo always
End End
Style Address Style Address
@ -154,6 +168,12 @@ Style Address
Shape Italic Shape Italic
Size Normal Size Normal
EndFont EndFont
DocBookTag address
DocBookTagType paragraph
DocBookWrapperTag author
DocBookWrapperTagType inline
DocBookWrapperMergeWithPrevious true
DocBookInInfo always
End End
Style History Style History
@ -168,6 +188,8 @@ Style History
Font Font
Size Small Size Small
EndFont EndFont
DocBookTag releaseinfo
DocBookInInfo always
End End
InsetLayout Flex:Received InsetLayout Flex:Received
@ -185,7 +207,10 @@ InsetLayout Flex:Received
Color green Color green
Size Small Size Small
EndFont EndFont
ResetsFont true ResetsFont true
DocBookTag date
DocBookAttr role='received'
DocBookTagType inline
End End
InsetLayout Flex:Revised InsetLayout Flex:Revised
@ -203,7 +228,10 @@ InsetLayout Flex:Revised
Color green Color green
Size Small Size Small
EndFont EndFont
ResetsFont true ResetsFont true
DocBookTag date
DocBookAttr role='revised'
DocBookTagType inline
End End
Style Abstract Style Abstract
@ -217,6 +245,11 @@ Style Abstract
Font Font
Size Small Size Small
EndFont EndFont
DocBookAbstract true
DocBookInInfo always
DocBookWrapperTag abstract
DocBookWrapperMergeWithPrevious true
DocBookTag para
End End
InsetLayout Flex:Keywords InsetLayout Flex:Keywords
@ -234,7 +267,11 @@ InsetLayout Flex:Keywords
Color green Color green
Size Small Size Small
EndFont EndFont
ResetsFont true ResetsFont true
DocBookTag keyword
DocBookTagType paragraph
DocBookWrapperTag keywordset
DocBookInInfo always
End End
Style Classification_Codes Style Classification_Codes
@ -259,7 +296,9 @@ InsetLayout Flex:TableCaption
Color green Color green
Size Small Size Small
EndFont EndFont
ResetsFont true ResetsFont true
DocBookTag caption
DocBookTagType paragraph
End End
InsetLayout Flex:Refcite InsetLayout Flex:Refcite
@ -277,7 +316,7 @@ InsetLayout Flex:Refcite
Color green Color green
Size Small Size Small
EndFont EndFont
ResetsFont true ResetsFont true
End End
Style ItemList Style ItemList
@ -309,6 +348,9 @@ Style ItemList
HTMLTag ul HTMLTag ul
HTMLItem li HTMLItem li
HTMLLabel NONE HTMLLabel NONE
DocBookTag itemizedlist
DocBookItemTag listitem
DocBookItemInnerTag para
End End
Style RomanList Style RomanList
@ -347,6 +389,9 @@ Style RomanList
HTMLItem li HTMLItem li
HTMLLabel NONE HTMLLabel NONE
RefPrefix enu RefPrefix enu
DocBookTag orderedlist
DocBookItemTag listitem
DocBookItemInnerTag para
End End
Style Proof Style Proof
@ -367,6 +412,8 @@ Style Proof
Series Bold Series Bold
EndFont EndFont
EndLabelType Box EndLabelType Box
DocBookTag para
DocBookAttr role='proof'
End End
Style Theorem Style Theorem
@ -378,6 +425,8 @@ Style Theorem
#LabelFont #LabelFont
#Series Bold #Series Bold
#EndFont #EndFont
DocBookTag para
DocBookAttr role='theorem'
End End
Style Remark Style Remark
@ -465,6 +514,9 @@ Style Appendix
Font Font
Series Bold Series Bold
EndFont EndFont
DocBookTag title
DocBookTagType paragraph
DocBookSection true
End End
Style Bibliography Style Bibliography

View File

@ -35,6 +35,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 stdcounters.inc Input stdcounters.inc
@ -88,6 +89,9 @@ Style MarkBoth
\DeclareRobustCommand{\foreign@language}[1]{% \DeclareRobustCommand{\foreign@language}[1]{%
\lowercase{\oldforeign@language{#1}}} \lowercase{\oldforeign@language{#1}}}
EndPreamble EndPreamble
DocBookTag IGNORE
# TODO: a mix of titleabbrev and authorinitials...
DocBookInInfo always
End End
Style Catchline Style Catchline
@ -107,6 +111,8 @@ Style Catchline
Series Bold Series Bold
Color Green Color Green
EndFont EndFont
DocBookTag IGNORE
DocBookInInfo always
End End
Style Title Style Title
@ -126,6 +132,9 @@ Style Title
Font Font
Size Largest Size Largest
EndFont EndFont
DocBookTag title
DocBookTagType paragraph
DocBookInInfo maybe
End End
Style Author Style Author
@ -144,6 +153,20 @@ Style Author
Font Font
Size Large Size Large
EndFont EndFont
DocBookTag personname
DocBookTagType paragraph
DocBookWrapperTag author
DocBookWrapperTagType inline
DocBookInInfo always
End
Style Address
DocBookTag address
DocBookTagType paragraph
DocBookWrapperTag author
DocBookWrapperTagType inline
DocBookWrapperMergeWithPrevious true
DocBookInInfo always
End End
Style History Style History
@ -158,6 +181,8 @@ Style History
Font Font
Size Small Size Small
EndFont EndFont
DocBookTag releaseinfo
DocBookInInfo always
End End
InsetLayout Flex:Received InsetLayout Flex:Received
@ -175,7 +200,10 @@ InsetLayout Flex:Received
Color green Color green
Size Small Size Small
EndFont EndFont
ResetsFont true ResetsFont true
DocBookTag date
DocBookAttr role='received'
DocBookTagType inline
End End
InsetLayout Flex:Revised InsetLayout Flex:Revised
@ -193,7 +221,10 @@ InsetLayout Flex:Revised
Color green Color green
Size Small Size Small
EndFont EndFont
ResetsFont true ResetsFont true
DocBookTag date
DocBookAttr role='revised'
DocBookTagType inline
End End
InsetLayout Flex:Comby InsetLayout Flex:Comby
@ -211,7 +242,7 @@ InsetLayout Flex:Comby
Color green Color green
Size Small Size Small
EndFont EndFont
ResetsFont true ResetsFont true
End End
Style Abstract Style Abstract
@ -225,6 +256,11 @@ Style Abstract
Font Font
Size Small Size Small
EndFont EndFont
DocBookAbstract true
DocBookInInfo always
DocBookWrapperTag abstract
DocBookWrapperMergeWithPrevious true
DocBookTag para
End End
Style Keywords Style Keywords
@ -245,6 +281,10 @@ Style Keywords
Shape Italic Shape Italic
Size Small Size Small
EndFont EndFont
DocBookTag keyword
DocBookTagType paragraph
DocBookWrapperTag keywordset
DocBookInInfo always
End End
InsetLayout Flex:TableCaption InsetLayout Flex:TableCaption
@ -262,7 +302,9 @@ InsetLayout Flex:TableCaption
Color green Color green
Size Small Size Small
EndFont EndFont
ResetsFont true ResetsFont true
DocBookTag caption
DocBookTagType paragraph
End End
InsetLayout Flex:Refcite InsetLayout Flex:Refcite
@ -280,7 +322,7 @@ InsetLayout Flex:Refcite
Color green Color green
Size Small Size Small
EndFont EndFont
ResetsFont true ResetsFont true
End End
Style ItemList Style ItemList
@ -312,6 +354,9 @@ Style ItemList
HTMLTag ul HTMLTag ul
HTMLItem li HTMLItem li
HTMLLabel NONE HTMLLabel NONE
DocBookTag itemizedlist
DocBookItemTag listitem
DocBookItemInnerTag para
End End
Style RomanList Style RomanList
@ -350,6 +395,9 @@ Style RomanList
HTMLItem li HTMLItem li
HTMLLabel NONE HTMLLabel NONE
RefPrefix enu RefPrefix enu
DocBookTag orderedlist
DocBookItemTag listitem
DocBookItemInnerTag para
End End
Style Proof Style Proof
@ -370,6 +418,8 @@ Style Proof
Series Bold Series Bold
EndFont EndFont
EndLabelType Box EndLabelType Box
DocBookTag para
DocBookAttr role='proof'
End End
Counter theorem Counter theorem
@ -385,6 +435,8 @@ Style Theorem
LabelFont LabelFont
Series Bold Series Bold
EndFont EndFont
DocBookTag para
DocBookAttr role='theorem'
End End
Counter remark Counter remark
@ -486,6 +538,9 @@ Style Appendix
Font Font
Series Bold Series Bold
EndFont EndFont
DocBookTag title
DocBookTagType paragraph
DocBookSection true
End End
Style Bibliography Style Bibliography