<p>改了几个问题,其他的要多看看类似的代码:</p><pre class="brush:bash;toolbar:false">\documentclass[zihao=-4,oneside]{ctexbook}
%---------------------------------------------------------------------------------
\usepackage{amsmath} %公式宏包
\usepackage{amssymb} %数学符号生成命令宏包
\usepackage{mathrsfs} %数学花体字
\usepackage{titletoc} %目录设计宏包
\usepackage{titlesec} %改变章节标号形式
\usepackage{cite} %标注宏包
\usepackage{enumerate} %编号列表多层嵌入
\usepackage{amsthm} %证明环境
\usepackage{graphicx} %插图宏包
% \usepackage{tocloft} 目录重叠问题
\usepackage[a4paper,top=3.5cm,bottom=3cm,left=2.5cm,right=2.5cm]{geometry}
\usepackage{setspace} %行距倍数
\usepackage{fontspec,xunicode,xltxtra} %字体包
%---------------------------------------------------------------------------------
% 页面与章节格式设定
%---------------------------------------------------------------------------------
\usepackage{fancyhdr} %页眉页脚宏包
\pagestyle{fancy}
\rhead{}\lhead{}
\chead{\leftmark}
\ctexset{
chapter={name = {第,章}, pagestyle= plain},
section/name = {\S},
section/format = {\Large\bfseries\flushleft},
subsection/number ={\chinese{subsection}}
}
\newtheorem{cro}{推论}[chapter]
\newtheorem{defn}{定义}[chapter]
\newtheorem{prop}{命题}[chapter]
\newtheorem{thm}{定理}[chapter]
\newtheorem{lem}{引理}[chapter]
\newtheorem{remark}{注记}[chapter]
\newcommand{\makeheadrule}{%
\makebox[-3pt][l]{\rule[.7\baselineskip]{\headwidth}{0.4pt}}
\rule[0.85\baselineskip]{\headwidth}{2.25pt}\vskip-.8\baselineskip}
\makeatletter
\renewcommand{\headrule}{%
{\if@fancyplain\let\headrulewidth\plainheadrulewidth\fi
\makeheadrule}}
\newcommand\engcontentsname{Contents}
\newcommand\tableofengcontents{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\engcontentsname
\@mkboth{%
\MakeUppercase\engcontentsname}{\MakeUppercase\engcontentsname}}%
\@starttoc{toe}% !!!!Define a new contents!!!!
\if@restonecol\twocolumn\fi
}
\newcommand\addengcontents[2]{%
\addcontentsline{toe}{#1}{\protect\numberline{\csname the#1\endcsname}#2}}
\makeatother
\newcommand\echapter[1]{\addengcontents{chapter}{#1}}
\newcommand\esection[1]{\addengcontents{section}{#1}}
\newcommand\esubsection[1]{\addengcontents{subsection}{#1}}
\renewcommand{\contentsname}{目\quad 录}\titlecontents{chapter}[0pt]{\vspace{.3\baselineskip}\bfseries}
{\thecontentslabel}{}
{\hspace{.3em}\titlerule*[10pt]{$\cdot$}\contentspage}
\titlecontents{section}[2em]{\vspace{.16\baselineskip}}
{\thecontentslabel\quad}{}
{\hspace{.3em}\titlerule*[10pt]{$\cdot$}\contentspage}
%---------------------------------------------------------------------------------
% 开始正文
%---------------------------------------------------------------------------------
\begin{document}
\frontmatter
\tableofcontents % 中文目录
\tableofengcontents % 英文目录
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%=================================================================================
%+==================================== 摘要部分 ===================================
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{摘要}
\ctexset{chapter={pagestyle=fancy}}
\addcontentsline{toe}{chapter}{Abstract in Chinese}
贾森基德是当之无愧的超级巨星.
%---------------------------------------------------------------------------------
%---------------------------------------------------------------------------------
\paragraph{关键词}: 正则卷积; Dirichlet卷积; Unitary卷积.
%---------------------------------------------------------------------------------
%---------------------------------------------------------------------------------
\chapter{Abstract}
\addcontentsline{toe}{chapter}{Abstract}
This paper first introduces some basic properties of some arithmetic functions in the integer domain, and then extends the properties of arithmetic functions in the integer domain to the algebraic integer ring. The specific contents are shown as follows:
\paragraph{Keywords}: regular convolution; Dirichlet convolution; Unitary concolution.
%---------------------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%=========开始进入第一章===============%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%---------------------------------------------------------------------------------
\mainmatter
\ctexset{chapter={pagestyle=plain}}
\chapter{前言}
\echapter{Introduction}
\section{本文主要背景和一些结果}
\esection{The main background and some results of this paper}
%---------------------------------------------------------------------------------
% 注释的是垃圾
%---------------------------------------------------------------------------------
%{\bf 一、关于正则卷积的研究背景}
%---------------------------------------------------------------------------------
\subsection{关于正则卷积的研究背景}
\begin{defn}
令$\mathbb{N}^{*}$表示由所有正整数构成的集合,$F_{1}(\mathbb{N}^{*})$表示定义在$\mathbb{N}^{*}$上的取值于一个包含单位元的交换环$R$上的所有数论函数形成集合,即$$F_{1}(\mathbb{N}^{*})=\{f|f:\mathbb{N}^{*}\rightarrow R\}$$
\end{defn}
北京时间7日进行的NBA总决赛第二场,网队赢了,主要赢在基德,而马刺输了,也主要输
在邓肯。他19分、12个篮板、4个盖帽的表现,虽然比第一场32分、20个篮板和7个盖帽的
表现逊色,但并不算糟糕。问题是,他的罚球太差了,太有失MVP称号。他获得了10次罚球 2 机会,只罚中可怜巴巴的3个球。最后马刺以85比87败北,邓肯是有责任的。如果他罚篮的
一脸怒气。与邓肯相比,基德光芒四射,以30分、7个篮板的表现,走出低迷,报了私仇,
5也报了公仇。首场总决赛,基德仅得10分,网队以12分之差败北,如今在马刺主场战成1比
1平局,网队抢夺总冠军的野心再次膨胀,并为双方以后的争夺平添了悬念。
7日,斯科特给了他更多的上场时间,让他凭借身高优势,遏制“双塔”,多抢篮板,进攻时
\newpage
北京时间7日进行的NBA总决赛第二场,网队赢了,主要赢在基德,而马刺输了,也主要输
在邓肯。他19分、12个篮板、4个盖帽的表现,虽然比第一场32分、20个篮板和7个盖帽的
表现逊色,但并不算糟糕。问题是,他的罚球太差了,太有失MVP称号。他获得了10次罚球 2 机会,只罚中可怜巴巴的3个球。最后马刺以85比87败北,邓肯是有责任的。如果他罚篮的
一脸怒气。与邓肯相比,基德光芒四射,以30分、7个篮板的表现,走出低迷,报了私仇,
5也报了公仇。首场总决赛,基德仅得10分,网队以12分之差败北,如今在马刺主场战成1比
1平局,网队抢夺总冠军的野心再次膨胀,并为双方以后的争夺平添了悬念
\addcontentsline{toc}{chapter}{参考文献}
\addcontentsline{toe}{chapter}{Contents}
\nocite{*}
\backmatter
\chapter*{致谢}
%\echapter{Acknowledgements}
\addcontentsline{toc}{chapter}{致谢}
\addcontentsline{toe}{chapter}{Acknowledgements}
时光飞快, 一转眼硕士研究生三年的学习生活接近尾声. 三年的时间中充满疑虑, 更有收获和成长. 经过了几个月的查找收集资料、摸索和修改, 毕业论文终于完稿. 这都离不开导师和同学们的帮助, 在此, 我要对他们表示真诚的感谢.
首先, 我要感谢我的导师三年来对我学习上的指导和生活上的关怀. 从文献选读课起,师就教我如利用校内外资源查找和收集资料, 并多次耐心听我的汇报, 最终确定了合适的课题; 在论文的写作过程中, 每当我有疑问总会一遍遍地给我讲解; 在论文初稿完成时, .师严谨的治学态度和积极乐观的精神将影响和激励着我. 在此我向老师表示深深地感谢, 并诚挚地祝老师身体健康、工作顺利.
其次,我要感谢师兄师妹 他们对我的学习和论文的完成给予了很多的帮助. 此外, 他们对待学习认真踏实的态度是我学习的榜样.
\end{document}</pre><p><br></p>
作者追问:2019-08-21 10:05
想问一下这个摘要的页眉和标题的页眉没对齐应该怎么才能让它们对齐呢啊