I guess what I'm saying is that assignment would be really nice. However, I'm now seeing that this would take a lot of work.
What I'd really like to do is something like the following: # Total BS financial projection, don't read into this at all #+BEGIN_SRC calc derp_expenses := 1234 derp_income := 4315 monthly_balance := derp_income - derp_expenses monthly_balance => monthly_balance * 12 => #+END_SRC #+RESULTS: : monthly_balance => 3081 : monthly_balance * 12 => 36972 I guess I could use calc embedded mode, but I haven't figured out how to do that yet. ;) - Chris Christopher Allan Webber <cweb...@dustycloud.org> writes: > I see now. > > #+BEGIN_SRC calc :var foo=5 > foo + 5 => > #+END_SRC > > #+RESULTS: > : 5 + 5 => 10 > > However, this isn't as useful as I'd like. I'd really like to be able > to see it say "foo + 5 =>" in the output. That's clearer which line is > being referred to... > > Christopher Allan Webber <cweb...@dustycloud.org> writes: > >> Hey all... >> >> I have: >> >> #+BEGIN_SRC calc >> foo := 5 >> foo + 5 => >> #+END_SRC >> >> #+RESULTS: >> : foo + 5 => foo + 5 >> >> What I'd like, obviously, is for it to result in: >> >> #+RESULTS: >> : foo + 5 => 10 >> >> I guess I really don't understand how calc support works in org-babel. >> Could someone enlighten me?