469,317 Members | 1,940 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,317 developers. It's quick & easy.

Canonical Science Today, rendering mathematics with CSS

Since the idea of encoding mathematics using MathML is being very far
from popular due to a number of factors -expensive tools, bad
accesibility of generated code, unusual verbosity, lack of adequate
support, special fonts, namespaces, special plugins, backward
incompatiblity of MathML with other internet technologies, duplication
of code, and others-, alternative encodings are spreading over the
internet.

Probably the most popular one is the use of GIF images generated from
TeX-like sources. However, the usage of images introduces difficulties
for both authors and users. Images do not scale, are not searchable,
are not accesible and cannot be directly edited (you need edit the TeX
source and upload the document with a nev generated image); images are
heavy for servers, cannot be easily reused with changes in background
colors, resizing displays, usually the printing of images of formulae
is unpleasant...

An interesting alternative approach is on rendering of mathematical
formulae via CSS techniques. A future CSS math module would improve our
capacity to render arbitrarily complex formulae, however, today we can
render a lot of math using available CSS 2.1 standard and current
browsers.

### CSS quality rendering ###
Some people expressed its doubts about the capabilities of CSS for
rendering mathematics and claimed that only a full presentational
markup -in the style of presentation MathML- would be good enough. As
said in the WHATWG list for next HTML5 one can provide MathML rendering
quality with CSS.

I have uploaded screenshots of some mathematical formulae rendered with
both presentational MathML 2.0 and HTML with CSS 2.1. What is MathML?
What is CSS rendering?

Of course, more complex formulae could be also rendered with CSS. For
example nested fractions are not limited to 2 levels.

In future postings I will present examples of formulae are correctly
rendered with CSS thecnique but fail with MathML native browser and,
also, examples of MathML formulae that in theory would be correctly
rendered but in practice -due to limitations on current implementations
and tools- are best rendered via CSS.
Source:
http://canonicalscience.blogspot.com...l-via-css.html
--

Juan R.

Center for CANONICAL |SCIENCE)

Jul 4 '06 #1
0 1190

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

699 posts views Thread by mike420 | last post: by
16 posts views Thread by Forrest | last post: by
45 posts views Thread by John Salerno | last post: by
56 posts views Thread by Omar | last post: by
1 post views Thread by zzz | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.