LaTeX的格式模板一文章框架

   今天开始把论文整理成LaTeX的格式,以备以后学习查询。在我没用LaTeX写论文之前对LaTeX也是小白。网上关于LaTeX的介绍不是光概念就是没有完整的可以运行的代码,无从下手,害苦了我,从LaTeX的使用手册一点点的试,一点点的学,现在算是会了一点。现在不想大家以后重蹈我的覆辙,所以把论文的LaTeX格式整理在博客里,供大家参考使用。以后关于LaTeX格式模板的介绍文章都是先介绍要用的语句,然后给出样例,最后给出效果图。毕竟要看到样例和效果,大家才知道该怎么用嘛。如果大家看了还有什么不理解,请告诉我,我改。

      首先整理了文章导言区的内容,就是每篇论文都要有的框架。文章框架元素:文章documentclass的设置、文章区域document、摘要abstract、文章一级标题部分section、二级标题部分subsection、三级标题部分subsubsection、段落paragraph以及缩进indent(前提是parindent中的值不为0),以上这一些可以说是写论文必须的框架。

    首先要写\documentclass[a4pper,11pt,twocolumn]{article}意思是a4纸,11磅的字体,同时论文格式是双栏twocolunm,也可是单栏onecolumn;     文章导言区还要用到宏包,比如在论文中插入图片时要用到graphicx宏包,语句 \usepackage{graphicx}

    其次是文章区域部分用语句\begin{document}  中间写文章逻辑,在文章的最后添加上\end{document}作为文章的结束。

    摘要:句\begin{abstract}   %abstract  \end{abstract} ,

    同时 摘要 部分还要关键词的设置,关键词:   {\bf Keywords:}\LaTex instance1;instance2;这样写是不得已而为之,LaTeX没有具体的处理语句,如果你要投特定的会议或者期刊论文,他们提供的模板对关键词部分做了语句规范,到时候再说,现在先这样写。

    对于文章的每个部分的 一级标题 用语句\section{Introduction}来表示,

    二级标题  用语句\subsection{open source system}表示,

    三级标题题 用语句\subsubsection{open source system},标题级别最多到三级

    当文章想用标题,但是不想标号时用段落,语句\paragraph{paragraph}

    段落首行缩 进用语句\indent,同时要在文章的导言区加入语句\setlength\parindent{2em}才能生效,但是文章的每个部分第一段都是没有缩进的,大家可以仔细查看一下那些论文每个部分的首段;

   换行 用语句\\

\documentclass[a4pper,11pt,twocolumn]{article}
\setlength\parindent{2em}
\usepackage{graphicx}
\title{The name of paper : Detection of code smell }
\begin{document}
\maketitle
%abstract
\begin{abstract}
	abstract\\
{\bf Keywords:} instance 1, instance 2
\end{abstract}
%section
\section{First section}
test First section
\subsection{Second section}
test Second section
\subsubsection{Third section}
test Third section
\paragraph{paragraph}
 test paragraph
%indent
\\\indent test indent
\end{document}

 

PDF效果图

LaTeX的格式模板一文章框架_第1张图片

 

你可能感兴趣的:(Latex)