Sha256: 1572d87f722f996b192ebff1c260873c5313f6d0e0258a7db81b4089e3a2e191

Contents?: true

Size: 915 Bytes

Versions: 2

Compression:

Stored size: 915 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Ltimes < Symbol
        INPUT = {
          unicodemath: [["ltimes", "&#x22c9;"], parsing_wrapper(["|><"], lang: :unicode)],
          asciimath: [["ltimes", "|><", "&#x22c9;"]],
          mathml: ["&#x22c9;"],
          latex: [["ltimes", "&#x22c9;"], parsing_wrapper(["|><"], lang: :latex)],
          omml: ["&#x22c9;"],
          html: ["&#x22c9;"],
        }.freeze

        # output methods
        def to_latex
          "\\ltimes"
        end

        def to_asciimath
          "ltimes"
        end

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

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

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

        def to_html
          "&#x22c9;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/ltimes.rb
plurimath-0.8.13 lib/plurimath/math/symbols/ltimes.rb