Sha256: b543a7adde8a39fcd3ced293cc6a9c8d3ab3893caeaa90d0076045219aa9e38a
Contents?: true
Size: 1.05 KB
Versions: 9
Compression:
Stored size: 1.05 KB
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(options:) "mathfrak(#{parameter_one&.to_asciimath(options: options)})" end def to_latex(options:) "\\mathfrak{#{parameter_one&.to_latex(options: options)}}" end def to_mathml_without_math_tag(intent, options:) Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: "fraktur" }, ), [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: "fraktur", options: options) end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems