I am writing a document using Latex. I have group pf codes in my document and I wanted to show it in the list of contents. I managed to do so, but I still have (contents) appearing in table additional to (List of Code). You can find below what I have used :
\documentclass[11pt, oneside]{Thesis} % The default font size and one-sided printing (no margin offsets)
\begin{document}
\frontmatter % Use roman page numbering style (i, ii, iii, iv...) for the pre-content pages
\setstretch{1.3} % Line spacing of 1.3
\begin{titlepage}
\begin{center}
\lhead{\emph{Contents}} % Set the left side page header to "Contents"
\tableofcontents % Write out the Table of Contents
\lhead{\emph{List of Figures}} % Set the left side page header to "List of Figures"
\listoffigures % Write out the List of Figures
\lhead{\emph{List of Tables}} % Set the left side page header to "List of Tables"
\listoftables % Write out the List of Tables
\lhead{\emph{List of Listings}}
\addcontentsline{toc}{chapter}{Listings} %to show the listings as a chapter.
\lstlistoflistings
\end{center}
\end{titlepage}
\end{document}
Please help me to figure out this issue since I have deadline to submit the document.
\documentclass{...}and ending with\end{document}. – Sep 27 '14 at 06:41Thesisis not a common document class. 2) Some environments are not properly closed. 3) There is an extra}. You need to fix all that. – jub0bs Sep 27 '14 at 14:35@followed by their name (e.g.@Sarah) otherwise they won't be notified of your response. As for the question, please try to replicate the problem for a smaller.texfile (MWE) and then post it. – Pier Paolo Sep 27 '14 at 15:22\addcontentslineafter the command for the list:\lstlistoflistings\addcontentsline{toc}{chapter}{Listings}. As for the rest of what you're asking, it is difficult to say because the code is still not compilable (I don't have theThesisdocument class, I don't know the definitions of or the packages used for commands like\lhead,\setstretch...) – Pier Paolo Sep 27 '14 at 15:48Thesisclass that you're using. Is it available somewhere on the Internet? If so, please edit your question to add a link to theThesis.clsfile. – jub0bs Sep 27 '14 at 22:05