Class: Plurimath::Math::Function::Ul
Instance Attribute Summary
#parameter_one
Instance Method Summary
collapse
#==, #initialize, #to_asciimath, #to_html, #to_latex
Instance Method Details
#class_name ⇒ Object
35
36
37
|
# File 'lib/plurimath/math/function/ul.rb', line 35
def class_name
"underline"
end
|
#to_mathml_without_math_tag ⇒ Object
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/plurimath/math/function/ul.rb', line 9
def to_mathml_without_math_tag
first_value = parameter_one&.to_mathml_without_math_tag
Utility.update_nodes(
Utility.ox_element("munder"),
[
first_value,
Utility.ox_element("mo") << "¯",
],
)
end
|
#to_omml_without_math_tag ⇒ Object
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/plurimath/math/function/ul.rb', line 20
def to_omml_without_math_tag
bar = Utility.ox_element("bar", namespace: "m")
barpr = Utility.ox_element("barPr", namespace: "m")
barpr << Utility.pr_element("ctrl", true, namespace: "m")
me = Utility.ox_element("e", namespace: "m")
me << parameter_one.to_omml_without_math_tag
Utility.update_nodes(
bar,
[
barpr,
me,
],
)
end
|