emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Can't export two figures in one document to odt
@ 2013-11-05 15:57 Tyler Smith
  2013-11-05 18:03 ` Christian Moe
  0 siblings, 1 reply; 3+ messages in thread
From: Tyler Smith @ 2013-11-05 15:57 UTC (permalink / raw)
  To: emacs-orgmode

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

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

* Re: Can't export two figures in one document to odt
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Moe @ 2013-11-05 18:03 UTC (permalink / raw)
  To: Tyler Smith; +Cc: emacs-orgmode


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

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

* Re: Can't export two figures in one document to odt
  2013-11-05 18:03 ` Christian Moe
@ 2013-11-07 16:46   ` Tyler Smith
  0 siblings, 0 replies; 3+ messages in thread
From: Tyler Smith @ 2013-11-07 16:46 UTC (permalink / raw)
  To: Christian Moe, Emacs-orgmode@gnu.org


[-- 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 --]

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

end of thread, other threads:[~2013-11-07 16:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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).