\documentclass[a4paper,12pt]{book}
\usepackage{ctexcap}
\begin{document}\songti\zihao{-4}%设置正文字体格式:宋体四号
\include{Abstract}%摘要部分
\tableofcontents%生成目录
\include{chapter1}%第一章
\include{chapter2}%第二章
\include{chapter3}
\include{chapter4}
\include{chapter5}
\include{thanks} %致谢部分
\include{appendix}%附录部分
\include{reference}%参考文献部分
\end{document}
\chapter{绪论}
这里是章内容
摘要部分、致谢部分、附录部分及参考文献部分的格式:
\chapter*{摘要}
这里是摘要内容
\usepackage{geometry}
\geometry{left=4cm,right=2cm,top=3cm,bottom=2cm}%内侧3cm+装订线1cm=4cm\CTEXsetup[beforeskip={0pt}]{chapter}%这里设置的是章标题与上页边距的距离,默认时是比较大的,记得自己设置
\CTEXsetup[nameformat={\heiti\zihao{3}\centering}]{chapter}%章标题格式
\CTEXsetup[titleformat={\heiti\zihao{3}\centering}]{chapter}%章标题格式
\CTEXsetup[format={\songti\zihao{4}\centering}]{section}% 节标题格式
\CTEXsetup[format={\songti\zihao{-4}}]{subsection}%小节标题格式
\CTEXsetup[format={\songti\zihao{-4}}]{subsubsection}%小节标题格式
\usepackage{mathptmx} %设置英文默认为罗马体\pagestyle{myheadings}
\pagestyle{fancy}
\fancyhead{}%清除页眉格式
\fancyfoot{}%清除页脚格式
\fancyhead[RO,LE]{\songti\zihao{-5}\thepage}%在奇数页右侧、偶数页左侧(也就是页面的外侧)设置页码 宋体小五。
\fancyhead[CO]{\songti\zihao{5}\leftmark}%奇数页页眉中心设置章次和章标题
\fancyhead[CE]{\songti\zihao{5}复杂环境下多频段快速频谱感知技术}%偶数页页眉中心设置论文的题目
\renewcommand{\headrulewidth}{0.75pt} % 页眉与正文之间的水平线粗细
% 设置章名和节名的显示方式
\renewcommand{\chaptermark}[1]{\markboth{~第~\chinese{chapter}~章~~~#1~}{}}
%%%%%%%%%%%
\thispagestyle{fancy}%设置本页为指定的页眉页脚格式,默认情况下,每章的第一页都是没有页眉的,需要加上这一句。【LaTeX排版】LaTeX论文排版<一>,布布扣,bubuko.com
原文:http://blog.csdn.net/tengweitw/article/details/29561355