I'd like the make the contents and the acknowledgements appear in the table of contents just like the picture below. Can you tell me how ?
Thanks a lot
Here is my MWE:
\documentclass[12pt,twoside]{report}
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[RE]{\slshape\nouppercase{\leftmark}}
\fancyhead[LO]{\slshape\nouppercase{\rightmark}}
\fancyhead[RO,LE]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{lipsum}
\graphicspath{{Images/}}
\begin{document}
\pagestyle{headings}
\chapter*{Acknowledgements}
\thispagestyle{empty}
\pagenumbering{arabic}
\tableofcontents
\addcontentsline{toc}{chapter}{\listfigurename}\addcontentsline{toc}{chapter}{\listtablename}
\pagenumbering{roman}
\listoffigures
\listoftables
\clearpage
\pagenumbering{arabic}
\chapter{Introduction}
Some text
\end{document}
\pagenumbering
resets the page counter, so you have two pages numbered arabic one (acknowledgements, introduction) and one page numbered roman one (Contents). Probably the easiest way to fix it is to use thebook
class with\frontmatter
and\mainmatter
, see e.g. tex.stackexchange.com/questions/154646/… – gernot says Reinstate Monica Jan 2 '17 at 17:57