Sha256: 6642a281ebe3afb7311ffb61c8ebd36ff87b2d3ca66df483882d688eb3533c53

Contents?: true

Size: 905 Bytes

Versions: 2

Compression:

Stored size: 905 Bytes

Contents

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

        # output methods
        def to_latex
          "\\nexists"
        end

        def to_asciimath
          parsing_wrapper("nexi")
        end

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

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

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

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