Closed papoteur-mga closed 1 year ago
Hi, I managed to make it work this way:
section_style = Element.from_tag(
(
'<style:style style:name="Twocol" style:family="section">'
'<style:section-properties style:editable="false">'
'<style:columns fo:column-count="2" fo:column-gap="0.497cm">'
'<style:column style:rel-width="32767*" fo:start-indent="0cm" fo:end-indent="0.248cm"/>'
'<style:column style:rel-width="32768*" fo:start-indent="0.248cm" fo:end-indent="0cm"/>'
"</style:columns>"
"</style:section-properties>"
"</style:style>"
)
)
writer.insert_style(section_style, automatic=True)
section = Section(name="Section1", style="Twocol")
So:
@jdum Thanks, this works, indeed. I missed (at least) the insertion of the style and the reference with its name.
I try to build a document with a section inside it to have two columns in this section. I didn't find a way to specify that the created section has 2 columns. Here my attempt:
The document is created with the section, but the section doesn't have 2 columns. I tried also to add a break page I have also tried to define the style from a tag (see what is commented), without success. I tried also to add a break page after the title, without more success. What have I missed?