Forgot password?
 Register account
View 236|Reply 1

flalign

[Copy link]

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

hbghlyj Posted 2022-7-6 03:51 |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}

682

Threads

110K

Posts

910K

Credits

Credits
90973
QQ

Show all posts

kuing Posted 2022-7-6 13:58
第二段并不需要每行都加,只需某一行加就行,比如
  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|Discuz Math Forum

2025-6-5 01:41 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit