Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
SwitWu committed Jun 7, 2024
1 parent c821f4a commit a03ab5a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions demo.tex
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,27 @@ \subsection{几类数学字母表}

\subsection{(不)带编号单行公式}

Use \texttt{equation} environment:
\begin{equation}
a^2 + b^2 = c^2.
\end{equation}

Use \texttt{equation*} environment or \texttt{\textbackslash[...\textbackslash]}:
\[ a^2 + b^2 = c^2.\]

\subsection{(不)带编号多行公式}

Use \texttt{align} environment:
\begin{align}
\text{sum} & = 1 + 2 + \cdots + n \\
& = \frac12 n(n+1).
S_n & = 1 + 2 + \cdots + n \\
& = \frac12 n(n+1).
\end{align}

Use \texttt{align*} environment:
\begin{align*}
\text{sum} & = 1 + 2 + \cdots + n \\
& = \frac12 n(n+1).
T_n & = 1^3 + 2^3 + \cdots + n^3 \\
& = \biggl(\frac{n(n+1)}{2}\biggr)^2 \\
& = S_n^2.
\end{align*}

\subsection{矩阵}
Expand Down

0 comments on commit a03ab5a

Please sign in to comment.