diff --git a/org-contrib/babel/languages/ob-doc-maxima.org b/org-contrib/babel/languages/ob-doc-maxima.org index 810c9ef4..f1388187 100644 --- a/org-contrib/babel/languages/ob-doc-maxima.org +++ b/org-contrib/babel/languages/ob-doc-maxima.org @@ -137,6 +137,12 @@ Of course, =maxima= is more than a calculator. print(solution); #+end_src +#+RESULTS: solve-maxima +: solve: solution: +: x = - 4 +: x = 4 +: [%t1, %t2] + ** 3D plots With =gnuplot= installed (4.0 or higher), 3D graphics are possible. This example is from [[http://maxima.sourceforge.net/maxima-gnuplot.html][a tutorial on the maxima/gnuplot interface]]. @@ -145,7 +151,7 @@ This example is from [[http://maxima.sourceforge.net/maxima-gnuplot.html][a tuto ,#+name: 3d-maxima ,#+header: :file images/maxima-3d.png ,#+header: :exports results -,#+header: :results graphics +,#+header: :results graphics file ,#+begin_src maxima programmode: false; plot3d(atan(-x^2+y^3/4),[x,-4,4],[y,-4,4],[grid,50,50],[gnuplot_pm3d,true]); @@ -154,14 +160,14 @@ This example is from [[http://maxima.sourceforge.net/maxima-gnuplot.html][a tuto #+name: 3d-maxima #+header: :file images/maxima-3d.png -#+header: :results graphics #+header: :exports results +#+header: :results graphics file #+begin_src maxima programmode: false; plot3d(atan(-x^2+y^3/4),[x,-4,4],[y,-4,4],[grid,50,50],[gnuplot_pm3d,true]); #+end_src -#+results: 3d-maxima +#+RESULTS: 3d-maxima [[file:images/maxima-3d.png]] ** Inline Display of Maxima LaTeX Output @@ -170,19 +176,24 @@ This example is from [[http://maxima.sourceforge.net/maxima-gnuplot.html][a tuto example. #+begin_example -,#+NAME: solve-maxima -,#+HEADER: :exports none -,#+BEGIN_SRC maxima :results raw +,#+NAME: tex-maxima +,#+HEADER: :exports results +,#+BEGIN_SRC maxima :results latex tex(exp(-x)/x); ,#+END_SRC #+end_example -#+NAME: solve-maxima +#+NAME: tex-maxima #+HEADER: :exports results -#+BEGIN_SRC maxima :results raw +#+BEGIN_SRC maxima :results latex tex(exp(-x)/x); #+END_SRC +#+RESULTS: tex-maxima +#+begin_export latex +$${{e^ {- x }}\over{x}}$$ +#+end_export + *** Toggle inline display of latex code Latex code in org mode can be displayed inline by 'C-c C-x C-l'. To remove the inline display 'C-c C-c' is used. This is