and another apologize

i do not know why but i did not get the message that your message awaits approval
it should now work, and as soon as you are approved you can post to develop too
without being subscribed.

but for users docutils-users is better .

all the best


On 23 July 2014 09:16, john francis lee <jfl@robinlea.com> wrote:

Hi,

I was having trouble setting the page size used by rst2odt.py when it
created an odt from and rst file, and so sent a message to developers
... because that was the email link at the top of the article I'd read
in an attempt to get help ...

http://docutils.sourceforge.net/docs/user/odt.html#defining-and-using-a-custom-stylesheet

... and the email bounced because I wasn't subscribed. Meanwhile ...
scrolling down, or using another link, came in contact with another
section of the very same posting ...

http://docutils.sourceforge.net/docs/user/odt.html#page-size

... which has set me right ! So, thanks.

I tried papersize and that business, but it was ...

$ rst2odt_prepstyles.py styles.odt

... that finally straightened me out.

I append my original email for ... the hell of it ...

Thanks again. It this doesn't bounce too.

====================================================================

Hi,

I'm trying to generate .odt files with paper size a4 from .rst files.

I'm trying to follow the directions from


http://docutils.sourceforge.net/docs/user/odt.html#defining-and-using-a-custom-stylesheet

I use debian 7.6 64bit linux. I used

  apt-get install python-docutils

to install the docutils programs.

I  copied

  /usr/share/docutils/writers/odf_odt/styles.odt

to my home directory.

I opened it there and changed

  Format| Page | Paper format | Format

from Letter to A4

I saved

  /usr/share/docutils/writers/odf_odt/styles.odt

as

  /usr/share/docutils/writers/odf_odt/styles.odt-dist

and then saved my copy as

  /usr/share/docutils/writers/odf_odt/styles.odt

No one ever uses letter sized paper in Thailand, and I can change it in
any individual letters I write on letter size paper. I think I have
written one in the last 12 years .

I changed ownership and permissions to match the distribution

ls -l /usr/share/docutils/writers/odf_odt/
total 40
-rw-r--r-- 1 root root 16403 Jul 23 12:19 styles.odt
-rw-r--r-- 1 root root 16500 Jun 27  2011 styles.odt-dist

But when I run

  rst2odt ooncd.en.rst ooncd.en.odt

ooncd.en.odt is still formatted for letter-size paper.

Can you see what I've done wrong?

Thanks.

--
John Francis Lee
Thanon Sanam Gila, Ban Fa Sai
79/151 Moo 22 T. Ropwieng
Mueang Chiangrai 57000
Thailand



------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Docutils-users mailing list
Docutils-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.