Sha256: a04a8e089d8ce8580c46844f340d0a19564178b9e79f4412bbe4a55c08d3feac
Contents?: true
Size: 807 Bytes
Versions: 12
Compression:
Stored size: 807 Bytes
Contents
# frozen_string_literal: true require_relative "../font_style" module Plurimath module Math module Function class FontStyle class Bold < FontStyle def initialize(parameter_one, parameter_two = "bold") super end def to_asciimath "mathbf(#{parameter_one&.to_asciimath})" end def to_latex "\\mathbf{#{parameter_one&.to_latex}}" end def to_mathml_without_math_tag Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: "bold" }, ), [parameter_one&.to_mathml_without_math_tag], ) end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems