Microsoft 方程编辑器语法

发布于 2024-09-04 02:54:13 字数 1539 浏览 8 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

长亭外,古道边 2024-09-11 02:54:13

公式输入非常自然。以下是一些一般规则:

  • “a^b”会自动转换为 ab。如果您的指数包含多个项,请编写“a^(b + c)”,它将转换为 ab + c。如果您确实想要 a(b + c),请写“a^((b + c))”。

  • 同样的事情适用于下标:\epsilon_0,例如

  • 同样的事情适用于分数,例如 1/(a+b) 将被转换

  • 要插入“a sin x”,请确保在“a”和“sin”之间插入空格。否则,“sin”函数将无法被识别,因此它将显示为斜体(这是不正确的)。

  • 使用 \chr 语法插入特殊字符。尝试例如 \alpha、\Delta、\cdot、\oplus 等。

  • 此外,您还可以尝试不同样式的字符:\scriptD、\scriptO、\doubleR、\frakturR 等。

  • 要修改字符,请尝试 v\bar、f\hat、x\dot、x\ddot 等。

  • 要编写 n 进制和,只需编写“\sum_(k=1)^\infty” " 后面是一个空格,自动得到和符号,下面是“k=1”,上面是无穷大符号。这也适用于 \prod、\int、\oint、\bigotimes 等。

  • 要编写平方根,请编写 \sqrt 后跟一个空格或带括号的表达式。

  • 自动识别不同类型的括号。例如,您可以编写“[a,b]”并获得真正的括号。您也可以尝试 \bra \phi_1 | \phi_2 \ket 等。

  • 您还可以编写“奇怪”的括号,例如 [0, 1[ (瑞典人就是这样写 [0, 1)),只需多花一点功夫即可: [0, 1\右[ 和一个空格。

  • 要打开/关闭粗体/斜体,请使用 Ctrl+B/Ctrl+I(这是 Microsoft Word,还记得吗?:))但是您可能希望在每次打开公式时检查最近添加的公式的格式。文档,因为有时您在上次“会话”期间更改的格式(粗体/斜体)会在您再次打开文档时丢失或更改。重新应用格式通常会使其“粘住”。然而,似乎不可能在标题和图形标题中正确设置公式格式;这些对象的默认样式(通常为粗体)无法在公式内逐个字符地手动“否决”。

  • 要插入 3×3 矩阵,请写入 \matrix(@@&&) 后跟一个空格。要获得括号,请写入 (\matrix(@@&&)) 和一个空格。您也可以直接输入元素(猜猜怎么做!),但在创建矩阵后通常会更容易。

  • 在某些需要对齐公式的情况下,您可能会发现 Shift+Return 很有用。另外,您可能已经意识到 (x+4)^2 >= 0, \forall x\in\doubleR 在其自己的行上看起来非常好如果您输入 逗号后有两个 空格

  • 要在公式中输入纯文本,请将文本写在双引号内:例如,a =\above("by the lemma") 0。提示:您可以通过在其上方添加大量空格来创建非常漂亮的双箭头(暗示或等价)。这个我推荐很多。但要小心:在公式中使用文字空格通常会由于错误而导致空格旁边的字符看似随机丢失(至少在 Word 2007 和 2010 中)。

最后,不要忘记上下文(右键单击)菜单。这是高度上下文敏感的,并且有很多方便的命令(删除重音、添加下/上限、删除指数、添加参数、删除括号等)。如果您的键盘上有菜单键,这将非常方便(您还应该学习激活每个菜单项的字母)。

有关更多详细信息,请参阅我关于 Microsoft Word 的文章(有关数学的部分),或者 - - 如果你真的是铁杆 - '的规范线性格式用于在 Word 中输入公式。

Formula input is very natural. Here are a few general rules:

  • "a^b" is automatically transformed to ab. If your exponential contains several terms, write "a^(b + c)" which will be transformed to ab + c. If you really do want a(b + c), write "a^((b + c))".

  • The same things apply to subscript: \epsilon_0, e.g.

  • The same things apply to fractions, e.g. 1/(a+b) will be transformed to what you expect.

  • To insert "a sin x", make sure to insert the space between "a" and "sin". Otherwise the "sin" function will not be recognized, and thus it will be in italic (which is incorrect).

  • Special characters are inserted using the \chr syntax. Try e.g. \alpha, \Delta, \cdot, \oplus, etc.

  • In addition, you can try differently styled characters: \scriptD, \scriptO, \doubleR, \frakturR, etc.

  • To modify a character, try v\bar, f\hat, x\dot, x\ddot, etc.

  • To write a n-ary sum, simply write "\sum_(k=1)^\infty" followed be a space to automatically get the sum symbol with "k=1" below and the infinity sign above. This also works with \prod, \int, \oint, \bigotimes, etc.

  • To write a square root, write \sqrt followed by a space, or a paranthesized expression.

  • Brackets of different kinds are automatically regocnized. For instance, you can write "[a, b]" and get a true bracket. You can also try \bra \phi_1 | \phi_2 \ket etc.

  • You can also write 'strange' brackets like [0, 1[ (which is how Swedes write [0, 1)), with only little more effort: [0, 1\right[ and a space.

  • To toggle bold/italic on/off, use Ctrl+B/Ctrl+I (this is Microsoft Word, remember? :) ) But you might want to check the formatting of your most recently added formulae every time you open a document, because sometimes the formatting (bold/italic) you changed during your last 'session' is lost or changed when you open the document again. Reapplying the formatting usually makes it 'stick'. However, it seems impossible to format formulae correctly in headings and figure captions; the default style of these objects (usually bold) cannot be 'overruled' manually on a character-by-character basis inside a formula.

  • To insert a 3×3 matrix, write \matrix(@@&&) followed by a space. To get the parantheses, write (\matrix(@@&&)) and a space. You can also enter the elements directly (guess how!), but it is often easier to do that after the matrix has been created.

  • You might find Shift+Return useful in some cases where you want to align formulae. Also, you have probably already realised that (x+4)^2 >= 0, \forall x\in\doubleR looks very good on its own row if you put two spaces after the comma!

  • To enter plain text in a formula, write the text inside double quotation marks: For instance, a =\above("by the lemma") 0. Hint: You can create very nice double arrows (implication or equivalence) by adding a lot of spaces above them. This I recommend a lot. But be cautious: using literal spaces inside formulae often results in seemingly random loss of characters next to the spaces due to a bug (at least in Word 2007 and 2010).

Finally, do not forget the context (right-click) menu. This is highly context sensitive, and has a lot of convenient commands (remove accent, add lower/upper limit, remove exponent, add argument, remove brackets, etc.). If you have a menu key on your keyboard, this will come in very handy (you should also learn the letter that activates each menu item).

For more details, see my article on Microsoft Word (the sections about mathematics), or -- if you are really hardcore -- the specification of the 'linear format' used to enter formulae in Word.

樱娆 2024-09-11 02:54:13

有一些类似于字方程编辑器的线性格式的规范。
请参阅 Murrays 的以下博客条目:

http://blogs.msdn.com/b/murrays/archive/2010/03/13/linear-format-version-3.aspx

在那里,他引用了类似规范的文档:
http://www.unicode.org/notes/tn28/UTN28-PlainTextMath -v3.pdf

您可以在那里找到许多 utf8 序列以及受 LaTeX 启发的快捷方式。

There is something like a specification for the linear format of the word equation editor.
See e.g. the following blog entry from Murrays:

http://blogs.msdn.com/b/murrays/archive/2010/03/13/linear-format-version-3.aspx

There, he refers to the specification-like document:
http://www.unicode.org/notes/tn28/UTN28-PlainTextMath-v3.pdf

You find many utf8-sequences as well as the LaTeX inspired shortcuts there.

猛虎独行 2024-09-11 02:54:13

我在其他地方给出了这个链接:

...并想出了这个:
http://jsfiddle.net/9cvp1gf2/embedded/result/

// The code is too long to display here
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文