Sha256: 97a971b004acfc9d01ecab4b975f0b37322eba75b4ba56b9791485cbec4c25cb
Contents?: true
Size: 1.08 KB
Versions: 9
Compression:
Stored size: 1.08 KB
Contents
# frozen_string_literal: true require_relative "../font_style" module Plurimath module Math module Function class FontStyle class DoubleStruck < FontStyle def initialize(parameter_one, parameter_two = "double-struck") super end def to_asciimath(options:) "mathbb(#{parameter_one&.to_asciimath(options: options)})" end def to_latex(options:) "\\mathbb{#{parameter_one&.to_latex(options: options)}}" end def to_mathml_without_math_tag(intent, options:) Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: "double-struck" }, ), [parameter_one&.to_mathml_without_math_tag(intent, options: options)], ) end def to_omml_without_math_tag(display_style, options:) font_styles(display_style, sty: nil, scr: "double-struck", options: options) end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems