GNU TeXmacsUser manualReferenceAboutEnglish·中文
Incorporating mathematical formulas into documents

TeXmacs provides three main ways in order to enter a mathematical formulas into the main text:

Insert\(\rightarrow\)Mathematics\(\rightarrow\)Inline formula or $

This entry corresponds to small inline formulas like \(a^2 + b^2 = c^2\) 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 right. Limits can be displayed below in formulas with Format\(\rightarrow\)Display style\(\rightarrow\)on. In formulas, display style is off by default.

Insert\(\rightarrow\)Mathematics\(\rightarrow\)Displayed formula or ⌃$

This entry is used for entering bigger displayed equations, like

\(\displaystyle x^n + y^n = z^n,\)

which are typeset in a paragraph of their own. You may use the shortcut ⎋# in order to give the equation a number (or to remove the number of an equation). Also, ⌥⇥ allows you to switch between inline formulas and displayed equations.

Insert\(\rightarrow\)Mathematics\(\rightarrow\)Several equations or ⌃&

This entry allows you to create an eqnarray*, a three columns wide table-like environment (see creating tables). This environment is typically used for lists of multiple relations like

\begin{eqnarray*} x + 0 & = & x\\ x + (- x) & = & 0\\ x + y & = & y + x\\ (x + y) + z & = & x + (y + z) \end{eqnarray*}

The first column is centered to the right, the second one at the middle and the last one at the left. Another typical use of the eqnarray* environment is a step by step computation

\begin{eqnarray*} (\mathrm{e}^{\sin x} + \sin \mathrm{e}^x)' & = & (\mathrm{e}^{\sin x})' + (\sin \mathrm{e}^x)'\\ & = & (\sin x)' \mathrm{e}^{\sin x} + (\mathrm{e}^x)' \cos \mathrm{e}^x\\ & = & \mathrm{e}^{\sin x} \cos x + \mathrm{e}^x \cos \mathrm{e}^x, \end{eqnarray*}

in which many entries of the left column are left open.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".