[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: Suppressing src block evaluationon publish?
From: |
Loris Bennett |
Subject: |
[Orgmode] Re: Suppressing src block evaluationon publish? |
Date: |
Thu, 03 Feb 2011 09:19:28 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Erik Iverson <address@hidden> 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.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
--
Dr. Loris Bennett
ZEDAT Computer Centre
Freie Universität Berlin
Berlin, Germany
[Orgmode] Re: Suppressing src block evaluationon publish?, Andrea Crotti, 2011/02/01
[Orgmode] Re: Suppressing src block evaluationon publish?, Andrea Crotti, 2011/02/01