>
> I see this issue a lot on the Babel pages.  What needs to be done is
> wrap each source/example block in another block with "org" as the
> language.
>
> For example:
>
> #+begin_src org
>   ,#+begin_src sh :results output
>     ls -al
>   ,#+end_src
> #+end_src
>
> I think this should be done for all Babel documents to make them more
> coherent when reading them on the web.  I found the babel documentation
> quite confusing in the beginning because of this.
>
> Eric and Dan,
>
> Do you agree with this?

Yes, I do agree,

When writing the babel paper we ended up taking basically this approach,
and found that we had to duplicate most blocks, once for showing the
block and once for showing the output e.g.

#+begin_src org
  ,#+begin_src sh :results output
    ls -al
  ,#+end_src
#+end_src

#+begin_src sh :results output
 ls -al
#+end_src

maybe this process could be simplified by passing the body of the code
block to some function (could be defined in the library of babel) which
inserts both the begin_src org quoted body and the actual results into
exported documents.

Cheers -- Eric

_______________________________________________
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

Reply via email to