如何在文本中制作一个长方程跨越一行以上?
我想在文本中输入一些数学方程。然而,由于方程太长,它延伸到页面右侧的页边距中。请看下图:
我的 Latex 代码是:
The minimal cost is 1358.3333 calories, which is achieved by the
vector $[x_1, x_2, x_3, x_4, x_5, x_6]=[4.1667, 0.0000, 0.0000,
0.0000, 8.3333, 29.1667]$, where the total fat is $4.17\%$,
saturated fat and cholesterol both $0$, sodium $37.5\%$, total
carbohydrate, calcium and iron all $100\%$ meaning their constraints
active, dietary fiber $341.67\%$, vitamin A $5154.17\%$, vitamin C
$1600\%$.
任何人都知道如何使方程的扩展部分从下一个开始线?
谢谢和问候!
I would like to type some math equation within texts. However, because the equation is too long, it extends into the margin on the right side of the page. Please see the image below:
My Latex code is:
The minimal cost is 1358.3333 calories, which is achieved by the
vector $[x_1, x_2, x_3, x_4, x_5, x_6]=[4.1667, 0.0000, 0.0000,
0.0000, 8.3333, 29.1667]$, where the total fat is $4.17\%$,
saturated fat and cholesterol both $0$, sodium $37.5\%$, total
carbohydrate, calcium and iron all $100\%$ meaning their constraints
active, dietary fiber $341.67\%$, vitamin A $5154.17\%$, vitamin C
$1600\%$.
Anyone has some idea about how to make the extending part of the equation to start at the next line?
Thanks and regards!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Latex 不够聪明,无法在方程中找到合适的位置来换行,因此不会尝试这样做。你需要手动断线,或者自己拆分。一种明显的可能性是
(为了清楚起见插入换行符,不需要)
将方程放在自己的行中可能看起来更好,即换行
\begin{equation}
latex isn't clever enough to find suitable places in equations to break lines, and so does not attempt this. you need to break the line manually, or split it yourself. one obvious possibility is
(line break inserted for clarity, not needed)
it might look better to give the equation it's own line, ie wrap in
\begin{equation}