emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tyler Smith <tyler@plantarum.ca>
To: Christian Moe <mail@christianmoe.com>,
	"Emacs-orgmode@gnu.org" <Emacs-orgmode@gnu.org>
Subject: Re: Can't export two figures in one document to odt
Date: Thu, 07 Nov 2013 11:46:33 -0500	[thread overview]
Message-ID: <4c4c9aa2-d67e-44d3-8f78-bfe9c1d8ecf6@email.android.com> (raw)
In-Reply-To: <m2d2mehgjh.fsf@uio.no>


[-- Attachment #1.1: Type: text/plain, Size: 1575 bytes --]

This happens even with emacs -q. I've attached the odt file.

Christian Moe <mail@christianmoe.com> wrote:
>
>Hi,
>
>I cannot reproduce this bug. I copy-pasted the below code, exported
>from
>Org 8.2.1 and opened the expected two-figure document in LibreOffice
>4.0.4.2.
>
>Does this happen with emacs -Q ?
>
>What do you see if you open up the content.xml of the .odt document?
>
>Yours,
>Christian Moe
>
>
>Tyler Smith writes:
>
>> Hi,
>>
>> I'm new to org-babel, and having trouble with exporting to .odt. The
>> following file works. I can export to .odt no problem, the figure
>> shows up as expected:
>>
>> +-----------
>> #+PROPERTY: header-args:R  :session rTest
>>
>> #+BEGIN_SRC R :results graphics :file test1.jpg :exports both
>>
>>   plot(1:10)
>>
>> #+END_SRC
>>
>> #+RESULTS:
>> [[file:test1.jpg]]
>> +-----------
>>
>> But if I add a second figure, and try to export to .odt, I get a
>> "Read-Error. Error reading file." error from LibreOffice. I can
>export
>> to pdf no problem. Here's the problem file:
>>
>> +-----------
>> #+PROPERTY: header-args:R  :session rTest
>>
>> #+BEGIN_SRC R :results graphics :file test1.jpg :exports both
>>
>>   plot(1:10)
>>
>> #+END_SRC
>>
>> #+RESULTS:
>> [[file:test1.jpg]]
>>
>> #+BEGIN_SRC R :results graphics :file test2.jpg :exports both
>>
>> plot(10:1)
>>
>> #+END_SRC
>>
>> #+RESULTS:
>> [[file:test2.jpg]]
>>
>> +------------------
>>
>> Thanks,
>>
>> Tyler
>>
>> Emacs 24.3.50.1
>> Org-mode 8.2.1
>> Debian Linux
>> LibreOffice 4.1.3.2

[-- Attachment #1.2: Type: text/html, Size: 2165 bytes --]

[-- Attachment #2: /sdcard/test.odt --]
[-- Type: application/vnd.oasis.opendocument.text, Size: 19252 bytes --]

      reply	other threads:[~2013-11-07 16:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-05 15:57 Can't export two figures in one document to odt Tyler Smith
2013-11-05 18:03 ` Christian Moe
2013-11-07 16:46   ` Tyler Smith [this message]

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=4c4c9aa2-d67e-44d3-8f78-bfe9c1d8ecf6@email.android.com \
    --to=tyler@plantarum.ca \
    --cc=Emacs-orgmode@gnu.org \
    --cc=mail@christianmoe.com \
    /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).