Latex笔记-基本布局

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

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

\renewcommand{\contentsname}{\centerline{目~录}}

  • 中英文摘要

\renewcommand\abstractname{\Large{摘要}}
\begin{abstract}
中文摘要
\end{abstract}
\renewcommand\abstractname{\Large{Abstract}}
\begin{abstract}
英文摘要
\end{abstract}

  • 中文日期

\renewcommand\today{\number\year 年 \number\month 月 \number\day 日}

  • 第一段缩进

\usepackage{indentfirst}

  • 设置缩进距离

\setlength{\parindent}{2em}

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

  • 设置固定页眉

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

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

\fancyfoot[C]{\thepage}

    • 从某页开始计算页码

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

  • 设置标题格式

\usepackage{titlesec}
\titleformat{\section}{\centering\Large\bfseries}{\thesection}{1em}{} %居中,数字开头,\Large字号
\titleformat{\subsection}{\centering\large\bfseries}{\thesubsection}{1em}{} %居中,数字开头,\large字号
\titleformat{\subsubsection}{\bfseries}{\thesubsubsection}{1em}{} %居左

  • 设置固定行距

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

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

\renewcommand{\refname}{参考文献}

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

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

  • 添加“致谢”

\section*{致~谢}

  • 设置图表序号格式 

\renewcommand{\figurename}{图}
\renewcommand{\tablename}{表}
\renewcommand{\thetable}{\arabic{section}.\arabic{table}} %表格编号,表1.1
\renewcommand{\thefigure}{\arabic{section}.\arabic{figure}} %插图编号,图1.1    

转载于:https://www.cnblogs.com/aoublog/p/4502834.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值