123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262 |
- \usepackage[fntef]{ctex}
- \usepackage{ctex}
- \usepackage{setspace}
- \usepackage{xcolor}
- \usepackage{xltxtra}
-
- \setmainfont[Mapping=tex-text]{Times New Roman}
- \newcommand{\chuhao}{\zihao{0}}
- \newcommand{\xiaochuhao}{\zihao{-0}}
- \newcommand{\yihao}{\zihao{1}}
- \newcommand{\xiaoyihao}{\zihao{-1}}
- \newcommand{\erhao}{\zihao{2}}
- \newcommand{\xiaoerhao}{\zihao{-2}}
- \newcommand{\sanhao}{\zihao{3}}
- \newcommand{\xiaosanhao}{\zihao{-3}}
- \newcommand{\sihao}{\zihao{4}}
- \newcommand{\xiaosihao}{\zihao{-4}}
- \newcommand{\wuhao}{\zihao{5}}
- \newcommand{\xiaowuhao}{\zihao{-5}}
- \newcommand{\liuhao}{\zihao{6}}
- \newcommand{\xiaoliuhao}{\zihao{-6}}
- \newcommand{\qihao}{\zihao{7}}
- \newcommand{\bahao}{\zihao{8}}
- \renewcommand{\normalsize}{\xiaosihao\songti\normalfont}
- \newcommand{\thesistitlefont}{\centering\heiti\sanhao\textbf}
- \newcommand{\thesistitleenfont}{\centering\sanhao\bf}
- \newcommand{\covernamefont}{\heiti\yihao\bf}
- \newcommand{\coveritemsfont}{\songti\sanhao\bf}
- \newcommand{\coverdatefont}{\songti\sanhao\bf}
- \newcommand{\statetitlefirst}{\songti\xiaosanhao\bf}
- \newcommand{\statetitlesecond}{\songti\xiaosanhao\bf}
- \newcommand{\abscnname}{\heiti\xiaosanhao\textbf}
- \newcommand{\abscnkey}{\heiti\xiaosihao\textbf}
- \newcommand{\abscnkeys}{\songti\xiaosihao\normalfont}
- \newcommand{\absenname}{\xiaosanhao\textbf}
- \newcommand{\absenkey}{\xiaosihao\textbf}
- \newcommand{\absenkeys}{\xiaosihao\normalfont}
- \newcommand{\headfont}{\songti\xiaowuhao\normalfont}
- \newcommand{\toctitlefont}{\heiti\sanhao\textbf}
- \newcommand{\tocchapterfont}{\heiti\xiaosihao}
- \newcommand{\tocsectionfont}{\songti\xiaosihao\normalfont}
- \newcommand{\tocsubsectionfont}{\songti\xiaosihao\normalfont}
- \newcommand{\textchapterfont}{\centering\heiti\sanhao\bfseries}
- \newcommand{\textsectionfont}{\heiti\sihao\bfseries}
- \newcommand{\textsubsectionfont}{\heiti\xiaosihao\bfseries}
- \newcommand{\footnotefont}{\songti\xiaowuhao\normalfont}
- \newcommand{\ftcaptionfont}{\kaishu\wuhao}
- \newcommand{\reftitlefont}{\heiti\sanhao\textbf}
- \newcommand{\refbodyfont}{\songti\wuhao\normalfont}
- \newcommand{\thanktitlefont}{\heiti\sanhao\textbf}
- \newcommand{\appendixtitlefont}{\heiti\sanhao\textbf}
- \usepackage[left=2.5cm,margin=2.5cm,headheight=1.5cm,footskip=1.5cm]{geometry}
- \usepackage{fancyhdr}
- \fancyhf{}
- \fancyhead[C]{\headfont{北京邮电大学本科毕业设计(论文)}}
- \fancyfoot[C]{\thepage}
- \usepackage[xetex, pdfstartview=FitH,
- bookmarksnumbered=true, bookmarksopen=true, colorlinks=true,
- pdfborder=001, linkcolor=black, citecolor=black]{hyperref}
- \renewcommand{\baselinestretch}{1.3}
- \usepackage[perpage]{footmisc}
- \usepackage{footnpag}
- \usepackage{footnote}
- \let\ftnt=\footnote
- \renewcommand{\footnote}[1]{\ftnt{\footnotefont{#1}}}
- \makeatletter
- \newcommand\ul[2][4cm]{\hskip1pt\underline{\hb@xt@ #1{\hss#2\hss}}\hskip3pt}
- \makeatother
- \def\ULthickness{1.1pt}
- \usepackage{titletoc}
- \renewcommand\contentsname{\centerline{\toctitlefont{目\qquad{}录}}}
- \titlecontents{chapter}[0em]{\tocchapterfont\vspace{0.4mm}}
- {\CTEXnumber{\CJKsection}{\thecontentslabel}{第\CJKsection{章}\quad{}}}
- {}
- {\hspace{.5em}\titlerule*[10pt]{$\cdot$}\contentspage}
- \titlecontents{section}[2em]{\tocsectionfont\vspace{0.4mm}}{
- \thecontentslabel\quad{}}{}{
- \hspace{.5em}\titlerule*[10pt]{$\cdot$}\contentspage}
- \titlecontents{subsection}[3em]{\tocsubsectionfont\vspace{0.4mm}}{
- \thecontentslabel\quad{}}{}{
- \hspace{.5em}\titlerule*[10pt]{$\cdot$}\contentspage}
- \makeatletter
- \renewcommand\frontmatter{%
- \if@openright\cleardoublepage\else\clearpage\fi%
- \@mainmatterfalse%
- \pagenumbering{Roman}
- \pagestyle{plain}}
- \makeatother
- \makeatletter
- \renewcommand\backmatter{%
- \if@openright\cleardoublepage\else\clearpage\fi%
- \@mainmatterfalse%
- \pagestyle{empty}
- }
- \makeatother
- \usepackage{titlesec}
- \titleformat{\chapter}[hang]{\textchapterfont}{第\chinese{chapter}章}{1em}{}
- \titlespacing{\chapter}{0pt}{3ex plus .5ex minus .5ex}{3ex plus .5ex minus .5ex}
- \titleformat{\section}{\textsectionfont}{\thesection}{1em}{}
- \titleformat{\subsection}{\textsubsectionfont}{\qquad{}\thesubsection}{1em}{}
- \titleformat{\subsubsection}{\textsubsectionfont}{\qquad{}\thesubsubsection}{0.5em}{}
- \usepackage[super,numbers,sort&compress]{natbib}
- \renewcommand\bibname{\centerline{\reftitlefont{参考文献}}}
- \setcitestyle{square}
- \usepackage{appendix}
- \usepackage{caption2,caption3}
- \renewcommand{\captionfont}{\ftcaptionfont}
- \renewcommand{\captionlabelfont}{\ftcaptionfont}
- \renewcommand{\captionlabeldelim}{}
- \renewcommand{\tablename}{表}
- \renewcommand{\thetable}{~\arabic{chapter}-\arabic{table}~}
- \renewcommand{\figurename}{图}
- \renewcommand{\thefigure}{~\arabic{chapter}-\arabic{figure}~}
- \renewcommand{\theequation}{\arabic{chapter}-\arabic{equation}~}
- \usepackage{graphicx}
- \newcommand{\buptfigure}[4][width=11cm]{%
- \begin{figure}[!htbp]
- \begin{center}
- \includegraphics[#1]{#2}
- \end{center}
- \caption{#3}
- \label{#4}
- \end{figure}}
- \usepackage{multirow}
- \newenvironment{bupttable}[2]{%
- \begin{table}[!htbp]
- \centering
- \renewcommand{\arraystretch}{1.38}
- \setlength{\abovecaptionskip}{0pt}
- \setlength{\belowcaptionskip}{10pt}
- \caption{#1}
- \label{#2}}{
- \end{table}}
- \usepackage{amssymb}
- \usepackage{bm}
- \usepackage{amsmath,delarray,bm,mathtools}
- \newtagform{newtag}[]{式(}{)}
- \usetagform{newtag}
- \newtheorem{definition}{定义}[chapter]
- \usepackage{algorithm}
- \usepackage{algorithmicx}
- \usepackage{algpseudocode}
- \usepackage{listings}
- \usepackage{xcolor}
- \renewcommand{\lstlistingname}{\kaishu{代码}}
- \lstset{
- basicstyle=\ttfamily\wuhao, %五号等宽字体
- extendedchars=true,
- keywordstyle=\color{blue},
- commentstyle=\color{green!30!black},
- showspaces=false,
- showstringspaces=true,
- showtabs=false,
- tabsize=2,
- captionpos=t,
- breaklines=true,
- breakatwhitespace=true,
- basewidth={0.5em,0.35em},
- frame=single,
- numbers=left,
- escapeinside={\%*}{*)}
- }
- \usepackage[final]{pdfpages}
|