On Wed, Mar 19, 2008 at 2:02 PM, Dominik Böhm <[EMAIL PROTECTED]> wrote:
> Hello,
>
>  I would like to have a program listing's caption beneath the listing.
>  Therefore I tried to add "\lstset{captionpos=b}" to the preamble,
>  tried to put "captionpos=b" into the text layout area, tried to call
>  "\lstset{captionpos=b}" in an ERT before the listing.
>
>  The command positions the caption under the listing but breaks the
>  numbering. Please find attached an exemplary lyx-file and the
>  resulting pdf file. After the first listing, I executed
>  "\lstset{captionpos=b}", thus the second reference is broken.
>
>  Is that a known bug in the listings package (I didn't find anything on
>  Google) or does LyX do anything wrong? I had a look at the generated
>  latex (pdflatex)-file (which I attached, too) but it looks ok.
>
>  I hope someone knows what to to about this issue.. Thanks a lot
>  Dominik
>

Disclaimer: I don't know anything about listings. However, I remember
seeing a similar post. For LyX 1.5.3 you would put 'captionpos=b' in
Document->Settings->Text Layout->Listing settings.

Cheers,
/Bob

Reply via email to