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