Sha256: ababb0c454f1b06b3038bf546eb32394856861c423c78075f1ad937413fc3e37
Contents?: true
Size: 1.03 KB
Versions: 10
Compression:
Stored size: 1.03 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 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 def to_unicodemath "ᅲ#{unicodemath_parens(parameter_one)}" end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems