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

Ross Moore ross at ics.mq.edu.au
Sat Jul 18 11:46:15 EDT 2009

```Hello Christian,

On 18/07/2009, at 10:49 AM, Christian wrote:

>
> Am 18.07.2009 um 15:47 schrieb Peter Dyballa:
>
>>
>> Am 18.07.2009 um 14:06 schrieb Christian:
>>
>>> The log file says that "Reference `lstbeamerclass' on page 14
>>> undefined on input line 384."
>>
>>
>> How does it work with LaTeX?
>
> What do you mean?

I'd guess that he means using an ordinary LaTeX document-class,
rather than with beamer.

A possible reason for this is that with beamer you have the
same material being typeset several times, for generating
sequential page-builds. This raises the complication of "where
does a hyperlink (for a cross-reference, say) actually point to?".

So try getting your tables with cross-references working properly
first without the extra problems that beamer might cause,
then when that works fine, tackle the additional steps that may
be needed to get what you want also with beamer.

Of course he may have meant something quite different.

>
> --
> 	Christian

>
> Dave Barry

Hope this helps,

Ross

------------------------------------------------------------------------
Ross Moore                                       ross at maths.mq.edu.au
Mathematics Department                           office: E7A-419
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
------------------------------------------------------------------------

```