Forgot password?
 Create new account
View 123|Reply 1

flalign

[Copy link]

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

hbghlyj Posted at 2022-7-6 03:51:06 |Read mode
flalign and flalign*: Similar to align, but left aligns first equation column, and right aligns last column
测试:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\noindent The formula is
\begin{flalign*}
a &= b+c\\
  &= 1+1\\
  &= 2
\end{flalign*}
\end{document}
参考Use flalign or alignat or align or similar environment to align to the left,需要每行最后加一个 & 才行:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\noindent The formula is
\begin{flalign*}
a &= b+c &\\
  &= 1+1 &\\
  &= 2 &
\end{flalign*}
\end{document}

701

Threads

110K

Posts

910K

Credits

Credits
94177
QQ

Show all posts

kuing Posted at 2022-7-6 13:58:38
第二段并不需要每行都加,只需某一行加就行,比如
  1. \documentclass{article}
  2. \usepackage{amsmath}
  3. \begin{document}
  4. \noindent The formula is
  5. \begin{flalign*}
  6. a &= b+c\\
  7.   &= 1+1\\
  8.   &= 2 &
  9. \end{flalign*}
  10. \end{document}
Copy the Code

手机版Mobile version|Leisure Math Forum

2025-4-20 22:20 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list