Module: Mathematical::Corrections
- Included in:
- Mathematical
- Defined in:
- lib/mathematical/corrections.rb
Instance Method Summary collapse
-
#adjust_lt_gt(maths) ⇒ Object
from the itex website: bit.ly/1Et74ed It is possible (though probably not recommended) to insert MathML markup inside itex equations.
- #apply_corrections(maths) ⇒ Object
Instance Method Details
#adjust_lt_gt(maths) ⇒ Object
from the itex website: bit.ly/1Et74ed It is possible (though probably not recommended) to insert MathML markup inside itex equations. So “<” and “>” are significant. To obtain a less-than or greater-than sign, you should use lt or gt, respectively.
13 14 15 |
# File 'lib/mathematical/corrections.rb', line 13 def adjust_lt_gt(maths) maths.gsub("<", '\lt').gsub(">", '\gt') end |
#apply_corrections(maths) ⇒ Object
5 6 7 |
# File 'lib/mathematical/corrections.rb', line 5 def apply_corrections(maths) adjust_lt_gt(maths) end |