<< Chapter < Page | Chapter >> Page > |
One can select the expression by either pressing Shift+Right/Left (depending on whether the cursor is before or after the element), Delete, or Backspace key. See Selection for what can be done next.
Instead of using parentheses to denote which operations are grouped, the math editor highlights the current context for the operation. The context shows the position of the cursor relative to existing math in the editing area and is displayed using a gray background . An example of a confusing position can be shown using the following example. Suppose the editor contains the term $a+bc$ and the cursor is just after the $c$ . If the user enters "^2" it is not clear what should be squared. At that position the user may want to square $c$ , $bc$ , or the entire term $a+bc$ . This produces very different math, namely $a+bc^{2}$ , $a+(bc)^{2}$ , and $(a+bc)^{2}$ . In the above example, the context would highlight precisely the math that ended up being in parentheses. One can think of the context as defining where the parentheses should go once the new math is entered.
There are several places the user can enter text into the editor. Most of them behave the same way, but listed below are common uses and specifics:
a+2
Category | Key | Condition | Action |
---|---|---|---|
Ctrl+ (Apple ⌘+) | X | Math is selected | Cuts the selected Math to the clipboard and replaces it with an empty block (that can be deleted) |
C | Math is selected | Copies the selected Math to the clipboard | |
V | Math is selected | Pastes MathML from the Clipboard (can be from other sources) | |
Z | Undoes one step in the editor | ||
Y | Ctrl+Z was just pressed | Redoes one step in the editor | |
E | Opens full-source editing | ||
Navigation | Tab Shift+Tab | Moves to the next/previous free block | |
Left / Right | Moves to the previous/next element in the Math | ||
Shift+Left / Shift+Right | After / Before the Context | Selects the Context element (right next to the cursor) | |
Before / After the Context | Selects the Context's parent | ||
Modification | Enter | Attempts to parse the text entered next to the cursor | |
Delete / Backspace | Cursor next to Math | Selects the Math Node (subsequent delete will remove the math) | |
Math selected | Removes the node and replaces it with an empty block (a second press will remove the block as well) | ||
Cursor in block | Removes the empty block if it is allowed in MathML (in "a+b+c" any one variable can be removed, but addition requires at least 2 things to add) |
Type | Input | Math Output |
---|---|---|
Calculator |
a*x^2+b*x+c=1/2 |
$ax^{2}+bx+c=\frac{1}{2}$ |
a&&b || c != a ->b |
$a\land b\lor c\neq a\to b$ | |
sin(x)^2+cos(x)^2=1 |
$\sin x^{2}+\cos x^{2}=1$ | |
x_1+x_2<x_3 |
${x}_{1}+{x}_{2}< {x}_{3}$ | |
Templates |
sum=n*(n-1)/2 |
\sum \phantom{\text{\_\_}}=\frac{n(n-1)}{2} |
MathML |
<pi /> |
$\pi $ |
ҷx; |
ҷ |
This is a text entry place. See shortcuts. can paste MathML (Ctrl+V from Mathematica, MathType, etc), or enter simple algebra (see Shortcuts). Moving away using Enter, Tab, Left, Right will cause the input to be parsed and converted into Math.
Blocks are holes that may need to be filled. (Click or Tab to them). Required blocks have a yellow background and optional ones are transparent and have a dotted border.
Click, double-click, highlight, (only right-click inside a text box)
There are several nuances in the editor, and common ones are listed here, along with workarounds. Also listed are limitations of the editor and things we'd like to get working soon.
<interval/>
with a
<condition/>
.
Sometimes it is necessary to add to existing mathematical operations. For example, adding higher terms to a polynomial. This can be done either by using the
keyboard or with help of the
toolbar . In the explanations below we start with "
b*x+c=0
" and create
$ax^{2}+bx+c=0$
a*x^2+
" (without the quotes) and press the Enter key.
Notification Switch
Would you like to follow the 'Connexions guide to mathml' conversation and receive update notifications?