Sha256: 04af3de50705141694a1e39590cdb76057c254e4db9f147a3defb95fda9bd4ae
Contents?: true
Size: 977 Bytes
Versions: 4
Compression:
Stored size: 977 Bytes
Contents
# frozen_string_literal: true require_relative "../font_style" module Plurimath module Math module Function class FontStyle class SansSerif < FontStyle def initialize(parameter_one, parameter_two = "sans-serif") super end def to_asciimath "mathsf(#{parameter_one&.to_asciimath})" end def to_latex "\\mathsf{#{parameter_one&.to_latex}}" end def to_mathml_without_math_tag(intent) Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: "sans-serif" }, ), [parameter_one&.to_mathml_without_math_tag(intent)], ) end def to_omml_without_math_tag(display_style) font_styles(display_style, sty: "p", scr: "sans-serif") end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems