# Math document containing some Sage calculations

I need to write a short math text draft containing some Sage calculations. (I am a Sage novice.)

What software (or software combinations) you may suggest to do this?

Is it possible to do with TeXmacs? If yes, does it require to install any TeXmacs addons? I tried wiki.sagemath.org/TeXmacs but it does not work (does not appear in the list of installed plugins) with my version of TeXmacs.

I prefer interactive software rather than LaTeX for this task.

edit retag close merge delete

Sort by » oldest newest most voted

Personally, i like the following combo when organizing tutorials:

• write your document in .rst format (same format as Sage documentation and thematic tutorials, and it is pure text, good for versionning)
• compile into static pdf with rst2latex followed by pdflatex (for printing)
• compile into live jupyter notebook with rst2ipynb (for interacting with the computation cells)

Regarding edition, i use a text editor (vim), but if you like to see the rendering on the fly, you can use .rst editors like retext.

I have some dirty bash scripts to automate that (and pass nice rendering options, and convenient headers), do not hesitate to ask if you plan to use that method.

more

To be equal, I should say this is a good solution too and perhaps better for the use case mentioned.

( 2018-01-15 20:09:51 -0500 )edit
1

Note that you must install rst2ipynb:

sage -i rst2pynb


Then you can use it

sage -rst2ipynb source.rst out.ipynb

( 2018-01-28 16:26:53 -0500 )edit

Solution 1: sagetex. This is to embbed Sage computation in a LaTeX document.

Solution 2: pretext. This is much more general and designed to write books. It can be used to produce LaTeX but also html pages with embbeded Sage cells.

more

Haha, you took exactly what I would have said :-)

( 2018-01-15 20:08:43 -0500 )edit

There is a plugin for sage in TeXmacs. It needs some work to make it have the same functionality as that for Python, and to have it work both in Windows as in LInux or Mac.

If you use LInux, you may try to uncompress and download the file in the plugins directory of your .TeXmacs directory to see if it recognizes your sage instalation (assuming sage is discoverable from the path) and perhaps this allows you to practice a bit.

http://lists.texmacs.org/wws/arc/texm...

more

Is TeXmacs still alive? I loved that thing, but it is no longer in the ubuntu repos and I cannot install it from source. It looks abandoned.

( 2018-01-28 16:35:35 -0500 )edit
1

Yes, the TeXmacs project is still active. See the mailing lists activity.

• TeXmacs-info

• TeXmacs-users

The last message on the "texmacs-info" mailing list was in Dec 2017, announcing the release of TeXmacs 1.99.6.

The "texmacs-users" mailing list shows activity over the months.

( 2018-04-27 12:58:02 -0500 )edit