ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 27 Apr 2018 12:58:02 -0500Math document containing some Sage calculationshttp://ask.sagemath.org/question/40608/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.
Sun, 14 Jan 2018 18:40:03 -0600http://ask.sagemath.org/question/40608/math-document-containing-some-sage-calculations/Answer by Adrian soto for <p>I need to write a short math text draft containing some Sage calculations. (I am a Sage novice.)</p>
<p>What software (or software combinations) you may suggest to do this?</p>
<p>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.</p>
<p>I prefer interactive software rather than LaTeX for this task.</p>
http://ask.sagemath.org/question/40608/math-document-containing-some-sage-calculations/?answer=40759#post-id-40759There 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.
In the meantime, inside the following link you could download the file adriansage2.tar.gz.
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/texmacs-users/2018-01/msg00064.htmlWed, 24 Jan 2018 05:01:57 -0600http://ask.sagemath.org/question/40608/math-document-containing-some-sage-calculations/?answer=40759#post-id-40759Comment by slelievre for <p>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.</p>
<p>In the meantime, inside the following link you could download the file adriansage2.tar.gz.</p>
<p>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.</p>
<p><a href="http://lists.texmacs.org/wws/arc/texmacs-users/2018-01/msg00064.html">http://lists.texmacs.org/wws/arc/texm...</a></p>
http://ask.sagemath.org/question/40608/math-document-containing-some-sage-calculations/?comment=42195#post-id-42195Yes, the TeXmacs project is still active. See the mailing lists activity.
- TeXmacs-info
- home: [http://lists.texmacs.org/wws/info/texmacs-info](http://lists.texmacs.org/wws/info/texmacs-info)
- archive: [http://lists.texmacs.org/wws/arc/texmacs-info](http://lists.texmacs.org/wws/arc/texmacs-info)
- TeXmacs-users
- home: [http://lists.texmacs.org/wws/info/texmacs-users](http://lists.texmacs.org/wws/info/texmacs-users)
- archive: [http://lists.texmacs.org/wws/arc/texmacs-users](http://lists.texmacs.org/wws/arc/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.Fri, 27 Apr 2018 12:58:02 -0500http://ask.sagemath.org/question/40608/math-document-containing-some-sage-calculations/?comment=42195#post-id-42195Comment by pang for <p>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.</p>
<p>In the meantime, inside the following link you could download the file adriansage2.tar.gz.</p>
<p>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.</p>
<p><a href="http://lists.texmacs.org/wws/arc/texmacs-users/2018-01/msg00064.html">http://lists.texmacs.org/wws/arc/texm...</a></p>
http://ask.sagemath.org/question/40608/math-document-containing-some-sage-calculations/?comment=40833#post-id-40833Is 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.Sun, 28 Jan 2018 16:35:35 -0600http://ask.sagemath.org/question/40608/math-document-containing-some-sage-calculations/?comment=40833#post-id-40833Answer by tmonteil for <p>I need to write a short math text draft containing some Sage calculations. (I am a Sage novice.)</p>
<p>What software (or software combinations) you may suggest to do this?</p>
<p>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.</p>
<p>I prefer interactive software rather than LaTeX for this task.</p>
http://ask.sagemath.org/question/40608/math-document-containing-some-sage-calculations/?answer=40631#post-id-40631Personally, 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.
Mon, 15 Jan 2018 16:22:11 -0600http://ask.sagemath.org/question/40608/math-document-containing-some-sage-calculations/?answer=40631#post-id-40631Comment by pang for <p>Personally, i like the following combo when organizing tutorials:</p>
<ul>
<li>write your document in <code>.rst</code> format (same format as Sage documentation and thematic tutorials, and it is pure text, good for versionning)</li>
<li>compile into static pdf with <code>rst2latex</code> followed by <code>pdflatex</code> (for printing)</li>
<li>compile into live jupyter notebook with <code>rst2ipynb</code> (for interacting with the computation cells)</li>
</ul>
<p>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 <code>retext</code>.</p>
<p>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.</p>
http://ask.sagemath.org/question/40608/math-document-containing-some-sage-calculations/?comment=40832#post-id-40832Note that you must install rst2ipynb:
sage -i rst2pynb
Then you can use it
sage -rst2ipynb source.rst out.ipynbSun, 28 Jan 2018 16:26:53 -0600http://ask.sagemath.org/question/40608/math-document-containing-some-sage-calculations/?comment=40832#post-id-40832Comment by kcrisman for <p>Personally, i like the following combo when organizing tutorials:</p>
<ul>
<li>write your document in <code>.rst</code> format (same format as Sage documentation and thematic tutorials, and it is pure text, good for versionning)</li>
<li>compile into static pdf with <code>rst2latex</code> followed by <code>pdflatex</code> (for printing)</li>
<li>compile into live jupyter notebook with <code>rst2ipynb</code> (for interacting with the computation cells)</li>
</ul>
<p>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 <code>retext</code>.</p>
<p>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.</p>
http://ask.sagemath.org/question/40608/math-document-containing-some-sage-calculations/?comment=40637#post-id-40637To be equal, I should say this is a good solution too and perhaps better for the use case mentioned.Mon, 15 Jan 2018 20:09:51 -0600http://ask.sagemath.org/question/40608/math-document-containing-some-sage-calculations/?comment=40637#post-id-40637Answer by vdelecroix for <p>I need to write a short math text draft containing some Sage calculations. (I am a Sage novice.)</p>
<p>What software (or software combinations) you may suggest to do this?</p>
<p>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.</p>
<p>I prefer interactive software rather than LaTeX for this task.</p>
http://ask.sagemath.org/question/40608/math-document-containing-some-sage-calculations/?answer=40621#post-id-40621Solution 1: [sagetex](http://doc.sagemath.org/html/en/tutorial/sagetex.html). This is to embbed Sage computation in a LaTeX document.
Solution 2: [pretext](https://mathbook.pugetsound.edu/). 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.Mon, 15 Jan 2018 11:03:55 -0600http://ask.sagemath.org/question/40608/math-document-containing-some-sage-calculations/?answer=40621#post-id-40621Comment by kcrisman for <p>Solution 1: <a href="http://doc.sagemath.org/html/en/tutorial/sagetex.html">sagetex</a>. This is to embbed Sage computation in a LaTeX document.</p>
<p>Solution 2: <a href="https://mathbook.pugetsound.edu/">pretext</a>. 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.</p>
http://ask.sagemath.org/question/40608/math-document-containing-some-sage-calculations/?comment=40636#post-id-40636Haha, you took exactly what I would have said :-)Mon, 15 Jan 2018 20:08:43 -0600http://ask.sagemath.org/question/40608/math-document-containing-some-sage-calculations/?comment=40636#post-id-40636