乳胶:美元符号与\(\) [英] LaTeX: dollar sign vs \( \)
问题描述
有什么理由比LaTeX中的常规$myformula$
更喜欢\(myformula\)
语法吗?
编辑:在上提出并回答了相同的问题tex.stackexchange .
LaTeX可以使用\(
... \)
捕获嵌套错误,但实际上,与$
...相比,使用它们并没有真正的优势. c4>.如果您要做使用\(
... \)
,请确保加载fixltx2e
程序包以使其健壮(例如,可用于标题和章节标题).>
另一方面,正如其他人所说,应该使用\[
... \]
代替$$
... $$
.
Is there any reason to prefer the syntax \(myformula\)
to the usual $myformula$
in LaTeX?
Edit: The same question was asked, and answered, on tex.stackexchange.
LaTeX can catch nesting errors with \(
...\)
but in practise there's no real advantage to using them over $
...$
. If you do use \(
...\)
, then make sure to load the fixltx2e
package to make them robust (i.e., e.g., usable in captions and section headings).
As others have said, on the other hand, \[
...\]
should be used instead of $$
...$$
.
这篇关于乳胶:美元符号与\(\)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!