Sha256: 92945a0f5edba06f30f285a8f45bed2953dbd526f7733db98f60813d39645a6f

Contents?: true

Size: 919 Bytes

Versions: 2

Compression:

Stored size: 919 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Notin < Symbol
        INPUT = {
          unicodemath: [["notin", "&#x2209;"], parsing_wrapper(["!in", "nin"])],
          asciimath: [["notin", "!in", "&#x2209;"], parsing_wrapper(["nin"])],
          mathml: ["&#x2209;"],
          latex: [["notin", "nin", "&#x2209;"], parsing_wrapper(["!in"])],
          omml: ["&#x2209;"],
          html: ["&#x2209;"],
        }.freeze

        # output methods
        def to_latex
          "\\notin"
        end

        def to_asciimath
          "notin"
        end

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

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

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

        def to_html
          "&#x2209;"
        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/notin.rb
plurimath-0.8.11 lib/plurimath/math/symbols/notin.rb