From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: [ANN] OpenDocumentText/OpenOffice Exporter - 0.6 Release Date: Sun, 13 Feb 2011 14:36:15 +0530 Message-ID: <814o88joc8.fsf@gmail.com> References: <201102102334.57286.martin@weigele.de> <81sjvvxxcc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=54667 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PoXuX-0005Vp-Fm for emacs-orgmode@gnu.org; Sun, 13 Feb 2011 04:06:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PoXuW-0001GK-78 for emacs-orgmode@gnu.org; Sun, 13 Feb 2011 04:06:29 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:60114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PoXuW-0001GA-2P for emacs-orgmode@gnu.org; Sun, 13 Feb 2011 04:06:28 -0500 Received: by iyi20 with SMTP id 20so4218806iyi.0 for ; Sun, 13 Feb 2011 01:06:27 -0800 (PST) In-Reply-To: (Gary Oberbrunner's message of "Fri, 11 Feb 2011 13:10:50 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Gary Thanks for trying out org-odt and sharing your feedback. > I just joined the list recently and am very excited to try direct odt > export! =A0I checked out Jambunathan's git repo. =A0I'm already running > org-mode from its git master; is your repo a fork of the master, or > is it its own thing? =A0It seems like it contains everything, so I > should use it instead of the main one? It's a fork of the master. It may lag behind the master depending on my whims and fancies. > > Once I enabled png images in my Windows emacs (by copying the > appropriate DLLs), the following worked fine for me in my .emacs: > > #+begin_example > ;; Org-mode ODT (Open Document) export, EXPERIMENTAL: > (custom-set-variables > =A0'(org-export-latex-default-packages-alist (quote (("AUTO" "inputenc" > t)))) > =A0'(org-export-with-LaTeX-fragments (quote dvipng)) > =A0) > (setq org-odt-base-dir "c:/Program Files (x86)/emacs/site-lisp/ > org-jambu") ; only used for odt export > (load-file (expand-file-name "contrib/odt/setup.el" > org-odt-base-dir)) > #+end_example > LaTeX related lines are required only if there are LaTeX fragments (like equations) which need to be embedded in to the resulting odt file. I have included these lines only because the test.org file that I use for testing has embedded LaTeX fragments. As you noted above, setup.el changes the load-path and has pointers to default styles file used for export. > I suppose one addition would be to allow for customized ODT character > and paragraph styles, e.g. customizing the styles.xml that gets > included into the doc. FYI, many of the user-defined styles used by the exporter have `org' prefix. Updating styles file either from a sample .odt file or .ott files is something in my list. Till such time as I add support for this feature one can use the following workaround: 1. customize the different styles in exported file and save it. 2. unzip the resulting odt file (Note: odt files are just .zip files) and extract styles.xml file from the same. 3. Customize the variable org-export-odt-styles-file to point to the above styles file. The above procedure should work though I haven't tried this myself. For the sake of record, many folks using `older version of emacs' have reported `delete-directory' related crashes while trying my exporter. I have pushed a fix for this a few minutes ago. Jambunathan K.