Sha256: 1179863bdbee0d76a14d798635297e5b096778f60d34a731179e10eedafddc25
Contents?: true
Size: 989 Bytes
Versions: 4
Compression:
Stored size: 989 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(intent) Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: "double-struck" }, ), [parameter_one&.to_mathml_without_math_tag(intent)], ) 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
4 entries across 4 versions & 1 rubygems