![]() |
Mathematical formulas | ![]() |
To type mathematical formulas, you need first to enter “math mode” using one of the following methods:
This entry corresponds to small inline formulas like
a2 + b2 =
c2 inside a textual paragraph. Note that
formulas are typeset specially so they do not take too much
vertical space. For example, limits are always displayed on the
left. Limits can be displayed below in formulas with
This entry is used for entering bigger displayed equations, like
which are typeset in a paragraph of their own. You may use the shortcut A-* in order to give the equation a number (or to remove the number of an equation). Also, C-tab allows you to switch between inline formulas and displayed equations.
This entry allows you to create an
| x + 0 | = | x |
| x + (−x) | = | 0 |
| x + y | = | y + x |
| (x + y) + z | = | x + (y + z) |
The first column is centered to the right, the second one at the
middle and the last one at the left. An other typical use of the
| (ⅇsin x + sin ⅇx)' | = | (ⅇsin x)' + (sin ⅇx)' |
| = | (sin x)' ⅇsin x + (ⅇx)' sin ⅇx | |
| = | ⅇsin x cos x + ⅇx sin ⅇx, |
in which many entries of the left column are left open.
In math mode, you have specific commands and key-combinations to type mathematical symbols and formulas. For instance, the F5 prefix can be used in order to enter Greek symbols.
The editor favors typing mathematics with a certain meaning. This feature, which will be developed more in future releases, is useful when communicating with a computer algebra package. At this moment, you should for instance explicitly type the multiplication * between symbols a and b. By default, typing a b will yield ab and not a b.
The main mathematical objects are created using the A- prefix as follows:
|
||||||||||||||||||||||
Primes, subscripts and superscripts are created as follows:
|
|||||||||||||||||||||||||
Some important mathematical constructs are actually tabular constructs and are documented separately.
The Greek characters are obtained in TeXmacs by combining the hyper modifier key H- with a letter. For instance, H-a yields α and H-G yields Γ. Recall that the F5 key is equivalent to H-, so that ρ can also be obtained by typing F5 r. Similarly, F6, F7, F8 and S-F6 can be used in order to type bold, calligraphic, fraktur and blackboard bold characters. For instance, F8 m yields m, S-F6 R yields R and F6 F7 Z yields Z.
Greek characters can also be obtained as “variants” of Latin characters using the tab-key. For instance, p tab yields π. The tab-key is also used for obtaining variants of the Greek letters themselves. For instance, both H-p tab and p tab tab yield ϖ.
Many other mathematical symbols are obtained by “natural” key-combinations. For instance, - > yields →, - - > yields ⟶ and > = yields ⩾. Similarly, | - yields ⊢, | - > yields ↦ and - > < - yields ⇄. Some general rules hold in order to obtain variants of symbols:
Several other symbols which cannot be entered naturally in the above way are obtained using the S-F5 prefix. Here follows a short table of such symbols:
|
||||||||||||||||
Table 3. Some symbols which cannot be obtained
using general rules in a natural way.
|
The following key-combinations are used in order to create big symbols:
|
||||||||||||||||||||||||||||
The big integral signs admit two variants, depending on where you want to place subscripts and superscripts. By default, the scripts are placed as follows:
| ∞ |
| 0 |
| ⅆ x |
| 1 + x2 |
The alternative rendering “with limits”
| ∞ |
| 0 |
| ⅆ x |
| 1 + x2 |
is obtained using S-F5 L I. Similarly, you may type S-F5 L O in order to obtain ∮ with limits.
Large delimiters are created as follows:
|
||||||||||||||||||||||||
In TeXmacs, large delimiters may either be “left delimiters”, “right delimiters” or “middle delimiters”. By default, (,[,{ and ⟨ are left delimiters, ),],} and ⟩ are right delimiters and |,/ and \ are middle delimiters. But there status can be changed using the A-l, A-r and A-m key combinations. For instance, A-l ) produces ), considered as a large left delimiter.
In TeX and LaTeX, “middle delimiters”, or “separators” do not exist; they are used for producing the vertical bars in formulas like
| a |
| b + c |
| p |
| q + r |
| a |
| b + c |
There may be as many middle delimiters between a left and a right delimiter as one wishes.
Sometimes you may want large delimiters of a particular size, instead
of self-adjusting ones. This can be achieved by specifying a value for
the optional second argument of the
When specifying an additional third argument, the second and third arguments correspond to the heights of the lower and upper limit of the bracket. This allows you to type the following kind of brackets:
The table below how to type mathematical accents above symbols or entire formulas. Indeed, some of these accents automatically become as wide as the formulas below them.
|
|||||||||||||||||||||||||||||||||||