%1em(当前字体中M的宽度)
a\quad b
%2em
a\qquad b
%约为1/6个em
a\,b
a\thinspace b
%0.5个em
a\enspace b
%空格
a\ b
%硬空格
a~b
%1pc=12pt=4.218mm
a\kern 1pc b
a\kern -1em b
a\hskip 1em b
a\hspace{35pt}b
%占位宽度
a\hphantom{xyz}b
%弹性长度
a\hfill b
\section{\LaTeX 控制符}
\# \$ \% \{\} \~{} \_{} \textbackslash \&
\section{排版符号}
\S \P \dag \ddag \copyright \pounds
\section{\TeX 标志符号}
%基本符号
\TeX{} \LaTeX{} \LaTeXe{}
\section{引号}
` ' `` ''
\section{连字符}
- -- ---
\section{非英文字符}
\oe \OE \ae \AE \aa
\AA \o \O \l \L \ss \SS !` ?`
\LaTeX{}中的插图\ref{系统图片}:
\begin{figure}[htbp]
\centering
\includegraphics[scale=0.3]{2942.jpg_wh300.jpg}
\caption{\TeX 系统图片}\label{系统图片}
\includegraphics[scale=0.03]{2942.jpg_wh300.jpg}
\includegraphics[height=2cm]{2942.jpg_wh300.jpg}
\includegraphics[height=3cm]{2942.jpg_wh300.jpg}
\includegraphics[width=2cm]{2942.jpg_wh300.jpg}
\includegraphics[width=3cm]{2942.jpg_wh300.jpg}
\includegraphics[angle=-45,width=0.2\textwidth]{2942.jpg_wh300.jpg}
\end{figure}
%p表示列宽度
%l左边,r右边,c居中
使用表\ref{tab_score}如下图所示:
\begin{table}
\centering
\caption{系统表格}\label{tab_score}
\begin{tabular}{l| c| c| c| p{1.5cm}|}
\hline
姓名 & 语文 &数学 & 外语 &备注\\
\hline
张三 &87 &100 &93 & 优秀\\
\hline
李四 &75 &64 &52 &补考另行通知\\
\hline
王二 &80 &82 &78 &\\
\hline \hline
\end{tabular}
\end{table}
\section{希腊字母}
$\alpha$
$\beta$
$\gamma$
$\epsilon$
$\pi$
$\omega$
$\Gamma$
$\Delta$
$\Pi$
$\Omega$
$\sqrt{2+\sqrt{2}}$
a\quad b
%2em
a\qquad b
%约为1/6个em
a\,b
a\thinspace b
%0.5个em
a\enspace b
%空格
a\ b
%硬空格
a~b
%1pc=12pt=4.218mm
a\kern 1pc b
a\kern -1em b
a\hskip 1em b
a\hspace{35pt}b
%占位宽度
a\hphantom{xyz}b
%弹性长度
a\hfill b
\section{\LaTeX 控制符}
\# \$ \% \{\} \~{} \_{} \textbackslash \&
\section{排版符号}
\S \P \dag \ddag \copyright \pounds
\section{\TeX 标志符号}
%基本符号
\TeX{} \LaTeX{} \LaTeXe{}
\section{引号}
` ' `` ''
\section{连字符}
- -- ---
\section{非英文字符}
\oe \OE \ae \AE \aa
\AA \o \O \l \L \ss \SS !` ?`
\LaTeX{}中的插图\ref{系统图片}:
\begin{figure}[htbp]
\centering
\includegraphics[scale=0.3]{2942.jpg_wh300.jpg}
\caption{\TeX 系统图片}\label{系统图片}
\includegraphics[scale=0.03]{2942.jpg_wh300.jpg}
\includegraphics[height=2cm]{2942.jpg_wh300.jpg}
\includegraphics[height=3cm]{2942.jpg_wh300.jpg}
\includegraphics[width=2cm]{2942.jpg_wh300.jpg}
\includegraphics[width=3cm]{2942.jpg_wh300.jpg}
\includegraphics[angle=-45,width=0.2\textwidth]{2942.jpg_wh300.jpg}
\end{figure}
%p表示列宽度
%l左边,r右边,c居中
使用表\ref{tab_score}如下图所示:
\begin{table}
\centering
\caption{系统表格}\label{tab_score}
\begin{tabular}{l| c| c| c| p{1.5cm}|}
\hline
姓名 & 语文 &数学 & 外语 &备注\\
\hline
张三 &87 &100 &93 & 优秀\\
\hline
李四 &75 &64 &52 &补考另行通知\\
\hline
王二 &80 &82 &78 &\\
\hline \hline
\end{tabular}
\end{table}
\section{希腊字母}
$\alpha$
$\beta$
$\gamma$
$\epsilon$
$\pi$
$\omega$
$\Gamma$
$\Delta$
$\Pi$
$\Omega$
$\sqrt{2+\sqrt{2}}$
$\frac{1}{1+\frac{1}{x}}$
- 数学矩阵的实现:\usepackage{amsmath}
\[
\begin{matrix}
0 & 1 \\
1 & 0
\end{matrix}
\]
\[
\begin{bmatrix}
0 & 1 \\
1 & 0
\end{bmatrix}
\]
\[
\begin{pmatrix}
0 & 1 \\
1 & 0
\end{pmatrix}
\]
\[
\begin{vmatrix}
0 & 1 \\
1 & 0
\end{vmatrix}
\]
\[
\begin{Bmatrix}
0 & 1 \\
1 & 0
\end{Bmatrix}
\]
\[
\begin{Vmatrix}
0 & 1 \\
1 & 0
\end{Vmatrix}
\]
\[
A=\begin{bmatrix}
a_{11} & \dots & a_{1n} \\
& \ddots & \vdots \\
0 & & a_{nn}
\end{bmatrix}_{n \times n}
\] - %带编号
\begin{gather}
a+b=b+a\\
ab ba
\end{gather}
%不带编号
\begin{gather*}
a+b=b+a\\
ab ba
\end{gather*} - %以&来对齐
\begin{equation}
\begin{split}
\cos 2x &= \cos^2 x-\sin^2 x\\&= 2\cos^2 x -1
\end{split}
\end{equation} - %case环境写分段函数
\begin{equation}
D(x)=\begin{cases}
1,& \text{如果} x \in \mathbb{Q};\\
0.& \text{如果} x \in \mathbb{R}\setminus\mathbb{Q};
\end{cases}
\end{equation}