文章目录
-
- 一、导包
- 二、各块函数的作用
-
- 1、文章标题
- 2、目录
- 3、开始结束文档块
- 4、三线表格
- 5、公式
- 5、因为所以
- 5、代码
- 8、算法
- 9、大于等于,小于等于,因为,所以
- 10、Latex中输入矩阵:
- 11、公式括号总结
-
- (1)单边大括号
- (2)array,后面带大于号小于号
- (3)case,不同情形
- (4)括号的左右边界. \left\{和\right
- (5)控制括号的大小
- (6)使用\big, \Big, \bigg, \Bigg控制括号的大小
- (7)各种括号
- 三、参考博客
- 四、范例
-
- 1、r语言作业模板
- 2、课程论文模板
- 五、sci论文模板
一、导包
\documentclass{article}\usepackage{geometry}
\geometry{a4paper}
%\usepackage[UTF8, heading = false, scheme = plain]{ctex}%格式
\usepackage{ctex}
%\usepackage{authblk} %添加机构,需要安装preprint包
\usepackage{graphicx} %添加图片
\usepackage{amsthm}
\usepackage{amsmath}
\renewcommand{\vec}[1]{\boldsymbol{#1}} % 生产粗体向量,而不是带箭头的向量
\usepackage{amssymb}
\usepackage{booktabs} % excel导出的大表格
\usepackage{booktabs}
\usepackage{amsthm,amsmath,amssymb}
\usepackage{mathrsfs}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{amssymb}
二、各块函数的作用
1、文章标题
\title{文章名}
\author{作者 \\ 机构}
并在 \begin{document} 后加上\maketitle
2、目录
\tableofcontents
3、开始结束文档块
\begin{document}
\maketitle
\end{document}
4、三线表格
\begin{center}
\begin{spacing}{1.1}
%longtable的意思是 这个表格可以跨页
\begin{longtable}{p{.1\textwidth}p{.7\textwidth}m{.3\textwidth}}
\caption{description}
\label{table1}\toprule %第一行线%表示第一列占1.5cm 第二列占6cm 第三列占2cm 的距离 并且这几个字都是居中对齐\multicolumn{1}{m{1.5cm}}{\centering Symbol} & \multicolumn{1}{m{6cm}}{\centering Definition} & \multicolumn{1}{m{2cm}}{ Unit} \\\midrule %第二行线$V$ & index & -- \\$X$ & The & -- \\$Y$ & The & -- \\$Z$ & The & -- \\\bottomrule %第三行线
\end{longtable}
\end{spacing}
\end{center}
5、公式
\begin{equation}f_{\theta}(x)=\left\{\begin{array}{ccc}\theta x^{\theta -1} & & 0 < x < 1\\0 & & else \\\end{array}\right.
\end{equation}
5、因为所以
因为所以:在导言区包含宏包\usepackage{amssymb}才能使用\because和\therefore命令
5、代码
\begin{lstlisting}
# 代码位置
\end{lstlisting}
8、算法
\autoref{alg:A} 算法\begin{algorithm}[htb]\caption{算法名称} %算法的名字\label{alg:A}\hspace*{0.02in} {\bf Input:} %算法的输入, input parameters A, B, C\\\hspace*{0.02in} {\bf Output:} %算法的结果输出output result\begin{algorithmic}[1]\State some description % \State 后写一般语句\For{condition} % For 语句,需要和EndFor对应\State ...\If{condition} % If 语句,需要和EndIf对应\State ...\Else\State ...\EndIf\EndFor\While{condition} % While语句,需要和EndWhile对应\State ...\EndWhile\State \Return result\end{algorithmic}
\end{algorithm}
9、大于等于,小于等于,因为,所以
\leq
\le
\req
\re
因为所以:在导言区包含宏包\usepackage{amssymb}才能使用\because和\therefore命令
10、Latex中输入矩阵:
\begin{equation} %开始数学环境
D = \left[ %左括号
\begin{array}{cccc} %该矩阵一共3列,每一列都居中放置
d(a_1,b_1) & d(a_1,b_2) & ... & d(a_1,b_m)\\ %第一行元素
d(a_2,b_1) & d(a_2,b_2) & ... & d(a_2,b_m)\\ %第二行元素
... & ... & ... & ...\\ %第二行元素
d(a_n,b_1) & d(a_n,b_2) & ... & d(a_n,b_m)\\ %第二行元素
\end{array}
\right] %右括号
\end{equation}
11、公式括号总结
(1)单边大括号
$$ f(x)=\left\{
\begin{aligned}
x & = \cos(t) \\
y & = \sin(t) \\
z & = \frac xy
\end{aligned}
\right.
$$
(2)array,后面带大于号小于号
$$ F^{HLLC}=\left\{
\begin{array}{rcl}
F_L & & {0 < S_L}\\
F^*_L & & {S_L \leq 0 < S_M}\\
F^*_R & & {S_M \leq 0 < S_R}\\
F_R & & {S_R \leq 0}
\end{array} \right. $$
(3)case,不同情形
$$f(x)=
\begin{cases}
0& \text{x=0}\\
1& \text{x!=0}
\end{cases}$$
(4)括号的左右边界. \left{和\right
- 此方法可解决多行公式的括号匹配问题
$$\left\{ a \right.$$
(5)控制括号的大小
- 使用\left 和 \right
可以自动控制不同层次括号的大小,\left 放在左边括号前面,\right 放在右边括号前面,需要配对使用。(但是和别的括号匹配也行,和\right.匹配也行)
(6)使用\big, \Big, \bigg, \Bigg控制括号的大小
不需要成对使用
\Bigg ( \bigg [ \Big \{ \big \langle \left | \| x \| \right | \big \rangle \Big \} \bigg ] \Bigg )
(7)各种括号
三、参考博客
LaTeX中文模版代码
LaTeX 中表格的用法总结(四)——三线表和复杂的表格
latex如何输入三种花体字母
LaTeX 特殊符号、加帽子符号、横线和波浪线
在LaTex中插入代码块
LaTeX大括号公式和一般括号总结
LaTeX输入带圈数字
LaTeX一行排两个图片示例
LaTeX输入极限下标,输入目标函数中的max下标约束条件
latex中的希腊字母
MathJax 支持的 Latex 符号总结(微积分常用符号)
Latex中定理、引理、证明、假设
用Latex排版论文(2)《自动化学报》Latex模版使用时需要注意的问题
四、范例
1、r语言作业模板
\documentclass{article}\usepackage{geometry}
\geometry{a4paper}
%\usepackage[UTF8, heading = false, scheme = plain]{ctex}%格式
\usepackage{ctex}
%\usepackage{authblk} %添加机构,需要安装preprint包
\usepackage{graphicx} %添加图片
\usepackage{amsthm}
\usepackage{amsmath}
\renewcommand{\vec}[1]{\boldsymbol{#1}} % 生产粗体向量,而不是带箭头的向量
\usepackage{amssymb}
\usepackage{booktabs} % excel导出的大表格
\usepackage{booktabs}
\usepackage{amsthm,amsmath,amssymb}
\usepackage{mathrsfs}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{amssymb}%\newtheorem{definition}{Definition} %英文
%\newtheorem{theorem}{Theorem}
\newtheorem{definition}{定义} %中文
\newtheorem{lemma}{引理}
\newtheorem{theorem}{定理}
%\newenvironment{proof}{{\noindent\it 证明}\quad}{\hfill $\square$\par}\DeclareMathOperator{\Ima}{Im}%定义新符号
\DeclareMathOperator{\Rank}{rank}%定义求秩算子\title{数理统计作业}
\author{}%date{2019年10月30日} %注释后显示为编译时日期\begin{document}
\maketitle\tableofcontents
\newpage
% 生成目录,请删除上面两行注释%\listoffigures
%\newpage
% 生成图片列表,请删除上面两行注释%\begin{table}[htbp]
% \caption{\label{tab:test}示例表格}
% \begin{tabular}{lcl}
% \toprule
% 。。 & 。。 & 。。 \\
% \midrule
% 。。 & 。。 & 。。 \\
% 。。 & 。。 & 。。 \\
% 。。 & 。。 & 。。 \\
% \bottomrule
% \end{tabular}
%\end{table}\section{29题}%\begin{figure}[ht] %htbp
%\centering
%\includegraphics[scale=0.6]{gradient.png}
%\caption{this is a figure demo}
%\label{fig:label}
%\end{figure} \begin{equation}f_{\theta}(x)=\left\{\begin{array}{ccc}\theta x^{\theta -1} & & 0 < x < 1\\0 & & else \\\end{array}\right.
\end{equation} \subsection{求参数$\theta$ 的等尾置信区间}\newpage\section{36题}
\begin{table}[htbp] \centering\caption{\label{tab:test}粉尘含量检测数据} \begin{tabular}{lcccccccccc} \hline 粉尘含量 & 5.0 & 4.5 & 7.0 & 6.5 & 5.5 & 6.0 & 3.5 & 5.2 & 3.0 & 4.0 \\ \hline \end{tabular}
\end{table}r语言代码:
\lstset{numbers=left, %设置行号位置numberstyle=\tiny, %设置行号大小keywordstyle=\color{blue}, %设置关键字颜色commentstyle=\color[cmyk]{1,0,1,0}, %设置注释颜色frame=single, %设置边框格式escapeinside=``, %逃逸字符(1左面的键),用于显示中文%breaklines, %自动折行extendedchars=false, %解决代码跨页时,章节标题,页眉等汉字不显示的问题xleftmargin=2em,xrightmargin=2em, aboveskip=1em, %设置边距tabsize=4, %设置tab空格数showspaces=false %不显示空格
}
\begin{lstlisting}{language=R}
a <- c(5.0,4.5,7.0,6.5,5.5,6.0,3.5,5.2,3.0,4.0)
mean(a) # 求均值
sd(a) # 求方差
qt(0.975, 9) # 求t分布的0.025分位数
\end{lstlisting}结果:
\begin{lstlisting}{language=R}
> a <- c(5.0,4.5,7.0,6.5,5.5,6.0,3.5,5.2,3.0,4.0)
> mean(a) # 求均值
[1] 5.02
> sd(a) # 求方差
[1] 1.292543
> qt(0.975, 9) # 求t分布的0.025分位数
[1] 2.262157
\end{lstlisting}\subsection{对城区空气粉尘含量的平均值作出估计}
$\because$由题可知,总体服从正态分布。$\therefore$样本均值为$\overline{X}=5.02$,样本标准差s=1.292543,对城区空气粉尘的平均值的估计为5.02$\because$由于样本均值是总体均值的无偏估计$\therefore$城市空气粉尘含量的平均值估计为5.02\subsection{计算平均值的估计精度}
$\because$平均值的估计精度: $A(\hat{\theta}) = \big[1-\frac{\Delta(\hat{\theta})}{\theta}\big]\times100\%$。由于$\overline{X}$服从自由度为9的学生氏t分布,关于$\alpha$的双侧分位数$t_{0.0025}=2.2622$
,样本标准差为s=1.292543$\therefore$粉尘含量平均值的95\%置信水平下的置信区间为$[5.02-2.2622*\dfrac{1.2925}{\sqrt{10}},5.02+2.2622*\dfrac{1.2925}{\sqrt{10}}]$,即[4.0954,5.9446],其误差限为$\Delta(\hat{\theta}) = \dfrac{5.9446-4.0954}{2}=0.9246$$\therefore$ 估计精度为$A(\hat{\theta}) = \big[1 - \frac{0.9246}{5.9446}\big]\times100\% = 0.8445$\newpage\section{48题} \begin{equation}
W^{*} = \frac{\overline{X}^{*} - \overline{X}}{S^{*} / \sqrt{n}}
\end{equation}\subsection{构建总体均值$\mu$置信度为$1-\alpha$置信区间的原理}
若总体X的分布是非正态分布,同时总体均值$\mu$和总体方差$\sigma^{2}$未知。$X_{1},X_{2},X_{3},\dots X_{n}$是取自总体X的样本,当样本容量足够大时,考虑样本函数
$\frac{\sqrt{n}(\overline{X}-\mu)}{\sigma}$,以样本标准差S的实现s估计总体标准差$\sigma$,即$\dfrac{\overline{X}-\mu}{s/\sqrt{n}}\sim N(0,1)$(近似)\subsection{构建总体均值$\mu$置信度为$1-\alpha$置信区间的方法}
通过bootstrap 抽样的方法,实现大样本。具体过程为:将样本实现$X_{1},X_{2},X_{3},\dots X_{n}$作为
已经获得的数据,现在从这组样本实现中以等可能重复抽样的方式再抽取样本,样本的容量
也为n,这样建立一次bootstrap 样本的方式重复B 次(B=1000),每个bootstrap 样本分别记
作:$X_{11},X_{12},X_{13},\dots X_{1n};X_{21},X_{22},X_{23},\dots X_{2n};\dots X_{B1},X_{B2},X_{3},\dots X_{Bn}$。通过每个bootstrap 样本可以求的对应样本的$W_{i}^{*}(i\in[1,B])$,
通过 bootstrap 建立的所有样本的均值$\overline{X}^{*}$,方差为$S^{*}$。当n 很大时,自由度为n 的学生氏t 分布趋近标准正态分布N(0,1),因此用$w^{*}$的近似分位数$W_{\alpha}^{*}(n)$代替标准正态分布的分位数,$\overline{X}_{i}^{*}$的0.5 的分位数为$\overline{X}_{0.5}^{*}$。置信度为1-$\alpha$的置信区间为$[\overline{X}^{*}-W^{*}_{\frac{\alpha}{2}}\frac{S^{*}}{\sqrt{n}},\overline{X}^{*}+W^{*}_{\frac{\alpha}{2}}\frac{S^{*}}{\sqrt{n}}]$
\newpage\section{50题}\subsection{应用核密度估计法求X分布概率密度函数的估计}
核函数选用高斯核:$K(x) = \dfrac{1}{\sqrt{2\pi}}e^{-\frac{1}{2}x^{2}} , x\in R$核密度估计的窗宽选用最大平滑法进行优化选择:
\begin{equation}
\label{equ:50-1}h_{n}^{(op)} = 3\big(\frac{R(K)\sigma^{5}}{35n}\big)^{1/5} = 3\big(\frac{\sigma^{5}}{\sqrt{2\pi}\times35n}\big)^{1/5}
\end{equation}由于标准差为:$\sigma = 656.9043$,$R(K) = \frac{1}{\sqrt{2\pi}}$,代入公式(\ref{equ:50-1})的到优化窗宽:$\hat{f}_{100}(x) = 3\times\big(\frac{656.9043^{5}}{\sqrt{2\pi}\times35\times100}\big)^{1/5} = 320.6208$若用$x_{1} , x_{2} , x_{3} \dots x_{n}$表示样本实现,则总体X 的概率密度函数的核密度估计为:$\hat{f}_{100}(x) = \frac{1}{32062.08\times\sqrt{2\pi}} \sum\limits_{i=1}^{100} e^{-\dfrac{1}{2}\big(\frac{x - x_{i}}{320.6208}\big)}$\subsection{绘制X分布概率密度函数的估计曲线}
r语言代码:
\lstset{numbers=left, %设置行号位置numberstyle=\tiny, %设置行号大小keywordstyle=\color{blue}, %设置关键字颜色commentstyle=\color[cmyk]{1,0,1,0}, %设置注释颜色frame=single, %设置边框格式escapeinside=``, %逃逸字符(1左面的键),用于显示中文%breaklines, %自动折行extendedchars=false, %解决代码跨页时,章节标题,页眉等汉字不显示的问题xleftmargin=2em,xrightmargin=2em, aboveskip=1em, %设置边距tabsize=4, %设置tab空格数showspaces=false %不显示空格
}
\begin{lstlisting}{language=R}
x <- c(4.5,866.7,643.7,23.7,816.0,611.1,520.9,31.1,183.8,+
837.4,101.5,50.9,48.5,22.2,673.8,1678.5,129.3,1426.5,346.1,+
2973.3,375.3,108.7,1046.5,99.4,369.1,1637.3,2.6,258.5,693.2,+
39.5,455.5,16.8,296.8,608.4,410.0,74.6,125.2,189.3,484.9,+
1227.5,45.9,1621.7,328.1,1761.5,667.6,55.9,68.1,45.8,199.5,+
24.4,3028.6,1102.6,1053.6,47.9,1430.6,1546.4,899.2,210.4,+
1017.2,638.7,1418.8,681.7,822.6,83.3,820.3,1378.6,317.4,2.2,+
1113.9,1402.6,851.2,906.6,796.6,148.2,358.6,54.0,489.7,+
397.7,1923.3,113.4,1053.5,799.6,2571.2,1677.4,406.8,54.8,+
699.4,1954.7,491.5,1701.8,820.5,423.3,1091.5,117.8,192.7,+
448.3,156.3,449.9,143.2,385.4)
b <- max(x)
s <- sd(x)
print(s)
h = 3*(s^5/sqrt(2*pi)/35/100)^(1/5)
print(h)
fun <- density(x,bw=h,kernel="gauss")
hist(x, prob=T)
lines(fun)
\end{lstlisting}X分布概率密度函数的估计曲线如图(\ref{fig:50-1})所示:
\begin{figure}
\centering
\includegraphics[width=0.7\linewidth]{50-1}
\caption{X分布概率密度函数的估计曲线}
\label{fig:50-1}
\end{figure}\subsection{求概率P\{X > 700\}}
r语言代码:
\begin{lstlisting}{language=R}
#定义被积函数R代码
f<-function(t,a,b,h,y){
k<-(b-a)*t+a+b-2*y
z<-exp(-k*k/(8*h^2))
return(z)}
#Gauss-Legendre积分计算的R代码
I<-function(a,b,h,y) {
xx<-c(0.0000,0.5384693,0.9061799)
A<-c(0.5688889,0.4786287,0.2369269)
q<-A[1]*f(xx[1],a,b,h,y)+A[2]*(f(xx[2],a,b,h,y)+
f(xx[2],a,b,h,y))+A[3]*(f(xx[3],a,b,h,y)+
f(-xx[3],a,b,h,y))
return(q)}
#计算概率的R代码
P<-function(a,b,h,x) {
y<-rep(0,length(x))
s<-0
for (i in 1:length(x)) y[i]<-I(a,b,h,x[i])
for (i in 1:length(x)) s<-s+y[i]
m<-2*sqrt(2*pi)*h*length(x)
p<-(b-a)*s/m
return(p) }
P(700,b,h,x)
\end{lstlisting}结果:
\begin{lstlisting}[1] 0.2519053
\end{lstlisting}
\end{document}
2、课程论文模板
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% LaTeX 模板,主要针对 A4 纸的中文Paper。
%% 配合教程食用 https://mp.csdn.net/mdeditor/86517934#
%%
%% Ver 1.0 By Tstar
%%
%% You can mofify it and distribute it freely :)
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 文章模板:utf-8编码,A4 纸,10磅,文章类型为article,
% 这里设置UTF8后,下面只需要使用ctex包就能直接用中文
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[UTF8,a4paper,10pt]{article}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% packages
% 这部分声明需要用到的包
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{ctex} % 中文支持
\usepackage{fancyhdr}
\usepackage{multicol} % 正文单双栏混排
\usepackage{lastpage} % 用于获得最大页数,页眉显示用
\usepackage{geometry} % 用于设置页边距
\usepackage[subfigure,AllowH]{graphfig} %图片相关%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%定义页边距
%geometry使用手册
%http://www.ctex.org/documents/packages/layout/geometry.htm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\geometry{left=3cm,right=3.8cm,top=2.5cm,bottom=2.5cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%定义行间距为1.1倍行距
\renewcommand{\baselinestretch}{1.1}
%重新定义缩进长度 pt是字号
\parindent 22pt%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 页眉页脚定义
% 因为首页会自动定义成plain格式 http://www.ctex.org/documents/packages/layout/fancyhdr.htm
% but我喜欢每一页都有页眉,so重定义plain型,
% 后面就全设置成plain型好了orz,其实应该改成fancy型再设置fancy的属性
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\fancypagestyle{plain}{
\fancyhf{}
\lhead{Month, Year}
\chead{\centering{chinese latex template}}
\rhead{Page \thepage\ of \pageref{LastPage}}
\lfoot{}
\cfoot{}
\rfoot{}}
\pagestyle{plain}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 标题,作者,通信地址定义
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% texbf{...}为加粗
% huge{...}等等调节字体的
\title{\textbf{\huge{Latex中文模板}}}
\author{author1,author2\\
(西北农林科技大学)}
\date{} % 这一行用来去掉默认的日期显示%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 文章正文
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 此行使文献引用以上标形式显示
\newcommand{\supercite}[1]{\textsuperscript{\cite{#1}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 显示title
\maketitle%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 中文摘要
% 调整摘要、关键词,中图分类号的页边距
% 中英文同时调整
% 因为geometry命令不能用在正文区只能用这看起来很麻烦的方法了orz
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setlength{\oddsidemargin}{ 1cm} % 3.17cm - 1 inch
\setlength{\evensidemargin}{\oddsidemargin}
\setlength{\textwidth}{13.50cm}
%添加标题和摘要的距离
%vspace{...}是竖直距离
%hspace{...}是水平距离
\vspace{-0.2cm}
%center是居中用的
\begin{center}
%在这里写中文摘要
%heiti表示....黑体,kaishu是楷书,还有songti宋体,lishu隶书,fangsong仿宋
\parbox{\textwidth}{
{\heiti 摘~~~要}\quad {\kaishu 这是一个菜菜的latex中文模板,课程论文、大作业的时候可以用用吧。}\\
{\heiti 关键词} \quad {\kaishu latex,菜菜的,中文模板,课程论文}}
\end{center}
\vspace{0.5cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 英文摘要
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \\为换行,可以附加行间距;\par是结束并开始下一段,多一个首行缩进
\begin{center}
\large{\textbf{chinese latex template}}\\%writer and communication address
\textbf{author1, author2}\\[2pt]
\small{\textit{(Nanjing University, School of Management and Engineering, Department of Automation)}}\\[14pt]
\parbox{\textwidth}{
%English abstract
\small{\textbf{Abstract}\quad This is a basic chinese latex template for novice,could be used for course eassy\\
%English key word
\textbf{Key Words}\quad latex, basic, chinese template, course eassy}}
\end {center}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 目录页-------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\tableofcontents
\newpage%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 正文由此开始-------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 恢复正文页边距
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setlength{\oddsidemargin}{-.5cm} % 3.17cm - 1 inch
\setlength{\evensidemargin}{\oddsidemargin}
\setlength{\textwidth}{17.00cm}\section{引用文献}
%\indent 为首行缩进
%引用文献
\indent 文献\supercite{ref1,ref2}中提到:南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛
\subsection{列表}
\begin{itemize}\item 身是菩提树,心如明镜台\item 时时勤拂拭,勿使惹尘埃.\item 菩提本无树,明镜亦非台\item 本来无一物,何处惹尘埃.
\end{itemize}
南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛
\section{插入图片}
\begin{Figure}[H]{aaa}[qwad]
%pic和tex文件保存在同一路径下
\graphfile[30]{1.png}[picture]
%相对路径(推荐),可以在tex所在路径建立一个fig 文件夹放图片
%\graphfile[60]{fig//1.png}[picture]
%绝对路径,从电脑任意位置寻找图片
%\graphfile[30]{C://Users//TstarYSY//Desktop//fig//1.png}[picture]
\end{Figure}
% \noindent 取消首行缩进
\noindent 南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛\par
南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛
\par
\begin{Figure}[H]{asdf}[111]
\graphfile[34]{1.png}[picture1]
\graphfile[36]{1.png}[picture2]
\par
\end{Figure}
\section{表格}
南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛
\par
\vspace{3ex}
\begin{table}[h]\centering%{|l|c|c|}指明有3列而且对其方式是左中中,|表示要加竖线%\hline表示添加横线\begin{tabular}{|l|c|c|}\hline%&表示一个单元格内容结束%multicolumn{n}{...}{...}表示合并n个单元格,指明对齐方式和内容Setting&\multicolumn{2}{c|}{A4 size paper}\\\hline&mm&inches\\Top&25&1.0\\Bottom&25&1.0\\Left&20&0.8\\Right&20&0.8\\Column Width&82&3.2\\Column Spacing&6&0.25\\\hline\end{tabular}\caption{a table}\label{tab:table1}
\end{table}
\vspace{3ex}
\noindent 南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛
\section{公式}
南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛
\noindent
\begin{figure}[h]
\begin{minipage}[h]{0.48\linewidth}
\[\alpha \ge \delta {\rm{ + }}\overline {\eta * \beta } \]
\end{minipage}
\begin{minipage}[h]{0.48\linewidth}
\[\left[ {\begin{array}{*{20}{c}}
{{a_1}}&{{a_2}}&\alpha &\beta \\
\chi &\varphi &\gamma &\eta \\
\theta &{{\zeta _3}}&\xi &\omega
\end{array}} \right]\]
\end{minipage}
\vspace{3ex}
\caption{aaa}
\end {figure}
\par\noindent
南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛南无阿弥陀佛
\section{结束}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 参考文献
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\small
\begin{thebibliography}{99}\setlength{\parskip}{0pt} %段落之间的竖直距离\bibitem{ref1}吴承恩. 西游记~[M], 明14XX年.\bibitem{ref2} 玄奘. 大唐西域记学报~[J], 唐~6XX~年, 1(2): 23-55.
\end{thebibliography}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 文章结束
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage
\end{document}
五、sci论文模板
%%
%% Copyright 2007, 2008, 2009 Elsevier Ltd
%%
%% This file is part of the 'Elsarticle Bundle'.
%% ---------------------------------------------
\documentclass[preprint,12pt]{elsarticle}
\usepackage{lineno,hyperref}
\modulolinenumbers[5]
%% The amssymb package provides various useful mathematical symbols
\usepackage{amssymb}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{epsfig}
\usepackage{subfigure}
\usepackage{multirow}
\usepackage{float}
\usepackage{amsmath}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{color}
\usepackage{subfigure}
\usepackage{fancyhdr}
\usepackage{epstopdf}
\pagestyle{fancy}
\usepackage{ulem}
\usepackage{bm}
\usepackage{amsopn}
\usepackage{amssymb,amsmath,color,times}
\usepackage{lineno}
\linespread{1.6}\newcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
\newcommand \argmin{\operatorname{arg\,min}}
\newcommand{\pder}[2][]{\frac{\partial#1}{\partial#2}}\newcommand\R{\mathbb{R}}
\newcommand{\llambda}{\boldsymbol{\lambda}}
\newcommand{\sign}{{\mbox{\rm sign}}}
\fancyhead[R]{\footnotesize\it\leftmark}
\fancyhead[L]{\footnotesize\it\rightmark}
\bibliographystyle{model5-names} \journal{Computers \& Geosciences}
\begin{document}
\modulolinenumbers[1]
\linenumbers
\begin{frontmatter}%% Title, authors and addresses\title{Elsevier \LaTeX\ template\tnoteref{mytitlenote}}%% Group authors per affiliation:
\author{Elsevier\fnref{myfootnote}}
\address{Radarweg 29, Amsterdam}%% or include affiliations in footnotes:
\author[mymainaddress,mysecondaryaddress]{Elsevier Inc}\author[mysecondaryaddress]{Global Customer Service\corref{mycorrespondingauthor}}
\cortext[mycorrespondingauthor]{Corresponding author}
\ead{support@elsevier.com}\address[mymainaddress]{1600 John F Kennedy Boulevard, Philadelphia}
\address[mysecondaryaddress]{360 Park Avenue South, New York}\begin{abstract}
This template helps you to create a properly formatted \LaTeX\ manuscript.
\end{abstract}\begin{keyword}
\texttt{elsarticle.cls}\sep \LaTeX\sep Elsevier \sep template
\MSC[2010] 00-01\sep 99-00
\end{keyword}\end{frontmatter}%% \linenumbers %% main text
\section{Introduction}\section{Background}\section{Methodologies}\section{Evaluation and discussion}\section{Related work}\section{Conclusions}\section*{Acknowledgment}The research was funded by ministry of land and resources industry public welfare projects (No: 201511010-06).\section*{References}
\begin{thebibliography}{33}
\bibitem{Kitchin2014}
Kitchin, R., 2014. Big Data, new epistemologies and paradigm shifts. Big Data and Society 1, 1-12.\end{thebibliography}%\begin{thebibliography}{00}%% \bibitem{label}
%% Text of bibliographic item%\bibitem{}%\end{thebibliography}
\end{document}
\endinput
%%
%% End of file `elsarticle-template-num.tex'.