From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Rinaldi Subject: problem with odt export, emacs 23.3.1 on Ubuntu 12.04 LTS Date: Sun, 12 Aug 2012 12:05:55 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0VC5-0006RW-TR for emacs-orgmode@gnu.org; Sun, 12 Aug 2012 06:14:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0VC3-0001Kg-9q for emacs-orgmode@gnu.org; Sun, 12 Aug 2012 06:14:49 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:33690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0V3o-00089C-Os for emacs-orgmode@gnu.org; Sun, 12 Aug 2012 06:06:16 -0400 Received: by wibhn17 with SMTP id hn17so1342734wib.12 for ; Sun, 12 Aug 2012 03:06:15 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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