Sha256: 065f5fcfad5146b1718f921d8c336b09cd83ecfd63f44508583da2c7851383e9
Contents?: true
Size: 805 Bytes
Versions: 12
Compression:
Stored size: 805 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 Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: "normal" }, ), [parameter_one&.to_mathml_without_math_tag], ) end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems