MathAccent class

MathAccent class

Specifies the accent function, consisting of a base and a combining diacritical mark Example: 𝑎́

Inheritance:MathAccent → MathElementBase

The MathAccent type exposes the following members:

Constructors

ConstructorDescription
__init__(self, element)Creates a math accent applying to a specified math element with the default accent character value
__init__(self, element, accent_character)Creates a math accent applying to a specified math element

Properties

PropertyDescription
baseThe argument to which the accent was applied
characterAccent Character
The value should be within the range of (U+0300–U+036F) or(U+20D0–U+20EF)
Default value: Combining Circumflex Accent (U+0302)

Methods

MethodDescription
join(self, math_element)Joins a mathematical element and forms a mathematical block
join(self, math_text)Joins a mathematical text and forms a mathematical block
divide(self, denominator)Creates a fraction with this numerator and specified denominator
divide(self, denominator)Creates a fraction with this numerator and specified denominator
divide(self, denominator, fraction_type)Creates a fraction of the specified type with this numerator and specified denominator
divide(self, denominator, fraction_type)Creates a fraction of the specified type with this numerator and specified denominator
enclose(self)Encloses a math element in parenthesis
enclose(self, beginning_character, ending_character)Encloses a math element in specified characters such as parenthesis or another characters as framing
function(self, function_argument)Takes a function of an argument using this instance as the function name
function(self, function_argument)Takes a function of an argument using this instance as the function name
as_argument_of_function(self, function_name)Takes specified function using this instance as the argument
as_argument_of_function(self, function_name)Takes specified function using this instance as the argument
as_argument_of_function(self, function_type)Takes specified function using this instance as the argument
as_argument_of_function(self, function_type, additional_argument)Takes specified function using this instance as the argument and specified additional argument
as_argument_of_function(self, function_type, additional_argument)Takes specified function using this instance as the argument and specified additional argument
set_subscript(self, subscript)Creates subscript
set_subscript(self, subscript)Creates subscript
set_superscript(self, superscript)Creates superscript
set_superscript(self, superscript)Creates superscript
set_sub_superscript_on_the_right(self, subscript, superscript)Creates subscript and superscript on the right
set_sub_superscript_on_the_right(self, subscript, superscript)Creates subscript and superscript on the right
set_sub_superscript_on_the_left(self, subscript, superscript)Creates subscript and superscript on the left
set_sub_superscript_on_the_left(self, subscript, superscript)Creates subscript and superscript on the left
radical(self, degree)Specifies the mathematical root of the given degree from the specified argument.
radical(self, degree)Specifies the mathematical root of the given degree from the specified argument.
set_upper_limit(self, limit)Takes upper limit
set_upper_limit(self, limit)Takes upper limit
set_lower_limit(self, limit)Takes lower limit
set_lower_limit(self, limit)Takes lower limit
nary(self, type, lower_limit, upper_limit)Creates a N-ary operator
nary(self, type, lower_limit, upper_limit)Creates a N-ary operator
integral(self, integral_type, lower_limit, upper_limit, limit_locations)Takes the integral
integral(self, integral_type, lower_limit, upper_limit)Takes the integral
integral(self, integral_type)Takes the integral without limits
integral(self, integral_type, lower_limit, upper_limit, limit_locations)Takes the integral
integral(self, integral_type, lower_limit, upper_limit)Takes the integral
group(self)Places this element in a group using a bottom curly bracket
group(self, character, position, vertical_justification)Places this element in a group using a grouping character such as bottom curly bracket or another
to_border_box(self)Places this element in a border-box
to_border_box(self, hide_top, hide_bottom, hide_left, hide_right, strikethrough_horizontal, strikethrough_vertical, strikethrough_bottom_left_to_top_right, strikethrough_top_left_to_bottom_right)Places this element in a border-box
to_math_array(self)Puts in a vertical array
accent(self, accent_character)Sets an accent mark (a character on the top of this element)
overbar(self)Sets a bar on the top of this element
underbar(self)Sets a bar on the bottom of this element
to_box(self)Places this element in a non-visual box (logical grouping)
which is used to group components of an equation or other instance of mathematical text.
A boxed object can (for example) serve as an operator emulator with or without an alignment point,
serve as a line break point, or be grouped such as not to allow line breaks within.
get_children(self)Get children elements

See Also