From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: weird ox-odt, links and images Date: Wed, 25 Feb 2015 16:54:33 +0100 Message-ID: <87zj82j8au.fsf@pank.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQeIR-0003Ji-FI for emacs-orgmode@gnu.org; Wed, 25 Feb 2015 10:54:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQeIN-0003hA-9k for emacs-orgmode@gnu.org; Wed, 25 Feb 2015 10:54:47 -0500 Received: from plane.gmane.org ([80.91.229.3]:46317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQeIN-0003gz-2P for emacs-orgmode@gnu.org; Wed, 25 Feb 2015 10:54:43 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YQeIL-00035s-RY for emacs-orgmode@gnu.org; Wed, 25 Feb 2015 16:54:41 +0100 Received: from tsn109-201-152-244.dyn.nltelcom.net ([109.201.152.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Feb 2015 16:54:41 +0100 Received: from rasmus by tsn109-201-152-244.dyn.nltelcom.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Feb 2015 16:54:41 +0100 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 Hi, For a document which I have to export as odt, I have a sublet issue. In a document I have something like this * head para [[cite:@smith88]] para #+NAME: name #+CAPTION: cap [[file:img/g_one_ahead.png]] Where cite takes a bibtex key and format in a sensible way as plaintext using reftex. I get the following error formatting cite for @smith88 Embedding /tmp/odt/img/g_one_ahead.png as Images/0001.png... OpenDocument export failed: Don't know how to format label for link: (l= ink (:type "file" :path "img/g_one_ahead.png" :raw-link "file:img/g_one_ahe= ad.png" :application nil :search-option nil :begin 75 :end 103 :contents-be= gin nil :contents-end nil :post-blank 0 :parent (paragraph (:begin 41 :end = 104 :contents-begin 75 :contents-end 104 :post-blank 0 :post-affiliated 75 = :name "forecast1" :caption (((#("test" 0 4 (:parent #6))))) :parent (sectio= n (:begin 10 :end 104 :contents-begin 10 :contents-end 104 :post-blank 0 :p= ost-affiliated 10 :parent (headline (:raw-value "title" :begin 1 :end 104 := pre-blank 0 :contents-begin 10 :contents-end 104 :level 1 :priority nil :ta= gs nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p n= il :archivedp nil :commentedp nil :post-affiliated 1 :title (#("title" 0 5 = (:parent #6))) :parent (org-data nil #6)) #4)) (paragraph (:begin 10 :end 4= 1 :contents-begin 10 :contents-end 40 :post-blank 1 :post-affiliated 10 :pa= rent #4) #("para " 0 5 (:parent #5)) (link (:type "cite" :path "@smith88" := raw-link "cite:@smith88" :application nil :search-option nil :begin 17 :end= 35 :contents-begin nil :contents-end nil :post-blank 1 :parent #5)) #("para " 0 5 (:parent #5))) #2)) #0 #(" " 0 1 (:parent #2))))) Edebugging org-odt-format-label, when I include the cite-link, (org-odt--enumerable-image-p element info) returns nil rather than t, as it's supposed to... =E2=80=94Rasmus --=20 What will be next?