Sha256: 803e8dc92b97dcb72a216cef109bfb695b05562aa5dd412462e1868a5416c652

Contents?: true

Size: 887 Bytes

Versions: 7

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\lambda"
        end

        def to_asciimath
          "lambda"
        end

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

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

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

        def to_html
          "&#x3bb;"
        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/lambda.rb
plurimath-0.8.9 lib/plurimath/math/symbols/lambda.rb
plurimath-0.8.8 lib/plurimath/math/symbols/lambda.rb
plurimath-0.8.7 lib/plurimath/math/symbols/lambda.rb
plurimath-0.8.6 lib/plurimath/math/symbols/lambda.rb
plurimath-0.8.5 lib/plurimath/math/symbols/lambda.rb
plurimath-0.8.4 lib/plurimath/math/symbols/lambda.rb