Menu

Initiate math mode based on class attribute

2002-10-12
2002-11-02
  • Stevan White

    Stevan White - 2002-10-12

    Proposal:
    Initiate displaymath mode when a <p> or <div> tag has attribute
    class="math", and inline math mode when <span> mode has attribute class="math", or if <i> or <b> tag has attribute class="mi", and finally, eqnarray mode when a table has attribute class="math".

    This would facilitate porting simple math web pages to latex.

    See my page
    <http://www.zipcon.com/~swhite/docs/math/math.html>

     
    • Peter Thatcher

      Peter Thatcher - 2002-11-02

      It would be much easier for the parser to simply support a "<MATH>" or <IMATH> or "<EQNARRAY>" Tag.  I know it wouldn't be supported by browser and HTML validators wouldn't be happy, but it woule be trivial to support that sort of use, where as the other way is doable, but would result in a little bit of nasty code.  What do you think?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.