Results 1 to 5 of 5

Thread: mathematical notation in HTML

  1. #1
    Join Date
    Jun 2008
    Posts
    192
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default mathematical notation in HTML

    Please have a look at this wikipedia article: http://en.wikipedia.org/wiki/Navier-stokes. Scroll down until you see those cryptic mathematical equations.

    I would like to know if there is some kind of HTML tag that allows one to create mathematical notations such as this. Wikipedia has them setup as .png files, but it would be really convenient to be able to type them out in HTML. Can this be done?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You may use entities. See:

    http://thegorillaguide.com/Ref_Speci....html#section4

    It's not a complete list. Hunting around the web should allow you to find more. Those that don't have entities can often be made with a numeric entity.

    For instance the equivalent to symbol (≡) may be shown with:

    ≡

    or:

    ≡

    And, with the right character encoding, many - though probably not all may be used directly in your HTML code.

    But there could be browser differences, especially legacy browsers, and for browsers setup for languages other than English. Font availability might even be an issue. That's probably why Wikipedia elected to use images.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jun 2008
    Posts
    192
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default

    Thanks jscheuer1

  4. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    HTML5 also includes MathML. browser support is not great yet, however. Fx requires certain fonts, and IE <9 requires a plug-in. (I don't know about other browsers.) If you have a very narrow target audience, this might not be too much of a problem, but obviously it would be if your site was meant for the general public.

  5. #5
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    I think that's been covered by the above replies. If you're asking about mathML specifically, here's a tutorial turned up by a quick Google search.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •