Ypo <ypun...@gmail.com> writes: > Would it be something like this? > > #+begin_src calc > a = 300 m > b = 300 m > Area = a*b > cost = 1 ($/m^2) > A*c > > #+end_src
I looked into ob-calc and it looks like the way to define variables is via :var header argument. Other than that, ob-calc simply does what calc would do if you type the above into calc stack. Which would also yield nothing. I guess that the main problem is that calc is tightly integrated with interactive commands. Maybe ob-calc could be extended to somehow indicate the commands to be executed in addition to inputting stack entries. Not sure if there is much interest in such feature though. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>