Sha256: 4bd0334776f98296deb2b132cfe093e0f736d2afdf3c612248617a73bd17e1f0
Contents?: true
Size: 1.06 KB
Versions: 9
Compression:
Stored size: 1.06 KB
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(options:) "mathsf(#{parameter_one&.to_asciimath(options: options)})" end def to_latex(options:) "\\mathsf{#{parameter_one&.to_latex(options: options)}}" end 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, options: options)], ) end 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 end
Version data entries
9 entries across 9 versions & 1 rubygems