Sha256: da69f2b6616cac7e66eef8b4ba4288314350832583d43c6566c55005ea7d752c

Contents?: true

Size: 951 Bytes

Versions: 2

Compression:

Stored size: 951 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Gtrapprox < Symbol
        INPUT = {
          unicodemath: [["&#x2a86;"], parsing_wrapper(["gtrapprox"], lang: :unicode)],
          asciimath: [["&#x2a86;"], parsing_wrapper(["gtrapprox"], lang: :asciimath)],
          mathml: ["&#x2a86;"],
          latex: [["gtrapprox", "&#x2a86;"]],
          omml: ["&#x2a86;"],
          html: ["&#x2a86;"],
        }.freeze

        # output methods
        def to_latex
          "\\gtrapprox"
        end

        def to_asciimath
          parsing_wrapper("gtrapprox", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2a86;"
        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/gtrapprox.rb
plurimath-0.8.13 lib/plurimath/math/symbols/gtrapprox.rb