\begin{itemize} \item The individual entries are indicated with a black dot, a so-called bullet. \item The text in the entries may be of any length. \end{itemize}
有序列表
enumerate标签产生,每个列表前有\item
它会自动生成标记该项目的编号。枚举标签由从 1 开始的序列号组成。
1 2 3 4
\begin{enumerate} \item This is the first entry in our list \item The list numbers increase with each entry we add \end{enumerate}
数学公式
LATEX允许两种数学表达式的书写模式:内联(inline)模式和显示(display)模式。
内联(inline)模式:编写作为文本一部分的公式。
显示(display)模式:编写不属于文本或段落的表达式,因此放在单独的行上。
许多数学模式命令需要amsmath包。
内联(inline)模式
1 2
In physics, the mass-energy equivalence is stated by the equation $E=mc^2$, discovered in 1905 by Albert Einstein.
要将方程置于内联模式,请使用以下分隔符之一:
\( ... \)
$ ... $
\begin{math} ... \end{math}
显示(display)模式
要在显示模式下打印方程,请使用以下分隔符之一:
\[ ... \]
\begin{displaymath} ... \end{displaymath}
\begin{equation} ... \end{equation}
$$ ... $$不建议使用,不一致的间距,并不得与一些数学工具很好地工作。
1 2 3 4 5 6 7 8 9 10
%无编号-display% The mass-energy equivalence is described by the famous equation \[ E=mc^2 \] discovered in 1905 by Albert Einstein.
%有编号-display% In natural units ($c = 1$), the formula expresses the identity \begin{equation} E=m \end{equation}
基本数学符号案例
1 2 3 4 5 6 7 8 9 10 11
Subscripts in math mode are written as $a_b$ and superscripts are written as $a^b$. These can be combined an nested to write expressions such as
\[ T^{i_1 i_2 \dots i_p}_{j_1 j_2 \dots j_q} = T(x^{i_1},\dots,x^{i_p},e_{j_1},\dots,e_{j_q}) \] We write integrals using $\int$ and fractions using $\frac{a}{b}$. Limits are placed on integrals using superscripts and subscripts:
\[\int_0^1 \frac{dx}{e^x} = \frac{e-1}{e} \]
Lower case Greek letters are written as $\omega$$\delta$ etc. while upper case Greek letters are written as $\Omega$$\Delta$.
Mathematical operators are prefixed with a backslash as $\sin(\beta)$, $\cos(\alpha)$, $\log(x)$ etc.
基本格式化
摘要
声明摘要会将文字以特殊格式放置文档顶部。
1 2 3 4 5 6 7
\begin{document}
\begin{abstract} This is a simple paragraph at the beginning of the document. A brief introduction about the main subject. \end{abstract} \end{document}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortisfacilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales...
\section{Second Section}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet mi necante...
\subsection{First Subsection} Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales...
\section*{Unnumbered Section} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem
表
1 2 3 4 5 6 7
\begin{center} \begin{tabular}{ c c c } cell1 & cell2 & cell3 \\ cell4 & cell5 & cell6 \\ cell7 & cell8 & cell9 \end{tabular} \end{center}
\section{Introduction} This is the first section. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortisfacilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales... \section*{Unnumbered Section} \addcontentsline{toc}{section}{Unnumbered Section}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet mi necante...
\section{Second Section} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet mi necante... \end{document}
\title{Hello Latex} \author{Hibisici Dai \thanks{funded by the SWPU}} \date{\today}
\begin{document} \maketitle
We have now added a title, author and date to our first \LaTeX{} document!
\par ~\\
%粗体% Some of the \textbf{greatest}
%下划线% discoveries in \underline{science}
%粗体、斜体% were made by \textbf{\textit{accident}}.
\par ~\\
%正常斜体% Some of the greatest \emph{discoveries} in science were made by accident.
%斜体中标正常% \textit{Some of the greatest \emph{discoveries} in science were made by accident.}
%粗体中斜体% \textbf{Some of the greatest \emph{discoveries} in science were made by accident.}
\par ~\\
%无序列表% \begin{itemize} \item The individual entries are indicated with a black dot, a so-called bullet. \item The text in the entries may be of any length. \end{itemize}
\par ~\\
%有序列表% \begin{enumerate} \item This is the first entry in our list \item The list numbers increase with each entry we add \end{enumerate}
\par ~\\
%公式-inline% In physics, the mass-energy equivalence is stated by the equation $E=mc^2$, discovered in 1905 by Albert Einstein.
\par ~\\
%无编号-display% The mass-energy equivalence is described by the famous equation \[ E=mc^2 \] discovered in 1905 by Albert Einstein.
\par ~\\
%有编号-display% In natural units ($c = 1$), the formula expresses the identity \begin{equation} E=m \end{equation}
\par ~\\
%基本数学符号案例% Subscripts in math mode are written as $a_b$ and superscripts are written as $a^b$. These can be combined an nested to write expressions such as
\[ T^{i_1 i_2 \dots i_p}_{j_1 j_2 \dots j_q} = T(x^{i_1},\dots,x^{i_p},e_{j_1},\dots,e_{j_q}) \] We write integrals using $\int$ and fractions using $\frac{a}{b}$. Limits are placed on integrals using superscripts and subscripts:
\[\int_0^1 \frac{dx}{e^x} = \frac{e-1}{e} \]
Lower case Greek letters are written as $\omega$$\delta$ etc. while upper case Greek letters are written as $\Omega$$\Delta$.
Mathematical operators are prefixed with a backslash as $\sin(\beta)$, $\cos(\alpha)$, $\log(x)$ etc.
\par ~\\
%摘要% \begin{abstract} This is a simple paragraph at the beginning of the document. A brief introduction about the main subject. \end{abstract}
\par ~\\
%测试章节% \section{Introduction}
This is the first section.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortisfacilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales...
\section{Second Section}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet mi necante...
\subsection{First Subsection} Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales...
\section*{Unnumbered Section} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem
\par ~\\
%简单工作表% \begin{center} \begin{tabular}{ c c c } cell1 & cell2 & cell3 \\ cell4 & cell5 & cell6 \\ cell7 & cell8 & cell9 \end{tabular} \end{center}