%\documentclass[11pt,twoside,a4paper]{article}即使用article格式,11磅大小的字体来排版,得到在A4纸上双面打印的效果
\usepackage[options]{class}
\pagestyle{style}
%plain 在页脚正中显示页码,为缺省设置;headings 在页眉中显示章节名及页码,页脚空白;empty 将页眉页脚都设为空白。
\begin{document}
\title{},\author{},\date{}
\maketitle
\tableofcontents
%要编译两到三次才可得到正确的目录
\section{}
\subsection{}
%换行
\newline 或 \\
%分段
空行
%另起一页
\newpage
%简单列表,无序号,一个小圆点
\begin{itemize}
\item 内容
\item But it might start to look silly.
\end{itemize}
%有序号的列表
\begin{enumerate}
\item 内容
\item Therefore remember
\end{enumerate}
%描述性列表
\begin{description}
\item[Stupid] things will not become smart because they are in a list.
\item[Smart] things, though, can be presented beautifully in a list.
\end{description}
%左对齐
\begin{flushleft}
\end{flushleft}
%右对齐
\begin{flushright}\end{flushright}
%居中
\begin{center}
\end{center}
%参考文献
%原文中.....\cite{pa} .......
\begin{thebibliography}{99}
\addcontentsline{toc}{section}{References}
\bibitem{pa} author: \emph{bookname},ABC Publish,2001
\bibitem{pa} 网站,作者,时间
\end{thebibliography}
\end{document}
特殊字符和符号
- 左引号
- 右引号
- 转义
- 使命令后的空格不被忽略
- 破折号和连字号
- 波浪号
- °的符号
- 省略号
- 注音符号和特殊字符
一般情况如下表所示,当字母为i或j时,在字母i和j上标一个注音符号,它的点儿必须去掉。要写为\i和\j。例na\”\i ve
数学公式
- 数学公式在段落中
- 数学公式在段落外
- 公式编号加标签引用
用\label给方程加标签
在文中某处用\ref或amsmath宏包中的eqref命令来引用
\begin{equation}\label{eq:eps}
\epsilon > 0
\end{equation}
From (\ref{eq:eps}), we gather \ldots{}From \eqref{eq:eps} we do the same.
- 数学公式中的空格
- 希腊字母
大写$\Gamma \Delta ....$
- 粗体符号
\boldsymbol{}
- 指数
^ $x^{2}$
- 下标
_ $a_{1}$
- 分数
frac{}{} frac{1}{k^2}
- 平方根
\sqrt[n]{x}
- 省略号
ldots
- 水平线
\overline{} \underline{}
- 水平括号
\overbrace \underbrace $\underbrace{a+b+\cdots+z}_{26}$
- 导数
y'=2x
- 向量
\begin{displaymath}
\vec a\quad\overrightarrow{AB}
\end{displaymath}
- 乘号(点乘)
\cdot
- 函数名
- 取模
$a\bmod b$\\
$x\equiv a \pmod{b}$
- 分式
\frac{分子}{分母}
- 三点列
- 积分求和乘积
积分号 \int 求和号\sum 乘积号\prod 上限和下限用^ 和_ 来指定,如同上标与下标一样
- 符号堆积
- 二项式系数或类似的结构
- 可用定界符列表
- 数组
- 分段函数
- 长等式
- 虚位
- 定理
\定理内容
\end{Theorem}
- 引理
\引理内容
\end{Lemma}
- 证明
证明过程
\end{proof}
- 数学符号表
后期修饰
- 粗体
\textbf{文字}
- 强调
\emph{强调的词}
- 断词
例子\hyphenation{FORTRAN Hy-phen-a-tion}
- 交叉引用
例子A reference to this subsection \label{sec:this} looks like: ‘‘see section \ref{sec:this} on page \pageref{sec:this}.’’
- 连字
例 Not shelfful,but shelf\mbox{}ful
- 脚注
- 网址链接
The \href{http://www.ctan.org}{CTAN} website.生成的效果为“CTAN”;单击词“CTAN” 将把你带到CTAN 网站。
表格
普通三线表:
\begin{table}[!h]
\caption{\label{tab:test} table name}
\centering
\begin{tabular}{lcl} %l即left,r即right,c即center,分别代表每列应处的位置
\toprule
..... & ...... & ..... \\
\midrule
..... & ..... & ....... \\
..... & ..... & ....... \\
\bottomrule
\end{tabular}
\end{table}
\begin{figure}
\centering
\includegraphics[angle=90,width=0.5\textwidth]{test}
%test和latex文件在同一个文件夹下
\caption{This is a test.}
\end{figure}