From mboxrd@z Thu Jan 1 00:00:00 1970 From: Loris Bennett Subject: Re: Suppressing src block evaluationon publish? Date: Thu, 03 Feb 2011 09:19:28 +0100 Message-ID: <87bp2t34z3.fsf@slate.zedat.fu-berlin.de> References: <87hbcn3fzr.fsf@slate.zedat.fu-berlin.de> <4D482F7F.2060004@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=49254 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkuPr-00063L-QP for emacs-orgmode@gnu.org; Thu, 03 Feb 2011 03:19:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PkuPp-0007V4-MZ for emacs-orgmode@gnu.org; Thu, 03 Feb 2011 03:19:47 -0500 Received: from lo.gmane.org ([80.91.229.12]:36696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PkuPp-0007Ut-Bv for emacs-orgmode@gnu.org; Thu, 03 Feb 2011 03:19:45 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PkuPn-0005JG-Hn for emacs-orgmode@gnu.org; Thu, 03 Feb 2011 09:19:43 +0100 Received: from slate.zedat.fu-berlin.de ([160.45.11.34]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Feb 2011 09:19:43 +0100 Received: from loris.bennett by slate.zedat.fu-berlin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Feb 2011 09:19:43 +0100 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@gnu.org Erik Iverson writes: > Loris Bennett wrote: >> Hi, >> >> I have an org file containing several src blocks which generate images >> using ditaa. When I publish to PDF via LaTeX, the images are all >> generated every time, which makes publishing rather slow. >> >> Is there some way to toggle the evaluation of the src blocks on and off >> when the file is published? >> > > You could try the :cache header argument, http://orgmode.org/org.html#cache > Ah, thanks. There is a slight gotcha here, though. I added :cache yes to the source headers and exported again, but nothing changed; all the images were generated again. Also, no SHA1 hash was added to the +results header. After some fruitless fiddling I was about to write to the list again and moan, when I did a slightly random C-c C-c in the begin_src line and, hey presto, the hash was added to the results header. I then did this for all the images and found that the image were no longer regenerated on export, as advertised. Perhaps the documentation of :cache could be extended to mention the necessity of evaluating the source block before exporting. Loris > > > _______________________________________________ > 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 > -- Dr. Loris Bennett ZEDAT Computer Centre Freie Universität Berlin Berlin, Germany