Sha256: 5aebe0d8fb5f1175c5a416b5ecb3c945d445af719e34887d4560882b97169154
Contents?: true
Size: 820 Bytes
Versions: 12
Compression:
Stored size: 820 Bytes
Contents
# frozen_string_literal: true require_relative "../font_style" module Plurimath module Math module Function class FontStyle class Fraktur < FontStyle def initialize(parameter_one, parameter_two = "fraktur") super end def to_asciimath "mathfrak(#{parameter_one&.to_asciimath})" end def to_latex "\\mathfrak{#{parameter_one&.to_latex}}" end def to_mathml_without_math_tag Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: "fraktur" }, ), [parameter_one&.to_mathml_without_math_tag], ) end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems