fix whitespace errors

This commit is contained in:
Eric Schulte 2011-11-08 13:52:11 -07:00
parent fddd85a172
commit 7720786c41
3 changed files with 7 additions and 9 deletions

View File

@ -47,9 +47,9 @@
(list
;; graphic output
(let ((graphic-file (org-babel-maxima-graphical-output-file params)))
(if graphic-file
(format
"set_plot_option ([gnuplot_term, png]); set_plot_option ([gnuplot_out_file, %S]);"
(if graphic-file
(format
"set_plot_option ([gnuplot_term, png]); set_plot_option ([gnuplot_out_file, %S]);"
graphic-file)
""))
;; variables
@ -81,8 +81,8 @@ called by `org-babel-execute-src-block'."
(= 0 (length line)))
line))
(split-string raw "[\r\n]"))) "\n"))
(org-babel-eval cmd "")))))
(if (org-babel-maxima-graphical-output-file params)
(org-babel-eval cmd "")))))
(if (org-babel-maxima-graphical-output-file params)
nil
(if (or (member "scalar" result-params)
(member "verbatim" result-params)
@ -105,7 +105,7 @@ of the same value."
(setq val (symbol-name val))
(when (= (length val) 1)
(setq val (string-to-char val))))
(format "%S: %s$" var
(format "%S: %s$" var
(org-babel-maxima-elisp-to-maxima val))))
(defun org-babel-maxima-graphical-output-file (params)

View File

@ -61,7 +61,7 @@ print(s+1.0);
#+end_src
Matrix
#+tblname: test_tbl_mtr
#+tblname: test_tbl_mtr
| 1.0 | 1.0 |
#+begin_src maxima :var s=test_tbl_mtr :results silent :results verbatim
@ -88,4 +88,3 @@ tex(ratsimp(diff(%e^(a*x), x)));
#+BEGIN_LaTeX
$$a\,e^{a\,x}$$
#+END_LaTeX

View File

@ -79,4 +79,3 @@
(provide 'test-ob-maxima)
;;; test-ob-maxima.el ends here