来源:互联网转载 | 更新日期:2023-09-04 07:18:57
创建文档
- File-New
- 复制下列内容到文档中,保存为utf-8文件,点TeX-PDFTeXify 或者Accessories-Compile编译,然后编译成功会显示对应的pdf文档。
\documentclass{article}
\begin{document}
hello, world
\end{document}
一些注解
- \documentclass{}(一些已经设置好的格式),将所需要的格式的.cls文件直接放入刚刚编译后生成的文件夹里,调用方式如下:
默认双栏显示
\documentclass[journal]{IEEEtran}
单栏显示
\documentclass[journal,onecolumn]{IEEEtran}
\usepackage{amsfonts, amssymb, amsmath, amsthm}
\usepackage{graphics, epsfig, subfigure}
\usepackage{booktabs, multirow}
\usepackage{url, hyperref}
\usepackage{float, setspace}
\usepackage{color}
\usepackage{cite}
\usepackage[boxed,vlined]{algorithm2e}
- 用%表示注释
- \begin{document} 文章开始
文章中间balabala
\end{document} 文章结束
文章中间
\author{……\thanks{……}
}
-
\begin{abstract} 摘要开始
……
\end{abstract} 摘要结束
-
\begin{keyword} 关键词开始
……
\end{keyword} 关键词结束
-
\section{Introduction} 正文绪论
-
\subsection{2nd level} 二级标题
-
\subsubsection{3rd level} 三级标题
-
\section{……} 第二章标题
文献引用
- \biliographystyle{IEEEtran} 文献
- \bibliography{xx} 对于文件夹中的xx.bib文件(存储文献的信息),在查询对应文章时,导出BibTex格式。
- \cite{对应文献的标签} 在正文中引用
- \usepackage{cite} 在同一个地方引用多篇文献,可以表示为[[1]]-[[3]]的形式
公式
- $……$ 在两个 $中写公式
- $t_{\pi_i}^{dispose}$ t π i d i s p o s e t_{\pi_i}^{dispose} tπidispose 下划线_表示在右下角,^表示在右上方
- $t_{\pi_i}^{\text{dispose}}$ t π i d i s p o s e t_{\pi_i}^{dispose} tπidispose
- \text 斜体表示21
- \frac{A}{B} 分式 A B \frac{A}{B} BA
- 复杂公式
\begin{equation}
……公式\end{equation}\label{Eqn_equationName}
- \label{Eqn_equationName} 命名该公式,Eqn_equationName为该公式的命名,且\label{}会自动标号,若不想公式后标号,则\begin{equation*} \end{equation*}
- \ref{Eqn_equationName} 引用该公式
\section{1st level}\label{Sec_Intro}
\begin{equation}
t=\frac{A}{B}
\label{Eqn_fracAB}
\end{equation}we refer to the t equation Eq.(\ref{Eqn_fracAB}) defined in Section \ref{Sec_Intro}.
显示为:we refer to the t equation Eq.(1) defined in Section I.
- \begin{eqnarray} 公式阵列
\end{eqnarray} - \begin{align} 公式阵列
\end{align}
图片
\begin{figure}[!ht]\centering
\includegraphics[width=0.48\textwidth]{图片名}
\caption{The caption for your figure}
\label{Fig_picName}
\end{figure}
上述操作图片双栏显示,若要变成单栏显示,则\begin{figure*} \end{figure*}
表格
待续 47:43
编号
方式一: {itemize}
默认为一个小圆点
若需要不一样的列表符号,可以这样表示:
\begin{itemize}
\item[-] point1...
\item[*] point2....
\end{itemize}
生成的列表即为:
- point1
* point2
方式二:{emumerate}
这是带序号的列表. 默认生成 1,2,3…
如果想要其他修饰, 如上面的(1) (2)… 需要导包\usepackage{enumerate} . 然后如下使用:
\begin{enumerate}[(1)]
\item hi...
\item hello....
\end{enumerate}
enumerate会自动识别[ ]里的数字标签, 生成的列表为
(1) hi
(2) hello
在中括号里输入[step i], 那么生成的列表是
step i hi
step ii hello
其他表达
波浪线~:\textasciitilde
下划线_: \underline{~~}
省略号…:\ldots