2

With the lstlistings package, is there a strait forward way of changing the label style from

Listing 1

to

Listing. 1

By the "label style" I mean the string used in the captions.

EG.

\begin{lstlisting}[caption=This is a caption, label=list]
   here lieth some code
\end{lstlisting}

would give me:

listing 1: This is a caption
here lieth some code

However, What I need to get is (notice the punctuation after the listing):

listing. 1: This is a caption
here lieth some code
jub0bs
  • 58,916

1 Answers1

2
\def\lstlistingname{Listing.}

You might also want to read section "4.9 Captions" from the listings.pdf