With the following MWE you will get a warning
Label lst:HalloWelt multiply defined.
In the MWE I have added the calls for packages showlabels and refcheck to show the used labels and to check unused labels. Please just uncomment.
As I see package showexpl (version 2012/09/22 v0.3j) causes this warning. How can I get rid of this warning?
MWE:
\listfiles
\RequirePackage{filecontents}
\begin{filecontents*}{HalloWelt.ltx}
\documentclass{scrartcl}
\begin{document}
Hallo Welt!
\end{document}
\end{filecontents*}
\documentclass{scrartcl}
%\usepackage{showlabels} % To check the used label
%\usepackage{refcheck} % to check unused labels
\usepackage{varioref} % difference with ref automaismn?
\usepackage{listings}
\lstloadlanguages{[LaTeX]TeX}
\usepackage[rframe=single]{showexpl}
\begin{document}
%\section{Test1}\section{Test2} % no change of warning
%\subsection{subtest1}\subsection{subtest2} % with or with not sections
The following macro throws the warning:
LaTeX Warning: Label lst:HalloWelt multiply defined.
\LTXinputExample[%
caption={Datei \texttt{HalloWelt.ltx}}
,label={lst:HalloWelt}
]{HalloWelt.ltx}
How to get rid of that warning?
This is a reference to listing~\ref{lst:HalloWelt}
and with varioref~\vref{lst:HalloWelt}.
\end{document}

multiplyis pronounced likemultipliinmultiplication, and not the same asmultiplyinmultiply these fractions. – Werner Mar 7 at 4:01