From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Export ascii-images using ditaa when targeting HTML? Date: Wed, 12 Nov 2008 11:00:39 +0100 Message-ID: References: <87ej1hso3a.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0CWr-0000v4-Ug for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 05:00:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0CWn-0000uW-8e for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 05:00:52 -0500 Received: from [199.232.76.173] (port=43211 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0CWn-0000uT-32 for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 05:00:49 -0500 Received: from nf-out-0910.google.com ([64.233.182.185]:41614) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L0CWj-0002u9-DQ for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 05:00:46 -0500 Received: by nf-out-0910.google.com with SMTP id c7so189984nfi.26 for ; Wed, 12 Nov 2008 02:00:42 -0800 (PST) In-Reply-To: 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: Mac Cc: emacs-orgmode@gnu.org On Nov 12, 2008, at 9:14 AM, Mac wrote: > 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. Hi Mac, I don't think I understand. When I load Eric's code, the ASCII image is not exported. The png file is created on the fly and then *replaces* the ASCII drawing in HTML document - works beautifully for me. In fact so beautifully that I am asking the author of ditaa if we can keep a copy in the contrib directory, so that all of this will work out of the box...... - Carsten > > > 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 > > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode