Sha256: f74f527beec8db31fc83ebd79be28219ce7baab115492e3c081549eea8e86b9f

Contents?: true

Size: 802 Bytes

Versions: 4

Compression:

Stored size: 802 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class In < Symbol
        INPUT = {
          unicodemath: [["in", "&#x2208;"]],
          asciimath: [["in", "&#x2208;"]],
          mathml: ["&#x2208;"],
          latex: [["in", "&#x2208;"]],
          omml: ["&#x2208;"],
          html: ["&#x2208;"],
        }.freeze

        # output methods
        def to_latex
          "\\in"
        end

        def to_asciimath
          "in"
        end

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

        def to_mathml_without_math_tag(_)
          ox_element("mo") << "&#x2208;"
        end

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

        def to_html
          "&#x2208;"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/in.rb
plurimath-0.8.13 lib/plurimath/math/symbols/in.rb
plurimath-0.8.12 lib/plurimath/math/symbols/in.rb
plurimath-0.8.11 lib/plurimath/math/symbols/in.rb