Sha256: a33bdc037aaf30249ab00f1e8e622c283429905741b3416b23829ea170233c39
Contents?: true
Size: 1.05 KB
Versions: 4
Compression:
Stored size: 1.05 KB
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(intent) Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: "monospace" }, ), [parameter_one&.to_mathml_without_math_tag(intent)], ) end def to_omml_without_math_tag(display_style) font_styles(display_style, sty: nil, scr: "monospace") end def to_unicodemath "ᅲ#{unicodemath_parens(parameter_one)}" end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems