Sha256: a70a1f5041ee05289b46efb2ae7e037b401ccf41d325d4978ebeb08ad6555bae
Contents?: true
Size: 971 Bytes
Versions: 2
Compression:
Stored size: 971 Bytes
Contents
# frozen_string_literal: true require_relative "binary_function" module Plurimath module Math module Function class FontStyle < BinaryFunction def to_asciimath parameter_one&.to_asciimath end def to_mathml_without_math_tag first_value = parameter_one&.to_mathml_without_math_tag Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: parameter_two }, ), [first_value], ) end def to_omml_without_math_tag r_tag = Utility.ox_element("r", namespace: "m") Utility.update_nodes(r_tag, parameter_one&.insert_t_tag) [r_tag] end def to_html parameter_one&.to_html end def to_latex parameter_one&.to_latex end def validate_function_formula true end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
plurimath-0.3.7 | lib/plurimath/math/function/font_style.rb |
plurimath-0.3.6 | lib/plurimath/math/function/font_style.rb |