Code: Select all
\addtocontents{toc}{\contentsline{chapter}{\numberline{}APP}{}}
Code: Select all
Code, edit and compile here:
! Argument of \contentsline has an extra }.<inserted text>\parl.104 ...ontentsline{chapter}{\numberline{}APP}{}}%
Code: Select all
Code, edit and compile here:
%!TEX TS-program = xelatex%!TEX encoding = UTF-8 Unicode\documentclass[12pt,a4paper,twoside]{report}\setcounter{secnumdepth}{3}\setcounter{tocdepth}{3}%\usepackage{amsmath, amsthm, amssymb, txfonts, upgreek, amsbsy, mathrsfs}\usepackage{fontspec}\usepackage[a4paper,top=2.54cm,bottom=3.0cm,left=2cm,right=2cm,bindingoffset=1cm]{geometry}\usepackage[unicode]{hyperref}\usepackage{type1cm}\usepackage{graphicx}\usepackage{float}\usepackage{caption}\usepackage{indentfirst}\usepackage{url}\usepackage{natbib}\bibpunct{(}{)}{;}{a}{,}{,}\usepackage{fancyhdr}\usepackage{titlesec, titletoc}\usepackage{ifthen}%%======================================================================%% use xeCJK\usepackage[BoldFont,SlantFont,CJKnumber,CJKchecksingle]{xeCJK}\usepackage{xCJKnumb}\setCJKmainfont{Times New Roman}\setromanfont{Times New Roman}\XeTeXlinebreaklocale "zh"\XeTeXlinebreakskip = 0pt plus 1pt%%\setlength{\parindent}{0.85cm}%%==========================================================% define headrule and footrule style\makeatletter\def\headrule{{%\if@fancyplain\let\headrulewidth\plainheadrulewidth\fi\hrule\@height\footrulewidth\@width\headwidth\vskip1pt%\hrule\@height\headrulewidth\@width\headwidth\vskip-\headrulewidth\vskip-4pt