Dear Richard,
You can do:
#+BEGIN_SRC mathematica
f[x_] := x+3;
f[5]
#+END_SRC
Here are explanations: I actually put everything in the SRC block into a
Print[...].
So in the second example, what actually runs is
Print[f[x_] := x+3
f[5]]
This does not return any value. Because what it really d
The problem: I write a document with LaTeX equations in it, e.g.
The quick $\alpha$ jumps over the lazy $\beta$
and use org-html-export-to-html to export to html. The equations are
rendered in MathJax. In Google Chrome (version 39 for me), the rending
time for the resulting html file is extre
Now it worked. I added (add-to-list 'org-src-lang-modes '("mathematica" .
"mma")). After that font lock and edit source works. Thank @Bastien for the
help!
On Thu, Jan 9, 2014 at 11:31 AM, Yi Wang wrote:
> Ah, now the problem appears. It says "No such lang
is ("\\.m\\'" .
mma-mode), and no entry with mathematica-mode), I still have no idea
why org-edit-special looks for mathematica-mode instead of mma-mode.
On Thu, Jan 9, 2014 at 11:15 AM, Bastien wrote:
> Yi Wang writes:
>
> > (1) If I open a .m file, there is font lo
blem shouldn't be org-src-fontify-natively (and I checked
it is indeed t).
This is why I am confused. Actually I don't badly need this feature. Just
it would be a little better to have things work properly.
Best,
Yi
On Thu, Jan 9, 2014 at 10:55 AM, Bastien wrote:
> Yi Wa
curiously the Mathematica code is still not
highlighted like other codes. I wonder there may be some non-standard
things inside mma.el (the Mathematica package file major mode) then?
Best,
Yi
On Thu, Jan 9, 2014 at 10:28 AM, Bastien wrote:
> Hi Yi,
>
> Yi Wang writes:
>
> > As far
Hello,
As far as I can find, there is no babel support for Mathematica. So I wrote
one and share it in case other people are interested:
https://github.com/tririver/wy-els/blob/master/ob-mathematica.el
It is also discussed in this blog
http://cosmosimple.blogspot.co.uk/2014/01/evaluate-mathemati