From: "Eric Schulte" <schulte.eric@gmail.com>
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 10:53:49 -0800 [thread overview]
Message-ID: <87zlk4hj2a.fsf@gmail.com> (raw)
In-Reply-To: <874p2c6bgk.fsf@kassiopeya.MSHEIMNETZ> (Sebastian Rose's message of "Wed, 12 Nov 2008 19:33:31 +0100")
Sebastian Rose <sebastian_rose@gmx.de> writes:
> Carsten Dominik <dominik@science.uva.nl> 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}]
|
| <inpfile> [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,
next prev parent reply other threads:[~2008-11-12 18:53 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
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 [this message]
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=87zlk4hj2a.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--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).