emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] pagebreak


From: Uwe Brauer
Subject: Re: [O] pagebreak
Date: Tue, 26 Jul 2016 19:20:41 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

   > Uwe Brauer <address@hidden> writes:

   > Did you add the PageBreak style (mentioned in the hint on the above
   > page) to your styles.xml? Check the value of org-odt-styles-dir for
   > where that file is read from.

Hm, I was not sure about that part, so first did it without a modified
styles.xml, but then I tried it with that option. It did not work
neither. Here are the steps I did.

    -  first create a dummy.org file with just one line, 

    -  export it to dummy.odt

    -  unzip the odt which results in various xml, one of them is the
       file styles.xml, 

    -  take it as a template.

    -  add to the file page.org the following line

#+ODT_STYLES_FILE: "/home/oub/test/styles.xml"


    -  add to the file styles.xml the lines

<style:style style:name="PageBreak" style:family="paragraph"
style:parent-style-name="Text_20_body">
<style:paragraph-properties fo:break-before="page"/>
</style:style>



    -  export page.org again. The resulting odt has *no* pagebreak. I
       attach, page.org, page.odt and styles.xml.


Uwe Brauer


Attachment: page.odt
Description: application/vnd.oasis.opendocument.text

Attachment: page.org
Description: Text Data

Attachment: styles.xml
Description: application/xml


reply via email to

[Prev in Thread] Current Thread [Next in Thread]