Sha256: 672d964345bb7ff2ca60b8a929b791da9139a3e487fab230f0bc075093f73c47
Contents?: true
Size: 944 Bytes
Versions: 19
Compression:
Stored size: 944 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 def to_omml_without_math_tag(display_style) font_styles(display_style, scr: "fraktur") end end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems