Greetings John.

John Hendy <jw.he...@gmail.com> writes:

> This comes up all the time. 

Perhaps we could lower the frequency by making a small change to the
manual?

> The key is to put it 1) before results (as you've done) and 2) to use
> a named source block (with #+name: foo above your babel code) so that
> Org knows what the results block actually is. Otherwise, as you
> currently have it, if you re-run the babel block, you'll keep the
> results section you already have and it will spit out another one
> below it since it no longer recognizes that the babel block and
> current, modified results block go together.

Done. For some reason not doing 2) also worked correctly, but I agree
that it is still a good idea to name the blocks.

> Oh, and not that it matters, but I typically do:

> #+begin_center
> #+ATTR_LATEX: :width 5cm
> #+RESULTS:
> [[file:triangle.pdf]]
> #+end_center

Good point, thanks.

Jarmo


Reply via email to