I would like to use Emacs for literate programming.
I want my code to look like this .
<<class Hufftree definition>>=
template<typename DataType, typename Frequency> class Hufftree
{
public:
Hufftree public members
private:
Hufftree private members
};
In org-babel I can't give names to my code snippets which are spread all over the document and collect them together as shown below. Whenever I compile I want the tool to automatically insert <<member functions>> wherever I refer them.
Some text here. Blah blah...
<<my foo class>> ==
#+begin_src ruby
class Foo{
<<member functions>>
}
#+end_src
Something random to say about some other things.
<<member functions>> ==
#+begin_src
// code for member functions goes here
#+end_src
org-babelbecause AFAIK it's easiest way to do literate programming. – Daimrod Nov 14 '12 at 7:34