Saturday 8 June 2013

How to add the word Chapter in the table of content, Figure to the list of figures, table to the list of tables

How to add the word Chapter in the table of content, Figure to the list of figures, table to the list of tables

I would like to add the words Chapter, Figure, Table in the Table of Contents, List of Figures, List of Tables. How do I go about doing that?
The following is the code I used in my .tex file.
\documentclass[a4paper,twoside,12pt,openright,titlepage]{mybook}
\usepackage{a4}
\usepackage{amsmath,amsfonts}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage[sectionbib]{bibunits}
\usepackage{algorithmic}
\usepackage{setspace}
\usepackage{fancyhdr}
\usepackage{adfatitlepage}
\usepackage{rotating}
\usepackage[margin=10pt,font={small,rm},format=hang,indention=-0.5cm,justification=justified,labelsep=period]{caption} 
\usepackage[none]{hyphenat}
\usepackage[intoc]{nomencl}
\usepackage{bm}
\usepackage{threeparttable}
\usepackage[titletoc]{appendix}
\usepackage{mathtools}
\usepackage{multirow}
\usepackage{wasysym}
\usepackage{lineno}
\usepackage{layout}
%% the following codes are to add the word Chapter to the table of contents, but in my case, the table of contents includes Abstract, list of figures, table of contents, and Appendix, when I use this codes. The table of contents become a mess.%%
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\usepackage{titletoc}
\titlecontents*{chapter}% <section-type>
[0pt]% <left>
{\addvspace{1em}}% <above-code>
{\bfseries\chaptername\ \thecontentslabel\quad}% <numbered-entry-format>
{}% <numberless-entry-format>
{\bfseries\hfill\contentspage}% <filler-page-format>
%% the above codes are to add the word Chapter to the table of contents, but in my case, the table of contents includes Abstract, list of figures, table of contents, and Appendix, when I use this codes. The table of contents is a mess. %%
With the following code
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\usepackage{titletoc}
\titlecontents*{chapter}% <section-type>
[0pt]% <left>
{\addvspace{1em}}% <above-code>
{\bfseries\chaptername\ \thecontentslabel\quad}% <numbered-entry-format>
{}% <numberless-entry-format>
{\bfseries\hfill\contentspage}% <filler-page-format>
The table of content become a mess. And also add the word Chapter to the Appendices.
I don't know how to add the word Figure and Table to the List of Tables. Could anyone provide some suggestions?

No comments:

Post a Comment