Using MATHML in HTML: Answers for Novice Web Builders

  • Context: HTML/CSS 
  • Thread starter Thread starter neurocomp2003
  • Start date Start date
  • Tags Tags
    Html
Click For Summary

Discussion Overview

The discussion centers around the use of MathML in HTML for displaying mathematical content on websites. Participants explore whether MathML is the only option available, how to integrate it into HTML, and alternative methods for presenting mathematical expressions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant questions if MathML is the only web language for mathematical content and seeks guidance on its integration into HTML.
  • Another participant explains that MathML is XML-based and suggests modifying HTML to include an XML header, noting the need for plugins like MathPlayer for proper display.
  • Some participants propose avoiding MathML altogether, suggesting alternatives such as converting equations into images or using tools like EzMath, which also require specific plugins.
  • There is mention of using standard HTML techniques, such as tables, to position mathematical symbols, with a discussion on font dependencies for displaying certain symbols in Internet Explorer.
  • One participant suggests using LaTeX to create mathematical expressions, converting them to GIFs for insertion into web pages, claiming it is faster than MathML.

Areas of Agreement / Disagreement

Participants express differing opinions on the necessity and practicality of MathML, with some advocating for its use while others suggest alternative methods. The discussion remains unresolved regarding the best approach for integrating mathematical content into web pages.

Contextual Notes

Participants highlight limitations related to browser compatibility, the need for plugins, and font dependencies that affect the display of mathematical symbols.

neurocomp2003
Messages
1,359
Reaction score
4
hey, novice building a science website...
is mathml the only web language?

If so how do you integrate it into html? is there an external program i need to use it? Or should it be defaulted into the IE/moz browers. I've seen the MATHML website that dduardo linked to but maybe its late, i found how to script MATHML but i can't seem to find how to integrate it into the text of a html file OR if you can..

thanks in advance.
neurocomp2003
 
Technology news on Phys.org
MathML is an XML based language, and so needs to be part of an xml page rather than an html page. Usually this means just modifying your html page to give it an xml header and making sure all elements have closing tags.

Also, anyone reading your website will probably need to have installed a plugin such as MathPlayer for their browsers to be able to display MathML.
 
As for alternative ways of showing mathematical equations, most websites convert them into images for display.

I did come across EzMath, which gives a simpler way of coding expressions. Again this needs a plugin for the browser, and unfortunately this is a 'Netscape' plugin and doesn't seem to work with Internet Explorer.

You can also try to use standard HTML, using tables and the like to get symbols in the right place. See the text accompaning my Coupled Pendulums applet for an example of this.

I would also point out that Internet Explorer doesn't display all of the symbols you are likely to require, although it can be made to. For instance after much trial and error I found it would display [tex]\nabla[/tex] or [tex]\in[/tex] if I had the MS Mincho font installed, while to display [tex]\notin[/tex] (which you would think would be the same as [tex]\in[/tex] ), I had to set the font in the html code to 'Lucida sans Unicode'. See how they come out on your system [tex]\nabla[/tex]=∇,[tex]\in[/tex]= ∈, [tex]\notin[/tex]=∉ ,[tex]\notin[/tex]=∉ (with font set in html)
 
you could use LaTeX and take the resulting PDF and export it to a GIF and insert those to the page. LaTeX is much faster to type out that mathML.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 4 ·
Replies
4
Views
7K
Replies
4
Views
11K