Sha256: cc91591826d96181590b8b6bb122a74c8943df9af4083a05945dda17f91e8699
Contents?: true
Size: 958 Bytes
Versions: 9
Compression:
Stored size: 958 Bytes
Contents
# frozen_string_literal: true require_relative "../font_style" module Plurimath module Math module Function class FontStyle class Monospace < FontStyle def initialize(parameter_one, parameter_two = "monospace") super end def to_asciimath "mathtt(#{parameter_one&.to_asciimath})" end def to_latex "\\mathtt{#{parameter_one&.to_latex}}" end def to_mathml_without_math_tag Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: "monospace" }, ), [parameter_one&.to_mathml_without_math_tag], ) end def to_omml_without_math_tag(display_style) font_styles(display_style, sty: nil, scr: "monospace") end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems