The following examples shows some issues 

#+title: Inline formatting

Inline code examples

src_emacs-lisp{(+ 2 3)}

src_emacs-lisp[:results raw]{(2 + 5)} 

#+BEGIN_SRC emacs-lisp
(+ 11 12)
#+END_SRC

#+RESULTS:
: 23

#+BEGIN_SRC emacs-lisp :results raw
(+ 11 13)
#+End_Src

##################################

In 3 of the 4 examples running the code repeatedly 
with C-c C-c
will produce multiple copies of the output.
Only the default code block (example 3)
"knows" to delete the old result when a new one is produced.

If one is not careful about this, one can easily produce inconsistent documents.
Changing the code but not the old results will keep different results within 
the document
and these results will also be exported.

A solution would be to have markers like

#+begin_results
#+end_results

Then, org mode could know what exactly to delete.
This would need to me modified for inline src statements bit should be doable.

I think this could help with the general concept of producing consistent 
reproducible research documents.

Anny suggestions regarding this  issue?

Erich








Reply via email to