MathML Files: DSSSL style sheet for MathML
David Carlisle
Copyright 1998 NAG Ltd
The OpenMath Consortium. Esprit Project 24.969
Introduction
This page introduces several files relating to parsing
MathML in an SGML/XML system, and DSSSL style sheets which
may be used to render the Mathematics to TeX or to RTF (For Microsoft
Word, for example).
These files are being released to allow discussion.
They are not in final form. In particular the spacing
and font choice is usually wrong, as so far most effort has
been on recognising the structure of MathML.
Comments should be directed at the author of these files,
David Carlisle.
In the first section are several entity declarations for
MathML symbol sets, this is followed by a second section
with the DSSSL style sheet and supporting examples and scripts.
The individual files may be retrieved or alternatively
you may take a zip archive of all the
files in the directory.
SGML/XML Entity Declarations for MathML
The files in this directory are DTD fragments specifying entities
required for MathML. Mainly these are for mathematical symbols and
are declared as CDATA entities giving the unicode position.
The files were mainly automatically generated from the HTML tables
given in the MathML recommendation, with some hand correction.
The conversion script and the conversions themselves are copyright 1998
NAG and the OpenMath Consortium, as given in the comments in the files.
The files themselves may be freely used as long as the copyright notice
is preserved.
Most of the files were generated from the `extended' tables in which the
ISO names have been augmented with MathML aliases. The
Emacs Lisp file
used for conversion is also available.
DSSSL Style sheet
SGML/XML
- mathml.dtd
DTD from Appendix A of the MathML recommendation
(slightly edited).
- mathmlx.dtd
DTD for a rather minimal document type that supports
displayed MathML examples interspersed with text paragraphs.
(This file contains the DOCTYPE declaration, so needs to be
prepended on to a file containing the document instance.
Probably not the best way of setting this up, but sufficient for
this example.)
- xml.dcl
SGML Declaration for XML. (Unchanged from the Jade distribution).
DSSSL
- mathml.dsl
DSSSL fragment that purports to render the elements of MathML.
- mathmlx.dsl
DSSSL Style sheet for the elements of mathmlx.dtd.
Includes mathml.dsl via an entity reference.
It also defines a few debugging functions, and functions
in the DSSSL standard, but not implemented in Jade.
- dblib.dsl
The library file from Norman Walsh's docbook style sheets.
dblib.dsl 1.7 1998/05/06 15:04:0
Supporting Scripts
- jmml
Script (batch file) which given a file as argument, calls jade
with suitable arguments to process the file to produce TeX.
- jmmlr
Script (batch file) which given a file as argument, calls jade
with suitable arguments to process the file to produce RTF.
The RTF coming from Jade is further modified by the small
script below.
- rtffix
Even if min-leading is set, the displayed math always
appears in the rtf clipped to a 12pt `exact' baseline.
This script just edits it to be `at least'.
It just changes the sign of a number which appears before each
display. If you don't have sed, you can load the file in to word
and alter the paragraph properties of each math display to change the
baseline spacing.
- jadetex.cfg
Some further modifications required for the TeX backend.
This requires a recent patched TeX backend as distributed
by Sebastian
Rahtz.
Examples
[ NAG Home : GuestBook ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1998