|
 |
>> Now I see why people like to use specialised editors to write this
>> stuff. ;-) Typing HTML by hand is trivial, but this stuff is just
>> mental. (!)
>
> I wish it were suipported by browsers though. I've got a handful of
> equations scattered around my website, and it would make the equations
> look a little flashier than plain text.
Which what were supported? MathML? Seems to work out of the box with
Firefox.
(Actually no, I think there were a tiny few symbols missing until I
installed the Math Fonts pack...)
Post a reply to this message
|
 |
|
 |
>>> Oh, only a Mandelbrot plotter and an LZW demo and a Huffman
>>> encoder/decoder and...
>>
>> It's not complex javascript until you start dicking with the DOM. :-)
>>
>
> I would think that a Mandelbrot plotter, an LZW demo and a Huffman
> encoder/decoder would be a /lot/ more complicated than anything you
> could do with the DOM.
Well, the LZW demo doesn't use the DOM at all. There's just a field, and
it reads the contents of that field, and modifies some other fields, all
in response to clicking a form button.
The Mandelbrot plotter, on the other hand, does use the DOM.
Specifically, I borrowed this trick from Slime: You have a grid of
invisible whitespace elements, and you use the DOM "style" property to
apply CSS styling that turns these elements different colours, greating
primitive "pixels".
Obviously, web browsers are not even slightly designed for this, so it's
horrifyingly inefficient...
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
 |
|
 |
Invisible wrote:
> With TeX, if you want to write "x" as a mathematical variable rather
> than a piece of text, you simply say "$x$". But by the power of MathML,
> if you want to do this in DocBook, you write
>
> <inlineequation>
> <math xmlns="http://www.w3c.org/1998/Math/MathML">
> <mrow><mi>x</mi></mrow>
> </math>
> <inlineequation>
>
> which is somewhat more typing.
It's also incorrect. That should be a closing tag at the bottom, and the
correct namespace URL has the domain name www.w3.org (no "c").
Post a reply to this message
|
 |