Org-babel is great!
October 8, 2010 at 9:58 pm Leave a comment
I just installed org-mode 7.01h and tried babel. It’s great. Now you can
put different programs and their results with document together. Here are some examples.
ruby
require 'date' "This file was last evaluated on #{Date.today}"
This file was last evaluated on 2010-10-10
octave
example 1
n=[1:10];
x=2*n;
ans=x
2.00000000e+00 4.00000000e+00 6.00000000e+00 8.00000000e+00 1.00000000e+01 1.20000000e+01 1.40000000e+01 1.60000000e+01 1.80000000e+01 2.00000000e+01
example 2
A=[1 2];
B=[2 3]';
C=A*B;
ans=C
8.00000000e+00
p
8.00000000e+00
Entry filed under: Emacs. Tags: .

Trackback this post | Subscribe to the comments via RSS Feed