From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: odt export version conflict on emacs for mac os x Date: Thu, 29 Aug 2013 10:25:25 +0530 Message-ID: <87ob8hksea.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEuEV-0005Q0-Tn for emacs-orgmode@gnu.org; Thu, 29 Aug 2013 00:53:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEuEN-0002bt-At for emacs-orgmode@gnu.org; Thu, 29 Aug 2013 00:53:23 -0400 Received: from mail-pb0-x234.google.com ([2607:f8b0:400e:c01::234]:39578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEuEN-0002bn-3i for emacs-orgmode@gnu.org; Thu, 29 Aug 2013 00:53:15 -0400 Received: by mail-pb0-f52.google.com with SMTP id wz12so7185153pbc.11 for ; Wed, 28 Aug 2013 21:53:14 -0700 (PDT) In-Reply-To: (Skip Collins's message of "Sun, 11 Aug 2013 09:50:54 -0400") 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: Skip Collins Cc: emacs-orgmode@gnu.org Skip Collins writes: > I started digging into this when I noticed some odd behavior while > using ODT export. I think I am stuck using the older, buggier ox-odt > and my setup is mixing two versions of org. Your settings seem OK to me. > 1) an odt file is generated (good) This is what matters! > Explicitly setting org-export-backends, org-export-odt-schema-dir, and > org-export-odt-styles-file in minimalinit.el has no effect. These > variables seem to be superseded when ox-odt is invoked. org-export-odt-* => These are LEGACY settings. IGNORE THEM. org-odt => Settings used by NEW exporter, ox-odt.el > I immediately browse the ODT customization options showing that all > variables are prefixed with org-export-odt-. You will see that M-x customize-group RET org-export-odt RET shows variables with both the prefixes `org-export-odt-*' and `org-odt-*'. It is the later one that you should use. Seeing both the old and new custom variables is NORMAL and nothing to worry about. You will similar behaviour for other exporters - latex and html - as well. This mixing up of LEGACY and NEW variables will go away with Emacses that have new ox-odt.el. If the new variables are not seen do M-x load-library RET ox-odt RET Also remember to add odt to M-x customize-variable RET org-export-backends RET > 2) These Emacs messages appear (bad): > Debug (ox-odt): Searching for OpenDocument styles files... > Debug (ox-odt): Trying /usr/share/emacs/etc/org/styles/... [2 times] > Debug (ox-odt): Trying /usr/local/share/emacs/etc/styles/... > Debug (ox-odt): Trying /usr/local/share/emacs/site-lisp/org/etc/styles/... > Debug (ox-odt): Trying /Applications/Emacs.app/Contents/Resources/etc/org/... The *BEST* way to pick the right styles file is to set the `org-odt-data-dir' directly. I have the following setting in my .emacs (setq org-odt-data-dir "~/src/org-mode/etc/") OrgOdtStyles.xml is under styles/ subdir of that dir. Modify the above variable according to your setting. > The newer org, which I intend to completely supplant the version that > comes with Emacs, was installed with prefix /usr/local/share using the > 'make up2' command. make is what sets up `org-odt-data-dir' for you. In your setting check the value of `org-odt-data-dir' and make sure that the OrgOdtStyles.xml file is available where the ODT exporter looks for it. Ping Achim Gratz if you think make is not doing the right thing. Btw, (I think) you will get the right behaviour if you do make install > Debug (ox-odt): Using styles under > /Applications/Emacs.app/Contents/Resources/etc/org/ The above directory is `data-directory' of Vanilla Emacs. > Debug (ox-odt): Searching for OpenDocument schema files... > Debug (ox-odt): Trying /usr/share/emacs/etc/org/schema/... [2 times] > Debug (ox-odt): No OpenDocument schema files installed Absence of schema files is just a normal warning. A user need not bother about it.