Differences between revisions 11 and 12
Revision 11 as of 2013-06-25 21:12:38
Size: 2315
Editor: rbeezer
Comment:
Revision 12 as of 2013-06-25 21:17:02
Size: 2866
Editor: rbeezer
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
  1. Simple for authors to use - no more complicated logically than LaTeX.   1. Simple for authors to use - no more complicated logically than LaTeX
Line 10: Line 10:
  1. A limited number of rational tags, with simple names
  1. Minimal use of external shell scripts
Line 52: Line 55:

== Other Projects ==

 * [[http://tbookdtd.sourceforge.net/|tbook]] looks very much like what I am imagining. I have hacked a bit of it to work with the {{{xsltproc}}} processor with mixed success. Only [[http://tbookdtd.sourceforge.net/dtd/index.html|80 elements]]. But for a very short article, I have found cross-references broken and manufacturing a bibliography begins with BibTeX, so that requires some research (and shell scripts).

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
  4. A limited number of rational tags, with simple names
  5. Minimal use of external shell scripts

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
  6. 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

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.

Other Projects

  • tbook looks very much like what I am imagining. I have hacked a bit of it to work with the xsltproc processor with mixed success. Only 80 elements. But for a very short article, I have found cross-references broken and manufacturing a bibliography begins with BibTeX, so that requires some research (and shell scripts).

mathbook (last edited 2014-04-30 17:24:35 by rbeezer)