emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Fabio Rinaldi <fabio.rinaldi@uzh.ch>
To: emacs-orgmode@gnu.org
Subject: problem with odt export, emacs 23.3.1 on Ubuntu 12.04 LTS
Date: Sun, 12 Aug 2012 12:05:55 +0200	[thread overview]
Message-ID: <CAK-5JG5-uutrrVY7x+yeaDzCB-85GOC1iBX2NSEQoFxpP2oO=Q@mail.gmail.com> (raw)

I always had a problem in exporting org mode files to odt format
and finally I have found the reason of the problem and a solution.

I use org mode within emacs 23.3.1 on Ubuntu 12.04 LTS
(all tools standard distribution).

The otd export elisp file is placed here:

/usr/share/emacs/site-lisp/org-mode/org-odt.el

If I understand correctly, it searches for the styles and schemas
starting from there:

(defconst org-odt-lib-dir (file-name-directory load-file-name))
(defconst org-odt-styles-dir
  (let* ((styles-dir1 (expand-file-name "../etc/styles/" org-odt-lib-dir))
	 (styles-dir2 (expand-file-name "./etc/styles/" org-odt-lib-dir))
   ...


(defcustom org-export-odt-schema-dir
  (let ((schema-dir (expand-file-name
		     "../contrib/odt/etc/schema/" org-odt-lib-dir)))
    ....

This does not work with the configuration above, because:

A) the schema files are at a completely different location
B) the style files are entirely missing
C) the call to "load-file-name" for some reason fails, preventing
    the whole file from being loaded

As a workaround, I copied over the style files, manually
fixed "org-odt-styles-dir" and " org-export-odt-schema-dir" in
org-odt.el,  and commented out the line which causes
problem (C).

This works - but a more flexible solution should be found so
that org-odt does not break again.

I hope this can be useful to the org community - although it might
be that in the meantime somebody else already fixed the problem.

Fabio Rinaldi

             reply	other threads:[~2012-08-12 10:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-12 10:05 Fabio Rinaldi [this message]
2012-08-12 18:40 ` problem with odt export, emacs 23.3.1 on Ubuntu 12.04 LTS Jambunathan K

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='CAK-5JG5-uutrrVY7x+yeaDzCB-85GOC1iBX2NSEQoFxpP2oO=Q@mail.gmail.com' \
    --to=fabio.rinaldi@uzh.ch \
    --cc=emacs-orgmode@gnu.org \
    /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).