2108
Comment:
|
2315
|
Deletions are marked like this. | Additions are marked like this. |
Line 18: | Line 18: |
1. Maybe a DocBook representation for conversion to other outputs | |
Line 40: | Line 41: |
xsltproc article-html.xsl calculus-article.xml > calculus-html.tex | xsltproc article-html.xsl calculus-article.xml > calculus-article.html |
Line 43: | Line 44: |
Alternate: issue the following to produce [[[[http://buzzard.ups.edu/mathbook/calculus-article.pdf|PDF Output]]. Sage cells are being ignored right now. A text version of these should be easy to implement. | Alternate: issue the following to produce [[[[http://buzzard.ups.edu/mathbook/calculus-article.pdf|PDF Output]]. Sage cells are being ignored right now. A textual version of these should be easy to implement. |
Line 49: | Line 50: |
Advanced: create a [[https://cloud.sagemath.ocom|Sage Cloud]] worksheet from the same source. I have this working in the lab. |
MathBook: An XML Application
A specification for XML tags and stylesheets to create usable output.
Design Goals:
- Simple for authors to use - no more complicated logically than LaTeX.
- Capture the structure of writing about mathematics and Sage
- Processing into a variety of formats
Output Formats:
HTML web pages, enhanced with MathJax, Sage Cell server, knowls
LaTeX input to create PDFs and print with pdflatex
- HTML for in-browser previewing
- Doctesting of Sage code examples
- E-Books, once technically feasible
Maybe a DocBook representation for conversion to other outputs
Project Status:
- Funding: Shuttleworth Foundation Flash Grant, National Science Foundation UTMOST Grant
- Mid-June 2013: initiated, not mature or stable
Files and Examples
Updated: June 25, 2013
- (Use your browser to save these files locally, do not simply click on them)
Easiest: you should be able to preview the source file (calculus-article.xml) by opening it in a web browser with the stylesheet (article-html.xsl) in the same directory. This works on some browsers, and not on others, so experiment. I have used Firefox on Ubuntu with success.
Easy: use the following command to create XHTML output and view in your browser by opening the output file, which should look like: XHTML Output. MathJax does the math, Sage Cell Server does the code.
xsltproc article-html.xsl calculus-article.xml > calculus-article.html
Alternate: issue the following to produce PDF Output. Sage cells are being ignored right now. A textual version of these should be easy to implement.
xsltproc article-latex.xsl calculus-article.xml > calculus-article.tex pdflatex calculus-article.tex
Advanced: create a Sage Cloud worksheet from the same source. I have this working in the lab.