In my tex file I have the following code. It results in the Listing being numbered with an increasing index. Is there a way to prevent this from happening? (see screenshot: the second slide should say "Listing 1: Function" too)

\documentclass{beamer}
\usetheme{Goettingen}
%\usecolortheme{whale}

\setbeamertemplate{frametitle continuation}[from second] % (cont.) from second slide
\setbeamertemplate{bibliography item}{[\theenumiv]} % numbers instead of silly pictures
\setbeamertemplate{footline}[frame number]
\beamertemplatenavigationsymbolsempty % remove navigationbar

\usepackage[font=bf,skip=\baselineskip]{caption}
\captionsetup[lstlisting]{font={footnotesize}}

\usepackage{color}
\definecolor{light-gray}{gray}{0.85}
\definecolor{darkgreen}{rgb}{0.0, 0.5, 0.0} % for green colour in code
\usepackage{listings}
\usepackage[T1]{fontenc}
\lstset{
    basicstyle=\tiny,
    escapeinside={&lt;@}{@&gt;},
    numbers=left, 
    language=C, 
    morekeywords={throw, assert},
    frame=single,
    captionpos=b,
    commentstyle=\color{darkgreen}}


\begin{document}
\begin{frame}[fragile,containsverbatim]{Example}
    \begin{lstlisting}[caption={Function}]
functionA(x){
  a = functionB(x)
  return a
}

functionB(x){
  b =  &lt;@\only&lt;1&gt;{GLOBAL\_VAR}\only&lt;2&gt;{\textcolor{darkgreen}{GLOBAL\_VAR}}@&gt;
  b++
  return b
}
    \end{lstlisting}
\end{frame}

\end{document}



Question: Information to include with a fine art print?
Answer: I've grappled with this for awhile now and haven't found any consistent answers online, so I've muddled along with my own system. It may/may not be "right" but I offer it in case it's helpful.

My prints are plaque-mounted (on wood), and only as I need them (i.e. I don't do any runs of prints, I only produce them individually as needed). I write on the back of the mounted print, using a fine-tipped Sharpie, in four lines of text:
-title (inside quotation marks)
-year - sometimes this is two years - see below
-my signature
-my name, printed

Year: if the difference between when I took the original photo differs by more than a year from the date I first made this print version, I'll include both - e.g.: 2015 / 2009 - means printed version was made in 2015 but original photo taken in 2009. If there's a year or less difference then I just use the date of the print. If I change the image to make a new version of the print, then I use the new year instead of the original print year. If not - i.e. if it's just a reprint without any changes, then I stick with the original print date.

I don't bother with copyright info - I assume my signature and the date are covering that adequately.