emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ditaa source gets disappeared by exporting html
@ 2014-10-11  3:13 ishi soichi
  2014-10-11  8:40 ` Eric S Fraga
  0 siblings, 1 reply; 3+ messages in thread
From: ishi soichi @ 2014-10-11  3:13 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 845 bytes --]

emacs 24.3
org-mode 8.2.6

When I run org-html-export-to-html the following code,

#+begin_src ditaa :file ditaa-seqboxes.png+------+   +-----+   +-----+
  +-----+|{io}  |   |{d}  |   |{s}  |   |cBLU || Foo  +---+ Bar +---+
Baz +---+ Moo ||      |   |     |   |     |   |     |+------+
+-----+   +--+--+   +-----+
                        |
           /-----\      |      +------+
           |     |      |      | c1AB |
           | Goo +------+---=--+ Shoo |
           \-----/             |      |
                               +------+#+end_src


it successfully produces an image, which is visible in the exported html.
But the original source of the org file becomes,

#+RESULTS:
[[file:ditaa-seqboxes.png]]

In other words, the source is gone(?).

Is there anyway to maintain the source of the image and export the image in
html?

soichi

[-- Attachment #2: Type: text/html, Size: 2659 bytes --]

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

* Re: ditaa source gets disappeared by exporting html
  2014-10-11  3:13 ditaa source gets disappeared by exporting html ishi soichi
@ 2014-10-11  8:40 ` Eric S Fraga
  2014-10-11 13:35   ` ishi soichi
  0 siblings, 1 reply; 3+ messages in thread
From: Eric S Fraga @ 2014-10-11  8:40 UTC (permalink / raw)
  To: ishi soichi; +Cc: emacs-orgmode

On Saturday, 11 Oct 2014 at 12:13, ishi soichi wrote:
> emacs 24.3
> org-mode 8.2.6
>
> When I run org-html-export-to-html the following code,
>
>
> #+begin_src ditaa :file ditaa-seqboxes.png
> +------+   +-----+   +-----+   +-----+
> |{io}  |   |{d}  |   |{s}  |   |cBLU |
> | Foo  +---+ Bar +---+ Baz +---+ Moo |
> |      |   |     |   |     |   |     |
> +------+   +-----+   +--+--+   +-----+
>                         |
>            /-----\      |      +------+
>            |     |      |      | c1AB |
>            | Goo +------+---=--+ Shoo |
>            \-----/             |      |
>                                +------+
> #+end_src
>
>
> it successfully produces an image, which is visible in the exported
> html.
> But the original source of the org file becomes,
>
> #+RESULTS:
> [[file:ditaa-seqboxes.png]]
>
> In other words, the source is gone(?).

Very strange.  I have never heard of this happening to anybody with any
version of org!

In any case, your example works just fine when I export to HTML.  In
fact, the export commands should not change the original org file at
all.  The RESULTS line should only appear if you actually execute babel
on the src block.  You must be doing something more than what you are
indicating in your email.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-431-g8e1359

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

* Re: ditaa source gets disappeared by exporting html
  2014-10-11  8:40 ` Eric S Fraga
@ 2014-10-11 13:35   ` ishi soichi
  0 siblings, 0 replies; 3+ messages in thread
From: ishi soichi @ 2014-10-11 13:35 UTC (permalink / raw)
  To: ishi soichi, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1739 bytes --]

 thanks for your reply.

It might have been my mistake.  I have redone all org-mode configuration
written in init.el, then now it seems to be working as I wanted it to.
Though, I wasn't able to find the cause of what was happing.

Thanks anyway.


2014-10-11 17:40 GMT+09:00 Eric S Fraga <e.fraga@ucl.ac.uk>:

> On Saturday, 11 Oct 2014 at 12:13, ishi soichi wrote:
> > emacs 24.3
> > org-mode 8.2.6
> >
> > When I run org-html-export-to-html the following code,
> >
> >
> > #+begin_src ditaa :file ditaa-seqboxes.png
> > +------+   +-----+   +-----+   +-----+
> > |{io}  |   |{d}  |   |{s}  |   |cBLU |
> > | Foo  +---+ Bar +---+ Baz +---+ Moo |
> > |      |   |     |   |     |   |     |
> > +------+   +-----+   +--+--+   +-----+
> >                         |
> >            /-----\      |      +------+
> >            |     |      |      | c1AB |
> >            | Goo +------+---=--+ Shoo |
> >            \-----/             |      |
> >                                +------+
> > #+end_src
> >
> >
> > it successfully produces an image, which is visible in the exported
> > html.
> > But the original source of the org file becomes,
> >
> > #+RESULTS:
> > [[file:ditaa-seqboxes.png]]
> >
> > In other words, the source is gone(?).
>
> Very strange.  I have never heard of this happening to anybody with any
> version of org!
>
> In any case, your example works just fine when I export to HTML.  In
> fact, the export commands should not change the original org file at
> all.  The RESULTS line should only appear if you actually execute babel
> on the src block.  You must be doing something more than what you are
> indicating in your email.
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org
> release_8.3beta-431-g8e1359
>

[-- Attachment #2: Type: text/html, Size: 2510 bytes --]

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

end of thread, other threads:[~2014-10-11 13:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-11  3:13 ditaa source gets disappeared by exporting html ishi soichi
2014-10-11  8:40 ` Eric S Fraga
2014-10-11 13:35   ` ishi soichi

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