\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} \newcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{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} \renewcommand{\captionfont}{\zihao{5}\songti} \renewcommand\theequation{\thechapter-\arabic{equation}}%公式編號 \usepackage{setspace}%使用間距宏包 \usepackage{comment} \linespread{1.5} \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{titletoc} \begin{document}\songti\zihao{-4}%設置正文字體格式 \pagenumbering{Roman} \include{Abstract} \songti\zihao{-4} \setcounter{tocdepth}{2}%設置文件夾深度 \thispagestyle{plain} \titlecontents{chapter} [0.0em] {\songti\zihao{-4}\bfseries\addvspace{10bp minus 0bp}} %\song {\thecontentslabel\hspace{0.5em}} {} {\normalfont\dotfill\textrm{\contentspage[{\bfseries\thecontentspage}]}} \newgeometry{bottom=3cm,top=3cm} \tableofcontents \restoregeometry %\include{chapter1} %\include{chapter2} %\include{chapter3} %\include{chapter4} %\include{chapter5} %\include{thanks} %\include{appendix} %\include{reference} \end{document}
比方說,個人論文有5章,還有致謝、附錄和參考文獻部分,則我需要將上面代碼中include命令前的%去掉。同一時候,我需要新建chapter1.tex……chapter5.tex來編寫1-5章的內容。thanks.tex相應致謝部分,appendix.tex相應附錄部分,reference.tex相應參考文獻部分。你可以依據實際狀況來增、刪、改相應的部分。html
\chapter{緒論} \section{研究背景及意義} \subsection{無線頻譜的分配與利用} \subsection{提升頻譜利用效率的方法} \section{認知無線電概述} \subsection{認知無線電的定義} \subsection{認知無線電的關鍵技術} \subsection{國內外認知無線電的研究現狀} \section{論文內容及結構}
原文:http://blog.csdn.net/tengweitw/article/details/35570935app
做者:nineheadedbird框架