emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Paul R <paul.r.ml@gmail.com>
To: windsor.10@osu.edu
Cc: emacs-orgmode@gnu.org
Subject: Re: Exporting for word processors
Date: Tue, 12 May 2009 09:33:06 +0200	[thread overview]
Message-ID: <87ab5iepxp.fsf@gmail.com> (raw)
In-Reply-To: <cc5438d40905081210y7faa8d59m2bd379ac278da191@mail.gmail.com> (Jeffrey Windsor's message of "Fri, 8 May 2009 15:10:43 -0400")

Hi,

Jeffrey> Can anyone help me out? I suspect that docbook is the key, but
Jeffrey> I've tried to find an answer there and am flummoxed by the
Jeffrey> docbook documentation.

Indeed, you can use docbook and something like docbook2odf to convert to
something OpenOffice.org can read. You'll have to experiment, I really
hope this will work well because that's what docbook has been designed
for.

You can also directly write to ODT, I've done such an export filter for
emacs muse some time ago, I can't remember if I published it somewhere,
but basically it is really simple :

 - start OpenOffice and write some dummy text and apply paragraph style
   to them. Make sure you use every type of structure you will need
   later (lists, titles ...).
 - tweak your styles to suit your tastes
 - save file somewhere as template.odt
 - odt is a zipped directory, so unzip the file and look inside, you
   will find something like content.xml, read it carefully, so you will
   know how to write it later.

Now write an exporter that can be customized to use a given
« template.odt » file. It will first unzip this file, then replace
content.xml by a newly generated content.xml from your org file, then
zip back the whole directory and voila.

-- 
  Paul

  parent reply	other threads:[~2009-05-12  7:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-08 19:10 Exporting for word processors Jeffrey Windsor
2009-05-08 20:03 ` Matthew Lundin
2009-05-08 23:04   ` Scot Becker
2009-05-09  6:55     ` Carsten Dominik
2009-05-09 11:56   ` Sebastian Titz
2009-05-09 15:48     ` Matthew Lundin
2009-05-09 16:37       ` Scot Becker
2009-05-12  7:33 ` Paul R [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-05-11  8:14 Giovanni Ridolfi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ab5iepxp.fsf@gmail.com \
    --to=paul.r.ml@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=windsor.10@osu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).