![](https://secure.gravatar.com/avatar/50e7e6ec58e101311283a40e60c33572.jpg?s=120&d=mm&r=g)
Hi, I know that Context is developing rapidly and the top guys here are all very busy with these development efforts. But I thought I would just float this idea. There is an open source mathematics software system called sagemath which aims to be a viable substitute to Mathematica and Maple. The link is http://www.sagemath.org/ There exists a latex package called sagetex, which allows using sagemath functions from within latex. The following link on ctan has some examples http://www.ctan.org/tex-archive/macros/latex/contrib/sagetex/ Do you think it is possible to do a similar thing in Context? It would be really cool if this functionality is added to Context. What do the experts here think?
![](https://secure.gravatar.com/avatar/435ac0d0ecd67394ae88a2020214d815.jpg?s=120&d=mm&r=g)
Hi,
This is a very small package, and it is not heavily dependent on LaTeX.
So the ConTeXt module will be easy to write. (it is quite like the
gnuplot context module)
You can write your own and submit that to CTAN.
Yue Wang
On Tue, Apr 28, 2009 at 8:38 PM, curiouslearn
Hi,
I know that Context is developing rapidly and the top guys here are all very busy with these development efforts. But I thought I would just float this idea.
There is an open source mathematics software system called sagemath which aims to be a viable substitute to Mathematica and Maple. The link is
There exists a latex package called sagetex, which allows using sagemath functions from within latex. The following link on ctan has some examples
http://www.ctan.org/tex-archive/macros/latex/contrib/sagetex/
Do you think it is possible to do a similar thing in Context? It would be really cool if this functionality is added to Context.
What do the experts here think?
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Tue, 28 Apr 2009, curiouslearn wrote:
Hi,
I know that Context is developing rapidly and the top guys here are all very busy with these development efforts. But I thought I would just float this idea.
There is an open source mathematics software system called sagemath which aims to be a viable substitute to Mathematica and Maple. The link is
There exists a latex package called sagetex, which allows using sagemath functions from within latex. The following link on ctan has some examples
http://www.ctan.org/tex-archive/macros/latex/contrib/sagetex/
Do you think it is possible to do a similar thing in Context?
Have a look at the r module in the distribtuion, m-r.tex. It does something similar, but uses R instead on sage. It should be possible to copy code from there and translate it for sage.
It would be really cool if this functionality is added to Context.
Simple things like multiplication and basic algebra can be done using calcmath. See, for example, http://www.tug.org/pipermail/tugindia/2008-December/004714.html But we should not write a CAS in lua. There are plenty of good ones out there.
What do the experts here think?
How much does it rely on SAGE. For example, one the examples in the manual says that \sage{matrix([1,2], [3,4])^2} is converted into a \begin{array} ... \end{array} block. Most likely, this conversion is done by sage. Is it possible to change a few functions in sage so that the output is in ConTeXt syntax? Regarding graphics, gnuplot tries hard to ensure that document fonts are used in plots. I don't know how easy it is to do such things with sage and R. Aditya
![](https://secure.gravatar.com/avatar/50e7e6ec58e101311283a40e60c33572.jpg?s=120&d=mm&r=g)
I will look at the packages you have suggested. But I have basically no knowledge of writing such packages and was hoping that someone here with the capability of writing such packages would be interested and would take it up, especially given that it is not very difficult. Especially, given that people have done this for 'R' and 'gnuplot'. Sage has all the capabilities of these two and much more. If people have written modules for these, I am sure a lot more people will find the sage module useful. Aditya, I think you are correct that the conversion in case of the matrix example is done by sage and as you said, changes would have to be made to sage to yield Context code rather than latex code. Thanks.
participants (3)
-
Aditya Mahajan
-
curiouslearn
-
Yue Wang