From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: ditaa Date: Fri, 19 Aug 2011 07:30:02 -0600 Message-ID: <87k4a9o39s.fsf@gmail.com> References: <80sjp5olx6.fsf@somewhere.org> <6671.1313218507@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuQYI-0008GR-O5 for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 11:00:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QuQYH-0006Ca-7Q for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 11:00:06 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:37915) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuQYH-0006BI-3U for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 11:00:05 -0400 Received: by gyg10 with SMTP id 10so2463070gyg.0 for ; Fri, 19 Aug 2011 08:00:03 -0700 (PDT) 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: Henri-Paul Indiogine Cc: emacs-org Henri-Paul Indiogine writes: > Greetings! > > This is from my .emacs > > (org-babel-do-load-languages > 'org-babel-load-languages > '((R . t) > (ditaa . t) > ......... > ......... > (defun my-org-confirm-babel-evaluate (lang body) > (not (string= lang "ditaa"))) ; don't ask for ditaa > (setq org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate) > > > This is what I obtain in the exported tex file: > > \hyperref[home-henk-Dropbox-dissertation-work-flow.png]{file:/home/henk/Dropbox/dissertation/work-flow.png} > When I export the following simple ditaa block #+begin_src ditaa :file work-flow.png +-------+ +--------+ | | | | | Org |------------>| Tex | | | | | +-------+ +--------+ #+end_src I get the following in the resulting .tex file. \includegraphics[width=.9\linewidth]{work-flow.png} Are you using the most recent version of Org-mode? Perhaps try starting up Emacs with a minimal configuration using the -Q flag to the emacs executable, and see if the problem persists. If not it is caused by something else in your configuration. > > The ditaa code is between these lines: > > #+CAPTION: Research work flow > #+LABEL: fig:workflow > #+begin_src ditaa :file /home/henk/Dropbox/dissertation/work-flow.png > :cmdline -r -s 1.0 > ...... > #+end_src > > If I execute the code (C-c C-c) I obtain the following: > > ditaa version 0.9, Copyright (C) 2004--2009 Efstathios (Stathis) Sideris > > Running with options: > round-corners > scale = 1.0 > Reading file: /tmp/babel-4681Hni/ditaa-46811gs > Locale: en_CA > Dialog.bold > Rendering to file: /home/henk/Dropbox/dissertation/work-flow.png > Done in 5sec > > The png file is created. The only issue is the faulty tex code that > is generated. > Is the previous text inserted into your org-mode buffer? If so then that is certainly wrong, the only thing inserted into the org buffer as results should be a file link to the resulting image. > > I have also noticed that the editing of the org file sometimes slows > down considerably. Maybe it has nothing to do with it, but it > happened after I started using ditaa. I am wondering about using TikZ > instead. > This could be due to the `org-src-fontify-natively', try setting this variable to nil and see if the problem persists. On a side note (and personal preference) I would highly recommend using TikZ for LaTeX documents as the finished product seamlessly integrates with the rest of the document and scales nicely from posted to post-card printings. Best -- Eric > > Thanks, > Henri-Paul -- Eric Schulte http://cs.unm.edu/~eschulte/