From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: tricky odt export needs Date: Thu, 21 Nov 2013 22:02:31 +0100 Message-ID: References: <20131121163843.GA32536@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjbQ3-00015v-Jh for emacs-orgmode@gnu.org; Thu, 21 Nov 2013 16:04:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjbPu-0008Iw-22 for emacs-orgmode@gnu.org; Thu, 21 Nov 2013 16:04:11 -0500 Received: from mail-forward4.uio.no ([2001:700:100:10::33]:54230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjbPt-0007uV-OB for emacs-orgmode@gnu.org; Thu, 21 Nov 2013 16:04:02 -0500 Received: from exim by mail-out4.uio.no with local-bsmtp (Exim 4.80.1) (envelope-from ) id 1VjbPI-00064U-Kb for emacs-orgmode@gnu.org; Thu, 21 Nov 2013 22:03:24 +0100 In-reply-to: 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: Dan Griswold Cc: emacs-orgmode@gnu.org Hi, Dan, Is this the message you get? No such file: /[path]/OpenDocument export failed: FIXME? Does the error always occur when you have my filter set, and never when you don't? Does it matter whether you're restricting export to subtrees? After some more testing, I'm seeing the above error message myself in a limited set of circumstances (only during subtree export, and only when the target/bookmark/label is at a higher heading level than the reference). But whether I use the filter or not does not seem to matter. I enclose a working version of the filter again, on the off chance that there was a typo in my previous message. #+begin_src emacs-lisp (defun my-odt-filter-pagerefs (text backend info) "Make page-number references rather than textual references in ODT export." (when (org-export-derived-backend-p backend 'odt) (replace-regexp-in-string "text:reference-format=\"text\"" "text:reference-format=\"page\"" text))) (add-to-list 'org-export-filter-link-functions 'my-odt-filter-pagerefs) #+end_src Yours, Christian Dan Griswold writes: > On Thu, Nov 21, 2013 at 11:38 AM, Suvayu Ali wrote: > >> First I would check the Output buffer. That should have more >> information on why the export failed. >> > > Thanks Suvayu. There was no Output buffer, only a few error messages in the > *Messages* buffer (and these are of dubious relevance.) > > But it seems that the problem occurs only when I have > org-odt-preferred-output-format set to "odt" rather than "doc" or nil. > > Dan