From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Correct babel format for ditaa? Date: Wed, 21 Jul 2010 16:28:41 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1425053020==" Return-path: Received: from [140.186.70.92] (port=56960 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ObgqK-0007Uw-Mf for emacs-orgmode@gnu.org; Wed, 21 Jul 2010 17:28:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ObgqI-0000Td-Rf for emacs-orgmode@gnu.org; Wed, 21 Jul 2010 17:28:44 -0400 Received: from mail-gx0-f169.google.com ([209.85.161.169]:63221) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObgqI-0000TQ-Ov for emacs-orgmode@gnu.org; Wed, 21 Jul 2010 17:28:42 -0400 Received: by gxk4 with SMTP id 4so5011568gxk.0 for ; Wed, 21 Jul 2010 14:28:41 -0700 (PDT) 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: emacs-orgmode --===============1425053020== Content-Type: multipart/alternative; boundary=00163628528c549026048bec7c3c --00163628528c549026048bec7c3c Content-Type: text/plain; charset=ISO-8859-1 Hi, I have been having a difficult time with an export (which includes a ditaa graphic) to PDF via LaTeX recently and am puzzled by it. Which is the correct format? 1) Supported by: - http://doc.norang.ca/org-mode.html#playingwithditaa - http://orgmode.org/Changes.html#ob-configuration-changes (indirectly seems to indicate this format?) #+begin_src ditaa :file file.png :cmdline -r -S -s 2.5 --- Picture here --- #+end_src 2) Supported by: - http://orgmode.org/worg/org-contrib/org-exp-blocks.php - http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html #+begin_ditaa file.png -r -S -s 2.5 --- Picture here --- #+end_ditaa Only #2 is working for me currently, though I suspect that #1 is the 'truer' form? Not sure what's going on... Thanks, John P.S. Is there a way to enlarge the output? Using the -s option only seems to make the resolution higher, not change the actual size (inches, pixels, whatever) in the LaTeX output... --00163628528c549026048bec7c3c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,


I have been having a difficult time w= ith an export (which includes a ditaa graphic) to PDF via LaTeX recently an= d am puzzled by it. Which is the correct format?

1) Supported by:
-=A0http://orgmode.org/Changes.html#ob-configuration-changes=A0(in= directly seems to indicate this format?)

#+begin_src ditaa :file file.png :cmdline -r -S -s 2.5
---
Picture here
---
#+end_src


2) Supported by:
-=A0http://emacs-fu.blogspot.com/2009/10/writing-pres= entations-with-org-mode-and.html
#+begin_ditaa file.png -r -S -s 2.5
---
Picture here
---
#+end_ditaa

Only #2 is working for me currently, though I suspect that #1 is the 't= ruer' form? Not sure what's going on...

Thanks,
John

P.S. Is there = a way to enlarge the output? Using the -s option only seems to make the res= olution higher, not change the actual size (inches, pixels, whatever) in th= e LaTeX output...
--00163628528c549026048bec7c3c-- --===============1425053020== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1425053020==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Correct babel format for ditaa? Date: Wed, 21 Jul 2010 14:57:44 -0700 Message-ID: <878w54biqv.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=42900 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ObhIU-0005cB-FJ for emacs-orgmode@gnu.org; Wed, 21 Jul 2010 17:57:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ObhIS-0004Wq-VS for emacs-orgmode@gnu.org; Wed, 21 Jul 2010 17:57:50 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:51544) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObhIS-0004Wi-PK for emacs-orgmode@gnu.org; Wed, 21 Jul 2010 17:57:48 -0400 Received: by pwi8 with SMTP id 8so6656785pwi.0 for ; Wed, 21 Jul 2010 14:57:47 -0700 (PDT) In-Reply-To: (John Hendy's message of "Wed, 21 Jul 2010 16:28:41 -0500") 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: John Hendy Cc: emacs-orgmode Hi John, Yes, (1) below is the preferred format, however the "ditaa" language is not enabled by default. Please customize the org-babel-load-languages variable to enable support for evaluating ditaa code blocks, and then try the code block syntax mentioned in (1) below again and a ditaa figure should be successfully exported. A benefit of the (1) (aka Babel) method below is that code blocks can be evaluated "live" from inside the Org-mode buffer with C-c C-c. See Chapter 14 of the manual or the relevant portion of the quick guide http://orgmode.org/guide/Working-With-Source-Code.html for more information on using Babel. Best -- Eric John Hendy writes: > Hi, > > > I have been having a difficult time with an export (which includes a ditaa > graphic) to PDF via LaTeX recently and am puzzled by it. Which is the > correct format? > > 1) Supported by: > - http://doc.norang.ca/org-mode.html#playingwithditaa > - http://orgmode.org/Changes.html#ob-configuration-changes (indirectly seems > to indicate this format?) > > #+begin_src ditaa :file file.png :cmdline -r -S -s 2.5 > --- > Picture here > --- > #+end_src > > > 2) Supported by: > - http://orgmode.org/worg/org-contrib/org-exp-blocks.php > - > http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html > > #+begin_ditaa file.png -r -S -s 2.5 > --- > Picture here > --- > #+end_ditaa > > Only #2 is working for me currently, though I suspect that #1 is the 'truer' > form? Not sure what's going on... > > > Thanks, > John > > P.S. Is there a way to enlarge the output? Using the -s option only seems to > make the resolution higher, not change the actual size (inches, pixels, > whatever) in the LaTeX output... > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Correct babel format for ditaa? Date: Wed, 21 Jul 2010 17:07:31 -0500 Message-ID: References: <878w54biqv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1081911394==" Return-path: Received: from [140.186.70.92] (port=55098 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ObhRw-0007QZ-KD for emacs-orgmode@gnu.org; Wed, 21 Jul 2010 18:07:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ObhRs-0005oE-IX for emacs-orgmode@gnu.org; Wed, 21 Jul 2010 18:07:33 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:37629) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObhRs-0005oA-BY for emacs-orgmode@gnu.org; Wed, 21 Jul 2010 18:07:32 -0400 Received: by ywg8 with SMTP id 8so991054ywg.0 for ; Wed, 21 Jul 2010 15:07:32 -0700 (PDT) In-Reply-To: <878w54biqv.fsf@gmail.com> 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: Eric Schulte Cc: emacs-orgmode --===============1081911394== Content-Type: multipart/alternative; boundary=e0cb4e6ff6293a286b048bed0796 --e0cb4e6ff6293a286b048bed0796 Content-Type: text/plain; charset=ISO-8859-1 Thanks Eric... I should have included that my .emacs file has the following (which I followed from here: http://orgmode.org/Changes.html#ob-configuration-changes): ;; setup ditaa (setq org-ditaa-jar-path "~/.elisp/org.git/contrib/scripts/ditaa.jar") (org-babel-do-load-languages 'org-babel-load-languages '((ditaa . t) (gnuplot . t))) (require 'ob-ditaa) If I understand correctly, the (ditaa . t) and (require 'ob-ditaa) are redundant but since it wasn't working, I tried both. Is this what I need to have babel work with ditaa? Thanks for any input... John On Wed, Jul 21, 2010 at 4:57 PM, Eric Schulte wrote: > Hi John, > > Yes, (1) below is the preferred format, however the "ditaa" language is > not enabled by default. Please customize the org-babel-load-languages > variable to enable support for evaluating ditaa code blocks, and then > try the code block syntax mentioned in (1) below again and a ditaa > figure should be successfully exported. > > A benefit of the (1) (aka Babel) method below is that code blocks can be > evaluated "live" from inside the Org-mode buffer with C-c C-c. See > Chapter 14 of the manual or the relevant portion of the quick guide > http://orgmode.org/guide/Working-With-Source-Code.html for more > information on using Babel. > > Best -- Eric > > John Hendy writes: > > > Hi, > > > > > > I have been having a difficult time with an export (which includes a > ditaa > > graphic) to PDF via LaTeX recently and am puzzled by it. Which is the > > correct format? > > > > 1) Supported by: > > - http://doc.norang.ca/org-mode.html#playingwithditaa > > - http://orgmode.org/Changes.html#ob-configuration-changes (indirectly > seems > > to indicate this format?) > > > > #+begin_src ditaa :file file.png :cmdline -r -S -s 2.5 > > --- > > Picture here > > --- > > #+end_src > > > > > > 2) Supported by: > > - http://orgmode.org/worg/org-contrib/org-exp-blocks.php > > - > > > http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html > > > > #+begin_ditaa file.png -r -S -s 2.5 > > --- > > Picture here > > --- > > #+end_ditaa > > > > Only #2 is working for me currently, though I suspect that #1 is the > 'truer' > > form? Not sure what's going on... > > > > > > Thanks, > > John > > > > P.S. Is there a way to enlarge the output? Using the -s option only seems > to > > make the resolution higher, not change the actual size (inches, pixels, > > whatever) in the LaTeX output... > > _______________________________________________ > > Emacs-orgmode mailing list > > Please use `Reply All' to send replies to the list. > > Emacs-orgmode@gnu.org > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > --e0cb4e6ff6293a286b048bed0796 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Eric... I should have included that my .emacs file has the following= (which I followed from here:=A0http://orgmode.org/Changes.html#ob-configuration-= changes):

;; setup ditaa
(setq org-ditaa-jar-path "= ;~/.elisp/org.git/contrib/scripts/ditaa.jar")
(org-babel-do-= load-languages
=A0'org-babel-load-languages
=A0'= ;((ditaa . t)
=A0=A0 (gnuplot . t)))
(require 'ob-ditaa)
If I understand correctly, the (ditaa . t) and (require 'ob= -ditaa) are redundant but since it wasn't working, I tried both. Is thi= s what I need to have babel work with ditaa?

Thanks for any input...
John

On Wed, Jul 21, 2010 at 4:57 PM, Eric Schulte <schulte.eric@gmail.c= om> wrote:
Hi John,

Yes, (1) below is the preferred format, however the "ditaa" langu= age is
not enabled by default. =A0Please customize the org-babel-load-languages variable to enable support for evaluating ditaa code blocks, and then
try the code block syntax mentioned in (1) below again and a ditaa
figure should be successfully exported.

A benefit of the (1) (aka Babel) method below is that code blocks can be evaluated "live" from inside the Org-mode buffer with C-c C-c. = =A0See
Chapter 14 of the manual or the relevant portion of the quick guide
http://orgmode.org/guide/Working-With-Source-Code.html for = more
information on using Babel.

Best -- Eric

John Hendy <jw.hendy@gmail.com= > writes:

> Hi,
>
>
> I have been having a difficult time with an export (which includes a d= itaa
> graphic) to PDF via LaTeX recently and am puzzled by it. Which is the<= br> > correct format?
>
> 1) Supported by:
> - http://doc.norang.ca/org-mode.html#playingwithditaa
> - http://orgmode.org/Changes.html#ob-configuration-changes= (indirectly seems
> to indicate this format?)
>
> #+begin_src ditaa :file file.png :cmdline -r -S -s 2.5
> ---
> Picture here
> ---
> #+end_src
>
>
> 2) Supported by:
> - http://orgmode.org/worg/org-contrib/org-exp-blocks.php=
> -
> http://emacs-fu.blogspot.com/2009= /10/writing-presentations-with-org-mode-and.html
>
> #+begin_ditaa file.png -r -S -s 2.5
> ---
> Picture here
> ---
> #+end_ditaa
>
> Only #2 is working for me currently, though I suspect that #1 is the &= #39;truer'
> form? Not sure what's going on...
>
>
> Thanks,
> John
>
> P.S. Is there a way to enlarge the output? Using the -s option only se= ems to
> make the resolution higher, not change the actual size (inches, pixels= ,
> whatever) in the LaTeX output...
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

--e0cb4e6ff6293a286b048bed0796-- --===============1081911394== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1081911394==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Correct babel format for ditaa? Date: Wed, 21 Jul 2010 15:22:56 -0700 Message-ID: <87y6d4a30f.fsf@gmail.com> References: <878w54biqv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=50642 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Obhgr-0002LK-UC for emacs-orgmode@gnu.org; Wed, 21 Jul 2010 18:23:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Obhgq-0007pz-KE for emacs-orgmode@gnu.org; Wed, 21 Jul 2010 18:23:01 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:59583) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Obhgq-0007pu-AB for emacs-orgmode@gnu.org; Wed, 21 Jul 2010 18:23:00 -0400 Received: by pvc30 with SMTP id 30so6663866pvc.0 for ; Wed, 21 Jul 2010 15:22:59 -0700 (PDT) In-Reply-To: (John Hendy's message of "Wed, 21 Jul 2010 17:07:31 -0500") 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: John Hendy Cc: emacs-orgmode Hi John, Yes the following should be sufficient ;; setup ditaa (setq org-ditaa-jar-path "~/.elisp/org.git/contrib/scripts/ditaa.jar") (org-babel-do-load-languages 'org-babel-load-languages '((ditaa . t) (gnuplot . t))) What happens if you try to evaluate the following in an Org-mode buffer with C-c C-c? #+begin_src ditaa :file example.png +---------------+ | | | ditaa example | | | +---------------+ #+end_src Best -- Eric John Hendy writes: > Thanks Eric... I should have included that my .emacs file has the following > (which I followed from here: > http://orgmode.org/Changes.html#ob-configuration-changes): > > ;; setup ditaa > (setq org-ditaa-jar-path "~/.elisp/org.git/contrib/scripts/ditaa.jar") > (org-babel-do-load-languages > 'org-babel-load-languages > '((ditaa . t) > (gnuplot . t))) > (require 'ob-ditaa) > > If I understand correctly, the (ditaa . t) and (require 'ob-ditaa) are > redundant but since it wasn't working, I tried both. Is this what I need to > have babel work with ditaa? > > Thanks for any input... > John > > On Wed, Jul 21, 2010 at 4:57 PM, Eric Schulte wrote: > >> Hi John, >> >> Yes, (1) below is the preferred format, however the "ditaa" language is >> not enabled by default. Please customize the org-babel-load-languages >> variable to enable support for evaluating ditaa code blocks, and then >> try the code block syntax mentioned in (1) below again and a ditaa >> figure should be successfully exported. >> >> A benefit of the (1) (aka Babel) method below is that code blocks can be >> evaluated "live" from inside the Org-mode buffer with C-c C-c. See >> Chapter 14 of the manual or the relevant portion of the quick guide >> http://orgmode.org/guide/Working-With-Source-Code.html for more >> information on using Babel. >> >> Best -- Eric >> >> John Hendy writes: >> >> > Hi, >> > >> > >> > I have been having a difficult time with an export (which includes a >> ditaa >> > graphic) to PDF via LaTeX recently and am puzzled by it. Which is the >> > correct format? >> > >> > 1) Supported by: >> > - http://doc.norang.ca/org-mode.html#playingwithditaa >> > - http://orgmode.org/Changes.html#ob-configuration-changes (indirectly >> seems >> > to indicate this format?) >> > >> > #+begin_src ditaa :file file.png :cmdline -r -S -s 2.5 >> > --- >> > Picture here >> > --- >> > #+end_src >> > >> > >> > 2) Supported by: >> > - http://orgmode.org/worg/org-contrib/org-exp-blocks.php >> > - >> > >> http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html >> > >> > #+begin_ditaa file.png -r -S -s 2.5 >> > --- >> > Picture here >> > --- >> > #+end_ditaa >> > >> > Only #2 is working for me currently, though I suspect that #1 is the >> 'truer' >> > form? Not sure what's going on... >> > >> > >> > Thanks, >> > John >> > >> > P.S. Is there a way to enlarge the output? Using the -s option only seems >> to >> > make the resolution higher, not change the actual size (inches, pixels, >> > whatever) in the LaTeX output... >> > _______________________________________________ >> > Emacs-orgmode mailing list >> > Please use `Reply All' to send replies to the list. >> > Emacs-orgmode@gnu.org >> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Correct babel format for ditaa? Date: Thu, 22 Jul 2010 01:06:42 +0000 Message-ID: References: <878w54biqv.fsf@gmail.com> <87y6d4a30f.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0698867296==" Return-path: Received: from [140.186.70.92] (port=43114 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ObkFK-0005JN-7J for emacs-orgmode@gnu.org; Wed, 21 Jul 2010 21:06:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ObkFI-0004ul-Jg for emacs-orgmode@gnu.org; Wed, 21 Jul 2010 21:06:45 -0400 Received: from mail-gx0-f169.google.com ([209.85.161.169]:54506) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ObkFI-0004uf-FH for emacs-orgmode@gnu.org; Wed, 21 Jul 2010 21:06:44 -0400 Received: by gxk4 with SMTP id 4so5192562gxk.0 for ; Wed, 21 Jul 2010 18:06:43 -0700 (PDT) In-Reply-To: <87y6d4a30f.fsf@gmail.com> 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: Eric Schulte Cc: emacs-orgmode --===============0698867296== Content-Type: multipart/alternative; boundary=e0cb4e88782705c6bc048bef88f5 --e0cb4e88782705c6bc048bef88f5 Content-Type: text/plain; charset=ISO-8859-1 That works as does the attempt on my *home* computer. I was at work earlier. I'm truly perplexed as from memory I just cannot think of anything different between the home and work .emacs files that would do this. I want to go back and look at the load languages section from the work one, though, as I got the same error at home prior to adding that section. I'm wondering if I have a typo somewhere (though I did copy and paste what's below so just not sure!). I'll try again and post back tomorrow. I truly appreciate the help. John On Wed, Jul 21, 2010 at 10:22 PM, Eric Schulte wrote: > Hi John, > > Yes the following should be sufficient > > ;; setup ditaa > (setq org-ditaa-jar-path "~/.elisp/org.git/contrib/scripts/ditaa.jar") > (org-babel-do-load-languages > 'org-babel-load-languages > '((ditaa . t) > (gnuplot . t))) > > > What happens if you try to evaluate the following in an Org-mode buffer > with C-c C-c? > > #+begin_src ditaa :file example.png > +---------------+ > | | > | ditaa example | > | | > +---------------+ > #+end_src > > Best -- Eric > > John Hendy writes: > > > Thanks Eric... I should have included that my .emacs file has the > following > > (which I followed from here: > > http://orgmode.org/Changes.html#ob-configuration-changes): > > > > ;; setup ditaa > > (setq org-ditaa-jar-path "~/.elisp/org.git/contrib/scripts/ditaa.jar") > > (org-babel-do-load-languages > > 'org-babel-load-languages > > '((ditaa . t) > > (gnuplot . t))) > > (require 'ob-ditaa) > > > > If I understand correctly, the (ditaa . t) and (require 'ob-ditaa) are > > redundant but since it wasn't working, I tried both. Is this what I need > to > > have babel work with ditaa? > > > > Thanks for any input... > > John > > > > On Wed, Jul 21, 2010 at 4:57 PM, Eric Schulte >wrote: > > > >> Hi John, > >> > >> Yes, (1) below is the preferred format, however the "ditaa" language is > >> not enabled by default. Please customize the org-babel-load-languages > >> variable to enable support for evaluating ditaa code blocks, and then > >> try the code block syntax mentioned in (1) below again and a ditaa > >> figure should be successfully exported. > >> > >> A benefit of the (1) (aka Babel) method below is that code blocks can be > >> evaluated "live" from inside the Org-mode buffer with C-c C-c. See > >> Chapter 14 of the manual or the relevant portion of the quick guide > >> http://orgmode.org/guide/Working-With-Source-Code.html for more > >> information on using Babel. > >> > >> Best -- Eric > >> > >> John Hendy writes: > >> > >> > Hi, > >> > > >> > > >> > I have been having a difficult time with an export (which includes a > >> ditaa > >> > graphic) to PDF via LaTeX recently and am puzzled by it. Which is the > >> > correct format? > >> > > >> > 1) Supported by: > >> > - http://doc.norang.ca/org-mode.html#playingwithditaa > >> > - http://orgmode.org/Changes.html#ob-configuration-changes(indirectly > >> seems > >> > to indicate this format?) > >> > > >> > #+begin_src ditaa :file file.png :cmdline -r -S -s 2.5 > >> > --- > >> > Picture here > >> > --- > >> > #+end_src > >> > > >> > > >> > 2) Supported by: > >> > - http://orgmode.org/worg/org-contrib/org-exp-blocks.php > >> > - > >> > > >> > http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html > >> > > >> > #+begin_ditaa file.png -r -S -s 2.5 > >> > --- > >> > Picture here > >> > --- > >> > #+end_ditaa > >> > > >> > Only #2 is working for me currently, though I suspect that #1 is the > >> 'truer' > >> > form? Not sure what's going on... > >> > > >> > > >> > Thanks, > >> > John > >> > > >> > P.S. Is there a way to enlarge the output? Using the -s option only > seems > >> to > >> > make the resolution higher, not change the actual size (inches, > pixels, > >> > whatever) in the LaTeX output... > >> > _______________________________________________ > >> > Emacs-orgmode mailing list > >> > Please use `Reply All' to send replies to the list. > >> > Emacs-orgmode@gnu.org > >> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > >> > --e0cb4e88782705c6bc048bef88f5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable That works as does the attempt on my home=A0computer. I was at work = earlier. I'm truly perplexed as from memory I just cannot think of anyt= hing different between the home and work .emacs files that would do this. I= want to go back and look at the load languages section from the work one, = though, as I got the same error at home prior to adding that section. I'= ;m wondering if I have a typo somewhere (though I did copy and paste what&#= 39;s below so just not sure!).

I'll try again and post back tomorrow. I truly appreciat= e the help.

John

On Wed, Jul 21, 2010 at 10:22 PM, Eric Schulte <schulte.eric@gmail.com> = wrote:
Hi John,

Yes the following should be sufficient

;; setup ditaa
(setq org-ditaa-jar-path "~/.elisp/org.git/contrib/scripts/ditaa.jar&q= uot;)
(org-babel-do-load-languages
=A0'org-babel-load-languages
=A0'((ditaa . t)
=A0 (gnuplot . t)))


What happens if you try to evaluate the following in an Org-mode buff= er
with C-c C-c?

#+begin_src ditaa :file example.png
=A0+---------------+
=A0| =A0 =A0 =A0 =A0 =A0 =A0 =A0 |
=A0| ditaa example |
=A0| =A0 =A0 =A0 =A0 =A0 =A0 =A0 |
=A0+---------------+
#+end_src

Best -- Eric

John Hendy <jw.hendy@gmail.com= > writes:

> Thanks Eric... I should have included that my .emacs file has the foll= owing
> (which I followed from here:
> http://orgmode.org/Changes.html#ob-configuration-changes):
>
> ;; setup ditaa
> (setq org-ditaa-jar-path "~/.elisp/org.git/contrib/scripts/ditaa.= jar")
> (org-babel-do-load-languages
> =A0'org-babel-load-languages
> =A0'((ditaa . t)
> =A0 =A0(gnuplot . t)))
> (require 'ob-ditaa)
>
> If I understand correctly, the (ditaa . t) and (require 'ob-ditaa)= are
> redundant but since it wasn't working, I tried both. Is this what = I need to
> have babel work with ditaa?
>
> Thanks for any input...
> John
>
> On Wed, Jul 21, 2010 at 4:57 PM, Eric Schulte <
schulte.eric@gmail.com>wrote:
>
>> Hi John,
>>
>> Yes, (1) below is the preferred format, however the "ditaa&qu= ot; language is
>> not enabled by default. =A0Please customize the org-babel-load-lan= guages
>> variable to enable support for evaluating ditaa code blocks, and t= hen
>> try the code block syntax mentioned in (1) below again and a ditaa=
>> figure should be successfully exported.
>>
>> A benefit of the (1) (aka Babel) method below is that code blocks = can be
>> evaluated "live" from inside the Org-mode buffer with C-= c C-c. =A0See
>> Chapter 14 of the manual or the relevant portion of the quick guid= e
>> http://orgmode.org/guide/Working-With-Source-Code.html for more
>> information on using Babel.
>>
>> Best -- Eric
>>
>> John Hendy <
jw.hendy@gmai= l.com> writes:
>>
>> > Hi,
>> >
>> >
>> > I have been having a difficult time with an export (which inc= ludes a
>> ditaa
>> > graphic) to PDF via LaTeX recently and am puzzled by it. Whic= h is the
>> > correct format?
>> >
>> > 1) Supported by:
>> > - http://doc.norang.ca/org-mode.html#playingwithditaa<= /a>
>> > -
http://orgmode.org/Changes.html#ob-configuratio= n-changes (indirectly
>> seems
>> > to indicate this format?)
>> >
>> > #+begin_src ditaa :file file.png :cmdline -r -S -s 2.5
>> > ---
>> > Picture here
>> > ---
>> > #+end_src
>> >
>> >
>> > 2) Supported by:
>> > - http://orgmode.org/worg/org-contrib/org-exp-block= s.php
>> > -
>> >
>> http://emacs-fu.blogspot.com/= 2009/10/writing-presentations-with-org-mode-and.html
>> >
>> > #+begin_ditaa file.png -r -S -s 2.5
>> > ---
>> > Picture here
>> > ---
>> > #+end_ditaa
>> >
>> > Only #2 is working for me currently, though I suspect that #1= is the
>> 'truer'
>> > form? Not sure what's going on...
>> >
>> >
>> > Thanks,
>> > John
>> >
>> > P.S. Is there a way to enlarge the output? Using the -s optio= n only seems
>> to
>> > make the resolution higher, not change the actual size (inche= s, pixels,
>> > whatever) in the LaTeX output...
>> > _______________________________________________
>> > Emacs-orgmode mailing list
>> > Please use `Reply All' to send replies to the list.
>> > Emacs-orgmode@gnu.or= g
>> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>

--e0cb4e88782705c6bc048bef88f5-- --===============0698867296== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0698867296==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Correct babel format for ditaa? Date: Thu, 22 Jul 2010 16:34:53 -0500 Message-ID: References: <878w54biqv.fsf@gmail.com> <87y6d4a30f.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1026605798==" Return-path: Received: from [140.186.70.92] (port=34681 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oc3Pu-0003Fn-J0 for emacs-orgmode@gnu.org; Thu, 22 Jul 2010 17:35:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oc3Pr-0007ZX-7t for emacs-orgmode@gnu.org; Thu, 22 Jul 2010 17:34:58 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:61577) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oc3Pq-0007ZP-VV for emacs-orgmode@gnu.org; Thu, 22 Jul 2010 17:34:55 -0400 Received: by vws16 with SMTP id 16so632633vws.0 for ; Thu, 22 Jul 2010 14:34:53 -0700 (PDT) In-Reply-To: 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: Eric Schulte Cc: emacs-orgmode --===============1026605798== Content-Type: multipart/alternative; boundary=e0cb4e8878275be890048c00b028 --e0cb4e8878275be890048c00b028 Content-Type: text/plain; charset=ISO-8859-1 I'm at a loss... I tried the minimal config and it worked... then I compared it to my normal config and didn't see anything wrong so I tried it there and it also worked. I did change the current figure from #+begin_ditaa to #+begin_src ditaa... maybe I had a typo somewhere before? I literally have no idea what happened. Maybe I changed something last night before I left with my config but never re-ran things one final time? Thanks for the help! Sorry I can't provide a better specific resolution to the problem for future inquirers! John On Wed, Jul 21, 2010 at 8:06 PM, John Hendy wrote: > That works as does the attempt on my *home* computer. I was at work > earlier. I'm truly perplexed as from memory I just cannot think of anything > different between the home and work .emacs files that would do this. I want > to go back and look at the load languages section from the work one, though, > as I got the same error at home prior to adding that section. I'm wondering > if I have a typo somewhere (though I did copy and paste what's below so just > not sure!). > > I'll try again and post back tomorrow. I truly appreciate the help. > > John > > > On Wed, Jul 21, 2010 at 10:22 PM, Eric Schulte wrote: > >> Hi John, >> >> Yes the following should be sufficient >> >> ;; setup ditaa >> (setq org-ditaa-jar-path "~/.elisp/org.git/contrib/scripts/ditaa.jar") >> (org-babel-do-load-languages >> 'org-babel-load-languages >> '((ditaa . t) >> (gnuplot . t))) >> >> >> What happens if you try to evaluate the following in an Org-mode buffer >> with C-c C-c? >> >> #+begin_src ditaa :file example.png >> +---------------+ >> | | >> | ditaa example | >> | | >> +---------------+ >> #+end_src >> >> Best -- Eric >> >> John Hendy writes: >> >> > Thanks Eric... I should have included that my .emacs file has the >> following >> > (which I followed from here: >> > http://orgmode.org/Changes.html#ob-configuration-changes): >> > >> > ;; setup ditaa >> > (setq org-ditaa-jar-path "~/.elisp/org.git/contrib/scripts/ditaa.jar") >> > (org-babel-do-load-languages >> > 'org-babel-load-languages >> > '((ditaa . t) >> > (gnuplot . t))) >> > (require 'ob-ditaa) >> > >> > If I understand correctly, the (ditaa . t) and (require 'ob-ditaa) are >> > redundant but since it wasn't working, I tried both. Is this what I need >> to >> > have babel work with ditaa? >> > >> > Thanks for any input... >> > John >> > >> > On Wed, Jul 21, 2010 at 4:57 PM, Eric Schulte > >wrote: >> > >> >> Hi John, >> >> >> >> Yes, (1) below is the preferred format, however the "ditaa" language is >> >> not enabled by default. Please customize the org-babel-load-languages >> >> variable to enable support for evaluating ditaa code blocks, and then >> >> try the code block syntax mentioned in (1) below again and a ditaa >> >> figure should be successfully exported. >> >> >> >> A benefit of the (1) (aka Babel) method below is that code blocks can >> be >> >> evaluated "live" from inside the Org-mode buffer with C-c C-c. See >> >> Chapter 14 of the manual or the relevant portion of the quick guide >> >> http://orgmode.org/guide/Working-With-Source-Code.html for more >> >> information on using Babel. >> >> >> >> Best -- Eric >> >> >> >> John Hendy writes: >> >> >> >> > Hi, >> >> > >> >> > >> >> > I have been having a difficult time with an export (which includes a >> >> ditaa >> >> > graphic) to PDF via LaTeX recently and am puzzled by it. Which is the >> >> > correct format? >> >> > >> >> > 1) Supported by: >> >> > - http://doc.norang.ca/org-mode.html#playingwithditaa >> >> > - http://orgmode.org/Changes.html#ob-configuration-changes(indirectly >> >> seems >> >> > to indicate this format?) >> >> > >> >> > #+begin_src ditaa :file file.png :cmdline -r -S -s 2.5 >> >> > --- >> >> > Picture here >> >> > --- >> >> > #+end_src >> >> > >> >> > >> >> > 2) Supported by: >> >> > - http://orgmode.org/worg/org-contrib/org-exp-blocks.php >> >> > - >> >> > >> >> >> http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html >> >> > >> >> > #+begin_ditaa file.png -r -S -s 2.5 >> >> > --- >> >> > Picture here >> >> > --- >> >> > #+end_ditaa >> >> > >> >> > Only #2 is working for me currently, though I suspect that #1 is the >> >> 'truer' >> >> > form? Not sure what's going on... >> >> > >> >> > >> >> > Thanks, >> >> > John >> >> > >> >> > P.S. Is there a way to enlarge the output? Using the -s option only >> seems >> >> to >> >> > make the resolution higher, not change the actual size (inches, >> pixels, >> >> > whatever) in the LaTeX output... >> >> > _______________________________________________ >> >> > Emacs-orgmode mailing list >> >> > Please use `Reply All' to send replies to the list. >> >> > Emacs-orgmode@gnu.org >> >> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> >> >> > > --e0cb4e8878275be890048c00b028 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I'm at a loss... I tried the minimal config and it worked... then I com= pared it to my normal config and didn't see anything wrong so I tried i= t there and it also worked. I did change the current figure from #+begin_di= taa to #+begin_src ditaa... maybe I had a typo somewhere before?

I literally have no idea what happened. Maybe I changed some= thing last night before I left with my config but never re-ran things one f= inal time?

Thanks for the help! Sorry I can't = provide a better specific resolution to the problem for future inquirers!


John

O= n Wed, Jul 21, 2010 at 8:06 PM, John Hendy <jw.hendy@gmail.com> wrote:
That works as does the attempt on my home=A0computer. I was at work = earlier. I'm truly perplexed as from memory I just cannot think of anyt= hing different between the home and work .emacs files that would do this. I= want to go back and look at the load languages section from the work one, = though, as I got the same error at home prior to adding that section. I'= ;m wondering if I have a typo somewhere (though I did copy and paste what&#= 39;s below so just not sure!).

I'll try again and post back tomorrow. I truly appreciat= e the help.

John


On Wed, J= ul 21, 2010 at 10:22 PM, Eric Schulte <schulte.eric@gmail.com>= wrote:
Hi John,

Yes the following should be sufficient

;; setup ditaa
(setq org-ditaa-jar-path "~/.elisp/org.git/contrib/scripts/ditaa.jar&q= uot;)
(org-babel-do-load-languages
=A0'org-babel-load-languages
=A0'((ditaa . t)
=A0 (gnuplot . t)))


What happens if you try to evaluate the following in an Org-mode buff= er
with C-c C-c?

#+begin_src ditaa :file example.png
=A0+---------------+
=A0| =A0 =A0 =A0 =A0 =A0 =A0 =A0 |
=A0| ditaa example |
=A0| =A0 =A0 =A0 =A0 =A0 =A0 =A0 |
=A0+---------------+
#+end_src

Best -- Eric

John Hendy <jw.h= endy@gmail.com> writes:

> Thanks Eric... I should have included that my .emacs file has the foll= owing
> (which I followed from here:
> http://orgmode.org/Changes.html#ob-configuration-changes):
>
> ;; setup ditaa
> (setq org-ditaa-jar-path "~/.elisp/org.git/contrib/scripts/ditaa.= jar")
> (org-babel-do-load-languages
> =A0'org-babel-load-languages
> =A0'((ditaa . t)
> =A0 =A0(gnuplot . t)))
> (require 'ob-ditaa)
>
> If I understand correctly, the (ditaa . t) and (require 'ob-ditaa)= are
> redundant but since it wasn't working, I tried both. Is this what = I need to
> have babel work with ditaa?
>
> Thanks for any input...
> John
>
> On Wed, Jul 21, 2010 at 4:57 PM, Eric Schulte <
schulte.eric@gmail.com>wrote= :
>
>> Hi John,
>>
>> Yes, (1) below is the preferred format, however the "ditaa&qu= ot; language is
>> not enabled by default. =A0Please customize the org-babel-load-lan= guages
>> variable to enable support for evaluating ditaa code blocks, and t= hen
>> try the code block syntax mentioned in (1) below again and a ditaa=
>> figure should be successfully exported.
>>
>> A benefit of the (1) (aka Babel) method below is that code blocks = can be
>> evaluated "live" from inside the Org-mode buffer with C-= c C-c. =A0See
>> Chapter 14 of the manual or the relevant portion of the quick guid= e
>> http://orgmode.org/guide/Working-With-Source-Code.html for more
>> information on using Babel.
>>
>> Best -- Eric
>>
>> John Hendy <
jw.hendy@gmail.com> writes:
>>
>> > Hi,
>> >
>> >
>> > I have been having a difficult time with an export (which inc= ludes a
>> ditaa
>> > graphic) to PDF via LaTeX recently and am puzzled by it. Whic= h is the
>> > correct format?
>> >
>> > 1) Supported by:
>> > - http://doc.norang.ca/org-mode.html#playingwithditaa<= /a>
>> > -
http://orgmode.org/Changes.html#ob-configuratio= n-changes (indirectly
>> seems
>> > to indicate this format?)
>> >
>> > #+begin_src ditaa :file file.png :cmdline -r -S -s 2.5
>> > ---
>> > Picture here
>> > ---
>> > #+end_src
>> >
>> >
>> > 2) Supported by:
>> > - http://orgmode.org/worg/org-contrib/org-exp-block= s.php
>> > -
>> >
>> http://emacs-fu.blogspot.com/= 2009/10/writing-presentations-with-org-mode-and.html
>> >
>> > #+begin_ditaa file.png -r -S -s 2.5
>> > ---
>> > Picture here
>> > ---
>> > #+end_ditaa
>> >
>> > Only #2 is working for me currently, though I suspect that #1= is the
>> 'truer'
>> > form? Not sure what's going on...
>> >
>> >
>> > Thanks,
>> > John
>> >
>> > P.S. Is there a way to enlarge the output? Using the -s optio= n only seems
>> to
>> > make the resolution higher, not change the actual size (inche= s, pixels,
>> > whatever) in the LaTeX output...
>> > _______________________________________________
>> > Emacs-orgmode mailing list
>> > Please use `Reply All' to send replies to the list.
>> > Em= acs-orgmode@gnu.org
>> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>


--e0cb4e8878275be890048c00b028-- --===============1026605798== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1026605798==--