I have searched for something to resolve a problem that has shown up here: How do I get \chaptername to appear in the table of contents?
I have tried the code from that thread. But I got an issue, that is, it adds the \chaptername even for appendix chapters:
Chapter 1. aaaaa
....
Chapter Appendix A
How can I resolve it?

\includeto include appendix chapters, such as\include{appendA}. But when put these chapters directly to the main file or using the\inputcommand, it's work nice! Could you improve the code for more nice working? Thank you! – xuansamdinh May 21 '12 at 21:58\addtocontents{toc}{\protect\renewcommand{\protect\cftchappresnum}{\appendixname\space}}at the start of your first "included" appendix chapter file. I suspect that it's a problem similar to the one solved in http://tex.stackexchange.com/a/50037/510. – lockstep May 21 '12 at 22:04