Sha256: 8cbd5c060b60419af196340c312ec32c6511095a96af4f76ad3a8b7d61851bbb

Contents?: true

Size: 882 Bytes

Versions: 7

Compression:

Stored size: 882 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Ltimes < Symbol
        INPUT = {
          unicodemath: [["ltimes", "&#x22c9;"], parsing_wrapper(["|><"])],
          asciimath: [["ltimes", "|><", "&#x22c9;"]],
          mathml: ["&#x22c9;"],
          latex: [["ltimes", "&#x22c9;"], parsing_wrapper(["|><"])],
          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

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/ltimes.rb
plurimath-0.8.9 lib/plurimath/math/symbols/ltimes.rb
plurimath-0.8.8 lib/plurimath/math/symbols/ltimes.rb
plurimath-0.8.7 lib/plurimath/math/symbols/ltimes.rb
plurimath-0.8.6 lib/plurimath/math/symbols/ltimes.rb
plurimath-0.8.5 lib/plurimath/math/symbols/ltimes.rb
plurimath-0.8.4 lib/plurimath/math/symbols/ltimes.rb