From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Trouble exporting ditaa blocks to latex or html Date: Mon, 18 Jul 2011 19:55:51 -0600 Message-ID: <87d3h7owyg.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QizXV-00025B-DF for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 21:56:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QizXT-0001r9-A1 for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 21:56:01 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:63415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QizXS-0001r3-UR for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 21:55:59 -0400 Received: by iwn8 with SMTP id 8so3998725iwn.0 for ; Mon, 18 Jul 2011 18:55:57 -0700 (PDT) In-Reply-To: (Jeff Mickey's message of "Mon, 18 Jul 2011 18:31:02 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jeff Mickey Cc: emacs-orgmode Org-Mode Hi Jeff, First off, be sure that evaluation works interactively by pressing C-c C-c with the cursor on the code block body. Second, try adding an ":exports results" header argument to the code block. Aside from that I fear that the problem may be due to something in your config given that the example below exports for me as expected. I'd suggest trying to start emacs with the -Q option, then only a minimal amount of config required to enable evaluation of ditaa export, and see if the problem persists. Best -- Eric Jeff Mickey writes: > Hello! > > So I've been trying to use org-babel for the first time recently, and > something that seemed like it would be absolutely wonderful for my > technical notes is ditaa. I've been attempting to export to latex and > then create pdf with a ditaa image for the past little bit, and can't > seem to manage. It produces a pdf just fine doing C-c C-e d, but the > ditaa just has the text in a \verbatim section in the .tex. ditaa is > installed on my system, and I set the jar path. HTML export didn't > work either, also just including the ditaa text. *Messages* didn't > have anything in it of value. I feel like I'm missing something > obvious, so here's some more information about my configuration. > > The test org is as follows: > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; test.org > * Something > Some text and stuff. Let's see how this exports. > > ** a subline > > * More stuff > > * A ditaa diagram > #+begin_src ditaa :file blue.png :cmdline -r > /---------------\ > | test | > | {cBLU} | > \---------------/ > #+end_src > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; eof > > My org configuration can be found on my github page[1]. The relevant > section to org-babel/ditaa is as follows: > ;; org export > (setq org-ditaa-jar-path "/usr/local/Cellar/ditaa/0.9/ditaa0_9.jar") > (add-hook 'org-babel-after-execute-hook 'org-display-inline-images) > > (setq org-babel-load-languages `((emacs-lisp . t) > (dot . t) > (ditaa . t) > (R . t) > (python . t) > (ruby . t) > (gnuplot . t) > (clojure . t) > (sh . t) > (ledger . t) > (org . t) > (latex . t))) > (setq org-confirm-babel-evaluate nil) > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; eof > > Any tips would be greatly appreciated. I've been trying this on org > from git, with this commit for head: > commit 22fa9bf2227b8222580d0b9a59ae0a9c08c4c32a > Author: Bastien Guerry > Date: Tue Jul 12 16:56:11 2011 +0200 > > org.texi (Special agenda views): Fix double quoting (bug#3509). > > Patch by Lars Magne Ingebrigtsen taken from emacs latest bzr repo. > > > Thanks for any help, and thanks for all the work on org-mode! > > // jeff > > [1]: https://github.com/codemac/config/blob/master/emacs.d/pkg-init/cm-org.el > -- Eric Schulte http://cs.unm.edu/~eschulte/