使用 flalign (LaTeX) 时遇到的问题
我试图将 3 个方程与“=”符号对齐,但也左对齐。我尝试了以下操作:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{flalign*}
RPC &= A+B\tilde{f} +C x &\\
A &= a+\eta &\\
E &= cte &
\end{flalign*}
\end{document}
这样我就可以得到左侧的内容并对齐“=”符号。但是,我还需要 A(在第二个方程中)和 E(在第三个方程中)与 R(在第一个方程中)对齐
有谁知道如何得到它?
谢谢
I am trying to put 3 equations with "=" signs aligned but also left aligned. I tried the following:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{flalign*}
RPC &= A+B\tilde{f} +C x &\\
A &= a+\eta &\\
E &= cte &
\end{flalign*}
\end{document}
With this I get the stuff in the left and the "=" signs aligned. However, I also need A (in the second equation) and E (in the third equation) to be aligned to the R (in the first one)
Does anyone know how to get it?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
这种方法避免了显式的间距命令。
这种方式有点不太TeXish。
This approach avoids explicit spacing commands.
This way is a little less TeXish.
我已经尝试了
&
的所有不同组合,但没有找到任何可以正常工作的组合。可能有更好的方法,但您可以使用\hphantom
使A
和E
占用大致相同的空间量作为RPC
:I have tried all different combinations of
&
s and haven't found anything that works quite right. There's probably some better way of doing it, but you could just use\hphantom
to make theA
andE
take roughly the same amount of space asRPC
:尝试以下
注释:
1. 等号周围的 {} 需要给它一些空间来间隔。
2. 在 flalign 环境中,字段交替向右刷新,然后向左刷新。我们可以使用>>来分析上面的一行。和<<<显示冲洗方向
Try the following
Notes:
1. The {} around the equals sign are needed to give it something to space itself against.
2. In a flalign environment the fields alternately flush right and then flushleft. We can analyse one of the lines above using >>> and <<< to show the direction of flush
谢谢你们。这似乎产生了一些不错的结果:
Thank you guys. This seems to produce somewhat good results:
下面的内容并不优雅,但它确实有效:
What follows is not elegant but it does the trick: