我把 \begin{document} 上面的全部贴上来。
\documentclass[12pt,a4paper,oneside]{book}
\newenvironment{indention}[1]{\par
\addtolength{\leftskip}{#1}
\begingroup}{\endgroup\par}
\pagestyle{plain}
\usepackage[margin=2cm]{geometry}
\usepackage{fontspec}
\usepackage{xeCJK}
\setCJKmainfont{cwyen.ttf}
\setCJKmainfont[AutoFakeBold=2.5,AutoFakeSlant=.4]{cwyen.ttf}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{titlesec}
\usepackage{titletoc}
\usepackage{CJKnumb}
\renewcommand{\contentsname}{目录}
\renewcommand{\appendixname}{附录}
\titlecontents{chapter}[0pt]{\vspace{.5\baselineskip}}
{第\CJKnumber{\thecontentslabel}章\quad}{}
{\hspace{.5em}\titlerule*[10pt]{$\cdot$}\contentspage}
\titleformat{\chapter}{\Huge}{第\,\CJKnumber{\thechapter}\,章}{1em}{}
\titleformat{\section}{\LARGE}{\thesection}{1em}{}
\titleformat{\subsection}{\Large}{\thesubsection}{1em}{}
\usepackage{etoolbox}
\apptocmd{\appendix} {
\titleformat{\chapter}{\Huge}{\appendixname\thechapter}{1em}{}
\titlecontents{chapter}[0pt]{\vspace{.5\baselineskip}}
{\appendixname\thecontentslabel}{}
{\hspace{.5em}\titlerule*[10pt]{$\cdot$}\contentspage}
}{}{}
\tableofcontents
_____________________________________________________________________________
不清楚哪里有误,
目录的地方附录是“第A零章”不是“附录 A”,要改成“附录 A”
而附录上面有一行“chapter0pt附录 3.....................”这行后面还有重叠的字
我不要这行。
话说我编译完常有:
Process started
Process exited with error(s)
的字样,我也不知哪有错,但编完的结果通常都ok。