[OS X TeX] Listings: \lstinputlisting and line number reference

Christian maillists at gmx.de
Sat Jul 18 08:06:44 EDT 2009


Hi,

I include my source code with

\lstinputlisting

and place - as written in the manual - the label with

(*@\label{lstbeamer01class}@*)

into the source file.

If I include

\ref{lstbeamer01class}

into the main file, it only outputs ??.

The log file says that "Reference `lstbeamerclass' on page 14  
undefined on input line 384."


How could I use the line number reference together with  
\lstinputlisting?


Thansk in advance
Christian



More information about the MacOSX-TeX mailing list