I am trying to format my report in following way using automatic TOC
Table of Contents
Chapter 1: Introduction to PHP ..................... 1
1.1. Introduction .............................. 1
1.2. Variables ................................. 5
Chapter 2: Loops ................................... 15
Contents
Chapter 1
Introduction to PHP
Introduction (Sub heading)
Everything is perfect except formating the TOC. Currently the table of contents looks like
Table of Contents
Chapter 1: ......................................... 1
Introduction to PHP ................................ 1
1.1. Introduction .............................. 1
How do I format this table of content to look like the one is on the top.