From: Carsten Dominik <dominik@science.uva.nl>
To: Sebastian Rose <sebastian_rose@gmx.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Export ascii-images using ditaa when targeting HTML?
Date: Wed, 12 Nov 2008 16:59:42 +0100 [thread overview]
Message-ID: <1BA2B74F-75F6-4176-A3D3-7CCD672B7520@uva.nl> (raw)
In-Reply-To: <874p2dgid4.fsf@kassiopeya.MSHEIMNETZ>
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" <schulte.eric@gmail.com> 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 <xmfrw8002@sneakemail.com> 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
next prev parent reply other threads:[~2008-11-12 17:33 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-06 16:12 Export ascii-images using ditaa when targeting HTML? Mac
2008-11-12 1:57 ` Eric Schulte
2008-11-12 8:14 ` Mac
2008-11-12 9:44 ` Mac
2008-11-12 10:00 ` Carsten Dominik
2008-11-12 10:17 ` Mac
2008-11-14 14:54 ` Bernt Hansen
2008-11-14 15:51 ` Carsten Dominik
2008-11-14 16:02 ` Bernt Hansen
2008-11-12 1:59 ` Eric Schulte
2008-11-12 6:45 ` Carsten Dominik
2008-11-12 9:53 ` Mac
2008-11-12 13:54 ` Sebastian Rose
2008-11-12 15:59 ` Carsten Dominik [this message]
2008-11-12 18:33 ` Sebastian Rose
2008-11-12 18:42 ` Sebastian Rose
2008-11-12 19:18 ` Bernt Hansen
2008-11-12 19:41 ` Sebastian Rose
2008-11-12 19:47 ` Bernt Hansen
2008-11-12 20:33 ` Sebastian Rose
2008-11-12 18:53 ` Eric Schulte
2008-11-12 19:13 ` Sebastian Rose
2008-11-12 19:30 ` Eric Schulte
2008-11-12 20:31 ` Sebastian Rose
2008-11-12 20:47 ` Eric Schulte
2008-11-12 21:54 ` Sebastian Rose
2008-11-12 23:01 ` Carsten Dominik
2008-11-12 22:42 ` Eric Schulte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1BA2B74F-75F6-4176-A3D3-7CCD672B7520@uva.nl \
--to=dominik@science.uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=sebastian_rose@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).