From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: tricky odt export needs Date: Thu, 21 Nov 2013 17:38:43 +0100 Message-ID: <20131121163843.GA32536@kuru.dyndns-at-home.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjXHF-0000Fl-O4 for emacs-orgmode@gnu.org; Thu, 21 Nov 2013 11:38:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjXHE-0002KR-Mt for emacs-orgmode@gnu.org; Thu, 21 Nov 2013 11:38:49 -0500 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:35020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjXHE-0002KL-FN for emacs-orgmode@gnu.org; Thu, 21 Nov 2013 11:38:48 -0500 Received: by mail-wi0-f181.google.com with SMTP id f4so1335299wiw.8 for ; Thu, 21 Nov 2013 08:38:47 -0800 (PST) Received: from kuru.dyndns-at-home.com ([2001:610:120:3001:f2de:f1ff:fe37:c76c]) by mx.google.com with ESMTPSA id y20sm7032943wib.0.2013.11.21.08.38.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Nov 2013 08:38:46 -0800 (PST) Content-Disposition: inline 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: emacs-orgmode@gnu.org On Thu, Nov 21, 2013 at 11:34:55AM -0500, Dan Griswold wrote: > On Wed, Nov 20, 2013 at 4:33 PM, Christian Moe wrote: > > > > > Well, here's one way to get those page references, using filters: > > > > (defun my-odt-filter-pagerefs (text backend info) > > "Make page references, not 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) > > > > (Whee! I just wrote my first export filter.) > > > > That sounds pretty neat, Christian. But I get an export failed error, and > it doesn't complete creating the odt file. Any suggestions? First I would check the Output buffer. That should have more information on why the export failed. Hope this helps, -- Suvayu Open source is the future. It sets us free.