Sha256: 621085def1557f50650dd92dc990c49b7f32c1bb2046d56b540de25500a76753
Contents?: true
Size: 973 Bytes
Versions: 19
Compression:
Stored size: 973 Bytes
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 "mathbb(#{parameter_one&.to_asciimath})" end def to_latex "\\mathbb{#{parameter_one&.to_latex}}" end def to_mathml_without_math_tag Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: "double-struck" }, ), [parameter_one&.to_mathml_without_math_tag], ) end def to_omml_without_math_tag(display_style) font_styles(display_style, sty: nil, scr: "double-struck") end end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems