进入环境时抑制换行
在下面的LaTeX片段中,如何抑制进入align*
环境后在XXX和YYY之间自动生成的换行符。
XXX
\begin{minipage}{t}{0.1in}
YYY
\begin{align*}
ZZZ...
\end{align*}
\end{minipage}
但
XXX YYY
ZZZ...
我想要
XXX YYY ZZZ...
也许 align*
只是错误的环境,但我找不到提供类似功能但不引入换行符的替代方案。
In the following LaTeX fragment, how can I suppress the newline that is automatically generated between XXX and YYY after entering the align*
environment.
XXX
\begin{minipage}{t}{0.1in}
YYY
\begin{align*}
ZZZ...
\end{align*}
\end{minipage}
yields
XXX YYY
ZZZ...
But I want
XXX YYY ZZZ...
Perhaps align*
is simply the wrong environment, but I couldn't find an alternative that provides similar functionality, yet doesn't introduce a linebreak.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我不太确定它是否应该像这样使用,但也许
aligned
环境就是您所追求的?I'm not really sure if it's supposed to be used like this, but perhaps the
aligned
environment is what you're after?Latex 在进入 minipage 环境时强制换行的原因是,您从以水平模式输入文本转变为引入新的类似段落的环境,minipage。您可以使用
\vbox{...}
停止此换行符,因此:\vbox
不会停止对齐环境的换行符,因为这是由与环境的 Tex 代码:为此使用 Will 建议使用对齐。The reason Latex forces a linebreak when entering the minipage environment is that you move from entering text in horizontal mode, to introducing a new paragraph-like environment, minipage. You can stop this linebreak by using
\vbox{...}
, so:\vbox
won't stop the align environment's linebreak, though, because that is explicitly made by with the environment's Tex code: for that use Will's suggestion of using aligned.对于单行、内联方程,您可以使用
$
数学环境分隔符:For single-line, in-line equations, you can use the
$
math environment delimiter:很难确切地知道您想要什么 - 为什么要使用
align
?需要调整的是什么?也许您正在寻找
tabbing
乳胶?It's hard to know exactly what you want—why are you using
align
? What is it that needs aligning?Maybe you're looking for
tabbing
in Latex?