LaTeX 方程中的隐式换行
我想知道是否有任何方法可以反转 LaTeX 解释方程中换行符的方式?例如,我不想明确地插入它们,例如
\begin{gather}
x = y \\
a = c
\end{gather}
,,而是隐式地插入它们,例如,
\begin{gather}
x = y
a = c
\end{gather}
谢谢。
I wonder if there is any way to invert the way the LaTeX interprets linebreaks in equations? E.g., I dont want to insert them explicitly like,
\begin{gather}
x = y \\
a = c
\end{gather}
, but implicitly like,
\begin{gather}
x = y
a = c
\end{gather}
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这违背了 TeX 作者的意图,他认为数学必须手动排版。我尝试了
obeylines
,但没有成功。我想通过激活新行是可能的,但是你应该在 Stack Exchange 上询问裂缝,这是 Stack Overflow for TeX 的一个分支,乳胶。This is against the intention of TeX’s author, who believed that math must be typeset by hand. I tried
obeylines
, but to no avail. I guess it’s possible by making new line active, but you should ask the cracks over at Stack Exchange, a branch of Stack Overflow for TeX and LaTeX.breqn
包将当行已满时,自动在方程中插入换行符。我不知道有什么会像你问的那样破坏。如果这是一件大事,你可以使用 perltex 定义一个宏来为你做这件事。我将尝试模拟一个例子。The
breqn
package will automatically insert linebreaks in equations when the line is full. I don't know of anything that will do break as you ask. If it is a big deal you could use perltex to define a macro that would do it for you. I will try to mock one up as an example.