Function: org-babel-maxima-expand
org-babel-maxima-expand is a byte-compiled function defined in
ob-maxima.el.gz.
Signature
(org-babel-maxima-expand BODY PARAMS)
Documentation
Expand a block of Maxima code according to its header arguments.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ob-maxima.el.gz
(defun org-babel-maxima-expand (body params)
"Expand a block of Maxima code according to its header arguments."
(let ((vars (org-babel--get-vars params))
(epilogue (cdr (assq :epilogue params)))
(prologue (cdr (assq :prologue params))))
(mapconcat 'identity
(list
;; Any code from the specified prologue at the start.
prologue
;; graphic output
(let ((graphic-file (ignore-errors (org-babel-graphical-output-file params))))
(if graphic-file
(format
"set_plot_option ([gnuplot_term, png]); set_plot_option ([gnuplot_out_file, %S]);"
graphic-file)
""))
;; variables
(mapconcat 'org-babel-maxima-var-to-maxima vars "\n")
;; body
body
;; Any code from the specified epilogue at the end.
epilogue
"gnuplot_close ()$")
"\n")))