emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Re: [Orgmode] Possible Calc support for Org-Babel?


From: Eric S Fraga
Subject: [O] Re: [Orgmode] Possible Calc support for Org-Babel?
Date: Tue, 01 Mar 2011 20:10:36 +0000
User-agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux)

"Eric Schulte" <address@hidden> writes:

[...]

> Alright, I've made two changes, first, it is now possible to pass elisp
> vectors through to code blocks, e.g.,
>
> #+begin_src emacs-lisp :var data=[1 2 3]
>   (elt data 1)
> #+end_src
> #+results:
> : 2
>
> Second, I've added a slightly hackey but seemingly necessary
> post-processing step to a call to calc-eval in ob-calc to remove quotes
> from vectors.  This allows vector processing to take place---at least as
> far as my limited calc knowledge is concerned.  For example;
>
> #+begin_src calc :var y=[1 2 3]
>   3 y
> #+end_src
> #+results:
> : [3, 6, 9]
>
> Hope this helps -- Cheers -- Eric

It does indeed.  It all seems to work just fine now.

I don't necessarily know much more emacs calc than you but the little I
know seems to work just fine.  It's such a powerful package sitting
there mostly idle and org babel is probably the best way to release it
for general use!  Especially for inline calculations...  Time to re-read
the calc manual again and play.

Thanks,
eric

-- 
Eric S Fraga (: http://www.homepages.ucl.ac.uk/~ucecesf/ :)



reply via email to

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