latex实验报告模板Word文档下载推荐.docx
《latex实验报告模板Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《latex实验报告模板Word文档下载推荐.docx(12页珍藏版)》请在冰豆网上搜索。
\setlength{\textheight}{20truecm}
\setlength{\textwidth}{16truecm}
\oddsidemargin-1pt
\evensidemargin-1pt
\topmargin-
\begin{document}
\title{题目}
\author{作者名}
\frenchspacing
\date{February7,XX}%月日年
\maketitle
\fancyhead{}\pagestyle{fancy}\fancyhead[OC]{\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\Page\arabic{page}of21}
\fancyhead[EC]{\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\Page\arabic{page}of21}%页眉页数,用的时候只要改数字就行
\begin{abstract}
摘要部分
\textbf{关键词:
货币转移转移规则元胞自动机}
\end{abstract}
\newpage%摘要单独一页,换页
\tableofcontents:
%目录
\newpage
\begin{figure}[!
htb]
\centering
\includegraphics[width=7cm\textwidth]{}
\caption{ThefittingcurvebyEq.
(2)}
\end{figure}%插入图片
\input{./section/problem}%导入片段
\section{Introduction}%一级标题
\subsection{TheProblem}%二级标题
\subsubsection{TheProblem}%三级标题
\[D(t)=a_{1}+a_{2}\cos(a_{3}t+a_{4})+a_{5}\exp(a_{6}t).\]
\begin{equation}%有编号的公式
x^{2}+y^{2}=1
\end{equation}
\begin{itemize}
\item...
\end{itemize}%点形项目编号
\begin{enumerate}
\itemthefirstsentence%数字
\itemthesecondsentence
\end{enumerate}
\begin{tabular}
\end{tabular}%表格
%无编号的公式
\section{References}
\begin{thebibliography}{1}
\bibitem{1}/ArtAXS/Painting1T/2TBurnettJ/,AccessedFeb.6th,XX.
\bibitem{2}
\bibitem{3}
\bibitem{4}
\bibitem{5}
\bibitem{6}
\bibitem{7}
\bibitem{8}%参考文献
\
%附录
\begin{lstlisting}
functionAdvance()
globalAislepas;
[x,y]=size(Aisle);
fori=x*y-1:
-1:
1
if(Aisle(i)>
0)&
&
(Aisle(i+1)==0)&
...
(pas(Aisle(i)).speed>
rand)&
(pas(Aisle(i)).tdelay==-1)
Aisle(i+1)=Aisle(i);
Aisle(i)=0;
end
\end{lstlisting}
篇二:
Latex排版格式
10月18日
用Latex为论文排版
用Latex为论文排版目录
语法规范
文档结构
中文格式相关问题
段落缩进
中文字体
章节和段落组织
图片
表格
杂项格式
参考文献
脚注
页眉和页脚
常用命令
latex中,用“%”做为注释行的开始,用“\”作为命令或者变量的开始。
用一对大括号“{}”作为一个区块的起始和结束,在这一个区块中,命令和变量具有局部意义。
用一对方括号“[]”作为某个命令参数的起始和结束,参数之间用“,”隔开。
文档的开始必须使用类似如下命令:
\documentclass[a4paper,12pt,onecolumn]{article}
这条命令指定文档的类型是article,可以根据需要换为slides,book等;
字体为12pt;
纸张类型是A4;
单栏。
然后使用\usepackge命令指定需要使用的宏包,如:
\usepackage{CJK}%CJK中文支持
\usepackage{graphicx}%EPS图形支持
\usepackage{indentfirst}%中文段落首行缩进
\usepackage{fancyhdr}%梦幻页眉
正文部分开始时,需要使用如下命令:
\begin{CJK}{GBK}{song}\CJKcaption{GB}%如果需要使用中文,必须加上这一句
相应的,正文结束后,需要使用:
\end{CJK}
\end{document}
要使中文段落每段起始时空两个汉字的位置,除了需要使用宏包“indentfirst”外,还需要使用如下命令:
\setlength{\parindent}{24pt}
此命令加在导言区(导言区即在第一条命令和正文开始之间的部分)即可,参数应该根据正文字体的大小来设定,因为这里正文字体是12pt,两个字的位置就是24pt。
设定中文字体很简单,只需要用类似如下的命令:
\CJKfamily{hei}这是黑体
我们也可以针对某个段落设定字体大小和行间距:
\fontsize{22pt}{26pt}后面的这一段文字,字体大小是22pt,段落的行间距是26pt
当需要将行间距恢复到默认值时,只要用
\linespread{}\selectfont
即可,因为行间距只有当字体大小发生变化时才会重新计算,所以在\linespread后面必须跟上字体尺寸变换的命令,如\small之类,或者直接写上\selectfont。
可以用
\section{第一层章节}
\subsection{第二层章节}
\subsubsection{第三层章节}
这样的命令来分层次定义文章的章节,可以用
\item第一条
\item第二条
\item第三条
\end{itemize}
这样的命令来定义多个条目,可以用
\paragraph{第一段}
\paragraph{第二段}
\paragraph{第三段}
这样的命令来定义段落。
用如下命令来插入图片(只支持eps图片):
\begin{figure}
\begin{center}
\includegraphics[]{kingofcats}\\
\small{图1猫王的图片}
\end{center}
\end{figure}
其中\begin{center}和\end{center}的含义是将其中的内容居页面中间排放,“\\”符号用来换行。
表格
用如下命令来定义表格:
\begin{tabular}{c|c}
\hline
第一列标题&
第二列标题\\
第一行第一列&
第一行第二列\\
第二行第一列&
第二行第二列\\
\end{tabular}
用如下命令定义参考文献:
\begin{thebibliography}{99}
\bibitem{}
stid.
论灌水与写论文的关系.
北京:
新水木出版社,XX
kingofcats.
我是猫王我怕谁.
北京:
灌水出版社,1999
\end{thebibliography}
用如下命令来定义脚注:
猫王\footnote{即KingofCats,猫中之王,也称stid}
用如下命令来定义页眉和页脚:
\pagestyle{fancy