[Top][All Lists]

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

Re: [O] pagebreak

From: Nick Dokos
Subject: Re: [O] pagebreak
Date: Tue, 26 Jul 2016 16:30:52 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Uwe Brauer <address@hidden> writes:

>    > 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.

Can you try the attached styles.xml? I just moved the style to another
place and I get the page break (whereas I did not get it with your
original styles.xml). But I really don't know the rules: somebody else
might be able to offer some enlightenment (assuming that it even works).

Attachment: styles.xml
Description: styles.xml


reply via email to

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