The problem is when I insert the \listoffigures command I get !Paragraph ended before \@dottedtocline was complete. Here is my code:
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\graphicspath{{images/}}
\usepackage{xcolor}
\usepackage{float}
\usepackage{listings}
\lstset{
frame=single,
breaklines=true,
postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow\space}}
}
\usepackage[a4paper,top=30mm,bottom=30mm]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyhead[R]{\leftmark}
\begin{document}
\pagenumbering{Roman}
\chapter*{Abstract}
Recent years have witnessed massive growth in the popularity of smart portable
\chapter*{Dedication}
to mum and dad
\chapter*{Acknowledgments}
I would like to express my gratitude to my supervisor
\tableofcontents
\listoftables
\listoffigures
\cleardoublepage\pagenumbering{arabic}
\chapter{Introduction}
some introduction...
\chapter*{Conclusion}
\end{document}
It says also \par ... a bug in a package file you are using what is causing this problem?
introduction.tex,related_work.tex, ... – Werner Oct 26 '16 at 23:53.auxfiles each run). This will show which included file causes it. Then you need to look at each\captioncommand for your figures (which is probably where the problem lies) or move the\end{document}successively backwards in that included file until the error goes away again. Then you will probably find the source of the problem yourself. – Alan Munn Oct 26 '16 at 23:55.toc,.lofand.lotfiles? There are a bunch of auxiliary files that may be the source of this problem. See Egad! What are all those files? and File extensions related to LaTeX, etc. – Werner Oct 27 '16 at 00:39