From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Export ascii-images using ditaa when targeting HTML? Date: Wed, 12 Nov 2008 16:59:42 +0100 Message-ID: <1BA2B74F-75F6-4176-A3D3-7CCD672B7520@uva.nl> References: <878wrpso07.fsf@gmail.com> <874p2dgid4.fsf@kassiopeya.MSHEIMNETZ> 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 1L0Jab-0005OQ-0I for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 12:33:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0JaY-0005Nj-QY for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 12:33:12 -0500 Received: from [199.232.76.173] (port=33418 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0JaY-0005NY-Cu for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 12:33:10 -0500 Received: from ug-out-1314.google.com ([66.249.92.169]:18098) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L0JaX-0007s2-RY for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 12:33:10 -0500 Received: by ug-out-1314.google.com with SMTP id 36so1331538uga.17 for ; Wed, 12 Nov 2008 09:33:07 -0800 (PST) In-Reply-To: <874p2dgid4.fsf@kassiopeya.MSHEIMNETZ> 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: Sebastian Rose Cc: emacs-orgmode@gnu.org On Nov 12, 2008, at 2:54 PM, Sebastian Rose wrote: > Hi Eric, > > > this is - hey - WOWEEEEEE, GREAT! > > > But I ran into to problems: > > * Background color > > The background of the resulting images is black, and I don't know how > to change that. Black lines on black background... I tried with > leading colons and without. > > ditaa has no option to adjust the background color, but if I use > ditaa > from the commandline, the background color is white. For what it is worth, I have no problems with the background, it is white all right. Maybe it is transparent? - Carsten > > > > * Existing images > > If the image already exists in the target directory of the export, > org > refuses to overwrite it. Is there an option somewhere I should > adjust? > I don't think it's a general problem in org-export, since I never > ecnountered this error. > > > > > Thanks for org-exp-blocks.el!! > > > Best, > > Sebastian > > > > "Eric Schulte" writes: > >> Hi Mac, >> >> That's an interesting utility. >> >> 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. Then if you setup a block like the >> following >> >> #+begin_ditaa blue.png -r -S >> +---------+ >> | cBLU | >> | | >> | +----+ >> | |cPNK| >> | | | >> +----+----+ >> #+end_ditaa >> >> The ascii inside the block will be exported to an image in blue.png >> passing any following options as command line options to ditaa.jar. >> >> Hope this is helpful. >> >> Cheers -- Eric >> >> Mac writes: >> >>> I would like to convert my ASCII-images inside my document.org >>> before exporting >>> the document to HTML. >>> >>> I've found this converter, ditaa, which is a java program that >>> takes an ASCII >>> text file and creates a png file (http://ditaa.sourceforge.net/). >>> >>> I intend to find my ASCII figure, save it as a separate text file, >>> and run ditaa >>> on it. In my document.org I'll comment the ASCII-art so it won't >>> be exported and >>> add a link so the image will be included in the html file. >>> >>> [[file:figure_1.png]] >>> #+BEGIN_COMMENT >>> V,mA >>> | >>> +-----+ >>> |40140| >>> +-----+ >>> | >>> | +----+ >>> +--------|4561|----------> PC >>> | +----+ >>> +----+ >>> |4060| >>> +----+ >>> | >>> Relay Out >>> #+END_COMMENT >>> >>> Before reinventing the wheel, anyone done anything similar, or >>> have ideas? >>> >>> >>> >>> >>> _______________________________________________ >>> 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 >> >> >> _______________________________________________ >> 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 >> > > -- > Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 > Hannover > > Tel.: +49 (0)511 - 36 58 472 > Fax: +49 (0)1805 - 233633 - 11044 > mobil: +49 (0)173 - 83 93 417 > Email: s.rose emma-stil de, sebastian_rose gmx de > Http: www.emma-stil.de > > > _______________________________________________ > 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