<yggdra...@gmx.co.uk> writes:

> Thanks, this does answer my initial question and works good enough to
> enable latex export! 
>
> Even better would be if it's possible to mimic imaxima behaviour which
> is (I think) to directly process the resulting latex code and
> (temporarily?) store it as an image to display the pretty-printed
> equations directly inline in the org-buffer (which will make it export
> as html better I guess as the latex output doesn't seem to be recognised
> when exporting to html).
>

You would switch from ":results latex" to ":results raw", in which case
the latex will be inserted directly into the Org-mode buffer, and
org-mode's existing pretty display functionality may be used to view the
equations inline and should work for export to HTML as well.

Alternately, if you really want to get fancy you could use noweb
expansion (see the manual) to insert the results of the imaxima code
block into a latex code block, and then use the existing latex code
block functionality to convert the imaxima output to images of different
types depending on the export target [1].

Best,

>
> All the best,
>
> Johnny
>
> Eric Schulte <schulte.e...@gmail.com> writes:
>
>> Changing ":results output" to ":results output latex" in Rüdiger's nice
>> example below would probably be an improvement.
>>
>> Best,
>>
>> Rüdiger Sonderfeld <ruedi...@c-plusplus.de> writes:
>>
>>> TeX output is a feature of Maxima.  See
>>> (info "(maxima) Functions and Variables for TeX Output")
>>>
>>> E.g.
>>>
>>> #+name: solve-maxima
>>> #+header: :exports results
>>> #+begin_src maxima :results output
>>>   tex(exp(-x)/x);
>>> #+end_src
>>> #+RESULTS: solve-maxima
>>> : $${{e^ {- x }}\over{x}}$$
>>>
>>>
>>> On Thursday 21 November 2013 23:58:35 yggdra...@gmx.co.uk wrote:
>>>> Hi,
>>>> 
>>>> Is there a way to evaluate imaxima source code in org-mode to display
>>>> the latex output inline in the org-buffer? I have found in [1] how to
>>>> evaluate maxima code, but I don't understand if and how to adopt it to
>>>> get the nice latex/pdf output. Any pointers appreciated, or just whether
>>>> it is possible or not.
>>>> 
>>>> 
>>>> I am running emacs 24.3.1 with org mode 7.9.3f.
>>>> 
>>>> Thanks,
>>>> 
>>>> Johnny
>>>> 
>>>> Footnotes:
>>>> [1]  http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-maxima.html
>>>
>>>


Footnotes: 
[1]  
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html#sec-4-3

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D

Reply via email to