DocBook: implement SciPoster.

This commit is contained in:
Thibaut Cuvelier 2020-11-29 01:15:37 +01:00
parent 59acb375d1
commit 877806f208
5 changed files with 46 additions and 18 deletions

View File

@ -427,8 +427,9 @@ export/mathmacros/testcases_speed_docbook5
export/mathmacros/testcases_environments_docbook5 export/mathmacros/testcases_environments_docbook5
export/mathmacros/masterOfSpace_docbook5 export/mathmacros/masterOfSpace_docbook5
export/doc/sl/Tutorial_docbook5 export/doc/sl/Tutorial_docbook5
# - Sidebars can be nested in LyX (mostly with shapepar), but not in DocBook. # - Sidebars can be nested in LyX (mostly with shapepar), but not in DocBook. Also, multicol issues (like columns in
export/doc(|/de|/es|/fr|/ja)/Additional_docbook5 # columns).
export/doc(|/de|/es|/fr|/ja|/ru)/Additional_docbook5
# - Many templates are too complex for automatic conversion to work reliably. # - Many templates are too complex for automatic conversion to work reliably.
# The resulting documents should still be easy to fully convert into DocBook. # The resulting documents should still be easy to fully convert into DocBook.
# - AASTeX. # - AASTeX.
@ -529,6 +530,9 @@ export/templates/Articles/American_Psychological_Association_%28APA%29,_v._7_doc
# - Empty figure. Dedications: IEEE wants them in the preamble, DocBook outside. How to implement biographies? # - Empty figure. Dedications: IEEE wants them in the preamble, DocBook outside. How to implement biographies?
# They should have their own section... # They should have their own section...
export/templates/Articles/IEEE_Transactions(.*)_docbook5 export/templates/Articles/IEEE_Transactions(.*)_docbook5
# - Bibliography in the middle of the document (potentially fixable, but complicated, because some documents have
# several bibliographies, like books with one bibliography per chapter), subsections.
export/export/docbook/SciPoster_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

@ -22,16 +22,25 @@ InsetLayout Flex:Multiple_Columns
Mandatory 1 Mandatory 1
DefaultArg 2 DefaultArg 2
PassThru 1 PassThru 1
DocBookTag IGNORE
EndArgument EndArgument
Argument 2 Argument 2
LabelString "Preface" LabelString "Preface"
Tooltip "An optional preface" Tooltip "An optional preface"
DocBookTag para
DocBookAttr role='preface'
DocBookArgumentBeforeMainTag true
EndArgument EndArgument
Argument 3 Argument 3
LabelString "Space Before Page Break" LabelString "Space Before Page Break"
Tooltip "Free space that needs to be on the page to start the multiple columns on this page" Tooltip "Free space that needs to be on the page to start the multiple columns on this page"
Requires 2 Requires 2
DocBookTag IGNORE
EndArgument EndArgument
ResetsFont true ResetsFont true
DocBookWrapperTag NONE
DocBookTag NONE
DocBookNotInPara true
DocBookItemTag para
End End

View File

@ -181,3 +181,11 @@ InsetLayout Flex:Most_Giant_Snippet
LabelString "Most Giant" LabelString "Most Giant"
LeftDelim {\VERYHuge{} LeftDelim {\VERYHuge{}
End End
# InsetLayout Flex:Multiple_Columns
# DocBookWrapperTag NONE
# DocBookTag NONE
# DocBookItemWrapperTag NONE
# DocBookItemTag NONE
# DocBookNotInPara true
# End

View File

@ -10,18 +10,19 @@
Format 85 Format 85
InsetLayout Flex:SectionBox InsetLayout Flex:SectionBox
LyXType custom LyXType custom
LabelString "Section Box" LabelString "Section Box"
LatexType environment LatexType environment
LatexName sectionbox LatexName sectionbox
Decoration classic Decoration classic
MultiPar true MultiPar true
CustomPars true CustomPars true
Requires sectionbox Requires sectionbox
Argument 1 Argument 1
LabelString "Width" LabelString "Width"
MenuString "Section Box Width|S" MenuString "Section Box Width|S"
Tooltip "Width of the section Box" Tooltip "Width of the section Box"
DocBookTag IGNORE
EndArgument EndArgument
Argument 2 Argument 2
LabelString "Heading" LabelString "Heading"
@ -34,19 +35,24 @@ InsetLayout Flex:SectionBox
Size Large Size Large
Series Bold Series Bold
EndFont EndFont
DocBookTag title
DocBookTagType paragraph
DocBookArgumentBeforeMainTag true
EndArgument EndArgument
ResetsFont true ResetsFont true
DocBookTag section
DocBookItemTag para
End End
InsetLayout Flex:SubsectionBox InsetLayout Flex:SubsectionBox
CopyStyle Flex:SectionBox CopyStyle Flex:SectionBox
LabelString "Subsection Box" LabelString "Subsection Box"
LatexName subsectionbox LatexName subsectionbox
End End
InsetLayout Flex:SubsubsectionBox InsetLayout Flex:SubsubsectionBox
CopyStyle Flex:SectionBox CopyStyle Flex:SectionBox
LabelString "Subsubsection Box" LabelString "Subsubsection Box"
LatexName subsubsectionbox LatexName subsubsectionbox
End End

View File

@ -673,6 +673,7 @@ void InsetText::docbook(XMLStream & xs, OutputParams const & rp, XHTMLOptions op
runparams.docbook_prepended_arguments = std::move(prependedArguments); runparams.docbook_prepended_arguments = std::move(prependedArguments);
// - Deal with the first item. // - Deal with the first item.
// TODO: in things like SciPoster, this should also check if the item tag is allowed. Hard to formalise for now...
if (writeOuterTag) { if (writeOuterTag) {
if (!il.docbookitemwrappertag().empty() && il.docbookitemwrappertag() != "NONE" && il.docbookitemwrappertag() != "IGNORE") if (!il.docbookitemwrappertag().empty() && il.docbookitemwrappertag() != "NONE" && il.docbookitemwrappertag() != "IGNORE")
xml::openTag(xs, il.docbookitemwrappertag(), il.docbookitemwrapperattr(), il.docbookitemwrappertagtype()); xml::openTag(xs, il.docbookitemwrappertag(), il.docbookitemwrapperattr(), il.docbookitemwrappertagtype());