Sha256: 51e02d249b038700612323b6f3f92c9edef6f0eb4832fc27f7d310e67a72e964
Contents?: true
Size: 939 Bytes
Versions: 4
Compression:
Stored size: 939 Bytes
Contents
# frozen_string_literal: true require_relative "../font_style" module Plurimath module Math module Function class FontStyle class Normal < FontStyle def initialize(parameter_one, parameter_two = "rm") super end def to_asciimath "rm(#{parameter_one&.to_asciimath})" end def to_latex "\\mathrm{#{parameter_one&.to_latex}}" end def to_mathml_without_math_tag(intent) Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: "normal" }, ), [parameter_one&.to_mathml_without_math_tag(intent)], ) end def to_omml_without_math_tag(display_style) font_styles(display_style, sty: "p") end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems