I've searched for days and unfortunately could not find the solution to my problem.
Consider the following minimal example, it produces a ToC as follows:
This is not the one I need. I need the following ToC:
Contents
Chapter 1: Ch1 .............................. 3
1.1: Sec 1 .............................. 3
1.2: Sec 2 .............................. 4
Chapter 2: Ch2 .............................. 7
2.1: Sec 1 .............................. 7
2.2: Sec 2 .............................. 8
Appendix A: App1 .............................. 11
A.1: Sec 1 .............................. 11
A.2: Sec 2 .............................. 12
Appendix B: App2 .............................. 15
B.1: Sec 1 .............................. 15
B.2: Sec 2 .............................. 16
I have tried the following packages, but could not make them work: tocloft, titletoc and titlesec. I use TeXLive 2017 (XeLaTeX).
Minimal Code:
\documentclass[a4paper,10pt,twoside]{book}
\usepackage{lipsum} % for dummy text only
\begin{document}
\tableofcontents
\chapter{Ch1}
\section{Sec1}
\lipsum
\section{Sec2}
\lipsum
\chapter{Ch2}
\section{Sec1}
\lipsum
\section{Sec2}
\lipsum
\appendix
\chapter{App1}
\section{Sec1}
\lipsum
\section{Sec2}
\lipsum
\chapter{App2}
\section{Sec1}
\lipsum
\section{Sec2}
\lipsum
\end{document}
