Sha256: 47a692264aa00c94bf3c4d4e59a4d199d37631756067099337cd8ff9e2f37608
Contents?: true
Size: 815 Bytes
Versions: 12
Compression:
Stored size: 815 Bytes
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 "mathcal(#{parameter_one&.to_asciimath})" end def to_latex "\\mathcal{#{parameter_one&.to_latex}}" end def to_mathml_without_math_tag Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: "script" }, ), [parameter_one&.to_mathml_without_math_tag], ) end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems