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