emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: weird ox-odt, links and images
Date: Wed, 25 Feb 2015 16:54:33 +0100	[thread overview]
Message-ID: <87zj82j8au.fsf@pank.eu> (raw)

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?

             reply	other threads:[~2015-02-25 15:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-25 15:54 Rasmus [this message]
2015-02-25 23:42 ` weird ox-odt, links and images Nicolas Goaziou
2015-02-26  1:01   ` Rasmus
2015-02-26 14:25     ` Nicolas Goaziou
2015-02-26 14:33       ` Rasmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zj82j8au.fsf@pank.eu \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).