Re: [O] babel for ditaa-eps

2012-09-22 Thread Bastien
Hi Thomas, t...@tsdye.com (Thomas S. Dye) writes: Is it possible to distribute DitaaEps.jar with Org? Or, does it need to be installed separately? I just wrote to the ditaa author. Arne told me ditaaeps works with ditaa 0.6b but not with latest ditaa 0.9, the one we are distributing. I

Re: [O] babel for ditaa-eps

2012-09-21 Thread Bastien
Hi Thomas, t...@tsdye.com (Thomas S. Dye) writes: Is it possible to distribute DitaaEps.jar with Org? Or, does it need to be installed separately? We can install it along with ditaa.jar in contrib/scripts/ One question: DitaaEPS is bundled with ditaa_0.6b where we have latest ditaa 0.9 in

Re: [O] babel for ditaa-eps

2012-09-20 Thread Thomas S. Dye
Eric Schulte eric.schu...@gmx.com writes: Arne Babenhauserheide (IMK) arne.babenhauserhe...@kit.edu writes: Hi Eric, It’s much easier to answer, what this does not share with ob-ditaa.el :) If I cut out the obvious renaming (to be able to use a ditaa-exp source type), it’s just this diff

Re: [O] babel for ditaa-eps

2012-09-19 Thread Bastien
Hi Eric, Eric Schulte eric.schu...@gmx.com writes: Oh yes, I used file-name-nondirectory instead of file-name-directory, and forgot the customization documentation. Here's updated version. Feel free to apply this in master -- thanks to Arne Luis and you! -- Bastien

Re: [O] babel for ditaa-eps

2012-09-19 Thread Bastien
Hi Eric, Eric Schulte eric.schu...@gmx.com writes: Should we distribute the DitaaEps.jar with Org-mode in the same manner as we now distribute ditaa.jar? If we have permission to do this then lets do it. -- Bastien

Re: [O] babel for ditaa-eps

2012-09-16 Thread Eric Schulte
Luis Anaya papoan...@hotmail.com writes: Eric Schulte eric.schu...@gmx.com writes: Hi: with the attachment :) I tried your patch and it seems that the defcustom needs to be changed (at least from the way it is written in the patch. Oh yes, I used file-name-nondirectory instead of

Re: [O] babel for ditaa-eps

2012-09-15 Thread Luis Anaya
Eric Schulte eric.schu...@gmx.com writes: Hi: with the attachment :) I tried your patch and it seems that the defcustom needs to be changed (at least from the way it is written in the patch. I'm attaching a diff against the original ditaa (I hope that is close enough) with the one I fixed. The

Re: [O] babel for ditaa-eps

2012-09-13 Thread Arne Babenhauserheide (IMK)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Eric, It’s much easier to answer, what this does not share with ob-ditaa.el :) If I cut out the obvious renaming (to be able to use a ditaa-exp source type), it’s just this diff (and the first half of that only defines variables…): - ---

Re: [O] babel for ditaa-eps

2012-09-13 Thread Eric Schulte
Arne Babenhauserheide (IMK) arne.babenhauserhe...@kit.edu writes: Hi Eric, It’s much easier to answer, what this does not share with ob-ditaa.el :) If I cut out the obvious renaming (to be able to use a ditaa-exp source type), it’s just this diff (and the first half of that only defines

Re: [O] babel for ditaa-eps

2012-09-13 Thread Luis Anaya
Eric Schulte eric.schu...@gmx.com writes: Please, provide the option to not create the PDF file at the end for those poor people that use Groff to create documents in which will barf on a PDF file. Thanks, Luis -- Luis R. Anaya papo anaya aroba hot mail punto com Do not use 100 words if you

Re: [O] babel for ditaa-eps

2012-09-13 Thread Eric Schulte
Luis Anaya papoan...@hotmail.com writes: Eric Schulte eric.schu...@gmx.com writes: Please, provide the option to not create the PDF file at the end for those poor people that use Groff to create documents in which will barf on a PDF file. Thanks, Luis Good idea, The attached version

Re: [O] babel for ditaa-eps

2012-09-13 Thread Eric Schulte
Eric Schulte eric.schu...@gmx.com writes: Luis Anaya papoan...@hotmail.com writes: Eric Schulte eric.schu...@gmx.com writes: Please, provide the option to not create the PDF file at the end for those poor people that use Groff to create documents in which will barf on a PDF file. Thanks,

Re: [O] babel for ditaa-eps

2012-09-13 Thread Luis Anaya
Oh, I thought that I was going blind or needed stronger bifocals :).I'll take a look at it and play with it, Thanks!Luis Original Message From: Eric Schulte Sent: Thu, Sep 13, 2012 10:51 PM To: Luis Anaya CC: emacs-orgmode@gnu.org;

[O] babel for ditaa-eps

2012-09-12 Thread Arne Babenhauserheide (IMK)
Dear org hackers, I don’t know if there’s already a babel-ditaa-option for using ditaa-eps, so I modified ob-ditaa.el to use ditaa-eps and convert the result using epstopdf. Feel free to use it. ;;; ob-ditaa-eps.el --- org-babel functions for ditaa evaluation ;; Copyright (C) 2009-2012 Free

Re: [O] babel for ditaa-eps

2012-09-12 Thread Luis Anaya
Arne Babenhauserheide (IMK) arne.babenhauserhe...@kit.edu writes: Dear org hackers, I don?t know if there?s already a babel-ditaa-option for using ditaa-eps, so I modified ob-ditaa.el to use ditaa-eps and convert the result using epstopdf. This is great, thanks. The way I addressed this in

Re: [O] babel for ditaa-eps

2012-09-12 Thread Luis Anaya
Arne Babenhauserheide (IMK) arne.babenhauserhe...@kit.edu writes: Hi: I made a small changed to the code. It will look for the suffix and run the epspdf step only if it's a pdf, otherwise, it will print the EPS. The reason for this is because on Groff, you're better off with the EPS file. Luis

Re: [O] babel for ditaa-eps

2012-09-12 Thread Thomas S. Dye
Luis Anaya papoan...@hotmail.com writes: Arne Babenhauserheide (IMK) arne.babenhauserhe...@kit.edu writes: Hi: I made a small changed to the code. It will look for the suffix and run the epspdf step only if it's a pdf, otherwise, it will print the EPS. The reason for this is because on

Re: [O] babel for ditaa-eps

2012-09-12 Thread Eric Schulte
It sounds like there is a good deal of desire for this functionality. How much code does this file share with ob-ditaa? If it is a large percentage perhaps it would be possible to instead add a new header argument to ditaa code blocks to run ditaa-eps. Some code blocks (e.g., sql) already have