两个不等式并排显示,但在 LaTeX 中间隔良好
在 LaTeX 中,我有两个不等式,例如 a \leq b 和 c \leq d。我想要一条编号线,上面有这两个不等式:
a \leq b c \leq d (1)
像这样。让间距发挥作用的最简单方法是什么?我应该使用哪个环境?
In LaTeX, I have two ineqaulites e.g. a \leq b and c \leq d. I want to have a numbered line which has both of these inequalities on it:
a \leq b c \leq d (1)
Like this. What's the easiest way to get the spacing to behave itself? Which environment should I use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
答案当然是使用 amsmath 包。
align
环境的一个可能不太为人所知的功能是并排放置方程,就像您尝试做的那样:如果您添加多行,它们看起来会很好:
哪个是实际上,不使用
\quad
和其他手动间距命令的全部原因。The answer is, of course, to use the
amsmath
package. A perhaps less-known feature of thealign
environment is to place equations side-by-side, exactly as you are trying to do:And if you add multiple lines they'll look good:
Which is the whole reason, really, for not using
\quad
and other manual spacing commands.对于一些空间,只需使用
\quad
、\qquad
或您选择的任何其他间距命令(可能是\hfill?)。
我不知道有什么环境可以做到这一点,AMS 包附带的环境旨在对齐列(因此它们仅在有多行时才有用)。
For some space, just use
\quad
,\qquad
or any other spacing command of your choice (maybe\hfill
?).I don't know about any environments to do this, the environments that come with the AMS packages are meant to align columns (so they're only useful if you have multiple lines).
您应该使用
amsmath
包(用于间距选项)。执行以下操作:You should use the
amsmath
package (for spacing options). The do the following: