MathML Library
:lang:ja 本ライブラリは、LaTeXの記法にしたがって記述された数式をMathMLに変換する処理を提供します。
:lang:en This library provide converter from LaTeX mathematical expressions to MathML.
:lang:
URLs
- Documents(Japanese)[http://mathml.rubyforge.org/ja/]
- Documents(Englise)[http://mathml.rubyforge.org/en/]
- MercurialRepository
Example
:lang:ja 例えば MathML::String による Stringクラスの拡張を使えば、次のようにして変換処理を呼び出すことが出来ます。
:lang:en For example, using extension of String class by MathML::String, you can use converter like bellow.
:lang: #!/usr/bin/ruby
require "rubygems"
require "math_ml/string" puts 'x=\frac-b\pm\sqrt{b^2-4ac}2a'.to_mathml
:lang:ja このスクリプトの出力は次のようになります。
:lang:en Output of this script is bellow.
:lang: