Last Modified
2013-08-06 06:26:58 +0000
Requires
  • itex2MML
  • thread

Description

Ruby module for itex2MML

Installation


1. You need SWIG (>= 1.3) and GNU Make to install
   the Ruby module.
2. Then type:
        make ruby
         make test_ruby
        make install_ruby
3. This module can then be invoked like:

        require 'itextomml'

        itex = Itex2MML::Parser.new
        itex.html_filter(string)

Usage


There are four public methods

 itex.html_filter(a_string)
         converts all itex equations in a_string to MathML, passing the
         rest of a_string unmodified. Returns the converted string. 

 itex.filter(a_string)
         converts all itex equations in a_string to MathML. Returns just
         the MathML equation(s), as a string.

 itex.inline_filter(a_string)
         treats a_string as an inline equation (automatically supplies
         the surrounding $...$, so you don't have to) and converts it
         MathML. Returns the MathML inline equation, as a string.

 itex.block_filter(a_string)
         treats a_string as a block equation (automatically supplies
         the surrounding $$...$$, so you don't have to) and converts it
         MathML. Returns the MathML block equation, as a string.

Authors: Justin Bonnar <jbonnar@berkeley.edu>

Jacques Distler <distler@golem.ph.utexas.edu>

Placed in the Public Domain