emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: Worg needs some reorganizing


From: Eric Schulte
Subject: Re: [Orgmode] Re: Worg needs some reorganizing
Date: Thu, 20 Jan 2011 11:44:24 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>
> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]