emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Chao Lu <loochao@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: The ditaa picture
Date: Sat, 30 Jan 2010 17:46:52 -0700	[thread overview]
Message-ID: <87eil7nlrl.fsf@gmail.com> (raw)
In-Reply-To: 3cbb63d01001290027p3dc23567jfcfa31f2fed7dd89@mail.gmail.com

Hi Chao,

I don't believe that it is currently possible to customize the file
names in the ways you have described using the standard begin_ditaa
blocks.  It is possible to have complete control over the file names
using org-babel, in which case the corresponding block would look like

--------
#+begin_src ditaa :file communication.png :exports results
  
 blabla
 
#+end_src
--------

then the image will be created on export, and you can also preview the
image by pressing C-c C-o on the block.

To activate org-babel add the following to your Emacs configuration

(require 'org-babel-init)
(require 'org-babel-ditaa)

Best -- Eric

Chao Lu <loochao@gmail.com> writes:

> Dear all,
>
> When I'm using the ditaa in a org file called pearl.org, by
>
> --------
> #+begin_ditaa communication.png
>
> blabla
>
> #+end_ditaa
> --------
>
> It generates a file called communication_5e2f49c31c46339e8e3af9ef8a2fd2dfa3d1fe74.png,
> but this picture is right located at the same file as the org file(pearl.org). Is it
> possible to let it go to certain dir like the latex pictures do? And is it possible to
> let the generated picture has the prefix of the org file name automatically, like
> org_communication_5e2f49c31c46339e8e3af9ef8a2fd2dfa3d1fe74.png?
>
> Thanks,
>
> Chao
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2010-01-31  0:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-29  8:27 The ditaa picture Chao Lu
2010-01-31  0:46 ` Eric Schulte [this message]
2010-02-01  6:19   ` Chao Lu
     [not found]     ` <87zl3tm0bi.fsf@gmail.com>
     [not found]       ` <3cbb63d01002011011h5c88ac3v3f6e7f8f821e95c9@mail.gmail.com>
     [not found]         ` <87ock8n5m3.fsf@gmail.com>
     [not found]           ` <3cbb63d01002011135t5574b42ajfbb5f980a710663b@mail.gmail.com>
     [not found]             ` <87iqagn31k.fsf@gmail.com>
2010-02-02  8:08               ` Chao Lu

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=87eil7nlrl.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=loochao@gmail.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).