Sha256: 37e3608b649640fb024b872331369138d1be5b9a7f7891f8f56516f63811a36a

Contents?: true

Size: 933 Bytes

Versions: 7

Compression:

Stored size: 933 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Gtrless < Symbol
        INPUT = {
          unicodemath: [["gtrless", "&#x2277;"], parsing_wrapper(["GreaterLess"])],
          asciimath: [["&#x2277;"], parsing_wrapper(["gtrless", "GreaterLess"])],
          mathml: ["&#x2277;"],
          latex: [["GreaterLess", "gtrless", "&#x2277;"]],
          omml: ["&#x2277;"],
          html: ["&#x2277;"],
        }.freeze

        # output methods
        def to_latex
          "\\GreaterLess"
        end

        def to_asciimath
          parsing_wrapper("gtrless")
        end

        def to_unicodemath
          Utility.html_entity_to_unicode("&#x2277;")
        end

        def to_mathml_without_math_tag
          ox_element("mi") << "&#x2277;"
        end

        def to_omml_without_math_tag(_)
          "&#x2277;"
        end

        def to_html
          "&#x2277;"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/gtrless.rb
plurimath-0.8.9 lib/plurimath/math/symbols/gtrless.rb
plurimath-0.8.8 lib/plurimath/math/symbols/gtrless.rb
plurimath-0.8.7 lib/plurimath/math/symbols/gtrless.rb
plurimath-0.8.6 lib/plurimath/math/symbols/gtrless.rb
plurimath-0.8.5 lib/plurimath/math/symbols/gtrless.rb
plurimath-0.8.4 lib/plurimath/math/symbols/gtrless.rb