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

Christian maillists at gmx.de
Sat Jul 18 14:06:44 CEST 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
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
List Archive: http://tug.org/pipermail/macostex-archives/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex



More information about the macostex-archives mailing list