zoukankan      html  css  js  c++  java
  • Latex笔记-基本布局

    转自https://linhan.blog.ustc.edu.cn/?p=135&cpage=1

    • 目录改用中文标题并且居中

    enewcommand{contentsname}{centerline{目~录}}

    • 中英文摘要

    enewcommandabstractname{Large{摘要}}
    egin{abstract}
    中文摘要
    end{abstract}
    enewcommandabstractname{Large{Abstract}}
    egin{abstract}
    英文摘要
    end{abstract}

    • 中文日期

    enewcommand oday{ umberyear 年 umbermonth 月 umberday 日}

    • 第一段缩进

    usepackage{indentfirst}

    • 设置缩进距离

    setlength{parindent}{2em}

         2em表示缩进2个字符。不想首行缩进的段落,段首加 oindent;反之,加indent。

    • 设置固定页眉

    usepackage{fancyhdr}
    pagestyle{fancy}
    fancyhf{}
    fancyhead[C]{footnotesizeCJKfamily{gbsn}中国科学技术大学本科毕业论文}

      • 添加居中页脚(显示页码)

    fancyfoot[C]{ hepage}

      • 从某页开始计算页码

    在本页添加:setcounter{page}{1}
    在之前的页面添加: hispagestyle{empty}

    • 设置标题格式

    usepackage{titlesec}
    itleformat{section}{centeringLargefseries}{ hesection}{1em}{} %居中,数字开头,Large字号
    itleformat{subsection}{centeringlargefseries}{ hesubsection}{1em}{} %居中,数字开头,large字号
    itleformat{subsubsection}{fseries}{ hesubsubsection}{1em}{} %居左

    • 设置固定行距

    setlength{aselineskip}{22pt} %设置行距为22pt,注意设置的位置。

    • 中文显示“参考文献”标题

    enewcommand{ efname}{参考文献}

    • 将“参考文献”添加至目录中

    在参考文献内容附近添加:
    addcontentsline{toc}{section}{参考文献}
    摘要、致谢等的添加也是一样。

    • 添加“致谢”

    section*{致~谢}

    • 设置图表序号格式 

    enewcommand{figurename}{图}
    enewcommand{ ablename}{表}
    enewcommand{ hetable}{arabic{section}.arabic{table}} %表格编号,表1.1
    enewcommand{ hefigure}{arabic{section}.arabic{figure}} %插图编号,图1.1    

  • 相关阅读:
    multimap-rebgin
    multiset-lower_bound
    multiset-lower_bound
    multimap-max_size
    multimap-max_size
    multimap-find
    最小生成树之prim算法
    最小生成树的邻接矩阵实现
    最短路径:(Dijkstra & Floyd)
    邻接表实现图的储存,遍历
  • 原文地址:https://www.cnblogs.com/aoublog/p/4502834.html
Copyright © 2011-2022 走看看