Sha256: fa0d102345c6062c4be2abafc9806e4f080daa2d71d6c2450a8b288439ce89e9

Contents?: true

Size: 959 Bytes

Versions: 2

Compression:

Stored size: 959 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftarrowbackapprox"
        end

        def to_asciimath
          parsing_wrapper("leftarrowbackapprox")
        end

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

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

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

        def to_html
          "&#x2b42;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.12 lib/plurimath/math/symbols/leftarrowbackapprox.rb
plurimath-0.8.11 lib/plurimath/math/symbols/leftarrowbackapprox.rb