From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao Lu Subject: Re: The ditaa picture Date: Mon, 1 Feb 2010 01:19:25 -0500 Message-ID: <3cbb63d01001312219h677def3ft9c11b83e421113fe@mail.gmail.com> References: <3cbb63d01001290027p3dc23567jfcfa31f2fed7dd89@mail.gmail.com> <87eil7nlrl.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1300665712==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NbpdW-0002l8-36 for emacs-orgmode@gnu.org; Mon, 01 Feb 2010 01:19:50 -0500 Received: from [199.232.76.173] (port=38321 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NbpdV-0002kW-Bh for emacs-orgmode@gnu.org; Mon, 01 Feb 2010 01:19:49 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NbpdU-0002Bp-1c for emacs-orgmode@gnu.org; Mon, 01 Feb 2010 01:19:49 -0500 Received: from mail-yx0-f182.google.com ([209.85.210.182]:39180) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NbpdT-0002Bh-KY for emacs-orgmode@gnu.org; Mon, 01 Feb 2010 01:19:47 -0500 Received: by yxe12 with SMTP id 12so3357382yxe.1 for ; Sun, 31 Jan 2010 22:19:46 -0800 (PST) In-Reply-To: <87eil7nlrl.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: emacs-orgmode@gnu.org --===============1300665712== Content-Type: multipart/alternative; boundary=001636c9285eb3068a047e83f8ae --001636c9285eb3068a047e83f8ae Content-Type: text/plain; charset=ISO-8859-1 Hey Eric, Thanks for the tip, it works well here! Yet another further question, is it possible to assign the directory where the picture should be exported to? For it is kind of messy if all the figures goes to the root directory. Thanks a lot for your help, Chao On Sat, Jan 30, 2010 at 7:46 PM, Eric Schulte wrote: > 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 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 > --001636c9285eb3068a047e83f8ae Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hey Eric,

Thanks for the tip, it works well here!

Yet another= further question, is it possible to assign the directory where the picture= should be exported to? For it is kind of messy if all the figures goes to = the root directory.

Thanks a lot for your help,

Chao

On Sat, Jan 30, 2010 at 7:46 PM, Eric Schulte <schulte.eric@gmail.com>= wrote:
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. =A0It 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

=A0blabla

#+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_5e2f49c31c46339e8e3af9ef8a2fd= 2dfa3d1fe74.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 i= s it possible to
> let the generated picture has the prefix of the org file name automati= cally, 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

--001636c9285eb3068a047e83f8ae-- --===============1300665712== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1300665712==--