Sha256: fbc05caa1bb63ba01bf529e042db4d4be198600d8faaa319d131c9a9f6b06cd8

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\vectimes"
        end

        def to_asciimath
          parsing_wrapper("vectimes")
        end

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

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

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

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