Sha256: 78ccb218e4f80c1edc212ddeb5a330ba0cc97c5bf861f6e380edc670e9da2984

Contents?: true

Size: 913 Bytes

Versions: 7

Compression:

Stored size: 913 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftrightarrows"
        end

        def to_asciimath
          parsing_wrapper("leftrightarrows")
        end

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

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

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

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