Sha256: 8ab9e25441636f7f8178cab070c08cd4695a24f5fdc3060011cb5bdd54089f9d
Contents?: true
Size: 926 Bytes
Versions: 1
Compression:
Stored size: 926 Bytes
Contents
module Plurimath module Math module Symbols class Pi < Symbol INPUT = { unicodemath: ["pi", "π", "𝜋", parsing_wrapper(["uppi"])], asciimath: ["pi", "π", "𝜋", parsing_wrapper(["uppi"])], mathml: ["π", "𝜋"], latex: ["pi", "uppi", "π", "𝜋"], omml: ["π", "𝜋"], html: ["π", "𝜋"], }.freeze # output methods def to_latex "\\pi" end def to_asciimath "pi" end def to_unicodemath Utility.html_entity_to_unicode("π") end def to_mathml_without_math_tag(_) ox_element("mi") << "π" end def to_omml_without_math_tag(_) "π" end def to_html "π" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
plurimath-0.8.12 | lib/plurimath/math/symbols/pi.rb |