using the \lstlistoflistings always named as Contents in table of contents.
I did look into lstlistoflistings entry in table of contents name is always 'Contents' and Change name of listings but the solutions there did not work.
Example: (my complete preamble)
\documentclass[11pt, oneside]{Thesis}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{pgfplots,filecontents}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{booktabs,colortbl}
\usepackage{graphicx}
\usepackage{rotating}
\usepackage{listings}
\usepackage{color}
\usepackage{comment}
\usepackage[official]{eurosym}
\usepackage{colortbl}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{indentfirst}
\usepackage{latexsym}
\usepackage{titlesec}
\usepackage[square, numbers, comma, sort&compress]{natbib}
\hypersetup{urlcolor=blue, colorlinks=true}
\renewcommand{\lstlistlistingname}{List of Code}
\begin{document}
\tableofcontents
\lstlistoflistings
\lstinputlisting[language=python,firstline=1,lastline=68,caption=some caption here., label=code:getbb]{Code/getBoundingBox.py}
\end{document}
The renew command changes the header in the page but not in the table of contents. Any ideas?
EDIT x2:
Managed to get the naming correct by editing this in the Thesis.cls
}
\renewcommand\lstlistoflistings{
\btypeout{List of Listings}
\addtotoc{List of Listings}
\begin{spacing}{1}{
\setlength{\parskip}{1pt}
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\lstlistlistingname
\@mkboth{
\MakeUppercase\lstlistlistingname}{\MakeUppercase\lstlistlistingname}}
\@starttoc{lot}
\if@restonecol\twocolumn\fi
\cleardoublepage
}\end{spacing}
Now the name appears correctly in the TOC but the Listings do no show in the Listings page, its just empty..
A MWE can be found here: https://www.dropbox.com/sh/xehv0crr7rqyptp/AAB-eNpJVLVpfQikO3IO3yCza?dl=0
\AtBeginDocument{\lstlistlistingname}{List of Code}}in the preamble.listings'hijacks'\tableofcontentsactually – Jul 08 '17 at 11:46Thesis.clsare not useful, sorry. – Jul 08 '17 at 12:47Thesis.clsthat you are using available anywhere? – Michael Palmer Jul 08 '17 at 14:13\renewcommand? Should it not be\AtBeginDocument{\renewcommand{\lstlistlistingname}{List of Code}}? – Michael Palmer Jul 08 '17 at 14:22\cleardoublepage\addchaptertocentry{List Of Listings}\lstlistoflistings– Johannes_B Jul 09 '17 at 08:22