[Solved] Includes titles in table of contents

Daniel Pinto Asks: Includes titles in table of contents
I am using the article class and I am using the title command to create titles for each chapter. I could use chapter with the book class, but I prefer to use article class.

So, for instance, for the introduction I would write:

Code:
title{underline{textbf{Chapter 1}} bigskip bigskip break 
textbf{Introduction}}
  date{}
maketitle

For sections and subsections I use the usual section and subsection commands.

Given this, how can I include titles in the table of contents?

Right now I make the table of contents appear using:

Code:
renewcommand*contentsname{Table of contents}
tableofcontents
newpage

This produces a table of contents ignoring chapters.

I want it to look as follows:

Code:
Table of contents (title of page)

    Acknowledgements.......................i
    Table of contents....................iii
    List of tables.......................vii  
    List of figures......................vii  
    Chapter 1. Introduction................1  
       1.1. Section Title..................4
       1.2. Section Title.................14
       1.3. Section Title.................24
           1.3.1. Subsection title........26
           1.3.2. Subsection title........29
    Chapter 2. Chapter 2 Title here.......40

I tried to use addcontentsline{toc}{chapter} but unsuccessfully

Note that as it stands the Acknowledgements title is also created with title and the corresponding section appears before the table of contents.

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.