MathBook: An XML Application

A specification for XML tags and stylesheets to create usable output.

Design Goals:

  1. Simple for authors to use - no more complicated logically than LaTeX.
  2. Capture the structure of writing about mathematics and Sage
  3. Processing into a variety of formats

Output Formats:

  1. HTML web pages, enhanced with MathJax, Sage Cell server, knowls

  2. LaTeX input to create PDFs and print with pdflatex

  3. HTML for in-browser previewing
  4. Doctesting of Sage code examples
  5. E-Books, once technically feasible

Project Status:

Files and Examples

To use, for example, put all files in the same directory and issue

xsltproc article-latex.xsl calculus-article.xml > calculus-article.tex
pdflatex calculus-article.tex

Or you should be able to preview the source file (*.xml) by opening it in a web browser with the stylesheet (*.xsl) in the same directory. This works on some browsers, and not on others, so experiment. I have used Firefox on Ubuntu with success.