Sha256: 413179505a069b2c316cea1f950d3e87f6d0c50b72667061a947e351c2245158

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\tminus"
        end

        def to_asciimath
          parsing_wrapper("tminus")
        end

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

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

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

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