Sha256: 0c82d21414274522e0e0928193dd13bc2cd66f5c0fe02376f5a42973a79d9c0e
Contents?: true
Size: 1.04 KB
Versions: 10
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true require_relative "../font_style" module Plurimath module Math module Function class FontStyle class Script < FontStyle def initialize(parameter_one, parameter_two = "script") super end def to_asciimath(options:) "mathcal(#{parameter_one&.to_asciimath(options: options)})" end def to_latex(options:) "\\mathcal{#{parameter_one&.to_latex(options: options)}}" end def to_mathml_without_math_tag(intent, options:) Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: "script" }, ), [parameter_one&.to_mathml_without_math_tag(intent, options: options)], ) end def to_omml_without_math_tag(display_style, options:) font_styles(display_style, scr: "script", options: options) end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems