Sha256: ef058225481be717feec38c965e2db2de9d81b570c2aca2ce16c69b9a122b4f2
Contents?: true
Size: 1.03 KB
Versions: 14
Compression:
Stored size: 1.03 KB
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(options:) "mathbf(#{parameter_one&.to_asciimath(options: options)})" end def to_latex(options:) "\\mathbf{#{parameter_one&.to_latex(options: options)}}" end def to_mathml_without_math_tag(intent, options:) Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: "bold" }, ), [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: "b", options: options) end end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems