I'd like my maxima source blocks to return either valid latex that I can display in the org-buffer, or an image of the results (a la imaxima). Ideally, the pure latex solution would be best.
Here is an example which I'd like to work.
#+BEGIN_SRC maxima :results output raw
C: matrix([1, -1], [1, 1]);
V: matrix([\sigma[11], \sigma[12]], [\sigma[12], \sigma[22]]);
tex(C . V . transpose(C));
#+END_SRC
#+RESULTS:
$$\pmatrix{\sigma_{22}-2\,\sigma_{12}+\sigma_{11}&\sigma_{11}-\sigma
_{22}\cr \sigma_{11}-\sigma_{22}&\sigma_{22}+2\,\sigma_{12}+\sigma_{
11}\cr }$$
The result doesn't render in my buffer.
Wrong type argument: number-or-marker-p, nil
coming fromorg-remove-if
.tex()
to another Org block to format it the way you like.