Re: [O] pagebreak
Leslie Watter writes: > Where in styles.xml did you put the above statement ? > Check the styles.xml attachment in http://thread.gmane.org/gmane.emacs.orgmode/108503/focus=108532 for the original placement and in http://thread.gmane.org/gmane.emacs.orgmode/108503/focus=108535 for the modified placement. (but note that gmane is struggling atm - anybody know what's up with it?) -- Nick
Re: [O] pagebreak
Hi Uwe, On Tue, Jul 26, 2016 at 6:52 PM, Uwe Brauer wrote: > >> Uwe Brauer writes: > >> 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). > > It works! Great thanks, so it seems important where to put > > style:parent-style-name="Text_20_body"> > > > > In the styles.xml file > Where in styles.xml did you put the above statement ? Cheers, LEslie > > Uwe > > > -- Leslie H. Watter
Re: [O] pagebreak
> Uwe Brauer writes: > 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). It works! Great thanks, so it seems important where to put In the styles.xml file Uwe
Re: [O] pagebreak
Uwe Brauer writes: >> Uwe Brauer 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:parent-style-name="Text_20_body"> > > > > > > - 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). http://www.w3.org/1999/xlink"; xmlns:dc="http://purl.org/dc/elements/1.1/"; xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML"; xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office"; xmlns:ooow="http://openoffice.org/2004/writer"; xmlns:oooc="http://openoffice.org/2004/calc"; xmlns:dom="http://www.w3.org/2001/xml-events"; xmlns:rpt="http://openoffice.org/2005/report"; xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml"; xmlns:grddl="http://www.w3.org/2003/g/data-view#"; office:version="1.2"> / /
Re: [O] pagebreak
> Uwe Brauer 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. Ok I checked that also , | | org-odt-styles-dir is a variable defined in ‘ox-odt.el’. | Its value is | "/home/oub/.emacs.d/elpa/org-plus-contrib-20160516/etc/styles/ ` So I modified the OrgOdtStyles.xml, adding again But it did not help neither regards Uwe OrgOdtStyles.xml Description: XML document
Re: [O] pagebreak
> Uwe Brauer 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 - export page.org again. The resulting odt has *no* pagebreak. I attach, page.org, page.odt and styles.xml. Uwe Brauer page.odt Description: application/vnd.oasis.opendocument.text #+ODT_STYLES_FILE: "/home/oub/test/styles.xml" * This is the header First page: #+ODT: * This is a header Second page styles.xml Description: XML document
Re: [O] pagebreak
Uwe Brauer writes: "Robert" == Robert Klein writes: > >> Hi, >> On Mon, 25 Jul 2016 18:59:46 + >> Uwe Brauer wrote: > >>> Hi >>> >>> I would like to write an org document export it to odt, and break >>> pages manually. How can I achieve that? >>> > >> #+ODT: > >> See http://orgmode.org/manual/Creating-one_002doff-styles.html in the >> manual. > > Yeah, thanks, I found that solution too, but it does *not* work, here are two > example files. > > > * This is the header > > First page: > > #+ODT: > > * This is a header > > Second page > 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. -- Nick
Re: [O] pagebreak
>>> "Robert" == Robert Klein writes: > Hi, > On Mon, 25 Jul 2016 18:59:46 + > Uwe Brauer wrote: >> Hi >> >> I would like to write an org document export it to odt, and break >> pages manually. How can I achieve that? >> > #+ODT: > See http://orgmode.org/manual/Creating-one_002doff-styles.html in the > manual. Yeah, thanks, I found that solution too, but it does *not* work, here are two example files. page.odt Description: application/vnd.oasis.opendocument.text * This is the header First page: #+ODT: * This is a header Second page
Re: [O] pagebreak
Hi, On Mon, 25 Jul 2016 18:59:46 + Uwe Brauer wrote: > Hi > > I would like to write an org document export it to odt, and break > pages manually. How can I achieve that? > #+ODT: See http://orgmode.org/manual/Creating-one_002doff-styles.html in the manual. Best regards Robert
[O] pagebreak
Hi I would like to write an org document export it to odt, and break pages manually. How can I achieve that? thanks Uwe Brauer