I'm trying to put an hyphen after the entries of the "List of Listings" as follows:
List of Codes
Code 1 -- First Code ................................ 7
Code 2 -- Second Code ............................... 8
With the following code ...
\documentclass[12pt,openright,oneside,dvipsnames,a4paper,%
chapter=TITLE,section=TITLE,english]{abntex2}
\usepackage{textcomp}
\usepackage{caption}
\usepackage{listings}
\renewcommand{\lstlistingname}{Code} % Listings
\renewcommand{\lstlistlistingname}{List of Codes}%
\lstset{
language = [LaTeX]{TeX}
}
\AtBeginDocument{ %
\counterwithout{lstlisting}{chapter}
}
\begin{document}
\lstinputlisting[caption={First Code}]{code1.tex}
\lstinputlisting[caption={Second Code}]{code2.tex}
\end{document}
I have:
List of Codes
Code 1 First Code ................................ 7
Code 2 Second Code ............................... 8
Thanks in advance for any help.
