Code: Select all
\addtocontents{toc}{\contentsline{chapter}{\numberline{}APP}{}}
Code: Select all
! Argument of \contentsline has an extra }.
<inserted text>
\par
l.104 ...ontentsline{chapter}{\numberline{}APP}{}}
%
Code: Select all
%!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
}}
%
\def\footrule{{%
\if@fancyplain\let\footrulewidth\plainfootrulewidth\fi
\vskip-\footruleskip\vskip-\footrulewidth
\hrule\@height\headrulewidth\@width\headwidth\vskip1pt%
\hrule\@height\footrulewidth\@width\headwidth\vskip\footruleskip
}}
\makeatother
%
%
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{}{}}
%
%
\fancypagestyle{plain}{%
\fancyhf[]{}
\fancyhead[LE,RO]{Project Line 1\\Proposal}
\fancyhead[LO,RE]{}
\fancyfoot[C]{\small\thepage}
}
%
\fancyhf[]{}
\fancyhead[LE,RO]{Project Line 1\\Proposal}
\fancyhead[LO,RE]{}
\fancyfoot[C]{\small\thepage}
%
\renewcommand{\headrulewidth}{1.5pt}
\renewcommand{\footrulewidth}{0.5pt}
%
%
\setlength{\headheight}{30pt}
%
%
%======================================================
\begin{document}
%
\pagenumbering{roman}
%
\tableofcontents
\listoffigures
\listoftables
\clearpage
%
% ================================================================================
\pagenumbering{arabic}
\fontsize{12pt}{18pt}\selectfont
%
%%===========================================================================
%
%
% for testing
\chapter{TEST 1}
\section{test test}
\chapter{TEST 2}
\section{test test test test}
%
%======= Appendix ========================
%
%\addcontentsline{toc}{chapter}{\textbf{APP}}%
\addtocontents{toc}{\contentsline{chapter}{\numberline{}APP}{}}%
%
\end{document}