lib/plurimath/math/function/font_style/sans-serif.rb in plurimath-0.8.14 vs lib/plurimath/math/function/font_style/sans-serif.rb in plurimath-0.8.15

- old
+ new

@@ -10,29 +10,29 @@ def initialize(parameter_one, parameter_two = "sans-serif") super end - def to_asciimath - "mathsf(#{parameter_one&.to_asciimath})" + def to_asciimath(options:) + "mathsf(#{parameter_one&.to_asciimath(options: options)})" end - def to_latex - "\\mathsf{#{parameter_one&.to_latex}}" + def to_latex(options:) + "\\mathsf{#{parameter_one&.to_latex(options: options)}}" end - def to_mathml_without_math_tag(intent) + def to_mathml_without_math_tag(intent, options:) Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: "sans-serif" }, ), - [parameter_one&.to_mathml_without_math_tag(intent)], + [parameter_one&.to_mathml_without_math_tag(intent, options: options)], ) end - def to_omml_without_math_tag(display_style) - font_styles(display_style, sty: "p", scr: "sans-serif") + def to_omml_without_math_tag(display_style, options:) + font_styles(display_style, sty: "p", scr: "sans-serif", options: options) end end end end end