* Correct babel format for ditaa? @ 2010-07-21 21:28 John Hendy 2010-07-21 21:57 ` Eric Schulte 0 siblings, 1 reply; 6+ messages in thread From: John Hendy @ 2010-07-21 21:28 UTC (permalink / raw) To: emacs-orgmode [-- Attachment #1.1: Type: text/plain, Size: 969 bytes --] 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... [-- Attachment #1.2: Type: text/html, Size: 1928 bytes --] [-- Attachment #2: Type: text/plain, Size: 201 bytes --] _______________________________________________ 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Correct babel format for ditaa? 2010-07-21 21:28 Correct babel format for ditaa? John Hendy @ 2010-07-21 21:57 ` Eric Schulte 2010-07-21 22:07 ` John Hendy 0 siblings, 1 reply; 6+ messages in thread From: Eric Schulte @ 2010-07-21 21:57 UTC (permalink / raw) 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 <jw.hendy@gmail.com> 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Correct babel format for ditaa? 2010-07-21 21:57 ` Eric Schulte @ 2010-07-21 22:07 ` John Hendy 2010-07-21 22:22 ` Eric Schulte 0 siblings, 1 reply; 6+ messages in thread From: John Hendy @ 2010-07-21 22:07 UTC (permalink / raw) To: Eric Schulte; +Cc: emacs-orgmode [-- Attachment #1.1: Type: text/plain, Size: 2716 bytes --] 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 <schulte.eric@gmail.com>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 <jw.hendy@gmail.com> 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 > [-- Attachment #1.2: Type: text/html, Size: 4295 bytes --] [-- Attachment #2: Type: text/plain, Size: 201 bytes --] _______________________________________________ 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Correct babel format for ditaa? 2010-07-21 22:07 ` John Hendy @ 2010-07-21 22:22 ` Eric Schulte 2010-07-22 1:06 ` John Hendy 0 siblings, 1 reply; 6+ messages in thread From: Eric Schulte @ 2010-07-21 22:22 UTC (permalink / raw) 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 <jw.hendy@gmail.com> 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 <schulte.eric@gmail.com>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 <jw.hendy@gmail.com> 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 >> ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Correct babel format for ditaa? 2010-07-21 22:22 ` Eric Schulte @ 2010-07-22 1:06 ` John Hendy 2010-07-22 21:34 ` John Hendy 0 siblings, 1 reply; 6+ messages in thread From: John Hendy @ 2010-07-22 1:06 UTC (permalink / raw) To: Eric Schulte; +Cc: emacs-orgmode [-- Attachment #1.1: Type: text/plain, Size: 4190 bytes --] 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 <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") > (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 <jw.hendy@gmail.com> 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 <schulte.eric@gmail.com > >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 <jw.hendy@gmail.com> 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 > >> > [-- Attachment #1.2: Type: text/html, Size: 6416 bytes --] [-- Attachment #2: Type: text/plain, Size: 201 bytes --] _______________________________________________ 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Correct babel format for ditaa? 2010-07-22 1:06 ` John Hendy @ 2010-07-22 21:34 ` John Hendy 0 siblings, 0 replies; 6+ messages in thread From: John Hendy @ 2010-07-22 21:34 UTC (permalink / raw) To: Eric Schulte; +Cc: emacs-orgmode [-- Attachment #1.1: Type: text/plain, Size: 4967 bytes --] 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 <jw.hendy@gmail.com> 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 <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") >> (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 <jw.hendy@gmail.com> 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 <schulte.eric@gmail.com >> >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 <jw.hendy@gmail.com> 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 >> >> >> > > [-- Attachment #1.2: Type: text/html, Size: 7504 bytes --] [-- Attachment #2: Type: text/plain, Size: 201 bytes --] _______________________________________________ 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-07-22 21:35 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-07-21 21:28 Correct babel format for ditaa? John Hendy 2010-07-21 21:57 ` Eric Schulte 2010-07-21 22:07 ` John Hendy 2010-07-21 22:22 ` Eric Schulte 2010-07-22 1:06 ` John Hendy 2010-07-22 21:34 ` John Hendy
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).