Sha256: 246d63351318145b220b6edf2cc9fe054d5351e41c1adc1fbbe25fe80c396f00
Contents?: true
Size: 1.03 KB
Versions: 15
Compression:
Stored size: 1.03 KB
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(options:) "rm(#{parameter_one&.to_asciimath(options: options)})" end def to_latex(options:) "\\mathrm{#{parameter_one&.to_latex(options: options)}}" end def to_mathml_without_math_tag(intent, options:) Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: "normal" }, ), [parameter_one&.to_mathml_without_math_tag(intent, options: options)], ) end def to_omml_without_math_tag(display_style, options:) font_styles(display_style, sty: "p", options: options) end end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems