emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* weird ox-odt, links and images
@ 2015-02-25 15:54 Rasmus
  2015-02-25 23:42 ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Rasmus @ 2015-02-25 15:54 UTC (permalink / raw)
  To: emacs-orgmode

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: (link (:type "file" :path "img/g_one_ahead.png" :raw-link "file:img/g_one_ahead.png" :application nil :search-option nil :begin 75 :end 103 :contents-begin 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 (section (:begin 10 :end 104 :contents-begin 10 :contents-end 104 :post-blank 0 :post-affiliated 10 :parent (headline (:raw-value "title" :begin 1 :end 104 :pre-blank 0 :contents-begin 10 :contents-end 104 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 1 :title (#("title" 0 5 (:parent #6))) :parent (org-data nil #6)) #4)) (paragraph (:begin 10 :end 41 :contents-begin 10 :contents-end 40 :post-blank 1 :post-affiliated 10 :parent #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...

—Rasmus

-- 
What will be next?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-26 14:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-25 15:54 weird ox-odt, links and images Rasmus
2015-02-25 23:42 ` Nicolas Goaziou
2015-02-26  1:01   ` Rasmus
2015-02-26 14:25     ` Nicolas Goaziou
2015-02-26 14:33       ` Rasmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).