乳胶:美元符号与\(\) [英] LaTeX: dollar sign vs \( \)

查看:92
本文介绍了乳胶:美元符号与\(\)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么理由比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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆