• 【LaTeX排版】LaTeX论文模版


    版权声明:本文为博主原创文章,未经博主同意不得转载。 https://blog.csdn.net/tengweitw/article/details/35570935
           本文是对前面LaTeX论文排版文章的总结。前面的几篇文章是分别从论文的几个方面来讲述LaTeX的排版问题,这里综合了前面的内容。给出了论文排版的模版。
    模版的使用:
    1、首先建立一个main.tex文件,该文件用于管理论文的总体构架,文件代码为:
    documentclass[a4paper,12pt]{book}
    usepackage{ctexcap}
    usepackage{amsmath}
    usepackage{graphicx}
    usepackage{fancyhdr}
    usepackage[super,square,comma,sort&compress]{natbib}%设置參考文献的格式
    %%%设置页边距
    usepackage{geometry}
    geometry{left=4cm,right=2cm,top=3cm,bottom=2cm}
    
    ewcommand{	abincell}[2]{egin{tabular}{@{}#1@{}}#2end{tabular}}% 设置换行
    graphicspath{{pics/},{figs/}}
    usepackage{float}%是图片悬浮
    
    
    usepackage{bm}
    usepackage{times}
    usepackage{mathptmx} %设置为罗马体
    usepackage{caption}
    captionsetup{labelsep=space}
    %usepackage[colorlinks,dvipdfm,  %电子版时使用这个包
    %            bookmarksopenlevel=2,
    %            pdfpagemode=UseNone,
    %            pdfstartview=FitB,
    %            linkcolor=black,
    %            citecolor=blue,
    %            linkcolor=black,
    %            hyperindex=true,
    %            pagebackref=true,
    %            CJKbookmarks=true,
    %            colorlinks]{hyperref}
    
    
    enewcommand{captionfont}{zihao{5}songti}
    
    enewcommand	heequation{	hechapter-arabic{equation}}%公式编号
    usepackage{setspace}%使用间距宏包
    usepackage{comment}
    linespread{1.5}
    
    CTEXsetup[beforeskip={0pt}]{chapter}
    CTEXsetup[nameformat={heitizihao{3}centering}]{chapter}%章标题格式
    CTEXsetup[titleformat={heitizihao{3}centering}]{chapter}%章标题格式
    CTEXsetup[format={songtizihao{4}centering}]{section}% 节标题格式
    CTEXsetup[format={songtizihao{-4}}]{subsection}%小节标题格式
    CTEXsetup[format={songtizihao{-4}}]{subsubsection}%小节标题格式
    usepackage{titletoc}
    
    egin{document}songtizihao{-4}%设置正文字体格式
    
    
    
    pagenumbering{Roman}
    
    include{Abstract}
    songtizihao{-4}
    setcounter{tocdepth}{2}%设置文件夹深度
    	hispagestyle{plain}
    	itlecontents{chapter}
                  [0.0em]
                  {songtizihao{-4}fseriesaddvspace{10bp minus 0bp}}  %song
                  {	hecontentslabelhspace{0.5em}}
                  {}
                  {
    ormalfontdotfill	extrm{contentspage[{fseries	hecontentspage}]}}
    
    ewgeometry{bottom=3cm,top=3cm}
    	ableofcontents
    
    estoregeometry
    %include{chapter1}
    
    %include{chapter2}
    %include{chapter3}
    %include{chapter4}
    %include{chapter5}
    
    %include{thanks}
    %include{appendix}
    %include{reference}
    
    end{document}
    
        在上面的代码中。我将include命令都给了凝视。能够依据你论文的章节来去掉相应的%。

    比方说,我的论文有5章,还有致谢、附录和參考文献部分,则我须要将上面代码中include命令前的%去掉。同一时候,我须要新建chapter1.tex……chapter5.tex来编写1-5章的内容。thanks.tex相应致谢部分,appendix.tex相应附录部分,reference.tex相应參考文献部分。你能够依据实际情况来增、删、改相应的部分。

    2、对于每一章的内容,大体形式例如以下(以第一章chapter1.tex的框架为例):
    chapter{绪论}
    section{研究背景及意义}
    subsection{无线频谱的分配与利用}
    subsection{提高频谱利用效率的方法}
    section{认知无线电概述}
    subsection{认知无线电的定义}
    subsection{认知无线电的关键技术}
    subsection{国内外认知无线电的研究现状}
    section{论文内容及结构}

    在上面的每条命令语句下插入该标题的相关内容就可以。效果显演示样例如以下图:

        到如今为止,LaTeX论文排版最终告一段落了,尽管这些文章仅仅解说了一些简单的问题,可是用来排版毕设论文已经足够了。离毕设答辩都过去半个多月了,因为比較忙,到如今才刚将关于论文排版的文章写完。说也羞愧,英语学习停止了大概一个多月了。下个月要将其补回来。BTW,前天举办了毕业典礼。有幸得到校长颁发学位证的机会,今天学院又进行了授位仪式,是真的要毕业了。



  • 相关阅读:
    Python len() 方法
    Python join() 方法
    Python isupper() 方法
    使用quartz进行容器启动时登陆接口服务器和接口服务器进行心跳连接
    实现锁死的有滚动条的div的表格(datagird)
    使用spring的事务的三种方法
    webservice系统学习笔记7-使用handler实现过滤器/拦截器效果
    webservice系统学习笔记7-异常处理
    webservice系统学习笔记6-使用soap的header传递消息
    JSTL fmt:formatNumber 数字、货币格式化
  • 原文地址:https://www.cnblogs.com/ldxsuanfa/p/10761166.html
  • Copyright © 2020-2023  润新知