From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: help on ditaa Date: Thu, 25 Feb 2010 13:04:41 -0700 Message-ID: <87mxyxxesm.fsf@gmail.com> References: <87d3ztqfm5.fsf@online.de> 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 1Nkjx1-0001cR-5V for emacs-orgmode@gnu.org; Thu, 25 Feb 2010 15:04:47 -0500 Received: from [140.186.70.92] (port=34560 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nkjwz-0001bk-CK for emacs-orgmode@gnu.org; Thu, 25 Feb 2010 15:04:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nkjwy-0001lN-Ee for emacs-orgmode@gnu.org; Thu, 25 Feb 2010 15:04:45 -0500 Received: from mail-pw0-f41.google.com ([209.85.160.41]:46580) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nkjwy-0001lB-6e for emacs-orgmode@gnu.org; Thu, 25 Feb 2010 15:04:44 -0500 Received: by pwj7 with SMTP id 7so6108952pwj.0 for ; Thu, 25 Feb 2010 12:04:43 -0800 (PST) In-Reply-To: <87d3ztqfm5.fsf@online.de> (henry atting's message of "Thu, 25 Feb 2010 20:28:50 +0100") 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: henry atting Cc: emacs-orgmode@gnu.org Hi Henry, Try pressing C-c C-c with the cursor on your ditaa block. If an image is generated and a link inserted into the file, but you're still not getting an image on export then try making the following change (adding an exports header argument) to your block #+begin_src ditaa :file image.png :cmdline -r :exports results +---------+ | cBLU | | | | +----+ | |cPNK| | | | +----+----+ #+end_src otherwise you probably don't have org-babel activated in which case adding (require 'org-babel-init) to your .emacs should help. Best -- Eric henry atting writes: > What exactly is the proper way to export code with ditaa? My knowledge > must be fragmentary for only the code is exported but the conversion to > images failes. > > I did something like this: > > Load the appropriate libs, like org-babel, org-babel-tangle, org-ditaa, > org-exp-blocks, then set the variable `org-ditaa-jar-path' to the ditaa > jar file. > > The according lines in my org file look like this: > > > #+begin_src ditaa :file image.png :cmdline -r > +---------+ > | cBLU | > | | > | +----+ > | |cPNK| > | | | > +----+----+ > #+end_src > > henry