GNU TeXmacsUser manualReferenceAboutEnglish·Français·Deutsch·Español·Italiano·Português·Polski·中文
创建表格

你可以使用插入\(\rightarrow\)表格或者以下快捷键来创建表格:

⌘⌃T⇧NT

创建普通无框表格。

⌘⌃T⇧N⇧T

创建居中无框表格。

⌘⌃T⇧NB

创建普通有框表格。

⌘⌃T⇧N⇧B

创建居中有框表格。

在数学模式下,提供如下类表格结构:

⌘⌃T⇧NM

创建一个矩阵。

⌘⌃T⇧ND

创建一个行列式。

⌘⌃T⇧NC

创建一个选择。

下面演示的是普通表格,居中有框表格和矩阵。下面的带标题的小表格是通过插入\(\rightarrow\)表格\(\rightarrow\)小表格标题得到的。小表格允许你将多个表格并列排在一行上,而大表格一行只能有一个。通过插入\(\rightarrow\)表格\(\rightarrow\)大表格标题可插入大表格。

表格 1. 普通无框表格

boom tree
hallo hello
wiskunde mathematics

表格 2. 居中有框表格

boom tree
hallo hello
wiskunde mathematics

表格 3. 矩阵

\(\left( \begin{array}{cc} a & b\\ c & d \end{array} \right)\)

还有其他类似的类表格环境,除此之外新的环境也可以由用户自己创建。比如,通过插入\(\rightarrow\)数学\(\rightarrow\)多行公式或者⌃&,你可以进入eqnarray\(^{\ast}\)环境。在此环境下,关注数学排版的用户可以轻易地对齐一组等式。例如:

\begin{eqnarray*} \sin (f (x) g (x))' & = & (f (x) g (x))' \cos (f (x) g (x))\\ & = & (f' (x) g (x) + f (x) g' (x)) \cos (f (x) g (x)) \end{eqnarray*}

新创建一个表格时,默认大小为最小(一般是1\(\times\)1),且所有单元格都是空的。通过快捷键 ⌃←,⌃→,⌃↑和⌃↓可以插入新列和新行。比如说,⌃→在当前光标所在位置的右边插入新列,详情参见下图。你也可以用↩在当前光标所在位置的下面插入新行。

\(\displaystyle \left( \begin{array}{cc} a {\color{red}{|}} & b\\ c & d \end{array} \right) \qquad \longrightarrow \qquad \left( \begin{array}{ccc} a & {\color{red}{|}} & b\\ c & & d \end{array} \right)\)

图 1.

一个在矩阵中插入新列的例子。如果光标在左边的矩阵所示位置处,此时按下⌃→所得到的即右边的矩阵。

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".