Forgot password
 Register account
View 150|Reply 1

flalign

[Copy link]

3204

Threads

7842

Posts

49

Reputation

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}

677

Threads

110K

Posts

217

Reputation

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

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-7 10:37 GMT+8

Powered by Discuz!

Processed in 0.016026 seconds, 25 queries