Math:公式布局

出自OOo 中文手册翻译

跳转到: 导航, 搜索

本节针对OOoMath中比较难处理的复杂公式给出一些建议。 The most difficult part of using OOoMath comes when writing complicated equations. This section provides some advice about writing complex formulas.

[编辑] 善用括号 Brackets are your friends

OOoMath并不知道运算符号的顺序,您必须使用括号来明确告诉它。参考下面的示例: OOoMath knows nothing about order of operation. You must use brackets to state order of operations explicitly. Consider the following example:

标记语句结果
2 over x + 1<math>{2 \over x} + 1</math>
2 over {x + 1}<math>2 \over {x + 1}</math>

[编辑] 多行公式

假定您需要输入包含多行的公式,如下图的例子: Suppose you want to type an equation covering more than one line. For example:

x=3

y=1

<math>x = 3\,\!</math>

<math>y = 1\,\!</math>

您的直接反应应该是直接输入 回车 键。但是这样只能在编辑器中产生一个空行,但公式却不会分行。您必须使用newline命令。如下图: Your first reaction would be to simply press the Enter key. However, if you press the Enter key, though the markup goes to a new line, the resulting equation does not. You must type the newline command explicitly. This is illustrated in the table below.

标记语句结果
x = 3
y = 1
x = 3 y = 1
<math>x = 3 \ y = 1</math>
x = 3 newline
y = 1
x = 3
y = 1
<math>x = 3\,\!</math>

<math>y = 1\,\!</math>


参见


[编辑] 相关链接

本文原文

个人工具