From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: The ditaa picture Date: Sat, 30 Jan 2010 17:46:52 -0700 Message-ID: <87eil7nlrl.fsf@gmail.com> References: <3cbb63d01001290027p3dc23567jfcfa31f2fed7dd89@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NbNyB-0002Rs-NP for emacs-orgmode@gnu.org; Sat, 30 Jan 2010 19:47:19 -0500 Received: from [199.232.76.173] (port=54102 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NbNyB-0002Rb-DD for emacs-orgmode@gnu.org; Sat, 30 Jan 2010 19:47:19 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NbNy7-0004vE-5u for emacs-orgmode@gnu.org; Sat, 30 Jan 2010 19:47:19 -0500 Received: from mail-yw0-f185.google.com ([209.85.211.185]:44653) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NbNy6-0004v0-TG for emacs-orgmode@gnu.org; Sat, 30 Jan 2010 19:47:15 -0500 Received: by ywh15 with SMTP id 15so531729ywh.5 for ; Sat, 30 Jan 2010 16:47:13 -0800 (PST) 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: Chao Lu Cc: emacs-orgmode@gnu.org 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