|
Calling Sequence
|
|
MathMLEditor(opts)
|
|
Parameters
|
|
opts
|
-
|
equation(s) of the form option=value where option is one of background, breakwidth, focus, foreground, height, outputformat, palette, reference, value, visible, width, or wrapped; specify options for the MathMLEditor element
|
|
|
|
|
Description
|
|
•
|
The MathMLEditor window body element defines a MathML editor in a Maplet application that provides editing functionality for creating and entering math expressions. This functionality is primarily accessed by using a toolbar, which is displayed by right-clicking the MathMLEditor element.
|
•
|
The toolbar associated with the MathMLEditor element provides palettes, which are used to input the expression in the editor window.
|
|
The toolbar provides access to the Layout, Fence, Trigonometry, Calculus, Operator, Relation, Set Theory, Logic, Lower Case Greek Symbols, and Upper Case Greek Symbols palettes. The user can select a template from a palette to enter an expression in the MathMLEditor window.
|
|
The Layout palette includes templates for subscript, superscript, subscript and superscript, fraction, square root, and general root.
|
|
The Fence palette includes templates for parentheses, brackets, braces, absolute value, ceiling, and floor.
|
|
The Trigonometry palette includes templates for sine, cosine, tangent, secant, cosecant, and cotangent.
|
|
The Calculus palette includes templates for ddx, prime, bar, indefinite integral, definite integral, infinity, sum, product, limit, divergence, gradient, and curl.
|
|
The Operator palette includes templates for addition, subtraction, multiplication, division, dot, and composition.
|
|
The Relation palette includes templates for less than, greater than, less than or equal to, greater than or equal to, not less than, not greater than, not less than and not equal to, not greater than and not equal to, less than and not equal to, greater than and not equal to, equal to, and not equal to.
|
|
The Set Theory palette includes templates for union, intersection, proper subset, subset, not proper subset, not subset, member, not member, not superset equal to, not superset, set difference, empty set, Integers, Real numbers, and Complex numbers.
|
|
The Logic palette includes templates for not, or, and, implies, and reverse implies.
|
|
Lower Case Greek Symbol Palette
|
|
The Lower Case Greek Symbol palette includes templates for the lower case Greek alphabet.
|
|
Upper Case Greek Symbol Palette
|
|
The Upper Case Greek Symbol palette includes templates for the upper case Greek alphabet.
|
•
|
The MathMLEditor element also supports the following basic keyboard shortcuts for editing expressions.
|
|
|
Ctrl + A
|
Select All
|
Ctrl + C
|
Copy (the highlighted expression as MathML)
|
Ctrl + V
|
Paste
|
Ctrl + Z
|
Undo Last Edit
|
'^'
|
Superscript (assumes the base is the last expression)
|
'_'
|
Subscript (assumes the base is the last expression)
|
Backspace
|
Delete
|
|
|
|
|
|
A user can move from one placeholder to another by using the TAB key. A user can enter a whole series of placeholders and enter various values by using the TAB key to move through successive placeholders.
|
•
|
The MathMLEditor element features can be modified by using options. To simplify specifying options in the Maplets package, certain options and contents can be set without using an equation. The following table lists elements, symbols, and types (in the left column) and the corresponding option or content (in the right column) to which inputs of this type are, by default, assigned.
|
|
|
Elements, Symbols, or Types
|
Assumed Option or Content
|
|
|
algebraic
|
value option
|
Font element
|
font option
|
range of positive integers
|
height and width options, respectively
|
|
|
|
|
•
|
A MathMLEditor element cannot contain other elements.
|
•
|
A MathMLEditor element can be contained in a Maplet or BoxLayout element, or Maplet element in a nested list representing a box layout.
|
•
|
The following table describes the control and use of the MathMLEditor element options.
|
|
An x in the I column indicates that the option can be initialized, that is, specified in the calling sequence (element definition).
|
|
An x in the R column indicates that the option is required in the calling sequence.
|
|
An x in the G column indicates that the option can be read, that is, retrieved by using the Get tool.
|
|
An x in the S column indicates that the option can be written, that is, set by using the SetOption element or the Set tool.
|
|
|
|
|
|
Option
|
I
|
R
|
G
|
S
|
|
|
|
|
|
background
|
x
|
|
x
|
x
|
breakwidth
|
x
|
|
x
|
x
|
focus
|
|
|
|
x
|
foreground
|
x
|
|
x
|
x
|
height
|
x
|
|
x
|
|
outputformat
|
x
|
|
x
|
|
palette
|
x
|
|
x
|
|
reference
|
x
|
|
|
|
value
|
x
|
|
x
|
x
|
visible
|
x
|
|
x
|
x
|
width
|
x
|
|
x
|
|
wrapped
|
x
|
|
x
|
|
|
|
|
|
|
|
|
•
|
The opts argument can contain one or more of the following equations that set Maplet application options.
|
|
The color of the background of the MathML editor. This can be a recognized color name, an RGB color structure, or a string of the form "#RRGGBB" where each pair is a two-digit hexadecimal number.
|
|
The width, in pixels, above which the content in the MathML editor is displayed in line mode, as opposed to full 2-D math mode. The default value is . It is strongly advised that this value be no smaller than the width of the MathML editor.
|
|
Note: If wrapped is set to true, this parameter is ignored.
|
|
Setting this to true causes the MathML editor to obtain focus for the Maplet application.
|
|
The color of the text in the MathML editor. This can be a recognized color name, an RGB color structure, or a string of the form "#RRGGBB" where each pair is a two-digit hexadecimal number.
|
|
The MathML editor height in pixels. By default, the height is pixels.
|
|
outputformat = presentation or content
|
|
Indicates whether the MathMLEditor should return presentation or content MathML. The default is presentation.
|
|
palette = basic or extended
|
|
Indicates whether the basic list or the extended list of palette options is available when right-clicking the MathMLEditor region. The default is basic.
|
|
reference = name or string
|
|
A reference to the MathMLEditor element.
|
|
The default content created, displayed, or edited in the MathML editor. The value of this attribute is passed by using the MathML[ExportPresentation] function.
|
|
Whether the MathML editor is visible to the user. By default, the value is true.
|
|
The MathML editor width in pixels. By default, the width is pixels.
|
|
Whether the content of the MathML editor wraps to the next line if it is too wide to be displayed in the MathML editor window. If set to true, the breakwidth parameter is ignored. By default, the value is false.
|
|
Note: Setting this parameter to true is equivalent to setting the breakwidth parameter to the width of the MathML editor window minus the width needed for the scroll bar on the right.
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
|
|
|