Class: Plurimath::Math::Function::FontStyle::Fraktur
- Inherits:
-
FontStyle
- Object
- FontStyle
- Plurimath::Math::Function::FontStyle::Fraktur
- Defined in:
- lib/plurimath/math/function/font_style/fraktur.rb
Instance Method Summary collapse
-
#initialize(parameter_one, parameter_two = "fraktur") ⇒ Fraktur
constructor
A new instance of Fraktur.
- #to_asciimath(options:) ⇒ Object
- #to_latex(options:) ⇒ Object
- #to_mathml_without_math_tag(intent, options:) ⇒ Object
- #to_omml_without_math_tag(display_style, options:) ⇒ Object
Constructor Details
#initialize(parameter_one, parameter_two = "fraktur") ⇒ Fraktur
Returns a new instance of Fraktur.
8 9 10 11 |
# File 'lib/plurimath/math/function/font_style/fraktur.rb', line 8 def initialize(parameter_one, parameter_two = "fraktur") super end |
Instance Method Details
#to_asciimath(options:) ⇒ Object
13 14 15 |
# File 'lib/plurimath/math/function/font_style/fraktur.rb', line 13 def to_asciimath(options:) "mathfrak(#{parameter_one&.to_asciimath(options: )})" end |
#to_latex(options:) ⇒ Object
17 18 19 |
# File 'lib/plurimath/math/function/font_style/fraktur.rb', line 17 def to_latex(options:) "\\mathfrak{#{parameter_one&.to_latex(options: )}}" end |
#to_mathml_without_math_tag(intent, options:) ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/plurimath/math/function/font_style/fraktur.rb', line 21 def to_mathml_without_math_tag(intent, options:) Utility.update_nodes( Utility.ox_element( "mstyle", attributes: { mathvariant: "fraktur" }, ), [parameter_one&.to_mathml_without_math_tag(intent, options: )], ) end |
#to_omml_without_math_tag(display_style, options:) ⇒ Object
32 33 34 |
# File 'lib/plurimath/math/function/font_style/fraktur.rb', line 32 def to_omml_without_math_tag(display_style, options:) font_styles(display_style, scr: "fraktur", options: ) end |