
2. Type this sequence of 6 characters: x=2a+b
Use the Structure or Source view to display the following structure generated by Amaya:
<mi>x</mi><mo>=</mo><mn>2</mn><mi>a</mi><mo>+</mo><mi>b</mi>
If the result is not exactly what you want, select the characters that were misinterpreted and change their
type with one of the commands such as Plain text (mtext), Identifier (mi), Number (mn), Operator
(mo) or Space (mspace).
14.2.2. The row construct
The row construct from the palette is the equivalent of the braces in LaTeX: it allows you to give
informations about how the different part of a formula are grouped together. It does not appear on the
screen but have an indirect effect on the rendering.
For instance, when entering brackets as in the following expression:
f
(
x
)
=
1
x
typing the sequence f(x)= ... would lead to:
f
(
x
)
=
1
x
Here, the (x) must be contained in a mrow element. You can correct the problem by selecting this part of
the formula and then clicking on the row construct. You can also directly get the expected mrow if you
choose Parentheses from the Insert/Math submenu or select the button in the Math palette.
14.2.3. Spacing
Amaya takes care of spacing within math expressions, but in some cases you may need to add some
additional space. Move the cursor to the position where you want to insert space and choose Space
(mspace) from the Insert/Math submenu. This creates a default horizontal space. You can then change
its width attribute to adjust its size or you can add other attributes (height, depth, linebreak) to
change vertical spacing. Refer to the MathML specification for more details.
14.2.4. Special characters
You can use the Character command from the Insert/Math submenu to enter mathematical characters
and symbols that are not available on the keyboard. Type in the name of the character, as defined in the
MathML specification. You may choose to type the Unicode value of the character instead. For entering
this value in decimal, start with a '#'. For entering the value in hexadecimal, start with '#x'. To type faster,
you can also enter the hexadecimal value without any leading '#x', but note that this may be ambiguous
(like 'af', for instance). In case of ambiguity, the string is interpreted as a character name.
You can also use the Special characters tool. In this tool, the pull-down menu allows you to choose a
group of characters, which are then available in the table below. Click a character in this table to insert it
in the formula or anywhere else in the document.
Also, the MathML specification recommends to add invisible characters in order to make it easier for a
speech synthesizer to read a formula. These characters are automatically inserted from the palette, but
sometimes you have to do it by yourself. You can then use the Insert/Math submenu or shortcuts. The
three invisible characters are:
1. invisible times:
ab
2. apply function:
f
(
x
)
3. invisible comma:
a
ij
14. Editing mathematics
45
Kommentare zu diesen Handbüchern