From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Export ascii-images using ditaa when targeting HTML? Date: Wed, 12 Nov 2008 10:53:49 -0800 Message-ID: <87zlk4hj2a.fsf@gmail.com> References: <878wrpso07.fsf@gmail.com> <874p2dgid4.fsf@kassiopeya.MSHEIMNETZ> <1BA2B74F-75F6-4176-A3D3-7CCD672B7520@uva.nl> <874p2c6bgk.fsf@kassiopeya.MSHEIMNETZ> 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 1L0KqV-0005nC-T5 for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 13:53:43 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0KqV-0005ms-3W for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 13:53:43 -0500 Received: from [199.232.76.173] (port=39919 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0KqV-0005mp-0p for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 13:53:43 -0500 Received: from rv-out-0708.google.com ([209.85.198.248]:1038) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L0KqU-00070p-Jb for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 13:53:42 -0500 Received: by rv-out-0708.google.com with SMTP id k29so615779rvb.6 for ; Wed, 12 Nov 2008 10:53:41 -0800 (PST) In-Reply-To: <874p2c6bgk.fsf@kassiopeya.MSHEIMNETZ> (Sebastian Rose's message of "Wed, 12 Nov 2008 19:33:31 +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: Sebastian Rose Cc: emacs-orgmode@gnu.org Sebastian Rose writes: > Carsten Dominik writes: >>> 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? > > > No, it is black indeed. But I found out, what it is. > > > This line > > (shell-command (concat "java -jar " ditaa-jar-path " " args " " data-file " " out-file)) > > calls another java than this command line: > > java -jar ~/bin/ditaar.jar /tmp/org-ditaa5607fgk > > Just to make sure, did you notice the command line option -S which controls the background color? ,----[java -jar ditaa0_6b.jar -h] | | DiTAA version 0.6b, Copyright (C) 2004 Efstathios Sideris | | Using options: | html: true | Error: Please provide the input file filename | Usage: | java -jar text2image.jar | | [{-o,--overwrite}] | [{-d,--debug}] | [{-t,--tabs}] | | [{-S,--no-shadows}] | [{-A,--no-antialias}] | [{-s,--scale} scale] | [{-r,--round-corners}] | [{-E,--no-separation}] | | [{-h,--html}] | | [outfile] | | Note: do not group options like -rES. This is going to be fixed. `---- -- Eric > > > Yes, that seems to be the reason: > > /usr/bin/java is that free GNU java stuff that comes with Debian > (some packages depend on it). It's deadslow and makes the black > background. > > > The commandline calls: > > sh$ which java > /usr/lib/jvm/java-6-sun/bin/java > > It's fast and makes the background white :-) > > > > `shell-command' seems to call /usr/bin/java instead of regarding my $PATH > > $sh echo $PATH > /home/sebastian/bin/ext/maven/bin:/usr/lib/jvm/java-6-sun/bin:/home/sebastian/bin:/usr/local/bin:/usr/bin:/bin > > > Funny enough, the problem remains, if I start emacs from the bash > prompt. Seems that `shell-command' searches the standard directories > without regarding the environment? > > > > Don't know yet, if this is related to the problem: > > Debian/Java - it's a stupid combination really. I installed the SUN java > stuff using apt-get - it's odd: > > sh$ ls -l /etc/alternatives/java > lrwxrwxrwx 1 root root 34 28. Okt 20:35 /etc/alternatives/java -> /usr/lib/jvm/java-gcj/jre/bin/java > > Don't believe adjusting this helps, but I'd have to adjust all the > other /etc/alternatives/java* stuff by hand anyway. Maybe I should > file a bug report to Debian. > > > > > Adjusting the java path in org-exp-blocks directly fixes it. > > > > Thanks,