Sha256: b1ae73b6b86ea122b8c9b04918afa036d71227955c34c07555b87cf620baba0b
Contents?: true
Size: 986 Bytes
Versions: 2
Compression:
Stored size: 986 Bytes
Contents
module Plurimath module Math module Symbols class Hbar < Symbol INPUT = { unicodemath: [["hbar", "ℏ"], parsing_wrapper(["hslash"], lang: :unicode)], asciimath: [["ℏ"], parsing_wrapper(["hbar", "hslash"], lang: :asciimath)], mathml: ["ℏ"], latex: [["hslash", "ℏ"], parsing_wrapper(["hbar"], lang: :latex)], omml: ["ℏ"], html: ["ℏ"], }.freeze # output methods def to_latex "\\hslash" end def to_asciimath parsing_wrapper("hbar", lang: :asciimath) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
plurimath-0.8.14 | lib/plurimath/math/symbols/hbar.rb |
plurimath-0.8.13 | lib/plurimath/math/symbols/hbar.rb |