Sha256: 3d20421c7dd29db96356858646eea55ed23cea1f335bad7af494d4f1bbefdfd1
Contents?: true
Size: 809 Bytes
Versions: 12
Compression:
Stored size: 809 Bytes
Contents
# frozen_string_literal: true require_relative "../font_style" module Plurimath module Math module Function class FontStyle class Italic < FontStyle def initialize(parameter_one, parameter_two = "italic") super end def to_asciimath "ii(#{parameter_one&.to_asciimath})" end def to_latex "\\mathit{#{parameter_one&.to_latex}}" end def to_mathml_without_math_tag Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: "italic" }, ), [parameter_one&.to_mathml_without_math_tag], ) end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems