From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mac Subject: Re: Export ascii-images using ditaa when targeting HTML? Date: Wed, 12 Nov 2008 08:14:10 +0000 (UTC) Message-ID: References: <87ej1hso3a.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0Arq-0001Ga-KE for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 03:14:26 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0Aro-0001GO-F7 for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 03:14:25 -0500 Received: from [199.232.76.173] (port=51925 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0Aro-0001GL-9w for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 03:14:24 -0500 Received: from mx20.gnu.org ([199.232.41.8]:10909) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L0Arn-0004bl-Uz for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 03:14:24 -0500 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L0Arl-0002ne-Iq for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 03:14:21 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L0Ari-0002qf-Vo for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 08:14:19 +0000 Received: from rota.kvaser.com ([195.22.86.90]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Nov 2008 08:14:18 +0000 Received: from xmfrw8002 by rota.kvaser.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Nov 2008 08:14:18 +0000 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: emacs-orgmode@gnu.org Eric Schulte gmail.com> writes: > I have been working on an org-mode add-on for the specialized processing > of #+begin_* blocks. Since this is very similar to the need you > expressed below, I implemented ditaa processing as one of the examples > in the initial implementation of this add-on. > > If you want to grab the org-exp-block.el file from > > http://github.com/eschulte/org-contrib/tree/master/org-exp-blocks.el > > you can use it to export ditaa blocks to images when exporting an org > file to html. There are instruction in the top of the elisp file, > mainly you just need to load the file, and set `ditaa-jar-path' to the > path to ditaa.jar on your system. Thanks, that was almost exactly what I wanted, I'm trying to make three changes though: * First I want to keep the ASCII-image in the original file for easy updating * Second, and as a result of the above, I don't automatically include a link to the file. I know what's being called so that's no big deal to manually add * Third (and here I've not yet succeded) I want to inhibit org-mode from exporting the now still lingering ASCII-image. I've tried using comment blocks, but it does not work. I've just realized that I don't have the latest org-mode installed, so I'll try again. My current (non-working) block now looks like this: [[file:blue.png]] #+BEGIN_COMMENT #+begin_ditaa blue.png -r -S +---------+ | cBLU | | | | +----+ | |cPNK| | | | +----+----+ #+end_ditaa #+END_COMMENT > Hope this is helpful. It sure is! Thanks! /Mac