instiki/vendor/plugins/maruku/lib/maruku/ext/math.rb
Jacques Distler 9b7b6fb805 Latest Maruku and Tweak for itex2MML 1.3.4
Instiki's LaTeX output also supports \Perp.
2008-02-29 01:30:46 -06:00

41 lines
858 B
Ruby

require 'maruku/ext/math/elements'
require 'maruku/ext/math/parsing'
require 'maruku/ext/math/to_latex'
require 'maruku/ext/math/to_html'
require 'maruku/ext/math/mathml_engines/none'
require 'maruku/ext/math/mathml_engines/ritex'
require 'maruku/ext/math/mathml_engines/itex2mml'
require 'maruku/ext/math/mathml_engines/blahtex'
=begin maruku_doc
Attribute: math_enabled
Scope: global, document
Summary: Enables parsing of LaTeX math
To explicitly disable the math parsing:
Maruku.new(string, {:math_enabled => false})
{:ruby}
=end
MaRuKu::Globals[:math_enabled] = true
=begin maruku_doc
Attribute: math_numbered
Scope: global, document
Summary: Math openings which should be numerated
Array containing any of `'\\['`, `'\\begin{equation}'`, `'$$'`.
MaRuKu::Globals[:math_numbered] = ['\\[']
=end
MaRuKu::Globals[:math_numbered] = []